From mboxrd@z Thu Jan 1 00:00:00 1970 From: bert hubert ahu@ds9a.nl Date: Wed, 18 Oct 2000 09:45:20 +0000 Subject: [LARTC] Bandwidth limiting problem Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org
On Wed, Oct 18, 2000 at 09:34:30AM +0200, Fredrik Rambris wrote:
> Daniel Bergqvist wrote:
> >=20
> > It works fine for me. Have you compiled the kernel with al=
l QoS settings on?
>=20
> Darn. I forgot the u32 rate esitmator... it works fine now. One=
 thing
> that the HOWTO doesn't really tell is if the upstream and downs=
tream is
> 128kbit+128kbit or 128kbit/128kbit (they share the same bandwid=
th).

It does tell you. Unless you use the ingress policer, you only limit
*outgoing* data on an interface. So if you want to limit both up and
downstream, you need 2 interfaces, and 2 sets of rules.

You can also use the ingress policer but that's a bit after the fact, as the
HOWTO says 'like throwing away half the letters you receive, in the hope
that people will stop sending you them'.

Regards,

bert hubert

>=20
>=20
> > > -----Ursprungligt meddelande-----
> > > Fr=E5n: boost@lxmul01aspm.admera.local
> > > [mailto:boost@lxmul01aspm.admera.local]F=F6r Fredrik Rambris
> > >
> > > tc qdisc add dev eth0 root handle 10: cbq bandwidth 1=
00Mbit avpkt 1000
> > >
> > > tc class add dev eth0 parent 10:0 classid 10:1 cbq ba=
ndwidth 10Mbit \
> > >   rate 100Mbit allot 1514 weight 1Mbit prio 8 maxburs=
t 20 avpkt 1000
> > >
> > > tc class add dev eth0 parent 10:1 classid 10:100 cbq =
bandwidth 100Mbit \
> > >   rate 128kbit allot 1514 weight 80Kbit prio 5 maxbur=
st 20 avpkt 1000 \
> > >   bounded
> > >
> > > tc qdisc add dev eth0 parent 10:100 sfq quantum 1514b=
 perturb 15
> > >
> > > tc filter add dev eth0 parent 10:0 protocol ip prio 1=
00 u32 match ip \
> > >   dst 192.168.3.0/24 flowid 10:100
> >=20
> > _______________________________________________
> > LARTC mailing list / LARTC@mailman.ds9a.nl
> > =
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
>=20
> --=20
> Admera Solution Provider AB
> Tel: 0733-850 814
> Position: 55=B036=B413N  13=B003=B436E
Content-Description: Card for Fredrik Rambris


--=20
PowerDNS                     Versatile DNS Services =20
Trilab                       The Technology People  =20
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet