Network Insight · Interactive Learning Centre

BGP Learning Centre: Explore. Trace. Diagnose.

Learn Border Gateway Protocol through interactive network engineering labs. Explore autonomous systems, trace route propagation, compare competing paths, and investigate routing failures. See how BGP behaves, one experiment at a time.

  • BGP Architecture
  • Route Propagation
  • Best-Path Selection
  • Fault Investigation

Explore BGP Through Interactive Engineering Labs

Border Gateway Protocol (BGP) enables networks to exchange routing information across the internet. To understand how it works, you need more than memorised path attributes. You need to see how autonomous systems connect, how routes propagate, how routing decisions are made, and what happens when a network fails.

This learning centre takes you through four practical stages. Each combines an engineering explanation with an interactive network model, allowing you to explore routing behaviour, examine the evidence, and understand why BGP reaches a particular outcome.

You will investigate autonomous system relationships, trace route advertisements, compare competing paths, and diagnose routing failures using the reasoning applied in real network environments.

Your learning journey: Understand the topology → Trace route propagation → Explain the best path → Investigate the failure.

Your learning pathway

Explore the BGP Learning Labs

Follow four practical stages, from understanding the network topology to diagnosing routing failures. Select a stage to jump directly to its explanation and interactive lab.

Advanced BGP Engineering Guide

BGP Route Reflectors Explained

Discover how route reflectors solve the iBGP full-mesh problem, control route propagation, and use ORIGINATOR_ID and CLUSTER_LIST for loop prevention. Explore the architecture, route distribution rules, and troubleshooting evidence behind scalable BGP network designs.

Explore the guide

Explore an Interactive BGP Network Topology

Network Insight · BGP Learning Centre

Inside a BGP Network

Explore six routers across three autonomous systems. Trace a route advertisement, compare candidate paths, inspect BGP sessions, and investigate a simulated failure.

ARCHITECTURE Explore the routers, AS boundaries, and connections.
AS65001 INTERNAL NETWORK AS65003 EXTERNAL AS AS65002 EXTERNAL AS Underlay only iBGP iBGP iBGP eBGP eBGP
Select an experiment, router, AS boundary, or connection.
iBGP session eBGP session Underlay link Active route animation
Experiment progress 0 / 4
Learning experiment

Architecture: three autonomous systems

AS65001 contains R1, RR1, R4 and R5. AS65002 and AS65003 represent external autonomous systems. Inspect any element to explore its role.

Important distinction: the R1–R4 underlay connection is not a BGP session. The illustrated BGP adjacency is RR1–R4.
Element inspector

Network architecture

Select a router, AS boundary, or connection to inspect its function, peers, and protocol role.

AS domains3
iBGP sessions3
eBGP sessions2
Educational model only — no live BGP sessions or router queries. The route sequence illustrates a possible advertisement path, not a guaranteed outcome. The best-path lab compares hypothetical eligible candidates; the fault lab marks a session as failed for learning purposes and does not emulate a real routing table or forwarding plane.

BGP Architecture: Autonomous Systems, Routers and Peering

BGP Learning Centre · Foundation 01

Understanding the Network Structure

The Border Gateway Protocol (BGP) is the routing protocol used to exchange reachability information between autonomous systems across IP networks. To understand how BGP behaves, start with the architecture: which network a router belongs to, which peers it exchanges routes with, and how those routes influence forwarding.

01

Autonomous systems

An autonomous system (AS) is a network or group of networks operated under a common routing policy. Its Autonomous System Number (ASN), such as 65001, identifies it in BGP.

02

BGP peers

BGP speakers establish sessions with configured neighbors. Once a session is established, they can exchange route advertisements and withdrawals, subject to routing policy.

03

Routes and forwarding

BGP helps select paths to destination prefixes. The selected route influences the routing table and, when usable, the forwarding information installed for packet delivery.

eBGP and iBGP: two different relationships

The ASNs on either side of a BGP session determine whether the relationship is external or internal.

External BGP · eBGP

Between autonomous systems

eBGP exchanges routing information between BGP speakers in different autonomous systems. It is commonly used between providers, customers, and peers at network boundaries.

Internal BGP · iBGP

Within one autonomous system

iBGP distributes BGP routing information between speakers in the same AS. Its design must account for propagation rules, next-hop reachability, and mechanisms such as a full mesh or route reflectors.

Important engineering principle: an iBGP session does not automatically make every route learned from one iBGP peer available to every other iBGP peer. By default, a route learned through iBGP is not re-advertised to another iBGP peer. A valid design must address this constraint.

Reading the learning topology

In the interactive topology below, follow each router's AS membership and its configured connections. A link represents a relationship between routers; its meaning depends on whether the peers belong to the same or different autonomous systems and how the BGP session is configured.

What to inspect Engineering question
Router and ASN Which autonomous system does this router belong to?
Neighbor relationship Is the session eBGP or iBGP, and is the neighbor established?
Advertised prefix Which destination network is being announced, and where can the advertisement propagate?
Selected route Which candidate path is preferred, and what attributes explain the decision?

Control plane versus data plane: BGP operates in the control plane, exchanging routing information and helping determine preferred paths. The data plane forwards packets using installed forwarding entries. A route appearing in BGP does not, by itself, prove that end-to-end traffic can pass.

Next: Explore the topology. Select routers, inspect their ASNs and relationships, and trace how the learning environment represents connectivity. Treat the diagram as a teaching model; real deployments also require correct addressing, session configuration, routing policy, and next-hop reachability.

BGP Learning Centre · Stage 1

Explore a Multi-AS BGP Topology

Explore the master six-router topology across three autonomous systems. Inspect the route reflector, internal and external BGP sessions, and the illustrative prefix 10.10.10.0/24. This is an educational model, not a live network.

Select a router, AS or session
Master topology · Interactive BGP architecture
iBGP eBGP ··· Underlay only
AS 65002 External peer domain AS 65001 Core routing domain · route reflector AS 65003 External peer domain UNDERLAY ONLY iBGP iBGP iBGP eBGP eBGP R2 Prefix source R1 Edge router RR1 Route reflector R4 Core router R5 iBGP client R3 External peer EXTERNAL ROUTING R2 originates the example prefix 3 iBGP sessions · 2 eBGP sessions R1–R4 is underlay-only, not BGP EXTERNAL ROUTING Illustrative receiving peer
Logical educational model · no live router queries. 10.10.10.0/24
Architecture overview

One topology, three autonomous systems

Select an AS, router or connection to inspect its role in the master topology.

Selected componentAll three ASes
Architectural roleMulti-AS BGP
BGP sessions3 iBGP · 2 eBGP
Route under study10.10.10.0/24
Architectural takeaway

A session does not prove that a route is advertised, accepted, selected or installed in the forwarding table.

Engineering insight

Understand route reflection

RR1 reflects eligible routes between its iBGP clients. The topology separates control-plane sessions from the underlay.

Current focusMaster topology
RelationshipiBGP and eBGP
Prefix10.10.10.0/24
Next investigationInspect R2 → R1
Engineering takeaway

R1–R4 is an underlay connection only. It must not be counted as a BGP session.

BGP Architecture · Design Principles

BGP Route Reflector Design: Scaling iBGP Beyond the Full Mesh

As an autonomous system grows, maintaining an iBGP session between every pair of routers becomes increasingly difficult. Route reflectors provide a scalable alternative: selected routers distribute eligible BGP routes to other iBGP peers, reducing the number of sessions needed while preserving the control-plane architecture of BGP.

1. Why a full mesh becomes a problem

Traditional iBGP rules prevent a route learned from one iBGP peer from being advertised to another iBGP peer. To ensure that internal routers can learn routes from one another, a conventional design therefore requires a full mesh of iBGP sessions.

Every router must establish a session with every other router in the same iBGP mesh. As the number of routers increases, the number of sessions grows rapidly.

The session-scaling challenge
R1 R2 R3 R4 R5
Each router needs a session to every other router

For a full mesh of n routers, the number of unique iBGP sessions is n × (n − 1) ÷ 2. Five routers require 10 sessions; 20 routers require 190.

2. How route reflectors change the design

A route reflector (RR) is an iBGP speaker configured to reflect eligible routes between its peers. Routers configured as route-reflector clients establish iBGP sessions with the reflector rather than requiring a direct session with every other client.

The reflector receives routes, evaluates them according to BGP processing and policy, and advertises eligible routes to clients and, where the reflection rules permit, non-client peers. This reduces the full-mesh session requirement.

Traditional design

Full-mesh iBGP

Every router peers with every other router. This is straightforward in small networks but can create substantial session and configuration overhead at scale.

Scalable design

Route reflector

Clients peer with a reflector that distributes eligible routes. Fewer sessions are required, but reflector placement, redundancy and policy become important design decisions.

Illustrative route-reflector architecture
R1 R2 R3
iBGP client sessions converge on the reflector
RR1 R4

Conceptual only: the reflector maintains sessions with its clients and can also peer with non-clients. The exact design depends on the network's topology, routing policy and redundancy requirements.

3. Understand the route-reflection rules

Route reflection changes the normal iBGP advertisement restrictions. It does not mean that every route is automatically sent to every peer.

  • Route learned from a client: the reflector can advertise it to other clients and to non-client peers, subject to BGP route selection and policy.
  • Route learned from a non-client peer: the reflector can advertise it to clients, but does not normally reflect it to other non-client peers.
  • Route learned from an eBGP peer: the reflector can advertise an eligible route to clients and non-client iBGP peers, subject to normal processing and policy.
Design principle Route reflectors reduce the need for a full mesh of iBGP sessions. They do not remove the need for route selection, routing policy, next-hop reachability or forwarding-table validation.

4. Preventing loops with reflection attributes

Reflection introduces additional paths by which routing information can circulate. BGP uses specific attributes to help prevent a reflected route from returning to places it has already passed through.

Attribute Design purpose
ORIGINATOR_ID Identifies the originating BGP router ID for a reflected route. A router receiving a route with its own router ID as the originator can reject it to prevent a loop.
CLUSTER_LIST Records route-reflector cluster IDs traversed by a reflected route. A reflector can reject a route if its own cluster ID is already present.

5. What makes a robust route-reflector design?

  • Redundancy: consider multiple route reflectors so that a single reflector failure does not remove the only path for distributing internal routing information.
  • Client placement: assign clients deliberately and maintain clear, consistent peering relationships.
  • Policy consistency: understand how filtering, attributes and route selection affect what the reflector can advertise.
  • Next-hop reachability: a reflected route can be present in the BGP table while its next hop is unusable.
  • Forwarding validation: confirm that the selected route is installed in the routing and forwarding tables when traffic delivery is the objective.
Engineering takeaway A route reflector is a control-plane scaling mechanism, not a guarantee of end-to-end reachability. A good design reduces unnecessary iBGP sessions while preserving route visibility, resilient architecture and predictable routing behaviour.
Interactive Design Lab · Stage 1

BGP Route Reflector Design Lab

Compare a traditional iBGP full mesh with a route-reflector architecture. Select a route source and destination, trace the illustrative advertisement path, and explore the rules that govern route reflection.

1. Choose the iBGP architecture

Topology view

Full mesh
AS65001 · INTERNAL BGP
Highlighted route path Configured iBGP session Reflector / receiving router
Illustrative iBGP sessions 10
Selected destination R3

This example uses five routers in one AS: three clients, one route reflector, and one non-client peer.

2. Trace a route advertisement

Ready to trace

Choose a source and destination to inspect the route path.

  1. Select a source and receiving router.
  2. Choose the architecture.
  3. Trace the illustrative advertisement path.

3. Understand the route-reflection rules

Route learned from a client

The reflector can advertise the route to other clients and to non-client peers, subject to normal BGP eligibility and policy.

Route learned from a non-client

The reflector can advertise the route to its clients. It does not normally advertise a route learned from one non-client to another non-client.

Route originated by the reflector

RR1 can advertise its locally originated route to its clients and non-client peers, subject to normal BGP rules and policy.

Why the full mesh differs

A direct session does not bypass iBGP split-horizon rules. A router does not normally re-advertise a route learned from one iBGP peer to another iBGP peer.

4. Inspect route-reflection attributes

ORIGINATOR_ID

Identifies the originator's BGP router ID for a reflected route. A route reflector adds it when appropriate, helping prevent a reflected route from returning to its originator.

CLUSTER_LIST

Records route-reflector cluster IDs traversed by the route. A reflector checks this attribute to help detect and prevent reflection loops involving its cluster ID.

5. Knowledge check

Why do engineers deploy route reflectors in larger iBGP networks?

Select an answer to check your understanding.

Engineering note: This is an illustrative control-plane model, not a live BGP implementation. Session counts assume five routers and one route reflector with four client/non-client peer sessions: 10 sessions in a full mesh versus 4 in the reflector design. Real deployments may use multiple reflectors and redundant clusters. Route reflection does not guarantee route selection, next-hop reachability, FIB installation, or end-to-end connectivity.

BGP Learning Centre · Stage 01 Complete

What You Have Learned

Before tracing a route through a network, you need to understand the architecture that carries it. These are the foundations for interpreting BGP sessions, route advertisements, and forwarding decisions.

Three concepts to remember

01

Know the AS boundary

An autonomous system operates under a common routing policy. Its ASN identifies it in BGP. The relationship between the local and remote ASNs helps determine whether a session is eBGP or iBGP.

02

Separate links from sessions

A physical or logical connection provides connectivity, but it does not prove that a BGP session is established. Neighbor configuration, reachability, and successful session negotiation all matter.

03

Separate routes from packets

BGP exchanges reachability information and helps select paths. Actual packet delivery depends on usable forwarding entries, next-hop reachability, and the state of the data plane.

Engineering principle

Connectivity is not the same as reachability. A router can have a working link without an established BGP session, and an established session does not guarantee that a usable route or working end-to-end forwarding path exists.

Your next step · Stage 02 How BGP Routes Propagate

Follow a prefix as it is advertised, received, evaluated, and passed through the network. Discover why a route being known by one router does not mean every router knows it.

BGP Route Propagation: How Prefixes Travel Through a Network

02 Network Insight · Editorial Engineering Guide

Following a Route Advertisement

A prefix does not automatically appear in every router's BGP table. It must be originated or learned, advertised to an eligible peer, accepted under routing policy, and processed according to BGP's propagation rules. Follow the evidence at each stage to understand where a route continues — and where it stops.

The key engineering principle

A working connection is not proof of route propagation. Even an Established BGP session does not prove that a particular prefix was advertised, accepted, selected or installed for forwarding.

The route lifecycle · Four stages

01

Originate or learn

A router introduces a prefix into BGP or learns it from an existing BGP neighbor.

Prefix available
02

Advertise

The router sends an UPDATE to an eligible peer when protocol rules and export policy permit it.

Advertisement sent
03

Evaluate

The receiving router processes the route, applies import policy and evaluates its eligibility.

Route assessed
04

Select and propagate

An eligible route may be selected and advertised onward if policy and BGP rules allow it.

Outcome depends on rules
Worked example · Tracking 10.10.10.0/24
R1 Originates prefix
R2 Receives and evaluates
R3 Conditional next hop

This is a conceptual route progression, not a claim that every adjacency will pass the prefix. For example, if R2 learns a route from an iBGP peer, it normally cannot advertise that route to another iBGP peer unless the design uses an appropriate mechanism, such as route reflection. The actual outcome depends on the configured topology, route eligibility and policy.

When eBGP advertises a route

When a route is advertised to an external BGP peer, the advertising router normally adds its AS number to AS_PATH. Import and export policy may permit, reject or modify the route. The receiving AS must evaluate the advertisement under its own policy.

When iBGP distributes a route

By default, a route learned from one iBGP peer is not re-advertised to another iBGP peer. A full mesh or a mechanism such as route reflection is needed to distribute routes appropriately within the AS. Next-hop reachability also matters.

Route propagation investigation checklist

Use this checklist when a prefix is missing at an expected router. Tick each check as you work through the evidence.

Investigation checklist 0 of 5 complete
Engineering takeaway: Trace the prefix, not just the link. Identify the first router where the expected route is absent, then investigate the advertisement, policy, propagation rule or route-processing decision that explains the difference. Finally, validate forwarding separately.

BGP Learning Centre · Foundation 02

How BGP Routes Propagate

BGP does not carry user traffic itself. It exchanges information about which IP prefixes are reachable and the paths available to reach them. Each router processes received routes, applies routing policy, and determines which routes can be selected and advertised to other peers.

Follow a route advertisement

Consider the example prefix 10.10.10.0/24. These four stages describe the general route lifecycle. The actual outcome depends on topology, session state, routing policy, and configuration.

1. Originate A router injects a prefix into BGP, for example through a network statement or redistribution.
2. Advertise BGP sends an UPDATE to an eligible peer when protocol rules and policy permit it.
3. Evaluate The receiving router validates the route, applies import policy, and evaluates the candidate path.
4. Propagate If eligible, the route may be selected and advertised onward according to BGP rules and policy.
A

Prefix

The prefix identifies the destination network. The prefix length matters: 10.10.10.0/24 represents a more specific network than 10.10.0.0/16.

B

Path attributes

Attributes such as AS_PATH, LOCAL_PREF, MED, and communities carry information used in path selection and routing policy. Their significance depends on the attribute and where it is evaluated.

C

Next hop

NEXT_HOP identifies the next-hop address for reaching the destination. The receiving router must be able to resolve that next hop for the route to be usable for forwarding.

Why routes do not always travel through every router

eBGP

Across AS boundaries

When a route is advertised across an eBGP session, the advertising router normally adds its own AS number to AS_PATH. Import and export policies can permit, modify, or reject the route.

iBGP

Inside an AS

A route learned from one iBGP peer is not normally advertised to another iBGP peer. Designs commonly use a full mesh or route reflectors to distribute routes while respecting BGP loop-prevention rules.

Key distinction: physical connectivity is not the same as route propagation. Two connected routers may not exchange a prefix because a session is down, policy rejects the route, the route is ineligible for advertisement, or an iBGP propagation rule prevents it.

When a route is missing, check these four things

Session and receipt Is the neighbor established, and has the prefix actually been received?
Routing policy Has import policy accepted the route, or has a filter rejected or modified it?
Selection and propagation Is the route eligible for selection and advertisement to the next peer?
Next-hop reachability Can the router resolve the next hop and use the selected route for forwarding?

Withdrawals matter too: when a route is no longer available or advertised, BGP can send a withdrawal so the peer removes that path from its routing information. An alternative may then be selected if one is available and eligible.

Next: Trace the route. Use the interactive propagation stage to follow 10.10.10.0/24, observe how the learning model represents route updates, and identify where topology or policy changes the outcome. This is a simplified teaching model, not a complete implementation of every BGP protocol rule.

Interactive BGP Lab · 01

BGP UPDATE Message Inspector

Inspect what a BGP speaker communicates to a peer. Switch between a route announcement, a withdrawal and an attribute change, then reveal the message fields one step at a time.

Route announcement

Router A advertises a reachable prefix to Router B.

ANNOUNCEMENT
UPDATE · Illustrative message structure Router A → Router B
Withdrawn routes None
Path attributes Hidden until revealed
NLRI · Advertised prefix Hidden until revealed
Step 1 of 3

What is happening?

Router A is advertising the prefix 198.51.100.0/24. Router B receives the UPDATE and evaluates the route against its own BGP policies and selection process.

Advertised prefix 198.51.100.0/24
AS_PATH 64510
NEXT_HOP 192.0.2.1

Engineering interpretation

An announcement tells the peer about a prefix and supplies the path attributes used to evaluate it. Receiving an UPDATE does not guarantee that the route will be accepted, selected or installed in the forwarding table.

Key concept: An advertised route is information exchanged between BGP peers. Policy, best-path selection and next-hop reachability determine what happens next.

Knowledge check

In a route announcement, where is the newly advertised prefix represented?

Educational model only. The examples simplify BGP UPDATE processing; actual message encoding, attributes and route handling depend on the address family, negotiated capabilities, implementation and routing policy.

Interactive BGP Lab · 02

BGP Route Policy Workbench

Change an import policy and see how it affects a received route. Permit or reject a prefix, adjust its local preference, and inspect the resulting routing decision.

Router A Route source AS 65002
Router B Import policy AS 65001

Configure the policy

Router B evaluates a route received from Router A. Change the settings and apply the policy.

Select the prefix Router B receives.

Higher values are generally preferred within the same AS, when comparing eligible routes.

What is Router B checking?

A route must pass the relevant import policy and meet the requirements for further use.

Prefix match Not evaluated
Import policy Not evaluated
Next-hop reachability Not evaluated
Local preference 150

This workbench models a single route and simplified policy logic. Local preference is assigned inside Router B's AS; it is not an attribute normally sent to the external peer.

Routing decision

Ready to evaluate
Prefix 198.51.100.0/24
Policy outcome Not evaluated
LOCAL_PREF 150
Route usability Not evaluated

Configure your policy and apply it to see the result.

1. Receive BGP UPDATE arrives
→
2. Filter Apply import policy
→
3. Evaluate Check next hop
→
4. Select Compare eligible paths
Engineering takeaway: A route can be received but rejected by policy. A permitted route can still be unusable if its next hop is unresolved. Passing this simplified lab does not by itself prove that the route is the best path or is installed in the FIB.

Knowledge check

Router B receives a prefix, but its import policy rejects it. What is the expected result?

Illustrative training model, not a live router or vendor-specific policy simulator. Actual route processing depends on policy configuration, address family, route validity, next-hop resolution and the implementation's selection rules.

BGP Learning Centre · Route propagation

Follow a BGP Route Across Autonomous Systems

