< Home

trap-threshold enable

Function

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.

Format

trap-threshold { input-discard | output-discard } enable

undo trap-threshold { input-discard | output-discard } enable

Parameters

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.

-

Views

GE interface view, MultiGE interface view, XGE interface view, 25GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Enable the function of reporting an alarm if incoming packets are discarded on XGE0/0/1 due to a congestion.

<HUAWEI> system-view
[HUAWEI] interface XGigabitEthernet 0/0/1
[HUAWEI-XGigabitEthernet0/0/1] trap-threshold input-discard enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >