Re: Excess Bandwidth

Linux Advanced Routing and Traffic Control

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

 




Sorry for my insistence, but I have tried to use different "prios" based on the class rate and what happens is that the class that has more rate, and in this case more priority, will borrow almost all the excess bandwidth.
Like I said, I have read that htb share its excess bandwidth proportionaly to the class rates its childrens are assigned.
I made a test and based on the statistics of "tc ouput" we can see that the class that has more rate "borrowed" less of the excess bandwidth.
Another question is what is the meaning of "lended" in htb? To me it is a little bit confusing.



[root@teste_hsbc htb]# tc -s -d class show dev pvc0
class htb 1:2 root rate 512Kbit ceil 512Kbit burst 2254b/8 mpu 0b cburst 2254b/8 mpu 0b level 7
Sent 7543402 bytes 5031 pkts (dropped 0, overlimits 0)
rate 37748bps 25pps
lended: 2112 borrowed: 0 giants: 0
tokens: 27488 ctokens: 27488


class htb 1:3 parent 1:2 leaf 3: prio 1 quantum 1000 rate 50Kbit ceil 512Kbit burst 1664b/8 mpu 0b cburst 2254b/8 mpu 0b level 0
Sent 2068254 bytes 1377 pkts (dropped 2988, overlimits 0)
rate 11268bps 7pps
lended: 493 borrowed: 884 giants: 0
tokens: -326656 ctokens: 9488


class htb 1:4 parent 1:2 leaf 4: prio 1 quantum 1280 rate 100Kbit ceil 512Kbit burst 1728b/8 mpu 0b cburst 2254b/8 mpu 0b level 0
Sent 2588080 bytes 1728 pkts (dropped 2644, overlimits 0)
rate 11335bps 7pps
lended: 980 borrowed: 748 giants: 0
tokens: 73728 ctokens: 20988


class htb 1:5 parent 1:2 leaf 5: prio 1 quantum 1920 rate 150Kbit ceil 512Kbit burst 1791b/8 mpu 0b cburst 2254b/8 mpu 0b level 0
Sent 2887068 bytes 1926 pkts (dropped 2447, overlimits 0)
rate 11696bps 7pps
lended: 1446 borrowed: 480 giants: 0
tokens: 74070 ctokens: 27488


Daniel Frederiksen wrote:

Hej Ronaldo

Remember to prioritize the excess bandwidth. If you are using the HTB
read the bottom section of the manual.:
http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm#prio

The "prio" parameter will help you with your problem, give the child
classes a priority from 1-3, where 1 is the highest priority and 3 is
the lowest.

On Fri, 2004-10-08 at 22:37, Ronaldo Z. Afonso wrote:


  Hi,

I'm trying to configure QoS on my linux in the following manner:
I have a main link with 64K, so I divided it in 3 classes of 18K, 14K and 9K with an excess (not used for classified traffic, just to be shared) of 23K. This excess should be distributed proportonally among the 3 classes, that is, the class that has more rate should borrow more bandwidth. What is happening is just the opposite, the class that has less rate is borrowing more bandwidth. A representation of my "hierarchical class layout" is as follow:


                             root - 64K

        A - 18K           B - 14K            C - 9K

I have read some documentation that says it should work exactly in this in way, but it is not happening in my environment. All the tests I did show me that the class with less rate is borrow more bandwidth.
Can anyone help me?



_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/




--
______________________________
Ronaldo Z. Afonso
Projetista de Software Jr.
Cyclades Brasil
ronaldo.afonso@xxxxxxxxxxxxxxx

Phone: 55 11 5033-3361
Fax: 55 11 5033-3388
www.cyclades.com.br
"Everywhere with Linux"

_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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