Segment routing

On this page 7

Segment routing is a source routing architecture in which the ingress node steers a packet along a chosen path by attaching an ordered list of instructions called segments to the packet header. In routing, it lets operators define explicit paths and traffic engineering policies while core routers keep no per-flow state, because the path travels with the packet itself.

The architecture is specified by the IETF, mainly in RFC 8402, and runs over two data planes: SR-MPLS, which encodes segments as MPLS labels, and SRv6, which encodes them as IPv6 addresses. Segment information is distributed by extensions to existing link-state protocols such as IS-IS and OSPF, so segment routing removes the need for separate label signaling protocols in many networks.

How segment routing steers packets

A segment is an instruction that a node executes on a packet, such as “forward to node C along the shortest path” or “send out of this specific link”. The ingress router (the headend) pushes a segment list onto the packet. Each node processes the active segment, forwards the packet accordingly and, when that segment is completed, moves on to the next one in the list.

Between explicitly listed nodes, packets follow the normal interior gateway protocol shortest path, including ECMP load sharing. This makes segment lists compact: a path through a large network often needs only two to five segments rather than one entry per hop. Transit routers forward based on the active segment alone and hold no state about individual paths or tunnels, which is the central scaling advantage over older traffic engineering approaches.

The table lists the segment types that appear most often in deployed networks.

Segment typeScopeInstruction it represents
Prefix segmentGlobal within the domainReach a prefix along the shortest path
Node segmentGlobal within the domainPrefix segment identifying one router
Adjacency segmentLocal to one routerForward over a specific link
Anycast segmentGlobal, shared by several nodesReach the nearest node of a group
Binding segmentLocal to one routerExpand into another segment list or policy
Main segment types

SR-MPLS and SRv6 data planes

Segment routing is independent of the forwarding plane, and the two implementations encode segments very differently. SR-MPLS reuses the existing MPLS forwarding hardware: each segment becomes a label, and global segments are represented as an index into the Segment Routing Global Block (SRGB), a label range that should be identical across routers for easier operations.

SRv6 encodes each segment as a 128-bit segment identifier (SID) in an IPv6 Segment Routing Header, defined in RFC 8754. SRv6 SIDs can also carry network programming functions, such as decapsulation into a VRF, which allows VPN services and traffic engineering to share one native IPv6 data plane. The cost is header overhead, which compressed SID formats reduce.

AspectSR-MPLSSRv6
Segment encoding32-bit MPLS label entries128-bit IPv6 addresses
Header overhead per segment4 bytes16 bytes, less with compressed SIDs
Hardware requirementExisting MPLS forwardingSRv6-capable IPv6 forwarding
Transport requirementMPLS-enabled coreIPv6 end to end
Service programmabilityThrough labels and VPN signalingNative functions inside the SID
SR-MPLS compared with SRv6

Segment routing compared with classic MPLS and IP routing

Segment routing is best understood as a simplification of MPLS traffic engineering. Classic MPLS networks use LDP to distribute labels and RSVP-TE to reserve explicit paths, and RSVP-TE keeps state for every tunnel on every transit router. Segment routing distributes labels or SIDs through the IGP and moves path state to the headend, which removes two protocols and most signaling load.

ApproachPath state locationMain limitation
Destination-based IP routingRouting table of each routerOnly the shortest path, little steering
Policy-based routingPolicy on individual routersHop-by-hop configuration, poor scale
MPLS with RSVP-TEEvery router on each tunnelSignaling and state grow with tunnels
Segment routingHeadend and packet headerHeader size limits very long paths
Path control approaches in routing

Segment routing does not reserve bandwidth on transit links the way RSVP-TE can. Bandwidth guarantees instead depend on a path computation element (PCE) or controller that tracks utilization and calculates paths centrally, so admission control moves from the network to software.

Traffic engineering and fast reroute with segment routing

The main application is SR Traffic Engineering (SR-TE), organized around an SR Policy identified by headend, color and endpoint. The color represents an intent such as low latency or disjointness, and services mapped to that color automatically follow the matching policy. Paths can be computed locally or by a PCE that communicates through PCEP or BGP.

Segment routing also enables Topology-Independent Loop-Free Alternate (TI-LFA), a fast reroute mechanism that precomputes a backup path for every protected link or node. Because the backup path can be expressed as a short segment list, TI-LFA provides coverage close to 100 percent of topologies and typically restores traffic in under 50 milliseconds.

The decision table shows typical uses and the segment routing feature that serves each.

RequirementSegment routing featureOutcome
Low-latency path for voiceSR Policy with latency metricTraffic avoids long-haul detours
Disjoint paths for redundancyPCE-computed disjoint policiesNo shared link or node
Fast link protectionTI-LFASub-50 ms recovery
Layer 3 VPN transportPrefix segments or SRv6 servicesSimpler core without LDP
Network slicingFlexible algorithm with colorsSeparate path sets per service
Common segment routing use cases

Limitations and deployment pitfalls

Segment routing simplifies the control plane but introduces new operational constraints. Teams migrating from LDP or RSVP-TE should plan for the following issues.

  • Maximum SID depth: older line cards can push only a few labels, which limits the length of explicit paths.
  • Inconsistent SRGB ranges across vendors complicate troubleshooting and interworking.
  • SRv6 header overhead can push packets above the link MTU unless the core MTU is raised.
  • No native bandwidth reservation: congestion avoidance depends on controller accuracy and telemetry.
  • Visibility: per-path counters are not available on transit routers, so path monitoring needs telemetry or probes.

Most operators migrate gradually, running LDP and SR-MPLS side by side and using a mapping server so that segment routing and LDP domains can interoperate during the transition.

In simple terms

Segment routing works like giving a courier a short list of waypoints instead of letting every post office choose the next step on its own. The first router writes the waypoints on the package, and each router along the way only reads the current waypoint.

Because the instructions travel with the package, the routers in the middle do not need to remember anything about individual deliveries. This makes it easier for a network operator to send important traffic along a faster or safer route.

A practical example

A regional service provider runs an MPLS core of 60 routers with LDP and about 900 RSVP-TE tunnels. The tunnels consume memory on transit routers, and every topology change triggers a burst of signaling. The team migrates to SR-MPLS with IS-IS extensions, keeping LDP running in parallel for six months.

After the migration, the provider defines two SR Policies per site: one with a latency metric for voice and financial customers and one following the default IGP path for bulk traffic. TI-LFA protects every core link. Failover tests show traffic restoration in about 30 milliseconds, LDP and RSVP-TE are switched off, and the core runs with one protocol fewer and no tunnel state on transit routers.