Keywords

1 Introduction

Wireless sensor networks are composed of many homogeneous or heterogeneous sensor nodes with restricted resources. A single sensor node is the combination of three components: processor, sensor and wireless communication device (transreceiver) as presented in Fig. 1. These sensor nodes spread throughout it to observe, collect, and transmit data. The sensors are economical, simple and their power supply is irreplaceable. Early study on wireless sensor networks generally focused on technologies based on the homogeneous wireless sensor network in which each node have same energy. Nevertheless, now a days heterogeneous wireless sensor networks are becoming more and more popular. The heterogeneous nodes can extend network lifetime and improve network reliability without extensively increasing the cost [1, 2]. A classic heterogeneous wireless sensor networks consists of a large number of normal nodes and a few heterogeneous nodes. The normal node is inexpensive and source-constrained whose major tasks are to sense and issue data report. The heterogeneous node, which provides data fusion, filtering and transport, is more costly and more proficient [3]. In a hierarchical topology, nodes are organized into number of clusters according to specific requirements or metrics and perform different tasks in WSNs. Clustering in WSNs contains grouping nodes into clusters and electing a cluster head. The member nodes of a cluster can communicate with their cluster head directly. The cluster head is able to forward the combined data to the central base station with the help of other cluster heads [4].

Fig. 1
figure 1

Wireless sensor network [12]

The nodes having higher energy can act as cluster head which carry out the task of data processing and information transmission, whereas nodes having low energy are normal nodes which carry out the task of information sensing as shown in Fig. 2. In the previous few years, a comparatively large number of hierarchical clustering routing protocols have been developed for WSNs. In this paper, we broadly review and significantly discuss the most vital hierarchical clustering routing algorithms that have been used for WSNs. The related work has been presented in the next section and the brief description the energy efficient routing protocols has been presented in the Sect. 3. The Sect. 4 presents the comparative results and discussion. The last section concludes the work and presents the future work.

Fig. 2
figure 2

Nodes communicate to base station through cluster heads

2 Related Work

LEACH is the first clustering based routing protocol for WSNs. This protocol relates arbitrary rotation of cluster head to equally distribute energy load between sensor nodes to improve stability period and network lifetime [5]. LEACH is basically designed for homogeneous networks in which the nodes having equal initial energy.

PEGASIS protocol [6] uses greedy algorithm to organize the sensor nodes into a sequence chain, thus every node transmits and receives the data from the nearby neighbor. But if the node fails, discovering of new route becomes complicated as each node has a set route before the transmission towards the base station.

Stable Election Protocol (SEP) [7] uses weighted election probabilities for every node to become cluster-head according to their respective energy. The cluster head selection is randomly selected and distributed based on the fraction of energy of every node. SEP considered two types of nodes, normal nodes and advanced nodes respectively and also uses two levels of heterogeneity. This protocol is basically designed to raise time interval of first dead node.

TSEP [8] is a reactive routing protocol in which nodes have three different levels of energies. Cluster heads selection is threshold based which causes increase in stability period and network life.

A Deterministic-SEP (D-SEP) [9] is proposed, for selecting cluster heads in a circulated fashion in two-, three-, and multi-level hierarchical wireless sensor networks. This protocol uses improved SEP algorithm for wireless sensor networks in the presence of energy heterogeneity. By using a heterogeneous three-level node setting in a clustering algorithmic approach, nodes select themselves as cluster heads based on their energy levels, retaining uniformly distributed energy among all sensor nodes.

3 Routing Protocols for WSN

In this section, we analyze three standard WSN clustering routing algorithms in detail and present a broad and vital survey of important clustering routing protocols for WSNs. For the purpose of this study, we use similar radio communication and consumption model as reported in [7].

3.1 SEP

