Concept set of mobile network, wireless Internet connection technology. Wifi illustration. People use device to connect Internet network Modern colorful flat vector illustration for poster, banner.

Routing Convergence

Network Engineering Guide

Routing Convergence: From Failure Detection to Forwarding Recovery

Routing convergence determines how a network responds when its topology changes. When a link fails, a router becomes unreachable, or a route is withdrawn, routing protocols must react, select usable paths, and update forwarding state. Understanding each stage helps engineers reduce disruption and diagnose why traffic does not recover as quickly as expected.

A network is not resilient simply because it has redundant links or multiple routing protocols. Resilience depends on how effectively the network detects a failure, communicates the change, calculates an alternative path, and installs the resulting forwarding decision. Until those operations complete, packets may be lost, delayed, or sent along a path that is no longer usable.

Different protocols approach these tasks in different ways. OSPF and IS-IS distribute link-state information and calculate paths using SPF algorithms. EIGRP can use a feasible successor when its loop-free conditions are satisfied. BGP processes path attributes and routing updates, with its behaviour influenced by policy, session state, and route propagation. Their convergence characteristics therefore depend on more than the protocol name alone.

This engineering guide breaks convergence into measurable stages and connects routing-protocol behaviour to the forwarding plane. Through interactive experiments, you will investigate failure detection, topology changes, route selection, alternate paths, and the installation of updated forwarding entries.

The key engineering principle

Convergence time is an outcome of several processes, not one timer. Separate failure detection, control-plane processing, route calculation, and forwarding recovery when measuring performance or troubleshooting an outage.

STAGE 01 Detect Identify the failed link, neighbour, or forwarding path.
STAGE 02 Propagate Communicate the topology or reachability change.
STAGE 03 Calculate Re-evaluate routes and select a usable alternative.
STAGE 04 Install & Forward Update forwarding state and verify traffic recovery.

Network Insight · Engineering Guide

Routing Convergence: Table of Contents

Follow the complete convergence process, from initial failure detection to forwarding recovery and operational verification. Select a section to jump directly to its introduction.

Section 1 · Fundamentals

Understanding Routing Convergence

Before troubleshooting a routing failure, it is important to understand what convergence actually means. A network must detect a change, process routing information, select usable paths, and update forwarding behaviour. These activities are related, but they are not the same event.

In this section: Control plane versus forwarding plane, the four stages of convergence, and the factors that influence recovery time.

Section 01 · Foundations

Understanding Routing Convergence

Routing convergence is the process through which routing systems respond to a network change and establish usable, consistent routing and forwarding state. It connects topology information, route calculation, and packet delivery—and determines how much disruption users may experience when the network changes.

What does it mean for a network to converge?

Routers build their view of reachable destinations from directly connected networks, static configuration, and information learned through routing protocols. When a link fails or a neighbour becomes unavailable, some of that information may no longer describe the current network. Routing systems must detect the change, process the resulting information, and recalculate affected routes.

A network is considered converged for a particular routing domain when the relevant protocol state has settled and routers have processed the changes needed to make their routing decisions. This does not necessarily mean every router has an identical routing table. Different routers can have different perspectives, policies, and next hops while still operating correctly. The important requirement is that their routing and forwarding behaviour is consistent with the intended network design.

Control plane versus forwarding plane

Understanding convergence starts with separating two related functions. The control plane determines reachability and selects routes. The forwarding plane uses installed forwarding entries to move packets toward their destinations. A routing protocol can detect a failure and calculate an alternative route before every relevant forwarding entry has been updated.

Control plane

Determine the route

Maintains protocol state, exchanges routing information, evaluates route preferences, and selects paths. Examples include OSPF SPF calculations, EIGRP route selection, and BGP best-path processing.

Forwarding plane

Move the packet

Looks up packet destinations in forwarding state, selects an outgoing interface or next hop, and transmits traffic. Hardware and software implementation details vary by platform.

The Routing Information Base (RIB) contains selected routing information. The Forwarding Information Base (FIB) contains destination-to-forwarding information used by the forwarding process. The FIB is derived from routing information and may be programmed into hardware, software, or a combination of both. It is therefore more accurate to describe the FIB as derived forwarding state than simply as a copy of the RIB.

The four stages of convergence

A useful troubleshooting model divides a convergence event into four stages. The stages are closely related and may overlap; they are not always four strictly sequential operations.

01 · DETECT Recognise failure

Identify a failed link, lost neighbour, or unreachable next hop.

02 · PROPAGATE Share the change

Notify relevant routing processes and distribute updated information.

03 · CALCULATE Select a path

Re-evaluate available routes and choose a valid replacement.

04 · INSTALL Restore forwarding

Update forwarding state and verify that traffic can use the path.

Why the distinction matters

Fast failure detection does not guarantee fast application recovery. Route propagation, route calculation, forwarding-table programming, and the availability of a genuinely independent alternate path can all affect the result.

Convergence is more than a protocol timer

Convergence performance depends on the topology, routing information being processed, protocol configuration, implementation, processor load, and forwarding hardware. A precomputed backup path may allow local repair before the entire routing domain has completed its response. Conversely, a route that is theoretically available may not provide a usable repair if it violates routing policy or loop-free requirements.

For this reason, engineers should avoid treating a single advertised convergence time as a guarantee. Measurements must specify the event being timed, the start and end points, the traffic being tested, and the conditions under which the result was obtained.

What you should be able to explain

  • Why routing convergence and forwarding recovery are related but distinct.
  • How a topology change affects routing information and selected paths.
  • Why the RIB and FIB serve different purposes.
  • Why failure detection, route calculation, and forwarding updates should be measured separately.

Engineering takeaway: treat convergence as a chain of observable events. Establish what failed, when the routing system recognised it, when a replacement route became available, and when traffic successfully resumed.

Network Insight · Interactive Lab 01

Routing Convergence: Follow a Failure to Recovery

Inject a link failure and follow the sequence from detection to route recalculation and forwarding recovery. Step through the events to see why convergence is more than a single timer.

PRIMARY PATH ACTIVE Destination prefix: 10.40.40.0/24
Network topology All links operational
LINK A · PRIMARY LINK B · PRIMARY LINK C · ALTERNATE LINK D · ALTERNATE LINK DOWN R1 SOURCE R2 PRIMARY R3 ALTERNATE R4 DESTINATION PREFIX BEHIND R4 10.40.40.0/24 Traffic enters at R1 Follow the active route
Primary path Alternate path Failed link
Convergence event Stage 0 / 7
READY

Primary route is forwarding

R1 forwards traffic towards R4 through R2. The alternate path through R3 is available in this conceptual topology.

Selected next hopR2
Forwarding statePrimary path
Failure detectionNot triggered
Route statusStable
This is a staged teaching model, not a vendor-specific timer or a real packet-forwarding test. Event order and convergence time vary by protocol and implementation.
Route and forwarding state R1 · destination prefix
StateNext hopInterpretation
Selected routeR2Primary route selected
Forwarding entryR2Traffic uses primary path
Alternate routeR3Available as the backup path
Event timeline 0 / 7 events
1
Failure occursPrimary R2–R4 link goes down
2
Failure detectedR2 recognises the adjacency failure
3
Routing information propagatesR1 learns that the primary route is affected
4
Route recalculationR1 selects the eligible alternate via R3
5
RIB selection changesThe selected route points to R3
6
FIB updateForwarding state is updated
7
Forwarding verifiedTraffic can use R1 → R3 → R4
Engineering takeaway: Routing convergence includes failure detection, propagation, route selection and forwarding-state update. A changed route in the control plane does not, by itself, prove that traffic is already forwarding over the new path.

Section 2 · Failure Detection

Failure Detection and Propagation

Routing recovery begins when a router recognises that something has changed. Physical interface events, protocol timers, and mechanisms such as Bidirectional Forwarding Detection (BFD) can help identify failures. The routing protocol must then communicate the resulting change to the routers that need to react.

In this section: Failure-detection mechanisms, protocol notifications, convergence timelines, and the trade-offs involved in timer tuning.

Section 02 · Failure Mechanics

Failure Detection and Propagation

Before a routing protocol can select a replacement path, the network must recognise that something has changed. How quickly a failure is detected—and how reliably that information reaches the routing processes that need it—strongly influences convergence and traffic disruption.

Failure detection is the starting point

A network failure is not always immediately obvious to the routing protocol. A physical interface going down can generate a direct local event. A remote router becoming unreachable, a silent packet drop, or a one-way communication failure may require additional detection mechanisms before the system can declare a neighbour or path unavailable.

The detection method depends on the failure being considered. Physical carrier state, routing-protocol hello or keepalive messages, hold timers, and Bidirectional Forwarding Detection (BFD) can all contribute to failure detection. They are not interchangeable, and each has different assumptions and operational trade-offs.

Local signal

Interface or link state

A router may learn immediately that its local interface has lost carrier or been disabled. Detection is less direct when the underlying fault does not change the interface state.

Protocol signal

Neighbour messages

Routing protocols use periodic messages and associated timers to establish or maintain adjacency and session state. A missed message is meaningful only in the context of the protocol's detection rules.

Dedicated mechanism

Bidirectional Forwarding Detection

BFD can provide rapid detection of failures along a monitored forwarding path. A routing protocol or other registered client can use the resulting state change when the platform and configuration support it.

Layer 2 example

Unidirectional link detection

Mechanisms such as UDLD on supported Ethernet platforms can help identify certain one-way link conditions. Their behaviour and configuration are platform-dependent.

Detection, notification, and recovery are different events

Engineers often describe a network as having a particular failure-detection time. That is only one part of the recovery timeline. A failure must be detected, the relevant state change must be acted upon, routing information must be processed, and usable forwarding state must become available.

  1. Failure occurs

    A link, device, interface, or forwarding path stops behaving as expected. The fault may or may not be visible as an immediate interface-down event.

  2. The fault is detected

    A physical event, protocol timer, BFD session, or another supported mechanism identifies the condition.

  3. Routing state changes

    The routing process or registered client reacts to the event and updates neighbour, adjacency, or next-hop state as appropriate.

  4. Updated information is processed

    Relevant routing information is flooded, advertised, withdrawn, or otherwise propagated according to the protocol and its rules.

  5. Traffic recovers

    A valid path is selected and forwarding state is updated—or a previously installed repair path is activated where supported.

Important measurement distinction

A BFD session going down is evidence that the monitored session detected a problem. It does not, by itself, prove that the routing table, forwarding hardware, or application traffic has recovered.

How routing protocols propagate a failure

Once a failure is recognised, the control plane must determine which routes and neighbours are affected. Different protocol families communicate and recalculate reachability in different ways.

Protocol or mechanism Typical response Engineering consideration
OSPF / IS-IS Topology information is updated and distributed; affected routers calculate routes from their resulting link-state database. Flooding, SPF scheduling, topology size, and implementation behaviour influence recovery.
EIGRP Neighbour and route state is updated; feasible alternatives may be used where available and eligible. An eligible feasible successor can reduce recovery work, but an alternative is not guaranteed for every destination.
BGP Session or next-hop changes can trigger route withdrawals, updates, and new best-path decisions. Policy, path selection, route scale, session behaviour, and propagation all affect the outcome.
BFD Signals the state of a monitored forwarding path to configured clients. BFD is a detection mechanism, not a routing protocol or a complete recovery solution by itself.

These are typical behaviours, not fixed performance guarantees. Configuration, software release, platform capabilities, topology, and the precise failure scenario can change the observed response.

Timer tuning: faster is not always safer

Shorter detection intervals can reduce the time needed to identify certain failures. However, aggressive settings also reduce the margin for packet loss, scheduling delays, congestion, or temporary processing spikes. If a healthy neighbour is declared down incorrectly, the resulting adjacency reset or route withdrawal can create avoidable disruption.

Timer values should therefore be selected in line with the network design, supported platform limits, expected path behaviour, and operational testing. The objective is not simply to make every timer as small as possible; it is to achieve dependable detection with an acceptable recovery time.

  • Validate the failure type: determine whether the issue is a physical outage, a silent forwarding failure, or a control-plane/session problem.
  • Check both ends: compare interface state, neighbour state, counters, and logs where available.
  • Verify dependencies: confirm that routing protocols are configured to act on the relevant detection mechanism.
  • Test under realistic conditions: include packet loss, load, and recovery behaviour rather than relying only on configured timer values.

What to observe during a failure investigation

A useful troubleshooting record distinguishes the time of the original fault from the time each router detected it, the time routing state changed, and the time traffic recovered. Comparing these events helps identify whether the delay comes from detection, propagation, route calculation, forwarding installation, or a missing alternate path.

Engineering takeaway: failure detection starts convergence, but it does not finish it. Diagnose each stage independently, and confirm recovery by observing the resulting forwarding behaviour—not merely by checking that a neighbour has gone down.

Network Insight · Interactive Lab 02

Failure Detection: How Fast Does the Network Notice?

Compare an immediate interface-down event with timer-based detection. Observe the difference between a failure occurring, a router detecting it and routing information being propagated.

NETWORK HEALTHY Test prefix: 10.40.40.0/24
Failure detection topologyLink operational
R1–R2 R2–R4 · TEST LINK ALTERNATE VIA R3 R1SOURCE R2DETECTOR R3ALTERNATE R4DESTINATION PREFIX 10.40.40.0/24
Operational primary linkFailed test linkDestination
Detection controlsStep 0 / 4
READY

Waiting for a failure

Choose a detection model, then inject the failure. This simulation uses ordered stages rather than claiming a universal detection time.

Failure stateNone
Detection stateNot started
Propagation stateNot started
Primary adjacencyUp
The timer option represents a detection interval conceptually. It does not run a real protocol timer or emulate vendor-specific BFD, OSPF, IS-IS, EIGRP or BGP behaviour.
Detection sequence0 / 4 events
1
Failure occursThe R2–R4 link becomes unavailable
2
Local detectionR2 recognises the link or adjacency failure
3
Routing process reactsThe protocol processes the changed neighbour or link state
4
Information propagatesOther routers can begin their own recalculation
Event logConceptual sequence
READYWaiting for a failure injection.
Engineering takeaway: Failure detection identifies that a neighbour, interface or path is no longer usable. Propagation and route recalculation follow; they are separate stages.

Section 3 · Route Computation

Route Calculation and Protocol Behaviour

Once a routing change is known, the router must determine which paths remain usable. Link-state protocols calculate routes from topology information, EIGRP uses its DUAL algorithm, and BGP evaluates eligible paths using its selection process and routing policies. Each protocol responds differently to a change.

In this section: SPF recalculation, EIGRP feasible successors, BGP best-path selection, and why an alternate route is not always immediately usable.

Section 03 · Routing Intelligence

Route Calculation and Protocol Behaviour

After a failure is detected and the relevant routing information changes, the network must determine which paths remain usable. Routing protocols solve this problem in different ways: some calculate routes from a shared topology, while others compare advertised paths, metrics, policies, and protocol-specific conditions.

Why route calculation matters

Detecting a failure does not automatically identify the best replacement route. A router must process the new information, determine which destinations are affected, and decide whether an alternate path is available. The amount of work depends on the protocol, the network design, the number of affected routes, and the platform's implementation.

Some changes have a limited scope. Others alter a large part of the topology or affect many advertised routes. The resulting convergence behaviour can therefore vary significantly even within the same routing protocol.

Stage 1 Receive changed information
Stage 2 Evaluate affected routes
Stage 3 Select a usable path
Stage 4 Prepare forwarding update

Link-state protocols: topology and SPF

OSPF and IS-IS distribute link-state information within their respective flooding scopes. Routers build and maintain a link-state database representing the topology they have learned. When relevant information changes, a router can run a Shortest Path First (SPF) calculation to determine routes based on that topology and the protocol's metric rules.

A topology change does not necessarily require every router to perform identical work at exactly the same time. Routers may receive updates at different times, and implementations can schedule, pace, or optimise SPF calculations. The effect depends on the change, the topology, and the implementation.

Topology view

Link-state database

Represents the link-state information learned within the relevant area or level. Accurate and current topology information is a prerequisite for a meaningful SPF result.

Route computation

Shortest Path First

Calculates shortest paths according to the protocol's metric model. The resulting routes are candidates for installation, subject to route selection and platform processing.

Distance-vector behaviour: EIGRP example

EIGRP uses neighbour information and route metrics to maintain reachability. Its Diffusing Update Algorithm (DUAL) supports loop-free route computation. When a primary route becomes unavailable, a router may be able to use a feasible successor—a qualifying alternate route already known to satisfy the feasibility condition.

If a suitable feasible successor is available, the router can often change to that route without conducting a full diffusing computation for the destination. If no feasible successor exists, additional query-and-reply processing may be needed. The outcome depends on the available topology and route state.

Key distinction

A backup path is not automatically a feasible successor. The feasibility condition matters because it helps EIGRP preserve loop-free behaviour during route changes.

Path-vector behaviour: BGP best-path selection

BGP exchanges reachability information between peers using UPDATE messages. When a route is withdrawn, a session changes state, or a new path is advertised, the router evaluates the affected routes using its import policies, available path attributes, and best-path decision process.

BGP selection can involve attributes such as local preference, AS path, origin, MED, and implementation-specific tie-breakers. The precise decision sequence varies with vendor implementation and configuration. A route that appears shorter or has a lower MED is not necessarily selected if an earlier decision criterion favours another path.

After the best path changes, BGP may advertise a changed route to eligible peers according to export policy and protocol rules. Route propagation and the decisions made by other routers can extend the overall recovery process beyond the first router's local calculation.

Protocol family How it evaluates change What can affect convergence
OSPF / IS-IS Updates link-state information and calculates routes from the resulting topology. Flooding scope, topology size, SPF scheduling, route installation, and implementation.
EIGRP Evaluates successor and alternate routes using its metric and feasibility rules. Availability of a feasible successor, query scope, and route state.
BGP Evaluates candidate paths using policy and path attributes, then propagates eligible changes. Policy, peer state, path diversity, route scale, and propagation behaviour.

Why a replacement path may not be available

A routing protocol can only select from the paths it knows about and is permitted to use. A physically connected alternate may not be advertised, may fail a protocol's eligibility rules, may be rejected by policy, or may lead to a destination that is no longer reachable.

  • Reachability: does the candidate path still lead to the destination?
  • Protocol rules: is the path eligible under the protocol's selection and loop-prevention mechanisms?
  • Policy: has an import, export, filtering, or preference rule changed which path can be used?
  • Next-hop resolution: can the selected route's next hop be resolved and used by the forwarding system?
  • Installation: can the resulting forwarding state be programmed successfully?

Fast convergence is not simply fast computation

A route calculation may finish quickly while traffic remains disrupted because the required update has not propagated, the selected next hop is unresolved, or forwarding hardware has not yet been updated. Conversely, a precomputed repair path can sometimes restore forwarding before the full control-plane process has completed.

For this reason, convergence investigations should distinguish the time when a protocol receives changed information, the time when it reaches a new route decision, and the time when the forwarding plane can successfully use that decision.

Engineering takeaway: protocols use different algorithms and selection rules to respond to topology and reachability changes. Understand the protocol's decision process, verify that a valid alternate path exists, and measure the forwarding outcome rather than assuming route calculation alone equals recovery.

Network Insight · Interactive Lab 03

Route Calculation: Which Path Wins?

Break the primary path, compare the remaining candidates and follow the distinction between route calculation, route selection and installation. The protocol selector changes the explanation, not a full implementation of each routing protocol.

PRIMARY ROUTE SELECTED Destination: 10.40.40.0/24
Candidate path topologyPrimary path available
PRIMARY PRIMARY LINK ALTERNATE VIA R3 BACKUP R1DECISION R2PRIMARY R3ALTERNATE R4DESTINATION DESTINATION PREFIX 10.40.40.0/24
Primary candidateAlternate candidateFailed link
Decision engineStage 0 / 5
NORMAL OPERATION

Primary route is selected

R1 currently uses R2 as the next hop to reach 10.40.40.0/24. The route via R3 is an alternate candidate in this teaching topology.

Selected next hopR2
Route calculationStable
Alternate routeAvailable
Installation stateInstalled
Protocol behaviour is represented conceptually. The topology does not run SPF, DUAL, BGP best-path rules or real routing updates.
Candidate route evaluationR1 · 10.40.40.0/24
Candidate A · via R2Primary path is reachable and selected.
Selected
Candidate B · via R3Alternate path is available but not selected.
Standby
Selection principle: A router can use only routes it has learned or calculated and considers eligible. The selected route depends on protocol-specific rules and configuration.
Calculation timeline0 / 5 stages
1
Failure recognisedThe primary path is no longer usable
2
Routing information updatedThe protocol processes the changed topology or route
3
Alternatives evaluatedEligible remaining candidates are considered
4
New route selectedR1 selects the route via R3 in this model
5
Route installedThe selected route is ready for forwarding installation
Engineering takeaway: Route calculation, best-path selection and route installation are related but distinct. A protocol's method of finding or choosing a route depends on its design.

Section 4 · Forwarding Recovery

