RFC 7949
OSPFv3 over IPv4 for IPv6 Transition
RFC 7949: OSPFv3 over IPv4 for IPv6 Transition π¦
Okay bestie, here's the deets π This is RFC 7949, titled OSPFv3 over IPv4 for IPv6 Transition. It's from the IETF (Internet Engineering Task Force) and was written by I. Chen (Ericsson), A. Lindem (Cisco), and R. Atkinson (Consultant). It's on the Internet Standards Track, ISSN 2070-1721, dated August 2016, and it updates RFC 5838 π
Abstract β¨
So basically, this doc defines a way to use IPv4 to carry OSPFv3 packets π Running OSPFv3 over IPv4 with the existing OSPFv3 Address Family extension can make the glow-up from an OSPFv2 IPv4-only routing domain to an OSPFv3 dual-stack one way smoother π It also updates RFC 5838 so virtual links work in the IPv4 unicast address family when you're running OSPFv3 over IPv4. Iconic π
Status of This Memo π
This is an Internet Standards Track document π It's a product of the IETF and represents the consensus of the IETF community. It got public review and was approved for publication by the IESG (Internet Engineering Steering Group). If you want more on Internet Standards, check Section 2 of RFC 7841 π«Ά
For info on the current status, any errata, and how to send feedback, go to http://www.rfc-editor.org/info/rfc7949 π
Copyright Notice πΈ
Copyright (c) 2016 IETF Trust and the persons identified as the document authors. All rights reserved π
This doc is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) as they stand on the publication date. Please read these carefully, because they spell out your rights and restrictions for this document π Code Components pulled out of this doc must include the Simplified BSD License text, as described in Section 4.e of the Trust Legal Provisions, and they come with no warranty, as the Simplified BSD License describes π§
Table of Contents ποΈ
1. Introduction ....................................................2
1.1. IPv4-Only Use Case .........................................3
2. Requirements Language ...........................................4
3. Encapsulation in IPv4 ...........................................4
3.1. Source Address .............................................6
3.2. Destination Address ........................................6
3.3. OSPFv3 Header Checksum .....................................6
3.4. Operation over Virtual Links ...............................7
4. Management Considerations .......................................7
4.1. Coexistence with OSPFv2 ....................................7
5. Security Considerations .........................................8
6. References ......................................................8
6.1. Normative References .......................................8
6.2. Informative References .....................................9
Acknowledgments ...................................................10
Authors' Addresses ................................................11
1. Introduction β¨
Okay so, you can run OSPFv3 [RFC5340] over IPv4 [RFC791] using the existing OSPFv3 address family extension, and it can seriously simplify the move from an IPv4-only routing domain to an IPv6 [RFC2460] or dual-stack one π¦ Dual-stack routing protocols like the Border Gateway Protocol [RFC4271] have an edge during the transition, because both the IPv4 and IPv6 address families can be advertised over either IPv4 or IPv6 transport π Some IPv4-specific and IPv6-specific routing protocols have packet formats and signaling that are so similar that it's trivial to deploy an initial IPv6 routing domain by carrying the routing protocol over IPv4. That lets you deploy and test IPv6 routing domains before you retire IPv4 and move to an IPv6-only network π
Now for the Open Shortest Path First (OSPF) interior gateway routing protocol (IGP) π OSPFv2 [RFC2328] is the IGP deployed over IPv4, and OSPFv3 [RFC5340] is the IGP deployed over IPv6. OSPFv3 also supports multiple address families [RFC5838], including both the IPv6 unicast and IPv4 unicast address families π So, it's possible to deploy OSPFv3 over IPv4 with zero changes to either OSPFv3 or IPv4. Main character energy π During the IPv6 transition, future OSPF extensions can focus on OSPFv3, and OSPFv2 can move into maintenance mode π«Ά
This doc specifies how to use IPv4 to carry OSPFv3 packets π The trick is that OSPFv2 and OSPFv3 share the same IP protocol number, which is 89 π₯ Also, the OSPF packet header for both OSPFv2 and OSPFv3 has the OSPF header version field (the bit that tells an OSPFv2 packet apart from an OSPFv3 packet) in the same spot, meaning the same offset from the start of the header π§
If the IPv4 and IPv6 topologies aren't identical, the most likely reason is that some parts of the network haven't been upgraded to support both IPv4 and IPv6 yet π If the IPv4 deployment is a superset of the IPv6 deployment, OSPFv3 packets are expected to be carried over IPv4 until the rest of the network gets upgraded to support IPv6 alongside IPv4. If the IPv6 deployment is a superset of the IPv4 deployment, OSPFv3 is expected to be carried over IPv6 πΈ
Quick terminology check π Throughout this doc, "OSPF" is used when the text applies to both OSPFv2 and OSPFv3. "OSPFv2" or "OSPFv3" shows up when the text is specific to one version. Same vibe with "IP," which covers either version of the Internet Protocol, and "IPv4" or "IPv6," which are used when the text only applies to one version π
1.1. IPv4-Only Use Case π
OSPFv3 only needs IPv6 link-local addresses to form adjacencies. It doesn't need IPv6 global-scope addresses to set up an IPv6 routing domain π BUT, IPv6 over Ethernet [RFC2464] uses a different EtherType (0x86dd) from IPv4 (0x0800) and from the Address Resolution Protocol (ARP) (0x0806) [RFC826] that's used with IPv4 π
Some deployed link-layer equipment only supports IPv4 and ARP π That equipment has hardware filters keyed on the EtherType field of the Ethernet frame, and those filters decide which frames the link-layer gear accepts. Since IPv6 uses a different EtherType, IPv6 framing for OSPFv3 just won't work with that equipment π ββοΈ In other cases, Point-to-Point Protocol (PPP) might run over a serial interface, but again, only IPv4 over PPP might be supported on that interface. It's hoped that equipment with these limits will eventually get upgraded or replaced π©·
Now, in some locations, especially ones with less communications infrastructure, satellite communications (SATCOM) are used to cut deployment costs for data networking π°οΈ SATCOM is often cheaper to deploy than running new copper or optical cables over long distances to reach remote areas. And in a wide range of places, including ones with great communications infrastructure, Very Small Aperture Terminals (VSATs) are often used by banks and retailers to connect their branches and stores to a central location π¦
Some widely deployed VSAT equipment has either (A) Ethernet interfaces that only support the Ethernet Address Resolution Protocol (ARP) and IPv4, or (B) serial interfaces that only support IPv4 and PPP packets π‘ Those deployments and that equipment can still deploy and use OSPFv3 over IPv4 today, then migrate to OSPFv3 over IPv6 later once the equipment is upgraded or replaced β¨ This can come with lower operational costs than running OSPFv2 and then attempting a flag-day switch to OSPFv3 π By running OSPFv3 over IPv4 now, the eventual move to dual-stack and then to IPv6-only can be orchestrated π
2. Requirements Language π―
Here's the requirements vibe: the key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119] π«Ά
3. Encapsulation in IPv4 π¦
So an OSPFv3 packet can be directly encapsulated inside an IPv4 packet as the payload, without an IPv6 packet header, as shown in Figure 1 π§ For OSPFv3 transported over IPv4, the IPv4 packet has an IPv4 protocol type of 89, which tells you the payload is an OSPF packet. The payload of the IPv4 packet is an OSPFv3 packet, starting with the OSPF packet header, and its OSPF version field is set to 3 π
An OSPFv3 packet followed by an OSPF link-local signaling (LLS) extension data block [RFC5613], encapsulated in an IPv4 packet, is shown in Figure 2 π
Here's the size tea β An IPv4 header without options is only 20 octets long, and it's shorter than an IPv6 header. So an OSPFv3 packet wrapped in a 20-octet IPv4 header is shorter than an OSPFv3 packet wrapped in an IPv6 header π That means the link MTU for IPv6 is enough to carry an OSPFv3 packet in a 20-octet IPv4 header π If the link MTU isn't enough to carry an OSPFv3 packet in IPv4, then OSPFv3 can rely on IP fragmentation and reassembly [RFC791] π οΈ
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ---
| 4 | IHL |Type of Service| Total Length | ^
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
| Identification |Flags| Fragment Offset | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
| Time to Live | Protocol (89) | Header Checksum | IPv4
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Header
| Source Address | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
| Destination Address | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
| Options | Padding | v
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ---
| 3 | Type | Packet length | ^
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
| Router ID | OSPFv3
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Header
| Area ID | |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
| Checksum | Instance ID | 0 | v
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ---
| OSPFv3 Body ... |
3. Encapsulation in IPv4 π
Note: "IHL" stands for Internet Header Length.
Figure 1: An IPv4 Packet Encapsulating an OSPFv3 Packet
+---------------+
| IPv4 Header |
+---------------+
| OSPFv3 Header |
|...............|
| |
| OSPFv3 Body |
| |
+---------------+
| |
| LLS Data |
| |
+---------------+
Figure 2: The IPv4 Packet Encapsulating an OSPFv3 Packet with
a Trailing OSPF Link-Local Signaling Data Block
3.1. Source Address π
Okay so, for OSPFv3 over IPv4, the source address is the primary IPv4 address for the interface the packet goes out on β¨ All the OSPFv3 routers on the link should share the same IPv4 subnet so IPv4 transport actually works π
While OSPFv2 operates on a subnet, OSPFv3 operates on a link π¦ [RFC5340]. So an OSPFv3 router implementation MAY support adjacencies with OSPFv3 neighbors on different IPv4 subnets π If it does, the IPv4 data plane MUST resolve IPv4 addresses to Layer 2 addresses using ARP on multi-access networks, and point-to-point over LAN [RFC5309] for direct next hops on different IPv4 subnets. Ngl that's a lot of MUST π
When OSPFv3 adjacencies on different IPv4 subnets are supported, Bidirectional Forwarding Detection (BFD) [RFC5881] cannot be used for adjacency loss detection, since BFD is restricted to a single subnet π
3.2. Destination Address π¦
As defined in OSPFv2, the IPv4 destination address of an OSPF protocol packet is either an IPv4 multicast address or the IPv4 unicast address of an OSPFv2 neighbor. Two well-known link-local multicast addresses are assigned to OSPFv2: the AllSPFRouters address (224.0.0.5) and the AllDRouters address (224.0.0.6). The multicast address used depends on the OSPF packet type, the OSPF interface type, and the OSPF router's role on multi-access networks β¨
So, for an OSPFv3-over-IPv4 packet to be sent to AllSPFRouters, the destination address field in the IPv4 packet MUST be 224.0.0.5. For an OSPFv3-over-IPv4 packet to be sent to AllDRouters, the destination address field in the IPv4 packet MUST be 224.0.0.6 π
When an OSPF router sends a unicast OSPF packet over a connected interface, the destination of that IP packet is the address assigned to the receiving interface. Thus, a unicast OSPFv3 packet transported in an IPv4 packet would specify the OSPFv3 neighbor's IPv4 address as the destination address πΈ
3.3. OSPFv3 Header Checksum π§
For IPv4 transport, the pseudo-header used in the checksum calculation contains the IPv4 source and destination addresses, the OSPFv3 protocol ID, and the OSPFv3 length from the OSPFv3 header (Appendix A.3.1 of [RFC5340]). It's giving UDP pseudo-header vibes, as described in [RFC768], and it's illustrated in Figure 3 π
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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Source Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Destination Address |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| 0 | Protocol (89) | OSPFv3 Packet Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 3: Pseudo-header for OSPFv3 over IPv4
3.4. Operation over Virtual Links π
When an OSPF router sends an OSPF packet over a virtual link, the receiving router might not be directly connected to the sending router π So the destination IP address of the IP packet must be a reachable unicast IP address for the virtual link endpoint. Because IPv6 is the presumed Internet protocol and an IPv4 destination is not routable, the OSPFv3 address family extension [RFC5838] specifies that only virtual links in the IPv6 address family are supported.
As illustrated in Figure 1, this document specifies OSPFv3 transport over IPv4. As a result, OSPFv3 virtual links can be supported with IPv4 address families by simply setting the IPv4 destination address to a reachable IPv4 unicast address for the virtual link endpoint π¦ So the restriction in Section 2.8 of RFC 5838 [RFC5838] is relaxed, since virtual links can now be supported for IPv4 address families as long as the transport is also IPv4. If IPv4 transport, as specified herein, is used for IPv6 address families, virtual links cannot be supported. Hence, in OSPF routing domains that require virtual links, the IP transport MUST match the address family (IPv4 or IPv6) π
4. Management Considerations πΈ
4.1. Coexistence with OSPFv2 π«Ά
Since OSPFv2 [RFC2328] and OSPFv3 over IPv4, as described herein, use exactly the same protocol and IPv4 addresses, OSPFv2 packets may be delivered to the OSPFv3 process and vice versa π When this happens, the mismatched protocol packets will be dropped due to validation of the version in the first octet of the OSPFv2/OSPFv3 protocol header. Note that this will not prevent the packets from being delivered to the correct protocol process, as standard socket implementations will deliver a copy to each socket matching the selectors β¨
Implementations of OSPFv3 over IPv4 transport SHOULD implement separate counters for a protocol mismatch, and SHOULD provide means to suppress the ospfIfRxBadPacket and ospfVirtIfRxBadPacket SNMP notifications, as described in [RFC4750]. They should also suppress the ospfv3IfRxBadPacket and ospv3VirtIfRxBadPacket SNMP notifications, as described in [RFC5643], when an OSPFv2 packet is received by the OSPFv3 process or vice versa π
5. Security Considerations π₯
OSPFv3 [RFC5340] relies on IPsec [RFC4301] for authentication and confidentiality. "Authentication/Confidentiality in OSPFv3" [RFC4552] specifies how IPsec is used with OSPFv3 over IPv6 transport. To use OSPFv3 with IPv4 transport as specified herein, further work such as "Authentication/Confidentiality in OSPFv2" [IPsec-OSPF] would be required π
An optional OSPFv3 Authentication Trailer [RFC7166] has also been defined as an alternative to using IPsec. The calculation of the authentication data in the Authentication Trailer includes the source IPv6 address, to protect an OSPFv3 router from man-in-the-middle attacks π For IPv4 encapsulation as described herein, the IPv4 source address should be placed in the first 4 octets of Apad, followed by the hexadecimal value 0x878FE1F3 repeated (L-4)/4 times, where L is the length of the hash measured in octets. Bestie, this part is serious π
The processing of the optional Authentication Trailer is contained entirely within the OSPFv3 protocol. In other words, each OSPFv3 router instance is responsible for the authentication, without involvement from IPsec or any other IP-layer function. Consequently, except for calculation of the Apad value, transporting OSPFv3 packets using IPv4 does not change the generation or validation of the optional OSPFv3 Authentication Trailer π§
6. References β¨
6.1. Normative References π
- [RFC791] Postel, J., "Internet Protocol", STD 5, RFC 791, DOI
10.17487/RFC0791, September 1981,<http://www.rfc-editor.org/info/rfc791>. - [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI
10.17487/RFC2119, March 1997,<http://www.rfc-editor.org/info/rfc2119>. - [RFC2328] Moy, J., "OSPF Version 2", STD 54, RFC 2328, DOI
10.17487/RFC2328, April 1998,<http://www.rfc-editor.org/info/rfc2328>. - [RFC2460] Deering, S. and R. Hinden, "Internet Protocol, Version 6 (IPv6) Specification", RFC 2460, DOI
10.17487/RFC2460, December 1998,<http://www.rfc-editor.org/info/rfc2460>. - [RFC5309] Shen, N., Ed., and A. Zinin, Ed., "Point-to-Point Operation over LAN in Link State Routing Protocols", RFC 5309, DOI
10.17487/RFC5309, October 2008,<http://www.rfc-editor.org/info/rfc5309>. - [RFC5340] Coltun, R., Ferguson, D., Moy, J., and A. Lindem, "OSPF for IPv6", RFC 5340, DOI
10.17487/RFC5340, July 2008,<http://www.rfc-editor.org/info/rfc5340>. - [RFC5838] Lindem, A., Ed., Mirtorabi, S., Roy, A., Barnes, M., and R. Aggarwal, "Support of Address Families in OSPFv3", RFC 5838, DOI
10.17487/RFC5838, April 2010,<http://www.rfc-editor.org/info/rfc5838>.
6.2. Informative References π
- [IPsec-OSPF] Gupta, M. and N. Melam, "Authentication/Confidentiality for OSPFv2", Work in Progress, draft-gupta-ospf-ospfv2-sec-01, August 2009.
- [RFC768] Postel, J., "User Datagram Protocol", STD 6, RFC 768, DOI
10.17487/RFC0768, August 1980,<http://www.rfc-editor.org/info/rfc768>. - [RFC826] Plummer, D., "Ethernet Address Resolution Protocol: Or Converting Network Protocol Addresses to 48.bit Ethernet Address for Transmission on Ethernet Hardware", STD 37, RFC 826, DOI
10.17487/RFC0826, November 1982,<http://www.rfc-editor.org/info/rfc826>. - [RFC2464] Crawford, M., "Transmission of IPv6 Packets over Ethernet Networks", RFC 2464, DOI
10.17487/RFC2464, December 1998,<http://www.rfc-editor.org/info/rfc2464>. - [RFC4271] Rekhter, Y., Ed., Li, T., Ed., and S. Hares, Ed., "A Border Gateway Protocol 4 (BGP-4)", RFC 4271, DOI
10.17487/RFC4271, January 2006,<http://www.rfc-editor.org/info/rfc4271>. - [RFC4301] Kent, S. and K. Seo, "Security Architecture for the Internet Protocol", RFC 4301, DOI
10.17487/RFC4301, December 2005,<http://www.rfc-editor.org/info/rfc4301>. - [RFC4552] Gupta, M. and N. Melam, "Authentication/Confidentiality for OSPFv3", RFC 4552, DOI
10.17487/RFC4552, June 2006,<http://www.rfc-editor.org/info/rfc4552>. - [RFC4750] Joyal, D., Ed., Galecki, P., Ed., Giacalone, S., Ed., Coltun, R., and F. Baker, "OSPF Version 2 Management Information Base", RFC 4750, DOI
10.17487/RFC4750, December 2006,<http://www.rfc-editor.org/info/rfc4750>. - [RFC5613] Zinin, A., Roy, A., Nguyen, L., Friedman, B., and D. Yeung, "OSPF Link-Local Signaling", RFC 5613, DOI
10.17487/RFC5613, August 2009,<http://www.rfc-editor.org/info/rfc5613>. - [RFC5643] Joyal, D., Ed., and V. Manral, Ed., "Management Information Base for OSPFv3", RFC 5643, DOI
10.17487/RFC5643, August 2009,<http://www.rfc-editor.org/info/rfc5643>. - [RFC5881] Katz, D. and D. Ward, "Bidirectional Forwarding Detection (BFD) for IPv4 and IPv6 (Single Hop)", RFC 5881, DOI
10.17487/RFC5881, June 2010,<http://www.rfc-editor.org/info/rfc5881>. - [RFC7166] Bhatia, M., Manral, V., and A. Lindem, "Supporting Authentication Trailer for OSPFv3", RFC 7166, DOI
10.17487/RFC7166, March 2014,<http://www.rfc-editor.org/info/rfc7166>.
Acknowledgments β¨
okay so the authors wanted to give some major shoutouts π«Ά first, Alexander Okonnikov gave a super thorough review with really valuable feedback, bestie, iconic π. then Suresh Krishnan pointed out that the pseudo-header used in the OSPFv3 packet checksum calculation needed a clear specification, and honestly that's such a sharp catch π₯. last but not least, Wenhu Lu acted as document shepherd, which is basically the person who keeps the whole process moving π . the authors are so grateful, no cap πΈ
Authors' Addresses π¦
Ing-Wher Chen π Ericsson Email: ichen@kuatrotech.com
Acee Lindem π Cisco Email: acee@cisco.com
RJ Atkinson π§ Consultant Email: rja.lists@gmail.com
π¦ where this page comes from
- ietf: rfc7949 2016-08
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms