Dynamic vs static routing
Also known as: OSPF, RIP, EIGRP, dynamic routing protocol, static route, IS-IS
Static routing means a network administrator manually enters every route into each router: simple but doesn't adapt to failures.
Dynamic routing uses protocols (OSPF, BGP, EIGRP) where routers automatically discover each other, share topology information, and recalculate paths when links fail or new devices are added.
Dynamic vs static routing, explained at three levels
At home
Think of static routing like a GPS with pre-programmed directions that can't change: if the road is closed, the GPS still sends you there. Dynamic routing is like a GPS with live traffic updates: it automatically reroutes you around the problem. Routers use dynamic protocols to automatically adapt when links fail.
At work
Small, simple networks often use static routing: a handful of routes that rarely change. Large enterprise networks and the internet use dynamic routing so that when a link or device fails, traffic automatically finds an alternative path without manual intervention.
At home
Static routing: administrator manually enters 'to reach 192.168.2.0/24, send to 192.168.1.1'. Fast to process, no overhead, predictable, but requires manual updates for any topology change. Dynamic routing protocols: OSPF (link-state, builds a map of the entire network, fast convergence), RIP (distance-vector, simpler but slow to converge), EIGRP (Cisco proprietary, balanced approach), BGP (path-vector, used between autonomous systems).
At work
OSPF is the standard interior gateway protocol for enterprise and carrier networks. Routers exchange LSAs (Link State Advertisements) to build a synchronized topology database; each router runs Dijkstra's algorithm to calculate shortest paths. Areas partition large OSPF networks to limit flooding scope. Convergence (time to reroute after a failure) is seconds to tens of seconds with OSPF, milliseconds with BFD (Bidirectional Forwarding Detection) assist.
At home
OSPF's SPF (Shortest Path First) algorithm calculates a loop-free tree of paths from each router to every destination. Route cost is based on interface bandwidth (100 Mbps = cost 1, 10 Mbps = cost 10 in original Cisco OSPF costing). Stub areas and NSSA reduce LSA flooding in large networks. OSPF authentication prevents route injection from unauthorized devices.
At work
In modern networks, segment routing (SR-MPLS or SRv6) is increasingly replacing traditional OSPF TE extensions for traffic engineering, encoding explicit paths in the packet header rather than maintaining per-flow state in the network. IS-IS (Intermediate System to Intermediate System) competes with OSPF as the interior gateway protocol of choice for large carrier networks: structurally similar but historically preferred by ISPs for its scalability and multi-protocol support.
Real-world examples
At home
Thomas configured static routes on his home router to direct traffic for his home lab's 192.168.10.0/24 subnet to a specific switch. Three routes: set once, never change. For his simple home network, static is perfect.
At work
Aisha's company network uses OSPF across 12 routers at 8 locations. When a WAN link failed last month, OSPF automatically recalculated routes and rerouted traffic through an alternate path in about 30 seconds: the helpdesk received no calls.
How it compares
| feature | Static | Dynamic (OSPF) |
|---|---|---|
| Configuration | Manual per route | Automatic protocol |
| Failure recovery | Manual (no auto-reroute) | Automatic convergence |
| Overhead | None | Protocol traffic + CPU |
| Scalability | Small networks only | Scales to thousands of routers |
| Best for | Simple, unchanging paths | Enterprise and carrier networks |
For analysts
Dynamic routing redundancy directly affects SLA uptime commitments: networks with dynamic routing recover from link failures in seconds without manual intervention, a key factor in business continuity planning and vendor evaluation.
History & origin
Early computer networks used static routing, since they were small enough that manual configuration was practical. As networks grew in the 1980s, dynamic routing protocols became essential. RIP (Routing Information Protocol, 1988) was the first widely used dynamic routing protocol. OSPF (Open Shortest Path First, 1989) improved on RIP with faster convergence and support for larger networks. BGP (1989) handled inter-domain routing. Dynamic routing protocols evolved alongside the internet's growth, becoming foundational infrastructure.