WO2018098791A1 - Clock synchronization frequency deviation estimation method applicable to multi-hop wireless sensor network - Google Patents
Clock synchronization frequency deviation estimation method applicable to multi-hop wireless sensor network Download PDFInfo
- Publication number
- WO2018098791A1 WO2018098791A1 PCT/CN2016/108291 CN2016108291W WO2018098791A1 WO 2018098791 A1 WO2018098791 A1 WO 2018098791A1 CN 2016108291 W CN2016108291 W CN 2016108291W WO 2018098791 A1 WO2018098791 A1 WO 2018098791A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- node
- synchronization
- time
- clock
- frequency offset
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
-
- 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
Definitions
- the invention belongs to the technical field of wireless sensor networks, and relates to a clock synchronization frequency offset estimation method suitable for a multi-hop wireless sensor network.
- Time synchronization technology is an indispensable part of wireless sensor networks. It can provide a standard time reference for network-wide devices. It is the basic support for network data fusion, energy management, transmission scheduling and other services. In practical wireless sensor network applications, the network is usually composed of a large number of battery-powered nodes deployed in different environments, so energy consumption is a critical issue to consider. In addition, communication is the main source of energy consumption in wireless sensor networks, and an effective clock synchronization parameter estimation algorithm can reduce the number of resynchronizations in the network, prolong the network synchronization period, thereby reducing the communication overhead of the network and saving the energy of the nodes.
- the invention mainly considers the whole network synchronization of a multi-hop wireless sensor network adopting a layered synchronization structure.
- the synchronization between two points cannot be directly extended to the multi-hop wireless sensor network, because the delay error of the intermediate node is introduced into the whole network, which affects the clock synchronization performance of the entire network.
- an object of the present invention is to provide a clock synchronization frequency offset estimation method suitable for a multi-hop wireless sensor network, in which the node can correct the local clock and synchronize the synchronization of the node during each synchronization message interaction.
- the error is always maintained at a low level.
- the present invention provides the following technical solutions:
- a clock synchronization frequency offset estimation method suitable for multi-hop wireless sensor networks is divided into two methods: a forwarding method and a transparent transmission method.
- a forwarding method is adopted and the node requires synchronization accuracy
- the transparent transmission method is adopted.
- the time message in the multi-hop hierarchical synchronization network is propagated down by the root node step by step.
- the intermediate layer node synchronizes with the node to be synchronized as the node to be synchronized, and uses two timestamps after each interaction. Difference As the adjustment time of the node time, the local clock is corrected. After the interval is fixed, the source node participates in the synchronization of the next-level node until it is spread to the node to be synchronized, repeats the above process, and uses the statistical signal after multiple synchronization cycles.
- the method of processing estimates the relative frequency offset of the node;
- Transparent transmission method in the multi-hop hierarchical synchronization network, the processing time of the intermediate layer node is regarded as the additional introduced fixed delay And random delay
- the message passing process of the intermediate node is regarded as transparent until the node to be synchronized obtains the resynchronization time of the root node and utilizes the difference between the two timestamps.
- the calibration is completed, and the above process is repeated. After a plurality of cycles, the relative frequency offset is estimated.
- the source node A serves as a clock source reference node
- the L-th node A L is a node to be synchronized
- the synchronization step thereof include:
- the time message in the network is propagated step by step by the source node, and the child node receives the data frame sent from its parent node, and obtains the sending timestamp and the local receiving timestamp, which are respectively versus
- Node A L uses the difference between two timestamps Get the adjustment And at a later time Adjust your local time, ie subtract the adjustment from the current local time New time as node A L ;
- each child node in the multi-hop network updates the local clock in the new cycle, so a compensation amount ⁇ i needs to be added, assuming that the node starts from receiving the data frame of the parent node.
- X is a fixed value, so that it is t', then there is
- the synchronization step specifically includes:
- Node A L utilizes the difference between the two timestamps Get the adjustment And at a later time Adjust your local time, ie subtract the adjustment from the current local time New time as node A L ;
- the clock synchronization frequency offset estimation method applicable to a multi-hop wireless sensor network provided by the present invention, after a plurality of synchronization messages are exchanged by a node, the relative frequency offset is estimated at one time, and the synchronization precision is maintained when the crystal oscillator is unchanged. In a certain range, there is no need to perform synchronous message interaction for a period of time, thereby saving energy.
- the present invention provides a clock synchronization frequency offset estimation method suitable for a multi-hop wireless sensor network, in which each node can correct its local state during each clock synchronization period.
- the clock keeps its synchronization accuracy error at a low level, thereby overcoming the problem that the synchronization accuracy is uncontrollable during the operation of the synchronization algorithm.
- the present invention provides two methods for estimating the clock synchronization frequency offset of the forwarding method and the transparent transmission method.
- the former is suitable for multi-hop wireless sensor networks with high synchronization accuracy requirements
- the latter is suitable for multi-hop wireless sensor networks with general accuracy requirements.
- FIG. 1 is a schematic diagram of synchronization of a multi-hop node provided by the present invention
- FIG. 2 is a comparison diagram of a corrected and non-corrected type in a multi-hop network provided by the present invention
- FIG. 3 is a flowchart of a method for estimating a frequency offset of a multi-hop network according to the present invention
- FIG. 4 is a performance comparison diagram of a frequency offset estimation result of a forwarding method according to the present invention.
- FIG. 5 is a performance comparison diagram of the frequency shift estimation result of the transparent transmission method provided by the present invention.
- FIG. 1 is a schematic diagram of synchronization of a multi-hop node provided by the present invention.
- a root node A serves as a clock source reference node
- an L-th node A L is a node to be synchronized. They are the send timestamp and the receive timestamp respectively.
- the time message in the multi-hop hierarchical synchronization network is propagated down by the root node step by step.
- the intermediate layer node synchronizes with the node to be synchronized as the node to be synchronized, and uses two timestamps after each interaction. Difference As the adjustment time of the node time, the local clock is corrected. After the interval is fixed, the source node participates in the synchronization of the next-level node until it is spread to the node to be synchronized, repeats the above process, and uses the statistical signal after multiple synchronization cycles.
- the processing method estimates the relative frequency offset of the node. The specific steps are as follows:
- Node A 1 uses the difference Adjust local time, and Indicates the time after node A 1 is adjusted.
- node A 1 Since the node in the multi-hop network adopts a step-by-step synchronization mechanism, then node A 1 sends a time message to its child node A 2 , similar to the above process, there is
- a 1 represents a transmission time stamp of the node, the node A 2 after the new clock offset adjustment for
- each child node in the multi-hop network updates the local clock in the new cycle, so a compensation amount ⁇ i needs to be added, that is, in the second cycle, Have
- the new clock offset after the second cycle adjustment can be expressed as
- N (N> 1) cycle starts, the clock source node single-hop scenario different, since each child node in a multi-hop network will correct their time in each cycle, it is necessary to add a compensation amount ⁇ i .
- the time X is a fixed value, so that it is t'.
- N is the number of times of time synchronization.
- Transparent transmission method in the multi-hop hierarchical synchronization network, the processing time of the intermediate node level is regarded as the additional introduced fixed delay And random delay
- the message passing process of the intermediate node is regarded as transparent until the node to be synchronized obtains the current time of the root node and utilizes the difference between the two timestamps.
- the calibration is completed, and the above process is repeated. After a plurality of cycles, the relative frequency offset can be estimated.
- node A 2 is the node to be synchronized, and A is the root node.
- the specific synchronization steps are as follows:
- t 0 be the synchronization start time
- the transmission timestamp and the reception timestamp are respectively For the first cycle
- Node A 2 is then Use the difference between the two timestamps to adjust the local time, Indicates the time after node A 2 is adjusted, and Can get
- FIG. 2 is a comparison diagram of correction and non-correction in the multi-hop sensor network provided by the present invention, wherein FIG. 2(a) is a correction synchronization process, and FIG. 2(b) is a non-correction synchronization process.
- FIG. 3 is a flowchart of a method for estimating a frequency offset of a multi-hop sensor network according to the present invention.
- This embodiment provides a clock offset estimation method suitable for a multi-hop wireless sensor network. As shown in the figure, the method includes the following steps:
- C2 ⁇ C4 The node sends a local timestamp to the next-level child node to determine whether the node is the root node. If it is the root node, it enters the next stage C5. Otherwise, it enters C4 to use the adjustment amount to correct the local time.
- C5 ⁇ C6 The child node receives and records the timestamp, and uses the difference between the transmission timestamp and the reception timestamp to find the compensation amount ⁇ T.
- C7 ⁇ C8 Determine whether the node is the node to be synchronized. If yes, proceed to the next stage C9. Otherwise, proceed to process C3 to prepare the local timestamp for the next level node.
- C9 ⁇ C11 It is determined whether the number of synchronization cycles reaches the set value N. If it has been reached, the relative frequency offset of the node is estimated. Otherwise, the process proceeds to the process C3 to continue the message transmission process.
- Figure 4 shows a comparison of the performance of the forwarding method frequency offset estimation with its CRLB.
- the figure shows the mean square error curve and the curve is very close CRLB proved node 2
- a frequency offset estimate is valid, and the estimated near optimum estimate.
- FIG. 5 is a comparison diagram of the results of the transparent transmission frequency offset estimation and the corresponding CRLB performance provided by the present invention. It can be seen from the figure that the two curves are very close, and the mean square error curve is always above the CRLB curve, indicating that the estimation result is approximated as the least variance unbiased estimate.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
The present invention relates to a clock synchronization frequency deviation estimation method applicable to a multi-hop wireless sensor network, and belongs to the technical field of wireless sensor networks. In the method, two methods comprising a forwarding method and a transparent transmission method, are provided based on demands of a node for synchronization precision: A, in the forwarding method, a node in an intermediate layer initiates synchronous interaction with a node in the next layer at the same time interval after every correction time; and B, in the transparent transmission method, the processing time of the node in the intermediate layer is regarded as an additionally introduced fixed time delay and random time delay, and the node directly establishes a synchronization relationship with a root node. According to the estimation method provided in the present invention, the node can correct the local clock in each synchronous information interaction process, the synchronization precision error of the node is always kept at a relatively low level, and the problem of synchronization precision uncontrollability in a synchronization parameter estimation process is accordingly overcome.
Description
本发明属于无线传感器网络技术领域,涉及一种适用于多跳无线传感器网络的时钟同步频率偏移估计方法。The invention belongs to the technical field of wireless sensor networks, and relates to a clock synchronization frequency offset estimation method suitable for a multi-hop wireless sensor network.
时间同步技术是无线传感器网络中不可或缺的部分,可为全网设备提供一个标准的时间参考,是网络进行数据融合、能源管理、传输调度等服务的基础支撑。在实际的无线传感器网络应用中,网络通常是由大量的电池供电的节点部署在不同环境中组成,因此能耗是需要考虑的至关重要的问题。此外,在无线传感器网络中通信是能量消耗的主要来源,而有效的时钟同步参数估计算法,可以减少网络内的再同步次数,延长网络同步周期,进而降低网络的通信开销和节省节点的能量。Time synchronization technology is an indispensable part of wireless sensor networks. It can provide a standard time reference for network-wide devices. It is the basic support for network data fusion, energy management, transmission scheduling and other services. In practical wireless sensor network applications, the network is usually composed of a large number of battery-powered nodes deployed in different environments, so energy consumption is a critical issue to consider. In addition, communication is the main source of energy consumption in wireless sensor networks, and an effective clock synchronization parameter estimation algorithm can reduce the number of resynchronizations in the network, prolong the network synchronization period, thereby reducing the communication overhead of the network and saving the energy of the nodes.
在现有技术中,已提出一些时钟同步参数估计算法,通过对时钟同步的过程进行分析和建模,利用统计信号处理技术估计时钟偏移和频率偏移。然而,这些算法中节点的同步参数估计是在多个同步交互周期之后进行的,且节点在算法运行的过程中不能调整自己的本地时钟,因此在算法运行这段时间之内时钟同步精度无法保证,这在一些对同步精度要求很高的应用场景中是不可接受的,例如ISA100.11a等网络。另外,将两点间的同步扩展到多跳无线传感器网络中时,主要可分为分层式和代理式两种方案。In the prior art, some clock synchronization parameter estimation algorithms have been proposed. By analyzing and modeling the process of clock synchronization, statistical signal processing techniques are used to estimate clock offset and frequency offset. However, the synchronization parameter estimation of the nodes in these algorithms is performed after multiple synchronization interaction periods, and the node cannot adjust its own local clock during the operation of the algorithm, so the clock synchronization accuracy cannot be guaranteed within the running time of the algorithm. This is unacceptable in some applications that require high synchronization accuracy, such as ISA100.11a. In addition, when the synchronization between two points is extended to the multi-hop wireless sensor network, it can be mainly divided into two types: hierarchical and proxy.
本发明主要考虑了采用分层式同步结构的多跳无线传感器网络的全网同步。此外,不能直接将两点间的同步扩展到多跳无线传感器网络中,因为这样会将中间节点的时延误差等引入到全网,进而影响全网的时钟同步性能。The invention mainly considers the whole network synchronization of a multi-hop wireless sensor network adopting a layered synchronization structure. In addition, the synchronization between two points cannot be directly extended to the multi-hop wireless sensor network, because the delay error of the intermediate node is introduced into the whole network, which affects the clock synchronization performance of the entire network.
发明内容Summary of the invention
有鉴于此,本发明的目的在于提供一种适用于多跳无线传感器网络的时钟同步频率偏移估计方法,该方法在每次同步消息交互过程中,节点能够校正本地时钟,使节点的同步精度误差始终维持在较低水平。In view of this, an object of the present invention is to provide a clock synchronization frequency offset estimation method suitable for a multi-hop wireless sensor network, in which the node can correct the local clock and synchronize the synchronization of the node during each synchronization message interaction. The error is always maintained at a low level.
为达到上述目的,本发明提供如下技术方案:In order to achieve the above object, the present invention provides the following technical solutions:
一种适用于多跳无线传感器网络的时钟同步频率偏移估计方法,在该方法中,根据节点对同步精度的需求分为转发法和透传法两种,在节点对同步精度要求较高时,采用转发法,而节点对同步精度要求一般时,则采用透传法。
A clock synchronization frequency offset estimation method suitable for multi-hop wireless sensor networks. In this method, according to the requirements of the node for synchronization accuracy, it is divided into two methods: a forwarding method and a transparent transmission method. When the forwarding method is adopted and the node requires synchronization accuracy, the transparent transmission method is adopted.
转发法:多跳分层同步网络中的时间消息由根节点依次逐级向下传播,中间层节点既作为待同步节点与上一级节点进行同步,每次交互后都利用两个时间戳的差值作为节点时间的调整量校正自己的本地时钟,间隔固定的时间后,又作为源节点参与下一级节点的同步,直到扩散至待同步节点,重复以上过程,经过多个同步周期后利用统计信号处理的方法估计出节点的相对频率偏移;Forwarding method: The time message in the multi-hop hierarchical synchronization network is propagated down by the root node step by step. The intermediate layer node synchronizes with the node to be synchronized as the node to be synchronized, and uses two timestamps after each interaction. Difference As the adjustment time of the node time, the local clock is corrected. After the interval is fixed, the source node participates in the synchronization of the next-level node until it is spread to the node to be synchronized, repeats the above process, and uses the statistical signal after multiple synchronization cycles. The method of processing estimates the relative frequency offset of the node;
透传法:在多跳分层同步网络中,把中间层次节点的处理时间视为额外引入的固定时延和随机时延即将中间节点的消息传递过程看成透明的,直至待同步节点获得根节点的再同步时间并利用两个时间戳的差值完成校正,重复以上过程,经过多个周期后,估计出相对频率偏移。Transparent transmission method: in the multi-hop hierarchical synchronization network, the processing time of the intermediate layer node is regarded as the additional introduced fixed delay And random delay The message passing process of the intermediate node is regarded as transparent until the node to be synchronized obtains the resynchronization time of the root node and utilizes the difference between the two timestamps. The calibration is completed, and the above process is repeated. After a plurality of cycles, the relative frequency offset is estimated.
进一步,本发明采用的转发法,当网络中第L级节点AL需要与源节点实现时间同步时,源节点A作为时钟源参考节点,第L级节点AL是待同步节点,其同步步骤包括:Further, in the forwarding method adopted by the present invention, when the L-th node A L in the network needs to implement time synchronization with the source node, the source node A serves as a clock source reference node, and the L-th node A L is a node to be synchronized, and the synchronization step thereof include:
1)网络中的时间消息由源节点依次逐级传播,子节点接收来自其父节点发送的数据帧,获得发送时间戳和本地的接收时间戳,其分别为与
1) The time message in the network is propagated step by step by the source node, and the child node receives the data frame sent from its parent node, and obtains the sending timestamp and the local receiving timestamp, which are respectively versus
2)节点AL利用两个时间戳的差值据得到调整量并在随后的一个时间调整自己的本地时间,即用当前本地时间减去调整量作为节点AL新的时间;2) Node A L uses the difference between two timestamps Get the adjustment And at a later time Adjust your local time, ie subtract the adjustment from the current local time New time as node A L ;
3)从第N(N>1)个周期开始,多跳网络中的各个子节点在新的周期会更新本地时钟,因此需要加入一个补偿量μi,假定节点从接收父节点的数据帧开始到向下一级子节点发送数据帧这段时间X为固定值,令其为t',则有3) Starting from the Nth (N>1) cycle, each child node in the multi-hop network updates the local clock in the new cycle, so a compensation amount μ i needs to be added, assuming that the node starts from receiving the data frame of the parent node. When the data frame is sent to the next-level child node, X is a fixed value, so that it is t', then there is
4)重复步骤1)、2),利用数组存入时间戳,N个周期后,可以估计出相对频率偏移,公式如下:
4) Repeat steps 1) and 2), use the array to store the timestamp, and after N cycles, estimate the relative frequency offset. The formula is as follows:
估计出节点A2相对于节点A1的频率偏移其中N为时间同步的次数。Estimated node A 2 A 1 with respect to the frequency shift of the node Where N is the number of times of time synchronization.
进一步,本发明采用的透传法,其同步步骤具体包括:Further, the transparent transmission method adopted by the present invention, the synchronization step specifically includes:
1)在多跳分层同步网络中将中间节点层次的处理时间视为额外引入的固定时延和随机时延
1) Treat the processing time of the intermediate node level as an additional introduced fixed delay in a multi-hop hierarchical synchronization network And random delay
2)节点AL利用两个时间戳的差值得到调整量并在随后的一个时间调整自己的本地时间,即用当前本地时间减去调整量作为节点AL新的时间;2) Node A L utilizes the difference between the two timestamps Get the adjustment And at a later time Adjust your local time, ie subtract the adjustment from the current local time New time as node A L ;
3)重复步骤1)、2),利用数组存入时间戳,经过N个同步交互周期后,可估计出时钟频率偏移,公式如下3) Repeat steps 1) and 2), use the array to store the timestamp, and after N synchronization interaction cycles, estimate the clock frequency offset. The formula is as follows:
本发明的有益效果在于:The beneficial effects of the invention are:
1、本发明提供的适用于多跳无线传感器网络的时钟同步频率偏移估计方法,节点通过多次同步消息交互后,一次性估计出相对频率偏移,在晶振不变时,使同步精度维持在一定范围内,在一段时间内无需再进行同步报文交互,从而节省能量。1. The clock synchronization frequency offset estimation method applicable to a multi-hop wireless sensor network provided by the present invention, after a plurality of synchronization messages are exchanged by a node, the relative frequency offset is estimated at one time, and the synchronization precision is maintained when the crystal oscillator is unchanged. In a certain range, there is no need to perform synchronous message interaction for a period of time, thereby saving energy.
2、与现有的多跳无线传感器网络时间同步方案相比,本发明提供的适用于多跳无线传感器网络的时钟同步频率偏移估计方法,在每个时钟同步周期,节点能够校正自己的本地时钟,使其同步精度误差维持在较低水平,从而克服同步算法运行过程中同步精度不可控的问题。2. Compared with the existing multi-hop wireless sensor network time synchronization scheme, the present invention provides a clock synchronization frequency offset estimation method suitable for a multi-hop wireless sensor network, in which each node can correct its local state during each clock synchronization period. The clock keeps its synchronization accuracy error at a low level, thereby overcoming the problem that the synchronization accuracy is uncontrollable during the operation of the synchronization algorithm.
3、根据多跳无线传感器网络对时钟同步精度的需求,本发明提供转发法和透传法两种时钟同步频率偏移估计方法可供选择。前者适用于对同步精度要求较高的多跳无线传感器网络,后者适用于对精度要求一般的多跳无线传感器网络。
3. According to the requirement of clock synchronization precision of the multi-hop wireless sensor network, the present invention provides two methods for estimating the clock synchronization frequency offset of the forwarding method and the transparent transmission method. The former is suitable for multi-hop wireless sensor networks with high synchronization accuracy requirements, and the latter is suitable for multi-hop wireless sensor networks with general accuracy requirements.
为了使本发明的目的、技术方案和有益效果更加清楚,本发明提供如下附图进行说明:In order to make the objects, technical solutions and advantageous effects of the present invention more clear, the present invention provides the following drawings for explanation:
图1为本发明提供的多跳节点的同步示意图;1 is a schematic diagram of synchronization of a multi-hop node provided by the present invention;
图2为本发明提供的多跳网络中校正与非校正式的对比图;2 is a comparison diagram of a corrected and non-corrected type in a multi-hop network provided by the present invention;
图3为本发明提供的多跳网络频率偏移估计方法流程图;3 is a flowchart of a method for estimating a frequency offset of a multi-hop network according to the present invention;
图4为本发明提供的转发法频率偏移估计结果性能对比图;4 is a performance comparison diagram of a frequency offset estimation result of a forwarding method according to the present invention;
图5为本发明提供的透传法频率偏移估计结果性能对比图。FIG. 5 is a performance comparison diagram of the frequency shift estimation result of the transparent transmission method provided by the present invention.
下面将结合附图,对本发明的优选实施例进行详细的描述。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
图1为本发明提供的多跳节点的同步示意图,如图所示,在多跳分层式同步网络中,根节点A作为时钟源参考节点,第L级节点AL是待同步节点。分别为发送时间戳和接收时间戳。FIG. 1 is a schematic diagram of synchronization of a multi-hop node provided by the present invention. As shown in the figure, in a multi-hop hierarchical synchronous network, a root node A serves as a clock source reference node, and an L-th node A L is a node to be synchronized. They are the send timestamp and the receive timestamp respectively.
转发法:多跳分层同步网络中的时间消息由根节点依次逐级向下传播,中间层节点既作为待同步节点与上一级节点进行同步,每次交互后都利用两个时间戳的差值作为节点时间的调整量校正自己的本地时钟,间隔固定的时间后,又作为源节点参与下一级节点的同步,直到扩散至待同步节点,重复以上过程,经过多个同步周期后利用统计信号处理的方法估计出节点的相对频率偏移,具体步骤如下:Forwarding method: The time message in the multi-hop hierarchical synchronization network is propagated down by the root node step by step. The intermediate layer node synchronizes with the node to be synchronized as the node to be synchronized, and uses two timestamps after each interaction. Difference As the adjustment time of the node time, the local clock is corrected. After the interval is fixed, the source node participates in the synchronization of the next-level node until it is spread to the node to be synchronized, repeats the above process, and uses the statistical signal after multiple synchronization cycles. The processing method estimates the relative frequency offset of the node. The specific steps are as follows:
其中,和分别表示t0时刻的初始时钟偏移和相对频率偏移,传输过程中的固定延时和随机延时分别为随后的一个时刻节点A1用差值调整本地时间,且表示节点A1调整后的时间,可以得到among them, with The initial clock offset and the relative frequency offset at time t 0 are respectively indicated, and the fixed delay and the random delay in the transmission process are respectively The next moment Node A 1 uses the difference Adjust local time, and Indicates the time after node A 1 is adjusted.
由于该多跳网络中节点采用逐级同步机制,随后节点A1向其子节点A2发送时间消息,类似上述过程,有Since the node in the multi-hop network adopts a step-by-step synchronization mechanism, then node A 1 sends a time message to its child node A 2 , similar to the above process, there is
其中表示节点A1的发送时间戳,节点A2调整后的新的时钟偏移量为among them A 1 represents a transmission time stamp of the node, the node A 2 after the new clock offset adjustment for
从第二个周期始,多跳网络中的各个子节点在新的周期会更新本地时钟,因此需要加入一个补偿量μi,即在第二个周期,有Starting from the second cycle, each child node in the multi-hop network updates the local clock in the new cycle, so a compensation amount μ i needs to be added, that is, in the second cycle, Have
对于两跳节点,第二个周期调整后的新的时钟偏移量可表示为For a two-hop node, the new clock offset after the second cycle adjustment can be expressed as
从第N(N>1)个周期始,与单跳场景中的时钟源节点不同,由于多跳网络中的各个子节点会在每一个周期校正自己的时间,因此需要加入一个补偿量μi。设节点从接收父节点的数据帧开始到向下一级子节点发送数据帧这段时间X为固定值,令其为t',From N (N> 1) cycle starts, the clock source node single-hop scenario different, since each child node in a multi-hop network will correct their time in each cycle, it is necessary to add a compensation amount μ i . Let the node start from the data frame receiving the parent node to the next-level child node to send a data frame. The time X is a fixed value, so that it is t'.
重复步骤A0、A1,利用数组存入时间戳,N个周期后,可以估计出相对频率偏移,公式如下:Repeat steps A0 and A1, and use the array to store the timestamp. After N cycles, the relative frequency offset can be estimated. The formula is as follows:
由上式可估计出节点A2相对于节点A1的频率偏移其中N为时间同步的次数。
To derive the estimated node A 2 A 1 with respect to frequency offset node Where N is the number of times of time synchronization.
为了验证结果的有效性,求出的克拉美罗下限(Cramer-Rao Lower Bound,CRLB)In order to verify the validity of the results, the Cramer-Rao Lower Bound (CRLB) is found.
透传法:在多跳分层同步网络中,把中间节点层次的处理时间视为额外引入的固定时延和随机时延即将中间节点的消息传递过程看成透明的,直至待同步节点获得根节点的当前时间,并利用两个时间戳的差值完成校正,重复上述过程,经过多个周期后,可估计出相对频率偏移。Transparent transmission method: in the multi-hop hierarchical synchronization network, the processing time of the intermediate node level is regarded as the additional introduced fixed delay And random delay The message passing process of the intermediate node is regarded as transparent until the node to be synchronized obtains the current time of the root node and utilizes the difference between the two timestamps. The calibration is completed, and the above process is repeated. After a plurality of cycles, the relative frequency offset can be estimated.
对于两跳节点,节点A2为待同步节点,A为根节点,具体同步步骤如下:For a two-hop node, node A 2 is the node to be synchronized, and A is the root node. The specific synchronization steps are as follows:
设t0为同步开始时刻,发送时间戳和接收时间戳分别为对于第一个周期,可表示为:Let t 0 be the synchronization start time, and the transmission timestamp and the reception timestamp are respectively For the first cycle, Can be expressed as:
节点A2随后在利用两个时间戳的差值来调整本地时间,表示节点A2调整后的时间,且可以得到Node A 2 is then Use the difference between the two timestamps to adjust the local time, Indicates the time after node A 2 is adjusted, and Can get
两式相减得到节点A2调整后的新的时钟偏移量Two-type subtraction results in a new clock offset adjusted by node A 2
对于第二个周期,节点A2的时间调整量For the second cycle, the time adjustment of node A 2
重复上述步骤,第i个周期的时间调整量为Repeat the above steps, the time adjustment of the ith cycle is
其中类似的,对于第L层节点,参考上述推导,可得第i个周期的同步表达式为among them Similarly, for the L-th layer node, referring to the above derivation, the synchronization expression of the i-th cycle is obtained as
根据频率偏移估计公式Estimation formula based on frequency offset
估计出节点A相对于节点AL的频率偏移其中,
为了验证结果的有效性,求出克拉美罗下限(Cramer-Rao Lower Bound,CRLB)Estimate the frequency offset of node A relative to node A L among them, In order to verify the validity of the results, the Cramer-Rao Lower Bound (CRLB) is obtained.
图2为本发明提供的多跳传感器网络中校正与非校正式的对比图,其中,图2(a)为校正式同步过程,图2(b)为非校正式同步过程。2 is a comparison diagram of correction and non-correction in the multi-hop sensor network provided by the present invention, wherein FIG. 2(a) is a correction synchronization process, and FIG. 2(b) is a non-correction synchronization process.
实施例:Example:
图3为本发明提供的多跳传感器网络频率偏移估计方法流程图。本实施例提供了适用于多跳无线传感器网络的时钟偏移估计方法,如图所示,具体包括以下步骤:FIG. 3 is a flowchart of a method for estimating a frequency offset of a multi-hop sensor network according to the present invention. This embodiment provides a clock offset estimation method suitable for a multi-hop wireless sensor network. As shown in the figure, the method includes the following steps:
C1:同步过程开始。C1: The synchronization process begins.
C2~C4:节点向下一级子节点发送本地时间戳,判断节点是否为根节点,若为根节点则进入下一阶段C5,反之则进入C4利用调整量校正本地时间。C2~C4: The node sends a local timestamp to the next-level child node to determine whether the node is the root node. If it is the root node, it enters the next stage C5. Otherwise, it enters C4 to use the adjustment amount to correct the local time.
C5~C6:子节点接收并记录时间戳,利用发送时间戳和接收时间戳的差值求出补偿量ΔT。C5~C6: The child node receives and records the timestamp, and uses the difference between the transmission timestamp and the reception timestamp to find the compensation amount ΔT.
C7~C8:判断节点是否为待同步的节点,若是则进入下一阶段C9,反之则进入流程C3准备向下一级节点发送本地时间戳。C7~C8: Determine whether the node is the node to be synchronized. If yes, proceed to the next stage C9. Otherwise, proceed to process C3 to prepare the local timestamp for the next level node.
C9~C11:判断同步周期数是否达到设定值N,若已达到则估计出节点的相对频率偏移,反之则进入流程C3继续重复消息传递过程。
C9~C11: It is determined whether the number of synchronization cycles reaches the set value N. If it has been reached, the relative frequency offset of the node is estimated. Otherwise, the process proceeds to the process C3 to continue the message transmission process.
C12~C13:利用估计出的相对频率偏移补偿本地时钟,同步过程结束。C12~C13: The local clock is compensated by the estimated relative frequency offset, and the synchronization process ends.
图4给出了转发法频率偏移估计结果与其CRLB的性能对比图。由图可知,均方误差曲线和CRLB曲线非常接近,证明节点A2的频率偏移估计是有效的,且估计性能接近最优估计。Figure 4 shows a comparison of the performance of the forwarding method frequency offset estimation with its CRLB. The figure shows the mean square error curve and the curve is very close CRLB proved node 2 A frequency offset estimate is valid, and the estimated near optimum estimate.
图5为本发明提供的透传法频率偏移估计结果与对应的CRLB性能对比图。由图可知,两条曲线十分接近,且均方误差曲线始终位于CRLB曲线上方,说明估计结果近似为最小方差无偏估计。FIG. 5 is a comparison diagram of the results of the transparent transmission frequency offset estimation and the corresponding CRLB performance provided by the present invention. It can be seen from the figure that the two curves are very close, and the mean square error curve is always above the CRLB curve, indicating that the estimation result is approximated as the least variance unbiased estimate.
最后说明的是,以上优选实施例仅用以说明本发明的技术方案而非限制,尽管通过上述优选实施例已经对本发明进行了详细的描述,但本领域技术人员应当理解,可以在形式上和细节上对其作出各种各样的改变,而不偏离本发明权利要求书所限定的范围。
It is to be understood that the above-described preferred embodiments are only illustrative of the technical solutions of the present invention, and are not intended to be limiting, although the present invention has been described in detail by the foregoing preferred embodiments, those skilled in the art Various changes are made in the details without departing from the scope of the invention as defined by the appended claims.
Claims (3)
- 一种适用于多跳无线传感器网络的时钟同步频率偏移估计方法,其特征在于:在该方法中,根据节点对同步精度的需求分为转发法和透传法两种,在节点对同步精度要求较高时,采用转发法,而节点对同步精度要求一般时,则采用透传法;具体如下:A clock synchronization frequency offset estimation method suitable for a multi-hop wireless sensor network, characterized in that: in the method, according to the requirement of the synchronization precision of the node, the forwarding method and the transparent transmission method are divided into two types, and the node pair synchronization precision When the requirement is high, the forwarding method is adopted, and when the node requires the synchronization accuracy in general, the transparent transmission method is adopted; the details are as follows:转发法:多跳分层同步网络中的时间消息由根节点依次逐级向下传播,中间层节点既作为待同步节点与上一级节点进行同步,每次交互后都利用两个时间戳的差值作为节点时间的调整量校正自己的本地时钟,其中分别为相邻节点AL-1的发送时间戳和AL的接收时间戳,间隔固定的时间后,又作为源节点参与下一级节点的同步,直到扩散至待同步节点,重复以上过程,经过多个同步周期后利用统计信号处理的方法估计出节点的相对频率偏移;Forwarding method: The time message in the multi-hop hierarchical synchronization network is propagated down by the root node step by step. The intermediate layer node synchronizes with the node to be synchronized as the node to be synchronized, and uses two timestamps after each interaction. Difference Correcting your own local clock as an adjustment to the node time, where Respectively, and transmit timestamp node A L A L-1 of the adjacent receiving time stamp, a fixed time interval, but also as a source node involvement synchronous at a node until the node to be synchronized to the diffusion, the above process is repeated, Estimating the relative frequency offset of the node by using a statistical signal processing method after multiple synchronization periods;透传法:在多跳分层同步网络中,把中间层次节点的处理时间视为额外引入的固定时延和随机时延即将中间节点的消息传递过程看成透明的,直至待同步节点获得根节点的再同步时间并利用两个时间戳的差值完成校正,重复以上过程,经过多个周期后,估计出相对频率偏移。Transparent transmission method: in the multi-hop hierarchical synchronization network, the processing time of the intermediate layer node is regarded as the additional introduced fixed delay And random delay The message passing process of the intermediate node is regarded as transparent until the node to be synchronized obtains the resynchronization time of the root node and utilizes the difference between the two timestamps. The calibration is completed, and the above process is repeated. After a plurality of cycles, the relative frequency offset is estimated.
- 根据权利要求1所述的适用于多跳无线传感器网络的时钟同步频率偏移估计方法,其特征在于:采用转发法,当网络中第L级节点AL需要与源节点实现时间同步时,源节点A作为时钟源参考节点,第L级节点AL是待同步节点,其同步步骤包括:The method for estimating a clock synchronization frequency offset suitable for a multi-hop wireless sensor network according to claim 1, wherein the forwarding method is used, when the L-th node A L in the network needs to implement time synchronization with the source node, the source Node A serves as the clock source reference node, and the Lth node A L is the node to be synchronized. The synchronization steps include:1)网络中的时间消息由源节点依次逐级传播,子节点接收来自其父节点发送的数据帧,获得发送时间戳和本地的接收时间戳,其分别为与 1) The time message in the network is propagated step by step by the source node, and the child node receives the data frame sent from its parent node, and obtains the sending timestamp and the local receiving timestamp, which are respectively versus2)节点AL根据公式得到调整量并在随后的一个时间调整自己的本地时间,即用当前本地时间减去调整量作为节点AL新的时间;2) Node A L according to the formula Get the adjustment And at a later time Adjust your local time, ie subtract the adjustment from the current local time New time as node A L ;3)从第N(N>1)个周期开始,多跳网络中的各个子节点在新的周期会更新本地时钟,因此需要加入一个补偿量μi,假定节点从接收父节点的数据帧开始到向下一级子节点发送数据帧这段时间X为固定值,令其为t',则有3) Starting from the Nth (N>1) cycle, each child node in the multi-hop network updates the local clock in the new cycle, so a compensation amount μ i needs to be added, assuming that the node starts from receiving the data frame of the parent node. When the data frame is sent to the next-level child node, X is a fixed value, so that it is t', then there is4)重复步骤1)、2),利用数组存入时间戳,N个周期后,估计出相对频率偏移,公式如下:4) Repeat steps 1) and 2), use the array to store the timestamp, and after N cycles, estimate the relative frequency offset. The formula is as follows:
- 根据权利要求1所述的适用于多跳无线传感器网络的时钟同步频率偏移估计方法,其特征在于:采用透传法,第L级节点待同步,其同步步骤具体包括:The method for estimating a clock synchronization frequency offset for a multi-hop wireless sensor network according to claim 1, wherein the step of synchronizing, the level L node is to be synchronized, and the step of synchronizing comprises:1)在多跳分层同步网络中将中间节点层次的处理时间视为额外引入的固定时延和随机时延 1) Treat the processing time of the intermediate node level as an additional introduced fixed delay in a multi-hop hierarchical synchronization network And random delay2)节点AL利用两个时间戳的差值据得到调整量并在随后的时间调整自己的本地时间,即用当前本地时间减去调整量作为节点AL新的时间;2) Node A L uses the difference between two timestamps Get the adjustment And at a later time Adjust your local time, ie subtract the adjustment from the current local time New time as node A L ;3)重复步骤1)、2),利用数组存入时间戳,经过N个同步交互周期后,估计出时钟频率偏移,公式如下3) Repeat steps 1) and 2), use the array to store the timestamp, and after N synchronous interaction cycles, estimate the clock frequency offset. The formula is as follows:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2016/108291 WO2018098791A1 (en) | 2016-12-01 | 2016-12-01 | Clock synchronization frequency deviation estimation method applicable to multi-hop wireless sensor network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2016/108291 WO2018098791A1 (en) | 2016-12-01 | 2016-12-01 | Clock synchronization frequency deviation estimation method applicable to multi-hop wireless sensor network |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018098791A1 true WO2018098791A1 (en) | 2018-06-07 |
Family
ID=62241021
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/108291 WO2018098791A1 (en) | 2016-12-01 | 2016-12-01 | Clock synchronization frequency deviation estimation method applicable to multi-hop wireless sensor network |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2018098791A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111867042A (en) * | 2020-04-15 | 2020-10-30 | 北京云联慧通科技有限公司 | MESH network synchronization method with time difference detection function |
CN113099526A (en) * | 2020-03-30 | 2021-07-09 | 深圳友讯达科技股份有限公司 | Time synchronization method for weight flexible descending adjustment |
CN114710828A (en) * | 2022-04-27 | 2022-07-05 | 重庆邮电大学 | Wireless sensor network time synchronization method based on partial timestamp information |
CN116828586A (en) * | 2023-08-30 | 2023-09-29 | 芯迈微半导体(上海)有限公司 | Synchronization method and device for terminal in standby state |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103458498A (en) * | 2013-09-16 | 2013-12-18 | 山东省计算中心 | Intelligent wireless sensor network time synchronization method |
CN103916952A (en) * | 2014-04-14 | 2014-07-09 | 安徽理工大学 | Coal mine underground internet of things time synchronization and energy control method |
US20150139199A1 (en) * | 2012-06-08 | 2015-05-21 | Rohde & Schwarz Gmbh & Co. Kg | Method and a system for hierarchical time synchronisation in an ad-hoc network |
CN106452650A (en) * | 2016-12-01 | 2017-02-22 | 重庆邮电大学 | Clock synchronizing frequency deviation estimation method applicable to multi-hop wireless sensor network |
-
2016
- 2016-12-01 WO PCT/CN2016/108291 patent/WO2018098791A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150139199A1 (en) * | 2012-06-08 | 2015-05-21 | Rohde & Schwarz Gmbh & Co. Kg | Method and a system for hierarchical time synchronisation in an ad-hoc network |
CN103458498A (en) * | 2013-09-16 | 2013-12-18 | 山东省计算中心 | Intelligent wireless sensor network time synchronization method |
CN103916952A (en) * | 2014-04-14 | 2014-07-09 | 安徽理工大学 | Coal mine underground internet of things time synchronization and energy control method |
CN106452650A (en) * | 2016-12-01 | 2017-02-22 | 重庆邮电大学 | Clock synchronizing frequency deviation estimation method applicable to multi-hop wireless sensor network |
Non-Patent Citations (1)
Title |
---|
ZHAO, XIAOWEN ET AL.: "3 FT5P Algorithm Section", TIME SYNCHRONIZATION IN ZIGBEE NETWORKS, 30 September 2007 (2007-09-30), pages 23 and 24 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113099526A (en) * | 2020-03-30 | 2021-07-09 | 深圳友讯达科技股份有限公司 | Time synchronization method for weight flexible descending adjustment |
CN111867042A (en) * | 2020-04-15 | 2020-10-30 | 北京云联慧通科技有限公司 | MESH network synchronization method with time difference detection function |
CN114710828A (en) * | 2022-04-27 | 2022-07-05 | 重庆邮电大学 | Wireless sensor network time synchronization method based on partial timestamp information |
CN114710828B (en) * | 2022-04-27 | 2023-05-23 | 重庆邮电大学 | Wireless sensor network time synchronization method based on partial time stamp information |
CN116828586A (en) * | 2023-08-30 | 2023-09-29 | 芯迈微半导体(上海)有限公司 | Synchronization method and device for terminal in standby state |
CN116828586B (en) * | 2023-08-30 | 2023-11-14 | 芯迈微半导体(上海)有限公司 | Synchronization method and device for terminal in standby state |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106452650B (en) | Clock synchronizing frequency deviation estimating method suitable for multi-hop wireless sensor network | |
US9226252B2 (en) | Recursive time synchronization protocol method for wireless sensor networks | |
WO2020147727A1 (en) | Timing response-based clock frequency offset estimation method for industrial wireless sensor network | |
Serpedin et al. | Synchronization in wireless sensor networks: parameter estimation, performance benchmarks, and protocols | |
Choi et al. | DCS: Distributed asynchronous clock synchronization in delay tolerant networks | |
Elson et al. | Fine-grained network time synchronization using reference broadcasts | |
EP1520365B1 (en) | A system and method for correcting the clock drift and maintaining the synchronization in wireless networks | |
WO2018098791A1 (en) | Clock synchronization frequency deviation estimation method applicable to multi-hop wireless sensor network | |
Gong et al. | CESP: A low-power high-accuracy time synchronization protocol | |
KR20080015479A (en) | Method and system for implementing the time division multiple access method to ad-hoc multihopping wireless networks | |
WO2023077760A1 (en) | Industrial wireless network-and-tsn fusion-oriented cross-network time synchronization method | |
CN113055117A (en) | Clock synchronization device and method of wireless distributed network | |
Wang et al. | Estimation of frequency offset for time synchronization with immediate clock adjustment in multihop wireless sensor networks | |
Pinho et al. | A robust gradient clock synchronization algorithm for wireless sensor networks | |
Krummacker et al. | Intra-network clock synchronization for wireless networks: From state of the art systems to an improved solution | |
JP2015188159A (en) | Slave node, time synchronization method, and computer program | |
Sun et al. | Distributed clock synchronization with application of D2D communication without infrastructure | |
CN108924922B (en) | Chain synchronization time synchronization method of WSN (Wireless sensor network) cluster topology | |
CN114584246A (en) | Wireless ad hoc network time synchronization method, system and medium based on FPGA | |
CN107343314B (en) | Time synchronization method and device of wireless sensor network | |
Fontanelli et al. | Master-less time synchronization for wireless sensor networks with generic topology | |
Brown III et al. | Non-hierarchical clock synchronization for wireless sensor networks | |
Li et al. | Cooperative Time Synchronization and Parameter Estimation via Broadcasting for Cell-Free Massive MIMO Networks | |
KR102174089B1 (en) | Apparatus and method for improving average consensus based time synchronization protocol with virtual links | |
Gong | Clock synchronization in wireless sensor networks: Performance analysis and protocol design |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16922836 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16922836 Country of ref document: EP Kind code of ref document: A1 |