CBQ weight Prioritizing

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello people,

I'm curious about the weighting in CBQ, if i have these classes in my CBQ script, will it work as I expect it to, or are there drawbacks?
I am already using HTB for the moment so don't tell me to use that, this is simply something I want to know. =)

tc class add dev $DEV parent 1:1 classid 1:10 cbq bandwidth 10Mbit rate 10Mbit weight 0.3Mbit prio 1 allot 1514 cell 8 maxburst 20 avpkt 1000
tc class add dev $DEV parent 1:1 classid 1:11 cbq bandwidth 10Mbit rate 10Mbit weight 0.3Mbit prio 1 allot 1514 cell 8 maxburst 20 avpkt 1000
tc class add dev $DEV parent 1:1 classid 1:12 cbq bandwidth 10Mbit rate 10Mbit weight 0.2Mbit prio 1 allot 1514 cell 8 maxburst 20 avpkt 1000
tc class add dev $DEV parent 1:1 classid 1:13 cbq bandwidth 10Mbit rate 10Mbit weight 0.1Mbit prio 1 allot 1514 cell 8 maxburst 20 avpkt 1000
tc class add dev $DEV parent 1:1 classid 1:14 cbq bandwidth 10Mbit rate 10Mbit weight 0.05Mbit prio 1 allot 1514 cell 8 maxburst 20 avpkt 1000
tc class add dev $DEV parent 1:1 classid 1:15 cbq bandwidth 10Mbit rate 10Mbit weight 0.05Mbit prio 1 allot 1514 cell 8 maxburst 20 avpkt 1000

I'm allowing all my CBQ classes to use full speed (10Mbit) if they can, controlled only by my weight ratios,
note that the priority is the same for all, which in effect is what I hope will make this work.
So the first entry will thus be given a 3 mbit "minimum" speed as I give it weight ratio 0.3.
I'm trying to get CBQ to behave somewhat more like HTB with this script with its rate and ceil commands.

Well I'm curious will this actually work as I intend it to?

If you want to see the whole script you'll find it at http://christers.mine.nu/~christer
Note that the complete script is also prioritizing by Layer-7 filters so don't let that confuse you.

Any advice or comments are appreciated.

Regards,

Christer Söderlund


_______________________________________________ LARTC mailing list / LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux