RIP Explained: The Simplest Routing Protocol

RIP explained in plain terms means understanding the oldest and simplest way routers learn how to reach each other. The central question is how a router can know the way to a distant network without anyone telling it, and the answer is that each router tells its neighbours what it knows, and the neighbours pass it on, until every router has a map of the whole network.

RIP, short for Routing Information Protocol, is a distance-vector routing protocol, first standardised in 1988 in RFC 1058, with a second version, RIPv2, following in RFC 2453. It is one of the earliest protocols of the internet, and it is still taught, still supported by almost every router, and still used in small networks where simplicity matters more than scale.

The idea is simple: count the hops. A router measures the distance to each network by the number of routers in between, chooses the route with the fewest hops, and shares its table with its neighbours every thirty seconds. This article explains what RIP is, how it works, and where it is used.

Key takeaways

  • RIP is a distance-vector protocol that routes by hop count.
  • Routers share their full routing table with neighbours every 30 seconds.
  • The best route is the one with the fewest hops, up to 15.
  • 16 hops means unreachable, which limits the network’s size.
  • It is simple to set up, and still used in small networks.

What RIP is

RIP is a distance-vector protocol, which means each router knows only the distance to each destination and the next hop to use, not the full path. It builds its routing table by listening to its neighbours, adding one hop to every route they advertise, and keeping the shortest version of each.

The distance is measured in hops, and the maximum is 15. A network 16 hops away is considered unreachable, which is RIP’s way of saying that the destination does not exist or cannot be reached. That limit is the protocol’s most famous feature, and its most famous weakness, since it means RIP can only serve networks with a diameter of 15 hops or fewer.

RIP sends its updates over UDP, on port 520, and the original version broadcast them to every device on the network, while RIPv2 uses multicast, sending them only to routers that listen. RIPv2 also carries a subnet mask with each route, which the first version could not do, and it supports simple password authentication. Our guide to OSPF explains the link-state protocol that replaced RIP in most large networks, and our guide to BGP explains the protocol that routes between networks on the internet.

How RIP works

When a router starts, its table holds only the networks it is directly connected to, each at a distance of zero or one hop. It then sends its table to its neighbours, and listens for theirs, adding one hop to every route it learns, so that a route learned from a neighbour is always one hop further away than the neighbour’s own route.

Every thirty seconds, each router sends its whole table again, which keeps the information fresh and lets the network recover from changes. If a router stops hearing about a route, it marks the route as stale after 180 seconds, and removes it after 240, which is how dead links disappear from the table.

When a link fails, RIP has to be told, and it can be slow to learn. A router that loses a route will keep advertising the old distance until it hears a better one, and its neighbours may pass the old route back to it, which is the counting-to-infinity problem: the distance climbs, one update at a time, until it reaches 16 and the route is finally declared unreachable.

RIP fights this with three tricks. Split horizon stops a router from advertising a route back to the neighbour it learned it from, route poisoning advertises a dead route as 16 hops so that neighbours drop it at once, and hold-down timers ignore new information about a failed route for a while, so that old news cannot revive it.

Choosing a route is simple: the lowest hop count wins, and if two routes have the same count, the first one learned is kept. There is no consideration of bandwidth, delay, or load, which is why RIP can choose a slow short path over a fast long one, and why larger networks moved to protocols that weigh more than hops.

A laptop on a dark desk with its screen showing a glowing green map of routers passing route tables to each other
A laptop showing a glowing green map of routers passing route tables to each other shows how RIP works: neighbours sharing what they know, hop by hop.

Comparing RIP with other routing protocols

RIP is one of several interior routing protocols, and each suits a different scale. OSPF builds a full map of the network and finds the best path, EIGRP mixes the two ideas, and BGP routes between autonomous systems on the internet, but each has its own trade-offs.

The table below sets out the main contrasts between the leading approaches.

Aspect RIP OSPF BGP
Type Distance vector Link state Path vector
Metric Hop count, max 15 Cost, based on bandwidth Policy and path length
Convergence Slow, minutes Fast, seconds Slow, policy driven
Scale Small networks only Large enterprise networks The whole internet
Best for Small, simple networks Large, fast-changing networks Routing between providers

