A routing table can be populated manually or learned dynamically. Static routes are explicit configuration. RIP is a distance-vector protocol with simple hop-count reasoning. OSPF is a link-state interior gateway protocol that builds a topology database and computes shortest paths. BGP is the inter-domain routing protocol that exchanges reachability information between autonomous systems using policy-rich path attributes.
Remember the shape, not the sentence
“Think of roads in a city versus roads between countries. Inside one organization, routers can share a common topology model; between organizations, routing must also express business and policy constraints.”
Static routing
Simple and deterministic, but every topology change requires configuration unless another mechanism handles it. It remains useful for small or special-purpose paths.
RIP
RIP uses hop count as a metric and has a maximum usable path length of 15 hops, making it unsuitable for large modern networks but useful for learning distance-vector concepts.
OSPF vs BGP
OSPF is commonly used within an autonomous system and distributes link-state information. BGP is used between autonomous systems and is strongly policy-driven; path attributes such as AS_PATH matter more than a simple shortest-distance metric.
See the mechanism before you memorize it
One diagram, one causal story, one reconstruction task.
How routers learn: static, RIP, OSPF, BGP (bird's-eye) — causal map
Static
Human defines a destination and next hop.
Distance vector
Routers learn reachability through neighbor-to-neighbor path information.
Link state
Routers build a shared topology view and compute paths.
Inter-domain
BGP exchanges reachable prefixes plus policy-relevant path attributes.
Draw the idea yourself
Rebuild the core flow on a real canvas before moving to the worked walkthrough.
Walk the system
Static
Human defines a destination and next hop.
Distance vector
Routers learn reachability through neighbor-to-neighbor path information.
Link state
Routers build a shared topology view and compute paths.
Inter-domain
BGP exchanges reachable prefixes plus policy-relevant path attributes.
Forwarding
The best route is installed into forwarding structures used for packets.
Protocol comparison
Do not reduce protocols to slogans. The real distinction is the information they exchange, the scope where they operate, and the way they select paths.
Static → explicit control
RIP → distance vector, hop count
OSPF → link state, topology database
BGP → inter-domain, policy + AS pathsWhat usually goes wrong
Close the tab. Rebuild it from memory.
Read the question, answer aloud, then reveal.
Why can BGP choose a longer path?Reveal answer
BGP is policy-driven. Operators can prefer or reject paths based on business, security and topology policy rather than only physical hop count.
What is the core idea of link-state routing?Reveal answer
Routers distribute enough topology information to build a common view and independently compute paths.
When is static routing useful?Reveal answer
Small stable networks, default/special routes, lab environments, controlled paths and cases where an administrator deliberately wants deterministic behavior.
Make this idea travel.
Connect it next to: routing • subnet-design-lab • tcp-packet-analysis.