OSPF LSA Types Explained 11 Types of LSA in OSPF!

April 8, 2022
12 min read

OrhanErgun

Table of Contents

Quick navigation13 sections

OSPF LSA Types is the first topic you need to understand if you are trying to understand OSPF routing protocol. There are 11 different types of LSA in OSPF and we will look at each one of them, why do we have many different LSA in OSPF, we will discuss the topologies and the examples to make it more clear for everyone.

I strongly recommend checking the OSPF Training for those who want to learn more about this topic.

What is LSA in OSPF?

We should start asking the most fundamental question first about OSPF. What is LSA? LSA stands for Link State Advertisement and it carries prefix information, interface cost, and if advanced technologies such as Traffic Engineering are enabled, it can carry link color information, used bandwidth, available bandwidth, and so on.

When a router receives an LSA, it is stored in the Link State Database (LSDB) of OSPF. Once the LSDBs between the routers are synchronized, OSPF uses the SPF/Dijkstra algorithm to calculate the best path for each destination network. OSPF LSAs are information about a route that is transported inside OSPF Link State Update (LSU) packets.

We can only have a scalable, resilient, fast-converged OSPF design when we understand OSPF LSAs and Area types and their restrictions.

OSPF LSA Type 1 - OSPF Router LSA

OSPF Type 1 LSA/Router LSA packets are sent between routers within the same OSPF area and do not leave the area.

An OSPF router uses Type 1 LSA to describe its own interfaces but also carries information about its neighbors to adjacent routers in the same area.

OSPF Type 1 LSA is created by each and every router in a given OSPF area. As we will see in the other LSA types, some of them are only created by special types of routers.

When the OSPF Prefix suppression type of feature is used, infrastructure prefixes are removed from Type 1 LSA, so OSPF scalability can be achieved.

OSPF LSA Type 2 - OSPF Network LSA

OSPF Type 2 LSA/Network LSA packets are generated by the OSPF Designated Router (DR) to describe all routers connected to its segment directly.

Type 2 LSA is flooded between neighbors in the same OSPF area and doesn't cross the area boundary.

Type 2 Network LSA is not desired if the OSPF connection is a point-to-point. Because there are only two points, there is no need for a DR/BDR election and also no need for extra Type 2 LSA. Type 2 LSA will be stored in the OSPF LSDB and routing table and their size will grow unnecessarily if the connection type is point-to-point.

We want DR/BDR election, and thus Network LSA, only if the connection model is Multi-access. This means that in the segment, many OSPF routers are attached.

Although it should be the subject of another post, let me just say here that having DR/BDR election increases network convergence time. So, no Type 2/Network LSA unnecessarily!

OSPF LSA Type 3 - OSPF Summary LSA

OSPF Type 3 LSA/Summary LSA packets are generated by the OSPF Area Border Routers (ABR) to summarize its directly connected OSPF area, and advertise inter-area router information to other areas the ABR is connected to.

Type 3 LSA is only seen when there is a hierarchical OSPF network design, meaning an OSPF Multi-area network design.

If there is only one OSPF area in the network, we can't have Type 3 LSA.

OSPF LSA Type 4 - OSPF ASBR Summary LSA

OSPF Type 4 LSA/ASBR Summary LSA is used to advertise the presence of an Autonomous System Border Router (ASBR) in other areas.

Inside the same area that we have an ASBR, ASBR reachability is achieved with OSPF Type 1 LSA.

If there is Type 5 LSA, and if there is a Hierarchical OSPF Network design, meaning an OSPF Multi-area network design, then we can have OSPF Type 4 LSA. Otherwise, as it is said above, ASBR reachability is achieved via Type 1 LSA in a single area OSPF network design.

OSPF LSA Type 5 - OSPF ASBR External LSA

OSPF Type 5 LSA/ASBR External LSA in OSPF LSA Types is generated by the ASBR to advertise external redistributed prefixes into the OSPF domain.

These external routes/prefixes are redistributed into the OSPF network by the ASBR and seen as either E1 or E2 entries in the routing tables of the routers.

External LSA is domain-wide, meaning if we redistribute prefixes into OSPF, those redistributed prefixes are flooded everywhere. Even if there are multiple areas in OSPF, every area receives them. Exceptions are Stub Area and its variations, such as Totally Stub Area, NSSA, and Totally NSSA Area.

OSPF LSA Type 6 - OSPF Group Membership LSA

OSPF Type 6 LSA was considered for the Multicast purpose, Multicast routing for OSPF, but was never implemented or deployed. Similar to the DVMRP protocol, it didn't last long and today for IP Multicast routing purposes, PIM - Protocol Independent Multicast is used. Although Type 6 LSA is not used, when we cover OSPF LSA Types, it was necessary to explain it too.

OSPF LSA Type 7 - OSPF Not So Stubby Area (NSSA) External LSA

OSPF Type 7 LSA/NSSA External LSA is seen in NSSA and Totally NSSA Areas when there is redistribution.

Normally Stub Areas don't allow redistribution, but as a Not So Stubby Area (NSSA), redistribution is allowed. But, redistributed prefixes are not seen as Type 5 LSA, they are seen as Type 7 LSA.

Type 7 LSA is translated to Type 5 LSA to be sent into the OSPF Area 0/Backbone Area.

If there are two NSSA ABRs, they negotiate with each other and the NSSA ABR with the lower Router ID does the translation.

OSPF LSA Type 8 - OSPF External Attributes LSA

Normally BGP prefixes are redistributed into OSPF or any other routing protocol, and BGP attributes are lost. But, you may need to carry BGP attributes with your Autonomous System between the Routers.

Let's say, for the given destination IP prefix, you have two exit points from your network, and for the outbound direction, you want to prefer one of those exit points as Primary. You can use the BGP Local Preference attribute.

Two Routers exchange the prefixes with each other, and when they check the BGP Local Preference attribute, whichever Router has the higher Local Preference, that router is used as an exit point by both of the routers.

But BGP Local Preference attributes cannot be carried in OSPF normally. Because of reachability, you need to redistribute from BGP to OSPF, and if you redistribute, attributes are lost.

Type 8 LSA in OSPF LSA Types was considered for this purpose. BGP Attributes would be carried even if we would redistribute. But yet another LSA that we don't use in computer networking. Instead of this LSA, IBGP - Internal BGP is used in the networks. Hope Type 8 LSA as one of the OSPF LSA Types is understood better now.

Opaque LSAs LSA Type 9, 10, and 11 are used to extend the capabilities of OSPF.

With these LSA Types, OSPF carries many other protocol capabilities. For example, RSVP Traffic Engineering and Segment Routing Traffic Engineering require topology information, used bandwidth, available bandwidth, reserved bandwidth, link coloring information, delay or other attributes, and so on.

BIER - Bit Indexed Explicit Replication, the newest and most scalable Multicast architecture information, is conveyed with Opaque LSAs as well. OSPF Graceful Restart/GR and many other use cases we have with Opaque LSAs. Think of it as a helper to the basic OSPF mechanism. In addition to carrying prefixes and cost, much other information can be carried with them. Type 9 LSA is link scope, Type 10 is Area scope and Type 11 is AS scope Opaque LSAs.

What type of OSPF LSA is originated by ASBR routers to advertise external routes?

Let's review what we have learned. The answer to this question is Type 5 External LSA. ASBR advertises external routes as Type 5 LSA and this LSA is flooded in every area in the OSPF domain if they are not Stub or NSSA.

What information is contained within an OSPF type 4 LSA?

Type 4 LSA is used for ASBR reachability as it was explained earlier in the post as well. But, it is seen only if there is a multi-area OSPF network. In a single area OSPF network design, ASBR reachability is achieved with ASBR's Type 1 LSA.

OSPF LSA types are in general used for OSPF Scalability. With only 1 LSA type, all the information could be carried. But when we have multiple areas, for hierarchy, we use different LSAs, as different LSAs have different duties. Understanding their restrictions and which one is allowed in which OSPF Area Types is very important to understand OSPF.

LSA Types in an OSPF NSSA (Not So Stubby Area)

NSSA (Not So Stubby Area) is a special area type where LSA behavior differs from a normal area. Type 1 Router LSAs and Type 2 Network LSAs still stay inside the area, giving local routers a detailed topology map without enlarging the routing tables of other areas. Type 3 Summary LSAs are used to inject inter-area and external routes from the backbone into the NSSA, which lets you control exactly what external information reaches the area.

The LSA that makes an NSSA special is the Type 7 LSA. Because a Not So Stubby Area allows redistribution while normal stub areas do not, external routes redistributed by an ASBR inside the NSSA appear as Type 7 LSAs instead of Type 5. When these routes need to leave the NSSA toward the backbone, the NSSA ABR translates the Type 7 LSAs into Type 5 AS External LSAs so the rest of the OSPF domain can recognize and process them.

Challenges When Managing LSAs in an NSSA

The Type 7 to Type 5 translation can introduce suboptimal routing and extra latency, especially when the translating ASBR becomes a single point of congestion. Improper Type 7 configuration can also cause route leaking, where external routes are advertised into areas that should not receive them, creating both security and performance problems. Synchronization is another risk: if the border routers are not configured consistently to handle Type 7 LSAs, the area can end up with inconsistent routing information.

Best Practices for LSA Management in an NSSA

To keep an NSSA stable, audit and monitor the LSA configuration across all routers regularly, so misconfigurations are caught before they spread. Where possible, deploy multiple ASBRs so that translation and external route advertisement stay available even if one ASBR fails, and so that no single router becomes a congestion point. Tuning LSA throttling settings helps control how often and how many LSA updates are flooded, reducing unnecessary churn and keeping routes stable. Finally, make sure the team understands how Type 7 translation and the other LSA types behave, since consistent configuration on the border routers is what keeps the area healthy.

Related Courses

Enhance your knowledge with these recommended courses

Become an Instructor

Share your knowledge and expertise. Join our community of instructors and help others learn.

Apply Now
OrhanErgun

About the Author

OrhanErgun

He created OrhanErgun.Net 10 years ago and has been serving the IT industry with his renowned and awarded training.

Wrote many books, mostly on Network Design, joined many IETF RFCs, gave Public talks at many Forums, and mentored thousands of his students.  

Today, with his carefully selected instructors, OrhanErgun.Net is providing IT courses to tens of thousands of IT engineers.

Share this Article

Related Articles

IGPMay 17, 2024

IS-IS vs. BGP: Which Routing Protocol Wins for Scalability?

In the world of network routing, choosing the right protocol can make or break the scalability and efficiency of your network. Two heavyweight contenders in this arena are Intermediate System...

Read Article
IGPMay 17, 2024

OSPF vs IS-IS Routing Protocols: A Detailed Comparison

OSPF vs IS-IS Routing Protocols: A Detailed Comparison In the world of network design and implementation, choosing the right routing protocol is crucial for building efficient, scalable, and robust networks....

Read Article
IGPMay 17, 2024

Understanding IS-IS Routing Protocol: A Beginner's Guide

The Intermediate System to Intermediate System (IS-IS) routing protocol might not crowd the limelight as much as its counterparts like OSPF or BGP, but its role in large scale network...

Read Article
IGPMay 8, 2024

BFD vs. OSPF: A Comparison

In the complex landscape of network protocols, understanding the dynamics and functionalities of each component is crucial for optimizing network performance and reliability. Bidirectional Forwarding Detection (BFD) and Open Shortest...

Read Article
IGPApril 17, 2022

IS-IS Routing Ptrotocol

IS-IS is a link-state routing protocol, similar to OSPF. If you are looking for Service Provider grade, MPLS Traffic Engineering support, and extendible routing protocol for easier future migration then...

Read Article
IGPApril 6, 2022

OSPF Load Balancing

OSPF Load Balancing is to place multiple next-hops into the Routing and Forwarding table for a given IP destination prefix. In this post, we will look at OSPF Load Balancing,...

Read Article

Subscribe for Exclusive Deals & Promotions

Stay informed about special discounts, limited-time offers, and promotional campaigns. Be the first to know when we launch new deals!