RIB, FIB and Fast Reroute

A router can calculate a replacement route without immediately restoring traffic. The selected route must be reflected in forwarding state, and packets must be able to use the resulting next hop. Techniques such as Equal-Cost Multipath (ECMP) and Loop-Free Alternates (LFA) can help maintain or restore forwarding, depending on the topology and platform.

In this section: How the RIB and FIB differ, forwarding installation, alternate paths, and fast-reroute techniques.

Section 04 · Forwarding Recovery

RIB, FIB and Fast Reroute

A routing protocol can calculate a replacement path, but packets recover only when the forwarding system can use a valid next hop. Understanding the Routing Information Base (RIB), Forwarding Information Base (FIB), and fast-reroute mechanisms explains why routing convergence and traffic recovery are related—but not identical—events.

From route information to packet forwarding

Routers maintain control-plane information about reachable destinations and use it to determine which routes should be selected. The selected routing information is then used to program the forwarding system. On many platforms, this involves software processes coordinating with hardware tables or other forwarding resources.

The RIB and FIB serve different purposes. The RIB stores routing information and supports route selection. The FIB contains the forwarding entries used to make packet-forwarding decisions, often with resolved next-hop and adjacency information appropriate to the platform.

01 · Learn Receive routes and topology information
02 · Select Choose eligible routes for the RIB
03 · Program Resolve and install forwarding entries
04 · Forward Send packets using the active FIB
Control plane

Routing Information Base

Contains routing information learned from connected networks, static configuration, and routing protocols. Route selection determines which route or routes are eligible to contribute to forwarding.

Forwarding plane

Forwarding Information Base

Supports destination lookups for packet forwarding. Entries may reference resolved next hops, interfaces, adjacency information, and other platform-specific forwarding structures.

Why the RIB and FIB can differ in timing

A new best route in the control plane does not prove that every forwarding resource has already been updated. The system may need to resolve the next hop, reconcile competing routes, allocate forwarding resources, and program software or hardware tables. The timing and architecture differ across platforms.

During a failure, the old forwarding entry may point to an unusable next hop until the forwarding state changes. Alternatively, a platform may already have an eligible alternate or repair entry that can be activated quickly. Observing both control-plane route state and data-plane behaviour helps establish whether recovery is complete.

Operational rule

Do not treat “the route is present in the routing table” as conclusive evidence that packets are successfully reaching the destination. Verify next-hop resolution, forwarding entries, interface state, and end-to-end traffic where possible.

Equal-Cost Multi-Path forwarding (ECMP)

ECMP allows a router to forward traffic over multiple eligible paths that have equal cost according to the applicable routing decision. The forwarding system commonly uses a hash of packet fields to select a path, helping keep flows on a consistent path rather than distributing each packet independently.

If one ECMP next hop fails, the router may remove or avoid that next hop and continue using the remaining eligible paths. This can reduce disruption, but the exact effect depends on the implementation, hash behaviour, flow distribution, and whether the surviving paths have sufficient capacity.

  • Path availability: the remaining next hops must still be valid and reachable.
  • Flow impact: traffic may be rehashed when the set of next hops changes, potentially affecting packet ordering for some flows.
  • Capacity: surviving links must be able to handle the shifted traffic load.
  • Installation: the forwarding plane must apply the updated next-hop set successfully.

Fast reroute and precomputed repair paths

Fast reroute techniques aim to reduce traffic loss by making a repair path available before a failure occurs. Rather than waiting for every step of the normal control-plane reconvergence process, a router may be able to redirect affected traffic onto a precomputed alternate when the protected failure is detected.

Examples include Loop-Free Alternates (LFA) and, where supported and configured, remote LFA or Segment Routing-based repair mechanisms. Their applicability depends on topology, protocol support, platform capabilities, and the failure being protected against.

Mechanism Primary purpose Important limitation
ECMP Use multiple equal-cost forwarding paths. Does not guarantee that every failure has a surviving path or that traffic remains evenly distributed.
LFA Provide an eligible loop-free alternate next hop for protected destinations. Topology may not provide a valid LFA for every destination and failure.
Remote LFA / Segment Routing repair Extend repair options where supported, including cases not covered by a direct LFA. Requires suitable topology, configuration, protocol support, and forwarding capabilities.
Normal reconvergence Calculate and install the new forwarding state after the routing system processes the change. Traffic disruption may persist while detection, propagation, calculation, and installation occur.

Forwarding recovery and control-plane convergence

A repair path can restore traffic before the routing protocol has completed all of its normal calculations and advertisements. In that case, the data plane may be forwarding successfully while the control plane continues to converge. The reverse can also happen: a new route may appear in the RIB while traffic still fails because of unresolved next hops, stale forwarding state, or a separate downstream fault.

These are not necessarily contradictions. They are signs that different components have different responsibilities and update timelines. Reliable testing should record both routing-state changes and packet-level results.

How to verify forwarding recovery

  • Inspect the selected route and its next-hop resolution.
  • Check the relevant FIB entry and forwarding adjacency where the platform exposes them.
  • Confirm that failed interfaces or next hops are no longer used for affected traffic.
  • Run suitable reachability or application tests across the affected path.
  • Compare the observed traffic recovery time with the routing and forwarding event timeline.

Engineering takeaway: the RIB represents selected routing information, while the FIB supports actual packet forwarding. ECMP and fast reroute can reduce disruption when valid alternatives exist, but successful recovery must be verified in the forwarding plane—not inferred from a route calculation alone.

Network Insight · Interactive Lab 04

RIB to FIB: When Does Forwarding Recover?

Fail the primary link and step through route selection and forwarding installation. Compare normal convergence with a conceptual pre-installed fast-reroute repair path.

PRIMARY FORWARDING ACTIVE Destination: 10.40.40.0/24
Forwarding topologyPrimary path active
R1–R2 R2–R4 PRIMARY ALTERNATE VIA R3 R3–R4 R1FORWARDER R2PRIMARY R3REPAIR PATH R4DESTINATION DESTINATION PREFIX 10.40.40.0/24
Primary routeAlternate routeFailed link
Recovery controlsStage 0 / 5
Forwarding strategy
NORMAL OPERATION

Primary forwarding entry is active

R1 forwards the destination prefix through R2. The alternate path through R3 exists in the topology but is not currently selected.

RIB next hopR2
FIB next hopR2
Forwarding statusPrimary active
Repair stateStandby
Fast reroute is represented conceptually. Real repair behaviour depends on the technology, topology, precomputed repair availability and platform support.
Routing and forwarding stateR1 · 10.40.40.0/24
Plane / entryCurrent next hopWhat it tells you
Selected route (RIB)R2Primary route selected
Forwarding entry (FIB)R2Packets use primary path
Repair candidateR3Available as alternate path
Recovery sequence0 / 5 stages
1
Primary link failsThe R2–R4 path becomes unavailable
2
Failure response beginsNormal convergence or a repair mechanism reacts
3
RIB selection changesThe control plane selects the route via R3
4
FIB is updatedForwarding state reflects the selected next hop
5
Forwarding verifiedCheck packet delivery over the alternate path
Engineering takeaway: The RIB represents selected routing information; the FIB is the forwarding structure used to send packets. Verify both, and test traffic, before declaring recovery.

Section 5 · Operational Verification

Convergence Measurement and Troubleshooting

Reliable convergence analysis depends on evidence, not assumptions. A routing log may show when a change was detected, while protocol state, RIB and FIB inspection, packet tests, and application monitoring reveal different parts of the recovery process. A meaningful result requires a clearly defined start event and end condition.

In this section: Convergence metrics, repeatable failure tests, route flapping, telemetry, and a structured troubleshooting workflow.

Section 05 · Operational Evidence

Convergence Measurement and Troubleshooting

A network can appear healthy in a routing table while traffic is still being lost—or it can restore forwarding before every control-plane process has settled. Reliable convergence analysis requires a clear measurement boundary, timestamped evidence, and a methodical way to separate detection, route calculation, forwarding recovery, and application impact.

Define what convergence means for the test

A convergence measurement is meaningful only when its start and end points are explicit. Measuring from the moment a cable is disconnected to the moment a monitoring probe succeeds is different from measuring the interval between a routing adjacency failure and a new route appearing in the RIB.

Before testing, identify the failure being introduced, the destination or traffic flow being observed, and the event that will count as recovery. Use the same definitions across repeated tests so results can be compared fairly.

Control-plane metric

Routing convergence

Measures a defined routing-state transition, such as the time from a topology event to a stable, expected route selection. Specify exactly which event marks the beginning and end.

Forwarding metric

Traffic recovery

Measures when the tested packets or flows can successfully use the recovered path. This may occur before or after the routing system reaches its final stable state.

Service metric

Application recovery

Measures when the application meets its service criteria again, such as successful transactions or acceptable latency. Application recovery can include dependencies beyond routing.

Stability metric

Time to stable state

Checks whether the route and traffic remain healthy after recovery, rather than counting a brief successful probe as proof that the incident is over.

Do not mix measurement boundaries

A result such as “convergence took 200 ms” is incomplete unless the failure trigger, observation method, destination, and recovery criterion are stated. Different test methods can produce different—and individually valid—measurements.

Build an evidence timeline

The most useful troubleshooting timeline combines control-plane events with forwarding and traffic observations. Synchronised clocks make it easier to correlate logs across routers, although timestamp precision and collection delays should also be considered.

  1. Record the trigger

    Capture when the link, interface, session, or simulated fault was introduced. Record the test conditions and affected destination or flow.

  2. Capture detection

    Record interface transitions, neighbour-state changes, BFD events, or protocol timer expirations as applicable.

  3. Capture route processing

    Observe topology updates, route withdrawals or advertisements, SPF or other route calculations, and best-path changes where available.

  4. Verify forwarding state

    Check the selected route, next-hop resolution, FIB or adjacency changes, and any active fast-reroute behaviour.

  5. Confirm traffic recovery

    Use repeated probes or representative application tests to determine when service returns and whether it remains stable.

Evidence to collect during an investigation

Evidence source What it helps establish What it cannot prove alone
Interface counters and logs Physical state transitions, errors, drops, and link-related events. That all routing and forwarding state has recovered.
Neighbour and session state Whether the relevant protocol adjacency or session is established. That every destination has a usable route.
RIB and route details Which route is selected and why a candidate path may have been preferred or rejected. That the forwarding hardware is already using that path.
FIB and next-hop details Which forwarding entries and next hops are programmed, where observable. That end-to-end traffic is successful beyond the local forwarding point.
Packet probes and application telemetry Observed loss, latency, reachability, and service recovery for the tested flow. The exact internal routing event responsible for every symptom.

Recognise route flapping and unstable recovery

Route flapping occurs when route availability or attributes repeatedly change. Repeated interface transitions, unstable sessions, intermittent reachability, or changing path attributes can prevent the network from settling into a stable state.

Flapping can increase control-plane work and cause repeated forwarding changes. In BGP, route-flap damping may be available in some environments, but its use requires care: suppressing a route can extend unreachability, and the behaviour depends on configuration and operational policy.

  • Correlate repeated events: compare interface logs, neighbour resets, route changes, and traffic-loss windows.
  • Look for a shared cause: investigate common links, power, optics, congestion, software events, or unstable downstream dependencies.
  • Inspect policy and attributes: for BGP, determine whether changing advertisements or policy inputs are altering best-path decisions.
  • Check the final state: confirm the selected route and forwarding path remain stable after the last observed event.

Use repeatable tests instead of assumptions

A single successful run may hide timing variation. Repeat controlled tests, keep the topology and traffic conditions consistent, and record the observed recovery interval for each run. Where the test is intended to represent production behaviour, include realistic traffic load and relevant failure types.

Report the measurement method alongside the results. Depending on the objective, useful summaries may include minimum, median, maximum, and a high percentile of recovery times. Preserve individual run data as well: aggregate values can conceal an occasional long outage.

A practical troubleshooting sequence

  • Confirm the fault and its scope before changing configuration.
  • Identify whether detection was delayed or incorrect.
  • Determine whether routing information propagated as expected.
  • Inspect route selection and verify that a usable alternative exists.
  • Check FIB installation, next-hop resolution, and fast-reroute state where supported.
  • Test end-to-end traffic and application behaviour.
  • Repeat the test after remediation and compare evidence against the original baseline.

Engineering takeaway: measure convergence from a defined event to a defined recovery condition. Correlate logs, routing state, forwarding state, and traffic evidence to locate the delay, then repeat the test to verify that the fix improves both recovery time and stability.

Network Insight · Interactive Lab 05

Convergence Incident: Measure, Diagnose, Verify

Investigate a simulated routing incident from first failure evidence to verified forwarding recovery. Step through the event timeline, inspect the evidence and complete the engineering checklist.

INCIDENT READY Incident RC-05 · Prefix 10.50.50.0/24
Incident scenarioStage 0 / 5
Reported symptom: intermittent packet loss

A primary path has failed. The operations team needs to establish when failure was detected, when routing state changed, when forwarding recovered and whether traffic actually resumed.

INITIAL STATE

Begin the incident investigation

Start the incident to simulate a link failure. Then step through detection, route recalculation, forwarding installation and verification. The sequence is illustrative, not a live router measurement.

Failure evidenceNot observed
Control-plane stateStable
Forwarding statePrimary path
Traffic verificationNot tested
No real timers or millisecond values are generated. Use actual event timestamps and defined start/end criteria when measuring a production network.
Event evidenceIllustrative records
InterfaceAwaiting failure event
RoutingNo route change observed yet
ForwardingPrimary path currently selected
TrafficEnd-to-end test not run
Evidence rule: Do not infer the entire convergence interval from a single log. Correlate interface, protocol, route, forwarding and traffic observations.
Convergence timeline0 / 5 events
1
Failure occursPhysical or logical path event
2
Failure is detectedInterface state, timer, BFD or other evidence
3
Route selection changesControl plane selects an eligible alternative
4
Forwarding state updatesFIB and relevant forwarding hardware are checked
5
Traffic recovery is verifiedProbe or application test confirms delivery
Engineer’s verification checklist0 / 5 checked
Measurement principle: Define the start event and recovery endpoint before calculating convergence time. Control-plane convergence, forwarding recovery and application recovery are related but distinct outcomes.

Conclusion · Engineering Practice

Routing Convergence: From Failure to Recovery

Routing convergence is the process through which a network detects a change, distributes the relevant information, recalculates usable paths, and updates forwarding behaviour. Understanding each stage helps engineers distinguish a routing-protocol problem from a forwarding, detection, or service-recovery problem.

01

Detect

Recognise a failure or topology change through interface events, protocol timers, or mechanisms such as BFD.

02

Propagate

Distribute the changed reachability or topology information to the routers that need to react.

03

Calculate

Run the relevant protocol logic and determine which routes or alternate paths remain eligible.

04

Forward

Install the resulting forwarding state and verify that traffic can use the intended path.

The key engineering principle

A routing-table change does not, by itself, prove that an application has recovered. Control-plane processing, forwarding installation, packet delivery, and service recovery must be measured separately.

Routing convergence troubleshooting checklist

When investigating a slow or incomplete recovery, work through the following questions in sequence:

  • When did the failure occur, and when was it first detected?
  • Did the relevant routing protocol propagate the change correctly?
  • Was the expected replacement route eligible and selected?
  • Did the RIB and FIB update as expected?
  • Did packets actually traverse the replacement path?
  • Did application traffic recover, and was the result repeatable?

Explore · Trace · Diagnose

Put routing convergence into practice

Move from theory to an interactive BGP environment. Explore route propagation, inspect best-path decisions, follow routing-state changes, and investigate how network behaviour changes when a link or route becomes unavailable.

Launch the BGP Core Simulator

Opens the existing Network Insight simulator in a new tab.

Continue learning with Network Insight

Use these learning resources to connect routing theory with practical forwarding and fault investigation.

IP Forwarding

Follow how routers use routing and forwarding information to make packet-by-packet forwarding decisions. Use the IP forwarding guide alongside this article.

BGP Route Selection and Propagation

Extend your understanding of path attributes, route eligibility, route advertisement, and how routing changes affect reachability.

Failure Detection and Fast Reroute

Study the difference between detecting a failure, selecting an alternate path, installing forwarding state, and restoring traffic.

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

Forwarding Routing Protocols

Network Engineering · IP Forwarding

IP Forwarding: How Routers Move Packets Through a Network

IP forwarding is the process that moves packets from an incoming interface towards their next destination. Every routed packet depends on a forwarding decision: which destination prefix matches, which next hop should be used, and which outgoing interface can deliver the packet closer to its destination.

Routing and forwarding are closely connected, but they perform different jobs. Routing protocols and static configuration provide reachability information. The router uses that information to populate its routing state and construct the forwarding information used to process packets. Understanding this relationship is essential when diagnosing unreachable networks, unexpected paths, asymmetric traffic and failures following a topology change.

This engineering guide follows the forwarding process from the routing information a router learns to the decision made for an individual packet. Rather than treating routing protocols as isolated topics, we'll connect their behaviour to the forwarding result an engineer can observe and troubleshoot.

What you will learn

01 · FUNDAMENTALS Separate routing from forwarding Understand the control plane, data plane and the different responsibilities each performs.
02 · ROUTING STATE Follow routes into the FIB Examine how routing information becomes an installed forwarding entry and a usable next hop.
03 · PACKET DECISIONS Trace a packet's forwarding path Explore longest-prefix matching, next-hop resolution and equal-cost multipath forwarding.
04 · CONVERGENCE Understand routing changes Compare routing protocol behaviour and investigate how failures affect reachability and forwarding.
The engineering principle

A routing table entry alone does not prove that a packet will reach its destination. Engineers must establish the installed forwarding entry, next-hop reachability, interface state and behaviour along the actual path. When forwarding fails, the objective is to identify the precise stage where the expected packet journey breaks down.

How to use this guide

Read, experiment, diagnose

The guide is organised into five sections, each beginning with an introduction and followed by technical explanations and a practical interactive lab. Use the table of contents to navigate directly to a topic, then work through its experiment to test the forwarding behaviour and understand the evidence behind each result.

Section 1 · Foundations

IP Routing and Forwarding Fundamentals

Before troubleshooting a routing problem, establish what a router actually does with a packet. Routing determines usable paths through a network; forwarding applies the installed forwarding state to move each packet toward its destination.

From an incoming packet to an outgoing interface

A router receives a frame on an interface, processes its Layer 2 header, examines the network-layer packet and performs a lookup using the destination IP address and the applicable routing context. The result identifies a forwarding action, typically including a next hop and an outgoing interface. The router then prepares the outgoing Layer 2 frame and transmits it, provided the required state and policies allow it.

Receive frame→ Inspect IP packet→ Look up destination→ Resolve next hop→ Transmit frame

Layer 2 switching

A switch uses Ethernet forwarding information, VLAN context and destination MAC addresses to decide where to send a frame within a Layer 2 domain.

Layer 3 routing

A router uses IP forwarding information to determine how a packet should progress between IP networks. The outgoing frame normally has a new Layer 2 header for the next link.

Control plane

Routing protocols and local configuration build and maintain routing information. Route selection determines which paths are eligible to be installed for forwarding.

Forwarding plane

The forwarding plane applies installed entries to packets. A route visible in routing state is not sufficient proof that end-to-end delivery will succeed.

Engineering principle

Keep route calculation separate from packet forwarding. When traffic fails, verify both the control-plane decision and the data-plane path rather than assuming one proves the other.

Prepare for the interactive lab: Trace the packet journey

Follow a packet across a simple routed topology. Identify the ingress interface, destination lookup, next hop and egress interface. Use the observed forwarding steps to explain where delivery could fail.

Section 01 · Fundamentals · Observe

IP Routing and Forwarding Fundamentals

Before investigating routing tables or packet-processing decisions, we need to understand the basic journey of an IP packet. A host generates traffic, a network device examines the destination, and each router along the path determines how to move that packet towards its destination network.

The terms routing and forwarding are often used together, but they describe different operations. Routing establishes reachability and selects routes. Forwarding uses the installed forwarding information to process individual packets. This distinction provides the foundation for understanding how networks operate and where to investigate when traffic fails.

1.1 · Layer 2 switching and Layer 3 routing

Devices on the same IP subnet can generally communicate through Layer 2 switching, provided the required addressing, VLAN and connectivity conditions are in place. Ethernet switches learn source MAC addresses and use their MAC address tables to determine how to forward Ethernet frames within a bridged network.

Communication with a destination outside the local IP subnet normally requires a Layer 3 forwarding decision. The host sends the packet to its configured default gateway, encapsulated in an Ethernet frame addressed to the gateway's MAC address. The router removes the incoming Layer 2 encapsulation, examines the IP destination and determines the next forwarding action.

Layer 2 · Local delivery
Switching frames

A switch uses its MAC address table and VLAN context to select an egress port, flood eligible unknown traffic, or filter a frame when appropriate. The destination IP prefix is not the normal basis of Ethernet switching.

Layer 3 · Routed delivery
Forwarding IP packets

A router performs a Layer 3 lookup against the packet's destination IP address, selects a matching forwarding entry, resolves the next hop and chooses an outgoing interface when a usable route is available.

1.2 · What happens when a packet reaches a router?

Consider a client in subnet 192.168.10.0/24 sending traffic to a server in subnet 192.168.20.0/24. The client identifies that the destination is outside its local subnet and sends the packet to its default gateway, for example 192.168.10.1.

The router then performs a series of operations. The precise implementation varies between platforms, but the logical forwarding process can be understood as follows.

  1. Receive and validate. The router receives the frame, processes the Layer 2 encapsulation and performs the applicable packet validation.
  2. Identify the IP destination. The router examines the destination address in the IP header and looks for a matching entry in its forwarding information.
  3. Select the forwarding action. The lookup identifies the applicable route or forwarding action, including a next hop and outgoing interface where required. A more specific matching prefix takes precedence over a less specific prefix.
  4. Resolve the next hop. The router uses its forwarding state and neighbour-resolution information to determine how to reach the next hop on the outgoing link.
  5. Transmit the packet. Where forwarding is permitted and the required information is available, the router updates relevant Layer 3 fields, constructs the appropriate outgoing Layer 2 frame and transmits it towards the next hop.

This process repeats at each routed hop until the packet reaches its destination network or encounters a condition that prevents successful delivery. A router does not normally need to know the entire end-to-end path in advance; it makes a forwarding decision using its own installed forwarding information.

1.3 · Routing control plane versus forwarding data plane

The control plane learns and evaluates reachability information. Routes may originate from directly connected networks, static configuration or dynamic routing protocols. A router evaluates candidate routes according to its routing process and installs eligible routes into its routing information base (RIB).

The forwarding plane uses the resulting forwarding information base (FIB) to make packet-forwarding decisions. The FIB is optimised for lookup and may be programmed into specialised forwarding hardware. The RIB and FIB are related, but they are not interchangeable: the presence of a route in one view does not by itself prove successful end-to-end delivery.

Engineering evidence · What should you verify?

When a destination is unreachable, inspect the route selected for the destination, the corresponding forwarding entry, next-hop reachability, outgoing interface state and relevant Layer 2 adjacency information. Then test the path and confirm where the observed behaviour first differs from the expected forwarding decision.

1.4 · Why routing protocols matter to forwarding

Routing protocols help routers learn and maintain reachability as networks change. RIP uses hop count as its metric. OSPF and IS-IS distribute link-state information and calculate paths using their respective link-state algorithms and metrics. EIGRP uses a composite metric and a diffusing computation mechanism, while BGP exchanges reachability between routing peers and applies policy to route selection and advertisement.

These protocols do not forward every application packet themselves. They contribute routing information that can affect which routes are selected and installed. Forwarding then applies the installed decision to traffic. Understanding this relationship is essential when investigating a route change, a failed link, a missing next hop or a forwarding path that differs from expectations.

Interactive Lab · Section 01

Trace the packet journey

In the interactive lab immediately below this section, follow a packet from a client to a remote subnet. Examine the local gateway decision, the router's destination lookup and the outgoing interface. Then change a forwarding condition and observe how the packet journey changes. Use the engineering readout to connect each action to the underlying networking principle.

Interactive Lab 01 · Forwarding Fundamentals

Trace the IP Packet

Follow a packet from a client to a remote server. Watch the router make a Layer 3 decision and rebuild the Layer 2 frame.

READY TO TRACE

Live packet path

STEP 0 / 8
CLIENT 192.168.1.10 Host SWITCH 1 Layer 2 MAC forwarding ROUTER Gi0/0 · LAN Gi0/1 · A Gi0/2 · B SWITCH 2 Layer 2 MAC forwarding SERVER A 10.1.1.10 Network A SERVER B 10.2.2.10 Network B
Active forwarding path Packet location Failed link
192.168.1.10End-to-end source
10.1.1.10Selected server
64Router decrements TTL
CreatedAwaiting first step
CURRENT EVENT
Ready to begin

Step forward to see how a host sends an IP packet to a destination on another subnet.

Packet journey0% complete

Frame & interface telemetry

LIVE
Current deviceClient
Ingress interface—
Egress interface—
Ethernet source MAC—
Ethernet destination MAC—
Layer 2 actionNo frame sent yet
Layer 3 actionPacket not yet routed

Forwarding decision

ROUTER LOOKUP
Connected networkOutgoing interfaceStatus
10.1.1.0/24Gi0/1Connected
10.2.2.0/24Gi0/2Connected
What should the router do?

The destination IP determines the Layer 3 forwarding decision. The router uses its forwarding table to select an outgoing interface.

Fault injection

Simulates the selected router interface becoming unavailable. Reset restores the link.

Packet event timeline

0 / 8 EVENTS

Section 2 · Routing State

Routing Tables, RIB and FIB

To understand why a router chooses a particular path, inspect the routing information it has learned, the route it selects and the forwarding entry it installs. The RIB and FIB are related, but they serve different purposes.

From route learning to packet forwarding

Connected routes, static configuration and routing protocols can supply candidate routes. The routing process evaluates those candidates using route preference, protocol-specific selection rules and policy. An eligible selected route may then be programmed into the forwarding information base, where it supports packet lookups.

1. LearnReceive or create candidate routing information.
2. SelectApply route preference, protocol rules and policy.
3. InstallProgram eligible forwarding information into the FIB.

Routing Information Base (RIB)

Contains routing information maintained by the routing system, including routes from different sources and the routes selected for use. The exact display and organization depend on the platform.

Forwarding Information Base (FIB)

Contains the entries used by the forwarding plane to make packet-forwarding decisions. These entries may include prefixes, next hops, interfaces and platform-specific forwarding actions.

Route selection

Determines which route is preferred for a destination among available candidates. Administrative distance, preference and protocol-specific rules vary by implementation.

Longest-prefix match

During a destination lookup, the most specific matching prefix is normally preferred among applicable FIB entries. This forwarding lookup is distinct from route selection.

Engineering principle

Do not stop when a route appears in the RIB. Check the selected route, the corresponding FIB entry and whether its next hop is resolved and usable.

Prepare for the interactive lab: Inspect the RIB and FIB

Compare routing information with installed forwarding entries. Follow a destination prefix through route selection and installation, then investigate what a missing or unresolved FIB entry means for packet delivery.

Section 02 · Routing State · Inspect

Routing Tables, RIB and FIB

A router can learn several possible paths to a destination, but learning a route is not the same as forwarding a packet. To understand the actual forwarding outcome, distinguish the information learned by routing protocols, the routes selected by the routing process and the forwarding entries used to handle traffic.

The Routing Information Base (RIB) and Forwarding Information Base (FIB) serve related but different roles. The RIB represents routing information and selected routes maintained by the routing system. The FIB contains the forwarding information derived from eligible routes and used for destination lookups. Their exact implementation and display vary across platforms.

2.1 · From route learning to packet forwarding

A router may learn reachability through connected interfaces, static configuration or routing protocols such as OSPF, IS-IS and BGP. It evaluates candidate routes using the relevant protocol rules, route preferences and configuration. The selected route can then be installed into the routing table and used to program forwarding state.

Control plane
RIB · Routing Information Base

Holds routing information and selected routes. It supports route evaluation, route installation and the control-plane processes that maintain reachability.

Forwarding plane
FIB · Forwarding Information Base

Holds destination-prefix forwarding entries used to select a next hop, outgoing interface or other forwarding action. Hardware platforms may program these entries into an ASIC or another forwarding engine.

2.2 · The route does not tell the whole story

Consider the destination prefix 10.20.30.0/24. A router might learn a route to this prefix from OSPF and another candidate from a different source. The router's route-selection process determines which route is eligible for installation according to the platform's routing rules and configuration.

Once the selected route is installed, the forwarding system needs sufficient information to carry traffic towards the destination. That can include a resolved next hop, an outgoing interface and Layer 2 adjacency information. If next-hop resolution fails or the interface is unavailable, the route information alone does not guarantee successful packet delivery.

Information layer Primary question What to investigate
Learned route How did the router learn the destination? Protocol state, received advertisements, connected networks and static configuration.
RIB / routing table Which route was selected for installation? Prefix length, route preference, metric, policy and competing candidates.
FIB / forwarding table What forwarding action will a destination lookup use? Matching prefix, next hop, outgoing interface and programmed forwarding state.
Adjacency / neighbour state Can the router transmit towards the next hop? ARP or IPv6 neighbour discovery, Layer 2 reachability and interface status.

2.3 · Longest-prefix match in the FIB

When forwarding a normal unicast IP packet, the router looks for matching destination prefixes in its forwarding information. Where multiple prefixes match, the most specific matching prefix is normally selected. This is known as longest-prefix match.

For example, a forwarding table may contain 10.20.0.0/16 through one next hop and 10.20.30.0/24 through another. A packet addressed to 10.20.30.45 matches both prefixes, but the /24 is more specific than the /16 and therefore takes precedence for that destination, assuming both entries are usable and the lookup is in the same forwarding context.

Engineering principle · Route selection is not longest-prefix match

Route selection determines which route or routes are installed for a given prefix. Longest-prefix match determines which installed forwarding prefix applies to a packet's destination. These are separate decisions and should be checked separately during troubleshooting.

2.4 · Why the RIB and FIB can appear different

A routing table may contain routes that are not installed in the active forwarding table. A route might lose to a competing route for the same prefix, depend on an unresolved next hop, or be affected by platform-specific forwarding constraints. The exact causes and diagnostic commands differ by vendor and operating system.

Some platforms also expose additional tables, such as protocol databases, Adj-RIB-In and Adj-RIB-Out for BGP, hardware forwarding views, or separate routing and forwarding instances. These views answer different questions. A BGP route received from a peer, for example, is not necessarily the best route, the route installed in the main RIB, or the entry ultimately used to forward a packet.

Troubleshooting sequence · Follow the evidence

Start with the destination prefix. Confirm the route source and selected route, inspect the forwarding entry, verify next-hop resolution and interface state, then test packet delivery. If the route is present but traffic fails, avoid assuming the routing protocol is at fault until the forwarding path has been checked.

2.5 · What to examine in the interactive lab

In the experiment below, use a destination address to compare candidate routes with the selected RIB entry and the resulting FIB lookup. Change prefix specificity or next-hop availability and observe which parts of the routing and forwarding state change. The goal is to identify the exact decision that explains the packet's outcome.

Interactive Lab · Section 02

Inspect the RIB and FIB

