Distance Vector Routing (DVR) Protocol (original) (raw)

Last Updated : 11 Feb, 2026

Distance Vector Routing (DVR) is a protocol where each router keeps a table showing the distance (in hops) to all other routers. Routers regularly share these tables with neighbors, so they can update routes and always find the shortest, most efficient paths for data.

The Distance Vector Routing Algorithm is based on the Bellman-Ford Algorithm. It was first used in the old ARPANET.

**Bellman-Ford Basics

Each router maintains a distance vector table that shows the shortest known distance to every other router.

Information stored in a DV router includes:

Initialization:

**Working

**1. Routers share information: Each router sends its distance vector to all its neighbors.

**2. Routers update information:

D_x(y) = \min \{ C(x,v) + D_v(y) \}

**3. Distance calculation:
The cost of reaching a destination is calculated using the Bellman-Ford equation:

Where:

**Example: Consider 3-routers X, Y and Z as shown in figure. Each router have their routing table. Every routing table will contain distance to the destination nodes.

Distance Vector Routing (DVR)

Consider router X , X will share it routing table to neighbors and neighbors will share it routing table to it to X and distance from node X to destination will be calculated using bellmen- ford equation.

Dx(y) = min { C(x,v) + Dv(y)} for each node y ? N

As we can see that distance will be less going from X to Z when Y is intermediate node(hop) so it will be update in routing table X.

Distance Vector Routing (DVR)

Similarly for Z also:

Distance Vector Routing (DVR)

Finally the routing table for all:

Distance Vector Routing (DVR)

Applications

**Advantages

Disadvantages