Got it

Simplifying the Understanding of OSPF LSA types Highlighted

Latest reply: Mar 17, 2022 16:30:20 2031 35 16 0 9

Hello everybody,

My intention with this post is to show in an easy and simple way the OSPF LSA types. I hope it could make it easy and help better you understand. However, if someone finds some mistakes and has new information, please share it with us.

 

Before explaining the types of LSAs, let's review some concepts of the OSPF protocol.


Router Type

Routers are classified as Internal routers, ABRs, Backbone routers, or ASBRs by location in an AS.


OSPF_Router_Type


  • Internal router:  All interfaces on an internal router belong to the same OSPF area.


  • ABR (Area Border Router): An ABR connects the backbone area and non-backbone areas, and it can connect to the backbone area either physically or logically.

       An ABR can belong to two or more areas, one of which must be a backbone area.


  • Backbone router: Backbone routers include internal routers in the backbone area and all   ABRs.

      At least one interface on a backbone router belongs to the backbone area.


  • ASBR (Autonomous System Boundary Router):  An ASBR exchanges routing information with other ASs.

      An ASBR may not reside at the boundary of an AS, and it can be an internal router or an ABR.

    

Route types are classified as intra-area, inter-area, Type 1 external, or Type 2 external routes. Intra-area and inter-area routes describe the network structure of an AS. Type 1 or Type 2 AS external routes describe how to select routes to destinations outside an AS.

  • Intra Area: Indicates routes within an area.

  • Inter-Area: Indicates routes between areas.

  • Type 1 external routes: Type 1 external routes have high reliability. 

  • Type 2 external routes: Type 2 external routes have low reliability. 


Area types in OSPF


Common area

By default, a router in a common area does not generate a default route.

  • Standard area: transmits intra-area, inter-area, and external routes.

  • Backbone area: connects to all other OSPF areas and transmits inter-area routes. The backbone area is area 0. Routes between non-backbone areas must be forwarded through the backbone area.


Stub area

It does not allow the entry of type 4 and 5 LSAs, so a router in a Stubby area does not know networks outside the OSPF domain (injected by ASBR). To have access to these networks, ABR starts to inject a default route in the Stubby area instead of disclosing LSAs 4 and 5.

A router in the stub area must learn AS external routes from an ABR. The ABR automatically generates a Type 3 LSA carrying a default route and advertises it within the entire stub area. Then the router can learn AS external routes from the ABR.


Totally stub area

Do not accept type 4 and 5 LSAs, Totally Stubby areas also do not accept type 3 LSAs.

A router in the totally stub area must learn AS external and inter-area routes from an ABR. After you configure a totally stub area, an ABR automatically generates a Type 3 LSA carrying a default route and advertises it within the entire totally stub area. Then the router can learn AS external and inter-area routes from the ABR.

 

NSSA (No So Stubby Area)

It is similar to the Stubby area (filters LSAs 4 and 5), but allows the existence of ASBR in the area, and the creation of LSA type 7.

An ABR does not translate Type 7 LSAs carrying a default route into Type 5 LSAs carrying a default route or flood them to the entire AS.


Totally NSSA

It does not allow the entry of type 3, 4, and 5 LSAs, but allows the creation of type 7 LSAs.

A router in the totally NSSA must learn AS external routes from an ABR. The ABR automatically generates Type 3 and Type7 LSAs carrying a default route and advertises them to the entire totally NSSA. Then AS external and inter-area routes can be advertised within the totally NSSA


After this summary, we will return to the focus of this post which is the types of LSAs

 

OSPF LSA Types


OSPF uses an LSDB (link state database) and fills this with LSAs (link-state advertisement). Instead of using 1 LSA packet, OSPF has many different types of LSAs.

Each router in an AS generates one or more types of LSAs, depending on the router's type. Multiple LSAs form an LSDB. OSPF encapsulates routing information into LSAs for transmission. Commonly used LSAs include:

·         Router-LSAs (Type 1)

·         Network-LSAs (Type 2)

·         Summary-LSAs, including network-summary-LSAs (Type 3) and ASBR-summary-LSAs (Type 4)

·         AS-external-LSAs (Type 5)


LSA Type 1: OSPF Router LSA


Type 1 LSA is generated by all routers and is sent to all routers in the same area (no more than one area). In this LSA we have the list of all links connected to the router.

If a router has interfaces in more than one area, it generates type 1 LSAs for each area and maintaining LSDB - Link State Data Base, for each área.


LSA_Type 1


LSA Type 2: OSPF Network LSA


Type 2 Network LSA is generated only by the DR(Designed Router) and only exists in multi-access networks (broadcast or non-broadcast), where DRs exist. All routers that are connected to the DR (connected to the multi-access network), the DR itself, and network prefixes and masks. Type 2 LSA does not move from one area to another.


LSA_Type_2


LSA Type 3: OSPF Summary LSA


Type 3 LSA is generated by ABRs - Area Border Router and is injected into the neighboring area.

The routes with the indication “O IA” (OSPF Inter Área), are the routes from other areas learned through type 3 LSAs.

Despite its name, LSA type 3 does not summarize any networks when they are announced between areas (there is a way to summarize networks, precisely in ABR, but this is another matter)


LSA_Type_3


LSA Type 4: OSPF ASBR Summary LSA and LSA Type 5: OSPF ASBR External LSA


In addition to inter and inter-area routes, we may have external routes

In the topology above, the ASBR router is redistributing IS-IS in OSPF, which makes it an ASBR - Autonomous System Boundary Router. And in this case, we have LSAs 4 and 5.

ASBR changes its type 1 LSA so that the ABR router identifies it as an ASBR. Because of this, the router (ABR) starts to generate LSA type 4, Summary ASBR LSA, disclosing how to get to ASBR to area 0 (and from this to the other areas).

In addition, the (ASBR) starts to send type 5 LSAs, Autonomous system external LSA, informing that it knows “external” networks/routes.

The external networks in the routing table are through the “O E1” and “O E2” indicators (external OSPF routes, type 1 and type 2).


LSA_Type_4_5


LSA Type 6 – OSPF Group Membership LSA


The LSA type 6, Multicast OSPF LSA, as the name suggests, is used by MOSPF - Multicast OSPF, an OSPF extension that is little used and is not supported by Cisco routers.


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


Type 7 LSA is created when the ASBR type router exists in NSSA or Totally NSSA areas. This is because these areas do not allow type 5 LSA, so ASBR starts to generate type 7 LSA, which is converted into type 5 by ABR and then forwarded to area 0, and from there to the other normal areas.


LSA_Type_7


LSA Type 8:


External Attributes LSA -OSPFv2-/ Link-Local LSA -OSPFv3-) in OSPFv2 (IPv4) are called External Attribute LSAs, and are used to transit BGP attributes through an OSPF network while BGP destinations are conveyed via LSA Type 5 packets, however, this feature isn’t supported by most routers. With OSPFv3 IPv6), LSA Type 8 is redefined to carry IPv6 information through the OSPF network.


Opaque-LSA (Type 9/Type 10/Type 11)

 

Provides a general mechanism for OSPF extension. Different types of LSAs are described as follows:

·         Type 9 LSAs are advertised only on the network segment where the interface advertising the LSAs resides. Grace LSAs used in a graceful restart (GR) are Type 9 LSAs.

·         Type 10 LSAs are advertised within an OSPF area. LSAs that are used to support traffic engineering (TE) are Type 10 LSAs.

·         Type 11 LSAs are advertised within an AS but have not been used in practice.

 

References:



OSPF uses an LSDB (link state database) and fills this with LSAs (link-state advertisement). Instead of using 1 LSA packet, OSPF has many different types of LSAs. Common LSAs are as follows:

LSA Type 1:            Router LSA
LSA Type 2:            Network LSA
LSA Type 3:            Summary LSA
LSA Type 4:            Summary ASBR LSA
LSA Type 5:            Autonomous system external LSA
LSA Type 6:            Multicast OSPF LSA
LSA Type 7:            Not-so-stubby area LSA
LSA Type 8:            External attribute LSA for BGP

View more
  • x
  • convention:

LSA Type

Function

Router-LSA (Type 1)

Describes the link status and cost of a router. Router-LSAs are generated by a router and advertised within the area to which the router belongs.

Network-LSA (Type 2)

Describes the link status of all routers on the local network segment. Network-LSAs are generated by a designated router (DR) and advertised within the area to which the DR belongs.

Network-summary-LSA (Type 3)

Describes routes on a network segment of an area. Network-summary-LSAs are generated by an ABR and advertised to other areas, excluding the totally stub area and totally NSSA. For example, an ABR belongs to both area 0 and area 1, area 0 has a network segment 10.1.1.0, and area 1 has a network segment 10.2.1.0. In this case, for area 0, the ABR generates Type 3 LSAs destined for the network segment 10.2.1.0; for area 1, the ABR generates Type 3 LSAs destined for the network segment 10.1.1.0.

ASBR-summary-LSA (Type 4)

Describes routes of an area to the ASBRs of other areas. ASBR-summary-LSAs are generated by an ABR and advertised to other areas, excluding the stub areatotally stub areaNSSAtotally NSSA, and area to which the ASBR of the route generation ABR belongs.

AS-external-LSA (Type 5)

Describes AS external routes, which are advertised to all areas, excluding the stub areatotally stub areaNSSA, and totally NSSA. AS-external-LSAs are generated by an ASBR.

NSSA-LSA (Type 7)

Describes AS external routes. NSSA-LSAs are generated by an ASBR and advertised only within NSSAs.

Opaque-LSA (Type 9/Type 10/Type 11)

Provides a general mechanism for OSPF extension. Different types of LSAs are described as follows:

  • Type 9 LSAs are advertised only on the network segment where the interface advertising the LSAs resides. Grace LSAs used in graceful restart (GR) are Type 9 LSAs.

  • Type 10 LSAs are advertised within an OSPF area. LSAs that are used to support traffic engineering (TE) are Type 10 LSAs.

  • Type 11 LSAs are advertised within an AS but have not been used in practice.


View more
  • x
  • convention:

For more information on the LSA type of OSPF, you can refer to the following posts.


Introduction of the OSPF detailed LSAs

OSPF LSA types - explanation and differences

View more
  • x
  • convention:

Thanks for sharing, it is a good information to understand in an easy way this compex topic for OSPF. Regards.
View more
  • x
  • convention:

daniellima
daniellima Created Jul 3, 2020 16:29:59 (0) (0)
Thank you!  
Thank u for the information
View more
  • x
  • convention:

shakeela
shakeela Created Feb 23, 2021 17:13:24 (0) (0)
 
shakeela
shakeela Created Feb 23, 2021 17:13:29 (0) (0)
 
alexander.grosello
alexander.grosello Created Feb 23, 2021 21:04:56 (0) (0)
 
Great job!
View more
  • x
  • convention:

daniellima
daniellima Created Jul 3, 2020 16:31:07 (0) (0)
Thank you!  
SaraZahid
SaraZahid Created Mar 17, 2022 16:27:39 (0) (0)
 
awesome!!
View more
  • x
  • convention:

daniellima
daniellima Created Jul 6, 2020 18:38:26 (0) (0)
Thank you!  
Great job my friend!!!
View more
  • x
  • convention:

Great job!!!
View more
  • x
  • convention:

daniellima
daniellima Created Jul 6, 2020 20:14:15 (0) (0)
Thank you!!  
Thanks for sharing that information. I had not located anything about it previously.
View more
  • x
  • convention:

Very good explanation thanks. A suggestion I think you should have documented the lsa types before the areas
View more
  • x
  • convention:

EL.BODO
EL.BODO Created Feb 24, 2021 18:35:12 (0) (0)
 
good reading
View more
  • x
  • convention:

EL.BODO
EL.BODO Created Feb 24, 2021 18:35:25 (0) (0)
 
123
Back to list

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.