Use the interactive lab immediately below this section to inspect candidate routes, identify the selected route and trace the destination lookup through the forwarding table. Compare longest-prefix match with route selection, then introduce a next-hop or interface problem and examine the evidence before deciding where the failure occurs.

Interactive Lab 02 · Routing Information to Forwarding

RIB vs FIB: How a Route Becomes Forwarding State

Inspect candidate routes, install the selected route into the forwarding table, and trace a packet using the resulting forwarding entry.

ROUTE NOT INSTALLED

Control-plane to data-plane topology

STEP 0 / 7
ROUTINGPROCESSOSPF / BGP RIBRoute candidatesControl plane FIBSelected routesForwarding entries ROUTERLookupEgress interfaceNext hop NETWORK A10.1.1.0/24Gi0/1 NETWORK B10.2.2.0/24Gi0/2
Active processing stage Lookup marker Unavailable route
10.1.1.10Longest-prefix match
—Awaiting lookup
CandidateControl-plane state
EmptyForwarding state
CURRENT EVENT
Inspect the candidate routes

The routing process can learn multiple paths. The router selects a route for installation, then makes forwarding state available to the data plane.

Route installation sequence0% complete

Live forwarding lookup

DATA PLANE
Lookup resultNot run
Matched prefix—
Next hop—
Egress interface—
FIB entryNot installed
Forwarding outcomeWaiting for FIB
Key engineering principle

The RIB contains routing information. The FIB is the forwarding-oriented structure used to make packet decisions.

Routing Information Base (RIB)

CANDIDATE ROUTES
PrefixSourcePreferenceRIB role
10.1.1.0/24ConnectedDirectAvailable
10.2.2.0/24OSPFCost 10Available
10.2.2.128/25StaticAdmin 5More specific

Teaching model: a simplified set of route candidates. Real operating systems use platform-specific route-selection and installation rules.

Forwarding Information Base (FIB)

INSTALLED ENTRIES
PrefixNext hopInterfaceStatus
10.1.1.0/24DirectGi0/1Not installed
10.2.2.0/2410.0.0.2Gi0/2Not installed
10.2.2.128/2510.0.0.3Gi0/3Not installed

Engineering event timeline

0 / 7 EVENTS
Ready. Press Step Forward to inspect the RIB-to-FIB process.Lab 02 · Routing tables and forwarding state

Section 3 · Packet Processing

Forwarding Decisions and Packet Processing

A forwarding decision turns a destination address into a concrete action. Understanding the lookup, next-hop resolution, interface selection and packet handling sequence helps explain why a route can exist while traffic still fails.

How a router chooses the next step

The router evaluates the packet in the context of the receiving interface, routing table or VRF, destination address and applicable forwarding policies. It looks for a matching forwarding entry, resolves the selected next hop and determines how the packet should leave the device. The precise internal pipeline differs across router operating systems and hardware platforms.

Destination lookup

The forwarding lookup normally uses longest-prefix match among applicable entries. A more-specific prefix can therefore be used instead of a less-specific covering route.

Next-hop resolution

The router must have a usable forwarding action. For a directly connected Ethernet next hop, this often requires neighbor resolution through ARP for IPv4 or Neighbor Discovery for IPv6.

Header and Layer 2 handling

For ordinary routed IP forwarding, the IP hop limit or TTL is decremented and the IPv4 header checksum is updated. The outgoing Layer 2 header is prepared for the next link.

Policy and multipath

ACLs, firewall rules, VRFs, tunnels and other platform features can affect packet handling. With ECMP, eligible flows are commonly distributed using a hash rather than every packet being sent over every path.

Questions to ask when a forwarding result is unexpected

  • Which routing context is handling the packet?
  • Which prefix matches the destination, and is it the most specific applicable entry?
  • Is the selected next hop reachable and resolved?
  • Are interface state, access policies or encapsulation preventing transmission?
  • If multiple paths exist, which ECMP member is selected for this flow?
Engineering principle

Explain the actual forwarding action, not just the route that you expected to be used. Confirm the lookup result and next-hop resolution with platform state and traffic evidence.

Prepare for the interactive lab: Make and verify a forwarding decision

Use a destination address to test prefix matching, identify the selected next hop and outgoing interface, and examine how a more-specific route or an unresolved adjacency changes the forwarding outcome.

Section 03 · Packet Processing · Decide

Forwarding Decisions and Packet Processing

A forwarding table provides the information a router needs to move traffic, but the packet still has to pass through the forwarding process. The router must identify the applicable destination prefix, determine the next forwarding action, resolve the outgoing adjacency and apply the relevant interface and policy rules.

Understanding this sequence helps separate a route-selection problem from a packet-processing problem. A route may be correct while traffic is dropped because of an unresolved neighbour, an interface failure, an access-control rule, a forwarding policy or another data-plane condition.

3.1 · The forwarding lookup

For ordinary unicast forwarding, the destination IP address is the primary input to the route lookup. The router compares that address with its installed forwarding prefixes and selects the most specific usable match. The result identifies a forwarding action, which may include a next hop, outgoing interface or a special action such as discard.

Lookup input
Destination IP address

The destination address is checked against the forwarding table. For example, a packet addressed to 10.20.30.45 may match both a /16 route and a more specific /24 route.

Lookup result
Forwarding action

The selected entry determines how the router should handle the packet, subject to next-hop resolution, interface availability, policy and other forwarding requirements.

3.2 · Longest-prefix match in practice

Imagine a router with the following forwarding entries: 10.20.0.0/16 via Router A and 10.20.30.0/24 via Router B. A packet destined for 10.20.30.45 matches both entries. Because /24 is more specific than /16, the router selects the /24 entry if it is installed and usable in the applicable forwarding context.

Destination prefix Example next hop Specificity
10.20.0.0/16 Router A Less specific · 16 network bits
10.20.30.0/24 Router B More specific · 24 network bits
10.20.30.45 Router B is selected Both prefixes match; /24 wins

Longest-prefix match is not the same as comparing OSPF costs, BGP local preference or administrative distance. Those mechanisms help determine which route is installed for a prefix. The forwarding lookup then determines which installed prefix matches a particular destination address.

3.3 · Next-hop resolution and outgoing encapsulation

After selecting a forwarding entry, the router must be able to transmit towards the selected next hop. On an Ethernet link, this commonly requires a usable neighbour entry mapping the next-hop IP address to a MAC address. IPv4 commonly uses ARP, while IPv6 uses Neighbor Discovery.

If the next hop is unresolved, the router may initiate neighbour discovery, queue packets temporarily or drop packets, depending on the platform and circumstances. A valid destination route therefore does not guarantee that the outgoing Layer 2 frame can be constructed immediately.

  1. Match the destination. Find the most specific usable forwarding entry for the destination address.
  2. Identify the next hop. Determine whether the route is directly connected or forwards through another router or forwarding action.
  3. Resolve the adjacency. Confirm that the required neighbour and Layer 2 information are available on the outgoing link.
  4. Prepare the outgoing frame. Construct the appropriate Layer 2 encapsulation for the outgoing interface and next hop.
  5. Transmit or report a failure. Forward the packet when the required conditions are met, or apply the relevant drop, exception or error-handling behaviour.

3.4 · Header processing and policy checks

Forwarding can involve more than a destination lookup. Routers normally decrement the IPv4 Time to Live (TTL) or IPv6 Hop Limit when forwarding a packet. IPv4 routers also update the IPv4 header checksum after changing the TTL. If the TTL or Hop Limit expires, the packet is not forwarded normally.

Depending on the device and configuration, forwarding may also be affected by access-control lists, firewall rules, policy-based routing, VRF context, tunnelling, quality-of-service classification, NAT or other features. These mechanisms can change the selected path or prevent a packet from being forwarded even when a matching route exists.

Engineering principle · A matching route is only one condition

Confirm the forwarding entry, but also check the forwarding context, next-hop resolution, interface state and applicable policy. If the route looks correct but packets fail, collect evidence from each stage rather than assuming the routing table explains the entire outcome.

3.5 · ECMP and multiple forwarding paths

Equal-Cost Multipath (ECMP) allows a router to use multiple eligible next hops for a destination when the routing and forwarding system determines that the paths qualify. The forwarding plane commonly uses a hash based on selected packet fields to distribute traffic across those paths.

The exact hash inputs and load-sharing behaviour depend on the platform and configuration. Distribution is not necessarily equal for every individual flow, and a single flow is commonly kept on one path to reduce packet reordering. When a next hop fails, the forwarding system may remove it from the usable path set and redistribute affected traffic.

3.6 · Diagnose the packet, not just the route

A useful troubleshooting method follows the packet through the forwarding process. Verify the source and destination, identify the applicable routing or VRF context, inspect the selected forwarding entry, check the next hop and interface, and then examine policy or counters that could explain a drop. A packet capture or controlled test can help establish where observed behaviour differs from the expected path.

Interactive Lab · Section 03

Make and verify a forwarding decision

In the interactive lab immediately below this section, enter or select a destination, compare matching prefixes, and observe the chosen next hop. Then test a changed forwarding condition, such as a more specific route, unavailable adjacency or failed outgoing interface. Use the readout to identify the decision that changes the packet's outcome.

Interactive Lab 03 · Packet Processing

Inside the Forwarding Decision

Change the destination, inspect competing prefixes, and watch the router select a route, decrement TTL, and rewrite the Ethernet header.

READY TO TRACE

Live packet-processing path

STEP 0 / 7
INGRESS HOST 192.168.10.10 TTL 64 INGRESS Gi0/0 Decapsulate ROUTER FIB lookup TTL − 1 Rewrite L2 EGRESS A 10.20.1.0/24 Gi0/1 EGRESS B 10.20.2.0/24 Gi0/2
Active processing stage Forwarding completed Failed egress
10.20.1.25IP header destination
—Awaiting lookup
64Hop limit in IPv4 header
CreatedAwaiting first step
CURRENT EVENT
Ready to process packet

Advance the packet through ingress processing, FIB lookup, and egress encapsulation.

Packet processing sequence0% complete

Live forwarding decision

FIB LOOKUP
Ingress interface—
Matched route—
Next hop—
Egress interface—
New source MAC—
New destination MAC—
OutcomeWaiting for lookup
Engineering principle

The router uses the destination IP to select a forwarding entry. It does not choose the route based on the destination Ethernet MAC from the incoming frame.

Forwarding table

LONGEST-PREFIX MATCH
PrefixNext hopInterfacePrefix length
10.20.1.0/24DirectGi0/1/24
10.20.0.0/16192.0.2.2Gi0/2/16
10.20.2.0/24DirectGi0/2/24
172.16.0.0/16192.0.2.5Gi0/3/16

