1. Introduction
Wireless sensor networks (WSNs) have attracted widespread attention in recent years. Due to the low cost, small size and self-organization of sensors [
1], WSNs have been adopted in diverse application fields, such as military, crime prevention, environmental monitoring, health care services, vehicular movements, etc. [
2,
3,
4] As sensor nodes are supplied by non-rechargeable batteries [
5], designing an energy-efficient routing protocol to prolong the network lifetime is a vital issue in WSNs.
A number of routing protocols have been proposed to reduce the energy consumption of WSNs. Among them, the clustering scheme has better flexibility and scalability, and is considered to be one of the most effective solutions in this regard. Therefore, most of the current researches on routing protocols are based on the clustering scheme, such as LEACH (Low-Energy Adaptive Clustering Hierarchy) [
6], PEGASIS(Power-Efficient GAthering in Sensor Information Systems) [
7], HEED (Hybrid Energy-Efficient Distributed clustering) [
8], EEMC (Energy-Efficient Multi-level Clustering) [
9] and so on. Clustering can improve energy efficiency, but it can cause hotspot problems [
10,
11].
Many energy-efficient clustering routing algorithms have been proposed to solve the hotspot problem. Reference [
12] proposed a gravitational search algorithm (GSA) based clustering and routing algorithm. GSA uses formulae to elect CH nodes and assign nodes to address the hotspot problem. The UCCGRA (Unequal Clustering and Connected Graph Routing Algorithm) algorithm [
13] considers the clustered network with unequal size based on sensor energy used for the transmission. The work highlights the concept of balancing the node energy for inter and intra cluster communication. In UCCGRA, the vote based selection of CH nodes creates more control message overheads during re-clustering, which cause unnecessary energy depletion. Grid-based clustering protocols, such as [
14,
15,
16], form clusters by dividing the network area into grids. The size of the grids away from the BS is larger than the size of the grids near the BS, which can alleviate the hotspot problem to some extent. However, for a network environment with uneven node distribution, grid-based clustering is unreasonable. Because there may be a large difference in the number of nodes in the same size grids.
The aforementioned protocols improve the energy efficiency of WSNs. However, not all the protocols carefully consider the distribution of nodes. Moreover, most of these algorithms focus only on the selection of CH nodes. They do not carefully consider the distribution and scale of clusters. The protocols suffer from an energy imbalance across the network. The hotspot problem still exists to a certain extent and some protocols cannot be applied to large-area network environments. This paper proposes a PSO-based uneven dynamic clustering multi-hop routing protocol (PUDCRP), which alleviates the hotspot problem and achieves better energy balance. We use an improved PSO algorithm to determine the circular area where candidate CH nodes are located. We introduce a multi-objective fitness function to select CH nodes. We also propose a connecting line aided route construction method to achieve an energy efficient routing. Simulation results proved that PUDCRP has a better performance in network lifetime and energy consumption of the network. The major contributions of this paper can be summarized as follows.
We propose a PSO-based uneven dynamic clustering method which divides the network area into circles with unequal sizes based on the distribution of nodes. The circles far away from the BS are larger than the ones near the BS, which can alleviate the hotspot problem.
We introduce a multi-objective function to select CH nodes from the circles. The function considers nodes’ residual energy, the number of neighbor nodes, and distances from the nodes to the BS. Therefore, the intra-cluster energy consumption is minimized.
Two fitness functions are proposed to determine the optimal positions of the circular areas in our PSO method. The Gbest fitness function is to achieve the maximum coverage across the network. The fitness function used to determine Pbesti is the absolute value of the difference between the actual number of nodes covered by the circular area and the number of ideal coverage nodes, which makes each circular area contain the number of nodes that match its size.
A connecting line aided route construction method is proposed to determine a multi-hop route. The method considers the distance from the candidate CH node to the connecting line between the source CH node and the BS, the transmission distance from the source CH node to the candidate CH node, and the residual energy of candidate CH node. Hence, the energy consumption of the transmission is reduced.
The rest of the paper is organized as follows. The related work is described in
Section 2. The network and energy models are proposed in
Section 3. The overview of PSO is introduced in
Section 4.
Section 5 introduces the detailed PUDCRP protocol. Experiment results are discussed in
Section 6 by comparing with other protocols. The conclusion is presented in
Section 7.
4. Overview of PSO
Before presenting the proposed algorithm, we give an outline of the particle swarm optimization (PSO) (Kennedy et al. 1995) algorithm [
35]. PSO is based on a swarm of particles of a predefined number (say
Np). Each particle
Pi (1 ≤
I ≤
Np) provides a complete solution to a multidimensional optimization problem. Dimension
D of all the particles is equal. Particle
Pi has position
Xi,d (1 ≤
d ≤
D) and velocity
Vi,d in the
dth dimension of the multidimensional space. Let the
ith particle
Pi of the population be represented by Equation (3) as follows.
A fitness function is used to evaluate each particle to judge its quality of the solution to the problem. The personal best called
Pbesti is the best position of each particle
Pi. The global best called
Gbest is the best position of all particles
. In order to reach the global best position, each particle
Pi follows its own best, i.e.,
Pbesti and
Gbest to update its own velocity and position. In each iteration, its velocity
Vi,d and position
Xi,d in dimension
D is updated by using Equations (4), (5), respectively.
where
TR is the maximum number of iterations,
w (
wmax = 0.9,
wmin = 0.4) is self-adapting parameter,
c1 and
c2 (0 ≤
c1, c2 ≤ 2) are the acceleration coefficients, and r
1 and r
2 (0 < r
1, r
2 < 1) are the randomly generated values. The update process is repeated until an acceptable value of
Gbest is obtained or a fixed number of iterations (
tmax) is reached. After getting a new updated position, the particle evaluates the fitness function and updates
Pbesti as well as
Gbest for the minimization problem as follows.
Figure 1 shows how a particle explores in the multi-dimensional search space to achieve a global best solution. A particle
Pi occupies position
Xi,d(
t) with velocity
Vi,d(
t) at a point of time and it is moving in a certain direction. Later the particle changes the direction and moves to another position using its memory. It then changes its direction again by the influence of the swarm and occupies a new position
Xi,d(
t+1).
After a number of iterations, the particles will find the optimal solution in the searching space. The workflow of PSO is illustrated as
Figure 2.
5. Proposed Algorithm
Similar to the existing hierarchical routing protocols, the operation of PUDCRP also is broken up into rounds. Each round is divided into a set-up phase and a steady-state phase. In the set-up phase, an improved PSO is used to determine the circular area where the candidate CH nodes are located. The PSO-based method operates at the BS. CH nodes are selected by a multi-objective fitness function. Non-CH nodes join the cluster where the nearest CH node is located. In the steady-state phase, a connecting line aided route construction method was proposed to achieve an energy efficient routing.
5.1. Terminologies
For the ease of understanding of the proposed algorithm, we first define some terminologies as follows.
S: The set of sensor nodes, i.e., S= {s1, s2, …, sn}.
A: The area of the network.
d0: The threshold distance.
E0: The initial energy of nodes.
Ei: The residual energy of sensor node si, 1 ≤ I ≤ n.
P: The set of particles, i.e., P= {P1, P2, …, PNp}, Np is the number of particles.
D: The dimension of particle characteristics.
5.2. Particle Representation and Initialization
In PSO, a particle swarm represents a complete solution. For the clustering process of the proposed algorithm, a particles represents optimal positions of the center of the circular areas where candidate CH nodes are located. Each component Pi(t) = (Xi,1(t), Xi,2(t)) = (xi(t), yi(t)) denotes the coordinates of the center of a circular area.
5.2.1. Determination Radius of Circular Area
In multi-hop routing protocols, the CH nodes closer to the BS undertake more data forwarding tasks, which causes nodes near the BS area to die prematurely and generates undetectable hotspots. This is the so-called hotspot problem. To address the problem, an effective solution is to make the clusters closer to the BS smaller and make the clusters farther away from the BS larger. Small clusters near the BS are with fewer nodes and have short transmission distance to the BS. Therefore, this approach can compensate for the energy consumption of the nodes near the BS for forwarding data from the other CH nodes. Since in the proposed algorithm the distribution of the circular areas determines the location of CH nodes, the area of the circular areas near the BS should be smaller than the ones farther away from the BS, which can help to achieve the reasonable distribution of the above clusters to a certain extent. The radius of a circular area is calculated by Equation (9).
where
Ri is the radius of the
ith circular area,
disi is the distance between the center of the
ith circular area and the BS,
dismax is the maximum distance between circular area centers and the BS, and
Rmax is the maximum radius of the circular areas. The maximum radius
Rmax is
d0/2 in this paper.
d1 is the minimum radius of circular areas, which is calculated by Equation (10).
The value of d1 is the average radius of the area covered by a node in the network, which can ensure that the node closest to the BS can form a cluster.
5.2.2. Determination Optimal Number of Circular Areas
The proper number of clusters is essential for clustering effectiveness, otherwise the network cannot benefit from clustering advantages. The optimal number of clusters is defined as C. If the value of
C is too large, there will be many circular areas that overlap. If the value of
C is too small, the circular area cannot cover as much of the network environment as possible. In this paper, in order to determine the C value, it is assumed that the clusters distribute the entire network environment evenly by layer, as shown in the
Figure 3. There are partial overlaps between the circular areas in the figure. Because the network area cannot be filled with circles, and partial overlap of the circular areas can offset the unfilled network area.
r is the sum of 2
Ri which is calculated by Equation (11). The radius of the circle of the
kth layer is
Rk (assuming that the network area is divided into
K layers). The number of circles of the
kth layer is
nk. According to the above conditions, Equation (12) can be obtained.
where
A is the area of the whole network environment.
Thus, the optimal circular area number
C can be obtained by cyclic calculation. The following is the calculation process for calculating the
C value. The algorithm to calculate the optimal circular area number is illustrated in Algorithm 1.
Algorithm 1: The calculation process of optimal circular area number C |
Input: The radius of cluster: R = d1/* R is initialized to d1*/. The area of the network: A. The maximum distance between circular area centers and the BS: dismax. The farthest distance from the base station to the boundary of the circle where R has been calculated: r=0/* r is initialized to 0. r is the sum of 2Ri which are calculated */ |
Output: the optimal number of circular areas: C |
1. | while A>0 do |
2. | |
3. | |
4. | |
5. | |
6. | endwhile |
7. | /* H is determined by the location of the BS*/ |
H is determined by the location of the BS. As shown in
Figure 4,
H in (a) where the BS is located on the boundary of the monitoring area is 1/2.
H in (b) where the BS is located in the monitor area is 1.
H in (c) where the BS is located on a vertex of the rectangle network area is 1/4.
H depends on the angle between the two boundaries intersecting the BS.
5.3. Derivation of Fitness Function
The proposed PSO-based clustering algorithm is clustered according to node distribution. The fitness function is used to determine the distribution of the circular areas where the candidate CH nodes are located. The derivation of the fitness function depends on the two parameters: coverage rate and Intersection-over-Universal.
5.3.1. Coverage Rate
Coverage rate is the ratio of the number of nodes in a circular area where candidate CH nodes are located to the total number of nodes. Obviously, the more nodes that are covered, the more candidate CH nodes can be obtained, so that local optimization can be avoided when selecting CH nodes. Moreover, it can avoid the situation where CH nodes are gathered in a certain corner. Therefore, we need to maximize the coverage rate.
where
nCov is the number of nodes covered by the circular areas and
n is the number of nodes in the network.
5.3.2. Intersection-Over-Universal
Based on the concept of Intersection-over-Union in target detection [
36], we propose an Intersection-over-Universal (
IoU).
IoU is the ratio of the number of candidate CH nodes in the overlapping portion of the circular area to another circular area to the total number in the network.
Figure 5 shows the intersection set
I and universal set
U. The more nodes in the overlapping portion among the circular areas where candidate CH nodes are located, the more likely that only one shared CH node is selected among these circular areas. It causes the CH node to bear a heavy forwarding load during the transmission phase. Excessive overlap of the circular areas also reduces the coverage of the candidate CH nodes. Therefore, it is wise to minimize
IoU. That is, we need to maximize its reciprocal.
where,
nInter is the number of nodes in the overlapping portion of the circular areas.
After iterations, if a circular area’s
IoU is greater than a certain threshold
T (0 <
T < 1,
T = 0.7 in this paper), the center of this circular area should be deleted from the global best positions. The circular area where the center is located will also be deleted. Hence, the number of CH nodes is less than or equal to
C.
Figure 6 is the schematic diagram of the distribution of the circular areas. The circular areas cannot cover all the nodes in the network. We select CH nodes based on these circular areas. Since the circular areas are formed according to the number of nodes, the area of the whole network and the distribution of nodes, we can achieve a reasonable distribution of CH nodes. The reasonable distribution can efficiently balance the energy consumption of the whole network.
Figure 7 shows the circular area distribution of the proposed algorithm in simulation experiments. The network environment is a 200 m × 200 m area with 100 nodes. The dotted circle in
Figure 7 is the circular area that needs to be deleted because their
IoU is greater than 0.7. The solid circles are the circular areas obtained after iterations. The number 0.86 at the top of the figure is the final node coverage after iterations.
Figure 8 shows the circular areas with
IoU less than 0.7 in the network after iterations. As can be seen from
Figure 7 and
Figure 8, the circular areas cover as many nodes as possible. The distribution of the circular areas is based on the distribution of nodes. The selection of CH nodes is based on the distribution of the circular areas, the residual energy of the nodes, the distance from the nodes to the BS, and the number of neighbor nodes covered in the communication range. The distribution of CH nodes directly selected by multi-objective functions [
37] may be too dense or too sparse. In addition, the circular areas close to the BS are smaller than the ones farther away from the BS, which is beneficial to balance the energy consumption of the network.
5.3.3. Proposed Fitness Function
In order to determine the optimal positions of the circular areas in our PSO method, it is best to maximize the linear combination of the above two parameters instead of maximizing them individually, since the two parameters do not conflict with each other. Therefore, we use the following fitness function Equation (15) to determine
Gbest.
where,
α is 0.9 in this paper, which is determined by experiments. Because the algorithm removes the circular areas with high
IoU. Hence, the coverage of the circular areas is mainly considered in the fitness function.
For a single circular area, there is no concept of
IoU. Therefore, in our PSO approach, the fitness function to determine
Pbesti is the absolute value of the difference between the actual number of nodes covered by the circular area and the number of ideal coverage nodes.
where
nCovi is the number of the nodes covered in a circular area and
nideali is the ideal number of the nodes covered in a circular area.
m is the number of circular areas.
nideali in a circular area is related to the density of nodes in the network and the size of the circular area.
nideali is calculated by Equation (17).
where
Ai is the area of the
ith circular area and
A is the area of the whole network.
where,
Ri is the radius of the
ith circular area.
In each iteration, the velocity and the positions of particles are updated using Equations (4) and (5).
5.4. Set-Up Phase
After determining circular areas where the candidate CH nodes are located, CH nodes are selected by a multi-objective function. The CH nodes in each circular area are determined according to the residual energy of nodes, the distance from the nodes to the BS, and the number of neighbor nodes covered in the communication range. The multi-objective function is as follows.
where, we assign each factor the corresponding coefficient
w1,
w2 and
w3, weighing the importance of each factor to CH election.
w1 +
w2 +
w3 = 1, 0 ≤
w1,
w2,
w3 ≤1,
Eij is the residual energy of a candidate CH node
si in the
jth circular area,
E0 is the initial energy of nodes,
nnbi is the number of neighbor nodes in the communication range of the node
si,
dminj is the minimum distance between the BS and candidate CH nodes in the
jth circular area, and
dsi is the distance between the candidate CH node
si and the BS.
Eij divided by
E0,
nnbi divided by
n, and
dminj divided by
dsi are normalized to adjust their values in the range [0,1]. The purpose of normalization is to adjust the values measured on different scales into a common scale so that there will be the same impact when multiple objectives are superposed. The node with the largest
Weightij in the candidate circular area is selected as the CH node.
The experimental results in a 200 m × 200 m network with 100 nodes are shown in
Figure 9,
Figure 10 and
Figure 11. Where FND indicates the round in which the first dead node occurs. HND indicates the round in which half of nodes die. LND indicates the round in which 80% nodes die. According to above experimental results,
w1,
w2 and
w3 are set to 0.8, 0.05 and 0.15. After CH nodes are determined, each sensor node determines which cluster it wants to join by choosing the CH that requires the minimum communication energy. Once all the nodes are organized into clusters, each CH creates a schedule for the nodes in its cluster. This allows the radio components of each non-cluster head node to be turned off at any time, except at its transmission time, thereby minimizing the energy consumed by a single sensor. Once the CH node has all the data from the nodes in its cluster, it aggregates the data and then transmits the compressed data to the BS. Because the distance between the CH nodes near the BS is smaller than the ones farther away from the BS, the area of clusters which near the BS can be smaller than the ones farther away from the BS, which can alleviate the hotspot problem due to forwarding data and balance the energy consumption of the network.
The pseudocode of the PSO-based CH selection algorithm is given in Algorithm 2.
Algorithm 2: Pseudocode of PSO-based CH selection |
Input: Set of sensor nodes: S = {s1, s2, …, sn}. Optimal number of circular areas: C. Number of dimensions of a particle: D = 2. Output: Optimal positions of cluster heads: CH = {CH1, CH2, …, CHm}. |
Initialize particles Pi, ∀i, d, 1 ≤ I ≤ m, 1 ≤ d ≤ D Pi (0) = (Xi,1(0), Xi,2(0)) = (xi(0), yi(0))/* The deployed positions of the sensor nodes */ fori=1 to Npdo Calculate fitness(Pi)/*Using Equation (15) */ Pbesti = Pi end for Gbest = {Pbesti}, 1 ≤ I ≤ Np fort = 0 to TR do/*TR = Max. number of iterations */ forI = 1 to NP do Updata velocity and position of Pi using Equations (4) and (5) Calculate fitness(Pi) Calculate Fitness(Pi) iffitness(Pi) < fitness(Pbesti) then Pbesti = Pi endif ifFitness(Pi) < Fitness(Gbest) then Gbest = Pi endif endfor endfor forI = 1 to Np do ifIoU(Pi) > 0.7 then delete Pi from Gbest endif endfor whilePiinGbest Calculate Ri using Equation (9) CHi = {Sk| Weight(Sk) = max(Weight(Sj)), ∀j,k,1 ≤ j,k ≤ n, dSj ≤ Ri)}/* dSj is the distance between node j and Pi */ endwhile stop
|
5.5. Steady-State Phase
Before sending data to the BS, energy-efficient transmission routes from sensor nodes to the BS must first be established. This paper proposes a connecting line aided route construction method to address the issue. Intra-cluster communications are based on single-hop transmission. If the distance between non-CH nodes and the BS is less than d0, non-CH nodes directly send data to the BS via single-hop transmission. Each cluster member transmits data directly to its respective CH node.
Based on the distance from CH nodes to the BS, inter-cluster communication uses single-hop or multi-hop transmission. If the distance between CH nodes and the BS is less than
d0, CH nodes send data directly to the BS via single-hop transmission. Otherwise, CH nodes transmit data to the BS via a multi-hop route established by the connecting line aided route construction method to reduce the energy consumption of multi-hop transmission. When the CH node selects the next hop node of a multi-hop route, it comprehensively considers the distance from the next hop to itself, the connection line connecting the CH node and the BS and the residual energy of next hop.
Figure 12 shows how to establish a specific transmission route from CH node
i to the BS.
CH node
i selects CH node
j as the next hop. CH node
j is selected according to Equation (20).
where
Wj is the weight used to determine the next hop. The node with the smallest weight is selected as the next hop.
m is the number of CH nodes, the coordinate of CH node
i is (
CHxi,
CHyi), the coordinate of the candidate next hop node
j is (
NHxj,
NHyj),
dj is the distance between CH
i and the candidate node
j,
dv is the vertical distance from the candidate node
j to the connecting line, which is calculated by Equation (21).
u1,
u2 and
u3 are three corresponding coefficients. After a large number of experiments, the sums of normalized FND and normalized LND under different
u1,
u2 and
u3 are obtained. MATLAB is used to cubic fitting to get
Figure 13. According to the position of the highest contour line in
Figure 13, it can be determined that
u1 = 0.1 to 0.25,
u2 = 0.75 to 0.8 or
u1 = 0.2 to 0.25,
u2 = 0.45 to 0.6, or
u1 = 0.25 to 0.35,
u2 = 0.3 to 0.35 or
u1 = 0.35 to 0.45,
u2 = 0.45 to 0.55 that FND and LND are better. In this paper,
u1 = 0.2,
u2 = 0.6,
u3 = 1−
u1−
u2 = 0.2. From
Figure 13, it can be seen that the distance to the next hop has a greater impact on the route selection when selecting the next hop.
The candidate node with minimum weight would be selected as the next hop.
Figure 14 is the routing process in simulation environment. It can be seen that the transmission path of each CH node is as close as possible to the linear distance to the BS, and the CH node close to the BS mainly acts as a relay. The routing method minimizes the energy consumption for the routes and balances the energy consumption between the CH nodes. The connecting line aided route construction method can ensure that the transmission distance between the CH nodes is as short as possible and the transmission distance from the CH nodes to the BS is as close as possible to the linear distance from the CH node to the BS. The residual energy of next hop is considered to prevent the nodes to die prematurely. Hence, the energy consumed by data transmission is significantly reduced and balanced.
6. Simulation and Results
To evaluate our proposed protocol, MATLAB is used to perform simulations. In order to simplify the entire simulation process, it is assumed that the network has an ideal MAC (Medium Access Control) layer. The data link communication is reliable and the energy of the BS is not restricted. In the network control process, there is no any energy load for sending control messages and receiving data. Only the energy consumption of the sensor nodes is considered during the experiments. The parameters of the network areas are pre-set.
The simulation parameters of the network area are shown in
Table 1.
Simulation experiments were carried out on UCCGRA, multi-hop EEBCDA, EEMRP, CAMP, PSO-ECHS, PSO-SD and PUDCRP in the corresponding network circumstances. The proposed algorithm is based on region partitioning. Therefore, this paper mainly compares the algorithm with the algorithms based on grid region partitioning and PSO based clustering algorithm. Nodes’ death states of the protocols are shown in
Table 2.
Where FND indicates the round in which the first dead node occurs. HND indicates the round in which half of nodes die. LND indicates the round in which 80% nodes die.
Table 2 shows that the PUDCRP protocol runs more rounds than the other six protocols under the same network conditions. In the 400 m × 400 m network, compared with UCCGRA, multi-hop EEBCDA, EEMRP, CAMP, PSO-ECHS and PSO-SD, the time of the first death node in PUDCRP was delayed by 18.00%, 508.06%, 216.81%, 33.69%, 528.33% and 62.85%, respectively. HND of PUDCRP is increased by 31.95%, 61.89%, 12.67%, 61.50%, 109.42% and 52.81%, respectively. The number of running rounds of PUDCRP is increased by 48.75%, 63.21%, 68.89%, 7.36%, 74.21% and 69.81%, respectively. PUDCRP more effectively balances the energy consumption of the network and prolongs the network lifetime than the other six protocols.
Table 3 shows the average and standard deviation of residual energy of nodes in the 500th round in the 400 m × 400 m network with 200 nodes. AVE indicates the average residual energy of nodes. STD indicates the standard deviation of residual energy of nodes. The more average residual energy of nodes, more effective the energy efficiency of the algorithm. Lower the standard deviation of residual energy of nodes, more balanced energy consumption. The average residual energy of nodes in PUDCRP is 22.16%, 121.30%, 8.92%, 33.73%, 197.28% and 21.05% higher than the other six algorithms, respectively. The standard deviation of residual energy of nodes in PUDCRP is 18.82%, 41.37%, 10.99%, 5.14%, 14.22% and 12.57% lower than the other six algorithms, respectively. (a)-(g) in
Figure 15 are the residual energy of nodes in the 500th round in UCCGRA, multi-hop EEBCDA, EEMRP, CAMP, PSO-ECHS, PSO-SD and PUDCRP, respectively.
Figure 15 visually indicates that the minimum residual energy of nodes in PUDCRP is more than 0.1 J. The minimum residual energy of nodes in other six algorithms are all less than 0.05 J. It shows that the energy consumption per node in PUDCRP is less than other algorithms. And it can be seen from
Figure 15 that the energy histogram of the nodes in PUDCRP is denser than other six algorithms, which shows the balanced energy consumption of PUDCRP. The results from
Table 3 and
Figure 15 show that PUDCRP is much more energy-efficient and achieve more balanced energy consumption of the entire network.
The simulation experiments also compare the number of surviving nodes and energy consumption of the seven protocols in each round in network. The results are shown in
Figure 16 and
Figure 17.
Figure 16 shows how the number of surviving nodes of the seven routing protocols varies with the number of operation rounds in 400 m × 400 m networks. It can be seen that the number of surviving nodes of PUDCRP begins to decrease later than the other six protocols and the round when the first dead node occurs is significantly delayed. The number of surviving nodes in PUDCRP decreases more slowly than the other six protocols. The results mean that PUDCRP balances the energy consumption of the sensor nodes more effectively than the other protocols.
Figure 17 shows how the energy consumption of the seven routing protocols in each round varies. The PUDCRP protocol consumes less energy than the other protocols per round. It can be concluded that compared with other six protocols, the PUDCRP can significantly reduce the energy consumption of nodes.
Figure 18 shows the total number of packets received by the BS of the seven routing protocols. With increasing simulation rounds, the number of packets received by the BS is different in these protocols.
In the PUDCRP algorithm, the BS receives far more data packets than EEMRP and other algorithms with the same rounds. In the 400 m × 400 m network, packets sent to the BS in PUDCRP are saturated at 1200th round and the BS has received 88,820 packets. However, EEMRP is saturated at 1200th round and the BS has only received 53,960 packets. The experimental results show that due to the longer network lifetime and the more balanced energy consumption, the number of packets received by the BS in PUDCRP is much higher than that of the other six protocols. The number of packets received by UCCGRA and PUDCRP during the network operation period is similar, but since the network lifetime of PUDCRP is longer than UCCGRA, PUDCRP receives more packets than UCCGRA. Balanced energy consumption delays the death of the nodes, which ensures that the number of packets received by the BS remains high for a long time. Therefore, our algorithm has a significant improvement in the data transmission performance and interactive capabilities. It also shows that under the same experimental conditions, PUDCRP can collect more data and have higher network energy efficiency.
We also compared the scalability of the network nodes number and network areas of the seven protocols, the LNDs of UCCGRA, multi-hop EEBCDA, EEMRP, CAMP, PSO-ECHS, PSO-SD and PUDCRP were tested in the 200 m × 200 m and 400 m × 400 m network environments with different number of nodes, respectively.
Figure 19 shows the LNDs of the seven protocols in 400 m × 400 m networks with different number of nodes.
Table 4 shows specific measurement data of LNDs of the seven protocols in 400 m × 400 m networks with different number of nodes.
Figure 20 shows the LNDs of the seven protocols in 200 m × 200 m networks with different number of nodes.
Table 5 shows specific measurement data of LNDs of the seven protocols in 200 m × 200 m networks with different number of nodes. As can be seen from
Figure 19 and
Figure 20, in the network environments with different numbers of nodes, the LNDs of PUDCRP occurred significantly later than the other six protocols. The results show that PUDCRP has better scalability for network environments with different nodes and different sizes. This is due to the high energy efficiency of nodes and the balanced energy consumption of whole network achieved by the PSO-based uneven dynamic clustering method.
Compared to multi-hop EEBCDA and EEMRP, PUDCRP has good performance in any shape (not just in a rectangular network) and size network environment. Multi-hop EEBCDA, EEMRP and other rectangular meshing clustering algorithms are more suitable for rectangular network environments. Compared with CAMP, in PUDCRP, the farther the distance between the nodes and the BS, the larger the size of the clusters, the better the hotspot problem can be alleviated. Compared with PSO-ECHS and PSO-SD, the distribution of CH nodes in PUDCRP is more reasonable, which is determined by the distribution of nodes. Among these protocols, only PUDCRP considers the distribution of nodes in the clustering process.