Introduction

Wireless sensor network (WSN) is a collection of tiny embedded machines forming a network and sharing information. The sensing unit, processing unit and transceiving unit together constitute the wireless sensor node (SN). The major part of the energy dissipation in SN is done by transceiving unit. The sensor unit senses the information, and the information is processed by the processing unit and transceived to the nearby sink. The layered architecture is meant for small networks, which serves it purposes in monitoring, small area, underground or underwater sensor networks. The clustered architecture has the large scalable monitoring ability, which can deal with large amount of sensor nodes deployed in the region of interest (ROI). The SN forms clusters for monitoring operation, cluster constituting cluster member (CM) and cluster head (CH) [1,2,3,4,5]. The SNs are equipped with battery source for its working making it a power starving device. The distance with sink, residual energy of the node and intra-cluster distance are the major factors influencing the energy dissipation of the WSN [6,7,8,9,10,11]. Figure 1 illustrates the architecture of the SN constituting, sensing, processing, transceiving and power units. Figure 2 illustrates the typical architecture of WSN. The data sensed by the SN, i.e. CM, are sent to the CH, and the CH communicates the data to the near by CH and transmits the data to the sink. The sink, a primary monitoring system, is integrated with IPV4 or IPV6 connection which is integrated with the external monitoring environment.

Fig. 1
figure 1

Wireless sensor node

Fig. 2
figure 2

Wireless sensor network scenarios

The clustered architecture is more suitable for long region of coverage, communicating with more number of nodes.

Related Works

Many routing strategies have been discussed so far regarding energy efficiency, reliability, etc., [2]. LEACH protocol is the basic clustering protocol meant for monitoring large-scale monitoring operations. In LEACH protocol, the probability of becoming a CH is mainly depend on the residual energy of the battery. The LEACH protocol does not consider intra-cluster distance and battery parameters on selection of CH. LEACH does not provide solution for energy hole and hot spot issues. The CHs are the important members in the network acting as a full-functioned device (FFD), capable of acting as a transmitter and router. Election of CH influences the network lifetime and throughput of the network [12,13,14,15,16,17]. The energy dissipation due to distance and residual energy is discussed so far, which lags in intra-cluster distance and solution to energy hole problem. The energy dissipation of the CH is also influenced by the intra-cluster distance of the nodes inside the cluster [18,19,20,21,22,23]. The ALEACH algorithm discussed [8] provides a methodology in selecting CH based on residual energy and intra-cluster distance. However, the clustering of ALEACH protocol is irregular with respect to sink. Energy dissipation due to intra-cluster distance is not considered in many of the research works. Network should exhibit unequal clustering towards the location of the sink. The LEACH and ALEACH algorithms lack in addressing about the unequal clustering and clustering based on the location of the sink [1, 9]. The M-GEAR algorithm proposed [13] supports unequal clustering; however, it provides reduced throughput. The past scenario considers residual energy and intra-cluster distance for CH selection, and this paper serves as the better solution for the energy hole problem and increase in lifetime of the WSN. The power minimization should be mainly concentrated in the battery side. The battery characteristics are taken into account such as current characteristics which play a major role in making the network energy efficient in nature. The current drawn by the sensor nodes varies with respect to distance between the sender and receiver, voltage of the battery operation of the node and receiver signal strength of the node.

Optimal Energy-Efficient CH Selection (OEECHS)

The OEECHS algorithm mainly concentrates on reducing the energy consumed by the WSN. The power dissipation of SN is based on the distance between the transmitters, i.e. CM and CH. Since the battery powers the node, the current drawn from the battery is modelled as a piecewise linear equation and considered for choosing CH. The unequal clustering is exhibited by the OEECHS algorithm making it safe from energy hole problem. The clustering of OEECHS is based on the position of the sink. The CH is selected based on the residual energy of the node and distance. Higher the residual energy, higher the probability of being a CH. The SN is powered using the power starving batteries causing reduced lifetime to the SN. The batteries are normally rated in ampere hour (Ah). The battery size is mainly determined by the Ah characteristics, and high Ah gives large lifetime making the node bulky sacrificing the size constraint. The SN is made to elect as the CH based on the current characteristic. The intra-cluster distances with all other nodes for the nodes having high battery strength are calculated for evaluation of β. The α and β values are evaluated by messaging hello packet with the neighbour nodes.

The probability of choosing the next step is determined by Markov model. The Markov model is a memoryless model which works based on the current input. The operation of SN is modelled as a finite state machine (FSM). Figure 3 represents the FSM realization of sensor node.

Fig. 3
figure 3

Finite state machine representation

