BGP Overlay Services over SRv6¶
SRv6 provides a clean, unified underlay for delivering L3VPN and L2VPN (EVPN) services using BGP — without MPLS, without LDP, without RSVP-TE. Just IPv6 + BGP.
Architecture Overview¶
- PE1 BGP → PE2 BGP (MP-BGP with SRv6 SIDs)
- PE1 → P Node (SRv6 Transport)
- P Node → PE2 (SRv6 Transport)
- CE1 - Customer → PE1
- CE2 - Customer → PE2
- Overlay - BGP Control Plane → CE1 - Customer
- Overlay - BGP Control Plane → CE2 - Customer
Key principle: BGP carries service information (VPN prefixes, EVPN routes) with SRv6 SIDs instead of MPLS labels. The SRv6 SID tells the remote PE exactly what to do with the packet (decap to which VRF, cross-connect to which interface, etc.).
L3VPN over SRv6¶
How It Works¶
- PE1 learns customer prefix
10.1.0.0/24from CE1 in VRFCUSTOMER-A - PE1 advertises via MP-BGP VPNv4/VPNv6 with an SRv6 SID instead of a VPN label:
- Prefix:
10.1.0.0/24 - Next-Hop:
PE1 IPv6 address - SRv6 Service SID:
fcbb:bb01:1:e004::(End.DT4 behavior; function value0xe004identifies VRFCUSTOMER-A)
- Prefix:
- PE2 receives the BGP update, installs the route
- When PE2 receives traffic for
10.1.0.0/24, it encapsulates with:- IPv6 DA =
fcbb:bb01:1:e004:: - Inner packet = original IPv4
- IPv6 DA =
- PE1 receives, matches End.DT4 SID, decapsulates, looks up in VRF
CUSTOMER-A
SRv6 SID Allocation Modes¶
| Mode | Description | SID per... |
|---|---|---|
| Per-VRF | One SID shared by all prefixes in a VRF | VRF |
| Per-CE | One SID per CE neighbor | CE |
| Per-Prefix | Unique SID for each prefix | Prefix |
Per-VRF is most common
Per-VRF allocation (End.DT4 / End.DT6) is the default and most scalable option. The SID says "decap and lookup in this VRF table."
Configuration¶
!! VRF definition
vrf CUSTOMER-A
address-family ipv4 unicast
import route-target 100:1
export route-target 100:1
!
!
!! BGP with SRv6
router bgp 65000
address-family vpnv4 unicast
segment-routing srv6
locator MAIN
!
!
vrf CUSTOMER-A
rd 100:1
address-family ipv4 unicast
segment-routing srv6
locator MAIN
alloc mode per-vrf
!
!
!
!
EVPN over SRv6¶
EVPN (Ethernet VPN) provides L2 services (E-Line, E-LAN, E-Tree) and integrated L2/L3 services over SRv6 transport.
EVPN Route Types with SRv6¶
| Route Type | Name | SRv6 Behavior |
|---|---|---|
| Type 2 | MAC/IP Advertisement | End.DX2 or End.DT2 |
| Type 3 | Inclusive Multicast | BUM traffic handling |
| Type 5 | IP Prefix Route | End.DT4 / End.DT6 (IP-VRF) |
EVPN-VPWS (E-Line) with SRv6¶
Point-to-point L2 service using End.DX2 behavior:
The End.DX2 SID tells PE2: "decapsulate and cross-connect this L2 frame to the specified attachment circuit."
EVPN-VXLAN vs EVPN-SRv6¶
| Aspect | EVPN-VXLAN | EVPN-SRv6 |
|---|---|---|
| Encapsulation | VXLAN (UDP) | SRv6 (IPv6 + SRH) |
| Underlay | IPv4 or IPv6 | IPv6 native |
| TE capability | Limited | Full SR Policy support |
| Network programming | None | Rich (service chaining, slicing) |
| MTU overhead | 50 bytes | 40 bytes (no SRH) to 64+ bytes (with SRH: 40 + 8 + 16 per SID) |
BGP SRv6 Service TLV (RFC 9252)¶
RFC 9252 defines how SRv6 SID information is carried in BGP updates using the SRv6 Services TLVs within the BGP Prefix-SID attribute:
BGP Update Message:
├── NLRI: 10.1.0.0/24 (VPNv4)
├── Next-Hop: 2001:db8::1
├── Extended Community: RT 100:1
└── BGP Prefix-SID Attribute:
└── SRv6 L3 Service TLV:
├── SRv6 SID: fcbb:bb01:1:e004:: (block fcbb:bb01, node 1, function 0xe004)
├── SRv6 SID Behavior: End.DT4 (19)
└── SRv6 SID Structure:
├── Locator Block Length: 32
├── Locator Node Length: 16
├── Function Length: 16
└── Argument Length: 0
SID Transposition¶
To pack more prefixes per BGP update, RFC 9252 defines a Transposition Scheme: the variable part of the SID (for example the function) is moved out of the SID and carried in the MPLS Label field of the NLRI (or another existing label field, such as the ESI Label of an EVPN route), while the SRv6 Services TLV carries only the common part, such as the locator. The SID Structure Sub-Sub-TLV's Transposition Offset and Transposition Length tell the receiver which bits were moved, so it can rebuild the full SID. The label field limits how many bits can be transposed: 20 bits for L3VPN (RFC 4364 / RFC 8277), 24 bits for EVPN (RFC 7432).
Verification¶
Further Reading¶
- VPN Services - Use case details
- Network Programming - End.DT4, End.DX2, and other behaviors
- SRH Mechanics - Packet-level details
- RFC 9252 - BGP Overlay Services Based on SRv6
- RFC 8986 - SRv6 Network Programming
- Cisco IOS-XR - L3VPN over SRv6 on IOS-XR
- Juniper - L3VPN over SRv6 on Junos
- FRRouting - L3VPN over SRv6 with open-source FRR
- netlab Labs - Ready-made L3VPN over SRv6 lab topology
References¶
- RFC 9252 - BGP Overlay Services Based on SRv6 - Defines SRv6 Service TLVs in BGP for L3VPN, EVPN, and Internet services over SRv6
- RFC 8986 - SRv6 Network Programming - Defines End.DT4, End.DT6, End.DX2, and other service endpoint behaviors
- RFC 7432 - BGP MPLS-Based Ethernet VPN - Foundational EVPN specification defining route types and MAC learning in the control plane
- Cisco XRdocs: Implementing EVPN ELAN over SRv6 Transport - Step-by-step tutorial for configuring EVPN multipoint L2 service over SRv6 uSID
- Cisco XRdocs: SRv6 Transport on NCS5500 - Part 1 - Tutorial covering SRv6 transport fundamentals and L3VPN configuration on NCS 5500