1. Introduction
Due to the shrinking size of hardware devices and the rapid development of software computing speed, wireless sensor networks are put into use. Wireless sensor networks are powerful and versatile [
1]. At present, wireless sensor network applications cover many fields such as public safety, security intensification, health monitoring, intelligent transportation, environmental monitoring, battlefield reconnaissance, target tracking, and emergency location and navigation of fire scenes [
2].
Wireless sensor networks can implement functions such as area detection, information collection, distributed processing, information fusion, and data transmission, which can replace human beings in the face of dangerous environments or environmental monitoring that humans cannot reach [
3]. In the military field, wireless sensor networks can be used to monitor conflict zones, reconnaissance local terrain and arming, and detect nuclear, biological, and chemical attacks or hazardous materials. It can also monitor enemy movements, monitor enemy forces and equipment, locate and track targets, and provide a basis for decision-making [
4]. In the field of industrial control, wireless sensor networks can realize industrial control process monitoring, industrial waste gas monitoring, and promote the intelligent production equipment and flexible production methods [
5]. In the agricultural field, wireless sensor networks collect and control environmental information, animal and plant information monitoring, agricultural irrigation automation control technology, grassland humidity, and animal feeding [
6]. In the field of smart grids, wireless sensor networks store and correlate electricity information, provide power-saving feedback services, form an efficient and environmentally-friendly smart grid system, integrate power flow, information flow, and business flow, and improve grid operation capability. In the medical field, wireless sensor networks are used in drug management, surveillance monitoring, telemedicine, etc. [
7]. The next step will be to integrate the medical system, achieve resource sharing, and ultimately establish a coordinated, collaborative medical system that provides personalized health services.
At present, wireless sensor networks have achieved fruitful results in basic theories and key technologies such as network protocols, wireless communications, data management, network security, and clock synchronization. However, wireless sensor networks still have shortcomings such as limited power, limited computing power, and limited storage capacity. The battery energy of the sensor node is limited. On the one hand, due to the complex environment of the node deployment area and the wide distribution area, many areas are even unreachable, so energy is difficult to supplement. On the other hand, due to the size and cost of the node, it is not possible to use a large-capacity battery or a solar battery. The limited energy of the module has seriously affected the widespread use of wireless sensor networks [
8]. How to make the node consume the least amount of energy during use and maximize the service life of the network becomes the main problem for the development of wireless sensor networks. The cost of the sensing node is low, the volume is small, and the carrying capacity is small. These limitations inevitably result in a weak processor capability of the CPU and a small memory capacity. Sensor nodes cover a large area, and the communication range is severely limited by the application environment. The energy consumption of wireless communication increases exponentially with increasing communication distance [
9]. However, the node’s wireless communication loan is limited—usually only a few hundred Kbps—so in order to avoid communication terminals, data transmission uses a multi-hop routing mechanism.
Nodes in wireless sensor networks are deployed over a large geographic area, and typically the environment is harsh, causing node failure. Alternatively, it is distributed in a small range with high density, large number, nodes reaching tens of thousands, and even adding new nodes to meet monitoring and other requirements [
10]. Therefore, wireless sensor networks are required to be highly robust to meet application requirements. As can be seen from the above challenges, the energy consumption of nodes is the most important part of extending the life cycle of the network. The compensation of the sensor network clock error can effectively improve the life cycle of the wireless sensor network.
In order to improve the survivability of wireless sensor nodes, realize the high robustness of wireless sensor network, prolong the network life cycle, achieve high clock error compensation accuracy, low communication delay, high communication efficiency, and other goals, a clock error compensation method based on the cyclic symmetry algorithm is proposed. This method provides a new idea for the further development of sensor network-related technology, improves the clock error compensation precision and communication efficiency, and is a great progress of modern communication technology, so the research method has a very broad application prospect.
3. Results
In order to verify the effectiveness of this method in compensating for the clock error of sensor networks, a simulation experiment is carried out. The overall experimental scheme is to set up the simulation experiment environment, the operating system is Windows 10, and the simulation software is Matlab 7.0. Experimental sample data of a large sensor network application provider in this city will take the part of the background data as the experimental sample data after negotiation. The CRLB method and clock synchronization accumulation method were selected as experimental comparison methods, and the communication delay rate, communication efficiency, information overhead, error detection accuracy, compensation accuracy, computational complexity, and clock drift of unknown nodes were selected as experimental comparison indexes. The influencing factors of clock error compensation in sensor networks are noise interference during information transmission and subjective factors in the process of experimental data acquisition. The experimental environment settings are shown in
Table 1.
Set the number of sensing communication signals to 100, and the distribution of sensor network nodes is shown in
Figure 2.
The physical map of the nodes in the sensor network is shown in
Figure 3.
In order to effectively verify the effectiveness of the proposed method in compensating for the clock error of the sensing network, the method is compared with the clock synchronization accumulation method and the CRLB method. Three methods were used to sense communication, and the communication delays of the three methods were counted in 10 experiments. The comparison results are shown in
Figure 4.
It can be seen from
Figure 4 that in 100 experiments, the sensing communication delay rate is between 10% and 15% using the method of the present invention. The CRLB method is used to sense the communication delay rate up to 22%, and the clock synchronization accumulation method is used to sense the communication delay rate as high as 21%. The sensing communication delay rate using this method is significantly lower than the CRLB method and the clock synchronization accumulation method. This shows that using the method of this paper to compensate the compensation network clock error can ensure the communication quality of the sensor network.
Three methods are used to compensate the clock error of the sensor network, and the communication efficiency of the three methods in the 10 experiments is statistically analyzed. The comparison results are shown in
Figure 5.
It can be seen from
Figure 5 that the clock error communication efficiency of the sensor network is over 97% and the robustness is better. The CRLB method and the clock synchronization accumulation method compensate the clock error communication efficiency of the sensor network by making it less than 93%. The experimental results show that the proposed method compensates the clock error of the sensor network with extremely high communication efficiency.
According to the above experimental results, it can be known that this method is used to compensate the clock error of the sensor network, and the communication delay rate and communication efficiency are better than the CRLB method and the clock synchronization accumulation method. This fully demonstrates the superiority of the method in this paper.
Three methods are used to compensate the clock error of the sensor network, and the statistical simulation time is the information overhead of the three methods of sensing communication within 100 s. The comparison results are shown in
Table 2.
It can be seen from the experimental results in
Table 2 that the information overhead required to compensate the clock error of the sensor network by this method is significantly smaller than the CRLB method and the clock synchronization accumulation method. Using the method of this paper to compensate, the clock error of the sensor network is only 0.87 J in the experimental that ran for 100 s, and the CRLB method to compensate the clock error of the sensor network is as high as 1.72 J in the experiment that ran for 100 s.
On the basis of the above experiments, it is possible to verify the accuracy of error detection of different methods. The higher the error detection rate, the better the error supplement effect. The experimental results are shown in
Figure 6.
Analysis of the experiment results shows that for the clock synchronization accumulation method, the error detection rate is between 63% and 72%, which is the lowest in the three methods. In contrast, for the CRLB method, the error detection rate is between 78% and 89%, and the method of error detection accuracy is over 97%, which was the highest of three methods for error detection precision. Thus, the CRLB method improves the precision of the sensor network error and has laid a solid foundation.
The experimental results again verify the superiority of using this algorithm to compensate the clock error of the sensor network.
Three methods are used to compensate the clock error of the sensor network, and the compensation accuracy of the three methods of sensor communication is counted in 100 experiments. The comparison results are shown in
Figure 7.
It can be seen from the experimental results in
Figure 7 that the compensation accuracy of the clock error of the sensor network using this method is above 98%. The compensation accuracy of the clock error of the sensor network using the CRLB method is only 97.7%, and the compensation accuracy of the clock error of the sensor network using the clock synchronization accumulation method is only 97.6%. Through the comparison of the compensation accuracy of the three methods, it can be seen that the compensation of the clock error of the sensor network is higher by using the algorithm, and the high precision can be maintained under different experimental times. This verifies the superiority of the clock error compensation of the proposed algorithm.
In order to verify the effectiveness of the proposed algorithm to compensate the sensor network clock error, the compensation performance of the proposed algorithm is evaluated by the computational complexity of the three methods. The comparison results are shown in
Table 3.
It can be seen from
Table 3 that when the algorithm is used to compensate the sensor network clock error and the number of nodes is 10, the CPU running time is only 0.17 s. The clock synchronization accumulation method is used to compensate the clock error of the sensor network. When the number of nodes is 10, the CPU running time is as high as 1.31 s. Then, the CRLB method is used to compensate the clock error of the sensor network. When the number of nodes is 10, the CPU running time is as high as 1.71 s. Thus, the CRLB method compensates the clock error of the sensor network. When the number of nodes is 10, the CPU running time is 100 times that of the method, and the algorithm complexity and the number of nodes increase linearly. The experimental results show that the proposed method has low computational complexity and can be applied to large-scale networks of sensor nodes with low cost and low computational energy.
In order to visually compare the clock skew and deviation, the clock error of the unknown node compensated by three different methods is compared with the timing of the whole network. The comparison results are shown in
Figure 8.
As can be seen from the results of
Figure 8, after the synchronization information is transmitted at time 0, the synchronization time exchange is not performed. The method in this paper can effectively suppress the clock drift caused by the increase of time and effectively control the increase of clock skew, effectively reducing the node synchronization frequency. It reduces energy consumption while ensuring compensation accuracy.
4. Discussion
The timing mechanism of the nodes in the sensor network consists of a crystal oscillator with a nominal frequency and a count register. Each time an oscillation pulse occurs, the value is incremented by one when counting the calculator. Read the value of the count register to get the current clock value. Ideally, the vibration pulse output of a crystal oscillator of a rated frequency is periodic, and the oscillation period cannot be changed. This oscillation output is called the local physical time. The value in the count register can be read and changed by the local software time. The main causes of inconsistency in the local time of the sensor nodes are:
1. Due to the low-cost characteristics of the node, a quartz crystal oscillator is generally used. The imperfection of the crystal quality results in a pulse frequency that is not absolutely consistent, which makes the node counter count frequency different. The time error caused by this problem is called clock skew, which is usually between 1 and 100 ppm.
2. The node opening time is inconsistent. Due to the hardware manufacturing of the nodes, the turn-on time clocks of the individual sensor nodes are not completely consistent. Especially in large-scale networks, deployed nodes are not all started at the same time. This directly leads to a difference between the initial phases of the nodes. Time inconsistencies due to this cause are often referred to as clock skew.
3. The crystal frequency of the node is greatly affected by the ambient temperature, light intensity, humidity, and electromagnetic interference. At the same time, the voltage and current fluctuations of the node’s own power supply module also have an effect on the frequency variation of the crystal oscillator. In addition, as the node uses time, the aging of the device and other issues will also affect the stability of the crystal oscillator pulse frequency. This cause causes the clock skew to change constantly—that is, the clock drifts.
The main problem to be solved by clock error compensation is to keep the node time consistent by changing the software time and minimize the time error caused by time offset and time drift.
Local clock synchronization issues and wireless link transmission are fundamental quality of service requirements for wireless networks. On the one hand, wireless transmission provides a platform and guarantee the synchronization of the local clock, and the synchronization of the local clock in turn can promote the application development of a series of signal processing and communication platforms.
The compensation of clock error is the main supporting technology of the upper layer coordination mechanism, which determines whether the data is valid in time-sensitive applications. In the time-related observation events, applications such as data fusion, event monitoring, TDOA positioning, and sensing time sequencing all have strict requirements for clock synchronization.
As a non-traditional complex mission-based network, real-time interaction and collaborative processing of information is one of the key QoS guarantees for wireless sensor networks. Due to the lack of resources in a single node, the three pieces of data perceived, processed, and transmitted by the wireless sensor network need to be completed through a specific coordination mechanism. High-precision clock synchronization ensures the most efficient coordination and efficient time-division multiplexing and media access for wireless channels. This improves wireless channel utilization and ensures overall network performance. The clock synchronization performance also determines whether the MAC protocol, dormancy scheduling, and time division multiplexing determine the effective utilization of many resources such as energy and broadband, which further determines the efficiency of energy supply of each node and the life cycle of the entire network.
In the mobile target tracking problem in the context of wireless sensor networks, the node detects the target. Then, the related physical information and the time label are merged into a data packet, and the neighbor nodes that monitor the target communicate with each other at a certain frequency. The purpose is to exchange data packets and obtain motion state information such as the position and speed of the target at a specific moment. This process continues to circulate, with the ultimate goal of obtaining the trajectory of the target within the detection area. Each point on the motion trajectory represents the motion state of the target at a certain moment, and the timing of the time determines the direction of the trajectory. Therefore, clock synchronization plays a key role at both the application and network layers. In the application layer, the purpose of clock synchronization between nodes is to provide accurate protection and processing of data, such as target location and event detection. At the network layer, clock synchronization provides the basis for real-time data transmission, such as node wake-up and packet scheduling. Therefore, the clock synchronization mechanism can penetrate every data-related mitigation, and its implementation directly determines the merits of the data-centric wireless sensor network system.
In order to solve the problem of clock error compensation in sensor networks, a clock error compensation method based on cyclic symmetry algorithm is proposed. The effectiveness of the proposed method is verified by simulation experiments. Simulation results show that the communication delay rate of the proposed method is between 10% and 15%, and the communication delay is low. The clock error communication efficiency is above 97% and the robustness is good. At 100 s, the experiment was only 0.87 J, with high efficiency. The accuracy of clock error detection in sensor networks is always above 97%. The compensation accuracy of clock error is above 98% and there is low computational complexity; thus, the proposed method can effectively suppress clock drift caused by time increase. On the whole, compared with the existing methods, this method has more obvious advantages. The reason why this method has the advantages above is that it constructs the cyclic symmetry matrix of the sensor network based on the basic theory of cyclic symmetry. In the communication process, all nodes are extended to obtain the accumulative delay rate of the sensor network in the specified time domain. By using the accumulated delay rate of the loop network and sensor network, an auto-regressive integral sliding mode control model is established to compensate the accumulated error of clock synchronization, so it has certain practical application value in practice.
At present, many results have been achieved for the time synchronization technology of wireless sensor networks, but there are still many specific problems to be further studied.
At present, the work mainly focuses on the synchronization accuracy with the node, and lacks thinking and research on the synchronization performance of the entire network, which leads to a very high resynchronization frequency and a large communication energy consumption. However, the theory has shown that most of the energy of the sensor node is consumed in the wireless communication module.
Existing synchronization algorithms mostly use maximum likelihood estimation to estimate clock skew and clock skew. This algorithm must use a search algorithm under the nonlinear clock model, which results in very high complexity, does not necessarily have a maximum value, and is not suitable for local calculation of sensor network nodes. This algorithm estimates the clock skew and clock skew of the node in the linear clock model only for short-term applications such as target location.
The synchronization protocol does not consider the relationship between environmental factors and hardware drift from the underlying physical level, especially in low-duty cycle networks. When the node is sleeping, it cannot communicate and transmit, which makes it impossible to synchronize time, and it is impossible to achieve “consistent collective recovery” after a long period of sleep.
In view of the problems in the research of sensor network time synchronization technology mentioned above, the main work of this paper is as follows: Using cyclic symmetry theory to provide an effective solution for the clock synchronization of wireless sensor networks, especially sleep sensor networks, so that node communication energy consumption is greatly reduced. The node can compensate the clock deviation in software mode in the sleep state, and the effectiveness of the algorithm is verified by experiments.
There are still a lot of questions about wireless sensor networks that deserve further study:
1. Delay distribution algorithm
At present, the distribution models of non-deterministic network delays commonly used include Gaussian, exponential, gamma, and Weibull models. However, in a particular wireless sensor network, it is difficult to assess which distribution model of the network’s delay matches the overlay function of those models. Since various factors can affect the distribution of network delays, simulations show that existing algorithms are usually valid for models with a specific delay profile.
2. Security issues with clock synchronization
The security issue of clock synchronization in wireless sensor networks is a relatively new area of research. Most of the existing literature focuses on a single attack mode. Assuming that the attack nodes are sparsely distributed in the network, consider the security issue of clock synchronization. There are still many problems worth considering for the clock synchronization security when considering different attack modes and scenarios in which the attack nodes are concentrated.
3. Large-scale network synchronization
At present, the optimal estimation method of the optimal clock for large-scale wireless sensor network synchronization is also a very important and challenging subject. In this respect, graph theory algorithms are combined with distributed or sequential Bayesian methods, MCMC techniques, and distributed nonlinear optimization techniques. Perhaps it can provide a solution for developing efficient synchronization algorithms in large-scale wireless sensor networks.
4. Joint estimation of synchronization and positioning
In practice, the location of the beacon node is usually given by GPS, and the clock skew and clock skew of the beacon node are also estimated during the sensor network synchronization process. Therefore, in the case of error in the beacon node information, optimizing the estimation problem of the unknown node is also a problem that needs to be solved at present.