A Centralized Energy Efficient Distance Based Routing Protocol for Wireless Sensor Networks

Wireless sensor network (WSN) typically consists of a large number of low cost wireless sensor nodeswhich collect and send various messages to a base station (BS). WSN nodes are small battery powered devices having limited energy resources. Replacement of such energy resources is not easy for thousands of nodes as they are inaccessible to users after their deployment. This generates a requirement of energy efficient routing protocol for increasing network lifetime while minimizing energy consumption. Low Energy Adaptive Clustering Hierarchy (LEACH) is a widely used classic clustering algorithm in WSNs. In this paper, we propose a Centralized Energy Efficient Distance (CEED) based routing protocol to evenly distribute energy dissipation among all sensor nodes. We calculate optimum number of cluster heads based on LEACH’s energy dissipation model. We propose a distributed cluster head selection algorithm based on dissipated energy of a node and its distance to BS. Moreover, we extend our protocol by multihop routing scheme to reduce energy dissipated by nodes located far away from base station. The performance of CEED is compared with other protocols such as LEACH and LEACH with Distance Based Thresholds (LEACH-DT). Simulation results show that CEED is more energy efficient as compared to other protocols. Also it improves the network lifetime and stability period over the other protocols.


Introduction
An infrastructure required for various industrial and governmental organizations to observe events occurring in a physical world is provided by sensor network.In recent years wireless sensor networks have been widely investigated.Wireless sensor network typically consists of large number of low cost unattended multifunctioning sensing nodes that are typically deployed in large quantities and in a high density manner with limited energy resource [1].These sensing nodes are linked by wireless medium using radio, infrared, or optical frequency band [2].Wireless sensor networks have various applications like flood and fire detection in remote areas, traffic surveillance, air traffic control, and so forth.Sensors jointly gather ambient condition information such as temperature, pressure, and humidity from their surrounding environment and forward it towards static data sink.In many scenarios, as nodes are deployed in remote and dangerous area, replacement of their batteries becomes impossible.So they must work without replacing their batteries for many years [3].Thus power management has become one of the fundamental issues of wireless sensor networks.As direct transmission to base station causes uneven distribution of energy load among sensors, various types of routing protocols have been proposed for WSNs which work on issues of network lifetime, energy efficiency, stability, reliability, scalability, and so forth [4].LEACH [5] is a well known clustering protocol in which nodes organize themselves into clusters with one node acting as a cluster head.In LEACH, each round is divided into three phases: cluster head selection phase, cluster formation phase, and steady state phase.In cluster head selection phase, few nodes are selected as cluster heads by stochastic algorithm.In cluster formation phase, each noncluster head node finds its associated cluster head based on received signal strength of advertisement message sent by all cluster heads.In steady state phase, each noncluster head node transmits its data to corresponding cluster head.As nodes located close to each other have correlated data, cluster head aggregates data from all other nodes within that cluster in order to reduce the data to be transmitted to base station.Each cluster head forwards aggregate data to base station.In LEACH high energy cluster head positions are randomly rotated as compared to static clustering protocols where cluster heads are fixed throughout the network lifetime.Simulation results showed that LEACH improves network lifetime and reduces energy dissipation considerably compared with static clustering protocols.In extended LEACH (Ex-LEACH) [6], threshold is multiplied with a factor indicating remaining level of energy of a node.In order to further reduce energy dissipation, another routing protocol known as Power Efficient Gathering in Sensor Information System (PEGASIS) is proposed in [7].In PEGASIS, communication takes place between close neighbors and each node takes turns transmitting to the base station.PEGASIS considerably reduces the amount of data to be transmitted to base station and performs better in terms of network lifetime compared with LEACH.In LEACH and Ex-LEACH nodes at large distance from base station will consume high energy compared with nodes nearer to base station.Therefore, in order to achieve balanced energy consumption, distance of a node to its base station should also be taken into consideration while determining threshold for selection of cluster heads.Recently some cluster head selection thresholds considering distance of a node to base station have been proposed.In [8], energy load is evenly distributed through network by adjusting the cluster head selection threshold with a fixed radius of clustering and a multihop communication mechanism among the cluster heads.In [9], multihop routing is achieved through heads of far zone which is a group of sensor nodes at a location where their energies are less than threshold.A new protocol called LEACH-DT is proposed in [10].In LEACH-DT, node's distance to the base station is considered to determine the probability of a node to become a cluster head.Simulation results showed that LEACH-DT improves network lifespan over original LEACH.A General Self Organized Tree Based Energy Balance (GSTEB) routing protocol for wireless sensor network is proposed in [11].In GSTEB, base station assigns a root node and broadcasts its coordinates and ID to all sensor nodes.Each node selects a parent in its neighbor such that root node is nearer to parent rather than itself thus building a routing tree.In [12], Genetic Algorithm based LEACH (LEACH-GA) is proposed.In LEACH-GA, optimum probability of a node to become a cluster head is determined using genetic algorithm.Even though cluster head selection threshold is enhanced in LEACH-GA, it remains random without considering residual energy of a node.In [13], Amend LEACH (A-LEACH) protocol is proposed which improves stability period by distributed cluster head selection.In this paper, a Centralized Energy Efficient Distance (CEED) based routing protocol has been proposed to improve network lifetime of WSN by balancing the energy consumption among nodes.CEED calculates optimum number of cluster heads and their locations by considering energy dissipated in cluster head selection, cluster formation, and steady state phases.CEED assigns different probabilities for nodes to select themselves as cluster heads based on their dissipated energy and distance from base station.Once cluster heads are selected, CEED defines an objective function for each noncluster head node to find its associated cluster head.Cluster heads located far away from base station consume high energy to transmit their data to base station resulting in their death.So we extended our protocol by multihop routing scheme in which cluster heads transmit towards high level cluster heads near to sink.The rest of the paper is organized as follows.Section 2 explains radio energy dissipation model used.Section 3 gives brief description about proposed CEED protocol.Section 4 outlines simulation results and finally Section 5 concludes the paper.

