1. Introduction
The concept of smart cities continues to attract a lot of interest from industry, academia and policy makers to enable better quality of life for cities’ inhabitants. At the forefront of these cities, sensors and actuators are the main driver for many value-added services and the expected automation, which not only targets the improvement of the urban life, but also the reduction of the management costs of these cities [
1]. In order to support the provision of these new services, Wireless Sensor Networks (WSNs) and other similar sensing technologies should be deployed all over cities [
2]. Once deployed, these different sensors automatically organize themselves, forming an ad hoc network, in order to ensure global connectivity, regardless of their ranges, which are sometimes very limited. Once deployed and configured, such sensors allow the monitoring of multiple metrics such as motion, temperature or humidity level; they could be responsible for generating certain events, such as the detection of a fire, to take safety measures in real-time [
3]; they could even trigger actions, directly or indirectly, such as turning on the light when detecting movements.
WSNs are composed of tiny, low powered, low cost and light weighted sensor nodes. These nodes are capable of sensing, processing, aggregating and transmitting data on the wireless channel directly to the base station (BS) or via neighbor nodes to BS [
4]. Usually, WSNs are deployed in remote sensing fields where each node is equipped with a non-replaceable battery and consumes an amount of energy while sensing, aggregating and transmitting data [
4]. Hence, communication among sensor nodes must be efficient for faster relief operations in emergencies. In some situations, like areas where accessibility is difficult, it is almost impossible or too costly to replace the exhausted batteries [
5]. Since the lifetime of a sensor node depends on its battery or power source capacity, which is consumed through communication and sensing activities, it is necessary to design energy-aware solutions to increase the lifetime of WSNs [
6]. The design of energy-efficient routing techniques for WSNs is very challenging task due to the limited computational and storage capacities in such tiny and energy-constrained sensors [
7,
8]. In this paper, we propose a new protocol called LEACH-PRO (LEACH enhanced with probabilistic cluster head selection), which represents an enhanced version of LEACH (low energy adaptive clustering hierarchy), in order to maximize WSNs’ lifetime.
The main contribution of this paper is to overcome LEACH’s related issues, outlined in
Section 5, by designing a new probabilistic mechanism in which CHs selection is made based on two metrics: The maximum residual energy and the minimum distance to the base station. While LEACH-PRO has similar design logic as LEACH, the main difference lies in the CH selection process and the fact that sensors located at the border of the sensing field are excluded from participating in the CH selection process under certain conditions, making LEACH-PRO more energy efficient than LEACH. An extensive performance evaluation is performed under varying network densities by measuring several metrics of interest and the results have proved the effectiveness of LEACH-PRO. Moreover, one of the distinguishing features of LEACH-PRO is its compatibility with other state of the art approaches, such as those concerned with the determination of the number of clusters and could therefore be used jointly to complement them.
The remainder of this paper is organized as follows. In
Section 2, we provide a brief overview of the importance of wireless sensor networks in smart cities. In
Section 3, we present an overview of LEACH routing protocol followed by the literature review in
Section 4. Afterwards, we introduce our proposed scheme, named LEACH-PRO, and discuss its operation in detail in
Section 5. In
Section 6, we present and analyze the obtained simulation results. Finally, we conclude the paper in
Section 7.
2. WSNs Enabled Smart Cities Applications
To deal with the expanding demography of urban centers, the development of smart cities is becoming more and more critical. These cities will indeed improve the quality of life of citizens by optimizing their daily lives (e.g., urban transportation planning), their safety (e.g., rapid response in emergency situations), while offering them value-added services (e.g., remote monitoring and control of their homes). On the other hand, these cities are expected to integrate intelligence, in order to automate their operation, and should foster energetic sobriety, for a more sustainable and resilient world [
9].
The deployment of heterogeneous wireless network technologies will be necessary to enable these advances. Long-range wireless networks, such as 5G or Beyond 5G (B5G) networks, will definitely be needed to serve bandwidth-intensive or low-latency applications. These cities will also require sensor networks, whether short-range, such as WSNs, or long-range, such as Low Power Wide Area Networks (LPWANs), which could serve as a base station (or sink) to aggregate and report sensors readings.
Without being exhaustive, WSNs can be considered in several use cases in smart cities. Their use within smart road infrastructure and integration with Connected Autonomous Vehicles (CAVs) will help preventing accidents while improving traffic flow fluidity. Their use in buildings can reduce energy consumption when combined with actuators. They can trigger alerts, faster, during fires, and allow to adapt, for example, the frequency of the means of transportation according to the needs, enabling a significant reduction in carbon footprint. The number of applications and practical use cases are extremely numerous and are only limited by the boundaries of the human imagination [
10].
By organizing themselves in networks, WSNs potentially cover large areas, even inside buildings [
11]. However, the viability of these sensors is very much linked to their lifetime which should be of several years. To maximize the operating lifetime of these wireless sensors, several strategies have been proposed in the literature. These techniques can be broadly divided into three categories: (i) Strategies based on energy harvesting from the environment (stemming from different sources such as solar, mechanical, or electromagnetic energy) [
12], (ii) strategies optimizing the idle time of the devices [
13], and (iii) techniques aiming to optimize the wireless devices’ operation [
14]. These different strategies can be found in different scenarios for smart cities. They are in no way contradictory, and can even be leveraged by the same wireless sensors.
In this paper, we focus on the operational optimization of sensors, and particularly on clustering techniques. Thus, our contribution may concern the various introduced use cases, in which clustering strategies are central for enhanced energy savings. Please note that all notations used in the rest of the manuscript are summarized and explained in
Table 1.
3. Background and Overview of LEACH
In WSNs, recharging the batteries of sensor nodes is an infeasible task [
3]. Hence, the network lifetime is a primary concern in WSNs. In order to prolong the network lifetime, several routing protocols exist and could be classified into two types depending on the network topology: Flat routing protocols and Hierarchical routing protocols. Since flat routing protocols require maintaining routing table data and cannot aggregate the sensed data, they are not applicable for large scale WSNs. However, hierarchical routing protocols can solve this issue to some extent. Direct Transmission (DT) [
4] is the basic hierarchical routing protocol used for transferring data from source node to the destination directly without any intermediate node. Due to this, DT consumes more power for sending information towards the BS, especially when this latter is located far away from the sensing field. This will quickly degrade nodes’ battery and reduce the overall lifetime of the network [
4].
3.1. First Order Radio Model
Low energy radio model is considered as an important factor to communicate effectively over a network. In our work, simple energy consumption first order radio model is presumed. However, energy consumption in transmitter and receiver modes will affect and compensate the performance of routing protocols. In transmitter and receiver mode electronic circuitry dissipate
=
=
= 50 nJ/bit to run different operations of a given radio model. At the transmitter end the signal is amplified to ∈= 100 pJ/bit/m
for achieving acceptable bit to noise ratio
at the receiver end, as shown in
Table 2. Generally, this model describes the energy consumption while transmitting and receiving a packet to neighbor node or to an end station. Equations (
1) and (
2) show the mathematical model for energy dissipation when transmitting a
bit packet to remote distance
.
Equations (
3) and (
4) describe the energy dissipation induced by the reception of
bits packet. In this model, the receiver consumes less energy than the transmitter [
15] because it does not need to further amplify the signal for forwarding the received information, but instead will only process it.
Symmetric radio channel is assumed in this model, in which the energy required to transfer information from a node
X to a node
Y is similar to that needed to transmit the same information from node
Y to node
X. Alternatively, the clustering protocols are designed in such a way that consumes minimum amount of energy for each transition. Additionally, transmit distance should also be reduced for improving the energy consumption for transmission and receiving operation, especially in this model [
4,
16,
17,
18].
3.2. Direct Transmission (DT)
DT is the basic routing protocol used in WSNs to route the data from the sensing field directly, without any intermediate node or AP (Access Point), towards the base station. The deployed nodes in the field transmit the sensed data directly to the BS without any intermediate or neighbor node intervention. The nodes located far away from the BS will consume more energy, as opposed to the closer ones, because the energy consumption is directly proportional to the distance separating the sender node from the BS. Such transmission operation will rapidly deplete the nodes’ battery, which in turn leads to degradation of overall network lifetime. The BS is considered as a remote monitoring station equipped with sufficient power for processing the received data from the sensing filed.
To better understand the energy consumption in DT, consider a linear simple network model composed of
n sensor nodes separated by uniformly distributed distance
r. Equations (
5)–(
7) describe the energy consumption needed for transmitting
l bits long message from the sensing field to the BS in this network. For communication and data transmission, DT uses first order radio model explained in
Section 3.1 [
4,
18].
3.3. LEACH Overview
Due to their tiny size, WSNs’ nodes have limited energy resources, meaning that energy-efficient routing is compulsory to maximize the network lifetime. As discussed in
Section 2, several energy-efficient routing protocols have been proposed for WSNs in the literature, each of them has its advantages and limitations. However, hierarchical and cluster based routing techniques are the most prominent ones as they foster more energy efficient operations than other alternative schemes. Low Energy Adaptive Clustering Hierarchy (LEACH) is considered as one of the most important basic cluster-based routing protocols used for efficient communication in WSNs. A clustering algorithm ensures optimal energy utilization as compared with non-clustering routing algorithms [
4]. LEACH is a basic energy efficient routing protocol that minimizes the power consumption in all aspects of communication, thus improving the network lifetime. In LEACH, the network is divided into a number of clusters, each cluster comprises a cluster head (CH) and a set of cluster members (CMs) as shown in
Figure 1. CMs sense and aggregate data from the sensing field and transfer it to the CH. CHs are then responsible for transmitting this data to the BS. LEACH uses randomized selection of CHs to give equal chance to all participating nodes for competing in CHs selection process rather than using a pre-determined selection of CHs. In static clustering, CHs usually transmit data continuously, consume more power, and die quickly. LEACH operates in rounds; each round consists in two phases, setup phase and steady state phase. In setup phase, a CH is selected based on the generated random number
between zero and one. If the random number
is lower than the threshold function
, a CH node is elected as shown in Equation (
8) [
4].
where
p denotes the probability of selecting a node as CH in
r rounds, and
G represents a set of nodes that have not been selected as CHs in
rounds. The nodes selected as CHs generate an advertisement message and broadcast it to CMs; the CMs will then join one of the clusters depending on the maximum received signal strength (RSS). The CH creates a Time Division Multiple Access (TDMA) slot for each CM for collision free intra cluster communication. In steady state phase, CHs compress, aggregate and transmit data to the BS. In LEACH, the number of transmissions is reduced by introducing the clustering. Efficient CHs selection reduces the power consumption of individual nodes, which maximizes the overall network lifetime [
3].
3.3.1. Setup Phase
LEACH completes its operation in rounds, each round starts with a setup phase followed by a steady state phase. Initially, a cluster organizes itself in the setup phase and completes its advertisement operation. Then, in the steady state phase the CMs transmit data to the CH and this latter transfers the aggregated data to the BS [
4,
18].
When the clusters are created, each node individually decides whether to participate in CH selection operation in the current round or not. Equation (
8) shows the formula for calculating
threshold value where
is a node and
p is the probability of node
to become the CH in round
r.
G is a set of nodes that are not selected as CH in previous
rounds. Based on these parameters the threshold value is calculated for further setup operations [
7].
Regardless of the network density, the decision is made up on the initial probability (i.e., the probability
p used in Equation (
8) of the nodes that will become the CH. Afterwards, those nodes get a chance to become the CH for the current
rounds. CHs broadcast an advertisement (ADV) message to all nodes. Upon receiving an ADV message, CMs send a response message to their chosen CH individually based on the measured RSSI. Each CH creates a TDMA schedule and sends it to its CMs to avoid the collision while transmitting data to CH. Each CM receives the TDMA schedule and accordingly switches to sleep state until its scheduled time slot is reached. At this instant only, this CM can send the data. The operation of TDMA schedule creation is illustrated in
Figure 2, where
refers to Time Slot
i.
3.3.2. Steady State Phase
At the end of the setup phase operation, every CM can start the data transmission towards its CH during its own assigned time slot. We assume that each CM has always data to transmit. Regardless of the communication in each cluster, the CH must keep its radio receiver on for receiving all data from its CMs. In addition, when TDMA time slot is over or a round time has ended the CH performs data compression over the received data from its CMs and sends the resulting data to the BS. As the distance from the BS to the CH is significantly larger than the distance separating this latter and its CMs, this transmission requires high-energy consumption compared to other data transmission operations. This whole process represents the steady state phase operation of LEACH. Subsequently, the sensor nodes which have not been elected as CH in previous rounds will participate to become CH in next rounds.
4. Related Work
In this section, we will provide a brief overview of the most important works that have proposed extensions or improvements to the basic LEACH protocol discussed in the previous section.
In [
19], the authors proposed an effective differential evolution (DE) based routing algorithm, named DE-LEACH, to improve the performance of LEACH. DE-LEACH’s CHs selection process is similar to LEACH, i.e., random selection based on threshold value shown in Equation (
8). DE-LEACH is designed by leveraging two of the most important factors of WSNs, which are energy consumption and the distance separating neighboring nodes inside a cluster, to overcome the early death of CHs issue. DE-LEACH features a fast search mechanism based on optimum level while selecting CHs in the setup phase. Performance evaluation results, using simulation, show that DE-LEACH can successfully prevent random selection of nodes during the clustering process while improving large-scale WSNs lifetime. However, the exclusion of random selection of CHs using optimal level based on residual energy increases the complexity of the algorithm and the overhead in the network [
19].
In Energy-Efficient LEACH (EE-LEACH) protocol, proposed in [
20], the CH selection is based on the residual energy where a sorting algorithm extracts the residual energy of each sensor node and the one which has the maximum residual will be chosen as a CH. Gaussian distribution is used for computing the coverage probability. The collection of data can save substantial energy despite the fact that one cluster formed in a small area can consume less energy than the cluster formed in a larger one. The experimental evaluation of EE-LEACH highlights that it has higher packet delivery ratio, lower end-to-end delay and lower energy consumption, but It achieves this at the cost of more traffic on the network. In Intra Cluster Balanced Cluster LEACH (IB-LEACH Protocol) [
21], the clustering process is divided into two phases, i.e., intra cluster and inter cluster, which will further help to increase the energy efficiency of the system. The evaluation results reveal that the use of IB-LEACH protocol increases the network lifetime. On the other hand, due to the extra computing required it increases the traffic load to some extent.
Assisted LEACH (A-LEACH) [
22] is an amplified form of LEACH aiming to minimize the power dissipation of CHs by introducing a helper node, called assistant node, to the cluster head. In A-LEACH, when a cluster is formed and the CH is selected this latter selects a helper node located near the base station. Then, the cluster head aggregates the received data from the cluster members and sends it, through the selected helper node, to the BS. The evaluation results has shown that A-LEACH performs better than LEACH.
Balanced-LEACH (LEACH-B) uses de-centralized approach for cluster formation in which each node knows the final destination to transmit data to and its own position but has no information about other nodes [
23]. LEACH-B operation consists of three steps, cluster formation, CH selection and data transmission. A sensor node sends data to destination node using the best path characterized by the low power dissipation and based on that it selects the CH. Firstly, the great convergence and global optimization capability of the proposed algorithm can reasonably divide the entire network area into a number of sub-regions. Then, in each sub-region a CH is elected taking the residual energy factor into account. The conducted experiments results have shown that, compared to LEACH, LEACH-B can effectively balance the network load and improve the energy usage, so as to extend the network lifetime. However, the division of the entire network into sub-regions increases the communication overhead in WSNs [
23].
In Round Robin Cluster Head (RRCH) [
24], clusters are created one time only, using similar method to LEACH, in order to minimize the energy usage during the clustering phase. Once the clusters are formed, RRCH keeps the clusters fixed and uses the round-robin scheme to select the CH within each cluster. All nodes have equal chance to be CH during each frame. Upon detection of an abnormal node, the CH modifies the scheduling information and broadcasts it to the entire cluster during the frame modification. Afterwards, its cluster members delete this abnormal node based on the received updated schedule information. Similar to LEACH, RRCH suffers from the incapability of guaranteeing a good quality of the formed clusters. Without the periodic re-clustering (i.e., regeneration of clusters), RRCH cannot manage clusters with varying sizes (e.g., overlay of clusters, very small or very large clusters).
Fixed LEACH (LEACH-F) [
25] is centralized technique of cluster formation in which the clusters are formed permanently by the base station, only the CHs are changed within a cluster in rotation. In default LEACH, re-clustering is performed in each round, whereas, LEACH-F removes re-clustering process in next rounds for the whole network lifetime. The steady state is similar to LEACH. LEACH-F is not flexible due to preemptive policy of clusters formation. Before the completion, in each round, energy and information are wasted due to fixed round time in the steady state. Because the CHs or CMs in each cluster cannot change their behavior, this results in an uncertainty in the whole network and degrades the overall performance. This problem can be minimized by introducing a relationship between residual energy of nodes and round time within a cluster.
When the size of WSNs exceeds certain level, the distance between the CH and base station increases significantly, creating problems for single hop communications in LEACH [
26]. Multi-hop LEACH (M-LEACH) solved the above issue by using multi-hop communication between the CHs and the base station. In
Table 3, we compare LEACH and its various extensions based on the communication pattern considered, the assumption made about the mobility of sensor nodes, the achieved level of scalability, the used clustering approach, in addition to the achieved energy-efficiency level and the generated overhead.
Many LEACH related approaches continue to be proposed in the literature. A recent study presented a detailed taxonomy of such existing works [
27]. Among the aspects addressed in this study are the determination of the number of clusters [
28] and the consideration of the devices’ mobility [
29]. While these aspects are essential, they are not covered in this paper which focuses more on the routing aspects through the design of an efficient selection of cluster heads.
5. Our Proposed Scheme
While LEACH is an interesting routing protocol for WSNs it suffers from a number of weaknesses that affect its performance. Such weaknesses are due to a number of factors related to its operation, as highlighted below.
Ignoring the residual energy of sensor nodes when selecting the CH in next rounds. Therefore, if a sensor node with low residual energy is chosen as the CH, then it dies quickly. Hence, the robustness of the network is affected and its lifetime degrades.
The CHs located at the boundary of the clusters would dissipate more energy and thus decrease the overall performance of the network.
CHs located far away from the BS consume more energy for transmitting data compared to CHs closer to the BS. This can compromise the network life time.
To overcome these issues and improve the performance of LEACH, a new variant named LEACH enhanced with probabilistic cluster head selection (LEACH-PRO) is proposed. LEACH-PRO introduces a probabilistic mechanism in which CHs selection is made based on two metrics: The maximum residual energy and the minimum distance to BS. LEACH-PRO has similar design logic as LEACH since both protocols operate in rounds. Each round completes its operations in two phases; setup phase and steady state phase. The main difference lies in the CH selection process and the fact that sensors located at the border of the sensing field are excluded from participating in the CH selection process if they satisfy the conditions set in Equation (
9). LEACH-PRO detailed operational steps are illustrated in
Figure 3. We assume a static deployment of sensor nodes in the sensing field with the coordinates of each node determined a priori as
to easily identify borderline nodes. Each node generates a random number and saves it in its memory. However, nodes at the borderline must be selected as CM only and excluded from the CH selection process.
It is worth noting that several other parameters could be determining for keeping a cluster active for a maximum duration. Among these parameters, there is the number of clusters in the network as well as the update frequency of the cluster head selection. These factors are discussed in several papers in the literature such as [
30,
31]. While in this paper we focused on clusters with constant load, our proposed algorithm is compatible with several strategies in the literature, such as those discussed in [
32], which are based on a dynamic determination of the number of clusters.
5.1. Role of a Border Sensor Node
The node that resides in the borderline of the sensing field or closer to it is considered as a border node. The node selected as CH must operate and communicate with its neighbors efficiently. When clusters are formed, almost in circular fashion, each CH broadcasts its ADV message to its neighbors. Such message is transmitted to all members of each cluster. A border node can cover its communication range either side of the sensing field, therefore, if it is selected as CH, it cannot communicate with its CMs effectively. To avoid such issue, LEACH-PRO excludes border nodes from participating in the CH selection process to improve the overall performance.
Let us assume that the coordinates of each node (
,
) are predetermined when the nodes are distributed in the sensing field. Thus, any node that satisfies the conditions set in Equation (
9) is eligible to participate in the CH selection process; otherwise, it is excluded. These conditions are defined based on
Figure 4 which illustrates the area in the sensing field where border nodes are located. Nodes in this area cannot be selected as CH in next rounds and are declared as CMs.
5.2. Advertisement Packet Message (ADV PKT)
Generally, for clusters formation a threshold number
is calculated based on the probability function as given in Equation (
10). If the randomly generated
number between 0 and 1 is less than
then the node
will be selected as CH from the set
G of nodes that have not been elected as CH in the previous 1/p rounds. The first round of LEACH-PRO is similar to that of LEACH but next rounds will follow the working principle of LEACH-PRO, as illustrated in
Figure 3. ADV PKT is a control packet with a size of 200 bits as set in our simulation, that contains the current energy level of the CH node, the distance separating it from the
and its cluster Id denoted by
,
and
respectively as shown in
Figure 5.
where
is the Average Energy of System,
refers to the Current Energy of CM,
is the Distance separating a CM from the BS,
r represents the Number of Rounds,
denotes the Number of Nodes in each Cluster,
is the Average Distance to the BS, and
G represents the set of nodes that have not been selected as CH in 1/
p rounds.
5.3. Cluster Head Selection Process
The primary metric for selecting CHs is the residual energy of a node, as it is considered an optimal parameter for achieving better performance, while the distance to the BS is considered a secondary metric in the selection process of the CHs. In this regards, the following three cases are inspected. When a node is elected as a CH in the second round, it generates an ADV message and broadcasts it towards its CMs, as shown in
Figure 6a.
5.3.1. Case1:
Suppose that every CM in a cluster has less residual energy than the CH. Hence, each CM directly responds to join that specific CH, as shown in
Figure 6b.
5.3.2. Case2:
In this case, a CM with a higher residual energy than the CH generates a new ADV message and broadcasts it to its neighbors as a dominant CM in a cluster. Upon receiving this new ADV message each CM including the previously declared CH, discards the first received ADV message based on the
information and responds to the new CH, as illustrated in
Figure 7b.
5.3.3. Case3: IF
Finally, this case cannot be resolved without considering the distance separating both nodes from the BS. If a CM within a cluster has similar residual energy as that of the declared CH, then this CM will check the distance to the BS metric. If this CM is closer to the BS than the currently declared CH then, the CM declares itself as CH and generates a new ADV message and broadcasts it to its neighbors in similar way as in case 2. Otherwise, the operation will be the same as in case 1. The operation of case 3 is illustrated in
Figure 8.
Finally, after selecting the optimal nodes as CHs, each CH defines a TDMA schedule and sends it to its CMs. Upon reception of this TDMA frame each CM switches to sleep state until its time slot is reached. The remaining operations of LEACH-PRO are similar to that of LEACH.
5.4. Complexity Analysis
The computational complexity of LEACH-PRO is very low and allows a fast convergence. The latter is of the same order of magnitude as the original LEACH protocol [
33]. Indeed, there is no combinatorial here that would make the execution time important, so the execution time is of the order of
. However, if one looks at the functional complexity, by counting the number of messages exchanged, the complexity of our protocol is reduced since the edge nodes (i.e., border sensor nodes shown in
Figure 4) do not participate as CHs. For more details about the functional complexity, one could refer to [
33].
6. Results and Discussion
A simulation environment is created using MATLAB-2015A where DT, LEACH and LEACH-PRO are implemented to evaluate and compare their performance under different scenarios. The simulation parameters used are similar to those used in many state of the art works in this topic. The main performance evaluation metrics used are NDR (Nodes Death Rate), SRE (System Remaining Energy) and Packets to BS. NDR is calculated by measuring the First Node Death rate (FND), Half of Nodes Death rate (HND) and 90% of nodes death rate. Similarly, SRE is also calculated by measuring the remaining energy in percentage as 10% SRE, 50% SRE and 90% SRE to analyze the overall performance of the protocols. Packets to BS refers to the number of packets sent towards the base station. A summary of the simulation setting is presented in
Table 4.
Besides the above metrics, packet delivery ratio and end-to-end (E2E) delay measurements are very important metrics as well since they will uncover any potential negative effect of the proposed LEACH-PRO scheme. Indeed, a decrease in packet delivery ratio and/or a high end-to-end delay will make LEACH-PRO unsuitable for certain application scenarios where low delay and high reliability are required. To investigate these two metrics thoroughly we will measure them in the experiments to be conducted in the monitoring environment setup at QUEST, in Nawabshah and the results will be reported in another experimental paper.
6.1. Analysis of Network Lifetime and NDR
The network lifetime is described as the time elapsed between initiating the network operation until the death of its last node. The scenario simulated in our experiments is similar to the topology shown in
Figure 1.
In this scenario, nodes density is also varied from 50 to 500 nodes to analyze the scalability of the three protocols.
Figure 9 and
Figure 10 depict the achieved network lifetime and NDR by DT, LEACH and LEACH-PRO when applied to a WSN with sizes of 50, 100, 200 and 500 nodes respectively. The plotted results show that LEACH-PRO is outperforming the other two protocols. In DT, the source node directly transmits its data to the BS and thus consumes more transmit power, hence, the death rate of nodes in DT is much higher which makes the network lifetime much shorter as well. In LEACH, instead of direct transmission the data is transmitted via CHs, thus, LEACH achieves longer lifetime than DT, but the blind CHs selection leads to a fast degradation in its performance compared to LEACH-PRO. The supremacy of this latter, in relation to network lifetime and NDR, is mainly due to its efficient probabilistic CH replacement based on maximum residual energy and minimum distance to BS. From
Figure 9 and
Figure 10 we observe as well that the increase of the network density negatively affects the performance of all protocols, including LEACH-PRO, but this latter is still performing better than DT and LEACH.
More specifically,
Figure 9a and
Figure 10a illustrate the network lifetime and NDR for a WSN of size 50. As shown in
Figure 10a, the first node dies after 263 rounds, in DT, after 759 rounds, in LEACH and after 1484 rounds in LEACH-PRO. For DT, 50% of nodes die after 502 rounds, and the entire network die after 584 rounds, whereas for LEACH 50% of nodes consume their entire power after 1114 rounds. These results highlight that the death of the first node in LEACH-PRO occurs after the death of 1005 of nodes in DT and 50% of nodes in LEACH. This trend continues when the network size is increased to 100 nodes. However, for a network with 200 nodes, the FND in LEACH-PRO occurs after the death of all nodes in DT but before HND occurrence in LEACH. This trend will hold with a network of 500 nodes. Such significant improvement of performance shown by LEACH-PRO is justified by the stability in finding a node with maximum residual energy to act as a CH.
6.2. Impact of Network Density on NDR
Figure 11 and
Figure 12 show the evolution of FND and HND occurrence under the three protocols when the WSNs size increases. The plotted results reveal that the speed at which FND and HND occur in all protocols increases with the increase of the WSNs size but the speed increase varies. If we compare the FND occurrence between the WSNs of 50 and 500 nodes, we find that the death speed increases by a factor of 3.37, 1.36 and 1.67 in DT, LEACH and LEACH-PRO respectively. For HND, its occurrence speed has similar trend to FND where it increases by a factor of 5.52, 1.28 and 1.96 in DT, LEACH and LEACH-PRO respectively. The analysis of these results tell us that although LEACH-PRO is still outperforming DT and LEACH it has a slightly higher HND speed compared to LEACH.
6.3. Analysis of Energy Consumption
Each node in WSNs is equipped with a limited power source or battery. Therefore, the nodes energy should be utilized in an efficient manner for better sustainability of the network. The lifetime of a node is directly proportional to the speed at which its energy is being consumed. In this work, the initial energy of each node is set to 0.5 Joule.
Figure 13 and
Figure 14 represent the system residual energy (SRE) and energy consumption evaluation of DT, LEACH and LEACH-PRO for network size of 50, 100, 200 and 500 nodes respectively. As illustrated in the plotted results, LEACH-PRO is outperforming the other two protocols. DT has fast energy degradation rate as it does not use intermediate nodes for transmission towards the BS. LEACH uses its own probability function for selecting CHs, where each node has the same probability to become a CH, thus all nodes die quickly because of the blind CH selection strategy. LEACH-PRO, however, achieves the lowest degradation rate of energy due to its CH selection strategy that maximizes the energy efficiency of the network.
As shown in
Figure 14, DT consumes more energy in less number of rounds and exhibits low performance as the size of the network increases. LEACH and LEACH-PRO both show comparable performance at the start of communication operation and do not have much difference up to 50% of SRE. However, beyond this limit and up to 10% of SRE LEACH-PRO performs significantly better than LEACH. This supremacy of LEACH-PRO is inversely proportional to the increase of WSNs size as the performance gap between it and LEACH shrinks as the network gets larger.
6.4. Analysis of Traffic Load in the Network
Traffic load is measured as the number of packets transmitted in the network. Higher packet transmissions directly affect the bandwidth and energy consumption, these resources are limited and thus their usage should be optimized. Therefore, it is necessary to reduce the frequent packets transmission in the network.
Figure 15 illustrates the traffic load pattern generated by the three protocols. As we can see, DT generates high traffic load as compared to LEACH and LEACH-PRO due to the frequent transmissions towards the BS, and sensors die quickly after at most 500 rounds. The traffic load generated in LEACH increases gradually to stabilize after 1500 rounds, for networks of 200 and 500 nodes, and after 1000 rounds for smaller networks. LEACH-PRO has similar pattern to LEACH but the traffic load generated is almost 40% to 50% lower, especially after the first 500 rounds.