 Research
 Open Access
 Published:
Research on DVHop improved algorithm based on dual communication radius
EURASIP Journal on Wireless Communications and Networking volume 2020, Article number: 113 (2020)
Abstract
In order to solve the problem that the traditional DVHop location algorithm has a large error in locating unknown nodes, this paper proposes an improved DVHop algorithm based on dual communication radius. By adding a communication radius, the algorithm updates the minimum hop number obtained by the unknown node closer to the beacon node to a smaller hop value and keeps the minimum hop number information of unknown nodes farther away. This method reflects the gap between the actual distances in terms of hop number, which solves the problem of the large difference between the actual distances of the same hops to a certain extent. Therefore, it is more advantageous to estimate the more accurate average jump distance and can calculate the more precise distance between them and obtain the more precise coordinates of unknown nodes. MATLAB simulation results show that the improved algorithm based on dual communication radius DVHop can effectively reduce the location error and improve the location accuracy and stability compared with the traditional DVHop location algorithm.
Introduction
Wireless sensor network (WSN) has many characteristics, such as low power consumption, low cost, selforganization, distribution, and small size, and has broad application prospects [1, 2]. The wireless sensor network can determine the location of the event, which is its most basic function. Moreover, its location information is very important for the monitoring activities in the whole wireless sensor network, and the monitoring data without location information is always meaningless [3, 4]. Therefore, the fast and accurate location on sensor nodes plays an important role in various applications, and its location technology has become a research hotspot in the field of wireless sensor networks [5, 6].
The researches on the location methods for wireless sensor network node mainly focus on the location algorithm based on distance measurement and the location algorithm without distance measurement. Among them, the location algorithm based on distance measurement needs additional hardware to support the distance measurement between nodes [7, 8]. Compared with the location algorithm based on distance measurement, the location algorithm without distance measurement does not need external hardware, and the cost of network nodes is low. Only through the known location information of the beacon nodes and the connectivity between nodes in the whole network, the location information of unknown nodes can be estimated. Therefore, the location method without disturbance measurement has been paid more and more attention.
Among them, distance vector hop (DVHop) algorithm is a typical node location algorithm without distance measurement, which is simple and widely used [2, 9]. At present, the researches of the DVHop algorithm are mainly to improve the shortcoming in one aspect to a certain extent, so as to achieve the purpose of improving the location accuracy of nodes. In [10], the concept of the distance correction factor is introduced to modify the estimated hop distance of unknown nodes, so as to reduce the distance error. In [11], an improved algorithm based on the combination of shuffled frog leaping algorithm (SFLA) and particle swarm optimization (PSO) algorithm is proposed, which can effectively improve the positioning accuracy, but it becomes more difficult to use two largescale optimization algorithms. In [12], the mean of the minimum and maximum average hop distance of all beacon nodes in the network is regarded as the average hop distance of the whole network, and the unknown nodes are finally located by bacterial foraging optimization (BFO) algorithm, which can effectively improve the positioning accuracy when the sensor nodes are irregularly distributed. In [13], a new method for calculating the average hop distance is proposed, and the percentage error is used as the reference of the weighting coefficient to calculate the average hop distance of unknown nodes, which improves the positioning performance.
In order to solve the problem that the traditional DVHop location algorithm has a large error in locating unknown nodes, this paper proposes an improved DVHop algorithm based on dual communication radius. By adding a communication radius, the algorithm updates the minimum hop number obtained by the unknown node closer to the beacon node to a smaller hop value and keeps the minimum hop number information of unknown nodes farther away. This method reflects the gap between the actual distances in terms of hop number, which solves the problem of the large difference between the actual distances of the same hops to a certain extent. Therefore, it is more advantageous to estimate the more accurate average jump distance and can calculate the more precise distance between them and obtain the more precise coordinates of unknown nodes. The improved algorithm improves the location accuracy and stability compared with the traditional DVHop location algorithm.
Principle and error analysis of traditional DVHop location algorithm
The Principle of Traditional DVHop Location Algorithm
The DVHop algorithm is one of a series of distributed location algorithms called Ad Hoc Positioning System (APS) based on distance vector routing [14, 15]. The DVHop algorithm is the meaning of “distance vector routing”. As the name implies, the DVHop algorithm is a location mechanism of distance vector hop.
DVHop location algorithm can be divided into the following three stages.
The First stage: the distance vector exchange
Through the step of distance vector exchange, all nodes can get the minimum hop information with respect to beacon nodes. That is to say, at the beginning of positioning, the beacon node transmits the data packets containing its own information to the unknown nodes in the network in the way of flooding. This information includes the ID of the beacon node, the coordinates of the beacon node, and the hop value between the beacon node and the receiving information node.
The second stage: the correction and broadcasting of the estimated average hop distance
After the location of the beacon node is known, the average hop distance between the beacon nodes is estimated by using the hop information with respect to other beacon node obtained in the first stage. The average hop distance of beacon node i is shown in Eq. (1):
The coordinates of beacon node i are (x_{i}, y_{i}), the coordinates of beacon node j are (x_{j}, y_{j}), and h_{ij} is the minimum hop between beacon nodes i and j (i ≠ j). After calculating the average hop distance of the beacon node, it will carry out flood broadcast again in the network. Moreover, the unknown node will only receive the first received data, take the average hop distance as its average hop distance, and no longer use and retain all the subsequent corrections, in order to ensure that the average hop distance is transmitted from the nearest beacon node to the undetermined node.
The third stage: the location calculation on the unknown node
The distance between the unknown node and each beacon node can be estimated by using the hop number received by the unknown node with respect to the nearest beacon node, as well as the calculated correction value of the average perhop distance of the beacon node [16, 17]. Then, the coordinates of the nodes to be determined can be calculated by using the corresponding positioning algorithm.
As shown in Fig. 1, A, B, and C are beacon nodes, and their location coordinates information is known. Then, assume that the actual distance between them is AB = d_{1}, BC = d_{2}, and AC = d_{3}, where d_{1}, d_{2}, and d_{3}are all known. Through the first and second stages of the DVHop algorithm, we can obtain the minimum hop information between the unknown node and beacon node and the estimated average hop distance HopSize_{i} of the beacon node. If the minimum hop number between A and B is 2, the minimum hop number between B and C is 5, and the minimum hop number between A and C is 6, then the average hop disturbance HopSize_{A}, HopSize_{B}, and HopSize_{C} of the beacon nodes A, B, and C are respectively shown in Eqs. (2)–(4):
The unknown node M takes the average perhop distance of the nearest beacon node B as its own average perhop distance value. According to the hop numbers from unknown node M to beacon nodes A, B, and C, as well as the equation d = HopSize × h, the distance between different beacon nodes and unknown nodes can be estimated by d_{AM} = 3HopSize_{B}, d_{BM} = 2HopSize_{B}, and d_{CM} = 3HopSize_{B}.
Finally, the coordinates of the node m to be determined will be calculated.
Error analysis
Only using the coordinate information of the beacon node and the hop value in information transmission to locate, the error between the real coordinates and the positioning coordinates is very large [18, 19].
As shown in Fig. 2, there are three beacon nodes A, B, and C distributed in the network, and others are unknown nodes. The average hop distance of beacon node B is \( {d}_{{\mathrm{Hop}}_B}=\left({d}_1+{d}_2\right)/\left(2+6\right) \), and the calculated average hop distance of beacon node B is smaller than the actual average hop distance, which means the error is large. Moreover, the length of each hop from beacon node B to beacon nodes A and C is different, and there is an angle (not 180°) between each two hop segments. Therefore, one divides the linear distance by the number of hops to get the average hop distance of the beacon node, which is regarded as the correction value and the error of this correction value is very large. The distance between the unknown node and the beacon node is estimated by multiplying the correction value by the minimum hop value, which results in a large error in the estimated distance and ultimately affects the accuracy of the positioning results. Generally, unknown nodes account for the majority and beacon nodes account for the minority. The distribution density of unknown nodes is much higher than that of beacon nodes. In addition to the random distribution of beacon nodes, the distance between beacon nodes is large or small, which results in the error fluctuates greatly when the average hop distance of beacon nodes is calculated.
Improved DVHop algorithm
In the distance vector exchanging stage for the traditional DVHop algorithm, as long as the distance between the beacon node and the unknown node is less than the communication radius R, the hop number is recorded as 1. This means that there may be a large actual distance difference between two groups of unknown nodes with the hop number of 1 and beacon nodes. As shown in Fig. 3, there are some unknown nodes B and C around beacon node A, and the hop value of the unknown node and beacon node is also 1, but the actual distance between the two unknown nodes and beacon node is very different. Generally taking the hop value between them and the beacon node as 1 will reduce the positioning accuracy of the DVHop positioning algorithm and the stability of the algorithm.
In order to deal with this situation better, this paper proposes an improved DVHop algorithm based on dual communication, which requires beacon nodes to broadcast with communication radius R at the first time, and then broadcast with communication radius 0.5R at the second time, as shown in Fig. 4.
As shown in Fig. 4, when the beacon node broadcasts in the network with a communication radius of 0.5R, the hop value between the unknown node C and beacon node A is 0.5, instead of the previous 1, so that the optimization on the hop value can better reflect the location of the unknown node and beacon node. Furthermore, the hop value of beacon node A and unknown node C is closer to the real hop value. Therefore, the estimated distance is closer to the real value, which improves the positioning accuracy and the stability of the algorithm.
The specific process of the DVHop algorithm based on dual communication radius is expressed as follows. In the stage of distance vector exchange, the beacon node first broadcasts with the communication radius R, the hop number between the unknown node and the beacon node within its communication radius is recorded as 1, and the unknown node group 1 is generated. Then, when the beacon node broadcasts with the communication radius r ⋅ R(0 < r < 1), the hop number between the unknown node and the beacon node within its communication radius is recorded as r and unknown node group 2 is generated. Because of the communication radius R > r ⋅ R, unknown node group 2 is a subset of unknown node group 1. The minimum hop values of the same unknown nodes in unknown node group 1 and unknown node group 2 are recorded as r, while the minimum hop values of other unknown nodes are still kept as 1. In this process, only beacon nodes broadcast twice, and the unknown nodes broadcast with communication radius R after obtaining the minimum hop information between beacon nodes.
Obviously, the hop value obtained by the improved DVHop algorithm based on double communication radius is not an integer, but is an integer plus R. Compared with single communication radius R, the minimum hop between nodes is more accurate. The improved DVHop algorithm based on double communication radius proposed in this paper updates the minimum hop number obtained by the unknown node which is closer to the beacon node to a smaller hop number by adding a communication radius and keeps the minimum hop number information of the unknown node which is far away from the beacon node at the same time. It shows the difference of the actual distance in terms of the hop number, which solves the problem of the large difference between the actual distances of the same hops to a certain extent, and then is helpful to estimate the more accurate average jump distance.
Analysis of simulation and results
In order to study the performance of improved algorithm based on dual communication radius, this paper simulates on the traditional DVHop algorithm and improved the DVHop algorithm by using MATLAB platform and compares the performance of the two algorithms under different communication radius and different beacon proportion.
During the simulation experiment, the experimental environment and parameters are set as follows:
(1) The nodes of the WSN are randomly deployed in a square area of 100 m × 100 m. It is assumed that all nodes can communicate freely within the communication radius, and all nodes have the same communication ability. Moreover, the nodes have a symmetrical communication ability.
(2) Suppose that the number of nodes distributed in the plane area is 100, and all the unknown nodes are randomly distributed.
(3) Under the same network condition, according to the experimental results, the location relative error is analyzed and compared with the traditional DVHop algorithm.
The relative location error is shown as the following equation:
where \( {D}_i=\sqrt{{\left({x}_i{x}_r\right)}^2+{\left({y}_i{y}_r\right)}^2} \) denotes the distance difference between the estimated location (x_{i},y_{i}) calculated by the location algorithm and the actual location (x_{r},y_{r}), R is the communication radius, and U_{n} is the total number of unknown nodes. The smaller the location error, the higher the location accuracy is.
Figures 5, 6, and 7 show the relationship between the relative positioning error and beacon node number when communication radius is 20 m, 30 m, and 40 m, respectively.
It can be seen from Figs. 5, 6, and 7 that compared with the traditional DVHop algorithm, the relative positioning error of the improved DVHop algorithm based on the dual communication radius is smaller and the positioning accuracy is higher. When the total number of nodes and the communication radius of the two algorithms are all same, the relative positioning error increases with the increase of the beacon nodes. Moreover, in the condition that the communication radius is 20 m, 30 m, and 40 m respectively, the relative error of the DVHop algorithm based on dual communication radius can be approximately reduced by 9~25% compared with traditional DVHop algorithm.
In addition, it can be seen from Fig. 5 that when the communication radius is 20 m, the relative positioning errors of the two algorithms fluctuate with the increase of beacon nodes. Therefore, the communication radius should be greater than 20 m in practical application.
Conclusions
From the simulation results, it can be seen that compared with the traditional DVHop algorithm and the improved DVHop algorithm based on the dual communication radius, the relative positioning error of the dual communication radius algorithm is smaller and the positioning accuracy is higher. When the total number of nodes and the communication radius of the two algorithms remain unchanged, the relative positioning error increases with the increase of the beacon nodes, and the relative positioning error decreases accordingly. Furthermore, when the communication radius is 20 m, 30 m, and 40 m, respectively, the relative error of the DVHop algorithm based on dual communication radius can be approximately reduced by 9~25% compared with traditional DVHop algorithm.
Availability of data and materials
The data are included in this published article, and its supplementary information could be obtained from the author on reasonable request.
Abbreviations
 WSN:

