Re: [LARTC] QoS on data and voice traffic

2002-07-10 Thread Mr SERBAN Rares

Hi,

You are wrong! The packets must spend less time in
your box for 0x08 class. So, if you are using cbq and
sfq I don't belive that you will have good results.
First you need a scheduler between 0x08 class and 0x00
like PRIO. You can use sfq for 0x00 class or tbf to
limit the bandwidth. For 0x08 try to use pfifo.

Also you can do the same configuration using htb.
Please, for 0x08, use pfifo and for 0x00 sfq!

A +,

R.

--- Patrick Chan <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Sorry for asking so much questions in this mailing
> list.
> 
> Because I have to develop a Linux router,
> there are both data and voice packets passed thru
> it.
> The voice packets are already tagged with 0x8 in TOS
> field.
> The bandwidth of the serial link is 115200bps.
> A voice call takes up 34Kbytes bandwidth.
> 
> Now, I use the following tc config:
> tc qdisc add dev ppp0 root handle 10: cbq bandwidth
> 112Kbit avpkt 1000
> tc class add dev ppp0 parent 10:0 classid 10:100 cbq
> bandwidth 112Kbit rate
> 57Kb
> it allot 1514 weight 5Kbit prio 2 maxburst 20 avpkt
> 1000 isolated
> tc class add dev ppp0 parent 10:0 classid 10:200 cbq
> bandwidth 112Kbit rate
> 55Kb
> it allot 1514 weight 5Kbit prio 8 maxburst 20 avpkt
> 1000 bounded
> tc qdisc add dev ppp0 parent 10:100 sfq quantum
> 1514b perturb 15
> tc qdisc add dev ppp0 parent 10:200 sfq quantum
> 1514b perturb 15
> tc filter add dev ppp0 parent 10:0 protocol ip prio
> 2 u32 match ip tos 0x8
> 0xff
> flowid 10:100
> tc filter add dev ppp0 parent 10:0 protocol ip prio
> 8 u32 match ip tos 0x00
> 0xff
>  flowid 10:200
> 
> 
> 10:100 is isolated and the bandwidth allocated to
> this class is 57Kb,
> the voice packets are successfully put to class
> 10:100 because
> I know it by tc -s qdisc
> theoretically, the voice quality should be very
> smooth.
> But the voice is not smooth, when I start to
> download a file.
> 
> If I turn off tc, the quality is even terrible, when
> download a file.
> 
> 
> 
> Sorry, I just learn tc for 1 month. Hope someone can
> help me.
> 


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



[LARTC] iptables: No chain/target/match by that name

2002-06-10 Thread Mr SERBAN Rares

Hi all,

I installed linux kernel 2.4.18 and iptables 1.2.6a
with patches htb3.3_tc.dif iptables-1.2.6a-imq.diff-3 
sch_generic.diff

I compiled everything without problems. When I tried
to run some examples I received this message:

./iptables -t mangle -A prerouting -i eth3 -j IMQ
iptables: No chain/target/match by that name


I looked for imq.o and I tried insmod imq and I
received those messages:

/lib/modules/2.4.18/kernel/drivers/net/imq.o:
unresolved symbol
nf_unregister_queue_handler_R4df6e6de
/lib/modules/2.4.18/kernel/drivers/net/imq.o:
unresolved symbol unregister_netdev_Rf7112b47
/lib/modules/2.4.18/kernel/drivers/net/imq.o:
unresolved symbol skb_under_panic_R14a04476
/lib/modules/2.4.18/kernel/drivers/net/imq.o:
unresolved symbol nf_register_queue_handler_R9d33fd20
/lib/modules/2.4.18/kernel/drivers/net/imq.o:
unresolved symbol irq_stat_R79a4281c
/lib/modules/2.4.18/kernel/drivers/net/imq.o:
unresolved symbol nf_unregister_hook_Rd74167f6
/lib/modules/2.4.18/kernel/drivers/net/imq.o:
unresolved symbol nf_register_hook_R88672625
/lib/modules/2.4.18/kernel/drivers/net/imq.o:
unresolved symbol register_netdev_R20a39df5
/lib/modules/2.4.18/kernel/drivers/net/imq.o:
unresolved symbol skb_clone_R3e70c0f3
/lib/modules/2.4.18/kernel/drivers/net/imq.o:
unresolved symbol nf_reinject_Rb7e7232a
/lib/modules/2.4.18/kernel/drivers/net/imq.o:
unresolved symbol qdisc_restart_R5633d4d0
/lib/modules/2.4.18/kernel/drivers/net/imq.o:
unresolved symbol __kfree_skb_R57528140
/lib/modules/2.4.18/kernel/drivers/net/imq.o:
unresolved symbol netdev_finish_unregister_R9f5d09d5

