What causes bgp flapping

Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.

Last updated: April 4, 2026

Quick Answer: BGP flapping occurs when Border Gateway Protocol (BGP) routes are repeatedly advertised and withdrawn. This instability is typically caused by network misconfigurations, hardware issues, or policy changes that trigger the BGP state machine to oscillate between established and withdrawn states.

Key Facts

Overview

Border Gateway Protocol (BGP) is the routing protocol that powers the internet, enabling different autonomous systems (AS) to exchange routing information. BGP flapping refers to a state where a BGP session or specific routes within a BGP session are repeatedly established and torn down, or advertised and withdrawn. This instability can have significant negative impacts on network performance, leading to intermittent connectivity, increased latency, and potential service disruptions for end-users. Understanding the causes of BGP flapping is crucial for network administrators to maintain a stable and reliable internet infrastructure.

What is BGP?

Before delving into flapping, it's important to understand BGP's role. BGP is a path-vector routing protocol. Unlike interior gateway protocols (IGPs) that focus on finding the fastest path within a single network, BGP's primary goal is to exchange reachability information between different networks (Autonomous Systems). ASes are large networks, often operated by Internet Service Providers (ISPs) or major enterprises, that have a unified routing policy. BGP routers exchange information about which IP prefixes (blocks of IP addresses) are reachable through their AS and what the 'path' (sequence of ASes) is to reach them. This path information is critical for making routing decisions that consider factors beyond just hop count, such as policy, cost, and stability.

What is BGP Flapping?

BGP flapping is characterized by the continuous or recurring instability of BGP sessions or routes. This can manifest in several ways:

The underlying issue is that BGP has mechanisms to detect and react to network changes. However, when these changes are frequent, erroneous, or triggered by faulty equipment or configurations, the protocol can enter a state of instability, leading to repeated state transitions that are collectively known as flapping.

Common Causes of BGP Flapping

BGP flapping is rarely caused by a single factor; it's often a combination of issues. Here are the most common culprits:

1. Network Misconfigurations

This is perhaps the most frequent cause. Errors in router configuration can lead to BGP instability:

2. Hardware and Software Issues

Faulty hardware or software bugs can also be significant contributors:

3. Network Topology Changes

Dynamic changes in the network can trigger BGP instability if not managed carefully:

4. Policy and Business Logic

Commercial and policy decisions can indirectly lead to flapping:

Impact of BGP Flapping

The consequences of BGP flapping can be severe:

Troubleshooting BGP Flapping

Diagnosing BGP flapping involves meticulous examination of router logs, BGP state tables, and network traffic. Tools like 'show ip bgp summary', 'show ip bgp neighbors', and BGP debugging commands are essential. Network engineers often look for patterns in route advertisements and withdrawals, correlate these events with interface status changes, and review recent configuration changes.

Sources

  1. Border Gateway Protocol - WikipediaCC-BY-SA-4.0
  2. A Border Gateway Protocol 4 (BGP-4) - IETFfair-use

Missing an answer?

Suggest a question and we'll generate an answer for it.