SDN Routing Architecture Infographic

SDN Routing Architecture Explained

NETWORK INSIGHT
ENGINEERING GUIDES
ARCHITECTURE SERIES
Software-Defined Networking · Routing Architecture

SDN Routing Architecture Explained

Engineering programmable networks with logically centralised intelligence, dynamic path computation, policy-driven forwarding and automated network resilience.
SDN Controllers Control Plane Data Plane OpenFlow Segment Routing BGP-LS PCEP Traffic Engineering

Networks are no longer simply infrastructures that provide connectivity between devices. Modern networks must respond to changing application requirements, distributed workloads, security policies, unpredictable traffic patterns and increasingly demanding performance objectives.

Traditional routing protocols remain fundamental to network operation. OSPF, IS-IS and BGP provide distributed mechanisms for exchanging reachability, discovering topology and selecting routes. These protocols have enabled networks to scale from small enterprise environments to the global Internet.

However, modern infrastructure increasingly requires capabilities that extend beyond conventional destination-based routing. Applications may require predictable latency, guaranteed capacity, isolation, explicit service paths or coordinated traffic steering across multiple network domains.

Software-Defined Networking (SDN) introduces an architectural approach in which network control can be abstracted from the underlying forwarding infrastructure. A programmable control system can collect network state, interpret policy, calculate forwarding decisions and coordinate their implementation across network devices.

This changes the way engineers design, operate, troubleshoot and optimise networks. Instead of considering each device exclusively as an independent routing system, engineers can also reason about the network as a coordinated programmable infrastructure.

SOFTWARE-DEFINED ROUTING ARCHITECTURE APPLICATIONS ORCHESTRATION SECURITY POLICY TRAFFIC ENGINEERING Service requirements Automation and intent Access and segmentation Performance objectives Northbound APIs LOGICALLY CENTRALISED SDN CONTROL Distributed controller cluster · Coordinated network state TOPOLOGY PATH ENGINE POLICY ENGINE STATE ENGINE Network graph Path computation Intent translation Reconciliation Southbound Control Interfaces Network Telemetry PROGRAMMABLE FORWARDING INFRASTRUCTURE INGRESS TRANSIT 01 TRANSIT 02 EGRESS Traffic classification Forwarding state Forwarding state Packet delivery Local packet forwarding using installed network state NETWORK INSIGHT · ARCHITECTURAL REFERENCE MODEL
Figure 1 — Conceptual SDN routing architecture. Application intent is translated into network policy, while forwarding devices execute installed state and return operational telemetry to the control system.

From Distributed Routing to Programmable Networks

In conventional routing architectures, individual network devices participate in distributed control protocols. Each device maintains routing information and derives the forwarding state required to deliver packets through the network.

SDN introduces a broader control abstraction. Network intelligence can be coordinated through controllers that maintain topology information, evaluate network-wide policies and calculate forwarding behaviour according to application and infrastructure requirements.

This does not mean that every packet must travel through a controller. The controller typically participates in control decisions, while physical or virtual network devices continue forwarding packets locally using installed forwarding state.

Fundamental Architectural Principle

SDN separates or abstracts the responsibility for making network control decisions from the responsibility for executing packet forwarding. The network becomes programmable without requiring every packet to be processed by the control system.

The Four Foundations of SDN Routing

Logically Centralised Intelligence

A controller or controller cluster maintains an aggregated understanding of network topology, reachability, operational conditions and application requirements. The control abstraction can be implemented using physically distributed infrastructure.

Dynamic Path Computation

Network paths can be evaluated using more than conventional routing metrics. Path computation may incorporate available bandwidth, latency, administrative constraints, link affinity, failure protection and application objectives.

Programmable Forwarding

Network devices implement forwarding behaviour through routing entries, match-action tables, tunnels, segment routing policies and other supported mechanisms. Control interfaces enable software systems to coordinate these behaviours.

Continuous Network Feedback

Operational telemetry allows the control system to compare intended network behaviour with observed conditions. This supports verification, reconciliation, performance optimisation and automated responses to selected network events.

The SDN Engineering Control Loop

One of the most important concepts in SDN is the relationship between network observation, control decisions and forwarding execution. A programmable network can be understood as a continuous control loop rather than a collection of static device configurations.

01 Observe Discover topology and collect operational state.
02 Compute Evaluate constraints and calculate network policy.
03 Program Install supported forwarding and steering state.
04 Verify Observe actual behaviour and reconcile differences.

This control loop provides a foundation for closed-loop network automation. When operational conditions change, the control system may evaluate whether existing forwarding behaviour still satisfies the intended policy.

However, automation must be carefully engineered. Telemetry can be delayed, incomplete or inaccurate. Frequent policy changes can introduce instability. Forwarding updates may be applied at different times across different devices.

Effective SDN architectures therefore require appropriate control-loop timing, safe update procedures, failure detection, state reconciliation and operational safeguards.

SDN Does Not Mean the End of Traditional Routing

Modern SDN architectures frequently combine distributed routing protocols with centralised policy and path computation.

An IP or MPLS underlay may continue using OSPF, IS-IS or BGP to establish reachability. BGP-LS can export topology information to external control systems, while the Path Computation Element Communication Protocol (PCEP) can support communication between path computation elements and network devices.

Segment Routing can provide mechanisms for steering traffic along engineered paths without requiring every intermediate router to maintain separate forwarding state for every end-to-end traffic engineering policy.

Other SDN architectures may use OpenFlow, programmable switching pipelines, virtual network overlays, configuration APIs or combinations of these technologies.

SDN Is an Architecture, Not a Single Protocol

OpenFlow, BGP-LS, PCEP, Segment Routing, NETCONF, gNMI and programmable forwarding technologies can participate in SDN systems, but none individually defines the complete architecture. SDN concerns how network control, programmability and forwarding responsibilities are organised.

Why SDN Routing Matters in Modern Infrastructure

Data Centre Networking

Software-defined fabrics can coordinate tenant connectivity, virtual networks, segmentation and workload mobility across physical and virtual infrastructure.

Service Provider Networks

Centralised path computation and traffic engineering can help operators optimise backbone capacity, engineer service paths and implement explicit routing constraints.

Enterprise WAN and SD-WAN

Application-aware policies can influence WAN path selection according to measured transport conditions, security requirements and business priorities.

Cloud Networking

Cloud platforms rely on software-controlled networking to create virtual networks, implement tenant isolation and automate connectivity across distributed infrastructure.

Kubernetes Networking

Networking controllers and programmable data planes can implement workload connectivity, service forwarding and distributed network policy.

AI Infrastructure Networking

Software-defined fabric management and telemetry-driven optimisation can complement hardware-based congestion control and adaptive routing in high-performance GPU cluster networks.

Understanding SDN from an Engineering Perspective

Learning SDN requires more than understanding the separation between the control plane and the data plane. Engineers must understand how network state is discovered, how forwarding decisions are calculated, how policies are installed and how the resulting behaviour is verified.

Equally important is understanding what happens when these mechanisms fail. A controller may become unavailable. Network telemetry may become stale. A link may fail before a new path is calculated. A forwarding update may succeed on some devices but fail on others.

These scenarios expose the distributed systems challenges underlying software-defined networking. Controller consistency, device ownership, update ordering, convergence and fault tolerance are therefore essential parts of SDN engineering.

Throughout this guide, we will examine SDN routing from the perspective of architecture, packet forwarding, network state, operational behaviour and production troubleshooting.

What This Engineering Guide Covers

01
Understanding SDN Routing Distributed routing versus logically centralised network intelligence.
02
Control Plane and Data Plane Architecture Control separation, forwarding state, RIBs, FIBs and packet processing.
03
SDN Controller Architecture Topology discovery, controller clustering, network state and control interfaces.
04
Programmable Forwarding OpenFlow, P4, match-action processing and forwarding rule installation.
05
Intelligent Path Computation Network graphs, shortest paths, constraints and optimisation objectives.
06
SDN Routing with BGP and Segment Routing BGP-LS, PCEP, SR-MPLS, SRv6 and explicit traffic steering.
07
SDN Traffic Engineering Congestion management, capacity optimisation and dynamic traffic policies.
08
SDN Failure Detection and Troubleshooting Controller outages, stale state, forwarding inconsistencies and convergence.
09
Production SDN Architectures Data centres, service provider networks, cloud platforms and AI infrastructure.
MC

A Note on the Engineering Learning Approach

The objective of this guide is not simply to describe Software-Defined Networking terminology. It is to develop an architectural understanding of how programmable networks behave, how control decisions influence packet forwarding and how engineers can investigate unexpected outcomes.

The accompanying interactive engineering experiences are designed to complement the editorial material through observation, experimentation, network state inspection and practical troubleshooting.

Matthew Conran · Network Insight

The Central Engineering Question

How can a network move beyond independently calculated routing decisions towards coordinated, programmable and policy-driven behaviour while preserving the scalability, performance and resilience required by production infrastructure? This is the central question that we will explore throughout this engineering guide.

01
Network Insight · SDN Routing Engineering
ARCHITECTURAL FOUNDATIONS

Understanding SDN Routing

Software-Defined Networking introduces a different approach to network control. Instead of relying exclusively on independently calculated routing decisions, SDN enables software systems to coordinate forwarding behaviour according to network-wide information, application requirements and programmable policies.

Distributed Routing Centralised Control Network Abstraction Path Selection Hybrid SDN

1.1 How Traditional Routing Networks Operate

To understand SDN routing, we must first understand the architectural model that it extends. Traditional IP networks rely on distributed routing protocols to establish reachability between network destinations.

Each router participates in a control plane, exchanging information with neighbouring devices, evaluating routing policies and calculating the forwarding state required to deliver packets.

Different routing protocols implement this process in different ways. OSPF and IS-IS distribute link-state information, allowing routers to construct a topology database and independently calculate shortest paths. BGP distributes network reachability information together with path attributes that influence policy-based route selection.

Link-State Routing

OSPF and IS-IS

Routers exchange topology information and independently calculate shortest paths using the link-state database associated with their routing area or level.

Path-Vector Routing

Border Gateway Protocol

BGP routers exchange reachability information and evaluate path attributes, local policies and next-hop reachability to select eligible routes.

These distributed mechanisms are fundamental to network resilience and scalability. A router does not ordinarily require an external central controller to calculate its next hop towards a destination.

However, the routing decision is constrained by the information available to the protocol and the objectives encoded within its metrics and policies.

A shortest-path calculation based on an IGP metric does not inherently account for the real-time latency requirements of an individual application, the security constraints of a particular tenant or the available capacity across an entire multi-domain network.

1.2 The Architectural Shift Introduced by SDN

SDN introduces a programmable control abstraction that can coordinate network behaviour beyond the decisions made independently by individual devices.

A controller may collect topology information, network telemetry, reachability data and application requirements. It can then evaluate this information to determine how selected traffic should traverse the infrastructure.

DISTRIBUTED ROUTING Independent control-plane decisions R1 R2 R3 R4 Local Control Local Control Local Control Local Control RIB / FIB RIB / FIB RIB / FIB RIB / FIB Routing protocols exchange network state Each router derives forwarding behaviour SDN ROUTING Coordinated network intelligence SDN CONTROLLER Network Graph · Policy · Telemetry Coordinated Path Computation N1 N2 N3 N4 FIB / Flow FIB / Flow FIB / Flow FIB / Flow Controller coordinates forwarding policy Devices execute forwarding locally
Figure 1.1 — Distributed routing compared with logically centralised SDN control. Cyan dashed lines represent control communication, while green links represent data-plane connectivity.

The fundamental distinction is not simply where routing software executes. It concerns how network decisions are coordinated, how infrastructure is represented to applications and how forwarding behaviour is programmed.

Engineering Principle

SDN separates the responsibility for coordinating network control from the responsibility for forwarding packets. The extent of this separation depends on the architecture. Many production networks retain substantial distributed control functionality within their network devices.

1.3 Comparing Traditional Routing and SDN Routing

Engineering Property Traditional Routing SDN Routing
Control architecture Distributed protocol intelligence Logically centralised or hybrid control
Topology visibility Protocol and domain-specific information Aggregated network topology and telemetry
Path computation Local routing algorithms and policies Coordinated constraint-based computation
Policy enforcement Device and protocol configuration Programmable network-wide policy
Forwarding state Primarily derived from routing protocols Controller-programmed or protocol-derived
Traffic optimisation Metrics, ECMP and distributed mechanisms Application-aware and coordinated steering
Failure recovery Protocol convergence and local protection Local protection and controller recomputation
Operational complexity Distributed protocol interactions Controller, device and state coordination

Neither architectural model is inherently superior in every situation. Distributed routing provides autonomy and proven convergence mechanisms. SDN provides opportunities for coordinated optimisation and programmable policy enforcement.

The engineering objective is to select an architecture that satisfies the requirements of the network without introducing unnecessary dependencies or operational complexity.

1.4 What Logically Centralised Control Really Means

Logically centralised control is frequently misunderstood as a requirement for one physical controller responsible for an entire network. In reality, the control abstraction may be implemented by multiple distributed controller instances.

Controller instances can share selected network state, distribute computation, coordinate device ownership and provide redundancy. Different controller implementations use different consistency and availability models.

Logical Architecture

Unified Control Abstraction

Applications interact with a coordinated network control system rather than having to manage every individual forwarding device directly.

Physical Architecture

Distributed Controller Infrastructure

Multiple controller instances may operate across servers, availability zones or geographic locations to improve resilience and distribute operational workloads.

This means that SDN does not eliminate distributed systems complexity. It changes where some of that complexity resides. Controller clustering introduces considerations such as state replication, consistency, ownership, leader election and failure recovery.

Centralised Intelligence Does Not Mean a Single Server

The control plane can be logically centralised while remaining physically distributed. Resilience depends on the controller design, its state-management mechanisms and the behaviour of network devices during control connectivity failures.

1.5 From Destination-Based Routing to Policy-Driven Forwarding

Conventional IP forwarding typically selects the next hop using the destination IP address and a longest-prefix match against the forwarding table.

SDN architectures can introduce additional classification and steering mechanisms. Depending on the capabilities of the data plane, forwarding decisions may incorporate source information, traffic class, tenant identity, application classification, security policy or explicit path identifiers.

Consider an enterprise carrying two different traffic classes across the same network: latency-sensitive application traffic and large background backup transfers.

Illustrative Engineering Scenario

Path A — Lowest IGP Cost

R1 → R2 → R5
20 IGP Cost
28 ms Latency
92% Peak Utilisation

Path B — Alternative Engineered Path

R1 → R3 → R4 → R5
30 IGP Cost
12 ms Latency
35% Peak Utilisation

Example values are illustrative and do not represent live network measurements.

A conventional shortest-path calculation based exclusively on the configured IGP metric selects Path A because its total routing cost is lower.

However, Path B offers lower measured latency and lower peak link utilisation. If the application requires a maximum latency of 20 milliseconds, Path B satisfies that requirement while Path A does not.

An SDN controller could calculate a policy that directs selected application traffic along Path B while allowing other traffic to continue using the conventional routing path.

CONCEPTUAL APPLICATION ROUTING POLICY
policy: INTERACTIVE_APPLICATION

match:
  traffic_class: interactive

constraints:
  maximum_latency_ms: 20
  maximum_link_utilisation_pct: 70

objective:
  minimise_latency

selected_path:
  R1 → R3 → R4 → R5

fallback:
  use_default_route_if_policy_unavailable

verification:
  monitor_latency: enabled
  monitor_path_health: enabled

This is a conceptual policy representation, not vendor-specific configuration syntax. Actual implementation requires supported traffic classification, path computation and forwarding mechanisms.

The controller must also consider whether moving additional traffic onto Path B would cause that path to exceed its capacity or latency constraints. Current measurements alone are not a guarantee of future application performance.

The Shortest Path Is Not Always the Best Path

Routing metrics represent particular optimisation objectives. SDN can incorporate additional constraints and application requirements into path selection, but its decisions remain dependent on accurate network state and supported traffic-steering capabilities.

1.6 The Lifecycle of an SDN Routing Decision

An SDN routing decision is not merely the output of a shortest-path algorithm. It is the result of a broader control process involving observation, policy interpretation, computation, installation and verification.

01

Discover Network Topology

Identify network devices, interfaces, adjacencies, links and relevant reachability information using supported discovery and control mechanisms.

02

Collect Operational State

Obtain information about link availability, utilisation, capacity, latency and other measurements relevant to network policy.

03

Interpret Network Intent

Translate application requirements, security policies and service objectives into forwarding constraints that the network can implement.

04

Calculate an Eligible Path

Evaluate the available topology against mandatory constraints and optimisation objectives. Reject paths that cannot satisfy the required policy.

05

Install Forwarding State

Program supported flow entries, routing policies, tunnels or segment lists using the appropriate southbound interfaces.

06

Verify Actual Network Behaviour

Confirm that the installed forwarding state produces the intended connectivity and traffic treatment. Compare observed behaviour with the desired policy.

07

Reconcile and Adapt

Respond to selected topology changes, policy modifications or performance violations using controlled recomputation, safe updates and operational safeguards.

1.7 Three Architectural Models of SDN Routing

SDN can be implemented through several architectural models. Understanding the distribution of control responsibilities is essential when evaluating these designs.

Model 01

Controller-Driven Forwarding

An external controller directly coordinates selected forwarding entries within network devices. OpenFlow-based architectures provide a well-known example of this approach.

Model 02

Hybrid Routing Architecture

Distributed routing protocols maintain basic reachability while a controller computes additional traffic-engineering policies. Segment Routing with a centralised PCE is one example.

Model 03

Software-Defined Overlay

A control system coordinates virtual network connectivity and policy over an existing IP underlay. Forwarding behaviour may be implemented at virtual switches, tunnel endpoints or network edges.

Design Consideration

Control Responsibility

Engineers must determine which decisions remain local, which are delegated to controllers and how the infrastructure behaves when external control systems become unavailable.

1.8 SDN and Traditional Routing Can Coexist

A production SDN deployment does not necessarily require the replacement of existing routing protocols.

In a hybrid architecture, an IP or MPLS underlay can continue to use OSPF or IS-IS to establish network reachability. BGP may provide additional reachability distribution, while BGP-LS can export topology information to external control systems.

A Path Computation Element can calculate engineered paths based on topology and policy constraints. PCEP can support communication between the PCE and Path Computation Clients, while Segment Routing provides a mechanism for steering selected traffic.

HYBRID SDN ROUTING ARCHITECTURE SDN CONTROLLER / PCE Traffic Engineering Database Constraint-Based Path Computation PCEP / Policy BGP-LS / Topology DISTRIBUTED IP / MPLS UNDERLAY R1 R2 R3 R5 R4 Ingress PCC Transit Transit Egress / LS Transit Conventional distributed routing path Engineered SR path OSPF / IS-IS maintain underlay reachability
Figure 1.2 — Conceptual hybrid SDN architecture. Distributed routing maintains underlay reachability, while an external control system calculates and coordinates an additional engineered traffic path. BGP-LS and PCEP are illustrative control mechanisms.

This hybrid approach allows network engineers to introduce centralised traffic optimisation without necessarily removing the distributed mechanisms that maintain fundamental network connectivity.

1.9 Network State and the Risk of Incorrect Decisions

A controller can only make decisions based on the network information available to it. The accuracy, completeness and freshness of that information are therefore critical.

Consider a controller that believes a particular network link is operational. If that link has failed but the controller has not yet received the updated topology information, its path computation engine may calculate a path that cannot be used.

CONCEPTUAL NETWORK STATE COMPARISON
CONTROLLER VIEW

Link R3-R4: UP
Topology version: 104
Computed path: R1-R3-R4-R5

ACTUAL NETWORK STATE

Link R3-R4: DOWN
Topology version: 105

RESULT

Computed path is no longer valid.
Forwarding outcome depends on installed
policy and local protection mechanisms.

REQUIRED ACTION

Refresh topology state.
Recompute eligible path.
Verify forwarding installation.

The controller may also encounter situations where a policy has been calculated correctly but has not been installed consistently across the relevant devices.

A reliable SDN system must distinguish between desired state, calculated state, installed state and observed forwarding behaviour.

Desired State

What Should Happen?

The connectivity, performance and security requirements expressed through network policy or application intent.

Calculated State

What Has Been Computed?

The paths and forwarding decisions produced by the controller using its current view of the network.

Installed State

What Has Been Programmed?

The actual routing entries, flow rules, tunnel policies or segment routing state installed within network devices.

Observed State

What Is Actually Happening?

The forwarding outcomes, packet delivery, latency, loss and operational behaviour observed within the infrastructure.

Production Engineering Warning

A successful controller computation does not prove successful packet delivery. Engineers must verify the installed forwarding state and actual data-plane behaviour. Stale topology, incomplete programming, exhausted hardware resources and inconsistent updates can all prevent the intended outcome.

1.10 The Benefits and Trade-Offs of SDN Routing

Architectural Benefits

Coordinated Network Optimisation

Broader topology visibility can support more coordinated traffic engineering, application-aware path selection and infrastructure utilisation.

Operational Benefits

Programmability and Automation

Network policy can be expressed and implemented through software interfaces, reducing selected manual configuration tasks and supporting repeatable operations.

Architectural Trade-Off

Additional Control Dependencies

Controller availability, communication channels, state consistency and policy installation mechanisms become important components of the network failure model.

Operational Trade-Off

Distributed Systems Complexity

Engineers must investigate interactions between controller state, distributed routing protocols, hardware forwarding resources and actual packet behaviour.

The objective of SDN is not to centralise every possible network decision. It is to introduce programmability and coordination where they provide meaningful architectural or operational advantages.

Fast local failure protection may remain within the network devices. Distributed routing protocols may continue maintaining fundamental reachability. The controller can focus on decisions that benefit from broader network visibility and coordinated policy computation.

Section 01 — Key Engineering Takeaway

SDN routing extends conventional network control by introducing programmable, coordinated decision-making. It can incorporate application requirements, topology information and operational telemetry into forwarding policies. However, its effectiveness depends on accurate network state, resilient control infrastructure, supported forwarding mechanisms and continuous verification of actual network behaviour.

Looking Ahead: Control Plane and Data Plane

Having established the architectural foundations of SDN routing, the next section examines the relationship between the control plane and the data plane in greater detail.

We will explore how routing information becomes forwarding state, how controllers communicate with network devices, how proactive and reactive programming differ, and why existing packet forwarding may continue even when an external controller becomes unavailable.

Network Insight · Interactive Engineering 01

Where Does Routing Intelligence Live?

Explore how distributed routing protocols and software-defined networking solve the same forwarding problem using different control architectures. Change network conditions, inspect forwarding state and observe how network-wide policies influence packet delivery.

Live Network Topology

DISTRIBUTED CONTROL
NETWORK INSIGHT / ROUTING CONTROL LAB
Selected path Controller channel Available link Failed link

Engineering Controls

Cost 10
Path cost —
End-to-end latency —
Path bottleneck —
Forwarding hops —
Decision evidence

Selected Forwarding Path

Routing intelligence location
Forwarding state inspector

R1 — Forwarding Table

Destination Next hop Cost Source
Select any router in the topology

Engineering Event Console

Engineering principle: SDN does not eliminate forwarding intelligence from network devices. It changes how forwarding decisions can be computed, coordinated and installed. A logically centralised controller can use network-wide information and application policies, while the data plane continues to forward packets using installed state.
EXPERIMENT 01 / OBSERVE Send a packet in distributed mode. Inspect R1, R2 and R4 to identify their individual forwarding decisions.
EXPERIMENT 02 / COMPARE Enable SDN mode and select minimum latency. Compare the new path against the distributed minimum-cost path.
EXPERIMENT 03 / INVESTIGATE Fail a link on the selected path. Observe recomputation, inspect the forwarding tables and send another packet.
02
Network Insight · SDN Routing Engineering
CONTROL AND FORWARDING ARCHITECTURE

SDN Control Plane and Data Plane Architecture

The separation of network control from packet forwarding is one of the defining architectural principles of Software-Defined Networking. Understanding this separation requires examining how network decisions are calculated, translated into forwarding state and executed by physical or virtual network devices.

Control Plane Data Plane RIB and FIB ASIC Forwarding Flow Tables Controller Failure

2.1 The Three Functional Planes of a Network

Network infrastructure can be understood through three functional responsibilities: the management plane, the control plane and the data plane. These responsibilities exist in traditional networks as well as software-defined architectures.

SDN does not invent the distinction between control and forwarding. Instead, it changes how these responsibilities can be distributed, abstracted and coordinated.

Plane 01

Management Plane

Provides configuration, monitoring, administration, authentication and operational access to network infrastructure. Management interfaces may also expose automation and telemetry capabilities.

Plane 02

Control Plane

Discovers network state, exchanges routing information, evaluates policies and calculates the forwarding decisions required to establish network connectivity.

Plane 03

Data Plane

Processes packets using installed forwarding state. Responsibilities include packet classification, next-hop selection, header modification, filtering, encapsulation and transmission.

SDN Abstraction

Programmable Control Interfaces

Enable external software systems to coordinate selected control and forwarding responsibilities without requiring every network decision to be configured manually on individual devices.

FUNCTIONAL NETWORK ARCHITECTURE MANAGEMENT PLANE Configuration Orchestration Monitoring Administration SDN CONTROL PLANE Topology Routing / RIB Policy Engine State Compiler Network discovery Reachability Path selection Device programming Forwarding State Programming DISTRIBUTED DATA PLANE Switch 01 Router 02 Router 03 Switch 04 FIB / Flow Table FIB / Flow Table FIB / Flow Table FIB / Flow Table Packets are forwarded locally using installed state
Figure 2.1 — Functional separation between management, network control and packet forwarding. The external control abstraction may coexist with local control-plane functions inside network devices.

2.2 Control Plane Separation in Traditional and SDN Networks

A conventional hardware router already separates control-plane processing from data-plane forwarding. Routing protocols typically execute on a control processor, while dedicated forwarding hardware processes packets at high speed.

The control processor calculates routing state and communicates the resulting forwarding information to the forwarding subsystem. Packets can then traverse the device without requiring a new routing calculation for every packet.

SDN extends this separation by allowing selected control functions to operate outside the individual forwarding device. An external controller may calculate policies, coordinate paths or install forwarding rules across multiple devices.

Function Traditional Router SDN Architecture
Routing computation Local routing process Local, external or hybrid
Policy calculation Device-specific configuration Controller and device policies
Forwarding installation Internal control-to-forwarding interfaces Internal and external programming interfaces
Packet processing Local forwarding subsystem Local physical or virtual data plane
Network visibility Local and protocol-specific state Potentially aggregated network-wide state
Failure dependency Local control and forwarding components Local components and external control systems

Engineering Principle — Separation Is Not New

Traditional routers already distinguish control processing from packet forwarding. SDN introduces additional programmability and allows selected control responsibilities to be coordinated externally across multiple network devices.

2.3 Understanding the RIB and FIB Relationship

Two fundamental structures in IP routing are the Routing Information Base (RIB) and the Forwarding Information Base (FIB).

The RIB represents routing information used by the control plane. Routing processes contribute reachability information, and route-selection mechanisms determine which routes are eligible for installation.

The FIB represents forwarding information used by the data plane. It is generally derived from selected routes, resolved next hops and associated forwarding information.

Control-Plane Structure

Routing Information Base — RIB

Maintains routing information learned from connected networks, static routes and dynamic routing protocols. Route selection evaluates relevant metrics, preferences and routing policies.

Data-Plane Structure

Forwarding Information Base — FIB

Contains forwarding entries optimised for packet processing. Entries associate destination prefixes with resolved forwarding actions, next-hop objects or next-hop groups.

ROUTING INFORMATION TO FORWARDING STATE Connected / Static OSPF / IS-IS BGP Controller Policy* RIB — ROUTING INFORMATION BASE Route eligibility · Preference · Metric · Policy Selected routing information NEXT-HOP RESOLUTION Recursive lookup · Adjacency · ECMP group FIB — FORWARDING INFORMATION BASE Prefix lookup · Next-hop action · Forwarding object Hardware or software forwarding implementation *Controller policies may use separate forwarding tables
Figure 2.2 — Conceptual route-to-forwarding pipeline. The precise implementation varies by platform. Some SDN policies bypass conventional RIB processing and program separate policy or flow-table structures.

The distinction becomes particularly important during troubleshooting. A route may appear in the control-plane routing database without being successfully installed into the forwarding subsystem.

Possible causes include unresolved next hops, unsupported forwarding actions, hardware resource exhaustion or errors during forwarding-state programming.

ILLUSTRATIVE RIB AND FIB STATE
ROUTING INFORMATION BASE

Destination       Next Hop       Source
10.20.0.0/16      192.0.2.2      OSPF
10.30.0.0/16      192.0.2.6      BGP
10.40.0.0/16      192.0.2.10     Static

FORWARDING INFORMATION BASE

Destination       Forwarding Action
10.20.0.0/16      NH-101 / Ethernet1
10.30.0.0/16      NH-205 / Ethernet2
10.40.0.0/16      NH-310 / Ethernet3

ADJACENCY INFORMATION

NH-101:
  Next hop: 192.0.2.2
  Rewrite:  02:00:00:00:01:02
  Egress:   Ethernet1
  State:    Resolved

This is a conceptual representation of forwarding state rather than output from a particular vendor operating system.

2.4 How the Data Plane Actually Processes Packets

Once forwarding state has been installed, the data plane processes packets according to the capabilities and programming of the forwarding device.

Hardware-based network devices commonly use Application-Specific Integrated Circuits (ASICs) or network processors to perform packet parsing, classification, table lookups and forwarding actions.

Software-based data planes may implement similar logical functions using general-purpose processors, accelerated packet-processing frameworks, eBPF, virtual switches or specialised offload hardware.

Ethernet Layer 2 Header
Destination IP Prefix Lookup
Source IP Classification
TCP / UDP Transport Header
Payload Application Data

In conventional destination-based IP forwarding, the destination address is evaluated against the forwarding table using longest-prefix matching. Programmable data planes can additionally evaluate other supported header fields and metadata.

01 Parse Identify packet headers and extract fields.
02 Classify Evaluate metadata, traffic class and policy.
03 Lookup Match forwarding entries and select actions.
04 Forward Rewrite, queue and transmit the packet.
CONCEPTUAL ASIC FORWARDING PIPELINE PARSER POLICY LOOKUP ACTION EGRESS Extract fields ACL / Classify FIB / Match Rewrite / Encap Queue / TX STAGE 1 STAGE 2 STAGE 3 STAGE 4 STAGE 5 Illustrative packet traversal through processing stages
Figure 2.3 — Conceptual hardware forwarding pipeline. Actual ASIC architectures may contain multiple parallel processing stages, recirculation, buffering and platform-specific table structures.

Forwarding hardware has finite resources. Exact-match tables, longest-prefix-match structures, TCAM resources, adjacency tables, counters and action memory all have implementation-specific capacity limits.

An SDN controller must therefore account for device capabilities rather than assuming that every calculated forwarding policy can be installed successfully.

2.5 Forwarding Tables in Programmable Networks

Conventional IP forwarding tables primarily associate destination prefixes with next-hop actions. Programmable forwarding architectures can support more general match-action processing.

A match-action table evaluates supported packet fields or metadata against configured entries. When a matching entry is selected, the associated action is executed.

Actions may include forwarding to a port, dropping a packet, modifying headers, applying a meter, assigning metadata, encapsulating traffic or directing processing to another table.

Priority Match Condition Action Purpose
400 Source: 10.99.0.0/16 DROP Security policy
300 Destination: 10.20.0.0/16
DSCP: EF
Apply TE Policy A Latency-sensitive traffic
200 Destination: 10.20.0.0/16 Output Port 3 Standard forwarding
0 Any remaining packet Continue to IP lookup Default processing

This conceptual table demonstrates how traffic destined for the same IP prefix can receive different treatment depending on additional classification criteria.

The higher-priority security rule is evaluated before the traffic engineering and standard forwarding rules. A packet matching that security rule is dropped regardless of its destination.

Engineering Insight — Routing Is One Forwarding Function

A programmable data plane can perform more than destination-based routing. It may combine forwarding, security, traffic classification, encapsulation and service steering within a coordinated processing pipeline. Supported behaviour depends on the device and its programming model.

2.6 Proactive Versus Reactive Forwarding

SDN architectures can differ in when forwarding state is installed. Two commonly discussed approaches are proactive and reactive programming.

Proactive Programming

Install Before Traffic Arrives

The controller calculates and installs forwarding state in advance. When packets arrive, the device already has the information required to process them.

Reactive Programming

Install in Response to an Event

A packet or another network event triggers a control-plane interaction. The controller evaluates the event and may install new forwarding state in response.

PROACTIVE REACTIVE Controller Switch Host Controller Switch Host Install Rule Rule Ready Packet Arrives Match Rule Forward No per-flow controller request required Packet Arrives Table Miss Packet-In Compute Rule Flow-Mod Rule Installed Forward* Initial packet handling depends on buffering and controller packet-out behaviour
Figure 2.4 — Proactive and reactive forwarding sequences. The reactive example illustrates OpenFlow-style Packet-In and Flow-Mod behaviour. A table miss does not automatically generate a controller request unless the relevant processing behaviour is configured.

Proactive programming reduces the dependency on controller interaction during initial packet processing. However, installing forwarding entries in advance consumes resources and requires appropriate prediction or aggregation of network requirements.

Reactive programming can install more specific forwarding state when required. However, it introduces additional control communication, processing latency and potential controller scaling challenges.

Engineering Property Proactive Reactive
Installation timing Before matching traffic arrives Following a triggering event
Initial packet latency No reactive setup delay May include controller processing delay
Table utilisation Preinstalled state consumes resources State may be installed on demand
Controller workload Policy and topology-driven updates Potentially frequent event processing
Controller outage Existing entries may remain usable New controller-dependent flows may fail
Typical application Predictable routing and infrastructure policy Dynamic flow-specific processing

Production systems frequently combine proactive and reactive techniques. Fundamental reachability and security policies may be installed proactively, while selected exceptional events are handled through control-plane interaction.

2.7 How Controllers Communicate with Network Devices

The separation of control and forwarding requires communication mechanisms between external control systems and the devices responsible for implementing network behaviour.

These mechanisms are commonly described as southbound interfaces. However, they do not all provide the same capabilities. Some directly manipulate forwarding state, while others configure routing policies, exchange topology information or expose operational telemetry.

Interface Primary Responsibility Engineering Role
OpenFlow Flow-table and switch control Match-action programming and switch events
P4Runtime Runtime control of supported P4 data planes Programming table entries and other runtime entities
PCEP Communication between PCE and PCC Path computation and supported policy control
NETCONF Model-driven configuration management Configuration retrieval and modification
gNMI Model-driven management and telemetry Configuration, state retrieval and subscriptions
BGP-LS Topology and link-state information distribution Exporting network topology to external systems

BGP-LS is particularly important to distinguish from direct forwarding-programming mechanisms. It distributes topology and traffic engineering information, but does not itself install arbitrary forwarding rules in network devices.

Similarly, P4 defines a programmable packet processing model, while P4Runtime provides mechanisms for controlling supported runtime entities within that model.

Engineering Principle — Interfaces Have Different Responsibilities

A production SDN controller may use one interface to discover topology, another to collect telemetry and another to install network policies. No single southbound protocol is required to perform every control-plane function.

2.8 From Controller Intent to Installed Forwarding State

A controller policy is not automatically equivalent to executable forwarding state. The control system must translate abstract requirements into operations supported by the target infrastructure.

Consider a policy requiring selected application traffic to traverse a specific network path while maintaining tenant isolation.

01

Policy Interpretation

Identify the traffic class, destination, isolation requirements and mandatory path constraints expressed by the policy.

02

Capability Discovery

Determine which forwarding mechanisms, encapsulations, table structures and policy features are supported by the relevant network devices.

03

Forwarding Compilation

Translate the selected network behaviour into device-specific forwarding entries, tunnel policies, segment lists or configuration operations.

04

Installation and Ordering

Apply forwarding changes in an order appropriate to the architecture, reducing the risk of temporary loops, blackholes and inconsistent policy enforcement.

05

State Confirmation

Retrieve operational information and installation results to determine whether the expected forwarding state exists on the target devices.

06

Data-Plane Verification

Use counters, active probes, packet observations and other available evidence to verify actual forwarding behaviour.

CONCEPTUAL POLICY COMPILATION
DESIRED POLICY

Traffic class: INTERACTIVE
Tenant: BLUE
Destination: 10.20.0.0/16
Required path: R1-R3-R4-R5

COMPILED FORWARDING STATE

R1:
  Match tenant BLUE
  Match destination 10.20.0.0/16
  Apply engineered path policy

R3:
  Forward according to installed path state

R4:
  Forward towards destination egress

R5:
  Apply required tenant forwarding context

VERIFICATION

Policy calculation: SUCCESS
Device installation: CONFIRMED
Tenant isolation: VERIFIED
Data-plane reachability: VERIFIED

The example represents logical forwarding responsibilities. An actual Segment Routing implementation may require policy-specific state primarily at the ingress, with transit nodes using existing segment forwarding state.

2.9 What Happens When the SDN Controller Fails?

One of the most important architectural questions in SDN is whether packet forwarding continues when an external controller becomes unavailable.

The answer depends on the network architecture, the installed forwarding state, device failure behaviour, rule expiration settings and the availability of local control mechanisms.

CONTROL-PLANE CONNECTIVITY FAILURE SDN CONTROLLER CONTROL CONNECTION UNAVAILABLE New controller-dependent updates interrupted R1 R2 R3 R4 FIB ACTIVE FIB ACTIVE FIB ACTIVE FIB ACTIVE EXISTING FORWARDING MAY CONTINUE
Figure 2.5 — Illustrative controller connectivity failure. Existing forwarding entries remain operational in this example. Actual behaviour depends on device configuration, rule lifetime, topology stability and local protection mechanisms.
FORWARDING AVAILABLE

Existing Installed Flows

Packets matching valid forwarding entries may continue to be processed without external controller interaction, provided that the underlying path remains operational.

CONTROL UNAVAILABLE

New Reactive Flows

Traffic requiring a new controller decision may fail, be dropped or follow configured fallback behaviour when the controller cannot be reached.

CONDITIONAL

Rule Expiration

Forwarding entries with idle or hard timeouts may expire during a controller outage. Traffic previously supported by those entries may subsequently lose connectivity.

CONDITIONAL

Topology Changes

Existing forwarding state may become invalid following a link or device failure. Local routing, fast reroute or protection mechanisms may restore forwarding without controller intervention.

Controller unavailability is therefore not necessarily equivalent to immediate network unavailability.

However, continued forwarding during an outage does not mean that the network can adapt indefinitely. Existing state may become stale, rules may expire, new endpoints may appear and application requirements may change.

Production Engineering Warning

Controller failure behaviour must be explicitly designed and tested. Engineers should determine which traffic remains operational, which decisions require controller availability, how forwarding entries expire and how the network reconciles state when control connectivity is restored.

2.10 Fail-Secure and Standalone Forwarding Behaviour

Some programmable switching architectures provide configurable behaviour for loss of controller connectivity.

In OpenFlow terminology, fail-secure operation generally preserves OpenFlow processing using existing flow entries while controller communication is unavailable. Configured flow expiration behaviour continues to apply.

Standalone operation, where supported, can allow a switch to revert to conventional switching or routing behaviour when controller connectivity is lost.

Fail-Secure

Preserve Programmed Behaviour

Existing forwarding rules continue to govern packet processing. New traffic requiring unavailable controller decisions may not receive the necessary forwarding state.

Standalone

Local Forwarding Fallback

Supported devices may revert to conventional local switching or routing behaviour. The security and segmentation consequences of this fallback must be evaluated carefully.

These behaviours are implementation-specific and should not be assumed to exist across all SDN architectures.

A fallback mechanism that restores connectivity but bypasses mandatory security policy may be unacceptable in a production environment. Availability and policy correctness must be evaluated together.

2.11 Troubleshooting Control-Plane and Data-Plane Inconsistencies

Separating control from forwarding introduces the possibility that the controller, device control plane and actual forwarding subsystem contain different representations of network state.

Consider a controller that has successfully calculated a forwarding policy for destination 10.20.0.0/16. The policy appears valid in the controller database, but packets are not reaching the destination.

ILLUSTRATIVE ENGINEERING INCIDENT
CONTROLLER STATE

Policy: TE-APPLICATION-01
Destination: 10.20.0.0/16
Computed path: R1-R3-R4-R5
Calculation status: SUCCESS

DEVICE CONTROL STATE

R1 policy: ACCEPTED
R3 policy: ACCEPTED
R4 policy: ACCEPTED
R5 policy: ACCEPTED

FORWARDING SUBSYSTEM

R1 installation: SUCCESS
R3 installation: SUCCESS
R4 installation: FAILED
R5 installation: SUCCESS

R4 FAILURE DETAIL

Resource: Forwarding action table
Available entries: 0
Requested entries: 1

OBSERVED DATA PLANE

R1 packets transmitted: 1000
R3 packets transmitted: 1000
R4 packets received: 1000
R4 matching policy packets forwarded: 0

ROOT CAUSE

Calculated policy could not be fully
installed into the forwarding subsystem.

This illustrative incident demonstrates why successful policy calculation and configuration acceptance are insufficient evidence of successful packet forwarding.

The control system must obtain evidence that the forwarding state has actually been installed and that the resulting network behaviour satisfies the intended policy.

Investigation Layer Evidence to Examine
Controller Desired policy, computed path, topology version and installation results
Control channel Session availability, request errors, acknowledgements and timeouts
Device control plane Routing state, policy acceptance, next-hop resolution and operational status
Forwarding subsystem Installed FIB, flow entries, hardware resource usage and programming errors
Data plane Packet counters, drops, interface statistics, active probes and packet captures
Reconciliation Differences between intended, installed and observed network state

Engineering Troubleshooting Methodology

Follow the complete decision chain: application intent, controller computation, device acceptance, forwarding installation and actual packet delivery. Identify the first point where expected state diverges from observed state.

2.12 Designing Resilient Control and Forwarding Architectures

Reliable SDN architectures require more than redundant controllers. Engineers must design the complete interaction between control systems and forwarding infrastructure.

Design Principle 01

Preserve Local Autonomy

Keep appropriate forwarding and fast failure-protection mechanisms within network devices where immediate controller interaction is unnecessary or operationally unsuitable.

Design Principle 02

Protect Control Connectivity

Provide resilient controller-to-device communication, appropriate authentication, encryption and connectivity monitoring. Evaluate in-band and out-of-band control architectures.

Design Principle 03

Engineer Safe Updates

Coordinate forwarding changes to minimise inconsistent intermediate states. Use supported transactional mechanisms, staged installation or versioned updates where appropriate.

Design Principle 04

Respect Forwarding Resources

Monitor hardware and software table capacity, action resources, counters and next-hop objects. Reject or adapt policies that exceed supported forwarding capabilities.

Design Principle 05

Verify Actual Behaviour

Combine installation confirmation with operational telemetry, active measurements and data-plane evidence. Configuration success alone does not establish forwarding correctness.

Design Principle 06

Reconcile After Failure

When controller connectivity returns, compare intended policy with existing device state before applying changes. Account for updates that occurred during the outage.

Section 02 — Key Engineering Takeaway

The SDN control plane calculates and coordinates network behaviour, while the data plane executes installed forwarding state. These responsibilities are related but operationally distinct. A correctly calculated policy may fail during installation, and existing packet forwarding may continue during a controller outage. Production SDN engineering requires understanding and verifying every stage between control decisions and actual packet delivery.

Looking Ahead: Inside the SDN Controller

Having examined the relationship between control intelligence and forwarding execution, the next section moves inside the SDN controller itself.

We will investigate topology discovery, network graph construction, traffic engineering databases, northbound and southbound interfaces, controller clustering, distributed state management, device ownership and controller reconciliation.

Network Insight · Interactive Engineering 02

Two Planes. One Network.

The control plane decides how traffic should be forwarded. The data plane executes those decisions at packet-processing speed. Investigate how these layers communicate, how forwarding state is installed and what happens when the controller becomes unavailable.
Control plane ONLINE
Data plane ONLINE
Forwarding mode Reactive
Installed flows 0

SDN Architecture — Live Operational View

SYSTEM READY
APPLICATION PLANE NETWORK APPLICATION Intent · Policy · Automation NORTHBOUND API CONTROL PLANE SDN CONTROLLER NETWORK STATE POLICY ENGINE FLOW MANAGER SOUTHBOUND / OPENFLOW DATA PLANE CLIENT SDN SWITCH FLOW TABLE: 0 APPLICATION PACKET NETWORK INSIGHT / SDN CONTROL ARCHITECTURE
Application intent Control messages Data forwarding Failure

Engineering Controls

Disconnecting the controller leaves the switch operational. Existing forwarding entries remain installed until explicitly removed or expired.
LIVE PACKET LIFECYCLE
Awaiting application traffic
Send a packet to observe whether the switch already has a matching forwarding entry or requires assistance from the controller.
01
Ingress
02
Lookup
03
Controller
04
Install
05
Forward
Data plane state

Switch Match-Action Table

Priority Match Action Hits State
This simplified table uses protocol and destination port as its match fields. Production OpenFlow tables can match many additional packet-header and metadata fields.
Operational telemetry

Control vs Data Plane Counters

Packets delivered 0
Packets dropped 0
Packet-In messages 0
Flow-Mod messages 0
Flow table hits 0
Flow table misses 0
Packet-Out messages 0
Controller outages 0

Engineering Event Console

EXPERIMENT 01

The First Packet

Select reactive mode and send an HTTPS packet. Observe the table miss, Packet-In, controller decision, Flow-Mod and Packet-Out sequence. Send the same traffic again and compare the number of control messages.
EXPERIMENT 02

Controller Failure

Establish an HTTPS forwarding entry. Disconnect the controller and send HTTPS again. Then select DNS traffic and send another packet. Explain why one traffic flow succeeds while the other fails.
EXPERIMENT 03

Proactive Forwarding

Restore the controller and select proactive mode. Forwarding entries are installed before traffic arrives. Disconnect the controller and test different applications without requiring reactive flow installation.
Engineering principle: Control-plane failure does not necessarily mean immediate data-plane failure. A switch can continue forwarding traffic using previously installed entries, provided its forwarding hardware remains operational and those entries remain valid. New traffic requiring controller intervention may fail. Actual behaviour depends on switch configuration, flow lifetimes, controller redundancy and the underlying forwarding architecture. This lab models an OpenFlow-style switch with fail-secure behaviour and no autonomous fallback routing.
03
Network Insight · SDN Routing Engineering
DISTRIBUTED CONTROLLER ARCHITECTURE

SDN Controller Architecture

An SDN controller is considerably more than a centralised routing algorithm. It is a software control system responsible for discovering infrastructure, maintaining network state, interpreting policies, computing network behaviour and coordinating the installation of forwarding decisions across distributed infrastructure.

Topology Discovery Network Graph Traffic Engineering Database Controller Clustering State Consistency Reconciliation

3.1 The Controller as a Network Operating System

An SDN controller provides an abstraction between network applications and the infrastructure responsible for implementing network behaviour.

Rather than requiring every application to understand the configuration syntax, forwarding capabilities and operational state of every individual network device, a controller can expose a coordinated representation of the network.

This abstraction is sometimes described as a network operating system. The analogy reflects the controller's role in managing shared infrastructure resources and exposing services to higher-level applications.

However, not every controller implements a complete network operating system. Some controllers specialise in traffic engineering, overlay connectivity, network automation, security policy or a particular administrative domain.

Network Abstraction

Represent the Infrastructure

Maintain logical representations of devices, interfaces, links, endpoints, reachability and available network capabilities.

Application Services

Expose Programmable Control

Provide interfaces through which applications can request connectivity, traffic steering, isolation or other supported network services.

Decision Engine

Calculate Network Behaviour

Evaluate topology, policy, constraints and operational state to determine appropriate forwarding or configuration changes.

State Management

Maintain Operational Correctness

Track desired and observed state, coordinate updates and reconcile differences between controller decisions and actual infrastructure.

3.2 Inside an SDN Controller

Although implementations differ, a production SDN controller can be understood as a collection of cooperating software services. These services collectively implement the controller's discovery, computation, programming and verification responsibilities.

SDN CONTROLLER SOFTWARE ARCHITECTURE NETWORK APPLICATIONS Traffic Engineering Security Policy Automation Orchestration NORTHBOUND INTERFACES REST · gRPC · Intent APIs · Events CONTROLLER CORE SERVICES Topology Manager Policy Engine Path Computation Device Manager State Compiler Reconciliation Engine Nodes · Links · Endpoints Intent · Constraints Graph Algorithms Sessions · Capabilities Device-Specific Operations Desired vs Observed SHARED NETWORK STATE AND DATA SERVICES Topology Graph · TED · Policy Store · Operational State · Event Bus SOUTHBOUND AND NETWORK STATE INTERFACES OpenFlow · P4Runtime · PCEP · NETCONF · gNMI · BGP-LS Physical Routers Switches Virtual Switches Network Edges
Figure 3.1 — Conceptual SDN controller software architecture. Individual controller products may combine, distribute or omit particular services. Network state interfaces can also carry information from infrastructure towards the controller.
Controller Component Primary Responsibility
Topology Manager Maintains network nodes, links, interfaces and relevant topology relationships.
Device Manager Tracks device identities, control sessions, capabilities and operational status.
Policy Engine Interprets network requirements, validates constraints and resolves supported policy interactions.
Path Computation Engine Calculates eligible network paths using topology, metrics and traffic engineering constraints.
State Compiler Translates abstract network decisions into supported device operations.
State Store Maintains desired state, operational information and controller coordination data.
Event Processing Distributes topology changes, device notifications and operational events.
Reconciliation Engine Detects and addresses differences between intended and observed infrastructure state.

3.3 Northbound Interfaces and Network Intent

Northbound interfaces expose controller capabilities to applications, automation systems and higher-level orchestration platforms.

An application may request connectivity between two locations without explicitly specifying every intermediate forwarding device. Alternatively, it may request a particular path, bandwidth reservation or security constraint.

The degree of abstraction depends on the controller's API design. Some APIs expose relatively low-level network operations, while others provide declarative service or intent models.

CONCEPTUAL NORTHBOUND INTENT REQUEST
{
  "service": "AI-REPLICATION",
  "source": "DC-WEST",
  "destination": "DC-EAST",
  "constraints": {
    "minimum_bandwidth_gbps": 40,
    "maximum_latency_ms": 15,
    "excluded_domains": ["UNTRUSTED"]
  },
  "objective": "minimise_latency",
  "protection": {
    "required": true,
    "disjointness": "link"
  }
}

This is an illustrative intent model, not a standardised controller API.

The controller must determine whether the request is authorised, internally consistent and technically feasible. If no eligible path satisfies the mandatory constraints, the correct outcome may be to reject the request rather than silently install a non-compliant path.

Intent Is Not the Same as Configuration

Intent describes a required network outcome. Configuration describes operations or state used to implement that outcome. A controller must translate between these representations and verify that the resulting behaviour satisfies the original requirement.

3.4 How an SDN Controller Discovers Network Topology

Before a controller can calculate network paths, it must obtain an appropriate representation of the infrastructure.

Topology discovery identifies network devices, interfaces and relationships between those devices. Depending on the architecture, the controller may discover topology directly, receive information from routing protocols or retrieve infrastructure state through management interfaces.

Discovery Method 01

LLDP-Based Discovery

Link Layer Discovery Protocol advertisements identify directly connected neighbours. An SDN controller may collect LLDP information or coordinate discovery through supported switch interfaces.

Discovery Method 02

BGP Link-State

BGP-LS distributes topology and traffic engineering information to external consumers, enabling controllers to construct network representations without participating directly in every IGP flooding domain.

Discovery Method 03

Model-Driven Operational State

NETCONF, gNMI and related interfaces can expose interface information, operational status, neighbour data and supported device capabilities.

Discovery Method 04

Infrastructure APIs

Cloud, virtualisation and container platforms expose logical resources such as virtual networks, endpoints, tunnels and workload identities through platform-specific APIs.

CONTROLLER-ASSISTED LLDP DISCOVERY TOPOLOGY MANAGER Correlate Chassis and Port Identifiers Discover SW1:3 → SW2:7 1. Packet-Out 3. Packet-In SW1 SW2 Chassis ID: SW1 Chassis ID: SW2 P3 P7 LLDP FRAME SW1 · Port 3 2. Link-Local Advertisement Reverse-direction discovery can confirm the opposite adjacency Controller updates its logical topology graph
Figure 3.2 — An illustrative OpenFlow-style LLDP discovery process. The controller requests transmission of an LLDP frame, receives information from the neighbouring switch and correlates the relevant device and port identifiers.

LLDP-based discovery is particularly useful for identifying directly connected Layer 2 relationships. However, LLDP alone does not provide a complete representation of IP reachability, traffic engineering constraints or logical overlay relationships.

Controllers may therefore combine multiple discovery sources to construct a more complete network model.

3.5 Constructing the Network Graph

A topology database becomes especially useful when represented as a graph. Graph-based representations allow path computation algorithms to evaluate connectivity, costs and constraints across the infrastructure.

A graph consists of vertices and edges. In a network representation, vertices may represent routers, switches, tunnel endpoints or other logical network resources. Edges represent connectivity relationships between those vertices.

Edges can carry attributes such as routing cost, available bandwidth, measured latency, administrative restrictions and operational status.

CONTROLLER NETWORK GRAPH Cost 10 · 8 ms 100 Gbps Cost 10 · 12 ms 100 Gbps Cost 15 · 3 ms 100 Gbps Cost 5 · 2 ms 100 Gbps Cost 15 · 4 ms 100 Gbps Cost 20 · 6 ms 40 Gbps R1 R2 R3 R4 R5 LOWEST LATENCY PATH: R1 → R3 → R4 → R5 Total latency: 9 ms · Total IGP cost: 35
Figure 3.3 — A conceptual weighted network graph. The cyan path has a higher IGP cost but lower aggregate latency than the upper path. Link bandwidth values represent illustrative interface capacities, not available reservable bandwidth.
5 Network Vertices
6 Physical Links
9 ms Lowest Path Latency

In production, the graph may be directed rather than undirected. A link can have different metrics, available bandwidth or operational characteristics in opposite directions.

Multiple physical or logical links may also connect the same pair of devices. The graph representation must preserve these distinctions when they are relevant to path computation.

CONCEPTUAL DIRECTED GRAPH EDGE
{
  "edge_id": "R1:eth2-R3:eth1",
  "source": "R1",
  "destination": "R3",
  "igp_metric": 15,
  "latency_ms": 3,
  "capacity_gbps": 100,
  "available_bandwidth_gbps": 65,
  "administrative_group": "TRUSTED",
  "srlg": [104],
  "operational_state": "UP",
  "topology_version": 208
}

Shared Risk Link Groups, or SRLGs, identify links that may share a common failure dependency, such as a fibre conduit or physical transport resource.

Two paths that appear independent in a logical graph may therefore share an underlying physical risk. A controller calculating protected paths must consider such information when it is available and relevant.

3.6 The Traffic Engineering Database

A Traffic Engineering Database, commonly abbreviated to TED, maintains topology and resource information used for engineered path computation.

While a conventional link-state database provides information used by routing protocols, a TED can incorporate additional attributes relevant to traffic engineering.

These attributes may be obtained from routing protocol extensions, BGP-LS, telemetry systems, inventory platforms or other operational data sources.

TED Attribute Engineering Significance
IGP Metric Conventional shortest-path cost associated with a link.
TE Metric Alternative link cost used for traffic engineering objectives.
Maximum Bandwidth Reported maximum link bandwidth.
Reservable Bandwidth Bandwidth available for reservation according to the applicable TE model.
Unreserved Bandwidth Remaining reservable bandwidth, potentially represented by priority.
Measured Utilisation Observed traffic load, which is distinct from reservation state.
Link Delay Latency information used for delay-aware path computation.
Administrative Groups Link classifications used for inclusion and exclusion constraints.
SRLG Shared physical or logical failure dependencies.
Segment Identifiers Information relevant to supported Segment Routing path construction.

Bandwidth Measurements and Reservations Are Different

A link carrying relatively little traffic may already have substantial bandwidth reservations. Conversely, a heavily utilised link may have few formal reservations. Controllers must distinguish measured utilisation, physical capacity and reservation state rather than treating them as interchangeable quantities.

3.7 The Path Computation Engine

The path computation engine evaluates network topology against the requirements of a particular connectivity or traffic engineering request.

A simple request may require the lowest-cost path between two nodes. More advanced requests may require minimum bandwidth, maximum latency, administrative restrictions or protection against selected failure scenarios.

Algorithm 01

Shortest Path First

Calculates a minimum-cost path through a graph using a defined additive metric. Dijkstra's algorithm is commonly used when edge weights are non-negative.

Algorithm 02

Constraint-Based Path Computation

Evaluates eligible paths against additional constraints. Some constraints can be applied by pruning unsuitable links before running a shortest-path calculation.

Algorithm 03

Disjoint Path Computation

Attempts to calculate primary and protection paths with specified link, node or shared-risk separation, subject to network topology and resource availability.

Algorithm 04

Network-Wide Optimisation

Evaluates multiple traffic demands together to improve network-wide objectives such as maximum link utilisation or resource allocation.

Not all constrained path problems can be solved optimally using a simple shortest-path algorithm. Multiple additive constraints, competing traffic demands and protection requirements can significantly increase computational complexity.

Production controllers may therefore use heuristics, optimisation solvers, candidate path sets or bounded computation strategies.

Path Computation Is a Resource Allocation Problem

Selecting an attractive path for one application can reduce the resources available to another. A network-wide controller must consider the consequences of individual routing decisions on shared infrastructure.

3.8 Controller Clustering and Distributed State

A logically centralised controller does not necessarily operate as a single physical software instance.

Production architectures frequently distribute controller responsibilities across multiple processes or servers to improve availability, distribute workloads and reduce dependence on individual infrastructure components.

However, introducing multiple controller instances creates a distributed systems problem. The instances must coordinate selected state and control responsibilities without introducing conflicting network decisions.

DISTRIBUTED SDN CONTROLLER CLUSTER LOGICALLY COORDINATED CONTROL SYSTEM CONTROLLER A CONTROLLER B CONTROLLER C Consensus Leader Consensus Follower Consensus Follower Device Owner: R1 Device Owner: R2 Device Owner: R3 REPLICATED COORDINATION STATE Committed Log · Ownership · Policy Versions R1 R2 R3 Owner A Owner B Owner C Consensus leadership and device ownership are separate responsibilities
Figure 3.4 — Conceptual three-node controller cluster. A consensus leader coordinates selected replicated state, while device ownership is distributed independently across controller instances. The shared state layer is a logical abstraction, not necessarily a single physical database.

A controller cluster may use distributed consensus for selected coordination information. Other state, such as high-frequency telemetry, may use different replication or consistency mechanisms.

It is generally unnecessary and potentially inefficient to place every network measurement and operational event into a strongly consistent consensus log.

3.9 Consensus, Leader Election and Quorum

Distributed consensus algorithms allow a group of participating processes to agree on selected state transitions despite certain types of component failure.

Raft is one example of a consensus algorithm that uses leader election and replicated logs. Controller implementations may use Raft, other consensus mechanisms or external coordination services.

In a conventional majority-based consensus group, a majority of voting members is required to commit new log entries under the applicable protocol rules.

3 Voting Members
2 Majority Quorum
1 Crash Failure Tolerance
Voting Members Majority Crash Failures Tolerated*
1 1 0
2 2 0
3 2 1
4 3 1
5 3 2
7 4 3

*For a fixed-membership, majority-based crash-fault consensus group, assuming the remaining majority can communicate and the protocol's other progress requirements are satisfied.

A three-member cluster can therefore generally continue committing coordinated state after the failure of one member. If two members become unavailable, the remaining member cannot form a majority by itself.

Loss of quorum does not necessarily mean that every controller function stops. Read operations, local services and previously installed network forwarding may remain available, depending on the architecture.

Controller Availability Is Not Forwarding Availability

A controller cluster may lose the ability to commit new coordinated decisions while the underlying network continues forwarding packets. Consensus availability and data-plane availability must be evaluated separately.

3.10 Network Partitions and Split-Brain Prevention

A network partition occurs when groups of distributed processes remain operational but lose the ability to communicate with one another.

In a controller cluster, a partition can create conflicting views of network state and device ownership unless the system provides appropriate coordination and fencing mechanisms.

CONTROLLER CLUSTER NETWORK PARTITION MAJORITY PARTITION MINORITY CONTROLLER A CONTROLLER B CONTROLLER C Leader Follower Isolated State: Available State: Available State: Potentially stale 2 / 3 VOTES Majority can commit coordinated state 1 / 3 VOTES Cannot commit new majority-backed state
Figure 3.5 — Illustrative partition of a three-member majority-based controller coordination group. The two-member partition retains quorum. The isolated member cannot independently commit new consensus-backed state.

Consensus protects the consistency of state governed by the consensus protocol. However, it does not automatically prevent an isolated controller from attempting to communicate with network devices.

Device-facing control operations require additional mechanisms to prevent stale or unauthorised controller instances from modifying infrastructure after losing ownership.

Depending on the architecture, these mechanisms may include generation identifiers, fencing tokens, device controller roles, ownership epochs or carefully designed lease mechanisms.

Consensus Alone Does Not Prevent Every Split-Brain Failure

A controller that has lost coordination authority may still possess a working connection to a network device. Device-facing write authority must be fenced or otherwise controlled so that stale controller instances cannot overwrite decisions made by the current authorised owner.

3.11 Device Ownership and Controller Mastership

In a distributed controller architecture, multiple controller instances may maintain connections to the same network infrastructure.

Without appropriate coordination, two controller instances could attempt to install conflicting forwarding policies on the same device.

Device ownership or mastership mechanisms establish which controller instance is authorised to perform particular control operations.

CONCEPTUAL DEVICE OWNERSHIP RECORD
DEVICE: R7

Current owner: CONTROLLER-B
Ownership epoch: 42
Control session: ESTABLISHED
Write authority: ACTIVE

Previous owner: CONTROLLER-A
Previous epoch: 41
Write authority: REVOKED

Policy generation: 108
Observed generation: 108

Ownership state: CONSISTENT

If Controller B fails, another controller instance may acquire ownership through the applicable coordination mechanism.

The replacement controller must establish valid write authority, retrieve relevant operational state and determine whether existing forwarding policies require changes.

It should not automatically assume that the device contains exactly the state recorded in the controller's database.

Ownership Principle

One Authorised Writer

Where the architecture requires exclusive control, ensure that only the current authorised owner can modify the relevant device resources.

Recovery Principle

Read Before Reprogramming

Compare the existing device state with the desired controller state before applying recovery operations that could disrupt active traffic.

3.12 Strong Consistency and Eventually Consistent State

Not all information maintained by an SDN controller requires the same consistency guarantees.

Device ownership and critical policy coordination may require stronger guarantees than rapidly changing interface counters or sampled utilisation measurements.

Stronger consistency can improve coordination correctness but may introduce communication overhead, additional latency and reduced availability during partitions.

State Category Possible Consistency Requirement Reason
Device Ownership Strongly coordinated Prevent conflicting control authority.
Policy Versions Strong or transactional coordination Maintain consistent policy transitions.
Resource Reservations Coordinated allocation Prevent conflicting or excessive reservations.
Topology Information Versioned or bounded-staleness models Support correct computation and detect stale decisions.
Interface Counters Eventually consistent or sampled High update rates and tolerance of delayed observations.
Historical Telemetry Asynchronous storage Efficient analytics and historical investigation.

These are illustrative architectural choices rather than universal requirements. Appropriate consistency guarantees depend on how each category of information is used and the consequences of stale or conflicting observations.

Distributed Systems Engineering Principle

Apply strong coordination where correctness requires it. Avoid imposing unnecessary consensus overhead on information that can safely tolerate asynchronous replication or bounded staleness.

3.13 Event-Driven Controller Architecture

Network infrastructure changes continuously. Links fail and recover, interfaces change operational state, traffic utilisation varies and applications request new services.

Controllers frequently use event-driven software architectures to process these changes.

A topology event may trigger an update to the network graph. That update may invalidate existing computed paths, which in turn may trigger policy recomputation and forwarding-state changes.

01

Receive Infrastructure Event

Obtain a link-state notification, routing update, telemetry event or device operational-state change.

02

Validate and Correlate

Associate the event with the correct infrastructure resource, validate its relevance and handle duplicate or stale events.

03

Update Network State

Modify the relevant topology, operational-state or resource representation and update applicable version information.

04

Identify Affected Policies

Determine which services, paths or forwarding policies depend on the changed resource.

05

Recompute and Validate

Calculate alternative behaviour and confirm that the resulting decisions remain compatible with current topology and policy.

06

Install and Verify

Coordinate the required device operations and verify that actual forwarding behaviour satisfies the intended outcome.

CONTROLLER EVENT STREAM · ILLUSTRATIVE
LINK_DOWN R3:eth2 → R4:eth1
TOPOLOGY Graph version updated: 208 → 209
IMPACT Policy AI-REPLICATION requires validation
COMPUTE Alternative path calculated
VALIDATE Mandatory policy constraints satisfied
INSTALL Replacement forwarding policy submitted
CONFIRM Device installation confirmed
VERIFY Active reachability probe successful

Event timings are illustrative. Actual controller response times depend on failure detection, topology propagation, computation, device programming and verification mechanisms. They are not a convergence performance guarantee.

3.14 Controller Reconciliation and Desired State

A controller must continuously evaluate whether infrastructure state corresponds to the intended network behaviour.

This is particularly important after device restarts, controller failures, partial configuration changes or manual modifications to managed infrastructure.

Reconciliation compares desired state with observed state and determines whether corrective operations are necessary.

CLOSED-LOOP CONTROLLER RECONCILIATION DESIRED STATE Policy · Intent · Configuration COMPARE STATE Detect Relevant Differences APPLY CORRECTION Validated Device Operations OBSERVED STATE Device State · Telemetry RECONCILIATION Continuous Verification Corrections are applied only when required and authorised
Figure 3.6 — Conceptual closed-loop reconciliation architecture. Desired and observed state are compared, corrective operations are validated and subsequent observations determine whether the discrepancy has been resolved.
CONCEPTUAL RECONCILIATION REPORT
RESOURCE: R5 / POLICY-204

DESIRED STATE
  Policy generation: 18
  Next-hop group: NHG-42
  Operational requirement: ACTIVE

OBSERVED STATE
  Policy generation: 17
  Next-hop group: NHG-31
  Operational status: ACTIVE

DETECTED DIFFERENCE
  Installed policy generation is outdated.

VALIDATION
  Current controller ownership: CONFIRMED
  Topology version: CURRENT
  Forwarding resources: AVAILABLE

RECONCILIATION ACTION
  Install policy generation 18.
  Verify next-hop group NHG-42.
  Confirm actual packet forwarding.

RESULT
  Desired generation: 18
  Observed generation: 18
  State: RECONCILED

Reconciliation operations should ideally be idempotent where the underlying interfaces permit it. Repeating an operation after a timeout or controller restart should not unintentionally create duplicate resources or conflicting forwarding behaviour.

Controllers must also distinguish between resources they own and resources managed by other systems. Automatically correcting every observed difference can cause conflicts with independent control systems.

3.15 Preventing Controller Instability and Routing Oscillation

A controller that responds immediately to every telemetry fluctuation can introduce unnecessary forwarding changes.

For example, moving traffic away from a congested path may reduce its utilisation while increasing utilisation on an alternative path. A controller that reacts without appropriate safeguards may repeatedly move traffic between those paths.

This creates a feedback loop in which the controller's own actions influence the measurements used to make subsequent decisions.

Stability Mechanism 01

Hysteresis

Use different thresholds for activating and reversing selected optimisation decisions to reduce repeated changes near a single threshold.

Stability Mechanism 02

Hold-Down Intervals

Introduce suitable waiting periods between non-critical optimisation changes while preserving appropriate emergency failure-recovery behaviour.

Stability Mechanism 03

Event Coalescing

Combine related infrastructure events where appropriate to avoid redundant computation during bursts of topology or telemetry updates.

Stability Mechanism 04

Change Impact Evaluation

Estimate how moving traffic will affect both the original and alternative paths before committing optimisation changes.

Optimisation Must Not Undermine Stability

A controller that continually changes forwarding decisions may produce worse application performance than a less aggressive but stable control strategy. Optimisation frequency, measurement quality and the operational cost of network changes must be considered together.

3.16 Securing the SDN Controller

An SDN controller can possess significant authority over network infrastructure. A compromised controller or unauthorised application may therefore affect connectivity, traffic isolation and forwarding policy across multiple devices.

Controller security must protect both the software platform and the interfaces through which control decisions are requested and implemented.

Security Layer 01

Northbound Authorisation

Authenticate applications and enforce appropriately scoped permissions for requesting network services, modifying policy and retrieving state.

Security Layer 02

Southbound Trust

Authenticate controller and device identities using supported security mechanisms. Protect control communication against unauthorised modification.

Security Layer 03

Policy Validation

Validate requested network changes against mandatory security constraints, tenant boundaries and administrative authority.

Security Layer 04

Audit and Accountability

Record policy requests, authorisation decisions, ownership changes and device programming operations for operational investigation.

Discovery and telemetry information must also be treated as potentially unreliable until appropriately validated. Incorrect topology information can influence path computation even when the forwarding-programming interface itself remains secure.

3.17 Production Incident: Controller Failover and Stale Ownership

Consider a distributed SDN controller cluster managing a production traffic engineering domain.

Controller A initially owns Router R7. A connectivity failure isolates Controller A from the other controller instances, but its device-facing connection remains operational.

The remaining controller instances retain quorum and assign ownership of R7 to Controller B.

CONTROLLER FAILOVER INVESTIGATION
PARTITION Controller A loses cluster connectivity
QUORUM Controllers B and C retain majority
OWNER R7 assigned to Controller B, epoch 42
STALE Controller A attempts update using epoch 41
REJECTED Stale write authority rejected by fencing mechanism
DISCOVER Controller B retrieves installed R7 state
RECONCILE Desired and observed policy generations match
VERIFIED Existing forwarding remains operational

In this illustrative incident, the controller architecture successfully prevents the previous owner from overwriting the current network policy.

The replacement controller also avoids unnecessarily reinstalling forwarding state because its reconciliation process confirms that the existing policy remains valid.

Without appropriate fencing, Controller A might continue issuing operations based on stale state. Without reconciliation, Controller B might unnecessarily modify forwarding entries that are already correct.

Engineering Investigation Outcome

Successful controller failover requires more than electing a replacement leader. It requires valid device ownership, protection against stale writers, accurate operational-state discovery and safe reconciliation of existing forwarding behaviour.

3.18 Controller Architecture in Real-World Networks

Different production environments use controller architectures tailored to their particular networking requirements.

Environment Controller Responsibilities
Service Provider WAN Traffic engineering, topology collection, engineered paths and service optimisation.
Enterprise SD-WAN Overlay connectivity, application-aware policy, segmentation and centralised management.
Data Centre Fabric Fabric automation, endpoint policy, virtual network connectivity and operational visibility.
Cloud Networking Virtual network lifecycle, distributed forwarding policy and infrastructure resource coordination.
Kubernetes Networking Workload connectivity, endpoint discovery and network policy reconciliation.
AI Infrastructure Fabric management, topology visibility and supported traffic or congestion optimisation.

The specific division of responsibility varies considerably across these environments. Some rely heavily on distributed routing protocols, while others implement substantial forwarding functionality through software agents or programmable network devices.

In AI infrastructure, for example, congestion control and rapid forwarding decisions may remain within network devices and transport mechanisms, while central software systems provide fabric management and broader operational coordination.

Section 03 — Key Engineering Takeaway

An SDN controller is a distributed software control system that converts network observations and application requirements into coordinated infrastructure behaviour. Its effectiveness depends on accurate topology, appropriate path computation, resilient state management, secure device ownership and continuous reconciliation. The controller must be engineered as both a networking system and a distributed software system.

Looking Ahead: Programmable Forwarding

Having examined how the controller discovers infrastructure, maintains network state and calculates network decisions, the next section investigates how those decisions become executable packet-processing behaviour.

We will examine OpenFlow, P4, P4Runtime, match-action tables, forwarding pipelines, rule priorities, table misses, hardware resource limitations and the relationship between programmable network control and programmable data planes.

Network Insight · Interactive Engineering 03

Inside the SDN Controller

A logically centralised control plane does not necessarily mean a single physical controller. Explore how a distributed controller cluster discovers network topology, maintains consistent state, translates application intent and continues operating through infrastructure failures.
Cluster leader C1
Online controllers 3 / 3
Majority quorum AVAILABLE
Committed state v1

Distributed Controller Architecture

CLUSTER HEALTHY
APPLICATION & INTENT LAYER TRAFFIC ENGINEERING SECURITY POLICY NETWORK AUTOMATION NORTHBOUND API LOGICALLY CENTRALISED CONTROLLER CLUSTER MAJORITY-COMMITTED NETWORK STATE LOGICAL CONTROLLER SERVICES SOUTHBOUND INTERFACE MANAGED NETWORK INFRASTRUCTURE CONTROL EVENT
Leader / operational state State replication Application intent Failure / isolation

Engineering Controls

This three-member cluster requires two mutually reachable controllers to commit new state. An isolated minority cannot authorise new network changes.
Controller processing pipeline
Controller cluster initialised
Submit an application intent or discover a network device to observe the internal processing and state-commit sequence.
01
Receive
02
Validate
03
Compute
04
Commit
05
Reconcile
Distributed state inspector

Controller Cluster Membership

Node Role Status State
Select a controller in the architecture to inspect its local state.
Network state database

Desired vs Installed State

Discovered devices 3
Election term 1
Desired policy None
Installed policy None
Committed operations 0
Rejected operations 0
Controller and network state are aligned.

Controller Engineering Event Console

EXPERIMENT 01

From Intent to Network State

Submit a low-latency application intent. Observe validation, policy compilation and majority commit. Compare desired and installed policy, then reconcile the network.
EXPERIMENT 02

Leader Failure

Fail controller C1. Observe the remaining controllers elect a replacement leader. Submit another intent and verify that the surviving majority can still commit state.
EXPERIMENT 03

Loss of Quorum

Fail a second controller. Attempt to discover a new device or submit a policy. Observe rejection of new writes. Recover a controller and investigate state synchronisation.
Engineering principle: Logical centralisation describes a unified network control abstraction, not necessarily a single physical server. Distributed SDN controllers may use consensus mechanisms to maintain consistent authoritative state. Losing a controller does not automatically mean losing control-plane availability. However, losing the required majority can prevent safe state-changing operations. This simulator uses a simplified majority-based consensus model inspired by distributed controller architectures. It does not implement the complete Raft protocol, real election timers, persistent logs or device-specific southbound ownership mechanisms.
04
Network Insight · SDN Routing Engineering
PROGRAMMABLE DATA PLANE ARCHITECTURE

Programmable Forwarding

An SDN controller can discover topology, calculate network paths and evaluate application policies. However, these decisions only become operational when the underlying network infrastructure implements them as executable packet-processing behaviour.

Programmable forwarding provides the mechanisms through which network control systems translate abstract decisions into actions performed on individual packets.

OpenFlow P4 P4Runtime Match-Action Tables Packet Parsing TCAM Forwarding Pipelines

4.1 From Routing Decisions to Packet Processing

Traditional IP forwarding typically involves examining a packet's destination IP address, performing a longest-prefix match and selecting an appropriate next hop.

Programmable forwarding can extend this model by allowing network devices to classify packets using multiple header fields and apply different processing actions according to the resulting classification.

Conventional Forwarding

Destination-Based Routing

Select a forwarding entry primarily through destination prefix lookup, resolve the next hop and transmit the packet through an appropriate interface.

Programmable Forwarding

Policy-Aware Packet Processing

Classify packets using supported header fields and metadata, then execute actions such as forwarding, dropping, marking, encapsulation or additional table processing.

Conventional routers already support capabilities such as access control lists, policy-based routing, QoS and tunnelling. Programmable data planes extend or expose packet processing through more flexible programming abstractions.

Two Different Forms of Programmability

Programming the contents of an existing forwarding table is different from programming the structure and behaviour of the forwarding pipeline itself. This distinction is central to understanding OpenFlow, P4 and modern SDN architectures.

4.2 The Match-Action Processing Model

Match-action processing is a fundamental abstraction used throughout programmable networking.

A packet is classified according to a set of matching criteria. When an applicable entry is found, the associated action determines how the packet or its metadata should be processed.

MATCH-ACTION PROCESSING MODEL INGRESS Packet Arrival MATCH TABLE Header Fields + Metadata Entry Selection + Priority Matching Action Parameters ACTION Execute Behaviour FORWARD DROP MODIFY METER NEXT TABLE Output Port Discard Rewrite Header Rate Policy Continue Pipeline Available matches and actions depend on the pipeline and target
Figure 4.1 — Conceptual match-action processing. A packet is classified against supported match criteria, after which the selected entry's actions determine subsequent processing.
Match Field Example Potential Use
Ingress Port Port 7 Interface-specific forwarding policy.
Destination MAC 00:11:22:33:44:55 Layer 2 switching.
VLAN ID 100 Network segmentation.
Destination IP 10.20.0.0/16 IP forwarding and traffic steering.
IP Protocol TCP Protocol classification.
Transport Port 443 Transport-level traffic policy.
DSCP 46 Traffic-class identification.
Metadata Tenant ID 42 Context-aware pipeline processing.

4.3 Packet Parsing and Header Extraction

Before a programmable forwarding pipeline can evaluate packet fields, the device must identify and extract the relevant headers.

A packet parser interprets the incoming bitstream according to supported protocol structures and determines which headers are present.

Ethernet MAC Addresses
802.1Q VLAN 100
IPv4 10.20.1.50
TCP Destination 443
Payload Application Data

In this illustrative packet, the parser identifies Ethernet, VLAN, IPv4 and TCP headers. Selected fields can then be made available to downstream match-action processing.

01

Parse Ethernet Header

Extract source and destination MAC addresses and examine the protocol type.

02

Identify VLAN Encapsulation

Extract the VLAN identifier and determine the encapsulated protocol.

03

Parse IPv4 Header

Extract IP addresses, protocol identifier and other relevant network-layer fields.

04

Parse Transport Header

Where present and supported, extract TCP or UDP fields required by subsequent tables.

05

Provide Pipeline Context

Make extracted headers, validity information and relevant metadata available to the processing pipeline.

Parsing Is Not Unlimited

Hardware parsers have constraints involving supported header depth, extraction width, parser states and protocol structures. Encrypted application payloads cannot simply be classified using arbitrary application fields without appropriate decryption or other available classification context.

4.4 OpenFlow Architecture

OpenFlow provides a standardised interface through which an external controller can manage supported forwarding resources on an OpenFlow-capable switch.

The controller can install, modify and remove flow entries, retrieve statistics and receive selected events from the switch.

OPENFLOW CONTROL AND FORWARDING SDN CONTROLLER Policy · Topology · Flow Programming FLOW_MOD PACKET_OUT PACKET_IN STATISTICS OPENFLOW SWITCH TABLE 0 TABLE 1 TABLE 2 Ingress Classification Set Metadata Security Policy Permit / Drop Forwarding Lookup Output / Group GROUP TABLE METER TABLE Illustrative multi-table pipeline; capabilities vary by implementation
Figure 4.2 — Conceptual OpenFlow architecture. The controller exchanges control messages with the switch while packet processing occurs through the switch's supported forwarding pipeline.
OpenFlow Message Purpose
HELLO Initial protocol negotiation.
FEATURES_REQUEST / REPLY Retrieve switch identity and supported feature information.
FLOW_MOD Add, modify or delete flow entries.
PACKET_IN Deliver selected packet information to the controller.
PACKET_OUT Request packet transmission or processing.
PORT_STATUS Report selected port changes.
MULTIPART_REQUEST / REPLY Retrieve statistics and supported resource information.
BARRIER_REQUEST / REPLY Coordinate processing order of applicable control messages.
ERROR Report protocol or operation failures.

OpenFlow provides programmability within the capabilities exposed by the switch. The existence of an OpenFlow interface does not imply that every possible combination of match fields and actions can be implemented by the underlying hardware.

4.5 Flow Entries, Priorities and Overlapping Rules

An OpenFlow flow entry typically contains match criteria, priority, instructions, counters and associated operational information.

Multiple entries in the same table can match a particular packet. Where priorities apply, the highest-priority matching entry determines the selected processing behaviour.

Priority Match Criteria Action Packet Match
300 IPv4 dst 10.20.1.50, TCP dst 443 Output port 7 SELECTED
200 IPv4 dst 10.20.0.0/16 Output port 4 MATCH
100 IPv4 dst 10.0.0.0/8 Output port 2 MATCH
0 Any packet Drop MATCH
ILLUSTRATIVE PACKET CLASSIFICATION
PACKET
  EtherType: IPv4
  Source IP: 192.0.2.10
  Destination IP: 10.20.1.50
  IP Protocol: TCP
  Destination Port: 443

TABLE LOOKUP
  Priority 300: MATCH
  Priority 200: MATCH
  Priority 100: MATCH
  Priority   0: MATCH

SELECTED ENTRY
  Priority: 300
  Action: OUTPUT:7

RESULT
  Packet forwarded through port 7.

Although the packet satisfies several entries, the entry with priority 300 is selected in this example.

OpenFlow priority-based matching should not be confused with the longest-prefix matching semantics of a conventional IP routing table. A controller implementing routing behaviour using overlapping OpenFlow rules must assign appropriate priorities.

Overlapping Rules Can Produce Unexpected Behaviour

A broad high-priority rule can override a more specific lower-priority rule. Controllers must validate rule ordering and avoid ambiguous overlapping entries with equal priority.

4.6 Exact Match, Longest-Prefix Match and Ternary Match

Programmable forwarding systems support different matching abstractions depending on the processing architecture and underlying hardware.

Match Type 01

Exact Match

A lookup key must equal the stored entry. Common examples include MAC address lookup and selected flow identifiers.

Match Type 02

Longest-Prefix Match

Select the matching prefix with the greatest prefix length, as commonly used in IP forwarding tables.

Match Type 03

Ternary Match

Evaluate bits as zero, one or don't-care according to the entry's value and mask. Useful for flexible packet classification.

Match Type 04

Range Match

Match a field against an allowed interval where supported by the target. Hardware may implement ranges through multiple internal entries.

CONCEPTUAL TERNARY MATCH EXAMPLE
Stored value:  10110000
Stored mask:   11110000

Ternary form:  1011****

Incoming key:  10110110
Result:        MATCH

Incoming key:  10100110
Result:        NO MATCH

* = Don't-care bit

A ternary match can be expressed conceptually by comparing the masked lookup key with the masked stored value.

Different match types can have significantly different hardware resource requirements.

4.7 SRAM, TCAM and Hardware Lookup Resources

High-performance forwarding devices use specialised memory structures and lookup engines to classify packets at high packet-processing rates.

SRAM-based structures are commonly used for exact-match lookup and other forwarding data structures. TCAM supports parallel ternary matching, allowing entries to contain masked or don't-care bits.

Characteristic SRAM-Based Structures TCAM
Typical Matching Exact match and algorithmic lookup. Parallel ternary matching.
Common Applications MAC tables, counters and next-hop information. ACLs and flexible packet classification.
Resource Efficiency Often higher storage density. Typically greater area and power cost per stored bit.
Lookup Design Depends on hashing, indexing or other algorithms. Associative comparison across stored entries.
Scaling Constraints Memory allocation, lookup architecture and collisions. Entry capacity, key width and partitioning.

Actual ASIC implementations may use multiple memory technologies, algorithmic prefix lookup, compressed representations and shared hardware resources.

ILLUSTRATIVE FORWARDING RESOURCE UTILISATION
Exact-Match Resources 42%
Ternary Classification Resources 91%
Next-Hop Resources 64%
Counter Resources 35%
Illustrative resource utilisation, not measurements from a particular network device. Available resources and their allocation depend on the ASIC and pipeline configuration.

A Valid Policy Is Not Necessarily Installable

A controller may calculate a logically correct forwarding policy that cannot be installed because the target device lacks sufficient table entries, key width, action resources or other pipeline capabilities. Resource awareness is therefore an essential part of SDN control.

4.8 Proactive and Reactive Flow Installation

An SDN controller can install forwarding entries before traffic arrives or respond dynamically to selected packets and events.

Proactive Model

Install Before Traffic Arrives

The controller calculates and installs forwarding policies in advance. Packets can then be processed without requiring a controller decision for each new flow.

Reactive Model

Install in Response to Traffic

Selected packets or table-miss events are reported to the controller. The controller evaluates the event and may install appropriate forwarding entries.

REACTIVE FLOW INSTALLATION HOST SWITCH CONTROLLER 1. First Packet 2. PACKET_IN 3. FLOW_MOD 4. PACKET_OUT if required TABLE MISS POLICY DECISION 5. Subsequent Packet LOCAL FORWARDING
Figure 4.3 — Illustrative reactive flow installation. The handling of the first packet depends on switch buffering, controller instructions and the supported OpenFlow behaviour.

Reactive forwarding introduces additional dependencies involving controller connectivity, event processing and flow installation latency.

Production networks frequently combine proactive and reactive mechanisms rather than relying exclusively on one model.

4.9 Table Misses and Default Processing

A packet may reach a forwarding table without matching any installed entry.

The resulting behaviour depends on the pipeline architecture, table configuration and available default actions.

Miss Behaviour 01

Drop

Discard unmatched packets. This can provide an explicit default-deny behaviour for security-sensitive processing.

Miss Behaviour 02

Send to Controller

Report selected unmatched packet information to the controller for additional processing.

Miss Behaviour 03

Continue Processing

Where supported, direct processing to another table or execute an alternative pipeline action.

Miss Behaviour 04

Default Forwarding Action

Execute a configured default action appropriate to the particular table and pipeline architecture.

In modern multi-table OpenFlow pipelines, a table-miss entry can explicitly define supported miss processing. Without such an entry, unmatched packets are generally dropped.

Controller Punt Storms

Sending large volumes of unmatched traffic to a controller can exhaust control channel bandwidth or controller processing capacity. Reactive architectures should incorporate appropriate rate limiting, classification and proactive handling of common traffic.

4.10 P4: Programming the Forwarding Pipeline

P4 is a domain-specific programming language designed to describe packet-processing behaviour in programmable data planes.

Unlike an interface that only manages entries in predefined forwarding tables, P4 can describe aspects of the packet parser, match-action tables, control flow, actions and packet reconstruction.

The capabilities available to a P4 program depend on the selected target architecture, compiler and hardware or software implementation.

CONCEPTUAL P4 PROCESSING PIPELINE PARSER Ethernet IPv4 / IPv6 Custom Headers INGRESS CONTROL Classify Table Policy Table Route Table TRAFFIC MANAGEMENT Queue / Replication EGRESS CONTROL Egress Policy · Header Modification Supported Egress Processing DEPARSER Emit Packet Headers Architecture-defined programmable and fixed-function components Simplified pipeline; exact ordering and programmability vary by target
Figure 4.4 — Conceptual P4 processing architecture. The precise placement of parsers, deparsers, traffic management and programmable control blocks depends on the target architecture.

4.11 Understanding a P4 Match-Action Table

A P4 program can define the fields used as lookup keys, supported match types and actions available to a table.

P4_16 TABLE FRAGMENT · ILLUSTRATIVE
action set_nhop(bit<9> port,
                bit<48> dst_mac) {

    standard_metadata.egress_spec = port;
    hdr.ethernet.dstAddr = dst_mac;

}

action drop_packet() {
    mark_to_drop(standard_metadata);
}

table ipv4_lpm {

    key = {
        hdr.ipv4.dstAddr : lpm;
    }

    actions = {
        set_nhop;
        drop_packet;
    }

    size = 1024;

    default_action = drop_packet();
}

This is an illustrative P4_16 fragment using v1model-style metadata and drop behaviour. It is not a complete standalone P4 program. A production IPv4 forwarding pipeline must also implement appropriate header validity checks, TTL handling, checksum processing and other required forwarding behaviour.

The program defines an IPv4 destination lookup table with longest-prefix matching.

The controller or control-plane software can populate the table with prefix entries and associated action parameters, subject to the compiled pipeline and target capabilities.

Prefix Action Port
10.20.1.0/24 set_nhop 7
10.20.0.0/16 set_nhop 4
10.0.0.0/8 set_nhop 2
Default Action drop_packet —

A packet addressed to 10.20.1.50 selects the 10.20.1.0/24 entry because it is the longest matching prefix in this table.

4.12 P4Runtime and Control-Plane Programming

P4 describes packet-processing behaviour. P4Runtime provides a control-plane API for interacting with supported programmable forwarding entities exposed by a P4 pipeline.

P4Runtime uses protocol buffers and gRPC to define and transport control operations.

P4 COMPILATION AND RUNTIME CONTROL P4 SOURCE Parser · Tables · Actions P4 COMPILER Target-Specific Compilation CONTROLLER P4Runtime Client P4Info Control-Plane Schema DEVICE CONFIG Target-Specific Artifact PROGRAMMABLE FORWARDING DEVICE Compiled Pipeline · Runtime Tables · Counters Packet Processing and Forwarding gRPC
Figure 4.5 — Conceptual relationship between P4 source code, compiler outputs, P4Info and P4Runtime. Pipeline deployment mechanisms depend on the target and supported runtime operations.
Runtime Component Responsibility
P4Info Describes control-plane-visible entities and identifiers.
Write Insert, modify or delete supported runtime entities.
Read Retrieve supported entity state.
StreamChannel Supports controller arbitration, packet I/O and other applicable streaming messages.
Forwarding Pipeline Configuration Manage supported pipeline configuration operations.
Controller Arbitration Coordinate primary controller authority for applicable roles.

P4 Is Not P4Runtime

P4 describes packet-processing logic. P4Runtime provides mechanisms for controlling supported runtime entities associated with that logic. The program defines the processing capabilities; the control plane populates and manages applicable operational state.

4.13 OpenFlow Versus P4

OpenFlow and P4 address related but distinct aspects of programmable networking.

OpenFlow exposes a control interface for supported forwarding pipelines. P4 describes packet-processing behaviour and can be combined with a runtime control interface such as P4Runtime.

Characteristic OpenFlow P4 + P4Runtime
Primary Abstraction Flow-table control protocol. Packet-processing language and runtime API.
Pipeline Structure Supported switch pipeline. Defined by the program within target constraints.
Header Parsing Supported protocol fields. Programmable parsing within architecture limits.
Match-Action Tables Managed through OpenFlow messages. Described in P4 and populated through supported control interfaces.
Custom Protocols Limited by exposed capabilities and extensions. Can describe custom headers where supported.
Compilation Controller rules mapped onto supported switch resources. Target-specific compilation of packet-processing logic.
Hardware Constraints Switch table and action capabilities. Parser, memory, pipeline stage and action constraints.

Neither approach eliminates the physical limitations of the forwarding hardware. Greater programmability provides additional design flexibility, but it also introduces additional engineering responsibilities.

4.14 Packet Modification and Forwarding Actions

Match-action pipelines can perform supported operations beyond simply selecting an output interface.

Actions may modify packet headers, update metadata, select next-hop groups, apply meters, replicate packets or implement supported encapsulation operations.

Ingress Ethernet Original MAC
IPv4 Header TTL 64
Payload Application Data

Forwarding Pipeline Actions

Destination Lookup · Next-Hop Selection · MAC Rewrite · TTL Decrement · IPv4 Header Checksum Update

Egress Ethernet Next-Hop MAC
IPv4 Header TTL 63
Payload Unchanged Data

In this simplified IPv4 routing example, the packet's Layer 2 header is rewritten for the outgoing link, the IP TTL is decremented and the IPv4 header checksum is updated.

More advanced pipelines can perform supported MPLS label operations, tunnel encapsulation, VLAN manipulation and other protocol-specific processing.

4.15 Groups, ECMP and Local Protection

A forwarding decision does not always identify a single physical output interface.

A controller may instead install a next-hop group containing multiple eligible forwarding alternatives.

PROGRAMMABLE NEXT-HOP GROUP ROUTE TABLE 10.20.0.0/16 Action: Group 42 GROUP 42 Next-Hop Selection Supported Hash / Selection Logic NEXT HOP A NEXT HOP B NEXT HOP C Port 1 Port 2 Port 3 Multiple forwarding alternatives can be managed independently of route entries
Figure 4.6 — A route references a next-hop group rather than a single interface. The group implements supported selection behaviour across available forwarding alternatives.

OpenFlow defines group types for different forwarding behaviours, including all, select, indirect and fast failover groups.

Group Type Conceptual Behaviour
ALL Execute the actions of all applicable buckets, supporting replication.
SELECT Select a bucket using the switch's supported selection mechanism.
INDIRECT Reference a single bucket through a reusable group abstraction.
FAST FAILOVER Select the first live bucket according to supported liveness mechanisms.

Local protection mechanisms can allow a forwarding device to respond to certain failures without waiting for a complete controller recomputation.

This creates a useful division of responsibility between rapid local recovery and subsequent network-wide optimisation.

4.16 Consistent Forwarding Updates

Updating forwarding state across multiple network devices introduces a distributed coordination problem.

If different devices receive new forwarding entries at different times, packets may temporarily encounter inconsistent forwarding behaviour.

Depending on the topology and update sequence, these inconsistencies can create transient forwarding loops, blackholes or policy violations.

Update Strategy 01

Dependency-Aware Ordering

Determine a safe installation sequence based on the dependencies between old and new forwarding states.

Update Strategy 02

Make Before Break

Establish replacement forwarding resources before removing the resources currently carrying traffic.

Update Strategy 03

Versioned Packet Processing

Where supported, use packet tags or equivalent context to distinguish old and new forwarding configurations.

Update Strategy 04

Atomic Device Operations

Use supported transactional or atomic update mechanisms to coordinate related changes within an individual device.

Device Atomicity Is Not Network-Wide Atomicity

A switch may support atomic installation of a collection of local forwarding changes. That does not automatically provide an atomic transaction across multiple independent network devices. Network-wide consistency requires additional coordination.

4.17 Hardware Pipeline Constraints

Programmable forwarding devices must process packets within the physical constraints of their underlying architectures.

A packet-processing ASIC may divide forwarding operations into multiple pipeline stages, each containing particular memory, lookup and action resources.

Constraint Engineering Impact
Pipeline Stage Count Limits the number and arrangement of sequential processing dependencies.
Match Key Width Restricts the amount of header and metadata information available to a lookup.
Table Capacity Limits the number of installed entries.
Action Resources Restricts supported calculations and header modifications.
Metadata Width Limits information carried between processing stages.
Parser Resources Constrains supported header extraction and parsing complexity.
Recirculation Additional processing passes may consume internal bandwidth and increase latency.
Stateful Resources Limits counters, meters, registers and supported stateful operations.

A P4 compiler may reject a program that cannot be mapped onto the available target resources.

Similarly, a runtime controller may encounter installation failures when attempting to populate tables beyond their supported capacity.

Programmability Does Not Mean General-Purpose Computing

A programmable forwarding ASIC is designed for high-performance packet processing. Its programming model remains constrained by deterministic processing, hardware resources and target-specific capabilities.

4.18 Production Incident: Forwarding Resource Exhaustion

Consider an SDN-managed data centre fabric in which a controller installs detailed traffic classification rules for individual application flows.

As application traffic grows, the number of required classification entries increases until one of the forwarding devices reaches its available ternary table capacity.

FORWARDING INSTALLATION INCIDENT
POLICY New application policy received
COMPILE Policy translated into forwarding entries
RESOURCE Classification table nearing capacity
INSTALL Forwarding update submitted to SW3
TABLE_FULL SW3 rejects additional flow entry
INCONSISTENT Desired policy differs from installed state
CONTAIN Prevent activation of incomplete policy
RECOMPUTE Evaluate safe rule aggregation
VERIFY Replacement policy installed and validated

Illustrative event sequence and timings. Actual errors, resource reporting and recovery behaviour depend on the device and control interface.

The controller has calculated a valid network policy, but the forwarding device cannot install the complete set of required entries.

If the controller incorrectly treats the installation as successful, applications may experience unexpected forwarding or security behaviour.

An appropriate recovery strategy may involve rule aggregation, alternative table placement, policy redesign or additional hardware capacity.

Any rule aggregation must preserve the original policy semantics. Combining entries must not unintentionally permit traffic that the original rules were intended to block.

Engineering Investigation Outcome

Successful SDN forwarding requires validation at three distinct levels: the controller's intended policy, the device's installed forwarding state and the actual packet-processing outcome. A successful path computation alone does not establish that the network is forwarding correctly.

4.19 Where Programmable Forwarding Is Used

Engineering Domain Programmable Forwarding Application
Data Centre Fabrics Traffic classification, overlay processing and next-hop selection.
Cloud Networking Virtual network forwarding, tenant isolation and distributed network policy.
Service Provider Networks Traffic steering, encapsulation and engineered forwarding services.
Network Security Supported packet classification, filtering and service insertion.
AI Infrastructure Supported fabric telemetry, traffic classification and congestion-aware forwarding mechanisms.
SmartNICs and DPUs Offloading supported networking, virtualisation and security processing.
Network Research Experimental protocols, custom headers and novel packet-processing architectures.

Not every programmable networking architecture uses OpenFlow or P4. Linux eBPF, software switches, virtual routers, SmartNICs and vendor-specific forwarding platforms expose different programming models and execution environments.

The appropriate technology depends on the required packet-processing behaviour, performance characteristics, deployment environment and operational constraints.

Section 04 — Key Engineering Takeaway

Programmable forwarding is the execution layer of an SDN architecture. OpenFlow enables external control of supported forwarding resources, while P4 describes programmable packet-processing behaviour. Match-action tables, parsers, runtime interfaces and hardware pipelines translate network decisions into actual packet processing. Correctness requires not only valid policies but sufficient forwarding resources, consistent installation and verification of operational behaviour.

Looking Ahead: Intelligent Path Computation

Having examined how SDN controllers program forwarding behaviour, the next section investigates how controllers calculate the paths that should be installed.

We will explore Dijkstra's algorithm, constraint-based shortest-path computation, bandwidth-aware routing, latency optimisation, disjoint paths, multi-objective routing and the engineering challenges of selecting paths across shared network infrastructure.

Network Insight · Interactive Engineering 04

Inside the Programmable Data Plane

Build forwarding policies directly inside a programmable network device. Construct packet headers, install match-action rules and observe how the forwarding pipeline selects an action based on packet fields, wildcard matching and rule priority.
Installed rules 0
Packets processed 0
Packets forwarded 0
Packets dropped 0

Programmable Forwarding Pipeline

PIPELINE READY
INGRESS PACKET STRUCTURE PROGRAMMABLE SWITCH ASIC / PIPELINE HEADER PARSER Extract IPv4 · Protocol · L4 Fields MATCH ENGINE / FLOW TABLE Highest-priority matching rule EXACT MATCH · PREFIX · WILDCARD ACTION ENGINE Awaiting matching rule FORWARD Production egress · Port 2 REDIRECT Inspection egress · Port 3 DROP No egress transmission PACKET NETWORK INSIGHT / MATCH-ACTION ARCHITECTURE
Header processing Match and redirect Forwarding Drop

Packet Header Builder

Change packet headers to investigate how different traffic classes interact with the same forwarding table.
Live packet-processing sequence
Awaiting ingress packet
Generate a packet to investigate the parser, match engine and action pipeline.
01
Ingress
02
Parse
03
Match
04
Action
05
Outcome
Programmable forwarding policy

Build a Custom Match-Action Rule

Use Any or * for wildcard matching. IPv4 addresses without a prefix length are treated as /32. Higher numeric priorities take precedence.

Installed Match-Action Flow Table

ID Priority Source Destination Protocol Dst Port Action Packets Bytes Remove
Green identifies the winning forwarding rule. Amber identifies lower-priority rules that also matched the last packet but were not selected. Red identifies a winning drop rule. The permanent table-miss action is DROP.
Packet inspection

Packet Header State

Source IP —
Destination IP —
Protocol —
Destination port —
Ingress DSCP —
Resulting DSCP —
Winning rule —
Outcome —
Southbound rule representation

OpenFlow-Style Rule Inspector

Select or process a forwarding rule.
Illustrative Open vSwitch flow syntax. P4 uses programmable parsers, controls and match-action tables rather than this exact OpenFlow rule representation.

Packet Processing Event Console

EXPERIMENT 01

Security Policy Enforcement

Load the security policy and process Corporate HTTPS. Then select Guest HTTPS. Compare the matching source prefixes, rule priorities and forwarding outcomes.
EXPERIMENT 02

Overlapping Rule Priorities

Load the priority conflict scenario. Process Guest HTTPS and observe how a broad high-priority permit overrides a more specific lower-priority drop rule. Remove the broad permit and test again.
EXPERIMENT 03

Programmable Packet Modification

Load the security policy. Select Corporate DNS and process a packet. Inspect the DSCP value before and after processing. Observe how a matching action can modify packet headers before forwarding.
Engineering principle: Programmable forwarding separates packet classification from packet treatment. A match-action table determines which traffic satisfies a rule and what action should be executed. In this OpenFlow-style priority model, a more specific IP prefix does not automatically win. The highest-priority matching rule determines the action. P4 architectures can support different table matching semantics, including exact, longest-prefix and ternary matching. This educational simulator models a single IPv4 match-action table. It does not implement a complete OpenFlow pipeline, P4 compiler, Ethernet switching, checksum recalculation or physical ASIC resource constraints.
05
Network Insight · SDN Routing Engineering
INTELLIGENT PATH COMPUTATION ARCHITECTURE

Intelligent Path Computation

The shortest path through a network is not necessarily the best path for an application. Modern SDN routing architectures can evaluate network topology, available bandwidth, latency, resilience requirements and operational policies before selecting a forwarding path.

Intelligent path computation moves network engineering beyond simple destination reachability towards application-aware resource allocation. The objective is not merely to find a path, but to identify a feasible path that satisfies the requirements of the service being delivered.

Dijkstra CSPF Traffic Engineering Database Path Computation Element Bandwidth Constraints SRLG Multi-Objective Optimisation

5.1 Why the Shortest Path Is Not Always the Best Path

Traditional link-state routing protocols calculate shortest paths according to configured or derived link metrics. These metrics provide a consistent basis for selecting routes throughout a routing domain.

However, a path with the lowest routing cost may also experience congestion, insufficient available bandwidth or unacceptable latency.

Conventional Objective

Minimum Routing Cost

Select the path with the lowest accumulated routing metric according to the topology and applicable routing rules.

SDN Engineering Objective

Feasible Service Delivery

Select a path that satisfies bandwidth, latency, resilience and administrative constraints while optimising a defined network objective.

Constraint-based routing is not exclusive to SDN. Technologies such as MPLS Traffic Engineering already provide mechanisms for computing constrained paths. SDN architectures can extend these capabilities through centralised network visibility, policy integration and automated coordination.

The Fundamental Engineering Question

Instead of asking only which path has the lowest routing metric, an SDN path computation system can ask which feasible path best satisfies the requirements of a particular application, tenant or network service.

5.2 Representing the Network as a Graph

Path computation begins with a mathematical representation of the network. Routers and switches become vertices, while network connections become edges.

Each edge can contain attributes representing its routing metric, operational state, capacity, available bandwidth, measured delay and administrative properties.

