Network Kings, India’s Leading IT Career Training Academy
Whether you are preparing for Cisco Certified Network Professional (CCNP) or Cisco Certified Internetwork Expert (CCIE) exam, OSPF is one of the most important topics to cover. Open Shortest Pathway First (OSPF) OSPF is the most important routing protocol in the networking domain followed by BGP and MPLS.
In this blog, we have covered the most important OSPF interview questions and answers. This is a helpful guide for you if you’re preparing to crack a Network Engineer job position.
OSPF is a significant topic in both CCNP ENCOR (the core exam) and CCNP ENARSI (the concentration exam). If you’re preparing for any of them, OSPF is an important topic to consider.
Let’s begin with the basic to advanced OSPF questions to cover for you to crack OSPF interviews like a pro.
https://www.youtube.com/watch?v=LKCscgoK8MY

Get Certified and Double your Salary!Prepare with Network Kings to hike your salary by 2x. Enroll now to learn live, directly from Industry Engineers.
Enroll Now
Open Shortest Pathway First (OSPF) is an Open Standard Link State routing protocol. It works with the help of Dijkstra algorithm to find the straight and the shortest paths. It finds the best path between the source and the destination router. It follows that by populating the routing table with resulting best paths.
https://www.youtube.com/watch?v=P2Tk76zK4b8
The OSPF was developed by Internet Engineering Task Force (IETF). It was earlier developed as an Interior Gateway Protocol (IGP). The primary aim of a protocol is to move the packets within a large anonymous system or routing domain. OSPF is a network layer protocol.
Some of the most important characteristics of OSPF are as follows:
The different types of LSAs in OSPF are as follows:
Each router generates a Type 1 LSA that lists its active interfaces, IP addresses, neighbors and the cost. LSA Type 1 is flooded only within an area.
Type 2 LSA is sent out by the designated router (DR). It lists all the routers on the adjacent segment. Type 2 LSA are flooded only within an area. It contains all the DR information.
Type 3 LSAs are generated by Area Border Routers (ABRs) to advertise networks from one area to the other areas in Autonomous System. It contains the inter-area routes information.
The ABR generates the type 4 LSA. It contains routes to ASBRs.
External LSAs are generated by ASBRs. It contains routes to networks that are external to current AS.
Type 5 LSAs are not allowed by the stub areas. A Not So Stubby Area (NSSA) allows advertisement of Type 5 LSA as Type 7 LSAs. Type LSA is generated by an ASBR inside a Not So Stubby Area (NSSA) in order to describe routes redistributed into the NSSA.
We use the following syntax to configure the OSPF routing protocol: router(config)# router ospf 10
router(config-router)# network 12.1.1.0 0.0.0.225 area 0
router(config-router)# network23.1.0.0 0.0.255.255 area 1
router(config-router)# exit
The various types of networks in OSPF are:
The data packets are sent between exactly two routers.
The data packets are sent from one router to multiple routers.
The network in this type of network supports access to many devices. But it does not allow the broadcast capability.
The differences between EIGRP and OSPF are as follows:
|
EIGRP |
OSPF |
|
The full form of EIGRP is Enhances Interior Gateway Protocol. It is a hybrid type protocol. |
The full form of OSPF is Open Shortest Path First. It is a link-state protocol. |
|
EIGRP needs very low CPU power and memory. |
OSPF needs high processing power and memory. |
|
It is based on Cisco Proprietary standards. |
It is based on the IETF Open Standard. |
|
The routing metrics consist of load, reliability, bandwidth and delay. |
The routing metrics consist of interface bandwidth. |
|
EIGRP allows summarization and filtering. These are possible anywhere in the network. |
OSPF is possible only on ABR or ASBR. |
There are four different types of OSPF routers:
The Internal Routers are OSPF Routers whose interfaces belong to the same area.
Backbone Routers are the OSPF Routers which act as Internal Router in Area 0.
Area Border Routers are the OSPF Routers that have interfaces in more than one area.
Autonomous System Boundary Routers are the OSPF Routers that advertise external routes into the OSPF domain.
The OSPF process is used to build and maintain three separate tables. These are as follows:
The neighbor table consists of a list of all neighboring routers.
The topology table consists of a list of all possible routers to all known networks within an area.
The routing table consists of the best route for each known network.
DR and BDR act as the central point for exchanging OSPF routing information. Every non-DR and non-BDR router exchanges routing information with only the DR and BDR. DR and BDR solve the following problems in OSPF:
For link above T1, i.e., 1.544 Mbps, Hello=10 seconds, Dead= 40 seconds.
For link = or below, Hello=30 seconds, Dead=120 seconds.
Dead interval is exactly four times than Hello. Its value cannot be set manually.
Area 1 and area2 can only exchange or advertise networks if they are connected to area 0, or else the exchange of inter area routes won’t happen. Use the concept of virtual link if it is not possible.
Open Shortest Pathway First (OSPF) is an Open Standard Link State routing protocol. It works with the help of Dijkstra algorithm to find the straight and the shortest paths.
What are the 4 types of OSPF routers?
The four types of OSPF routers are:
What is the main function of OSPF?
The main function of OSPF is to determine the shortest path between the source and the destination router. It is a link-state routing protocol which aims at moving the packet within a large autonomous system.
OSPF routers need to go through several states before establishing a neighboring connection. Full state is one of them.
In the full state, all the neighbor routers have a synchronized database and adjacencies have been established.
OSPF is present in the Application Layer of the TCP/IP model.
Which algorithm does OSPF use?
The OSPF uses the Dijkstra SPF (Shortest Path First) algorithm to look for the shortest path.
OSPF uses multicast and unicast instead of broadcast for sending messages.
How to calculate cost in OSPF?
The formula used is:
Cost = Reference Bandwidth/Interface Bandwidth