The practical result is that RIP is the right choice for a small network where simplicity matters, OSPF is the standard for larger networks that need fast, accurate routing, and BGP is the only choice for routing between organisations on the internet.

Where RIP is used

Small office networks use RIP where a handful of routers need to share routes without any configuration. A router can be given RIP and one command, and it will learn the routes from its neighbours, which is enough for an office with a few sites and no dedicated network engineer.

Home and small business routers use RIP, or a simplified version of it, to learn routes from an internet provider or between local networks. Many consumer routers support it, and it is often the default when no other routing protocol is configured.

Teaching uses RIP as the first routing protocol students meet. Its simplicity makes the ideas of distance vectors, hop counts, and convergence easy to see, and almost every networking course starts with RIP before moving on to OSPF and BGP.

Legacy networks still run RIP where it was installed decades ago and never replaced. A small network that works does not need to be rebuilt, and RIP’s wide support means that old routers can keep talking to new ones without an upgrade.

Test labs and simulations use RIP to demonstrate routing behaviour. Because its updates are slow and visible, it is easy to watch a route appear, fail, and recover, which makes it a useful tool for learning and for testing network designs.

Strengths and limits

The greatest strength of RIP is its simplicity. It needs almost no configuration, it runs on every router ever made, and its behaviour is easy to understand, which is why it is still the first protocol many engineers learn and the easiest to deploy in a small network.

It is also a strength that RIP is a standard. Any router from any vendor can exchange routes with any other, which means a network can mix old and new equipment without worrying about compatibility.

The limits are real, though. The 15-hop limit confines it to small networks, its 30-second updates and slow convergence mean it can take minutes to react to a failure, and hop count ignores bandwidth, so it can choose a slow path over a fast one. Those limits are why it was replaced in large networks decades ago.

RIP checklist

  • Use RIP only where the network is 15 hops across or fewer.
  • Use RIPv2, not the original, so subnet masks are carried.
  • Turn on authentication, so a stranger cannot inject routes.
  • Do not advertise RIP on interfaces facing the internet.
  • Keep the network small, and move to OSPF if it grows.
  • Watch for slow convergence after a link failure.
  • Use split horizon and route poisoning, which are on by default.
  • Check that all routers agree on the same version.
  • Remember that hop count ignores speed, so check your paths.

Frequently asked questions

What is RIP in simple terms?

RIP is the simplest way for routers to learn routes. Each router tells its neighbours what networks it can reach and how many hops away they are, and the neighbours pass the information on, until every router knows the way.

Why is 16 hops unreachable in RIP?

Because RIP counts hops up to 15, and uses 16 as the code for infinity, meaning the destination cannot be reached. That limit keeps the counting-to-infinity problem from running forever, but it also limits the size of a RIP network.

What is the difference between RIPv1 and RIPv2?

RIPv1 broadcasts its updates and carries no subnet mask, while RIPv2 uses multicast, carries subnet masks, and supports authentication. RIPv2 is the version to use, and RIPv1 is kept only for very old equipment.

What is counting to infinity?

It is the problem where routers keep passing a dead route back and forth, each adding a hop, until the count reaches 16. Split horizon, route poisoning, and hold-down timers are the defences against it.

Is RIP still used today?

Yes, in small networks, home routers, and teaching, and in legacy networks that were built with it. Large networks moved to OSPF long ago, but RIP is still supported everywhere.

When should I use RIP instead of OSPF?

When the network is small, simple, and unlikely to grow, and when ease of setup matters more than speed or scale. For anything larger, or where convergence speed matters, OSPF is the better choice.

The bottom line

RIP explained in one line is this: routers telling their neighbours what they know, counting hops, and choosing the shortest path, in the simplest routing protocol ever standardised.

It is old, it is limited, and it is still running, because simplicity has a value of its own. Every engineer who learns routing starts with RIP, and every network that outgrows it moves on, which is exactly what a first protocol is for.

This article is general information about how RIP works, not advice about designing routing for a particular network.

Latest articles

Scroll to Top