CN103152817A - Distributed clock synchronizing method based on broadcast Gossip algorithm - Google Patents

Distributed clock synchronizing method based on broadcast Gossip algorithm Download PDF

Info

Publication number
CN103152817A
CN103152817A CN2013101011649A CN201310101164A CN103152817A CN 103152817 A CN103152817 A CN 103152817A CN 2013101011649 A CN2013101011649 A CN 2013101011649A CN 201310101164 A CN201310101164 A CN 201310101164A CN 103152817 A CN103152817 A CN 103152817A
Authority
CN
China
Prior art keywords
node
clock
value
wireless sensor
sensor network
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
Application number
CN2013101011649A
Other languages
Chinese (zh)
Other versions
CN103152817B (en
Inventor
吴少川
刘杨
刘博�
李婧
王玉泽
崔闻
孙仁强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin Institute of Technology
Original Assignee
Harbin Institute of Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Harbin Institute of Technology filed Critical Harbin Institute of Technology
Priority to CN201310101164.9A priority Critical patent/CN103152817B/en
Publication of CN103152817A publication Critical patent/CN103152817A/en
Application granted granted Critical
Publication of CN103152817B publication Critical patent/CN103152817B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A distributed clock synchronizing method based on a broadcast Gossip algorithm relates to a distributed clock synchronizing technology in a wireless sensor network, and solves the problem faced by all existing broadcast Gossip algorithms that the clock of each node is not guaranteed to converge to the average value of the initial clock of the node, such that the finally achieved synchronized clock of each node has comparatively great deviation with the average value of the initial clock of the node, which is adverse to network maintenance and data analysis. The method comprises the steps of: initializing the wireless sensor network consisting N number of nodes; ensuring each node to acquire indegree information and a scramble parameter value; setting two variables for each node; judging the state of each node; broadcasting the variable value of the node triggering an expire timer to the external neighboring nodes; updating the variable value of the node in the network; judging whether the two variables of the N number of nodes in the wireless sensor network converge to the same synchronized clock value; acquiring a clock synchronization result, and completing an iterative process. The invention can be widely used for synchronizing a distributed clock.

Description

Distributed clock synchronous method based on broadcasting Gossip algorithm
Technical field
The present invention relates to a kind of distributed clock simultaneous techniques of wireless sensor network.
Background technology
The communication network that wireless sensor network is comprised of the node that has in a large number the functions such as data acquisition, data processing and wireless data transceiving.Due to the restriction of cost and volume, these nodes all adopt powered battery usually, therefore have limited data analysis and transmittability.In a lot of the application, need to be with the clock synchronous of each sensor node, in order to carry out the application in the fields such as Distributed localization, time division multiple access, distributed collaboration and distributed object tracking estimated such as the time of advent.Between node, clock synchronous can have several different methods, for example by GPS (global positioning system) or base station time service, but this method needs each sensor node assembling GPS or cellular communication module, not only can increase the cost of equipment, also can increase their power consumption.Another method is exactly to carry out distributed synchronization by switching clock information between node; but these class methods have all adopted complicated Routing Protocol to carry out the exchange of clock information traditionally; so usually can due to the problem of communication delay or network capacity, cause the problem that protocol overhead is large, convergence precision is low and convergence rate is slow.
Under above-mentioned background, being born can be applicable to the synchronous Gossip algorithm of wireless-sensor network distribution type.In this algorithm, each node is waken up randomly, then the node that wakes up randomly with its certain selected (or certain group) adjacent node switching clock information, these two subsequently (maybe this group) nodes utilize respectively protruding merging (Convex Combination) algorithm to merge these clock informations, and replace own original clock with new clock information.Claiming this moment this algorithm to complete once upgrades or an iteration.Can prove on mathematics, by this algorithm, all nodes in network can be realized clock synchronous (or be called realized common recognition), and finally the clock of each node equals the mean value of the initial clock of these nodes just.Therefore using the Gossip algorithm in wireless sensor network carries out the synchronous meaning of distributed clock and is: 1) avoid hot issue.Owing to having adopted random walk (Random Walk) pattern to carry out clock information transmission, therefore avoided forming the fixed topology such as tree-shaped or netted take Centroid as root, therefore can make grouping better evade the hot spot region.2) reduce protocol overhead and energy consumption.Owing to not needing to carry out Route establishment and maintenance, so the Gossip algorithm has effectively reduced protocol overhead, and then reduce node energy consumption.In addition, be grouped in each transmission and all carried out before merging compression, so number of packet greatly reduces, also can effectively reduce the energy consumption of node.3) communication reliability.Owing to not needing the end-to-end route by fixing to come transfer clock information, so the Gossip algorithm avoided route break problem of single point failure, improved the reliability of network.4) improve network scalability (Scalability).Carried out in transmittance process due to clock information merging compression, thereby in network, the increase node only can increase the convergence of algorithm time, can't significantly increase the traffic carrying capacity of network.Therefore this algorithm can utilize Internet resources better, thereby improves the autgmentability of network.5) reduce hsrdware requirements.Tradition is communication pattern end to end, and the node in network needs buffered packet until it is correctly sent.When more or traffic carrying capacity is increased sharply when the nodes in network, node needs more time processing channel race problem, have a large amount of groupings during this and need to carry out buffer memory, this is a huge challenge for the very limited wireless sensor node of storage capacity.And each node in the Gossip algorithm only need to be preserved its clock information and gets final product, in case receive new clock information, it can merge two clock information compressions at once, so it only can take the data transmit queue of finite length, and irrelevant with scale and the business model of network.Therefore, the Gossip algorithm can well adapt to architecture and the mode of operation of wireless sensor network, has good application prospect.
The Gossip algorithm was proposed by people such as Tsitsiklis first in 1984, and this algorithm only utilizes the local information of network node and the information of its neighbor node to carry out exchanges data, had solved the average common recognition problem under the distribution occasion.The Gossip algorithm can be widely used in source orientation problem, Parameter Estimation Problem, Kalman filtering etc., has been subject to especially in recent years the extensive concern of academia.The present invention relates to the distributed average common recognition algorithm in a kind of wireless sensor network, this algorithm can make nodes all in wireless sensor network reach average common recognition state, compare with traditional algorithm, this algorithm has convergence rate faster, and that be proved to be to restrain on mathematics and converge on average, simultaneously, this algorithm has good adaptability to the packet loss problem in actual application, topologies change problem.
Although a lot of achievements in research about wireless sensor network Gossip algorithm aspect have been arranged both at home and abroad, research in the past mainly lays particular emphasis on the research of paired Gossip algorithm (Pair-wise Gossip Algorithm) and geographical Gossip algorithm (Geographic Gossip Algorithm).This two classes algorithm although therefore can make nodal clock converge on the average of their initial clocks, but can only be used for two-way link owing to only having selected node to carry out exchanges data at every turn when upgrading, well do not utilize the broadcast characteristic of wireless channel.Several years up to date, the research for broadcasting Gossip algorithm (Broadcast Gossip Algorithm) just appearred in the world.In this class algorithm, when its clock information of a node broadcasts, all nodes that can receive this clock information all can upgrade their data.Owing to not needing the reverse data exchange, so this class algorithm is more suitable in asymmetrical wireless channel.Simultaneously, have more node to participate in because each clock upgrades, so this class convergence of algorithm speed is faster.In addition, because broadcasting Gossip algorithm no longer needs to select at random adjacent node, thereby make algorithm more simple and be easy to realize.Yet regrettably, at present in the world all broadcasting Gossip algorithm all be faced with two problems: perhaps they can not guarantee that the clock of each node converges on the mean value of their initial clocks (namely on average knowing together); Perhaps can converge to mean value, but can't be from its convergence of mathematics proof.For the former, the synchronised clock finally reached of each node can have larger deviation with the average of their initial clocks so, is unfavorable for carrying out network operation and data analysis.And the latter is due to can not be from its convergence of mathematics proof, so the reliability of algorithm can't be guaranteed, and this algorithm is also extremely slow from simulation analysis result convergence rate.
Summary of the invention
The present invention is faced with in order to solve present all broadcasting Gossip algorithms the mean value that the clock that can not guarantee each node converges on their initial clocks, cause the synchronised clock that each node is finally reached that larger deviation can be arranged with the average of their initial clocks, be unfavorable for carrying out network operation and data analysis problems, thereby a kind of distributed clock synchronous method based on broadcasting Gossip algorithm is provided.
Based on the distributed clock synchronous method of broadcasting Gossip algorithm, it comprises the steps:
Step 1: to including the wireless sensor network initialization of N node, and initialization in-degree information and scrambling parameter; Wherein N is positive integer, Be the in-degree information of node i, ε is the scrambling parameter;
Step 2: set two variablees of node, x i(t) be the present clock variable of node i, y i(t) be the adjoint variable of node i, wherein x i(0) be the initial clock value of node i, and y i(0)=0, namely initial time is t=0; And the setting timer, the count value of described timer satisfies any random distribution;
Step 3: the state that judges each node: enter step 5 during for the triggering node k that regularly expires when node, when node is to enter step 6 when receiving the outer neighbors j of spot broadcasting; Otherwise continue to monitor;
Step 4: with two variate-values of regularly expired triggering node k, namely trigger the present clock variate-value x of node k k(t) and adjoint variable value y k(t), utilize spot broadcasting to be broadcast to respectively its outer neighbors j;
Step 5: clock variate-value and state variable value to the node in wireless sensor network upgrade, and will trigger the timer removing of node k;
Step 6: judge in wireless sensor network, whether two variablees of N node all converge on same synchronised clock value, and namely in wireless sensor network, the clock variable of N node is all identical, and the adjoint variable of N node is all identical; If yes then enter step 8, otherwise reset timer and return to step 4;
Step 7: obtain the clock synchronous result, complete iterative process.
Step 1 is described to the initialized process of the wireless sensor network that includes N node is:
The wireless sensor network that includes N node is set up directed simple graph G=(V, E), V={1 wherein, 2 ..., N} is node set, E is the limit set; When node i that and if only if can directly receive grouping from node j, claim limit (i, j) ∈ E to exist, claim that node i is the outer neighbour of node j this moment, and node j is the interior neighbour of node i, and
Figure BDA00002972184000032
Order With The interior adjacent set of representation node i and outer adjacent set respectively,
Figure BDA00002972184000035
With
Figure BDA00002972184000036
Be respectively in-degree and the out-degree of node i, symbol | X| cThe gesture of set X is got in representative.
Described step 5: in the process that clock variate-value and the state variable value of the node in wireless sensor network upgraded:
For triggering node k, state value, the adjoint variable value of this node sent to outer neighbors j, then the adjoint variable of triggering node k is set to 0;
x k ( t + 1 ) = x k ( t ) y k ( t + 1 ) = 0
In formula: x k(t) expression triggers node k at t clock variable constantly, y k(t) expression triggers node k at t adjoint variable constantly.
For outer neighbors j, upgrade according to the information of receiving:
x j ( t + 1 ) = ( 1 - 1 δ j + ) x j ( t ) + 1 δ j + x k ( t ) + ϵ 1 δ j + y j ( t ) y j ( t + 1 ) = 1 δ j + x j ( t ) - 1 δ j + x k ( t ) + ( 1 - ϵ 1 δ j + ) y j ( t ) + 1 δ j + y k ( t )
In formula: x j(t) the outer neighbors j of expression is at t adjoint variable constantly, y j(t) represent outer neighbors j at t adjoint variable constantly,
Figure BDA00002972184000043
In-degree for outer neighbors j.
The value of described scrambling parameter ε is Re (ξ 2)/2, wherein ξ 2The second little characteristic value for matrix L;
Described L is
Figure BDA00002972184000044
Wherein θ is
Figure BDA00002972184000045
Satisfy: if j=k and
Figure BDA00002972184000046
So
Figure BDA00002972184000047
Otherwise
Figure BDA00002972184000048
The present invention is based on broadcasting Gossip algorithm and realize guaranteeing that the clock of each node converges on the mean value of their initial clocks, make synchronous that each node finally reaches there is no the relatively large deviation problem with the average of their initial clock all the time.The present invention proposes a kind of distributed clock simultaneous techniques with low convergence error based on broadcasting Gossip algorithm, and this algorithm can be from its convergence of mathematics proof.When given iterations, method of the present invention has minimum convergence error, when given convergence error, method of the present invention has the fastest convergence rate, and the distributed clock synchronous method that therefore the present invention is based on broadcasting Gossip algorithm has best performance in all broadcasting Gossip algorithms.
Description of drawings
Fig. 1 is the flow chart that the present invention is based on the distributed clock synchronous method of broadcasting Gossip algorithm;
Fig. 2 is the simulation result of the network convergence variance of 100 nodes in embodiment one;
Fig. 3 is the simulation result of the network convergence deviation of 100 nodes in embodiment one;
Fig. 4 is the simulation result of the network convergence variance of 500 nodes in embodiment one;
Fig. 5 is the simulation result of the network convergence deviation of 500 nodes in embodiment one.
Embodiment
Embodiment one, in conjunction with Fig. 1, this embodiment is described.
Based on the distributed clock synchronous method of broadcasting Gossip algorithm, it comprises the steps:
Step 1: to including the wireless sensor network initialization of N node, and initialization in-degree information and scrambling parameter; Wherein N is positive integer,
Figure BDA00002972184000051
Be the in-degree information of node i, ε is the scrambling parameter;
Step 2: set two variablees of node, x i(t) be the present clock variable of node i, y i(t) be the adjoint variable of node i, wherein x i(0) be the initial clock value of node i, and y i(0)=0, namely initial time is t=0; And the setting timer, the count value of described timer satisfies any random distribution;
Step 3: the state that judges each node: enter step 5 during for the triggering node k that regularly expires when node, when node is to enter step 6 when receiving the outer neighbors j of spot broadcasting; Otherwise continue to monitor;
Step 4: with two variate-values of regularly expired triggering node k, namely trigger the present clock variate-value x of node k k(t) and adjoint variable value y k(t), utilize spot broadcasting to be broadcast to respectively its outer neighbors j;
Step 5: clock variate-value and state variable value to the node in wireless sensor network upgrade, and will trigger the timer removing of node k;
Step 6: judge in wireless sensor network, whether two variablees of N node all converge on same synchronised clock value, and namely in wireless sensor network, the clock variable of N node is all identical, and the adjoint variable of N node is all identical; If yes then enter step 8, otherwise reset timer and return to step 4;
Step 7: obtain the clock synchronous result, complete iterative process.
Operation principle: the present invention utilizes broadcasting Gossip algorithm to obtain the clock synchronous of wireless sensor network, and in this algorithm, the clock value of each node is not only restrained, and converges on the average of their initial clocks.Can also prove on mathematics, if scrambling parameter ε value is Re (ξ 2)/2, the algorithm that proposes so has the fastest convergence rate.
The method of this patent has convergence rate or better convergence precision faster than every other broadcasting Gossip algorithm.When given iterations, this method convergence error in all broadcasting Gossip algorithms is minimum; When given convergence error, this method convergence rate is the fastest.When practical application, distributed clock is synchronously weighed performance index by these two parameters.The perhaps iterations of node in limiting network, the perhaps error of given convergence.Satisfy one of these two conditions, algorithm is just thought and has been restrained.
Concrete steps of the present invention are in detail:
Step 1: to including the wireless sensor network initialization of N node, and initialization in-degree information and scrambling parameter; Wherein N is positive integer,
Figure BDA00002972184000052
Be the in-degree information of node i, ε is the scrambling parameter;
For the wireless sensor network that N node arranged, it can be modeled as an oriented free hand drawing G=(V, E), V={1 here, 2 ..., N} is node set, and E is the limit set.When node i that and if only if can directly receive grouping from node j, just claim limit (i, j) ∈ E to exist, claim that node i is the outer neighbour (Out-neighbor) of node j this moment, and node j is the interior neighbour (In-neighbor) of node i.In the present invention, with the existence that does not allow from ring, namely
Figure BDA00002972184000061
Like this, even when a node sends grouping, it can receive the grouping that it sends by wireless channel itself, also will directly abandon.Definition With
Figure BDA00002972184000063
The interior adjacent set of representation node i and outer adjacent set respectively, and definition
Figure BDA00002972184000064
With
Figure BDA00002972184000065
In-degree (In-degree, graph theory term represent quantity adjacent in a node) and out-degree (Out-degree, graph theory term represent the outer adjacent quantity of a node), symbol here for node i | X| cThe gesture (i.e. the quantity of element in the set) of set X is got in representative.
In-degree information is divided into dual mode according to the radio sensing network topological structure and obtains: it is as follows that the mode that (1) obtains voluntarily obtains the in-degree information process: each node is intercepted the grouping of its node transmission on every side, thereby can know the adjacent node information around its.Node just can obtain by the mode of intercepting the quantity of its adjacent node like this, thereby obtains in-degree information; (2) directly setting means obtains in-degree information.If network topology structure is fairly simple, when nodes is less, also can directly set the in-degree information of each node.If network is random distribution, so preferably just adopt the mode of obtaining voluntarily in-degree information.
Step 2: set two variablees of node, x i(t) be the present clock variable of node i, y i(t) be the adjoint variable of node i, wherein x i(0) be the initial clock value of node i, and y i(0)=0, namely initial time is t=0; And the setting timer, the count value of described timer satisfies any random distribution;
Each node i in network is all preserved two variablees, and one is its present clock variable x i(t), another is adjoint variable y i(t).X wherein i(0) be the initial clock value of each node, and specify y i(0)=0.
Step 3: the state that judges each node: enter step 5 during for the triggering node k that regularly expires when node, when node is to enter step 6 when receiving the outer neighbors j of spot broadcasting; Otherwise continue to monitor;
Step 4: with two variate-values of regularly expired triggering node k, namely trigger the present clock variate-value x of node k k(t) and adjoint variable value y k(t), utilize spot broadcasting to be broadcast to respectively its outer neighbors j;
Step 5: clock variate-value and state variable value to the node in wireless sensor network upgrade, and will trigger the timer removing of node k;
The detailed process of these its variablees of node updates is as follows:
For triggering node k, state value, the adjoint variable value of this node sent to outer neighbors j, then the adjoint variable of triggering node k is set to 0;
x k ( t + 1 ) = x k ( t ) y k ( t + 1 ) = 0
In formula: x k(t) expression triggers node k at t clock variable constantly, y k(t) expression triggers node k at t adjoint variable constantly.
For outer neighbors j, upgrade according to the information of receiving:
x j ( t + 1 ) = ( 1 - 1 δ j + ) x j ( t ) + 1 δ j + x k ( t ) + ϵ 1 δ j + y j ( t ) y j ( t + 1 ) = 1 δ j + x j ( t ) - 1 δ j + x k ( t ) + ( 1 - ϵ 1 δ j + ) y j ( t ) + 1 δ j + y k ( t )
In formula: x j(t) the outer neighbors j of expression is at t adjoint variable constantly, y j(t) represent outer neighbors j at t adjoint variable constantly,
Figure BDA00002972184000073
In-degree for outer neighbors j.
For other node
Figure BDA00002972184000074
Have:
x l ( t + 1 ) = x l ( t ) y l ( t + 1 ) = y l ( t ) ,
It is the clock renewal that other nodes l only carries out oneself.
In above-mentioned iterative algorithm, x (t+1) is mainly used to store the stored synchronised clock estimated value of node in each iterative process; Y (t+1) is used for storing the deviation between synchronisation of nodes clock estimated value and actual value in each iterative process; ε is the scrambling parameter, and by changing this parameter, algorithm will have different convergence rates, and the back can discuss its value in detail.Because above-mentioned algorithm is typical linear iterative algorithm, therefore can explain with the form of matrix, namely
x ( t + 1 ) y ( t + 1 ) = W k ( t ) x ( t ) y ( t ) - - - ( 1 )
Here matrix of a linear transformation W k(t) lower footnote k represents that current clock upgrades and is initiated by node k.
Step 6: judge in wireless sensor network, whether two variablees of N node all converge on same synchronised clock value, and namely in wireless sensor network, the clock variable of N node is all identical, and the adjoint variable of N node is all identical; If yes then enter step 8, otherwise reset timer and return to step 4;
For broadcasting Gossip algorithm, when the renewal in any t moment, certain the node k that only has this time renewal to activate broadcasts its state value, and only has the outer neighbors of node k
Figure BDA00002972184000077
Just can receive this state value and carry out state and upgrade.Therefore, only has node in network
Figure BDA00002972184000081
And limit (j, k) ∈ E has participated in current state value renewal.Based on this reason, the node in figure G all can be kept still will all delete except the limit beyond (j, k) ∈ E, and construct a new figure G kThen be this new figure G kGenerate corresponding spot broadcasting weighting adjacency matrix
Figure BDA00002972184000082
Spot broadcasting weighting indegree matrix With spot broadcasting weighting Laplacian Matrix
Figure BDA00002972184000084
For ease of describing, the below provides the specific definition of these three kinds of matrixes.
Spot broadcasting weighting adjacency matrix
Figure BDA00002972184000085
Each element in this matrix
Figure BDA00002972184000086
Satisfy: if j=k and So
Figure BDA00002972184000088
Otherwise
Figure BDA00002972184000089
Spot broadcasting weighting indegree matrix
Figure BDA000029721840000810
Each element in this matrix
Figure BDA000029721840000811
Satisfy: if
Figure BDA000029721840000812
So
Figure BDA000029721840000813
Otherwise
Figure BDA000029721840000814
Spot broadcasting weighting Laplacian Matrix Here Represent complete 1 vector and Diag (v) represents that a diagonal matrix and its diagonal element are the corresponding element of vector v.
These three kinds of weighting matrixs are respectively:
A ^ 2 ( θ ) = 0 0 0 0 0 0 0 0 0 1 0 0 0 0.5 0 0 , D ^ 2 ( β ) = 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0.5 , L ^ 2 ( θ ) = 0 0 0 0 0 0 0 0 0 - 1 1 0 0 0.5 0 0.5
Utilize this three kinds of matrixes, can be with transformation matrix W k(t) describe with following formula.
W k ( t ) = I - L ^ k ( θ ) , ϵ D ^ k ( β ) L ^ k ( θ ) , I - e k e k T - ϵ D ^ k ( β ) + A ^ k ( θ ) - - - ( 2 )
Here I is unit matrix, and e kBe the base vector of standard, namely it is 1 except k element, and all the other elements are all 0.Can verify
Figure BDA000029721840000821
Here
Figure BDA000029721840000822
With
Figure BDA000029721840000823
Be respectively complete 1 column vector and full 0 column vector.If therefore vector x (t) and y (t) converge on respectively
Figure BDA000029721840000824
With
Figure BDA000029721840000825
(c is a constant here), so whole iterative algorithm has just entered a fixed point, and after this state value of vector x (t) and y (t) will can not change, thereby enter convergence state.And this moment, all nodes were obtained common recognition, namely for two node i and j arbitrarily, and lim T → ∞x i(t)=lim T → ∞x j(t).It may be noted that if in network, all links are all bi-directional symmetrical so node is arbitrarily had Can prove this moment, in this algorithm, the clock value of each node is not only restrained, and converges on the average of their initial clocks.
Step 7: obtain the clock synchronous result, complete iterative process.
Discuss from mathematical theory:
If scrambling parameter ε value is Re (ξ 2)/2, the algorithm that proposes so has the fastest convergence rate, here ξ 2The second little characteristic value for matrix L.Utilize matrix perturbation theory and Markov matrix theory, can obtain following two conclusions.
1. algorithms of conclusion can guarantee that each node can reach clock synchronous according to mathematic expectaion, namely
lim t → ∞ E ( x ( t ) y ( t ) ) = lim t → ∞ E ( Π j = 0 t W ( j ) ) x ( 0 ) y ( 0 )
= lim t → ∞ W ‾ t x ( 0 ) y ( 0 )
= 1 → 0 → ω 1 T ω 2 T x ( 0 ) y ( 0 ) - - - ( 3 )
= ( ω 1 T x ( 0 ) ) 1 → 0 →
Here,
Figure BDA00002972184000095
It is because each matrix W that this formula is set up k(t) be independent identically distributed random matrix.Utilize character and the matrix perturbation theory of Markov matrix, can prove matrix Eigenvalue of maximum be 1, and be one single; And the mould of its all the other characteristic values is so the long-pending convergence of the power of this matrix restrains result as shown in formula (3), wherein vectorial all less than 1 ω 1 T ω 2 T T With 1 → T 0 → T T Be respectively matrix
Figure BDA00002972184000099
Corresponding to left eigenvector and the right characteristic vector of characteristic value 1, and satisfy normalizing condition ω 1 T ω 2 T 1 → T 0 → T T = 1 . Be not difficult to find out from formula (3), the clock of all nodes is the value of converging on finally
Figure BDA000029721840000911
The second moment convergence of conclusion 2. algorithm of carrying, the i.e. limit
Figure BDA000029721840000912
Exist, wherein m ( t ) = x ( t ) T y ( t ) T T - ( 1 / N ) 1 → T 0 → T T 1 → T 1 → T x ( 0 ) T y ( 0 ) T T Two variate-values of each node when each clock upgrades and the difference of all node initializaing variable mean values have been represented.
Comprehensive conclusion 1 and conclusion 2 as can be known, the clock synchronization algorithm of carrying not only can be restrained according to probability, and convergence error bounded, so algorithm can prove its convergence on mathematics.
For the ease of relatively, existing existing two kinds of broadcasting Gossip algorithms in the world are called after BGA-1 and BGA-2 respectively, and they and the algorithm (called after BBGA) of the present invention's proposition are carried out Performance Ratio.Wherein BGA-1 can prove algorithmic statement, but algorithm can not converge on the broadcasting Gossip algorithm of initial clock average; And BGA-2 can not prove its constringent broadcasting Gossip algorithm by mathematical measure.In performance evaluation below, there are 100 or 500 nodes in network, and generate random geometry figure by them.Adopted two kinds of different scrambling parameter configuration in emulation, wherein BBGA-opt represents that scrambling parameter ε gets optimal value Re (ξ 2)/2; And BBGA-0.5 represents scrambling parameter ε value 0.5.The below comes respectively the performance of parser from convergence rate and convergence error two aspects.
1) convergence rate
In order to analyze convergence rate, at first define the evaluation criterion of convergence rate, i.e. variance
Be not difficult to find out the variance of the clock variable that when q (t) has measured each iteration, each node keeps from formula (4).When node is built consensus, q (t) will converge to 0.Therefore, q (t) converges on 0 speed speed and can be used for the convergence rate of measure algorithm.
2) convergence error
In order to analyze convergence error, can define departure function
Figure BDA00002972184000102
If an algorithm can guarantee to converge on the average of the initial clock of all nodes, r (t) will converge on 0 so; Otherwise the size of r (t) convergency value has just determined the size of convergence error.Therefore departure function r (t) can be used for the convergence error of measure algorithm.
Fig. 2 and Fig. 4 be between algorithm at the simulation results of 100 nodes and 500 meshed networks convergence variances, this simulation result has shown convergence of algorithm speed simultaneously.Fig. 2 and Fig. 5 be between algorithm at the simulation results of 100 nodes and 500 meshed networks convergence deviations, this simulation result has shown the convergence of algorithm error simultaneously.Can find out from simulation result, the BGA-1 convergence rate is the fastest, but this is cost to the maximum with convergence error.The BGA-2 convergence rate is the slowest, but convergence precision is the highest.BBGA algorithm proposed by the invention, no matter scrambling parameter is got optimal value or 0.5, and their performance is all between BGA-1 and BGA-2.Obviously, the performance of BBGA-opt is better than BBGA-0.5, but the optimization of scrambling parameter need to be known topology of networks in advance, so only be suitable for small-scale application.
To sum up, synchronous for distributed clock, because the clock that does not need each node finally strictly converges on the average of their initial clocks, as long as this convergency value satisfies certain required precision.Be not difficult to find out from above simulation analysis, algorithm proposed by the invention is better than BGA-1 aspect convergence precision, being better than BGA-2 aspect convergence rate, is therefore the equilibrium between convergence rate and convergence precision, more meets the application requirements of distributed clock synchronized algorithm.Simultaneously, use because BBGA-0.5 has simple and easy to do and is applicable to large scale network, therefore have optimum engineering practice and be worth.

