The suppression mode command sets the global traffic suppression mode.
The undo suppression mode command restores the default traffic suppression mode.
By default, the global traffic suppression mode is packets.
Only the S2720-EI, S5720I-SI, S5720-LI, S5720S-LI, S5720S-SI, S5720-SI, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI support this command.
Parameter |
Description |
Value |
---|---|---|
by-packets |
Sets the traffic suppression mode to packets. |
- |
by-bits |
Sets the traffic suppression mode to bits. |
- |
Usage Scenario
The default traffic suppression mode on an interface is packets. To precisely control traffic rate, run the suppression mode command in the system view to set the traffic suppression mode to bits.
Precautions
If the packets mode has been set on an interface and the bits mode is set in the system view, the device automatically converts the traffic rate values and suppresses traffic based on bits. For example, if the maximum rate of broadcast packets allowed by a GE interface is set to 1000 pps, the device converts the traffic rate value as follows: 1000 x 84 x 8 = 672000 bits = 672 Kbit. In the preceding formula, 84 is the average length of packets (including the 64-byte packet body, 20-byte frame spacing, and 4-byte check information), and 8 is the number of bits in a byte.
If the traffic suppression mode set in the system view is packets, the cir parameter cannot be specified when you set the maximum traffic rate on an interface.
If the traffic suppression mode set in the system view is bits, the packets parameter cannot be specified when you set the maximum traffic rate on an interface.