OSPF LSAs and LSDB flooding Tutorial

How exactly does OSPF fill the LSDB? Let’s zoom in on the operation of how OSPF keeps its link-state database up-to-date:

OSPF LSA LSDB flooding

Each LSA has an aging timer that carries the link-state age field. By default, each OSPF LSA is only valid for 30 minutes. If the LSA expires then the router that created the LSA will resend the LSA and increase the sequence number.  

Let’s walk through this flowchart together. In this example, a new LSA is arriving at the router, and OSPF has to decide what to do with it:

  1. If the LSA isn’t already in the LSDB it will be added, and an LSAck (acknowledgment) will be sent to the OSPF neighbor. The LSA will be flooded to all other OSPF neighbors, and we have to run SPF to update our routing table.
  2. If the LSA is already in the LSDB and the sequence number is the same, then we will ignore the LSA.
  3. If the LSA is already in the LSDB and the sequence number is different, then we have to take action:
    1. If the sequence number is higher it means this information is newer and we have to add it to our LSDB.
    2. If the sequence number is lower it means our OSPF neighbor has an old LSA and we should help them. We will send a LSU (Link state update) including the newer LSA to our OSPF neighbor. The LSU is an envelope that can carry multiple LSAs in it.

It’s not just the sequence number that OSPF will look at to determine if an LSA is more recent. It will consider the LSA to be more recent if it has the following:

We're Sorry, Full Content Access is for Members Only...

If you like to keep on reading, Become a Member Now! Here is why:

  • Learn any CCNA, CCNP and CCIE R&S Topic. Explained As Simple As Possible.
  • Try for Just $1. The Best Dollar You’ve Ever Spent on Your Cisco Career!
  • Full Access to our 799 Lessons. More Lessons Added Every Week!
  • Content created by Rene Molenaar (CCIE #41726)

571 Sign Ups in the last 30 days

satisfaction-guaranteed
100% Satisfaction Guaranteed!
You may cancel your monthly membership at any time.
No Questions Asked!

Tags: ,


Forum Replies

  1. May I modify the “Sequence no different” to “Is sequence different” ?
    Again, may I modify the “Sequence no higher” to “Is sequence higher” ?

    Dennis

  2. Hi Dennis,

    Sure, but which exact sentences do you mean? :slight_smile:

    Rene

  3. Good tutorial, sir. Cleared my concept. All the best to u!.

  4. Hi, Actually Link ID is not RID. It is a bug in Cisco IOS and Link ID actually shows the Link State ID which is dependent on the type of LSA. Like for example in your output the Network LSA shows Link ID as 192.168.12.2 which is the DR interface IP and the RID is 2.2.2.2

  5. Hi Rizwan,

    Thanks for sharing this!

    Rene

82 more replies! Ask a question or join the discussion by visiting our Community Forum