The present disclosure relates to the technical field of wireless sensor networks for aircraft load measurement, and in particular to a time synchronization method for a wireless load testing system.
A number of distributed time synchronization algorithms have been proposed in conventional wireless sensor networks. These algorithms have robustness to unreliable communication links and adaptability to dynamic network topology, but all ignore the effect of communication delay on time information. In practical wireless sensor networks, the communication delay cannot be ignored, and is a fundamental limitation for time synchronization, which greatly affects the accuracy of time synchronization and the efficiency of time synchronization methods. The traditional time synchronization algorithms have the problems of reduced time synchronization accuracy and time synchronization failure of partial sub-nodes due to time delay in complex spatial layout.
The present disclosure provides a time synchronization algorithm for a wireless load testing system, which can precisely achieve the network-wide time synchronization, solves the problems of reduced time synchronization accuracy and time synchronization failure of partial sub-nodes due to time delay of the traditional time synchronization algorithms in complex spatial layout, and is applicable to point-to-multipoint wireless networks where multiple points do not communicate with each other directly.
The present disclosure provides a time synchronization method for a wireless load testing system, including two stages: a stage of constructing a wireless sensor system; and a stage of suppressing communication delay to achieve precise network-wide time synchronization.
The stage of constructing a wireless sensor system includes constructing a network model based on a consensus algorithm, constructing a clock model, updating compensation parameters of virtual logical clocks of nodes, and proposing a timestamp exchange mechanism based on a pseudo-periodic communication scheme.
The stage of suppressing communication delay to achieve precise network-wide time synchronization mainly includes: proposing a relative skew estimation method based on Bayesian theory to perform relative skew estimation; performing skew and offset compensation.
Compared with the prior art, the beneficial effects of the present disclosure are: (1) the relative skew estimator based on Bayesian estimation theory is employed to suppress the effect of time delay in wireless communication, thereby enhancing the estimation accuracy of the relative skew estimator while reducing memory requirements; (2) by applying the average consensus protocol, high-precision network-wide time synchronization is achieved; (3) the overall method enhances the robustness to time delay and has higher accuracy.
The foregoing and other objects, features, and advantages of the present disclosure will become more apparent from the following detailed description of exemplary embodiments of the present disclosure taken in conjunction with the accompanying drawings, in which like reference numerals generally refer to the same parts throughout the exemplary embodiments of the present disclosure.
The technical solutions in the embodiments of the present disclosure will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only a part of the embodiments of the present disclosure rather than all of them. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work shall fall within the scope of protection of the present disclosure.
Preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While preferred embodiments of the present disclosure are illustrated in the accompanying drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The present disclosure provides a time synchronization method for a wireless load testing system. A flowchart of an exemplary embodiment is shown in
The method according to the present disclosure mainly includes two stages: a stage of constructing a wireless sensor system, and a stage of suppressing communication delay to achieve precise network-wide time synchronization. A flowchart of each stage is shown in
The stage of constructing the wireless sensor system includes: constructing a network model based on a consensus algorithm, constructing a clock model, updating compensation parameters of virtual logical clocks of nodes, and proposing a timestamp exchange mechanism based on a pseudo-periodic communication scheme.
The steps of the stage of constructing the wireless sensor system are as follows:
S1, constructing the network model based on the consensus algorithm.
Assuming communication topology is an undirected graph G=(N,ε) in a wireless network, where N={1, 2, . . . , N}represents a set of sensor nodes, and ε⊆N×N represents a set of effective communication links. αij represents a non-empty adjacency element, and if and only if there is a directed link in G, a set of direct neighbor nodes of a sub-node i can be expressed as Ni={j|(i,j)}∈ε, where (i,j)∈ε represents that the node i can communicate with a node j in one hop. For the state of a certain sub-node i, the consensus algorithm can be adopted to construct the following linear model:
S2, constructing a node virtual logic clock updating model based on a timestamp exchange mechanism based on a pseudo-periodic communication scheme.
S21, constructing a clock model.
Each sensor node has a local hardware clock whose first-order dynamic function is expressed as:
Since the local hardware clock cannot be manually modified, it is proposed that the node maintains a virtual logic clock to represent the synchronization time. The model is as follows:
S22, updating compensation parameters of virtual logical clocks of nodes.
The compensation parameters of the virtual logic clock model are updated periodically and iteratively, such that the logic clocks of each sensor node approximate a common clock,
The compensation parameters of the virtual logic clocks of the nodes are updated, such that (αi,βi) satisfies:
S23, proposing a timestamp exchange mechanism based on a pseudo-periodic communication scheme.
Each node broadcasts time information with an MAC layer timestamp to neighbor nodes in each synchronization period T. The neighbor nodes record local clocks immediately after receiving the information. Assuming a k-th broadcast of the node i with communication delay to a neighbor node j, ci(tki)=kT represents the k-th transmission time of the node i, where represents the transmission instant at the corresponding absolute moment, and assuming the node j obtains the k-th message at its local time cj(tkij), where tki represents the instant time at which the node j receives the message within the absolute time, so tkij>tki, and
Based on the communication delay, it is assumed that for any communication link between any two nodes, the delay exists as a positive and bounded independent random variable, i.e., 0<dij(tkij)≤Md, where Md is a positive real constant; in addition, it is assumed that each node neither updates the virtual logical clock of the node nor obtains the time information sent by the neighbor nodes of the node until a time duration is greater than Md.
S3, constructing a relative skew estimator based on Bayesian theory, and estimating undetermined parameters in the updating the virtual logic clocks of the nodes, such that the logic clocks of each sensor node approximate a common clock.
Including performing relative skew estimation, and performing skew and offset compensation.
In order to offset the effect of delay, a relative skew estimation method based on Bayesian theory is proposed.
Assuming each node i periodically broadcasts time information to its neighbor node j, where the time information includes a node ID, an information transmission sequence number, a current hardware clock value, a logical skew compensation value and an offset compensation value. Considering that the communication delay includes random delay and fixed delay, the time information exchanged between the node i and the node j is reconstructed as:
Analyzing the effect of other unknown parameters of relative skew by subtracting the time information, to obtain the following formula:
In the actual time synchronization process, when a message from the node i is not received by the neighbor node j within the time duration Md, the synchronization message will be considered as discarded.
Based on Bayesian estimation theory, an error function of the to-be-estimated parameter αij is expressed as e=αij−αij.
And then a quadratic function is defined as C(e)=e2=(αij−αij)2.
The relative skew is estimated by a Bayesian mean square error R=E(C(e))=E((αij−αij)2).
By applying the relative skew to a probability density function p(Δcj(n),αij), according to Bayesian principle, it can be obtained that p(Δcj (n), αij)=p(αij|Δcj(n)pΔcj(n)).
So,
Since p(Δcj(n))≥0 holds for all Δcj(n), if the integral in parentheses can be minimized for each Δcj(n), then Bmse will be minimized, and the estimator of minimizing Bmse is the average of the posterior joint conditions of αij=E(αij|Δcj(n)).
The equivalent recursive solution to the above formula is as follows:
In the case of bounded delay, the bounded convergence of the time synchronization algorithm depends on the convergence rate and attenuation rate of the relative skew estimation error. The convergence and convergence rate of the above formula are analyzed to determine the effectiveness of the relative skew estimation. The analysis method is as follows:
After the hardware local time cj(tkij) of the k-th data packet received by the node j is substituted into the above formula, it can be obtained that αij(n)=αij(1+εij(n)).
Therefore, for any n∈N+,
The convergence speed of εij(n) is equal to O(1/(n-1)), so limn→∞{circumflex over (α)}ij(n)=αij, which proves the effectiveness of the relative skew estimator.
S4, updating logical skew compensation and offset compensation of the nodes.
When the node j obtains the n-th synchronization packet from the node i, the node j performs the n-th skew and offset compensation update at tnij using the following update rules.
The time synchronization method for wireless load testing system is processed by a time synchronization equipment for wireless load testing system.
As shown in
The memory 1005, as a non-volatile readable storage medium, may include an operating system, network communication module, application program module, and a time synchronization equipment for wireless load testing system. The network communication module is mainly used to connect to servers and communicate data with them; And processor 1001 is used to call the program to process the method stored in memory 1005, and execute all steps of the time synchronization method for wireless load testing system mentioned above.
The above technical solutions are only exemplary embodiments of the present disclosure. For those skilled in the art, various modifications and variations can be made to the disclosed methods and principles of the present disclosure, and are not limited to the methods described in the above specific embodiments of the present disclosure. Accordingly, the foregoing description is intended to be illustrative only and not to be taken in a limiting sense.
Number | Date | Country | Kind |
---|---|---|---|
2023115241601.0 | Nov 2023 | CN | national |
This application is a continuation application of international application number PCT/CN2023/135751, filed December, 2023, which claims priority to Chinese patent application 2023115241601, filed on Nov. 15, 2023. The contents of these applications are incorporated herein by reference in their entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2023/135751 | Dec 2023 | WO |
Child | 18954451 | US |