Hello everyone,
We are working on HTB with TC and would like some clarifications from
your part.
Our example is as follows. We have one HTB root class and two HTB
classes attached to it, as in this figure :
1: HTB
|
|
|
---------------------------------------------------------------------
| |
|
++++++++++++++++++++++++++ ++++++++++++++++++++++++++
++++++++++++++++++++++
+ 1:10 HTB + + 1:20 HTB + +
1:30 HTB +
+(parameters, ex: prio 0)+ +(parameters, ex: prio 1)+ +
+
++++++++++++++++++++++++++ ++++++++++++++++++++++++++
++++++++++++++++++++++
| |
|
| |
|
---------------------------------------------------------------------
|
| (dequeue to hardware)
|
The configuration script is :
$ tc class add dev ath0 parent 1: classed 1:1 htb rate 100kbps ceil
100kbps burst 2k
$ tc class add dev ath0 parent 1:1 classed 1:10 htb rate 30kbps ceil
60kbps burst 2k prio 0
$ tc class add dev ath0 parent 1:1 classed 1:20 htb rate 10kbps ceil
100kbps burst 2k prio 1
$ tc class add dev ath0 parent 1:1 classed 1:30 htb rate 60kbps ceil
100kbps burst 2k
Our questions are :
1- How priority between classes are defined within HTB ? What
parameter(s) do we need to specify ?
2- How does the dequeuing algorithm in HTB work ?
As our understanding, the "prio" parameter specifies the priority
order
between the two classes regarding the token sharing policy.
Is this parameter also involved in the classes mixing-up order at the
output (dequeue to hardware) ?
Thank you for your help.
Alain.L
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
LERMOYER Alain RD-RESA-ISS wrote:> > > Hello everyone, > > We are working on HTB with TC and would like some clarifications from > your part. > Our example is as follows. We have one HTB root class and two HTB > classes attached to it, as in this figure : > 1: HTB > | > | > | > > --------------------------------------------------------------------- > | | > | > ++++++++++++++++++++++++++ ++++++++++++++++++++++++++ > ++++++++++++++++++++++ > + 1:10 HTB + + 1:20 HTB + + > 1:30 HTB + > +(parameters, ex: prio 0)+ +(parameters, ex: prio 1)+ + > + > ++++++++++++++++++++++++++ ++++++++++++++++++++++++++ > ++++++++++++++++++++++ > | | > | > | | > | > > --------------------------------------------------------------------- > | > | (dequeue to hardware) > | > > > The configuration script is : > > $ tc class add dev ath0 parent 1: classed 1:1 htb rate 100kbps ceil > 100kbps burst 2kkbps = kbytes/sec kbit for bits. HTB uses Hz which means at high bitrates a backlogged class will need more than 2k burst to reach its rate/ceil.> Our questions are : > 1- How priority between classes are defined within HTB ? What > parameter(s) do we need to specify ?prio 0 is top for htb classes, 1 is top for tc filters.> 2- How does the dequeuing algorithm in HTB work ?http://luxik.cdi.cz/~devik/qos/htb/manual/theory.htm> > As our understanding, the "prio" parameter specifies the priority order > between the two classes regarding the token sharing policy. > Is this parameter also involved in the classes mixing-up order at the > output (dequeue to hardware) ?Don''t really know what you mean here. Andy.
On Mon, 25 Jun 2007 00:11:08 +0100 Andy Furniss <lists@andyfurniss.entadsl.com> wrote:> > Our questions are : > > 1- How priority between classes are defined within HTB ? What > > parameter(s) do we need to specify ? > > prio 0 is top for htb classes, 1 is top for tc filters.0 (zero) is the highest, right? What are the lowest for classes and filters? Ethy
Ethy H. Brito wrote:> On Mon, 25 Jun 2007 00:11:08 +0100 > Andy Furniss <lists@andyfurniss.entadsl.com> wrote: > >>> Our questions are : >>> 1- How priority between classes are defined within HTB ? What >>> parameter(s) do we need to specify ? >> prio 0 is top for htb classes, 1 is top for tc filters. > > 0 (zero) is the highest, right? What are the lowest for classes and filters? > > Ethy > >From a quick test it looks like 64k for filters and 7 for htb even though both will let you enter higher values. Andy.