This section defines the BGP-LS Attributes corresponding to the following BGP Peer Segment SIDs:
-
Peer Node Segment Identifier (PeerNode SID)
-
Peer Adjacency Segment Identifier (PeerAdj SID)
-
Peer Set Segment Identifier (PeerSet SID)
The following new BGP-LS Link Attribute TLVs are defined for use with BGP-LS Link NLRI for advertising BGP Peering SIDs:
TLV Code Point |
Description |
1101 |
PeerNode SID |
1102 |
PeerAdj SID |
1103 |
PeerSet SID |
Table 2: BGP-LS TLV Code Points for BGP-EPE
PeerNode SID, PeerAdj SID, and PeerSet SID all have the same format as defined below:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Flags | Weight | Reserved |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SID/Label/Index (variable) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
Type: 1101, 1102, or 1103 as listed in Table 2
-
Length: variable. Valid values are either 7 or 8 based on whether the encoding is done as a SID Index or a label.
-
Flags: one octet of flags with the following definition:
0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+
|V|L|B|P| Rsvd |
+-+-+-+-+-+-+-+-+
-
V-Flag: Value Flag. If set, then the SID carries a label value. By default, the flag is SET.
-
L-Flag: Local Flag. If set, then the value/index carried by the SID has local significance. By default, the flag is SET.
-
B-Flag: Backup Flag. If set, the SID refers to a path that is eligible for protection using fast reroute (FRR). The computation of the backup forwarding path and its association with the BGP Peering SID forwarding entry is implementation specific. Section 3.6 of RFC 9087 discusses some of the possible ways of identifying backup paths for BGP Peering SIDs.
-
P-Flag: Persistent Flag: If set, the SID is persistently allocated, i.e., the SID value remains consistent across router restart and session/interface flap.
-
Rsvd bits: Reserved for future use and MUST be zero when originated and ignored when received.
-
Weight: 1 octet. The value represents the weight of the SID for the purpose of load balancing. An example use of the weight is described in [RFC 8402].
-
SID/Index/Label. According to the TLV length and the V- and L-Flag settings, it contains either:
-
A 3-octet local label where the 20 rightmost bits are used for encoding the label value. In this case, the V- and L-Flags MUST be SET.
-
A 4-octet index defining the offset in the Segment Routing Global Block (SRGB) [RFC 8402] advertised by this router. In this case, the SRGB MUST be advertised using the extensions defined in [RFC 9085].
The values of the PeerNode SID, PeerAdj SID, and PeerSet SID Sub-TLVs
SHOULD be persistent across router restart.
When enabled for Egress Peer Engineering, the BGP router
MUST include the PeerNode SID TLV in the BGP-LS Attribute for the BGP-LS Link NLRI corresponding to its BGP peering sessions. The PeerAdj SID and PeerSet SID TLVs
MAY be included in the BGP-LS Attribute for the BGP-LS Link NLRI.
Additional BGP-LS Link Attribute TLVs as defined in [
RFC 7752]
MAY be included with the BGP-LS Link NLRI in order to advertise the characteristics of the peering link, e.g., one or more interface addresses (TLV 259 or TLV 261) of the underlying link(s) over which a multi-hop BGP peering session is set up may be included in the BGP-LS Attribute along with the PeerNode SID TLV.
The PeerNode SID TLV includes a SID associated with the BGP peer node that is described by a BGP-LS Link NLRI as specified in
Section 4.
The PeerNode SID, at the BGP node advertising it, has the following semantics (as defined in [
RFC 8402]):
-
SR operation: NEXT
-
Next-Hop: the connected peering node to which the segment is associated
The PeerNode SID is advertised with a BGP-LS Link NLRI, where:
-
Local Node Descriptors include:
-
Local BGP Router-ID (TLV 516) of the BGP-EPE-enabled Egress PE
-
Local ASN (TLV 512)
-
Remote Node Descriptors include:
-
Peer BGP Router-ID (TLV 516) (i.e., the peer BGP ID used in the BGP session)
-
Peer ASN (TLV 512)
-
Link Descriptors include the addresses used by the BGP session encoded using TLVs as defined in [RFC 7752]:
-
IPv4 Interface Address (TLV 259) contains the BGP session IPv4 local address.
-
IPv4 Neighbor Address (TLV 260) contains the BGP session IPv4 peer address.
-
IPv6 Interface Address (TLV 261) contains the BGP session IPv6 local address.
-
IPv6 Neighbor Address (TLV 262) contains the BGP session IPv6 peer address.
-
Link Attribute TLVs include the PeerNode SID TLV as defined in Figure 2.
The PeerAdj SID TLV includes a SID associated with the underlying link to the BGP peer node that is described by a BGP-LS Link NLRI as specified in
Section 4.
The PeerAdj SID, at the BGP node advertising it, has the following semantics (as defined in [
RFC 8402]):
-
SR operation: NEXT
-
Next-Hop: the interface peer address
The PeerAdj SID is advertised with a BGP-LS Link NLRI, where:
-
Local Node Descriptors include:
-
Local BGP Router-ID (TLV 516) of the BGP-EPE-enabled Egress PE
-
Local ASN (TLV 512)
-
Remote Node Descriptors include:
-
Peer BGP Router-ID (TLV 516) (i.e., the peer BGP ID used in the BGP session)
-
Peer ASN (TLV 512)
-
Link Descriptors MUST include the following TLV, as defined in [RFC 7752]:
-
Link Local/Remote Identifiers (TLV 258) contains the 4-octet Link Local Identifier followed by the 4-octet Link Remote Identifier. The value 0 is used by default when the link remote identifier is unknown.
-
Additional Link Descriptors TLVs, as defined in [RFC 7752], MAY also be included to describe the addresses corresponding to the link between the BGP routers:
-
IPv4 Interface Address (Sub-TLV 259) contains the address of the local interface through which the BGP session is established.
-
IPv6 Interface Address (Sub-TLV 261) contains the address of the local interface through which the BGP session is established.
-
IPv4 Neighbor Address (Sub-TLV 260) contains the IPv4 address of the peer interface used by the BGP session.
-
IPv6 Neighbor Address (Sub-TLV 262) contains the IPv6 address of the peer interface used by the BGP session.
-
Link Attribute TLVs include the PeerAdj SID TLV as defined in Figure 2.
The PeerSet SID TLV includes a SID that is shared amongst BGP peer nodes or the underlying links that are described by BGP-LS Link NLRI as specified in
Section 4.
The PeerSet SID, at the BGP node advertising it, has the following semantics (as defined in [
RFC 8402]):
-
SR operation: NEXT
-
Next-Hop: load-balance across any connected interface to any peer in the associated peer set
The PeerSet SID TLV containing the same SID value (encoded as defined in
Figure 2) is included in the BGP-LS Attribute for all of the BGP-LS Link NLRI corresponding to the PeerNode or PeerAdj segments associated with the peer set.