All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] limiting doesn't work
@ 2004-07-10 21:02 Stephan M. Ott
  2004-07-11  0:49 ` gypsy
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stephan M. Ott @ 2004-07-10 21:02 UTC (permalink / raw)
  To: lartc

Hi folks,

I read the fantastic LARTC How-to and after that i tried to limit one
host in my LAN for both down-and upload bandwidth usage.
I took section 15.9. and added uplink-limiting as I understood it from
the previous chapters.
Unfortunately it doesn't work.
I ran the script and went to the specified PC, started a download, and
watched the rate. The rate was always about 2000 kbit/s, though I
defined (well, at least I thought so) 768 kbit/s as maximum rate.
Can anyone please look at the script and tell me, what must be corrected
in order for it to work ?
Thanks in advance.

This is the script:

#!/bin/bash
LIMITDOWNv8
LIMITUP–
DEV=ppp0

# clean up qdiscs
tc qdisc del dev $DEV root 2> /dev/null > /dev/null

# limit up- and downlink for benni
tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 2mbit
tc class add dev $DEV parent 1: classid 1:1 cbq rate ${LIMITDOWN}kbit
allot 1500 prio 5 bounded isolated
tc class add dev $DEV parent 1: classid 1:2 cbq rate ${LIMITUP}kbit
allot 1500 prio 5 avpkt 1000
tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip dst
192.168.0.51 flowid 1:1
tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip src
192.168.0.51 flowid 1:2
#tc qdisc add dev $DEV parent 1:1 sqf perturb 10
#tc qdisc add dev $DEV parent 1:2 sqf perturb 10

I commented out the last 2 lines for testing so that the rate is always
limited.

Any ideas ?

Thanks.

Stephan

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-07-11  5:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-10 21:02 [LARTC] limiting doesn't work Stephan M. Ott
2004-07-11  0:49 ` gypsy
2004-07-11  1:46 ` Andrew Athan
2004-07-11  5:57 ` AW: " Stephan M. Ott

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.