← All posts
SRv6

What is SRv6 and How It Differs from SR-MPLS

What is SRv6 and How It Differs from SR-MPLS

The short version

Segment Routing (SR) is a source-routing idea: the ingress node encodes a path as an ordered list of instructions called segments, and the network executes them. The architecture is defined in RFC 8402, and it has two data-plane flavors. SR-MPLS reuses the MPLS data plane, so a segment is a 20-bit label. SRv6 uses IPv6, so a segment is a 128-bit IPv6 address called a SID. Same control-plane thinking, very different packet on the wire.

This post is the orientation piece: what each one actually puts in the packet, what changes operationally, and when you would pick one. For the packet-level deep dive, see SRv6 data plane: SRH, SIDs and forwarding.

What SR-MPLS does

In SR-MPLS (RFC 8660), a segment is an MPLS label. Two kinds matter most:

  • Prefix SID: a globally meaningful index into the SR Global Block (SRGB). "Reach node X by the shortest path."

  • Adjacency SID: locally significant. "Send out this specific link."

A steered path is simply a label stack. The ingress pushes the stack, and each node looks at the top label, swaps or pops it, and forwards. There is no per-flow state in the core and no LDP or RSVP-TE; the IGP (IS-IS per RFC 8667, or OSPF) advertises the SIDs.

The key property: the forwarding plane is plain MPLS. If your hardware, tooling and operations already run MPLS, SR-MPLS is an evolution, not a replacement.

What SRv6 does

SRv6 carries the segments in the IPv6 packet itself. The network programming model is in RFC 8986 and the header is in RFC 8754.

  • A SID is a 128-bit IPv6 address, usually carved out of a locator prefix that the node advertises in the IGP so the SID is routable like any other IPv6 prefix. How those 128 bits are divided is covered in SRv6 SID structure: locator, function, argument.

  • A SID is not just a location. It also names a behavior the node performs, such as End (go to this node), End.X (cross-connect to a specific neighbor), or End.DT4 / End.DT6 (decapsulate and look up in a given IPv4 or IPv6 table).

  • For a path with more than one segment, the ingress adds a Segment Routing Header (SRH), an IPv6 routing extension header (Routing Type 4) holding the segment list and a Segments Left counter.

The active segment is always the IPv6 destination address. When a node that owns the destination SID processes the packet, it runs the SID's behavior; for End, it decrements Segments Left and copies the next segment from the list into the destination address. Nodes that do not own the SID just forward it as ordinary IPv6. Note that the SRH stores the list in reverse order, so the first segment to visit is at the end of the list.

Side-by-side: what really differs

AspectSR-MPLSSRv6 Segment identifier20-bit MPLS label128-bit IPv6 address (SID) Path encodingLabel stackDestination address, plus SRH for multi-segment paths Data planeMPLSNative IPv6 Segment meaningMostly forwarding along a prefix or adjacency, plus service labelsArbitrary programmable behavior per SID Overlay servicesService labels (for example VPN labels)Service SIDs, such as End.DT4 / End.DT6, carried in the same SID space Header overhead4 bytes per label16 bytes per segment, plus 8 bytes of fixed SRH header Needs MPLS in the networkYesNo; IPv6 only

The overhead row is the honest cost of SRv6: a long segment list is much heavier than a label stack. Compression work (the CSID / uSID approach, standardized as RFC 9800) and reduced encapsulation modes exist precisely to address this, and many deployments avoid the SRH entirely when a single SID is enough.

Why people care about SRv6

One data plane for transport and services

With SR-MPLS you still have labels for transport and a separate set of labels for services. With SRv6 both are IPv6 addresses from the same structure, and a single SID can encode "reach this node, then decapsulate into this VRF." Service signaling over BGP (RFC 9252) advertises those service SIDs.

No MPLS required

Because the packet is ordinary IPv6, it can cross any IPv6-capable hop. Only the nodes that own a SID need to understand its behavior. That is attractive in networks where MPLS is not already present, a theme explored in SRv6: unifying data center and WAN.

Summarization and reachability

Since SIDs live inside locator prefixes, the IGP can advertise one locator per node and the SIDs follow along. Summarization works the way IPv6 summarization normally works.

What stays the same

The mental model is shared. Both use the IGP to flood segment information (IS-IS extensions for SRv6 are in RFC 9352), both can steer traffic with SR policies, both can apply TI-LFA for fast reroute, and both keep per-flow state at the ingress rather than in the core. If you understand SR-MPLS policy, you already understand most of SRv6 policy; what changes is how the segment list is written into the packet.

An illustrative configuration

The snippet below is only a sketch of the shape of an SRv6 locator definition in a Cisco IOS XR style CLI. Treat it as illustrative; exact syntax varies by platform and release, so check your vendor documentation. The addresses use a documentation-style fc00::/7 ULA range chosen for the example.

! Illustrative only - verify syntax for your platform and release
segment-routing
 srv6
  locators
   locator MAIN
    prefix fcbb:bb00:1::/48
  !
 !
!
router isis CORE
 address-family ipv6 unicast
  segment-routing srv6
   locator MAIN

Once the IGP advertises the locator, other nodes learn a route to fcbb:bb00:1::/48 as a normal IPv6 prefix. The specific SIDs, such as End or End.DT4, are allocated from within that locator. A full walkthrough of a working lab is in the IS-IS locator lab on IOS XR.

Packet walk: a two-segment path

Suppose the ingress wants the packet to go through node B, then arrive at node C. Conceptually (addresses are placeholders):

IPv6 header : SA = ingress, DA = B's End SID      (active segment)
SRH         : Segments Left = 1
              Segment List[0] = C's SID           (final)
              Segment List[1] = B's SID           (first)
payload

At B (owns the DA): Segments Left 1 -> 0, DA := Segment List[0] = C's SID
At C: process the final SID's behavior (for example End.DT4)

The intermediate routers between the ingress and B see nothing special, only an IPv6 packet addressed to B.

Which should you choose?

  • You already run MPLS and are happy: SR-MPLS is the lower-risk step. Tooling, hardware and operator skills carry over.

  • You are building a greenfield IPv6 network, or want to remove MPLS: SRv6 is worth a serious look, particularly for the unified service model.

  • You need long explicit paths on constrained hardware: check how your platforms handle SRH depth and whether they support compressed SIDs before committing. Hardware support varies, so validate it on your own gear.

Neither is universally better. They are two encodings of the same architecture, and the right choice depends on what your hardware, operations and services already look like.

Key takeaways

  • SR-MPLS: segment = MPLS label, path = label stack.

  • SRv6: segment = IPv6 address (SID) carrying a behavior, path = destination address plus optional SRH.

  • SRv6 trades larger headers for native IPv6 forwarding and a unified service model; compression reduces the overhead.

  • The control-plane ideas, policies and fast reroute concepts are largely shared.

Comments (0)

Please sign in to comment.

  • Be the first to comment.