Nodes
are
al
lowed to send RREPs back to the source evenwhen they have route information to the destination in their
route caches.
B.
Route Reply Process
When receiving the first RREQ, the destination sends aRREP back to the source. After that, the destination
node
con
sumes
other RREQs. The Route-Number of the RREP is
one
.After receiving RREP packet by the intermediate nodes, if it has not
route
with same length to destination node, theystore the
route
s in their route caches.
The
Route-Number of this routes are zero and used in route maintenance process forimproving the break routes also sending data if there is not
main route.
Look at
the
Fig. 1, suppose that node (H) sends the RREPto the source node (A), a
route
is found and sent to node (A)by RREP is A-C-D-G-F-H. Now, suppose that the RREP isreceived by node (C) which is middle node. Node (C) s
aves
the
route
s
to destination (H
)
which is C
-D-G-F-H
, additionally
node (C) save C-D, C-D-G and C-D-G-F
route
s in the route
caches.
When the source node receive the RREP, it will store the
route
and use that
for transmit data
.
C.
Route Maintenance and Local Recovery Processes
During a transmission session, a problem such as node
mobility, or low battery power might be raised, which can lead
to break an existing route and lose route connectivity. Thismay force a route rediscovery process by flooding RREQsover the network. To avoid this phenomenon,
IM
-
DSR
uses
following mechanism that one of them is local recoverytechniques. Using local recovery techniques is very useful
despite they consume the limited power of each nodes.
Suppose that a node finds a broken link, while sending apacket. At first, it seeks the route cache and deletes all
route
s
include the broken link, and then according to kind of the
packet one of the following items is done:
If transitional packet would be a RREQ, the node would
not send RRER to the source node.
If transitional packet would be a RREP, send RRER to thenode which makes the RREP.
Figure
1
.
Routes Structure in an Ad
-
hoc Network
If transitional packet is a RRER, it would examine howmany times the packet would be saved. If it was
the firsttime
,
the
meaning is, the packet would be saved b
y
examining a route cache and finding
alternate route
. T
he
RRER is sent to destination through that route then theRRER is made and it will report the broken link to thesource of RRER. If it
were
not first
time
or if alternate
route
were
not in the route cache of node, the RRERwould be deleted and only a RRER would be sent to thesource node.
Ther
efore RRER is saved
only
for one time
by the
IM
-
DSR
protocol.
If transitional packet would be data, it would examinehow many times the packet would be saved. If this timewere less than three, the data packet would be sent byexamining their route cache and alternate
route
then itwill send a RRER to the source node. If these times weremore than three or if alternate
route
was not in the route
cache of node the data packet would be deleted and only a
RRER would be sent to the source node. Therefore datap
acket is saved for three times by the IM
-
DSR
protocol.
If very data packet passed the same
route
towards
destination node and they faced the broken link (whilesending), the node which recognized an error, for every datapacket send a RRER to the source node. In order to avoid thisitem every node before sending RRER to source node,examine this is a first RRER or not. If it was not send, a new
RRER send to source node.
Every node which recognizes the broken link and makesthe RRER, examined the route cache in order to find alternate
route
and put it in the RRER, which the node that received theRRER, replaces the
route
in the RRER with the previous
invalid
route
in the route cache.
Fig. 2 shows this matter. The source node (A) sends data to
the
destination
node (H) through A-C-D-H
.
When
node (D
)
sends the data packet, it will find the failure in node (H). Byexamine the route cache, it chooses the alternate
route
D-G-F-H, hence, the data packet is sent to destination node (H
)
through this route, then RRER is made and it is sent to thenode (A). This packet includes the alternate
route
D-G-F-H
.
The node (A) receives the RRER and deletes A-C-D-H f
rom
route cache and replaces A
-C-D-G-F-H.Every middle and source node which receives the RRER,examine those route in route cache which includes the brokenlink and should be deleted from cache and if packet included
alternate route
, exploited that and saved in route cache withnumber two. If in buffer, data packet waiting to send toward
alternate route
destination, it will send through that
route.Such
as the Fig. 2, while passing the RRER, node (C) adds C-D-G-F-H
to the route cache.
If a node who detected a broken link cannot find any
alternate route
in its route cache, so it drops the data packetand sends a RERR without any repaired
route
to the source.After that, because of performing local recovery process bythe node that detects the broken link, the source node does nottrigger the rediscovery process immediately. After detectingthe broken link, node sends a RERR to the source and starts
the local recovery process simultaneously. To repair the route
(IJCSIS) International Journal of Computer Science and Information Security,Vol. 8, No. 6, September 20103http://sites.google.com/site/ijcsis/ISSN 1947-5500