Keywords

These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

1 Introduction

Wireless sensor network (WSN) is a self-organizing and distributed network which is comprised of a large number of microsensor nodes and some base stations (BS) owning wireless communication and computing capacity. WSN has been widely used in many fields, such as environmental monitoring, traffic management, health care, and national defense [1]. Sensor nodes generally come with a disposable battery powered, and their energy is very limited; therefore, the design of routing protocol is the key. In recent years, many researchers have proposed a variety of WSN routing algorithms. Among them, the clustering protocols are concerned by the researchers. LEACH is a clustering routing algorithm [2], in which each node has a certain probability of becoming a cluster head per round, and data deliver directly to BS by single-hop. Previous research has proved that multihop routing communication can save more energy [3], but it easily leads to dissipation of energy and the hot spots problem [4]. An energy-efficient unequal clustering (EEUC) algorithm was proposed [5], but it still has the following problems (1) the candidate cluster heads are selected by a preset probability, sensors with low residual energy can still become candidate cluster heads, and their energy is consumed in the election of final cluster heads. The energy of nodes is more imbalanced in the network. (2) The ordinary nodes join the cluster whose signal is the strongest, but it does not consider that some nodes near BS which send directly to BS will consume smaller energy than indirectly. (3) The method of multihop routing is unreasonable, resulting in waste of energy.

In view of the above problems, this chapter presents an energy-balanced uneven clustering routing algorithm for wireless sensor networks (EBUC). It owns the following advantages (1) differentiated from randomly producing candidate cluster heads, the EBUC selects candidate cluster head whose residual energy is not less than the cluster average energy, and the residual energy of nodes is quantified as the time for driving the cluster heads election. The selected cluster heads own high energy, and the message complexity of the cluster formation algorithm is reduced. (2) By defining the independent nodes, the loads of some cluster heads are reduced nearby BS. (3) The routing algorithm based on angle is proposed, reducing the intercluster energy consumption.

2 Network Model

The network consists of N sensor nodes, which are randomly deployed over a vast field. Each node has a unique ID in the network, and we assume it has the following characteristics.

  1. 1.

    All sensor nodes are energy heterogeneous, whose positions are fixed, and have the capability of sensing signal emission angle.

  2. 2.

    BS has endless energy, a strong computing and storage capacity.

  3. 3.

    If transmission power is known, the distance between the sender and the receiver can be calculated [6].

  4. 4.

    Sensors can use power control to vary the amount of transmission power which depends on the receiver.

We use a simplified model in which the radio hardware energy dissipation consists of the sending circuit loss and the power amplifier loss [7]. As shown in Eq. (19.1), both the free space (d2 power loss) and the multipath fading (d4 power loss) channel models are used in the model, depending on the distance between the transmitter and receiver. The energy spent for transmission of an l-bit packet over distance d is

