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
SDN Data Center

SDN Data Center

NETWORK ARCHITECTURE · SOFTWARE-DEFINED NETWORKING

SDN Data Center: Architecture, Fabrics and Programmable Networks

Modern data centers must connect increasingly distributed applications, virtual machines, containers and services while maintaining predictable performance, security and availability. Software-Defined Networking (SDN) introduces a programmable approach to network control, enabling operators to express policies, automate configuration and coordinate network behaviour across a shared infrastructure.

The shift is not simply about replacing the command-line interface with software. It is about changing how network intent is translated into forwarding behaviour, how infrastructure responds to workload changes, and how engineers verify that the network is operating as designed. Understanding this distinction is essential when evaluating SDN architectures and deciding where automation and centralised control provide real operational value.

Traditional data center designs often relied on hierarchical switching, Layer 2 extension and Spanning Tree Protocol (STP) to manage redundant connectivity. As east-west traffic, virtualisation and workload mobility increased, operators adopted routed leaf-spine fabrics, Equal-Cost Multi-Path (ECMP) forwarding and overlay technologies such as VXLAN. SDN can coordinate these mechanisms through policy and automation, but the exact implementation depends on the platform and architecture.

From network infrastructure to programmable fabric

01 · ARCHITECTURE Separate responsibilities Understand the relationship between applications, control systems and the forwarding infrastructure.
02 · FABRIC Build resilient paths Explore leaf-spine connectivity, Layer 3 routing, ECMP and failure-aware forwarding.
03 · OVERLAY Connect virtual networks Examine VXLAN, network segmentation, virtual network identifiers and workload connectivity.
04 · OPERATIONS Verify network intent Use policy, telemetry and fault analysis to compare expected behaviour with observed network state.

The SDN control model

SDN separates the definition and coordination of network behaviour from packet forwarding. A controller or control system can translate application requirements and network policies into device configuration, forwarding rules or other platform-specific actions. The forwarding devices continue to process packets using their programmed state.

Conceptual SDN architecture
Applications Workload needs and services
→
Policy and APIs Intent and desired outcomes
→
Controller Coordination and configuration
→
Fabric Forwarding and enforcement

This is a conceptual model, not a requirement that every SDN deployment use one physical controller or a single centralised control process. Production architectures may distribute controller functions, retain routing protocols on network devices, and combine central policy with local forwarding decisions.

Why data center design matters

A programmable network is only as effective as the fabric underneath it. The physical topology, routing design, link capacity, failure domains and overlay configuration all influence how applications perform. Centralised policy cannot compensate for every physical bottleneck or incorrect forwarding assumption.

For this reason, SDN must be considered alongside data center architecture. A resilient leaf-spine fabric can provide multiple routed paths, while ECMP distributes eligible flows across equal-cost routes. VXLAN can provide virtual Layer 2 segments across a Layer 3 underlay, and policy systems can help coordinate tenant isolation and service connectivity.

Engineering principle

Separate desired network intent from actual forwarding state. A controller may report that a policy has been deployed, but operational verification must still establish reachability, path availability, segmentation, resource utilisation and application connectivity.

What this engineering guide covers

This guide develops the subject from the foundations of SDN through the design and operation of a modern data center fabric. It connects the architectural concepts to the protocols, forwarding mechanisms and operational evidence that engineers use to troubleshoot real networks.

Architecture and control Understand controllers, programmability, policy abstraction and the relationship between control and forwarding.
Fabric and overlays Relate leaf-spine topology, ECMP, VXLAN, routing and virtual network segmentation.
Operations and resilience Investigate convergence, link failures, telemetry, policy consistency and observable forwarding outcomes.

From theory to engineering evidence

Throughout the guide, the emphasis is on understanding cause and effect. When a link fails, which paths remain available? When a virtual workload moves, what must change in the network? When a controller applies a new policy, how can an engineer confirm that the intended result has reached the forwarding infrastructure?

These are operational questions, not just architectural definitions. Answering them requires an understanding of topology, routing, encapsulation, policy and telemetry—and the ability to correlate evidence from different parts of the network.

Engineering Guide · Introduction
Start with the architecture

The first section examines what Software-Defined Networking actually changes, how the application, control and infrastructure responsibilities relate to one another, and why SDN should not be treated as synonymous with OpenFlow or a single controller product.

Engineering Guide · Navigation

Explore the SDN Data Center

Follow the engineering path from programmable network architecture through resilient fabrics and overlays to automation, troubleshooting and operational security. Select a topic to jump directly to its introduction.

Section 01 · Architecture Fundamentals

Understanding SDN Architecture and Programmability

Software-Defined Networking separates network policy and control from packet forwarding through programmable interfaces and coordinated management. Explore the application, control and infrastructure layers, understand how they interact, and examine why SDN is an architectural approach rather than a single protocol or controller product.

Control vs. data plane SDN architecture Programmable interfaces
01 · ARCHITECTURE · CONTROL · PROGRAMMABILITY

SDN Architecture: The Control Plane and Network Programmability

Software-Defined Networking changes how network behaviour is configured, coordinated and managed. Rather than requiring engineers to configure every device independently for each network-wide change, SDN introduces software-based control and policy mechanisms that can coordinate infrastructure through programmable interfaces.

The central architectural idea is the separation of responsibilities between the systems that express network requirements, the control functions that translate those requirements into network behaviour, and the devices that forward packets. This separation can simplify operations and enable automation, but it does not mean that every routing decision moves into one central controller.

To understand an SDN data center, engineers must distinguish the control plane from the data plane, understand how controllers interact with network devices, and establish how a desired policy becomes observable forwarding behaviour.

The three conceptual layers of SDN

LAYER 01 Application layer Expresses application connectivity requirements, network services and higher-level policies.
LAYER 02 Control layer Coordinates network state, policy translation, topology information and infrastructure programming.
LAYER 03 Infrastructure layer Contains switches, routers and other forwarding elements that process traffic.
CROSS-LAYER Feedback and telemetry Reports configuration, device health, reachability and operational state to management and control systems.

These layers provide a useful architectural model rather than a mandatory physical deployment. Some platforms combine functions, distribute controller services across multiple systems, or retain substantial control-plane intelligence on individual switches and routers.

Control plane versus data plane

The control plane determines or coordinates how traffic should be forwarded. Depending on the architecture, it can include routing protocols, topology discovery, path calculation, policy processing and controller logic.

The data plane performs the actual packet-handling work. It examines packet headers, consults forwarding information and applies actions such as forwarding, encapsulation, decapsulation, marking or dropping. High-speed switches commonly execute these operations in specialised hardware.

From intent to packet forwarding
Network intent Desired connectivity and policy
→
Control logic Calculate or coordinate behaviour
→
Forwarding state Routes, rules and tables
→
Packet action Forward, modify or drop

Consider a workload that needs connectivity to an application in another network segment. The management system may express the required communication policy. A controller or orchestration system translates it into platform-specific configuration. Switches and routers then apply the resulting forwarding and enforcement state to real packets.

Each stage introduces a separate verification requirement. A policy can be accepted by the management system but fail during deployment; configuration can be installed while a route is missing; and a valid route can exist while a security rule prevents the application flow.

Engineering distinction

A controller's intended network state, a device's installed configuration and the forwarding behaviour observed by a packet capture are three different forms of evidence. Reliable troubleshooting correlates them instead of assuming that success at one layer proves success at every other layer.

What does an SDN controller actually do?

An SDN controller provides software-based mechanisms for coordinating network behaviour. Its responsibilities depend on the product and architecture, but can include maintaining a topology view, translating policy, calculating paths, managing forwarding rules, programming devices and collecting operational information.

Some controllers directly install forwarding entries in compatible switches. Others configure devices through management APIs, coordinate existing routing protocols, or distribute policy through agents and platform-specific components. An SDN controller should therefore be understood by the functions it performs, not simply by its product name.

Controller responsibilities
Topology and network state Build or maintain a view of devices, links, connectivity and relevant operational information.
Policy translation Convert higher-level requirements into configuration or forwarding instructions supported by the platform.
Infrastructure programming Communicate with network devices through supported protocols, APIs or management interfaces.
Verification and feedback Compare expected outcomes with reported configuration, connectivity and operational telemetry.

Northbound and southbound interfaces

SDN architectures commonly describe interfaces according to the direction in which information or control is exchanged. Northbound interfaces allow applications and orchestration systems to interact with controller services. Southbound interfaces connect control functions to network infrastructure.

Interface Purpose Examples
Northbound Expose network services, intent or operational information to applications and orchestration systems. REST APIs, controller SDKs and policy interfaces.
Southbound Exchange configuration, control information or forwarding instructions with infrastructure. OpenFlow, NETCONF, RESTCONF and platform-specific APIs, depending on the implementation.
Telemetry and feedback Return device state, counters, events and performance information for monitoring and verification. Streaming telemetry, counters, logs and event notifications.

These categories describe interface roles, not a requirement that every protocol be used in every SDN design. NETCONF and RESTCONF, for example, are management protocols rather than equivalents of OpenFlow's flow-programming model. The correct interface depends on the device capabilities and the operation being performed.

SDN and OpenFlow are not the same thing

OpenFlow is a protocol historically associated with SDN that allows a controller to communicate with compatible forwarding devices and manage flow-table behaviour. It helped demonstrate how packet forwarding could be programmed through an external control system.

SDN is the broader architectural approach. A network can use SDN principles without using OpenFlow. Modern data center platforms may combine controller-based policy, routing protocols, management APIs, overlays and distributed forwarding intelligence.

Open Networking Foundation initiatives helped advance the development and standardisation of SDN concepts and OpenFlow. In practice, engineers should evaluate the interfaces, supported features and operational model of the specific implementation rather than assume that every SDN product uses the same protocol stack.

Centralised policy does not mean one central forwarding engine

The term centralised control can be misleading if interpreted too literally. A controller may provide a global policy view while switches continue to forward packets locally. Distributed routing protocols can also operate alongside a controller, exchanging reachability information and maintaining forwarding tables.

This combination is particularly important in data centers. A controller might define tenant segmentation and application connectivity, while the underlay uses BGP or an IGP to establish IP reachability between leaf and spine switches. ECMP can then distribute eligible traffic across available equal-cost paths.

Separating these responsibilities allows policy orchestration and packet forwarding to work together without requiring every packet to pass through the controller.

Automation, consistency and failure handling

Programmability enables engineers to express repeatable network changes in software. Rather than manually configuring every device, an automation workflow can generate and deploy configuration, validate prerequisites and check the resulting state.

Automation does not automatically guarantee correctness. Incorrect intent, incomplete device support, stale topology data, failed deployment or partial updates can produce inconsistent outcomes. A robust implementation needs validation, access controls, change tracking, rollback or recovery procedures, and independent operational verification.

What to verify during an SDN change
Desired state Is the requested connectivity or segmentation policy valid and consistent with the intended design?
Deployment state Did all relevant controllers and devices accept and install the required changes?
Forwarding state Do the installed routes, next hops, forwarding entries and policy rules match the expected outcome?
Observed behaviour Can the required application traffic pass, and do telemetry and tests confirm the result?

Applying the architecture to a data center

Imagine a tenant needs a new application segment that can communicate with a database but must remain isolated from another tenant. The application or orchestration layer defines the connectivity intent. The control system translates it into the supported policy and configuration. The data center fabric provides the actual transport, while security enforcement ensures that only permitted communication is allowed.

The engineering task is to trace this chain end to end. Confirm that the policy exists, that the relevant devices received it, that the underlay can reach the required destinations, and that the overlay and security configuration support the intended traffic.

Section 01 takeaway

SDN provides programmable coordination of network behaviour. The control plane determines or coordinates how the network should operate, while the data plane performs packet forwarding. Successful operation depends on translating intent into valid device state and verifying the resulting traffic behaviour.

Engineering Lab · Section 01
SDN Architecture and Intent Verification

In the interactive lab, inspect a conceptual SDN data center and follow a policy change from application intent through controller processing to infrastructure configuration and packet forwarding. Examine the control and data planes separately, identify the role of northbound and southbound interfaces, and investigate what happens when intended policy and observed network state disagree.

Network Insight / Interactive Engineering Lab 01

SDN Architecture & Programmability

Trace how a programmable network separates decision-making from packet forwarding. Step through a simulated packet-in event, controller decision, flow-rule installation and data-plane forwarding. Then break a link and investigate the recovery.
Ready
Programmable Network Topology
Event 0 / 8
Primary path Alternate path Ethernet Control channel SDN CONTROLLER Policy / topology / rules HOST A 10.1.0.10 SWITCH 1 Ingress / flow match No rule yet SWITCH 2 Forwarding No rule yet SWITCH 3 Alternate route Standby HOST B 10.1.0.20 DATA PLANE Packet forwarding across switch links CONTROL PLANE Controller communicates with switches
Active forwarding path Controller channel Alternate path Failed link
Topology note: the controller makes logical forwarding decisions and programs the switches. User packets normally travel through the data plane; they do not pass through the controller.
Two Logical Planes
Architecture
Control Plane Decides

Maintains network state, applies policy and determines which forwarding behaviour should be installed.

Data Plane Forwards

Matches packets against forwarding entries and performs actions such as output, drop or header modification.

Controller stateInitialising
Installed flow rules0
Forwarding pathNot selected
Link conditionAll links available
Flow Table
Simulated entries
MatchActionState
10.1.0.10 → .20Pending—
Important: this table represents illustrative flow entries in the lab. Real switch rule syntax and controller protocols depend on the SDN platform.
Packet & Controller Event Timeline
Step-by-step trace
01Ingress Host A sends a packet to Host B; Switch 1 receives it.
02Match Switch 1 checks its flow table and finds no matching entry in this scenario.
03Packet-in The switch reports the table miss to the controller using the configured control mechanism.
04Decision The controller evaluates topology and policy, then selects a forwarding path.
05Install The controller sends flow-modification instructions to the relevant switches.
06Forward The packet is forwarded along the installed path toward Host B.
07Failure A link fails; the network must detect the change and determine whether an alternate route is usable.
08Recovery The lab models a controller-directed update to use the alternate path through Switch 3.
Live Engineering Readout
Lab telemetry
Current Event
Ready to begin
Select Step Forward to trace how a controller and programmable switches coordinate packet delivery.
Simulation Progress

Engineer Challenge

Run the packet trace, inject a link failure, and continue the simulation. Can the network deliver traffic without using the failed primary link?

Challenge status: not yet attempted.
Engineering takeaway: separating the control plane from the data plane makes forwarding behaviour programmable, but recovery still depends on detection, topology knowledge and valid forwarding updates.
Section 02 · Fabric Engineering

Leaf–Spine Fabrics, ECMP and Network Resilience

Modern data centers need predictable connectivity, usable redundant paths and reliable recovery from failures. Discover how leaf–spine topologies, routed underlays, BGP and Equal-Cost Multipath work together, and learn why routing convergence, forwarding state and available capacity must all be considered during an incident.

Leaf–spine topology BGP and ECMP Failure recovery
02 · FABRIC · ROUTING · RESILIENCE

SDN Data Center Fabrics: Leaf–Spine, ECMP and Resilient Forwarding

A programmable network needs a dependable transport foundation. In modern data centers, that foundation is often a routed leaf–spine fabric: a predictable topology designed to provide multiple paths, scalable east–west connectivity and fast recovery when links or devices fail.

Software-defined control and the physical fabric solve different problems. SDN provides mechanisms to coordinate policy and network configuration. The fabric provides the paths over which packets travel. Understanding how these parts work together is essential when designing, automating or troubleshooting a data center.

Why data centers moved beyond large Layer 2 domains

Traditional data center designs often relied on extensive Layer 2 connectivity. Spanning Tree Protocol (STP) prevents Layer 2 loops by blocking selected redundant paths. This protects the network from looping Ethernet frames, but some physical links may not forward traffic while the topology is stable.

As east–west traffic between servers, application tiers and storage increased, engineers looked for designs that could use redundant links more effectively. Routed leaf–spine fabrics provide multiple Layer 3 paths and can use Equal-Cost Multipath (ECMP) forwarding where supported and correctly configured.

This does not make STP obsolete. Layer 2 still exists at access edges and within particular designs. The key architectural choice is to limit where Layer 2 must extend and use routed connectivity for the scalable fabric wherever the design permits.

Understanding the leaf–spine topology

Conceptual routed data center fabric
Spine 1 Layer 3 transit
Spine 2 Layer 3 transit
Leaf 1 Compute rack A
Leaf 2 Compute rack B
Leaf 3 Storage / services
Leaf 4 Application tier

Simplified illustration: production fabrics generally connect each leaf to multiple spines. The actual number of devices, link speeds, redundancy and routing design depend on capacity and availability requirements.

Leaf switches connect directly to servers, hypervisors, storage systems or other network edges. Spine switches provide transit between leaves. In a conventional two-tier design, leaf switches connect to the spine layer rather than to one another.

Leaf layer

Provides workload attachment, Layer 3 gateways where required, access policy and connectivity to the fabric. It is commonly the point where server-facing links enter the network.

Spine layer

Provides high-capacity transit between leaves. Multiple spines create alternate paths and help scale fabric capacity without requiring every leaf to connect directly to every other leaf.

Underlay

The routed IP network connecting the fabric devices. It provides reachability between relevant interfaces and endpoints used by the routing and overlay systems.

Overlay

A logical network built over the underlay, often using VXLAN to carry tenant or segment traffic between tunnel endpoints. The overlay does not remove the need for working underlay reachability.

ECMP: using multiple equal-cost paths

Equal-Cost Multipath routing allows a router to install multiple eligible next hops for a destination when the routing system determines that those paths have the same cost. Instead of selecting only one next hop, the device can distribute eligible flows across the available paths.

In a leaf–spine fabric, a leaf may have a route to a remote subnet through several spine switches. If the routes qualify for ECMP, the leaf can use those next hops to distribute traffic across the fabric.

Example: two eligible next hops

Leaf 1 has two equal-cost routes to a remote destination: one through Spine 1 and one through Spine 2. If both next hops are installed and usable, eligible flows can be spread across the two paths. If a path becomes unavailable, routing and forwarding mechanisms can remove or stop using that next hop.

How ECMP distributes traffic

Many implementations use a hash calculated from packet or flow fields to select a next hop. This commonly keeps packets belonging to the same flow on the same path, reducing packet reordering. The exact hash inputs and resilience behaviour vary by platform.

ECMP does not necessarily divide every individual flow evenly. A large flow can dominate one path, and uneven flow sizes can create unequal utilisation even when the hashing mechanism is working correctly. Some platforms support additional techniques to improve distribution or reduce disruption when the set of next hops changes.

How BGP and other routing protocols support the fabric

A routed data center fabric needs a way to exchange reachability information. BGP is widely used in data center underlays because it provides policy controls, scalable route exchange and well-defined operational mechanisms. Other routing protocols, such as OSPF or IS-IS, can also be used depending on the design.

With an eBGP underlay, adjacent fabric devices in different autonomous systems exchange routes using external BGP sessions. Some designs use iBGP with a suitable route-reflection or control-plane architecture. The choice depends on the topology, operational model and requirements.

BGP multipath allows multiple paths to be installed when they satisfy the implementation's multipath eligibility rules and relevant configuration. Equal-cost forwarding is not guaranteed simply because BGP has learned more than one route: engineers must verify which paths were selected, which next hops were installed and how the forwarding hardware uses them.

