Open Access Paper
28 December 2022 WSN multi-hop routing algorithm based on non-uniform clustering
Shaojing Hou, Yuanbo Shi
Author Affiliations +
Proceedings Volume 12506, Third International Conference on Computer Science and Communication Technology (ICCSCT 2022); 1250603 (2022) https://doi.org/10.1117/12.2661785
Event: International Conference on Computer Science and Communication Technology (ICCSCT 2022), 2022, Beijing, China
Abstract
In order to prolong network life, improve network throughput and reduce energy consumption within the network of WSN, a multi-hop routing algorithm for WSN based on non-uniform clustering is proposed in this paper. This protocol effectively alleviates the problem that in the multi-hop data transmission network, the cluster head close to the base station bears too many tasks, and the energy consumption is high, which leads to the premature death of the node. The cluster heads within the direct communication radius in the network will communicate directly with the base station, and the other cluster heads will select the neighbor cluster heads with the least communication cost as relay nodes for multi-hop transmission. Finally, the simulation results show that the protocol can effectively alleviate the premature aging phenomenon in the multi-hop network, and the energy consumption of the nodes in the system is balanced, which meets the design requirements of the wireless sensor network routing protocol.

1.

INTRODUCTION

Wireless sensor node can monitor various environmental states such as temperature, humidity, brightness, pressure, noise, speed and direction of moving objects in real time1. Different from traditional networks, the data that WSN needs to transmit basically does not involve intensive data such as voice, video, and images, so the demand for bandwidth is not high. But the areas that WSN needs to monitor, such as deserts, ponds, forests, etc., are hard-to-reach areas for humans. However, the nodes of WSNs are usually small in size, and the energy carried by the power supply is very limited2, so our priority is to find an algorithm that can be implemented to effectively reduce battery power consumption3. In order to solve the energy problem faced by wireless sensor networks, the LEACH protocol, which has great research significance in the clustering protocol, is preferred in this paper. However, the LEACH protocol selects CH probabilistically according to the set threshold, so that the energy and position of the selected cluster heads are not necessarily optimal. LEACH itself has many shortcomings. Using the original protocol cannot maximize the energy utilization rate of the sensor, and cannot be directly put into the actual network. It needs to be improved.

In response to the above problems, many scholars have proposed a variety of methods to optimize LEACH from different angles. The EEUC algorithm4 adopts a non-uniform clustering method, but it needs to randomly select cluster heads periodically, and the selected cluster heads may not be optimal. The DEEC algorithm proposed in Reference5 adopts a single-hop transmission mode in the communication, so the cluster head has a heavy energy load and will die earlier than ordinary nodes6. The energy balance routing algorithm proposed in Reference7 does not consider the selection of the optimal path8, 9. Reference10 does not consider the residual energy of the cluster head in the non-uniform cluster head election process. The algorithm11 adopts the ZigBee distributed address allocation strategy. The algorithm does not change the CH in real time with the relative distance between the surviving communication nodes in the network. The IMP-LEACH algorithm12 only takes into account the residual energy factor13, 14 when selecting the CH, and does not take into account the distance factor15.

Aiming at the problems existing in the current WSNs routing algorithm, this paper proposes an improved routing algorithm EEM-LEACH (An energy efficient multi-hop WSNs clustering optimization algorithm) based on LEACH and multi-hop routing protocol. The algorithm uses the weighting idea to improve the LEACH algorithm, so that the node generates a weight based on energy and density, and selects the cluster head through the probability threshold of this weight, and then generates the entire cluster. The weight comprehensively considers the network environment and its own state of the node. The more neighbor nodes where the node is located, the higher the percentage of members in the cluster, the greater the density, and the greater the probability of becoming the cluster head. At the same time, the greater the residual energy of the node, the greater the weight, and the greater the probability of becoming the cluster head node.

2.

IMPROVED ALGORITHM EEM-LEACH

2.1

Cluster head selection process

The first stage is the establishment of clusters, which is randomly selected in the traditional LEACH protocol. In this way, if a sensor node has less remaining energy or is far away from the sink node, it will still be elected as the cluster head multiple times, and the node will increase energy consumption in a short time and lose its function prematurely. Different from the traditional idea, the algorithm in this paper does not adopt the strategy of randomly selecting cluster heads. During cluster head selection, the remaining energy of nodes in the network needs to be given priority. First, query the remaining energy E(i)res of each node. Then, the average residual energy of the network is estimated according to the network model. The average remaining energy Eavg is then calculated16.

