SONiC is a Linux machine with containers for the network pieces, and FRR does the routing. That works well for SRv6, because the forwarding is IPv6 and the behaviors are small. But there was one practical gap: how do you define SRv6 SIDs on a SONiC box without running BGP to carry them?
The SONiC community's answer is a design document for static SRv6 configuration. In this post I walk through it: the two new tables, the three behaviors you can define, and what ends up in FRR. This is a walkthrough of the design document and a Cisco proof of concept. I have not run it on hardware myself.
The gap this fills
The design document says FRR could already program SRv6 tables into the SONiC application database through fpmsyncd. What was missing was a way for an SDN controller or an admin to add SRv6 configuration directly, without involving BGP. The document is aimed at SRv6 SDN deployments, where a controller decides the SIDs and the path.
The fix has two parts. There are two new tables in CONFIG_DB, and a new module in bgpcfgd, the SRv6 Manager, that watches those tables and writes the matching FRR configuration.

Table 1: SRV6_MY_LOCATORS
A locator is the prefix that all of a node's SIDs live under. The key is the locator name, and the fields describe how the 128 bits are split.
prefix: the IPv6 prefix of the locator.
block_len: bits in the block, default 32.
node_len: bits in the node ID, default 16.
func_len: bits in the function, default 16.
arg_len: bits in the argument, default 0.
vrf: the VRF the locator belongs to, default is the default VRF.
The defaults match the F3216 uSID format, a 32 bit block with 16 bit pieces after it. The design document's example is just two locators:
"SRV6_MY_LOCATORS" : {
"loc1" : { "prefix" : "FCBB:BBBB:20::" },
"loc2" : { "prefix" : "FCBB:BBBB:21::" }
}Table 2: SRV6_MY_SIDS
This table maps each SID to a behavior. The key is the locator name plus the full SID prefix. Three behaviors are supported today in the design document:

uN: End with NEXT-CSID. This is the node SID that shifts the address and forwards.
uDT46: End.DT46 with CSID. It decapsulates and looks up the inner packet, IPv4 or IPv6, in a VRF.
uA: End.X with NEXT-CSID. It sends the packet out of a specific interface. This was added in revision 0.4 of the document, dated 12 November 2025.
The fields in each entry are action, decap_dscp_mode, decap_vrf, interface and adj. The DSCP mode is mandatory, and it controls how the node treats DSCP bits when it decapsulates. The decap VRF only applies to the decap behaviors. For uA the interface is mandatory, and adj, the next hop address, is optional. If you leave it out, the next hop is resolved from the interface.
"SRV6_MY_SIDS" : {
"loc1|FCBB:BBBB:20::/48" : { "action": "uN", "decap_dscp_mode": "pipe" },
"loc1|FCBB:BBBB:20:F1::/64" : { "action": "uDT46", "decap_vrf": "Vrf1", "decap_dscp_mode": "pipe" },
"loc2|FCBB:BBBB:21:FE24::/64" : { "action": "uA", "decap_dscp_mode": "pipe",
"interface": "Ethernet24", "adj": "2001:db8:4:501::5" }
}What FRR receives
The SRv6 Manager turns those entries into FRR static SIDs. For the entries above, the design document shows this result:
segment-routing
srv6
static-sids
sid fcbb:bbbb:20::/48 locator loc1 behavior uN
sid fcbb:bbbb:20:f1::/64 locator loc1 behavior uDT46 vrf Vrf1
sid fcbb:bbbb:21:fe24::/64 locator loc2 behavior uA interface Ethernet24 nexthop 2001:db8:4:501::5The module also checks what it is given. If an entry is invalid, for example a SID with no action or an unsupported action, it logs the event to syslog and does not compile anything into FRR. The document's test plan includes those negative cases, plus adding and deleting each behavior.
bgpcfgd or frrcfgd
The document points out that SONiC has two ways to push config into FRR. The new SRv6 Manager lives in bgpcfgd and covers the static, no BGP case. The other one, frrcfgd, can also program SRv6 but is designed for setups where BGP propagates the SIDs. You pick one of them to drive FRR, so decide up front which model you are building.
A real proof of concept
Cisco's Bruce McDougall published a proof of concept with SONiC-VS, the virtual image. He built a 12 node Clos fabric with a pair of ToRs, four leaves, four spines and a pair of border leaves, using BGP unnumbered and SRv6 uSID. He says they patched SONiC 202305 to allow static uN and uA SIDs and were upstreaming that work. In his version the SIDs were set directly in FRR with a locator and an explicit uN SID. The static configuration tables above are the upstream way to do the same thing.
His checks are worth copying. In the FRR shell, two commands show the result:
show segment-routing srv6 locator
show segment-routing srv6 sidThe locator should show as Up, and the SID list should show your uN with Valid set to yes.
What I would check before using it
Release support. Secondary sources say static SRv6 programming from a controller landed in SONiC 202505, and the uA behavior only arrived with the newer revision of the document. Check the release notes of the image you actually run.
Hardware. The tables define intent, but the ASIC and its SAI driver must support the behaviors you configure.
DSCP mode. It is mandatory on every SID, so decide pipe or uniform deliberately.
Warm reboot. The document says warm reboot is intended to be supported for planned system warm reboots. Test it before you rely on it.
Who owns the config. If a controller writes CONFIG_DB, make sure nothing else, like a manual edit, fights it.
Takeaways
Two CONFIG_DB tables, SRV6_MY_LOCATORS and SRV6_MY_SIDS, now let you define SRv6 uSID SIDs without BGP.
bgpcfgd compiles them into FRR static SIDs and rejects bad entries.
Supported behaviors are uN, uDT46 and uA.
Check release notes and hardware support before you plan around it.
Read the design document: https://github.com/sonic-net/SONiC/blob/master/doc/srv6/srv6_static_config_hld.md
Read the Cisco proof of concept: https://www.segment-routing.net/blogs/srv6-usid-on-sonic/
If you want to see the uSID shift on real routers, my Nokia SR OS lab captures it hop by hop: https://thepackettoprompt.com/blog/srv6-usid-service-chaining-nokia-sr-os-firewall-dpi
SONiC and SRv6 also show up in AI data centers. I covered that side here: https://thepackettoprompt.com/blog/srv6-usid-in-the-ai-data-center-let-the-nic-pick-the-path
Would you like a hands-on lab with two SONiC-VS nodes and static uSID? Tell me in the comments.

Comments (0)
Please sign in to comment.