← All posts
SRv6

SRv6 vs SR-MPLS: Data Plane Comparison with a Live Lab

SRv6 vs SR-MPLS: Data Plane Comparison with a Live Lab

Same architecture, two encodings

SR-MPLS (RFC 8660) and SRv6 (RFC 8402, RFC 8754, RFC 8986) share one idea: the head-end writes the path into the packet as an ordered list of segments. They differ in what a segment looks like on the wire. SR-MPLS reuses the 32-bit MPLS label stack entry. SRv6 uses 128-bit IPv6 addresses (SIDs), carried in the destination address and, for longer paths, in a Segment Routing Header. This lab compares both on the same small topology so you can do the arithmetic and read the captures side by side. For the conceptual intro, see what SRv6 is and how it differs from SR-MPLS.

Lab topology

Three routers in a line, PE1 - P1 - PE2, running IS-IS with SR enabled. Run the topology twice: once with SR-MPLS (a prefix SID per node from the SRGB), once with SRv6 (an IS-IS locator per node, RFC 9352). Any lab platform that supports both works, such as containerlab with vendor images. The CLI below is illustrative and generic, so adapt the syntax to your NOS. For a full IOS XR locator walkthrough, see the SRv6 IS-IS locator lab on IOS XR.

# ILLUSTRATIVE - generic syntax, not copy-paste for any vendor
# SR-MPLS
router isis CORE
  segment-routing mpls
  prefix-sid index 11            # label = SRGB base + index

# SRv6
segment-routing srv6
  locator LOC1  prefix fc00:0:1::/48
router isis CORE
  segment-routing srv6 locator LOC1

What the packet looks like

Illustrative decode of a packet steered over a two-segment path. Field values are examples, not a real capture.

Sign up free to keep reading

This post is for members. Create a free account to read the full article, it only takes a few seconds.

Sign up free