Você está na página 1de 1

START

sourceNode
sends DATA to
destinationNode

AODV
generates
RREQ’s to
find the
destination

If the battery life of ALL


If at least one route FALSE
nodes is GREATER TRUE
to destination exists
than the threshold

TRUE FALSE
Get the power consumed (Pi) for
each route using:
Get the summation of
battery power of each
node for each route, and
store them in array B
and store them in array A

Select from array


Select from array B the route with
A the route with the MOST
the LEAST Pi collective battery
power

AODV
Protocol
generates
RREP’s

If RREP
FALSE reaches
destination

TRUE

While nextHop is NOT


destination
&&
nextHop is NOT missing

CHECK
AGAIN

TRUE

Send DataPackets
to nextHop node

currentNode = nextHop

currentNode
FALSE stores a copy of
DataPackets
until time t

If nextHop is NOT
destination
TRUE sourceNode = currentNode
&&
nextHop IS MISSING

FALSE

If nextHop IS Send DataPackets


TRUE
destination to destination

sourceNode = currentNode
FALSE

AODV
Protocol
generates
RERR

Terminate