This document defines the Prefix Source OSPF Router-ID and the Prefix Source Router Address Sub-TLVs. They are used, respectively, to include the Router ID of, and a reachable address of, the router that originates the prefix as a prefix attribute.
For OSPFv2, the Prefix Source OSPF Router-ID Sub-TLV is an optional sub-TLV of the OSPFv2 Extended Prefix TLV [
RFC 7684]. For OSPFv3, the Prefix Source OSPF Router-ID Sub-TLV is an optional sub-TLV of the Intra-Area-Prefix TLV, Inter-Area-Prefix TLV, and External-Prefix TLV [
RFC 8362] when originating either an IPv4 [
RFC 5838] or an IPv6 prefix advertisement.
The Prefix Source OSPF Router-ID Sub-TLV has the following format:
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 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| OSPF Router ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
Where:
-
-
Type:
-
4 for OSPFv2 and 27 for OSPFv3
-
Length:
-
4
-
OSPF Router ID:
-
the OSPF Router ID of the OSPF router that originated the prefix advertisement in the OSPF domain
The parent TLV of a prefix advertisement
MAY include more than one Prefix Source OSPF Router-ID Sub-TLV, one corresponding to each of the Equal-Cost Multipath (ECMP) nodes that originated the advertised prefix.
For intra-area prefix advertisements, the Prefix Source OSPF Router-ID Sub-TLV
MUST be considered invalid and ignored if the OSPF Router ID field is not the same as the Advertising Router field in the containing LSA. Similar validation cannot be reliably performed for inter-area and external prefix advertisements.
A received Prefix Source OSPF Router-ID Sub-TLV with the OSPF Router ID field set to 0
MUST be considered invalid and ignored. Additionally, reception of such sub-TLVs
SHOULD be logged as an error (subject to rate limiting).
For OSPFv2, the Prefix Source Router Address Sub-TLV is an optional sub-TLV of the OSPFv2 Extended Prefix TLV [
RFC 7684]. For OSPFv3, the Prefix Source Router Address Sub-TLV is an optional sub-TLV of the Intra-Area-Prefix TLV, Inter-Area-Prefix TLV, and External-Prefix TLV [
RFC 8362] when originating either an IPv4 [
RFC 5838] or an IPv6 prefix advertisement.
The Prefix Source Router Address Sub-TLV has the following format:
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 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Router Address (4 or 16 octets) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-
Where:
-
-
Type:
-
5 for OSPFv2 and 28 for OSPFv3
-
Length:
-
4 or 16
-
Router Address:
-
A reachable IPv4 or IPv6 router address for the router that originated theIPv4 or IPv6 prefix advertisement, respectively. Such an address would besemantically equivalent to what may be advertised in the OSPFv2 Router AddressTLV [RFC 3630] or in the OSPFv3 Router IPv6Address TLV [RFC 5329].
The parent TLV of a prefix advertisement
MAY include more than one Prefix Source Router Address Sub-TLV, one corresponding to each of the Equal-Cost Multipath (ECMP) nodes that originated the advertised prefix.
A received Prefix Source Router Address Sub-TLV that has an invalid length (i.e., not consistent with the prefix's address family)
MUST be considered invalid and ignored. Additionally, reception of such sub-TLVs
SHOULD be logged as an error (subject to rate limiting).