Interview Questions and Answers
Freshers / Beginner level questions & answers
Ques 1. What does OSPF stand for?
Open Shortest Path First
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Ques 6. How does OSPF support authentication?
OSPF supports authentication through plain text, MD5, or SHA algorithms. Authentication is configured at the interface level.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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).
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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).
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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).
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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).
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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).
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
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.
Save For Revision
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Most helpful rated by users: