From: Boris Gereg Date: Mon, 20 Feb 2006 21:59:33 +0000 Subject: [LARTC] HTB, strange capacity distribution Message-Id: <131577286.20060220225933@elusion.sk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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: RATE0Mbit ( local traffic: RATEPMbit CEIL0Mbit PRIO=0 ) "ctrl" class: RATEdkbit CEIL%6kbit PRIO=1 "other" class: RATE8kbit 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