atom

Distance Vector Routing (Bellman-Ford)

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