Communication Networks · Visualized
Distance-Vector Routing
Routing
How routers choose paths — flooding everything, computing shortest-path trees, or exchanging distance tables.
3 interactive subtopics — each one animated, step-through and explained.
Distance-Vector Routing
RoutingDistance-vector routers never see the whole map. Each keeps a table of “cost to every destination via each neighbour”, sends it periodically to direct neighbours, and updates entries using the Bellman-Ford rule: my cost = neighbour’s cost + link to neighbour. Tables keep improving until an iteration changes nothing — convergence.
How Distance-Vector Routing Works
- Initialise: directly connected destinations cost the link metric; everything else ∞.
- Periodically send your whole table to each neighbour.
- On receipt, add the neighbour’s distance to the link cost for each row.
- Keep whichever offer is cheapest per destination and record that neighbour as next hop.
- Repeat until a full exchange produces no change — the tables have converged.
Distance-Vector Routing Worked Example
Try it: Play — iteration 0 shows direct links only; successive exchanges pull C’s cost from 5 down to 3 via B.
C learns “B reaches A for 1” and improves its row to 1+2=3. One more exchange changes nothing: converged. Slow convergence and counting-to-infinity are this method’s famous weaknesses.
Distance-Vector Routing: Key Facts to Remember
Recommended resourcesAffiliate links · may earn us a commission
Recommended for learners
See how packets really travel
Networks are built on the structures and algorithms you can watch step by step — queues, trees, and routing algorithms.