Follow the illustrative prefix 10.10.10.0/24 from R2 in AS65002, into AS65001 through R1, through the RR1 route reflector, and towards R3 in AS65003. Select a router, AS boundary, link or timeline step to inspect the route.

Step 1 of 6 · Route origin
Interactive propagation topology
iBGP eBGP Propagation constraint
BGP route propagation using an internal route reflector AS 65002 Route origin AS 65001 Internal BGP · route reflection AS 65003 External peer eBGP iBGP iBGP iBGP eBGP R2 Route source R1 AS edge RR1 Route reflector R4 AS edge R5 iBGP client R3 External peer PREFIX ORIGIN INTERNAL ROUTE DISTRIBUTION NEXT AS R1 → RR1 → R4 / R5 R4 → R3
Select a router, AS boundary or link to inspect it. 10.10.10.0/24
Step 1 · Route origin
1 / 6
Propagation event
Route origin

R2 originates the prefix

R2 represents the origin of the illustrative route in AS65002.

Current event
Sending routerR2
Receiving routerLocal BGP RIB
SessionLocal origin
AS contextAS65002
Engineering interpretation

Illustrative learning model, not live router output.

Route attributes

What changes as the route moves?

Values describe the example at the receiving stage; they are not live router-table data.

Prefix10.10.10.0/24
AS_PATH at receiverLocal origin
NEXT_HOP contextLocal route
Propagation typeOrigin
Attribute takeaway

Attribute behavior depends on route origin, session type and configuration.

BGP event log

Propagation timeline

Select any step to jump directly to its explanation.

BGP Learning Centre · Route Propagation

BGP Route Withdrawal and Convergence

Routing is not only about learning new paths. A network must also respond when a previously advertised route becomes unavailable. BGP communicates route changes between peers, evaluates the paths that remain eligible, and allows the routing and forwarding systems to adjust to the new state.

1. What is a BGP route withdrawal?

A BGP speaker can advertise reachability to a network prefix through an UPDATE message. If that previously advertised route is no longer available through the advertising speaker, the speaker can send an UPDATE that withdraws the prefix.

For example, suppose a router has advertised 10.10.10.0/24 to a BGP peer. If the route becomes unavailable, the peer needs to stop treating that advertisement as a valid path. The withdrawal communicates that the previously advertised reachability should no longer be used from that peer.

Important distinction: A withdrawal removes a particular advertised path from consideration. It does not necessarily mean the destination prefix is unreachable everywhere. Another peer may still advertise a valid alternative.

2. What happens after a route disappears?

Consider a destination that can be reached through two possible paths. If the primary path is withdrawn, the receiving router processes the change and considers the remaining eligible routes according to BGP decision rules and local routing policy.

01
Route changes A previously advertised path is withdrawn or becomes unusable.
02
Update is processed The affected BGP speaker processes the route change.
03
Alternatives are evaluated Eligible remaining paths are considered under BGP rules and policy.
04
Routing state adjusts The selected route and forwarding state may change to use another path.

If an eligible alternative exists, the router may select it and update its forwarding information. If no usable route remains, reachability to the prefix may be lost. Other routers must process the resulting changes in turn, so the network does not necessarily reach its final state all at once.

3. Why convergence takes time

BGP convergence describes the process through which routing information changes and routers settle on the routes available under the new network conditions. Its duration depends on more than the UPDATE message itself.

Factor Why it matters
Failure detection A physical link failure, a BGP notification, or a session timeout may each reveal a problem differently.
Route availability A usable alternative may allow traffic to move to another path; without one, the destination may become unreachable.
Routing policy A candidate route may exist but be rejected or considered ineligible under import policy or other routing constraints.
Propagation and processing Different routers receive and process changes at different times, and may temporarily hold different routing views.
Forwarding updates The forwarding plane must reflect the applicable routing decision; this is related to, but distinct from, receiving a BGP UPDATE.

4. A route withdrawal is not the same as a session failure

A BGP withdrawal can remove a prefix while the BGP session remains established. A session failure is different: the peers lose their BGP relationship, and routes learned through that session are generally removed from consideration unless retained by a feature such as Graceful Restart under its applicable rules.

This distinction matters during troubleshooting. A session can remain established while a specific route disappears because of a withdrawal or policy change. Conversely, a session failure can affect many routes learned through that peer.

Engineering question: Is the problem a single prefix, a rejected route, an unavailable next hop, or an entire BGP session? Identifying the scope helps determine which evidence to inspect next.

5. From the BGP control plane to the forwarding plane

Learning about a withdrawal is only one part of the process. For traffic to use a replacement path, the router must have a suitable route and be able to resolve the necessary next hop. The routing information base (RIB) and forwarding information base (FIB) serve different purposes: the RIB holds routing information and decisions, while the FIB provides the information used to forward packets.

A successful control-plane update does not by itself prove that end-to-end traffic is flowing correctly. A next-hop resolution problem, forwarding programming issue, or downstream failure can still interrupt connectivity.

Engineering takeaway

When a BGP route disappears, investigate four questions: Was the route withdrawn? Is another path eligible? Has the routing decision changed? Is the forwarding plane using a working path? These checks separate route propagation, path selection and actual forwarding.

Put the timeline into practice

Use the interactive lab that follows to step through two outcomes: a withdrawal where an alternative path is available, and a withdrawal where no usable alternative remains. Watch how the modeled route state changes at each stage.

BGP Route Propagation · Interactive Lab

BGP Route Withdrawal & Convergence Timeline

Withdraw a route or simulate a failed BGP path. Step through the control-plane events and see whether an alternative route can preserve reachability.

Choose a scenario

Network state

Primary active
ILLUSTRATIVE ROUTING DOMAIN R1Source R2Primary R3Alternative R4Destination Primary Alternate
Prefix under investigation10.10.10.0/24
Current usable pathPrimary
Primary route available

R4 has a usable primary path in the starting state.

Event 1: Primary route active

R4 currently uses the route learned along the primary path. An alternative candidate is available in this scenario.

Convergence timeline

1 of 5
  1. 1
    Primary route activeThe prefix is reachable over the primary path.
  2. 2
    Failure or withdrawalThe primary route becomes unavailable.
  3. 3
    Route update processedThe router processes the withdrawal or detects the failed session.
  4. 4
    Alternative evaluatedA remaining candidate is evaluated, if one exists.
  5. 5
    Forwarding state updatedThe usable path changes, or reachability is lost.

Knowledge check

Does receiving a BGP withdrawal mean that every router in the network changes its forwarding table at exactly the same instant?

Choose an answer to check your understanding.
Engineering note: This is a conceptual timeline, not a real-time protocol simulation. Event order and convergence duration vary with failure detection, BGP timers, route availability, implementation, policy and network conditions. A route withdrawal and a session failure are related but distinct events.

BGP Learning Centre · Stage 02 Complete

What You Have Learned

A route does not magically appear throughout a network. It must be originated or learned, advertised to eligible peers, accepted under routing policy, and processed according to BGP's propagation rules. Understanding each step helps explain where reachability succeeds or breaks down.

Three concepts to remember

01

Routes begin with an advertisement

A prefix must be made available to BGP, for example through network configuration or redistribution. BGP can then advertise eligible reachability information to a peer when the session, route state, and policy allow it.

02

Propagation has rules