Component Primary role What to verify
BGP or IGP Exchanges routes and establishes network reachability. Neighbour state, learned routes, route selection and next hops.
ECMP Uses multiple eligible equal-cost forwarding paths. Installed next hops, path eligibility and traffic distribution.
Forwarding hardware Applies the programmed forwarding decision to packets. Hardware programming, counters, drops and interface state.
SDN or automation layer Coordinates policy, configuration and operational workflows. Deployment status, device consistency and observed results.

Link failures and convergence

Redundant physical links do not automatically guarantee uninterrupted service. When a link or spine fails, the network must detect the failure, update relevant state and move traffic onto usable paths. The speed and impact of that process depend on the failure-detection method, routing protocol behaviour, hardware support and topology.

01
Detect the failure An interface may go down, a neighbour session may fail, or a configured liveness mechanism may detect loss of connectivity.
02
Update routing and forwarding state The device withdraws or invalidates affected reachability and adjusts the usable next-hop set according to its control-plane and forwarding implementation.
03
Use surviving paths Traffic can use remaining eligible paths if those paths have sufficient capacity and the destination remains reachable.
04
Validate service recovery Check route state, next-hop installation, packet loss, application connectivity and relevant telemetry rather than relying only on the interface status.

Some platforms support fast reroute or other mechanisms that can reduce interruption before full routing convergence completes. These features have specific design and support requirements. They should be validated under realistic failure conditions instead of assumed to be active by default.

Capacity planning and oversubscription

Fabric resilience is also a capacity question. A design may have multiple paths but still experience congestion if surviving links cannot carry the offered load after a failure.

Oversubscription compares the potential aggregate bandwidth offered by downstream links with the available upstream capacity. The acceptable ratio depends on the workloads. Traffic patterns dominated by short server-to-server exchanges can have different needs from storage traffic, distributed analytics or GPU clusters with heavy all-to-all communication.

Engineers should size the fabric for normal operation and consider what happens when one or more links or devices are unavailable. Monitoring utilisation, queue drops, latency and flow distribution helps establish whether the fabric behaves as designed.

Where SDN fits into fabric operations

SDN does not replace the physical fabric or make routing protocols unnecessary. Instead, programmable systems can standardise device provisioning, apply configuration templates, coordinate policy, collect telemetry and validate expected state.

For example, an automation system may deploy a new leaf switch with consistent interface settings, routing configuration and monitoring. The routing protocol still establishes reachability, while the automation layer checks that the device joins the fabric and receives the intended configuration.

This division of responsibilities supports repeatability while preserving the importance of routing fundamentals. If a workload cannot reach a destination, engineers still need to inspect the route, next hop, interface state, forwarding entry and any relevant policy or overlay dependency.

Section 02 takeaway

A routed leaf–spine fabric provides a scalable transport foundation. Routing establishes reachability, ECMP can use multiple eligible paths, and failure handling determines how traffic recovers. SDN and automation help coordinate and verify the design, but correct forwarding, capacity and resilience must still be proven through operational evidence.

Engineering Lab · Section 02
Leaf–Spine Path Selection and Link-Failure Investigation

In the interactive lab, trace traffic between two leaf switches through multiple spines. Inspect route selection and ECMP next hops, simulate a link failure, and compare the expected path with the surviving forwarding state. The investigation will distinguish routing convergence from application recovery and highlight how to verify whether remaining paths have sufficient capacity.

Section 03 · Network Virtualisation

VXLAN Overlays and Logical Network Segmentation

Virtualised networks allow multiple logical environments to share a physical fabric while maintaining defined connectivity boundaries. Follow the packet through the VXLAN encapsulation process, examine VTEPs and VNIs, and learn how underlay reachability, endpoint discovery, MTU and security policy affect end-to-end communication.

Underlay vs. overlay VXLAN and VTEPs Tenant isolation
03 · VIRTUALISATION · VXLAN · SEGMENTATION

Network Virtualisation: VXLAN, Overlays and Tenant Segmentation

Network virtualisation separates logical network design from the physical links and switches that carry traffic. It allows an infrastructure team to create multiple isolated network segments over a shared IP fabric, supporting multi-tenant environments, flexible workload placement and consistent policy.

Software-defined networking can help automate how these logical networks are created and managed. In many data centers, VXLAN provides the overlay encapsulation, while the routed IP underlay supplies connectivity between the devices that terminate those tunnels.

Underlay and overlay: two different responsibilities

The underlay is the physical or routed transport network. It provides IP reachability between fabric endpoints, including Virtual Tunnel Endpoints (VTEPs) when VXLAN is used.

The overlay is a logical network carried across that transport. VXLAN encapsulates an inner Ethernet frame inside an outer transport packet, allowing Layer 2 segments to extend across an IP network without requiring the underlay to behave as one large Layer 2 domain.

How an overlay packet travels
Source workload Inner Ethernet frame
→
Source VTEP Adds VXLAN and outer headers
→
IP underlay Routes outer packet
→
Destination VTEP Removes encapsulation
→
Destination workload Receives inner frame

Conceptual packet path. The underlay forwards using the outer IP header; the overlay identifies the logical segment and carries the original Ethernet frame.

What VXLAN contributes

VXLAN is an encapsulation technology, not a complete network automation or policy system by itself. It carries Ethernet frames over an IP network and uses a 24-bit VXLAN Network Identifier (VNI) to identify a logical Layer 2 segment.

VTEP

A VXLAN Tunnel Endpoint performs encapsulation and decapsulation. It maps local traffic to the appropriate VXLAN segment and sends encapsulated traffic toward the remote VTEP.

VNI

The VXLAN Network Identifier distinguishes logical VXLAN segments. A VNI is not the same thing as a VLAN ID, even though implementations can map VLANs to VNIs.

Outer IP header

Identifies the tunnel endpoints and enables the underlay routers to forward the encapsulated packet toward the destination VTEP.

Inner Ethernet frame

Carries the original workload traffic through the overlay. The destination VTEP decapsulates the packet and forwards the inner frame within the correct logical segment.

Engineering distinction

VXLAN provides encapsulation and segment identification. It does not, by itself, determine every endpoint location, distribute all required forwarding information, enforce a complete security policy or guarantee underlay reachability. Those responsibilities depend on the control-plane design, platform and surrounding network services.

How endpoints and VTEPs discover each other

A VTEP needs sufficient forwarding information to reach the correct remote VTEP and deliver traffic to the intended endpoint. Different VXLAN designs use different control-plane approaches.

Control-plane learning

Some deployments use data-plane learning, where information about remote endpoints is learned from traffic. Other designs use a control plane to distribute endpoint reachability before traffic needs to be forwarded. In BGP EVPN designs, BGP EVPN distributes MAC and IP reachability information and supports additional services according to the configured architecture.

