Network Kings, India’s Leading IT Career Training Academy
There are many routing protocols in the networking domain that define a set of rules on how data should be transmitted. Open Shortest Path First (OSPF) is one such dynamic routing protocol. It is called a dynamic protocol as it is able to dynamically exchange routing information between the routers that are the nearest neighbors.
In this blog, we will learn what the OSPF protocol is and how it works. We will also learn about the different states of the OSPF protocol. In the end, we will also discuss the advantages and disadvantages of the protocol.
In the previous blog , we learned about the types of FHRPs in detail. I definitely recommend you go through that blog before jumping to this blog.
Let us now start learning about the OSPF protocol!
Open Shortest Path First (OSPF) is an Interior Gateway Protocol (IGP) that has an algorithm type of Link-State.
This is how a link-state protocol functions:
Now, let us understand the OSPF in detail:
The basic functioning of OSPF is carried out through LSA Flooding. As we know by now, the OSPF chooses the shortest path for the routers. The main process involves the sharing of LSAs and determining the best route to each destination.
This is how OSPF works in three main steps:
The network devices that use the OSPF protocol undergo certain states. The various states of OSPF are as follows:
No “Hello” packets are received on the interface in the down state. The downstate means that the OSPF adjacency process has not begun yet.
The “Hello” packets are received from other routers in the INIT state.
In this state, a bidirectional connection is formed. Both routers receive “Hello” packets from other routers.
In this state, the exchange of NULL DBD takes place. Similar to the First Hop Redundant Protocol (FHRP), the election of the master and slave router occurs. The router with the higher router ID becomes the master while the router with the lower router ID becomes the slave. This decides which router sends the DBD first.
The actual DBDs are exchanged in this state.
The Link State Advertisements (LSAs) along with LSUs and LSRs are exchanged in this state.
All the information is synced in this state. It is only after the Full state that the OSPF routing begins!
Therefore, there are a total of seven states of OSPF that the routers undergo before the actual OSPF routing begins.
The following are the major advantages of the OSPF protocol:
The following are the disadvantages of the OSPF protocol:
This marks the end of the OSPF blog. So far, we have learned what the OSPF protocol is and why it is called a Link-State Protocol. We have also understood the working of the protocol.
Then, we learned the different states the routers undergo before the actual OSPF process begins. At last, we looked over the advantages and disadvantages of the OSPF protocol.
Stay tuned for learning more protocols such as BGP, EIGRP, and RIP in the CCNA series
Happy studying.
https://youtu.be/-Dx5Y80Onl4