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 type | Scope | Instruction it represents |
|---|---|---|
| Prefix segment | Global within the domain | Reach a prefix along the shortest path |
| Node segment | Global within the domain | Prefix segment identifying one router |
| Adjacency segment | Local to one router | Forward over a specific link |
| Anycast segment | Global, shared by several nodes | Reach the nearest node of a group |
| Binding segment | Local to one router | Expand into another segment list or policy |
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.
| Aspect | SR-MPLS | SRv6 |
|---|---|---|
| Segment encoding | 32-bit MPLS label entries | 128-bit IPv6 addresses |
| Header overhead per segment | 4 bytes | 16 bytes, less with compressed SIDs |
| Hardware requirement | Existing MPLS forwarding | SRv6-capable IPv6 forwarding |
| Transport requirement | MPLS-enabled core | IPv6 end to end |
| Service programmability | Through labels and VPN signaling | Native functions inside the SID |
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.
| Approach | Path state location | Main limitation |
|---|---|---|
| Destination-based IP routing | Routing table of each router | Only the shortest path, little steering |
| Policy-based routing | Policy on individual routers | Hop-by-hop configuration, poor scale |
| MPLS with RSVP-TE | Every router on each tunnel | Signaling and state grow with tunnels |
| Segment routing | Headend and packet header | Header size limits very long paths |
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.
| Requirement | Segment routing feature | Outcome |
|---|---|---|
| Low-latency path for voice | SR Policy with latency metric | Traffic avoids long-haul detours |
| Disjoint paths for redundancy | PCE-computed disjoint policies | No shared link or node |
| Fast link protection | TI-LFA | Sub-50 ms recovery |
| Layer 3 VPN transport | Prefix segments or SRv6 services | Simpler core without LDP |
| Network slicing | Flexible algorithm with colors | Separate path sets per service |
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.