You are on page 1of 5

IEEE Sponsored 2nd International Conference on Innovations in Information Embedded and Communication Systems ICIIECS’15

A Comparative study on RIP and OSPF protocols


Analysis of RIP and OSPF protocols using GNS-3

Megha Jayakumar1 N Ramya Shanthi Rekha1 Dr.B.Bharathi2


Student Professor
Faculty of Computing Faculty of Computing
Sathyabama University Sathyabama University
Chennai, India Chennai, India
megha24051994@gmail.com,www.ramya1693@gmail.com bharathi.cse@sathyabamauniversity.ac.in

Abstract - Routing of data packets is one of the important


process in the internet. A routing protocol specifies the method of Router1# configure terminal // this goes to global
communication among routers used in the inter connection of configuration mode
networks. There are number of routing protocols which have Router1(config)# ip route 10.10.20.0 255.255.255.0
application on the internet like OSPF, RIP, EIGRP, OPNET, 192.168.100.1
IGRP, etc. Every protocol has its own feature of packet routing. Dynamic routing can be defined as the capability of a system
This paper presents a simple comparative study of RIP and
to change the routes accordingly when any modification is
OSPF dynamic routing protocols. The Routing Information
Protocol (RIP) comes under the distance vector algorithm and done in the network. Dynamic routing is also known as
the Open Shortest Path First Protocol(OSPF) is a link state Adaptive routing.There are several dynamic routing protocols
routing algorithm. like RIP, OSPF, EIGRP, IGRP AND IS-IS.

Index terms – RIP, OSPF, Routing Protocols, Dynamic Routing,


Routers III. ROUTING INFORMATION PROTOCOL (RIP)

I. INTRODUCTION RIP is a distance vector routing algorithm and it makes use of


hop count as the metric. Hop count can be defined as the
A routing protocol shows the communication between various number of intermediate devices through which data is
routers. It is used to determine the routes. Each router contains transferred from the source to the destination. The maximum
details of its neighboring networks only. A routing protocol number of hops is 15, which means that the data can be
shares this information first among immediate neighbors, and transferred through a maximum of 16 nodes. This is one of the
then throughout the network. This way, routers gain major limitation of RIP. It cannot exceed the hop count limit
knowledge of the topology of the network. The classification of 15. A hop count of 16 is also considered as unreachable.It
of Routing are basically into two types namely static routing implements split horizon,route poisoning and hold-down
and dynamic routing. Static routing is done manually whereas mechanisms to prevent wrong routing information from being
dynamic routing uses certain protocols. RIP, OSPF, IGRP, sent. RIP transfers in every 30s. RIPv1, RIPv2, RIPng are
EIGRP and IS-IS are some of the routing protocols. All these different versions of the RIP. Table 1 shows the differences
are interior gateway routing protocols. RIP is a distance vector between the versions of RIP. After enabling the RIP in the
routing protocol, OSPF is a link state routing protocol and network the RIP protocols advertise its broadcast messages to
EIGRP is a hybrid protocol. The performance of RIP and all the RIP interfaces and receives the response.The router
OSPF can be analyzed by using GNS-3. table gets updated once in every 30 secs.The routing protocol
priority is set by using the administrative distance value which
II. STATIC AND DYNAMIC ROUTING is 120 by default.
Static routing is the routing in which the routing entry is given
manually. The network administrator adds entries into the A. RIPv1
routing table and configures the routes manually. Static
routing is fixed and it does not change if the network is RIPv1 is based on local broadcasting. The updates occur in
changed or rebuilt which contradicts dynamic routing. every 30s. There is a hop count limit to prevent the packets
Example for adding a static route using GNS3 software: from going around the loop forever. Any packet that is on the

978-1-4799-6818-3/15/$31.00 © 2015 IEEE


IEEE Sponsored 2nd International Conference on Innovations in Information Embedded and Communication Systems ICIIECS’15

16th hop is discarded. It is a classfull protocol. There is also no iv) Efficient and reliable transport of routing updates.
support for router authentication, making RIP prone to various v) It provides scalability.
attacks.
A. OSPFv1
B. RIPv2

RIPv2 is a distance vector routing protocol which is an N number of routers are supported in the OSPF protocol with
enhancement of RIPv1. It is also called as hybrid routing fast convergence.The OSPFv1 is used for detecting any errors
protocol. RIPv2 uses multicasts whereas RIPv1 in the network.OSPFv1 cannot support IPv6 network.
uses broadcasts. RIPv2 supports triggered updates.It notifies
any changes that RIPv2 is a classless protocol and it B. OSPFv2
supports variable-length subnet masking (VLSM). Both
RIPv1 and RIPv2 uses hop count as the metric.
This is the next version of the OSPF v1.There are many
TABLE.I.DIFFERENCES BETWEEN RIPv1 AND RIPv2 limitations for OSPFv1 which can be overcome by OSPFv2. It
is used for fast convergence in IPV4 network with accurate
RIPv1 RIPv2 error detection. .It cannot be used for an IPv6 network.
- classful routing -classless
routing(supports VLSM) C. OSPFv3
-No authentication -authentication is
available
-it uses broadcast -it uses multicast This version of OSPF protocol is used for IPv6 network.It is
very similar to OSPFv2 in its functioning, the only difference
C. RIPng being that it is used for IPV6 network and OSPFv2 is used for
IPV4 network.It uses area 0 as the backbone of the
network.OSPv3 will be having three types of addresses like
RIPng stands for RIP next generation. It is an extension of area id, router id and link state id. Using these ids the OSPF
RIPv2 which supports IPv6. The major enhancement in RIPng protocol communicates with the routers in the network.
is that it supports Ipv6 and it does not support authentication.
RIPv2 allows attaching arbitrary tags to routes, RIPng does V. COMPARITIVE ANALYSIS
not. RIP also has architectural limitations to not exceed 15
hop counts. It is prone to routing loops when the routing tables
An overall comparative analysis of RIP and OSPF protocols is
are reconstructed especially when it is implemented in large
given in table 2. RIP sends the contents of the routing table
networks. It might take extremely long time to resolve routing
every 30s whereas OSPF sends hello packets in every 10s and
loops.
when any data is updated, it sends the updated data alone and
IV. OPEN SHORTEST PATH FIRST
not the whole routing database. OSPF may be considered
better than RIP, but its complexity doesn’t allow it to be used
OSPF is a router protocol which is used for larger networks by everyone. The comparison between RIP and OSPF is done
other than using RIP. OSPF immediately multicasts any in terms of Latency, Throughput, Convergence time and
changes that is made in the network to all the other hosts. RIP Packet Loss. The result obtained is shown in the form of a bar
advertises the entire routing table, whereas OSPF sends only graph.
the part that has changed. RIP sends the routing table to the
neighbors in every 30 seconds. OSPF multicasts the updated
information only when a change has taken place. It also sends
hello packets in every 10s.

Significant features of OSPF:


i) Fast convergence: OSPF updates any changes in the
network topology to the neighboring routers.
ii) Support for large networks: the network diameter is
virtually limitless.
iii) Fully classless routing protocol
IEEE Sponsored 2nd International Conference on Innovations in Information Embedded and Communication Systems ICIIECS’15

Architecture

6 ROUTERS-R1,R2,R3,R4,R5,R6
5 SWITCHES-SW1,SW2,SW3,SW4,SW5
8 CLOUDS-C1,C2,C3,C4,C5,C5,C7,C8

Fig.3.Analysing the packet loss using Wireshark


Fig.1.Architecture diagram used for analysis(GNS-3 Software)

The results obtained after performing analysis for latency,


throughput, convergence time and packet loss in GNS-3 are
shown below in terms of a bar graph.

Fig.2.The comparison graph showing the performance anlaysis of RIP and


OSPF in terms of Latency, Convergence Time, Throughput and packet loss
Fig.4.After implementing both RIP and OSPF, OSPF is chosen
because of its lower Administrative distance value
IEEE Sponsored 2nd International Conference on Innovations in Information Embedded and Communication Systems ICIIECS’15

TABLE.II.COMPARISON OF RIP AND OSPF other hand has fast convergence and efficiently uses the
METRICS RIP OSPF bandwidth. Since OSPF has fast convergence, packet loss is
No of nodes Maximum of 16 N number of nodes less. The throughput rate is higher for OSPF than RIP. Hence
nodes only can be can be used reliability and efficiency of OSPF is more than RIP. OSPF has
used the least cost of transmission compared to RIP. When OSPF
Shares Shares the whole Shares the link alone and RIP are implemented together in a network, OSPF is
database chosen over RIP as it has a lower administrative distance
Data known Contains details Contains details of value than RIP. OSPF is the best choice for larger networks
only about its the entire database and RIP can be limited to simple and small networks.
neighbors
Advertising time The The advertisements
advertisements are sent in every 10s
are sent in every
30s
References
Advertising data The whole Only the updated data
database is is advertised which
advertised each minimizes overhead
time which
results in [1]. Jagdeep Singh, Rajiv Mahajan ,“Simulation Based
overhead comparitive study of RIP, OSPF and EIGRP”,
Algorithm used Distance vector Link state algorithm International Journal of Advanced Research in
algorithm Computer Science and Software Engineering,
Error detection It cannot detect It can detect errors or Vol3,Iss.8, pp.1-4, August 2013.
errors or failures failures [2]. Rajendra kumar, Jitendra Vats, Arvind
Metric used It uses hop count It uses cost metrics Kumar,“Comparitive Study of Routing Protocols”,
Summarization Auto- Manual International Journal of Computer Science and
summarization summarization Information Technology, Vol.3, iss.6, pp.1-5,2011
Implementation RIP is easy to OSPF consists of [3]. Vetriselvan.V, Mahendran.M , “Survey on RIP,
implement complex processes OSPF and EIGRP Routing protocols”, International
Journal of Computer Science and Information
Network Efficient for Efficient for large
Technology, Vol.5(2), iss.3, pp.2-7, 2014.
small networks networks
[4]. Shah.A, Waqs J. Rana ,“Performance analysis of
Packet loss More when there Comparatively less
RIP and OSPF protocols in Network using OPNET”,
is a failure than RIP
International Journal of Computer Science Issues,
Latency Latency is more Latency is less
Vol.10, Iss.6, pp. 2-5,November 2013.
Throughput Less information Throughput is more [5]. A. Abu,” Comparison study between IPV4 &
is processed as as the Latency is less. IPV6”,International Journal of Computer Science
the Latency is Throughput=Packet Issues,Vol.10, No 2, pp.3-4,2012.
more. size/ Latency [6]. Dan Pei,Xiaoliang Zhao, LAn Wang “Detection of
Throughput is Invalid Routing Announcements in RIP Protocol”
computed as ,International Journal of Computer
Packet Applications”, Volume 665-0-5622 2652-6/10,June
Size/Latency 2010.
Administrative AD value is 120 AD value is 110 [7]. R. Coltun,et al., "RFC 5340 OSPF for
Distance IPv6,"IETF,vol.24, Iss 6,pp.352-365,2010.
[8]. IKram Ud Din,Saeed Mahfooz, Muhammad Adnan,
VI. Conclusion: “Analysis of the Routing Protocols in Real Time
Transmission: A Comparitive Study”,Global Journal
RIP sends the whole routing information through periodic of Computer Science and Technology,Vol 4, Iss.5,
updates which overloads the network and results in pp.4-6,2010.
unnecessary waste of bandwidth. RIP has a high latency value [9]. Pankaj Rakheja, Prabhjot kaur, Anjali gupta, Aditi
than OSPF. RIP has higher convergence time than OSPF and Sharma, “Performance Analysis of RIP,
hence it is suitable only for smaller networks. OSPF on the OSPF,IGRP and EIGRP Routing Protocols in a
IEEE Sponsored 2nd International Conference on Innovations in Information Embedded and Communication Systems ICIIECS’15

Network”,International Journal of Computer


Applications(0975-888)Volume 48-No.18, pp.210-
224,2012.
[10]. S. G. Thornier, “Dynamic Routing protocol
implementation decision between EIGRP, OSPF and
RIP based in technical background using OPNET
Modeler”, in Proc.Second International Conference
on Computer and Network
Technology(ICCNT),Bangkok,Thailand,
Pp 191-195,2010.
[11]. B. Fortz and M. Thorup,(2002)
“Optimizing OSPF/IS–IS weights in a
changing world,” IEEE Journal on Selected Areas
in Communications,vol.20,no.4,pp.75-80,2002.
[12]. www.safaribooksonline.com

You might also like