Wireless sensor network
 DVHop:

Distance vector hop
 SFLA:

Shuffled frog leaping algorithm
 PSO:

Particle swarm optimization
 BFO:

Bacterial foraging optimization
References
 1.
S. Kumar, D.K. Lobiyal, An advanced DVHop localization algorithm for wireless sensor networks. Wirel. Pers. Commun. 71(2), 1365–1385 (2013)
 2.
Q.S. Zhao, Y.L. Hu, An improved DVHop localisation algorithm. Int. J. Wirel. Mob. Comput. 10(1), 20–25 (2016)
 3.
Z. Huang, J. Tang, G. Shan, J. Ni, Y. Chen and C. Wang. An efficient passengerhunting recommendation framework with multitask deep learning. IEEE Internet of Things Journal,2019, DOI: https://doi.org/10.1109/JIOT.2019.2901759.
 4.
Z. Chen, Y. Zhang, C. Wu, B. Ran, Understanding individualization driving states via latent Dirichlet allocation model. IEEE Intell. Transp. Syst. Mag. 11(2), 41–53 (2019)
 5.
X. Li, L. Yan, W. Pan, et al., Optimization of DVHOP localization algorithm in hybrid optical wireless sensor networks [J]. J. Heuristics 21(2), 177–195 (2015)
 6.
