SRv6
Requirements
- To use SRv6, the PCC must advertise the SRv6 path setup type (PST 3, RFC 9603) in its Open message. Otherwise, Pola rejects SRv6 segment lists.
- The underlay is IPv6. IPv4 with SRv6 is not a valid plane.
Full SID and uSID
By default, SRv6 SIDs are full 128-bit SIDs.
Setting global.usidMode: true in polad.yaml enables uSID mode for explicit SRv6 paths:
- Unless the request specifies an endpoint behavior, Pola signals uN (node) or uA (adjacency) instead of End or End.X.
- SID validation first checks for an exact SID match. Otherwise, it treats the SID as a uSID container and requires its first locator to be advertised in the TED. An unresolved later micro-segment does not cause validation to fail; its node association remains unknown, as with an anycast SID.
usidMode applies to all explicit SRv6 policies handled by the polad instance.
It does not affect SR-MPLS, dynamic paths (which use the behavior from the TED), or LSPs reported by PCCs.
SID structure
sidStructure specifies the bit lengths of the locator block, locator node, function, and argument, in that order (LBL,LNL,FL,AL), for example 32,16,0,80.
It is a per-SID property. Dynamic paths use the structure from the TED; for explicit paths, specify it in the segment or omit it to send no structure.
uSID validation requires SID structures advertised in BGP-LS to derive locators.
Endpoint behavior
The TED records each SRv6 SID’s endpoint behavior as advertised in BGP-LS (RFC 9514). The behavior definitions are specified in RFC 8986.
The gRPC EndpointBehavior message has three fields. pola ted -j additionally includes name, the behavior’s name:
| Field | Meaning |
|---|---|
behavior | Endpoint behavior code, for example End, End.X, uN, uA. |
flags | The raw flags octet from the advertisement. Pola does not interpret it. |
algorithm | The SR algorithm associated with the SID, for example 0 (SPF) or 1 (strict SPF). |
Limitations
- CSPF outputs one SRv6 SID per hop; it does not pack uSIDs into containers.
- For dynamic paths, CSPF uses the first advertised SRv6 SID for each node, regardless of its behavior or algorithm.
- uSID support varies by vendor; see Interoperability.