Scenario-Based OSPF Questions and Answers
Scenario-Based OSPF Questions and Answers
#router ospf 1
▪ Considerations:
o Answer: If R1 and R2 are not forming an OSPF neighbor adjacency, follow these
steps to troubleshoot:
▪ Step 2: Check that both routers have compatible OSPF hello and dead
intervals.
▪ Step 4: Confirm that there are no access control lists (ACLs) blocking
OSPF traffic (Protocol number 89).
▪ Step 5: Verify that the routers can ping each other on the directly
connected interfaces.
▪ Possible Reasons:
o Answer: To integrate the new network into your existing OSPF network:
▪ Step 1: Connect the new network's OSPF area to your backbone area
(Area 0). If the new network also uses OSPF, configure it as a new area.
▪ Step 2: Set up an Area Border Router (ABR) to connect the new area to
the existing backbone area.
▪ Step 3: Ensure that all routers in the new area can communicate with the
backbone area via the ABR.
▪ Challenges:
▪ Step 1: Configure route redistribution on the router that runs both OSPF
and EIGRP.
router ospf 1
router eigrp 1
redistribute ospf 1
▪ Step 2: Specify the metrics for the redistributed routes to ensure they are
correctly advertised in both OSPF and EIGRP.
▪ Step 3: Use route maps or distribute lists to filter which routes are
redistributed if necessary.
▪ Potential Issues:
▪ Use Multiple Areas: Divide the network into multiple OSPF areas, with
Area 0 as the backbone area.
▪ Stub Areas: Use stub or totally stubby areas to minimize the number of
external routes propagated into the area.
▪ Adjust OSPF Timers: Tune OSPF hello and dead intervals according to
network needs.
1. What is OSPF, and how does it differ from other routing protocols like RIP and
EIGRP?
o Answer: OSPF (Open Shortest Path First) is a link-state routing protocol that
uses Dijkstra's algorithm to calculate the shortest path to each destination in the
network. It differs from RIP (Routing Information Protocol), which is a distance-
vector protocol that uses hop count as its metric, and from EIGRP (Enhanced
Interior Gateway Routing Protocol), which is a hybrid protocol combining
aspects of both distance-vector and link-state protocols. OSPF supports
variable-length subnet masks (VLSM) and is more scalable than RIP, while EIGRP
is proprietary to Cisco.
2. Explain the OSPF neighbor relationship and the various states that routers go
through to establish a neighbor adjacency.
▪ Init: Hello packet has been received, but the router's ID is not in the
neighbor's hello packet.
▪ 2-Way: Bidirectional communication is established (hello packets
exchanged and IDs recognized).
▪ ExStart: Routers establish which one will initiate the exchange of DBD
packets.
▪ Loading: Routers request the most recent LSAs from their neighbors.
▪ Full: Routers have fully synchronized their LSDBs and are in a complete
adjacency state.
4. What is the purpose of the OSPF Backbone Area (Area 0), and what role does it play
in the OSPF hierarchy?
o Answer: The OSPF Backbone Area (Area 0) is the central area to which all other
areas must connect. It serves as the hub for routing information between
different areas in an OSPF network. Area 0 ensures that all areas are
interconnected, allowing for the propagation of routing information throughout
the entire OSPF network.
5. Can you explain the OSPF Link-State Advertisement (LSA) types and their functions
within an OSPF network?
▪ Type 1: Router LSA – Describes the local router’s interfaces and their
states within an area.
7. How does OSPF handle routing loops, and what mechanisms does it use to prevent
them?
o Answer: OSPF prevents routing loops through its link-state nature and the use of
Dijkstra's shortest path first algorithm. By maintaining a complete topology map
of the network in each router's link-state database, OSPF ensures that routers
always have an up-to-date view of the network, thus avoiding routing loops.
OSPF’s hierarchical structure, with clearly defined areas, further aids in
preventing loops.
8. What is the difference between OSPF's metric (cost) calculation and that of other
protocols like RIP or EIGRP?
o Answer: OSPF uses a cost metric based on the bandwidth of the links,
calculated as Cost = 10000 Mbps / Bandwidth in Mbps. RIP uses hop count as its
metric, and EIGRP uses a composite metric that considers bandwidth, delay,
load, and reliability. OSPF’s cost metric allows for more granular and accurate
path selection, especially in networks with varied link speeds.
9. Describe how OSPF route summarization works and why it is beneficial in a large
OSPF network.
10. What is OSPF Stub Area, and what are the different types of stub areas? How do
they help in optimizing the OSPF routing table?
o Answer: An OSPF Stub Area is an area that does not receive external routes
(Type 5 LSAs) and instead relies on a default route for destinations outside the
area. Types of stub areas:
▪ Stub Area: Receives Type 3 LSAs from other areas but not Type 5
external LSAs.
▪ Totally Stubby Area: Only receives a default route (no Type 3 or Type 5
LSAs).
▪ Not-So-Stubby Area (NSSA): Allows external routes from within the area
but blocks Type 5 LSAs from outside the area. Stub areas reduce the size
of the OSPF database and simplify routing within the area, optimizing the
routing table.