All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Traffic Shaping over Satellite Internet
@ 2007-03-15  9:11 Randy Wallace
  2007-03-15  9:29 ` Oscar Mechanic
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Randy Wallace @ 2007-03-15  9:11 UTC (permalink / raw)
  To: lartc

I've set up Traffic Shaping on a Linux Router.
Using HTB with SFQ, i'm trying to slow down
heavy downloading for 20 subscribers over
a 2048 kbit downlink.  I'm classifying internet related
traffic using iptables marking.

bri0 is my local lan bridge, receiving egress traffic destined for subscribers.

tc qdisc add dev bri0 root handle 1: htb default 2
tc class add dev bri0 parent 1: classid 1:1 htb rate 92129kbit ceil 102400kbit
tc class add dev bri0 parent 1:1 classid 1:2 htb rate 90072kbit ceil 92129kbit
tc class add dev bri0 parent 1:1 classid 1:3 htb rate 2048kbit ceil 92129kbit
# Non-Internet Local Lan Traffic
tc qdisc add dev bri0 parent 1:2 handle 2: sfq perturb 10
# Internet Traffic
tc class add dev bri0 parent 1:3 classid 1:9 htb rate 50kbit ceil 100kbit
# Unknown Internet Traffic
tc qdisc add dev bri0 parent 1:9 handle 9: sfq perturb 10
# Known Subscribers, based on IP Address, ea. subscriber gets their own class,
# starting with 1:10 (a script populates the classes for me)
tc class add dev bri0 parent 1:3 classid 1:(10->X) htb rate 100kbit ceil 400kbit
tc qdisc add dev bri0 parent 1:(10->X) handle (10->X): sfq perturb 10

Then the classifier:
# Send Internet traffic, marked 3, to Class 1:3
tc filter add dev bri0 protocol ip parent 1: prio 1 handle 3 fw flowid 1:3
# Send traffic, based on dest. IP to their corresponding classes
tc filter add dev bri0 protocol ip parent 1: prio 1 u32 match ip dst
10.200.0.(2->X)/32 flowid 1:((2->X) + 10)

Does this look like a good solution?  Can this really slow down heavy downloads,
so all subscribers can at least get ..some.. traffic?  Does traffic
shaping, not
policing, also drop packets when a HTB class exceeds it's rate, or does it just
wait until there are enough tokens?

Thank you for any guidance..
Randy
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

end of thread, other threads:[~2007-03-16  7:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-15  9:11 [LARTC] Traffic Shaping over Satellite Internet Randy Wallace
2007-03-15  9:29 ` Oscar Mechanic
2007-03-16  6:55 ` Randy Wallace
2007-03-16  7:24 ` lartc

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.