[LARTC] tc troubles

Linux Advanced Routing and Traffic Control

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

 



Hi all,
Its a while we are trying to use "tc" for bandwidth control. But each time
we apply tc rules  to the network, we experience a lot of service
degradation. The usage we are mostly concerned about, is bandwidth control
of a group of IP addresses. We mark that subnet with IPChains and then apply
the tc rules. These are the rules applied to eth5 in order to limit the
uplink of packets marked "7" by ipchains:
# /sbin/tc class sh dev eth5
class cbq 40: root rate 100Mbit (bounded,isolated) prio no-transmit
class cbq 40:1 parent 40: rate 100Mbit prio no-transmit
class cbq 40:300 parent 40:1 leaf 8025: rate 200Kbit (bounded) prio 5
# /sbin/tc qdisc sh dev eth5
qdisc tbf 8025: rate 200Kbit burst 25Kb lat 1us
qdisc cbq 40: rate 100Mbit (bounded,isolated) prio no-transmit
[root@xxxxx naimi]# /sbin/tc filter sh dev eth5
filter parent 40: protocol ip pref 1 fw
filter parent 40: protocol ip pref 1 fw handle 0x7 classid 40:300
filter parent 40: protocol ip pref 80 u32
filter parent 40: protocol ip pref 80 u32 fh 800: ht divisor 1
filter parent 40: protocol ip pref 80 u32 fh 800::800 order 2048 key ht 800
bkt 0 flowid 40:100

As I mentioned, the service degraded severely: pig time of internet sites
increased about 300-500 ms!!
Does anybody know what is wrong with my configuration?

Best Regards
Hoomaan Naimi
Afranet Network Administrator






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