- Open Access
- Total Downloads : 1485
- Authors : Gargi Pandey, Sanjay Kumar, V. K. Patle
- Paper ID : IJERTV2IS70647
- Volume & Issue : Volume 02, Issue 07 (July 2013)
- Published (First Online): 26-07-2013
- ISSN (Online) : 2278-0181
- Publisher Name : IJERT
- License: This work is licensed under a Creative Commons Attribution 4.0 International License
Comparative Study Of Ns2 And Opnet Simulator For Aodv And Dsr Routing Protocols In Manet
Comparative Study Of Ns2 And Opnet Simulator For Aodv And Dsr Routing Protocols In Manet
Gargi Pandey, Sanjay Kumar, V. K. Patle
School of Studies in Computer science & IT
Pt. Ravishankar Shukla University, Raipur (Chhattisgarh) 492010 India
Now a days Wireless communication system is on trend. Next invention of wireless communications will take in both infrastructure and infrastructure-less known as mobile Ad hoc networks (MANETs).MANET is a self-configured infrastructure-less network, which contain electronic nodes or devices without any fixed access point or base station. MANET has no any fix topology, because its nodes are movable. In this network, all nodes are work as host and also as router. Routing is an important part of MANET because of the limited radio propagation range and frequently varying of topology. Several On- demand routing protocols are proposed for MANET. These include AODV and DSR protocol. These two protocols are most famous and appropriate protocols used in general way. So that here uses these routing protocol for the work. We are using End-to-End Delay, PDF, Packets loss and Throughput performance parameters for analysis.
This work is started for analysis of simulators used for MANET routing protocols. Work is done for two simulators NS2 (Network Simulator 2) and OPNET Modeler 14.5.
We concluded that OPNET is better than NS2. OPNET is user friendly in nature, and can easily run on Windows, which is generally used in environment. And it only require Visual Studio
.NET and C++ libraries. An unknown person can also work on it without more difficulties.
KEYWORDS: MANET, AODV, DSR, NS2, OPNET
-
MANETs are infrastructure-less, self- organizing, rapidly deployable wireless networks, they are highly suitable for applications involving special outdoor events, communications in regions with no wireless infrastructure, emergencies and natural disasters, and military operations [1].
An ad-hoc network is a collection of wireless mobile hosts forming a temporary network without the aid of any stand-alone infrastructure or centralized administration [2]. Mobile Ad-hoc networks are self-organizing and self-configuring multi-hop wireless networks where, the structure of the network changes dynamically. This is mainly due to the mobility of the nodes [3]. Nodes in these networks utilize the same random access wireless channel, cooperating in a friendly manner to engaging themselves in multi-hop forwarding. The node in the network not only acts as hosts but also as routers that route data to/from other nodes in network [4].
Each device in a MANET is free to move independently in any direction, and will therefore change its links to other devices frequently. Each must forward traffic unrelated to its own use, and therefore be a router. Routing i n ad-networks has been a challenging task ever since the wireless networks came into existence. The major reason for this is the constant change in network topology because of high degree of node mobility. A number of protocols have been developed for accomplish this task. Routing is the process of selecting paths in a network along which to send network traffic. In packet switching networks, routing directs packet forwarding, the transit of logically addressed packets from their source
toward their ultimate destination through intermediate nodes.
An ad hoc routing protocol is a convention, or standard, that controls how nodes decide which way to route packets between computing devices in a mobile ad-hoc network [5].
In ad hoc networks, nodes do not start out familiar with the topology of their networks; instead, they have to discover it. The basic idea is that a new node may announce its presence and should listen for announcements broadcast by its neighbours. Each node learns about nodes nearby and how to reach them, and may announce that it, too, can reach them.
-
Routing protocol in MANET can be classified into several ways depending upon their network structure, communication model, routing strategy, and state information and so on but most of these are done depending on routing strategy and network structure [5, 6 and 7]. Based on the routing strategy the routing protocols can be classified into two parts: 1.Table driven and 2. Source initiated (on demand) while depending on the network structure these are classified as flat routing, hierarchical routing and geographic position assisted routing [6]. Flat routing covers both routing protocols based on routing strategy.
Routing protocols for mobile ad-hoc networks can be broadly classified into two main categories:
-
Table Driven Routing Protocols (Proactive)
Proactive or table-driven routing protocols attempts to maintain consistent and up-to date routing information from each node to every other node in the network. These protocols require each node to maintain one or more tables to store routing information, and they respond to change in network topology by propagating route update throughout the network to maintain consistent
network view [8]. Certain proactive routing protocols are Destination Sequenced Distance Vector (DSDV), Wireless Routing Protocol (WRP), Global State Routing (GSR) and Cluster- head Gateway Switch Routing (CGSR).
-
On-Demand Routing Protocols (Reactive)
In reactive or on demand routing protocols, the routes are created as when required. When a source wants to send to a destination, it invokes the route discovery mechanism to find the path to the destination. This process is completed when once a source is found or all possible route permutation has been examined. Once a route has been discovered and established, it is maintained by some form of route maintenance procedure until either the destination becomes inaccessible along every path from the source or route is no longer desired [8]. Certain proactive routing protocols are Ad-hoc On-Demand Distance Vector (AODV), Dynamic Source Routing (DSR), Temporally Ordered Routing Algorithm (TORA), Associatively-Based Routing (ABR), Signal Stability Routing (SSR).
Figure-1: Classification of MANET routing protocol
In this paper two ad-hoc routing protocols are used, AODV and DSR. AODV and DSR are Reactive (On demand) Routing protocols.
-
-
-
Ad Hoc On-Demand Distance Vector (AODV): The AODV [8] algorithm enables dynamic, self-starting, multi-hop routing between participating mobile nodes wishing to establish and maintain an ad hoc network. AODV allows mobile nodes to obtain routes quickly for new destinations, and does not require nodes to maintain routes to destinations that are not in active [9]. The AODV is a distance vector routing for mobile ad-hoc networks. AODV is an on- demand routing approach, i.e. there are no periodical exchanges of routing information. It offers quick adaptation to dynamic link conditions, low processing and memory overhead, low network utilization, and determines unicast routes to destinations within the ad hoc network [10]. The protocol consists of two phases:
-
Route Discovery, and
-
Route Maintenance.
-
Route Discovery
A node wishing to communicate with another node first seeks for a route in its routing table. If it finds one the communication starts immediately, otherwise the node initiates a route discovery phase. The route discovery process consists of a route-request message (RREQ) which is broadcasted. If a node has a valid route to the destination, it relies to the route-request with a route-reply (RREP) message. Additionally, the replying node creates a so called reverse route entry in its routing table which contains the address of the source node, the number of hops to the source, and the next hop's address, i.e. the address of the node from which the message was received. A lifetime is associated with each reverse route entry, i.e. if the route entry is not used within the lifetime it will be removed [10].
-
Route Maintenance
The second phase of the protocol is called route maintenance. It is performed by the source node and can be subdivided into: i) source node moves: source node initiates a new route discovery
process, ii) destination or an intermediate node moves: a route error message (RERR) is sent to the source node. Intermediate nodes receiving a RERR update their routing table by setting the distance of the destination to infinity. If the source node receives a RERR it will initiate a new route discovery. To prevent global broadcast messages AODV introduces a local connectivity management. This is done by periodical exchanges of so called HELLO messages which are small RREP packets containing a node's address and additional information [10].
-
-
-
Dynamic Source Routing Protocol (DSR): The dynamic source routing (DSR) protocol is an on- demand routing protocol that is based on the concept of source routing. Mobile nodes are required to maintain route caches that contain the source routes of which the mobile is aware. Entries in the route cache are continually updated as new routes are discovered. The protocol consists of two major phases: Route discovery and route maintenance [11]. Each node in the network maintains a route cache in which it caches the routes it has learned. To send data to another node, if a route is found in its route cache, the sender puts this route (a list of all intermediate nodes) in the packet header and transmits it to the next hop in the path. Each intermediate node examines the header and retransmits it to the node indicated after its id in the packet route. If no route is found, the sender buffers the packet and obtains a route using the route discovery process described below [12]. When a mobile node has a packet to send to some destination, it first consults its route cache to determine whether it already has a route to the destination. If it has an unexpired route to the destination it will use this route to send packets. On the other hand, if the node does not have such a route to the destination it initiates route discovery by broadcasting a route request packet this route request contains the address to the destination along with the source nodes address and a unique identification number. A
route reply is generated when the route request reaches either the destination itself, or an intermediate node whose route cache contains an unexpired route to the destination. Route maintenance is a procedure, which maintains transmission of packets in the routing through the use of route error packets and acknowledgement. Route error generated at a node, when data link layer encounters transmission error. Acknowledgements are used to verify the correct operation of the route link [13]. DSR uses a reactive approach which eliminates the need to periodically flood the network with table update messages which are required in a table driven approach. The intermediate nodes also utilize the route cache information efficiently to reduce the control overheads. The disadvantage of DSR is that, the route maintenance mechanism does not locally repair a broken down link. Even though the protocol performs well in static and low mobility environments, the performance degrades rapidly in with increasing mobility [14].
-
-
In this section we have described about the tools used in paper for analysis of ad-hoc routing protocol performance i.e. about simulation tool, Simulation Setup, performance metrics used and finally the performance of simulators for protocols is represented by using graph.
-
Simulation Tool
A simulator is software that imitates selected parts of the behaviour of the real world and is normally used as a tool for research and development [15]. Network simulators are used by people from different areas such as academic researchers, industrial developers, and Quality Assurance (QA) to design, simulate, verify, and analyze the performance of different networks protocols. With their help, one can design different network topologies using various types
of nodes such as end-hosts, hubs, network bridges, routers, optical link-layer devices, and mobile units [16, 17].
Type
Network simulators name
Commercial
OPNET, QualNet
Open source
NS2, NS3, OMNeT++, SSFNet,
J-Sim
Table 1: classification of Network Simulators
-
Overview of NS2 and OPNET
NS2 (Network Simulator-2):- Network Simulator [18, 19] (specially higher versions, like NS-3) has been used to evaluate MNAETs but the accuracy of results with lower versions (NS-2) are questionable since the MAC protocols, packet for- mats, and energy models are very different from those of typical ad-hoc network platforms. The original NS is a discrete event simulator targeted at networking research [20]. NS2 is the second version of NS (Network Simulator). NS is originally based on REAL network simulator [21].
OPNET Modeler 14.5:- OPNET is the registered commercial trademark and the name of product presented by OPNET Technologies incorporation. It is one of the most famous and popular commercial network simulators by the end of 2008. Because of it has been used for a long time in the industry, it become mature and has occupied a big market share [22].
-
Simulation Setup
-
The performance analysis is done on Fedora
17 Operating System. Nsallinone-2.35 was installed on the platform. And OPNET Modeler
14.5 was installed on the platform Windows XP.
Seed |
1.0 |
Simulation tool used |
NS-2.35, OPNET Modeler 14.5 |
Simulation Time |
100 Sec |
Simulation Area |
1000*1000 |
Rate |
5.5 mbps |
Traffic Type |
TCP |
Number Of Nodes |
100 |
Routing Protocol |
DSR,AODV |
Mobility |
Random Way Point |
Seed |
1.0 |
Simulation tool used |
NS-2.35, OPNET Modeler 14.5 |
Simulation Time |
100 Sec |
Simulation Area |
1000*1000 |
Rate |
5.5 mbps |
Traffic Type |
TCP |
Number Of Nodes |
100 |
Routing Protocol |
DSR,AODV |
Mobility |
Random Way Point |
while discovering path from source to destination [25].
Avg. E-to-E Delay =
3. Throughout: Throughput is the average rate of successful data packets received at destination. It is usually measured in bits per second (bit/s or bps), and sometimes in data packets per second [26].
.
Table 2: simulation setup
Throughput =
-
Performance Metrics Used
The following metrics are used in this paper for the analysis of AODV and DSR routing protocols:
-
Packet Delivery Ratio
-
Average End to End elay
-
Throughout
-
Packet dropped (loss) in bits
-
Packet Delivery Ratio (PDR): This is the ratio of total number of packets successfully received by the destination nodes to the number of packets sent by the source nodes throughout the simulation [23].
PDR =
-
Average End to End Delay: Average end-to-end delay signifies how long it will take a packet to travel from source to destination node. It includes delays due to route discovery, queuing, propagation delay and transfer time [24]. This metric is useful in understanding the delay caused
4. Packet dropped (loss):
= Total Sent Packets Total Received Packet
-
-
-
Simulation result Analysis
Analysis is based on comparison of NS2 and OPNET performance. Below comparative graphs are presented for AODV and DSR with individual parameters i.e., PDF, throughput, Average End-to-End Delay, Packet loss. Graphs are plotted for NS2 and OPNET comparison. Graph is easier way to analyse and compare any data or properties. So we are using graph to show comparison. It is easily understandable for unknown person also.
-
Packet loss: Graph 1 and 2 shows packets loss in AODV and DSR routing protocol. In AODV protocol, packet loss for NS2 is negligible as compared to OPNET. But in second graph, it is opposite, for DSR packet loss in OPNET is constant. But in NS2, it is frequently increased. In AODV, packet dropped graph is very high,, and frequent for OPNET, so there is a large number of data packets are dropped during transmission, therefore it not transmitted accurate data.
20000
Packet loss (OPNET v/s NS2)
PDF (OPNET v/s NS2)
18000
16000
14000
paket loss
paket loss
12000
10000
8000
6000000
5000000
4000000
P
D 3000000
6000
4000
2000
0
1
8
15
22
29
36
43
50
57
64
71
78
85
92
99
1
8
15
22
29
36
43
50
57
64
71
78
85
92
99
-2000
F 2000000
1000000
1
9
17
25
33
41
49
57
65
73
81
89
97
1
9
17
25
33
41
49
57
65
73
81
89
97
0
-1000000
aodv_pcktDropped(opnet) aodv_dropped(ns2)
aodv-pdf(opnet) aodv_pdf(ns2)
Graph 1 Graph 3
p 80
a 70
c
k 60
e 50
t 40
l 30
o 20
s 10
s
1
8
15
22
29
36
43
50
57
64
71
78
85
92
99
1
8
15
22
29
36
43
50
57
64
71
78
85
92
99
0
Packet loss (OPNET v/s NS2)
7000000
6000000
P 5000000
D 4000000
F
3000000
2000000
1000000
1
9
17
25
33
41
49
57
65
73
81
89
97
1
9
17
25
33
41
49
57
65
73
81
89
97
0
-1000000
PDF (OPNET v/s NS2)
dsr_pcktDropped(opnet) dsr_dropped(ns2)
dsr_pdf(opnet) dsr_pdf(ns2)
Graph 2
-
PDR: Graph 3 and 4 shows PDF variation between NS2 and OPNET. In NS2, for both cases AODV and DSR, PDF is very down and constant. And in OPNET, PDF graph is not good, but much better than NS2. For AODV protocol, PDF is much better than DSR. This graph is plotted for
100 nodes. Observed from my previous paper [27], if number of nodes is less, than DSR gives good result for PDF with NS2. Its also possible by increasing the pause time.
Graph 4
-
Throughput: Graph 5 and 6 shows throughput for AODV and DSR. Value obtained for throughput is good in OPNET simulator. AODV protocol is gives good throughput in OPNET simulator. But NS2 performs very worst. In DSR protocol, throughput goes down for OPNET, but as compare to NS2 it is well performed. AODV is good for throughput rather than DSR.
throughput (OPNET v/s NS2)
30000000
t
h 25000000
r 20000000
o
u 15000000
g 10000000
h
p 5000000
u
1
9
17
25
33
41
49
57
65
73
81
89
97
1
9
17
25
33
41
49
57
65
73
81
89
97
t 0
-5000000
350
300
D 250
E
L 200
A 150
Y 100
50
1
8
15
22
29
36
43
50
57
64
71
78
85
92
99
1
8
15
22
29
36
43
50
57
64
71
78
85
92
99
0
E-to-E Delay (OPNET v/s NS2)
AODV-Throughput(opnet) aodvthroughput(ns2) aodv_delay(ns2) aodv_delay(opnet)
Graph 5 Graph 7
throughput (OPNET v/s NS2)
t 12000000
h
r 10000000
o
u 8000000
g 6000000
h
p 4000000
u 2000000
t
1
10
19
28
37
46
55
64
73
82
91
100
1
10
19
28
37
46
55
64
73
82
91
100
0
-2000000
600
D 500
E
L 400
A 300
Y
200
100
1
8
15
22
29
36
43
50
57
64
71
78
85
92
99
1
8
15
22
29
36
43
50
57
64
71
78
85
92
99
0
E-to-E Delay (OPNET v/s NS2)
dsr_throughput(opnet) dsr_throughput(ns2)
dsr_delay(opnet) dsr_delay(ns2)
Graph 6
-
Avg. E-to-E Delay: Graph 7 and 8 shows E-to-E delay for AODV and DSR. In both cases OPNET performs better than NS2. In OPNET, delay is very low, and its variation is not so much frequent. But in NS2, delay is very high, and it vary high to low and again low to high with time. E-to-E Delay should be low for a good data transmission, but in NS2, delay is in high pick point, which not provides accuracy in data transmission.
Graph 8
From above graphs, and analysis of these graphs, we can say that OPNET is better than NS2. OPNET provides Graphical User Interface, which easier to use. And it provides many other fields for research. One drawback of OPNET is that, before every simulation, it updates all the file and features, so it takes more time for simulation.
Comparison table of NS2 and OPNET: According to features
NS2
OPNET
Open source (easily available)
Commercial level simulator
Kernal code is open source.
Opnet modeller kernel code is not open source.
Command based
GUI and drag and drop function based
Supported by both platform : Windows (CygWin) and UNIX
Supported by only Windows version
No extra requirement are needed for NS2
Visual studio and C++ library are must for OPNET
Table 3
According to parameters used
NS2
OPNET
E-to-E Delay
Worst
Very Good
PDF
Constant (bad)
Frequently change
Packet Loss
Less in
AODV, but very much for DSR
More data loss in AODV, but in DSR
negligible
Throughput
Worst
good
In this work, a comparative study between two common network simulation tools, namely, ns-2 and OPNET Modeler, has been carried out, involving several parameter metrics of MANETs routing protocol for AODV and DSR. Some important differences between the two simulators
have been reported. After describing the scenarios, the obtained results using OPNET in scenario 2 are shown, comparing them with the scenario 1 results using ns-2.The conclusions based on the simulation results for the different MANET scenarios are that the trends of all the metrics in both simulators were rather consistent, although in certain experiments absolute values are quite different. From the results obtained we can conclude that OPNET is good for MANET routing protocol scenarios, it is user friendly, and easy to use, because of no need to remember the commands. But also NS2 is easily available tool.
In future, this experiment can be done for other routing protocols. Today extended version of NS2, named NS3 is also available, which supports GUI functionality. So that in future, OPNET can be compared with NS3. This work is done with few parameters; this can be extended for more parameters. And also the comparison can be made for other simulators.
-
C. E. Perkins ., Ad Hoc Networking, Addison-Wesley: 1-28, 2001.
-
David B. Johnson and David A.Maltz., Dynamic source routing in ad hoc wireless networks, Technical report, Carnegie Mellon University, 1996.
-
Xiaoyan Hong, Kaixin Xu, and Mario Gerla. Scalable routing protocols for mobile ad hoc networks, 2002.
-
Mehran Abolhasan, Tadeusz Wysocki, and Eryk Dutkiewicz. A review of routing protocols for mobile ad hoc networks, Technical report, Telecommunication and Information Research Institute, University of Wollongong, Wollongong, NSW 2522; Motorola Australia Research Centre, 12 Lord St., Botany, NSW 2525, Australia, 2003.
-
kapang lego, pranav kumar singh, dipankar sutradhar, Comparative Study of Adhoc Routing Protocol AODV, DSR and DSDV in Mobile Adhoc NETwork, Indian Journal of Computer Science and Engineering Vol. 1 No. 4 364-371, ISSN : 0976- 5166, 2011.
-
B. Williams, T. Camp, Comparison of broadcasting techniques for mobile ad hoc networks, in: Proceedings of the ACM
International Symposium on Mobile Ad Hoc Networking and Computing (MOBIHOC 2002), pp. 194205, 2002.
-
Elizabeth M. Royer and Chai-Keong Toh. A review of current routing protocols for ad-hoc mobile wireless networks,Technical report, University of California and Georgia Institute of Technology, USA, 1999.
-
Nor Surayati Mohamad, Usop Azizol Abdullah, Ahmad Faisal and Amri Abidin, Performance Evaluation of AODV, DSDV & DSR Routing Protocol in Grid Environment, IJCSNS International Journal of Computer Science and Network Security, VOL.9 No.7, July 2009.
-
Mobile Ad Hoc Networking Working Group AODV, http://www.ietf.org/rfc/rfc3561.txt, retrived on January 11, 2013.
-
Parma Nand, Dr. S.C. Sharma, Performance study of Broadcast based Mobile Ad-hoc Routing Protocols AODV, DSR and DYMO, International Journal of Security and Its Applications, Vol. 5 No. 1, January 2011.
-
David Oliver Jörg, Performance Comparison Of MANET Routing Protocols In Different Network Sizes, Computer Science Project,2003.
-
Rajendra V. Boppana, Anket Mathur, Analysis of the Dynamic Source Routing Protocol for Ad Hoc Networks, CS Department, UT San Antonio, San Antonio, TX 78249. USA, Workshop on Next Generation Wireless Networks, December 2005.
-
C.E. Perkins and E.M. Royer, Ad-hoc on Demand Distance Vector Routing Protocols, in proceeded 2nd IEEE work shop mobile computing system and applications, new ore leans, Loss Angelis, pp 90-100, February 2011.
-
Pratik Gite, Sanjay Thakur, Comparative Study and Simulation Based Analysis of MANET Routing Protocols Using NS-2, International Journal of Emerging Science and Engineering (IJESE) ISSN: 23196378, Volume-2, Issue-3, January 2013.
-
A.K.Dwivedi, O.P.Vyas, An Exploratory Study of Experimental Tools for Wireless Sensor Networks, Wireless Sensor Network, 2011, 3, 215-240
doi:10.4236/wsn.2011.37025 Published Online July 2011.
-
JianliPan, A Survey of Network Simulation Tools: Current Status and Future Developments, project report,jp10@cse.wustl.edu, retrieved on Jan, 2013.
-
Yet another Network Simulator, http://yans.inria.fr/code/yans/?summary, March 2013.
-
I. Downard, Simulating Sensor Networks in NS-2, Naval Research Laboratory Formal Report 5522, April 2004.
-
Network Simulator, http://www.isi.edu/nsnam/ns/index.html, at 5 P.M, 5 December, 2012.
-
http://www.isi.edu/nsnam/ns/; NS2 official website, January, 2013.
-
REAL 5.0 simulator overview, http://www.cs.cornell.edu/skeshav/real/overview.html, March, 2013.
-
OPNET Modeler, http://www.opnet.com/ , January 2013.
-
Parul Sharma, Arvind Kalia And Jawahar Thakur, Performance Analysis Of Aodv, Dsr And Dsdv Routing Protocols In Mobile Ad-Hoc Network (Manet), Journal of Information Systems and Communication ISSN: 0976-8742 & E-ISSN: 0976-8750, Volume 3, Issue 1, pp.-322-326, 2012.
-
S.P. Setti, K. N. Raju and K. N. Kumar, Performance Evaluation of AODV in Different Environments, International Journal of Engineering Science and Technology, Volume 2, Number 7, pp: 2976-2981, 2010.
-
Amandeep, Gurmeet Kaur, Performance Analysis Of Aodv Routing Protocol In MANETs, International Journal of Engineering Science and Technology (IJEST), ISSN: 0975- 5462 Vol. 4 No.08 August 2012.
-
Parma Nand, Dr. S.C. Sharma,Comparative study and Performance Analysis of FSR, ZRP and AODV Routing Protocols for MANET, 2nd International Conference and workshop on Emerging Trends in Technology (ICWET),Proceedings published by International Journal of Computer Applications® (IJCA), 2011
-
Gargi Pandey, Sanjay Kumar, V. K. Patle, Effect Of Pause Time And Network Size In Various Routing Protocol: MANET, Proceeding of the National Conference of Educational and Research Scenario of Mathematical and Computer Sciences,Rajim, during January 29-30, 2013.