All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] HTB, strange capacity distribution
@ 2006-02-20 21:59 Boris Gereg
  2006-02-20 22:59 ` Andreas Klauer
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Boris Gereg @ 2006-02-20 21:59 UTC (permalink / raw)
  To: lartc

Hello,

after spending several hours reading archives, I decided to write new
post.

I successfully set up packet classification, made some basic HTB
setup, made some simple graphical representation from HTB statistics
data...

BUT, I cannot figure out how to refine HTB to get this behaviour:
I need that class "p2p" should be the last one to get some link
capacity.

If I set both RATE and CEIL for "p2p" to some constant value,
everything is OK. When I set CEIL for "p2p" e.g. to 2048 kbps (total
link capacity), "p2p" starts to get most of the link capacity and does
not want to give capacity to other classes with higher priorities!


I made a screen to help explain my problem. Please, see this picture:
http://elusion.sk/visual_inet_hory.png

Point A - "p2p" class (red line) has both RATE and CEIL set to fixed
value. I started download from web to fill "www" class. You can see,
"www" got remaining link capacity, "p2p" without a change - all as
expected.

Point B - I reset CEIL of "p2p" class to 2048 kbit (to use rest of the
unused capacity by other classes with higher priorites, up to link
capacity)

Point C - I started the same download from web as in Point A and this
is the PROBLEM. You can see, that "p2p" lowered a bit, and "www" class
got some capacity. What I expect is, that "www" class get most of the
link capacity and "p2p" class will fall to it's RATE, because "http"
class has higher priority than "p2p"

Point D - CEIL of "p2p" reset to fixed value

Point E - I tried the same download from web just to be sure it works.


This is my HTB config (using latest htb-init script):

root:
RATE\x100Mbit

( local traffic:
RATEPMbit
CEIL\x100Mbit
PRIO=0 )

"ctrl" class:
RATEdkbit
CEIL%6kbit
PRIO=1

"other" class:
RATE\x128kbit
CEILv8kbit
PRIO=2

"www" class:
RATEQ2kbit
CEIL 48kbit
PRIO=3

"p2p" class:
RATE86kbit
CEIL86kbit (or 2048, for Points B and C in figure above)
PRIO=4

All want to set up is: If class "www" with prio 3 gets fully utilized
(I start 10 http downloads at the same time), I expect "p2p" class
with prio 4 to fall down to it's RATE 386 kbit - to free capacity for
"www" class

In another words: I expect "www" to overrule "p2p" ("p2p" still
getting it's RATE)


Can someone help to explain this? Maybe I did not get purpose of PRIO
setting, not sure. Help, please


Best Regards,
B. Gereg


_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-02-23  7:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-20 21:59 [LARTC] HTB, strange capacity distribution Boris Gereg
2006-02-20 22:59 ` Andreas Klauer
2006-02-21  7:52 ` Andreas Klauer
2006-02-21 13:21 ` Boris Gereg
2006-02-22 17:15 ` Andreas Klauer
2006-02-23  7:11 ` Andreas Klauer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.