Research Article

Development and Performance Evaluation of a New Energy-Efficient Double Cluster-Head Routing (EEDCR) Protocol for Wireless Sensor Networks

Algorithm 3

CNH intimation.
Assumption: The information is sent from CN to CNH via CN to CN multi-hop routing
Input: CN_INT, CNH_INT, SN_ID
//CN and CNH selected intimation to SNs
Output: CNH_INTACK, updating of routing table RT
Var: ACK, NXT_NEI, CNH_INTUPDATE
Begin
Every CN receives the CNH_INT with their SN_ID of the sender and SN_ID of CNH.
CNH_INT: <CNH_INT, SN_IDCNj, SN_IDCNH>
If (SN_IDCNH = SN_IDCNi) then
Begin
Send info (ACK, SN_IDCNi, NXT_NEI);
//Sent the ACK to BS
End
   Else if (CNH_INTUPDATE==false)
      Begin
Update the RT (CNi) by adding SN_IDCNH as CNH ID and next hop as SN_IDCNj;
   Broadcast (CNH_INT, SN_IDCNi, SN_IDCNk);
//broadcast CNH_INT packet
   End
Else
Packet drop
End if
End