LARTC
[Top] [All Lists]

[LARTC] Prio class HTB

To: <lartc@mailman.ds9a.nl>
Subject: [LARTC] Prio class HTB
From: "LERMOYER Alain RD-RESA-ISS" <alain.lermoyer@orange-ftgroup.com>
Date: Wed, 20 Jun 2007 15:05:39 +0200
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
Sender: lartc-bounces@mailman.ds9a.nl
Thread-index: AcezO7rjrL0xuYWnS3S3G8Bx5Oh0wg==
Thread-topic: 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@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
<Prev in Thread] Current Thread [Next in Thread>