BGP does not forward every route to every neighbor. eBGP and iBGP relationships, route-reflector behavior, export policy, and route eligibility all influence where an advertisement can travel.

03

Withdrawals change reachability

When a route becomes unavailable, BGP can send a withdrawal to remove that advertisement from a peer's usable routing information. The resulting change may trigger a new path selection and further propagation.

Engineering principle

A route known by one router is not necessarily known by every router. A prefix may be absent because it was never advertised, was rejected by policy, was not eligible for propagation, or was withdrawn. Trace the advertisement across each BGP boundary instead of assuming network-wide visibility.

Your next step · Stage 03 How BGP Selects a Path

When multiple routes to the same prefix are available, discover how BGP compares candidate paths and how attributes such as Weight, Local Preference, AS_PATH, and MED can influence the decision.

BGP Best-Path Selection: Why One Route Wins

BGP Learning Centre · Foundation 03

Comparing Candidate Paths

A BGP router can learn multiple paths to the same destination prefix from different neighbors. It evaluates eligible routes using path attributes and decision rules to choose a preferred path. Understanding these attributes explains why BGP may select a route that is not physically shortest or that uses a different provider than expected.

From candidate routes to a preferred path

Imagine a router receives three candidate paths for 10.10.10.0/24. The paths may differ in local policy, AS_PATH length, MED, next-hop reachability, and other attributes. The router evaluates eligible candidates according to its implementation and configuration.

1. Learn Receive candidate routes from BGP peers.
2. Validate Check route eligibility, policy, and next-hop reachability.
3. Compare Evaluate attributes and applicable tie-break rules.
4. Select Choose the preferred eligible path. If installed in the routing table, it can be used for forwarding.

Attributes that influence the decision

01

Weight

On Cisco platforms, Weight is locally significant. A higher value is preferred, but Weight is not propagated to BGP peers and is not a standard BGP path attribute.

02

Local Preference

LOCAL_PREF communicates an AS's preferred outbound path. A higher value is generally preferred among eligible candidates. It is exchanged within the AS using iBGP and is not normally sent to external peers.

03

AS_PATH

AS_PATH records the AS numbers traversed by a route. A shorter path is often preferred when earlier decision criteria tie, but policy and higher-priority attributes can outweigh path length.

04

Origin

ORIGIN indicates how a prefix entered BGP. In the conventional comparison, IGP is preferred over EGP, which is preferred over Incomplete, if the decision reaches this criterion.

05

MED

MULTI_EXIT_DISC suggests a preferred entry point into an AS. A lower MED is generally preferred when the comparison applies; comparison across different neighboring ASes depends on implementation and configuration.

06

Next-hop reachability

A candidate must be usable. If the BGP next hop cannot be resolved, the route may be ineligible for selection or installation even when other attributes appear attractive.

Remember the order: attributes do not have a universal impact in isolation. For example, a higher Local Preference generally outweighs a shorter AS_PATH when the applicable decision process evaluates Local Preference first. Always consider route eligibility, configured policy, and platform-specific rules.

Example: why the preferred route can change

In this simplified comparison, assume all three routes are eligible and Local Preference is the first attribute that differs.

Candidate Local Preference AS_PATH length Illustrative outcome
Path A 100 2 Lower Local Preference than B and C.
Path B 200 4 Preferred because it has the highest Local Preference, despite its longer AS_PATH.
Path C 150 1 Shorter AS_PATH than B, but lower Local Preference.

Path B wins under these assumptions. The example demonstrates why the shortest AS_PATH does not automatically win: Local Preference is evaluated earlier in the conventional decision process.

Engineering caveat: the full best-path process includes additional criteria and platform-specific behavior. MED comparison can vary, and route eligibility, policy, and tie-breaks can change the result. This learning stage demonstrates selected attributes rather than reproducing every vendor's complete algorithm.

Next: Compare the paths. Use the interactive best-path stage to change attributes and observe how the preferred candidate changes. Identify which attribute decides the comparison, and confirm the assumptions before applying the result to a production network.

03 Network Insight · Editorial Engineering Guide

BGP Best-Path Selection: Why One Route Wins

When a router learns multiple eligible paths to the same prefix, BGP evaluates the candidates using path attributes, routing policy and applicable decision rules. The preferred route is not necessarily the shortest physical path or the route with the fewest AS numbers. To explain the outcome, identify the first decisive criterion.

The key engineering principle

Never diagnose a best-path decision by looking at AS_PATH length alone. Confirm that the candidates are eligible, understand the applicable decision process, and identify the attribute or rule that actually determined the result.

From candidate routes to a selected path

01

Learn

Receive candidate paths from configured BGP neighbors or other relevant sources of routing information.

02

Validate

Check route eligibility, import policy, next-hop resolution and other conditions that affect selection.

03

Compare

Apply the configured decision process to the eligible candidates, comparing attributes in the applicable order.

04

Select

Choose the preferred eligible path. Installation and forwarding still depend on the routing system and usable next-hop state.

Worked example · Three candidates for 10.10.10.0/24
Destination 10.10.10.0/24
Path A Candidate
Local Preference 100
AS_PATH length 2
Eligibility Assumed valid
Path B Illustrative winner
Local Preference 200
AS_PATH length 4
Eligibility Assumed valid
Path C Candidate
Local Preference 150
AS_PATH length 1
Eligibility Assumed valid
Why Path B wins in this example

All candidates are assumed eligible and comparable within the same AS. Path B has the highest Local Preference at 200. Local Preference is evaluated before AS_PATH length in the conventional decision process, so Path B can win despite having a longer AS_PATH.

Attributes and conditions to understand

Weight

On Cisco platforms, Weight is locally significant and a higher value is preferred. It is not a standard BGP path attribute advertised to peers.

Local Preference

Used within an AS to express a preferred outbound path. A higher value is generally preferred among eligible candidates.

AS_PATH

Records AS numbers traversed by the route. A shorter path is commonly preferred when earlier decision criteria do not decide the outcome.

MED

Can indicate a preferred entry point into an AS. A lower MED is generally preferred when the comparison applies; comparisons across neighboring ASes depend on implementation and configuration.

Origin and other tie-breaks

ORIGIN and further criteria may decide between otherwise comparable candidates. The exact sequence depends on the platform and configuration.

Next-hop reachability

A route whose next hop cannot be resolved may be ineligible for selection or installation. Attractive attributes do not make an unusable next hop valid.

Test your engineering judgement

Three eligible routes reach the same prefix. Path A has Local Preference 100 and AS_PATH length 2. Path B has Local Preference 200 and AS_PATH length 4. Assume the Local Preference comparison decides before AS_PATH length.

Engineering takeaway: Determine which routes are eligible, identify the applicable decision process, and compare the decisive attributes. This example isolates Local Preference; it is not a complete implementation of every vendor's BGP best-path algorithm.
Stage 3 · BGP Decision Process

How BGP Selects a Path

Three candidate routes reach the same destination. Compare their attributes, identify the first decisive difference and see why a route can win even when it has a longer AS_PATH.

i
Explore the candidate routes

Select Path A, B or C. The route cards, diagram and evidence panel update together.