S. Kumar, D.K. Lobiyal, Power efficient rangefree localization algorithm for wireless sensor networks. Int. J. Adv. Res. Comput. Sci. 20(4), 681–694 (2014)
 7.
Wu L, Hou Z, Tan C, et al. Improved DVHop localization algorithm based on distance correction of anchor nodes, 2016, 9(10):269278.
 8.
W. Ren, C. Zhao, A localization algorithm based on SFLA and PSO for wireless sensor network. Inf. Technol. J. 12(3), 502–505 (2013)
 9.
Y. Wang, Z. Fang, L. Chen, A new type of weighted DVHop algorithm based on correction factor in WSNs. J. Commun. 9(9), 699–705 (2014)
 10.
T. Zhou, J. Zhang, Analysis of commercial truck drivers’ potentially dangerous driving behaviors based on 11month digital tachograph data and multilevel modeling approach. Accid. Anal. Prev. 132, 105256 (2019)
 11.
B. Wu, T.L. Yip, X. Yan, C. Guedes Soares, Fuzzy logic based approach for shipbridge collision alert system. Ocean Eng. 187, 106152 (2019)
 12.
Y. Wang, E. Zio, X. Wei, D. Zhang, B. Wu, A resilience perspective on water transport systems: the case of Eastern Star. International Journal of Disaster Risk Reduction 33, 343–354 (2019)
 13.
