Concepts / Distance-vector routing

Distance-vector routing

RIP

Also called routing information protocol, distance vector, hop count, RIPv2, 224.0.0.9, UDP 520

A distance-vector routing protocol: each router tells its neighbours how many hops away every network is.

Each router adds one hop and passes it on
Each router adds one hop and passes it on

A router only hears hop counts from its neighbours; it never sees the whole network. It keeps the lowest count, and 16 means unreachable.

RIP is a routing protocol in which each router tells its neighbours how many hops away every network is. Every 30 seconds it multicasts its whole table to 224.0.0.9, UDP port 520; a neighbour adds one hop and keeps the lowest count. Link speed plays no part. A route not heard for 180 s is marked 16, unreachable. It is slow to forget a lost route; OSPF shares a map instead.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab