From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Marius Cristian CONSTANTIN" Date: Sat, 13 Apr 2002 21:52:40 +0000 Subject: [LARTC] Bandwidth sharing... MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0092_01C1E34E.AD831DD0" Message-Id: List-Id: To: lartc@vger.kernel.org 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
    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).
    If I = set 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.
    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?
    I've created several = files with=20 cbq.init like that:
 
root@mail:/etc/cbq# cat=20 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=3D= 192.168.5.0/24,192.168.6.0/24
root@mail:/etc/cbq# cat=20 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/16= Kbit
root@mail:/etc/cbq# cat=20 cbq-129.DSD-P2P         &nbs= p; =20
DEVICE=3Deth0,100Mbit,10Mbit
RATE=3D120Kbit
WEIGHT=3D12Kbit
= PRIO=3D8
PARENT=3D128
BOUNDED=3Dyes
RULE=3D:1214
RULE=3D,:121= 4
RULE=3D:6346
RULE=3D,:6346
TIME=3D20:00-06:00;60Kbit/6Kbit
root@mail:/etc/cbq# cat=20 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-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/