Configuring dampening on an Ethernet interface
The interface dampening feature uses an exponential decay mechanism to prevent excessive interface flapping events from adversely affecting routing protocols and routing tables in the network. Suppressing interface state change events protects the system resources.
If an interface is not dampened, its state changes are reported. For each state change, the system also generates an SNMP trap and log message.
After a flapping interface is dampened, it does not report its state changes to the CPU. For state change events, the interface only generates SNMP trap and log messages.
Parameters
Penalty—The interface has an initial penalty of 0. When the interface flaps, the penalty increases by 1000 for each down event. It does not increase for up events.
Ceiling—The penalty stops increasing when it reaches the ceiling.
Suppress-limit—The accumulated penalty that triggers the device to dampen the interface. In dampened state, the interface does not report its state changes to the CPU. For state change events, the interface only generates SNMP traps and log messages.
Reuse-limit—When the accumulated penalty decreases to this reuse threshold, the interface is not dampened. Interface state changes are reported to the upper layers. For each state change, the system also generates an SNMP trap and log message.
Decay—The amount of time (in seconds) after which a penalty is decreased.
Max-suppress-time—The maximum amount of time the interface can be dampened. If the penalty is still higher than the reuse threshold when this timer expires, the penalty stops increasing for down events.
The ceiling is equal to 2(Max-suppress-time/Decay) × reuse-limit. It is not user configurable.
Figure 1 shows the change rule of the penalty value. The lines t0 and t2 indicate the start time and end time of the suppression, respectively. The period from t0 to t2 indicates the suppression period, t0 to t1 indicates the max-suppress-time, and t1 to t2 indicates the complete decay period.
Figure 1: Change rule of the penalty value
Configuration restrictions and guidelines
When you configure dampening on an Ethernet interface, follow these restrictions and guidelines:
The dampening command and the link-delay command cannot be configured together on an interface.
The dampening command does not take effect on the administratively down events. When you execute the shutdown command, the penalty restores to 0, and the interface reports the down event to the upper-layer protocols.
Do not enable the dampening feature on an interface with MSTP enabled.
Configuration procedure
To configure dampening on an Ethernet interface:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter Ethernet interface view. | interface interface-type interface-number | N/A |
3. Enable dampening on the interface. | dampening [ half-life reuse suppress max-suppress-time ] | By default, interface dampening is disabled on Ethernet interfaces. |