Y.n. Qiao, Q. Yong, H. Di, Tensor Field Model for higherorder information retrieval. J. Syst. Softw. 84(12), 2303–2313 (2011)
 14.
M. Zhang, D. Zhang, F. Goerlandt, X. Yan, P. Kujala, Use of HFACS and fault tree model for collision risk factors analysis of icebreaker assistance in icecovered waters. Saf. Sci. 111, 128–143 (2019)
 15.
Z. Huang, X. Xu, J. Ni, H. Zhu, W. Cheng, Multimodal representation learning for recommendation in Internet of Things. IEEE Internet Things J. 6(6), 10675–10685 (2019)
 16.
M. Xi, Y. Qi, K. Wu, J. Zhao, M. Li, Using potential to guide mobile nodes in wireless sensor networks. Ad Hoc & Sensor Wireless Networks 12(34), 229–251 (2011)
 17.
Jinpei Yan, Yong Qi, and Qifan Rao. Detecting malware with an ensemble method based on deep neural network. SECURITY AND COMMUNICATION NETWORKS, 2018, DOI: https://doi.org/10.1155/2018/7247095.
 18.
Zhenhua Huang, Xin Xu, Honghao Zhu, MengChu Zhou. An efficient group recommendation model with multiattentionbased neural networks. IEEE Transactions on Neural Networks and Learning Systems,2020,DOI: https://doi.org/10.1109/%20TNNLS.2019.2955567.
 19.
X. Wang, Y. Qi, Z. Wang, et al., Design and implementation of SecPod: a framework for virtualizationbased security systems. IEEE Transactions on Dependable and Secure Computing 16(1), 44–57 (2019)
Acknowledgements
Not applicable
Funding
Not applicable
Author information
Affiliations
Contributions
The manuscript was written through the contributions of all authors. All authors have given approval to the final version of the manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare that they have no competing financial interests.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Li, T., Wang, C. & Na, Q. Research on DVHop improved algorithm based on dual communication radius. J Wireless Com Network 2020, 113 (2020). https://doi.org/10.1186/s13638020017117
Received:
Accepted:
Published:
Keywords
 Wireless sensor network
 DVHop
 Communication radius
 Location algorithm