SEP protocol [7] is based on two levels of heterogeneity. A fraction ‘m’ of total ‘n’ nodes is given with an extra energy factor ‘A’, which is known as, advanced nodes. Therefore, probability of normal node and advanced node to become cluster head is \( p_{nrm} = p/1 + mA\;{\text{and}}\;p_{adv} = p*\left( {1 + A} \right)/1 + mA \) respectively, where ‘p’ is the best possible probability of every node to become cluster head. Cluster heads selection in SEP is completed arbitrarily on the basis of probability of every type of node as in LEACH. Nodes sense data and transmit it to associated cluster head which transmit it to base station. By increasing ‘p adv ’ or ‘m’, we can further improve our system. Thus, SEP results in better stability period and network life due to advance nodes however two-level heterogeneity also caused enlarged throughput [8].

3.2 TSEP

TSEP (Threshold sensitive Stable Election Protocol) is based on three levels of heterogeneity and has a reactive routing protocol [8]. Advance nodes having energy greater than all other nodes; intermediate nodes have energy in between normal and advance nodes whereas the remaining nodes are normal nodes. Intermediate nodes can be elected with ‘x’, a part of nodes which are intermediate nodes and by using the relation that energy of normal nodes is ‘μ’ times additional than that used for the normal nodes. In the case of SEP energy considered for normal nodes is E o , for advance nodes it is E adv  = E o (1 + A) and energy for intermediate nodes can be calculated as E in  = E o (1 + μ), where μ = A/2. As a result, the total Energy of all the nodes will become n*E o (1 + m*A + x*n) where, ‘n’ is number of nodes, ‘m’ is fraction of advanced nodes to entire number of nodes ‘n’ having energy greater than remaining of nodes and ‘x’ is fraction of intermediate nodes. The best possible probability of nodes, which are separated on the basis of energy, to be selected as a cluster head can be computed by using following formulas:

$$ {\text{P}}_{\text{nrm}} = \, {{\text{p*}}/ {\left( { 1+ {\text{m*}}{\text{A }} + {\text{x*}}{\text{n}}} \right)}} $$
(1)
$$ {\text{P}}_{\text{int}} ={{{\text{p*}}\left( { 1+ \upmu } \right)} / {\left( { 1+ {\text{m*}}{\text{A }} + {\text{x*}}{\text{n}}} \right)}} $$
(2)
$$ {\text{P}}_{\text{adv}} = {{{\text{p*}}\left( { 1+ {\text{A}}} \right)} / {\left( { 1+ {\text{m*}}{\text{A}} + {\text{x*}}{\text{n}}} \right)}} $$
(3)

Thus, to ensure that cluster head selection is made in the similar method as we have assumed, we have taken an additional factor into consideration, which is threshold level. Every node produces randomly a number inclusive of 0 and 1, when produced value is less than threshold then this node turns into cluster head [5]. For every this types of node, there are different formulas for the computation of threshold depending upon their probabilities, which are shown below:

$$ {\text{T}}_{\text{nrm}} = {{{\text{p}}_{\text{nrm}} } /{\left[ { 1{-}{\text{ p}}_{\text{nrm}} \left( {{{{\text{r*}}{\text{mod 1}}} / {{\text{p}}_{\text{nrm}} }}} \right)} \right]}}, \quad {\text{if }} {\text{n}}_{\text{nrm}} c\!\! \; {\text{G}^{\prime}} $$
(4)
$$ {\text{T}}_{\text{int}} = {{{\text{p}}_{\text{int}} } / {\left[ { 1{-}{\text{p}}_{\text{int}} \left( {{{{\text{r*}}{\text{mod 1}}} / {{\text{p}}_{\text{int}} }}} \right)} \right]}}, \quad {\text{if n}}_{\text{int}} c\!\! \; {\text{G}^{\prime\prime}} $$
(5)
$$ {\text{T}}_{\text{adv}} = {{{\text{p}}_{\text{adv}} } / {\left[ { 1{-}{\text{p}}_{\text{adv}} \left( {{{{\text{r*}}{\text{mod 1}}} / {{\text{p}}_{\text{adv}} }}} \right)} \right]}},\quad {\text{if n}}_{\text{adv}} c\!\! \; {\text{G}^{\prime\prime\prime}} $$
(6)

