From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liu Zhiyong Date: Thu, 13 Mar 2003 04:49:31 +0000 Subject: [LARTC] CBQ problem Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org this is my CBQ configuration: DEV=eth1 tc qdisc del dev $DEV root tc qdisc add dev $DEV root handle 1: cbq avpkt 100 bandwidth 10Mbit cell 8 tc class add dev $DEV parent 1: classid 1:1 cbq rate 10kbit allot 1500 prio 1 cell 8 bounded isolated tc class add dev $DEV parent 1:1 classid 1:10 cbq rate 1Mbit allot 1500 prio 2 avpkt 15 bounded isolated tc class add dev $DEV parent 1:1 classid 1:20 cbq rate 7Mbit allot 1500 prio 2 avpkt 60 bounded isolated tc class add dev $DEV parent 1:1 classid 1:30 cbq rate 200kbit allot 1500 prio 2 avpkt 60 bounded isolated tc qdisc add dev $DEV parent 1:10 handle 10: sfq perturb 10 tc qdisc add dev $DEV parent 1:20 handle 20: sfq perturb 10 tc qdisc add dev $DEV parent 1:30 handle 30: sfq perturb 10 tc filter add dev $DEV parent 1: protocol ip prio 1 u32 match u8 0x00 0x00 at 0 flowid 1:30 tc filter add dev $DEV parent 1: protocol qroute_uni prio 2 u32 match u8 0x40 0xff at 14 flowid 1:20 tc filter add dev $DEV parent 1: protocol qroute_multi prio 3 u32 match u8 0x40 0xff at 14 flowid 1:20 tc filter add dev $DEV parent 1: protocol qroute_uni prio 4 u32 match u8 0x00 0x00 at 14 flowid 1:10 tc filter add dev $DEV parent 1: protocol qroute_multi prio 5 u32 match u8 0x00 0x00 at 14 flowid 1:10 I want to shape class 1:1 to 10kbit, but it is not successfull. As I know when class 1:1 is shaped to 10Kbits, its children, can not exceed it, even if the child's rate is more than class 1:1. But After I applied this tc configuration, I notice that the bandwidth of class 1:30 is around 200Kbit (not shape to less than 10Kbit). anyone can help me? ----------------------------------------- This email was sent using SquirrelMail. "Webmail for nuts!" http://squirrelmail.org/ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/