Three candidate paths · One destination 10.10.10.0/24
Interactive BGP best-path comparison Three candidate routes enter AS 65001 from external autonomous systems. R1 compares the routes for prefix 10.10.10.0/24. Select a path or router to inspect it. EXTERNAL NETWORKS Candidate route sources AS 65001 · INTERNAL ROUTING DOMAIN R1 evaluates eligible routes DESTINATION Selected route AS 65002 Candidate A AS 65003 Candidate B AS 65004 Candidate C eBGP eBGP eBGP iBGP iBGP iBGP PATH A PATH B PATH C R2 Path A · LP 100 R3 Path B · LP 200 R4 Path C · LP 150 R1 Decision router BEST PATH: B Destination 10.10.10.0/24 Preferred route WINNER: PATH B Highest Local Preference
On a narrow screen, swipe horizontally to inspect the complete topology.
Path A Path B Path C Topology links

Candidate route comparison

Select a candidate to inspect its attributes.

Path B wins
Why Path B wins

Path B has the highest Local Preference at 200. In this example, that difference determines the winner before AS_PATH length is compared.

Step 1 · Check route eligibility 1 of 4

Assume all three candidate routes are valid and their next hops are reachable.

Decision evidence

Compare the attributes used in this exercise.

Path B selected
AttributeABC
Route eligibleYesYesYes
Local Preference100200150
AS_PATH length241
OriginIGPIGPIGP
MED———
Next hopReachableReachableReachable
Selected evidence: Path B has Local Preference 200, compared with 150 for Path C and 100 for Path A. It is preferred under the assumptions of this exercise.
Reading the table: The highlighted row is the attribute under discussion. A dash means the exercise does not provide a MED value; it does not mean that all routers necessarily treat MED as equal in every real deployment.
Open BGP Simulator ↗

BGP Learning Centre · Stage 03 Complete

What You Have Learned

When several routes lead to the same destination, BGP must determine which path to prefer. The decision depends on the attributes of eligible candidate routes, the router's configuration, and the applicable selection rules.

Three concepts to remember

01

Compare eligible paths

BGP evaluates candidate routes to a destination prefix. Route eligibility and earlier decision criteria matter: a path with a shorter AS_PATH does not automatically win if another path is preferred by a higher-priority attribute.

02

Understand attribute order

In common implementations, attributes such as Cisco Weight and Local Preference are evaluated before AS_PATH length. Origin, MED, eBGP/iBGP status, and later tie-breakers can also matter. Exact behavior depends on implementation and configuration.

03

Policy shapes the outcome

Routing policy can change attributes, filter advertisements, and influence which paths are eligible. MED comparisons may depend on configuration, including whether paths from different neighboring autonomous systems are compared.

Engineering principle

Never diagnose a BGP decision by looking at one attribute in isolation. Identify the candidate routes, check their eligibility, compare the decision attributes in the correct order, and inspect the router's actual best-path explanation. The shortest AS_PATH is not necessarily the preferred route.

Your next step · Stage 04 Diagnosing BGP Failures

Apply the architecture, propagation, and best-path concepts to an incident. Investigate session state, route visibility, policy, next-hop reachability, and forwarding to identify where the failure occurs.

BGP Troubleshooting: Diagnose Routing Failures

BGP Learning Centre · Foundation 04

A Structured Fault Investigation

When a BGP route disappears or traffic stops flowing, changing configuration at random is rarely the fastest solution. A disciplined investigation follows the evidence from the neighbor session to the received route, policy decisions, best-path selection, next-hop reachability, and the forwarding plane.

A practical troubleshooting sequence

Work from the control plane toward the data plane. Each step answers a different question, helping you isolate the failure domain before making a change.

1. Session Confirm the neighbor is reachable and the BGP session is Established.
2. Route Check whether the expected prefix is received and accepted.
3. Decision Inspect policy, attributes, and the selected best path.
4. Forwarding Verify next-hop resolution, installed routes, and end-to-end reachability.
01

Session failure

A neighbor stuck outside Established cannot exchange normal BGP routing updates. Check addressing, TCP reachability, remote AS configuration, authentication, timers, and relevant access controls.

02

Route missing

If the session is established but the prefix is absent, investigate whether the origin router advertises it, whether inbound or outbound policy permits it, and whether it can propagate through the topology.

03

Wrong path selected

If several routes exist, compare their attributes and policy. A higher Local Preference can outweigh a shorter AS_PATH when it is the first differing criterion in the applicable decision process.

Use the evidence to isolate the fault

Symptom Evidence to inspect Possible cause
Neighbor is not Established Neighbor state, TCP connectivity, configuration Transport reachability, AS mismatch, authentication, or session configuration.
Prefix is not received Originating route, received-route information, UPDATE logs Missing origination, session problem, or filtering before receipt.
Prefix is received but rejected Import policy and route-policy logs A prefix list, route map, or another import policy rejects the route.
Unexpected best path Candidate attributes and best-path explanation Local Preference, Weight, AS_PATH, MED, or another decision criterion.
Route exists but traffic fails Next hop, routing table, FIB, interface and packet path Unresolved next hop, missing forwarding entry, interface failure, or downstream issue.
Traffic fails after a link outage Neighbor state, withdrawals, alternate paths and convergence No eligible backup route, failed propagation, or a convergence delay.

Incident investigation checklist

  • Define the symptom. Identify the affected prefix, source, destination, and when the problem began.
  • Confirm the topology. Check which links and BGP sessions should provide the route.
  • Inspect the received route. Determine whether the route arrived and whether import policy accepted it.
  • Compare candidates. Find the selected path and identify the attribute or rule that decided the outcome.
  • Trace the next hop. Verify that the next-hop address is reachable and that the route is usable for forwarding.
  • Test recovery. After a link or neighbor failure, confirm whether a valid alternative exists and routing state changes as expected.
  • Verify the result. Confirm both control-plane state and actual reachability after recovery.

Route state is not the same as traffic success. Historical logs may show a route that is no longer valid or usable. Distinguish event history from current state, and validate the forwarding path separately.

Lab limitation: the incident widget models selected failure and route-state behaviors for learning. Its results illustrate troubleshooting logic; they do not guarantee that every BGP implementation, withdrawal sequence, or convergence event behaves identically.

Next: Investigate the incident. Use the interactive stage to introduce a failure, inspect the affected routers and route state, and determine whether the modeled network retains an alternative path. Restore the link and compare the recovered state with the failure evidence.

01 Engineering Concept Spotlight · BGP Fundamentals

An Established BGP Session Does Not Guarantee Route Availability

A BGP neighbor can be healthy while a particular prefix is missing, rejected, or unusable for forwarding. Good troubleshooting separates session health, route processing, and the actual packet-forwarding path.

Engineering principle

Never use the BGP neighbor state alone as proof that a destination is reachable. Verify the expected prefix, its route-selection outcome, next-hop resolution, and forwarding state separately.

01 / SESSION

Can the peers exchange BGP messages?

Check neighbor state and session details. Established indicates that the BGP session has reached its operational state.

SESSION HEALTH
02 / ROUTE

Is the expected prefix available?

Check whether the prefix was received, accepted by policy, considered eligible, and selected as the best path.

ROUTE EVIDENCE
03 / FORWARDING

Can the router actually forward traffic?

Check next-hop resolution, the routing table, forwarding entries, interfaces, and the relevant traffic path.

DATA-PLANE CHECK
Example scenario · Prefix 10.10.10.0/24
R1 Originates prefix
R2 Receives route
R3 Destination-side check