Where is the problem? 

Thanx,

R.

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



Re: [LARTC] Ingress utilization problem

2002-05-31 Thread Mr SERBAN Rares

Hi Alexey,

I read the paper of Werner Almesberger. I didn' t
understand if there are multiple instances of ingress
queueing discipline. Can you be more specific?

Also I want to do marking operation in ingress
interface. How do I do?

Thank you,

R.

--- Alexey Talikov <[EMAIL PROTECTED]>
wrote:
> tc qdisc add dev $DEV handle :fff1 ingress
> or 
> tc qdisc add dev $DEV handle : ingress
> tc filter add dev $DEV parent :fff1 protocol ip
> 
> or
> tc filter add dev $DEV parent : protocol ip 
> 
> for details see Linux Network Traffic Control -
> Implementation Overview
> Werner Almesberger February 4, 2001
> 
> 31.05.2002 15:16:45, Mr SERBAN Rares
> <[EMAIL PROTECTED]> wrote:
> 
> >Hi,
> > 
> >I have one router with 4 interfaces:
> > 
> >   Input1
> > /
> >   out - R - Input2
> >\
> >  Input3
> > 
> >The flows sense is: Input1 -> output; Input2->out;
> >Input3->out;
> > 
> >I want to do classification, shaping and marking in
> >each In* interface and some queueing management in
> out
> >interface.
> >For In* interfaces I tried to use the following
> >script:
> > 
> >#!/bin/sh
> >DEV1="dev eth3"
> ># In1
> >DEV2="dev eth2"
> ># In2
> >DEV3="dev eth4"
> ># In3
> >DEV4="dev eth1"
> ># out
> > 
> >tc qdisc del $DEV1 ingress
> >tc qdisc del $DEV2 ingress
> >tc qdisc del $DEV3 ingress
> >tc qdisc del $DEV4 root
> > 
> ># initialisation part
> >tc qdisc add $DEV1 ingress
> >tc qdisc add $DEV2 ingress
> >tc qdisc add $DEV3 ingress
> >tc qdisc add $DEV4 root handle 1:0 cbq bandwidth
> >10Mbit avpkt 1500 cell 8
> > 
> ># for interface In1 (here is DEV1)
> > 
> ># shaping + classification
> >tc filter add $DEV1 parent :0 protocol ip prio
> 1
> >u32 match ip dst 192.168.3.6 match ip dport 6970
> >0x police rate 500Kbit burst 30K drop flowid
> 1:1
> >tc filter add $DEV1 parent :0 protocol ip prio
> 1
> >u32 match ip src 192.168.9.17 match ip dport 5050
> >0x police rate 500Kbit burst 6K drop classid
> 1:2
> >tc filter add $DEV1 parent :0 protocol ip prio
> 1
> >u32 match ip src 192.168.9.17 match ip sport 80
> 0x
> >police rate 300Kbit burst 6K drop classid 1:3
> > 
> ># marking with tos field
> ># Somebody has an I ideea how it should be done?
> > 
> >#for interface In2 (here is DEV2)
> >.
> > 
> >#for interface In3 (here is DEV3)
> >.
> > 
> >#for interface out (here is DEV4)
> >tc class add $DEV4 parent 1:0 classid 1:1 cbq
> >bandwidth 10Mbit rate 250Kbit avpkt 1500 allot 1514
> >mpu 64 prio
> >tc qdisc add $DEV4 parent 1:1 tbf rate 1Mbit burst
> >20kbit limit 20kb
> > 
> >tc class add $DEV4 parent 1:0 classid 1:2 cbq
> >bandwidth 10Mbit rate 300Kbit avpkt 1500 allot 1514
> >mpu 64 prio 2
> >tc qdisc add $DEV4 parent 1:2 gred setup DPs 1
> default
> >1 grio 
> >tc qdisc change $DEV4 parent 1:2 gred limit 10KB
> min
> >2KB max 6KB avpkt 1500 burst  4 bandwidth 10Mbit DP
> 1
> >probability 0.02 prio 2
> > 
> >tc class add $DEV4 parent 1:0 classid 1:3 cbq
> >bandwidth 10Mbit rate 700Kbit avpkt 1500 allot 1514
> >mpu 64 prio 2
> >tc qdisc add $DEV4 parent 1:3 gred setup DPs 1
> default
> >1 grio
> >tc qdisc change $DEV4 parent 1:3 gred limit 10KB
> min
> >2KB max 6KB avpkt 1500 burst 4 bandwidth 10Mbit DP
> 1
> >probability 0.02 prio 2
> > 
> >So, when I start the script and provision the In
> >interface with ingress task the system is frozen!
> Why?
> >Can anybody explain me?
> >Also, I don't have any ideea how to mark the
> packets
> >at the ingress. I tried to use dsmark queueing
> >discipline but I can't use it at the ingress. Have
> you
> >another
> >ideea?
> > 
> >Thank you,
> > 
> >R.
> >
> >__
> >Do You Yahoo!?
> >Yahoo! - Official partner of 2002 FIFA World Cup
> >http://fifaworldcup.yahoo.com
> >___
> >LARTC mailing list / [EMAIL PROTECTED]
> >http://mailman.ds9a.nl/mailman/listinfo/lartc
> HOWTO: http://lartc.org/
> >
> 
> ---
> mailto:[EMAIL PROTECTED]
> BR
> Alexey Talikov
> FORTEK
> ---
> 
> 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



