OSPF LSA Types and LSA Flooding Explained
OSPF LSA Types and LSA Flooding Explained
The LSA payload varies in size according to the LSA type and the information it includes. The
diagram below clearly shows how LSAs are contained within LSUs:
Figure 1. LSA Types contained within an OSPF LSU packet
As mentioned, OSPF currently supports 11 types of LSAs. Each LSA is used within specific
boundaries of an OSPF network.
OSPF concepts, including router roles such as Designated Router (DR), Area Border Router
(ABR), Autonomous System Border Router (ASBR), OSPF Areas and more, are analyzed in
great depth in our article OSPF Basic Concepts – OSPF Areas – Router Roles. This article assumes
the reader has a good understanding of basic OSPF theory and is comfortable with OSPF concepts.
Figure 2. LSA Type 1 Packets exchanged between OSPF routers within the same area
Figure 4. LSA Type 3 - An OSPF ABR router advertises the summarized route 192.168.2.0/24 to
Area 0
Looking at the diagram above, ABR router R2 creates a Type 3 Summary LSA and floods it into
Area 0. In a similar way, ABR router R3 creates a Type 3 Summary LSA and floods it into Area
2. Type 3 Summary LSAs appear as O IA entries in the router routing table.
Figure 5. LSA Type 4 packets injected into Area 0 & 2 by the R2 ABR and R3 ABR
While LSA Type 4 packets are used by ABRs to advertise the ASBR route through their areas, it
will not be used by the ASBR itself within its local area (Area 1); ASBR uses LSA Type 1 to
inform its neighbors (R2 in this case) within its networks.
Figure 6. LSA Type 5 packets advertise the default route to all OSPF routers
This external route/prefix is redistributed in to the OSPF network by the ASBR (R1) and seen as O
E1 or E2 entries in other OSPF routers routing tables.
Figure 7. LSA Type 7 packets passing through an NSSA and being transformed into LSA Type 5 by
the ABR
In the above example, ABR R2 translates LSA Type 7 into a LSA Type 5 and floods it into the
OSPF network.
Summary
In this article we examined all 11 OSPF LSA packet types and explained their purposes. We also
examined the structure of an LSA packet and used network diagrams to help illustrate how LSA
packets flow between routers & OSPF Areas. For more high-quality OSPF articles visit our OSPF
Section.