4.3.14 · D5Computer Networks

Question bank — Static routing vs dynamic routing

1,293 words6 min readBack to topic

True or false — justify

Static routing means the router keeps no routing table.
False. Every router forwards packets by consulting a Routing table; "static" only describes how the table got filled (by hand). The table is still fully present, just hand-written and unchanging.
Dynamic routing is always the better choice because it is automatic.
False. Automation costs bandwidth, CPU, convergence delay, and opens an attack surface. For a tiny stub network with one exit, static is both faster and safer.
If you configure the route to a destination on R1, a ping to that destination will succeed.
False. The reply packet travels the opposite direction and needs its own return route on the other router. Routing is per-direction; one-way config gives the classic "ping times out" bug.
A default route and a host-specific route can coexist in the same table without conflict.
True. Longest prefix match always prefers the more specific (longer) prefix, so 0.0.0.0/0 is only used when nothing more specific matches — no conflict, just a fallback.
Static routing has zero convergence time.
True (by definition). There is nothing to recompute; the table is already set. But this "instant convergence" is only correct as long as the topology it assumes hasn't changed.
Dynamic routing guarantees packets are never dropped during a link failure.
False. During the convergence window, routers temporarily disagree and can drop or loop packets. Dynamic routing recovers automatically, but recovery is not instantaneous.
RIP and OSPF fill the routing table using the same algorithm.
False. RIP is distance-vector (Bellman-Ford algorithm) — it trusts a neighbour's hop count. OSPF is link-state (Dijkstra's algorithm) — every router builds the full map and computes shortest paths itself.
A network administrator can never make a mistake with static routes because they are simple.
False. Simplicity moves the error to the human: a typo'd next-hop, a forgotten return route, or a stale route after a topology change all silently misroute traffic with no auto-correction.

Spot the error

"I'll just add a static route on the ISP-facing router pointing everywhere to 0.0.0.0/24."
The mask is wrong. A default route is 0.0.0.0/0 (prefix length 0, the shortest possible). /24 would only match a narrow block, defeating the catch-all purpose. See Default gateway.
"Dynamic routing has no security concerns since routers only talk to trusted neighbours."
The word trusted is the error. A malicious or compromised neighbour can inject false routes; distance-vector protocols especially will believe an advertised low cost. Trust is exactly the vulnerability, not a guarantee.
"Since via B the link cost (4) is higher, X should always pick neighbour A for destination Z."
The error is comparing link cost alone. Bellman-Ford compares link + neighbour's advertised cost, i.e. . A pricier first link can still yield a cheaper total path.
"To scale a 500-router network I'll just keep adding static routes — it's more secure."
The error is ignoring manual labour and scale. Static routes grow with every destination × every router and can't self-heal; at that size the human cost and failure risk make dynamic the only practical choice.
"Longest-prefix match picks the entry with the largest metric."
Confuses prefix length with metric. The router first selects the row whose destination prefix matches the most bits of the packet's IP; metric only breaks ties among equally-specific routes. See Longest prefix match.
"OSPF routers each ask a central server for the shortest path."
There is no central server. In link-state, every router floods its local links so all routers hold the same map, then each independently runs Dijkstra's algorithm locally.

Why questions

Why must static routes be configured on both routers along a path?
Because a conversation is two-way: the request goes forward and the reply returns. Each direction needs a matching route, so a return route is required on the router the reply passes through.
Why does 0.0.0.0/0 behave as a catch-all rather than accidentally hijacking specific traffic?
Its prefix length is 0, so it matches last under longest-prefix match. Any more-specific route wins, meaning the default is used only when nothing else matches.
Why does dynamic routing consume bandwidth even when nothing changes?
Many protocols (e.g. RIP) send periodic update messages to keep neighbours informed and to detect silent failures. These keep-alives run regardless of whether the topology moved.
Why can static routing be considered more secure than dynamic?
No routes are learned from neighbours, so there is no channel through which a malicious party can inject fake routes — the attack surface of route exchange simply does not exist.
Why does Bellman-Ford take a min over all neighbours instead of just trusting one?
Because the destination might be reachable through several neighbours at different total costs; taking the minimum guarantees the router picks the genuinely cheapest first hop, per Bellman-Ford algorithm.
Why is convergence time irrelevant to a purely static network?
Convergence is the time routers need to agree after a change. Static tables never recompute, so there is nothing to converge — the trade-off is that they also never notice a change.

Edge cases

A static route points to a next hop whose link is now down. What happens to matching packets?
They are still forwarded toward the dead next hop and dropped (or blackholed). Static routing cannot detect the failure, so the wrong route stays "correct" until a human fixes it.
A router has both a /24 static route and a /32 static route to overlapping addresses. Which wins for a host inside the /32?
The /32 wins because it is the longer (more specific) prefix; longest-prefix match always favours the tighter match regardless of configuration order.
Two dynamic routes to the same destination have equal total cost. What can the router do?
It may install both and load-balance across them (equal-cost multipath), or apply a tie-breaker. Equal cost is a valid, non-degenerate outcome, not an error.
A network has exactly one exit to the internet and never changes. Static or dynamic?
Static (a single default route). There is nothing for a protocol to adapt to, so paying protocol overhead buys nothing — a textbook stub-network case.
What if an admin forgets a route entirely on one router — does the packet loop forever?
No. With no matching route (and no default), the router simply drops the packet, typically returning a "destination unreachable" signal rather than looping.

Recall One-line summary of the trap pattern

Most traps here reduce to one idea ::: confusing how the table is filled (hand vs protocol) with whether a table exists, or confusing one direction of routing with both.