All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oscar Mechanic <oscar@ufomechanic.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Traffic Shaping over Satellite Internet
Date: Thu, 15 Mar 2007 09:29:55 +0000	[thread overview]
Message-ID: <1173950995.4424.48.camel@OSCARLAPLIN> (raw)
In-Reply-To: <861508be0703150211y3845b8aci213e9b29492f50fe@mail.gmail.com>


Shaping on satellite can be a bad idea. Depends on who your provider is.
Some satellite providers use SCPS http://www.scps.org/ as a means to
increase performance. Simply put if you start shaping and drop ACK's you
will end up with connections hangs. 

I am really surprised we do not hear more about SCPS in this forum. 


On Thu, 2007-03-15 at 12:11 +0300, Randy Wallace wrote:
> 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.nlhttp://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

  reply	other threads:[~2007-03-15  9:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-15  9:11 [LARTC] Traffic Shaping over Satellite Internet Randy Wallace
2007-03-15  9:29 ` Oscar Mechanic [this message]
2007-03-16  6:55 ` Randy Wallace
2007-03-16  7:24 ` lartc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1173950995.4424.48.camel@OSCARLAPLIN \
    --to=oscar@ufomechanic.net \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.