# OSPF LSA Types Explained

**URL:** <https://forum.networklessons.com/t/ospf-lsa-types-explained/1127>\
**Category:** Lessons Discussion\
**Created:** [December 27, 2016, 4:09pm UTC](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127 "2016-12-27T16:09:56Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [August 4, 2016, 5:20pm UTC](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127/62 "2016-08-04T17:20:53Z")

</div>

Hello Ananth.

The information under the Net Link States (Area 0) show the DR(s) in the OSPF Area 0. The DR is the router with router ID 2.2.2.2 and IP address 192.168.12.2. For more information, take a look at this post: [https://supportforums.cisco.com/document/133976/reading-and-understanding-ospf-database](https://supportforums.cisco.com/document/133976/reading-and-understanding-ospf-database)

I hope this has been helpful!

Laz

---

<div class="post-metadata">

**Author:** ![raynieroporrasm](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/r/fbc32d/32.png) [@raynieroporrasm](https://forum.networklessons.com/u/raynieroporrasm)\
**Post date:** [August 7, 2016, 12:45am UTC](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127/63 "2016-08-07T00:45:36Z")

</div>

Rene , one question?

When you say in LSA type 5 , do you mean a route that is being redistribuited into RIP , and then into OSPF ? because Type 5 is External , and 4 mean when another domain as RIP sends traffic to our ASBR.

thanks in advance..!!!

---

<div class="post-metadata">

**Author:** ![andrew](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/andrew/32/645_2.png) [@andrew](https://forum.networklessons.com/u/andrew)\
**Post date:** [August 7, 2016, 2:24am UTC](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127/64 "2016-08-07T02:24:25Z")

</div>

Rayniero,  
You are right that a Type 5 LSA means an external route. This corresponds with any route learned by redistribution. It could be from another routing protocol (RIP, EIGRP, IS-IS, BGP, ODR, etc), or it could be from a redistributing static routes, connected routes, etc.

A Type 4 LSA does correspond with an ASBR, but not necessarily about traffic being sent to it. The Type 4 LSA tells OSPF routers who the ASBRs are and how to get to them. It doesn’t carry information external routes flowing from those ASBRs.

---

<div class="post-metadata">

**Author:** ![verabaiao28](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/v/73ab20/32.png) [@verabaiao28](https://forum.networklessons.com/u/verabaiao28)\
**Post date:** [August 15, 2016, 12:48pm UTC](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127/65 "2016-08-15T12:48:45Z")

</div>

Hi Rene,

Thank you so much for you lessons.  
I complete my CCNA in April and i want to start CCNP but first i want to gain experience.  
I work in Network but more LAN so even if i think its better gain experience, i think i need to focus in study with book or in this site or i never will get the knowledge to get the CCNP.  
What do you think is the better aproach to CCNP?  
I agre with you to do first the ROUTE, my question is there are a minimum time of experience (Labor) to aim to CCNP or i can start right way?  
I have 2 years of academic ,netacad and 10 months of working in area.  
Thanks for yourpassion in teaching, i definitely will stick you networklessons in my path.

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [August 17, 2016, 4:45pm UTC](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127/66 "2016-08-17T16:45:16Z")

</div>

Hello Bruno.

It’s great to hear that you too have a passion for networking.

I can tell you from my experience with CCNA and CCNP that waiting to gain experience in a working environment to be able to more successfully complete my CCNP was of limited value. This is because the CCNP topics are very broad. No matter what kind of job you have in networking, you will never cover the broad range of topics that exist in CCNP. My suggestion to you is to start studying immediately, do as many labs as possible, and when you’re ready, go for it.

I hope this has been helpful for you!

Laz

---

<div class="post-metadata">

**Author:** ![apurvap69](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/3ab097/32.png) [@apurvap69](https://forum.networklessons.com/u/apurvap69)\
**Post date:** [August 21, 2016, 5:36pm UTC](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127/67 "2016-08-21T17:36:34Z")

</div>

Hi Rene,

It would be really helpful if you post lessons about isis protocol.  
your way of explanation is really simple to understand.

---

<div class="post-metadata">

**Author:** ![ccnp.manami](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/c/c89c15/32.png) [@ccnp.manami](https://forum.networklessons.com/u/ccnp.manami)\
**Post date:** [August 24, 2016, 9:28am UTC](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127/68 "2016-08-24T09:28:29Z")

</div>

Dear Rene,

I am confused why we need OSPF Area 0 and why should all the other Areas be connected with Area 0? Can you please explain?

Thanks

---

<div class="post-metadata">

**Author:** ![andrew](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/andrew/32/645_2.png) [@andrew](https://forum.networklessons.com/u/andrew)\
**Post date:** [August 24, 2016, 7:30pm UTC](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127/69 "2016-08-24T19:30:34Z")

</div>

Manami,  
The short answer: To prevent loops when dealing with multi-area topologies.

The longer answer:  
The [OSPF RFC 3509](https://tools.ietf.org/search/rfc3509#section-1.2) has a section that talks about this. As I am sure you know, OSPF is a link-state protocol, but that is only true for OSPF behavior within an area. When OSPF starts to deal with multi-area typologies, OSPF actual behaves like a distance vector protocol. Distance vector protocols can have their own set of problems, one of which is the “count to infinity” problem. This is where two routers use each other to get to a particular destination, so the traffic will just bounce back and forth until the TTL expires.

Because OSPF behaves like a distance vector protocol between different areas, this means that OSPF also inherits this distance vector problem. To fix this problem, OSPF (and other link-state protocols like IS-IS), have a backbone rule. It requires all inter-area routes to flow through the backbone where a “split-horizon” like behavior will occur. This means that the backbone won’t advertise a route it learned from a particular area back into that same area. This stops the count to infinity loop.

Check out the RFC link I included for more details.

---

<div class="post-metadata">

**Author:** ![ccnp.manami](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/c/c89c15/32.png) [@ccnp.manami](https://forum.networklessons.com/u/ccnp.manami)\
**Post date:** [August 25, 2016, 9:47am UTC](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127/70 "2016-08-25T09:47:49Z")

</div>

Hello,

I want to write CCNP Security 300-209 on September. As you know Cisco Book is not available for this exam. If you help me to get a good document to clear this exam.

Thanks.

---

<div class="post-metadata">

**Author:** ![andrew](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/andrew/32/645_2.png) [@andrew](https://forum.networklessons.com/u/andrew)\
**Post date:** [August 26, 2016, 9:12pm UTC](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127/71 "2016-08-26T21:12:31Z")

</div>

If only there were such a document!

---

<div class="post-metadata">

**Author:** ![behailuasnake](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/b/50afbb/32.png) [@behailuasnake](https://forum.networklessons.com/u/behailuasnake)\
**Post date:** [September 24, 2016, 6:49am UTC](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127/72 "2016-09-24T06:49:42Z")

</div>

u rock!!

---

<div class="post-metadata">

**Author:** ![adave1103](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/3ab097/32.png) [@adave1103](https://forum.networklessons.com/u/adave1103)\
**Post date:** [October 6, 2016, 6:28am UTC](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127/73 "2016-10-06T06:28:33Z")

</div>

Per statement : “In this LSA we will find all the routers that are connected to the multi-access network, the DR and of course the prefix and subnet mask.”

Here Prefix means , IP address of DR which is connected in Switch - correct ?

Also in multi access network since we connect all routers via a switch: what kind of switches these are ? L2 or L3 ? Do we need to configure IP/VLANs anything on the Interface of switch that are connected to these routers ?

---

<div class="post-metadata">

**Author:** ![adave1103](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/3ab097/32.png) [@adave1103](https://forum.networklessons.com/u/adave1103)\
**Post date:** [October 6, 2016, 6:36am UTC](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127/74 "2016-10-06T06:36:21Z")

</div>

Hi Rene

when you say : We will find R1, R2 and the DR in the network LSA

So what exactly we find : is it Physical IP Address of R1/R2/DR OR loopback IP ?

Thankyou

---

<div class="post-metadata">

**Author:** ![maher1](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/m/9dc877/32.png) [@maher1](https://forum.networklessons.com/u/maher1)\
**Post date:** [October 7, 2016, 10:39am UTC](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127/75 "2016-10-07T10:39:40Z")

</div>

Hi Abhishek,

Based on your question, I have made a small lab to show you what you can see in the database table (LSDB) when you have a multi-access network.

My example is based on 3 routers connected to a switch as following:

```auto
R1
Interface G0/0 = 192.168.1.1/24
Loopback 0 = 1.1.1.1/32

```

```auto
R2
Interface G0/0 = 192.168.1.2/24
Loopback 0 = 2.2.2.2/32

```

```auto
R3
Interface G0/0 = 192.168.1.3/24
Loopback 0 = 3.3.3.3/32

```

After enabling OSPF on each of the routers and they form neighborship, R2 was elected as the DR and R3 as BDR as you can see below:

```auto
Neighbor ID Pri State Dead Time Address Interface
2.2.2.2 1 FULL/DR 00:00:35 192.168.1.2 GigabitEthernet0/0
3.3.3.3 1 FULL/BDR 00:00:34 192.168.1.3 GigabitEthernet0/0

```

on R1, I have issued this command to see the OSPF LSDB

```auto
R1#show ip ospf database 
            OSPF Router with ID (1.1.1.1) (Process ID 1)

                Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 799 0x80000003 0x006eef 2
2.2.2.2 2.2.2.2 799 0x80000003 0x0082ce 2
3.3.3.3 3.3.3.3 770 0x80000003 0x0096ad 2

                Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
192.168.1.2 2.2.2.2 770 0x80000002 0x007555
R1#

```

As you can see above, you have Router Link States listing all routers in the area, and the Net Link State listing the DR.

Hope this is more clear now for you.

---

<div class="post-metadata">

**Author:** ![adave1103](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/3ab097/32.png) [@adave1103](https://forum.networklessons.com/u/adave1103)\
**Post date:** [October 8, 2016, 7:22pm UTC](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127/76 "2016-10-08T19:22:23Z")

</div>

Many Thanks…so this o/p of show ip ospf database showing us both router LSA and network LSA for this topology 🙂

thx for clearing my doubt !

---

<div class="post-metadata">

**Author:** ![shantel](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/shantel/32/360_2.png) [@shantel](https://forum.networklessons.com/u/shantel)\
**Post date:** [December 27, 2016, 4:11pm UTC](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127/77 "2016-12-27T16:11:05Z")

</div>

19 posts were merged into an existing topic: [OSPF LSA Types Explained](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127)

---

<div class="post-metadata">

**Author:** ![annapurnac9](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/51bf81/32.png) [@annapurnac9](https://forum.networklessons.com/u/annapurnac9)\
**Post date:** [October 19, 2016, 8:28am UTC](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127/78 "2016-10-19T08:28:09Z")

</div>

Hi Rene ,

That was great explanation. Thanks a lot for this.

In the example of LSA1 , LSA2 , LSA3 types generation, I have setup the same lab in GNS3 but i cant see the DR abd BDR election.  
and Hence below type 2 LSA’s are not visible in the in my ospf LSDB which is appearing in your database.

“”  
Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum  
192.168.12.2 2.2.2.2 31 0x80000001 0x008F1F

"

COuld you please let me know if i am missing something here.

Regards,  
A

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [November 1, 2016, 6:43am UTC](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127/79 "2016-11-01T06:43:18Z")

</div>

Hello Annapurna.

I’m assuming that the output you have above is from R1. Based on that, the router with IP address 192.168.12.2 is the DR. Anything under the “Net Link States” section is the DR, so you do have a DR in your topology.

Can you be a little more detailed concerning the problem that you are facing?

Thanks!

Laz

---

<div class="post-metadata">

**Author:** ![sims](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/s/c6cbf5/32.png) [@sims](https://forum.networklessons.com/u/sims)\
**Post date:** [November 28, 2016, 1:34am UTC](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127/80 "2016-11-28T01:34:11Z")

</div>

Hi,

“R3 is in another area than R1 so it needs to know where to find the ASBR. In the LSDB you can see the type 5 external LSA but also the type 4 summary ASBR LSA which is the address of R1. Because of this LSA, R3 knows how to reach the ASBR. This type 4 LSA is being generated by R2 which is the ABR”

Where id TYPE 4 LSA ?

Thanks

---

<div class="post-metadata">

**Author:** ![sims](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/s/c6cbf5/32.png) [@sims](https://forum.networklessons.com/u/sims)\
**Post date:** [November 28, 2016, 5:23pm UTC](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127/81 "2016-11-28T17:23:49Z")

</div>

Hi,

The LSA-type 4 (Summary-LSA (ASBR)) is genearated by R2 in the topology explained .If yes why I Cannot see in R3’s ospf database

Thanks

[Previous page](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127.md?page=3)

[Next page](https://forum.networklessons.com/t/ospf-lsa-types-explained/1127.md?page=5)
