From: Stef Coene Date: Sun, 28 Mar 2004 21:05:18 +0000 Subject: Re: [LARTC] R2Q and more Message-Id: <200403282305.18926.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 Sunday 28 March 2004 21:18, 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 shapi= ng It will work more then you think. On the short term, traffic can be bursty= =20 for the different classes, but each one will belimited to 8kbit. But on th= e=20 long term, each class will get the same share of bandwidth. > > Q3. What happens if the ISP does not guarantee a '"'full > 256kbit'"' > > bandwidth? > > (Suppose that I set my Linux box to shape 256kbit and my ISP > provides me > > only 128kbit during high-traffic hours). Will HTB work > correctly? > Yes. > ----- > For certain this is wrong, I dont understand why you say so, because > everybody knows that you must limit ceil to a bit lover than you get from > isp > if you have unknown trafic you cant limit it. Ok, my error. I forgot about the "make sure YOU are the bottlleneck". I=20 thought it was a variant on question Q2. > > Q4. As far as I understood R2Q means the ratio between the RATE > and the > > QUANTUM of a class... Which is more '"'powerful'"'? The > RATE, or the QUANTUM? > > > (e.g. ClassA---QUANTUM 3000---RATE 8kbit, or > > ClassB---QUANTUM 1500---RATE 16kbit) > > r2q is used to calculate the default quantum of a class: quantum =3Date /= r2q > But you can overrule this default quantum when you add a class. > ------ > quantum is more powerfull and usefull. since rate of 8kbit is insignifica= nt > speed anyway > but it may be harder to calculate( didt tested if quantum can completely > replace rate effect) > in your example class A will get 2 times more bandwitch than class B To be correct, it also depends on the packet size. If you have packets of = 1499 bytes in class B and 1500 bytes in class A, both class will get the sa= me=20 rate. Why? Quantum for class B is 1500, so you can send 2 packets and the= se=20 2 packets are counted as 1500 bytes. > > Q5. The HTB Manual says that the sum of the LEAF CLASSES RATE > must be > > equal to the PARENT CLASS RATE. Is there such a rule for > QUANTUMS? > No > ---- > seems correct, > htb manual says nonsense, > neither rates nether quantums need to be equal, > but child sum rates and quantums ONLY SHOULD be less or equal to parent. > quantums for schild basicaly should be not higer than parent quantums, el= se > result may be starange. I'm not sure but, isn't quanum only used for leaf classes? So the quantum = of=20 parent classes doesn't mather ? 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/