burst question
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?
Q2: where does this b/8 stand for?
Q3: this is on a i386 platform, so timer resolution should be 10mS. According to the doc the minimal burst should be 10mS*160Kbit00. Why is it 1803?
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*1803E07b?
TIA,
Richard.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 6 lines · richard lucassen
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.
Quoted 1 line
Q2: where does this b/8 stand for?
Don't know.
Quoted 3 lines
Q3: this is on a i386 platform, so timer resolution should be 10mS. According to the doc the minimal burst should be 10mS*160Kbit00. 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 */
Quoted 3 lines
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*1803E07b?
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
Signature · 6 lines
[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/
On Thu, 18 Nov 2004 22:50:17 +0100
Stef Coene <[email protected]> wrote:
[..]
Quoted 6 lines
Quoted 3 lines
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*1803E07b?
400kbit * 3s = 1200kbit.
You can try this, but htb burst is not made for this. It is made for burst of a few k.
So a burst of 20k means the next 20kbit waiting in the queue will be sent in one burst before switching to another queue. This also means that this block of 20kbit is sent full speed over the line and it is not limited by any ceiling or whatsoever.
Right or wrong?
R.
Signature · 11 lines
___________________________________________________________________ Recursion: see recursion +------------------------------------------------------------------+ | Richard Lucassen, Utrecht | | Public key and email address: | | http://www.lucassen.org/mail-pubkey.html | +------------------------------------------------------------------+ _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 13 lines · richard lucassen
On Thu, 18 Nov 2004 22:50:17 +0100
Stef Coene <[email protected]> wrote:[..]
Quoted 7 lines
Quoted 3 lines
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*1803E07b?
400kbit * 3s = 1200kbit.
You can try this, but htb burst is not made for this. It is made for burst of a few k.
Quoted 6 lines
So a burst of 20k means the next 20kbit waiting in the queue will be sent in one burst before switching to another queue. This also means that this block of 20kbit is sent full speed over the line and it is not limited by any ceiling or whatsoever.
Right or wrong?
Wrong. There are 2 bursts: a burst for the rate and a cburst for the ceil. So if you have a burst, it's still checked against the ceil. Check out
http://www.docum.org/docum.org/tests/htb/burst/
for some tests.
Stef
Signature · 6 lines
[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/