SRv6 on SONiC¶
SONiC (Software for Open Networking in the Cloud) has carried SRv6 code since the 202111 release. On a switch, SRv6 forwarding happens in the ASIC: SONiC programs it through orchagent (srv6orch) and the SAI SRv6 objects, so which behaviors actually forward depends on each vendor's SAI implementation.
Current Status¶
| Release | SRv6 change | Source |
|---|---|---|
| 202111 | First orchagent SRv6: End, End.DT46, H.Encaps.Red | Release notes |
| 202211 | uSID data plane: uN, uA | Release notes |
| 202305 | Selectable SID-list type (encaps / encaps.red / insert) | sonic-swss #2406 |
| 202405 | Adjacency programming for End.X, uA, End.DX4/DX6 (L3Adj) | Release notes |
| 202505 | Static SRv6 in CONFIG_DB (uN, uDT46), rated Alpha in the release notes; SRv6 VPN support in srv6orch | Release notes, sonic-swss #3293 |
| master (Aug 2026) | Static uA in CONFIG_DB | sonic-buildimage #27903 |
SAI defines End, End.X, End.T, End.DX4/DX6, End.DT4/DT6/DT46, End.B6.Encaps(.Red) and their uSID variants, but no L2 behaviors (End.DX2, End.DT2U/DT2M), so EVPN over SRv6 has no data plane in SONiC. See the SRv6 Support Matrix for the full list.
Architecture¶
- ASIC data plane via SAI —
srv6orchturns APP_DB entries into SAImy_sidandsidlistobjects. The Linux kernel's seg6 data plane is not what forwards traffic on a SONiC switch. - FRRouting control plane —
fpmsyncdcarries SRv6 routes from FRR's zebra into APP_DB. SONiC's FRR container runs bgpd, staticd and ospfd (OSPFv2) but not isisd or ospf6d, so SIDs come from BGP (L3VPN) or from static configuration, not from an IGP. - Static configuration — since 202505,
SRV6_MY_LOCATORSandSRV6_MY_SIDSin CONFIG_DB are translated by bgpcfgd into FRR static SIDs. This is the model used for AI back-end fabrics; see SRv6 AI Fabric Design.
Further Reading¶
- SRv6 Support Matrix - SONiC next to vendor and open-source SRv6 platforms
- SONiC & SAI - How SAI models SRv6 objects
- SRv6 AI Fabric Design - SONiC static SRv6 (CONFIG_DB) for AI backends, release by release
- SONiC SRv6 HLD
References¶
- SONiC SRv6 High Level Design Document - Official SRv6 HLD covering architecture and feature design in SONiC
- SONiC SRv6 VPN HLD - Design document for SRv6 VPN services in SONiC (targeted 202305; the code landed in 202505)
- SONiC SRv6 uSID HLD - Design document for SRv6 micro-SID support in SONiC
- SONiC Foundation - Official SONiC Foundation site with blog, community resources, and roadmap
- SONiC Roadmap Planning - GitHub Wiki - Release planning and feature tracking for SONiC including SRv6 milestones
- SONiC SRv6 Static Configuration HLD - CONFIG_DB locators and SIDs (202505+)
- SONiC SRv6 SID L3Adj HLD - Adjacency programming for End.X, uA and End.DX4/DX6
- SAI saisrv6.h - The SRv6 behaviors and SID-list types SAI can express