atom

Distance Vector Routing

Distance Vector Routing (Bellman-Ford)

๐Ÿ’ก The Core Idea

In Distance Vector routing, nodes iteratively calculate the shortest path using the Bellman-Ford equation. It is distributed and asynchronous; nodes do not need a global map, they simply trust their neighborsโ€™ estimates.

๐Ÿง  The Equation

Dx(y)=minv{c(x,v)+Dv(y)}D_x(y) = min_v \{c(x,v) + D_v(y)\}

โš™๏ธ How it works

  1. Wait: Wait for a change in local link cost or a message from a neighbor.
  2. Recompute: Run the Bellman-Ford equation using the new data.
  3. Notify: If the least-cost path changes, send the new distance vector to neighbors.

๐Ÿ”— Connections