The trap-threshold enable command enables the function of reporting an alarm if packets are discarded on an interface due to a congestion.
The undo trap-threshold enable command disables the function of reporting an alarm if packets are discarded on an interface due to a congestion.
By default, this function is disabled.
trap-threshold { input-discard | output-discard } enable
undo trap-threshold { input-discard | output-discard } enable
Parameter | Description | Value |
---|---|---|
input-discard | Enables the function of reporting an alarm if incoming packets are discarded on an interface due to a congestion. |
- |
output-discard | Enables the function of reporting an alarm if outgoing packets are discarded on an interface due to a congestion. |
- |
If a congestion occurs on a network that is running, packets may be discarded when service flows are transmitted on the network. If a lot of packets are discarded, services are affected. To improve transmission quality of service flows, you can run the trap-threshold enable command to enable the function of reporting an alarm if packets are discarded on an interface due to a congestion. The device then reports an alarm if the number of discarded incoming and outgoing packets on the interface in a specified period exceeds the threshold. Such alarms help you know the congestion on the interface. You can determine whether to increase the bandwidth or cancel the bandwidth limit on the interface based on the logs. In this way, the congestion problem can be rectified.