]> git.pld-linux.org Git - packages/shapecfg.git/blame - README.shaper
- spec adapterized
[packages/shapecfg.git] / README.shaper
CommitLineData
d8f7cf1c
JR
1
2Traffic Shaper For Linux
3
4This is the current ALPHA release of the traffic shaper for Linux. It works
5within the following limits:
6
7o Minimum shaping speed is currently about 9600 baud (it can only
8 shape down to 1 byte per clock tick)
9
10o Maximum is about 256K, it will go above this but get a bit blocky.
11
12o If you ifconfig the master device that a shaper is attached to down
13 then your machine will follow.
14
15o The shaper must be a module.
16
17
18Setup:
19
20A shaper device is configured using the shapeconfig program.
21Typically you will do something like this
22
23shapecfg attach shaper0 eth1
24shapecfg speed shaper0 64000
25ifconfig shaper0 myhost netmask 255.255.255.240 broadcast 1.2.3.4.255 up
26route add -net some.network netmask a.b.c.d dev shaper0
27
28The shaper should have the same IP address as the device it is attached to
29for normal use.
30
31Gotchas:
32
33 The shaper shapes transmitted traffic. It's rather impossible to
34shape received traffic except at the end (or a router) transmitting it.
35
36 Gated/routed/rwhod/mrouted all see the shaper as an additional device
37and will treat it as such unless patched. Note that for mrouted you can run
38mrouted tunnels via a traffic shaper to control bandwidth usage.
39
40 The shaper is device/route based. This makes it very easy to use
41with any setup BUT less flexible. You may well want to combine this patch
42with Mike McLagan 's patch to allow routes to be
43specified by source/destination pairs.
44
45 There is no "borrowing" or "sharing" scheme. This is a simple
46traffic limiter. I'd like to implement Van Jacobson and Sally Floyd's CBQ
47architecture into Linux one day (maybe in 2.1 sometime) and do this with
48style.
49
50
This page took 0.091986 seconds and 4 git commands to generate.