Here \( G^{\prime},G^{\prime\prime}\;{\text{and}}\;G^{\prime\prime\prime} \) are the set of normal nodes, intermediate nodes and advanced nodes that has not turn out to be cluster heads in the past respectively.

3.3 DSEP

The threshold value is modified in DSEP by using the residual energy and set as [9]:

$$ {\text{T}}_{{({\text{Si}})}} = \left[ {{{{\text{p}}_{\text{i}} } / { 1- \left( {{\text{p}}_{\text{i}} * \left( {{\text{r mod}} \;1 / {\text{p}}_{\text{i}} } \right)} \right)}}} \right] * \left[ {{\text{E}}_{\text{residual}} + \left( {{{\text{r}}_{\text{s }} {\text{div }}} 1 / {{\text{p}}_{\text{i}} }} \right)* \left( { 1- {\text{E}}_{\text{residual}} } \right)} \right] $$
(7)

Now ‘r s ’ is the number of successive rounds in which a node has not been cluster-head. If ‘r s ’ reaches the value of 1/p i, the threshold T(S i ) is reset to the value. Therefore, the possibility of node ‘n’ to become cluster head improves because of a high threshold. Moreover, ‘r s ’ is reset to ‘0’ if a node becomes cluster head. So, we ensure that data is reached to the base station as long as nodes are alive.

In weighed election probability of three- level heterogeneity nodes known as normal, advanced and intermediate nodes are measured based on partial difference in their initial energy level. At this time the reference value of ‘p i ’ is different for nodes. The probabilities of normal, advanced and intermediate nodes are [911]:

$$ {\text{P}}_{\text{i}} = \, \left\{ {{\text{ P}}_{\text{nrm}} ,{\text{ P}}_{\text{int}} ,{\text{ P}}_{\text{adv}} } \right\} $$
(8)

where

$$ {\text{P}}_{\text{nrm}} = {\text{p*}}{\text{E}}_{\text{residual}} /\left( {{1} + {\text{m*}}{\text{A }} + {\text{x*}}{\text{n}}} \right)\text{ * }{\text{E}}_{\text{average}} $$
(9)
$$ {\text{P}}_{\text{int}} = {\text{p*}}\left( {{1} + \upmu } \right)\text{ * }{\text{E}}_{\text{residual}} /\left( { 1+ {\text{m*}}{\text{A}} + {\text{x*}}{\text{n}}} \right)\text{ * }{\text{E}}_{\text{average}} $$
(10)
$$ {\text{P}}_{\text{adv}} = {\text{p*}}\left( {{1} + {\text{A}}} \right)\text{ * }{\text{E}}_{\text{residual}} /\left( {{1} + {\text{m*}}{\text{A}} + {\text{x*}}{\text{n}}} \right)\text{ * }{\text{E}}_{\text{average}} $$
(11)

Threshold value for cluster head selection is considered for normal, advanced, intermediate nodes by putting above values in Eq. (7) or else it is zero. \( G^{\prime},G^{\prime\prime}\;{\text{and}}\;G^{\prime\prime\prime} \) is the set of normal and advanced nodes.

4 Results and Discussion

In our present work, a comparative analysis of DSEP with SEP and TSEP protocols on the basis of network lifetime, stability period and throughput is achieved after creating a 100 m × 100 m region of 100 sensor nodes spread randomly. The sink or base station is located at the center point (50 × 50). The packet size that the nodes send to their cluster heads as well as the combined packet size that a cluster head sends to the sink is set to 4,000 bits. The parameters used in the simulation are mentioned below in Table 1.

Table 1 Simulation parameters

4.1 Stability Period

Stability period is defined as the time interval from the start of network operation until the death of the first sensor node. Figure 3 illustrates the number of dead nodes for m = 0.4, A = 1, μ = 0.5, x = 0.2 over 5,000 rounds. It is observed that for SEP with two types of nodes having different initial energy, the first sensor node dies at the round of around 863 whereas due to availability of more nodes with extra energy in TSEP, the first sensor node dies at the round of around 1,184 which is more than SEP. It is observed that in DSEP, stability period is greater than SEP and TSEP protocols as the first node dies at around 1,417.