00035_PSISDG12506_1250603_page_2_1.jpg

The following equation is the calculation equation of the threshold T(n) after the adjustment of the EEM-LEACH algorithm

00035_PSISDG12506_1250603_page_2_2.jpg

among them, 00035_PSISDG12506_1250603_page_2_3.jpg represents the square of the distance from the candidate CH i to the BS. 00035_PSISDG12506_1250603_page_2_4.jpg is the square of the distance from the candidate CH i to the neighbor node j. w1 and w2 are the weighting coefficients used to adjust the influence of each item in the equation on the node threshold.

The prerequisite for a node to be elected as the CH is that the random number generated by rand(1,1) is less than the threshold T(n). The above process is repeated until all the cluster heads in the round are selected17. Equation (2) makes it easier to select the node that is closer to the neighbor node, closer to the base station, and higher residual energy as the cluster head.

The descriptive pseudocode of the specific CH selection process is as follows:

00035_PSISDG12506_1250603_page_2_5.jpg
00035_PSISDG12506_1250603_page_3_1.jpg

2.2

Node clustering process

Each node stores a table of information about the cluster head node, including ID, status, remaining energy, node location information, and the number of neighbor nodes corresponding to the CH. Common nodes join the CH with the smallest C(i), and the cost function C(i) is

00035_PSISDG12506_1250603_page_3_2.jpg

among them, d(i,CH) is the distance between the normal node and CH, dmax(i, BS) is the maximum distance between the normal node and BS, and |N(CH)| is the number of neighbor nodes joining the CH. E0 represents the initial energy of the node, E(CH) is the current remaining energy of the CH, and wc1, wc2 and wc3 are the weighting coefficients. The goal of constructing the above function is to select the best cluster for nodes to join with the lowest energy consumption.

The normal node selects the CH that is closer to the node position, closer to the BS, less number of clustering nodes and more residual energy according to equation (3) to apply for joining, and complete the clustering process. This measure is conducive to reliable communication between nodes and energy balance within the cluster.

The descriptive pseudocode of the specific node clustering process is as follows:

00035_PSISDG12506_1250603_page_3_3.jpg
00035_PSISDG12506_1250603_page_4_1.jpg

2.3

Inter-cluster communication process

The cluster head node undertakes the functions of data reception and fusion and data packet forwarding of the cluster member nodes, so the energy saving and energy consumption balance of the cluster head node are the key research contents. When the distance is greater than the critical value of the communication radius, the energy consumption will change significantly even if the distance increases a little. The short-distance transmission energy consumption is proportional to the square of the distance, and the energy consumption will not have a great impact with the increase of the distance. Therefore, it is necessary to shorten the transmission distance as much as possible, and divide the long-distance transmission path into multiple shorter short-distance paths for sequential transmission. The EEM-LEACH algorithm adopts a multi-hop transmission method between clusters, in which the relay nodes in the transmission path are selected from the cluster head. Inter-cluster communication transmission rules are as follows (The communication radius is denoted by R):

d <= R : Nodes communicate directly with base stations.

d > R : Common nodes transmit data to the CH of this cluster.

d > R : The CH transmits the data to the relay node.

The CH selects the neighbor cluster head node with few cluster nodes, high residual energy, close to the BS and close to the CH as the relay node through the relay forwarding function R(i, j). Therefore, it is necessary to select a node with a larger R(i, j) value as the next forwarding cluster head.

The function R(i, j) is expressed by the following equation:

00035_PSISDG12506_1250603_page_4_2.jpg

where dij in equation (4) is as follows:

00035_PSISDG12506_1250603_page_4_3.jpg

among them, j is the neighbor cluster head node. m is the number of nodes within the communication radius of i. E(j)res represents the remaining energy of j, and |N(j)| is the number of cluster nodes of j.

• The relay node continues to select the transmission path according to the method in the above steps until the data is transmitted to the BS.

The descriptive pseudocode of the multi-hop transmission process between clusters of the algorithm is as follows:

00035_PSISDG12506_1250603_page_4_4.jpg
00035_PSISDG12506_1250603_page_5_1.jpg

3.

SIMULATION RESULTS AND ANALYSIS