Suppose R2 reports its BGP neighbor as Established, but 10.10.10.0/24 is absent from the expected route information. Investigate advertisement, import policy, propagation rules and route eligibility before assuming the session is broken. If the route is present but traffic fails, continue to next-hop and forwarding checks.

Test your engineering judgement

A BGP neighbor is Established, but users cannot reach 10.10.10.0/24. What is the best next step?

Interactive BGP Lab · 03

BGP-to-Forwarding Diagnostic Lab

A BGP session is Established, but traffic is not reaching its destination. Follow the route through the control plane and forwarding plane to identify the first failing stage and choose the next troubleshooting step.

Incident: destination unreachable

Router R1 receives traffic for a destination prefix but cannot forward it successfully.

10.10.10.0/24

1. Select an incident scenario

2. Trace the route-processing pipeline

01 Route received

Did R1 learn the prefix from a BGP peer?

Not checked
02 Route accepted

Did import policy allow the route?

Not checked
03 Best path

Is this route eligible and selected?

Not checked
04 Routing table

Is the route installed in the RIB?

Not checked
05 Forwarding table

Can the data plane forward using it?

Not checked

Observed evidence

Simulated command output for the selected incident.

Suggested verification commands

Find the fault

Use the evidence to locate the earliest failed stage, rather than assuming the BGP session itself is the problem.

Recommended next step

Inspect the route and forwarding state.

Diagnosis: route is forwarding successfully

HEALTHY

Knowledge check

R1 shows the prefix in its BGP table, but the route is absent from the forwarding table. What should you investigate next?

This is a simulated diagnostic exercise, not a live router. Command syntax and the relationship between BGP, the RIB and the FIB vary by platform. A BGP route can be present without being the selected route, installed in the routing table or programmed into forwarding hardware.

Stage 4 · Interactive CLI Investigation

BGP CLI Investigation Lab

Investigate a routing incident as a network engineer would: inspect the BGP session, examine the route, check reachability, and compare the evidence before deciding on the fault.

1. Select the incident

R1 is not receiving expected routes from its BGP neighbour. Find the failure point using the available commands.

Evidence collected: 0 of 4 command checks.

2. Run diagnostic commands

Choose a command to inspect the simulated router output. Gather evidence before submitting your diagnosis.

R1 · SIMULATED CLI READY
R1# show ip bgp summary
BGP router identifier 10.0.0.1, local AS number 65001
Neighbor        V    AS     State/PfxRcd
10.0.0.2        4  65001    12
10.0.0.3        4  65002    4

3. Evidence collected

Each command can reveal a different part of the control-plane or forwarding pipeline.

No evidence recorded yet

Run the diagnostic commands above to begin the investigation.

4. Investigation checklist

1Verify the BGP neighbour state.
2Check whether the expected prefix is in the BGP table.
3Check the routing table and next-hop resolution.
4Inspect the forwarding entry where applicable.

Submit your diagnosis

Run commands, collect evidence, then submit your diagnosis.

Engineering principle

Do not assume that an established BGP session proves a prefix is accepted, selected as best, resolvable, or installed in the forwarding table.

Trace the route through each stage and use the command output to support your conclusion.

Training simulation only. Command syntax and output vary by network operating system and software version. The scenarios model common diagnostic patterns rather than a live router. In production, confirm the relevant vendor documentation and use platform-appropriate commands before making changes.

04 Network Insight · Editorial Engineering Guide

BGP Fault Investigation: Follow the Evidence

Effective BGP troubleshooting is a process of narrowing down where expected routing behaviour diverges from observed behaviour. Start with the symptom, gather evidence at each stage, and change the configuration only when you have a defensible hypothesis.

Do not confuse a BGP session problem with a route problem

An Established session proves that the peers have reached the Established state. It does not prove that a particular prefix was received, accepted by policy, selected as best, installed in the routing table or programmed into the forwarding plane.

A repeatable troubleshooting workflow

01

Define the symptom

Identify the missing prefix, failed destination, affected router and expected outcome. Establish when the problem began.

02

Collect evidence

Check session state, received routes, policy counters, best-path output, next-hop reachability and relevant logs.

03

Isolate the layer

Determine whether the issue concerns connectivity, session establishment, route exchange, path selection or forwarding.

04

Verify the outcome

Confirm the intended route state, next-hop resolution and end-to-end reachability after the corrective action.

Illustrative incident · Prefix missing at Router R4
Reported symptom Router R4 cannot find the expected route to 10.10.10.0/24 in its routing information. The team reports that the upstream BGP session is Established.

Check 1 · Session state

Confirm the relevant peer is Established, review uptime, and check whether resets or notification events coincide with the incident.

Check 2 · Prefix reception

Determine whether 10.10.10.0/24 is actually received from the expected neighbor. If not, investigate origination, advertisement and upstream policy.

Check 3 · Import policy

If the route arrives, inspect prefix lists, route maps, import policies and filtering counters to find whether the candidate is rejected or modified.

Check 4 · Selection and forwarding

If accepted, inspect best-path output, next-hop reachability, the routing table and forwarding state. A route may be received without becoming the selected usable path.

Trace the route through the evidence chain

A
Neighbor session

Is the expected peer Established, and is the session stable? If not, investigate transport reachability, TCP/179, configuration and BGP error evidence.

B
Received route

Does the expected prefix arrive from the intended neighbor? If it is absent, trace the advertisement back toward its origin.

C
Accepted and eligible candidate

Check import policy, route validity, next-hop resolution and other eligibility conditions before blaming the best-path algorithm.

D
Selected route and forwarding

Confirm the selected path, routing-table installation, forwarding entry and destination reachability. These are related but distinct checks.

Investigation readiness checklist

Use this checklist before making a change. Tick each item once you have gathered or verified the corresponding evidence.

0 of 5 checks completed Investigation in progress
Engineering takeaway: Find the earliest point where the observed route state differs from the expected state. That is usually a more useful starting point than changing several BGP attributes at once. Use platform documentation and live device evidence to confirm the diagnosis.
Network Insight · Interactive Engineering Lab

BGP Incident Investigation

Inject a link failure, inspect the affected routers, and investigate the assumed impact on route availability. Follow the evidence before deciding what to repair.

Incident scenario
BGP path interruption
Test prefix
10.10.10.0/24
Investigation objective
Isolate the fault

1. Inspect the BGP topology

Select any router or session. The topology uses the six-router Learning Centre design: R1, RR1, R4 and R5 in AS65001, R2 in AS65002, and R3 in AS65003.

Learning Centre topology · Three autonomous systems Choose a router or connection
AS 65001 INTERNAL BGP DOMAIN AS 65002 EXTERNAL PEER AS 65003 EXTERNAL PEER iBGP iBGP iBGP eBGP eBGP R1 AS65001 AVAILABLE RR1 AS65001 AVAILABLE R4 AS65001 AVAILABLE R5 AS65001 AVAILABLE R2 AS65002 AVAILABLE R3 AS65003 AVAILABLE R1: edge RR1: route reflector R4: core · R5: client External AS External AS
Session available Failed session Selected session
Topology note: The diagram contains three illustrative iBGP sessions and two eBGP sessions. The incident exercise uses simplified connectivity to help you reason about failures; it is not a full BGP best-path or route-reflector implementation.

2. Inject an incident

Choose a BGP session and simulate a link or session failure. You can also select a connection directly in the diagram.

