How Routing Information Protocol (RIP) Works - TechTarget
Maybe your like
- Home
- Network infrastructure
- Kate Brush
Routing Information Protocol (RIP) is a distance vector protocol that uses hop count as its primary metric. RIP defines how routers should share information when moving traffic among an interconnected group of local area networks.
RIP was originally designed for the Xerox PARC Universal Packet protocol suite and was known as Gateway Information Protocol in the Xerox Network Systems protocol suite in 1981. RIP -- defined in Request for Comments 1058 in 1988 -- is easy to configure and easy to use in small networks.
Open Shortest Path First routing has replaced RIP as the most widely used interior gateway protocol in the enterprise. This is mainly due to its simplicity and inability to scale to large, complex networks. In contrast, Border Gateway Protocol (BGP) is a path vector routing protocol used to transfer routing information across autonomous systems on the internet.
How RIP works
RIP uses a distance vector algorithm to decide which path to put a packet on so it arrives at its destination. Each RIP router maintains a routing table listing all the destinations the router knows how to reach and broadcasts it to its closest neighbors every 30 seconds. In this context, neighbors are the other routers that the first router connects directly to. This only includes the other routers on the same network segments as the selected router. The neighbors, in turn, pass the information on to their nearest neighbors, and so on, until all RIP hosts within the network have the same knowledge of routing paths. This shared knowledge is known as convergence.
If a router receives an update on a route and the new path is shorter, it updates its table entry with the shorter path's length and next-hop address. If the new path is longer, it waits through a hold-down period to see if later updates also reflect the higher value. It only updates the table entry if it determines the new, longer path is stable.
If a router crashes or something severs the network connection, the router stops sending and receiving updates to or from its neighbors or along the severed connection. If a given route in the routing table isn't updated across six successive update cycles -- 180 seconds -- a RIP router drops that route and notifies the rest of the network about the problem through its own periodic updates.
Hop counts
RIP only supports 15 hops in a path. By default, a router has one hop if its neighbor owns a destination network and can deliver packets directly without using other routers. Network management terminology describes this as a cost of one. If a packet can't reach a destination in 15 hops, it's considered unreachable.
RIP uses a modified hop count to determine network distance. A modified hop count reflects how network engineers can assign paths a higher cost -- as if they involved extra hops -- if they want to limit or discourage their use. For example, they might assign a satellite backup link a cost of 10 hops to force traffic to follow other routes when available.
Versions of RIP
Three versions of Routing Information Protocol exist:
- RIPv1. Standardized in 1988, RIPv1 is also known as a classful routing protocol because it doesn't send subnet mask information in its routing updates. RIPv1 determines routes based on the Internet Protocol (IP) destination and hop count. The routing table broadcasts to every station on the attached network.
- RIPv2. Standardized in 1998, RIPv2 is also a classless routing protocol because it sends subnet mask information in its routing updates. RIPv2 advanced RIPv1's routing method and included subnet masks and gateways. RIPv2 sends the routing table to a multicast address to reduce network traffic. Additionally, RIPv2 uses authentication for security -- a feature missing from RIPv1.
- RIPng. RIPng is an extension of RIPv2 made to support IPv6, as the previous versions only ran in IPv4.
RIP configuration
Once the involved computers and router interfaces have assigned IP addresses, developers can issue the router RIP command, which tells the router to enable RIP. Then, developers can use the network command, enabling users to identify the networks they want to work with. They only need to specify the networks directly associated with the router.
Users can also configure any port to perform the following actions:
- Prevent RIP packets from being sent or received.
- Receive packets in various formats.
- Send packets formatted for each RIP version to the RIPv1 broadcast address.
RIP timers
RIP timers help regulate performance. They include the following:
- Update timer. This is the frequency of routing updates. Every 30 seconds, IP RIP sends a complete copy of its routing table, subject to split horizon. Internetwork Packet Exchange RIP does this every 60 seconds.
- Invalid timer. This is the absence of refreshed content in a routing update. RIP waits 180 seconds to mark a route as invalid and immediately puts it into hold-down.
- Hold-down timers and triggered updates. This assists with route stability in a Cisco environment. Hold-downs ensure that regular update messages do not inappropriately cause a routing loop. The router doesn't act on nonsuperior new information for a specific period of time. RIP's hold-down time is 180 seconds.
- Flush timer. RIP waits an additional 240 seconds after hold-down before it removes the route from the table.
Poison reverse is another stability feature that assists with routing loops. A poison reverse is a way for a gateway node to tell its neighbor gateways that one of the gateways is no longer connected. The notifying gateway sets the number of hops to the unconnected gateway to 16, a number that indicates the hops are infinite. This tells the neighboring gateways that packets can't get there.
Advantages of RIP
Advantages of RIP include the following:
- Easy to configure and understand.
- Support for almost all routers.
- Promotion of load balancing.
- No requirement for an update every time the topology changes.
Disadvantages and limitations of RIP
Disadvantages of RIP include the following:
- Not always loop-free.
- Only support for equal-cost load balancing.
- Possible occurrences of pinhole congestion.
- Bandwidth-intensive and inefficient.
- Slow convergence in large networks.
- Increased network and processing overhead when compared to static routing.
Users might encounter various limitations while using RIP. For example, RIP increases network traffic due to the checks and updates it performs on neighboring routers every 30 seconds. Furthermore, because RIP only updates neighboring routers, it might forget updates for non-neighboring routers because the information isn't immediately accessible.
Another limitation is the enforcement of the maximum hop count of 15. As a result, it might be hard to access or reach remote routers in large networks. Furthermore, the closest path might not be the shortest path because RIP doesn't consider certain factors when calculating the shortest route.
Continue Reading About What is Routing Information Protocol (RIP)?
- Common network protocols and their functions explained
- BGP tutorial: How the routing protocol works
- Dynamic routing protocols: Distance vector and link state
Related Terms
What is 5G? Fifth-generation wireless or 5G is a global standard and technology for wireless and telecommunications networks. See complete definition What is a small cell in wireless networks? A small cell is a type of low-power cellular radio access point or base station that provides wireless service within a limited ... See complete definition What is millimeter wave (mmWave)? Millimeter wave (mmWave) is a range of electromagnetic frequencies that exist between microwaves and infrared light. See complete definitionDig Deeper on Network infrastructure
-
BGP routing: A configuration and troubleshooting tutorial
By: Damon Garn -
How to ensure network performance and reliability
By: Charles Uneze -
What is a router?
By: Kinza Yasar -
How to troubleshoot common routing errors
By: Suresh Vina
- 8 Business Benefits of Flexible IT –Dell Technologies
- The operational wins driving EDC adoption –Pure Storage
- See More
- A network automation roadmap to reap tech's best benefits –TechTarget Networking
- A Computer Weekly buyer's guide to managing paper processes –TechTarget ComputerWeekly.com
- Unified Communications
- Mobile Computing
- Data Center
- IT Channel
- How UCaaS solves the cost of poor communication
Legacy UC systems are no longer enough to support today's employee communication needs. Explore why migrating to UCaaS is key to ...
- Enterprise AR and VR: Building the UC business case
Enterprise VR and AR enable immersive collaboration, virtual training and improved CX, but also require careful consideration of ...
- Comparing Microsoft Teams free vs. paid plans
IT leaders evaluating Microsoft Teams must carefully consider which collaboration features are most important before deciding ...
- How to fix an iPhone Personal Hotspot that's not working
Connectivity issues, misconfigured settings and human error can all cause mobile hotspot problems. IT must know how to avoid and ...
- How to set up kiosk mode for iPad and other OSes
Tablet-based kiosks have become an increasingly popular tool for customer self-service. Organizations managing multiple kiosks ...
- Best mobile antivirus software for the enterprise
Antivirus protection is a built-in feature on most desktop computers, but what about mobile devices? Many smartphones need the ...
- Enhance operations with decentralized data centers
Decentralized data centers enhance scalability, reduce latency and improve data compliance, offering a strategic shift for ...
- Composable architecture: Future-proofing AI expansion
Data center admins should adopt a composable architecture to improve resource utilization, reduce costs and enhance AI workload ...
- ISO 14644 standards: Cleanroom guidelines for data centers
There are regulated requirements to maintain data center equipment and functionality. ISO 14644 cleanroom standards lay out ...
- Geography, skills drive IT Services M&A for Presidio, Accenture
Presidio has acquired transACT Technology Solutions, a digital transformation specialist based in the United Kingdom, while ...
- Consultants, SIs back AWS agentic AI marketplace launch
Accenture, Cognizant and Deloitte are among the partners with offerings on AWS' AI Agents and Tools marketplace, which is ...
- Partners begin to target agentic AI marketplace platforms
Cloud marketplaces are emerging as key venues for adoption of AI agents. Consultants and integrators aim to offer the technology ...
Tag » What Is Routing Information Protocol
-
Routing Information Protocol (RIP) - GeeksforGeeks
-
Routing Information Protocol - Wikipedia
-
Routing Information Protocol - IBM
-
What Is Routing Information Protocol (RIP)? - Metaswitch
-
What Is A Routing Information Protocol (RIP) And How Does It Work ...
-
RIP And RIPng Overview | Junos OS - Juniper Networks
-
RFC 1058 - Routing Information Protocol - IETF Datatracker
-
Routing Information Protocol: Definition, Function & Versions
-
What Is The RIP Protocol? - Definition From Techopedia
-
EOS 4.28.2F - Routing Information Protocol (RIP) - Arista
-
Routing Information Protocol (RIP) - Aruba Networks
-
What Is The Routing Information Protocol? - EasyTechJunkie
-
Configuring Routing Information Protocol