HTB, rate and ceil question

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux