shaper
interface/ethernet/switch/shaper
Syscap: musicswitch
Type: Directory
Traffic shaping restricts the rate and burst size of the flow which is transmitted out from the interface. The shaper is implemented by a token bucket. If the packet exceeds the maximum rate or the burst size, which means not enough tokens for the packet, the packet is stored in the buffer until there are enough tokens to transmit it.
| Flag | Name | Description |
|---|---|---|
| X | disabled | |
| I | invalid |
| Argument | Type | Description |
|---|---|---|
| port ( mandatory ) | enum | Physical port for traffic shaper. |
| target | enum (queue0 | queue1 | queue2 | queue3 | queue4 | queue5 | queue6 | queue7 | wrr-group0 | wrr-group1 | port) { queue0:0, queue1:1, queue2:2, queue3:3, queue4:4, queue5:5, queue6:6, queue7:7, wrr-group0:8, wrr-group1:9, port:10 } | Three levels of shapers are supported on each port (including CPU port).
|
| meter-unit | enum (bit | packet) { bit:0, packet:1 } | Measuring units for traffic shaper rate. |
| rate | num | Maximum data rate limit. |
| burst | num | Maximum data rate which can be transmitted while the burst is allowed. |