OSPF Interview Questions and Answers
Freshers / Beginner level questions & answers
Ques 1. What does OSPF stand for?
Open Shortest Path First
Ques 2. What is the purpose of the OSPF hello packets?
Hello packets are used for neighbor discovery and to establish and maintain adjacencies between OSPF routers.
Ques 3. What is the OSPF SPF algorithm?
SPF (Shortest Path First) is the algorithm used by OSPF to calculate the shortest path tree and determine the best routes in the network.
Ques 4. What is OSPF adjacency?
OSPF adjacency is a relationship formed between OSPF routers to exchange routing information. It is established through the OSPF hello protocol.
Ques 5. How does OSPF handle Type 1 and Type 2 LSAs?
Type 1 LSAs represent routers within an area, and Type 2 LSAs represent networks. OSPF routers use these LSAs to build the LSDB.
Ques 6. How does OSPF support authentication?
OSPF supports authentication through plain text, MD5, or SHA algorithms. Authentication is configured at the interface level.
Ques 7. What is the OSPF SPF tree?
The SPF tree is a tree-like structure used by OSPF to determine the best routes. It is built based on the LSDB and is used in the SPF algorithm.
Ques 8. How does OSPF handle router priority in DR/BDR election?
Router priority is a value used in the DR/BDR election process. The router with the highest priority becomes the DR, and the second-highest becomes the BDR.
Intermediate / 1 to 5 years experienced level questions & answers
Ques 9. Explain the OSPF area types.
OSPF supports different area types, including backbone area (Area 0), regular areas, stub areas, totally stubby areas, and not-so-stubby areas (NSSA).
Ques 10. How does OSPF prevent routing loops?
OSPF uses the Dijkstra algorithm to calculate the shortest path tree, and it avoids routing loops by using the concept of a designated router (DR) on multi-access networks.
Ques 11. Explain the OSPF LSDB (Link State Database).
The LSDB contains information about the network's topology, represented as link-state advertisements (LSAs). Routers use this database to calculate the SPF tree.
Ques 12. Differentiate between OSPF areas and autonomous systems.
OSPF areas are subdivisions of an OSPF autonomous system. An OSPF autonomous system is a collection of OSPF areas connected by a backbone area (Area 0).
Ques 13. How does OSPF handle equal-cost paths?
OSPF allows for load balancing across equal-cost paths by installing multiple routes in the routing table.
Ques 14. What is OSPF metric, and how is it calculated?
OSPF metric is cost, which is inversely proportional to bandwidth. The formula is cost = 10^8 / bandwidth (in bps).
Ques 15. Explain OSPF DR/BDR election process.
On multi-access networks, OSPF routers elect a Designated Router (DR) and a Backup Designated Router (BDR) to reduce OSPF routing traffic.
Ques 16. What is the OSPF LSAge timer?
The LSAge timer in OSPF is used to age out LSAs from the LSDB. If an LSA's age exceeds its maximum age, it is considered expired and removed from the LSDB.
Ques 17. What is OSPF NSSA (Not-So-Stubby Area)?
NSSA is an OSPF area type that allows injection of external routes while still maintaining some stub area characteristics.
Ques 18. Explain OSPF path selection criteria.
OSPF selects paths based on the OSPF metric (cost). Lower cost paths are preferred. If costs are equal, the router considers other tie-breaker criteria.
Ques 19. What is OSPF Type 3 LSA (Summary LSA)?
Type 3 LSAs are used to advertise summarized routes from one area to another. They are generated by the Area Border Router (ABR).
Ques 20. What is OSPF External LSA (Type 5 LSA)?
Type 5 LSAs represent external routes injected into OSPF. They are generated by Autonomous System Boundary Routers (ASBRs).
Ques 21. Explain OSPF route summarization.
Route summarization in OSPF involves aggregating multiple routes into a single summarized route, reducing the size of the routing table.
Ques 22. Explain OSPF router types.
OSPF routers can be designated as internal routers, area border routers (ABRs), autonomous system boundary routers (ASBRs), or backbone routers.
Ques 23. Explain OSPF stub area characteristics.
In OSPF stub areas, routers do not receive external routes, reducing the LSDB size. The area relies on a default route for external destinations.
Experienced / Expert level questions & answers
Ques 24. Explain OSPF LSA types and their functions.
OSPF LSAs (Link State Advertisements) include Router LSAs, Network LSAs, Summary LSAs, ASBR Summary LSAs, and External LSAs, each serving a specific purpose in the OSPF network.
Ques 25. What is OSPF convergence time?
Convergence time is the duration it takes for OSPF routers to update their routing tables after a topology change. OSPF typically has fast convergence due to its incremental SPF algorithm.
Ques 26. How does OSPF handle network convergence in the presence of a link failure?
OSPF quickly reacts to link failures by recalculating the SPF tree and updating routing tables. This fast convergence is facilitated by OSPF hello and dead interval timers.
Ques 27. Explain OSPF virtual links.
Virtual links are used to connect non-backbone areas to the OSPF backbone area (Area 0) when a physical connection is not feasible.
Ques 28. What is OSPF graceful restart?
OSPF graceful restart allows a router to temporarily suspend OSPF routing while still forwarding traffic. It is useful during software upgrades or restarts.
Ques 29. Explain OSPF LSA flooding mechanism.
LSAs are flooded within an OSPF area to ensure all routers have the same LSDB. OSPF routers use reliable flooding to achieve this.
Ques 30. What is the OSPF LSRefresh timer?
The LSRefresh timer ensures that OSPF routers refresh LSAs with their current age before flooding them. It helps prevent premature aging of LSAs.
Most helpful rated by users: