Using Routing Policies to Damp BGP Route Flapping | Junos OS (2024)

BGP route flapping describes the situationin which BGP systems send an excessive number of update messages toadvertise network reachability information. BGP flap damping is a way to reduce the number of update messages sent between BGPpeers, thereby reducing the load on these peers without adverselyaffecting the route convergence time.

Flap damping reduces the number of update messages by markingroutes as ineligible for selection as the active or preferable route.Doing this leads to some delay, or suppression, in the propagation of route information, but the result is increasednetwork stability. You typically apply flap damping to external BGP(EBGP) routes (that is, to routes in different ASs). You can alsoapply it within a confederation, between confederation member ASs.Because routing consistency within an AS is important, do not applyflap damping to IBGP routes. (If you do, it is ignored.)

BGP flap damping is defined in RFC2439, BGPRoute Flap Damping.

To effect changes to the default BGP flap damping values, youdefine actions by creating a named set of damping parameters and includingit in a routing policy with the damping action (describedin Configuring Actions That Manipulate Route Characteristics). For the damping routing policy to work, you also must enable BGProute flap damping.

The following sections discuss the following topics:

Configuring BGP Flap Damping Parameters

To define damping parameters, include the damping statement:

The name identifies the group of damping parameters. It cancontain letters, numbers, and hyphens (-) and can be up to 255characters.To include spaces in the name, enclose the entire name in quotationmarks (“”).

You can specify one or more of the dampingparameters described in Table 1.

Table 1: DampingParameters

Damping Parameter

Description

Default

Possible Values

half-life minutes

Decay half-life, in minutes

15minutes

1 through 45minutes

max-suppress minutes

Maximum hold-down time, in minutes

60minutes

1through 720minutes

reuse

Reuse threshold

750 (unitless)

1 through20,000 (unitless)

suppress

Cutoff (suppression) threshold

3000 (unitless)

1 through20,000 (unitless)

If you do not specify one or more of the damping parameters,the default value of the parameter is used.

To understand how to configure these parameters, you need tounderstand how damping suppresses routes. How long a route can besuppressed is based on a figure of merit, whichis a value that correlates to the probability of future instabilityof a route. Routes with higher figure-of-merit values are suppressedfor longer periods of time. The figure-of-merit value decays exponentiallyover time.

A figure-of-merit value of zero is assigned to each new route.The value is increased each time the route is withdrawn or readvertised,or when one of its path attributes changes. With each incident ofinstability, the value increases as follows:

  • Route is withdrawn—1000

  • Route is readvertised—1000

  • Route’s path attributes change—500

    Note:

    Other vendors’ implementations for figure-of-merit increasethe value only when a route is withdrawn. The JunosOS implementationfor figure-of-merit increases the value for both route withdrawaland route readvertisem*nt. To accommodate other implementations forfigure-of-merit, multiply the reuse and suppress threshold values by2.

When a route’s figure-of-merit value reaches a particularlevel, called the cutoff or suppressionthreshold, the route is suppressed. If a route is suppressed,the routing table no longer installs the route into the forwardingtable and no longer exports this route to any of the routing protocols.By default, a route is suppressed when its figure-of-merit value reaches3000.To modify this default, include the suppress option atthe [edit policy-options damping name] hierarchy level.

If a route has flapped, but then becomes stable so that noneof the incidents listed previously occur within a configurable amountof time, the figure-of-merit value for the route decays exponentially.The default half-life is 15minutes. For example, for a routewith a figure-of-merit value of1500, if no incidents occur,its figure-of-merit value is reduced to750 after 15minutesand to375 after another 15minutes. To modify the defaulthalf-life, include the half-life option at the [editpolicy-options damping name] hierarchylevel.

Note:

For the half-life, configure a value that is less than the max-suppress.If you do not, the configuration is rejected.

A suppressed route becomes reusable when its figure-of-meritvalue decays to a value below a reuse threshold, thus allowing routes that experience transient instability to onceagain be considered valid. The default reuse threshold is750.When the figure-of-merit value passes below the reuse threshold, theroute once again is considered usable and can be installed in theforwarding table and exported from the routing table. To modify thedefault reuse threshold, include the reuse option at the [edit policy-options damping name] hierarchylevel.

The maximum suppression time provides an upper bound on thetime that a route can remain suppressed. The default maximum suppressiontime is 60minutes. To modify the default, include the max-suppress option at the [edit policy-options damping name] hierarchy level.

Note:

For the max-suppress, configure a value that is greater thanthe half-life. If you do not, the configuration is rejected.

A route’s figure-of-merit value stops increasing whenit reaches a maximum suppression threshold, which is determined basedon the route’s suppression threshold level, half-life, reusethreshold, and maximum hold-down time.

The merit ceiling, εc, which is the maximum merit thata flapping route can collect, is calculated using the following formula:

εc ≤ εr e(t/λ) (ln2)

εr is the figure-of-merit reuse threshold, t is the maximumhold-down time in minutes, and λ is the half-life in minutes. For example, ifyou use the default figure-of-merit values in this formula, but usea half-life of 30minutes, the calculation is as follows:

εc ≤ 750 e(120/30) (ln2)

εc ≤ 12000

Note:

The cutoff threshold, which you configure using the suppress option, must be less than or equal to the merit ceiling, εc. If the configured cutoff threshold or the default cutoff thresholdis greater than the merit ceiling, the route is never suppressed anddamping never occurs.

To display figure-of-merit information, use the show policydamping command.

A route that has been assigned a figure of merit is consideredto have a damping state. To display the current damping informationon the routing device, use the show route detail command.

Specifying BGP Flap Damping as the Action in Routing PolicyTerms

To BGP flap damping as the action in a routing policy term,include the damping statement and the name of the configureddamping parameters either as an option of the route-filter statement at the [edit policy-options policy-statement policy-name term term-name from] hierarchy level:

or at the [edit policy-options policy-statement policy-name term term-name then] hierarchy level:

Disabling Damping for Specific Address Prefixes

Normally, you enable or disable damping on a per-peer basis.However, you can disable damping for a specific prefix received froma peer by including the disable option:

Disabling Damping for a Specific Address Prefix

In this routing policy example, although damping is enabledfor the peer, the damping none statement specifies thatdamping be disabled for prefix 10.0.0.0/8 in Policy-A.This route is not damped because the routing policy statement named Policy-A filters on the prefix 10.0.0.0/8 and the action pointsto the damping statement named none. The remainingprefixes are damped using the default parameters.

Configuring BGP Flap Damping

Enable BGP flap damping and configure damping parameters:

To display damping parameters forthis configuration, use the show policy damping command:

Using Routing Policies to Damp BGP Route Flapping | Junos OS (2024)
Top Articles
How Long Should Your Child Stay at a Montessori School?
IBISWorld - Industry Market Research, Reports, and Statistics
jazmen00 x & jazmen00 mega| Discover
Moon Stone Pokemon Heart Gold
Wordscapes Level 6030
Did 9Anime Rebrand
Optimal Perks Rs3
Xrarse
Youtube Combe
Brenna Percy Reddit
Turbocharged Cars
Things To Do In Atlanta Tomorrow Night
Scholarships | New Mexico State University
The Shoppes At Zion Directory
Kitty Piggy Ssbbw
Accident On The 210 Freeway Today
Between Friends Comic Strip Today
Busted Mcpherson Newspaper
2021 Volleyball Roster
Craigslist Maryland Trucks - By Owner
Chamberlain College of Nursing | Tuition & Acceptance Rates 2024
Ltg Speech Copy Paste
Cars & Trucks - By Owner near Kissimmee, FL - craigslist
Dexter Gomovies
Ultra Ball Pixelmon
Tottenham Blog Aggregator
San Jac Email Log In
Craig Woolard Net Worth
The Wichita Beacon from Wichita, Kansas
Glossytightsglamour
Trebuchet Gizmo Answer Key
Montrose Colorado Sheriff's Department
Crystal Mcbooty
AI-Powered Free Online Flashcards for Studying | Kahoot!
Natashas Bedroom - Slave Commands
Electronic Music Duo Daft Punk Announces Split After Nearly 3 Decades
Vocabulary Workshop Level B Unit 13 Choosing The Right Word
Anhedönia Last Name Origin
Great Clips Virginia Center Commons
Lucifer Morningstar Wiki
Grizzly Expiration Date Chart 2023
Walmart 24 Hrs Pharmacy
22 Golden Rules for Fitness Beginners – Barnes Corner Fitness
Zeeks Pizza Calories
Dobratz Hantge Funeral Chapel Obituaries
1990 cold case: Who killed Cheryl Henry and Andy Atkinson on Lovers Lane in west Houston?
Is Chanel West Coast Pregnant Due Date
Is Chanel West Coast Pregnant Due Date
Grace Charis Shagmag
Lux Nails & Spa
Salem witch trials - Hysteria, Accusations, Executions
Latest Posts
Article information

Author: Kieth Sipes

Last Updated:

Views: 6011

Rating: 4.7 / 5 (67 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Kieth Sipes

Birthday: 2001-04-14

Address: Suite 492 62479 Champlin Loop, South Catrice, MS 57271

Phone: +9663362133320

Job: District Sales Analyst

Hobby: Digital arts, Dance, Ghost hunting, Worldbuilding, Kayaking, Table tennis, 3D printing

Introduction: My name is Kieth Sipes, I am a zany, rich, courageous, powerful, faithful, jolly, excited person who loves writing and wants to share my knowledge and understanding with you.