Fig. 3
figure 3

Number of dead nodes for m = 0.4, A = 1, μ = 0.5, x = 0.2

Further, for m = 0.6, A = 1.5, μ = 0.75, x = 0.3 over 6,000 rounds, it is observed from the Fig. 4, that for the SEP the first sensor node dies at the round of around 1,132 whereas the first sensor node dies for TSEP is at around 1,420 which is again more than SEP. And the first sensor node for DSEP is around 1,483 which is greater than SEP and TSEP. So, it shows that in DSEP, stability period is greater than TSEP and SEP.

Fig. 4
figure 4

Number of dead nodes for m = 0.6, A = 1.5, μ = 0.75, x = 0.3

4.2 Network Lifetime

Network lifetime is defined as the time interval from the start of operation (of the sensor network) until the death of the last alive node. Figure 5 illustrates the lifetime of the sensor network for m = 0.4, A = 1, μ = 0.5, x = 0.2 over 5,000 rounds. We can observe that for the SEP protocol the last sensor node dies at 2,565 and for TSEP protocol, the last sensor node dies 3,905 rounds whereas for DSEP the last sensor node still alive over 5,000 rounds. It shows that the lifetime of network for DSEP is more than TSEP and SEP.

Fig. 5
figure 5

Lifetime of the sensor network for m = 0.4, A = 1, μ = 0.5, x = 0.2

Further, for m = 0.6, A = 1.5, μ = 0.75, x = 0.3 over 6,000 rounds, it is observed from the Fig. 6, that for the SEP the last sensor node dies at the round of around 3,120 and the last sensor node dies for TSEP is at around 3,732 which is again more than SEP whereas for DSEP the last sensor node still alive over 5,000 rounds. It is again observed that the lifetime of network for DSEP is more than TSEP and SEP.

Fig. 6
figure 6

Lifetime of the sensor network for m = 0.6, A = 1.5, μ = 0.75, x = 0.3

4.3 Throughput of the Network

Figures 7 and 8 illustrate the throughput of the sensor network in terms of the cluster heads alive to send the received packets to the base station or sink. We can observe that for the existing SEP protocol having two types of sensor nodes, the throughput is stable enough up to around 1,104 rounds for the values m = 0.4, A = 1 and up to 1,456 rounds for the values m = 0.6, A = 1.5. Moreover, for the TSEP protocol having three types of sensor nodes, the throughput is stable enough up to 1,783 rounds for the values m = 0.4, A = 1, μ = 0.5, x = 0.2 and up to 2,550 for the values m = 0.6, A = 1.5, μ = 0.75, x = 0.3. But with the increasing number of rounds the network throughput decreases whereas for the DSEP protocol, the throughput is stable enough up to 2,100 rounds for the values m = 0.4, A = 1, μ = 0.5, x = 0.2 and up to 3,300 for the values m = 0.6, A = 1.5, μ = 0.75, x = 0.3.

Fig. 7
figure 7

Throughput of the sensor network for m = 0.4, A = 1, μ = 0.5, x = 0.2

Fig. 8
figure 8

Throughput of the sensor network for m = 0.6, A = 1.5, μ = 0.75, x = 0.3

5 Conclusion

SEP is based on weighted election probabilities of every node to become cluster head according to the remaining energy and TSEP is reactive routing protocol in which nodes have three different levels of energies. Cluster heads choice is threshold based, due to three levels of heterogeneity. A comparative analysis of DSEP, which is based on the weighted probabilities to get the threshold for normal, super and advanced nodes points us to elect the cluster head in every round, provides a longer network lifetime, stability period and higher throughput as compared to the existing SEP and TSEP protocols. For the future scope the present work can be extended as an advanced DSEP to deal with clustered wireless sensor networks with more than three levels of hierarchy and more than three types of nodes.