
- Data Comm & Networks Home
- DCN - Overview
- DCN - What is Computer Network
- DCN - Uses of Computer Network
- DCN - Computer Network Types
- DCN - Network LAN Technologies
- DCN - Computer Network Models
- DCN - Computer Network Security
- DCN - Components
- DCN - Connectors
- DCN - Switches
- DCN - Repeaters
- DCN - Gateways
- DCN - Bridges
- DCN - Socket
- DCN - Network Interface Card
- DCN - NIC: Pros and Cons
- DCN - Network Hardware
- DCN - Network Port
- Computer Network Topologies
- DCN - Computer Network Topologies
- DCN - Point-to-point Topology
- DCN - Bus Topology
- DCN - Star Topology
- DCN - Ring Topology
- DCN - Mesh Topology
- DCN - Tree Topology
- DCN - Hybrid Topology
- Physical Layer
- DCN - Physical Layer Introduction
- DCN - Digital Transmission
- DCN - Analog Transmission
- DCN - Transmission media
- DCN - Wireless Transmission
- DCN - Transmission Impairments
- DCN - Multiplexing
- DCN - Network Switching
- Data Link Layer
- DCN - Data Link Layer Introduction
- DCN - Data Link Control & Protocols
- DCN - RMON
- DCN - Token Ring Network
- DCN - Hamming Code
- DCN - Byte Stuffing
- DCN - Channel Allocation
- DCN - MAC Address
- DCN - Cyclic Redundancy Checks
- DCN - Error Control
- DCN - Flow Control
- DCN - Framing
- DCN - Error Detection & Correction
- DCN - Error Correcting Codes
- DCN - Parity Bits
- Network Layer
- DCN - Network Layer Introduction
- DCN - Network Addressing
- DCN - Routing
- DCN - Internetworking
- DCN - Network Layer Protocols
- DCN - Routing Information Protocol
- DCN - Border Gateway Protocol
- DCN - OSPF Protocol
- DCN - Network Address Translation
- DCN - Network Address Translation Types
- Transport Layer
- DCN - Transport Layer Introduction
- DCN - Transmission Control Protocol
- DCN - User Datagram Protocol
- DCN - Congestion Control
- DCN - TCP Service Model
- DCN - TLS Handshake
- DCN - TCP Vs. UDP
- Application Layer
- DCN - Application Layer Introduction
- DCN - Client-Server Model
- DCN - Application Protocols
- DCN - Network Services
- DCN - Virtual Private Network
- DCN - Load Shedding
- DCN - Optimality Principle
- DCN - Service Primitives
- DCN - Services of Network Security
- DCN - Hypertext Transfer Protocol
- DCN - File Transfer Protocol
- DCN - Secure Socket Layer
- Network Protocols
- DCN - ALOHA Protocol
- DCN - Pure ALOHA Protocol
- DCN - Sliding Window Protocol
- DCN - Stop and Wait Protocol
- DCN - Link State Routing
- DCN - Link State Routing Protocol
- Network Algorithms
- DCN - Shortest Path Algorithm
- DCN - Routing Algorithm
- DCN - Leaky Bucket Algorithm
- Wireless Networks
- DCN - Wireless Networks
- DCN - Wireless LANs
- DCN - Wireless LAN & IEEE 802.11
- DCN - IEEE 802.11 Wireless LAN Standards
- DCN - IEEE 802.11 Networks
- Multiplexing
- DCN - Multiplexing & Its Types
- DCN - Time Division Multiplexing
- DCN - Synchronous TDM
- DCN - Asynchronous TDM
- DCN - Synchronous Vs. Asynchronous TDM
- DCN - Frequency Division Multiplexing
- DCN - TDM Vs. FDM
- DCN - Code Division Multiplexing
- DCN - Wavelength Division Multiplexing
- Miscellaneous
- DCN - Shortest Path Routing
- DCN - B-ISDN Reference Model
- DCN - Design Issues For Layers
- DCN - Selective-repeat ARQ
- DCN - Flooding
- DCN - E-Mail Format
- DCN - Cryptography
- DCN - Unicast, Broadcast, & Multicast
- DCN - Network Virtualization
- DCN - Flow Vs. Congestion Control
- DCN - Asynchronous Transfer Mode
- DCN - ATM Networks
- DCN - Synchronous Vs. Asynchronous Transmission
- DCN - Network Attacks
- DCN - WiMax
- DCN - Buffering
- DCN - Authentication
- DCN Useful Resources
- DCN - Quick Guide
- DCN - Useful Resources
RIP: Routing Information Protocol in Network Layer
Introduction
RIP is one of the oldest routing protocols in the history of networks. The RIP protocol uses a distance vector algorithm which helps in determining which path a packet (data) should take in order to reach its destination. Each router maintains a routing table which lists all the paths that the router should know to deliver the packets. This routing table gets updated by routers at regular intervals of time by broadcasting its whole table to its neighbour routers. Typically every 30 seconds, RIP routers update their routing tables.

