Type |
Item |
Function |
Position |
---|---|---|---|
TLV |
SR-Algorithm TLV |
Advertises the used algorithm. |
Type 10 Opaque LSA |
SID/Label Range TLV |
Advertises the SR-MPLS SID or MPLS label scope. |
Type 10 Opaque LSA |
|
SRMS Preference TLV |
Advertises the priority of SR mapping server as which a local NE functions |
Type 10 Opaque LSA |
|
Sub-TLV |
SID/Label Sub-TLV |
Advertises SR-MPLS SIDs or MPLS labels. |
|
Prefix SID Sub-TLV |
Advertises the SR-MPLS prefix SID. |
OSPFv2 Extended Prefix Opaque LSA's OSPFv2 Extended Prefix TLV and OSPF Extended Prefix Range TLV |
|
Adj-SID Sub-TLV |
Advertises SR-MPLS Adjacency SIDs on a P2P network. |
OSPFv2 Extended Link Opaque LSA's OSPFv2 Extended Link TLV |
|
LAN Adj-SID Sub-TLV |
Advertises SR-MPLS Adjacency SIDs on a LAN. |
OSPFv2 Extended Link Opaque LSA's OSPFv2 Extended Link TLV |
NEs use different algorithms, for example, the SPF algorithm and various SPF variant algorithms, to compute paths to the other nodes or prefixes. The newly defined SR-Algorithm TLV allows an NE to advertise an algorithm in use.
Field Name |
Length |
Description |
---|---|---|
Type |
16 bits |
TLV type value. |
Length |
16 bits |
Packet length. |
Algorithm |
8 bits |
Algorithm. |
The SID/Label Range TLV is used to advertise multiple SIDs or labels at a time, or a SID or label range.
Field Name |
Length |
Description |
---|---|---|
Type |
16 bits |
TLV type value. |
Length |
16 bits |
Packet length. |
Range Size |
24 bits |
SRGB range. |
Reserved |
8 bits |
Reserved field. |
Sub-TLV (variable) |
Variable length |
The SID/Label Sub-TLV is mainly involved. The start value in the SID or label range is included. This field and the Range Size field jointly determine a SID or label range. |
Field Name |
Length |
Description |
---|---|---|
Type |
16 bits |
TLV type value. |
Length |
4 bytes |
Packet length. |
Preference |
8 bits |
Priority of the SR mapping server. |
Reserved |
8 bits |
Reserved field. |
Field Name |
Length |
Description |
---|---|---|
Type |
16 bits |
TLV type value. |
Length |
16 bits |
Packet length. |
SID/Label (variable) |
Variable length |
If the Length field value is set to 3, the 20 rightmost bits indicate an MPLS label. If the Length field value is set to 4, the field indicates a 32-bit SID. |
Field Name |
Length |
Description |
---|---|---|
Type |
16 bits |
TLV type value. |
Length |
16 bits |
Packet length. |
Flags |
8 bits |
Flags field. Figure 6 shows its format.
The meaning of each flag is as follows:
A node must compute an outgoing prefix label based on the NP and E flags in a prefix SID advertised by a next hop, regardless whether the optimal path to the prefix SID passes through the next hop. The following behavior is related to P and E flags:
|
Reserved |
8 bits |
Reserved field. |
MT-ID |
8 bits |
Multi-topology ID. |
Algorithm |
8 bits |
Algorithm:
|
SID/Index/Label (variable) |
Variable length |
This field contains either of the following information based on the V and L flags:
|
Field Name |
Length |
Description |
---|---|---|
Type |
16 bits |
TLV type value. |
Length |
16 bits |
Packet length. |
Flags |
8 bits |
Flags field. Figure 8 shows its format.
The meaning of each flag is as follows:
|
Reserved |
8 bits |
Reserved field. |
MT-ID |
8 bits |
Multi-topology ID. |
Weight |
8 bits |
Weight. The Adj-SID weight is used for load balancing. |
SID/Index/Label (variable) |
Variable length |
This field contains either of the following information based on the V and L flags:
|
In segment routing implementation, each NE advertises Adj-SIDs to all neighbors. On a broadcast, NBMA, or mixed network, the LAN-Adj-SID Sub-TLV is used to send SID or label information to non-DR devices.