A control plane can reduce dependence on flood-and-learn behaviour and improve how endpoint information is distributed across a fabric. However, correct operation still depends on consistent configuration, route exchange, VNI membership, endpoint learning and the availability of the underlying transport.

Tenant segmentation and policy

Virtual networks allow different applications, customers or organisational units to share physical infrastructure while maintaining logical separation. For example, production services, development workloads and shared infrastructure services can occupy different logical segments.

Segmentation is not automatically equivalent to a complete security boundary. Engineers must determine which communication is allowed between segments and implement the appropriate routing, gateway controls, distributed firewall rules, access policies or other enforcement mechanisms.

Design element Question it answers Typical verification
VLAN / VNI mapping Which logical segment does this traffic belong to? VLAN configuration, VNI mapping and segment membership.
VTEP reachability Can the source tunnel endpoint reach the destination VTEP? Underlay routes, next hops and IP connectivity.
Endpoint information Where should the destination MAC or IP be forwarded? MAC tables, ARP/ND state and control-plane advertisements.
Inter-segment policy Is communication between these segments permitted? Gateway routes, ACLs, firewall rules and policy counters.
MTU Can encapsulated packets traverse the underlay without unwanted fragmentation or drops? Interface MTU, encapsulation overhead and packet-drop counters.

Why the underlay MTU matters

VXLAN adds outer headers around the original Ethernet frame. This increases packet size. If the underlay MTU is not designed to accommodate the encapsulated packet, traffic may be fragmented where permitted or dropped, depending on the packet size, configuration and forwarding behaviour.

MTU problems can be deceptive: small packets may work while larger transfers fail or perform poorly. A reliable deployment validates the intended MTU end to end and checks counters and packet behaviour rather than assuming that successful ping tests prove every packet size will work.

How SDN and automation manage virtual networks

An SDN controller or automation platform can provide a consistent workflow for provisioning logical networks, mapping segments, distributing configuration and applying policy. Depending on the implementation, it may also integrate with virtualisation platforms, IP address management, inventory and telemetry systems.

The implementation model varies. Some systems use a central orchestration layer to coordinate configuration across devices; others rely on distributed control-plane protocols, local device decisions or a combination of both. A central management interface does not necessarily mean all packet-forwarding decisions are made by one central process.

Overlay troubleshooting: follow the packet in layers

1. Verify the workload Confirm the source and destination addressing, local interface, VLAN or segment attachment, and the intended security policy.
2. Verify the underlay Check that the source VTEP can reach the destination VTEP through the routed fabric.
3. Verify the overlay Inspect VNI membership, remote endpoint information, MAC learning and relevant EVPN routes where applicable.
4. Verify forwarding and policy Check tunnel state, forwarding entries, MTU, packet drops and any gateway or firewall rules affecting the flow.
Section 03 takeaway

Network virtualisation creates logical networks over shared transport. VXLAN carries Layer 2 frames across an IP underlay, while VTEPs, VNIs, endpoint reachability and policy determine how traffic is delivered. Troubleshooting should separate underlay reachability, overlay state and security enforcement instead of treating the virtual network as one opaque system.

Engineering Lab · Section 03
VXLAN Overlay Reachability and Tenant Isolation

The planned interactive lab will trace a packet from a source workload through its VTEP and routed underlay to a remote endpoint. Investigate a missing route, incorrect segment mapping or policy restriction, then identify which evidence proves whether the fault belongs to the underlay, overlay or security layer.

Network Insight / Interactive Engineering Lab 02

Leaf–Spine Fabrics, ECMP & Resilience

Explore a two-spine data centre fabric. Trace traffic from one leaf to another, inspect equal-cost paths, then disable a spine-facing link and observe how the available forwarding paths change.
Fabric healthy
Leaf–Spine Topology
Packets delivered: 0
Path A Path B SPINE LAYER LEAF LAYER SPINE 1 ECMP next hop Available SPINE 2 ECMP next hop Available LEAF 1 Source rack 2 uplinks 10.10.1.0/24 LEAF 2 Destination rack 2 uplinks 10.10.2.0/24 HOST A 10.10.1.10 HOST B 10.10.2.20 Conceptual topology: each leaf connects to each spine.
Selected path Remaining / alternate path Failed link
Fabric principle: every leaf connects to both spines. This creates multiple routed paths between racks without requiring leaf-to-leaf links.
Fabric Telemetry
Live model
Available Paths
2
Leaf 1 to Leaf 2
Delivered Packets
0
Simulated traffic
ECMP modeRound Robin
Current next hopNot selected
Spine 1 linkUp
Spine 2 linkUp
Last packetNot sent
ECMP Path Options
Next-hop candidates
Path A · Spine 1AVAILABLE
Host A → Leaf 1 → Spine 1 → Leaf 2 → Host B
Path B · Spine 2AVAILABLE
Host A → Leaf 1 → Spine 2 → Leaf 2 → Host B
ECMP: Equal-Cost Multi-Path allows routing to use multiple paths with equal routing cost. Actual traffic distribution depends on the forwarding platform and its hashing or load-sharing implementation.
Fabric Event Timeline
Packet and failure trace
01IngressHost A sends traffic to Host B through Leaf 1.
02RouteLeaf 1 has two equal-cost next-hop candidates: Spine 1 and Spine 2.
03ECMPThe simulated ECMP policy selects one available spine path.
04ForwardTraffic crosses the selected spine and reaches Leaf 2.
05FailureA spine-facing link is taken out of service in the lab.
06RebalanceThe failed candidate is excluded and the remaining path is selected.
Engineering Readout
Interpret the result
Current Event
Ready to send traffic
Send a packet to see the ECMP path selection model in action.
Trace Progress

Engineer Challenge

Send several packets, fail Spine 1's path, then send more traffic. Check whether the selected path avoids the failed link.

Challenge status: not yet attempted.
Engineering takeaway: redundant physical links provide path choices, but routing and forwarding must recognise failures before traffic can use the remaining path.
Section 04 · Programmable Operations

SDN Controllers, Automation and Policy-Based Operations

Network automation should deliver a verified outcome, not merely execute configuration commands. Explore the relationship between intent, controllers, APIs and distributed routing, then examine idempotency, controlled deployments, access security and the evidence required to confirm that a network change has succeeded.

Controllers and APIs Desired-state workflows Change validation
04 · CONTROLLERS · AUTOMATION · POLICY

SDN Controllers, Network Automation and Policy-Based Operations

