Hi All, Im trying to implementing traffic shapping through HTB. My goal is to implement it in hierarchical manner. We have 3 departments in office; namely Web, admin, and software. My problem is to regarding parent child relationship. /sbin/tc qdisc del dev imq root # Create a root Q discipline /sbin/tc qdisc add dev imq root handle 1: htb default 1003 ##################################################################### # Create a Q discipline with 64 KBytes as a pipe for servers # 192.9.203.82 & 192.9.203.65 into Web # This should work in way that both IPs combined shud not get more than # 64kbps ??? ##################################################################### /sbin/tc class add dev imq parent 1:0 classid 1:1 htb rate 64kbps ##################################################################### # Now allow 192.9.203.65 and 192.9.203.82 to 48kbps individually # if the link is not used by the other but as defined above they # should not combined exceed 64kbps ??? ################################################################### /sbin/tc class add dev imq parent 1:1 classid 1:1001 htb rate 48kbps /sbin/tc class add dev imq parent 1:1 classid 1:1002 htb rate 48kbps /sbin/tc class add dev imq parent 1:1 classid 1:1003 htb rate 24kbps /sbin/tc qdisc add dev imq parent 1:1001 handle 1001: sfq perturb 10 /sbin/tc qdisc add dev imq parent 1:1002 handle 1002: sfq perturb 10 /sbin/tc qdisc add dev imq parent 1:1003 handle 1003: sfq perturb 10 ##################################################################### # Apply the filters where dest is the IPs 192.9.203.82 & 192.9.203.65 ##################################################################### /sbin/tc filter add dev imq protocol ip parent 1:0 prio 1 \ u32 match ip dst 192.9.203.82 flowid 1:1001 /sbin/tc filter add dev imq protocol ip parent 1:0 prio 1 \ u32 match ip dst 192.9.203.65 flowid 1:1002 ----------- End of small scripting setup -------------- The results got are not as those expected. The IPs combined go above 64kbps with each individually getting 48kbps at the same time. From where did it get more then 64kbps? Thanks for replies. -- Sumit