The dampening command enables BGP route flapping suppression and modifies BGP route flapping suppression parameters.
The undo dampening command restores the default configuration.
By default, BGP route flapping suppression is disabled.
Parameter | Description | Value |
---|---|---|
half-life-reach |
Specifies the half life of a reachable route. |
The value is an integer ranging from 1 to 45, in minutes. The default value is 15. |
reuse |
Specifies a Reuse value. If the penalty value of a route falls below the Reuse value, the route is reused. |
The value is an integer ranging from 1 to 20000. The default value is 750. |
suppress |
Specifies a Suppress value. If the penalty value of a route exceeds the Suppress value, the route is dampened. |
The value is an integer ranging from 1 to 20000 and must be greater than the value of reuse. The default value is 2000. |
ceiling |
Specifies a penalty ceiling. |
The value is an integer ranging from 1001 to 20000. The configured value must be greater than that of suppress. The default value is 16000. |
route-policy route-policy-name |
Specifies the name of a route-policy. |
The name is a string of 1 to 200 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
route-filter route-filter-name |
Specifies the name of a route-filter. |
The value is a string of 1 to 200 case-sensitive characters, spaces not supported. If parameters are included in the referenced route-filter, specify values for them in the format of (var1, var2, ...var8) behind the route-filter name. A maximum of eight parameters can be specified, and each value ranges from 1 to 200 characters. |
update-standard |
Enables BGP to add a penalty value (500) to the route carried in each received Update message (excluding Withdraw message). |
- |
Usage Scenario
If a policy is configured for route dampening, routes are preferentially matched against the dampening parameters defined by route-policy in the command.
The four parameters of the command are mutually dependent. If you configure one of the parameters, the other parameters also need to be configured in the command. BGP dampening measures route stability using a penalty value. The greater the penalty value, the less stable a route. Each time route flapping occurs (the device receives a Withdraw), BGP adds a penalty value to the route carried in the message. If a route changes from active to inactive, the penalty value increases by 1000. If the penalty value of a route exceeds the Suppress value, the route is dampened. The device does not add the route to the IP routing table or advertise any Update message to other BGP peers. BGP removes the best flag of the route. If the route is carried in an Update message, BGP adds a d flag to the route; if the route is carried in a Withdraw message, BGP adds an h flag to the route. If a route carries both a d flag and an h flag, the route is considered a deleted one. After the penalty value reaches the penalty ceiling, it does not increase any more. The penalty value of a dampened route reduces by half after a half-life period. If the route is carried in an Update message and its penalty value decreases to the Reuse value, the route becomes reusable, and BGP removes the d flag from it, adds it to the IP routing table if it is an optimal route, and advertises an Update message carrying the route to BGP peers. If the route is carried in a Withdraw message and its penalty value decreases to 0, BGP deletes this route from the BGP routing table. After BGP route dampening is configured, any parameter in the command can be used to dampen flapping routes. You can adjust the parameters as required. To increase the dampening time of flapping routes, perform any of the following operations (to reduce the dampening time, perform otherwise):Configuration Impact
If the dampening command is run more than once, the latest configuration overrides the previous one.
After the dampening command is run, the system dampens unstable routes. Specifically, the system does not add unstable routes to the BGP routing table or advertise them to other BGP peers.Precautions
When configuring BGP route dampening, pay attention to the following points:
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpna [*HUAWEI-vpn-instance-vpna] ipv4-family [*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vpna-af-ipv4] vpn-target 111:1 both [*HUAWEI-vpn-instance-vpna-af-ipv4] quit [*HUAWEI-instance-vpna] quit [*HUAWEI] bgp 100 instance a [*HUAWEI-bgp-instance-a] ipv4-family vpn-instance vrf1 [*HUAWEI-bgp-instance-a-vrf1] dampening 10 1000 2000 5000