[LARTC] Ingress utilization problem

2002-05-31 Thread Mr SERBAN Rares

Hi,
 
I have one router with 4 interfaces:
 
   Input1
 /
   out - R - Input2
\
  Input3
 
The flows sense is: Input1 -> output; Input2->out;
Input3->out;
 
I want to do classification, shaping and marking in
each In* interface and some queueing management in out
interface.
For In* interfaces I tried to use the following
script:
 
#!/bin/sh
DEV1="dev eth3"
# In1
DEV2="dev eth2"
# In2
DEV3="dev eth4"
# In3
DEV4="dev eth1"
# out
 
tc qdisc del $DEV1 ingress
tc qdisc del $DEV2 ingress
tc qdisc del $DEV3 ingress
tc qdisc del $DEV4 root
 
# initialisation part
tc qdisc add $DEV1 ingress
tc qdisc add $DEV2 ingress
tc qdisc add $DEV3 ingress
tc qdisc add $DEV4 root handle 1:0 cbq bandwidth
10Mbit avpkt 1500 cell 8
 
# for interface In1 (here is DEV1)
 
# shaping + classification
tc filter add $DEV1 parent :0 protocol ip prio 1
u32 match ip dst 192.168.3.6 match ip dport 6970
0x police rate 500Kbit burst 30K drop flowid 1:1
tc filter add $DEV1 parent :0 protocol ip prio 1
u32 match ip src 192.168.9.17 match ip dport 5050
0x police rate 500Kbit burst 6K drop classid 1:2
tc filter add $DEV1 parent :0 protocol ip prio 1
u32 match ip src 192.168.9.17 match ip sport 80 0x
police rate 300Kbit burst 6K drop classid 1:3
 
# marking with tos field
# Somebody has an I ideea how it should be done?
 
#for interface In2 (here is DEV2)
.
 
#for interface In3 (here is DEV3)
.
 
#for interface out (here is DEV4)
tc class add $DEV4 parent 1:0 classid 1:1 cbq
bandwidth 10Mbit rate 250Kbit avpkt 1500 allot 1514
mpu 64 prio
tc qdisc add $DEV4 parent 1:1 tbf rate 1Mbit burst
20kbit limit 20kb
 
tc class add $DEV4 parent 1:0 classid 1:2 cbq
bandwidth 10Mbit rate 300Kbit avpkt 1500 allot 1514
mpu 64 prio 2
tc qdisc add $DEV4 parent 1:2 gred setup DPs 1 default
1 grio 
tc qdisc change $DEV4 parent 1:2 gred limit 10KB min
2KB max 6KB avpkt 1500 burst  4 bandwidth 10Mbit DP 1
probability 0.02 prio 2
 
tc class add $DEV4 parent 1:0 classid 1:3 cbq
bandwidth 10Mbit rate 700Kbit avpkt 1500 allot 1514
mpu 64 prio 2
tc qdisc add $DEV4 parent 1:3 gred setup DPs 1 default
1 grio
tc qdisc change $DEV4 parent 1:3 gred limit 10KB min
2KB max 6KB avpkt 1500 burst 4 bandwidth 10Mbit DP 1
probability 0.02 prio 2
 
So, when I start the script and provision the In
interface with ingress task the system is frozen! Why?
Can anybody explain me?
Also, I don't have any ideea how to mark the packets
at the ingress. I tried to use dsmark queueing
discipline but I can't use it at the ingress. Have you
another
ideea?
 
Thank you,
 
R.

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/