Aodv Guide
Aodv Guide
Node 3
Node 4
Node 1
Node 2
Luke Klein-Berndt
Wireless Communications Technologies Group
National Institute of Standards and Technology
A Quick Guide to AODV Routing
AODV is a method of
routing messages between
mobile computers. It allows
these mobile computers, or
nodes, to pass messages
through their neighbors to Message
nodes with which they
cannot directly
communicate. AODV does Node 3
this by discovering the
routes along which
messages can be passed. Node 4
AODV makes sure these
routes do not contain loops
and tries to find the shortest Node 1
route possible. AODV is
also able to handle changes Node 2
Node 5
in routes and can create
new routes if there is an
error.
2
A Quick Guide to AODV Routing
Node 2
When one node needs to send Node 6
a message to another node that
is not its Neighbor it broadcasts
a Route Request (RREQ) Since Node 3 is not a
Neighboring node, Node
message. The RREQ message 1 has to discover a route.
contains several key bits of It does this by generating Route Request Packet
a Route Request and
information: the source, the broadcasting it.
destination, the lifespan of the Dest: Node 3
Src: Node 1
message and a Sequence Lifespane: 3
Node 1
Number which serves as a ID: 0
unique ID.
3
A Quick Guide to AODV Routing
Node 3 recieves
When Node 1’s Neighbors a Route Reply
receive the RREQ message and adds a Route
Node 6 does not to Node 1 which
they have two choices; if they have a route to goes through
know a route to the Node 3 so it Node 2
rebroadcasts the
destination or if they are the RREQ message
destination they can send a
Route Reply (RREP)
message back to Node 1, Node 3
otherwise they will
rebroadcast the RREQ to RREQ
RREQ Node 4
their set of Neighbors. The
message keeps getting
RREP
rebroadcast until its lifespan is Node 1
up. If Node 1 does not receive
Node 2
a reply in a set amount of Node 5
time, it will rebroadcast the
request except this time the
RREQ message will have a
longer lifespan and a new ID
number. All of the Nodes use
the Sequence Number in the
RREQ to insure that they do Route Reply Packet Route Reply Packet
not rebroadcast a RREQ
Dest: Node 3 Dest: Node 1
Src: Node 1 To Node 1 To Node 3 Src: Node 3
In the example, Node 2 has a Hop Count: 2 Hop Count: 2
ID: 136 Node 2 ID: 136
route to Node 3 and replies to
the RREQ by sending out a
RREP. Node 4 on the other
hand does not have a route to Neighbors
Node 3 so it rebroadcasts the Node 2 has a route to Node 3 it send a
Node 1
Route reply to Node 1. It also send a Route
RREQ. reply to Node 3 so it will know how to
Node 3
contact Node 1.
4
A Quick Guide to AODV Routing
Sequence Numbers
Sequence numbers serve
as time stamps. They allow Node Data
nodes to compare how
Seq #: 136
“fresh” their information on
other nodes is. Every time a
node sends out any type of
message it increase its own
Sequence number. Each Node 3
node records the Sequence
number of all the other
RREP
nodes it talks to. A higher Node 4 RREP
Sequence numbers signifies
a fresher route. This it is RREP
Node 1
possible for other nodes to
figure out which one has Node 2
more accurate information.
Routing List Route Reply Packet
In the example, Node 1 is
Node Next Hop Seq # Hop Cnt
forwarding a RREP to Node Dest: Node 3
4. It notices that the route in 4 4 78 1 Src: Node 4
3 2 128 2 Seq #: 128 < 136
the RREP has a better 2 2 114 1
Hop Count: 3
Seq #: 136
Sequence number than the
route in it’s Routing List.
Node 1 then replaces the
route it currently has with
the route in the Route Reply
When Node 1 forwards the RREP it
also compares it with the route it has
in its Routing List. Since the RREP
has a higher Sequence number it is
newer than the on in the Routing list.
Because of this, Node 1 updates it list
with the new route
5
A Quick Guide to AODV Routing
Error Messages
The Route Error Message (RERR) allows
AODV to adjust routes when Nodes move 1. 2.
Routing Table
around.
6
A Quick Guide to AODV Routing
AODV Characteristics:
• Will find routes only as needed
• Use of Sequence numbers to track accuracy of information
• Only keeps track of next hop for a route instead of the entire route
• Use of periodic HELLO messages to track Neighbors
References:
• IETF Manet Working Group AODV Draft
http://www.ietf.org/internet-drafts/draft-ietf-manet-aodv-08.txt