The Wayback Machine - https://web.archive.org/web/20241125093246/https://www.geeksforgeeks.org/routing-interface-protocol-rip-v1-v2/
Open In App

Routing Information Protocol (RIP) V1 & V2

Last Updated : 21 Oct, 2021
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Routing Information Protocol (RIP) protocol are the intradomain (interior) routing protocol which is based on distance vector routing and it is used inside an autonomous system.Routers and network links are called node. The first column of routing table is destination address. The cost of metric in this protocol is hop count which is number of networks which need to be passed to reach destination. Here infinity is defined by a fixed number which is 16 it means that using a Rip, network cannot have more than 15 hops.

RIP Version-1:

It is an open standard protocol means it works on the various vendor’s routers. It works on most of the routers, it is classful routing protocol. Updates are broadcasted. Its administrative distance value is 120, it means it is not reliable, The lesser the administrative distance value the reliability is much more. Its metric is hop count and max hop count is 15. There will be a total of 16 routers in the network. When there will be the same number of hop to reach the destination, Rip starts to perform load balancing. Load balancing means if there are three ways to reach the destination and each way has same number of routers then packets will be sent to each path to reach the destination. This reduces traffic and also the load is balanced. It is used in small companies, in this protocol routing tables are updated in each 30 sec. Whenever link breaks rip trace out another path to reach the destination. It is one of the slowest protocol.

Advantages of RIP ver1 –

  1. Easy to configure, static router are complex.
  2. Less overhead
  3. No complexity.

Disadvantage of RIP ver1 –

  1. Bandwidth utilization is very high as broadcast for every 30 seconds.
  2. It works only on hop count.
  3. It is not scalable as hop count is only 15. If there will be requirement of more routers in the network it would be a problem .
  4. Convergence is very slow, wastes a lot of time in finding alternate path.

RIP Version-2:

Due to some deficiencies in the original RIP specification, RIP version 2 was developed in 1993. It supports classless Inter-Domain Routing (CIDR) and has the ability to carry subnet information, its metric is also hop count, and max hop count 15 is same as rip version 1. It supports authentication and does subnetting and multicasting. Auto summary can be done on every router. In RIPv2 Subnet masks are included in the routing update. RIPv2 multicasts the entire routing table to all adjacent routers at the address 224.0.0.9, as opposed to RIPv1 which uses broadcast (255.255.255.255).

Advantages of RIP ver2 –

  1. It’s a standardized protocol.
  2. It’s VLSM compliant.
  3. Provides fast convergence.
  4. It sends triggered updates when the network changes.
  5. Works with snapshot routing – making it ideal for dial networks.

Disadvantage of RIP ver2 – There lies some disadvantages as well:

  1. Max hopcount of 15, due to the ‘count-to-infinity’ vulnerability.
  2. No concept of neighbours.
  3. Exchanges entire table with all neighbours every 30 seconds (except in the case of a triggered update).

RIP ver1 versus RIP ver2:

RIP Ver1 RIP Ver2
RIP v1 uses what is known as classful routing RIP v2 is a classless protocol and it supports variable-length subnet masking (VLSM), CIDR, and route summarization
RIPv1 routing updates are broadcasted RIP v2 routing updates are multicasted
RIPv1 has no authentication RIP v2 supports authentication
RIP v1 does not carry mask in updates RIP v2 does carry mask in updates, so it supports for VLSM
RIP v1 is an older, no longer much used routing protocol IP v2 can be useful in small, flat networks or at the edge of larger networks because of its simplicity in configuration and usage


Previous Article
Next Article

Similar Reads

