Skip to content

SRv6 uSID (Micro-SID) Compression

Leer en español · 日本語で読む

uSID (micro-SID) is the compressed form of an SRv6 SID, standardized as the NEXT-C-SID flavor in RFC 9800. Each uSID is a short instruction, usually 16 bits, and up to six of them fit in one 128-bit IPv6 address, so most SRv6 paths need no extension header at all.

One of the early criticisms of SRv6 was overhead — each SID is 128 bits (16 bytes), and a segment list of 5 SIDs adds 80 bytes to every packet. Micro-SID (uSID) solves this by packing multiple segment instructions into a single 128-bit SID.

The Problem

With classic SRv6, each hop in the segment list costs 16 bytes:

Classic SRv6 (5 SIDs = 80 bytes overhead):
┌──────────────────────────────────────────────┐
│ SRH: Segment List                             │
│   [0]: fc00:0:5::1  (16 bytes)               │
│   [1]: fc00:0:4::1  (16 bytes)               │
│   [2]: fc00:0:3::1  (16 bytes)               │
│   [3]: fc00:0:2::1  (16 bytes)               │
│   [4]: fc00:0:1::1  (16 bytes)               │
│                          Total: 80 bytes      │
└──────────────────────────────────────────────┘

For short packets or latency-sensitive traffic, this overhead is significant.

The Solution: Micro-SID (uSID)

uSID (RFC 9800) packs up to 6 micro-instructions into a single 128-bit container:

uSID Container (6 micro-SIDs = 16 bytes total!):
┌──────────────────────────────────────────────┐
│ Single 128-bit IPv6 Address:                  │
│                                               │
│  fcbb:bbbb:0001:0002:0003:0004:0005:0006    │
│  ├──┬────┤├──┤├──┤├──┤├──┤├──┤├──┤          │
│  │ Block ││uS1││uS2││uS3││uS4││uS5││uS6│   │
│  │(32bit)││16b││16b││16b││16b││16b││16b│     │
│                          Total: 16 bytes!     │
└──────────────────────────────────────────────┘

Structure

Component Size Description
uSID Block 32 bits Common prefix for all uSIDs in the domain (e.g., fcbb:bbbb)
uSID 16 bits each Individual micro-instruction identifying a node + behavior
End-of-Container 16 bits (0000) Marks the end of active uSIDs in the container

How It Works

Processing a uSID container is a simple shift-and-lookup operation:

Step 1 - Ingress receives:
  DA = fcbb:bbbb:0001:0002:0003:0000:0000:0000
                  ^^^^
                  Active uSID → Node 1

Step 2 - Node 1 processes uSID 0001, shifts left:
  DA = fcbb:bbbb:0002:0003:0000:0000:0000:0000
                  ^^^^
                  Active uSID → Node 2

Step 3 - Node 2 processes uSID 0002, shifts left:
  DA = fcbb:bbbb:0003:0000:0000:0000:0000:0000
                  ^^^^
                  Active uSID → Node 3

Step 4 - Node 3 processes uSID 0003. Everything after it is 0000
         (end-of-container), so there is nothing left to shift:
  DA = fcbb:bbbb:0003:0000:0000:0000:0000:0000
                  ^^^^
                  Last uSID → with an SRH, take the next container
                  (Segments Left - 1); without one, run the final behavior

Try it with your own container

The uSID calculator decodes any F3216 (or custom-length) container and steps through the shift at each node, flagging the end-of-container and how many uSIDs remain.

Overhead Comparison

Scenario Classic SRv6 uSID Savings
3 SIDs 48 bytes 16 bytes 67%
6 SIDs 96 bytes 16 bytes 83%
10 SIDs 160 bytes 32 bytes (2 containers) 80%
12 SIDs 192 bytes 32 bytes (2 containers) 83%

6 hops in 16 bytes

A single uSID container can encode up to 6 segment instructions in the same space that classic SRv6 uses for just 1 SID. It removes the per-SID cost: a path of up to six instructions needs only the 40-byte outer IPv6 header and no SRH. A plain MPLS VPN is still smaller (8 bytes); see SRv6 vs MPLS for the numbers.

uSID vs G-SRv6

Two compression approaches emerged and are now unified under RFC 9800:

Aspect uSID (NEXT-C-SID) G-SRv6 (Replace-C-SID)
Origin Cisco, Bell Canada China Mobile, Huawei
Processing Shift-and-lookup Replace-and-lookup
uSID size 16 or 32 bits 16 or 32 bits
RFC RFC 9800 RFC 9800
Adoption Multiple global operators Multiple global operators

Both flavors are standardized in RFC 9800 (Compressed SRv6 Segment List Encoding). They are different encodings, so a domain uses one of them; multi-vendor interoperability has been demonstrated for NEXT-C-SID (uSID).

Configuration Examples

segment-routing
 srv6
  locators
   locator uSID-MAIN
    micro-segment behavior unode psp-usd
    prefix fcbb:bbbb:1::/48
   !
  !
 !
!
# Encapsulate with uSID container
ip route add 10.0.0.0/24 encap seg6 mode encap \
  segs fcbb:bbbb:0001:0002:0003:: dev eth0

Industry Adoption

Multiple operators have publicly announced SRv6 uSID deployments. See Real-World Deployments for a directory of public announcements with links to original sources.

Further Reading

References

  1. RFC 9800 - Compressed SRv6 Segment List Encoding - Standards track RFC defining NEXT-C-SID and Replace-C-SID flavors for SRv6 compression
  2. draft-filsfils-spring-net-pgm-extension-srv6-usid - SRv6 uSID Instruction - Original IETF draft introducing the micro-SID (uSID) network programming extension
  3. Bell Canada SRv6-uSID Deployment (PDF) - Daniel Voyer's presentation on Bell Canada's operational SRv6 uSID deployment
  4. Segment Routing - SRv6 uSID L3VPN Interoperability - Demo showing SRv6 uSID multi-vendor L3VPN interoperability on segment-routing.net