The operational value of Software-Defined Networking is not simply that a network has a controller. It is the ability to express intent, translate that intent into consistent configuration or policy, and verify that the network behaves as expected. Controllers and automation systems can help make these workflows repeatable, observable and easier to manage at scale.

The exact implementation varies by platform. Some architectures use a controller to calculate or distribute network state; others combine central orchestration with distributed routing protocols and local forwarding decisions. Understanding that division is essential when designing resilient automation.

From network intent to verified forwarding

A useful operational model separates what the organisation wants the network to do from the configuration used to achieve it. An engineer might request connectivity between two application tiers, isolation for a tenant, or a resilient path to a service. The management system then translates the requirement into configuration, policy and validation checks.

STEP 01
Define intent
Specify connectivity, segmentation, performance and security requirements.
STEP 02
Translate policy
Map the requested outcome to device configuration, routes, services and rules.
STEP 03
Deploy changes
Apply configuration through supported APIs, protocols or management interfaces.
STEP 04
Verify outcome
Compare observed state with intended state and investigate any discrepancy.

What an SDN controller actually does

The term controller covers several different roles. A controller may maintain topology information, calculate paths, manage policy, coordinate provisioning or expose an API to orchestration tools. Not every controller performs every role, and not every SDN architecture relies on one controller for all control-plane decisions.

A simplified management and forwarding relationship
Applications and operators Business intent, workflows and service requirements
→
Controller / orchestrator Policy, coordination and supported APIs
→
Network devices Routing, local decisions and packet forwarding

Conceptual model only. Production systems may separate orchestration, control-plane services, device management and telemetry into several components. Data-plane forwarding normally continues locally even when a management interface is temporarily unavailable, subject to platform design.

Centralised management does not mean every decision is centralised

A common misunderstanding is that SDN always removes distributed control protocols. In practice, many systems use a central management layer while routing protocols such as BGP, OSPF or IS-IS continue to exchange reachability information between network devices.

Logical centralisation means that policy or control can be coordinated through a common abstraction. The underlying implementation may still be distributed across multiple controller instances and network devices for scale and resilience. The design must define which component owns each decision and what happens when components lose connectivity.

Central orchestration

Coordinates workflows, inventory, templates and service deployment across the infrastructure. It can help maintain consistent configuration but must handle partial failures and incomplete deployments.

Distributed routing

Network devices exchange reachability and make routing decisions according to protocol rules and local state. The routing system remains responsible for the behaviour defined by its configuration.

Local forwarding

Forwarding hardware or software applies installed forwarding entries to packets. A loss of management-plane access does not necessarily stop existing forwarding.

Telemetry and assurance

Monitoring systems collect operational evidence, detect anomalies and help compare actual network behaviour with intended service outcomes.

Programmable interfaces: APIs, models and device configuration

Programmability gives software a supported way to interact with network infrastructure. Depending on the platform, this may include REST APIs, NETCONF, RESTCONF, gNMI, YANG data models, command-line interfaces or vendor-specific management systems. These technologies are not interchangeable; each has its own capabilities, data models, transport and operational requirements.

A reliable automation workflow should avoid relying on fragile assumptions about device output or configuration syntax. Where supported, structured data models and APIs can make it easier to validate input, detect errors and compare configuration with expected state.

Mechanism Typical purpose Engineering consideration
REST API Integrate applications with controller or device services. Authentication, API versioning, error handling and request limits.
NETCONF / RESTCONF Access structured configuration and operational data where supported. Data-model support, transaction behaviour and device compatibility.
YANG Define structured data models for configuration and state. Model revisions and implementation-specific support.
gNMI Provide model-driven management and telemetry in supported systems. Subscription design, data volume and operational-state interpretation.
CLI automation Automate devices where command-line workflows are required. Prompt handling, parsing, idempotency and platform-specific syntax.

Configuration management and idempotency

An automation task should ideally be safe to run more than once. This property is known as idempotency: repeating an operation should not create unintended duplicate state or progressively change the result.

For example, an automation workflow should check whether a required VLAN, routing neighbour or policy object already exists before creating or modifying it. It should also distinguish between the configuration it intends to apply and the operational state the device actually reports.

Desired state is not proof of operational state

A successful API response can indicate that a request was accepted, but it does not by itself prove that the intended service is working. Confirm the resulting device configuration, protocol state, installed forwarding entries and end-to-end connectivity where appropriate.

Change control: validate before and after deployment

Network automation increases the speed and consistency of change, but it can also propagate an incorrect policy or configuration across many devices. Production workflows should therefore include validation, controlled rollout, logging and recovery procedures.

BEFORE
Pre-checks
Confirm inventory, dependencies, baseline state and permitted change scope.
CHANGE
Controlled rollout
Apply a limited change, with safeguards and clear failure handling.
AFTER
Post-checks
Verify configuration, routing, forwarding and service reachability.
RECOVERY
Rollback or repair
Restore a known-good state or apply a documented corrective action if checks fail.

Security and resilience of the management plane

Controllers and automation systems can have broad privileges. Their compromise or misconfiguration may affect a large part of the network. Protecting these systems is therefore part of the network architecture, not an optional operational detail.

Least privilege Give services and operators only the permissions required for their specific tasks.
Authentication and secrets Use supported authentication, protect credentials and rotate secrets according to operational policy.
Management-plane isolation Restrict management access to approved networks, identities and administrative paths.
Audit and recovery Record changes, monitor controller health and maintain tested recovery procedures for failed deployments.

How to troubleshoot an automation failure

When an automated change fails, avoid assuming that the controller is the only possible source of the problem. Work through the workflow and identify the first point where observed behaviour differs from the intended result.

Check the input request, policy translation, API response, device configuration, routing state, forwarding state and service-level result. This sequence helps distinguish a rejected request from a partially deployed change or a network that is configured correctly but cannot provide the expected service.

Section 04 takeaway

Controllers and automation systems coordinate intent, policy and configuration. Reliable SDN operations require more than issuing commands: they require idempotent workflows, access controls, change validation, operational telemetry and proof that the intended network outcome has been achieved.

Engineering Lab · Section 04
Policy Deployment, State Validation and Change Recovery

The planned interactive lab will follow a policy change from intent through deployment to observed network state. Inspect a failed or incomplete change, identify where the workflow diverged from the expected result, and determine which configuration, routing and forwarding evidence is needed before declaring the service healthy.

Network Insight / Interactive Engineering Lab 04

Fabric Capacity, Congestion & Resilience