This paper uses MATLAB to simulate the LEACH, DEEC, IMP-LEACH and EEM-LEACH algorithms in two different scenarios. The two scenarios are a small area of 100×100 m2 and a large area of 200×200 m2. The specific simulation parameter settings are shown in Table 1.

Table 1.

The simulation parameters.

ParameterValue
Network size100 m *100m/200 m *200 m
Number of nodes100
Probability of CH selection0.1
Location of BS(50, 50)/(100, 100)
Initial energy of normal node, E00.2J
Packet size4000bits
Control message size32bits
Data transmission rate5000 bps
Radio electronics energy, ETx = ERx50 nJ/bit
Energy for data-aggregation, EDA5 nJ/bit
Radio amplifier energy,εfs100 pJ/bit/m2
Radio amplifier energy,εmp0.0013 pJ/bit/m4
W1, W20.6, 0.4
Wc1, Wc2, Wc30.5, 0.3, 0.2
Running rounds1000

Figures 1 and 2 are the node distribution diagrams of 100 sensor nodes randomly deployed in 100×100 m2 and 200×200 m2 monitoring areas, respectively.

Figure 1.

100×100m2 Node distribution.

00035_PSISDG12506_1250603_page_6_1.jpg

Figure 2.

200×200m2 Node distribution.

00035_PSISDG12506_1250603_page_6_2.jpg

3.1

Network lifecycle comparison

It can be seen from Figures 3 and 4 that as the number of sensor network data collection increases, the number of dead nodes increases, but the number of dead nodes in the EEM-LEACH algorithm is relatively lower than other algorithms under the monitoring area of 100×100 m2 and 200×200 m2,so the algorithm proposed in this paper fully considers the energy balance.

Figure 3.

100×100 m2 Life cycle comparison.

00035_PSISDG12506_1250603_page_6_3.jpg

Figure 4.

200×200 m2 Life cycle comparison.

00035_PSISDG12506_1250603_page_6_4.jpg

3.2

Network residual energy comparison

The amount of energy remaining in the network determines how long a node can work. When the remaining energy is 0, the network loses its use value. From Figures 5 and 6, it can be concluded that with the increase of the number of sensor network data collection, the average residual energy of the four routing protocols gradually decreases, but the residual energy of the EEM-LEACH algorithm is relatively higher than other algorithms under the monitoring areas of 100×100 m2 and 200×200 m2.

Figure 5.

100×10 0m2 residual energy contrast.

00035_PSISDG12506_1250603_page_7_1.jpg

Figure 6.

200×200 m2 residual energy contrast.

00035_PSISDG12506_1250603_page_7_2.jpg

3.3

Network throughput comparison

From Figures 7 and 8, it can be concluded that with the increase of the number of sensor network data collection, the amount of data received by the base station of the EEM-LEACH algorithm is gradually larger than that of the other three algorithms. It can be seen that the strategy of determining the relay nodes between clusters according to the relay forwarding function is feasible.

Figure 7.

100×100 m2 throughput comparison.

00035_PSISDG12506_1250603_page_7_3.jpg

Figure 8.

200×200 m2 throughput comparison.

00035_PSISDG12506_1250603_page_7_4.jpg

4.

CONCLUSION

Aiming at the problems of uneven cluster head selection and unbalanced energy consumption in traditional clustering algorithms, this paper proposes a multi-hop routing algorithm for WSN based on non-uniform clustering, EEM-LEACH. This algorithm applies a more reasonable cluster head selection mechanism and a more uniform clustering strategy. In this algorithm, the information transfer between each node and base station adopts the hybrid energy-saving matching mode of single-hop or multi-hop between clusters, which makes up for the deficiency of traditional single-hop routing algorithm. According to the “relay forwarding function election method”, the only best forwarding node is finally determined, and the link formed by several forwarding cluster heads becomes the inter-cluster transmission path of this “round”. Finally, the simulation results verify the effectiveness of the EEM-LEACH algorithm in improving the relevant operational indicators of WSN.

REFERENCES

[1] 

Zhang, D. and Zhang, L., “Double cluster head selection algorithm for WSN dynamic trust based on k-means,” Journal of Nanjing University of Posts and Telecommunications, 40 (2), 108 –114 (2020). Google Scholar

[2] 

Qian, Z. H. and Wang, Y. J., “Overview of wireless sensor networks for Internet of things,” Journal of Electronics & Information Technology, 35 (1), 215 –227 (2013). https://doi.org/10.3724/SP.J.1146.2012.00876 Google Scholar

[3] 

Yang, Z. Q. and Lv, W., “Research on wireless sensor network design for the Internet of Things,” Digital Communication World, 03 (1), 57 –58 (2018). Google Scholar

[4] 

Li, C. F. and Chen, G. H., “A wireless sensor network routing protocol based on non-uniform clustering,” Chinese Journal of Computers, 30 (1), 27 –36 (2007). Google Scholar

[5] 

Qing, L., Zhu, Q. X., Wang, M. W., “Design of a distributed energy-efficient clustering algorithm for heterogeneous wireless sensor networks,” Computer Communications, 17 (3), 481 –489 (2006). Google Scholar

[6] 

Li, Q., Zhu, Q. and Wang, M., “Design of a distributed energy-efficient clustering algorithm for heterogeneous wireless sensor networks,” Computer Communications, 29 (12), 2230 –2237 (2006). https://doi.org/10.1016/j.comcom.2006.02.017 Google Scholar

[7] 

Li, L. Y., Jiang, X. L., Zhong, S. H., et al., “Energy balancing clustering algorithm for wireless sensor network,” in 2009 International Conference on Networks Security, Wireless Communications and Trusted Computing, 61 –64 (2009). Google Scholar

[8] 

Yang, T., Bai, Y. L. and Jiang, X H., “Wireless sensor network routing based on improved ant colony algorithm,” Journal of Inner Mongolia University, 46 (1), 92 –96 (2015). Google Scholar

[9] 

Yu, Y., “Research and design of energy efficient routing protocol for heterogeneous wireless sensor networks,” China University of Mining and Technology, 6 72 –141 (2020). Google Scholar

[10] 

Zhang, M. C., Xue, A. R. and Wang, W., “Non-uniform cluster routing algorithm based on minimum spanning tree,” Journal of Computer Applications, 32 (3), 787 –790 (2012). https://doi.org/10.3724/SP.J.1087.2012.00787 Google Scholar

[11] 

Zhao, L., Lan, Z. G. and Xiong, Z. L., “Improved algorithm for selecting cluster heads in wireless sensor networks based on LEACH,” Journal of Electronic Measurement and Instrument, 33 (12), 86 –93 (2019). Google Scholar

[12] 

Pan, H., Chen, J. P., Ding, K., et al., “A LEACH protocol optimization based on multi-hop and data volume-distance distribution,” Electronics Optics & Control, 25 (11), 89 –92 (2018). Google Scholar

[13] 

Cui, Y. N., Wei, W. and Hu, Y. H., “Improved routing of LEACH based on particle swarm optimization in WSN,” Journal of the Chinese Academy of Electronic Sciences, 14 (11), 1169 –1173 (2019). Google Scholar

[14] 

Zhang, X., “Research on the model and method of security technology fusion in wireless sensor network,” Beijing University of Technology, 3 65 –131 (2011). Google Scholar

[15] 

Zheng, H. H., Bai, Y. X., Zhang, Y. Q., “Wireless sensor network routing protocol applied in mine roadway,” Microcomputer Applications, 36 (9), 15 –17 (2020). Google Scholar

[16] 

Wang, Q., Liu, W., Wang, T., et al., “Reducing delay and maximizing lifetime for wireless sensor networks with dynamic traffic patterns,” IEEE Access, (99), 1 –1 (2019). Google Scholar

[17] 

Yu, X. W., Li, Y., Liu, Y., et al., “WSN clustering routing algorithm based on hybrid genetic tabu search,” Wireless Personal Communications, 124 3485 –3506 (2022). https://doi.org/10.1007/s11277-022-09522-3 Google Scholar
© (2022) COPYRIGHT Society of Photo-Optical Instrumentation Engineers (SPIE). Downloading of the abstract is permitted for personal use only.
Shaojing Hou and Yuanbo Shi "WSN multi-hop routing algorithm based on non-uniform clustering", Proc. SPIE 12506, Third International Conference on Computer Science and Communication Technology (ICCSCT 2022), 1250603 (28 December 2022); https://doi.org/10.1117/12.2661785
Advertisement
Advertisement
RIGHTS & PERMISSIONS
Get copyright permission  Get copyright permission on Copyright Marketplace
KEYWORDS
Head

Sensor networks

Fusion energy

Relays

Data communications

Sensors

Computer simulations

Back to Top