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/