Research Article

Intelligent On-Demand Connectivity Restoration for Wireless Sensor Networks

Algorithm 1

Node failure and recovery in IDCRWSN.
Input: Area, Rc, n
Output: Connectivity restored
Begin
Set ni
For each node ni do
Calculate
if    then
//Send energy_alert message to neighboring nodes (Nbrj)
energy_alert (Nbrj)
For each neighboring node Nbrj of ni
//Neighboring node will increase its transmission range
recovery_offered  (Nbrj)
end if
if   <   then
Send energy_defficiency message to slave keeper
Send activity_time message to master keeper
Send activity_granted message from master keeper
//Slave keeper will replace failed nodes with their redundant nodes
Replace_Failed_Node (nf)
end if