TIME SYNCHRONIZATION ERROR COMPENSATION METHOD FOR MULTI-HOP WIRELESS BACKHAUL NETWORK BASED ON PTP
20170366287 · 2017-12-21
Assignee
Inventors
- Peng Zeng (Liaoning, CN)
- Zhaowei WANG (Liaoning, CN)
- Zhibo Li (Liaoning, CN)
- Dong Li (Liaoning, CN)
- Jintao WANG (Liaoning, CN)
Cpc classification
H04J3/0673
ELECTRICITY
H04L67/2885
ELECTRICITY
H04J3/0667
ELECTRICITY
H04L67/147
ELECTRICITY
International classification
Abstract
The present invention relates to a wireless network communication technology, and in particular to a time synchronization error compensation method for multi-hop wireless backhaul network based on PTP. Based on PTP, the present invention uses an intermediate node to count the timestamps of transceiving the PTP synchronization message Sync and the delay request message Delay_Req, detect and compensate the local forwarding time of synchronization message Sync and the delay request message Delay_Req and the link delay of transmitting the two between nodes based on the linear regression technology, thereby finally implementing asymmetric delay correction of wireless links between the master and slave nodes and completing time synchronization error compensation. The present invention uses the header of the PTP message to transmit the additional time information about the compensation time, the sending time and arrived time of the message and time correction value without modifying the existing PTP, thereby reducing the message overhead, meeting requirements of real-time and high precision of synchronization error compensation, improving the existing time synchronization precision and having strong practicality.
Claims
1. A time synchronization error compensation method for multi-hop wireless backhaul network based on PTP, which comprises the following steps: constructing nodes at an industrial site into a hierarchical multi-hop network structure; taking a root node as a master node and a leaf node as a slave node, the master node and the slave node utilizing the two-step synchronization manner of PTP to perform time synchronization; when an intermediate node i for forwarding data between the master node and the slave node forwards messages, it records the relevant time information about a PTP message, and computes the additional time information based the linear regression technology; when the intermediate node i sends a follow-up message Follow_Up, a delay request response message Delay_Resp and a synchronization message Sync, it carries the additional time information using a modified header; the slave node completes synchronization error compensation according to the PTP when it receives the PTP message.
2. The time synchronization error compensation method for multi-hop wireless backhaul network based on PTP of claim 1, characterized in that the two-step synchronization manner refers to transmitting time information about the synchronization message Sync using the follow-up message Follow_Up and transmitting time information about a delay request message Delay_Req using the delay request response message Delay_Resp.
3. The time synchronization error compensation method for multi-hop wireless backhaul network based on PTP of claim 1, characterized in that the time information about the PTP messages includes: an arrived time Ts_arrived.sub.i and an arrived time Td_arrived.sub.i when the synchronization message Sync and the delay request message Delay_Req arrive at the intermediate node i, a left time Ts_left.sub.i and a left time Td_left.sub.i when the synchronization message Sync and the delay request message Delay_Req leave the intermediate node i, and a message ID; a time Ts_left.sub.i-1 when the synchronization message Sync leaves a node i-1 acquired from the follow-up message Follow_Up which is consistent with the synchronization message Sync in ID; a time Td_arrived.sub.i-1 when the delay request message Delay_Req arrives at the node i-1 acquired from the delay request response message Delay_Resp which is consistent with the delay request message Delay_Req in ID; and a time correction value β.sub.i-1 of the node i-1 acquired from the synchronization message Sync.
4. The time synchronization error compensation method for multi-hop wireless backhaul network based on PTP of claim 1, characterized in that the additional time information includes: a local time correction value β.sub.i, a local forwarding time and a link delay of transmitting the synchronization message Sync and the delay request message Delay_Req between the node i and node i-1.
5. The time synchronization error compensation method for multi-hop wireless backhaul network based on PTP of claim 1, characterized in that the step of computing the additional time information based the linear regression technology specifically includes: the intermediate node i stores the latest N groups of time information (Ts_arrived.sub.i, Ts_arrived.sub.i−Ts_left.sub.i-1), wherein (Ts_arrived.sub.i,k, Ts_arrived.sub.i,k−Ts_left.sub.i-1,k) are information of the k.sup.th group; Based on the linear regression technology—the least square method, the intermediate node i obtains the slope of the time offset between the node i and the node i-1 relative to the arrived time Ts_arrived.sub.i:
β.sub.i=(1−α.sub.i-1,i)β.sub.i-1 (4) the time offset between the node i and the node i-1 is:
offset.sub.i-1,i.sub.
T_dwell.sub.i=(T_left.sub.i−T_arrived.sub.i)β.sub.i (6) wherein for the delay request message Delay_Req, T_arrived.sub.i is Td_arrived.sub.i, and T_left.sub.i is Td_left.sub.i; and for the synchronization message Sync, T_arrived.sub.i is Ts_arrived.sub.i, and T_left.sub.i is Ts_left.sub.i; The link delay of transmitting the synchronization message Sync between the node i and the node i-1 is:
linkDelay.sub.i-1,i=(Ts_arrived.sub.i−Ts_left.sub.i-1−offset.sub.i-1,i)β.sub.i (7) The link delay of transmitting the delay request message Delay_Req between the node i and the node i-1 is:
linkDelay.sub.i,i-1=(Td_arrived.sub.i-1−Td_left.sub.i+offset.sub.i-1,i)β.sub.i (8).
6. The time synchronization error compensation method for multi-hop wireless backhaul network based on PTP of claim 1, characterized in that the modified header is in a PTP general header format of using a reserved field with of the header (4 bytes) to transmit the added time information.
7. The time synchronization error compensation method for multi-hop wireless backhaul network based on PTP of claim 1, characterized in that the step of carrying the additional time information specifically includes: when sending the follow-up message Follow_Up and the delay request response message Delay_Resp, the intermediate node i respectively adds the forwarding time of the synchronization message Sync and the delay request message Delay_Req which are consistent with the two in ID and the link delay into respective header correction field correctionField; and respectively writes the left time Ts_left.sub.i of the synchronization message Sync and the arrived time Td_arrived.sub.i of the delay request message Delay_Req which are consistent with the two in ID into respective reserved fields of the header (4 bytes); and when sending the synchronization message Sync, the intermediate node i writes the local time correction value into the reserved field of the header (4 bytes).
8. The time synchronization error compensation method for multi-hop wireless backhaul network based on PTP of claim 7, characterized in that the header correction field is that: in two-step synchronization, the field values of the synchronization message Sync and the delay request message Delay_Req are 0, and the field values of the follow-up message Follow_Up and the delay request response message Delay_Resp are the forwarding delay and the link delay of the synchronization message Sync and the delay request message Delay_Req in the intermediate node respectively.
9. The time synchronization error compensation method for multi-hop wireless backhaul network based on PTP of claim 1, characterized in that the step of completing synchronization error compensation according to the PTP when the slave node receives the PTP message specifically includes: the slave node computes a mean path delay meanPathDelay and a time offset shift according to the sending time and receiving time of the synchronization message Sync and the delay request message Delay_Req and the correctionField values of the follow-up message Follow_Up and the delay request response message Delay_Resp which are consistent with the two in ID;
meanPathDelay−[(t2−t3)+(t4−t1)correctionField of Follow_Up−correctionField of Delay_Resp]/2 (9)
shift=t2−t1−meanPathDelay−correctionField of Follow_Up (10), and then completes time synchronization error compensation, wherein t1 is a time of sending the synchronization message Sync recorded by the master clock, t2 is a time of receiving the synchronization message Sync recorded by the slave clock, t3 is a time of sending the delay request message Delay_Req recorded by the slave clock, and t4 is a time of receiving the delay request message Delay_Req recorded by the master clock.
Description
DESCRIPTION OF THE DRAWINGS
[0029]
[0030]
[0031]
[0032]
DETAILED DESCRIPTION
[0033] The present invention will be further described in detail below in combination with the drawings and the embodiments.
[0034] The method of the present invention comprises the following steps: constructing nodes at an industrial site into a hierarchical multi-hop network structure; using the two-step synchronization manner under PTP; and completing forwarding time and link delay detection and compensation of the PTP synchronization message Sync and delay request message Delay_Req using an intermediate node, to implement time synchronization error compensation.
[0035]
[0036]
meanPathDelay=[(t2−t1)+(t4−t3)]/2 (1)
shift=[(t2−t1)−(t4−t3)]/2 (2)
[0037] Obviously, the computation of meanPathDelay is based on uplink and downlink symmetry, i.e., only the condition of uplink and downlink symmetry is satisfied, the link delay obtained by formula (1) is a precise link delay. However, in an actual network environment, especially in a multi-hop wireless network environment, the condition is not satisfied, i.e., a relatively large error exists in the link delay and time shift between the mater node and slave node obtained according to (1) and (2), thereby causing serious decrease of time synchronization precision. Therefore, there is a need to perform real-time compensation on the time synchronization error.
[0038] The time of the network nodes are obtained by counting the output pulses of local crystal oscillators. However, the frequency of crystal oscillators of node clocks is stable within a certain time range. Meanwhile, the node time T has a linear relationship with the absolute time t, i.e., T=α.Math.t+β. Therefore, the time shift between nodes also has a linear relationship with time.
[0039] The time synchronization error compensation method for multi-hop wireless backhaul network based on PTP is implemented through the following described methods, as shown in
[0040] (1) An intermediate node i records an arrived time Ts_arrived.sub.i and an arrived time Td_arrived.sub.i when the synchronization message Sync and the delay request message Delay_Req arrive, and a left time Ts_left.sub.i and a left time Td_left.sub.i when the synchronization message Sync and the delay request message Delay_Req leave, and the message ID;
[0041] (2) According to the sending time of the synchronization message Sync at the node i-1 and the local arrived time Ts_arrived.sub.i, the intermediate node i stores the latest N groups of time information (Ts_arrived.sub.i, Ts_arrived.sub.i−Ts_left.sub.i-1), wherein (Ts_arrived.sub.i,k, Ts_arrived.sub.i,k−Ts_left.sub.i-1,k) are information of the k.sup.th group, and obtains the slope of the time offset between the node i and the node i-1 relative to the arrived time Ts_arrived.sub.i based on the linear regression technology, namely, the least square method;
wherein
then the time correction value of the node i is:
β.sub.i=(1−α.sub.i-1,i)β.sub.i-1 (4)
The time offset between the node i and the node i-1 is:
offset.sub.i-1,i.sub.
The local forwarding time of the synchronization message Sync and the delay request message Delay_Req is:
T_dwell.sub.i=(T_left.sub.i−T_arrived.sub.i)β.sub.i (6)
wherein for the delay request message Delay_Req, T_arrived.sub.i is Ts_arrived.sub.i, and T_left.sub.i is Ts_left.sub.i; and for the synchronization message Sync, T_arrived.sub.i is Ts_arrived.sub.i, and T_left.sub.i is Ts_left.sub.i.
The link delay of transmitting the synchronization message Sync between the node i and the node i-1 is:
linkDelay.sub.i-1,i=(Ts_arrived.sub.i−Ts_left.sub.i-1−offset.sub.i-1,i)β.sub.i (7)
The link delay of transmitting the delay request message Delay_Req between the node i and the node i-1 is:
linkDelay.sub.i,i-1=(Td_arrived.sub.i-1−Td_left.sub.i+offset.sub.i-1,i)β.sub.i (8)
[0042] (3) when receiving the follow-up message Follow_Up and the delay request response message Delay_Resp, the intermediate node i respectively adds the forwarding time and the link delay of the messages which are consistent with the two in ID into the header correction fields correctionField of the follow-up message Follow_Up and the delay request response message Delay_Resp; and when sending the follow-up message Follow_Up, the delay request response message Delay_Resp and the synchronization message Sync, the intermediate node i uses modified headers to respectively carry the sending time Ts_left.sub.i of the synchronization message Sync and the arrived time Td_arrived.sub.i of the delay request message Delay_Req which are consistent with the messages in ID, and the time correction value β.sub.i; and
[0043] (4) according to the sending time and the receiving time of the synchronization message Sync and the delay request message Delay_Req, and correctionField values of the follow-up message Follow_Up and the delay request response message Delay_Resp which are consistent with the two in ID, the slave computes the mean path delay meanPathDelay and the time offset shift:
meanPathDelay−[(t2−t3)+(t4−t1)correctionField of Follow_Up−correctionField of Delay_Resp]/2 (9)
shift=t2−t1−meanPathDelay−correctionField of Follow_Up (10),
and then completes time synchronization error compensation.
[0044] As shown in