Difference between Border Gateway Protocol (BGP) and Routing Information Protocol (RIP)
When dealing with network routing, it's crucial to understand the various protocols that help direct traffic across complex networks. Two significant protocols in this space are the Border Gateway Protocol (BGP) and the Routing Information Protocol (RIP). Each serves different purposes and operates under different principles. This article explores
5 min read
Routing Information Protocol (RIP)
Routing Information Protocol (RIP) is a routing protocol that uses hop count as a routing metric to find the best path between the source and the destination network. In this article, we will discuss Routing Information Protocol in detail. What is Routing Information Protocol?The Routing Information Protocol is a distance vector routing protocol th
9 min read
What is Routing Loop and How to Avoid Routing Loop?
Routing is a procedure that helps the packet choose an optimal path to reach its destination as soon as possible. For example, a device can be a router, which is used to handle traffic within networks. Optimal network routing methods help maintain your network operating efficiently at help in some ways i.e. faster data access and preventing overloa
3 min read
Difference between Distance vector routing and Link State routing
Routing, a process in computer networks, is responsible for the best path to transmit data packets from one node to another, Distance Vector Routing and Link State Routing are two of the most prominent dynamic routing algorithms, they each have their own procedures for calculating routes and disseminating information about those routes throughout a
4 min read
Difference Between Classful Routing and Classless Routing
Classful and classless routing are two different ways through which the IP addresses are managed and structured in a network. Classful Routing is an older approach whereby the IP addresses are divided by fixed classes such as A, B, C, and the rest all with a preset mask. This way, the subnet mask information is not carried in routing updates and it
5 min read
Unicast Routing - Link State Routing
Prerequisite: Distance Vector Routing, Dijkstra algorithm Unicast means the transmission from a single sender to a single receiver. It is a point-to-point communication between the sender and receiver. There are various unicast protocols such as TCP, HTTP, etc.   TCP is the most commonly used unicast protocol. It is a connection-oriented protocol t
7 min read
Features of Enhanced Interior Gateway Routing Protocol (EIGRP)
Enhanced Interior Gateway Routing Protocol (EIGRP) is a Cisco-proprietary Hybrid routing protocol that contains features of distance-vector and link-state routing protocols. It is a network layer protocol that works on protocol number 88. Some of its features are: Rapid convergence - EIGRP uses a DUAL algorithm to support rapid convergence. If a ro
4 min read
IGRP Routing Protocol
In a host network, the Interior Gateway Routing Protocol (IGRP) is a proprietary distance vector routing protocol that is used to exchange routing information. Cisco was the one who came up with the idea. The Interior Gateway Routing Protocol (IGRP) regulates the transfer of routing information among linked routers in the host network or autonomous
5 min read
Difference between Hierarchical and Flat routing protocol
1. Hierarchical Routing Protocol: Hierarchical Routing is the method of routing in networks that is based on hierarchical addressing. Most transmission control protocol, Internet protocol (TCPIP). Routing is based on two level of hierarchical routing in which IP address is divided into a network, person and a host person. Gateways use only the netw
3 min read
Optimized Link State Routing Protocol
OLSR stands for Optimized Link State Routing Protocol. In this, each node periodically floods status of its links. Each node re-broadcasts link state information received from its neighbors. Each node keeps track of link state information received from other nodes. Each node uses above information to determine next hope to each destination. It is p
6 min read
Working of Manets AODV Reactive Routing Protocol
In this article, we will discuss the overview of Manets AODV Reactive Routing Protocol and our main focus will be on Working of Manets AODV Reactive Routing Protocol. Also, will cover its routing types. Let's discuss it one by one. Prerequisite - Difference between manet and Vanet. Introduction : In this, we will discuss the overview of Manets AODV
3 min read
Hierarchical Ad-hoc Network Routing Protocol
Hierarchical State Routing Protocol(HSR) is a distributed multi-level hierarchical routing protocol that employs clustering at different levels. Clustering has various advantages in itself. A leader of the cluster is selected at each level of clustering. The benefits of this protocol are:- Reduction in routing table size Better scalabilityClusterin
2 min read
Routing Protocol Code
Routing is the process of moving packets across a network from one host to another host by using the best path from the router table. In other words, it may also be defined as the process of selecting a specific path for a traffic in a network or across multiple networks. It is performed by network layer devices in order to deliver the packet by ch
4 min read
RPL (IPv6 Routing protocol)
What is RPL (IPv6 Routing protocol)?RPL stands for Routing Protocol for Low Power and Lossy Networks for heterogeneous traffic networks. It is a routing protocol for Wireless Networks. This protocol is based on the same standard as by Zigbee and 6 Lowpan is IEEE 802.15.4 It holds both many-to-one and one-to-one communication. It is a Distance Vecto
5 min read
Distance Vector Routing (DVR) Protocol
Distance Vector Routing (DVR) Protocol is a method used by routers to find the best path for data to travel across a network. Each router keeps a table that shows the shortest distance to every other router, based on the number of hops (or steps) needed to reach them. Routers share this information with their neighbors, allowing them to update thei
5 min read
Hot Standby Router Protocol (HSRP) and Virtual Router Redundancy Protocol (VRRP)
Hot Standby Router Protocol (HSRP) is a CISCO proprietary protocol used to provide redundancy in a network. Only one router is the active router while others will be in standby state i.e the standby router will be responsible for forwarding the traffic when the active router fails. Virtual Router Redundancy Protocol (VRRP) is an open standard proto
3 min read
Cisco Discovery Protocol (CDP) and Link Layer Discovery Protocol (LLDP) in Data Link Layer
Layer 2 or the Datalink layer provides physical addressing and access to media. It defines how data is to be formatted for transmission and how access to the network is to be controlled. It also provides error detection, ensuring data on higher layers is formatted correctly for transmission. Cisco Discovery Protocol (CDP) and Link Layer Discovery P
2 min read
Difference between Stop and Wait protocol and Sliding Window protocol
Both the Stop and Wait protocol and the Sliding Window protocol are the techniques to the solution of flow control handling. The main difference between the Stop-and-wait protocol and the Sliding window protocol is that in the Stop-and-Wait Protocol, the sender sends one frame and waits for acknowledgment from the receiver whereas in the sliding wi
5 min read
Difference between File Transfer Protocol (FTP) and Secure File Transfer Protocol (SFTP)
Data transfer is the most common task in network and system communications, and they involve transfer of files using two means i.e the File Transfer Protocol (FTP) and the Secure File Transfer Protocol (SFTP). FTP is a commonly applied protocol that enables files to be transferred through a network from one computer to another, but FTP is unsecure
5 min read
Difference between Spanning Tree Protocol (STP) and Rapid Spanning Tree Protocol (RSTP)
Spanning Tree Protocol (STP) and Rapid Spanning Tree Protocol (RSTP), are designed to avoid network loops in Ethernet. It provide loop-free logical topology. They were both designed to provide network reliability and particularly avoid broadcast radiation, but the major differences are on the rate, functionality and versatility. In this article we
5 min read
Difference between Serial Line Internet Protocol (SLIP) and Point-to-Point Protocol (PPP)
SLIP and PPP, which are the widely used serial connection techniques, help to connect the distant devices of the network. The fullform of SLIP is Session Layer Internetworking Protocol. SLIP being a primitive protocol put into use during the early connections to the Internet, when there was not much overhead. PPP is slightly more complex as the pro
6 min read
Information Assurance vs Information Security
In the world of modern technologies, the security of digital information is an important aspect. Cyber-attacks and theft, exploitation and loss of data are the constant threats these days. To prevent all these, there is a variety of techniques available. But in all other ways, the two most common and used ways are information Assurance and informat
9 min read
What is Passive-Interface Command Behavior in RIP, EIGRP & OSPF?
Routing protocols specify how routers talk to each other to exchange information about routes within the same system. This communication happens by sending all or a portion of routing tables in routing-update messages to their neighbors. Passive-Interface Command Behavior in RIPWhile configuring a router, if we want to prevent an interface from par
2 min read
Configuring RIP Versions 1 and 2 in Cisco
Pre-requisite Routing Information Protocol (RIP) Routing is a process of finding a path and then sending packets across networks, the device which performs these functions is called a router. Types of Routing:  Static Routing Dynamic RoutingDynamic Routing Algorithms are based on Distance Vector or Link State routing. RIP is a Dynamic, Distance Vec
4 min read
Difference between RIP and OSPF
Among the dynamic routing protocols, RIP and OSPF are the most commonly used routing protocols for networking. RIP is necessary for the exchange of routing information between routers while OSPF is used for the same purpose but it is different from RIPE in that its function depends on the size and complexity of the network. In this article, I will
6 min read
Difference between RIP and IGRP
Routing protocols play a critical role in the process of identifying how data are to be transmitted within a given network infrastructure. Generally, the two most acknowledged distance-vector routing protocols are Routing Information Protocol (RIP) and Interior Gateway Routing Protocol (IGRP). Although both of them are meant for forwarding the data
6 min read
Difference between RIP and EIGRP
Routing protocols are used to ensure the data flows through different networks in a proper manner and as efficiently as possible. There are two well-known routing protocols in networking (EIGRP). Both IGP and routing are used to characterize optimal routes for data to flow within an AS and though they are similar in purpose they work in different w
6 min read
Fixed and Flooding Routing algorithms
In most situations, packets require multiple hops to make a journey towards the destination. Routing is one of the most complex and crucial aspects of packet-switched network design. Desirable Properties of Routing Algorithms:- Correctness and SimplicityRobustness: Ability of the network to deliver packets via some route even in the face of failure
5 min read
Probabilistic shortest path routing algorithm for optical networks
Data transfer operations is a crucial aspect in case of networking and routing. So efficient data transfer operations is a must need, with minimum hardware cost (Optical Cables, WDM Network components, Decoders, Multiplexers) and also in the minimum time possible. Thus, the need is to propose an algorithm that finds the shortest path between two no
5 min read
Inter VLAN Routing by Layer 3 Switch
Prerequisite - Access and trunk ports Normally, Routers are used to divide the broadcast domain and switches (at layer 2) Operate in a single broadcast domain but Switches can also divide the broadcast domain by using the concept of VLAN (Virtual LAN). VLAN is the logical grouping of devices in the same or different broadcast domains. By default, a
5 min read
three90RightbarBannerImg