[LARTC] a couple of questions regarding htb
Serge Maandag
serge.maandag@staff.zeelandnet.nl
Mon, 19 Jan 2004 15:52:09 +0100
This is a multi part message in MIME format.
--_NextPart_1_qmZrHLajoetbkwlTZTViemHPfyb
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Dear list,
=20
I want to rate-limit a couple of customers in both up and down
directions.
They get a different speed for traffic staying on our network than for
traffic towards/from the internet,
so that's a master class and 2 child classes per customer per interface.
=20
I made a test setup with cbq which worked, but wasn't too reliable I
measured a tolerance of about 30%.
I read that cbq is not maintained, htb is much more reliable, and I
believe I can do the same classful=20
stuff mentioned above with htb.
=20
Am I correct?
=20
The box I will use to limit the traffic on has 3 ethernet connections
with customers and 1 uplink.
I read somewhere that only outgoing traffic can be limited.=20
=20
Is that correct or will limiting of incoming traffic work but isn't it
just as reliable?
=20
If I would filter outgoing traffic from the customer on the box, I would
have to do that on every=20
interface except for the one the customer is on. Therefore the client
will be able to sent out
more traffic than allowed, if it is spread over multiple outgoing
interfaces.=20
=20
Is there a solution to this?
=20
I figure I can not make classes that span multiple interfaces to limit
the total traffic leaving the=20
box and coming from the customer?
=20
If I use ip aliasing (a la eth0:1), does that mean I would have to make
qdiscs/classes for eth0:1
or will the traffic be covered by the qdisc/classes on eth0?
=20
Uhmm, that's enough for now.
=20
Thanks a lot to everyone who can help me a bit further.
=20
Serge.
-------------
Op de inhoud van dit e-mailbericht en de daaraan gehechte bijlagen is de =
inhoud van de volgende disclaimer van toepassing: =
http://www.zeelandnet.nl/disclaimer.php
--_NextPart_1_qmZrHLajoetbkwlTZTViemHPfyb
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial size=3D2>Dear=20
list,</FONT></SPAN></DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial size=3D2>I want =
to rate-limit=20
a couple of customers in both up and down =
directions.</FONT></SPAN></DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial size=3D2>They get =
a different=20
speed for traffic staying on our network than for traffic =
towards/from=20
the internet,</FONT></SPAN></DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial size=3D2>so =
that's a master=20
class and 2 child classes per customer per interface.</FONT></SPAN></DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial size=3D2>I made a =
test setup=20
with cbq which worked, but wasn't too reliable I measured a tolerance of =
about=20
30%.</FONT></SPAN></DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial size=3D2>I read =
that cbq is=20
not maintained, htb is much more reliable, and I =
</FONT></SPAN><SPAN=20
class=3D083472014-19012004><FONT face=3DArial size=3D2>believe I can do =
the same=20
classful </FONT></SPAN></DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial size=3D2>stuff =
mentioned=20
above with htb.</FONT></SPAN></DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial size=3D2>Am I=20
correct?</FONT></SPAN></DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial size=3D2>The box =
I will=20
use to limit the traffic on has 3 ethernet connections with customers =
and 1=20
uplink.</FONT></SPAN></DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial size=3D2>I read =
somewhere=20
that only outgoing traffic can be limited. </FONT></SPAN></DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial size=3D2>Is that =
correct=20
or will limiting of incoming t</FONT></SPAN><SPAN=20
class=3D083472014-19012004><FONT face=3DArial size=3D2>raffic work but =
isn't it just=20
as reliable?</FONT></SPAN></DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial size=3D2>If I =
would filter=20
outgoing traffic from the customer on the box, I would have to do that on =
every=20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial =
size=3D2>interface except for=20
the one the customer is on. Therefore the client will be able to sent=20
out</FONT></SPAN></DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial size=3D2>more =
traffic than=20
allowed, if it is spread over multiple outgoing interfaces.=20
</FONT></SPAN></DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial size=3D2>Is there =
a solution=20
to this?</FONT></SPAN></DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial size=3D2>I figure =
I can not=20
make classes that span multiple interfaces to limit the total traffic =
leaving=20
the </FONT></SPAN></DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial size=3D2>box and =
coming from=20
the customer?</FONT></SPAN></DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial size=3D2>If I use =
ip aliasing=20
(a la eth0:1), does that mean I would have to make qdiscs/classes for=20
eth0:1</FONT></SPAN></DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial size=3D2>or will =
the traffic=20
be covered by the qdisc/classes on eth0?</FONT></SPAN></DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial size=3D2>Uhmm, =
that's enough=20
for now.</FONT></SPAN></DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial size=3D2>Thanks a =
lot to=20
everyone who can help me a bit further.</FONT></SPAN></DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D083472014-19012004><FONT face=3DArial=20
size=3D2>Serge.</FONT></SPAN></DIV>
<p></p>
-------------<br>
Op de inhoud van dit e-mailbericht en de daaraan gehechte bijlagen is de =
inhoud van de volgende disclaimer van toepassing: =
http://www.zeelandnet.nl/disclaimer.php<br>
</body>
</html>
--_NextPart_1_qmZrHLajoetbkwlTZTViemHPfyb--