Distance Vector (RIP)
Read this concept as one more decision made about a packet in flight. The widget below lets you change the inputs and watch the consequence instead of memorising the rule.
Why it matters
Distance-vector routing is built on neighbors telling each other their best known distances, which is simple but slow to converge. Understanding the update mechanics explains both its classroom popularity and its production limits.
On the wire
RIP broadcasts or multicasts its full routing table every 30 seconds as UDP port 520 messages containing prefixes and hop counts. A router accepts an update only from the next hop toward that destination, then increments the metric by one before advertising it onward.
When it breaks
When a link fails, bad news travels one hop per update cycle and can produce count-to-infinity as routers increment metrics advertised by one another. Split horizon, poison reverse, and hold-down timers limit the damage but slow convergence further.
Routing lab
Click links to fail or restore them, then send a packet to follow the computed path.
Distance vector from A: B=5, C=8, D=9
RIP advertises its whole table every 30 seconds; metrics can lag behind a topology change.