Claims (5)

1. based on the distributed clock synchronous method of broadcasting Gossip algorithm, it is characterized in that it comprises the steps:
Step 1: to including the wireless sensor network initialization of N node, and initialization in-degree information and scrambling parameter; Wherein N is positive integer,
Figure FDA00002972183900011
Be the in-degree information of node i, ε is the scrambling parameter;
Step 2: set two variablees of node, x i(t) be the present clock variable of node i, y i(t) be the adjoint variable of node i, wherein x i(0) be the initial clock value of node i, and y i(0)=0, namely initial time is t=0; And the setting timer, the count value of described timer satisfies any random distribution;
Step 3: the state that judges each node: enter step 5 during for the triggering node k that regularly expires when node, when node is to enter step 6 when receiving the outer neighbors j of spot broadcasting; Otherwise continue to monitor;
Step 4: with two variate-values of regularly expired triggering node k, namely trigger the present clock variate-value x of node k k(t) and adjoint variable value y k(t), utilize spot broadcasting to be broadcast to respectively its outer neighbors j;
Step 5: clock variate-value and state variable value to the node in wireless sensor network upgrade, and will trigger the timer removing of node k;
Step 6: judge in wireless sensor network, whether two variablees of N node all converge on same synchronised clock value, and namely in wireless sensor network, the clock variable of N node is all identical, and the adjoint variable of N node is all identical; If yes then enter step 8, otherwise reset timer and return to step 4;
Step 7: obtain the clock synchronous result, complete iterative process.
2. the distributed clock synchronous method based on broadcasting Gossip algorithm according to claim 1 is characterized in that step 1 is described and to the initialized process of the wireless sensor network that includes N node is:
The wireless sensor network that includes N node is set up oriented simple unidirectional relationship G=(V, E), V={1 wherein, 2 ..., N} is node set, E is the limit set; When node i that and if only if can directly receive grouping from node j, claim limit (i, j) ∈ E to exist, claim that node i is the outer neighbour of node j this moment, and node j is the interior neighbour of node i, and
Figure FDA00002972183900012
Order
Figure FDA00002972183900013
With
Figure FDA00002972183900014
The interior adjacent set of representation node i and outer adjacent set respectively,
Figure FDA00002972183900015
With
Figure FDA00002972183900016
Be respectively in-degree and the out-degree of node i, symbol | X| cThe gesture of set X is got in representative.
3. the distributed clock synchronous method based on broadcasting Gossip algorithm according to claim 2 is characterized in that described step 5: in the process that clock variate-value and the state variable value of the node in wireless sensor network upgraded:
For triggering node k, state value, the adjoint variable value of this node sent to outer neighbors j, then the adjoint variable of triggering node k is set to 0;
x k ( t + 1 ) = x k ( t ) y k ( t + 1 ) = 0
In formula: x k(t) expression triggers node k at t clock variable constantly, y k(t) expression triggers node k at t adjoint variable constantly.
4. the distributed clock synchronous method based on broadcasting Gossip algorithm according to claim 3 is characterized in that described step 5: in the process that clock variate-value and the state variable value of the node in wireless sensor network upgraded:
For outer neighbors j, upgrade according to the information of receiving:
x j ( t + 1 ) = ( 1 - 1 δ j + ) x j ( t ) + 1 δ j + x k ( t ) + ϵ 1 δ j + y j ( t ) y j ( t + 1 ) = 1 δ j + x j ( t ) - 1 δ j + x k ( t ) + ( 1 - ϵ 1 δ j + ) y j ( t ) + 1 δ j + y k ( t )
In formula: x j(t) the outer neighbors j of expression is at t adjoint variable constantly, y j(t) represent outer neighbors j at t adjoint variable constantly,
Figure FDA00002972183900023
In-degree for outer neighbors j.
5. the distributed clock synchronous method based on broadcasting Gossip algorithm according to claim 1, is characterized in that the value at the parameter of scrambling described in step 1 ε is Re (ξ 2)/2, wherein ξ 2The second little characteristic value for matrix L;
Described L is
Figure FDA00002972183900024
Wherein θ is
Figure FDA00002972183900025
Satisfy: if j=k and
Figure FDA00002972183900026
So
Figure FDA00002972183900027
Otherwise
Figure FDA00002972183900028
CN201310101164.9A 2013-03-27 2013-03-27 Distributed clock synchronizing method based on broadcast Gossip algorithm Active CN103152817B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310101164.9A CN103152817B (en) 2013-03-27 2013-03-27 Distributed clock synchronizing method based on broadcast Gossip algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310101164.9A CN103152817B (en) 2013-03-27 2013-03-27 Distributed clock synchronizing method based on broadcast Gossip algorithm