The forwarding table uses the most-specific matching prefix. The /24 for 10.20.2.0/24 wins over the overlapping 10.20.0.0/16 entry.

Packet header inspection

BEFORE / AFTER
Header fieldIngressAfter routing
Source IP192.168.10.10192.168.10.10
Destination IP10.20.1.2510.20.1.25
TTL64—
Ethernet source02:00:00:00:00:10—
Ethernet destination02:00:00:00:00:01—
Remember

For ordinary IPv4 routing without NAT, the source and destination IP addresses remain unchanged across the router. The TTL decreases and the Ethernet header is rebuilt for the outgoing link.

Packet-processing timeline

0 / 7 EVENTS

Section 4 · Network Change

Routing Protocols and Convergence

Forwarding depends on routing information that can change. When a link fails or a better route becomes available, routers must detect the change, update their routing state and install the appropriate forwarding entries. This process is known as convergence.

How routing protocols contribute

Different routing protocols discover and evaluate paths in different ways. RIP uses a distance-vector approach based on hop count. OSPF and IS-IS are link-state protocols that calculate paths from a network topology. BGP exchanges reachability information and path attributes, with policy playing a central role in route selection. EIGRP is generally classified as an advanced distance-vector routing protocol.

Detect the change

A physical interface event, adjacency loss, protocol timer or other detection mechanism identifies a possible topology or reachability change.

Recalculate or reselect

The routing system processes the new information using the protocol's algorithms, attributes and policies. Not every learned route becomes the selected route.

Update forwarding state

Eligible routing changes are installed into the forwarding plane. Programming, next-hop resolution and platform behaviour can affect when the new path becomes usable.

Verify traffic recovery

Check the forwarding path and real traffic. A routing protocol returning to a stable state does not alone prove that end-to-end connectivity has recovered.

A simplified convergence timeline

1 · EventA link or adjacency changes.
2 · DetectionThe router recognizes the change.
3 · Route updateRouting information is recalculated or reselected.
4 · RecoveryForwarding is updated and traffic is tested.
Engineering principle

Convergence is a sequence of events, not a single switch. Measure detection, route processing, forwarding installation and observed traffic recovery separately.

Prepare for the interactive lab: Simulate a link failure and recovery

Observe the network before and after a link failure. Identify the lost path, check whether an alternate route is available, and verify the routing and forwarding changes needed to restore connectivity.

Section 04 · Routing Protocols · Converge

Routing Protocols and Convergence

Forwarding depends on the routes installed in a router, and those routes can change as network conditions change. Routing protocols exchange reachability information, evaluate paths and react to events such as a failed link, a recovered interface or a newly advertised prefix. Convergence is the process through which the routing system responds to these changes and reaches a new stable state.

A routing change does not instantly guarantee that every router has the same information or that every forwarding device has updated its forwarding state. During a failure, some packets may be lost, a path may temporarily be unavailable, or different parts of the network may briefly have different views of reachability.

4.1 · How routing protocols learn paths

Routing protocols use different mechanisms to distribute reachability and calculate routes. Understanding their differences helps explain why they react differently to topology changes and why their metrics cannot be compared directly across protocols.

Distance vector
RIP

RIP exchanges routing information with neighbouring routers and uses hop count as its metric. Its simplicity is useful for learning the distance-vector model, although its convergence and scalability are limited compared with many modern routing designs.

Link state
OSPF and IS-IS

Routers distribute link-state information within the relevant routing domain and calculate paths using a shortest-path algorithm. The resulting route depends on topology, configured metrics and protocol rules.

Path vector
BGP

BGP exchanges reachability between peers and carries path attributes used for route selection and policy. Attributes such as AS_PATH and LOCAL_PREF help determine which route is preferred and how routes are advertised.

Advanced distance vector
EIGRP

EIGRP uses a composite metric and a diffusing computation mechanism to maintain loop-free paths. Its behaviour differs from both classic distance-vector protocols and link-state protocols.

4.2 · Route metrics and path selection

A routing protocol's metric helps compare candidate paths according to that protocol's calculation rules. RIP uses hop count. OSPF uses interface costs accumulated along a path; in many implementations, the default cost is derived from interface bandwidth and a configured reference bandwidth. Operators can adjust costs to influence path selection.

BGP follows a different model. It evaluates a sequence of path attributes and policy rules, which may include LOCAL_PREF, AS_PATH, origin, MED and other implementation-specific tie-breakers. The exact decision sequence depends on the BGP implementation and configuration.

Protocol Routing model Example path-selection input
RIP Distance vector Hop count
OSPF Link state Accumulated OSPF interface cost
IS-IS Link state Accumulated link metric
BGP Path vector Path attributes and routing policy
EIGRP Advanced distance vector Composite metric and feasibility conditions

These metrics describe different things. An OSPF cost of 20 and a BGP LOCAL_PREF of 200 are not values on a common scale. A router first applies the relevant routing-protocol rules and route preferences to determine which route is eligible for installation. Forwarding then uses the installed result.

4.3 · What happens when a link fails?

Consider a router that can reach a destination through a primary link and an alternative path. When the primary link fails, the router must detect the failure, update relevant routing state, calculate or select an alternative route, and update the forwarding information when the new path becomes usable.

  1. Detect the event. A physical interface transition, protocol adjacency failure or configured liveness mechanism identifies that a neighbour or path is no longer available.
  2. Update routing information. The routing protocol processes the event and updates its topology or neighbour state as appropriate.
  3. Recalculate or select a route. The router determines whether another eligible path is available and applies the relevant route-selection rules.
  4. Update forwarding state. The selected forwarding action is programmed or refreshed, subject to the platform's implementation and any forwarding dependencies.
  5. Verify recovery. Confirm that the new path is installed and usable, then test traffic and examine packet loss, counters and end-to-end reachability.

4.4 · Convergence is more than a routing-table update

Convergence time depends on failure detection, protocol behaviour, topology, configuration, route calculation, implementation and forwarding-programming time. A network with an alternate route may recover more quickly than one that must discover a new path, but a backup path alone does not guarantee hitless recovery.

During convergence, a router may temporarily have stale information, a neighbour may be unreachable, or traffic may encounter a transient forwarding inconsistency. Depending on the topology and protocol, these conditions can result in packet loss, transient loops or blackholing. Fast-reroute and precomputed backup mechanisms can reduce disruption, but their coverage and behaviour must be verified for the actual design.

Engineering principle · Measure the whole recovery path

Record the failure-detection time, routing-state change, route-selection outcome, forwarding-table update and first successful traffic test. These are related events, but they are not necessarily simultaneous. Use timestamps and packet-level evidence instead of treating a changed routing table as proof that the application path has recovered.

4.5 · ECMP, alternate paths and topology design

Networks often use redundant links to provide resilience. With ECMP, multiple qualifying next hops can be installed for a destination, allowing traffic to use more than one path. In other designs, one route may be preferred while another remains available as a backup.

The result depends on topology, metric design, route policy and forwarding-platform behaviour. A backup path should be checked for reachability, capacity, policy consistency and the ability to carry the expected traffic after a failure. In leaf-spine networks, for example, routed links and ECMP can provide multiple Layer 3 paths without relying on spanning tree to block redundant routed links.

4.6 · Investigating convergence with evidence

When a route disappears or traffic is interrupted, inspect the relevant interface and neighbour state, routing-protocol events, candidate and selected routes, forwarding entries and traffic counters. Compare the observed sequence with the expected failure and recovery process. If routing state has converged but traffic still fails, continue into next-hop resolution, interface state and policy rather than stopping at the routing protocol.

Interactive Lab · Section 04

Simulate a link failure and recovery

In the interactive lab immediately below this section, observe the initial route, introduce a link failure and follow the routing and forwarding changes. Compare the primary and alternate paths, then verify when traffic can use the recovered forwarding state. Focus on the order of events, not just the final route.

Interactive Lab 04 · Convergence Simulator

Routing Protocols & Convergence

Break a routing path, observe how the network detects the change, and step through the control-plane updates that lead to a new forwarding decision.

Stable · Primary path active

Network topology

Stage 0 / 5
OSPF adjacency Primary Backup Backup R1Ingress R2Primary R3Backup R4Egress 10.40.0.0/24
Convergence stage0 / 5
Selected next hopR2
Route stateStable

Routing table · R1

Illustrative RIB
PrefixNext hopMetricState
10.40.0.0/24R210Active
10.40.0.0/24R320Backup

Control-plane explanation

Primary route selected

R1 has a usable route through R2. The backup path through R3 is available but has a higher illustrative metric.

Convergence event log

Newest event last
Network stable. Primary path R1 → R2 → R4 is selected.

Engineering takeaway

Convergence is a sequence

Failure detection, routing-protocol processing, route selection, and forwarding-table programming are related but distinct steps. A backup route does not mean every router switches instantaneously.

Educational model: stages and metrics are illustrative, not a timing prediction for a particular vendor, protocol, or production network.

Section 5 · Advanced Operations

Advanced Forwarding, Failures and Troubleshooting

Real networks add layers of forwarding context, redundancy and policy. VRFs, multipath routing, tunnels, access controls and asymmetric paths can make failures difficult to diagnose. A reliable investigation follows the packet and tests each dependency using observable evidence.

Why a valid route may not mean successful delivery

A destination can have a valid route while traffic is dropped, misdirected or unable to reach its destination. The router may be using a different VRF than expected, a next hop may be unresolved, a policy may reject the packet, or a downstream device may lack a usable return path. Troubleshooting requires checking the complete forwarding chain rather than relying on a single routing-table entry.

VRFs and routing context

Virtual routing and forwarding instances maintain separate routing contexts on supported platforms. Verify that the route lookup is occurring in the intended VRF and that the connected interfaces and next hops belong to the correct context.

ECMP and alternate paths

Equal-cost multipath can distribute eligible flows across multiple next hops. A failure affecting one path or one hashed flow may not affect every connection identically.

Blackholing and policy drops

Traffic can be discarded by a missing route, an unusable forwarding action, a null route, an access-control rule or a downstream policy. Counters and packet captures help distinguish these cases.

Asymmetric routing

The forward and return directions may use different paths. Stateful firewalls, filtering and missing reverse routes can cause failures even when one direction appears healthy.

A repeatable incident-investigation method

  • Scope the incident: record source, destination, protocol, VRF, time and observed symptoms.
  • Trace the forward route: inspect the selected route, FIB entry, next hop and outgoing interface at each relevant hop.
  • Check dependencies: verify interface state, ARP or IPv6 Neighbor Discovery, encapsulation and applicable policies.
  • Investigate alternate paths: inspect ECMP members, recent topology changes and any route or link failures.
  • Verify the return path: trace responses back to the source and check for asymmetric-path or stateful-filtering problems.
  • Confirm the result: repeat the test, compare counters and captures, and document the evidence supporting the diagnosis.
