SID Structure¶
An SRv6 Segment Identifier (SID) is a 128-bit value, formatted as a standard IPv6 address. It encodes both the location of a node and the behavior to be executed.
Anatomy of an SRv6 SID¶
|<------------ 128 bits ------------->|
| Locator | Function | Arguments|
|<-- L bits --->|<-F bits->|<-A bits->|
| Field | Description | Typical Size |
|---|---|---|
| Locator | Routable prefix identifying the node | 40-64 bits |
| Function | Identifies the local behavior (End, End.DT4, etc.) | 16-24 bits |
| Arguments | Optional parameters for the function | 0-48 bits |
Decode a SID
Paste any SID into the SRv6 SID Decoder to see its block, node, function and argument bits for the lengths you choose, and whether it sits in 5f00::/16.
Example¶
SID: 5f00:0:1:100::
Breakdown:
Locator: 5f00:0:1::/48 (bits 0-47: identifies the node)
Function: 100 (bits 48-63: End.DT4, decapsulate and look up in an IPv4 table)
Args: (none)
Locator as an IGP route
The locator block is advertised as a regular IPv6 route in the IGP (IS-IS or OSPFv3). This ensures reachability to any SRv6-capable node in the network.
IANA-Allocated SRv6 SID Block (5f00::/16)¶
RFC 9602 (October 2024) allocates a dedicated IPv6 prefix for SRv6 Segment Identifiers. IANA assigned the block from the IPv6 Unicast Address Registry and recorded it in the IPv6 Special-Purpose Address Registry.
| Property | Value |
|---|---|
| Address Block | 5f00::/16 |
| Name | Segment Routing (SRv6) SIDs |
| RFC | RFC 9602 |
| Allocation Date | 2024-04 |
| Source | True |
| Destination | True |
| Forwardable | True |
| Globally Reachable | False |
| Reserved-by-Protocol | False |
The 5f00::/16 block is forwardable within SR domains but is explicitly marked as not globally reachable: packets carrying these addresses as destination should not transit the public Internet.
A typical allocation hierarchy within this block:
5f00::/16 <- IANA SRv6 SID block
5f00:<domain>::/32 <- Operator / SR domain
5f00:<domain>:<node>::/48 <- Node locator
5f00:<domain>:<node>:<func>::/64 <- SID (locator + function)
Using Operator GUA Prefixes vs 5f00::/16¶
RFC 9602 does not mandate 5f00::/16. Operators can continue using their own globally unique address (GUA) prefixes as SRv6 locators. Both approaches are valid:
| Approach | Prefix Source | Pros | Cons |
|---|---|---|---|
| IANA SRv6 block | 5f00::/16 | Instantly recognizable in captures and ACLs; easy filtering; no GUA consumption | Not globally routable; requires explicit IGP/BGP advertisement within the SR domain |
| Operator GUA | Provider /32 or /48 | Already routable in the operator's network; dual-use as IPv6 reachability | Consumes GUA space; harder to distinguish SRv6 traffic from regular IPv6 |
Most early SRv6 deployments (China Mobile, SoftBank, and others) use operator-assigned GUA prefixes. RFC 9602 provides a complementary option, especially useful for greenfield deployments and inter-domain SRv6 where a common recognizable prefix simplifies filtering.
Filtering 5f00::/16 at Domain Boundaries¶
Whether you use 5f00::/16 or your own GUA, keep SRv6 SIDs inside the SR domain at two layers:
- Routes: never advertise the SID block to external peers, and never accept it from them.
- Packets: drop packets arriving on external interfaces whose destination is in the SID block, so nobody outside can send traffic to your SIDs.
prefix-set SRV6-SIDS
5f00::/16 le 128
end-set
!
route-policy NO-SRV6-SIDS
if destination in SRV6-SIDS then
drop
else
pass
endif
end-policy
!
router bgp 65000
neighbor 2001:db8:ff::1
address-family ipv6 unicast
route-policy NO-SRV6-SIDS in
route-policy NO-SRV6-SIDS out
!
ipv6 access-list EDGE-IN
10 deny ipv6 any 5f00::/16
20 permit ipv6 any any
!
interface HundredGigE0/0/0/0
ipv6 access-group EDGE-IN ingress
The else pass matters: an IOS-XR route policy drops everything it does not explicitly pass.
policy-options {
policy-statement NO-SRV6-SIDS {
term deny-srv6 {
from {
route-filter 5f00::/16 orlonger;
}
then reject;
}
}
}
firewall {
family inet6 {
filter EDGE-IN {
term no-srv6-sids {
from {
destination-address {
5f00::/16;
}
}
then discard;
}
term rest {
then accept;
}
}
}
}
Apply NO-SRV6-SIDS as both import and export policy on the external BGP group, and EDGE-IN as filter input on the external interfaces (family inet6). orlonger is needed: without it the policy only matches the /16 itself.
# External interface only: inside the domain, SRv6 traffic to the SID block is legitimate
ip6tables -t raw -A PREROUTING -i eth-external -d 5f00::/16 -j DROP
The raw table's PREROUTING chain runs before the routing decision, so it also covers packets addressed to local SIDs, which never reach FORWARD.
For deployments using operator GUA prefixes, apply the same principle with your locator prefix range (see also RFC 8754 Section 5.1).
Further Reading¶
- SRv6 SID Decoder - Decode a SID or uSID container bit by bit
- Network Programming - How SIDs map to behaviors
- What is SRv6? - Back to overview
- uSID Compression - Compressed SID encoding (RFC 9800)
- Security - SRv6 security considerations
- RFC 9602 - The IANA 5f00::/16 SRv6 SID block
References¶
- RFC 8986 - SRv6 Network Programming - Defines SID structure, locator, function, and argument fields
- RFC 9602 - SRv6 SIDs in the IPv6 Addressing Architecture - IANA allocation of
5f00::/16for SRv6 SIDs - RFC 8754 - IPv6 Segment Routing Header (SRH) - SRH specification and security considerations
- IANA IPv6 Special-Purpose Address Registry - Official registry entry for
5f00::/16 - Segment Routing - segment-routing.net - Community resource with tutorials, demos, and SRv6 deployment information