OSPFv3 LSAs Example (Single Area)

Routing Tables
R1#show ipv6 route ospf | be 110
O 2001:A:A:30::/64 [110/74]
via FE80::5054:FF:FE11:C0FE, GigabitEthernet2
via FE80::5054:FF:FE08:E390, GigabitEthernet1
R2#show ipv6 route ospf | be 110
O 2001:A:A:20::/64 [110/74]
via FE80::5054:FF:FE16:D3E5, GigabitEthernet1
R3#show ipv6 route ospf | be 110
O 2001:A:A:10::/64 [110/74]
via FE80::5054:FF:FE0E:A92, GigabitEthernet1The next hop for each route is the link-local address of the next-hop router, gleaned from the Type 8 LSA.
LSDB Summary
Router LSAs (Type 1)
There is no IPv6 addressing information contained in OSPFv3 Type 1 LSAs. These LSAs are only used to build the topology. The topology includes which routers exist in the area and how they interconnect. A transit network is a broadcast domain. Notice that each interface has an ID instead of an IP address. A p2p link simply lists the router on the other end, and the local and remote interface IDs
Another difference compared to OSPFv2 is that the link state ID is 0. In OSPFv2 the link state ID is the RID that originates the LSA. However, in OSPFv2 it is redundant information, as the RID is listed twice, in the advertising router ID field and the link state ID field. In OSPFv3, there is no need to populate the link state ID so it is just set to 0.
Network LSAs (Type 2)
The OSPFv3 Type 2 LSA also does not list any addressing information. It is simply used to build the topology, and includes information about broadcast domains. The DR advertises this LSA, just as in OSPFv2. The LSA simply lists the attached routers.
Link LSAs (Type 8) - R1's Perspective
Link LSAs (Type 8) - R2's Perspective
Link LSAs (Type 8) - R3's Perspective
Notice that each router has a different set of type 8 LSAs. How can this be? The Link LSA is only flooded on the interface. It is not flooded area-wide. The link LSA is used to associate an interface ID with a link local address, and prefix address. The prefix address is the IP address that belongs to the interface. This is how a router learns what link local address to use for the next-hop address for routes that are installed in the RIB.
Intra-Area Prefix LSAs (Type 9)
This LSA advertises non-link-local prefix addresses. We actually saw these prefixes in the Link LSA, however that LSA is only flooded on the link. The Intra-Area prefix LSA is flooded area-wide.
Notice that 2001:A:A:30::/64 has a metric of 0 because it was generated by the DR (pseudonode). The Type 1 LSA includes each attached router’s cost to the pseduonode.
The referenced LSA type value of 2001 indicates this is referencing a Type 1 LSA, and a value of 2002 indicates that it is referencing a Type 2 LSA.
Last updated