From: Stef Coene Date: Mon, 29 Mar 2004 09:23:17 +0000 Subject: Re: [LARTC] R2Q and more Message-Id: <200403291123.17102.stef.coene@docum.org> List-Id: References: <20040324161622.2266F4014@outpost.ds9a.nl> In-Reply-To: <20040324161622.2266F4014@outpost.ds9a.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org On Monday 29 March 2004 01:44, Roy wrote: > > > Q2. What happens if the SUM of all the clients' class RATE > (+ > > the > > > > > default class RATE) is bigger than 256kbit? Will HTB > > work > > > correctly? > > Yes. > > -------- > > This is incorrect: > > of course it will work more or less, but nearly same as without > > any shaping > It will work more then you think. On the short term, traffic can be burs= ty > for the different classes, but each one will belimited to 8kbit. But on > the long term, each class will get the same share of bandwidth. > ------ > basicaly this may work if difference is not big, There is one thing I learned: each setup and problem requires a different=20 aproaches. Sometimes, you can shape without being the bottlenek, sometimes= =20 you can"t. > but it was not working for me, I was trying to set rate 8kbit for everyon= e, > since the sum of rates was 3 times biger than parent ceil, trafic was > divided in unpredictable way. > then I set rate to 1 kbit and everything worked well filling syslog by > warnings that quantum is too small. > > logicaly this should not work because htb guarantee the rate amount trafi= c, > so what if there is not so much available? I 'm afraid the answer depends also on the client. The client that pushes = the=20 most, will get the most. > I'm not sure but, isn't quanum only used for leaf classes? So the quantum > of > parent classes doesn't mather ? > --------- > You may be right, since I did not checked source code for this, but > logicaly quantum is very significant part > and shoud work everywhere, I suppose quantum is about same as cburst, but > even more significant, > sems it is only way to divide bandwitch between classes with some > proportion. Quantum is only used if each child class is sending the configured rate and= =20 the parent class has some bandwidth left. So if sum (rate of child classes= )=20 =3D parent rate, quantum is never used. The class with the lowest prio wil= l=20 get the remaining bandwidth, so the configured rate is the minimum rate of = a=20 class. > ----------------- > I found strange limitation, if class have leafs, then I cant attach sfq to > it. You can, but it will never be used. > where will go unclasified packets from that class? Into root's default? In previous versions, it hangs your system. I think the packets are send i= n=20 the :0 class, this is a passthru class. Stef --=20 stef.coene@docum.org =A0"Using Linux as bandwidth manager" =A0 =A0 =A0http://www.docum.org/ =A0 =A0 =A0#lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/