CN112713953B - Time synchronization device, system and method - Google Patents
Time synchronization device, system and method Download PDFInfo
- Publication number
- CN112713953B CN112713953B CN202011487134.2A CN202011487134A CN112713953B CN 112713953 B CN112713953 B CN 112713953B CN 202011487134 A CN202011487134 A CN 202011487134A CN 112713953 B CN112713953 B CN 112713953B
- Authority
- CN
- China
- Prior art keywords
- signal
- module
- time
- optical
- delay
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0005—Switch and router aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0005—Switch and router aspects
- H04Q2011/0037—Operation
- H04Q2011/0045—Synchronisation
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Optical Communication System (AREA)
Abstract
本发明公开了一种时间同步装置、系统与方法,属于光纤时间同步领域,包括近端A,光纤链路和远端B;近端A发送光脉冲信号与从光纤链路接收的环回光信号和反馈光信号复用,从远端B传输来的光信号传输到光电探测器转变为电信号后发送给时间测量模块,进行时间做差,控制模块根据随机数判断出由近端A到远端B的传输时间TAB,进行补偿后信号经过调制发送至光纤链路中,传输到远端B。远端B将近端A发送来的信号经过分束器分别实现与近端A时间同步,以及进行延时形成环回信号;同时,控制模块将时钟源信号进行延时,得到反馈信号;合束器将环回信号和反馈信号复用,传输到光纤链路中。本发明能够准确的对传输时间进行补偿,提高了系统的可靠性。
The invention discloses a time synchronization device, system and method, belonging to the field of optical fiber time synchronization, comprising a near-end A, an optical fiber link and a far-end B; The signal and the feedback optical signal are multiplexed, and the optical signal transmitted from the far end B is transmitted to the photodetector and converted into an electrical signal, and then sent to the time measurement module for time difference. For the transmission time T AB of the remote B, after compensation, the signal is modulated and sent to the optical fiber link, and then transmitted to the remote B. The signal sent by the far-end B from the near-end A passes through the beam splitter to achieve time synchronization with the near-end A, and delays to form a loopback signal; at the same time, the control module delays the clock source signal to obtain the feedback signal; The beamer multiplexes the loopback signal and the feedback signal and transmits it to the fiber link. The invention can accurately compensate the transmission time and improve the reliability of the system.
Description
技术领域technical field
本发明属于光纤时间同步技术领域,具体是一种时间同步装置、系统与方法。The invention belongs to the technical field of optical fiber time synchronization, in particular to a time synchronization device, system and method.
背景技术Background technique
目前,比较常用的时间同步系统主要包括卫星时间同步系统和光纤时间同步系统。At present, the more commonly used time synchronization systems mainly include satellite time synchronization systems and optical fiber time synchronization systems.
卫星时间同步系统是利用卫星进行标准时间信号传递的时间同步系统,卫星时间同步有以下优点:卫星可以发送精度很高的标准时间信号,并且覆盖范围可以到达全球,而且卫星时间同步接收机方便、廉价、快捷,卫星时间同步的精度已经能满足大部分人对于时间同步的需求。然而,由于卫星信号是从太空发送的,相比于地面环境,太空环境更加复杂,这也导致卫星信号会受到来自于太空环境中各种因素的干扰,并且信号传达到地面时也会比较微弱,甚至因为有些区域并不在卫星的覆盖范围内而导致这些区域接收不到信号。The satellite time synchronization system is a time synchronization system that uses satellites to transmit standard time signals. Satellite time synchronization has the following advantages: satellites can send high-precision standard time signals, and the coverage can reach the world, and the satellite time synchronization receiver is convenient, Inexpensive, fast, and the accuracy of satellite time synchronization can already meet the needs of most people for time synchronization. However, since the satellite signal is sent from space, the space environment is more complex than the ground environment, which also causes the satellite signal to be interfered by various factors in the space environment, and the signal will be weaker when it reaches the ground. , and even some areas cannot receive signals because they are not in the coverage area of the satellite.
光纤时间同步系统是利用光纤进行标准时间信号传递的时间同步系统,从二十世纪七十年代以来,随着光纤越来越广泛的进入实用阶段,光纤因为其传输信号的优良特性以及光网络的普及,使得基于光纤的高精度时间传递开始受到越来越多的关注。光纤具有如下优点:带宽大、损耗低、温度系数小、造价低、稳定性高、中继距离长和抗干扰能力强。光纤时间同步是一种新型的高精度的时间传递手段,它具有光纤传输信号所特有的优点。光纤时间同步主要发送的是秒脉冲,秒脉冲为每秒固定产生的、具有一定脉宽的一个脉冲。通过对秒脉冲进行比对,使用相应的算法便可以计算出两地的时间差,从而进行校准。The optical fiber time synchronization system is a time synchronization system that uses optical fibers to transmit standard time signals. Since the 1970s, as optical fibers have become more and more widely used and entered the practical stage, optical fibers have become more and more widely used because of their excellent characteristics of signal transmission and optical network. With the popularization, optical fiber-based high-precision time transfer has begun to receive more and more attention. Optical fiber has the following advantages: large bandwidth, low loss, small temperature coefficient, low cost, high stability, long relay distance and strong anti-interference ability. Optical fiber time synchronization is a new type of high-precision time transfer method, which has the unique advantages of optical fiber transmission signals. Optical fiber time synchronization mainly transmits the second pulse, which is a pulse with a certain pulse width that is generated every second and has a certain pulse width. By comparing the second pulse, the corresponding algorithm can be used to calculate the time difference between the two places for calibration.
2015年,中国科学院上海光学精密机械研究所实现了频率和时间一起同步的系统,在光纤长度为50km时,时间同步精度为1.6ps;在光纤长度为110km,时间同步精度为30ps。2016年,西安通信学院在光纤时间同步系统中使用FPGA接收秒脉冲信号,同时内部进行秒脉冲信号的同步并且生成时间码用于发送,最终时间同步精度为11.8ns。2016年,波兰克拉科夫AGH科技大学使用单纤双向环回系统,通过控制一对低噪声,精确匹配的延迟线进行时间补偿后,传输615km后,时间同步精度约为2ps。2017年,解放军理工大学过实验了基于时钟计数器和电子可变延迟线的精确光纤的传输延迟补偿方案,经过100km光纤后,时间同步精度为66.7ps。In 2015, the Shanghai Institute of Optics and Fine Mechanics of the Chinese Academy of Sciences realized a frequency and time synchronization system. When the fiber length is 50km, the time synchronization accuracy is 1.6ps; when the fiber length is 110km, the time synchronization accuracy is 30ps. In 2016, Xi'an Institute of Communications used FPGA to receive the second pulse signal in the optical fiber time synchronization system, and at the same time, the second pulse signal was synchronized internally and the time code was generated for transmission. The final time synchronization accuracy was 11.8ns. In 2016, AGH University of Science and Technology in Krakow, Poland used a single-fiber bidirectional loopback system. After time compensation was performed by controlling a pair of low-noise and precisely matched delay lines, the time synchronization accuracy was about 2ps after 615km of transmission. In 2017, the PLA University of Science and Technology experimented with a transmission delay compensation scheme based on a clock counter and an electronic variable delay line for precise optical fibers. After 100 km of optical fibers, the time synchronization accuracy was 66.7ps.
在经典的环回时间同步系统中,有一个基本的假设:往返的光纤链路是对称的,即由近端到远端的光纤链路传输时间与由远端到近端的光纤链路传输时间相同。然而,基于这一点,存在由信道非对称引起的时延过大的风险。In the classic loopback time synchronization system, there is a basic assumption: the round-trip optical fiber link is symmetrical, that is, the transmission time of the optical fiber link from the near end to the far end is the same as the transmission time of the optical fiber link from the far end to the near end. Same time. However, based on this, there is a risk of excessive delay caused by channel asymmetry.
在正常的情况下,整个链路的往返时间T为:Under normal circumstances, the round-trip time T of the entire link is:
式中,LAB(LBA)为近端A(远端B)到远端B(近端A)的光纤链路长度,c为真空中的光速,n0为光纤的折射率。In the formula, L AB (L BA ) is the length of the fiber link from the near end A (distal end B) to the far end B (the near end A), c is the speed of light in vacuum, and n 0 is the refractive index of the fiber.
在由信道非对称引起时延的情况下,如将近端A到远端B的距离变长m米,并将远端B返回近端A的距离缩短m米,那么整个链路的往返时间仍为T,但近端A到远端B的信号将多经过m米链路传输,所引起的时间误差Terr为:In the case of delay caused by channel asymmetry, if the distance from near-end A to far-end B is increased by m meters, and the distance from far-end B back to near-end A is shortened by m meters, then the round-trip time of the entire link It is still T, but the signal from the near-end A to the far-end B will be transmitted through the m-meter link, and the time error T err caused is:
如当m为1米时,由信道非对称引起的时延可达到5ns的影响。For example, when m is 1 meter, the time delay caused by the asymmetry of the channel can reach the influence of 5ns.
发明内容SUMMARY OF THE INVENTION
本发明为了解决现有方案的不足,提供了一种时间同步装置、系统与方法,能够发现由信道非对称引起的时延,识别并消除该时延,提高了时间同步系统的可靠性。In order to solve the shortcomings of the existing solutions, the present invention provides a time synchronization device, system and method, which can find the time delay caused by channel asymmetry, identify and eliminate the time delay, and improve the reliability of the time synchronization system.
所述的一种时间同步装置,包括近端A,光纤链路和远端B。The time synchronization device includes a near-end A, an optical fiber link and a far-end B.
近端A由第一时钟源,第一随机数模块,第一控制模块,延时补偿模块,第一光脉冲发送模块,第一复用模块,第一光电探测器和时间测量模块组成;The near-end A is composed of a first clock source, a first random number module, a first control module, a delay compensation module, a first optical pulse sending module, a first multiplexing module, a first photodetector and a time measurement module;
第一控制模块同时连接第一时钟源,第一随机数模块,时间测量模块和延时补偿模块;The first control module is simultaneously connected to the first clock source, the first random number module, the time measurement module and the delay compensation module;
第一时钟源产生秒脉冲信号和本地的时钟信号,以及第一随机数模块产生的随机数同时提供给第一控制模块;The first clock source generates a second pulse signal and a local clock signal, and the random number generated by the first random number module is simultaneously provided to the first control module;
第一复用模块同时连接第一光脉冲发送模块和光纤链路,将第一光脉冲发送模块发送的光脉冲信号与从光纤链路接收到的光信号复用在一根光纤上,并将来自光纤链路的光信号传输到第一光电探测器;The first multiplexing module simultaneously connects the first optical pulse sending module and the optical fiber link, multiplexes the optical pulse signal sent by the first optical pulse sending module and the optical signal received from the optical fiber link on one optical fiber, and multiplexes the optical pulse signal sent by the first optical pulse sending module and the optical signal received from the optical fiber link on one optical fiber, the optical signal from the optical fiber link is transmitted to the first photodetector;
光纤链路接收到的光信号包括从远端B发送过来的环回信号和反馈信号;The optical signal received by the optical fiber link includes the loopback signal and feedback signal sent from the remote B;
第一光电探测器将复用光信号经过探测转变为电信号发送给时间测量模块,时间测量模块将转变后的环回电信号和反馈电信号分别与从第一控制模块接收到的本地时钟信号做差,并将两个差结果发送给第一控制模块;The first photodetector converts the multiplexed optical signal into an electrical signal after detection and sends it to the time measurement module, and the time measurement module separates the converted loopback electrical signal and the feedback electrical signal with the local clock signal received from the first control module. Do the difference, and send the two difference results to the first control module;
第一控制模块根据随机数判断出:环回信号,反馈信号分别与近端A本地时间的时间差,并计算出由近端A到远端B的传输时间TAB;The first control module judges according to the random number: the loopback signal, the time difference between the feedback signal and the local time of the near-end A respectively, and calculates the transmission time T AB from the near-end A to the far-end B;
第一控制模块将传输时间TAB发给延时补偿模块进行延时补偿,并将补偿后的秒脉冲信号发送到第一光脉冲发送模块;第一光脉冲发送模块将延时的秒脉冲电信号调制为光脉冲信号并发送到第一复用模块,然后发送至光纤链路中,形成发送端的闭环电路。The first control module sends the transmission time T AB to the delay compensation module for delay compensation, and sends the compensated second pulse signal to the first optical pulse sending module; the first optical pulse sending module sends the delayed second pulse signal to the first optical pulse sending module. The signal is modulated into an optical pulse signal and sent to the first multiplexing module, and then sent to the optical fiber link to form a closed-loop circuit at the sending end.
远端B由第二时钟源,第二随机数模块,第二控制模块,第二光脉冲发送模块,合束器,延时模块,第二光电探测器,分束器和第二复用模块组成;Remote B consists of a second clock source, a second random number module, a second control module, a second optical pulse sending module, a beam combiner, a delay module, a second photodetector, a beam splitter and a second multiplexing module composition;
第二控制模块同时连接第二时钟源,第二随机数模块,第二光脉冲发送模块,第二光电探测器和延时模块。The second control module is simultaneously connected to the second clock source, the second random number module, the second optical pulse sending module, the second photodetector and the delay module.
第二时钟源产生秒脉冲信号,第二随机数模块产生的随机数与第一随机数模块的随机数共享,秒脉冲信号和共享随机数共同发送给第二控制模块;The second clock source generates a second pulse signal, the random number generated by the second random number module is shared with the random number of the first random number module, and the second pulse signal and the shared random number are jointly sent to the second control module;
第二复用模块接收光纤链路中的光信号发送给分束器,光信号为近端A中第一光脉冲发送模块将延时的秒脉冲电信号调制为光脉冲信号并经第一复用模块发送至光纤链路中的信号。The second multiplexing module receives the optical signal in the optical fiber link and sends it to the beam splitter. The optical signal is that the first optical pulse sending module in the near-end A modulates the delayed second-pulse electrical signal into an optical pulse signal and passes through the first multiplexing module. The signal sent by the module into the fiber optic link.
分束器将信号按照比例分为两束:一束发送给第二光电探测器,经过探测转变为电信号,发送给第二控制模块,恢复出定时信号,实现与近端A时间同步;另一束光信号发送给延时模块对光信号进行延时形成环回信号,延时时间受第二控制模块控制,然后发送到合束器。The beam splitter divides the signal into two beams according to the proportion: one beam is sent to the second photodetector, converted into an electrical signal after detection, and sent to the second control module, and the timing signal is recovered to achieve time synchronization with the near-end A; A beam of optical signal is sent to the delay module to delay the optical signal to form a loopback signal, the delay time is controlled by the second control module, and then sent to the beam combiner.
第二控制模块将第二时钟源提供的秒脉冲电信号进行延时后,发送给第二光脉冲发送模块,第二光脉冲发送模块将接收的延时电信号调制为光信号,形成反馈信号发送至合束器;The second control module delays the second pulse electrical signal provided by the second clock source and sends it to the second optical pulse sending module. The second optical pulse sending module modulates the received delayed electrical signal into an optical signal to form a feedback signal sent to the combiner;
合束器将反馈信号和环回信号合为一束光发送给第二复用模块,第二复用模块将合束的光信号与从光纤链路上接收的光信号复用在一根光纤上传输,形成接收端的闭环电路。The beam combiner combines the feedback signal and the loopback signal into a beam of light and sends it to the second multiplexing module. The second multiplexing module multiplexes the combined optical signal and the optical signal received from the optical fiber link in one optical fiber. Up transmission, forming a closed-loop circuit at the receiving end.
由于第二控制模块需要对环回信号的延时时间进行控制,也要对反馈信号进行延时时间的控制,根据共享随机数判断选择的是环回信号还是反馈信号,然后控制给环回信号和反馈信号不同的延时时间,形成两者的发送顺序。Since the second control module needs to control the delay time of the loopback signal, it also needs to control the delay time of the feedback signal, judge whether the loopback signal or the feedback signal is selected according to the shared random number, and then control the loopback signal A different delay time from the feedback signal forms the sending sequence of the two.
所述的时间同步系统具体工作原理如下:The specific working principle of the time synchronization system is as follows:
首先,近端A经过光纤链路接收到远端B发出的环回信号和反馈信号,这两个信号连同第一光脉冲发送模块发送的光脉冲信号,一起传输到第一光电探测器;First, the near-end A receives the loopback signal and the feedback signal sent by the far-end B through the optical fiber link, and these two signals are transmitted to the first photodetector together with the optical pulse signal sent by the first optical pulse sending module;
第一光电探测器转变为电信号发送给时间测量模块,时间测量模块将转变后的环回电信号和反馈电信号分别与本地时钟信号做差,并将两个差结果发送给第一控制模块;The first photodetector is converted into an electrical signal and sent to the time measurement module. The time measurement module makes a difference between the converted loopback electrical signal and the feedback electrical signal and the local clock signal respectively, and sends the two difference results to the first control module. ;
第一控制模块根据随机数判断出:环回信号,反馈信号分别与近端A本地时间的时间差,并计算出由近端A到远端B的传输时间TAB;The first control module judges according to the random number: the loopback signal, the time difference between the feedback signal and the local time of the near-end A respectively, and calculates the transmission time T AB from the near-end A to the far-end B;
第一控制模块将传输时间TAB发给延时补偿模块进行延时补偿后,发送到第一光脉冲发送模块,调制成光脉冲信号经第一复用模块发送至光纤链路中;The first control module sends the transmission time T AB to the delay compensation module for delay compensation, and then sends it to the first optical pulse sending module, and modulates it into an optical pulse signal and sends it to the optical fiber link through the first multiplexing module;
远端B的第二复用模块接收光纤链路中的光信号发送给分束器,分束器将信号按照比例分为两束:一束发送给第二光电探测器,经过探测转变为电信号,发送给第二控制模块,恢复出定时信号,实现与近端A时间同步;另一束光信号发送给延时模块对光信号进行延时形成环回信号,然后发送到合束器。The second multiplexing module of remote B receives the optical signal in the optical fiber link and sends it to the beam splitter. The beam splitter divides the signal into two beams according to the proportion: one beam is sent to the second photodetector, and is converted into electrical energy after detection. The signal is sent to the second control module, and the timing signal is recovered to achieve time synchronization with the near-end A; another optical signal is sent to the delay module to delay the optical signal to form a loopback signal, and then send it to the beam combiner.
同时,第二控制模块将第二时钟源提供的秒脉冲电信号进行延时后,发送给第二光脉冲发送模块调制为光信号,形成反馈信号发送至合束器;At the same time, the second control module delays the second pulse electrical signal provided by the second clock source, and sends it to the second optical pulse sending module to modulate it into an optical signal to form a feedback signal and send it to the beam combiner;
合束器将反馈信号和延时信号合为一束光发送给第二复用模块,第二复用模块将合束的光信号传输到光纤链路上形成闭环电路。The beam combiner combines the feedback signal and the delayed signal into a beam of light and sends it to the second multiplexing module, and the second multiplexing module transmits the combined optical signal to the optical fiber link to form a closed-loop circuit.
上述第二控制模块根据共享随机数判断环回信号和反馈信号的发送顺序。The above-mentioned second control module judges the sending order of the loopback signal and the feedback signal according to the shared random number.
所述的时间同步方法具体步骤如下:The specific steps of the time synchronization method are as follows:
步骤一、近端A在第一时钟源的定时信息有效时,第一控制模块控制延时补偿模块将本地时钟源产生的秒脉冲延时时间1-TAB后,发送给第一光脉冲发送模块;Step 1: When the timing information of the first clock source is valid at the near-end A, the first control module controls the delay compensation module to delay the second pulse generated by the local clock source by 1-T AB before sending it to the first optical pulse transmission. module;
TAB为由近端A到远端B的单程时间;T AB is the one-way time from the near end A to the far end B;
步骤二、第一光脉冲发送模块将延时了1-TAB时间后的秒脉冲信号调制为光信号,通过光纤链路发送给远端B;
调制的光信号包含本地定时信息。The modulated optical signal contains local timing information.
步骤三、远端B接收到近端A发送的光脉冲信号后,第二复用模块将该光脉冲信号发送给分束器;Step 3: After the remote end B receives the optical pulse signal sent by the near end A, the second multiplexing module sends the optical pulse signal to the beam splitter;
分束器将光脉冲信号分成两部分:一束发送给第二光电探测器经过探测转变为电信号,恢复出与近端A同步的定时信号,实现与近端A时间同步;另一束光信号发送给延时模块对光信号进行延时Td1后形成环回信号,发送到合束器;The beam splitter divides the optical pulse signal into two parts: one beam is sent to the second photodetector and converted into an electrical signal after detection, and the timing signal synchronized with the near-end A is recovered to achieve time synchronization with the near-end A; the other beam of light The signal is sent to the delay module to delay the optical signal by T d1 to form a loopback signal, which is sent to the beam combiner;
步骤四、同时,远端B在第二时钟源定时信息有效时,第二控制模块将第二时钟源提供的秒脉冲电信号延时时间Td2后发送至第二光脉冲发送模块。Step 4: At the same time, when the timing information of the second clock source is valid at the remote end B, the second control module sends the second pulse-per-second electrical signal provided by the second clock source after a delay time T d2 to the second optical pulse sending module.
步骤五、第二光脉冲发送模块将延时了时间Td2后的秒脉冲电信号调制为光信号,形成反馈信号,送至合束器。Step 5. The second optical pulse sending module modulates the second pulse electrical signal after the delay time T d2 into an optical signal, forms a feedback signal, and sends it to the beam combiner.
步骤六、合束器将环回信号与反馈信号通过第二复用模块发送至光纤链路返回近端A。Step 6: The beam combiner sends the loopback signal and the feedback signal to the optical fiber link through the second multiplexing module and returns to the near-end A.
第二控制模块根据第二随机数模块提供的随机数来判断出反馈信号与环回信号的发送顺序来控制延时时间Td1和Td2。The second control module determines the sending sequence of the feedback signal and the loopback signal according to the random number provided by the second random number module to control the delay times T d1 and T d2 .
发送顺序包括两种:当Td1小于Td2时环回信号先到,反馈信号后到;当Td1大于Td2时反馈信号先到,环回信号后到;There are two transmission sequences: when T d1 is less than T d2 , the loopback signal arrives first, and the feedback signal arrives later; when T d1 is greater than T d2 , the feedback signal arrives first, and the loopback signal arrives later;
步骤七、近端A通过第一复用模块接收远端B发送来的环回光信号与反馈光信号,经过第一光电探测器转变为环回电信号与反馈电信号,发送给时间测量模块;Step 7: The near-end A receives the loopback optical signal and the feedback optical signal sent by the far-end B through the first multiplexing module, converts it into the loopback electrical signal and the feedback electrical signal through the first photodetector, and sends it to the time measurement module ;
步骤八、时间测量模块测量环回电信号与反馈电信号的到达时间,并分别与本地的时间作差,将两个差测量结果发送至第一控制模块。Step 8: The time measurement module measures the arrival times of the loopback electrical signal and the feedback electrical signal, makes a difference with the local time respectively, and sends the two difference measurement results to the first control module.
步骤九、第一控制模块根据随机数,区分出差测量结果中的环回信号的到达时间与本地的时间差TRL,反馈信号的到达时间与本地的时间差TFL;并进一步得到由近端A到远端B的单程时间TAB。Step 9, the first control module distinguishes the arrival time of the loopback signal in the travel measurement result and the local time difference T RL according to the random number, and the arrival time of the feedback signal and the local time difference T FL ; And further obtain from the near-end A to One-way time T AB of far end B.
其中:TRL=TAB+Td1+TBA,TFL=T1+Td2+TBA Where: T RL =T AB +T d1 +T BA , T FL =T 1 +T d2 +T BA
T1为第一时钟源与第二时钟源的时间差,Td1为第二控制模块对环回信号的延时,Td2为第二控制模块对反馈信号的延时,TAB为由近端A到远端B的单程时间,TBA为远端B到近端A的单程传输时间。T1 is the time difference between the first clock source and the second clock source, Td1 is the delay of the loopback signal by the second control module, Td2 is the delay of the feedback signal by the second control module, and TAB is the One-way time from A to far-end B, T BA is the one-way transmission time from far-end B to near-end A.
步骤十、将第一光脉冲发送模块的时延调整为1-TAB,经过TAB时间到达远端B后则刚好与近端A的第一时钟源模块的下一个秒脉冲同步。Step 10: Adjust the time delay of the first optical pulse sending module to 1-TAB, after reaching the remote end B after the time of TAB , it is just synchronized with the next second pulse of the first clock source module of the near end A.
本发明与现有技术相比,具有以下优势:Compared with the prior art, the present invention has the following advantages:
(1)一种时间同步装置、系统与方法,在发送端近端A,通过时间测量模块和第一控制模块的特定的数据处理方法可以准确地得到由近端A到远端B的单程传输时间,确保了时间补偿的准确性。(1) A time synchronization device, system and method, at the near-end A of the transmitting end, the one-way transmission from the near-end A to the far-end B can be accurately obtained through the specific data processing method of the time measurement module and the first control module time, ensuring the accuracy of time compensation.
(2)一种时间同步装置、系统与方法,在接收端远端B,通过一个独立的第二时钟源模块生成反馈信号,确保了反馈信号产生的稳定性,不易受影响。环回信号通过受第二控制模块控制的延时模块进行延时产生,同时结合近端A与远端B使用共享的随机数来判断发送顺序,能够确保双方对环回信号和反馈信号的准确区分且不被第三者区分。(2) A time synchronization device, system and method, in which a feedback signal is generated at the remote end B of the receiving end through an independent second clock source module, which ensures the stability of the generation of the feedback signal and is not easily affected. The loopback signal is delayed and generated by the delay module controlled by the second control module, and the shared random number is used in combination with the near-end A and the far-end B to determine the sending order, which can ensure the accuracy of the loopback signal and the feedback signal by both parties. Distinguish and not be distinguished by a third party.
(3)一种时间同步装置、系统与方法,在信号传输中,反馈信号与环回信号在光纤信道中传输时,所表现出来的物理特性如脉宽、波长等一致,除了通信双方近端A与远端B,是无法区分出二者,增强了系统的安全性。(3) A time synchronization device, system and method. In signal transmission, when the feedback signal and the loopback signal are transmitted in the optical fiber channel, the physical characteristics such as pulse width and wavelength are consistent, except for the near-end of both communication parties. It is impossible to distinguish between A and remote B, which enhances the security of the system.
(4)一种时间同步装置、系统与方法,通过本发明提供的方法,克服了传统的环回时间同步方法对于传输链路对称性的假设的缺陷,能够准确的对由近端A到远端B的传输时间进行补偿,提高了系统的可靠性。(4) A time synchronization device, system and method, the method provided by the present invention overcomes the defect of the assumption of the symmetry of the transmission link in the traditional loopback time synchronization method, and can accurately synchronize the transmission link from the near end A to the far end. The transmission time of the terminal B is compensated, which improves the reliability of the system.
附图说明Description of drawings
图1是本发明一种时间同步系统的结构示意图;Fig. 1 is the structural representation of a kind of time synchronization system of the present invention;
图2是本发明一种时间同步方法的流程图;Fig. 2 is the flow chart of a kind of time synchronization method of the present invention;
图3是本发明当环回信号在反馈信号之前发出时即Td1<Td2光纤时间同步工作过程示意图;3 is a schematic diagram of the present invention when the loopback signal is sent out before the feedback signal, that is, T d1 <T d2 optical fiber time synchronization working process;
图4是本发明当环回信号在反馈信号之后发出时即Td1>Td2光纤时间同步工作过程示意图。FIG. 4 is a schematic diagram of the time synchronization working process of the optical fiber when the loopback signal is sent after the feedback signal, that is, T d1 >T d2 according to the present invention.
具体实施方式Detailed ways
为了便于本领域普通技术人员理解和实施本发明,下面结合附图对本发明作进一步的详细和深入描述。In order to facilitate the understanding and implementation of the present invention by those of ordinary skill in the art, the present invention will be further described in detail and in-depth below with reference to the accompanying drawings.
本发明公开了一种时间同步装置、系统与方法,加入了反馈信号同时引入随机数的随机性,具体为:近端A通过光纤链路向远端B发送一包含本地定时信息的光脉冲信号;远端B接收到近端A发送的光脉冲信号,一部分用于探测,实现与近端A时间同步;另一部分经过延时形成环回信号返回给发送端;远端B通过自身的时钟源产生的信号进行延时形成一反馈信号,环回信号和反馈信号的先后发送顺序由不同的延时形成,通过随机数来排序决定;近端A测量接收到的环回信号和反馈信号的时间,根据双方共享的一致随机数并准确分析信号以及信号间的时间差,并对时延进行补偿,达到发现由信道非对称引起的时延并去除其影响的效果。The invention discloses a time synchronization device, system and method, which adds the randomness of a feedback signal and introduces random numbers at the same time. ; Far-end B receives the optical pulse signal sent by near-end A, part of which is used for detection to achieve time synchronization with near-end A; the other part is delayed to form a loopback signal and returned to the sender; far-end B uses its own clock source The generated signal is delayed to form a feedback signal, and the sequence of sending the loopback signal and the feedback signal is formed by different delays, which are determined by random numbers; the near-end A measures the time of the received loopback signal and the feedback signal , according to the consistent random number shared by both parties and accurately analyze the signal and the time difference between the signals, and compensate for the delay, so as to find the delay caused by the asymmetry of the channel and remove its influence.
所述的一种时间同步装置,如图1所示,包括近端A,光纤链路和远端B。The above-mentioned time synchronization device, as shown in FIG. 1 , includes a near-end A, an optical fiber link and a far-end B.
近端A由第一时钟源,第一随机数模块,第一控制模块,延时补偿模块,第一光脉冲发送模块,第一复用模块,第一光电探测器和时间测量模块组成;The near-end A is composed of a first clock source, a first random number module, a first control module, a delay compensation module, a first optical pulse sending module, a first multiplexing module, a first photodetector and a time measurement module;
第一控制模块同时连接第一时钟源,第一随机数模块,时间测量模块和延时补偿模块;The first control module is simultaneously connected to the first clock source, the first random number module, the time measurement module and the delay compensation module;
第一时钟源产生秒脉冲信号和本地的时钟信号,以及第一随机数模块产生的随机数同时提供给第一控制模块;第一控制模块根据随机数来控制时延的调整。The first clock source generates a second pulse signal and a local clock signal, and the random number generated by the first random number module is simultaneously provided to the first control module; the first control module controls the adjustment of the delay according to the random number.
第一随机数模块为经典形式或量子形式;The first random number module is in a classical form or a quantum form;
第一复用模块同时连接第一光脉冲发送模块和光纤链路,将第一光脉冲发送模块发送的光脉冲信号与从光纤链路接收到的光信号复用在一根光纤上,传输到第一光电探测器;The first multiplexing module connects the first optical pulse sending module and the optical fiber link at the same time, and multiplexes the optical pulse signal sent by the first optical pulse sending module and the optical signal received from the optical fiber link on one optical fiber, and transmits it to the optical fiber. a first photodetector;
光纤链路接收到的光信号包括从远端B发送过来的环回信号和反馈信号;The optical signal received by the optical fiber link includes the loopback signal and feedback signal sent from the remote B;
第一光电探测器将复用光信号经过探测转变为电信号发送给时间测量模块,时间测量模块将转变后的环回电信号和反馈电信号分别与从第一控制模块接收到的本地时钟信号做差,并将两个差结果发送给第一控制模块;The first photodetector converts the multiplexed optical signal into an electrical signal after detection and sends it to the time measurement module, and the time measurement module separates the converted loopback electrical signal and the feedback electrical signal with the local clock signal received from the first control module. Do the difference, and send the two difference results to the first control module;
所述时间测量模块,用于测量接收到的信号时间与本地时间的时间差等时间信息;The time measurement module is used to measure time information such as the time difference between the received signal time and the local time;
第一控制模块根据随机数判断出:环回信号与近端A本地时间的时间差,以及反馈信号与近端A本地时间的时间差,并计算出由近端A到远端B的传输时间TAB;The first control module determines according to the random number: the time difference between the loopback signal and the local time of the near-end A, and the time difference between the feedback signal and the local time of the near-end A, and calculates the transmission time T AB from the near-end A to the far-end B ;
由于是为了让到达远端B的脉冲和近端A同步,第一控制模块将传输时间TAB发给延时补偿模块进行延时补偿,并将补偿后的秒脉冲信号发送到第一光脉冲发送模块;第一光脉冲发送模块将延时的秒脉冲电信号调制为光脉冲信号并发送到第一复用模块,然后发送至光纤链路中,形成发送端的闭环电路。In order to synchronize the pulse arriving at the far end B with the near end A, the first control module sends the transmission time T AB to the delay compensation module for delay compensation, and sends the compensated second pulse signal to the first optical pulse Sending module; the first optical pulse sending module modulates the delayed second pulse electrical signal into an optical pulse signal and sends it to the first multiplexing module, and then sends it to the optical fiber link to form a closed-loop circuit at the sending end.
所述的延时补偿模块,用于控制秒脉冲的延时,使得远端B与近端A达到时间同步。The delay compensation module is used to control the delay of the second pulse, so that the far end B and the near end A achieve time synchronization.
远端B由第二时钟源,第二随机数模块,第二控制模块,第二光脉冲发送模块,合束器,延时模块,第二光电探测器,分束器和第二复用模块组成;Remote B consists of a second clock source, a second random number module, a second control module, a second optical pulse sending module, a beam combiner, a delay module, a second photodetector, a beam splitter and a second multiplexing module composition;
第二控制模块同时连接第二时钟源,第二随机数模块,第二光脉冲发送模块,第二光电探测器和延时模块。The second control module is simultaneously connected to the second clock source, the second random number module, the second optical pulse sending module, the second photodetector and the delay module.
第二时钟源产生秒脉冲信号,第二随机数模块,用于提供与近端A第一随机数模块相同的随机数,第二随机数模块产生的随机数与第一随机数模块的随机数共享;秒脉冲信号和共享随机数共同发送给第二控制模块;The second clock source generates a second pulse signal, the second random number module is used to provide the same random number as the first random number module of the near-end A, and the random number generated by the second random number module is the same as the random number of the first random number module. Sharing; the second pulse signal and the shared random number are jointly sent to the second control module;
共享随机数通过量子密钥分发等方式实现;Shared random numbers are realized through quantum key distribution, etc.;
所述的第二控制模块,根据随机数来控制环回信号与反馈信号的发送顺序;The second control module controls the sending sequence of the loopback signal and the feedback signal according to the random number;
第二复用模块接收光纤链路中的光信号发送给分束器,光信号为近端A中第一光脉冲发送模块将延时的秒脉冲电信号调制为光脉冲信号并经第一复用模块发送至光纤链路中的信号。The second multiplexing module receives the optical signal in the optical fiber link and sends it to the beam splitter. The optical signal is that the first optical pulse sending module in the near-end A modulates the delayed second-pulse electrical signal into an optical pulse signal and passes through the first multiplexing module. The signal sent by the module into the fiber optic link.
分束器将信号按照比例分为两束:一束发送给第二光电探测器,经过探测转变为电信号,发送给第二控制模块,恢复出定时信号,实现与近端A时间同步;另一束光信号发送给延时模块对光信号进行延时形成环回信号,延时时间受第二控制模块控制,然后发送到合束器。The beam splitter divides the signal into two beams according to the proportion: one beam is sent to the second photodetector, converted into an electrical signal after detection, and sent to the second control module, and the timing signal is recovered to achieve time synchronization with the near-end A; A beam of optical signal is sent to the delay module to delay the optical signal to form a loopback signal, the delay time is controlled by the second control module, and then sent to the beam combiner.
第二控制模块将第二时钟源提供的秒脉冲电信号进行延时后,发送给第二光脉冲发送模块,第二光脉冲发送模块将接收的延时电信号调制为光信号,形成反馈信号发送至合束器;The second control module delays the second pulse electrical signal provided by the second clock source and sends it to the second optical pulse sending module. The second optical pulse sending module modulates the received delayed electrical signal into an optical signal to form a feedback signal sent to the combiner;
环回信号与反馈信号波长、脉宽等参数一致。The loopback signal is consistent with the feedback signal wavelength, pulse width and other parameters.
合束器将反馈信号和延时信号合为一束光发送给第二复用模块,第二复用模块将合束的光信号与从光纤链路上接收的光信号复用在一根光纤上传输,形成接收端的闭环电路。The beam combiner combines the feedback signal and the delayed signal into a beam of light and sends it to the second multiplexing module. The second multiplexing module multiplexes the combined optical signal and the optical signal received from the optical fiber link on one optical fiber. Up transmission, forming a closed-loop circuit at the receiving end.
由于第二控制模块需要对环回信号的延时时间进行控制,也要对反馈信号进行延时时间的控制,根据共享随机数判断环回信号与反馈信号的发送顺序,并根据发送顺序进行延时时间的控制调整。Since the second control module needs to control the delay time of the loopback signal, it also needs to control the delay time of the feedback signal, judge the sending order of the loopback signal and the feedback signal according to the shared random number, and delay the delay according to the sending order. Time control adjustment.
所述的时间同步系统具体工作原理如下:The specific working principle of the time synchronization system is as follows:
首先,近端A经过光纤链路接收到远端B发出的环回信号和反馈信号,这两个信号连同第一光脉冲发送模块发送的光脉冲信号,一起传输到第一光电探测器;First, the near-end A receives the loopback signal and the feedback signal sent by the far-end B through the optical fiber link, and these two signals are transmitted to the first photodetector together with the optical pulse signal sent by the first optical pulse sending module;
第一光电探测器转变为电信号发送给时间测量模块,时间测量模块将转变后的环回电信号和反馈电信号分别与本地时钟信号做差,并将两个差结果发送给第一控制模块;The first photodetector is converted into an electrical signal and sent to the time measurement module. The time measurement module makes a difference between the converted loopback electrical signal and the feedback electrical signal and the local clock signal respectively, and sends the two difference results to the first control module. ;
第一控制模块根据随机数判断出:环回信号与近端A本地时间的时间差,以及反馈信号与近端A本地时间的时间差,并计算出由近端A到远端B的传输时间TAB;The first control module determines according to the random number: the time difference between the loopback signal and the local time of the near-end A, and the time difference between the feedback signal and the local time of the near-end A, and calculates the transmission time T AB from the near-end A to the far-end B ;
第一控制模块将传输时间TAB发给延时补偿模块进行延时补偿后,发送到第一光脉冲发送模块,调制成光脉冲信号经第一复用模块发送至光纤链路中;The first control module sends the transmission time T AB to the delay compensation module for delay compensation, and then sends it to the first optical pulse sending module, and modulates it into an optical pulse signal and sends it to the optical fiber link through the first multiplexing module;
远端B的第二复用模块接收光纤链路中的光信号发送给分束器,分束器将信号按照比例分为两束:一束发送给第二光电探测器,经过探测转变为电信号,发送给第二控制模块,恢复出定时信号,实现与近端A时间同步;另一束光信号发送给延时模块对光信号进行延时形成环回信号,然后发送到合束器。The second multiplexing module of remote B receives the optical signal in the optical fiber link and sends it to the beam splitter. The beam splitter divides the signal into two beams according to the proportion: one beam is sent to the second photodetector, and is converted into electrical energy after detection. The signal is sent to the second control module, and the timing signal is recovered to achieve time synchronization with the near-end A; another optical signal is sent to the delay module to delay the optical signal to form a loopback signal, and then send it to the beam combiner.
同时,第二控制模块将第二时钟源提供的秒脉冲电信号进行延时后,发送给第二光脉冲发送模块调制为光信号,形成反馈信号发送至合束器;At the same time, the second control module delays the second pulse electrical signal provided by the second clock source, and sends it to the second optical pulse sending module to modulate it into an optical signal to form a feedback signal and send it to the beam combiner;
合束器将反馈信号和延时信号合为一束光发送给第二复用模块,第二复用模块将合束的光信号传输到光纤链路上形成闭环电路。The beam combiner combines the feedback signal and the delayed signal into a beam of light and sends it to the second multiplexing module, and the second multiplexing module transmits the combined optical signal to the optical fiber link to form a closed-loop circuit.
上述第二控制模块根据共享随机数判断环回信号和反馈信号的发送顺序。The above-mentioned second control module judges the sending order of the loopback signal and the feedback signal according to the shared random number.
所述的时间同步方法为首先,近端A在本地时钟源的时间信息有效时通过光纤链路向远端B发送一个包含本地定时信息(如1PPS,5PPS等)的光脉冲信号;并接收远端B环回的环回信号与反馈信号,这两个信号是通过双方共享的随机数的方式来判断两个信号的排列顺序,且环回信号与反馈信号的波长、脉宽等参数一致;然后,远端B接收到近端A发送的光脉冲信号,一部分用于探测,恢复出与近端A同步的时间信号,另一部分发送回近端A形成环回信号,远端B在时钟源的时间信息有效时产生反馈信号,另发送一个反馈信号;发送环回信号与反馈信号的排列顺序根据双方约定的随机数来进行。最后,近端A测量接收到的环回信号和反馈信号的时间,并将系统发送光脉冲的时延调整为1-TAB,经过TAB时间到达远端B并与近端A的下一个秒脉冲同步;近端A与远端B的时钟源频率相同,但存在一个固定的时间差T1。The time synchronization method is as follows: First, when the time information of the local clock source is valid, the near-end A sends an optical pulse signal containing the local timing information (such as 1PPS, 5PPS, etc.) to the far-end B through the optical fiber link; The loopback signal and feedback signal looped back by end B. These two signals are used to judge the arrangement order of the two signals by means of random numbers shared by both parties, and the parameters such as the wavelength and pulse width of the loopback signal and the feedback signal are consistent; Then, the far end B receives the optical pulse signal sent by the near end A, part of which is used for detection to recover the time signal synchronized with the near end A, and the other part is sent back to the near end A to form a loopback signal, and the far end B is at the clock source When the time information of the loopback signal is valid, a feedback signal is generated, and another feedback signal is sent; the order of sending the loopback signal and the feedback signal is carried out according to the random number agreed by both parties. Finally, the near-end A measures the time of the received loopback signal and the feedback signal, and adjusts the time delay of the optical pulse sent by the system to 1- TAB . Second pulse synchronization; the clock source frequency of near-end A and far-end B is the same, but there is a fixed time difference T 1 .
如图2所示,具体步骤如下:As shown in Figure 2, the specific steps are as follows:
步骤一、近端A在第一时钟源1-1的定时信息有效时,向第一控制模块1-3发送本地的定时信息,第一控制模块1-3控制延时补偿模块1-4将本地时钟源产生的秒脉冲延时时间1-TAB后,发送给第一光脉冲发送模块1-5;Step 1: When the timing information of the first clock source 1-1 is valid, the near-end A sends the local timing information to the first control module 1-3, and the first control module 1-3 controls the delay compensation module 1-4 to After the second pulse generated by the local clock source is delayed by 1-T AB , it is sent to the first optical pulse sending module 1-5;
TAB为由近端A到远端B的单程时间;第一控制模块1-3根据时间测量模块1-6测得的由近端A到远端B的时间TAB控制延时补偿模块1-4进行延时补偿1-TAB;T AB is the one-way time from the near-end A to the far-end B; the first control module 1-3 controls the
步骤二、第一光脉冲发送模块1-5和第一复用模块1-7将延时了1-TAB时间后的秒脉冲信号调制为光信号,通过光纤链路发送给远端B;
调制的光信号包含本地定时信息。The modulated optical signal contains local timing information.
步骤三、远端B接收到近端A发送的光脉冲信号后,第二复用模块2-9将该光脉冲信号发送给分束器2-8;Step 3. After the remote end B receives the optical pulse signal sent by the near end A, the second multiplexing module 2-9 sends the optical pulse signal to the beam splitter 2-8;
分束器2-8将光脉冲信号按照一定比例(如50:50)分成两部分:一束发送给第二光电探测器2-7经过探测转变为电信号,送达远端B的控制模块2-3,在远端B恢复出与近端A同步的定时信号,实现与近端A时间同步;另一束光信号发送给延时模块2-6对光信号进行延时Td1后形成环回信号,发送到合束器2-5;The beam splitter 2-8 divides the optical pulse signal into two parts according to a certain ratio (such as 50:50): one beam is sent to the second photodetector 2-7 and converted into an electrical signal after detection, and then sent to the control module of the remote B 2-3. The timing signal synchronized with the near-end A is recovered at the far-end B to achieve time synchronization with the near-end A; another optical signal is sent to the delay module 2-6 to delay the optical signal by T d1 to form The loopback signal is sent to the beam combiner 2-5;
步骤四、同时,远端B的第二控制模块2-3在第二时钟源2-1定时信息有效时,将第二时钟源2-1提供的秒脉冲电信号延时时间Td2后发送至第二光脉冲发送模块2-4。Step 4: At the same time, when the timing information of the second clock source 2-1 is valid, the second control module 2-3 of the remote end B sends the pulse-per-second electrical signal provided by the second clock source 2-1 after a delay time T d2 . to the second optical pulse sending module 2-4.
步骤五、第二光脉冲发送模块2-4将延时了时间Td2后的秒脉冲电信号调制为光信号,形成反馈信号,送至合束器2-5。Step 5: The second optical pulse sending module 2-4 modulates the second pulse electrical signal after the delay time T d2 into an optical signal, forms a feedback signal, and sends it to the beam combiner 2-5.
步骤六、合束器2-5将环回信号与反馈信号通过第二复用模块2-9发送至光纤链路返回近端A。Step 6: The beam combiner 2-5 sends the loopback signal and the feedback signal to the optical fiber link back to the near-end A through the second multiplexing module 2-9.
第二控制模块2-3根据第二随机数模块2-2提供的随机数来判断出反馈信号与环回信号的发送顺序,从而延时模块2-6来控制延时时间Td1和Td2。The second control module 2-3 determines the sending sequence of the feedback signal and the loopback signal according to the random number provided by the second random number module 2-2, so that the delay module 2-6 controls the delay times T d1 and T d2 .
随机数0和1分别对应两种发送顺序:当Td1小于Td2时环回信号先到,反馈信号后到;当Td1大于Td2时反馈信号先到,环回信号后到;The
步骤七、近端A通过第一复用模块1-7接收远端B发送来的环回光信号与反馈光信号,经过第一光电探测器1-8转变为环回电信号与反馈电信号,发送给时间测量模块1-6;Step 7: The near-end A receives the loopback optical signal and the feedback optical signal sent by the far-end B through the first multiplexing module 1-7, and converts it into the loopback electrical signal and the feedback electrical signal through the first photodetector 1-8 , sent to time measurement modules 1-6;
步骤八、时间测量模块1-6测量环回电信号与反馈电信号的到达时间,并分别与本地的时间作差,将两个差测量结果发送至第一控制模块1-3。Step 8: The time measurement modules 1-6 measure the arrival times of the loopback electrical signal and the feedback electrical signal, make differences with the local time respectively, and send the two difference measurement results to the first control module 1-3.
步骤九、第一控制模块1-3根据第一随机数模块1-2的随机数确定环回信号与反馈信号的顺序后,区分出差测量结果中的环回信号的到达时间与本地的时间差TAB+Td1+TBA,反馈信号的到达时间与本地的时间差T1+Td2+TBA;并进一步得到由近端A到远端B的单程时间TAB。Step 9. After the first control module 1-3 determines the sequence of the loopback signal and the feedback signal according to the random number of the first random number module 1-2, it distinguishes the arrival time of the loopback signal in the travel measurement result and the local time difference T. AB +T d1 +T BA , the time difference between the arrival time of the feedback signal and the local time T 1 +T d2 +T BA ; and further obtain the one-way time T AB from the near end A to the far end B .
T1为第一时钟源与第二时钟源的时间差,Td1为第二控制模块对环回信号的延时,Td2为第二控制模块对反馈信号的延时,TAB为由近端A到远端B的单程时间,TBA为远端B到近端A的单程传输时间。T1 is the time difference between the first clock source and the second clock source, Td1 is the delay of the loopback signal by the second control module, Td2 is the delay of the feedback signal by the second control module, and TAB is the One-way time from A to far-end B, T BA is the one-way transmission time from far-end B to near-end A.
步骤十、将第一光脉冲发送模块的时延调整为1-TAB,经过TAB时间到达远端B后则刚好与近端A的第一时钟源模块的下一个秒脉冲同步。Step 10: Adjust the time delay of the first optical pulse sending module to 1-TAB, after reaching the remote end B after the time of TAB , it is just synchronized with the next second pulse of the first clock source module of the near end A.
下面结合实施例和附图3展示了实施例的时间同步工作示意图,本实施例以本发明的时间同步方法为前提实施,给出了详细实施方式和具体工作流程,但本发明的保护范围不限于下述实施例。A schematic diagram of the time synchronization work of the embodiment is shown below in conjunction with the embodiment and FIG. 3. The embodiment is implemented on the premise of the time synchronization method of the present invention, and provides a detailed implementation manner and a specific work flow, but the protection scope of the present invention is not limited to Limited to the following examples.
附图3、4中,脉冲中的T、R、RT分别表示发送脉冲、接收脉冲、接收并发送脉冲,各个脉冲下为其对应的标号。图中默认将近端A的时钟源当作时间基准,远端B的时钟源与近端A的时钟源不是同步存在一个时间差T1,但二者频率相同。In Figures 3 and 4, T, R, and RT in the pulses respectively represent sending pulses, receiving pulses, and receiving and sending pulses, and the corresponding labels are under each pulse. In the figure, the clock source of near-end A is used as the time reference by default. The clock source of far-end B and the clock source of near-end A are not synchronized and there is a time difference T 1 , but the two have the same frequency.
在时间同步刚开始时,环回信号工作流程为:近端A发送脉冲TA1通过光纤链路到达远端B,远端B接收该信号并将其环回至近端A,则近端A可以计算出整个系统的环回时间TAB+TBA,在延时1-(TAB+TBA)/2后发送第二个同步脉冲TA2;反馈信号工作流程为:远端B在其时钟源秒脉冲有效时,发送反馈信号TB1,经过光纤链路传输,到达近端A,近端A与其本地时间进行对比可以得到传输时间为T1+TBA。At the beginning of time synchronization, the loopback signal workflow is: Near-end A sends a pulse TA1 to far-end B through the optical fiber link, and far-end B receives the signal and loops it back to near-end A, then near-end A can Calculate the loopback time T AB +T BA of the entire system, and send the second synchronization pulse TA2 after a delay of 1-(T AB +T BA )/2; the feedback signal workflow is: remote B is in its clock source When the second pulse is valid, the feedback signal TB1 is sent, transmitted through the optical fiber link, and arrives at the near-end A. By comparing the near-end A with its local time, the transmission time can be obtained as T 1 +T BA .
当环回信号在反馈信号之前发出时即Td1<Td2,如图3中1~2s中所示。环回信号工作流程为:近端A发出的光脉冲TA2在经过光纤链路传输后,在经过TAB时间传输后到达远端B,远端B将其延时Td1后形成环回信号返回近端A。近端A与本地时间对比得到环回信号与本地时间差TRL为TAB+Td1+TBA;反馈信号工作流程为:远端B在其时钟源脉冲有效时,在经过Td2延时后发送反馈脉冲TB2,TB2脉冲在到达近端A时,近端A与本地时间进行比对得到环回信号与本地时间差TFL为T1+Td2+TBA,进而计算得到由近端A到远端B的单程传输时间TAB,并延时1-TAB后发送脉冲TA3。When the loopback signal is sent out before the feedback signal, that is, T d1 <T d2 , as shown in 1-2s in FIG. 3 . The workflow of the loopback signal is: after the optical pulse TA2 sent by the near-end A is transmitted through the optical fiber link, it reaches the far-end B after the time of TAB transmission, and the far-end B delays it by T d1 to form a loopback signal and returns. Proximal A. Comparing the near-end A and the local time, the difference T RL between the loopback signal and the local time is T AB +T d1 +T BA ; the feedback signal workflow is: when the clock source pulse of the far-end B is valid, after the delay of T d2 Send the feedback pulse TB2, when the TB2 pulse reaches the near-end A, the near-end A and the local time are compared to obtain the loopback signal and the local time difference T FL is T 1 +T d2 +T BA , and then calculate from the near-end A to The one-way transmission time T AB of the remote end B, and the pulse TA3 is sent after a delay of 1-TAB.
当环回信号在反馈信号之后发出时即Td1>Td2,如图4中1~2s中所示。环回信号工作流程为:近端A发出的光脉冲TA2在经过光纤链路传输后,在经过TAB时间传输后到达远端B,远端B将其延时Td1后形成环回信号返回近端A。近端A与本地时间对比得到环回信号与本地时间差TRL为TAB+Td1+TBA;反馈信号工作流程为:远端B在其时钟源脉冲有效时,在经过Td2延时后发送反馈脉冲TB2,TB2脉冲在到达近端A时,近端A与本地时间进行比对得到环回信号与本地时间差TFL为T1+Td2+TBA,进而计算得到由近端A到远端B的单程传输时间TAB,并延时1-TAB后发送脉冲TA3。When the loopback signal is sent out after the feedback signal, that is, T d1 >T d2 , as shown in 1-2s in FIG. 4 . The workflow of the loopback signal is: after the optical pulse TA2 sent by the near-end A is transmitted through the optical fiber link, it reaches the far-end B after the time of TAB transmission, and the far-end B delays it by T d1 to form a loopback signal and returns. Proximal A. Comparing the near-end A and the local time, the difference T RL between the loopback signal and the local time is T AB +T d1 +T BA ; the feedback signal workflow is: when the clock source pulse of the far-end B is valid, after the delay of T d2 Send the feedback pulse TB2, when the TB2 pulse reaches the near-end A, the near-end A and the local time are compared to obtain the loopback signal and the local time difference T FL is T 1 +T d2 +T BA , and then calculate from the near-end A to The one-way transmission time T AB of the remote end B, and the pulse TA3 is sent after a delay of 1-TAB.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011487134.2A CN112713953B (en) | 2020-12-16 | 2020-12-16 | Time synchronization device, system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011487134.2A CN112713953B (en) | 2020-12-16 | 2020-12-16 | Time synchronization device, system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112713953A CN112713953A (en) | 2021-04-27 |
CN112713953B true CN112713953B (en) | 2022-07-12 |
Family
ID=75543684
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011487134.2A Active CN112713953B (en) | 2020-12-16 | 2020-12-16 | Time synchronization device, system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112713953B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2627879B (en) * | 2021-05-04 | 2025-04-16 | Canon Kk | Controlling time synchronisation in a wireless network |
CN113328798B (en) * | 2021-06-22 | 2023-04-28 | 四川轻化工大学 | Information security detection method for short-distance light quantum transmission channel |
CN113645004B (en) * | 2021-10-14 | 2021-12-17 | 成都金诺信高科技有限公司 | Comparison method of high-precision bidirectional time-frequency comparison system based on pulse width modulation |
CN115225246B (en) * | 2022-07-11 | 2023-12-01 | 北京邮电大学 | Phase modulation two-way time synchronization device, method and system |
CN115225247B (en) * | 2022-07-11 | 2023-12-01 | 北京邮电大学 | Phase modulation loopback time synchronization device, method and system |
CN120226298A (en) * | 2022-12-20 | 2025-06-27 | 华为技术有限公司 | Communication method, device and system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101515831A (en) * | 2008-02-22 | 2009-08-26 | 杭州华三通信技术有限公司 | Method, system and device for time synchronous transfer |
EP3499822A1 (en) * | 2017-12-18 | 2019-06-19 | NXP USA, Inc. | On chip adaptive jitter reduction hardware and method for lvds systems |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105933085B (en) * | 2016-04-27 | 2018-06-12 | 西南民族大学 | The method for measuring asymmetric fiber loop chain circuit transmission time delay |
US10706900B2 (en) * | 2018-11-01 | 2020-07-07 | Intel Corporation | Data and clock synchronization and variation compensation apparatus and method |
-
2020
- 2020-12-16 CN CN202011487134.2A patent/CN112713953B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101515831A (en) * | 2008-02-22 | 2009-08-26 | 杭州华三通信技术有限公司 | Method, system and device for time synchronous transfer |
EP3499822A1 (en) * | 2017-12-18 | 2019-06-19 | NXP USA, Inc. | On chip adaptive jitter reduction hardware and method for lvds systems |
Also Published As
Publication number | Publication date |
---|---|
CN112713953A (en) | 2021-04-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112713953B (en) | Time synchronization device, system and method | |
CN110224776B (en) | High-precision optical fiber time transfer system and method | |
CN105634643B (en) | A kind of optical fiber time Frequency Transfer method, apparatus and system based on two-way spread spectrum ranging | |
CN104506269B (en) | High-precision optical fiber two-way time transfer method and system based on loopback method | |
CN104168077B (en) | High accuracy optical fiber bidirectional time comparison method and system | |
CN113872722B (en) | Bidirectional transceiver with time synchronization | |
CN110336612B (en) | Distributed time-frequency joint transmission system and transmission method of local optical fiber ring network | |
EP2213019B1 (en) | Optical communication | |
CN105933085B (en) | The method for measuring asymmetric fiber loop chain circuit transmission time delay | |
CN103546224B (en) | Single-fiber ultrahigh-precision time transmission method | |
US9172525B2 (en) | Method and device for compensating for time path | |
CN109039453A (en) | A kind of measuring system and measurement method of transmission fiber delay | |
CN106603158A (en) | High-precision distributed optical fiber frequency transfer method | |
CN109257097A (en) | High-precision distribution type fiber-optic wideband frequency transmission system and method | |
CN115225247B (en) | Phase modulation loopback time synchronization device, method and system | |
Hu et al. | A 300-kilometer optical fiber time transfer using bidirectional TDM dissemination | |
CN112702134B (en) | Bidirectional time synchronization device, system and method | |
CN115225246B (en) | Phase modulation two-way time synchronization device, method and system | |
CN109921872B (en) | Optical fiber time transfer system and transfer method | |
CN105610535A (en) | Method and system for synchronizing round trip time of EPON access service | |
CN109981211A (en) | Distribution type fiber-optic temporal frequency combines transmission system and transmission method | |
CN103427900A (en) | Method, device and system for asymmetrical compensation of optical fiber | |
CN106034003B (en) | Method based on double-fiber transmitting ultraprecise frequency time signal | |
CN117176283B (en) | Multi-user high-precision quantum time synchronization method based on wavelength division multiplexing | |
CN110176974A (en) | A kind of data sampling synchronous method, device and its unit of wide area relay protection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |