< Home

trap-threshold interval

Function

The trap-threshold interval command sets the interval for reporting an alarm if packets are discarded on an interface due to a congestion.

The undo trap-threshold interval command restores the default interval for reporting an alarm if packets are discarded on an interface due to a congestion.

By default, the interval for reporting an alarm if packets are discarded on an interface due to a congestion is 300 seconds.

Format

trap-threshold { input-discard | output-discard } interval interval-value

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

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.

-

interval interval-value

Specifies the interval for reporting an alarm.

The value is an integer ranging from 60 to 86400, in seconds. It must be an integer multiple of 10.

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

Usage Scenario

Network congestion during service transmission may cause packet loss. If a lot of packets are discarded, services are affected. To improve transmission quality of service flows, you need to enable the device to report alarms to notify users of the current network status if the number of packets discarded due to a congestion in a period of time reaches the specified limit. In this case, you can run the trap-threshold interval command to flexibly adjust the interval for reporting an alarm if packets are discarded due to a congestion based on actual service situations. 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 solved.

Precautions

After this command is run, only the interval for reporting an alarm if packets are discarded on an interface due to a congestion is set. The corresponding alarm is triggered only after the function of reporting an alarm if packets are discarded on an interface due to a congestion is enabled using the trap-threshold enable command and the number of discarded packets on the interface within a specified period of time reaches the alarm threshold.

If this command is executed multiple times, only the latest configuration takes effect.

Example

# Set the interval for reporting an alarm if incoming packets are discarded on XGE0/0/1 due to a congestion to 80 seconds.

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