Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 304038 Details for
Bug 444520
Please update iproute to 2.6.25 for rawhide/f9
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Traffic shaping script
shape.sh (text/plain), 4.71 KB, created by
Bruno Wolff III
on 2008-04-28 20:31:02 UTC
(
hide
)
Description:
Traffic shaping script
Filename:
MIME Type:
Creator:
Bruno Wolff III
Created:
2008-04-28 20:31:02 UTC
Size:
4.71 KB
patch
obsolete
>#!/bin/bash > ># The Ultimate Setup For Your Internet Connection At Home ># ># ># Set the following values to somewhat less than your actual download ># and uplink speed. In kilobits >DOWNLINK=1150 >UPLINK=370 >DEV=eth1 > ># clean existing down- and uplink qdiscs, hide errors >tc qdisc del dev $DEV root 2> /dev/null > /dev/null >tc qdisc del dev $DEV ingress 2> /dev/null > /dev/null > >###### uplink > ># install root HTB, point default traffic to 1:30: > >tc qdisc add dev $DEV root handle 1: htb default 30 > ># shape everything at $UPLINK speed - this prevents huge queues in your ># DSL modem which destroy latency: > >tc class add dev $DEV parent 1: classid 1:1 htb rate ${UPLINK}kbit burst 12k > ># high prio class 1:10: > >tc class add dev $DEV parent 1:1 classid 1:10 htb rate ${UPLINK/3}kbit \ > burst 12k prio 1 > ># Email class 1:20 - gets slightly less traffic, ># and a lower priority: > >tc class add dev $DEV parent 1:1 classid 1:20 htb rate $[$UPLINK/3]kbit \ > burst 12k prio 2 ceil $[1*$UPLINK/3]kbit > ># bulk & default class 1:30 - gets slightly less traffic, ># and an even lower priority: > >tc class add dev $DEV parent 1:1 classid 1:30 htb rate $[$UPLINK/4]kbit \ > burst 12k prio 3 ceil $[1*$UPLINK/4]kbit > ># all get Stochastic Fairness: >tc qdisc add dev $DEV parent 1:10 handle 10: sfq perturb 10 >tc qdisc add dev $DEV parent 1:20 handle 20: sfq perturb 10 >tc qdisc add dev $DEV parent 1:30 handle 30: sfq perturb 10 > ># TOS Minimum Delay (ssh, NOT scp) in 1:10: >tc filter add dev $DEV parent 1:0 protocol ip prio 10 u32 \ > match ip tos 0x10 0x10 flowid 1:10 > ># ICMP (ip protocol 1) in the interactive class 1:10 so we ># can do measurements & impress our friends: >tc filter add dev $DEV parent 1:0 protocol ip prio 10 u32 \ > match ip protocol 1 0xff flowid 1:10 > ># To speed up downloads while an upload is going on, put ACK packets in ># the interactive class: > >tc filter add dev $DEV parent 1: protocol ip prio 10 u32 \ > match ip protocol 6 0xff \ > match u8 0x05 0x0f at 0 \ > match u16 0x0000 0xffc0 at 2 \ > match u8 0x10 0xff at 33 \ > flowid 1:10 > ># Raise piority of inbound and outbound email data >tc filter add dev $DEV parent 1: protocol ip prio 20 u32 \ > match ip dport 25 0xffff \ > match ip protocol 6 0xff \ > flowid 1:20 > >tc filter add dev $DEV parent 1: protocol ip prio 20 u32 \ > match ip sport 25 0xffff \ > match ip protocol 6 0xff \ > flowid 1:20 > ># Raise priority of news >tc filter add dev $DEV parent 1: protocol ip prio 20 u32 \ > match ip dport 119 0xffff \ > match ip protocol 6 0xff \ > flowid 1:20 > >tc filter add dev $DEV parent 1: protocol ip prio 20 u32 \ > match ip sport 119 0xffff \ > match ip protocol 6 0xff \ > flowid 1:20 > ># rest is 'non-interactive' ie 'bulk' and ends up in 1:30 > > >########## downlink ############# ># slow downloads down to somewhat less than the real speed to prevent ># queuing at our ISP. Tune to see how high you can set it. ># ISPs tend to have *huge* queues to make sure big downloads are fast ># ># attach ingress policer: > >tc qdisc add dev $DEV handle ffff: ingress > ># Limit use to 2/3 of bandwidth to avoid voip problems > >tc filter add dev $DEV parent ffff: protocol ip prio 50 u32 match ip src \ > 0.0.0.0/0 police rate $[2*$DOWNLINK/3]kbit burst 12k drop > ># Make acks, icmp, dns, ssh and smtp higher priority. Some ssh (scp) and smtp ># (data) should really be low priority, but I don't have a good way to ># segregate them. > >tc filter add dev $DEV parent ffff: protocol ip prio 50 u32 \ > match ip protocol 6 0xff \ > match u8 0x05 0x0f at 0 \ > match u16 0x0000 0xffc0 at 2 \ > match u8 0x10 0xff at 33 \ > flowid :1 > >tc filter add dev $DEV parent ffff: protocol ip prio 50 u32 \ > match ip protocol 1 0xff \ > flowid :1 > >tc filter add dev $DEV parent ffff: protocol ip prio 50 u32 \ > match ip dport 53 0xffff \ > flowid :1 > >tc filter add dev $DEV parent ffff: protocol ip prio 50 u32 \ > match ip sport 53 0xffff \ > flowid :1 > >tc filter add dev $DEV parent ffff: protocol ip prio 50 u32 \ > match ip dport 22 0xffff \ > match ip protocol 6 0xff \ > flowid :1 > >tc filter add dev $DEV parent ffff: protocol ip prio 50 u32 \ > match ip sport 22 0xffff \ > match ip protocol 6 0xff \ > flowid :1 > >tc filter add dev $DEV parent ffff: protocol ip prio 50 u32 \ > match ip dport 25 0xffff \ > match ip protocol 6 0xff \ > flowid :1 > >tc filter add dev $DEV parent ffff: protocol ip prio 50 u32 \ > match ip sport 25 0xffff \ > match ip protocol 6 0xff \ > flowid :1 > ># Limit low priority to only 1/2 of the download bandwidth >tc filter add dev $DEV parent ffff: protocol ip prio 50 u32 match ip src \ > 0.0.0.0/0 police rate $[$DOWNLINK/2]kbit burst 24k drop flowid :1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 444520
: 304038