CN111385825A - Consistency time synchronization method for rapid convergence of wireless sensor network - Google Patents
Consistency time synchronization method for rapid convergence of wireless sensor network Download PDFInfo
- Publication number
- CN111385825A CN111385825A CN202010118658.8A CN202010118658A CN111385825A CN 111385825 A CN111385825 A CN 111385825A CN 202010118658 A CN202010118658 A CN 202010118658A CN 111385825 A CN111385825 A CN 111385825A
- Authority
- CN
- China
- Prior art keywords
- node
- clock
- clock skew
- logic
- skew
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
- H04W56/001—Synchronization between nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The invention provides a consistency time synchronization method for rapid convergence of a wireless sensor network. The method comprises the steps of constructing a virtual link between two-hop neighbor nodes to enlarge a node reference range and considering consistency iteration updating under a delay condition on the basis. On the basis that only a single-hop node is considered by a reference node in the existing method, the convergence performance of the consistency time synchronization method is optimized by adding two-hop neighbor nodes based on the virtual link construction between the two-hop neighbor nodes of the wireless sensor network, and the relative clock skew is updated and improved under the delay condition, so that the convergence speed is improved well. Compared with other methods such as an average consistency time synchronization method ATS, the method effectively improves the convergence speed.
Description
Technical Field
The invention belongs to the technical field of wireless sensor networks, and particularly relates to a consistency time synchronization method for rapid convergence of a wireless sensor network.
Background
Wireless Sensor Networks (WSNs) are Networks that sense, collect, and process monitored environmental information in a distributed manner, and are currently widely used, and time synchronization is a basic support technology for Wireless Sensor Networks. The time synchronization is the basis and the precondition for the wireless sensor network to realize the applications of data fusion, cooperative monitoring, node positioning, intelligent dormancy, communication conflict avoidance and the like. The convergence speed is very important for the time synchronization algorithm, and in the application of the WSNs, particularly large-scale WSNs, the fast convergence time synchronization algorithm is very necessary for the smooth execution of the application. A faster consistency algorithm requires fewer synchronization cycles to achieve time synchronization and, at the same time, can quickly adapt to changes in network topology and time skew. Compared with other algorithms, the average consistency time synchronization algorithm is more robust, but because the distributed synchronization protocol is mainly based on the global node to perform time diffusion and continuous synchronization iteration, and the convergence speed of the distributed time synchronization protocol is slower than that of the classical time synchronization algorithm, a new consistency time synchronization method needs to be found to realize rapid convergence.
Disclosure of Invention
In order to solve the above problems, an object of the present invention is to provide a consistent time synchronization method for fast convergence of a wireless sensor network.
In order to achieve the above object, the consistent time synchronization method for fast convergence of a wireless sensor network provided by the present invention comprises the following steps performed in sequence:
step 1: logic clock skew for initializing initial time of any node i in wireless sensor networkIs 1, logic clock offset 0, relative clock skew between nodes α ij1, making the broadcast period of the node as T;
step 2: node i at time τi(t)=lT,l∈N+I.e. in the ith broadcast period T, the broadcast includes its local clock τi(tl) Logic clock skewAnd logic clock offsetClock information is included and the relative clock skew between the current nodes is recorded αij(tl);
and 4, step 4: when the node i receives the clock information of the neighbor node<τj(tl),τk(tl);>Then, the information at this time includes clock information of the neighbor node j of the node i<τj(tl),>And two-hop neighbor node k, k ∈ NjClock information of<τk(tl),>(ii) a At this time, the clock information of the node i is<τi(tl),>Current relative clock skew between nodesIs αij(tl) The clock information of the previous moment is<τi(tl-1),>Relative clock skew between nodes is αij(tl-1) (ii) a Then according to the clock information of the neighbor node received by the node i<τj(tl),τk(tl);>Relative clock skew α between node i, neighbor node j, and two-hop neighbor node kijLogic clock skewAnd logic clock skewCarrying out estimation;
step 5-according to the relative clock skew α described aboveijLogic clock skewAnd logic clock skewAs a result of the estimation, the node i deletes and updates the clock information at the previous time<τi(tl-1),>Importing the updated clock information to be called in the next step;
step 6: and jumping to the step 2 to circularly execute consistency synchronization.
In step 5, the relative clock skew α between the pair node i, the neighbor node j, and the two-hop neighbor node kijLogic clock skewAnd logic clock skewThe method for estimating comprises the following steps:
s1: relative clock skew estimation:
relative clock skew α between nodes i, j without delayijThe update formula of (2) is:
considering bounded delay, as shown in FIG. 2, for a single-hop neighbor node delay isFor two-hop neighbor nodes, since intermediate node relay is needed, two steps are needed to complete transmission of synchronous clock information, and the processing time Td of the intermediate node is ignored, so that the delay is causedComprises the following steps:
the inter-node delay mainly affects the relative clock skew and thus the logic clock skew estimation. Therefore, in order to avoid the divergence of the synchronization process by applying equation (1), the relative clock skew thereof needs to be compensated, and a weighted average is taken for all the relative clock skews, and the update formula is:
s2: logic clock skew estimation:
wherein,ραTo converge the gradient coefficients, αijIs relative clock skew.
S3: logic clock offset estimation:
where ρ isbIs the convergence gradient coefficient. The clock skew does not amplify in the case of delays, the synchronization result being bounded.
Compared with the prior art, the consistency time synchronization method for the rapid convergence of the wireless sensor network provided by the invention has the following advantages and beneficial effects:
the invention optimizes and improves the convergence speed of the consistency time synchronization of the wireless sensor network based on adding the virtual link to the two-hop neighbor node, and the convergence speed is well improved by adding the virtual link to the two-hop neighbor node under the condition of not changing the network topology information. Compared with other methods in the prior art, the method can effectively improve the convergence rate and has superior performance.
Drawings
Fig. 1 is a schematic reference node diagram of a node i in the consistent time synchronization method for fast convergence of a wireless sensor network according to the present invention;
FIG. 2 is a schematic diagram of packet delivery with delay;
FIG. 3 is a diagram of maximum logic clock error for a wireless sensor network;
FIG. 4 is a diagram showing a relationship between a network topology radius and an algebraic connectivity;
fig. 5 is a graph of the convergence rate of different topologies.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings.
The consistency time synchronization method for the rapid convergence of the wireless sensor network provided by the invention comprises the following steps in sequence:
step 1: logic clock skew for initializing initial time of any node i in wireless sensor networkIs 1, logic clock offset 0, relative clock skew between nodes α ij1, making the broadcast period of the node as T;
the hardware clock of any node i in the wireless sensor network is taui(t)=αit+βiWherein αiFor clock skew, corresponding to clock speed, ideally 1; βiIs the clock offset. For nodes in a wireless sensor network, only the local real hardware clock tau can be directly acquiredi(t), clock skew αiAnd clock bias βiIs not available, so the hardware clock τi(t) cannot be easily adjusted. Therefore, a logic clock is definedI.e., a synchronous clock, in which,is the logic clock skew;is the logic clock offset. The aim of the inventive method is to make the node i have a globally uniform skewAnd globally consistent offsetsNamely, it isSo that the logic clock L of all nodesi(t) achieving consensus.
As shown in fig. 1, in the wireless sensor network of the present invention, the communication relationship between nodes may be represented by a graph G ═ V, EShowing the topological relation of an information exchange network, wherein V ═ {1,2, …, N } represents a node set, N represents the number of nodes in the wireless sensor network, and an edge setRepresenting the communication relationship among the N nodes.
Step 2: node i at time τi(t)=lT,l∈N+I.e. in the ith broadcast period T, the broadcast includes its local clock τi(tl) Logic clock skewAnd logic clock offsetClock information is included and the relative clock skew between the current nodes is recorded αij(tl);
and 4, step 4: when the node i receives the clock information of the neighbor node<τj(tl),τk(tl);>Then, the information at this time includes clock information of the neighbor node j of the node i<τj(tl),>And two-hop neighbor node k, k ∈ NjClock information of<τk(tl),>(ii) a At this time, the clock information of the node i is<τi(tl),>The relative clock skew between the current nodes is αij(tl) The clock information of the previous moment is<τi(tl-1),>Relative clock skew between nodes is αij(tl-1) (ii) a Then according to the clock information of the neighbor node received by the node i<τj(tl),τk(tl);>Relative clock skew α between node i, neighbor node j, and two-hop neighbor node kijLogic clock skewAnd logic clock skewThe following estimates were made:
s1: relative clock skew estimation:
relative clock skew α between nodes i, j without delayijThe update formula of (2) is:
considering bounded delay, as shown in FIG. 2, for a single-hop neighbor node delay isFor two-hop neighbor nodes, since intermediate node relay is needed, two steps are needed to complete transmission of synchronous clock information, and the processing time Td of the intermediate node is ignored, so that the delay is causedComprises the following steps:
the inter-node delay mainly affects the relative clock skew and thus the logic clock skew estimation. Therefore, in order to avoid the divergence of the synchronization process by applying equation (1), the relative clock skew thereof needs to be compensated, and a weighted average is taken for all the relative clock skews, and the update formula is:
s2: logic clock skew estimation:
where ρ isαTo converge the gradient coefficients, αijIs relative clock skew.
S3: logic clock offset estimation:
where ρ isbIs the convergence gradient coefficient. The clock skew does not amplify in the case of delays, the synchronization result being bounded.
Step 5-according to the relative clock skew α described aboveijLogic clock skewAnd logic clock skewAs a result of the estimation, the node i deletes and updates the clock information at the previous time<τi(tl-1),>Importing the updated clock information to be called in the next step;
step 6: and jumping to the step 2 to circularly execute consistency synchronization.
The invention optimizes the synchronous convergence speed of the clock of the consistency of the wireless sensor network through the following thought. Under the condition of considering transmission delay, the time synchronization of the wireless sensor network is realized by improving the interaction between the intelligent agents of the existing consistency algorithm and the rule of information transmission. Firstly, with reference to fig. 1, a node i transmits its clock information to a neighboring node j, and on this basis, the information of the node i is additionally transmitted to a two-hop neighboring node k through the relay of the neighboring node j, that is, the information of the node i is transmitted to the neighboring node of the neighbor. Therefore, the reference range of each node is increased on the premise of not modifying the topological information of the wireless sensor network. Then, the node i updates relative clock skew, logic clock skew and logic clock skew according to the received neighbor node information, wherein the neighbor node information is added with information of two-hop neighbor nodes.
In order to verify the effectiveness of the method, the maximum logic clock error is defined as the maximum value of the logic clock error of each node. In consideration of communication delay, fig. 3 shows an error convergence diagram of the method (making it FCATS) and ATS algorithm of the present invention after 300 iterations, and it can be seen from the diagram that after several iterations, the synchronization error is stabilized at 10-2And within s, the requirements of most applications can be met. It can also be seen that,at the convergence rate, the logic clock skew error convergence of the ATS algorithm lags behind the method of the present invention for 20 iteration cycles, which shows that the convergence of the logic clock skew is improved in speed by adding a virtual link between two-hop nodes of the wireless sensor network in the presence of bounded delay. The linear topologies with different diameters are selected for research, and as can be seen from fig. 4, by adding a virtual link between two-hop nodes, compared with an ATS algorithm, the algebraic connectivity rate under the corresponding network diameter is relatively increased, and the algebraic connectivity rate is in direct proportion to the convergence rate. The inventor analyzes the convergence condition in different topologies, and respectively selects linear, annular, grid and random network topologies. It can be seen from fig. 5 that the method of the present invention has a shorter convergence time than the ATS algorithm in any of the above types of topologies, and the overall convergence speed is improved by about 50%. In conclusion, compared with the traditional consistency algorithm, the consistency time synchronization method for the rapid convergence of the wireless sensor network provided by the invention is greatly improved in convergence speed.
Claims (2)
1. A consistency time synchronization method for fast convergence of a wireless sensor network is characterized in that: the consistency time synchronization method for the rapid convergence of the wireless sensor network comprises the following steps in sequence:
step 1: logic clock skew for initializing initial time of any node i in wireless sensor networkIs 1, logic clock offset0, relative clock skew between nodes αij1, making the broadcast period of the node as T;
step 2: node i at time τi(t)=lT,l∈N+I.e. in the ith broadcast period T, the broadcast includes its local clock τi(tl) Logic clock skewAnd logic clock offsetClock information is included and the relative clock skew between the current nodes is recorded αij(tl);
Step 3, when the neighbor node j, j ∈ NiReceiving the clock informationThen, clock information of itself is generatedAnd records the relative clock skew α between the current nodesji(tl) Then the clock information of the neighbor node j and the node i are combined into new combined clock informationAnd broadcast to its neighbor nodes;
and 4, step 4: when the node i receives the clock information of the neighbor nodeThen, the information at this time includes clock information of the neighbor node j of the node iAnd two-hop neighbor node k, k ∈ NjClock information of At this time, the clock information of the node i isRelative clock skew between current nodes is αij(tl) The clock information of the previous moment isRelative clock skew between nodes is αij(tl-1) (ii) a Then according to the clock information of the neighbor node received by the node iFor relative clock skew α between node i, neighbor node j, and two-hop neighbor node kijLogic clock skewAnd logic clock skewCarrying out estimation;
step 5-according to the relative clock skew α described aboveijLogic clock skewAnd logic clock skewAs a result of the estimation, the node i deletes and updates the clock information at the previous timeImporting the updated clock information to be called in the next step;
step 6: and jumping to the step 2 to circularly execute consistency synchronization.
2. The method of claim 1, wherein the method comprises: in step 5, the pair of nodes i and the neighbor nodeRelative clock skew α between point j and two-hop neighbor node kijLogic clock skewAnd logic clock skewThe method for estimating comprises the following steps:
s1: relative clock skew estimation:
relative clock skew α between nodes i, j without delayijThe update formula of (2) is:
with bounded delay taken into account, for a single-hop neighbor node delay ofFor two-hop neighbor nodes, since intermediate node relay is needed, two steps are needed to complete transmission of synchronous clock information, and the processing time Td of the intermediate node is ignored, so that the delay is causedComprises the following steps:
the delay between nodes mainly affects the relative clock skew, and thus the logic clock skew estimation, so to avoid applying equation (1) to make the synchronization process diverge, the relative clock skew needs to be compensated, a weighted average mode is adopted to take a weighted average of all the relative clock skews, and the update formula is as follows:
s2: logic clock skew estimation:
where ρ isαTo converge the gradient coefficients, αijRelative clock skew;
s3: logic clock offset estimation:
where ρ isbIs the convergence gradient coefficient.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010118658.8A CN111385825B (en) | 2020-02-26 | 2020-02-26 | Consistency time synchronization method for rapid convergence of wireless sensor network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010118658.8A CN111385825B (en) | 2020-02-26 | 2020-02-26 | Consistency time synchronization method for rapid convergence of wireless sensor network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111385825A true CN111385825A (en) | 2020-07-07 |
CN111385825B CN111385825B (en) | 2023-04-11 |
Family
ID=71217015
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010118658.8A Active CN111385825B (en) | 2020-02-26 | 2020-02-26 | Consistency time synchronization method for rapid convergence of wireless sensor network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111385825B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113038587A (en) * | 2021-03-08 | 2021-06-25 | 东南大学 | Filter-based sensor network clock synchronization algorithm under denial of service attack |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103945534A (en) * | 2014-05-19 | 2014-07-23 | 中国科学院上海微系统与信息技术研究所 | Second-order lag information based wireless sensor network consistency method |
CN107949047A (en) * | 2018-01-15 | 2018-04-20 | 重庆邮电大学 | Reduce the wireless sensor network uniformity method for synchronizing time of Internet traffic |
CN108632989A (en) * | 2018-05-15 | 2018-10-09 | 中山大学 | A kind of wireless sensor network consistency Distributed Time synchronous method |
-
2020
- 2020-02-26 CN CN202010118658.8A patent/CN111385825B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103945534A (en) * | 2014-05-19 | 2014-07-23 | 中国科学院上海微系统与信息技术研究所 | Second-order lag information based wireless sensor network consistency method |
CN107949047A (en) * | 2018-01-15 | 2018-04-20 | 重庆邮电大学 | Reduce the wireless sensor network uniformity method for synchronizing time of Internet traffic |
CN108632989A (en) * | 2018-05-15 | 2018-10-09 | 中山大学 | A kind of wireless sensor network consistency Distributed Time synchronous method |
Non-Patent Citations (2)
Title |
---|
余世明等: "随机有界通信时延下传感器网络中的一致性时钟同步算法", 《控制与决策》 * |
刘曙琴等: "无线传感器网络中带延时的一致性时间同步", 《传感器与微系统》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113038587A (en) * | 2021-03-08 | 2021-06-25 | 东南大学 | Filter-based sensor network clock synchronization algorithm under denial of service attack |
Also Published As
Publication number | Publication date |
---|---|
CN111385825B (en) | 2023-04-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107949047B (en) | Wireless sensor network consistency time synchronization method for reducing network communication traffic | |
Leng et al. | Distributed clock synchronization for wireless sensor networks using belief propagation | |
Kadowaki et al. | Event-based distributed clock synchronization for wireless sensor networks | |
Serpedin et al. | Synchronization in wireless sensor networks: parameter estimation, performance benchmarks, and protocols | |
Du et al. | Distributed clock skew and offset estimation in wireless sensor networks: Asynchronous algorithm and convergence analysis | |
WO2021056761A1 (en) | Frequency offset estimation method for average consistency clock synchronization | |
Wang et al. | A consensus-based time synchronization scheme with low overhead for clustered wireless sensor networks | |
Zennaro et al. | Network-wide clock synchronization via message passing with exponentially distributed link delays | |
Noh et al. | Pairwise broadcast clock synchronization for wireless sensor networks | |
CN111385825B (en) | Consistency time synchronization method for rapid convergence of wireless sensor network | |
Todescato et al. | Distributed localization from relative noisy measurements: A robust gradient based approach | |
Mozumdar et al. | An Efficient Data Aggregation Algorithm for Cluster-based Sensor Network. | |
CN103873195B (en) | Media access control method suitable for household power line network | |
CN113207167A (en) | Method for estimating synchronous frequency deviation of consistent clock based on sequence least square | |
Wang et al. | A global clock skew estimation scheme for hierarchical wireless sensor networks | |
Phan et al. | A fast consensus-based time synchronization protocol with virtual links in WSNs | |
Panigrahi et al. | Robust distributed linear parameter estimation in wireless sensor network | |
Mamun-Or-Rashid et al. | Passive cluster based clock synchronization in sensor network | |
Zheng et al. | Constructing r-hop 2-connected dominating sets for fault-tolerant backbone in wireless sensor networks | |
CN105071890A (en) | Self-adaptive clock synchronization method with high robustness | |
Bagherizadeh et al. | A high performance and secure way to time synchronization in wireless sensor network | |
Gresset et al. | A random broadcast consensus synchronization algorithm for large scale wireless mesh networks | |
Cui et al. | An improved TPSN algorithm based on doze mechanism | |
Kadowaki et al. | Event-based distributed clock synchronization for wireless sensor networks | |
Almulla et al. | LEADMesh: Design and analysis of an efficient leader election protocol for wireless mesh networks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |