Static vs Dynamic Routing Protocols
What you'll learn: How routers can be configured manually with static routes or automatically discover routes using dynamic protocols like RIP, OSPF, and BGP.
The Two Approaches to Building Routing Tables
You've learned about routing tables and longest prefix matching—but how do those routing entries get there in the first place? There are two fundamentally different approaches: static routing and dynamic routing.
Static Routing: Manual Configuration
With static routes, a network administrator manually enters each route into the router's routing table. It's like writing down turn-by-turn directions yourself and never updating them.
Pros:
- Simple for small networks
- Predictable behavior
- No bandwidth overhead from routing protocol traffic
- More secure (no automatic route advertisements)
Cons:
- Doesn't adapt to network changes (link failures, new paths)
- High administrative burden in large networks
- No automatic load balancing or failover
Dynamic Routing: Automatic Discovery
Dynamic routing protocols allow routers to automatically discover network topology, share routing information with neighbors, and adapt to changes. Think of it as routers constantly talking to each other, updating their "maps" collaboratively.
Common protocols:
- RIP (Routing Information Protocol): Simple, uses hop count as metric
- OSPF (Open Shortest Path First): More sophisticated, uses link state and cost metrics
- BGP (Border Gateway Protocol): Used between autonomous systems on the Internet
Pros:
- Automatic route discovery and updates
- Adapts to topology changes and failures
- Scales to large networks
Cons:
- More complex configuration initially
- Uses network bandwidth and router CPU
- Potential for misconfigurations causing routing loops
Key Takeaway: Static routing requires manual entry and maintenance but offers simplicity and control, while dynamic protocols like RIP, OSPF, and BGP automatically discover and maintain routes, providing adaptability at the cost of complexity and overhead.