OSPFv3 and OSPFv2 Differences
OSPFv3 differs from OSPFv2 in a number of respects:
- OSPFv3 processing is per link. OSPFv3 is link rather than subnet centric. An OSPFv3 interface connects to a link, not a subnet. This change has both functional and efficiency advantages. Multiple IP subnets can be assigned to a single link. Two nodes can talk directly over a single link. In OSPFv3, terms such as network and subnet should generally be replaced with the term link in order to understand OSPFv3 processing.
- With the exception of the new link LSA, OSPFv3 LSAs do not carry IPv6 addresses. The removal of addressing from the LSAs has scaling advantages. Router and network LSAs now only contain topology information necessary for SPF processing and no longer contain network addresses. OSPFv3 LSAs do maintain 32-bit RIDs and LSA IDs. Because OSPFv3 IDs are still expressed in dotted-quad notation, OSPFv3 networks can be easily overlayed on an OSPFv2 network.
- All OSPFv3 neighbors are identified by the neighbor router ID. The OSPFv2 behavior of identifying neighbors on broadcast and Non-Broadcast-Multi-Access (NBMA) links by their interface address has been removed.
- OSPFv3 uses link-local addresses, which begin with FF80::/10, as source and next-hop addresses. Link-local addresses are for use on a single link for purposes including neighbor discovery and auto-configuration. On all interfaces, except virtual, OSPF packets are sent using the interface‘s link-local unicast address as the source. Because all OSPF traffic transits the network on a link basis, IPv6 does not forward (route) IPv6 datagrams having link-local source addresses.
- OSPF specific authentication has been removed and replaced by optionally configuring IPsec for OSPFv3 as defined in RFC 4552. If IPsec for OSPFv3 is not enabled on the interface, OSPFv3 authentication does not take place for OSPF packets.
- RFC 1583 compatibility does not apply to OSPFv3.
- To take advantage of IPv6‘s link-local scope, OSPFv3 adds a link-local flooding scope to the domain and area flooding scopes present in OSPFv2. The link LSA, which has link-local flooding scope and can not be flooded beyond any attached router, has been added for neighbors on a single link.
- Two new LSAs have been introduced: the link LSA and the intra-area LSA. Point-to-point links are supported in order to enable operation over tunnels. OSPFv3 views IPv6‐over‐IPv4 tunnels as a point-to-point interface with a link-local address and possibly a global unicast address. OSPFv3 uses the reported MTU for tunnel interfaces.
The prefix advertisement for OSPFv3 is now in the new intra-area prefix LSA. When information is only relevant to the connected neighbor, OSPFv3 puts it in the link LSA, not in the router or network LSA, in both cases avoiding flooding information beyond the relevant information scope.
OSPFv3 and OSPFv2 LSA Cross-Reference details the supported LSA types by LS ID and name for OSPFv3 and OSPF v2.
OSPFv3 and OSPFv2 LSA Cross-Reference
OSPFv3 LSAs |
OSPFv2 LSAs |
0x2001 – Router LSA |
1 – Router LSA |
0x2002 – Network LSA |
2 – Network LSA |
0x2003 – Inter-Area Prefix LSA |
3 – Network Summary LSA |
0x2004 – Inter-Area Router LSA |
4 – ASBR Summary LSA |
0x2005 – AS-External LSA |
5 – AS-External LSA |
0x2006 – Group Membership LSA |
6 – Group Membership LSA |
0x2007 – Type-7 LSA |
7 – NSSA External LSA |
0x2008 – Link LSA |
No Corresponding LSA for OSPFv2 |
0x2009 – Intra-Area Prefix LSA |
No Corresponding LSA for OSPFv2 |