Re: htb3 & imq

Linux Advanced Routing and Traffic Control

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

 



> $htb class add dev imq0 parent 2:20 classid 2:2020 htb quantum 1096 rate
> 36kbit ceil 42kbit
> $htb class add dev imq0 parent 2:20 classid 2:2021 htb quantum 1096 rate
> 36kbit ceil 46kbit

> the mannual says >>> "..Normaly you don't need to specify quantums
> manualy as HTB chooses precomputed values. It computes classe's quantum
> (when you add or change it) as its rate divided by r2q global parameter...
> " why in thiscase the default quabum reported error/taken too small ? can u
> please elaborate on r2q... how is it calculated, as the mannual says 
> default value 10 !
> what does these error signifies?..
Each class can send quantum bytes at a time.  You specified quantum = 1096 
wich is bigger then the MTU (mostly 1500).  If you have a big packet of 1500 
byte and a quantum of 1096 byte, you are only allowed to send 1096 byte.  But 
the packet is sended anyway and a warning message is logged.

Quantum is calculated as rate / r2q.  r2q iq by default 10 and can be 
overruled if you create the heb qdisc.  Quantum can be overruled when you add 
a class.

You should choose r2q so that the class with the smallest rate has a quantum 
equal to MTU.  Because quantum is used by each class to send quantum bytes at 
a time, you should take quantum proportional to the rate so each class is 
getting the bandwidth you want to get it.  So leaving quantum untouched, but 
changing r2q is a good choice.

Taking too big quantums can cause delays.  All classes can send it's quantum 
bytes before the first class may send again.  So how bigger the quantum, the 
longer it takes before a class can send again.

I have some more info about it on www.docum.org on the faq page.
But not so much as I typed now :)

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
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