Link State (OSPF) & Dijkstra
Read this concept as one more decision made about a packet in flight. The widget below lets you change the inputs and watch the consequence instead of memorising the rule.
Why it matters
Link-state protocols give every router the same map of the area, so each computes its own shortest path instead of trusting a neighbor distance. That changes both convergence behavior and what an operator can inspect.
On the wire
OSPF sends Hello packets to discover neighbors and elect a designated router on multi-access links, then floods Link State Advertisements to all routers in the area. Each router runs Dijkstra over the resulting link-state database and installs the shortest-path tree in its forwarding table.
When it breaks
An MTU mismatch on a link keeps the database exchange stuck in ExStart or Exchange, so adjacencies never reach Full. A flapping interface floods new LSAs and forces repeated SPF calculations, which consumes CPU and delays convergence across the area.
Routing lab
Click links to fail or restore them, then send a packet to follow the computed path.
All routers share the same link-state database. Dijkstra installs the tree: A → B → C → D (cost 3).