Aodv and DSR
Aodv and DSR
----------------------------------------------------------************************************-----------------------------------------------------
Abstract:
Due to rapid advance in communication technology, the current demand is for wireless network than wired
network. Wireless communication technologies have brought in fundamental changes in telecommunication and computer
networking. Wireless networks include MANETS (Mobile ad hoc networks) which is a collection of mobile nodes that
communicate through wireless links and have no fixed topology or central administration. The task of sending packets between
nodes called routing is done in MANET by some routing protocols. During last few years, a variety of different routing
protocols that address multi-hop ad-hoc network have been developed. These protocols have been efficiently designed and their
performances have been evaluated according to different performance parameters. Routing protocols vary according to network
type. Some of the best known protocols are AODV, DSR and DSDV. While AODV and DSR are reactive i.e., they are on-
demand; DSDV is proactive protocol i.e., they are table driven. This paper presents a survey on routing protocols namely
AODV, DSR and DSDV to find the best suited for wireless networks.
----------------------------------------------------------************************************-----------------------------------------------------
I. INTRODUCTION
Any communication network is either wired or
wireless and many protocols have been designed for it. In
wired networks, communication is done between the nodes
through physical cables. TCP/IP protocol is best suited for the
wired network. In wireless networks, wireless data
connections are used for connecting nodes. There are two
types of wireless network, which are infrastructure networks
and ad-hoc networks .In an infrastructure network, base Fig. 1 Routing Protocols
stations are connected through wires, also called cellular The rest of the paper is organised as follows: Section II gives
network. In an ad hoc network, also called infrastructure less brief description of AODV, Section III gives a description
networks, there is no base station, each mobile node acts as a about DSR, Section IV gives the description of DSDV and
router. The mobile nodes in an ad hoc network randomly finally Section V discusses about the conclusion derived.
move resulting in a dynamic topology [5].
MANET is a wireless mobile ad hoc network having no I. AODV
fixed routers wherein wireless nodes randomly move to form
a network without any decided infrastructure or topology. Ad hoc On Demand Distance Vector (AODV) is a purely
Routing is task of forwarding packets from one node to reactive routing protocol which starts a route discovery
another in a network. Routing in MANET is done for finding process only when it has to send data packets to another
an optimized path between source and destination. MANET neighboring node and has no information about the route to
can be simulated using NS2 simulator. Many efficient routing that particular node. This is called the route discovery process
protocols have been defined for MANETS for providing better in AODV which is “on-demand” i.e., route to destination is
performance. Routing protocols are classified into proactive found only when it is required. AODV makes use of a route
and reactive protocols. In proactive protocols, the route is pre- discovery algorithm which is done in broadcast fashion for
decided in a routing table while sending packets from source finding the route. The destination node then sends a route
to destination. Examples are DSDV (Destination Sequence reply message to the source node in a unicast way [4]. AODV
Distance Vector) and OLSR (Optimised Link State Routing) uses sequence numbers which are maintained at each
protocol. In reactive protocols, routing is done on demand that destination node in order to determine freshness of routing
is only when packets are to be sent and there is no pre-decided information and to avoid any routing loops. These sequence
path in routing table. Examples are DSR (Distance Source numbers are carried by all the routing packets [1]. Ad-hoc On-
Routing) and AODV (Ad hoc On Demand Distance Vector) demand distance vector (AODV) makes use of traditional
protocol. routing tables, one route entry per destination that the node is
communicating with.
International Journal of Computer Techniques - Volume 2 Issue 1, 2015
It does not have to periodically exchange route information the source node. In case if the link is affected by any break,
with the neighbouring nodes. In AODV, each node maintains then a RERR message is generated and broadcasted. After
a route table for the destination node. A route table contains receiving the RERR message, the source node generates a new
the following information: active neighbours for the RREQ message and broadcasts it [3].
route ,destination address and its sequence number, hop count
to the destination, and expiration time for the table which is
updated each time the route is used[7]. For a specified period
of time, if the route is not used, then it is discarded.
A. Working of AODV
1) Route discovery:
Whenever the source node has to send data packets to the
destination node, the source node broadcast a RREQ message
to all the neighbouring nodes. This message is then forwarded
to all the intermediate nodes till it reaches the desired
destination node. If the destination is found, it replies back
with a RREP message and hence a route is established
between the source and destination. A Hello message
indicates presence of the nodes, if not received from particular
node then the neighbouring node can assume that the node has
moved away[6].
2) Route Maintenance:
A route that has been discovered between a source node and
destination node is maintained only as long as it is needed by
A. Working
Fig. 2 AODV Algorithm 1) Route Discovery: When a source node wants to send data
packets to the destination node, it finds a route to the
Advantages
destination. This process is used only when source node wants
In AODV routing protocol there is no central
to communicate with destination and has no path information
administration system to control the routing process. Reactive
to the destination. This is called Route Discovery process.
protocols like AODV tend to reduce the control traffic
2) Route Maintenance: The pre-decided routes are not used in
messages. AODV dynamically updates according to the
case of network topological changes. In this case, the source
changes in network topology. The AODV protocol reduces
nodes generate another route to the destination or else start the
storage and energy consumption.
route discovery process again. This is called Route
Maintenance. Route maintenance basically handles breaks in
C. Disadvantages
route. In case of transmission errors, it generates route error
AODV gathers limited amount of routing information and
messages [6], [9].
route learning is limited only to the source of any routing
packets being forwarded. These causes AODV to rely on a
B. Advantages
route discovery flood .Uncontrolled flooding may cause the
DSR can easily handle load balancing by allowing multiple
broadcast storm problem. The performance of the AODV
routes to any destination. DSR leads to increased robustness.
protocol is poor in larger networks and also AODV is
Another advantage is that intermediate nodes can learn about
vulnerable to various kinds of attacks in network [2].
the routes from the source through the packets they receive.
Source routing avoids the need for updating routing
information in the intermediate nodes .Also it avoids routing
III. DSR loops as complete routes are determined by a single node.
The Dynamic Source Routing protocol (DSR) is a Also in situations wherein mobility is low, DSR reduces
simple and efficient routing protocol used in multi-hop bandwidth consumption. DSR supports rapid rates of mobility
wireless ad hoc networks of mobile nodes [9].The DSR [8].
protocol is a reactive In routing protocol which means it
requests routes only when needed. It is an on-demand routing
C) Disadvantages
As DSR makes use of source routing in which source Destination Next Number Sequence Install
determines complete address to the destination which is stored Hop Of Hops Number Time
in each packet headers. As a result every packet has to carry a
routing overhead. Also finding routes in DSR is a costly in A A 0 A46 001000
terms of time, bandwidth and energy [5].
B B 1 B36 001200
C C 2 C28 001500
IV. DSDV
Naturally the table contains description of all possible paths
Destination-Sequenced Distance Vector Routing protocol reachable by node A, along with the next hop, number of hops
(DSDV) is one of the proactive protocols in demand. It is a and sequence number. The list which is maintained is called
typical Table-Driven Routing Protocol, which is based on routing table. The routing table contains the following:
Bellman-Ford routing mechanism [10]. DSDV is one of the
earliest routing protocols proposed and provides a baseline (1) All available destinations’ IP address
proactive distance vector algorithm for performance (2) Next hop IP address
comparison. MANET contains number of nodes and each (3) Number of hops to reach the destination
node maintains a routing table which has a list of all known (4) Sequence number assigned by the destination node
destination nodes within the given network and with number (5) Install time
of hops which are required to reach particular node. In DSDV,
each route is marked with a sequence number which is The sequence number is used to distinguish stale routes
originated by the destination itself which indicates how old from new ones and thus avoid the formation of loops. The
the route is. stations periodically transmit their routing tables to their
Each node has unique sequence number, this is done by immediate neighbours. A station also transmits its routing
assigning two greater than the old one (i.e. an even sequence table if a significant change has occurred in its table from the
number) every time. As soon as the route update with a higher last update sent. So, the update is both time-driven and event-
sequence number is received, the old route is replaced. These driven. It has few drawbacks which are been corrected such as
numbers are generated by the emitter and the emitter needs to (reconstruction of broken or invalid routes, freedom from loop
send out the next update with this number. It uses Full dump in routing table and less convergence time.
or Incremental update to reduce network traffic generated by
route updates. The broadcast of route updates is delayed by The process flow from the source to destination is shown
settling time [11]. below in Fig. 3.The figure shows how Host ‘A ‘creates a
Updates are transmitted periodically when there is any provisional route to destination ‘T’ when the intermediate link
change in the network topology. If there are different route from ‘A’ to ‘B’ breaks [4]. Host ‘A’ then broadcasts ROUTE-
with same sequence number, the route with better metric is REQUEST packets to its intermediate one hop neighbours.
used with the most recently updated time. Stale entries are After getting the request the Adhoc hosts C, E, I, G then
those entries that have not been updated for a while. Such responds with ROUTE-ACK packets which have hop count
entries as well as the routes using those nodes as next hops are and the Route update time to the Adhoc host ‘A’. Host A then
deleted[11], [12].While DSDV itself does not appear to be resumes sending packets to the destination node T after
much used today, Babel is an attempt at making DSDV more selecting the lowest Hop count metric and the path which has
robust, more efficient and more widely applicable while most recent routing update time. Later as any Adhoc host
staying within the framework of proactive protocol moves in the range of host A then the routing table of host A
gets updated by regular DSDV routing process. After which
A. Working the updated route is taken for forwarding the packet to the
destination host T [4].