Re: Prio class HTB

Linux Advanced Routing and Traffic Control

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

 



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 2k

kbps = 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.
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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