WEIGHTED NETWORK GRAPH 10 10 10 10 10 20 20 R1 R2 R3 R4 R5 R6 SOURCE DESTINATION Path A · Cost 20 Path B · Cost 30 Path C · Cost 40
Figure 5.1 — A simplified weighted network graph containing three candidate paths between R1 and R5. The lowest accumulated routing metric belongs to Path A.
Graph Component Network Representation
Vertex Router, switch or abstract network node.
Edge Physical, logical or abstract network connection.
Weight Routing cost or another selected optimisation metric.
Capacity Maximum supported link bandwidth.
Residual Bandwidth Remaining bandwidth according to the chosen resource model.
Administrative Group Link classification used for inclusion or exclusion policies.
Operational State Whether the connection is currently eligible for use.
Shared Risk Infrastructure dependencies that may cause correlated failures.

Production network graphs are frequently directed because link metrics, bandwidth availability and measured performance may differ between the two directions of a connection.

5.3 The Traffic Engineering Database

A Traffic Engineering Database, or TED, provides the topology and resource information required for traffic engineering path computation.

A controller may populate its network model using information obtained from routing protocols, BGP Link-State, device APIs, inventory systems and telemetry platforms.

TRAFFIC ENGINEERING DATABASE IGP / BGP-LS TELEMETRY INVENTORY POLICY Topology Performance Infrastructure Constraints NETWORK STATE MODEL TED · Resource State · Administrative Constraints Normalised and versioned topology information PATH COMPUTATION ENGINE Candidate Generation · Validation · Optimisation
Figure 5.2 — Multiple information sources contribute to the controller's network state model. The path computation engine consumes this model when evaluating candidate paths.
Link Cost Capacity Available* Delay
R1–R2 10 100 Gbps 8 Gbps 14 ms
R2–R5 10 100 Gbps 12 Gbps 14 ms
R1–R3 10 100 Gbps 65 Gbps 4 ms
R3–R4 10 100 Gbps 55 Gbps 4 ms
R4–R5 10 100 Gbps 70 Gbps 4 ms
R1–R6 20 100 Gbps 80 Gbps 9 ms
R6–R5 20 100 Gbps 75 Gbps 9 ms

*Illustrative directional link attributes. Available bandwidth represents the remaining capacity under the example's resource model. It is not necessarily equivalent to instantaneous unused bandwidth measured by telemetry.

Network State Is Never Perfectly Current

A controller's topology and resource information may become stale between observation and policy installation. Path computation must therefore account for information age, concurrent resource changes and validation of the resulting forwarding state.

5.4 Dijkstra's Shortest-Path Algorithm

Dijkstra's algorithm calculates shortest paths from a source vertex through a graph containing non-negative edge weights.

Link-state routing protocols such as OSPF and IS-IS use shortest-path computation as a fundamental part of their routing architecture.

01

Initialise the Graph

Assign the source a distance of zero and initialise the remaining vertices with an unknown or infinite distance.

02

Select the Closest Unsettled Vertex

Identify the unsettled vertex with the smallest tentative distance from the source.

03

Relax Adjacent Edges

Calculate whether reaching a neighbouring vertex through the selected vertex produces a lower accumulated cost.

04

Update Distances and Predecessors

Record improved distances and the predecessor relationships required to reconstruct the resulting paths.

05

Complete the Shortest-Path Computation

Continue until the required destination is settled or all reachable vertices have been processed.

SHORTEST-PATH COMPUTATION · PSEUDOCODE
distance[source] = 0

for each other node:
    distance[node] = infinity

while unsettled nodes remain:

    u = node with minimum tentative distance

    if distance[u] == infinity:
        break

    mark u as settled

    for each outgoing edge (u, v):

        candidate = distance[u] + weight(u, v)

        if candidate < distance[v]:

            distance[v] = candidate
            predecessor[v] = u

return distance, predecessor

Applying the algorithm to the illustrative topology produces the following shortest distances from R1.

Destination Shortest Cost Example Path
R1 0 Source
R2 10 R1 → R2
R3 10 R1 → R3
R4 20 R1 → R3 → R4
R5 20 R1 → R2 → R5
R6 20 R1 → R6
Path A = 10 + 10 = 20 Minimum accumulated routing metric between R1 and R5.

Dijkstra's algorithm correctly identifies Path A as the shortest path according to the supplied routing weights.

It does not independently determine whether the path satisfies an application's bandwidth or latency requirements. Those requirements must be represented in the graph, constraints or optimisation process.

5.5 Constraint-Based Shortest-Path First

Constraint-Based Shortest-Path First, commonly abbreviated CSPF, extends shortest-path computation by considering additional eligibility requirements.

A common CSPF approach removes links that cannot satisfy particular link-level constraints and then performs shortest-path computation over the remaining graph.

Constraint 01

Minimum Bandwidth

Exclude links whose available or unreserved bandwidth is below the requested service requirement.

Constraint 02

Administrative Affinity

Include or exclude links according to configured administrative groups, infrastructure classifications or service policies.

Constraint 03

Operational Availability

Exclude failed connections, unavailable nodes and resources that cannot currently support the requested service.

Constraint 04

End-to-End Requirements

Evaluate cumulative latency, path length and other path-wide constraints using suitable constrained-path algorithms.

Not Every Constraint Can Be Solved by Link Pruning

A minimum bandwidth constraint can often be evaluated independently for each link. An end-to-end latency constraint depends on the accumulated delay across the complete path. Simply removing links with excessive individual latency does not guarantee that the resulting path satisfies the total latency budget.

5.6 Engineering Example: Selecting an Application Path

Consider an application requesting a network service between R1 and R5 with the following requirements.

20 Gbps Minimum available bandwidth
15 ms Maximum modelled one-way delay
MIN Routing cost among feasible paths

The controller evaluates the three candidate paths using their accumulated routing cost, bottleneck bandwidth and total modelled latency.

Candidate Cost Bandwidth Delay Result
Path A 20 8 Gbps 28 ms REJECT
Path B 30 55 Gbps 12 ms SELECT
Path C 40 75 Gbps 18 ms REJECT
CONSTRAINT-BASED PATH SELECTION PATH A R1–R2–R5 8 Gbps 28 ms REJECTED Bandwidth + delay PATH B R1–R3–R4–R5 55 Gbps 12 ms SELECTED All constraints satisfied PATH C R1–R6–R5 75 Gbps 18 ms REJECTED Delay constraint
Figure 5.3 — Path B is selected because it satisfies both the bandwidth and latency requirements. Path A has the lowest routing cost, while Path C has the greatest available bandwidth. Neither satisfies the complete service specification.
R1
→
R3
→
R4
→
R5

Selected Forwarding Path

R1 → R3 → R4 → R5. The selected path has a routing cost of 30, modelled one-way latency of 12 milliseconds and available bottleneck bandwidth of 55 Gbps before allocating the requested 20 Gbps service.

5.7 Bandwidth-Aware Routing

The available bandwidth of a single path is constrained by the link with the smallest available bandwidth along that path.

Available bandwidth values cannot simply be added across consecutive links because the traffic must traverse every link in the selected path.

B(path) = min(B₁, B₂, ... Bₙ) Path bandwidth is limited by the smallest available link bandwidth.
PATH B · AVAILABLE LINK BANDWIDTH
R1 → R3 65 Gbps
R3 → R4 · Bottleneck 55 Gbps
R4 → R5 70 Gbps
min(65, 55, 70) = 55 Gbps Available bottleneck bandwidth before the new service allocation.

If the controller accounts for a new 20 Gbps allocation on every link in Path B, the remaining bandwidth in the simplified resource model becomes:

Link Before Allocation After
R1–R3 65 Gbps 20 Gbps 45 Gbps
R3–R4 55 Gbps 20 Gbps 35 Gbps
R4–R5 70 Gbps 20 Gbps 50 Gbps

Subsequent path computations must account for these updated resource allocations.

Resource Accounting Is Not a Bandwidth Guarantee

Recording a bandwidth allocation in a controller database does not automatically guarantee that bandwidth in the data plane. Service guarantees may require admission control, traffic shaping, scheduling, policing and suitable resource enforcement mechanisms.

5.8 Latency-Aware Routing

Latency-aware path computation considers the delay experienced across the complete forwarding path.

Network latency can include propagation delay, transmission delay, packet-processing delay and variable queueing delay.

Delay Component 01

Propagation Delay

Time required for a signal to travel through the physical transmission medium. Strongly influenced by physical distance.

Delay Component 02

Transmission Delay

Time required to serialise a packet onto a link, determined by packet size and transmission rate.

Delay Component 03

Processing Delay

Time consumed by packet classification, forwarding lookups and other supported processing operations.

Delay Component 04

Queueing Delay

Variable time spent waiting for transmission resources. Influenced by traffic demand, congestion and scheduling.

D(path) = Σ D(link) + Σ D(node) Conceptual end-to-end delay model. Node delay should only be added separately when it is not already included in the link measurements.

A controller may obtain delay information through active measurements, timestamp-based telemetry or other supported performance-monitoring mechanisms.

Technologies such as TWAMP and STAMP provide standardised mechanisms for measuring network performance.

Average Latency Versus Tail Latency

A path with an acceptable average delay may still experience unacceptable latency spikes. Applications with strict performance requirements may need percentile-based measurements, jitter analysis and explicit consideration of measurement uncertainty.

5.9 Widest-Path Routing

A widest-path algorithm selects a path that maximises its bottleneck bandwidth rather than minimising the sum of routing metrics.

Maximise min(B₁, B₂, ... Bₙ) Select the path with the greatest available bottleneck bandwidth.
CANDIDATE PATH BANDWIDTH COMPARISON
Path A 8 Gbps
Path B 55 Gbps
Path C · Widest Path 75 Gbps

Path C would be selected if maximising available bottleneck bandwidth were the only optimisation objective.

However, Path C does not satisfy the previous application's maximum latency requirement. The best path therefore depends on the complete service specification.

5.10 Hard Constraints and Soft Objectives

An important architectural distinction exists between mandatory service constraints and preferences used to rank feasible paths.

Mandatory Requirement

Hard Constraints

Conditions that must be satisfied before a path can be considered eligible. Examples include minimum bandwidth, prohibited infrastructure and maximum permitted latency.

Optimisation Preference

Soft Objectives

Preferences used to rank paths that already satisfy mandatory requirements. Examples include lower cost, lower utilisation or fewer forwarding changes.

A controller should not silently violate a hard constraint merely because a candidate path has an attractive optimisation score.

CONCEPTUAL SERVICE INTENT
service: application-42

source: R1
destination: R5

hard_constraints:
    minimum_bandwidth_gbps: 20
    maximum_latency_ms: 15
    exclude_admin_group:
        - maintenance

soft_objectives:
    - minimise_routing_cost
    - minimise_congestion
    - minimise_policy_churn

on_no_feasible_path:
    reject_and_report

Illustrative intent representation, not a vendor-specific configuration syntax or standardised service model.

5.11 Multi-Objective Path Optimisation

Production network engineering often requires several competing objectives to be considered simultaneously.

A low-latency path may consume scarce network resources. A high-bandwidth path may have a higher routing cost. Frequent reoptimisation may improve utilisation but introduce operational instability.

Score(P) = αC + βD + γU + δH Illustrative weighted objective using normalised cost, delay, utilisation and change penalty. Lower scores are preferred.
Component Meaning
C Normalised routing or infrastructure cost.
D Normalised end-to-end delay.
U Normalised congestion or resource utilisation penalty.
H Penalty associated with changing an existing forwarding policy.
α, β, γ, δ Non-negative weights representing engineering preferences.

Normalisation is important because routing metrics, milliseconds, utilisation percentages and operational penalties are expressed using different scales and units.

Without appropriate normalisation, a metric with numerically larger values may dominate the objective regardless of its intended engineering importance.

Feasibility Before Optimisation

A robust path computation process first identifies feasible candidates and then applies optimisation objectives. Mandatory constraints should not become optional merely because another metric produces a better score.

5.12 Pareto-Optimal Paths

Multi-objective optimisation does not always produce a single path that is superior in every dimension.

A path is Pareto-optimal within a candidate set when no other candidate improves at least one objective without worsening another.

PATH COST VS LATENCY 30 20 10 0 0 10 20 30 40 ROUTING COST LATENCY (ms) 15 ms LIMIT A · 20 / 28 B · 30 / 12 C · 40 / 18 Lower cost and lower latency are preferred in this two-objective example
Figure 5.4 — Path A and Path B represent different trade-offs between cost and latency. Path C is dominated by Path B when only these two objectives are considered.

If available bandwidth becomes a third optimisation objective, Path C may no longer be dominated because it offers greater available bandwidth than Path B.

The Pareto frontier therefore depends on the objectives included in the evaluation.

5.13 K-Shortest Paths and Candidate Generation

A controller may need to evaluate multiple alternative paths rather than calculating only the single shortest path.

K-shortest-path algorithms can generate a collection of candidate paths ordered according to a selected metric.

Algorithms such as Yen's algorithm can generate loopless alternative paths for subsequent policy and constraint evaluation.

01

Generate Candidate Paths

Identify multiple potential paths between the service endpoints.

02

Evaluate Resource Constraints

Check available bandwidth, operational state and administrative eligibility.

03

Evaluate End-to-End Properties

Calculate accumulated latency, path cost, diversity and other service-level properties.

04

Rank Feasible Candidates

Apply the configured optimisation objective to paths satisfying all mandatory requirements.

05

Validate and Install

Confirm resource availability and forwarding feasibility before activating the selected policy.

Candidate Limits Can Hide Feasible Paths

Evaluating only the first few shortest paths may overlook a higher-cost path that satisfies the application's constraints. A bounded candidate search is a practical heuristic, not a universal guarantee of finding the optimal constrained path.

5.14 Link-Disjoint and Node-Disjoint Paths

Resilient services may require primary and backup paths that do not depend on the same intermediate infrastructure.

Diversity Model 01

Link-Disjoint Paths

Primary and backup paths do not share network links. They may still traverse common intermediate nodes.

Diversity Model 02

Node-Disjoint Paths

Primary and backup paths do not share intermediate nodes. The source and destination endpoints remain common.

PRIMARY AND BACKUP PATH DIVERSITY R1 R2 R3 R4 R5 R6 PRIMARY PATH BACKUP PATH No shared intermediate nodes No shared graph edges Separate illustrative resilience topology
Figure 5.5 — Primary and backup paths use separate intermediate nodes and links. Failure of an intermediate node on the primary path does not directly remove the backup path from this graph.

Algorithms such as Suurballe's algorithm can calculate pairs of minimum-total-cost edge-disjoint paths under suitable graph assumptions.

More complex diversity requirements may require graph transformations, specialised algorithms or mathematical optimisation.

5.15 Shared Risk Link Groups

Logical path diversity does not necessarily provide physical infrastructure diversity.

Two network links may appear independent in the routing topology while sharing the same fibre conduit, optical system, power infrastructure or physical location.

A Shared Risk Link Group, or SRLG, identifies links that share a common failure risk.

LOGICAL DIVERSITY VS PHYSICAL RISK R1 R2 R3 R4 SHARED PHYSICAL CONDUIT SRLG 17 ONE PHYSICAL FAILURE CAN REMOVE BOTH LINKS Logical link diversity alone is insufficient
Figure 5.6 — Two logically separate network connections share a physical conduit. A failure affecting that conduit can remove both connections simultaneously.
Link Shared Risk Groups Infrastructure
R1–R2 17, 31 Conduit A and optical system X.
R3–R4 17, 42 Conduit A and optical system Y.
R5–R6 23, 51 Conduit B and optical system Z.

An SRLG-aware controller evaluates the shared risk groups associated with candidate paths and can exclude alternatives that depend on the same identified failure risks.

Resilience Depends on Infrastructure Knowledge

A path computation engine can only avoid shared risks that are represented in its network model. Incomplete physical inventory or inaccurate SRLG assignments can produce apparently diverse paths that remain vulnerable to correlated failures.

5.16 Network-Wide Optimisation

Selecting the best path independently for each application does not necessarily produce the best overall network resource allocation.

Multiple services may compete for the same preferred links. A locally optimal decision for one service can reduce the feasible options available to subsequent services.

Optimisation Model 01

Independent Path Selection

Compute a suitable path for each service request independently using the currently available network resources.

Optimisation Model 02

Joint Resource Allocation

Consider multiple service demands together and allocate paths according to a network-wide optimisation objective.

Network-wide optimisation can be modelled using multi-commodity flow formulations, linear programming, mixed-integer optimisation and practical heuristics.

Σ Allocated Traffic(e) ≤ Capacity(e) Conceptual capacity constraint for every network link e.

Depending on the model, traffic demands may be divisible across multiple paths or required to use a single path.

Unsplittable demands, multiple constraints and strict diversity requirements can substantially increase computational complexity.

5.17 Engineering Example: Greedy Versus Global Allocation

Consider a separate network resource allocation example involving two application demands and two candidate paths.

Service Demand Eligible Paths
Application A 40 Gbps Path X or Path Y
Application B 40 Gbps Path X only

Both paths have 60 Gbps of available bandwidth and do not share constrained resources. Path X has the lower routing cost.

GREEDY ALLOCATION
Path X · Application A 40 / 60 Gbps
Path Y · Unused 0 / 60 Gbps

Application B cannot be admitted. Only 20 Gbps remains on Path X.

JOINT RESOURCE ALLOCATION
Path X · Application B 40 / 60 Gbps
Path Y · Application A 40 / 60 Gbps

Both applications are admitted. Total allocated bandwidth: 80 Gbps.

The Value of Network-Wide Visibility

Application A does not need the lower-cost path to satisfy its service requirements. Assigning it to Path Y preserves Path X for Application B, which has no alternative. Considering the demands together improves the overall admission outcome.

5.18 The Path Computation Element

The Path Computation Element, or PCE, is an architectural component responsible for computing paths according to network topology, constraints and applicable optimisation requirements.

A Path Computation Client, or PCC, can request path computation services from a PCE using the Path Computation Element Communication Protocol, known as PCEP.

PATH COMPUTATION ELEMENT ARCHITECTURE TED Topology and Resources PCE Constraint-Based Computation SERVICE POLICY Objectives and Constraints PATH RESPONSE PATH REQUEST PCEP PCC / HEADEND Service Path Establishment MPLS / SEGMENT ROUTING / TRANSPORT NETWORK
Figure 5.7 — Conceptual PCE architecture. A PCC requests a path computation, while the PCE evaluates topology and service constraints. Stateful and PCE-initiated architectures extend this basic request-response model.
PCE Architecture Engineering Behaviour
Stateless PCE Computes paths without maintaining a synchronised database of established LSP state.
Stateful PCE Maintains information about relevant established LSPs to support coordinated computation.
Active Stateful PCE Can request updates to delegated LSPs within the supported control model.
PCE-Initiated LSPs Allows a PCE to request creation and removal of supported LSPs.
Hierarchical PCE Coordinates path computation across multiple domains using abstracted topology information.

PCEP is not a general-purpose switch programming protocol. Its primary role is path computation communication and associated path control capabilities.

The mechanisms used to establish or enforce the resulting path depend on the underlying transport architecture.

5.19 From Computed Path to Deployable Policy

A path computation engine may produce an explicit sequence of network nodes or links.

However, the computed path must still be translated into a representation that the underlying forwarding architecture can implement.

01

Computed Path

The controller identifies the required network traversal, such as R1 → R3 → R4 → R5.

02

Policy Translation

Translate the path into explicit route objects, segment lists, forwarding entries or another supported policy representation.

03

Capability Validation

Verify that the network supports the required forwarding operations, encapsulation and resource requirements.

04

Policy Installation

Establish the required forwarding state using the appropriate network control mechanisms.

05

Operational Verification

Confirm that traffic follows the intended path and that the expected service properties are achieved.

Computed Path Does Not Equal Actual Forwarding Path

A Segment Routing node SID, for example, normally directs traffic according to the applicable shortest-path forwarding behaviour towards that node. It does not necessarily enforce every individual link in a computed explicit path. Additional segments or adjacency-specific instructions may be required.

5.20 Path Reoptimisation and Stability

Network conditions change continuously. New services arrive, existing services terminate, link utilisation fluctuates and infrastructure failures alter the available topology.

A controller may periodically recompute paths or initiate reoptimisation when relevant network conditions change.

However, reacting to every small performance fluctuation can create unnecessary forwarding changes and network instability.

Stability Mechanism 01

Hysteresis

Require a sufficiently significant improvement before replacing an existing feasible path.

Stability Mechanism 02

Hold-Down Intervals

Limit repeated optimisation changes within short periods, while allowing urgent failure recovery to follow separate rules.

Stability Mechanism 03

Measurement Smoothing

Reduce sensitivity to transient telemetry fluctuations using appropriate statistical or time-window processing.

Stability Mechanism 04

Change Penalties

Include the operational cost of modifying an established service within the optimisation objective.

HYSTERESIS AND PATH STABILITY 100% 75% 50% 25% 0% ENTER CONGESTED STATE · 80% CLEAR CONGESTED STATE · 55% TRIGGER CLEAR TIME →
Figure 5.8 — Illustrative hysteresis model using separate congestion-entry and congestion-clear thresholds. Production thresholds and measurement windows depend on the network and service requirements.

5.21 Computational Complexity and Practical Limits

Computing a shortest path with a single additive non-negative metric is a well-understood graph problem.

Computing an optimal path subject to multiple independent end-to-end constraints can be substantially more difficult. Several important constrained path formulations are computationally intractable at large scale without practical approximations or restrictions.

Computation Model Engineering Consideration
Dijkstra Efficient shortest-path computation with non-negative weights.
Link-Pruned CSPF Efficient when mandatory constraints can be evaluated independently per link.
K-Shortest Paths Provides alternative candidates but increases computation as the candidate count grows.
Multi-Constrained Paths May require specialised algorithms, approximations or bounded search.
Disjoint Path Computation Complexity depends on the diversity requirements and resource model.
Multi-Commodity Optimisation Joint allocation across multiple demands can become computationally expensive.

Production controllers may use hierarchical topology abstraction, cached candidate paths, incremental computation, parallel processing and bounded optimisation windows to maintain acceptable operational performance.

Optimality Versus Operational Response Time

The mathematically optimal solution is not always the most operationally useful solution. During a failure, a rapidly computed feasible path may be preferable to an optimal path that requires substantially more computation time.

5.22 Production Incident: Concurrent Bandwidth Allocation

Consider a controller cluster processing two simultaneous application requests.

Both requests require 30 Gbps and independently identify the same candidate path with 50 Gbps of remaining bandwidth.

If the two computations use the same resource snapshot without coordinated admission control, both may incorrectly conclude that sufficient bandwidth exists.

50 Gbps Available bandwidth
60 Gbps Combined requested allocation
10 Gbps Potential over-allocation
CONCURRENT PATH ALLOCATION INCIDENT
REQUEST Application A requests 30 Gbps
REQUEST Application B requests 30 Gbps
SNAPSHOT Both computations observe resource version 42
COMPUTE Application A selects Path X
COMPUTE Application B selects Path X
COMMIT Application A allocation accepted; version becomes 43
CONFLICT Application B allocation references stale version 42
REJECT Second allocation cannot be committed safely
RECOMPUTE Application B evaluated against updated resource state
OUTCOME Alternative feasible path selected or request declined

Illustrative controller event sequence and timings. This represents a possible version-based admission-control design rather than a specific controller implementation.

The problem is not a failure of the shortest-path algorithm. Both computations may be individually correct relative to their observed resource snapshots.

The failure would occur at the coordination boundary between path computation, resource accounting and policy installation.

Path Computation Is Also a Distributed Systems Problem

Reliable SDN resource allocation requires concurrency control, consistent admission decisions, resource validation and reconciliation between intended and installed network state. A correct graph algorithm alone cannot provide these guarantees.

5.23 Application-Aware Path Selection

Different applications can require substantially different network characteristics. A controller may therefore apply distinct path computation policies to different service classes.

Application Potential Path Objective Important Considerations
Real-Time Voice Low latency and jitter. Queueing behaviour and loss.
Interactive AI Inference Low and predictable delay. End-to-end application response time and tail latency.
Distributed AI Training High throughput and balanced fabric utilisation. Collective communication, congestion and stragglers.
Storage Replication Bandwidth and predictable transfer performance. Replication mode and recovery requirements.
Financial Services Low latency and resilient connectivity. Physical path diversity and service-specific constraints.
Bulk Data Transfer High available throughput. Completion deadlines and competing traffic demands.
Security-Sensitive Traffic Policy-compliant forwarding. Required inspection points and prohibited infrastructure.

Application-aware routing does not require the network controller to inspect every application's payload.

Service requirements can be supplied through application orchestration systems, tenant policies, traffic classifications or explicit network service requests.

5.24 Engineering Verification Checklist

Verification 01

Topology Accuracy

Confirm that the network model represents the operational topology and correct directional link attributes.

Verification 02

Constraint Satisfaction

Verify every mandatory service constraint against the selected complete forwarding path.

Verification 03

Resource Availability

Confirm that bandwidth and other required resources remain available at admission time.

Verification 04

Physical Diversity

Validate node, link and shared-risk requirements against known physical infrastructure dependencies.

Verification 05

Forwarding Feasibility

Confirm that the selected path can be represented and installed using supported forwarding mechanisms.

Verification 06

Operational Outcome

Verify installed policy, actual traffic traversal, measured performance and ongoing service compliance.

Section 05 — Key Engineering Takeaway

Intelligent path computation is the decision-making foundation of advanced SDN routing architectures. Shortest-path algorithms provide a starting point, while constraint-based computation, bandwidth awareness, latency analysis, physical diversity and multi-objective optimisation allow controllers to evaluate application-specific requirements. Production correctness also depends on accurate network state, coordinated resource allocation, deployable forwarding policies and continuous operational verification.

Looking Ahead: BGP and Segment Routing

Having examined how an SDN controller calculates a suitable network path, the next section investigates how modern routing protocols and Segment Routing architectures provide the topology information and forwarding mechanisms required to implement these decisions.

We will explore BGP Link-State, PCEP, Segment Routing policies, candidate paths, binding SIDs, SR-MPLS, SRv6 and the relationship between distributed routing protocols and centralised traffic engineering systems.

Network Insight · Interactive Engineering 05

Constraint-Based Path Computation Engine

Explore how a centralised Path Computation Element evaluates network topology, link resources and application requirements. Discover why the shortest network path is not always the best engineering decision.
Selected path cost —
End-to-end latency —
Bottleneck available BW —
Feasible paths —

Traffic Engineering Network

TED SYNCHRONISED
PATH COMPUTATION ELEMENT SDN PATH ENGINE TRAFFIC ENGINEERING DATABASE LOW IGP COST CORRIDOR LOW LATENCY CORRIDOR HIGH CAPACITY CORRIDOR TE TRAFFIC LINK LABELS: IGP COST / LATENCY / AVAILABLE BANDWIDTH SELECT ANY LINK TO INSPECT OR MODIFY ITS RESOURCES
Selected path Available link Constraint excluded Failed link Inspected link

Path Computation Request

Dijkstra mode minimises IGP cost without application constraints. Constraint mode evaluates bandwidth, latency and administrative policy.
Path computation decision
Awaiting path computation
Submit an application path request to evaluate the available network resources.
No path computed
01
Read TED
02
Filter Links
03
Compute
04
Validate
05
Select Path
Traffic engineering database

Link Resource Inspector

Available capacity —
Resource changes update the TED and invalidate the previous computation. Recompute the path to evaluate the updated network state.
Application requirements

Engineering Scenario Library

Active reservations: 0
Path computation evidence

Candidate Path Analysis

Candidate path Cost Latency Available BW Decision
Compute a path to inspect candidate routes and constraint rejection reasons.
Controller network-state database

Traffic Engineering Database (TED)

Link IGP cost Latency Capacity Background Reserved Available Admin group Status

Path Computation Event Console

EXPERIMENT 01

Shortest Is Not Always Best

Load the lowest-cost scenario. Compare the selected path with the real-time application scenario. Observe how bandwidth and latency constraints change the routing decision.
EXPERIMENT 02

Resource-Aware Path Selection

Load the high-capacity transfer scenario. Reserve bandwidth on the selected path. Recompute the request and observe how available resources influence subsequent path computation.
EXPERIMENT 03

Constraint Failure Investigation

Load the unsatisfiable constraints scenario. Inspect rejected candidates. Relax the bandwidth or latency requirement until a feasible path becomes available.
Engineering principle: Traditional shortest-path computation minimises an additive routing metric. Traffic engineering introduces additional constraints, including available bandwidth, administrative policy and end-to-end latency. A feasible path must satisfy the application's requirements before the optimisation objective determines which feasible path is preferred. This laboratory implements Dijkstra for unconstrained shortest-path computation and exhaustive simple-path enumeration for exact constraint evaluation within its small topology. Production PCE implementations may use CSPF, multi-constraint algorithms, heuristics or optimisation techniques appropriate to much larger networks. Bandwidth reservations are simulated resource accounting, not actual RSVP-TE signalling, Segment Routing programming or QoS enforcement.
06
Network Insight · SDN Routing Engineering
PROGRAMMABLE TRANSPORT ARCHITECTURE

SDN Routing with BGP and Segment Routing

Software-defined networking does not necessarily require replacing traditional routing protocols. Some of the most important production SDN architectures combine distributed routing, centralised path computation and programmable transport technologies.

BGP Link-State, the Path Computation Element Communication Protocol and Segment Routing provide complementary mechanisms for building these architectures. Together, they allow a controller to discover network topology, evaluate traffic engineering requirements and establish forwarding policies across an existing IP or MPLS infrastructure.

BGP-LS PCEP SR-MPLS SRv6 Segment Identifier SR Policy Binding SID Colour-Based Steering TI-LFA

6.1 The Hybrid SDN Routing Architecture

In a hybrid SDN architecture, the distributed control plane continues to provide basic network reachability. OSPF or IS-IS establishes the underlying topology and computes shortest paths, while BGP distributes service reachability and applicable routing information.

A centralised controller introduces an additional layer of intelligence that can calculate paths according to service requirements rather than relying exclusively on the default shortest-path forwarding behaviour.

HYBRID SDN TRANSPORT ARCHITECTURE SDN CONTROLLER / PCE Traffic Engineering Database Path Computation · Policy Lifecycle BGP-LS PCEP DISTRIBUTED OSPF / IS-IS UNDERLAY PE1 P1 P2 P3 P4 PE2 Default shortest-path topology CONTROLLER-SELECTED SR POLICY Topology collection · Path computation · Policy installation · Packet forwarding
Figure 6.1 — A hybrid SDN architecture combining a distributed routing underlay, BGP-LS topology collection, PCEP-based policy control and Segment Routing forwarding. The control sessions shown are conceptual rather than physical links.
Technology Architectural Responsibility
OSPF / IS-IS Distributed topology discovery, reachability and shortest-path computation.
BGP Distribution of service reachability and applicable routing policies.
BGP-LS Distribution of network topology and traffic engineering information.
PCE Computation of paths according to network state and service constraints.
PCEP Communication of path requests, reports and supported path-control operations.
Segment Routing Execution of forwarding instructions represented by segment identifiers.
Telemetry Observation of operational state, performance and forwarding outcomes.

Centralised Intelligence Does Not Mean Centralised Forwarding

The controller computes and coordinates forwarding policies, but routers continue forwarding packets locally. The controller is not normally placed in the packet forwarding path.

6.2 Why Conventional BGP Is Not Enough for Topology Discovery

Conventional BGP primarily distributes reachability information and associated path attributes. A BGP route can describe how a destination is reachable, but it does not ordinarily provide a complete representation of every internal router, link and traffic engineering attribute within an underlying network.

A controller calculating explicit transport paths requires a richer topology model.

Reachability Distribution

Conventional BGP

Advertises network prefixes, next hops, AS paths, communities and other attributes used for reachability and routing policy.

Topology Distribution

BGP Link-State

Advertises descriptions of network nodes, links and prefixes, together with supported traffic engineering and Segment Routing information.

BGP-LS uses BGP as a distribution mechanism for link-state information. It is not a replacement for the underlying link-state routing protocol.

6.3 BGP Link-State Architecture

BGP Link-State allows topology information to be exported from routing domains and delivered to external consumers such as SDN controllers and path computation systems.

A BGP-LS speaker can obtain topology information from an underlying link-state database and advertise that information using the BGP-LS address family.

Information Source

OSPF / IS-IS Link-State Database

Router identifiers, adjacencies, link metrics, reachability and supported traffic engineering extensions.

↓
Topology Export

BGP-LS Producer

Converts supported link-state information into BGP-LS advertisements.

↓
Distribution

BGP-LS Session

Delivers node, link and prefix information to topology consumers, directly or through suitable BGP infrastructure.

↓
Centralised Network Intelligence

SDN Controller / Traffic Engineering Database

Reconstructs a network graph and combines topology attributes with policy, telemetry and resource information.

BGP-LS Is a Topology Distribution Mechanism

Receiving BGP-LS information does not automatically establish an engineered forwarding path. The controller must compute, validate and install a suitable policy using separate mechanisms.

6.4 BGP-LS Network Layer Reachability Information

BGP-LS defines specialised Network Layer Reachability Information, or NLRI, for representing topology objects.

NLRI Type Information Represented Controller Use
Node NLRI Network node descriptors and associated attributes. Construct graph vertices.
Link NLRI Local and remote node descriptors and link identifiers. Construct directional graph edges.
IPv4 Prefix NLRI IPv4 prefix reachability associated with topology nodes. Associate IPv4 destinations with topology.
IPv6 Prefix NLRI IPv6 prefix reachability associated with topology nodes. Associate IPv6 destinations with topology.

Additional extensions support specialised topology information, including Segment Routing and SRv6-related attributes.

NLRI Type Topology object
Length NLRI size
Protocol ID Information source
Identifier Routing instance context
Descriptors Node / link / prefix
Figure 6.2 — Simplified conceptual representation of a BGP-LS NLRI. Descriptor formats depend on the specific NLRI type.

BGP-LS attributes can carry additional information describing the advertised topology objects. These attributes are distinct from the NLRI descriptors used to identify those objects.

6.5 Traffic Engineering Attributes

A controller requires more than knowledge of whether two routers are connected. It may also need information about link capacity, available resources, administrative groups and forwarding capabilities.

Attribute Engineering Purpose
IGP Metric Represents the underlying shortest-path routing cost.
TE Metric Provides a separate metric for traffic engineering computation.
Maximum Link Bandwidth Describes the link's maximum bandwidth.
Maximum Reservable Bandwidth Describes the bandwidth available for reservation under the configured resource model.
Unreserved Bandwidth Represents bandwidth available for reservation at supported priority levels.
Administrative Group Allows links to be classified for policy inclusion or exclusion.
Shared Risk Link Group Identifies shared infrastructure failure risks.
Link Delay Supports latency-aware computation when appropriate delay extensions are available.
Segment Routing Attributes Describe supported segment identifiers and related forwarding capabilities.
CONTROLLER TOPOLOGY MODEL · ILLUSTRATIVE
link:
  local_node: P1
  remote_node: P2

  operational_state: UP

  igp_metric: 10
  te_metric: 25

  maximum_bandwidth_gbps: 100
  reservable_bandwidth_gbps: 100
  unreserved_bandwidth_gbps: 45

  measured_delay_ms: 8

  administrative_groups:
    - backbone
    - low_latency

  shared_risk_groups:
    - 17

  adjacency_sid:
    label: 24012
    scope: local

Illustrative normalised controller data model, not the actual BGP-LS wire format. Some information may originate from telemetry or inventory systems rather than a single BGP-LS advertisement.

Unreserved Bandwidth Is Not Live Link Utilisation

Reservation information and measured traffic utilisation describe different properties. A controller should not assume that an advertised unreserved bandwidth value directly represents instantaneous unused link capacity.

6.6 What Is Segment Routing?

Segment Routing is a source-routing architecture in which a packet is associated with an ordered set of forwarding instructions called segments.

Each segment identifies a forwarding instruction, such as reaching a particular network node, traversing a specific adjacency or executing a supported service behaviour.

The headend applies the segment list to traffic selected for a Segment Routing policy. Intermediate routers execute the instructions using their locally installed forwarding state.

MPLS Data Plane

SR-MPLS

Represents segment instructions using MPLS labels. An ordered label stack encodes the sequence of instructions applied to a packet.

IPv6 Data Plane

SRv6

Represents segments using IPv6 addresses associated with forwarding or service behaviours. An IPv6 Segment Routing Header can encode multiple segments.

Source Routing with Distributed Forwarding

The headend determines the ordered segment instructions, but intermediate routers still rely on distributed routing and locally installed forwarding entries to execute those instructions.

6.7 Segment Identifiers: Prefix, Node and Adjacency SIDs

A Segment Identifier, or SID, represents a specific Segment Routing instruction.

Different SID types provide different levels of forwarding control.

Segment Type 01

Prefix SID

Identifies a forwarding instruction associated with an advertised prefix, typically using the applicable shortest-path algorithm.

Segment Type 02

Node SID

A specialised prefix SID identifying a particular network node, commonly associated with a loopback address.

Segment Type 03

Adjacency SID

Identifies forwarding over a particular adjacency or set of adjacencies, subject to its advertised scope and behaviour.

Segment Type 04

Binding SID

Associates a segment instruction with an existing policy, allowing another policy or forwarding operation to reference that policy.

SEGMENT IDENTIFIER SEMANTICS NODE SID ADJACENCY SID R1 R2 R3 R4 R1 R2 R3 R4 Reach R4 using its shortest path Execute the R1 → R3 adjacency Node segments provide reachability; adjacency segments provide finer path control
Figure 6.3 — A node SID normally follows the applicable shortest-path forwarding behaviour. An adjacency SID can provide more specific control over a particular forwarding adjacency.

SID Scope Matters

Many adjacency SIDs have local significance. A controller cannot assume that a locally allocated adjacency label has the same meaning on every router. Segment lists must ensure that the instruction becomes active at the appropriate node.

6.8 The Segment Routing Global Block

In SR-MPLS, the Segment Routing Global Block, or SRGB, is a range of MPLS labels reserved for globally significant segment instructions.

A prefix SID may be advertised as an index into the applicable SRGB. The router derives the corresponding local MPLS label using the advertised index and its label block.

16000 Example SRGB starting label
105 Example prefix SID index
16105 Derived local label
SIMPLIFIED SINGLE-BLOCK SRGB EXAMPLE
SRGB start = 16000

Prefix SID index = 105

Derived label = 16000 + 105

Derived label = 16105

Using consistent SRGB ranges throughout a domain simplifies operational interpretation. However, Segment Routing can support routers with different SRGB allocations.

A controller must understand the relevant label mappings when constructing policies for a heterogeneous network.

6.9 SR-MPLS Packet Forwarding

SR-MPLS encodes a sequence of segment instructions using an MPLS label stack.

The top label identifies the currently active forwarding instruction. Routers process that instruction using their MPLS forwarding state.

Label 16003 Active segment · S=0
Label 16004 Next segment · S=0
Label 16005 Final segment · S=1
Original Packet IP header and payload
Figure 6.4 — Illustrative SR-MPLS label stack. The bottom-of-stack bit identifies the final MPLS label in this simplified example. Actual services may include additional service or entropy labels.
MPLS Label Stack Field Size Purpose
Label 20 bits Identifies the applicable MPLS forwarding entry.
Traffic Class 3 bits Supports traffic class and related forwarding treatment.
Bottom of Stack 1 bit Identifies the bottom label in the MPLS stack.
TTL 8 bits Supports packet lifetime and loop protection.

Each MPLS label stack entry introduces four bytes of overhead. Additional labels therefore increase encapsulation overhead and consume hardware label-stack resources.

6.10 Engineering Example: Explicit SR-MPLS Path

Consider a controller that calculates the following engineered path:

DESIRED TRANSPORT PATH
R1 → R3 → R4 → R5

Assume that the applicable shortest paths between each consecutive segment endpoint follow the required direct links. A node-segment list can then express the desired path.

SR-MPLS SEGMENT LIST EXECUTION R1 R2 R3 R4 R5 SID 16002 SID 16003 SID 16004 SID 16005 Default shortest path ENGINEERED PATH 16003 16004 16005 Logical segment execution order · Left to right
Figure 6.5 — The headend R1 applies an ordered segment list to steer traffic through R3 and R4 before reaching R5.
Logical Stage Active Instruction Expected Outcome
Headend R1 16003 Forward towards R3.
Segment R3 16004 becomes active Continue towards R4.
Segment R4 16005 becomes active Continue towards R5.
Endpoint R5 Final segment completed Continue with the applicable service or payload forwarding operation.

The table describes logical segment execution. Actual label operations may occur on upstream routers because of penultimate-hop popping, or follow other supported forwarding behaviours.

A Node Segment Is Not an Explicit Physical Link

If the shortest path from R3 to R4 changes, traffic using R4's node SID may follow the new shortest path. An adjacency segment or another appropriate mechanism is required when the policy must enforce a particular link.

6.11 SRv6 Architecture

Segment Routing over IPv6, commonly known as SRv6, represents forwarding instructions using IPv6 segment identifiers.

An SRv6 SID can identify a network endpoint and an associated behaviour that is executed when the packet reaches that endpoint.

Unlike SR-MPLS, which represents segments using MPLS labels, SRv6 uses IPv6 forwarding and supported SRv6 endpoint processing.

IPv6 Header Active destination SID
SRH Routing Header Type 4
Segment List Ordered SID instructions
Inner Packet Encapsulation example
Figure 6.6 — Simplified SRv6 encapsulation containing an outer IPv6 header, Segment Routing Header and inner packet. An SRH is not required for every possible SRv6 operation.

6.12 Understanding the SRv6 SID Structure

An SRv6 SID can be structured into locator, function and optional argument components. The allocation and lengths of these components depend on the deployment architecture.

LOCATOR Example: 48 bits
FUNCTION Example: 16 bits
ARGUMENT Example: 64 bits
Figure 6.7 — Illustrative 128-bit SRv6 SID allocation. The 48/16/64 division is an example, not a mandatory universal SID format.
SID Component

Locator

Provides the routable portion of the SID, allowing the network to forward traffic towards the node or location responsible for the behaviour.

SID Component

Function and Argument

Identify the applicable local behaviour and, where supported, additional parameters associated with that behaviour.

SRv6 Behaviour Conceptual Responsibility
End Endpoint processing that advances the active segment when applicable.
End.X Endpoint processing with forwarding through an associated Layer 3 adjacency.
End.DX4 Decapsulation and IPv4 cross-connect forwarding.
End.DX6 Decapsulation and IPv6 cross-connect forwarding.
End.DT4 Decapsulation followed by an IPv4 table lookup.
End.DT6 Decapsulation followed by an IPv6 table lookup.
End.DT46 Decapsulation followed by the applicable IPv4 or IPv6 table lookup.

These behaviours illustrate how SRv6 can combine transport forwarding and service delivery within an IPv6-based architecture.

6.13 The IPv6 Segment Routing Header

The Segment Routing Header, or SRH, is an IPv6 routing extension header that can carry an ordered sequence of IPv6 segment identifiers.

The IPv6 destination address represents the currently active segment. When the applicable endpoint behaviour advances the segment list, the destination address is updated to the next segment.

SRH Field Purpose
Next Header Identifies the header following the SRH.
Hdr Ext Len Encodes the extension header length in eight-octet units, excluding the first eight octets.
Routing Type Value 4 identifies the Segment Routing Header.
Segments Left Tracks the remaining segment progression.
Last Entry Identifies the index of the last entry in the segment list.
Flags and Tag Provide fields for supported control and packet classification purposes.
Segment List Contains the encoded IPv6 segment identifiers.
Optional TLVs Carry supported additional information.
THREE-SEGMENT SRV6 ENCAPSULATION EXAMPLE
Logical execution order:

  S1 → S2 → S3

Initial outer IPv6 destination:

  S1

SRH:

  Routing Type  = 4
  Last Entry    = 2
  Segments Left = 2

Encoded segment list:

  Segment List[0] = S3
  Segment List[1] = S2
  Segment List[2] = S1

Execution Order and Encoding Order Are Different

The logical SRv6 segment execution order is not the same as the array order used in the SRH. The final segment occupies Segment List[0] in the standard encoding.

6.14 SR-MPLS Versus SRv6

Engineering Property SR-MPLS SRv6
Data Plane MPLS forwarding. IPv6 forwarding with supported SRv6 behaviours.
Segment Representation MPLS labels. 128-bit IPv6 SIDs in the conventional representation.
Instruction Encoding MPLS label stack. IPv6 destination address and SRH where required.
Transport Foundation MPLS-capable infrastructure. IPv6-capable infrastructure with required SRv6 endpoint capabilities.
Service Integration MPLS service labels and supported policy mechanisms. SRv6 endpoint and service behaviours.
Encapsulation Overhead Four bytes per MPLS label entry. Depends on encapsulation, SRH size and SID representation.
Hardware Constraints Label-stack depth and MPLS processing capabilities. IPv6 extension header and SID processing capabilities.
Controller Integration Supported SR-MPLS policy control. Supported SRv6 policy control.

Neither architecture is universally superior. The appropriate choice depends on existing infrastructure, hardware support, operational experience, service requirements and migration objectives.

6.15 Encapsulation Overhead and MTU Engineering

Segment Routing introduces additional packet information that must be supported by the underlying transport infrastructure.

Consider an illustrative comparison using three MPLS labels and conventional SRv6 encapsulation containing three uncompressed SIDs.

12 B Three MPLS labels
56 B SRH with three SIDs and no TLVs
96 B Outer IPv6 header plus example SRH
ILLUSTRATIVE ENCAPSULATION CALCULATION
SR-MPLS:

  3 labels × 4 bytes = 12 bytes

SRv6:

  Outer IPv6 header = 40 bytes
  SRH fixed fields  = 8 bytes
  3 SIDs × 16 bytes = 48 bytes

  Total overhead    = 96 bytes

This comparison excludes additional service headers, optional TLVs, Layer 2 overhead and alternative SID encoding mechanisms. It is not a universal overhead comparison for every SR-MPLS and SRv6 deployment.

Valid Policy, Failed Packet Delivery

A controller may successfully establish a policy while larger packets fail because the encapsulated packet exceeds the available path MTU. Policy validity must therefore be verified separately from successful application packet delivery.

6.16 Segment Routing Policy Architecture

An SR Policy represents an engineered forwarding policy associated with a headend, colour and endpoint.

The policy can contain multiple candidate paths, each with its own preference and associated segment lists.

SEGMENT ROUTING POLICY HIERARCHY SR POLICY Headend R1 · Colour 100 · Endpoint R5 CANDIDATE PATH A Preference 200 VALID · ACTIVE CANDIDATE PATH B Preference 100 VALID · ALTERNATIVE SEGMENT LIST 16003 → 16004 → 16005 SEGMENT LIST 16002 → 16005 The highest-preference valid candidate path is normally selected
Figure 6.8 — An SR Policy containing two candidate paths. The valid candidate with preference 200 is selected over the valid candidate with preference 100.
Policy Component Responsibility
Headend Router responsible for applying the SR Policy to selected traffic.
Colour Identifies a policy intent or service classification.
Endpoint Identifies the policy's destination endpoint.
Candidate Path Represents a potential implementation of the policy.
Preference Contributes to selection among valid candidate paths.
Segment List Encodes forwarding instructions for the candidate path.
Weight Can support traffic distribution across multiple segment lists within an applicable candidate path.
Binding SID Provides a segment instruction associated with the policy.

Candidate path selection and segment-list load distribution are separate mechanisms. Selecting a preferred candidate does not mean that traffic is automatically distributed across every candidate path.

6.17 Explicit and Dynamic Candidate Paths

Candidate Path Model 01

Explicit Candidate Path

Contains segment lists supplied through configuration or a supported control mechanism. The required forwarding instructions are explicitly defined.

Candidate Path Model 02

Dynamic Candidate Path

Specifies an optimisation objective and applicable constraints. A path computation system calculates the segment lists needed to implement the policy.

CONCEPTUAL SR POLICY INTENT
sr_policy:

  headend: R1
  colour: 100
  endpoint: 10.0.0.5

  candidate_paths:

    - preference: 200
      type: dynamic

      objective:
        minimise: latency

      constraints:
        minimum_bandwidth_gbps: 20
        maximum_latency_ms: 15

    - preference: 100
      type: explicit

      segment_list:
        - 16002
        - 16005

Illustrative policy model, not vendor-specific configuration. The alternative explicit candidate may have different performance characteristics and must be evaluated against the intended fallback policy.

6.18 Colour-Based Traffic Steering

A controller may calculate several SR Policies towards the same destination endpoint, each representing a different service intent.

BGP colour information can be used by a headend to associate eligible service routes with an SR Policy having the corresponding colour and endpoint.

COLOUR-BASED TRAFFIC STEERING LOW-LATENCY SERVICE BGP Colour 100 HIGH-THROUGHPUT SERVICE BGP Colour 200 HEADEND R1 Route Resolution Colour + Endpoint SR POLICY 100 Endpoint R5 · Low Delay SR POLICY 200 Endpoint R5 · High Capacity Different service intents can resolve over different engineered transport paths
Figure 6.9 — Two service classifications resolve over different SR Policies towards the same endpoint. The exact steering behaviour depends on supported route-resolution mechanisms and configuration.
Colour Illustrative Intent Endpoint
100 Low-latency transport. R5
200 High-throughput transport. R5
300 Physically diverse transport. R5
400 Transport through approved infrastructure. R5

A Colour Is Not a Universal QoS Definition

The numeric colour value represents an administratively defined policy intent. Colour 100 does not inherently mean low latency, nor does assigning a colour automatically reserve bandwidth or configure packet scheduling.

6.19 Binding SIDs and Policy Abstraction

A Binding SID allows an existing Segment Routing policy to be referenced through a segment instruction.

Instead of exposing every internal segment of a policy to another headend, the network can reference the policy through its associated Binding SID.

BINDING SID POLICY ABSTRACTION Reach R3 Binding SID 25000 Continue to R8 Policy reference POLICY AT R3 Segment R4 Segment R5 Segment R6 Conceptual policy composition using a locally significant binding instruction
Figure 6.10 — A Binding SID references a policy at R3. The packet must reach the node where the binding instruction is meaningful.

Binding SIDs can support policy abstraction, hierarchical traffic engineering and policy composition.

However, referencing a policy through a Binding SID does not eliminate the underlying forwarding requirements. The router executing the policy must still support the required label stack or SRv6 processing.

6.20 PCEP and Stateful Path Control

PCEP provides communication between a Path Computation Client and a Path Computation Element.

In a stateful architecture, the PCE can maintain information about established paths and, subject to supported capabilities and delegation rules, request changes to path state.

PCEP Message Responsibility
OPEN Establishes session parameters and exchanges supported capabilities.
KEEPALIVE Supports session establishment and maintenance.
PCReq Requests path computation.
PCRep Returns a path computation result or applicable failure information.
PCRpt Reports path state in a stateful PCEP architecture.
PCUpd Requests updates to supported delegated path state.
PCInitiate Requests creation or removal of supported PCE-initiated paths.
PCErr Reports protocol or processing errors.
STATEFUL PCEP CONTROL SEQUENCE PCE PCC / HEADEND OPEN / Capabilities OPEN / Capabilities PCRpt · State synchronisation PCUpd · Delegated path update PCRpt · Updated state PCRpt · Operational status change Illustrative sequence; session handshakes and other exchanges omitted for clarity
Figure 6.11 — Simplified stateful PCEP control sequence. A headend reports path state and the PCE can request updates to appropriately delegated paths.

Controller Authority Is Explicit

A stateful PCEP session does not automatically grant a controller unrestricted authority over every path. Delegation, negotiated capabilities, configuration and local policy determine which operations are supported.

6.21 BGP SR Policy Distribution

PCEP is not the only mechanism available for distributing Segment Routing policies.

BGP SR Policy extensions allow supported policy information, including candidate paths and segment lists, to be distributed through BGP.

Control Mechanism 01

PCEP

Supports path computation communication, state reporting, delegation and applicable path lifecycle operations between a PCE and PCC.

Control Mechanism 02

BGP SR Policy

Supports distribution of SR Policy candidate-path information using BGP, including supported segment-list attributes.

The appropriate mechanism depends on the controller architecture, supported router capabilities, desired state synchronisation model and operational requirements.

Multiple Policy Sources Require Coordination

A headend may receive candidate paths from local configuration, PCEP and BGP. Candidate-path identity, preference and validity must be interpreted consistently to avoid unexpected policy selection.

6.22 End-to-End SDN Policy Lifecycle

01

Collect Network Topology

Receive BGP-LS advertisements and construct the topology graph with applicable Segment Routing attributes.

02

Enrich the Network State

Combine topology information with telemetry, inventory, resource allocations and service constraints.

03

Receive Service Intent

Identify the headend, endpoint, traffic class, optimisation objective and mandatory requirements.

04

Compute a Feasible Path

Evaluate network resources, routing metrics, latency and administrative constraints.

05

Construct the Segment List

Translate the computed path into supported node, adjacency or other segment instructions.

06

Validate Forwarding Capabilities

Verify SID reachability, segment scope, stack depth, encapsulation and relevant hardware limitations.

07

Distribute the Policy

Use supported PCEP, BGP SR Policy or configuration mechanisms to establish the policy at the headend.

08

Steer Application Traffic

Associate eligible traffic with the active policy using supported route resolution or classification mechanisms.

09

Verify and Reconcile

Confirm installed state, actual packet forwarding, service performance and consistency with controller intent.

6.23 Maximum SID Depth and Hardware Constraints

A mathematically valid computed path may require more segment instructions than the headend can impose or the forwarding architecture can process.

Maximum SID Depth, or MSD, information helps a controller understand applicable segment processing limitations.

8 Illustrative supported label imposition limit
10 Labels required by computed policy
FAIL Capability validation

The controller may need to compress the segment list, calculate a different feasible path or use supported hierarchical policy mechanisms.

MSD Is Not a Single Universal Hardware Limit

Different MSD types and forwarding operations describe different capabilities. A controller must evaluate the relevant advertised limit, including applicable node or link constraints and additional service encapsulation.

6.24 Segment List Compression

A controller does not necessarily need to represent every router in a computed path using a separate segment.

When an existing shortest path already follows the required network traversal, a single node segment may represent several consecutive forwarding hops.

CONCEPTUAL SEGMENT LIST COMPRESSION
Desired physical path:

  R1 → R2 → R3 → R4 → R5 → R6

Uncompressed node segment list:

  [R2, R3, R4, R5, R6]

Potential compressed segment list:

  [R4, R6]

Valid only if:

  SPF(R1, R4) follows R1-R2-R3-R4

  SPF(R4, R6) follows R4-R5-R6

  Relevant ECMP alternatives satisfy
  the required path constraints.

Segment compression reduces encapsulation overhead and hardware resource consumption, but must preserve the required forwarding semantics.

Compression Must Preserve Intent

A shorter segment list is useful only if its resulting forwarding behaviour still satisfies the service's constraints. ECMP alternatives and topology changes must be considered when exact traversal matters.

6.25 Fast Reroute and TI-LFA

A controller may require time to receive failure information, update its topology model and calculate a replacement policy.

Local fast reroute mechanisms can protect eligible traffic while the distributed control plane converges and the controller evaluates longer-term policy changes.

Topology Independent Loop-Free Alternate, or TI-LFA, uses Segment Routing capabilities to construct suitable local repair paths in supported network topologies.

LOCAL FAST REROUTE R1 R2 R3 R4 R5 LINK FAILURE Local repair point PRECOMPUTED REPAIR PATH Local repair can protect traffic before controller-driven reoptimisation
Figure 6.12 — Conceptual local repair around a failed link. Protection availability depends on topology, failure scope, forwarding capabilities and the protected instruction.
Recovery Layer 01

Local Fast Reroute

Provides rapid protection for eligible traffic using locally available repair forwarding state.

Recovery Layer 02

Controller Reoptimisation

Evaluates the changed network topology and establishes a longer-term policy consistent with service requirements.

Fast Recovery and Optimal Recovery Are Different

Local protection prioritises restoring forwarding quickly. The controller subsequently evaluates whether the repaired path continues to satisfy bandwidth, latency and other service constraints.

6.26 Controller Failure and Forwarding Continuity

One important advantage of a hybrid SDN architecture is that the underlying distributed routing system does not necessarily depend on continuous controller connectivity.

Existing forwarding state may continue operating during a controller outage, subject to policy retention rules, session behaviour and the validity of the installed instructions.

Component Potential Behaviour During Controller Outage
OSPF / IS-IS Continues distributed routing while participating routers and links remain operational.
Existing SR Policy May remain installed according to policy ownership and retention behaviour.
New Path Computation Centralised computation may become unavailable.
BGP-LS Collection Topology information may become unavailable or stale at the controller.
Local Fast Reroute May continue protecting eligible forwarding instructions.
Service Optimisation Centralised reoptimisation may be delayed until control connectivity is restored.

Controller high availability must therefore be considered separately from forwarding high availability.

Do Not Assume Every Policy Survives a Controller Outage

Policy retention depends on how the candidate path was established, session failure handling, configured timers and implementation behaviour. Production designs must explicitly test these failure conditions.

6.27 Production Incident: Valid Policy, Incorrect Path

Consider a controller responsible for steering a latency-sensitive service through the following transport path:

EXPECTED FORWARDING
R1 → R3 → R4 → R5

Required delay: ≤ 15 ms

Initial measured delay: 12 ms

Installed node segment list:

  [16003, 16004, 16005]

A link failure changes the shortest path between R3 and R4.

The R4 node SID remains reachable, but the underlying IGP now forwards traffic through an additional transit router.

OBSERVED FORWARDING
R1 → R3 → R6 → R4 → R5

Required delay: ≤ 15 ms

Observed delay: 24 ms

Policy reachability: VALID

Service compliance: FAILED
SEGMENT ROUTING INCIDENT TIMELINE
BASELINE SR Policy 100 active; measured delay 12 ms.
LINK DOWN Direct R3–R4 adjacency becomes unavailable.
IGP R4 remains reachable through R6.
POLICY Existing node segment list remains reachable.
TELEMETRY Measured service delay increases to 24 ms.
SLA Maximum permitted latency exceeded.
COMPUTE Controller evaluates replacement candidate paths.
UPDATE Install a validated alternative if one satisfies the service constraints.
VERIFY Measure actual forwarding and service compliance.

Illustrative incident timings and events, not measured convergence results from a specific implementation.

Reachability Is Not the Same as Service Compliance

The policy may remain technically valid because its segments are reachable. However, the actual forwarding path can violate the original latency or infrastructure requirements. Operational verification must evaluate both forwarding validity and service intent.

6.28 Production Incident: BGP-LS Topology Inconsistency

A controller may receive incomplete, delayed or inconsistent topology information.

Consider a controller whose topology database still contains an adjacency that has already failed in the forwarding network.

Controller State

Link R3–R4: UP

The controller's existing topology snapshot still identifies the adjacency as available for path computation.

Actual Network State

Link R3–R4: DOWN

The underlying router has already detected the failure and removed or invalidated the affected forwarding adjacency.

A newly calculated policy may consequently reference an unavailable adjacency or produce a forwarding result that differs from the controller's intended traversal.

Investigation Area Evidence to Examine
Underlying IGP Adjacency state, link-state database and topology convergence.
BGP-LS Producer Exported link information and applicable withdrawals.
BGP-LS Session Session state, update delivery and topology information freshness.
Controller Database Topology version, ingestion status and resource consistency.
Computed Policy Referenced nodes, adjacencies and SID mappings.
Headend State Candidate validity, installed forwarding entries and reported errors.

Reliable controller design requires topology freshness monitoring, appropriate validation before policy installation and reconciliation after operational changes.

6.29 Segment Routing Security Architecture

A programmable transport network introduces important security boundaries.

A controller that can establish forwarding policies may influence traffic paths across a substantial part of the infrastructure. Its interfaces and control sessions must therefore be appropriately protected.

Security Boundary 01

Controller Access

Apply strong authentication, role-based authorisation, management-plane isolation and auditable policy changes.

Security Boundary 02

Control Sessions

Protect BGP-LS and PCEP sessions using supported authentication, transport protection and network access controls.

Security Boundary 03

Topology Information

Restrict access to detailed infrastructure information and validate the sources supplying network topology.

Security Boundary 04

Segment Domain Protection

Prevent unauthorised injection of MPLS labels or SRv6 instructions from untrusted network boundaries.

Security Boundary 05

Policy Authorisation

Validate requested endpoints, traffic classifications, permitted infrastructure and the authority of policy requesters.

Security Boundary 06

Operational Auditing

Maintain records of policy requests, candidate selection, installation results and unexpected forwarding changes.

6.30 Engineering Verification Checklist

Verification Layer Engineering Question
IGP Does the distributed routing underlay have correct topology and reachability?
BGP-LS Does the controller receive accurate and sufficiently current topology information?
Traffic Engineering Database Are topology, resources, metrics and shared-risk information consistent?
SID Database Are segment identifiers, scope and label mappings correct?
Path Computation Does the selected path satisfy mandatory service constraints?
PCEP / BGP SR Policy Was the intended candidate path successfully delivered to the headend?
Candidate Selection Is the expected valid candidate path active?
Traffic Steering Is the intended application traffic resolving over the correct policy?
Forwarding Hardware Can the device impose and process the required segment instructions?
MTU Can the complete encapsulated packet traverse the selected path?
Data Plane Does actual packet traversal match the required forwarding behaviour?
Service Compliance Does the operational path satisfy latency, bandwidth and resilience requirements?

6.31 Engineering Standards and Further Reading

The following IETF specifications provide the architectural and protocol foundations for the technologies discussed in this section.

Section 06 — Key Engineering Takeaway

BGP-LS, PCEP and Segment Routing provide complementary building blocks for hybrid SDN transport architectures. BGP-LS distributes topology information, path computation systems evaluate service requirements, and supported policy-control mechanisms establish forwarding instructions. SR-MPLS and SRv6 execute those instructions using distributed forwarding state. Production correctness requires accurate topology information, valid segment encoding, hardware capability validation, appropriate traffic steering and continuous verification of actual service performance.

Looking Ahead: Dynamic SDN Traffic Engineering

Having examined how controllers discover network topology and establish Segment Routing policies, the next section explores how those policies can be dynamically adapted to changing network conditions.

We will investigate congestion detection, telemetry-driven optimisation, traffic matrices, application-aware rerouting, bandwidth allocation, closed-loop automation and the operational safeguards required to prevent unstable forwarding behaviour.

Network Insight · Interactive Engineering 06

BGP-LS & Segment Routing Policy Explorer

Follow the complete engineering journey from BGP Link-State topology advertisements to controller path computation, PCEP policy installation and Segment Routing forwarding. Investigate how explicit segment instructions steer traffic through a programmable network.
BGP-LS session Established
Controller NLRI records 0
Installed SR policy None
Packets delivered 0

SDN Control & Segment Routing Fabric

CONTROL PLANE READY
APPLICATION INTENT Traffic Engineering Policy Request SDN CONTROLLER / STATEFUL PCE BGP-LS RIB 0 RECORDS TED / GRAPH EMPTY SR POLICY NOT INSTALLED BGP-LS UPDATE PCEP PCInitiate SEGMENT ROUTING TRANSPORT DOMAIN BGP-LS UPDATE SR PACKET BGP-LS EXPORT · PCE COMPUTATION · PCEP · SR FORWARDING NETWORK INSIGHT / PROGRAMMABLE ROUTING
BGP-LS topology export PCEP policy control Installed or traced path Failed link

SR Policy Engineering

Physical topology changes are not automatically exported in this lab. Explicitly export BGP-LS updates to synchronise the controller database.
Control plane and forwarding sequence
Awaiting topology advertisements
Export the network topology using BGP-LS to populate the controller's Traffic Engineering Database.
01
BGP-LS
02
Build TED
03
Compute SR
04
PCEP
05
Forward
Data plane encapsulation

SR-MPLS Label Stack

ORIGINAL APPLICATION IP PACKET
The top MPLS label represents the currently active segment.
Policy lifecycle

Controller vs Headend State

Headend / PCC R1
Endpoint R6 / 10.0.0.6
Physical topology v1
Controller TED Empty
Desired policy None
Installed policy None
Current router —
Active segment —
Forwarding outcome Awaiting packet
Packets dropped 0
Topology distribution protocol

BGP-LS Link-State NLRI Database

NLRI type Identifier Topology information Attributes
BGP-LS distributes topology information to external consumers. It does not directly install the Segment Routing forwarding policy in this architecture. Select a record to inspect its illustrative decoded representation.
Protocol evidence

Decoded BGP-LS Advertisement

No BGP-LS advertisement received.
Policy distribution

PCEP Policy Inspector

No SR policy computed.

Control Plane & Forwarding Event Console

EXPERIMENT 01

Topology to SR Policy

Export BGP-LS topology, compute the lowest-cost policy and install it using PCEP. Send a packet and observe how a single destination Node SID follows the IGP shortest path.
EXPERIMENT 02

Node SID vs Adjacency SID

Select the lower-corridor waypoint policy. Compare its segment list with the strict lower-corridor policy. Observe the difference between shortest-path instructions and explicit adjacency instructions.
EXPERIMENT 03

Stale Controller Topology

Install the strict lower-corridor policy. Disconnect BGP-LS and fail R4–R5. Send a packet and investigate the failed adjacency. Reconnect, export topology and compute a replacement policy.
Engineering principle: BGP-LS provides topology visibility, PCEP can distribute computed paths, and Segment Routing provides forwarding instructions that steer packets through the network. A Node SID normally follows the IGP shortest path towards its associated node. An adjacency SID instructs a router to use a specific local adjacency. SR-MPLS represents segments using MPLS labels. SRv6 represents segments using IPv6 addresses associated with network functions and endpoint behaviours. This laboratory uses simplified BGP-LS records, symmetric IGP costs, a common SR-MPLS global label block, deterministic shortest paths and illustrative PCEP messages. SRv6 uses simplified End and End.X behaviours. It does not implement binary protocol encoding, full SRH processing, PHP, ECMP, TI-LFA or automatic policy protection.
07
Network Insight · SDN Routing Engineering
INTELLIGENT NETWORK OPTIMISATION

SDN Traffic Engineering

The real power of software-defined routing emerges when the network can adapt its forwarding behaviour to changing application demands, congestion conditions and service requirements.

Traditional routing protocols are primarily designed to establish reachability and select paths according to distributed routing metrics and policies. SDN traffic engineering introduces a broader optimisation problem: how should available network resources be allocated across competing traffic demands while preserving performance, resilience and operational stability?

Answering this question requires topology awareness, traffic measurement, resource modelling, constrained optimisation, programmable forwarding and continuous verification.

Traffic Engineering Traffic Matrix Streaming Telemetry Congestion Detection Multi-Commodity Flow Weighted Multipath Admission Control Closed-Loop Automation Hysteresis

7.1 Why Shortest-Path Routing Is Not Always Optimal

A shortest-path routing algorithm selects a path according to an associated routing metric. However, the path with the lowest routing cost is not necessarily the path with the lowest current latency, greatest available capacity or best application performance.

Multiple traffic demands may converge onto the same links even when alternative network resources remain underutilised.

NETWORK RESOURCE OPTIMISATION SHORTEST-PATH ROUTING SDN TRAFFIC ENGINEERING R1 R2 R3 R4 R1 R2 R3 R4 95% UTILISATION 15% UTILISATION 60% UTILISATION 50% UTILISATION Concentrated demand Redistributed demand Equal-capacity paths · Illustrative traffic redistribution
Figure 7.1 — Traffic engineering redistributes eligible traffic across available paths. In this illustrative equal-capacity network, 35 percentage points of utilisation are moved from the congested path to the alternative path.

Reachability Is Only the Starting Point

A network can have completely correct routing tables and still deliver poor application performance. Traffic engineering evaluates how forwarding resources are actually being consumed.

7.2 Traffic Engineering Objectives

Traffic engineering is not a single optimisation algorithm. Different networks have different objectives, and several objectives may compete with one another.

Objective 01

Minimise Maximum Link Utilisation

Distribute traffic so that the most heavily loaded network resource operates at a lower utilisation level.

Objective 02

Minimise Application Latency

Select paths according to propagation, processing and queueing delay requirements.

Objective 03

Maximise Admitted Demand

Allocate available resources to satisfy as much eligible traffic demand as possible within defined constraints.

Objective 04

Improve Network Resilience

Preserve sufficient alternative capacity and path diversity to accommodate expected failure scenarios.

Objective 05

Preserve Service Isolation

Enforce infrastructure, administrative and security constraints when selecting paths for different services.

Objective 06

Minimise Operational Disruption

Avoid unnecessary forwarding changes, excessive policy churn and disruptive traffic migration.

A production controller may combine several objectives using weighted optimisation, priority ordering or explicit constraints. The correct balance depends on the services supported by the network.

7.3 The Network Traffic Matrix

A traffic matrix describes the estimated or measured traffic demand between network ingress and egress points.

Instead of examining each individual interface in isolation, the controller can evaluate how traffic demands interact across the complete network.

Ingress / Egress Site A Site B Site C Site D Total
Site A — 40 25 10 75
Site B 20 — 35 5 60
Site C 15 25 — 45 85
Site D 10 15 30 — 55
Table 7.1 — Illustrative directional traffic matrix measured in Gbps. Each row represents an ingress site and each column represents an egress site.
4 Network sites
12 Directional traffic demands
275 Total offered demand · Gbps

The controller maps these demands onto candidate forwarding paths. It can then estimate the resulting load on each network link.

A Traffic Matrix Is an Estimate of Demand

Observed throughput may underestimate offered demand when traffic is already being dropped, shaped or constrained. Controllers must account for measurement uncertainty, sampling limitations and changing application behaviour.

