Research Article

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

Algorithm 1

Neighbour node discovery
Input: Node’s neighbour discovery message NEI_INFO
Output: Updating neighbour information
Var: NEI_INFO = , SN_ID, NEI(P) =
Begin
Every node broad cast its neighbor discovery message by sending
<NEI_INFO, SN_ID>
   SN_IDa<NEI_INFO, SN_IDb>
   If (SN_IDb NEI (a)) then
   Begin
      NEI(a) NEI(a) + SN_IDb
      If (NEI_INFOUPDATEa = false) then
      Begin
NEI_INFOUPDATEa
Broadcast (NEI_INFO, SN_IDa);
// a is broadcasting NEI_INFO packet
      End
      Else
Drop the NEI_INFO packet;
   End if
   End
   Else
      Drop the NEI_INFO packet;
   End if
End