dampening (BGP multi-instance VPNv4 address family view)

Function

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.

Format

dampening [ half-life-reach reuse suppress ceiling | [ route-policy route-policy-name | route-filter route-filter-name ] ] * [ update-standard ]

dampening ibgp [ half-life-reach reuse suppress ceiling | [ route-policy route-policy-name | route-filter route-filter-name ] ] * [ update-standard ]

undo dampening

undo dampening ibgp

Parameters

Parameter Description Value
half-life-reach

Specifies a half-life for reachable routes.

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 the standard penalty value to the route carried in each received Update message (excluding Withdraw message).

-

ibgp

Enables IBGP route flap damping.

-

Views

BGP multi-instance VPNv4 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

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 Router 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 Router 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):

  • Increase ceiling.
  • Increase half-life-reach.
  • Reduce reuse.

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:

  • The specified reuse, suppress, and ceiling thresholds increase in sequence.
  • According to the formula MaxSuppressTime=half-life-reach×60×(ln(ceiling/reuse)/ln(2)), if the value of MaxSuppressTime is less than 1, dampening cannot be performed. Therefore, to ensure that the value of MaxSuppressTime is greater than or equal to 1, the ceiling/reuse must be large enough.

    The dampening command is valid only for EBGP routes.

    The dampening ibgp command in the multi-instance view takes effect for BGP VPNv4 routes.

Example

# Enable BGP route dampening and modify BGP route damping parameter in the BGP-Labeled address family view.
<HUAWEI> system-view
[~HUAWEI] bgp 100 instance aa
[*HUAWEI-bgp-instance-aa] ipv4-family vpnv4
[*HUAWEI-bgp-instance-aa-af-ipv4] dampening ibgp 10 1000 2000 5000
# Enable BGP route dampening and modify BGP route damping parameters.
<HUAWEI> system-view
[~HUAWEI] bgp 100 instance aa
[*HUAWEI-bgp-instance-aa] ipv4-family vpnv4
[*HUAWEI-bgp-instance-aa-af-ipv4] dampening 10 1000 2000 5000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >