On Thursday 18 November 2004 19:27, richard lucassen wrote:
> This is one of my test classes:
>
> class htb 1:10 parent 1:1 prio 0 quantum 2048 rate 160Kbit ceil 400Kbit
> burst 1803b/8 mpu 0b cburst 2111b/8 mpu 0b level 0
>
> Q1: where does "level 0" stand for?
From /usr/src/linux-2.6.8/net/sched/sch_htb.c
    Levels:
    Each class is assigned level. Leaf has ALWAYS level 0 and root
    classes have level TC_HTB_MAXDEPTH-1. Interior nodes has level
    one less than their parent.

> Q2: where does this b/8 stand for?
Don't know.

> Q3: this is on a i386 platform, so timer resolution should be 10mS.
> According to the doc the minimal burst should be 10mS*160Kbit=1600. Why
> is it 1803?
From /usr/src/iproute2/tc/q_htb.c
        /* compute minimal allowed burst from rate; mtu is added here to make
           sute that buffer is larger than mtu and to have some safeguard 
space */

> Q4: I want this class to be able to allow 400Kbit burst during 3
> seconds. What value should I give to the burst parameter? Is this
> 400/160*1803=4507b?
400kbit * 3s = 1200kbit.
You can try this, but htb burst is not made for this.  It is made for burst of 
a few k.

Stef

-- 
[EMAIL PROTECTED]
�"Using Linux as bandwidth manager"
� � �http://www.docum.org/
_______________________________________________
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Reply via email to