The operation of SN is modelled as FSM, and when the current drawn from the battery exceeds a limit, its working as a CH is resigned and re-election is claimed. When the battery energy is nil, the transceiver operation is made to sleep state in order to avoid unnecessary disturbance due to battery recovery state. The FSM is simulated using the Markov model. The Markov model is a memoryless model, in which the state transition is only based on the current input. Hence, the Markov model is taken for simulating the FSM.

In case of Markovian model, the probability of selection of r steps from one state to another is given by conditional approach.

Probability of choosing x state to y state for n steps is given by Eq. (1)

$$P_{xy} = \, P_{r} \left( {P_{n} = y|P_{0} = x} \right)$$
(1)

Equations (1) and (2) denote the next state transition in Markov chain.

The probability of single-step transition from x to k is given by Eq. (2)

$$P_{xk} = \, P_{r} \left( {P_{1} = q|P_{0} = x} \right)$$
(2)

Equations (3) and (4) represent the time homogenous transition from one state to other. The r step transition is chosen based on Eq. (3).

For a time-homogeneous Markov chain

$$P_{r} \left( {P_{n} = y} \right) = \sum_{r \EUR y} P_{ry} P_{r} \left( {P_{n - 1} = r} \right)$$
(3)

Generalized probability of choosing r steps is given in Eq. (4)

$$P_{r} \left( {P_{n} = y} \right) = \sum_{r \EUR y} P_{ry} P_{r} \left( {P_{0} = r} \right)$$
(4)

The probability P of transition from one state to other is represented by the matrix given in Eq. (5).

$$P = \begin{array}{*{20}c} {} & {\begin{array}{*{20}c} {S1} & {S2} & {S3} \\ \end{array} } \\ {\begin{array}{*{20}c} {S1} \\ {S2} \\ {S3} \\ \end{array} } & {\left( {\begin{array}{*{20}c} {P_{r11} } & {P_{r12} } & {P_{r13} } \\ {P_{r21} } & {P_{r22} } & {P_{r23} } \\ {P_{r31} } & {P_{r32} } & {P_{r33} } \\ \end{array} } \right)} \\ \end{array}$$
(5)

Figure 4 represents the typical current characteristics of the SN where the increase in current intake is observed on decrease in residual energy.

Fig. 4
figure 4

Battery current characteristics of SN

The capacity of the battery is termed in ampere hour, and increased intake of current from battery reduces the lifetime of the battery, thereby making the node die soon. Making the SN as CH causes increased intake of the current from the battery making it drain its energy causing a energy hole in the network. The CH is chosen as per the battery current characteristics graph as shown in Fig. 4.

Figure 5 illustrates the OEECHS algorithm, and when a CH looses the energy below a certain limit, it claims for a re-election and all the other nodes send its energy level and intra-cluster distance with other member inside the cluster. The current CH decides the participant and optimally selects the CH based on the OEECHS algorithm.

Fig. 5
figure 5

OEECHS algorithm

Mathematical Proof

The α value in the algorithm is set based on the current characteristic curve shown in Fig. 4. Equation (6) illustrates the current voltage energy relation at time t.

$$E = V \times \, I \times \, t$$
(6)

Here, E is the rnergy consumed by the SN, V is the voltage of the battery, I is the current drawn from the battery, and t is the number of bits transmitted × transceiver operating speed.

The energy consumed by the SN is directly related to the current drawn from the battery. Equation (7) represents the summation of all distance with respect to eligible candidates. The nodes communicate hello packet with other nodes and receive the α value.

$$\beta = \mathop \sum \limits_{i = 1}^{N} d\left( {i,i + 1} \right)$$
(7)

Evaluate the intra-cluster distance β for all nodes. The energy dissipated is a factor of distance and number of bits sent to the sink. Equations (8), (9) and (10) illustrate the energy drawn by the transceiver, since the energy consumed by the sensing and processing part is negligible comparing to the transceiving part.

$$E_{\text{tx}} \left( {k,d} \right) = E_{\text{elec}} k \, + \, E_{\text{fs}} kd^{2} ; d < d_{0}$$
(8)
$$E_{\text{tx}} \left( {k,d} \right) = E_{\text{elec}} k \, + \, E_{\text{mp}} kd^{4} ; d > d_{0}$$
(9)
$$E_{\text{rx}} \left( k \right) = \, E_{\text{elec}} k$$
(10)

where k is the number of bits, d is the distance, Eelec is the energy dissipated per bit to run the transmitter or the receiver circuit, Erx is the energy dissipated during receiving data, and Efs(pJ/(bit-m−2)) and Emp(pJ/(bit-m−2)) are the energy dissipated per bit to run the transmit amplifier based on the distance between the transmitter and receiver.

The energy consumed by the battery directly relates the number of bits transmitted, distance.

The energy consumed by the CH is given in Eqs. (11) and (12).

