A Tunnel Parameter Sub-TLV is structured as shown in
Figure 2.
+---------------------------------------------+
| Tunnel Parameter Sub-Type (2 octets) |
+---------------------------------------------+
| Tunnel Parameter Length (2 octets) |
+---------------------------------------------+
| Tunnel Parameter Value (variable) |
| |
+---------------------------------------------+
-
Tunnel Parameter Sub-Type (2 octets):
-
Each sub-type defines a parameter of the Tunnel Sub-TLV. Sub-types are registered in the IANA registry "OSPF Tunnel Parameter Sub-TLVs" (see Section 7.2).
-
Tunnel Parameter Length (2 octets):
-
Unsigned 16-bit integer indicating the total number of octets of the Tunnel Parameter Value field.
-
Tunnel Parameter Value (variable):
-
Encodings of the Value field depend on the sub-TLV type. The following subsections define the encoding in detail.
Any unknown Tunnel Parameter sub-type
MUST be ignored and skipped upon receipt. When a reserved value (see
Section 7.2) is seen in an LSA, it
MUST be treated as an invalid Tunnel Parameter Sub-TLV. When a Tunnel Parameter Value has an incorrect syntax or semantics, it
MUST be treated as an invalid Tunnel Parameter Sub-TLV. If a Tunnel Parameter Sub-TLV is invalid, its Tunnel Sub-TLV
MUST be ignored. However, other Tunnel Sub-TLVs
MUST be considered.
This sub-TLV type is 1. The syntax, semantics, and usage of its Value field are defined in Section
3.2 of [
RFC 9012].
This sub-TLV type is 2. The syntax, semantics, and usage of its Value field are defined in Section
3.4.1 of [
RFC 9012].
The Tunnel Egress Endpoint Sub-TLV specifies the address of the egress endpoint of the tunnel -- that is, the address of the router that will decapsulate the payload.
This sub-TLV type is 3. It
MUST be present once and only once in a given Tunnel Sub-TLV. The Value field contains two subfields:
-
a two-octet Address Family subfield
-
an Address subfield, whose length depends upon the Address Family
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Address Family | Address ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +
~ (variable length) ~
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
The Address Family subfield contains a value from IANA's "Address Family Numbers" registry. In this document, we assume that the Address Family is either IPv4 or IPv6; use of other address families is outside the scope of this document.
If the Address Family subfield contains the value for IPv4, the Address subfield
MUST contain an IPv4 address (a /32 IPv4 prefix). In this case, the Length field of the Tunnel Egress Endpoint Sub-TLV
MUST contain the value 6.
If the Address Family subfield contains the value for IPv6, the address subfield
MUST contain an IPv6 address (a /128 IPv6 prefix). In this case, the Length field of the Tunnel Egress Endpoint Sub-TLV
MUST contain the value 18 (0x12). IPv6 link-local addresses are not valid values of the IP address field.
This sub-TLV type is 4. It may appear zero or more times in a given Tunnel Sub-TLV. The Value field is a 4-octet opaque unsigned integer.
The color value is user-defined and configured locally on the advertising routers. It may be used by service providers to define policies on the tunnel encapsulator routers, for example, to control the selection of the tunnel to use.
This color value can be referenced by BGP routes carrying the Color Extended Community [
RFC 9012]. If the tunnel is used to reach the BGP next hop of BGP routes, then attaching a Color Extended Community to those routes expresses the willingness of the BGP speaker to use a tunnel of the same color.
This sub-TLV type is 5. The syntax, semantics, and usage of its Value field are defined in [
RFC 5640].
This sub-TLV type is 6. The syntax, semantics, and usage of its Value field are defined in Section
3.3.1 of [
RFC 9012].
This sub-TLV type is 7. The syntax, semantics, and usage of its Value field are defined in Section
3.3.2 of [
RFC 9012].