Home > OSPF LSA Types Tutorial

OSPF LSA Types Tutorial

OSPF uses Link State Advertisement (LSA) to build up Link State Database (LSDB) so understanding how LSA works is the key point to grasp how OSPF operates.

OSPF_LSAs_Types.jpg

Quick review
In the topology above:
+ R3 and R4 only belong to Area 1. R1 only belongs to Area 0. R6 and R7 only belong to Area 2. These are known as Internal Routers.
+ R2 belongs to both Area 0 and Area 1. R5 belongs to both Area 0 and Area 2. These routers are known as Area Border Routers (ABRs).
+ Area 0 is known as Backbone Area. Every router which has an interface in Area 0 can be considered a Backbone Router. All other areas must have a connection to Area 0 (except using virtual-link). Without Area 0, routers can only function within that area.
+ When a change occurs in the network topology, the router experiencing the change creates a link-state advertisement (LSA) concerning that link.

OSPF has 11 LSA Types from 1 to 11 but some of them are not used like Type 6 (Multicast LSA), 8 (used for BGP), 9, 10, 11 (Opaque LSAs). In this tutorial we will learn more about other LSA Types (types 1 to 5 and 7).

Router link LSA (Type 1) – Each router generates a Type 1 LSA that lists its active interfaces, IP addresses, neighbors and the cost to each. LSA Type 1 is only flooded inside the router’s area, it does not cross ABR.

Therefore in the topology above, all routers sends LSA Type 1 to the neighbors within its area. The ABRs (R2 & R5) send LSAs to both areas it connects to. For example, R1 sends LSA Type 1 to R2 & R5 that contains the status of its links. R3 sends LSA Type 1 to R2 only while R2 (ABR) sends to R1, R3 & R4.

Network link LSA (Type 2) – is sent out by the designated router (DR) and lists all the routers on the segment it is adjacent to. Types 2 are flooded within its area only; does not cross ABR. Type 1 & type 2 are the basis of SPF path selection. For example, if R2 was elected the DR for the segment (R2-R3) & (R2-R4), it would generate a Type 2 LSA containing a list of all routers attached to it and flood inside Area 1.

Note: The broadcast and non-broadcast network types elect a DR/BDR.

Summary link LSA (Type 3) – ABRs generate this LSA to send between areas (so type 3 is called inter-area link). It gathers information it has learned on one of its attached areas and summarizes them before sending out to another area. LSAs Type 3 are injected by the ABR from the backbone area into other areas and from other areas into the backbone area. The picture below shows how LSAs Type 3 generated by R2 are propagated.

OSPF_LSAs_Types_3.jpg

Please notice that R2 sends LSAs Type 3 to both Area 0 & Area 1. But Type 3 LSAs sent into Area 0 will contain a list of networks within Area 1, including the cost to reach these networks. Type 3 LSAs sent into Area 1 will contain a list of networks within Area 0.

Although the name of LSA Type 3 is “Summary” Link but this word is very misleading because it does not summarize our subnets to a bigger one. The word “Summary” here should be understood as “LSA Type 3 takes information from LSA Type 1 and 2 and summarizes them into Type 3 LSA”. This summarization helps reduce the detailed topology information for other areas. We should consider Type 3 “Inter-Area” LSA. Type 3 LSAs are represented by O IA keyword in the routing tables.

Summary ASBR LSA (Type 4) – Generated by the ABR to describe an ASBR to routers in other areas so that routers in other areas know how to get to external routes through that ASBR. For example, suppose R8 is redistributing external route (EIGRP, RIP…) to R3. This makes R3 an Autonomous System Boundary Router (ASBR). When R2 (which is an ABR) receives this LSA Type 1 update, R2 will create LSA Type 4 and flood into Area 0 to inform them how to reach R3. When R5 receives this LSA it also floods into Area 2.

In the above example, the only ASBR belongs to area 1 so the two ABRs (R2 & R5) send LSA Type 4 to area 0 & area 2 (not vice versa). This is an indication of the existence of the ASBR in area 1.

OSPF_LSAs_Types_4.jpg

Note:
+ Type 4 LSAs contain the router ID of the ASBR.
+ There are no LSA Type 4 injected into Area 1 because every router inside area 1 knows how to reach R3. R3 only uses LSA Type 1 to inform R2 about R8 and inform R2 that R3 is an ASBR.

External Link LSA (LSA 5) – Generated by ASBR to describe routes redistributed into the area and point the destination for these external routes to the ASBR. These routes appear as O E1 or O E2 in the routing table. In the topology below, R3 generates LSAs Type 5 to describe the external routes redistributed from R8 and floods them to all other routers and tell them “hey, if you want to reach these external routes, send your packets to me!”. But other routers will ask “how can I reach you? You didn’t tell me where you are in your LSA Type 5!”. And that is what LSA Type 4 do – tell other routers in other areas where the ASBR is!

OSPF_LSAs_Types_5.jpg

Multicast LSA (Type 6) are specialized LSAs that are used in multicast OSPF applications. Cisco does not support it so we will not discuss it here.

NSSA External LSA (Type 7) – Generated by an ASBR inside a Not So Stubby Area (NSSA) to describe routes redistributed into the NSSA. LSA 7 is translated into LSA 5 as it leaves the NSSA. These routes appear as N1 or N2 in the routing table inside the NSSA. Much like LSA 5, N2 is a static cost while N1 is a cumulative cost that includes the cost upto the ASBR.

OSPF_LSAs_Types_7.jpg

We also have a GNS3 lab about OSPF LSA Types, you can read it here: http://www.digitaltut.com/ospf-lsa-types-lab.

Comments
  1. quest
    June 16th, 2017

    well understood!!! bravo

  2. New-362-Qs
    June 19th, 2017

    We have the Best-Updated-Latest, and correct answers:
    My STUDENT HENERY passed-just today
    Get below link:
    .
    https://docs.google.com/document/d/1ChV1mINTglM4MZgKDeO1WveMN7vXfh1lI2omxeS9XtE/pub

  3. Anonymous
    June 22nd, 2017

    ANY one can please share the latest ccnp route dumps parthparmar 755 at gmail.com

  4. All20092009
    July 11th, 2017

    ANY one can please share the latest ccnp route dumps all20092009 at o2.pl

  5. Ambroz
    July 31st, 2017

    Very good and simplified explanation of the LSA Types

  6. emery
    August 7th, 2017

    looking for a valid route dump for 300 301 . Pleaes share dhan84 AT protonmail dot com
    thanks :)

  7. emery
    August 7th, 2017

    looking for a valid route dump for 300 101 . Please share dhan84 AT protonmail dot com
    thanks :)

  8. AUser
    October 17th, 2017

    why don’t you release your books would be very much easy well explained appreciated..

  9. Martin
    November 17th, 2017

    Excelent explanation!!

  10. KBL
    May 23rd, 2018

    Excellent explanation for all,

  11. Anonymous
    June 11th, 2018

    anyone please share the last route dumps…e-mail (ricardo_p45_at hotmail.com)
    im about to present 300-101 exam on July…thank you

  12. Jeechean
    September 5th, 2018

    Here are the exam materials that have just been updated. h t

    tp:/ /kks

    .me/aK2La If you need them, you can go and see them.

  13. blaze
    October 3rd, 2018

    how do i get the gns image files used for this lab
    egbohpaul@ gmail. com

  14. Anonymous
    November 29th, 2018

    lol

  15. IronJuice
    May 1st, 2019

    I was contemplating on purchasing membership. but the GNS topology file looks very old. Is it possible to have one for the latest GNS3 2.1.x release?

  16. Anonymous
    July 4th, 2019

    PLEASE I NEED ROUTE COURSE, SHARE WITH ME INFORMATION THANKS

  17. A humble soul
    June 20th, 2020

    Hello Friends, I am out down on my luck and have not had a job for 3 months, I am a Network engineer and want to try the new ENCOR exam. if a kind sould would share the latest dumps for ENCORE at my ee mail it is sirisranga at Gmail dot com. Thank you very much.

  18. Anonymous
    June 21st, 2020

    not taking any exam but I would liek to see the ENARSI if possible
    please share ?
    mikemassy @ mail dot com

    I will not distribute but I would like to see the content and know what I am up against if I decide to take it
    thank you!

  19. Carlos Fandango
    September 4th, 2021

    Great breakdown

  20. Maxwell
    October 24th, 2022

    Hello,
    This is to request to activate the membership that I have purchased.
    And I would like to let you know that the system has charged times three money I was about to pay 19 dollars *3.

    Kindly help me to get this solved as soon as possible

  21. digitaltut
    October 25th, 2022

    @Maxwell: We could not find any successful payment from your account. If you believe the payment was successful please send us your Invoice ID or the payment email you received so that we can have a closer check for you.

  1. No trackbacks yet.