Vol. I · No. 46The protocol sectionSat, 10 Oct 2026
Layer 3 control · Routing · the oldest way to share a route

RIP

Routing Information Protocol

RIP is routing by rumour. Each router simply tells its neighbours the list of networks it can reach and how many hops away they are, and they pass it on with one added to each count. It is simple to the point of being fragile — and largely of historical interest now.

RIP shares a list of destinations and hop counts with its neighbours — easy to run, slow to converge, and capped at 15 hops.

Kind
Distance-vector
rumours, not a map
Port
UDP 520
521 for RIPng
Metric
Hop count
16 means unreachable
Status
Legacy
OSPF replaced it

How it works

A route learned second-hand, one hop at a time
Router A
owns 10.1.0.0/16
hops: 0
every 30 s
Router B
hears it from A
hops: 1
every 30 s
Router C
hears it from B
hops: 2
Announce the table

Every 30 seconds a router broadcasts its whole routing table to its neighbours.

Add a hop

A neighbour that accepts a route adds one to the count and advertises it onward.

Prefer fewer hops

The lowest hop count wins — regardless of whether that link is fast or slow.

No router ever sees the topology — only what its neighbours claim. That is why a failure takes minutes to propagate, and why a hop count of 16 has to mean “unreachable” to stop a count-to-infinity loop.

The main points

What RIP does, step by step

1
Advertise the whole table

Every thirty seconds a router sends its full list of known networks and their hop counts.

2
Learn and increment

A neighbour records any better route it hears, adding one hop, and points at the sender as next hop.

3
Age out what stops arriving

A route not refreshed within 180 seconds is marked unreachable, then removed.

4
Fight the loops

Split horizon, poison reverse and hold-down timers exist purely to stop bad news circulating forever.

Its three versions
RIPv1 — classful, broadcast, no masks
RIPv2 — classless, multicast, auth
RIPng — the IPv6 version, UDP 521

In cybersecurity

RIP believes whatever a neighbour says and, in its first version, had no authentication at all — so on any reachable segment it is trivially poisoned.

Route injection

An unauthenticated update advertising a low hop count pulls traffic to the attacker.

RIPv2 authentication

It supports a shared key — plain text in the original spec, and MD5 at best.

Broadcast exposure

RIPv1 broadcasts the entire routing table to the segment, mapping the network for anyone listening.

Slow convergence

Minutes of stale routing after a failure is a denial of service in its own right.

Use passive interfaces

Never send updates out of a port that faces users or servers.

Prefer OSPF

On any modern network the honest security advice is to not run RIP at all.

Rides in the stack

IPUDPRIP

Unusually for a routing protocol it rides on UDP 520 — cheap to send, with no reliability underneath it.

Works with

OSPF

Timers & limits

Timers
Update30 s
Invalid180 s
Hold-down180 s
Flush240 s
Limits
Max hops15
Infinity16
Metrichops only
Scalesmall nets