| To: | lartc@mailman.ds9a.nl |
|---|---|
| Subject: | [LARTC] Traffic Shaping over Satellite Internet |
| From: | "Randy Wallace" <randywallacejr@gmail.com> |
| Date: | Thu, 15 Mar 2007 12:11:34 +0300 |
| Delivered-to: | sp-com-lists@consult.net |
| Delivered-to: | lartc-list@securepoint.com |
| Delivered-to: | lartc@outpost.ds9a.nl |
| Dkim-signature: | a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=l9/h09H9U5E4T5bVK3/HlnUWVprQc9GcjJJIAiIsWgi6E3NcLfpEljcBFc8RQASv5ykuFY62fRajya6ODaUyVMnk2nVEBACfQ9YCx0+qGdDNvxfiMY+XL8UvMT4vOb+Cr+1m6nnUWhOYVuyO/HfVTHEcCnr7dddFaPRKB7wNWPk= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=eRKaKcxsXMYQ6KhA6RAW75iYFtR1fwz0pSJz2x8jsmVm9wvYQo7PDrOoOnCPjs+ZJ1D0r8z2QdRlX2wDeK+00WBrPh7w7Sch4squPC/2cPwWjIEu39qpDnoU9TU9ckmQ0aXCMoZmy/AlvLL9vU28QUzn3pNX1YaYG63Hf/iZMUA= |
| List-archive: | <http://mailman.ds9a.nl/pipermail/lartc> |
| List-help: | <mailto:lartc-request@mailman.ds9a.nl?subject=help> |
| List-id: | "Mailinglist of the Linux Advanced Routing & Traffic Control project" <lartc.mailman.ds9a.nl> |
| List-post: | <mailto:lartc@mailman.ds9a.nl> |
| List-subscribe: | <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe> |
| List-unsubscribe: | <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe> |
| Sender: | lartc-bounces@mailman.ds9a.nl |
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 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [LARTC] Problem attaching htb class to a htb qdisc, Ruben Porras |
|---|---|
| Next by Date: | Re: [LARTC] Traffic Shaping over Satellite Internet, Oscar Mechanic |
| Previous by Thread: | [LARTC] Problem attaching htb class to a htb qdisc, Ruben Porras |
| Next by Thread: | Re: [LARTC] Traffic Shaping over Satellite Internet, Oscar Mechanic |
| Indexes: | [Date] [Thread] [Top] [All Lists] |