7.4 How Traffic Demand Becomes Link Utilisation

Every traffic demand consumes resources along its selected path. Multiple demands sharing the same link contribute to the aggregate load on that resource.

Link Utilisation = Traffic Load ÷ Link Capacity Multiply by 100 to express utilisation as a percentage.
ILLUSTRATIVE LINK LOAD CALCULATION
Link capacity = 100 Gbps

Demand A = 40 Gbps
Demand B = 30 Gbps
Demand C = 25 Gbps

Aggregate load = 95 Gbps

Utilisation = 95 / 100 × 100

Utilisation = 95%

The controller can evaluate alternative path assignments before applying forwarding changes to the live network.

However, utilisation alone does not completely describe congestion. Traffic burstiness, queue scheduling, packet size and available buffering can significantly influence the observed application experience.

7.5 Minimax Traffic Engineering

A common traffic engineering objective is to minimise the maximum utilisation of any network link.

This is often described as minimax optimisation because the controller attempts to reduce the worst resource utilisation across the network.

Minimise max(U₁, U₂, ... Uₙ) U represents the utilisation of an individual network link.
BEFORE OPTIMISATION
Link A 95%
Link B 15%
Link C 45%
AFTER OPTIMISATION
Link A 55%
Link B 55%
Link C 45%
95% Initial maximum utilisation
55% Optimised maximum utilisation
40 pp Maximum utilisation reduction

In this simplified example, Links A and B are independent, equal-capacity alternatives. Moving 40 Gbps between two 100 Gbps paths reduces the maximum utilisation from 95% to 55%.

Optimise the Network, Not Just the Individual Flow

The best path for one application in isolation may not produce the best outcome for all applications. Network-wide optimisation considers the combined impact of competing traffic demands.

7.6 Multi-Commodity Flow Optimisation

In mathematical network optimisation, a commodity represents a traffic demand between a particular source and destination.

The multi-commodity flow problem evaluates how multiple independent demands can share the same network while respecting resource constraints.

MULTI-COMMODITY FLOW MODEL S1 S2 R1 R2 R3 R4 D1 D2 Demand A Demand B SHARED CAPACITY Alternative forwarding resources Multiple source-destination demands compete for common infrastructure
Figure 7.2 — Multiple traffic commodities share common network resources. A controller may redistribute eligible demand across alternative paths to satisfy capacity constraints.

A simplified optimisation model must consider three fundamental conditions.

01

Demand Satisfaction

The admitted traffic assigned to candidate paths must satisfy the required source-to-destination demand.

02

Flow Conservation

At intermediate forwarding nodes, incoming and outgoing flow quantities must remain consistent within the model.

03

Capacity Constraints

Aggregate admitted traffic on each link must not exceed its permitted capacity.

Additional constraints may represent latency requirements, path diversity, security boundaries, forwarding capabilities and limits on the number of active paths.

Mathematical Feasibility Is Not Forwarding Feasibility

A mathematical model may allow traffic to be divided into arbitrary fractional quantities. Real forwarding devices may distribute traffic using flow hashing, discrete weights or hardware-specific mechanisms. The computed solution must be translated into implementable forwarding behaviour.

7.7 Streaming Telemetry Architecture

Dynamic traffic engineering depends on accurate and sufficiently timely information about the operational network.

Streaming telemetry allows supported network devices to export operational measurements to external collectors and analytics systems.

TELEMETRY-DRIVEN TRAFFIC ENGINEERING SDN OPTIMISATION ENGINE Demand estimation · Constraints · Policy decisions TELEMETRY COLLECTOR Time series · Events · Flow records POLICY INSTALLATION PCEP · APIs · Supported control protocols R1 R2 R3 R4 Measurement → Analysis → Policy → Forwarding → Measurement
Figure 7.3 — A conceptual telemetry-driven SDN architecture. Telemetry collection and policy installation are logically separate functions, although both may involve the same network devices.
Measurement Engineering Value
Interface Octet Counters Estimate traffic rates and link utilisation over measurement intervals.
Queue Occupancy Identify pressure on packet buffers and potential queueing delay.
Packet Drops Identify traffic loss and possible resource exhaustion.
ECN Marking Observe supported explicit congestion notification behaviour.
Flow Records Estimate traffic composition and source-destination demand.
Active Measurements Measure applicable path delay, loss and service availability.
Optical Measurements Identify physical-layer degradation that may influence network reliability.
Policy Counters Verify that traffic is actually using the intended forwarding policy.

7.8 Telemetry Collection Technologies

Collection Mechanism

gNMI

Supports model-driven network management operations and subscriptions to operational data using supported data models and subscription modes.

Collection Mechanism

IPFIX

Exports traffic flow information that can support demand estimation, traffic classification and network usage analysis.

Collection Mechanism

sFlow

Uses sampled packet information and counter samples to provide scalable visibility into network traffic characteristics.

Measurement Mechanism

TWAMP and STAMP

Support active measurement of applicable network performance characteristics using measurement packets exchanged between endpoints.

A production controller may combine several collection mechanisms because no individual measurement source provides complete visibility into every aspect of forwarding behaviour.

7.9 Calculating Utilisation from Interface Counters

Network devices commonly expose cumulative interface octet counters. A collector can estimate the average traffic rate by measuring the counter difference over a known time interval.

Rate = 8 × ΔOctets ÷ ΔTime Rate in bits per second when time is measured in seconds.
INTERFACE COUNTER EXAMPLE
Measurement interval = 10 seconds

Octet counter increase:

  100,000,000,000 bytes

Average traffic rate:

  8 × 100,000,000,000 / 10

  = 80,000,000,000 bits/s

  = 80 Gbps

Interface capacity = 100 Gbps

Estimated utilisation = 80%

The collector must account for counter resets, counter wrapping, measurement timestamps, interface speed changes and the precise counter semantics.

Average Utilisation Can Hide Microbursts

An interface reporting moderate average utilisation may still experience brief periods of severe queue pressure. Coarse sampling intervals can conceal congestion events that are significant to latency-sensitive applications.

7.10 Congestion Is More Than High Utilisation

High utilisation indicates that a substantial proportion of a link's capacity is being consumed. Congestion occurs when offered traffic competes for insufficient forwarding resources.

Queue growth, increased latency, congestion marking and packet loss can provide additional evidence of congestion.

OUTPUT QUEUE CONGESTION OFFERED LOAD OUTPUT BUFFER LINK CAPACITY 120 Gbps 100 Gbps QUEUE GROWTH Sustained offered load above service capacity cannot be absorbed indefinitely
Figure 7.4 — A simplified output queue receiving traffic faster than the interface can transmit it. Persistent excess demand eventually requires traffic reduction, marking, dropping or another resource-management response.
Signal Possible Interpretation
High Utilisation Limited remaining average transmission capacity.
Growing Queue Incoming traffic temporarily or persistently exceeds the queue's service rate.
Increasing Latency Potential queueing, path changes or processing delays.
ECN Marks Congestion signalling according to the configured marking behaviour.
Packet Drops Possible buffer exhaustion, policing, physical errors or another discard mechanism.
Retransmissions Possible end-to-end packet loss or transport-layer recovery activity.

7.11 Application-Aware Traffic Engineering

Different applications place different requirements on the underlying network.

An SDN controller can associate traffic classifications with forwarding policies designed around those requirements.

Application Primary Requirements Potential TE Objective
Voice and Video Low delay, low jitter and limited packet loss. Latency-aware forwarding.
Financial Transactions Predictable latency and high availability. Low-delay, resilient paths.
Backup and Replication High throughput and acceptable completion time. Capacity-aware forwarding.
AI Training High collective communication throughput and congestion control. Fabric-wide resource balancing.
Interactive AI Inference Predictable response latency and service availability. Latency and availability optimisation.
Management Traffic Reliable reachability and appropriate isolation. Protected management connectivity.

Application Awareness Requires Classification

The controller must have a reliable mechanism for associating traffic with service intent. Classification may use application metadata, routing policy, tenant identity, DSCP markings or supported flow classification. Encrypted traffic can limit direct application identification.

7.12 Weighted Multipath Forwarding

Equal-Cost Multipath forwarding distributes eligible traffic across multiple equal-cost next hops.

In supported architectures, weighted multipath mechanisms allow unequal traffic distribution across available forwarding paths.

WEIGHTED MULTIPATH FORWARDING HEADEND 100 Gbps demand ENDPOINT Aggregate traffic PATH A · 50% PATH B · 30% PATH C · 20% Relative forwarding weights represent intended distribution, not exact guarantees
Figure 7.5 — Illustrative weighted traffic distribution across three eligible paths. Actual traffic distribution depends on forwarding implementation and traffic composition.
WEIGHTED FORWARDING EXAMPLE
Path A weight = 5
Path B weight = 3
Path C weight = 2

Total weight = 10

Target distribution:

  Path A = 5 / 10 = 50%
  Path B = 3 / 10 = 30%
  Path C = 2 / 10 = 20%

For 100 Gbps offered demand:

  Expected Path A load ≈ 50 Gbps
  Expected Path B load ≈ 30 Gbps
  Expected Path C load ≈ 20 Gbps

Forwarding Weights Do Not Guarantee Exact Bandwidth Allocation

Flow-based hashing may produce uneven traffic distribution, especially when a small number of large flows dominate demand. Packet-level distribution can improve balancing in some architectures but may introduce packet reordering unless appropriately managed.

7.13 Elephant and Mice Flows

Network traffic is frequently composed of many relatively small flows and a smaller number of very large flows.

Traffic Characteristic

Elephant Flows

Large or sustained traffic flows that consume a substantial proportion of available network bandwidth. Examples may include large data transfers and distributed storage replication.

Traffic Characteristic

Mice Flows

Relatively small or short-lived flows that may be particularly sensitive to queueing delay, especially when associated with interactive applications.

A network with thousands of active flows may still exhibit significant forwarding imbalance if several elephant flows are assigned to the same path.

ILLUSTRATIVE TRAFFIC COMPOSITION
Elephant flows · 5% of flow count 80% of bytes
Mice flows · 95% of flow count 20% of bytes

The percentages above are illustrative rather than universal traffic characteristics. Actual distributions depend on workload behaviour.

SDN traffic engineering can identify eligible large flows and selectively move them instead of unnecessarily changing the forwarding behaviour of every application.

7.14 Bandwidth Allocation and Admission Control

A controller may receive a request to establish a new service with a specific bandwidth requirement.

Before accepting the request, the controller must evaluate whether sufficient resources exist along a feasible path.

Candidate Path Available Allocatable Capacity Requested Bandwidth Result
Path A 15 Gbps 20 Gbps Rejected
Path B 35 Gbps 20 Gbps Feasible
Path C 10 Gbps 20 Gbps Rejected
CONCEPTUAL ADMISSION CONTROL RESULT
Service request:

  source: PE1
  destination: PE5

  required_bandwidth_gbps: 20

Selected candidate:

  path: B
  allocatable_capacity_gbps: 35

Decision:

  status: ADMITTED
  allocated_bandwidth_gbps: 20
  remaining_allocatable_gbps: 15

Controller Accounting Is Not a Bandwidth Guarantee

Recording a bandwidth allocation in the controller does not automatically reserve physical forwarding capacity. Actual service guarantees require suitable admission enforcement, scheduling, shaping, policing and resource management throughout the applicable network.

7.15 Headroom and Failure-Aware Capacity Planning

A network operating efficiently under normal conditions may become overloaded when a major link or router fails.

Traffic engineering must therefore consider not only current utilisation but also the traffic redistribution expected during credible failure scenarios.

200 Total capacity · Gbps
140 Offered traffic · Gbps
140% Offered load after one path fails

Consider two independent 100 Gbps paths carrying 70 Gbps each. Normal operation appears healthy at 70% utilisation per path.

If one path fails, the remaining 100 Gbps path cannot carry the full 140 Gbps offered demand.

SINGLE-PATH FAILURE CAPACITY
Remaining transmission capacity 100 Gbps
Offered demand 140 Gbps
Both bars use a common 140 Gbps scale. The excess offered demand is 40 Gbps.

Normal-State Efficiency Is Not Failure-State Resilience

A controller should evaluate expected traffic redistribution during link, node and shared-risk failures. Otherwise, an apparently efficient normal-state solution may create unacceptable congestion during an incident.

7.16 Shared Risk Link Groups

Two logically distinct network paths may share the same physical infrastructure.

A fibre cut, power failure or optical transport incident can therefore affect multiple paths simultaneously.

SHARED PHYSICAL INFRASTRUCTURE RISK SHARED FIBRE CONDUIT · SRLG 17 R1 R5 Path A Path B ONE PHYSICAL FAILURE CAN AFFECT BOTH PATHS
Figure 7.6 — Logical path diversity does not guarantee physical failure diversity. Shared Risk Link Group information helps represent common infrastructure risks.

A controller can use available shared-risk information when computing primary and protection paths. The accuracy of the resulting protection model depends on the completeness of the underlying infrastructure inventory.

7.17 Closed-Loop Traffic Engineering

Closed-loop automation combines network observation, analysis, decision-making, policy execution and verification into a continuous operational process.

Instead of calculating a forwarding policy once and assuming it remains optimal, the controller evaluates the network's response to changing conditions and to its own actions.

CLOSED-LOOP NETWORK AUTOMATION NETWORK INTENT Service objectives OBSERVE ANALYSE COMPUTE VALIDATE EXECUTE VERIFY Collect telemetry Identify deviation Evaluate alternatives Apply guardrails Install policy Measure outcome
Figure 7.7 — Closed-loop traffic engineering continually compares operational network behaviour against defined service objectives.
01

Observe

Collect topology information, interface measurements, queue statistics and application performance indicators.

02

Analyse

Determine whether the observed condition represents a meaningful deviation from the required operational state.

03

Compute

Evaluate candidate forwarding changes and estimate their network-wide consequences.

04

Validate

Check topology freshness, capacity, security constraints, hardware capabilities and change safety.

05

Execute

Apply the approved forwarding changes using the supported network control mechanisms.

06

Verify

Measure actual traffic distribution, service performance and forwarding state. Reconcile or roll back unsuccessful changes.

7.18 Threshold-Based Congestion Detection

A simple automation policy might trigger traffic engineering when link utilisation exceeds a configured threshold.

However, reacting immediately to every threshold crossing can produce excessive forwarding changes.

SIMPLIFIED CONGESTION POLICY
IF:

  link_utilisation > 85%

AND:

  condition_duration >= 30 seconds

AND:

  telemetry_is_fresh == true

THEN:

  evaluate_alternative_paths()

  validate_resource_constraints()

  estimate_network_wide_impact()

  apply_change_if_safe()

These thresholds and timers are illustrative. Appropriate values depend on workload characteristics, telemetry intervals, available capacity and the required response time.

7.19 Hysteresis and Traffic Oscillation

An SDN controller that reacts too aggressively to changing utilisation may repeatedly move traffic between competing paths.

Moving traffic away from one path reduces its utilisation but increases utilisation elsewhere. The controller may then reverse its previous decision.

HYSTERESIS AND CONTROL STABILITY 100% 75% 50% 25% 0% HIGH THRESHOLD · 85% RECOVERY THRESHOLD · 65% Validated policy change Time →
Figure 7.8 — Separate congestion and recovery thresholds provide hysteresis. The illustrated policy change occurs after the high threshold has been exceeded for a qualifying period.
Control Parameter Illustrative Value Purpose
High Threshold 85% Identify potential congestion.
Recovery Threshold 65% Require meaningful recovery before clearing congestion state.
Detection Duration 30 seconds Avoid reacting to brief threshold crossings.
Recovery Duration 60 seconds Confirm sustained improvement.
Change Cooldown 120 seconds Limit repeated non-emergency policy changes.
Minimum Improvement 10 percentage points Avoid changes with insignificant predicted benefit.

The Controller Is Part of the System It Controls

Every traffic engineering decision changes the measurements used for subsequent decisions. Hysteresis, rate limiting, change penalties and outcome verification help prevent unstable feedback behaviour.

7.20 Make-Before-Break Policy Changes

Replacing a forwarding policy can introduce temporary packet loss, forwarding inconsistencies or unexpected traffic movement if the new policy is not ready before the existing policy is removed.

Where supported, make-before-break procedures establish and validate replacement forwarding state before retiring the previous state.

MAKE-BEFORE-BREAK POLICY MIGRATION STAGE 01 STAGE 02 STAGE 03 Existing policy Prepare new policy Switch traffic OLD PATH · ACTIVE NEW PATH · NOT INSTALLED OLD PATH · ACTIVE NEW PATH · READY OLD PATH · DRAIN / RETIRE NEW PATH · ACTIVE Prepare → Validate → Activate → Verify → Retire
Figure 7.9 — Conceptual make-before-break forwarding migration. The old policy remains available while the replacement is prepared and validated.

Make-Before-Break Does Not Automatically Eliminate Disruption

Packet reordering, transient congestion and inconsistent updates may still occur. Safe migration depends on the forwarding technology, update ordering, resource availability and traffic characteristics.

7.21 Consistent Network Updates

In an SDN architecture, a forwarding change may require coordinated updates across several network devices.

If those updates become active in an unsafe order, packets may encounter forwarding state that combines incompatible parts of the old and new policies.

Update Risk 01

Transient Blackholes

Traffic is directed towards a device that has not yet installed the required forwarding entry.

Update Risk 02

Transient Forwarding Loops

Inconsistent forwarding entries temporarily direct traffic back towards a previous forwarding node.

Update Risk 03

Transient Congestion

Several independently migrated traffic demands temporarily compete for insufficient link capacity.

Update Risk 04

Policy Inconsistency

Traffic traverses a combination of forwarding states that does not preserve the required service or security intent.

Supported techniques include dependency-aware update ordering, staged deployment, versioned forwarding rules, transactional operations and coordinated traffic migration.

Source-routing architectures can reduce some distributed policy-update dependencies by placing the forwarding instruction list at the headend. However, underlying reachability and segment processing state must still be valid.

7.22 Production Incident: Congestion Migration

Consider a controller responsible for relieving congestion on Path A.

Both Path A and Path B have a capacity of 100 Gbps. Path A currently carries 95 Gbps while Path B carries 60 Gbps.

INITIAL NETWORK STATE
Path A 95 Gbps
Path B 60 Gbps

A poorly designed automation policy moves an entire 50 Gbps traffic demand from Path A to Path B without validating the destination path's capacity.

PREDICTED STATE AFTER UNSAFE CHANGE
Path A offered load 45 Gbps
Path B offered load 110 Gbps

Path B now receives offered demand exceeding its transmission capacity. The controller has moved congestion rather than resolving it.

A more appropriate solution would move approximately 17.5 Gbps if traffic can be divided with sufficient granularity.

BALANCED TARGET STATE
Path A 77.5 Gbps
Path B 77.5 Gbps

Evaluate the Destination Path Before Moving Traffic

Every traffic migration must account for the existing load, available capacity and constraints of the receiving path. If the traffic demand cannot be divided safely, the controller must evaluate other feasible alternatives.

7.23 Production Incident: Stale Telemetry

Traffic engineering decisions are only as reliable as the network information used to calculate them.

A controller may calculate a forwarding change using a telemetry snapshot that no longer represents the current operational network.

Controller Snapshot

Path B: 35 Gbps

The most recently processed measurement indicates that Path B has substantial remaining capacity.

Actual Network State

Path B: 85 Gbps

A new application workload has increased traffic demand since the previous measurement.

The controller attempts to move an additional 25 Gbps onto Path B, expecting the resulting load to be 60 Gbps.

In reality, the offered load becomes 110 Gbps on a 100 Gbps path.

TRAFFIC ENGINEERING INCIDENT TIMELINE
TELEMETRY Path B measured load: 35 Gbps.
COLLECTOR Telemetry processing becomes delayed.
WORKLOAD New application demand increases Path B load to 85 Gbps.
COMPUTE Controller calculates policy using an outdated 35 Gbps measurement.
INSTALL Additional 25 Gbps demand assigned to Path B.
CONGESTION Actual offered load reaches 110 Gbps.
VERIFY Observed forwarding outcome differs from predicted state.
RECOVERY Stop further changes and evaluate a safe corrective policy.
Illustrative incident timeline, not measured production data.

Freshness Must Be an Explicit Policy Constraint

Controllers should track measurement timestamps, collection delays, topology versions and confidence in the network state. Automated optimisation may need to be suspended when critical measurements are missing or stale.

7.24 Production Incident: Competing Automation Systems

Modern networks may contain multiple systems capable of influencing forwarding behaviour.

An SDN controller, routing protocol, application orchestrator and congestion control mechanism may all react to the same underlying performance problem.

Automation System A

SDN Controller

Moves selected traffic away from a congested path according to network-wide utilisation measurements.

Automation System B

Application Orchestrator

Moves application workloads to another site because the original service path exhibits increased latency.

If both systems operate independently, their combined changes may create a new traffic distribution that neither system predicted.

Coordinate Automation Ownership

Production architectures should define which system owns each control decision, how concurrent changes are coordinated and how conflicting optimisation objectives are resolved.

7.25 Traffic Engineering in AI Data Centre Networks

AI infrastructure introduces demanding communication patterns that can expose limitations in conventional network load distribution.

Distributed AI training involves collective communication between GPU workers. Large synchronised transfers can create substantial traffic bursts and contention across the network fabric.

AI GPU FABRIC TRAFFIC DISTRIBUTION FABRIC OPTIMISATION Visibility · Policy · Resource planning SPINE 1 SPINE 2 LEAF 1 LEAF 2 LEAF 3 LEAF 4 GPU POD A GPU POD B GPU POD C GPU POD D Multiple fabric paths support concurrent distributed workloads
Figure 7.10 — Conceptual AI leaf-spine fabric with concurrent GPU communication demands traversing different network paths.

Traffic engineering in these environments may consider workload placement, communication patterns, fabric capacity and supported adaptive routing mechanisms.

However, fast congestion events often require responses at the transport, NIC or switch level. A centralised controller is not normally responsible for every packet-level congestion decision.

Control Layer Potential Responsibility
GPU Workload Scheduler Placement of distributed workloads and allocation of compute resources.
Fabric Controller Topology visibility, configuration, policy and broader resource optimisation.
Switch Forwarding Plane High-speed forwarding, queue management and supported adaptive path selection.
Transport / NIC Applicable congestion feedback, rate control and transport recovery mechanisms.
Observability Platform Correlation of network measurements with workload performance.

Different Control Loops Operate at Different Timescales

Hardware-level congestion mechanisms can respond much faster than a centralised optimisation system. Effective AI infrastructure combines fast local control with slower network-wide optimisation rather than treating them as interchangeable mechanisms.

7.26 Production Traffic Engineering Guardrails

A production SDN controller should not install a forwarding change simply because an optimisation algorithm predicts an improvement.

Operational guardrails determine whether the proposed action is safe, authorised and implementable.

Guardrail 01

Maximum Utilisation

Reject proposed changes that exceed configured resource limits or consume required failure headroom.

Guardrail 02

Topology Freshness

Require sufficiently current topology and measurement information before approving forwarding changes.

Guardrail 03

Change Rate Limiting

Restrict the frequency and volume of non-emergency policy changes to reduce instability.

Guardrail 04

Failure Simulation

Evaluate selected link, node and shared-risk failure scenarios before committing significant traffic redistribution.

Guardrail 05

Blast Radius Control

Limit the number of services, devices and forwarding policies affected by an individual automation action.

Guardrail 06

Security Policy Validation

Preserve tenant boundaries, permitted infrastructure, service insertion and required security controls.

Guardrail 07

Post-Change Verification

Confirm that forwarding behaviour and application performance match the predicted outcome.

Guardrail 08

Safe Recovery

Maintain recovery procedures and validate whether the previous forwarding state remains safe before attempting rollback.

7.27 Intent-Based Traffic Engineering

Intent-based traffic engineering allows operators to describe the required service outcome rather than manually defining every forwarding instruction.

CONCEPTUAL NETWORK INTENT
service:

  name: enterprise-replication

  source: data-centre-a
  destination: data-centre-b

  requirements:

    minimum_bandwidth_gbps: 40
    maximum_latency_ms: 25

    avoid_shared_risk_groups:
      - 17

    permitted_domains:
      - enterprise-backbone

  optimisation:

    objective:
      minimise_maximum_link_utilisation

  safeguards:

    maximum_link_utilisation_percent: 80

    require_fresh_telemetry: true

    verify_after_installation: true

    automatic_recovery: true

The controller translates the service requirements into an appropriate forwarding policy using the available network capabilities.

If no feasible solution exists, the controller should report that the intent cannot currently be satisfied rather than silently violating mandatory constraints.

7.28 Traffic Engineering and Network Digital Twins

A network digital twin represents selected aspects of the network's topology, configuration, forwarding behaviour and operational state.

A controller can use an appropriate network model to evaluate proposed changes before deploying them into production.

Model Evaluation

Predict Before Deployment

Estimate resulting link utilisation, forwarding paths, failure exposure and service compliance before applying a proposed traffic change.

Operational Verification

Compare Prediction with Reality

Compare observed forwarding outcomes against the predicted model and identify differences requiring investigation.

Measurement Predicted Observed Interpretation
Path A Utilisation 60% 62% Small deviation
Path B Utilisation 50% 48% Small deviation
Service Latency 12 ms 19 ms Investigate
Maximum Permitted Latency 15 ms 19 ms SLA violation

A Digital Twin Is Not a Perfect Copy of the Network

Model accuracy depends on the quality of topology information, forwarding assumptions, traffic estimates and supported device behaviour. Simulation improves change validation but does not eliminate the need for production verification.

7.29 Engineering Verification Checklist

Verification Layer Engineering Question
Traffic Matrix Does the demand model accurately represent current application traffic?
Topology Are available paths, link states and shared-risk relationships current?
Telemetry Are measurements sufficiently fresh, complete and trustworthy?
Congestion Analysis Is the performance problem actually caused by forwarding resource contention?
Path Computation Does the proposed path satisfy mandatory service constraints?
Capacity Can the receiving path accommodate the proposed traffic demand?
Failure Headroom Does sufficient capacity remain under credible failure conditions?
Forwarding Weights Can the hardware implement the intended traffic distribution?
Update Consistency Can the policy be deployed without unacceptable transient forwarding behaviour?
Control Stability Are hysteresis, change limits and optimisation penalties appropriate?
Security Does the new path preserve required security and isolation boundaries?
Verification Does the observed forwarding outcome match the predicted improvement?
Recovery Is there a validated corrective action if the new policy fails?

7.30 Engineering Standards and Further Reading

The following specifications and technical resources provide additional foundations for traffic engineering, telemetry, network performance measurement and policy-based forwarding.

Section 07 — Key Engineering Takeaway

SDN traffic engineering transforms routing from a primarily reachability-driven function into a broader network resource optimisation capability. Controllers can combine topology information, traffic matrices, telemetry and application requirements to calculate engineered forwarding policies. However, successful production automation requires more than selecting a mathematically attractive path. The controller must preserve forwarding correctness, validate resource constraints, account for failure conditions, coordinate policy updates, prevent unstable feedback and continuously verify actual service performance.

Looking Ahead: SDN Failure Detection and Troubleshooting

A programmable network introduces new opportunities for automation, but also introduces additional failure domains.

In the next section, we will investigate how engineers troubleshoot discrepancies between controller intent, topology information, installed forwarding state and actual packet behaviour.

We will examine controller outages, stale topology, inconsistent flow tables, forwarding loops, policy installation failures, split-brain conditions and evidence-driven network incident investigation.

Network Insight · Interactive Engineering 07

Dynamic SDN Traffic Engineering Simulator

Operate a programmable transport network. Generate competing application flows, inspect congestion and latency, investigate service-level violations and use a centralised SDN controller to redistribute traffic across alternative network paths.
Offered traffic 0 Aggregate application demand
Peak utilisation 0% Highest operational path load
SLA violations 0 Active application classes
Estimated throughput 0 Delivered aggregate traffic

Programmable Transport Fabric

TELEMETRY ACTIVE
SDN TRAFFIC ENGINEERING CONTROLLER TELEMETRY Utilisation / Delay OPTIMISATION SLA-aware decisions POLICY ENGINE Traffic steering TELEMETRY EXPORT POLICY UPDATES MULTI-PATH TRANSPORT NETWORK INGRESS EGRESS OBSERVE · ANALYSE · COMPUTE · INSTALL · VERIFY NETWORK INSIGHT / CLOSED-LOOP TRAFFIC ENGINEERING
Healthy High utilisation Overloaded / failed Telemetry Policy control

Traffic Engineering Controls

Closed-loop mode evaluates network state every three seconds while the widget is visible. Policy changes require a meaningful improvement, except when an active flow uses a failed path.
Application demand and service intent

Application Traffic Generator

Adjust the offered bandwidth of each application. Manual path selection immediately changes its forwarding policy. Controller optimisation may subsequently move the application to another path. Each traffic class is assigned to one transport path in this model.
Streaming telemetry

Transport Path Utilisation

Closed-loop engineering decision
Network telemetry available
Inspect the application demand and transport utilisation. Run controller optimisation to evaluate alternative forwarding assignments.
01
Observe
02
Analyse
03
Compute
04
Install
05
Verify
Service assurance

Application SLA and Forwarding State

Application Path Demand Throughput Latency SLA target State
Optimisation evidence

Before vs After

Baseline peak load —
Current peak load —
Baseline SLA violations —
Current SLA violations —
Metric Baseline Current
Historical telemetry

Transport Utilisation History

Path A Path B Path C
Samples are collected during traffic changes, controller actions and periodic telemetry polling. Failed paths are shown as gaps.

SDN Controller Decision Console

EXPERIMENT 01

Congestion and SLA Recovery

Inject an application traffic burst. Observe the overloaded low-latency path and the resulting application SLA violations. Capture a baseline, then run SLA-aware optimisation. Compare the resulting service state.
EXPERIMENT 02

Application-Aware Steering

Start a large backup transfer. Manually move backup traffic to Path A. Observe its effect on latency-sensitive applications. Run controller optimisation and investigate the new assignments.
EXPERIMENT 03

Closed-Loop Resilience

Enable closed-loop automation. Fail Path A and observe the controller's response. Restore the failed path and compare the recovered network against the previous service state.
Engineering principle: Traffic engineering is not simply shortest-path routing. A programmable network can use telemetry, application requirements and available transport resources to select forwarding policies that better satisfy operational objectives. The controller must evaluate the impact of moving traffic before installing a new policy. Moving one application away from congestion can create congestion elsewhere. This laboratory models unsplittable application flows, aggregate path capacities, proportional throughput reduction under overload and a synthetic queuing-delay function. The latency and throughput estimates are illustrative, not calibrated predictions of production network behaviour. It does not implement TCP congestion control, packet-level scheduling, QoS queues or real controller protocol exchanges.
08
Network Insight · SDN Routing Engineering
PRODUCTION NETWORK INCIDENT INVESTIGATION

SDN Failure Detection and Troubleshooting

A software-defined network can report a successful policy installation, maintain healthy controller sessions and display a valid network topology, while application packets are still being dropped inside the forwarding infrastructure.

This is one of the fundamental operational challenges of SDN. Separating network intelligence from packet forwarding introduces powerful engineering capabilities, but also creates additional relationships between software state, distributed network state and physical forwarding behaviour.

Troubleshooting therefore requires more than examining routing tables or checking whether a controller is reachable. Engineers must establish an evidence chain connecting application intent, controller decisions, policy distribution, installed forwarding entries and actual packet outcomes.

Controller Resilience BFD Fast Reroute Split Brain Stale Topology Forwarding Blackholes Microloops State Reconciliation Packet Evidence Incident Investigation

8.1 Understanding SDN Failure Domains

Traditional networks already contain physical, routing, forwarding and management failure domains. SDN adds controller applications, distributed state stores, control channels and policy orchestration systems.

Failure Domain 01

Physical Infrastructure

Fibre failures, optical degradation, interface errors, power loss and forwarding device outages.

Failure Domain 02

Distributed Routing

IGP adjacency failures, BGP session loss, invalid next-hop resolution and incomplete routing convergence.

Failure Domain 03

Controller Infrastructure

Controller process crashes, cluster membership changes, database failures and resource exhaustion.

Failure Domain 04

Control Communication

Lost southbound sessions, authentication failures, protocol errors and management network partitions.

Failure Domain 05

Policy and Forwarding State

Incorrect path computation, rejected policy updates, stale flow entries and inconsistent forwarding tables.

Failure Domain 06

Observability Infrastructure

Missing telemetry, delayed event processing, inaccurate measurements and incomplete network visibility.

Separate the Failure from Its Symptoms

An application timeout may originate from a physical link failure, an incorrect controller decision, an unresolved next hop or an unrelated application problem. Similar symptoms do not establish a common root cause.

8.2 The Five Layers of Network Truth

An effective SDN troubleshooting methodology compares five different representations of network behaviour.

THE SDN EVIDENCE CHAIN 01 · DESIRED STATE 02 · COMPUTED STATE 03 · DISTRIBUTED STATE 04 · INSTALLED STATE 05 · OBSERVED STATE What the service requires What the controller calculates What the controller sends What forwarding devices actually install What happens to real packets VALID VALID SENT MISMATCH PACKET LOSS Illustrative incident: divergence occurs during forwarding installation
Figure 8.1 — The five layers of network truth. A valid controller calculation does not prove that the corresponding forwarding state has been successfully installed.
01

Desired State

Application connectivity, security requirements, bandwidth objectives and service-level constraints.

02

Computed State

The path, forwarding policy or flow entries calculated by the controller.

03

Distributed State

The actual configuration or protocol messages transmitted to network devices.

04

Installed State

The operational forwarding entries, next-hop objects, labels, segment lists and hardware programming state.

05

Observed State

Packet captures, forwarding counters, active probes and measured application behaviour.

8.3 Failure Detection Is Not Failure Recovery

Detecting a failure is only the first stage of restoring a network service.

A network may detect a failed link within milliseconds but require additional time to activate a protection path, distribute updated routing information, recompute SDN policies and verify recovery.

Recovery = Detection + Decision + Activation Simplified sequential recovery model. Real recovery stages may overlap.
Recovery Stage Engineering Responsibility
Detection Identify a physical, logical or service failure.
Notification Communicate the event to relevant control systems.
Decision Select a feasible recovery action.
Activation Install or activate replacement forwarding behaviour.
Convergence Allow relevant distributed and centralised state to stabilise.
Verification Confirm that the affected service has recovered.

Convergence Is Not Necessarily Service Recovery

A routing protocol can converge successfully while an application remains unavailable because of security policy, congestion, incorrect service steering or an unrelated dependency.

8.4 Physical and Logical Failure Detection

Different detection mechanisms observe different aspects of the network.