Publications (2)

Publication Number Publication Date
CN103152817A true CN103152817A (en) 2013-06-12
CN103152817B CN103152817B (en) 2015-04-15

Family

ID=48550617

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310101164.9A Active CN103152817B (en) 2013-03-27 2013-03-27 Distributed clock synchronizing method based on broadcast Gossip algorithm

Country Status (1)

Country Link
CN (1) CN103152817B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103648083A (en) * 2013-12-27 2014-03-19 哈尔滨工业大学 Distributed average-consensus broadcast Gossip wireless communication method
CN103945485A (en) * 2014-04-30 2014-07-23 中国科学院上海微***与信息技术研究所 Low-overhead fast-convergence wireless sensor network distribution type averaging method
CN103945524A (en) * 2014-04-30 2014-07-23 中国科学院上海微***与信息技术研究所 Distributed wireless sensor network time synchronization method
CN105334400A (en) * 2015-09-24 2016-02-17 哈尔滨工业大学 Distributed electromagnetic field received signal power intensity detection method based on unbiased broadcast Gossip algorithm
CN105515988A (en) * 2015-12-14 2016-04-20 哈尔滨工业大学 Distributed route synchronization method based on probability quantized broadcast gossip algorithm
CN106160914A (en) * 2016-07-22 2016-11-23 浙江工业大学 IEEE1588 clock synchronization method based on interference observation feedback control technology
CN107124755A (en) * 2017-04-26 2017-09-01 哈尔滨工业大学 The double-layer network Poewr control method of Gossip algorithm is broadcasted based on unbiased
CN108777713A (en) * 2018-06-01 2018-11-09 广东电网有限责任公司电力科学研究院 A kind of load adjusting method and device of distributed requirement response
CN109618405A (en) * 2019-01-29 2019-04-12 南京邮电大学 Small base station distribution formula network synchronization method based on gossip algorithm
US11678286B2 (en) 2020-09-16 2023-06-13 Kabushiki Kaisha Toshiba Electronic apparatus, system, and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047696A (en) * 2006-03-27 2007-10-03 互联天下科技发展(深圳)有限公司 Network flow media data playing method and system
CN102098677A (en) * 2009-12-11 2011-06-15 武汉大学 Method for quickly building overlay network based on gossip
CN102299841A (en) * 2010-06-25 2011-12-28 中兴通讯股份有限公司 Service-based P2P (Peer-to-Peer) path determination method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047696A (en) * 2006-03-27 2007-10-03 互联天下科技发展(深圳)有限公司 Network flow media data playing method and system
CN102098677A (en) * 2009-12-11 2011-06-15 武汉大学 Method for quickly building overlay network based on gossip
CN102299841A (en) * 2010-06-25 2011-12-28 中兴通讯股份有限公司 Service-based P2P (Peer-to-Peer) path determination method and device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103648083A (en) * 2013-12-27 2014-03-19 哈尔滨工业大学 Distributed average-consensus broadcast Gossip wireless communication method
CN103945524B (en) * 2014-04-30 2017-11-10 中国科学院上海微***与信息技术研究所 Distributed wireless Sensor Network method for synchronizing time
CN103945485A (en) * 2014-04-30 2014-07-23 中国科学院上海微***与信息技术研究所 Low-overhead fast-convergence wireless sensor network distribution type averaging method
CN103945524A (en) * 2014-04-30 2014-07-23 中国科学院上海微***与信息技术研究所 Distributed wireless sensor network time synchronization method
CN105334400A (en) * 2015-09-24 2016-02-17 哈尔滨工业大学 Distributed electromagnetic field received signal power intensity detection method based on unbiased broadcast Gossip algorithm
CN105515988A (en) * 2015-12-14 2016-04-20 哈尔滨工业大学 Distributed route synchronization method based on probability quantized broadcast gossip algorithm
CN106160914A (en) * 2016-07-22 2016-11-23 浙江工业大学 IEEE1588 clock synchronization method based on interference observation feedback control technology
CN107124755A (en) * 2017-04-26 2017-09-01 哈尔滨工业大学 The double-layer network Poewr control method of Gossip algorithm is broadcasted based on unbiased
CN107124755B (en) * 2017-04-26 2020-02-11 哈尔滨工业大学 Double-layer network power control method based on unbiased broadcast Gossip algorithm
CN108777713A (en) * 2018-06-01 2018-11-09 广东电网有限责任公司电力科学研究院 A kind of load adjusting method and device of distributed requirement response
CN108777713B (en) * 2018-06-01 2020-12-25 广东电科院能源技术有限责任公司 Load adjusting method and device for distributed demand response
CN109618405A (en) * 2019-01-29 2019-04-12 南京邮电大学 Small base station distribution formula network synchronization method based on gossip algorithm
CN109618405B (en) * 2019-01-29 2021-07-20 南京邮电大学 Small base station distributed network synchronization method based on gossip algorithm
US11678286B2 (en) 2020-09-16 2023-06-13 Kabushiki Kaisha Toshiba Electronic apparatus, system, and method

