From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Khaled Eshah" Date: Sat, 07 Jul 2001 12:00:09 +0000 Subject: [LARTC] CBQ Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hi Here is our problem : ______________ eth1 | | eth0 INTERNET--------| LINUX router |---------- LAN |______________| we want to allow our LAN users to use only 128Kbit (16KB/s) of our total bandwidth. I'm using these rules to do that : tc qdisc add dev eth0 root handle 10: cbq bandwidth 10Mbit avpkt 1000 tc class add dev eth0 parent 10:0 classid 10:200 cbq bandwidth 10Mbit rate 128Kbit allot 1514 weight 12Kbit prio 5 maxburst 20 avpkt 1000 bounded tc qdisc add dev eth0 parent 10:200 sfq quantum 1514b perturb 15 tc filter add dev eth0 parent 10:0 rotocol ip prio 3 u32 match ip dst 192.168.1.0/24 flowid 10:200 but when I'm teting these rules by downloading some files to our LAN, The traffic always begins with a high traffic ~100KB/s for several seconds then the traffic dropped to the desired level 16KB/s I also notice when I'm doing several ftp's the traffic exceeded the desired level by a liitle KB/s How can resolve this ? _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/