Mechanism What It Detects Important Limitation
Physical Link State Local interface or carrier failure. May not detect failures beyond the adjacent physical connection.
Optical Monitoring Applicable optical signal degradation and transport faults. Does not establish end-to-end service reachability.
BFD Failure of a monitored forwarding path. Detection scope depends on session placement and mode.
IGP Hellos Loss of routing adjacency. Timers may be slower than dedicated detection mechanisms.
BGP Keepalives Loss of BGP session liveness. A healthy session does not guarantee every advertised path works.
LLDP Adjacent device discovery and neighbour information. Not inherently a fast end-to-end failure detector.
Active Probes Reachability, delay or loss along a measured service path. Probe traffic may not follow the same path or treatment as application traffic.

8.5 Bidirectional Forwarding Detection

Bidirectional Forwarding Detection (BFD) provides a mechanism for detecting failures in monitored forwarding paths independently of the slower liveness mechanisms of some routing protocols.

BIDIRECTIONAL FORWARDING DETECTION R1 R2 R1 R2 BFD SESSION UP BFD DETECTION TIME EXPIRES Notify registered routing or protection mechanisms BFD detects monitored path failure; another mechanism performs recovery
Figure 8.2 — BFD control packets monitor forwarding connectivity. When the applicable detection timer expires, the session can transition down and notify registered client protocols.
SIMPLIFIED ASYNCHRONOUS BFD EXAMPLE
Negotiated receive interval: 50 ms

Remote detection multiplier: 3

Illustrative detection time:

  50 ms × 3 = 150 ms

Expected outcome:

  BFD session transitions DOWN
  Registered client receives notification
  Routing or protection mechanism reacts

Actual detection timing depends on the negotiated intervals, operating mode, platform implementation and processing conditions.

Aggressive Timers Have Operational Costs

Excessively aggressive BFD settings can increase processing requirements and sensitivity to transient packet loss or scheduling delays. Timer selection must reflect platform capabilities and network characteristics.

8.6 Local Protection Versus Controller Recovery

A centralised SDN controller does not need to participate in every immediate forwarding recovery decision.

Hybrid architectures can preinstall local protection paths so that forwarding devices respond to failures before the controller completes network-wide recomputation.

SDN CONTROLLER / PCE Network-wide recomputation R1 R2 R3 R4 LINK FAILURE PREINSTALLED LOCAL REPAIR PATH Immediate local repair followed by broader policy reconciliation
Figure 8.3 — A forwarding device activates an available local repair path while the controller evaluates the changed network topology.
Fast Recovery Layer

Local Fast Reroute

Activate previously prepared forwarding alternatives without waiting for complete network-wide convergence.

Optimisation Layer

Controller Recalculation

Evaluate the changed topology, service constraints, traffic distribution and longer-term forwarding requirements.

8.7 Loop-Free Alternates and TI-LFA

Loop-Free Alternate mechanisms identify alternative next hops that can provide local repair without creating a forwarding loop under the applicable failure assumptions.

Topology Independent Loop-Free Alternate (TI-LFA) uses Segment Routing capabilities to construct repair paths that can steer packets around protected network failures.

Mechanism Protection Approach
LFA Select a suitable directly connected loop-free alternate next hop.
Remote LFA Reach a suitable remote repair point using an appropriate tunnelling mechanism.
TI-LFA Use Segment Routing instructions to construct an applicable local repair path.
OpenFlow Fast Failover Select an eligible group bucket according to supported liveness monitoring.
Controller Rerouting Calculate and distribute replacement forwarding policies.

Protection coverage depends on topology, available alternate resources, platform capabilities and the specific failure being protected.

Protection and Optimisation Solve Different Problems

A repair path may restore connectivity without satisfying the original service latency or bandwidth objectives. Subsequent controller optimisation can evaluate whether a better long-term path is available.

8.8 Understanding Controller Failure

Losing connectivity to an SDN controller does not automatically mean that every forwarding device stops processing packets.

Previously installed forwarding state may remain operational while the controller is unavailable.

SDN CONTROLLER CONTROL SESSION LOST SW1 SW2 SW3 EXISTING FORWARDING STATE REMAINS ACTIVE Behaviour depends on device configuration, rule lifetime and architecture
Figure 8.4 — Controller connectivity is unavailable, but previously installed forwarding entries continue to support an existing traffic path.
Illustrative Controller Outage
Controller reachability DOWN
Existing forwarding entries ACTIVE
Existing application flows PASSING
New controller-dependent policies UNAVAILABLE
Network-wide optimisation SUSPENDED

Existing Forwarding May Eventually Degrade

Flow expiration, topology changes, next-hop failures and newly arriving traffic can expose dependencies on the unavailable controller. Continued forwarding at the start of an outage does not guarantee indefinite service availability.

8.9 Fail-Secure and Fail-Standalone Behaviour

OpenFlow-capable switching architectures can support different behaviours when connectivity to all controllers is lost.

Controller Loss Behaviour

Fail-Secure Mode

Existing OpenFlow entries can continue to process packets according to their configured behaviour and expiration rules. Traffic requiring an unavailable controller cannot receive normal reactive processing.

Controller Loss Behaviour

Fail-Standalone Mode

Where supported and configured, the device can transition towards conventional switching behaviour when controller connectivity is unavailable.

The appropriate behaviour depends on the network architecture, service availability requirements and security policy.

Availability Must Not Silently Override Security

A fallback forwarding mode may not preserve the same isolation or service insertion behaviour as the original controller-managed policy. Engineers must explicitly validate security properties during controller-loss scenarios.

8.10 Proactive Versus Reactive Failure Exposure

Proactive forwarding installs required forwarding entries before matching traffic arrives. Reactive forwarding may depend on controller interaction when a packet encounters an applicable table-miss rule.

Condition Proactive Forwarding Reactive Forwarding
Controller Available Preinstalled rules process matching traffic. Controller can respond to eligible packet-in events.
Controller Unavailable Existing valid entries may continue forwarding. Existing entries may work, but new controller-dependent flows may fail.
Rule Expiration Replacement state may require controller recovery. Expired flows may require another controller interaction.
Topology Change Local protection may preserve selected paths. New reactive decisions may be unavailable.

8.11 Controller Clustering and High Availability

Production SDN controllers are frequently deployed as distributed software systems.

Multiple controller instances can provide application availability, replicated network state and continued control responsibilities when individual instances fail.

LOGICALLY CENTRALISED CONTROLLER CLUSTER CTRL 1 CTRL 2 CTRL 3 LEADER FOLLOWER FOLLOWER REPLICATED STATE · CONSENSUS · OWNERSHIP NETWORK FORWARDING INFRASTRUCTURE Device sessions · Policy installation · Operational state Illustrative leader-based consensus architecture
Figure 8.5 — A conceptual three-member controller cluster using leader-based consensus for selected replicated state.

Not all SDN controllers use identical clustering architectures. Some distribute ownership by device, application, region or state partition.

Controller availability and state consistency must be evaluated according to the actual implementation.

8.12 Quorum and Network Partitions

In a majority-based consensus system, a quorum allows participating members to agree on changes to replicated state.

Majority Quorum = floor(N / 2) + 1 N represents the number of voting members.
Voting Members Majority Required Member Failures Tolerated
1 1 0
3 2 1
5 3 2
7 4 3

These values assume a conventional majority-based crash-fault consensus model and connectivity between the remaining quorum members.

CONTROLLER NETWORK PARTITION MAJORITY PARTITION MINORITY CTRL 1 CTRL 2 CTRL 3 2 / 3 VOTERS AVAILABLE Consensus writes may continue NO QUORUM Consensus writes blocked A correctly implemented majority consensus system prevents conflicting commits
Figure 8.6 — A network partition separates one controller from the other two voting members. The majority can retain consensus availability while the minority cannot independently commit conflicting state.

8.13 Split-Brain Controller Conditions

A split-brain condition occurs when separated components incorrectly behave as independent authoritative control systems.

In SDN, this can become particularly dangerous if multiple controller instances issue conflicting instructions to the same forwarding device.

Conflicting Controller A

Install Path A

Controller A believes it owns the forwarding policy and directs traffic through the northern network path.

Conflicting Controller B

Install Path B

Controller B independently believes it owns the same policy and directs traffic through the southern network path.

CONCEPTUAL CONFLICTING POLICY EVENTS
Controller A:

  policy: enterprise-service-17
  candidate_path: NORTH
  ownership_epoch: 41

Controller B:

  policy: enterprise-service-17
  candidate_path: SOUTH
  ownership_epoch: 42

Required safeguard:

  Reject obsolete ownership epoch 41
  Accept only authorised current owner

Consensus, controller roles, fencing tokens, ownership epochs and carefully designed session-management mechanisms can help prevent obsolete controller instances from continuing to modify forwarding state.

A Leader Election Alone Is Not Sufficient

The architecture must ensure that an obsolete leader cannot continue performing conflicting external operations. State-store consistency and device-control ownership are related but distinct engineering problems.

8.14 Controller Failover and State Reconciliation

When a replacement controller assumes responsibility for network devices, its replicated state may not completely describe the forwarding state currently installed on those devices.

Some operations may have completed immediately before the previous controller failed, while others may have remained incomplete.

01

Establish Authoritative Ownership

Confirm that the replacement controller is authorised to manage the relevant devices and policies.

02

Recover Desired State

Load committed policy definitions and applicable controller transaction state.

03

Discover Actual Device State

Retrieve operational forwarding information, installed policy versions and device capabilities.

04

Identify Divergence

Determine which expected forwarding entries are missing, obsolete or inconsistent.

05

Reconcile Safely

Apply the necessary corrective changes while preserving forwarding continuity and security.

06

Verify the Outcome

Confirm actual forwarding behaviour before declaring the controller failover complete.

8.15 Southbound Control Channel Failures

A controller can remain healthy while losing communication with selected network devices.

The resulting incident may affect only part of the infrastructure, creating asymmetric policy distribution or incomplete network updates.

Failure Cause Evidence to Investigate
Management Network Failure Management routing, reachability, interface state and packet loss.
TLS Authentication Failure Certificate validity, trust chain, endpoint identity and system time.
Protocol Session Failure Session state, keepalives, disconnect events and protocol errors.
Access Control Firewall rules, management ACLs and controller authorisation.
Resource Exhaustion CPU, memory, connection limits and request queues.
Capability Mismatch Negotiated protocol capabilities and supported device operations.

8.16 In-Band Versus Out-of-Band Control

An in-band control architecture transports controller communication across infrastructure that may also carry production network traffic.

An out-of-band architecture uses a separate management communication path, reducing selected dependencies on production forwarding state.

IN-BAND CONTROL OUT-OF-BAND CONTROL CONTROLLER CONTROLLER SW1 SW2 SW1 SW2 Downstream control may be lost Management path remains available Out-of-band management reduces selected shared failure dependencies
Figure 8.7 — A production link failure may interrupt in-band control connectivity. An independently functioning management network can preserve controller access to affected devices.

Out-of-band management is not automatically independent of every production failure. Shared power, physical infrastructure, routing dependencies and management service failures must still be considered.

8.17 Stale Topology and Incorrect Path Computation

The controller's topology database represents its current knowledge of network nodes, links and associated attributes.

If topology updates are delayed, the controller may calculate a path that is valid within its internal model but invalid in the physical network.

Controller Topology

R1 → R2 → R4

The topology database reports that both links are available and that the selected path satisfies the service constraints.

Physical Network

R2–R4 Link Down

The physical network has changed, but the corresponding topology update has not yet reached the controller.

CONCEPTUAL TOPOLOGY VERSION MISMATCH
Controller topology version: 104

Current network event version: 105

Version 105 change:

  link: R2-R4
  state: DOWN

Computed policy:

  topology_version: 104
  path: R1-R2-R4

Validation result:

  REJECT — topology snapshot obsolete

Validate the Computation Snapshot

A controller should associate path calculations with the topology and resource information used to compute them. Significant changes before installation may require revalidation or recomputation.

8.18 Policy Installation and Partial Success

An SDN policy may require changes across several forwarding devices.

A controller can successfully install the policy on some devices while another device rejects or fails to process the update.

Policy Transaction 1082
Controller path computation COMPLETE
SW1 forwarding update INSTALLED
SW2 forwarding update REJECTED
SW3 forwarding update INSTALLED
End-to-end service verification FAILED

A successful transport-level acknowledgement is not necessarily equivalent to successful forwarding-plane installation.

The controller must interpret the semantics of the relevant protocol response and obtain appropriate operational evidence.

8.19 OpenFlow Flow Installation Errors

OpenFlow switches may reject forwarding operations because of unsupported matches, invalid actions, invalid table identifiers, resource exhaustion or other protocol-defined errors.

Error Category Potential Engineering Cause
Flow Modification Failure The requested flow operation cannot be completed.
Bad Match The requested match fields or combinations are invalid or unsupported.
Bad Action The requested forwarding action cannot be applied.
Bad Instruction The requested instruction is invalid or unsupported.
Group Modification Failure A group entry cannot be created, changed or removed as requested.
Table Full Available flow-table resources cannot accommodate the requested entry.

Barrier messages can help coordinate the processing of earlier OpenFlow requests. Supported bundle operations can provide stronger update semantics for grouped operations on an individual switch.

Protocol Ordering Does Not Prove End-to-End Correctness

A barrier response does not independently establish that every preceding operation succeeded or that application packets traverse the intended network path. Error processing, operational state inspection and packet verification remain necessary.

8.20 Hardware Forwarding Resource Exhaustion

A controller may attempt to install a logically correct forwarding policy that exceeds the capabilities or available resources of the target hardware.

16,384 Illustrative table capacity
16,380 Existing entries
8 Additional entries requested

In this simplified fixed-capacity example, only four entries remain available, while the requested policy requires eight additional entries.

Real hardware resource allocation may depend on match width, table partitioning, action profiles, next-hop objects and shared memory resources.

ILLUSTRATIVE FORWARDING INSTALLATION RESULT
Policy: service-chain-204

Requested additional entries: 8

Available equivalent entries: 4

Installation result: FAILED

Reason:

  Insufficient forwarding resources

Required action:

  Preserve valid existing policy
  Investigate hardware allocation
  Recalculate or redesign policy

8.21 Forwarding Blackholes

A forwarding blackhole occurs when packets enter a network path but cannot reach their intended destination because the required forwarding behaviour is absent or invalid.

FORWARDING BLACKHOLE HOST A SW1 SW2 SW3 HOST B REQUIRED FLOW ENTRY MISSING Forwarding Packet dropped No matching traffic Controller policy exists · End-to-end forwarding fails
Figure 8.8 — The controller has calculated a valid end-to-end policy, but SW2 lacks the required forwarding entry. In this example, its table-miss behaviour drops the packet.
Evidence Source Illustrative Observation
Controller Policy calculated for SW1 → SW2 → SW3.
SW1 Counters Matching packets forwarded towards SW2.
SW2 Ingress Matching traffic arrives successfully.
SW2 Flow Table Required forwarding entry absent.
SW2 Drop Counters Applicable table-miss drop counter increases.
SW3 Counters No corresponding application traffic received.

8.22 Forwarding Loops and Microloops

A forwarding loop occurs when packets repeatedly traverse a sequence of forwarding devices without progressing towards their intended destination.

Microloops are transient forwarding loops that can occur while devices update their forwarding state at different times.

TRANSIENT FORWARDING LOOP SRC R1 R2 DST R1 NEXT HOP = R2 R2 NEXT HOP = R1 LOOP Inconsistent forwarding IP TTL or applicable hop limits eventually terminate looping packets
Figure 8.9 — R1 forwards traffic towards R2 while R2 temporarily forwards the same destination traffic back towards R1.

IP TTL and applicable MPLS TTL or IPv6 hop-limit processing prevent many packets from looping indefinitely, but do not prevent the associated bandwidth consumption, packet loss and service disruption.

Ethernet forwarding loops require different protection mechanisms because ordinary Ethernet frames do not contain an equivalent general-purpose hop limit.

8.23 Segment Routing Policy Failures

A Segment Routing policy may be present at the headend but fail to deliver the intended forwarding outcome.

Failure Condition Potential Consequence
Unreachable Node SID The required segment cannot be reached through the available underlay.
Unavailable Adjacency SID The requested adjacency is unavailable or lacks applicable protection.
Incorrect Segment List Traffic traverses an unintended path or fails to reach its endpoint.
Segment Depth Limitation The headend cannot impose the requested segment stack.
Invalid Candidate Path The candidate cannot be selected as an operational forwarding path.
Steering Failure Application traffic does not enter the intended SR policy.
MTU Limitation Encapsulation overhead causes packets to exceed applicable path MTU.
CONCEPTUAL SR POLICY DIAGNOSTIC
Policy: DC-A-TO-DC-B

Headend: PE1
Endpoint: PE5
Color: 100

Candidate path:

  preference: 200
  segment_list: [16002, 16004, 16005]

Operational state:

  policy_present: true
  candidate_valid: false

Validation reason:

  Segment 16004 unresolved

Forwarding result:

  Candidate cannot be activated

Next investigation:

  Underlay reachability
  Segment advertisements
  Alternative candidate paths

Policy Presence Is Not Policy Validity

Engineers must distinguish between a configured SR policy, a valid candidate path, an active forwarding policy and application traffic actually being steered into that policy.

8.24 PCEP Session and LSP State Investigation

In PCE-based architectures, a Path Computation Client (PCC) communicates with a Path Computation Element (PCE) using PCEP.

Stateful PCEP extensions allow the PCE to maintain information about relevant LSP state and, where supported and authorised, participate in LSP updates or initiation.

PCEP Message Troubleshooting Relevance
OPEN Session establishment and capability negotiation.
KEEPALIVE Session liveness and establishment procedures.
PCReq / PCRep Path computation requests and replies.
PCRpt Reported LSP state from the PCC.
PCUpd Applicable stateful LSP update requests from the PCE.
PCInitiate Supported PCE-initiated LSP operations.
PCErr Protocol errors and applicable operation failures.

A healthy PCEP session does not prove that every computed path is operational.

Engineers should compare requested path state, reported LSP state, delegation or ownership information, underlying reachability and actual traffic forwarding.

8.25 BGP-LS Topology Troubleshooting

BGP Link-State allows topology and associated traffic engineering information to be distributed to external consumers such as SDN controllers and path computation systems.

A controller may receive incomplete or outdated topology information even when its BGP-LS session appears operational.

Evidence Source 01

Originating IGP Database

Verify that the expected node, link and prefix information exists within the originating routing domain.

Evidence Source 02

BGP-LS Advertisements

Examine the advertised topology NLRI and associated attributes for the relevant network objects.

Evidence Source 03

Controller Ingestion

Verify that advertisements and withdrawals are processed into the controller's topology representation.

Evidence Source 04

Path Computation Model

Confirm that the computation engine uses the intended topology version and required traffic engineering attributes.

8.26 Packet-Level Troubleshooting

Packet captures provide evidence of what traffic is actually present at a particular observation point.

In an SDN network, captures can help distinguish forwarding failures from policy classification errors, encapsulation problems, incorrect next hops and application-level failures.

PACKET EVIDENCE COLLECTION HOST A R1 R2 R3 HOST B CAPTURE A CAPTURE B CAPTURE C CAPTURE D PACKETS SEEN PACKETS SEEN NO MATCH NO MATCH Investigate the forwarding transition between observation points B and C
Figure 8.10 — Correlated packet captures can narrow the investigation to a particular forwarding transition. Missing packets must be interpreted alongside capture configuration and device counters.
Packet Evidence Engineering Question
Source and Destination Does the packet match the expected application flow?
VLAN / VRF Context Is traffic entering the correct forwarding and isolation domain?
MPLS Label Stack Does the packet carry the expected forwarding labels?
SRv6 Headers Are the applicable destination SID and segment instructions correct?
TTL / Hop Limit Is there evidence of excessive forwarding hops or looping?
DSCP / ECN Does the packet receive the expected classification and congestion treatment?
Packet Length Does encapsulation introduce an MTU-related forwarding problem?

8.27 Production Incident: The Healthy Controller Blackhole

Consider an OpenFlow-based network in which a new application policy is being installed across three forwarding switches.

The controller is healthy, the physical links are operational and all southbound sessions are established.

However, the middle switch has insufficient forwarding resources to install the required flow entry.

INCIDENT 008-A · POLICY INSTALLATION FAILURE
INTENT New application connectivity requested.
COMPUTE Controller selects SW1 → SW2 → SW3.
SW1 Forwarding entry installed.
SW2 Flow modification rejected: table resources exhausted.
SW3 Forwarding entry installed.
APPLICATION New traffic enters the partially installed path.
FORWARDING SW2 drops matching traffic through table-miss behaviour.
VERIFY End-to-end connectivity probe fails.
RECOVERY Withdraw incomplete policy safely and evaluate alternatives.
Illustrative incident timeline. Timing and event descriptions are synthetic engineering examples rather than measured production data.

Root Cause

The failure originates in forwarding resource exhaustion and unsafe activation of a partially installed policy, not controller availability or physical network reachability.

8.28 Production Incident: Controller Failover with Stale State

A controller leader fails after issuing a forwarding update but before the corresponding completion state is durably recorded.

The replacement leader assumes control with an incomplete representation of the previous transaction.

INCIDENT 008-B · CONTROLLER RECONCILIATION
CTRL 1 Policy version 18 distributed to forwarding device.
DEVICE Policy version 18 installed successfully.
CTRL 1 Leader process fails before completion state is committed.
CLUSTER Replacement leader elected.
CTRL 2 Recovered transaction state indicates completion is unknown.
DISCOVERY Device operational state confirms version 18 is installed.
RECONCILE Controller reconciles transaction state with installed policy.
VERIFY Application forwarding verified.

Root Cause and Recovery Principle

The controller failure created uncertainty about an external operation. Reading actual device state and using appropriate idempotent operations avoids blindly repeating or reversing changes that may already have succeeded.

8.29 Production Incident: Fast Reroute Restores Connectivity but Violates the SLA

An enterprise application requires a network path with a maximum one-way latency of 20 milliseconds.

A physical link fails and local protection immediately activates a longer repair path.

Network State Latency Reachability SLA Status
Original Path 12 ms Available Compliant
Link Failure Unavailable Interrupted Violated
Local Repair Path 34 ms Available Violated
Controller Optimised Path 17 ms Available Compliant
12 ms Original service latency
34 ms Temporary repair latency
17 ms Optimised recovery latency

These illustrative measurements demonstrate why reachability recovery and service-level recovery should be monitored separately.

8.30 Correlating Network Events

Complex SDN incidents can generate events across multiple systems.

A single physical failure may produce BFD session transitions, IGP adjacency changes, BGP-LS withdrawals, controller recalculations and application alarms.

CONCEPTUAL CORRELATED EVENT CHAIN
Physical event:

  Interface R2-R4 DOWN

Detection event:

  BFD session DOWN

Routing event:

  IGP adjacency removed

Topology event:

  BGP-LS link withdrawal

Controller event:

  Topology database updated

Computation event:

  Replacement policy calculated

Forwarding event:

  New policy installed

Service event:

  Connectivity and latency verified

These events may occur concurrently or arrive at monitoring systems in a different order from their original occurrence.

Event Arrival Order Is Not Necessarily Causal Order

Distributed monitoring systems can experience collection delays, clock differences and asynchronous processing. Reliable incident investigation should use source timestamps, transaction identifiers, topology versions and other causal evidence.

8.31 Troubleshooting Commands and Operational Evidence

The exact diagnostic commands depend on the forwarding platform and controller architecture.

The following examples illustrate the types of evidence an engineer may collect.

LINUX NETWORK DIAGNOSTICS
ip -br link

ip -s link show

ip route show

ip route get 192.0.2.10

ip neigh show

ping -c 5 192.0.2.10

tracepath 192.0.2.10

ss -tnp
OPEN VSWITCH DIAGNOSTICS
ovs-vsctl show

ovs-vsctl list Controller

ovs-ofctl -O OpenFlow13 dump-flows br0

ovs-ofctl -O OpenFlow13 dump-groups br0

ovs-ofctl -O OpenFlow13 dump-ports br0

ovs-appctl dpif/show
OPEN VSWITCH LOGICAL PIPELINE TRACE
ovs-appctl ofproto/trace br0 \
  'in_port=1,tcp,nw_src=192.0.2.10,nw_dst=198.51.100.20,tp_dst=443'

The Open vSwitch logical trace evaluates how the specified hypothetical packet would be processed by the applicable logical pipeline.

It does not independently prove that an equivalent real packet was received, transmitted or successfully delivered through the physical network.

PACKET CAPTURE EXAMPLES
tcpdump -ni eth0 -c 50 host 192.0.2.10

tcpdump -ni eth0 -c 50 tcp port 443

tcpdump -ni eth0 -c 50 tcp port 4189

tcpdump -ni eth0 -c 50 \
  'udp port 3784 or udp port 3785 or udp port 4784'

These filters illustrate application traffic, PCEP and common BFD transport ports. Actual capture interfaces, encapsulations and protocol ports depend on the deployment.

Packet capture may require elevated privileges and appropriate operational authorisation.

8.32 The SDN Incident Investigation Methodology

01

Define the Actual Service Failure

Identify the affected source, destination, application, traffic class, tenant and observed symptom.

02

Establish the Expected Behaviour

Determine the intended forwarding path, security requirements and service performance objectives.

03

Validate Physical and Underlay Connectivity

Check interface state, adjacency health, routing reachability and next-hop resolution.

04

Inspect Controller Health and Ownership

Verify cluster state, authoritative ownership, application health and relevant control sessions.

05

Inspect the Computed Policy

Confirm topology freshness, candidate validity, resource constraints and the calculated forwarding instructions.

06

Compare Distributed and Installed State

Examine protocol errors, transaction status, operational forwarding tables and hardware resource availability.

07

Follow the Packet

Use captures, counters, traces and active measurements to identify the first forwarding transition that diverges from the expected behaviour.

08

Apply a Controlled Corrective Action

Select a recovery action that addresses the identified cause while preserving other network services and security constraints.

09

Verify and Document

Confirm forwarding recovery, service performance and stable controller state. Document the causal evidence and prevention measures.

8.33 Symptom-to-Evidence Troubleshooting Matrix

Observed Symptom Potential Cause First Evidence to Examine
Existing flows work but new flows fail Controller loss or reactive forwarding dependency. Controller sessions, flow expiration and table-miss behaviour.
Controller healthy but packets drop Missing or invalid installed forwarding state. Device flow tables, installation errors and drop counters.
Computed path traverses a failed link Stale or incomplete topology information. IGP database, BGP-LS updates and topology version.
Policies repeatedly change Competing controllers or unstable automation. Ownership, policy transaction history and optimisation events.
Intermittent loss during convergence Microloops or inconsistent forwarding updates. FIB transitions, packet captures and routing event timestamps.
Small packets work but large packets fail Encapsulation overhead or path MTU problem. Packet sizes, interface MTU and relevant ICMP messages.
SR policy present but traffic uses another path Invalid candidate or incorrect steering. Active candidate state, route recursion and policy counters.
Service reachable but latency excessive Suboptimal repair path or congestion. Actual forwarding path, queue measurements and latency probes.
Controller reports no failure but service unavailable Observability gap or application dependency failure. Independent active probes, packet evidence and service health.

8.34 Designing Networks for Troubleshootability

Troubleshootability should be treated as an architectural requirement, not an operational feature added after deployment.

Design Principle 01

Versioned Network State

Associate calculations, policy updates and operational observations with identifiable state versions.

Design Principle 02

Transaction Traceability

Preserve identifiers connecting service requests to controller decisions and device operations.

Design Principle 03

Independent Verification

Measure forwarding and application outcomes independently of the controller's internal success indicators.

Design Principle 04

Explicit Ownership

Define which controller or automation system is authorised to modify each network resource.

Design Principle 05

Safe Recovery Mechanisms

Provide appropriate local protection, staged deployment, state reconciliation and validated recovery procedures.

Design Principle 06

Failure Scenario Testing

Validate controller outages, partitions, stale topology, failed installations and physical network incidents before production deployment.

8.35 Engineering Standards and Further Reading

The following specifications provide technical foundations for SDN failure detection, routing protection, topology distribution and controller-based path management.

Section 08 — Key Engineering Takeaway

Troubleshooting software-defined networks requires engineers to investigate the complete relationship between desired service behaviour, controller calculations, distributed policies, installed forwarding state and actual packet outcomes. Controller health, routing convergence and successful policy computation are important operational indicators, but none of them independently proves that a network service is functioning correctly. Effective SDN operations combine fast local recovery, resilient controller architecture, consistent state management, independent packet evidence and disciplined incident investigation.

Looking Ahead: Production SDN Architectures

The final section brings together the architectural principles explored throughout this engineering guide.

We will examine how software-defined routing is implemented across data centre fabrics, service provider backbones, enterprise WANs, cloud networking platforms, Kubernetes environments and AI GPU infrastructure.

Rather than assuming that every environment uses the same controller or forwarding architecture, we will explore how different production networks combine distributed routing, programmable forwarding, centralised orchestration and local resilience.

Network Insight · Interactive Engineering 08

SDN Network Failure Investigation Lab

Enter the network operations centre. Investigate service failures, inspect controller and forwarding state, collect diagnostic evidence, identify the root cause and restore network services through targeted remediation.
Network Operations Centre
Network operating normally

No active incident. Launch a failure scenario to begin your investigation.

Controller Online
Topology database Synced
Forwarding state Consistent
Last service probe Not tested

Live SDN Incident Topology

PROGRAMMABLE FORWARDING DOMAIN OBSERVE · INVESTIGATE · DIAGNOSE · REMEDIATE · VERIFY
Operational link Failed link Controller channel Observed packet path
PACKET FORWARDING EVIDENCE

No service probe has been executed.

Incident Operations

Remediation actions operate on independent network components. Restoring controller connectivity does not automatically repair stale forwarding entries.
01 Observe Symptoms
02 Collect Evidence
03 Identify Root Cause
04 Apply Remediation
05 Verify Recovery
Network state comparison engine

Physical vs Controller Topology

Transport link Physical state Controller view Consistency
Forwarding state inspection

Desired vs Installed Forwarding Policy

Device Destination Desired next hop Installed next hop Control channel Consistency
A consistent forwarding table does not guarantee connectivity. The desired policy itself may have been computed using stale topology information.
Diagnostic workstation

SDN Engineering CLI

Educational diagnostic commands. These are not vendor-specific production CLI commands.
Incident observability

Network Incident Timeline

Engineering investigation progress

Evidence Collection

CONTROL PLANE Not collected
TOPOLOGY STATE Not collected
FORWARDING STATE Not collected
SERVICE TRACE Not collected
Root cause assessment

Submit Your Engineering Diagnosis

Collect diagnostic evidence before submitting your root cause assessment.
Investigation score
0 / 100
Evidence collection: 40 points. Root cause identification: 30 points. Verified network recovery: 30 points.
Incident resolution
No active incident.
EXPERIMENT 01

Controller Failure Is Not Always a Data Plane Failure

Launch INC-002. Run a service probe. Observe that existing forwarding entries can continue carrying traffic even when the controller is unavailable. Attempt to recompute policy and investigate why the operation fails.
EXPERIMENT 02

Consistent Policy, Incorrect Network View

Launch INC-003. Compare the physical topology with the controller database. Recompute policy before refreshing topology and observe why the failure persists. Refresh, recompute, reconcile and verify.
EXPERIMENT 03

Forwarding Loop Investigation

Launch INC-005. Run traceroute and inspect the installed next hops. Identify the repeated forwarding sequence. Reconcile the forwarding tables and verify that the packet reaches its destination.
Engineering principle: Successful SDN troubleshooting requires independent verification of physical connectivity, controller reachability, topology accuracy, desired forwarding policy and installed device state. A healthy controller does not prove that forwarding is correct. Similarly, a controller outage does not necessarily interrupt existing forwarding. This laboratory uses a simplified fail-secure forwarding model, static destination-based next hops, explicit policy reconciliation and bounded packet tracing. Production platforms may use distributed control, local fast reroute, transactional updates, protocol-specific timers and additional recovery mechanisms.
09
Network Insight · SDN Routing Engineering
MULTI-DOMAIN PRODUCTION ARCHITECTURES

Production SDN Architectures

The most important characteristic of production software-defined networking is not the elimination of distributed routing protocols. It is the ability to combine distributed network intelligence with programmable control, application-aware policy and automated infrastructure operations.

Modern production networks rarely conform to a single universal SDN architecture. A service provider backbone, an enterprise SD-WAN deployment, a Kubernetes cluster and an AI GPU fabric may all employ software-defined networking principles while implementing fundamentally different control and forwarding mechanisms.

Understanding these architectural differences is essential when designing networks that must deliver predictable performance, operational resilience, security and scalable service connectivity.

Data Centre SDN EVPN VXLAN Segment Routing SD-WAN Azure Networking AWS Networking Kubernetes eBPF GPU Fabrics Intent-Based Networking Multi-Domain Orchestration

9.1 The Production SDN Reference Architecture

A production SDN environment can be understood as a collection of architectural layers that translate service requirements into observable network behaviour.

PRODUCTION SDN REFERENCE ARCHITECTURE APPLICATIONS AND SERVICE INTENT Connectivity · Security · Performance · Availability SERVICE ORCHESTRATION Intent translation · Lifecycle · Policy validation NETWORK CONTROL SYSTEM Topology Path Engine Policy Engine State Store DISTRIBUTED FORWARDING INFRASTRUCTURE Routers · Switches · Virtual Networks · SmartNICs TELEMETRY AND VERIFICATION Service intent becomes forwarding behaviour through multiple control layers
Figure 9.1 — A conceptual production SDN architecture connecting service intent, orchestration, network control, distributed forwarding and operational feedback.
Layer 01

Service Intent

Defines the connectivity, isolation, performance and availability requirements that the infrastructure must satisfy.

Layer 02

Orchestration

Coordinates service lifecycle, translates requirements into domain-specific operations and manages dependencies.

Layer 03

Network Control

Maintains topology and policy state, computes forwarding decisions and distributes applicable network instructions.

Layer 04

Distributed Forwarding

Executes packet forwarding, classification, encapsulation, local protection and applicable security policies.

SDN Is an Architectural Model

Software-defined networking does not require every forwarding decision to be made by a remote controller. Different production systems distribute intelligence differently according to scale, latency, resilience and operational requirements.

9.2 Production Architecture Models

Architecture Primary Control Model Forwarding Model
OpenFlow Fabric Controller-managed flow entries. Match-action pipelines and group tables.
EVPN VXLAN Distributed BGP EVPN with optional centralised orchestration. IP underlay and VXLAN overlays.
Segment Routing WAN Distributed IGP with optional PCE-based path control. SR-MPLS or SRv6 forwarding instructions.
Enterprise SD-WAN Centralised policy with distributed edge decisions. Overlay tunnels and application-aware steering.
Public Cloud Provider-managed distributed control systems. Virtualised networking and distributed enforcement.
Kubernetes Declarative orchestration and distributed networking agents. Linux networking, eBPF or other CNI-specific mechanisms.
AI GPU Fabric Fabric management, routing protocols and specialised optimisation. High-performance Ethernet or InfiniBand forwarding.

