OSPF LSA Types Explained: Type 1 to Type 7 – Complete CCNP Guide

OSPF LSA Types Explained: Type 1 to Type 7 – Complete CCNP Guide
Networking ATN Campus November 09, 2026 51 views

OSPF LSA Types Explained: Type 1 to Type 7 – Complete CCNP Guide

OSPF (Open Shortest Path First) uses Link-State Advertisements (LSAs) to exchange network topology and routing information between routers. Understanding LSA types is essential for CCNP Enterprise candidates and network engineers who design, configure, and troubleshoot enterprise networks.

In this guide, you will learn about OSPF LSA Types 1 through 7, their purposes, which routers generate them, where they are flooded, and how to identify them in a Cisco router.


1. What Is an OSPF LSA?

LSA stands for Link-State Advertisement. It is a data structure used by OSPF routers to describe network topology, router information, and reachable networks.

OSPF routers exchange LSAs to build their Link-State Database (LSDB). Each router then runs the Shortest Path First (SPF) algorithm to calculate the best paths through the network.

How OSPF uses LSAs

+---------------------------+
| Router A                 |
| Creates / Receives LSAs  |
+-------------+-------------+
              |
              | OSPF Updates
              |
+-------------v-------------+
| Link-State Database       |
| (LSDB)                    |
+-------------+-------------+
              |
              | SPF Algorithm
              |
+-------------v-------------+
| Routing Table             |
| Best Available Routes     |
+---------------------------+
        

LSAs are carried inside OSPF Link State Update packets. They are not the same thing as the OSPF packet types themselves.

2. Why Are There Different LSA Types?

Different LSAs communicate different kinds of routing information. For example:

  • Some describe routers and their links inside an area.
  • Some describe multiaccess networks and their attached routers.
  • Some advertise routes between OSPF areas.
  • Others advertise routes redistributed from external routing sources.

Understanding these differences helps you identify how a route entered OSPF and why it is or is not visible in a particular area.

3. Overview of OSPF LSA Types 1–7

LSA TypeNameMain Purpose
Type 1Router LSADescribes a router's OSPF links within an area.
Type 2Network LSADescribes a multiaccess network and its attached routers.
Type 3Summary LSAAdvertises inter-area network reachability.
Type 4ASBR Summary LSAProvides information about how to reach an ASBR.
Type 5AS External LSAAdvertises routes redistributed into OSPF.
Type 6Group Membership LSADesigned for MOSPF multicast routing.
Type 7NSSA External LSAAdvertises external routes inside an NSSA.

4. Type 1 LSA – Router LSA

Type 1 LSA is generated by every OSPF router for each area in which it participates. It describes the router's OSPF-enabled links, their states, and associated metrics.

Example topology

             Area 0

        +----------+       +----------+
        |    R1    |-------|    R2    |
        +----------+       +----------+
              \               /
               \             /
                +-----------+
                     R3
        

Each router generates its own Type 1 LSA to describe its participation in the area. Other routers in that area use this information to build the topology database.

Important points

  • Generated by every OSPF router for each area it belongs to.
  • Flooded within its originating area.
  • Identified by the router ID as the Link State ID in the usual Type 1 case.
  • Used by the SPF algorithm to calculate paths within an area.

Remember: Type 1 describes router topology information within an area.

5. Type 2 LSA – Network LSA

Type 2 LSA is generated by the Designated Router (DR) on a multiaccess OSPF network, such as a broadcast Ethernet segment.

It describes the network segment and lists the routers attached to that segment.

Example

             Shared Ethernet Network

        +----------+     +----------+
        |    R1    |-----|    R2    |
        +----------+     +----------+
              \              /
               \            /
                +----------+
                |    R3    |
                +----------+

             R1 = DR (example)
        

If R1 becomes the DR, it generates the Type 2 LSA for that multiaccess network.

Important points

  • Generated by the DR for a multiaccess network.
  • Identifies the network and its attached OSPF routers.
  • Flooded within the area where the network exists.
  • Not normally generated for point-to-point OSPF links.

Remember: Type 2 describes a multiaccess network and its attached routers.

6. Type 3 LSA – Summary LSA

Type 3 LSA is generated by an Area Border Router (ABR) to advertise network reachability from one area into another.

Despite its name, a Type 3 LSA is not necessarily a summary of multiple routes. It can advertise an individual inter-area prefix as well.

Example multi-area network

              AREA 0
        +----------+       +----------+
        |    R1    |-------|    R2    |
        |   ABR    |       | Internal |
        +----+-----+       +----------+
             |
             |
           AREA 10
             |
        +----+-----+
        |    R3    |
        | Internal |
        +----------+
        

When R1 learns a network from Area 10, it can advertise that network into Area 0 using a Type 3 LSA. The reverse process also applies to eligible routes from Area 0 into Area 10.

Important points

  • Generated by ABRs.
  • Advertises inter-area network reachability.
  • Flooded into the receiving area.
  • Used to calculate OSPF inter-area routes, displayed as O IA on Cisco routers.

Remember: Type 3 advertises networks between OSPF areas.

7. Type 4 LSA – ASBR Summary LSA

Type 4 LSA provides information about how to reach an Autonomous System Boundary Router (ASBR) from another area.

An ASBR is a router that redistributes routes from another routing source into OSPF. Other areas may need to know how to reach that ASBR so they can reach the external destinations it advertises.

Example

            AREA 0                  External Network

        +----------+                  +----------+
        |    R1    |------------------|    R3    |
        |   ABR    |                  |   ASBR   |
        +----+-----+                  +----------+
             |
             |
           AREA 10
             |
        +----+-----+
        |    R2    |
        | Internal |
        +----------+
        

In this conceptual example, the ABR can advertise reachability to the ASBR into other areas using a Type 4 LSA.

Important points

  • Generated by an ABR when an ASBR needs to be reachable from another area.
  • Identifies the ASBR and provides inter-area reachability information.
  • Used together with external route information when calculating paths to external destinations.

Remember: Type 4 tells other areas how to reach the ASBR.

8. Type 5 LSA – AS External LSA

Type 5 LSA advertises external routes redistributed into OSPF from another routing source.

Examples include routes learned from BGP, static routes, or another routing protocol, when those routes are redistributed into OSPF.

Example

        External Network
        203.0.113.0/24
                |
                |
          +-----------+
          |   ASBR    |
          |    R1     |
          +-----+-----+
                |
             OSPF Area 0
                |
          +-----+-----+
          |    R2     |
          | Internal  |
          +-----------+
        

If R1 redistributes the external route into OSPF, it can originate a Type 5 LSA for that route in a normal OSPF area.

Example Cisco configuration

The following is a simplified lab example using a static route to a simulated external destination:

ip route 203.0.113.0 255.255.255.0 Null0

router ospf 10
 redistribute static subnets
        

This causes eligible static routes to be redistributed into OSPF. Use a controlled lab environment and appropriate route filtering when testing redistribution.

Important points

  • Originated by an ASBR.
  • Advertises external destinations redistributed into OSPF.
  • Normally flooded throughout the OSPF autonomous system, except into areas that block Type 5 LSAs, such as stub and NSSA areas.
  • External routes commonly appear as O E1 or O E2 in Cisco routing tables.

Remember: Type 5 advertises external routes into OSPF.

9. Type 6 LSA – Group Membership LSA

Type 6 LSA was defined for Multicast OSPF (MOSPF), an extension designed to support multicast routing using OSPF link-state information.

It is not normally used in standard enterprise OSPF deployments. Support is limited and platform-dependent.

Important points

  • Associated with multicast group membership information.
  • Defined for MOSPF.
  • Not commonly encountered in modern Cisco enterprise OSPF labs.

Remember: Type 6 is associated with MOSPF multicast group membership.

10. Type 7 LSA – NSSA External LSA

Type 7 LSA is used in a Not-So-Stubby Area (NSSA). An NSSA allows an ASBR inside that area to redistribute external routes while keeping ordinary Type 5 LSAs out of the area.

Example NSSA topology

                 AREA 0
              +----------+
              |    R1    |
              |   ABR    |
              +-----+----+
                    |
                    |
                 NSSA
                 AREA 10
                    |
              +-----+----+
              |    R2    |
              |   ASBR   |
              +-----+----+
                    |
              External Network
        

R2 redistributes an external route into the NSSA. Inside Area 10, the route is represented by a Type 7 LSA. The ABR can translate that Type 7 LSA into a Type 5 LSA for advertisement into eligible areas.

Example Cisco configuration

On the ABR, configure the area as an NSSA:

router ospf 10
 area 10 nssa
        

On the ASBR inside Area 10, redistribute a lab static route:

ip route 203.0.113.0 255.255.255.0 Null0

router ospf 10
 area 10 nssa
 redistribute static subnets
        

Both routers must have compatible NSSA configuration for the area. The exact external route type and default-route behavior depend on the NSSA options and IOS configuration.

Important points

  • Generated by an ASBR inside an NSSA for eligible redistributed routes.
  • Flooded within the NSSA.
  • Can be translated into a Type 5 LSA by an ABR.
  • External routes may appear as O N1 or O N2 in Cisco routing tables.

Remember: Type 7 carries external route information inside an NSSA.

11. OSPF LSA Flooding Scope

Different LSA types have different flooding scopes. Understanding these scopes is important when troubleshooting OSPF databases.

LSA TypeTypical Flooding Scope
Type 1Within the originating area
Type 2Within the originating area
Type 3Within the area where the ABR advertises it
Type 4Within the area where the ABR advertises it
Type 5Across eligible OSPF areas, excluding areas that block external LSAs
Type 6Associated with MOSPF; not generally used in standard deployments
Type 7Within the originating NSSA

12. Normal Area vs Stub Area vs NSSA

OSPF area types influence which LSA types are allowed into an area.

Area TypeKey LSA BehaviorTypical Use
Normal AreaSupports Types 1, 2, 3, 4 and 5 as applicable.General enterprise routing.
Stub AreaBlocks Type 5 external LSAs; an ABR can provide a default route.Areas that do not need detailed external route information.
Totally Stubby AreaBlocks external and most inter-area summary information; typically receives a default route. Cisco-specific behavior.Smaller branch areas.
NSSABlocks external Type 5 LSAs from entering but permits local external redistribution using Type 7.Areas that need local redistribution.
Totally NSSAUses NSSA behavior while suppressing most summary information, typically providing a default route. Cisco-specific behavior.Branch areas with local redistribution requirements.

All routers in an area must have compatible area-type settings. Stub and NSSA options are not interchangeable, and vendor-specific commands may differ.

13. How to Identify LSAs on Cisco Routers

Use the following commands to inspect the OSPF link-state database:

show ip ospf database
show ip ospf database router
show ip ospf database network
show ip ospf database summary
show ip ospf database asbr-summary
show ip ospf database external
show ip ospf database nssa-external
        

Not every command is supported in every IOS image or simulator. Use show ip ospf database ? to see the options supported by your device.

Useful verification commands

show ip ospf neighbor
show ip route ospf
show ip ospf interface brief
show ip protocols
        

Use these commands together to understand the relationship between OSPF neighbors, LSAs, and installed routes.

14. OSPF LSA Types – Quick Comparison

TypeGenerated ByKey Concept
1Every OSPF routerRouter topology
2Designated RouterMultiaccess network
3ABRInter-area network
4ABRReachability to ASBR
5ASBRExternal route
6MOSPF mechanismMulticast group membership
7ASBR inside NSSANSSA external route

15. Frequently Asked Questions

Which LSA type is generated by every OSPF router?

Type 1 (Router LSA) is generated by every OSPF router for each area in which it participates.

Which LSA is generated by the Designated Router?

Type 2 (Network LSA) is generated by the DR for a multiaccess network.

What is the difference between Type 3 and Type 4 LSAs?

Type 3 advertises inter-area network reachability. Type 4 advertises how to reach an ASBR from another area.

What is the difference between Type 5 and Type 7 LSAs?

Type 5 advertises external routes in eligible OSPF areas. Type 7 advertises external routes inside an NSSA and may be translated into Type 5 by an ABR.

Is Type 6 LSA used in normal enterprise OSPF networks?

No. Type 6 is associated with MOSPF multicast routing and is not normally used in standard enterprise OSPF deployments.

Can a Type 5 LSA enter a stub area?

No. A stub area blocks Type 5 external LSAs. An ABR can provide a default route instead.

16. CCNP Practice Questions

  1. Which LSA type describes the links of an OSPF router within an area?
  2. Which router generates a Type 2 LSA?
  3. Which LSA advertises inter-area network reachability?
  4. What is the main purpose of a Type 4 LSA?
  5. Which LSA advertises routes redistributed into OSPF?
  6. Which LSA type is associated with MOSPF?
  7. Which LSA type is used for external routes inside an NSSA?
  8. What happens to an eligible Type 7 LSA at an NSSA ABR?
  9. Why does a stub area block Type 5 LSAs?
  10. Which Cisco command displays the OSPF link-state database?

Answer Key

  1. Type 1 – Router LSA.
  2. The Designated Router (DR).
  3. Type 3 – Summary LSA.
  4. To advertise reachability to an ASBR in another area.
  5. Type 5 – AS External LSA.
  6. Type 6 – Group Membership LSA.
  7. Type 7 – NSSA External LSA.
  8. The ABR can translate it into a Type 5 LSA.
  9. To reduce external routing information inside the area.
  10. show ip ospf database.

Conclusion

OSPF LSA types are fundamental to understanding how OSPF routers exchange routing information. Type 1 and Type 2 describe intra-area topology, Type 3 and Type 4 support inter-area routing, Type 5 advertises external routes, Type 6 is associated with MOSPF, and Type 7 supports external routes inside NSSAs.

For CCNP Enterprise learners, understanding LSA generation, flooding scope, and area behavior is essential for advanced OSPF configuration and troubleshooting.

Learn Advanced Networking with ATN Campus

Take your networking knowledge further with:

  • CCNA and CCNP Enterprise
  • Advanced OSPF and EIGRP Routing
  • BGP Configuration and Troubleshooting
  • Advanced Switching and VLANs
  • Network Security and CEH
  • Python for Network Automation
  • Practical Cisco Labs

???? Want to advance your networking career? Visit ATN Campus.

???? Learn Networking.
???? Master Advanced Routing & Switching.
???? Practice with Real Labs.
???? Prepare for CCNP Certifications.
???? Build Your IT Career with ATN Campus.
Document ATN CAMPUS