Table of Contents
There are many types of OSPF LSAs.
There are many different types of LSAs that are exchanged between OSPF routers. The following are the types of OSPF LSAs that are relevant to IPv4 routing.
LSA Type | 名称 |
LSA Type1 | Router LSA |
LSA Type2 | Network LSA |
LSA Type3 | Network summary LSA |
LSA Type4 | ASBR summary LSA |
LSA Type5 | AS External LSA |
LSA Type7 | NSSA External LSA |
For each LSA, this section describes the router that generates it, the scope that is advertised, and the content that is included.
LSA Type1 Router LSA
LSA Type 1 Router LSA is the most basic LSA and is generated by all OSPF routers. The generated router LSAs are then flooded all within the area. The router LSA contains all the OSPF router link (OSPF enabled interface connections) information. The specifics of the link information include the type of link, cost, IP address, and router ID of the neighbor. However, what kind of information is included depends on the type of link. The figure below shows the information contained in a router LSA and how it is flooded.

LSA Type2 Network LSA
LSA Type 2 Network LSA is generated by the DR on each multi-access network. The DR is a router that represents a multi-access network. The network LSA shows the connection of an OSPF router on a multi-access network. Specifically, it contains the IP address of the DR, a list of routers connected to the multi-access network and the subnet mask of the multi-access network. network LSAs generated by the DR are flooded to all within the area.

LSA Type3 Network summary LSA
LSA Type 3 Network Summary LSA is the LSA that is generated when an OSPF network is divided into areas. The router that generates the network summary LSA is the ABR. The ABR advertises the network addresses of other areas that can be reached via the backbone area to the areas under its own control. At the same time, the ABR advertises the network address contained in the area under its own control to the backbone area.

There is not much need to know the detailed network diagram of other areas, and the network summary LSA is an overview of network addresses. One network summary LSA is generated for each network address. As more networks are included in other areas, the number of network summary LSAs generated by the ABR will also increase. So, we will configure route summary: by performing route summary in ABR, we can reduce the number of network summary LSAs generated by ABR.
LSA Type4 ASBR summary LSA
LSA Type 4 ASBR summary LSA is the LSA that is generated when a non-OSPF domain is connected. An ASBR summary LSA is also LSA generated by the ABR; the information contained in the ASBR summary LSA is the router ID of the ASBR and the metric used to reach the ASBR. The format of the Network Summary LSA and the ASBR Summary LSA is identical. The difference is that the ASBR router ID is written instead of the network address, and the subnet mask is “0.0.0.0”.

LSA Type5 AS External LSA
LSA Type 5 AS external LSA ( or simply “external LSA”) is the LSA that is created when a non-OSPF domain is connected. The AS external LSA is generated by the ASBR. External LSA allows network addresses from non-OSPF domains to be advertised within the OSPF domain. The external LSA contains the network address of the non-OSPF domain, the subnet mask and the metric and forwarding address to reach that network. Metric is the seed metric given at redistribution in ASBR. Depending on the metric type, the metric can be fixed or increasing. For metric type E2 (default), the metric for AS external routes is constant, and for metric type E1, the metric increases.
Also, external LSAs are flooded throughout the OSPF domain, except in stub areas.

LSA Type7 NSSA External LSA
The NSSA external LSA is generated by the ASBR in the NSSA. The ASBR in the NSSA floods the information of the network address of the non-OSPF domain into the NSSA. Since NSSA external LSA is flooded only within the NSSA, the NSSA ABR converts LSA type 7 to LSA type 5 and advertises it to the backbone area.
LSA type 7, like LSA type 5, contains the network address, subnet mask, next hop, and metric of the non-OSPF domain.

Summary of LSA Type
The following table summarizes the name, advertising router, advertised range, and contents for each LSA.
Type | Name | Advertising Router | Advertised Range | Contents |
1 | Router LSA | All OSPF routers | Intra area | Router ID, Number of links, Detail of each links |
2 | Network LSA | DR | Intra area | IP address of DR, Subnet mask of multi access network, list of attached routers |
3 | Network summary LSA | ABR | Intra area | Network address, subnet mask, metric |
4 | ASBR summary LSA | ABR | Intra area | Router ID of ASBR, metric |
5 | AS External LSA | ASBR | OSPF domain(except stub areas) | Network address of non-OSPF domain, Subnet mask, Forwarding address, metric |
7 | NSSA External LSA | ASBR within NSSA | Within NSSA | Network address of non-OSPF domain, Subnet mask, Forwarding address, metric |
Let’s look back again at the different types of LSA. LSA Type 1 and LSA Type 2 detail the network diagram in the area. LSA Type1 and Type2 describe that how many OSPF routers there are in the area and how they are interconnected. And LSA type 3 represents a network address contained within another area. For the other areas, “network address only”. LSA type 5 represents the network address of the part of the network that is performing routing other than OSPF, and ASBR, which is the boundary between OSPF and routing other than OSPF, is represented by LSA type 4.
The following figure shows a simple OSPF network example and the relationship between LSA types.

To be precise, LSA type 5 is not included in the LSDB for a particular area.
How the OSPF works
- OSPF Overview
- OSPF process flow
- OSPF Router ID : Identify OSPF routers
- What if the router ID of the OSPF router is duplicated?
- OSPF Neighbor and Adjacency
- OSPF DR/BDR
- How show ip ospf neighbor looks on Ethernet
- OSPF Network Type : Classification of OSPF-enabled interfaces
- Synchronization process of OSPF LSDB
- Problems with large-scale OSPF network
- OSPF Area – Inside the area, in detail; outside the area, just a summary
- OSPF Router Type
- OSPF LSA Type
- OSPF Area Type
- OSPF Basic Configuration and Verification Commands
- Details of enabling OSPF on the interface
- OSPF Advertising Loopback Interface
- Configuring and Verifying OSPF Hello/Dead interval
- OSPF Cost Configuration and Verification
- Configuring and Verifying OSPF Router Priority
- Configuring OSPF Neighbor Authentication
- Neighbor Authentication over Virtual-link
- OSPF Configuring and Verifying Stub area [Cisco]
- OSPF Stub Area Configuration Example [Cisco]
- OSPF default route generation : default-information originate command
- Configuration Example of OSPF default route generation : stub area
- OSPF Virtual-Link : Virtual area 0 point-to-point link
- Configuring and Verifying OSPF Virtual-link [Cisco]
- OSPF Virtual-link Configuration Example [Cisco]
- OSPF Virtual-link for discontinuous backbone configuration example
- OSPF Route Summary and Configuration
- Cisco OSPF Route Summary Configuration Example
- OSPF Route Type Preference
- Why the OSPF neighbor state gets stuck in Exstart?
- OSPF packet type and header format
- OSPF Hello Packet
- OSPF DD(Database Description) Packet
- OSPF LSR(Link State Request) Packet
- OSPF LSU(Link State Update) Packet
- OSPF LSAck(Link State Acknowledgement) Packet
- Limitation of OSPF redistribution routes – redistribute maximum-prefix command
- Overview of LSA Filters for OSPF – Filter LSA Type 3/Type 5
- Configuration example of LSA type 3 filter
- Configuration example of LSA type 5 filter
- OSPFv3 Configuration Example [Cisco]
- Configuration Example of OSPFv3 Route Summary [Cisco]