9.3 Data Centre SDN and Leaf-Spine Architecture

Modern data centre networks commonly use leaf-spine architectures to provide scalable connectivity and multiple equal-cost paths between workloads.

A centralised management or orchestration system may configure the fabric, provision tenant networks and coordinate security policy while the physical infrastructure continues to use distributed routing.

FABRIC ORCHESTRATOR Tenant networks · Policy · Lifecycle SPINE 1 SPINE 2 LEAF 1 LEAF 2 LEAF 3 LEAF 4 WORKLOAD WORKLOAD WORKLOAD WORKLOAD Centralised orchestration with distributed fabric forwarding
Figure 9.2 — A software-defined leaf-spine fabric. The orchestrator manages service and configuration intent while the fabric provides distributed IP forwarding.
Underlay

Distributed IP Reachability

BGP, OSPF or IS-IS can provide infrastructure reachability and ECMP across the physical fabric.

Overlay

Virtual Network Connectivity

Overlay encapsulation creates logical connectivity independently of the physical placement of individual workloads.

Control

Fabric Policy

Orchestration systems manage tenant configuration, network segmentation, service insertion and operational lifecycle.

Resilience

Distributed Recovery

Local forwarding and routing mechanisms can respond to infrastructure failures without requiring every decision to traverse a central controller.

9.4 EVPN VXLAN as a Hybrid SDN Architecture

Ethernet VPN with VXLAN encapsulation is an important example of how software-defined networking principles can coexist with distributed routing protocols.

BGP EVPN distributes overlay reachability information, while VXLAN provides the encapsulation used to transport tenant traffic across an IP underlay.

BGP EVPN ROUTE REFLECTOR Overlay reachability distribution IP UNDERLAY VXLAN TUNNEL VTEP A VTEP B VNI 10010 VNI 10010 TENANT A TENANT A Distributed overlay control with encapsulated data-plane forwarding
Figure 9.3 — BGP EVPN distributes overlay reachability between VXLAN tunnel endpoints. The route reflector is not required to forward the corresponding application packets.
EVPN Route Type Architectural Purpose
Type 1 Ethernet Auto-Discovery information, including multihoming procedures.
Type 2 MAC and optional IP address reachability.
Type 3 Inclusive multicast Ethernet tag information for applicable BUM forwarding.
Type 4 Ethernet segment discovery and associated multihoming procedures.
Type 5 IP prefix reachability within applicable EVPN routing architectures.

EVPN Does Not Require a Central SDN Controller

EVPN is fundamentally a distributed BGP-based control plane. A fabric controller can automate its configuration, service provisioning and operational management, but EVPN route distribution does not inherently depend on that controller.

9.5 Service Provider SDN and Segment Routing

Service provider backbones must transport large volumes of traffic while satisfying connectivity, protection, capacity and service-level requirements.

Segment Routing provides a mechanism for expressing forwarding instructions as ordered segments. A Path Computation Element can calculate selected paths using a broader view of network topology and traffic engineering attributes.

STATEFUL PCE / SDN CONTROLLER Topology · Constraints · SR policy PCEP BGP-LS PE1 P2 P3 P4 P5 PE6 CONTROLLER-SELECTED SR PATH Distributed underlay routing remains responsible for segment reachability
Figure 9.4 — A hybrid service provider SDN architecture. BGP-LS exports topology information to the controller, while PCEP can support path computation and applicable stateful policy operations at the headend.
CONCEPTUAL SERVICE PROVIDER POLICY
Service: premium-enterprise-connectivity

Ingress: PE1
Endpoint: PE6

Constraints:

  Maximum one-way latency: 20 ms
  Required available bandwidth: 10 Gbps
  Exclude specified maintenance links

Selected path:

  PE1 → P4 → P5 → PE6

Policy installation:

  Headend: PE1
  Forwarding: Segment Routing
  Protection: Applicable local repair

Verification:

  Candidate path operational
  Traffic steered into policy
  Measured service latency compliant

The path computation system must account for the actual semantics of the segment list. A sequence of node segments does not necessarily enforce every physical link of a computed path. Adjacency segments or other applicable instructions may be required for stricter path control.

9.6 Centralised Traffic Engineering at Scale

Distributed shortest-path routing generally optimises reachability according to configured routing metrics. A traffic engineering system can evaluate additional objectives across multiple services and network resources.

Objective 01

Capacity Optimisation

Reduce persistent congestion by evaluating traffic demands and available alternative paths.

Objective 02

Service Differentiation

Select paths according to application-specific latency, availability and administrative requirements.

Objective 03

Maintenance Engineering

Move eligible services away from infrastructure scheduled for maintenance before the affected resources are removed.

Objective 04

Failure-Aware Planning

Evaluate protection paths and shared-risk dependencies before installing production services.

Optimisation Requires Stability

A controller that repeatedly moves traffic in response to short-lived utilisation changes can create oscillation, packet reordering and unnecessary forwarding updates. Production systems need suitable thresholds, measurement windows, hysteresis and controlled policy activation.

9.7 Enterprise SD-WAN Architecture

Software-defined WAN architectures extend centralised policy and application-aware network control across enterprise sites, data centres and cloud environments.

SD-WAN edge devices typically establish overlay connectivity across one or more transport networks. Centralised systems distribute policy and control information, while the edges perform packet forwarding and applicable local path selection.

SD-WAN CONTROL SYSTEM Policy · Overlay control · Management BRANCH EDGE REMOTE EDGE TRANSPORT A Selected application path TRANSPORT B Alternative connectivity APPLICATION-AWARE OVERLAY FORWARDING Central policy combined with distributed edge measurements and decisions
Figure 9.5 — An SD-WAN edge architecture with centralised policy and multiple transport paths. Control communication and application forwarding are logically distinct.
Traffic Class Example Policy Objective Potential Edge Behaviour
Voice Low latency, jitter and loss. Select an eligible transport meeting voice thresholds.
Business Applications Predictable performance and availability. Steer traffic according to application policy and path health.
Bulk Replication Available capacity and cost efficiency. Use an eligible higher-capacity or lower-cost transport.
Internet Access Security inspection and appropriate egress. Use local breakout or a designated security service.

9.8 SD-WAN Routing Versus SD-WAN Policy

Routing and policy-based steering solve related but different problems. Routing establishes available destination reachability, while SD-WAN policy can influence how eligible traffic uses that connectivity.

ILLUSTRATIVE APPLICATION STEERING POLICY
Application: enterprise-voice

Destination: remote-enterprise-network

Eligible transports:

  Transport A:
    latency: 18 ms
    jitter: 3 ms
    packet_loss: 0.1%

  Transport B:
    latency: 48 ms
    jitter: 12 ms
    packet_loss: 0.8%

Policy thresholds:

  latency: maximum 30 ms
  jitter: maximum 10 ms
  packet_loss: maximum 0.5%

Decision:

  Transport A satisfies all thresholds.
  Transport B does not.

Forwarding:

  Select Transport A if reachable
  and permitted by security policy.

Actual SD-WAN products differ in their measurement methods, policy evaluation, fallback behaviour and overlay control protocols.

9.9 Public Cloud Software-Defined Networking

Public cloud platforms expose logical networking constructs through APIs, portals and infrastructure-as-code systems.

Customers define virtual networks, subnets, routes, security rules and connectivity services. The cloud provider translates these logical configurations into its underlying distributed network infrastructure.

Customer Abstraction

Virtual Networks

Customers define address spaces, subnets, connectivity relationships and logical isolation boundaries.

Customer Policy

Routes and Security

Route tables, security groups and network security policies influence traffic behaviour within supported cloud abstractions.

Provider Control

Distributed Programming

Provider-managed control systems translate customer configuration into infrastructure-level forwarding and enforcement.

Provider Infrastructure

Virtualised Forwarding

Software and hardware networking mechanisms implement connectivity, isolation and service delivery across the underlying platform.

9.10 Microsoft Azure SDN Architecture

Microsoft Azure Virtual Networks provide logical network environments for cloud workloads.

Azure networking services expose configurable routing, connectivity, security and service integration without requiring customers to directly program the underlying physical switches.

AZURE MANAGEMENT AND CONTROL APIs · ARM · Network resource configuration HUB VNET AZURE FIREWALL CONNECTIVITY GATEWAY SPOKE A SPOKE B Application subnet UDR · NSG Service subnet UDR · NSG ON-PREMISES NETWORK Illustrative hub-spoke deployment with explicit routing and security configuration
Figure 9.6 — An illustrative Azure hub-spoke network. User-defined routes, peering configuration and security services can implement centrally managed traffic inspection and hybrid connectivity.
Azure Service SDN Architectural Role
Azure Virtual Network Logical network addressing, subnets and connectivity boundaries.
User-Defined Routes Customer-configured routing behaviour for associated subnets.
Network Security Groups Distributed stateful network traffic filtering.
Azure Firewall Managed network and application traffic inspection.
Azure Virtual WAN Managed transit, routing and connectivity across supported network attachments.
Azure Route Server BGP route exchange with supported network virtual appliances.
Azure Private Link Private connectivity to supported services through private endpoints.
ExpressRoute Private connectivity between external networks and supported Microsoft cloud services.

Logical Connectivity Does Not Imply Transit

VNet peering does not automatically provide transitive connectivity between all connected networks. Hub-spoke transit and firewall inspection require appropriate route, peering and forwarding configuration.

9.11 AWS Software-Defined Networking

Amazon Virtual Private Cloud provides logical network infrastructure for AWS workloads. Customers configure connectivity and security using cloud-managed network constructs.

AWS NETWORK CONTROL APIs Network configuration and lifecycle TRANSIT GATEWAY Attachments · Route tables · Transit APPLICATION VPC INSPECTION VPC SHARED SERVICES Workload routes Security appliances Service connectivity Transit relationships depend on attachment associations, propagation and routing policy
Figure 9.7 — AWS Transit Gateway provides managed network transit between supported attachments. Route-table configuration determines the permitted routing relationships.
AWS Service SDN Architectural Role
Amazon VPC Logical network isolation and workload connectivity.
VPC Route Tables Destination-based forwarding towards supported targets.
Security Groups Stateful traffic filtering associated with supported resources.
Network ACLs Stateless traffic filtering at subnet boundaries.
Transit Gateway Managed transit between supported network attachments.
AWS Cloud WAN Policy-driven management of a global network architecture.
AWS Network Firewall Managed network traffic inspection and filtering.
AWS PrivateLink Private connectivity to supported services.
AWS Direct Connect Dedicated connectivity between external networks and AWS.

9.12 Cloud Networking Abstraction and Visibility

Public cloud networking provides substantial operational abstraction. However, that abstraction also changes the evidence available to network engineers.

Traditional Infrastructure Public Cloud Infrastructure
Physical interface inspection Virtual interface and provider-exposed health information.
Direct router CLI access Cloud APIs, effective routes and managed diagnostics.
ASIC forwarding inspection Provider-supported forwarding and connectivity evidence.
Physical port mirroring Supported virtual traffic mirroring and packet capture mechanisms.
Direct control-plane debugging Resource state, activity logs, route diagnostics and provider support.

The Troubleshooting Methodology Remains the Same

Even when the underlying physical infrastructure is abstracted, engineers must still compare desired configuration, effective forwarding, security policy and observed packet behaviour. The available diagnostic interfaces change, but the engineering principles remain applicable.

9.13 Kubernetes Software-Defined Networking

Kubernetes provides a declarative application orchestration environment. Networking implementations translate workload lifecycle and connectivity requirements into distributed networking behaviour.

Kubernetes itself does not prescribe a single packet-forwarding implementation. Container Network Interface plugins and associated components provide the networking capabilities required by the deployment.

KUBERNETES API SERVER Pods · Services · EndpointSlices · NetworkPolicies WORKER NODE 1 WORKER NODE 2 NETWORK AGENT NETWORK AGENT LINUX / eBPF DATA PLANE LINUX / eBPF DATA PLANE POD A POD B POD C POD D Declarative control with distributed node-level forwarding
Figure 9.8 — An illustrative Kubernetes networking implementation. Distributed agents consume relevant Kubernetes state and configure node-level forwarding and policy enforcement.
Orchestration State

Pods and Endpoints

Workload lifecycle and endpoint information provide inputs for networking and service connectivity systems.

Service Abstraction

Kubernetes Services

Stable service abstractions represent access to applicable backend workloads despite changes in individual pod addresses.

Security Intent

NetworkPolicy

Declarative network policies describe supported workload communication restrictions when enforced by a compatible networking implementation.

Distributed Control

Node Networking Agents

Networking components translate relevant cluster state into local routing, encapsulation, service translation and security enforcement.

9.14 eBPF and Programmable Cloud-Native Forwarding

Extended Berkeley Packet Filter provides a mechanism for executing verified programs at supported attachment points within the operating system.

Networking implementations such as Cilium use eBPF to implement selected networking, security and observability capabilities.

Component Architectural Function
eBPF Programs Execute supported packet-processing and system-observation logic.
eBPF Maps Maintain data structures used by programs and userspace components.
XDP Provides an early packet-processing attachment point on supported interfaces.
TC Hooks Support packet-processing logic at traffic control attachment points.
Socket Hooks Enable supported socket-level networking operations.
Userspace Agents Manage programs, maps, policy state and operational coordination.

Programmability Moves Closer to the Workload

In an eBPF-based architecture, selected network decisions can be executed within the host networking stack rather than requiring every packet to traverse a separate physical network appliance. Control and policy state remain distinct from the packet-processing operations that enforce them.

9.15 AI Infrastructure and GPU Fabric Networking

AI infrastructure introduces demanding network requirements associated with distributed training, inference workloads, storage access and collective communication.

GPU clusters may use high-performance Ethernet fabrics supporting RDMA over Converged Ethernet, InfiniBand fabrics or combinations of different networking technologies for distinct infrastructure purposes.

FABRIC MANAGEMENT AND TELEMETRY Topology · Health · Congestion · Configuration SPINE A SPINE B LEAF A LEAF B LEAF C GPU SERVER A GPU SERVER B GPU SERVER C Illustrative scale-out GPU fabric with distributed high-speed forwarding
Figure 9.9 — A conceptual GPU scale-out fabric. Fabric management systems coordinate configuration, topology visibility and operational monitoring, while high-speed forwarding occurs within the network infrastructure.
AI Networking 01

Topology Awareness

Understand GPU placement, network hierarchy, available paths and shared infrastructure dependencies.

AI Networking 02

Congestion Management

Monitor queue behaviour, congestion signals, traffic distribution and applicable RDMA transport mechanisms.

AI Networking 03

Fabric Resilience

Identify failed or degraded links and preserve available connectivity through supported fabric recovery mechanisms.

AI Networking 04

Workload Coordination

Coordinate network topology information with workload placement where supported by scheduling and fabric management systems.

9.16 Ethernet Versus InfiniBand Fabric Control

Characteristic Ethernet / RoCEv2 InfiniBand
Forwarding Ethernet and IP-based infrastructure. InfiniBand-specific fabric forwarding.
Control Distributed routing and optional centralised management. Subnet Manager and associated fabric control mechanisms.
Path Distribution ECMP and platform-specific load distribution capabilities. Fabric routing and supported adaptive routing mechanisms.
Congestion ECN, applicable RDMA congestion control and PFC where configured. InfiniBand-specific flow control and congestion management.
Management Network automation, telemetry and fabric management systems. Subnet management and fabric monitoring systems.

InfiniBand subnet management provides centralised fabric control functions, including topology discovery and applicable forwarding-table configuration.

However, InfiniBand should not be treated as an OpenFlow network or an IP Segment Routing architecture. Its control and forwarding mechanisms are specific to the InfiniBand technology.

Scale-Up and Scale-Out Are Different Networks

NVLink and NVSwitch provide specialised high-bandwidth GPU interconnect capabilities within supported scale-up architectures. Ethernet and InfiniBand commonly provide scale-out connectivity between systems. These technologies have different forwarding, management and performance characteristics.

9.17 SmartNICs and Data Processing Units

SmartNICs and Data Processing Units can offload selected infrastructure networking and security operations from host processors.

Depending on platform capabilities and deployment, these devices can participate in virtual switching, encapsulation, traffic classification, security enforcement and infrastructure isolation.

COMPUTE SERVER HOST CPU APPLICATIONS WORKLOADS DPU / SMARTNIC Virtual switching Encapsulation Security policy Hardware offload NETWORK FABRIC Selected infrastructure operations can be moved away from the host CPU
Figure 9.10 — DPU-assisted infrastructure networking. Supported packet-processing operations can be executed within specialised hardware and software infrastructure.

Hardware acceleration does not remove the need for control-plane correctness. Policy installation, resource allocation, software compatibility and operational verification remain important engineering requirements.

9.18 Multi-Domain SDN Orchestration

Large organisations frequently operate several distinct network domains. Each domain may have its own control protocols, management systems, operational boundaries and forwarding technologies.

Multi-domain orchestration coordinates service requirements across these heterogeneous environments without requiring every domain to implement an identical SDN control plane.

MULTI-DOMAIN SERVICE ORCHESTRATOR Service intent · Dependencies · Policy · Assurance WAN CONTROL DC CONTROL CLOUD APIs CLUSTER CONTROL PCE / SD-WAN Fabric management Azure / AWS Kubernetes WAN DOMAIN DATA CENTRE CLOUD DOMAIN WORKLOAD DOMAIN SR / IPsec EVPN / VXLAN Virtual networking CNI / eBPF END-TO-END SERVICE CONNECTIVITY Coordinated intent across independently controlled network domains
Figure 9.11 — A multi-domain orchestration architecture coordinates WAN, data centre, cloud and workload networking through their respective control interfaces.

9.19 Intent-Based Networking

Intent-based networking attempts to express desired network outcomes at a higher level of abstraction than individual device configuration commands.

An intent system must translate requirements into implementable policies, validate those policies and determine whether the resulting network behaviour satisfies the original requirements.

CONCEPTUAL MULTI-DOMAIN SERVICE INTENT
service:
  name: enterprise-inference-api

  source:
    domain: enterprise-wan
    identity: authorised-application

  destination:
    domain: cloud-kubernetes
    service: inference-api

  connectivity:
    protocol: TCP
    destination_port: 443

  security:
    encrypted_transport: required
    inspection: required
    public_ingress: prohibited

  performance:
    maximum_one_way_latency_ms: 35

  resilience:
    diverse_connectivity: required

  assurance:
    verify_reachability: true
    verify_security_policy: true
    measure_service_latency: true

This example represents conceptual service intent, not the syntax of a specific commercial controller or orchestration API.

Intent Is Not Automatically Feasible

A requested service may exceed available capacity, conflict with security policy or depend on unsupported infrastructure capabilities. An intent system must identify infeasible or conflicting requirements rather than silently claiming successful deployment.

9.20 Translating Intent Across Network Domains

Service Requirement Potential Domain Implementation
Branch Connectivity SD-WAN overlay routing and application steering.
Backbone Performance Constraint-based SR policy where supported.
Tenant Isolation VRFs, EVPN route targets and overlay segmentation.
Cloud Connectivity Virtual network routes, transit services and private connectivity.
Traffic Inspection Appropriate firewall routing and service insertion.
Workload Access Kubernetes service connectivity and enforced network policy.
Service Assurance Active measurements, flow telemetry and application observations.

9.21 The Production Closed-Loop Control Model

Closed-loop network control uses operational observations to evaluate whether the network continues to satisfy its intended behaviour.

OBSERVE ANALYSE PLAN VALIDATE ACTIVATE VERIFY SERVICE INTENT Continuous assurance
Figure 9.12 — Closed-loop network control connects observation, analysis, planning, validation, activation and verification to the original service requirements.
01

Observe

Collect relevant topology, forwarding, resource, performance and service observations.

02

Analyse

Identify deviations from expected behaviour and determine whether corrective action is justified.

03

Plan

Generate feasible corrective actions using current topology, constraints and service priorities.

04

Validate

Check security requirements, resource availability, policy conflicts and potential operational impact.

05

Activate

Apply authorised changes using suitable staging, transaction and recovery mechanisms.

06

Verify

Confirm actual forwarding and service behaviour before declaring the corrective action successful.

9.22 Telemetry-Driven Network Control

Telemetry provides inputs for network visibility, operational assurance and selected automated control decisions.

Telemetry Mechanism Potential Engineering Use
gNMI Model-based configuration and operational telemetry subscriptions.
IPFIX Export of flow information from supported observation points.
sFlow Sampled packet and counter information.
Interface Counters Utilisation, errors, discards and operational health.
Queue Telemetry Congestion, buffering and traffic-class behaviour.
Active Measurements Reachability, delay, loss and applicable service metrics.
Application Telemetry Service response times, errors and workload-level outcomes.

Telemetry Is an Observation, Not Absolute Truth

Measurements may be delayed, sampled, incomplete or collected from a path that differs from the affected application. Automated control systems should consider data freshness, measurement scope and confidence before modifying production forwarding.

9.23 AI-Assisted SDN and Network Automation

AI systems can support network engineering through anomaly detection, incident correlation, configuration analysis, capacity forecasting and operational recommendations.

An AI-assisted network control architecture should distinguish probabilistic reasoning from deterministic forwarding and policy enforcement.

AI Assistance

Incident Analysis

Correlate operational evidence and propose potential explanations for observed network behaviour.

AI Assistance

Optimisation Recommendations

Identify possible capacity improvements, alternative paths or configuration changes for evaluation.

Deterministic Control

Policy Validation

Verify that proposed actions satisfy explicit network, security and resource constraints.

Deterministic Control

Authorised Execution

Apply approved changes through controlled interfaces with operational verification and recovery mechanisms.

AI-ASSISTED NETWORK CONTROL PIPELINE
Telemetry and operational evidence
              |
              v
AI-assisted analysis
              |
              v
Proposed corrective action
              |
              v
Deterministic policy validation
              |
              v
Approval and execution controls
              |
              v
SDN controller / network API
              |
              v
Forwarding verification
              |
              v
Recovery or continued operation

Do Not Give Unconstrained AI Direct Network Authority

AI-generated recommendations may be incomplete or incorrect. Production network changes should remain subject to explicit authorisation, deterministic validation, appropriate execution boundaries and operational verification.

9.24 Production Controller Security

SDN controllers and orchestration systems can possess significant authority over network infrastructure. Their security architecture must therefore reflect the potential operational impact of compromised control access.

Security Control Engineering Objective
Mutual Authentication Establish trusted identities between applicable control components.
Encrypted Control Channels Protect supported control communication against interception and tampering.
Role-Based Access Restrict users and applications to authorised operations.
Management Isolation Reduce exposure of sensitive controller and device interfaces.
Policy Validation Prevent unauthorised or conflicting forwarding changes.
Credential Management Protect and appropriately rotate control-plane credentials.
Audit Logging Associate network changes with authenticated actors and transactions.
Rate Limiting Protect control services against excessive requests and resource exhaustion.
Recovery Controls Provide validated restoration procedures following control-system incidents.

9.25 Designing the Correct Control Timescale

Not every network decision belongs in the same control system or operates on the same timescale.

Control Function Appropriate Architectural Location Illustrative Timescale
Packet Forwarding Local hardware or software data plane. Per packet.
Local Protection Forwarding device and local detection mechanisms. Milliseconds or longer, depending on implementation.
Distributed Convergence Routing protocol participants. Milliseconds to seconds or longer.
Controller Optimisation Network control and path computation systems. Seconds to minutes or other configured intervals.
Service Orchestration Service lifecycle and automation systems. Seconds to hours, depending on workflow.
Capacity Planning Engineering analytics and planning systems. Hours to months.

These timescales are illustrative architectural distinctions rather than guaranteed performance targets.

Keep Fast Decisions Close to the Forwarding Plane

Local forwarding and protection mechanisms should handle operations that cannot tolerate remote controller latency. Broader optimisation and service coordination can operate at timescales appropriate to their available network visibility.

9.26 Production Engineering Scenario: Enterprise AI Service

Consider an enterprise application accessing a privately deployed AI inference service within a cloud-hosted Kubernetes environment.

The service requires private connectivity, encrypted communication, controlled security inspection and predictable application performance.

SERVICE POLICY AND ASSURANCE Private access · Security · Performance ENTERPRISE WAN CLOUD HUB KUBERNETES Application Private transport Firewall / routing Private ingress INFERENCE SERVICE Model-serving workload GPU INFRASTRUCTURE Model execution END-TO-END VERIFICATION 01 · Validate network reachability 02 · Verify security enforcement 03 · Measure network latency 04 · Observe inference response time Multiple network domains cooperate to deliver a single application service
Figure 9.13 — A conceptual enterprise AI inference service delivered across multiple independently controlled network domains.
Domain Required Engineering Behaviour
Enterprise Authorised application access and correct destination resolution.
WAN Reachable private transport and appropriate traffic steering.
Cloud Hub Correct routing, security inspection and private connectivity.
Kubernetes Operational ingress, service endpoints and enforced workload policy.
GPU Infrastructure Available model execution resources and applicable fabric connectivity.
Assurance End-to-end connectivity, security and application performance verification.

A healthy WAN path does not prove that the inference service is operational. Similarly, an operational Kubernetes service does not prove that enterprise traffic can reach it.

End-to-end assurance requires evidence across every relevant service dependency.

9.27 Production Incident: Cross-Domain Policy Failure

An enterprise application cannot connect to its private inference endpoint following a network configuration change.

ILLUSTRATIVE INCIDENT EVIDENCE
Enterprise DNS resolution:
  SUCCESS

SD-WAN overlay connectivity:
  HEALTHY

Cloud private connectivity:
  HEALTHY

Cloud route configuration:
  VALID

Firewall policy:
  TCP/443 PERMITTED

Kubernetes service:
  AVAILABLE

Backend endpoints:
  READY

Workload network policy:
  SOURCE NOT PERMITTED

Observed application result:
  CONNECTION TIMEOUT

Root cause:
  Workload-level security policy
  does not permit the observed
  source identity or address.

The incident demonstrates that individual network domains can appear healthy while the complete application service remains unavailable.

The corrective action should validate the intended security requirements and actual source identity before modifying the workload policy.

9.28 Network Performance Versus Application Performance

Software-defined routing can optimise selected network characteristics, but application response time depends on additional processing and infrastructure components.

Performance Component Example Contributor
Network Transport Propagation, transmission, forwarding and queueing delay.
Security Processing Firewall inspection and applicable encryption operations.
Service Ingress Load balancing, proxy processing and connection management.
Application Queueing Waiting for available application execution capacity.
AI Model Execution Model processing, batching and GPU resource availability.
Backend Dependencies Storage, retrieval systems and external service calls.

Optimise the Actual Bottleneck

Changing a network path cannot resolve GPU execution delays or application queueing unless network behaviour contributes to those conditions. Effective optimisation requires measurements that distinguish network performance from application processing.

9.29 Migrating from Traditional Routing to SDN

Introducing software-defined control does not necessarily require replacing an existing production routing architecture.

A staged migration can introduce visibility, automation and selected programmable control while retaining established forwarding and resilience mechanisms.

01

Discover the Existing Network

Document topology, routing protocols, forwarding dependencies, service relationships and failure domains.

02

Introduce Read-Only Visibility

Collect topology, operational state and telemetry without modifying production forwarding.

03

Validate the Controller Model

Compare controller topology and calculated paths against the actual infrastructure.

04

Introduce Limited Policy Control

Select a bounded service or network domain with clear operational objectives and recovery procedures.

05

Test Failure Behaviour

Evaluate controller outages, topology changes, partial installations and forwarding recovery.

06

Expand Controlled Automation

Extend the deployment only after validating correctness, resilience and operational benefits.

9.30 Production SDN Architecture Design Principles

Principle 01

Preserve Local Resilience

Avoid unnecessary controller dependencies for forwarding operations requiring immediate local recovery.

Principle 02

Define Authoritative Ownership

Establish which control system is authorised to modify each network resource and policy.

Principle 03

Design for State Consistency

Account for asynchronous updates, controller failover, stale state and partial transaction completion.

Principle 04

Validate Resource Feasibility

Ensure requested policies can be implemented using available bandwidth, forwarding resources and platform capabilities.

Principle 05

Separate Intent from Implementation

Express service requirements independently of the specific commands or control protocols used to implement them.

Principle 06

Verify Actual Forwarding

Use independent operational evidence rather than relying exclusively on controller success indicators.

Principle 07

Constrain Automation

Apply appropriate security boundaries, change validation, approval requirements and recovery controls.

Principle 08

Control Operational Complexity

Introduce centralised intelligence where it provides measurable engineering benefits, rather than increasing architectural complexity without a clear objective.

9.31 Selecting an SDN Architecture

Engineering Requirement Architecture to Evaluate
Explicit programmable flow processing OpenFlow, P4 or applicable programmable data-plane technologies.
Scalable multi-tenant data centre connectivity EVPN VXLAN with distributed routing and fabric orchestration.
Backbone constraint-based path selection Segment Routing with optional stateful PCE integration.
Enterprise application-aware WAN connectivity SD-WAN with distributed edge forwarding.
Cloud-native workload connectivity Provider-managed virtual networking and cloud routing services.
Container workload networking and policy Compatible Kubernetes CNI implementations, including eBPF-based options.
High-performance distributed GPU communication Suitable Ethernet/RoCEv2 or InfiniBand fabric architectures.
End-to-end service coordination Multi-domain orchestration with independent domain control systems.

9.32 Engineering Standards and Further Reading

Network Insight · Engineering Guide Conclusion

Software-Defined Networking Is an Evolution of Network Intelligence

SDN should not be understood simply as the replacement of traditional routing with a centralised controller.

Its broader significance is the ability to separate selected control responsibilities from packet forwarding, expose programmable network interfaces, coordinate service requirements and continuously evaluate infrastructure behaviour.

Distributed routing remains essential across many production architectures. BGP, OSPF, IS-IS, EVPN and Segment Routing continue to provide important foundations for scalable network connectivity.

Centralised controllers, orchestration systems and programmable data planes extend these foundations by enabling additional visibility, policy coordination, automation and traffic engineering.

The engineering challenge is not to centralise every decision. It is to determine which decisions benefit from broader network intelligence, which must remain local and how the complete system can be verified under both normal and failure conditions.

From Understanding SDN to Engineering SDN

Understanding software-defined routing requires more than reading architectural descriptions.

Engineers should be able to observe network state, modify policy, investigate forwarding decisions, introduce failures and examine the resulting behaviour.

The interactive engineering experiences accompanying this guide are designed to make those relationships visible.

Observe

Network Intelligence

Examine the differences between distributed routing decisions and controller-driven path computation.

Experiment

Programmable Forwarding

Modify forwarding rules, service constraints and network policies to investigate packet behaviour.

Investigate

Production Incidents

Explore topology changes, controller failures and discrepancies between expected and installed state.

Engineer

Complete Architectures

Connect multiple network domains and evaluate how their control systems cooperate to deliver an end-to-end service.

The Network Insight Engineering Philosophy

Observe the architecture. Understand the control decisions. Experiment with the forwarding behaviour. Introduce failures. Investigate the evidence. Verify the outcome. This is how architectural knowledge becomes practical engineering capability.

Network Insight · Interactive Engineering 09

Multi-Domain SDN Architecture Explorer

Operate a hierarchical software-defined infrastructure spanning enterprise data centres, wide-area networks, public cloud and AI GPU fabrics. Translate application intent into domain-specific policies, provision services, investigate deployment failures and verify end-to-end network behaviour.
Domain controllers 4 / 4
Transport domains 4 / 4
Service deployment None
Service assurance Pending

Hierarchical SDN Production Architecture

Orchestration API Operational transport Installed service path Failed component
Select an application service and provision its end-to-end intent.

Global Orchestration Console

The global orchestrator consumes abstract domain capabilities rather than every internal forwarding entry.
STAGE 01 Service Intent Waiting
STAGE 02 Domain Validation Waiting
STAGE 03 Policy Translation Waiting
STAGE 04 Service Deployment Waiting
STAGE 05 Service Assurance Waiting
Intent-based networking

Abstract Service Intent

No intent validation performed.
Domain abstraction layer

Domain Controller Inspector

Multi-domain policy translation

Desired vs Deployed Service State

Infrastructure domain Domain policy Desired state Installed state Reserved capacity Consistency
Each domain translates the same abstract service intent into its own technology-specific mechanisms. Installed policy state is retained independently of controller availability.
Production resilience

Domain Fault Injection

Controller failures, forwarding failures, capacity exhaustion and missing policies represent different operational failure domains.
Global observability

Orchestration Event Timeline

EXPERIMENT 01

One Intent, Multiple Technologies

Provision the AI Inference Service. Inspect each participating domain. Observe how a single service request produces distinct data centre, SD-WAN, cloud and GPU fabric policies.
EXPERIMENT 02

Controller Failure vs Forwarding Failure

Provision an enterprise application. Disconnect the SD-WAN controller and run a service probe. Existing forwarding can remain operational. Now fail SD-WAN transport and compare the result.
EXPERIMENT 03

Partial Deployment and Reconciliation

Validate an AI inference intent. Disconnect the cloud controller before provisioning. Observe the partial deployment. Restore the controller, reconcile domain policies and verify service delivery.
EXPERIMENT 04

Cross-Domain Admission Control

Request 100 Gbps for the enterprise application. Validate the intent. Identify the limiting domain and reduce the requested bandwidth until all participating domains can admit the service.
EXPERIMENT 05

Security Capability Mismatch

Request a dedicated isolated fabric for an enterprise application. Investigate why shared WAN and cloud infrastructure cannot satisfy this modelled requirement. Compare with the GPU Training Fabric service.
EXPERIMENT 06

Service Assurance Under Load

Provision a valid service. Increase background utilisation within a participating domain. Run assurance probes and investigate the difference between installed policy and available service capacity.
Engineering principle: Production SDN does not require one universal controller or one forwarding protocol. Hierarchical orchestration coordinates independently managed domains through abstract capabilities, service intent, policy translation and continuous assurance. A successfully installed policy is not sufficient evidence of a healthy application service. This educational model uses predefined service paths, aggregate domain capacity, additive latency budgets and simplified security capabilities. Bandwidth reservations represent logical admission accounting, not guaranteed physical throughput. Production GPU collectives, cloud APIs, WAN encryption and fabric controllers require additional technology-specific mechanisms.
☕
Support Network Insight
Help support the development of interactive networking labs, BGP simulations, and educational content.
Support the Project
Matt Conran
Tags: No tags

Comments are closed.