All five sessions are available. Select a connection or inject a failure to begin.

3. Inspect a router

Select a router in the diagram or use the selector to inspect its role and current simulated connectivity.

R1 · Edge router

AS65001. Connects to the internal route-reflector domain and external peer R2.

AS number
65001
Session status
Available
Direct neighbours
RR1, R2
Router role
Edge

4. Trace the illustrative route

The model treats R1 as the route source for this exercise. Green hops indicate connectivity from R1 across the displayed topology; red hops indicate that the simulated path is interrupted. Actual BGP route selection depends on received routes, policy, attributes and available alternatives.

Route under investigation
10.10.10.0/24
R1Source
RR1Reflector
R4Core
R5Client
R2AS65002
R3AS65003
The simplified topology is connected from R1. No session failure has been injected.

5. Diagnose the incident

Inject a failure first. Then choose the diagnosis that best matches the selected connection. Use the topology and status indicators as your evidence.

Your diagnosis will be checked against the session selected in the incident controls.

Investigation event log

1 event
00:00Lab initialized. All five simulated sessions are available.
05 Network Insight · Engineering Knowledge Check

Can You Diagnose the BGP Outcome?

A network engineer must connect control-plane evidence to the routing outcome. Use this short scenario to test your understanding of session state, best-path selection and next-hop reachability before moving on to the interactive BGP simulator.

How to use this challenge

Read the scenario, choose one answer for each question, and check your responses. Each question provides an explanation, so the exercise teaches the reasoning behind the answer rather than simply marking it right or wrong.

Scenario · The missing route
R1 Route source
R2 Edge router
R4 Destination-side router
Expected prefix 10.10.10.0/24
Observed session Established
Reported symptom Route missing at R4
01

What does an Established BGP session prove?

02

R2 has received the prefix, but R4 does not have it. What is a useful next step?

03

A route appears in BGP, but traffic still fails. Which investigation is most appropriate?

0 of 3 questions answered Score: —
Final engineering principle: A route passes through several distinct stages: reception, policy acceptance, best-path selection, routing-table installation and forwarding. Troubleshooting is more effective when you identify exactly which stage has failed.

BGP Learning Centre · Stage 04 Complete

What You Have Learned

BGP troubleshooting is most effective when you investigate the evidence in a structured order. Start with the neighbor session, trace the route through the control plane, inspect policy and path selection, and then verify next-hop reachability and forwarding.

Three concepts to remember

01

Start with the session

Check neighbor state, configured peer addresses, local and remote ASNs, and underlying IP reachability. A session that is not established cannot exchange normal BGP route updates. A session that is established still needs route-level checks.

02

Trace the missing or unexpected route

Check whether the prefix is present, received from a neighbor, accepted by policy, and eligible for selection. Compare candidate attributes and inspect route-reflector or other propagation rules when a route fails to reach its intended destination.

03

Verify the forwarding path

Confirm that the selected route has a resolvable next hop and that the relevant routing and forwarding entries are usable. Then investigate the data path, interface state, filtering, and return path if traffic still fails.

Engineering principle

Diagnose the first point where expected behavior diverges from observed behavior. Do not assume that a failed ping means BGP is broken, or that an established session proves the route is usable. Follow the evidence from session state through route processing to actual packet forwarding.

Learning journey · Complete From BGP Fundamentals to Engineering Practice

You have explored network architecture, route propagation, best-path selection, and failure diagnosis. Bring the four stages together by tracing a route, explaining why it wins, and identifying where forwarding can fail.

06 Network Insight · Engineering Field Notes

The BGP Engineer’s Field Guide

Understanding BGP is more than memorising attributes and commands. Engineers need a repeatable way to collect evidence, explain routing decisions, document incidents and verify that a change has restored the intended behaviour. Use these field notes as a compact reference when working through real or simulated routing scenarios.

Work from observable evidence

Record what the router actually shows before deciding what should change. Separate the control plane from the forwarding plane, and distinguish a confirmed finding from a working hypothesis.

Four habits of effective BGP troubleshooting

Start with the exact prefix

Write down the network, expected path, affected router and observed symptom. Avoid vague descriptions such as “BGP is broken” when the fault may affect only one route.

Trace each route stage

Establish whether the route was received, accepted by policy, considered eligible, selected as best and installed for use. These are separate questions.

Change one thing at a time

Form a testable hypothesis, make an approved targeted change, and compare the result with the original evidence. Multiple simultaneous changes make cause and effect harder to establish.

Verify the forwarding result

Do not stop at a successful BGP command or a visible route. Check next-hop reachability, routing-table installation, forwarding state and appropriate end-to-end tests.

Common assumptions to challenge
Assumption “The peer is Established, so routing must be working.”
Engineering reality Session state confirms the BGP relationship is established. Investigate the individual prefix and its subsequent route stages.
Assumption “The shortest AS_PATH always wins.”
Engineering reality Earlier criteria, including applicable Weight and Local Preference decisions, can determine the winner before AS_PATH length is compared.
Assumption “A route shown in BGP guarantees traffic forwarding.”
Engineering reality The route may not be selected or installed, or its next hop and forwarding path may be unusable.
Assumption “Resetting the session is the fastest fix.”
Engineering reality A reset can interrupt routing and erase useful transient evidence. Identify the likely fault and consider the operational impact before intervening.
Reusable incident handover template

Use this structure to document a lab result or prepare a concise operational handover. Replace the prompts with verified facts.

INCIDENT: Affected router: Affected prefix: 10.10.10.0/24 Expected behaviour: Observed behaviour: BGP SESSION: Peer and state: Uptime / reset evidence: ROUTE EVIDENCE: Received from: Import / export policy: Best-path result: Next-hop reachability: Routing-table / forwarding state: FINDINGS: Confirmed cause: Supporting evidence: Working hypotheses: ACTION: Approved change: Expected result: Rollback plan: VALIDATION: Post-change route state: Forwarding / reachability test: Monitoring period: Final status:

Before you close the investigation

Run through this final review. Your selections update the progress indicator locally in this widget.

0 of 4 checks completed Review in progress
Take this into the lab: Use the BGP simulator to practise tracing a prefix, comparing candidate routes and diagnosing a missing route. Treat simulated results as learning evidence, not as a substitute for checking the relevant vendor documentation and live device state.
Learning Centre · Conclusion

From BGP Fundamentals to Engineering Practice

You have explored four essential stages of BGP operation: understanding network topology, tracing route propagation, analysing best-path selection, and investigating routing failures. Together, these stages provide a foundation for understanding how BGP behaves in real networks.

What you have learned

Connect the concepts

Understand autonomous systems and BGP neighbours, follow route advertisements, compare path attributes, and examine how routing information influences forwarding decisions.

What engineers investigate

Find the cause, not just the symptom

A route may be received but not selected, selected but not advertised, or withdrawn after a failure. Follow the evidence to identify where actual behaviour differs from expectations.

The key engineering takeaway

Do not stop at asking which route won. Determine why it won, where the route came from, which policies influenced it, and how a topology change or failed BGP session affects the available paths.

Now put your knowledge into practice

Return to the interactive simulator, explore routing behaviour, and practise explaining the evidence behind each BGP decision.

Launch BGP Simulator
☕
Support Network Insight
Help support the development of interactive networking labs, BGP simulations, and educational content.
Support the Project

Where to Go Next