Prio class HTB

Linux Advanced Routing and Traffic Control

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

 



Title: Prio class HTB



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@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