📄 shaper.txt
字号:
Traffic Shaper For LinuxThis is the current BETA release of the traffic shaper for Linux. It workswithin the following limits:o Minimum shaping speed is currently about 9600 baud (it can onlyshape down to 1 byte per clock tick)o Maximum is about 256K, it will go above this but get a bit blocky.o If you ifconfig the master device that a shaper is attached to downthen your machine will follow.o The shaper must be a module.Setup: A shaper device is configured using the shapeconfig program.Typically you will do something like thisshapecfg attach shaper0 eth1shapecfg speed shaper0 64000ifconfig shaper0 myhost netmask 255.255.255.240 broadcast 1.2.3.4.255 uproute add -net some.network netmask a.b.c.d dev shaper0The shaper should have the same IP address as the device it is attached tofor normal use.Gotchas: The shaper shapes transmitted traffic. It's rather impossible toshape received traffic except at the end (or a router) transmitting it. Gated/routed/rwhod/mrouted all see the shaper as an additional deviceand will treat it as such unless patched. Note that for mrouted you can runmrouted tunnels via a traffic shaper to control bandwidth usage. The shaper is device/route based. This makes it very easy to usewith any setup BUT less flexible. You may need to use iproute2 to set upmultiple route tables to get the flexibility. There is no "borrowing" or "sharing" scheme. This is a simpletraffic limiter. We implement Van Jacobson and Sally Floyd's CBQarchitecture into Linux 2.2. This is the preferred solution. Shaper isfor simple or back compatible setups.Alan
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -