What prevents routing loops in a single-area OSPF network?
Show answerHide answer
Correct answer: A The Dijkstra algorithm
Explanation
Explanation:OSPF (Open Shortest Path First) is a link-state routing protocol. Within a single area, the primary mechanism for preventing loops is the fundamental way link-state protocols process map data.
Complete Topology Map: Every router in a single OSPF area maintains an identical Link-State Database (LSDB). This database is essentially a map of every router and every link in the area.
The Dijkstra Algorithm (Shortest Path First): Each router independently runs the Dijkstra algorithm using itself as the root (the starting point). Because every router is calculating the shortest path based on a complete, identical map of the network, the resulting paths are mathematically guaranteed to be loop-free.
Loop Prevention vs. Distance Vector:
Unlike Distance Vector protocols, which only know the "distance" and "direction" to a destination (and thus can fall victim to "rumors" or count-to-infinity loops), OSPF routers know exactly how every piece of the puzzle fits together.
Why the Other Options are Incorrect
B. Routing policies:
Routing policies in Junos are used to manipulate which routes are accepted or advertised, but they are not the underlying mechanism that prevents loops in a link-state protocol.
C. The Bellman-Ford algorithm:
This algorithm is used by Distance Vector protocols (like RIP). Bellman-Ford is susceptible to routing loops, which is why protocols using it require additional mechanisms like Split Horizon, Poison Reverse, and Hold-down timers.
D. Forwarding policies:
Forwarding policies (such as Filter-Based Forwarding) dictate how packets are handled at the hardware level but do not participate in the calculation of a loop-free control plane topology.
References:
RFC 2328:OSPF Version 2, which specifies the use of the Dijkstra algorithm for path calculation.
Juniper Networks Technical Publication: Junos OS Routing Protocols Configuration Guide, Chapter: "OSPF Overview."