BGP Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Releases

PDF

Route dampening

Want to summarize with AI?

Log in

Overview

Describes how route dampening reduces propagation of unstable routes by assigning penalties to flapping routes, suppressing advertisements temporarily, and decaying penalties over time to reintroduce stable routes.

Route dampening is a BGP feature that

  • reduces the propagation of unstable, flapping routes across internetworks

  • assigns penalties to routes when instability is detected to temporarily suppress advertisements, and

  • decays penalties over time so stable routes are reintroduced based on reuse limits.


How route dampening works

Summary

Key components involved in the process are:

  • Autonomous systems: AS-1, AS-2, and AS-3.

  • eBGP neighbor relationships: Between AS-1 and AS-2, and between AS-2 and AS-3.

  • Route to network A: The prefix that flaps and triggers dampening.

  • Dampening parameters: Initial penalty (for example, 1,000), suppression limit, reuse limit, half-life, and the history state.

Route dampening limits excessive BGP message propagation caused by route flapping. In a network with three autonomous systems, AS-1, AS-2, and AS-3, dampening penalizes unstable routes and suppresses announcements until stability is restored.

Workflow

These stages describe how route dampening works.

  1. Route flap and message flow: The route to network A in AS-1 becomes unavailable. The eBGP neighbor in AS-2 sends a withdraw message, which is propagated to AS-3. When the route reappears, advertisement messages are sent again. Repeated unavailability followed by availability generates many withdraw and advertisement messages.
  2. Penalty assignment: When route dampening is enabled, the router assigns an initial penalty to the flapping route (for example, 1,000) and places the route in a history state.
  3. Penalty accumulation: Penalties are cumulative. If the cumulative penalty exceeds the suppression limit, the router stops advertising the route to prevent excessive churn.
  4. Penalty decay: The penalty value decays with a half-life. When the penalty falls to the reuse limit, the route is re-advertised.
  5. State cleanup: When the penalty decays to half of the reuse limit, the router clears the dampening information for that route.

Result

Dampening suppresses repeated announcements and withdrawals for unstable routes, reducing unnecessary BGP message propagation until the route stabilizes.

Note

No penalty is applied to a BGP peer reset when route dampening is enabled, even though the reset withdraws the route.


Configure BGP route dampening

Enable and tune route dampening to minimize the impact of flapping routes.

Use address-family configuration to activate dampening with half-life, reuse, suppress, and maximum suppress time values, or attach a route policy.

Before you begin

  • Identify the autonomous system number.

  • Decide whether to use numeric parameters or a route policy.

Procedure

1.

Enter BGP configuration mode and specify the autonomous system number.

Example:

Router# configure
Router(config)# router bgp 120
2.

Configure the address family, IPv4 or IPv6, in unicast mode.

Example:

Router(config-bgp)# address-family ipv4 unicast
3.

Configure dampening parameters or attach a route policy using the bgp dampening [half-life] [reuse suppress max-suppress-time ] | route-policy route-policy-name command.

Example:

Router(config-bgp-af)# bgp dampening 30 1500 10000 120
Router(config-bgp-af)# commit

The router suppresses advertisements for unstable routes and reuses them after penalties decay to the reuse threshold.