What is RIP
Routing Information Protocol'' (RIP) is a distance-vector protocol which uses hop count as its primary metric. It governs the router and directs them to share information with the neighbouring routers connected to the local area network. In order to prevent
routing loops, RIP implements the maximum number of hops allowed in a path from source to destination. The hop count can be defined as the number of routers between the source and destination. The maximum number of hops allowed in a RIP network is 15 which limits RIP to small networks only (local area network). The hop count of 16 indicates that the network is unreachable.
RIP protocol runs with an Administrative Distance (AD) of 120 and port 520 on the OSI model of network layer.
- Command It is used for request and response. It is an 8-bit field. The request is represented by 1 whereas the response is represented by 2
- Version Version represents the protocol version of RIP in use. Lets assume we use version 1 of the protocol, then we enter 1 in this field
- Reserved It is a reserved filed and it's represented by 0
- Family This is a 16-bit field. Since we use TCP/IP protocol, we put 2 in this field
- Network Address: It's a 14 byte field. Since we use IPv4 which gets filled in 4 bytes, rest 10 bytes remain zero
- Distance The hope count or the total number of routers require to reach the destination network is represented by this field
Benefits of RIP
Following are the benefits of RIP:
- Easy to understand
- Feasible to configure
- Supported by all the routers
- Support load balancing
Additionally, RIP is preferred over static routing due to the fact that it doesn't require manual updates when the topology changes and its simple to configure.
Versions of RIP
There are in total 3 versions of RIP:
- RIPv1
- RIPv2
- RIPng
History of RIP
In 1981, Routing Information Protocol (RIP) was first developed by GWINFO in the Xerox Network System protocol suite for Xerox PARC Universal Protocol. However, RIP was first mentioned in RFC 1058 in 1988. Since its inception, RIP has the reputation for being simple to set up and easy to use for small networks.
Limitation of RIP
The followings are the limitations/disadvantages of RIP
- Increased processing overheads when compared to static routing
- Not always loop-free
- Not so cost-effective in load balancing
- Pinhole congestion can occur
- Require large bandwidth
- Not suitable for the larger network as this leads to slow convergence
- Due to periodic checks on the routing table of neighbouring routers every 30 seconds, RIP tends to increase network traffic
- It only updates neighbouring routers, hence non-neighbouring routing updates can be forgotten since the information is not accessible immediately
- RIP enforces a maximum hop count limit as this restricts the usability of RIP to local networks only
- The shortest path is also not always guaranteed
Implementation of RIP
The Routing Information Protocol (RIP) is used by almost all Original Equipment Manufacturers (OEMs) of networks. Following are the past and current applications of RIP
- Cisco IOS (software used in Cisco Routers) and Cisco NX-OS (Cisco Data Center Switches) support RIP
- Junos (Juniper software) used in Juniper Routers, Switches and Firewalls support RIP
- The remote access feature of Windows Server supports RIP
- Some open-source software such as BIRD, Quagga, ZeroShell, etc.
- Netgear and Huawei routers also support RIP
Use of RIP
Routing Information Protocol (RIP) is used to transfer data packets from source to destination computer through the network with the help of routers.
These are the set of guidelines designed by computer scientists for an easy and effective way to connect through the connection of routers. The following are the usefulness of Routing Information Protocol (RIP)
- It is a fundamental protocol to connect users on the world wide web
- This helps easy and automatic configuration of routers among each other
- It helps with periodic network updates
- It helps routers on finding an effective path to establish communication between source and destination routers
Conclusion
RIP (Routing Information Protocol) is a set of rules which governs how data packets are transferred from source to destination with the help of a distance vector algorithm. This protocol helps routers in identifying the optimum path with the help of hop count which sets a maximum limit of 15 routers between source and destination. If a network requires more than 15 hops, it will be considered an inaccessible network by the routers in RIP. Hence it's suitable for small networks only.
RIP is supported by almost all routers as this is considered to be the easiest among all routing protocols due to its ease in configuration and routing table auto-update feature. However, sending routing updates to all the routers generates unnecessary network traffic.
FAQS
Q1. What is the difference between RIP and OSPF?
Unlike RIP, which requires routers to send routing table updates every 30 seconds, whereas OSPF (open shortest path first) sends the updated part of the routing table only when a change has to occur.
Q2. What are the other types of a routing protocol?
Following are the other types of routing protocol (to name a few) &minus
- Interior Gateway Routing Protocol (IGRP)
- Open Shortest Path First (OSPF)
- Border Gateway Protocol (BGP)
- Exterior Gateway Protocol (EGP)
Q3. Is RIP a TCP and UDP?
RIP uses UDP (User Datagram Protocol) as the transport protocol.