BGP Route Flap Damping: RFC 7196 & RIPE-580 Config Guide
BGP route flap damping (RFD) is safe in 2024 only if you use the revised RFC 7196 / RIPE-580 parameters, with a suppress threshold of 6000 instead of the old 2000, and exempt prefixes that are supposed to change quickly. For a network that does DDoS mitigation, that means RTBH /32 routes and on-demand tunnel prefixes must never be suppressed by your own policy.
This guide explains what went wrong with the RFC 2439 defaults, what the newer recommendations changed, and how to configure conservative damping on Cisco, Juniper, FRR and BIRD.
Why the RFC 2439 defaults were harmful
RFC 2439 (1998) assigns a penalty to a route every time it flaps and decays that penalty exponentially. The values vendors shipped as defaults were:
| Parameter | Legacy default |
|---|---|
| Penalty per withdrawal | 1000 |
| Suppress threshold | 2000 |
| Reuse threshold | 750 |
| Half-life | 15 min |
| Max suppress time | 60 min |
The problem is path exploration. When an origin withdraws and re-announces a prefix once, remote routers can see a burst of updates as they cycle through alternate paths. Research from the early 2000s (Mao et al., "Route Flap Damping Exacerbates Internet Routing Convergence") showed that a single origin flap could look like several flaps to a damping router far away. With a suppress threshold of 2000, two or three updates were enough to suppress a perfectly healthy route for up to an hour.
The result: stable networks lost reachability because they changed something once. That is why RIPE-178 and later documents recommended turning damping off entirely.
What RFC 7196 and RIPE-580 changed
RFC 7196 ("Making Route Flap Damping Usable", 2014) and RIPE-580 (the RIPE Routing WG recommendation that replaced older guidance) keep the mechanism but make it far less aggressive. The key change is the suppress threshold:
| Parameter | Revised value |
|---|---|
| Half-life | 15 min |
| Reuse threshold | 750 |
| Suppress threshold | 6000 (or higher) |
| Max suppress time | 60 min |
With a 6000 threshold and 1000 per flap, a prefix needs roughly six or seven flaps in quick succession before it is suppressed. A single path-exploration burst no longer trips it. The maximum penalty ceiling is reuse × 2^(max-suppress / half-life), which is 750 × 16 = 12000 with these values, so a persistently flapping route is still released within the 60-minute cap.
RIPE-580 also discusses varying parameters by prefix length and which prefixes are worth damping. Read the current document for those details before deploying, since you should match what your peers and upstreams do.
Practical conclusion: damping is a way to protect your routers from truly unstable routes, not a convergence tool. Use it conservatively, and only on routes learned over eBGP.
What must never be damped in a DDoS workflow
Damping assumes a flapping route is a broken route. Mitigation announcements are different, because they are changed deliberately and often.
- RTBH routes. A customer or your detector announces a /32 (or /128) tagged with a blackhole community, such as the well-known
65535:666from RFC 7999. Attack start, stop and restart cycles look exactly like flapping. If you suppress the route, the blackhole is delayed, or the victim stays blackholed longer than intended. - Tunnel and scrubbing prefixes. With an on-demand service such as NixGuard Edge, customer prefixes are announced from the scrubbing edge and clean traffic returns over a GRE tunnel with a BGP session inside. Switching protection on and off creates announce/withdraw events that must propagate immediately.
- The tunnel BGP session itself. Do not apply damping to the inner session's routes. They are your own infrastructure.
Also remember the reverse: your upstreams may damp what you announce. If your detector toggles an announcement repeatedly during an oscillating attack, penalties accumulate at the far end. Add a hold-down time before withdrawing a mitigation, so one attack produces one announce and one withdraw. The thresholds and hysteresis article on this blog covers how to tune that.
Cisco IOS / IOS-XE
Use a route-map so damping applies only where intended. The deny entry exempts blackhole-tagged and very specific routes. Verify on your platform that a denied route is left undamped.
ip prefix-list HOST-ROUTES seq 5 permit 0.0.0.0/0 ge 32
bgp-community new-format
ip community-list standard RTBH permit 65535:666
route-map DAMP-CONSERVATIVE deny 10
match community RTBH
route-map DAMP-CONSERVATIVE deny 20
match ip address prefix-list HOST-ROUTES
route-map DAMP-CONSERVATIVE permit 100
set dampening 15 750 6000 60
router bgp 64496
address-family ipv4 unicast
bgp dampening route-map DAMP-CONSERVATIVE
The set dampening arguments are half-life, reuse, suppress and max-suppress. Check results with:
show ip bgp dampening flap-statistics
show ip bgp dampening dampened-paths
clear ip bgp dampening
Juniper Junos
Junos applies damping through policy, which makes exemptions straightforward.
set policy-options community RTBH members 65535:666
set policy-options damping CONSERVATIVE half-life 15 reuse 750 suppress 6000 max-suppress 60
set policy-options damping NO-DAMP disable
set policy-options policy-statement IN-DAMP term rtbh from community RTBH
set policy-options policy-statement IN-DAMP term rtbh then damping NO-DAMP
set policy-options policy-statement IN-DAMP term rtbh then next policy
set policy-options policy-statement IN-DAMP term host from route-filter 0.0.0.0/0 prefix-length-range /32-/32
set policy-options policy-statement IN-DAMP term host then damping NO-DAMP
set policy-options policy-statement IN-DAMP term host then next policy
set policy-options policy-statement IN-DAMP term default then damping CONSERVATIVE
set policy-options policy-statement IN-DAMP term default then next policy
set protocols bgp group TRANSIT damping
set protocols bgp group TRANSIT import [ IN-DAMP TRANSIT-IN ]
Put IN-DAMP before your accept/reject policy, and keep it off your customer groups where blackhole routes arrive. Verify with show route damping suppressed, show route damping history and clear bgp damping.
FRR
FRR's classic command enables damping per address family with the revised numbers:
router bgp 64496
address-family ipv4 unicast
bgp dampening 15 750 6000 60
exit-address-family
Check with show bgp ipv4 unicast dampening flap-statistics and show bgp ipv4 unicast dampening dampened-paths. Be aware that the classic form applies to all eBGP routes in that address family, with no per-route exemption. Newer FRR releases have reworked damping with more granular control, so check the documentation for your version before relying on exemptions. If yours lacks them, don't enable damping on a router that receives RTBH announcements.
BIRD
To my knowledge, BIRD does not implement RFC 2439 route flap damping in its core BGP, so confirm against the documentation for your version. That is acceptable. The same protection can come from other controls:
protocol bgp customer1 {
local as 64496;
neighbor 192.0.2.2 as 64511;
ipv4 {
import limit 100 action block;
import filter {
if net.len = 32 && (65535, 666) ~ bgp_community then accept;
if net ~ [ 198.51.100.0/24 ] then accept;
reject;
};
};
}
A strict import filter and an import limit stop a misbehaving customer from flooding your table. Combine them with the maximum prefix limit guide and rely on your upstreams' damping policy for transit-learned routes.
Common mistakes
- Keeping the 2000 suppress threshold. Old configs and some defaults still do this. Always set the values explicitly.
- Damping RTBH or customer host routes. This delays mitigation exactly when you need it.
- Damping iBGP or your own tunnel sessions. Damping is for eBGP-learned routes from external peers.
- Fixing a flapping session with damping. Session flaps (hold timer, MTU, link problems) need root-cause work. See the BGP session flapping troubleshooting guide.
- Ignoring what peers do to you. Check looking glasses to see if your /24 is being suppressed after repeated on-demand toggles.
- Never testing. Lab a flap, confirm the penalty rises, and confirm an RTBH-tagged route stays unaffected.
Putting it together with detection
Damping policy and mitigation policy have to agree. The detector should announce once, hold, and withdraw once. NixMon detects attacks from NetFlow, IPFIX or sFlow with per-IP and per-prefix thresholds, and can trigger RTBH or FlowSpec announcements. Whatever tool you use, test the announce/withdraw cycle end to end against your own damping config. You can try it with the 15-day free trial, no credit card required.
Frequently asked questions
Should I enable BGP route flap damping in 2024?
Only conservatively. If you enable it, use the RFC 7196 / RIPE-580 values (half-life 15, reuse 750, suppress 6000, max-suppress 60), apply it to eBGP-learned routes only, and exempt RTBH and other intentionally dynamic prefixes. Many networks leave it off, and that is also a defensible choice.
Why did the old RFC 2439 defaults cause problems?
A suppress threshold of 2000 meant a couple of updates could suppress a route. Path exploration makes one origin change look like several flaps at remote routers, so healthy prefixes got suppressed for up to an hour.
Will route flap damping delay my RTBH announcements?
It can if your router damps the blackhole /32 routes. Exempt routes carrying the blackhole community (for example 65535:666) and host routes from damping, and add a hold-down in your detector so announcements don't oscillate.
Does BIRD support route flap damping?
To my knowledge BIRD does not implement RFC 2439 damping in its core, so check the documentation for your version. Use strict import filters, import limits and maximum prefix controls instead.