$$ {E}_{Tx}\left(l,d\right)=\left\{\begin{array}{l}l{E}_{elec}+l{\varepsilon}_{fs}{d}^2,d<{d}_o\\ {}l{E}_{elec}+l{\varepsilon}_{mp}{d}^4,d\ge {d}_o\end{array}\right. $$
(19.1)

Equation (19.2) shows energy consumption, when the node receives this packet.

$$ {E}_{Rx}(l)=l{E}_{elec} $$
(19.2)

A cluster head consumes EDA amount of energy for data aggregation. We also assume that the sensed information is highly correlated, so the cluster heads can always aggregate the data received from its members into a single length-fixed packet.

3 The EBUC Mechanism

After the deployment of sensor nodes, BS broadcasts BS_MSG to the entire network with the determined power. Each node calculates the distance to BS by the receiving signal strength. We need to control the range of competition radius in the network and set R c of s i as Eq. (19.3).

$$ {s}_i.{R}_c=\left(1-c\cdot \frac{d_{\max }-{d}_{s_i- BS}}{d_{\max }-{d}_{\min }}\right)\cdot {R}_c^0 $$
(19.3)

c is a constant coefficient between 0 and 1. dmax and dmin represent the maximum and minimum distance between sensor nodes to BS. \( {d}_{s_i- BS} \) is the distance from si to the BS. R 0 c is the maximum competition radius which is predefined. According to Eq. (19.3), R c varies from (1 − c)R 0 c to R 0 c . As an example, if c is set to \({\raise0.5ex\hbox{$\scriptstyle 1$} \kern-0.1em/\kern-0.15em \lower0.25ex\hbox{$\scriptstyle 3$}}\), R c varies from \({\raise0.5ex\hbox{$\scriptstyle 2$} \kern-0.1em/\kern-0.15em \lower0.25ex\hbox{$\scriptstyle 3$}}\) \( {R}_c^0 \) to R 0 c according to its distance to BS.

3.1 Election of Cluster Heads

In many WSNs applications, the network node density is large, so it is not necessary for all nodes to become the candidate cluster heads. Eave is the energy threshold, which is the cluster average remaining energy in the last round. If the residual energy of some node is not less than Eave, it will become a candidate cluster head, and its competition time t is calculated in Eq. (19.4).

$$ t=\alpha \cdot {T}_{CH}\cdot \frac{E_{\max }-{E}_i}{E_{\max }-{E}_{ave}},{E}_i\ge {E}_{ave} $$
(19.4)

TCH is a period of time for the cluster head election. Ei represents the residual energy of si. Emax means the maximum residual energy of the intercluster nodes in the last round. α ∈ (0.9,1) is a random number which is used to avoid the collisions of HEAD_MSGs which are caused by the nodes owning same residual energy.

In the election, the candidate cluster heads broadcast HEAD_MSGs (containing the node ID, the competition radius Rc, and competition time t) by radius R 0 c at their competition time t, in order to declare that they win. The adjacent candidate cluster head set of si is defined as \( {\mathrm{s}}_i.{\mathrm{N}}_c=\left\{{s}_j\Big|{d}_{s_i-{s}_j}< \max \left({s}_i.{R}_c,{s}_j.{R}_c\right)\right\} \). When the sensors receive HEAD_MSGs from Nc, they will quit their own election process. After TCH, all cluster heads are selected, and then they broadcast CH_ADV_MSGs.

3.2 The Formation of Clusters

After all cluster heads are selected, the nodes are divided into the ordinary nodes and the cluster heads. Tr is a threshold for distinguishing the ordinary nodes. If the distance between an ordinary node and BS is less than Tr, the ordinary node is divided into the first class nodes. Otherwise, it is divided into the second class nodes. We assume that si is one of the first class nodes, CH is the nearest cluster head to si, and the distance between the two is recorded as dCH-BS. According to Eqs. (19.1) and (19.2), when k-bit packet is transmitted to BS by single-hop, the energy consumption is shown in Eq. (19.5).

$$ {s}_i.{E}_{direct}=k\cdot {E}_{elec}+k\cdot {\varepsilon}_{fs}\cdot {d}_{s_i- BS}^2 $$
(19.5)

If si sends k-bit packet to BS via CH, the energy consumption is shown in Eq. (19.6).

$$ {s}_i.{E}_{CH}=k\cdot \left({E}_{elec}+{\varepsilon}_{fs}\cdot {d}_{s_i- CH}^2\right)+k\cdot {E}_{elec}+k\cdot {E}_{DA} $$
(19.6)

Comparing E direct with E CH , we know that by which energy consumption is lower.

$$ {s}_i.{E}_{CH}-{s}_i.{E}_{direct}=k\cdot \left({E}_{elec}+{E}_{DA}+{\varepsilon}_{fs}\cdot {d}_{s_i- CH}^2-{\varepsilon}_{fs}\cdot {d}_{s_i- BS}^2\right) $$
(19.7)

Order H = (E elec  + E DA )/ε fs , then:

  1. 1.

    If \( {d}_{s_i- BS}^2-{d}_{s_i- CH}^2\le H \), that is s i . E CH  − s i . E direct  ≥ 0. Energy consumption that si sends data directly to BS is smaller than indirectly. si is defined as an independent node and sends a JOIN_BS_MSG to BS.

  2. 2.

    If \( {d}_{s_i- BS}^2-{d}_{s_i- CH}^2>H \), that is s i . E CH  − s i . E direct  < 0. Energy consumption that si sends packet indirectly to BS is lower than directly, and si joins the nearest cluster.

For far from BS, the energy consumption is extremely high, when the second class nodes send packet directly to BS, so they send JOIN_CH_MSGs to join the nearest cluster. When all clusters are established, a Voronoi diagram [5] is formed in the network.

3.3 Data Transmission

From the adjacent cluster head set of CH, the cluster heads which satisfy the condition of \( 0\le \theta <{\scriptscriptstyle \raisebox{1ex}{$\pi $}\!\left/ \!\raisebox{-1ex}{$2$}\right.} \) within the range of n × R 0 c are selected to constitute NRC which is the candidate relay set of CH. n is the smallest positive integral, which makes that NRC non-null. θ is an angle and measured by CH. As shown in Fig. 19.1, we assume NRC of CH contains RC1, RC2, and RC3 and θ 1 < θ 2 < θ 3.

Fig. 19.1
figure 1figure 1

The relay node model

If CH chooses RC1 as the relay node, we assume a free space propagation channel model, and RC1 communicates with BS directly. To deliver an l-length packet to BS, the energy consumed by RC1 and CH is

$$ {E}_{2 hop}={E}_{Tx}\left(l,{d}_{CH- RC1}\right)+{E}_{Rx}+{E}_{Tx}\left(l,{d}_{RC1- BS}\right)=3l{E}_{elec}+l{\varepsilon}_{fs}\left({d}_{CH- RC1}^2+{d}_{RC1- BS}^2\right)=3l{E}_{elec}+l{\varepsilon}_{fs}\left({d}_{CH- BS}^2+2{d}_{CH- RC1}^2-2{d}_{CH- BS}{d}_{CH- RC1} \cos {\theta}_1\right) $$
(19.8)

According to Eqs. (19.1) and (19.2), thus we define

$$ \cos t1={d}_{CH- RC1}^2-{d}_{CH- BS}{d}_{CH- RC1} \cos {\theta}_1 $$
(19.9)

Among them, d CH − RC1 means the distance between CH and RC1. After CH is placed in position, d CH − BS is a constant, which means the distance between CH and BS. Similarly, we can calculate cost2 of RC2 and cost3 of RC3. Because of cost1 < cost2 < cost3, RC1 is selected as the relay node of CH.

4 Algorithm Analysis and Simulation

4.1 Message Complexity

Lemma 1

The message complexity of the cluster formation algorithm is O(N) in the network.

Proof

At the beginning of the cluster head selection phase, N × T candidate cluster heads are produced, and each of them broadcasts a HEAD_MSG. If it has x cluster heads and y independent nodes, it will send out x CH_ADV_MSGs and y JOIN_BS_MSGs, and then the ordinary nodes will send N − x − y JOIN_CH_MSGs. So the messages add up to N × T + x + y + N − x − y = N(T + 1) per round. The message overhead of EBUC is N × T smaller than EEUC.

4.2 Simulation Analysis

To illustrate the energy efficiency of EBUC, we use MATLAB to simulate LEACH, EEUC, and EBUC under an ideal condition, and packet loss and delays are ignored. The energy consumption of data aggregation and transmission is measured in the experiment. Firstly, survival time of the network is measured, and the energy efficiency of EBUC is analyzed. Secondly, the residual energy and energy consumption characteristic of cluster heads are analyzed. The simulation parameters are shown in Table 19.1.

Table 19.1 Simulation parameters

Figure 19.2 is the cluster heads average energy curve of three protocols in 25 randomly selected rounds, and it shows that the cluster heads average energy of EBUC is the highest of the three algorithms. Figure 19.3 is the comparison of cluster heads total energy consumption of three protocols in 25 randomly selected rounds. It shows that the total energy consumption of EBUC is the lowest of the three algorithms.

Fig. 19.2
figure 2figure 2

Cluster heads average energy

Fig. 19.3
figure 3figure 3

Cluster heads energy consumption

Finally, we examine the network lifetime of three algorithms. Figure 19.4 shows that EBUC clearly improves the network lifetime over LEACH and EEUC. In EEUC, candidate cluster heads are randomly selected. Therefore, sensors with low residual energy can still become candidate cluster heads, and their energy is consumed in the election of final cluster heads. Such is avoided in EBUC. Multihop routing based on angle is used in EBUC, so its energy consumption of EBUC is lower than EEUC as illustrated in Fig. 19.3. Comparing to EEUC, stable period of EBUC is increased by 10.6 %. Simulation results show (1) EBUC is able to effectively balance the energy consumption of nodes in the network and extend the network survival time. (2) The cluster heads of EBUC own the highest average energy and capacity of data transmission of the three algorithms. (3) The energy consumption of EBUC cluster heads is the smallest of the three algorithms.

Fig. 19.4
figure 4figure 4

Number of survival nodes curve

5 Conclusion

The article proposes an energy-balanced uneven clustering WSN routing algorithm EBUC. The main idea is that the candidate cluster heads are produced by the candidate threshold and their own competition time, so it avoids that the candidate cluster heads are produced randomly and at the same time the message complexity is reduced. Then, it introduces the concept of the independent nodes to reduce some cluster head loads, and the intercluster route is optimized by the factor of multihop energy consumption for saving energy of cluster heads. Simulation results show that the cluster heads energy of EBUC is the highest of the three algorithms, and its energy consumption is the lowest, and it can efficiently prolong the network lifetime.