[LARTC] HTB with 3 classes question...

Linux Advanced Routing and Traffic Control

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

 



Hi everyone.

Here is a HTB class definition:

tc class add dev eth1 parent 1:0 classid 1:2 htb rate 626kbit ceil 
626kbit burst 0k

#372kbit
  tc class add dev eth1 parent 1:2 classid 1:10 htb rate 370kbit ceil 
626kbit burst 0k
  tc class add dev eth1 parent 1:10 classid 1:110 htb rate 32kbit ceil 
32kbit burst 0k prio 1
  tc qdisc add dev eth1 parent 1:110 handle 11:0 pfifo limit 10
  tc class add dev eth1 parent 1:10 classid 1:120 htb rate 32kbit ceil 
626kbit burst 0k prio 2
  tc qdisc add dev eth1 parent 1:120 handle 12:0 sfq perturb 10
  tc class add dev eth1 parent 1:10 classid 1:130 htb rate 306kbit ceil 
626kbit burst 0k prio 3
  tc qdisc add dev eth1 parent 1:130 handle 13:0 sfq perturb 10


#192kbit
   tc class add dev eth1 parent 1:2 classid 1:20 htb rate 190kbit ceil 
626kbit burst 0k
   tc class add dev eth1 parent 1:20 classid 1:210 htb rate 30kbit ceil 
32kbit burst 0k prio 1
   tc qdisc add dev eth1 parent 1:210 handle 21:0 pfifo limit 10
   tc class add dev eth1 parent 1:20 classid 1:220 htb rate 160kbit ceil 
626kbit burst 0k prio 2
   tc qdisc add dev eth1 parent 1:220 handle 22:0 sfq perturb 10

   #64kbit
   tc class add dev eth1 parent 1:2 classid 1:30 htb rate 64kbit ceil 
64kbit burst 0k
   tc class add dev eth1 parent 1:30 classid 1:310 htb rate 32kbit ceil 
32kbit burst 0k prio 1
   tc qdisc add dev eth1 parent 1:310 handle 31:0 pfifo limit 10
   tc class add dev eth1 parent 1:30 classid 1:320 htb rate 32kbit ceil 
64kbit burst 0k prio 2
   tc qdisc add dev eth1 parent 1:320 handle 32:0 sfq perturb 10

I don't send you the tc filter as traffic seems to go in the designated 
classes. My problem: If all the machines are working, everything is 
fine. If only one class is using the network, again no problem. Yet if 
only class 372 and 192kbit are working the extra 64kbit are used by 
class 192kbit instead of being evenly distributed or in some % ... why?



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