Radio Energy Dissipation Model
Tremendous research has been done in the development of low energy dissipation models.In our work we have used same model as mentioned in [5] where some energy is dissipated by receiver to run radio electronics and that of transmitter to run radio electronics and power amplifier.Energy dissipated by transmitter for transmitting  bit message to a distance  is given by Energy dissipated by receiver to receive  bit message is given by where  TX and  RX represent per bit energy dissipated to run radio electronics of transmitter and receiver, respectively.Whereas  fs and  mp represent energy consumed by transmitting node to run radio amplifier in free space and multipath propagation models, respectively.Threshold distance   is given by

Centralized Energy Efficient Distance (CEED) Based Routing Protocol
Each node receives the advertisement sent by all cluster heads.Hence energy dissipated by a single noncluster head node to receive advertisement message is given by Once a single noncluster head node receives these advertisements, it selects its parent cluster head according to proposed objective function mentioned in .Then each noncluster head node transmits join-request message having length  join to its cluster head.As distance to cluster head is small, dissipated energy following free space propagation model is given by In the above equation,  toCH is the distance of a cluster head from its member node.As we have assumed uniform distribution of nodes, we put  2 toCH the same as that mentioned in [5]: Therefore the above equation becomes Energy dissipated by cluster head to receive such join-request message from its member nodes is given by After receiving this message, each cluster head transmits TDMA schedule having length  TDMA to all its members for which energy dissipated is given by Energy dissipated by each noncluster head node to receive this TDMA schedule is given by After this network goes into steady state phase in which each noncluster head node transmits its data to its parent cluster head by consuming the following amount of energy: A single cluster head node receives data from all its member nodes; it adds its own data in it and aggregates all data to obtain single packet and transmit it to base station.So energy dissipated by cluster head node in steady state phase is given by where  DA is the energy required for data aggregation and  toBS is the distance of a base station from a cluster head.So total energy dissipated by a cluster head during a single round is given by Substituting values of  CH − adv ,  CH − join ,  CH − TDMA , and  CH − data , from (4), ( 9), (10), and ( 13) into (14), ) . ( Total energy dissipated in a cluster is given by As there are  clusters in a network, total energy dissipated in a network is given by In contrast with original LEACH, we determine the probability of a node to become a cluster head based on its dissipated energy in a current round.As that of original LEACH, expected number of cluster heads is given by Let distance of cluster head nodes ,  to base station be (), () and let probabilities of nodes  and  to become cluster heads be () and (), respectively.We consider the following balance equation of energy consumption: Further simplifying the above equation, where 0 ≤ () ≤ 1.

Cluster Head Selection Phase.
In LEACH, cluster head selection is stochastic.Due to such random cluster head selection, nodes energy becomes unbalanced resulting in increased energy consumption of the system.In LEACH, nodes with any energy have equal threshold for determining cluster heads.If nodes with less energy become cluster heads, they die quickly which reduces network lifetime [14].
In order to balance the energy consumption among all nodes, we introduce a new cluster head selection threshold based on proposed cluster head selection probability, residual energy, and distance of a node to base station.The improved threshold in this paper is given by ( 26) In the above equation, () is the probability of a node  to become a cluster head in current round . current () and  initial are residual and initial energies of node , respectively.() is the distance of a node  to base station and  toBS max is the distance of farthest node from base station. is the set of nodes which never became cluster head in last 1/() rounds.
Each node selects a random number between 0 and 1 and compares it with the above cluster head selection threshold.If selected number is less than the threshold, then that node acts as a cluster head in current round.A node which elects itself as a cluster head broadcasts an advertisement (ADV) message containing its ID, header indicating control message, and spreading code to avoid intercluster interference using CSMA MAC protocol.

Cluster Formation Phase.
After the selection of cluster heads, the key problem is to assign to each node a specific cluster head.Around cluster head, energy consumption should be balanced.Sometimes, assigning a cluster head nearer to a node compared with other cluster heads may result in unbalanced energy consumption.A node  should select its cluster head by following constrained objective function: avg *  current () In the above equation (, ) is the distance of node  from cluster head ,  max () is the maximum distance between node  and all cluster heads, and  avg is the average distance between base station and all cluster heads.Each noncluster head node chooses its corresponding cluster head according to above objective function and transmits a join-request (JOIN) message to it containing its own ID, cluster head's ID, and relevant spreading code using CSMA MAC protocol.After receiving join-request message, each cluster head creates a TDMA schedule to assign time slots to noncluster heads and transmits this schedule to all its members.The TDMA schedule is used to reduce intracluster interference and energy consumption by allowing nodes to turn off their radio components every time except their allocated time slots.Once each noncluster head node receives TDMA schedule, cluster formation phase is finished and steady state phase begins.

Steady State Phase.
In steady state phase, each noncluster head node starts sensing the data and transmits the data to its cluster head according to the TDMA schedule.In order to reduce intercluster interference, each cluster communicates using unique spreading code.After receiving data from members, each cluster head forms a single packet by aggregating the data.Such packets are transmitted to base station by cluster heads.Cluster heads located far away from base station consume high energy to transmit their data over long distance.In order to distribute energy load evenly among all cluster heads in such scenarios, we extend our proposed protocol by multihop routing scheme in which each cluster head will receive data from one neighbor and transmits to another neighbor thereby forming a chain among themselves.Cluster head node nearest to base station is starting point of the chain and transmits an ADV message containing its id and level in the chain to its neighbor cluster head.Neighbor cluster head in turn transmits similar ADV message to its another neighbor and so on.Cluster head farthest from base station is end point of the chain.After chain establishment, data flow occurs in opposite direction.Multihop routing scheme is shown in Figure 1.In which cluster head closest to base station is A. A transmits an ADV message to its neighbor cluster head B which in turn transmits similar message to C and so on.Data is then transmitted in opposite direction.Each intermediate cluster head in the chain receives data from its lower cluster head, fuses its own data in it, and transmits aggregate data to upper cluster head.Cluster head A transmits data directly to base station.Data aggregation takes place everywhere along the chain except at end cluster head node F.

Simulation Results
Our protocol is simulated and its performance is compared with other clustering protocols such as LEACH and  LEACH-DA using Matlab 8.3.Performance of proposed protocol is measured in terms of network lifetime, energy efficiency, and stability.In our experimental work, we simulated 100 m × 100 m network topology consisting of randomly distributed 100 nodes.There are two cases for the location of base station: Case 1: BS = (50 m, 350 m) and Case 2: BS = (100 m, 300 m).The length of each data message is 500 bits and that of controlling packet header is 64 bits.Each node is assigned with an initial energy of 0.5 J. Communication energy parameters are taken the same as that of [5]:  TX =  RX =50 nJ/bit,  fs = 10 pJ/bit/m 2 ,  mp = 0.0013 pJ/bit/m 4 , and data aggregation energy  DA = 5 nJ/bit/signal.
Case 1 (BS = (50, 350)).The network lifetime is defined as the time interval between the start of communication and death of last alive sensor node [11].The comparison of network lifetime of proposed CEED protocol with LEACH and LEACH-DT is shown in Figure 2.
Figure 2 clearly indicates that CEED extends network lifetime by 31428 and 30596 rounds compared with LEACH and LEACH-DT protocols, respectively.First Dead Node (FDN) also known as stability period indicates number of rounds after which death of first sensor node occurs.Half Dead Node (HDN) is the number of rounds after which half number of sensor nodes are dead.Similarly Last Dead Node (LDN) is the number of rounds required for the death of all sensor nodes [15].Figure 3 shows FDN, HDN, and LDN metrics of LEACH, LEACH-DT, and CEED protocols, respectively.From Figure 3, it is noticed that CEED improves FDN metric by 7077 and 6292 rounds and HDN metric by 11044 and 9572 rounds compared with LEACH and LEACH-DT protocols, respectively.
The dissipated energy of the entire network for all three protocols is shown in Figure 4.It is observed that CEED reduces average dissipated energy per round by 92.10% and 89.58% compared with LEACH and LEACH-DT.
Case 2 (BS = (100, 300)).The effect of CEED on network lifetime compared to LEACH and LEACH-DT for this case is shown in Figure 5. From Figure 5, it is noticed that CEED extends network lifetime by 32542 and 32316 rounds compared to LEACH and LEACH-DT, respectively.rounds, respectively, compared with LEACH and by 4274 and 8151 rounds, respectively, compared with LEACH-DT.Figure 7 shows CEED dissipated energy compared with LEACH and LEACH-DT.It is observed that CEED dissipates energy more slowly compared with LEACH and LEACH-DT.CEED reduces average dissipated energy per round by 87.61% and 87.03% compared with LEACH and LEACH-DT protocols, respectively.
The number of rounds required for the death of 5%, 25%, and 75% of total number of nodes for all three protocols in both cases is listed in Table 1.Table 1 indicates that for BS location of (50, 350), CEED extends 5% of node death by 7930 rounds, 25% of node death by 9619 rounds, and 75% of node

Conclusion
In this paper, we have presented a new clustering protocol called a Centralized Energy Efficient Distance (CEED) based routing protocol for randomly distributed wireless sensor networks to improve the lifetime and stability period of WSNs.This protocol finds optimum number of cluster heads based on minimizing the dissipated energy in all phases of communication.We have introduced a new distributed cluster head selection algorithm based on nodes' dissipated energy and its distance to BS.We have extended our protocol by multihop routing scheme in which only cluster head closest to BS transmits its data directly to BS to reduce energy dissipated by cluster heads located far away from BS. Simulation results showed that the proposed protocol is more energy efficient as compared to other protocols, namely,

Figure 6
Figure 6 shows FDN, HDN, and LDN measures for LEACH, LEACH-DT, and CEED from which it is clear that CEED improves FDN and HDN measure by 5417 and 10022
Assume that  sensor nodes are randomly distributed in a sensor field having × area.Expected number of cluster heads per round is .Whole network is divided into  clusters and each cluster contains one cluster head and remaining / − 1 noncluster head nodes.Once each node elects itself as cluster head according to our proposed algorithm, it broadcasts an advertisement message having length  adv corresponding to a distance of √ 2.Energy dissipated by cluster head node to broadcast this message is given by 3.1.OptimumNumber of Clusters.Network lifetime and energy dissipation of WSN are strongly affected by number of cluster heads.In this section, We calculate optimum number of clusters by considering energy dissipated in entire network during a single round containing cluster head selection phase, cluster formation phase, and steady state phase.There are few assumptions about the network such as the following: all uniformly distributed nodes are fixed at their locations and each node has global knowledge about the network.The nature of communication channel is symmetric in which each node has equal communication ability.Base station is static having enough energy resources.