You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Port Link Flap Error Disable feature uses an exponential decay mechanism to prevent excessive interface flapping events from adversely affecting routing protocols and routing tables in the network. Suppressing port state change events to protect the system resources.
@@ -39,35 +40,35 @@ When Port Link Flap Error Disable is enabled, the system monitors the number of
39
40
40
41
The sampling time or window (the time during which the specified toggle threshold can occur before the wait period is activated) is triggered when the first "up to down" transition occurs.
41
42
42
-
If the port link state toggles from up to down for a specified number of times within a specified period, the interface is physically disabled for the specified wait period. Once the wait period expires, the port link state is re-enabled. However, if the wait period is set to zero (0) seconds, the port link state will remain disabled until it is manually re-enabled.
43
+
If the port link state toggles from up to down for a specified number of times within a specified period, the interface is physically disabled for the specified wait period. Once the wait period expires, the port link state is re-enabled. However, if the wait period is set to zero (0) seconds, the port link state will remain disabled until it is manually disabled and re-enabled or Port Link Flap Error Disable is disabled on this port.
43
44
44
45
45
46
## 1.1 Requirements
46
47
System shall be able to suppress interfaces state change events to protect system resources.
47
48
User shall be able to enable or disable the feature on individual interfaces and globally.
48
49
The feature must be disabled on all interfaces by default.
49
50
The feature shall be supported on physical interfaces.
50
-
There must be two sets of configuration parameters (sample-interval, waiting-period, and toggling-frequency) a per-interface set and a global set. If both global and per-interface are configured, the per-interface values are used only for given interfaces. Global values are used for all other physical interfaces.
51
+
There must be two sets of configuration parameters (sample-interval, recovery-interval, and flap-threshold) a per-interface set and a global set. If both global and per-interface are configured, the per-interface values are used only for given interfaces. Global values are used for all other physical interfaces.
51
52
If no values are specified by user, a default set of parameters are applied to all interfaces.
52
53
User shall be able to save configuration parameters (both global and per-interface).
53
54
The configuration parameters (both global and per-interface) must be preserved across device reboot.
54
55
55
56
### 1.1.1 Functional Requirements
56
57
Port Link Flap Error Disable shall use below parameters to supress and protect system.
57
-
-toggle-frequency
58
+
-flap-threshold
58
59
Specifies the number of times a port link state goes from up to down before the wait period is activated. The value ranges from 1 through 50.
59
60
- sample-interval
60
-
Specifies the amount of time, in seconds, during which the specified toggle threshold can occur before the wait period is activated. The default value is 0 and indicates that the time is forever. The value ranges from 0 through 65535.
61
-
-waiting-period
62
-
Specifies the amount of time in seconds, for which the port remains disabled (down) before it becomes enabled. The value ranges from 0 through 65535. A value of 0 indicates that the port will stay down until an administrative override occurs.
61
+
Specifies the amount of time, in seconds, during which the specified toggle threshold can occur before the wait period is activated. The value ranges from 1 through 65535.
62
+
-recovery-interval
63
+
Specifies the amount of time in seconds, for which the port remains disabled (down) before it becomes enabled. The value ranges from 0 through 65534. A value of 0 indicates that the port will stay down until an administrative override occurs.
63
64
64
65
### 1.1.2 Configuration and Management Requirements
65
66
- Port Link Flap Error Disable feature default is OFF on all physical interfaces and port-channels
66
67
- When Port Link Flap Error Disable is enabled, use below default values:
68
+
flap-threshold: 3
67
69
sample-interval: 10
68
-
toggle-frequency: 3
69
-
waiting-period: 30
70
-
- User shall be able to specify different sample-interval, toggle-frequency and waiting-period on a physical interface
70
+
recovery-interval: 300
71
+
- User shall be able to specify different sample-interval, flap-threshold and recovery-interval on a physical interface
71
72
- User shall be able to display current Port Link Flap Error Disable confiuration values.
72
73
- User shall be able to display current interface status if it was surpresed by Port Link Flap Error Disable
73
74
- User shall be able to display Link-Down-Reason if a port is disabled by Port Link Flap Error Disable feature
@@ -96,8 +97,80 @@ The Interface Error Disable feature exist in below modules and containers:
In this example, the values for the parameters are as follows:
107
+
108
+
The flap-threshold is set at 10 times. This interval is the number of times that the port's link state goes from up to down and down to up before the recovery-timeout is activated. Enter a valid value range from 1-50. Default is 3.
109
+
110
+
111
+
The sampling-time is set to 3 seconds. This time period is the amount of time during which the specified flap-threshold can be crossed. If the flap-threshold is crossed during this sampling-time, port will be error-disabled. Enter a value between 1 and 65535 seconds. Default is 10.
112
+
113
+
114
+
The recovery-timeout is set to 10 seconds. This period of time is the amount of time the port remains disabled (down) before it becomes enabled. Entering 0 indicates that the port will stay down until an administrative override occurs. Enter a value between 0 and 65534 seconds. Default is 300.
115
+
116
+
117
+
This config command can be executed on a range of interfaces as well. Example:
Example for disabling link-flap error-disable on a port:
122
+
```
123
+
sonic(conf-if-Ethernet0)#no link-error-disable
124
+
```
125
+
This command shall be supported on interface range as well. Example:
126
+
```
127
+
sonic(conf-if-range-eth**)#no link-error-disable
128
+
```
129
+
130
+
-*[no] errdisable recovery cause link-flap*
131
+
This is a global command to enable the link-flap error-disable feature. This is an existing command tree and link-flap CLI node is added.
132
+
133
+
Link-flap feature has to be enabled globally to start this feature even when port level configurations are already present.
134
+
When the user executes 'no errdisable recovery cause link-flap' to disable the feature at system level, the current monitoring for link-flaps on all the ports will be stopped.
135
+
136
+
```
137
+
sonic(config)# errdisable recovery cause link-flap
138
+
sonic(config)# no errdisable recovery cause link-flap
139
+
```
140
+
141
+
### 2.1.2 Show Commands
142
+
143
+
"show errdisable recovery" is an existing CLI command. This output will be updated to list the ports in recovery period.
144
+
-*show errdisable recovery*
145
+
This command displays the err-disable recovery features. Link-flap is one among the features where in err-disable recovery option can be enabled.
146
+
Example:
147
+
```
148
+
sonic#show errdisable recovery
149
+
Err-Disable Reason Timer Status
150
+
-----------------------------------
151
+
udld Disabled
152
+
bpduguard Disabled
153
+
xcvrd Disabled
154
+
link-flap Enabled
155
+
156
+
Interfaces that will be enabled at the next timeout:
0 commit comments