Also Published As

Publication number Publication date
CN103152817B (en) 2015-04-15

Similar Documents

Publication Publication Date Title
CN103152817B (en) Distributed clock synchronizing method based on broadcast Gossip algorithm
Huang et al. Long term and large scale time synchronization in wireless sensor networks
CN105188126B (en) Distributed multihop wireless network clock synchronizing method based on mean field
CN103648164A (en) Time difference of arrival and Gossip algorithm based wireless sensor network distributed positioning method
Liao et al. Distributed clock skew and offset estimation from relative measurements in mobile networks with Markovian switching topology
CN104010329B (en) Based on the distributed load equalizing method for quantifying unbiased broadcast Gossip algorithm
Dagdeviren et al. Semi-asynchronous and distributed weighted connected dominating set algorithms for wireless sensor networks
CN101982959B (en) Network demand time synchronization method
CN106972905A (en) A kind of method for synchronizing time based on beam formed antenna
Wang et al. Average consensus in sensor networks via broadcast multi-gossip algorithms
CN103068033B (en) Distributed network synchronous withdrawing parameter optimization method for wireless network
CN103957544A (en) Method for improving survivability of wireless sensor network
CN102970677B (en) Wireless communication method based on monitoring Gossip average common view technology
CN103957591A (en) Node pair based wireless sensor network time synchronization method
Swain et al. A weighted average–based external clock synchronisation protocol for wireless sensor networks
CN103237364B (en) A kind of integrated wireless sensor network data collection mechanism
CN106211196B (en) The harmonious property method of how unmanned sail body based on markov random file
CN107743302A (en) Rate-allocation and route combined optimization algorithm in wireless sensor network based on compressed sensing
Kai et al. Throughput analysis of CSMA wireless networks with finite offered-load
Iima et al. Overhearing-based data transmission reduction for periodical data gathering in wireless sensor networks
Li et al. Clock synchronization in mobile ad hoc networks based on an iterative approximate byzantine consensus protocol
Mamun-Or-Rashid et al. Passive cluster based clock synchronization in sensor network
Xie et al. A chain-based data gathering protocol under compressive sensing framework for wireless sensor networks
Goswami et al. Analysis of temporal robustness in massive machine type communications
CN106211309A (en) A kind of efficient water sound sensor network method for synchronizing time

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CB03 Change of inventor or designer information

Inventor after: Wu Shaochuan

Inventor after: Cui Wen

Inventor after: Liu Yang

Inventor after: Liu Bo

Inventor after: Li Jing

Inventor after: Wang Yuze

Inventor after: Sun Renqiang

Inventor before: Wu Shaochuan

Inventor before: Liu Yang

Inventor before: Liu Bo

Inventor before: Li Jing

Inventor before: Wang Yuze

Inventor before: Cui Wen

Inventor before: Sun Renqiang

COR Change of bibliographic data