Research Article

Data Dissemination Protocol for Mobile Sink in Wireless Sensor Networks

Algorithm 1

Neighbor discovery.
Data structure for any sensor node :
: neighbor set of node , initialized to .
: the set of neighbors of node , which are willing to be the relay node, initialized to .
: either true or false depends on the willingness of node to become a relay node.
: set to true when the sensor node sends NBR_DET packet, initialized to false.
Node receives following packet from node :
NBR_DET: NBR_DET,
if ( ) then
;
if ( ) then
    ;
end if
if ( ) then
    ;
    (NBR_DET, );            ⊳ Broadcast NBR_DET packet
else
   Drop the packet;
end if
else
 Drop the packet;
end if