Search

CN-122001514-A - Time jump compensation method and system in transmission network data channel switching scene

CN122001514ACN 122001514 ACN122001514 ACN 122001514ACN-122001514-A

Abstract

The invention relates to the technical field of wireless communication networks and discloses a time jump compensation method and a system under a transmission network data channel switching scene. The method comprises the steps of receiving a plurality of first time protocol packets transmitted through a data channel of a transmission network, executing a time jump trigger judging flow according to all the first time protocol packets, judging whether time jump occurs, integrating and correcting according to all the second time protocol packets and a first time jump compensation value measured in advance to obtain a second time jump compensation value after judging that time jump occurs, responding to a time request packet to send a frequency adjustment instruction, carrying out iterative optimization on the second time jump compensation value according to all the third time protocol packets to obtain a third time jump compensation value, and storing and applying the third time jump compensation value to time synchronization compensation. The invention can realize automatic identification and accurate compensation of time jump without depending on extra time sources or a newly added network special protocol.

Inventors

  • HE CHEN
  • CHENG QIAN
  • KONG WENJIE
  • HUANG HONGBING
  • ZHANG YI
  • HUANG QIHANG
  • DUAN LINGXIAO
  • WANG HAISONG
  • MA GUANGXIN
  • ZHU SONGTAO
  • ZHENG XIANG

Assignees

  • 国网浙江省电力有限公司信息通信分公司

Dates

Publication Date
20260508
Application Date
20260409

