From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amit Kucheria Date: Thu, 13 Dec 2001 07:50:20 +0000 Subject: Re: [LARTC] CBQ inaccuracy Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org On Thu, 13 Dec 2001, bert hubert wrote: > On Wed, Dec 12, 2001 at 07:17:43PM -0600, Amit Kucheria wrote: > > I have found CBQ to be very inaccurate (as others on the list) > >=20 > > I have created a structure as follow > >=20 > > Root (10mbit) > > | > > CBQ class (bandwidth=3D1mbit, rate=10mbit) > > | > > CBQ qdisc (bandwidth=3D1mbit) >=20 > Um, this doesn't make sense. I keep repeating this to posters here, SHOW > YOUR CONFIGURATION! Don't just draw pictures - your CBQ commandlines may = not > do what you think they do. My apologies. Here's the script --------------------------------------------------------------------------- BANDWIDTH=BAndwidth 10Mbit LIMITBW=3D1Mbit # Root CBQ qdisc 1: $TC qdisc add $DEVICE root handle 1: cbq $BANDWIDTH $AVPKT # Root CBQ class 1:1 # This class rate limits everyting to 1Mbit $TC class add $DEVICE parent 1:0 classid 1:1 cbq $BANDWIDTH rate $LIMITBW=20 \ maxburst 100 $AVPKT allot 1514 weight 100Kbit prio 1 bounded isolated # Filter packet from the 2 sources $TC filter add $DEVICE parent 1: protocol ip prio 1 u32 match ip src=20 $SRC1 flowid 1:1 $TC filter add $DEVICE parent 1: protocol ip prio 1 u32 match ip src=20 $SRC2 flowid 1:1 # CBQ qdisc 2:0 $TC qdisc add $DEVICE parent 1:1 handle 2:0 cbq bandwidth $LIMITBW $AVPKT=20 allot 1514 ------------------------------------------------------- --=20 The statement below is true. The statement above is false. ^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^ Amit Kucheria EECS Grad. Research Assistant University of Kansas @ Lawrence (R)+1-(785)-830 8521 ||| (O)+1-(785)-864 7774 ____________________________________________________ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/