Increase traffic demand, observe per-uplink utilisation, then remove an uplink and investigate how the remaining path absorbs the load.
Nominal capacity
Leaf–Spine Traffic Topology
Demand: 0 units
SPINE LAYER Redundant uplinks HOST ACCESS SPINE 1 Path A Available SPINE 2 Path B Available LEAF 1 Ingress 2 uplinks Rack A LEAF 2 Egress 2 uplinks Rack B HOST A Traffic source HOST B Traffic sink Illustrative capacity model: 100 units per uplink
Active traffic path Available alternate High utilisation Failed uplink
Model assumption: each leaf-to-spine uplink has a teaching capacity of 100 traffic units. Traffic is split across available paths for this exercise; this is a simplified capacity model, not a packet-level simulator or a benchmark of real hardware.
Capacity Dashboard
Illustrative units
Offered demand
0
Traffic units
Active capacity
200
Traffic units
Forwarded
0
Traffic units
Excess demand
0
Unserved in model
Path A · Spine 10 / 100
Path B · Spine 20 / 100
Overall utilisation0%
No traffic has been offered. Add demand to establish a baseline.
Operations Event Log
Latest event first
READYBoth spine paths are available. Aggregate illustrative capacity is 200 units.
Engineer Diagnosis
Observe · Compare · Explain
Current finding
The fabric is ready for a traffic test.
Increase demand in stages. Compare forwarded traffic with the available capacity, then repeat the experiment after removing an uplink.

Challenge: Survive the Uplink Failure

Add 60 units of demand, fail Leaf 1–Spine 1, then add another 60 units. Compare the available capacity before and after the failure.

Status: awaiting the initial traffic test.
Key concept: redundancy provides an alternate path, but it does not guarantee the remaining path has enough capacity to carry the full traffic load without congestion or drops.
Section 05 · Assurance and Troubleshooting

SDN Operations, Security and Intent-Based Networking

Reliable network operations depend on evidence that the service is working as intended. Learn how to correlate telemetry and events, isolate faults across physical, control and forwarding layers, secure programmable infrastructure, and use intent-based workflows to compare expected network behaviour with observed results.

Telemetry and assurance Incident investigation Intent-based networking
05 · OPERATIONS · ASSURANCE · SECURITY

SDN Operations, Troubleshooting, Security and Intent-Based Networking

A network is not successful simply because it has a controller, programmable interfaces or automated configuration. It is successful when it delivers the required connectivity, performance and security—and when engineers can prove that it continues to do so during changes and failures.

Effective SDN operations connect configuration management with observability, troubleshooting, security controls and service validation. This is where network automation becomes an operational discipline rather than just a way to issue commands faster.

From device monitoring to network assurance

Traditional monitoring often starts with individual device metrics: interface state, CPU, memory, routing neighbours and packet drops. These remain important, but they do not always explain whether an application can communicate with its intended destination.

Network assurance connects those individual signals to a broader question: does the network meet its intended service requirements? A useful assurance process compares expected state with observed state and gathers enough evidence to identify the source of a discrepancy.

01 · OBSERVE
Collect telemetry
Gather interface counters, routes, events, logs and performance measurements.
02 · CORRELATE
Build context
Relate device events to topology, services, policy and affected workloads.
03 · DIAGNOSE
Find the fault
Test hypotheses against routing, forwarding and end-to-end evidence.
04 · VALIDATE
Prove recovery
Confirm the intended service has recovered and check for remaining impact.

Build a layered troubleshooting method

When a service fails, begin with the observed symptom and follow the actual packet path. Avoid changing several configuration elements at once: doing so can hide the original cause and make recovery more difficult.

Physical and interface state

Check link status, errors, discards, optical levels where relevant, speed and duplex settings, and the health of connected devices.

Control-plane state

Verify routing neighbours, learned routes, selected paths, route policies and whether the expected prefixes are being advertised and received.

Forwarding state

Inspect the installed next hops, forwarding entries, adjacency resolution, tunnel state and counters to confirm that the data plane matches the routing intent.

Service and policy state

Test source-to-destination reachability, application ports, segmentation rules, firewall policy, DNS and other service dependencies relevant to the failure.

Operational principle

A healthy routing neighbour does not prove that a specific application flow will succeed. A route in the routing table does not prove that the correct next hop is installed in forwarding hardware. Each layer needs evidence appropriate to the question being investigated.

Telemetry, logs and event correlation

Telemetry can expose changes in interface utilisation, queue drops, route state, device health and other operational signals. Logs provide event context, while flow records and packet captures can help show where traffic is going or being lost.

These sources become more useful when they share reliable timestamps and are correlated with the topology and configuration in effect at the time. For example, a burst of packet loss may align with a link failure, a routing change or an automated policy deployment.

Correlation helps narrow the investigation, but timing alone does not prove causation. Engineers should verify the suspected relationship using route changes, interface counters, forwarding state or controlled reproduction where possible.

Security boundaries in an SDN environment

Programmability creates opportunities to enforce consistent policy, but it also increases the importance of securing the management plane and validating policy changes. An incorrectly scoped rule or compromised automation credential can have consequences across many devices or tenants.

Identity and access Authenticate users and services, apply least privilege and review administrative permissions.
Tenant separation Validate segment boundaries, permitted routes and the controls governing inter-tenant communication.
Change auditing Record who or what initiated a change, what was modified and whether post-change checks succeeded.
Resilience and recovery Protect controller access, monitor critical services and test recovery procedures before they are needed.

Intent-based networking: intent, policy and assurance

Intent-based networking aims to express desired network outcomes at a higher level than individual device commands. Instead of manually configuring every relevant device, an operator defines an outcome—such as approved connectivity between application tiers—and a system translates it into supported configuration and policy.

A more complete intent-based workflow also checks whether the requested outcome has been achieved. It may detect a mismatch, explain the affected components and recommend or perform a corrective action within approved safeguards.

The label alone does not guarantee autonomous correction or closed-loop operation. Capabilities vary by platform, and remediation should be bounded by policy, testing, approval requirements and a clear rollback strategy.

INTENT
Define the outcome
Specify the service, security and performance requirements.
TRANSLATE
Derive the policy
Convert the outcome into supported configuration and network controls.
ASSURE
Compare actual state
Measure operational evidence against the intended outcome.
IMPROVE
Correct safely
Investigate deviations and apply authorised corrective action when appropriate.

Common failure patterns and the evidence to collect

Symptom Possible causes Evidence to inspect
Configuration deployment fails Authentication, schema mismatch, invalid input or unsupported feature. API response, controller logs, validation output and device configuration.
Route exists but traffic fails Incorrect next hop, unresolved adjacency, ACL, MTU or forwarding issue. Routing table, forwarding entries, counters and packet-path tests.
Service fails after a change Policy mismatch, partial deployment or unexpected dependency. Change audit, before-and-after state, affected routes and service tests.
Traffic loss after link failure Convergence delay, insufficient remaining capacity or missing alternate path. Interface events, neighbour state, route updates, ECMP next hops and drops.
Unexpected cross-segment access Incorrect segmentation or overly permissive policy. VLAN/VNI mapping, gateway routing, firewall rules and access-policy counters.

Measure operational success

Automation success should be measured by more than the number of commands executed or devices configured. Useful measures include deployment success rate, change failure rate, recovery time, configuration drift, service availability and the time needed to diagnose a fault.

Baselines matter. Record normal behaviour before introducing a new workflow, then compare results over a meaningful period. A reduction in manual effort is valuable, but not if it comes at the cost of less reliable change or weaker security.

Section 05 takeaway

Mature SDN operations combine programmability with observability, layered troubleshooting, security controls and measurable assurance. Intent-based workflows can help close the loop between desired and observed network behaviour, but reliable outcomes still depend on sound architecture, trustworthy evidence and controlled remediation.

Engineering Lab · Section 05
Network Incident Investigation and Assurance

The planned interactive lab will present a network service incident with multiple possible causes. Inspect topology, event history, routing state, forwarding evidence and policy before selecting a diagnosis. The objective is to build a defensible explanation of the failure, identify the corrective action and verify recovery using observed network state.

Network Insight / Interactive Engineering Lab 05

ECMP Path Selection & Flow Distribution

Explore how multiple flows are assigned to equal-cost paths. Compare deterministic flow hashing with a simplified round-robin model, then remove a spine path and inspect the reassignment.
Two paths available
ECMP Forwarding Topology
0 active flows
SPINE LAYER Equal-cost paths across the fabric SPINE 1 ECMP Path A Available SPINE 2 ECMP Path B Available LEAF 1 Ingress ECMP next hops 2 available LEAF 2 Egress Destination prefix 10.20.0.0/24 HOST A Flow source HOST B Flow destination Conceptual flow assignment · not packet-level emulation
Path A · Spine 1 Path B · Spine 2 Failed path
Important: ECMP normally distributes flows using a hash over selected packet-header fields. A flow generally remains on one next hop to avoid excessive reordering. The round-robin option here is a teaching comparison, not a claim that production ECMP typically schedules individual packets this way.
Distribution Summary
Current flow assignments
Active flows
0
Generated sessions
Available paths
2
Equal-cost next hops
Path A flows
0
Via Spine 1
Path B flows
0
Via Spine 2
Add flows to observe how the selected distribution method assigns next hops.
Engineering note: an even flow count does not guarantee equal bandwidth. A single high-volume flow can dominate a path even when the number of assigned flows is balanced.
Flow Assignment Table
Up to 24 flows displayed
No flows yet. Select “Add 4 Flows” to begin the experiment.
Engineer Diagnosis
Inspect · Compare · Explain
Current finding
The fabric has two available equal-cost paths.
Generate several flows and compare their next-hop assignments. Then fail one path and observe the simplified reassignment behaviour.

Challenge: Explain ECMP Rebalancing

Generate at least 8 flows using flow hashing. Fail Spine 1's path and inspect the assignments. Switch to round-robin and repeat. Explain why a path failure can cause flows to move and why production devices may use resilient hashing to reduce unnecessary remapping.

Status: generate at least 8 flows to begin.
Remember: ECMP chooses among eligible equal-cost next hops. Routing determines which paths are available; forwarding hardware or software performs the per-flow selection.
Network Insight · Engineering Conclusion

Conclusion: Building and Operating an SDN Data Centre

Software-defined networking is more than a programmable network interface. It is an architectural approach that brings together scalable forwarding, network virtualisation, centralised policy, automation and evidence-driven operations.

Throughout this guide, we have examined how SDN changes the way data centre networks are designed, controlled and operated. The central engineering lesson is that programmability creates value only when it is supported by sound architecture, predictable forwarding, reliable state, and effective verification.

Five engineering principles to take forward

01
Design the architecture first

Separate forwarding responsibilities from control and management functions where appropriate. Define clear interfaces, failure boundaries and operational ownership before introducing automation.

02
Engineer for scale and resilience

Leaf–spine fabrics, ECMP and multiple paths can provide scalable east–west connectivity. Validate capacity, flow distribution, convergence and the impact of link or device failures.

03
Make virtual networks understandable

VXLAN overlays and tenant segmentation provide logical separation over shared infrastructure. Correct VTEP reachability, VNI mappings, endpoint learning and policy enforcement remain essential.

04
Automate with explicit intent

Controllers, APIs and configuration pipelines should translate defined requirements into controlled changes. Validate inputs, manage dependencies, check results and maintain a clear rollback path.

05
Operate from evidence

Telemetry, logs, counters, flow data and state inspection help engineers distinguish a control-plane issue from a forwarding, overlay, policy or application problem.

06
Secure the complete system

Protect controller access, APIs, credentials and automation pipelines. Apply least privilege, segment management traffic, audit changes and test failure recovery as part of routine operations.

From design principles to operational practice

A successful SDN deployment should be evaluated against measurable outcomes: predictable forwarding, adequate capacity, reliable convergence, effective segmentation, repeatable changes and recoverable failures. A topology diagram or successful configuration alone does not prove that the network is behaving as intended.

Engineers should test both normal operation and failure conditions. Introduce controlled faults, observe how state changes across the fabric, verify the resulting forwarding path and compare the outcome with the original design intent. This turns SDN from a collection of technologies into an operational system that can be understood and validated.

The engineering takeaway

Build for predictable behaviour, automate with guardrails, and verify every important outcome. The strongest SDN data centre is not simply the one with the most automation; it is the one whose architecture, policies, forwarding and recovery behaviour can be explained and tested.

Practical review checklist

  • Can you explain how control, management and forwarding responsibilities interact?
  • Have you tested ECMP distribution, available capacity and single-link or device failures?
  • Can you trace an endpoint across the overlay and verify its tenant and policy context?
  • Are automated changes validated, observable, auditable and reversible?
  • Can the operations team diagnose a fault using evidence rather than assumptions?

SDN continues to evolve alongside cloud-native infrastructure, network APIs, intent-based operations and AI-assisted data centre management. The underlying engineering disciplines remain the same: understand the architecture, observe the system, test the failure modes and verify that the network delivers the behaviour its users depend on.

Use these principles as a foundation for evaluating new designs, investigating production incidents and developing more reliable, programmable network infrastructure.

```
☕
Support Network Insight
Help support independent engineering guides, interactive networking tools, and future learning labs.
Support Network Insight ```