Claims (10)

  1. 1. The time jump compensation method in the switching scene of the data channel of the transmission network is characterized by comprising the following steps: Receiving a plurality of first time protocol packets transmitted through a data channel of a transmission network, and executing a time jump triggering judgment flow according to all the first time protocol packets to judge whether time jump occurs or not; After the occurrence of time jump is judged, continuously receiving a plurality of second time protocol packets transmitted through the data channel of the transmission network, and carrying out integration correction according to all the second time protocol packets and the first time jump compensation value measured in advance to obtain a second time jump compensation value; Responding to a time request packet to send a frequency adjustment instruction, continuously receiving a plurality of third time protocol packets transmitted through a data channel of the transmission network, and carrying out iterative optimization on the second time jump compensation value according to all the third time protocol packets to obtain a third time jump compensation value; and storing the third time jump compensation value and applying the third time jump compensation value to time synchronization compensation.
  2. 2. The method for compensating time hopping under a switching scenario of a data channel of a transmission network according to claim 1, wherein the steps of receiving a plurality of first time protocol packets transmitted through the data channel of the transmission network, and executing a time hopping trigger judgment procedure according to all the first time protocol packets, and judging whether time hopping occurs comprise: receiving a plurality of first time protocol packets continuously transmitted through a data channel of a transmission network, and sequentially storing a first master-slave clock time difference and a first message round trip delay, which are obtained by parameter analysis of each first time protocol packet, into a first data pool; Performing redundancy processing on all the latest first master-slave clock time differences and all the latest first message round trip delays in the first data pool at intervals of a first preset time to acquire a second master-slave clock time difference and a second message round trip delay which are obtained by the last redundancy processing before time hopping; and judging whether time jump occurs or not by respectively comparing the difference value of the first master-slave clock time difference and the second master-slave clock time difference with the difference value of the first message round trip delay and the second message round trip delay.
  3. 3. The method for compensating time jump in switching scenario of data channel of transmission network according to claim 2, wherein the process of performing redundancy processing on all the latest first master-slave clock time differences in the first data pool comprises: sequencing all the latest first master-slave clock time differences in the first data pool to obtain a first time difference sequence; performing outlier processing on the first time difference sequence to obtain a second time difference sequence; Calculating the average value of the second time difference sequence to obtain a first time difference average value; Sequencing all the first master-slave clock time differences in the second time difference sequence to obtain a third time difference sequence; Performing outlier processing on the third time difference sequence based on the first time difference average value to obtain a fourth time difference sequence; and calculating the average value of the fourth time difference sequence to obtain a second time difference average value.
  4. 4. The method for compensating time jump in switching scenario of data channel of transmission network according to claim 2, wherein said determining whether time jump occurs by comparing difference between said first master-slave clock time difference and said second master-slave clock time difference with difference between said first message round trip delay and said second message round trip delay, respectively, comprises: And if the difference value between the first master-slave clock time difference and the second master-slave clock time difference obtained by parameter analysis of the continuous first preset number of first time protocol packets exceeds a first threshold value, and the difference value between the first message round trip time delay and the second message round trip time delay obtained by parameter analysis of the continuous first preset number of first time protocol packets exceeds the first threshold value, judging that time jump occurs.
  5. 5. The method for compensating time hopping under a switching scenario of a data channel of a transmission network according to claim 1, wherein after determining that time hopping occurs, continuously receiving a plurality of second time protocol packets transmitted through the data channel of the transmission network, and performing integrated correction according to all the second time protocol packets and a pre-measured first time hopping compensation value to obtain a second time hopping compensation value, includes: After the time jump is judged to occur, continuously receiving a plurality of second time protocol packets continuously transmitted through the data channel of the transmission network, and sequentially storing a third master-slave clock time difference and a third message round trip time delay, which are obtained by parameter analysis of each second time protocol packet, into a second data pool; Performing redundancy processing on all the latest third master-slave clock time differences and all the latest third message round trip delays in the second data pool at intervals of a first preset time to obtain a fourth master-slave clock time difference and a fourth message round trip delay which are obtained by redundancy processing for a second preset number of times; and performing first operation processing on all the fourth master-slave clock time differences to obtain a plurality of first time deviation values, and performing redundancy processing on all the first time deviation values to obtain first clock holding deviation.
  6. 6. The method for compensating time jump in switching scenario of data channel of transmission network according to claim 5, wherein after said performing first operation on all the fourth master-slave clock time differences to obtain a plurality of first time offset values, and performing redundancy processing on all the first time offset values to obtain a first clock holding offset, further comprising: performing second operation processing on each fourth master-slave clock time difference and the first clock holding deviation to obtain a corresponding fifth master-slave clock time difference, and performing redundancy processing on all the fifth master-slave clock time differences to obtain a sixth master-slave clock time difference; And performing superposition operation on the sixth master-slave clock time difference and the pre-measured first time jump compensation value to obtain a second time jump compensation value.
  7. 7. The method for compensating time jump in switching scenario of data channel of transmission network according to claim 6, wherein said sending frequency adjustment command in response to time request packet, continuously receiving a plurality of third time protocol packets transmitted through said data channel of transmission network, and performing iterative optimization on said second time jump compensation value according to all of said third time protocol packets to obtain a third time jump compensation value comprises: after executing an instruction for accelerating the sending frequency of a time request packet, continuously receiving a plurality of third time protocol packets continuously transmitted through a data channel of the transmission network, and sequentially storing a seventh master-slave clock time difference and a fifth message round trip delay, which are obtained by parameter analysis of each third time protocol packet, into a second data pool; Performing redundancy processing on all the latest seventh master-slave clock time differences and all the latest fifth message round trip time differences in the second data pool at intervals of a second preset time to obtain eighth master-slave clock time differences and sixth message round trip time differences obtained by redundancy processing of a third preset number of times; And performing first operation processing on all the eighth master-slave clock time differences to obtain a plurality of second time deviation values, and performing redundancy processing on all the second time deviation values to obtain second clock holding deviation.
  8. 8. The method for compensating time jump in switching scenario of data channel of transmission network according to claim 7, wherein after said performing first operation on all the eighth master-slave clock time differences to obtain a plurality of second time offset values, and performing redundancy processing on all the second time offset values to obtain a second clock hold deviation, further comprising: Performing second operation processing on each eighth master-slave clock time difference and the second clock holding deviation to obtain a corresponding ninth master-slave clock time difference, and performing redundancy processing on all the ninth master-slave clock time differences to obtain a tenth master-slave clock time difference; And performing third operation processing on the tenth master-slave clock time difference, the sixth master-slave clock time difference and the second time jump compensation value to obtain a third time jump compensation value.
  9. 9. The method for time hopping compensation in a switching scenario of a data channel of a transmission network according to claim 8, wherein performing third operation on the tenth master-slave clock time difference, the sixth master-slave clock time difference, and the second time hopping compensation value to obtain a third time hopping compensation value comprises: and weighting the difference value of the tenth master-slave clock time difference and the sixth master-slave clock time difference, and carrying out superposition operation on the weighted result and the second time jump compensation value to obtain a third time jump compensation value.
  10. 10. The time jump compensation system in the switching scene of the data channel of the transmission network is characterized by comprising: the time jump discovery module is used for receiving a plurality of first time protocol packets transmitted through a data channel of the transmission network, executing a time jump triggering judgment flow according to all the first time protocol packets, and judging whether time jump occurs or not; The time jump observation module is used for continuously receiving a plurality of second time protocol packets transmitted through the data channel of the transmission network after the time jump is judged to occur, and carrying out integration correction according to all the second time protocol packets and the first time jump compensation value measured in advance to obtain a second time jump compensation value; The time jump confirming module is used for responding to the time request packet to send a frequency adjustment instruction, continuously receiving a plurality of third time protocol packets transmitted through the data channel of the transmission network, and carrying out iterative optimization on the second time jump compensation value according to all the third time protocol packets to obtain a third time jump compensation value; And the time jump compensation module is used for storing the third time jump compensation value and applying the third time jump compensation value to time synchronization compensation.

Description

Time jump compensation method and system in transmission network data channel switching scene Technical Field The present invention relates to the field of wireless communication networks, and in particular, to a method and a system for compensating time hopping in a data channel switching scenario of a transmission network. Background Currently, the main technologies in the network synchronization field are Network Time Protocol (NTP) and Precision Time Protocol (PTP), and the time synchronization networking is constructed by means of data channels of transmission networks such as Synchronous Digital Hierarchy (SDH), packet Transport Network (PTN), optical Transport Network (OTN), etc., which is a widely applied implementation manner. The technical basis of network time synchronization depends on two sets of core calculation formulas (based on the assumption that the transceiving paths are the same), namely a message round trip delay calculation formula and a time difference calculation formula of a client and a clock source. However, the time synchronization network based on the data channel of the transmission network generally has the problem of unequal network paths, so that in the initial stage of the construction of the synchronization network, a fixed delay compensation amount is required to be obtained by testing a time instrument and combining with satellite source comparison so as to offset the unequal influence of the paths, and the synchronization precision is ensured. However, when the time synchronization network enters the operation stage, the channel switching of the data channel of the transmission network is affected by the link fault, the running state of the network is changed, a new network delay is generated, and compared with the delay before switching, the deviation can reach microsecond or more, so that the high-precision time synchronization network depending on the transmission network is seriously affected, and the synchronization precision is greatly reduced. In order to solve the time jump problem caused by the channel switching, the prior art mainly adopts two processing modes, namely, firstly, introducing a satellite synchronous source or other external time signals at a slave clock end, realizing automatic or manual compensation through signal comparison, and secondly, participating in the compensation by virtue of a master clock, and additionally adding a special protocol between the slave clock and the master clock to complete the automatic compensation. However, both of these methods have obvious limitations, and are required to rely on other time sources or additional devices/protocols, so that the method has poor applicability in the scenario of only having network data channels. Disclosure of Invention The invention aims to solve the technical problems of precisely finding time jump caused by switching of a transmission network channel from network time deviation data and intelligently compensating network delay caused by switching of the transmission network on the premise of not depending on an external time source and a special protocol so as to ensure continuous high-precision operation of a time synchronization network. In order to solve the technical problems, the invention provides a time jump compensation method and a system under a transmission network data channel switching scene. In a first aspect, an embodiment of the present invention provides a time hopping compensation method in a switching scenario of a data channel of a transport network, including: Receiving a plurality of first time protocol packets transmitted through a data channel of a transmission network, and executing a time jump triggering judgment flow according to all the first time protocol packets to judge whether time jump occurs or not; After the occurrence of time jump is judged, continuously receiving a plurality of second time protocol packets transmitted through the data channel of the transmission network, and carrying out integration correction according to all the second time protocol packets and the first time jump compensation value measured in advance to obtain a second time jump compensation value; Responding to a time request packet to send a frequency adjustment instruction, continuously receiving a plurality of third time protocol packets transmitted through a data channel of the transmission network, and carrying out iterative optimization on the second time jump compensation value according to all the third time protocol packets to obtain a third time jump compensation value; and storing the third time jump compensation value and applying the third time jump compensation value to time synchronization compensation. Preferably, the receiving a plurality of first time protocol packets transmitted through a data channel of a transmission network, and executing a time hopping trigger judgment process according to all the first time protocol packets, and judging whether time h