$$E_{\text{CH}} = Et_{\text{x}} + E_{\text{rx}}$$
(11)
$$E_{\text{CH}} = E_{\text{elec}} k \, + \, E_{\text{mp}} kd^{4} + \, E_{\text{elec}} k$$
(12)

Equation (12) illustrates that the loading node as CH increases the energy dissipation.

$$V \times I \times t \, = E_{\text{elec}} k \, + \, E_{\text{mp}} kd^{4} + \, E_{\text{elec}} k$$
(13)
$$I = \frac{{E_{\text{elec}} k + E_{\text{mp}} kd^{4 } + E_{\text{elec}} k}}{V \times t}$$
(14)

Equation (14) supports that the increase in load increases the current taken from the node, thereby decreasing the lifetime. Increased usage of battery decreases the voltage and in turn increases the current making a chain effect.

Results and Discussions

The proposed scenario is simulated in MATLAB 7.0. The nodes are deployed in 500 × 500 m area, and the sink is located in 250, 750 for evaluating its better performance. Simulation prelims are listed in Table 1.

Table 1 Simulation prelims

Table 1 represents the simulation parameters taken to support the proposed work. Table 1 discusses the network size, number of nodes, base station location, Eelec, Efs, initial energy, probability of becoming of CH, data message size and header bytes.

Following assumptions are made in the simulation

  • All sensors are deployed in the ROI and are homogeneous in nature.

  • All nodes are energy constrained.

  • The nodes are either a CH or CM.

  • All nodes are static in nature.

Radio energy Model

The energy model for the sensors is based on the radio model. The transceiver model equation is given in Eqs. (8)–(10). Equation (4) depicts the energy consumed during receiving a packet from an another node. The simulation started with nodes carrying an initial energy of 2 J. The data to the next hop are selected based on Markov model. The first node death in case of LEACH, ALEACH and M-GEAR protocols is early when compared with OEECHS. Figure 5 represents the node survivability of the OEECHS, and the OEECHS outperforms the LEACH, ALEACH and M-GEAR protocols surviving more rounds. OEECHS outperforms with 1.35 times increased lifetime when compared to LEACH. The CH selection is based on α value from the current curve (Fig. 6).

Fig. 6
figure 6

Node survivability

Figure 7 represents Voronoi diagram of the LEACH, and the cluster formation of the LEACH is irrespective to the sink location exhibiting equal clustering. The nodes near the sink die creating an energy hole problem, making the network unusable even the nodes away from the sink are equipped with good energy.

Fig. 7
figure 7

Voronoi LEACH

Figure 8 represents the Voronoi diagram of the ALEACH protocol, and unequal clustering is partially exhibited towards sink in case of ALEACH protocol.

Fig. 8
figure 8

Voronoi ALEACH

Figure 9 represents the Voronoi diagram of M-GEAR protocol. The protocol supports unequal clustering; however, the nodes near the sink die soon due to improper loading of CH.

Fig. 9
figure 9

Voronoi M-GEAR

Figure 10 represents the Voronoi diagram of the OEECHS algorithm, exhibiting unequal clustering with respect to sink. The Voronoi diagram of the OEECHS concludes the avoidance of energy hole problem of the OEECHS algorithm. Creation of shorter clusters is noticed in OEECHS algorithm making the network survivable for longer duration. The unequal clustering is exhibited by the OEECHS algorithm on varying sink positions.

Fig. 10
figure 10

Voronoi OEECHS

Figure 11 represents the nodes energy status after 750 rounds, and OEECHs appear to have more number of nodes when compared to LEACH, ALEACH and M-GEAR algorithms. The nodes are equally distributed avoiding energy hole problem to the network.

Fig. 11
figure 11

Network lifetime after 750 rounds for LEACH, ALEACH, M-GEAR and OEECHS algorithms

Figure 12 represents the throughput comparison of the OEECHS with respect to other protocols. OEECHS outperforms LEACH, ALEACH and M-GEAR algorithms with 1.12 times leading throughput when compared to LEACH protocol. The drop packets in case of OEECHS are less avoiding resending of data causing additional energy loss and burden to the CHs.

Fig. 12
figure 12

Throughput comparison

Conclusion

The OEECHS proves its efficiency of improving lifetime of the network with increased throughput. The lifetime is increased by 1.35 times, and throughput is increased by 1.15 times when compared to classical LEACH protocol. Energy hole problem of the network is solved by exhibiting unequal clustering mechanism. The clusters near the sink are small when compared to the cluster far away. The load to the nodes near the sink is reduced because of the unequal clustering mechanism. The OEECHS serves to be the better key for cluster-based routing protocols for enhanced lifetime in WSN. The future work of this paper includes analysis of other metrics of the network with increased nodes and network size.