From: lartc Date: Sat, 27 Mar 2004 14:51:42 +0000 Subject: [LARTC] CBQ weight Prioritizing Message-Id: <406594FE.7090405@hardcampa.mine.nu> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Hello people, I'm curious about the weighting in CBQ, if i have these classes in my CBQ s= cript, 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. =3D) tc class add dev $DEV parent 1:1 classid 1:10 cbq bandwidth 10Mbit rate 10M= bit 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 10M= bit 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 10M= bit 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 10M= bit 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 10M= bit 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 10M= bit 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, con= trolled 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 wit= h 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 do= n't let that confuse you. Any advice or comments are appreciated. Regards,=20 Christer S=F6derlund _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/