PingDo Logo
PingDo.net
by Pingdo
Layer 3 Architecture

Routing Logic: Static vs Dynamic

Deterministic vs Adaptive Behavior

Static routing is highly deterministic. The CPU overhead is negligible as there are no recursive protocol calculations. However, it fails completely in high-availability scenarios where redundant paths must self-heal during a link failure.

Administrative Distance (The Trust Logic)

What if OSPF says path A is best, but RIP says path B is best? The router uses Administrative Distance (AD) to settle the argument.

Route SourceAD (Default)Trust Level
Connected Interface0Absolute Truth
Static Route1Highly Trusted
EIGRP90Medium
OSPF110Medium
RIP120Low

Cost and Metrics: Choosing the Path

If AD is tied (meaning both paths are from OSPF), the router looks at the Metric. For OSPF, this is "Cost" (based on bandwidth). For RIP, it is "Hops" (number of routers). A smart router will always take a 10Gbps path with 5 hops over a 1Mbps path with 1 hop.

Conclusion: The Logic of Strategy

There is no "best" routing. Static routing offers total control and zero overhead. Dynamic routing offers automation and resilience. High-performance networks use both: OSPF to handle the internal complexity, and Static Routes to manage the exit to the outside world. Mastering the interplay between these two is the foundational skill of a network architect.


Frequently Asked Questions

Can I have two static routes to the same network?

Yes. This is called ECMP (Equal-Cost Multi-Path) if they have the same AD and metric. The router will split traffic between them (load balancing).

What is a 'Black Hole' route?

It's a static route that points to Null0. Any traffic sent here is instantly deleted. This is used to block malicious traffic at high speed without using firewall CPU.

What is the 'Gateway of Last Resort'?

It's the router's "I don't know" button. If no other rule matches, the packet is sent to this IP. Usually, this points straight to your provider (ISP).