Research Article

Data Dissemination Protocol for Mobile Sink in Wireless Sensor Networks

Algorithm 3

Data dissemination.
Data structure for any sensor node :
: node adds the pair of and after receiving the DATA packet, initialized to .
Node will receive following packet from node :
DATA: DATA,
if ( RN ) then
  if     then
    if  ( ) then
      ;
     Forward DATA packet towards the sink;
    else
      ;
     Forward DATA packet to its neighbor relay node towards gateway
    end if
  else
    Drop the packet;
  end if
else
  Drop the packet;
end if