From: Felipe Szczesny Rout Date: Tue, 01 Nov 2005 19:56:20 +0000 Subject: [LARTC] HTB, rate and ceil question Message-Id: <1130874980.25463.36.camel@localhost.localdomain> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1648295628==" List-Id: To: lartc@vger.kernel.org --===============1648295628== Content-Type: multipart/alternative; boundary="=-V0exJo+VkYB1bnTTVa53" --=-V0exJo+VkYB1bnTTVa53 Content-Type: text/plain Content-Transfer-Encoding: 7bit Hello I have a 64kbits link to location and I need to limit the traffic of a machine (10.200.0.86) to this location to ensure that this machine will no use all th bandwidth, and I did a rule to this situation where the machine has it bandwith limited to 10kbits if there is other traffic to this location, otherwise it can use up to 54 kbits. tc qdisc add dev eth0 root handle 1: htb ... tc class add dev eth0 parent 1: classid 1:1640 htb rate 64kbit tc class add dev eth0 parent 1:1640 classid 1:1641 htb rate 10kbit ceil 54kbit tc class add dev eth0 parent 1:1640 classid 1:1642 htb rate 54kbit ceil 64kbit tc filter add dev eth0 protocol ip parent 1:0 prio 5 u32 match ip src 10.200.0.86 match ip dst 10.205.86.0/24 flowid 1:1641 tc filter add dev eth0 protocol ip parent 1:0 prio 5 u32 match ip dst 10.205.86.0/24 flowid 1:1642 ... The problem is that when 10.200.0.86 starts to use more than 10kbit it seems don't back to it again when other traffic back to the link and it is a heavy traffic, enough to use all 54kbit assigned to it. Does anybody else has observed this behaivor ? I'm using ntop to monitor the link. --=-V0exJo+VkYB1bnTTVa53 Content-Type: text/html; charset=utf-8 Hello

   I have a 64kbits link to location and I need to limit the traffic of a machine (10.200.0.86)  to this location to ensure that this machine will no use all th bandwidth, and I did a rule to this situation where the machine has it bandwith limited to 10kbits if there is other traffic to this location, otherwise it can use up to 54 kbits.

tc qdisc add dev eth0 root handle 1: htb

...

tc class add dev eth0 parent 1: classid 1:1640 htb rate 64kbit
tc class add dev eth0 parent 1:1640 classid 1:1641 htb rate 10kbit ceil 54kbit
tc class add dev eth0 parent 1:1640 classid 1:1642 htb rate 54kbit ceil 64kbit

tc filter add dev eth0 protocol ip parent 1:0 prio 5 u32 match ip src 10.200.0.86 match ip dst 10.205.86.0/24 flowid 1:1641
tc filter add dev eth0 protocol ip parent 1:0 prio 5 u32 match ip dst 10.205.86.0/24 flowid 1:1642


...

The problem is that when 10.200.0.86 starts to use more than 10kbit it seems don't back to it again when other traffic back to the link and it is a heavy traffic, enough to use all 54kbit assigned to it.

Does anybody else has observed this behaivor ?

I'm using ntop to monitor the link. --=-V0exJo+VkYB1bnTTVa53-- --===============1648295628== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============1648295628==--