Engineering principle

Diagnose the failing forwarding dependency before changing the network. A controlled test with a clear before-and-after comparison is more useful than making several changes at once.

Prepare for the interactive lab: Investigate a forwarding incident

Work through a simulated fault, identify the affected forwarding dependency and collect evidence before selecting a corrective action. Verify the result against routing state, forwarding state and the observed packet path.

Section 05 · Advanced Forwarding · Diagnose

Advanced Forwarding, Failures and Troubleshooting

Real networks combine routing protocols, forwarding tables, neighbour resolution, security policy, redundancy and platform-specific forwarding behaviour. When traffic fails, the challenge is to identify which part of that chain is responsible. A systematic investigation follows the evidence from the destination route through the forwarding path and out to the application.

This final section brings the earlier concepts together. It examines forwarding instances, ECMP, blackholing, asymmetric paths and the practical sequence an engineer can use to isolate a fault without confusing a routing symptom with the underlying cause.

5.1 · Forwarding contexts and VRFs

Large networks often separate routing and forwarding into distinct logical contexts. A Virtual Routing and Forwarding instance (VRF) maintains a separate routing context so that different tenants, services or network domains can use overlapping IP address space without sharing one common routing table.

Routing context
Separate route state

Each VRF has its own routing context and eligible routes. A destination may be reachable in one VRF but absent from another, even on the same physical router.

Forwarding context
Lookup in the correct table

The packet must be processed in the intended forwarding context. Inspecting only the default routing table can produce a misleading diagnosis when the traffic belongs to another VRF or routing instance.

VRF-aware troubleshooting begins by confirming the ingress interface, routing instance, source and destination addresses, and any configured route leaking or inter-VRF policy. A route in the wrong routing context does not automatically make a destination reachable to the affected traffic.

5.2 · ECMP and resilient forwarding

Equal-Cost Multipath can install multiple eligible next hops for a destination. The forwarding system commonly uses a hash of selected packet fields to assign flows to paths. This can improve aggregate link utilisation and provide alternative paths when one next hop becomes unavailable.

However, ECMP does not mean every packet is sent over every path, and traffic is not guaranteed to be divided evenly. Hash inputs, flow distribution, resilient hashing and failure handling vary by implementation. When investigating a path-specific fault, determine which next hop the affected flow is actually using.

5.3 · Common forwarding failure patterns

Observed symptom Possible cause Evidence to collect
No matching route Missing prefix, failed advertisement, wrong VRF or routing policy. Routing table, protocol state, prefix advertisements and lookup context.
Route exists, traffic fails Unresolved next hop, down interface, policy drop or stale forwarding state. FIB entry, neighbour table, interface counters and policy counters.
Only some flows fail ECMP path-specific issue, hash distribution, inconsistent policy or a partial failure. Flow details, selected next hop, per-link counters and path-specific tests.
Traffic fails after a change Convergence delay, unexpected route selection, incomplete programming or a dependency failure. Event timestamps, routing logs, FIB changes and packet tests.
One direction works Asymmetric return path, reverse-route problem, stateful firewall or policy mismatch. Forward and return paths, reverse routing state, ACLs and session state.

5.4 · Blackholing and asymmetric routing

A forwarding blackhole occurs when traffic is directed into a path that does not deliver it to the intended destination. This can happen when a route remains installed despite a downstream failure, a next hop is unusable, a discard route matches the destination or a forwarding dependency is broken. The precise cause must be established from the active route, forwarding entry and packet path.

Asymmetric routing occurs when traffic in one direction follows a different path from traffic in the other direction. It is not inherently a fault, but it can expose problems with stateful firewalls, NAT, path-specific policy or monitoring systems that assume both directions traverse the same devices.

Engineering principle · Test both directions

Confirm forward-path reachability and return-path reachability independently. A successful ping or connection in one direction does not prove that the reverse route, stateful policy or application response path is working correctly.

5.5 · A repeatable forwarding troubleshooting method

A disciplined sequence prevents engineers from changing routing configuration before they have established where the packet is failing. Start with a defined test flow and work through each layer, recording the observed state.

  1. Define the affected flow. Record the source, destination, protocol, ports where relevant, ingress interface and routing context.
  2. Check the selected route. Verify that the destination has an eligible route in the correct RIB or routing instance, and understand why that route was selected.
  3. Inspect the forwarding entry. Confirm the longest-prefix match, next hop, outgoing interface and any special forwarding action.
  4. Verify the next hop and link. Check neighbour resolution, interface state, VLAN or Layer 2 reachability where applicable, and relevant link counters.
  5. Check policy and packet processing. Examine access-control rules, firewall state, VRF selection, encapsulation and other features that could affect the flow.
  6. Test the path and return traffic. Use appropriate pings, traceroutes, packet captures or application tests. Interpret each tool's limits: control-plane probes and application traffic may be treated differently.
  7. Correlate events and verify recovery. Compare routing events, forwarding updates, counters and test results. After a change, confirm that the original failure is resolved and that the intended forwarding behaviour remains stable.

5.6 · Design for failure, not just normal operation

A robust forwarding design should be evaluated under both normal and degraded conditions. Redundant links, alternative next hops, ECMP, fast-reroute mechanisms, appropriate routing timers and consistent policy can reduce disruption, but each introduces behaviours that need to be validated.

Test realistic failure scenarios: a link going down, a neighbour becoming unavailable, a route being withdrawn, a next hop failing while the interface remains up, or only one ECMP path experiencing loss. Observe the routing state, forwarding state and actual traffic separately. This is the difference between assuming resilience and demonstrating it.

Final engineering takeaway

A successful forwarding diagnosis connects three kinds of evidence: the route the control plane selected, the action the forwarding plane installed, and the behaviour observed in real traffic. When those three views agree, the network's behaviour is easier to explain, verify and maintain.

Interactive Lab · Section 05

Investigate a forwarding incident

In the interactive lab immediately below this section, investigate a simulated fault using routing state, forwarding entries, interface and neighbour information, and traffic evidence. Identify the most likely failure point, make a controlled change and run the test again. The objective is to justify the diagnosis from evidence, not merely to make the symptom disappear.

Interactive Lab 05 · Advanced Troubleshooting

Advanced Forwarding, Failures & Troubleshooting

Investigate a forwarding failure by changing the destination, injecting a link fault, and checking the route, next hop, and forwarding outcome. Learn to distinguish a routing problem from a forwarding-path problem.

Healthy · Forwarding normally
Scenario: the destination is reachable through the primary next hop. Run diagnosis to inspect the forwarding state.

Forwarding topology

Router R1 · ingress
Primary Available Backup Available R1Ingress R2Primary R3Backup R4Egress 10.50.1.0/24
Route match10.50.1.0/24
Next hopR2
Forwarding resultReady

R1 forwarding table

Illustrative FIB
PrefixNext hopInterfaceState
10.50.1.0/24R2Gi0/1Ready
10.50.2.0/24R3Gi0/2Ready
0.0.0.0/0——No default

Diagnosis result

Ready to diagnose

Choose a destination and run the diagnosis. The lab will compare the destination against the available forwarding entries and report the expected outcome.

Troubleshooting checklist

Evidence-led workflow
01Identify the source and destination IP addresses.
02Find the longest matching prefix in the forwarding table.
03Verify the next hop and outgoing interface.
04Check link state, adjacency, and the next-hop resolution.
05Confirm the route is installed in the FIB and test again.

Engineering lesson

Routing and forwarding are different

Routing protocols help determine reachability and route preference. The forwarding plane uses the installed forwarding entry to process each packet. A route in a routing table is not, by itself, proof that packets can reach their destination.

Educational model: this lab simulates selected routing and forwarding conditions. It does not inspect a live router or perform real packet captures.

Conclusion · Engineering Takeaways

From Routing Decisions to Packet Forwarding

IP forwarding is the point where a network's control-plane decisions meet the packets travelling through it. Understanding how routes are selected, installed and used by forwarding hardware makes it easier to explain both normal traffic flow and unexpected failures.

What this guide has established

A router does more than look up a destination address. It receives a packet, evaluates the forwarding context, selects a matching forwarding entry, resolves the next hop and outgoing interface, updates the relevant packet fields, and transmits the packet. Each step creates evidence that can be inspected when traffic behaves unexpectedly.

The core engineering principle

A route in the routing table does not, by itself, prove that a packet will be forwarded successfully. Verify the installed forwarding entry, the next-hop resolution, the outgoing interface, applicable policies and the actual packet path.

Five principles to take into production

01

Separate routing from forwarding

Routing determines which paths are eligible and selected. Forwarding uses installed forwarding state to process individual packets.

02

Inspect both RIB and FIB

The RIB records routing information and route selection. The FIB supplies the entries used for packet forwarding. Differences between them can reveal installation or resolution issues.

03

Check longest-prefix match

Forwarding normally selects the most specific matching destination prefix among applicable entries, subject to the device's forwarding context and policies.

04

Account for convergence

A routing change can take time to propagate and be installed. During that interval, traffic may be interrupted, lost or sent along a temporarily different path.

05

Follow the packet's actual path

Validate the source and destination, route lookup, next hop, interface, encapsulation, policy and return path. Use counters, logs and packet captures to corroborate the result.

06

Test failures, not just success

Remove a link, change a route or introduce a policy constraint in a controlled lab. Observe how the routing and forwarding state changes before drawing conclusions.

A practical troubleshooting sequence

When a destination is unreachable, work through the path in a repeatable order instead of assuming the routing protocol is at fault.

  • Define the flow: identify source, destination, protocol and relevant VRF or routing context.
  • Check route selection: confirm the active route and the most specific matching prefix.
  • Verify the FIB: inspect the installed forwarding entry and its next-hop resolution.
  • Inspect the egress path: validate interface state, Layer 2 adjacency, encapsulation and policies.
  • Trace the return path: check for asymmetric routing, filtering or missing reverse routes.
  • Re-test and record evidence: compare counters, logs, packet captures and state before and after the change.

Continue learning with Network Insight

Use the resources below to move from the forwarding fundamentals in this article to practical routing investigations and interactive BGP experiments.

Learning Resource

BGP Learning Centre

Explore BGP architecture, route propagation, best-path selection and fault investigation, with a structured route from concepts to practical experiments.

Explore the Learning Centre ↗
Interactive Simulator

BGP Core Simulator

Investigate routing behaviour in an interactive environment. Explore route propagation, best-path decisions and how topology or link changes affect the network.

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