[LARTC] Bandwidth sharing...

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a multi-part message in MIME format.

------=_NextPart_000_0092_01C1E34E.AD831DD0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

    I work as network administrator in a dept. from a bigger company, =
and I want to limit traffic in the night down to 160Kbit, without =
disrupting comunication with peers from the entire company. To make my =
self clear, the company has 2 class C networks, 1 for our dept, and the =
other for the rest of the company. So, I want to limit traffic to the =
Internet, but the traffic to the other class C won't be limited. Also =
another requirement is to limit all the day traffic like Morpheus, =
Kazaa, and stuff like that. The traffic should look like: internal to =
the company, no restriction. Peer2Peer traffic, 100Kbit day, 60Kbit in =
the night, Rest of the traffic not limited in the day, 160Kbit in the =
night. Also, if possible, traffic from the outside shouldn't be =
disturbed at all, any time (handled by root class).
    If I set the 130 class, without the TIME parameter, it won't limit =
the traffic in the night, despite the fact that the 130 class is a child =
for 128, which has the 160Kbit limit in the night and bounded. The 130 =
class has a sfq leaf, because I don't want a single user to hog the =
bandwidth.
    My questions are: why is the 130 class not limited to the bandiwidth =
of the parent? and second, should I do differently to get the same =
results?
    I've created several files with cbq.init like that:

root@mail:/etc/cbq# cat cbq-127.ourDept-AnotherDept=20
DEVICE=3Deth0,100Mbit,10Mbit
RATE=3D100Mbit
WEIGHT=3D10Mbit
PRIO=3D1
BOUNDED=3Dno
RULE=3D192.168.6.0/24,192.168.5.0/24
RULE=3D192.168.5.0/24,192.168.6.0/24

root@mail:/etc/cbq# cat cbq-128.ourDept-internet-total=20
DEVICE=3Deth0,100Mbit,10Mbit
RATE=3D100Mbit
WEIGHT=3D10Mbit
LEAF=3Dnone
PRIO=3D6
BOUNDED=3Dyes
TIME=3D20:00-06:00;160Kbit/16Kbit

root@mail:/etc/cbq# cat cbq-129.DSD-P2P           =20
DEVICE=3Deth0,100Mbit,10Mbit
RATE=3D120Kbit
WEIGHT=3D12Kbit
PRIO=3D8
PARENT=3D128
BOUNDED=3Dyes
RULE=3D:1214
RULE=3D,:1214
RULE=3D:6346
RULE=3D,:6346
TIME=3D20:00-06:00;60Kbit/6Kbit

root@mail:/etc/cbq# cat cbq-130.ourDept-internet=20
DEVICE=3Deth0,100Mbit,10Mbit
RATE=3D100Mbit
WEIGHT=3D10Mbit
PRIO=3D6
LEAF=3Dsfq
PARENT=3D128
BOUNDED=3Dno
RULE=3D192.168.5.0/24
RULE=3D192.168.5.0/24,
TIME=3D20:00-06:00;160Kbit/16Kbit



------=_NextPart_000_0092_01C1E34E.AD831DD0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4915.500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I work as network =
administrator=20
in a dept. from a bigger company, and I want to limit traffic in the =
night down=20
to 160Kbit, without disrupting comunication with peers from the entire =
company.=20
To make my self clear, the company has 2 class C networks, 1 for our =
dept, and=20
the other for the rest of the company. So, I want to limit traffic to =
the=20
Internet, but the traffic to the other class C won't be limited. Also =
another=20
requirement is to limit all the day traffic like Morpheus, Kazaa, and =
stuff like=20
that. The traffic should look like: internal to the company, no =
restriction.=20
Peer2Peer traffic, 100Kbit day, 60Kbit in the night, Rest of the traffic =
not=20
limited in the day, 160Kbit in the night. Also, if possible, traffic =
from the=20
outside shouldn't be disturbed at all, any time (handled by root=20
class).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; If&nbsp;I =
set&nbsp;the 130=20
class, without the TIME parameter, it won't limit the traffic in the =
night,=20
despite the fact that the 130 class is a child for 128, which has the =
160Kbit=20
limit in the night and bounded. The 130 class has a sfq leaf, because I =
don't=20
want a single user to hog the bandwidth.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; My questions are: =
why is the 130=20
class not limited to the bandiwidth of the parent? and second, should I =
do=20
differently to get the same results?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I've created several =
files with=20
cbq.init like that:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"mailto:root@mail:/etc/cbq";>root@mail:/etc/cbq</A># cat=20
cbq-127.ourDept-AnotherDept=20
<BR>DEVICE=3Deth0,100Mbit,10Mbit<BR>RATE=3D100Mbit<BR>WEIGHT=3D10Mbit<BR>=
PRIO=3D1<BR>BOUNDED=3Dno<BR>RULE=3D192.168.6.0/24,192.168.5.0/24<BR>RULE=3D=
192.168.5.0/24,192.168.6.0/24<BR></DIV></FONT>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"mailto:root@mail:/etc/cbq";>root@mail:/etc/cbq</A># cat=20
cbq-128.ourDept-internet-total=20
<BR>DEVICE=3Deth0,100Mbit,10Mbit<BR>RATE=3D100Mbit<BR>WEIGHT=3D10Mbit<BR>=
LEAF=3Dnone<BR>PRIO=3D6<BR>BOUNDED=3Dyes<BR>TIME=3D20:00-06:00;160Kbit/16=
Kbit<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"mailto:root@mail:/etc/cbq";>root@mail:/etc/cbq</A># cat=20
cbq-129.DSD-P2P&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;=20
<BR>DEVICE=3Deth0,100Mbit,10Mbit<BR>RATE=3D120Kbit<BR>WEIGHT=3D12Kbit<BR>=
PRIO=3D8<BR>PARENT=3D128<BR>BOUNDED=3Dyes<BR>RULE=3D:1214<BR>RULE=3D,:121=
4<BR>RULE=3D:6346</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>RULE=3D,:6346</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>TIME=3D20:00-06:00;60Kbit/6Kbit<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"mailto:root@mail:/etc/cbq";>root@mail:/etc/cbq</A># cat=20
cbq-130.ourDept-internet=20
<BR>DEVICE=3Deth0,100Mbit,10Mbit<BR>RATE=3D100Mbit<BR>WEIGHT=3D10Mbit<BR>=
PRIO=3D6<BR>LEAF=3Dsfq<BR>PARENT=3D128<BR>BOUNDED=3Dno<BR>RULE=3D192.168.=
5.0/24<BR>RULE=3D192.168.5.0/24,<BR>TIME=3D20:00-06:00;160Kbit/16Kbit<BR>=
</DIV>
<DIV></FONT><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0092_01C1E34E.AD831DD0--



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux