WO2017054554A1 - 一种时钟同步方法、装置及通信设备 - Google Patents

一种时钟同步方法、装置及通信设备 Download PDF

Info

Publication number
WO2017054554A1
WO2017054554A1 PCT/CN2016/090181 CN2016090181W WO2017054554A1 WO 2017054554 A1 WO2017054554 A1 WO 2017054554A1 CN 2016090181 W CN2016090181 W CN 2016090181W WO 2017054554 A1 WO2017054554 A1 WO 2017054554A1
Authority
WO
WIPO (PCT)
Prior art keywords
clock
time
software
reception
data transmission
Prior art date
Application number
PCT/CN2016/090181
Other languages
English (en)
French (fr)
Inventor
邓红波
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017054554A1 publication Critical patent/WO2017054554A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter

Definitions

  • This document relates to but not limited to the field of communication technologies, and in particular, to a clock synchronization method, device and communication device.
  • GSM Global System for Mobile Communications
  • WCDMA Wideband Code Division Multiple Access
  • CDMA Code Division Multiple Access
  • TD-SCDMA Time Division Synchronous Code Division Multiple Access
  • WiMax Worldwide Interoperability for Microwave Access
  • FDD-LTE frequency division duplex-long-term evolution technology
  • BBU Baseband Unit
  • RRU Remote Radio Unit
  • a clock module is implemented in each device, and the clock module synchronizes with the clock of the upper-level clock, and the clock signal generated by the clock module is introduced to the device to be synchronously transmitted with the peer device.
  • nodes that receive data frames that require special hardware design to handle these clock signals rather than a general purpose server, personal computer (PC), or virtual machine.
  • Embodiments of the present invention provide a clock synchronization method, device, and communication device, which can simplify hardware manufacturing, use, and maintenance of data transmission and reception relative clock synchronization.
  • an embodiment of the present invention provides a clock synchronization method, including:
  • the determining the current time of the software clock after the data is sent and received includes: performing, by the clock interrupt generated by the timer, data transmission and reception on the node that performs data transmission and reception, and the timing is performed after each clock interruption.
  • the timing period of the device is accumulated at the initial time of the software clock to determine the resulting accumulated result as the current time of the software clock after each data transmission and reception.
  • the adjusting the rhythm of the data transmission and reception includes:
  • the increasing or the decreasing number of data transceiving times is equal to a ratio of an absolute value of the time difference to a time interval of two adjacent data transceiving.
  • the determining, by the reference clock source, a software clock initial time of a node that needs to perform data transmission and reception includes:
  • the reference clock source is located at the node that needs to perform data transmission and reception, determining that the software clock initial time is equal to the time of the reference clock source;
  • the reference clock source is not in the node that needs to perform data transmission and reception, synchronize the local clock of the node that needs to perform data transmission and reception to the reference clock source, and determine that the software clock initial time is equal to the synchronized local clock.
  • the reference clock source includes one or more of the following: a 1588 protocol clock source, a NTP (network time protocol) clock, a GPS (Global Positioning System) clock source, and an upper line clock. .
  • an embodiment of the present invention further provides a clock synchronization apparatus, including:
  • the initial time determining unit is configured to determine a software clock initial time of the node that needs to perform data transmission and reception according to the reference clock source;
  • the current time determining unit is configured to determine a current time of the software clock after the data is sent and received according to the determined initial time of the software clock and the rhythm of data transmission and reception;
  • an adjusting unit configured to adjust a rhythm of the data transceiving according to a time difference between a current time of the software clock and a current time of the reference clock source, so that an absolute value of the time difference is less than a preset threshold.
  • the current time determining unit is set to:
  • the adjusting unit is configured to:
  • the number of times the data transmission and reception is increased or decreased is equal to a ratio of an absolute value of the time difference to a time interval of two adjacent data transmission and reception.
  • the initial time determining unit is set to:
  • the reference clock source is located at the node that needs to perform data transmission and reception, determining that the software clock initial time is equal to the time of the reference clock source;
  • the reference clock source is not in the node that needs to perform data transmission and reception, synchronize the local clock of the node that needs to perform data transmission and reception to the reference clock source, and determine that the software clock initial time is equal to the synchronized local clock.
  • the clock synchronization method, device and communication device provided by the embodiments of the present invention can determine the software clock initial time of the node that needs to perform data transmission and reception according to the reference clock source, and determine the data after the data is sent and received according to the software clock initial time and the data transmission and reception rhythm.
  • the current time of the software clock then adjusting the rhythm of the data transmission and reception according to the time difference between the current time of the software clock and the current time of the reference clock source, so that the absolute value of the time difference is less than the preset threshold. In this way, when data is transmitted and received, the time can be measured according to the rhythm of data transmission and reception.
  • the technical solution provided by the embodiment of the present invention includes: determining a software clock initial time of a node that needs to perform data transmission and reception according to a reference clock source; determining data transmission and reception according to the determined software clock initial time and data transmission and reception rhythm The current time of the software clock; adjust the rhythm of data transmission and reception according to the time difference between the current time of the software clock and the current time of the reference clock source, so that the absolute value of the time difference is less than the preset threshold.
  • the embodiment of the invention realizes clock synchronization under the premise of no special design hardware, and simplifies the manufacturing, use and maintenance manner of communication devices such as a base station controller, a baseband processing unit (BBU) and a radio remote unit (RRU).
  • FIG. 1 is a flowchart of a clock synchronization method according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of maintaining precise time on a general-purpose server, a PC, or a virtual machine according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of maintaining precise time with GPS on a clock module according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of line clock maintenance time on a clock module according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of maintenance of TimeB when TimeA and TimeB are on the same node according to an embodiment of the present invention
  • TimeB is a schematic diagram of maintenance of TimeB when TimeA and TimeB are not on the same node according to an embodiment of the present invention
  • TimeA and TimeB are not on the same node according to an embodiment of the present invention
  • TimeA and TimeB are on the same node
  • FIG. 10 is a flowchart of correcting the number of timeouts generated by a high-precision timer according to an embodiment of the present invention.
  • TimeA and TimeB are not on the same node according to an embodiment of the present invention
  • TimeA and TimeB are not on the same node according to an embodiment of the present invention
  • FIG. 13 is a schematic structural diagram of a clock synchronization apparatus according to an embodiment of the present invention.
  • an embodiment of the present invention provides a clock synchronization method, including:
  • Step (Step S) 11 determining a software clock initial time of a node that needs to perform data transmission and reception according to a reference clock source;
  • the preset threshold is usually set to one period of the timer maintained on the node that transmits and receives data, and can be determined by a person skilled in the art based on experience or related data analysis.
  • the clock synchronization method provided by the embodiment of the present invention can determine the software clock initial time of the node that needs to perform data transmission and reception according to the reference clock source, and according to the initial time of the software clock and the data collection.
  • the rhythm of the data is determined, and the current time of the software clock after the data is sent and received is determined; then, according to the time difference between the current time of the software clock and the current time of the reference clock source, the rhythm of the data transmission and reception is adjusted so that the absolute value of the time difference is less than the preset threshold. In this way, when data is transmitted and received, the time can be measured according to the rhythm of data transmission and reception.
  • the global positioning system in the case of a current clock module, in order to make the most use of the old device, the global positioning system (GPS) can be used on the original clock module.
  • the module receives the GPS time to maintain the precise time TimeA, or maintains the precise time TimeA by synchronizing the line clock to the upper clock module on the clock module as shown in FIG.
  • the reference clock source may be located on one or several nodes.
  • the location of the reference clock source is different, and the method for determining the software time of the node is also different.
  • determining, by the reference clock source, a software clock initial time of a node that needs to perform data transceiving includes:
  • the reference clock source is located at a node that needs to perform data transmission and reception, determine that the initial time of the software clock is equal to the time of the reference clock source;
  • TimeA the time of the reference clock source
  • TimeB the time of the software clock
  • the time synchronization server receives the time synchronization request, and records the time T2 of the current TimeA;
  • the time synchronization server reads the time T3 of the TimeA and responds to the time synchronization client, and the response includes T1, T2, T3;
  • the time synchronization client receives the response of the time synchronization server, records the time T4 of the current TimeB, and takes T1, T2, T3 from the response message;
  • the current time of the software clock after data transmission and reception needs to be determined according to the initial time of the software clock and the rhythm of data transmission and reception.
  • the method for determining the current time of the software clock may include:
  • the clock interrupt generated by the timer is used for data transmission and reception, and after each clock interruption, the timer period of the timer is accumulated on the initial time of the software clock, and the accumulated result is determined as each time.
  • the current time of the software clock after data is sent and received.
  • a software clock TimeB is maintained by a periodic high precision timer on a node that needs to synchronously transmit and receive data frames with the peer device.
  • the period t1 of the set high-precision timer is also different according to different standard standards and needs. After the high-precision timer expires, TimeB is incremented by t1, thereby updating the historical maximum value (TimeBmax) of TimeB.
  • the time of the software clock can be periodically compared with the time of the reference clock source to obtain the time difference between the two, and the time difference is obtained in step 13 Adjust the data transmission and reception rhythm to improve the time difference.
  • step 13 adjusting the rhythm of the data transceiving according to the time difference between the current time of the software clock and the current time of the reference clock source, so that the absolute value of the time difference is less than the preset threshold may include:
  • time difference between the current time of the software clock and the current time of the reference clock source is greater than zero, it is determined that the software clock is faster and the number of times of data transmission and reception is reduced.
  • the increased or decreased number of data transceiving is equal to the ratio of the absolute value of the time difference to the time interval of the two adjacent data transceiving.
  • a clock interrupt is generated every 0.1 milliseconds, and the node uses the clock interrupt to perform the opposite end. Synchronize for data transmission and reception.
  • T the period of the timer maintained on the node for transmitting and receiving data
  • T the period of the timer maintained on the node for transmitting and receiving data
  • the calculated software clock current time will be larger than the reference time, that is, the software clock.
  • the time difference between the current time and the current time of the reference clock source is greater than zero; for the node with a slow crystal oscillator, the calculated software clock current time is smaller than the reference time, that is, the software clock current time and the reference clock source The time difference of the current time is less than zero.
  • the number of data transmission and reception times will be too large in the same time. Therefore, it is necessary to reduce the number of data transmission and reception.
  • the number of data transmission and reception will be less in the same time. Need to reduce the number of data transmission and reception.
  • the current time of the software clock is adjusted accordingly, so that the time difference between the current time of the software clock and the current time of the reference clock source is less than a preset threshold.
  • the preset threshold may be set according to different clock synchronization precision requirements. The smaller the preset threshold is, the more accurate the synchronization is, but the more times the adjustment needs to be performed, the embodiment of the present invention does not limit. For example, in one embodiment of the invention, the data is received within 1 second. The number of adjustments is approximately 2 to 8 times.
  • the software clock TimeB can have two different maintenance modes depending on the node where the software clock is located. See Figure 6 and Figure 7:
  • the maintenance of TimeB may include the following steps:
  • the maintenance of TimeB may include:
  • the time synchronization client on the node where TimeB is located sends a request for obtaining time to the time synchronization server on the node where TimeA is located;
  • the time synchronization server receives the time of the time after receiving the request
  • the time synchronization server sends the read time to the time synchronization client
  • the time synchronization client takes this time as the initial time of TimeB;
  • the reference clock source Time A is relatively accurate, and the software clock TimeB of the node may be relatively inaccurate. Therefore, it is necessary to periodically correct TimeB with TimeA (for example, once every 2 seconds), and the corrected value is recorded as TimeB1. , that is, set TimeB to TimeB1. If TimeB and TimeA are on the same node, use TimeA to correct TimeB directly. If TimeB and TimeA are not on the same node, synchronize TimeA to the node where TimeB is located, and use Time obtained by synchronization to correct TimeB.
  • Figure 5 shows.
  • FIG. 8 is an implementation diagram in this case, and the implementation method is as follows:
  • the local crystal oscillator maintains TimeA through its own oscillation
  • modifying the timeout period generated by the high-precision timer may include the following steps:
  • TimeB is greater than TimeBmax, it means that TimeB is slower or equal to TimeA (when the difference between TimeB and TimeBmax is equal to 1 high-precision timer period, it means equal), then trigger ((TimeB-TimeBmax)/high-precision timer period) Send and receive the packet process, and set TimeBmax to the value of TimeB, jump to 1;
  • TimeB is less than TimeBmax, indicating that TimeB is faster than TimeA, this time does not trigger the packet transmission and processing process, TimeBmax remains unchanged, and jumps to 1.
  • FIG. 9 is an implementation diagram in this case, and its implementation method is as follows:
  • 1.1588slave (or NTP client) performs time synchronization to the 1588master (or NTP server) outside the device through the 1588 protocol (or NTP protocol).
  • the local crystal oscillator maintains TimeA through its own oscillation
  • Time synchronization between TimeB and TimeA is performed by using the synchronization method in the TimeB and TimeA time synchronization diagrams shown in FIG. 5;
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • a clock module is provided in the communication device, and the clock is synchronized by the line clock or the GPS, but the other nodes are general-purpose servers, PCs, or virtual machines, and the nodes that need to synchronously transmit and receive data frames with the peer device are also general-purpose servers and PCs. Or a virtual machine. In this scenario, it is usually to use the existing clock module in the current device to maximize the value of the existing device. In the case of only the line clock and no GPS, it is only suitable for communication devices that only require clock synchronization with the peer device, but does not require time synchronization with the peer device. 11 and 12 are implementation diagrams in this case, and the implementation method is as follows:
  • the GPS module receives time (or clock) synchronization from the GPS (or superior clock module);
  • the clock crystal maintains TimeA through its own oscillation
  • Time synchronization between TimeB and TimeA is performed by using the synchronization method in the TimeB and TimeA time synchronization diagrams shown in FIG. 5;
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the clock synchronization method.
  • the embodiment of the present invention further provides a clock synchronization apparatus, including:
  • the initial time determining unit 901 is configured to determine a software clock initial time of the node that needs to perform data transceiving according to the reference clock source;
  • the current time determining unit 902 is configured to determine a current time of the software clock after data transmission and reception according to the determined software clock initial time and the rhythm of data transceiving;
  • the adjusting unit 903 is configured to adjust a rhythm of data transceiving according to a time difference between a current time of the software clock and a current time of the reference clock source, so that an absolute value of the time difference is less than a preset threshold.
  • the initial time determining unit 901 can determine the software clock initial time of the node that needs to perform data transmission and reception according to the reference clock source, and the current time determining unit 902 can be based on the software clock initial time and the rhythm of data transmission and reception.
  • the current time of the software clock after the data is sent and received is determined; the adjusting unit 903 can adjust the rhythm of the data transmission and reception according to the time difference between the current time of the software clock and the current time of the reference clock source, so that the absolute value of the time difference is less than a preset threshold. In this way, when data is transmitted and received, the time can be measured according to the rhythm of data transmission and reception.
  • the data transmission and reception rhythm is controlled by the local clock, after a plurality of data transmission and reception, a small error between the local clock and the reference clock is gradually accumulated.
  • the accumulated error is the time difference between the current time of the software clock and the current time of the reference clock source. Since the time measurement of the software clock is related to the data transmission and reception rhythm, the current time of the software clock can be adjusted accordingly by adjusting the data transmission and reception rhythm, so that the time difference is always limited to a small range, so that the node and the opposite node reach The clock synchronization of data transmission and reception.
  • the current time determining unit 902 is configured to:
  • the clock interrupt generated by the timer is used for data transmission and reception, and after each clock interruption, the timer period of the timer is accumulated on the initial time of the software clock, and the accumulated result is determined as each time.
  • the current time of the software clock after data is sent and received.
  • the adjusting unit 903 is configured to:
  • time difference between the current time of the software clock and the current time of the reference clock source is greater than zero, it is determined that the software clock is faster and the number of times of data transmission and reception is reduced.
  • the increased or decreased number of data transceiving is equal to the ratio of the absolute value of the time difference to the time interval of the two adjacent data transceiving.
  • the initial time determining unit 901 is configured to:
  • the embodiment of the present invention further provides a communication device, which includes any of the clock synchronization devices provided in the foregoing embodiments, and thus can achieve corresponding beneficial effects.
  • a communication device which includes any of the clock synchronization devices provided in the foregoing embodiments, and thus can achieve corresponding beneficial effects.
  • each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, being executed by a processor and stored in a memory. Programs/instructions to implement their respective functions.
  • the invention is not limited to any specific form of combination of hardware and software.
  • the above technical solution realizes clock synchronization without special design hardware, and simplifies the manufacture, use and maintenance of communication devices such as a base station controller, a baseband processing unit (BBU), and a radio remote unit (RRU).
  • BBU baseband processing unit
  • RRU radio remote unit

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Electric Clocks (AREA)

Abstract

一种时钟同步方法、装置及通信设备,包括:根据参考时钟源确定需要进行数据收发的节点的软件时钟初始时间;根据确定的软件时钟初始时间以及数据收发的节律,确定数据收发后的软件时钟当前时间;根据软件时钟当前时间与参考时钟源的当前时间的时间差,调整数据收发的节律,以使时间差的绝对值小于预设阈值。本发明实施例实现了无需特别设计硬件的前提下时钟同步,简化了基站控制器、基带处理单元(BBU)和射频拉远单元(RRU)等通讯设备的制造、使用和维护方式。

Description

一种时钟同步方法、装置及通信设备 技术领域
本文涉及但不限于通讯技术领域,尤其涉及一种时钟同步方法、装置及通信设备。
背景技术
在移动通讯网络(包括全球移动通信系统(GSM)、宽带码分多址(WCDMA)、码分多址(CDMA)、时分同步码分多址(TD-SCDMA)、全球微波互联接入(WiMax)、频分双工-长期演进技术、(FDD-LTE)时分双工-TDD-LTE等)中,不管是基站、基站控制器、室内基带处理单元(BBU,Building Baseband Unit)和射频拉远单元(RRU,Remote Radio Unit),虽然有了一定的接收和发送缓存能力,但是为了满足移动通讯网络用户的使用感受,还是要求数据帧要有比较好的及时性。因此,要求用于收发数据的时钟中断能够在移动通讯网络中和对端设备保持同步,不能有大的误差和累积误差。
为了实现时钟同步,通常的做法是在每个设备中实现一个时钟模块,该时钟模块和上一级时钟进行时钟同步,同时将该时钟模块产生的时钟信号引入到需要和对端设备进行同步发送和接收数据帧的节点,这些节点为了能够处理这些时钟信号,就需要特别的硬件设计,而不能采用通用的服务器、个人计算机(PC)或者虚拟机来实现。
上述设计导致了目前基站控制器、BBU、RRU等需要和对端进行时钟同步的设备中的所有节点都需要采用设备供应商特别设计的硬件,使得基站控制器、BBU和RRU等通讯设备的制造、使用和维护处理复杂且处理效率低。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例提供一种时钟同步方法、装置及通信设备,能够简化数据收发相对端时钟同步的硬件制造、使用和维护。
一方面,本发明实施例提供一种时钟同步方法,包括:
根据参考时钟源确定需要进行数据收发的节点的软件时钟初始时间;
根据确定的所述软件时钟初始时间以及数据收发的节律,确定数据收发后的软件时钟当前时间;
根据所述软件时钟当前时间与所述参考时钟源的当前时间的时间差,调整所述数据收发的节律,以使所述时间差的绝对值小于预设阈值。
可选的,所述确定数据收发后的软件时钟当前时间包括:在进行数据收发的所述节点上,通过定时器产生的时钟中断进行数据收发,并在每次时钟中断后,将所述定时器的定时周期累加在所述软件时钟初始时间上,以将所得的累加结果确定为每次数据收发后的软件时钟当前时间。
可选的,所述调整所述数据收发的节律包括:
如果所述软件时钟当前时间与所述参考时钟源的当前时间的时间差小于零,确定所述软件时钟偏慢,增加所述数据收发的次数;
如果所述软件时钟当前时间与所述参考时钟源的当前时间的时间差大于零,确定所述软件时钟偏快,减少所述数据收发的次数。
可选的,所述增加或所述减少的数据收发次数等于所述时间差的绝对值与相邻两次数据收发的时间间隔的比值。
可选的,所述根据参考时钟源确定需要进行数据收发的节点的软件时钟初始时间包括:
如果所述参考时钟源位于所述需要进行数据收发的节点,确定所述软件时钟初始时间等于所述参考时钟源的时间;
如果所述参考时钟源不在所述需要进行数据收发的节点,将所述需要进行数据收发的节点的本地时钟同步到所述参考时钟源,确定所述软件时钟初始时间等于同步后的所述本地时钟。
可选的,所述参考时钟源包括以下一种或多种:1588协议钟源;NTP(network time protocol,网络时间协议)时钟;GPS(Global Positioning System,全球定位系统)时钟源;上级线路时钟。
另一方面,本发明实施例还提供一种时钟同步装置,包括:
初始时间确定单元,设置为根据参考时钟源确定需要进行数据收发的节点的软件时钟初始时间;
当前时间确定单元,设置为根据确定的所述软件时钟初始时间以及数据收发的节律,确定数据收发后的软件时钟当前时间;
调整单元,设置为根据所述软件时钟当前时间与所述参考时钟源的当前时间的时间差,调整所述数据收发的节律,以使所述时间差的绝对值小于预设阈值。
可选的,所述当前时间确定单元是设置为:
在进行数据收发的所述节点上,通过定时器产生的时钟中断进行数据收发,并在每次时钟中断后,将所述定时器的定时周期累加在所述软件时钟初始时间上,将所得的累加结果确定为每次数据收发后的所述软件时钟当前时间。
可选的,所述调整单元是设置为:
如果所述软件时钟当前时间与所述参考时钟源的当前时间的时间差小于零,确定所述软件时钟偏慢,增加所述数据收发的次数;
如果所述软件时钟当前时间与所述参考时钟源的当前时间的时间差大于零,确定所述软件时钟偏快,减少所述数据收发的次数。
可选的,增加或减少的数据收发次数等于所述时间差的绝对值与相邻两次数据收发的时间间隔的比值。
可选的,所述初始时间确定单元是设置为:
如果所述参考时钟源位于所述需要进行数据收发的节点,确定所述软件时钟初始时间等于所述参考时钟源的时间;
如果所述参考时钟源不在所述需要进行数据收发的节点,将所述需要进行数据收发的节点的本地时钟同步到所述参考时钟源,确定所述软件时钟初始时间等于同步后的所述本地时钟。
另一方面,本发明实施例还提供一种通信设备,包括本发明实施例提供 的任一种时钟同步装置。
本发明实施例提供的时钟同步方法、装置及通信设备,能够根据参考时钟源确定需要进行数据收发的节点的软件时钟初始时间,并根据软件时钟初始时间以及数据收发的节律,确定数据收发后的软件时钟当前时间;然后根据软件时钟当前时间与所述参考时钟源的当前时间的时间差,调整数据收发的节律,以使时间差的绝对值小于预设阈值。这样,在进行数据收发时,可以按照数据收发的节律计量时间,由于数据收发节律是由本地时钟控制的,经过多次数据收发的积累,本地时钟与参考时钟之间微小的误差也逐渐积累,积累的误差即为软件时钟当前时间与参考时钟源的当前时间之间的时间差。由于软件时钟的时间计量与数据收发节律有关,通过对数据收发节律的调整能够使软件时钟当前时间也相应调整,从而将上述时间差始终限制在很小的范围内,使本节点和对端节点达到了数据收发的时钟同步。
与相关技术相比,本发明实施例提供的技术方案,包括:根据参考时钟源确定需要进行数据收发的节点的软件时钟初始时间;根据确定的软件时钟初始时间以及数据收发的节律,确定数据收发后的软件时钟当前时间;根据软件时钟当前时间与参考时钟源的当前时间的时间差,调整数据收发的节律,以使时间差的绝对值小于预设阈值。本发明实施例实现了无需特别设计硬件的前提下时钟同步,简化了基站控制器、基带处理单元(BBU)和射频拉远单元(RRU)等通讯设备的制造、使用和维护方式。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1是本发明实施例提供的时钟同步方法的一种流程图;
图2是本发明实施例在通用服务器、PC或者虚拟机上维护精确时间的示意图;
图3是本发明实施例在时钟模块上用GPS维护精确时间的示意图;
图4是本发明实施例在时钟模块上用线路时钟维护时间的示意图;
图5是本发明实施例TimeA和TimeB在同一个节点上时TimeB的维护示意图;
图6是本发明实施例TimeA和TimeB不在同一个节点上时TimeB的维护示意图;
图7是本发明实施例TimeB和TimeA时间同步流程示意图;
图8是本发明实施例采用1588(或者NTP),TimeA和TimeB不在同一个节点上时的时钟同步实施图;
图9是本发明实施例采用1588(或者NTP),TimeA和TimeB在同一个节点上时的时钟同步实施图;
图10是本发明实施例对高精度定时器产生的超时次数进行修正流程图;
图11是本发明实施例采用GPS,TimeA和TimeB不在同一个节点上时的时钟同步实施图;
图12是本发明实施例采用线路时钟,TimeA和TimeB不在同一个节点上时的时钟同步实施图;
图13是本发明实施例提供的时钟同步装置的一种结构示意图。
本发明的实施方式
下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
如图1所示,本发明实施例提供一种时钟同步方法,包括:
步骤(Step,S)11,根据参考时钟源确定需要进行数据收发的节点的软件时钟初始时间;
S12,根据确定的软件时钟初始时间以及数据收发的节律,确定数据收发后的软件时钟当前时间;
S13,根据软件时钟当前时间与参考时钟源的当前时间的时间差,调整数据收发的节律,以使时间差的绝对值小于预设阈值。这里,预设阈值通常设置为收发数据的节点上维护的定时器的一个周期,本领域技术人员可以根据经验或相关数据分析确定。
本发明实施例提供的时钟同步方法,能够根据参考时钟源确定需要进行数据收发的节点的软件时钟初始时间,并根据软件时钟初始时间以及数据收 发的节律,确定数据收发后的软件时钟当前时间;然后根据软件时钟当前时间与参考时钟源的当前时间的时间差,调整数据收发的节律,以使时间差的绝对值小于预设阈值。这样,在进行数据收发时,可以按照数据收发的节律计量时间,由于数据收发节律可以由本地时钟控制的,经过多次数据收发的积累,本地时钟与参考时钟之间微小的误差也逐渐积累,积累的误差即为软件时钟当前时间与参考时钟源的当前时间之间的时间差。由于软件时钟的时间计量与数据收发节律有关,通过对数据收发节律的调整能够使软件时钟当前时间也相应调整,从而将上述时间差始终限制在很小的范围内,使本节点和对端节点达到了数据收发的时钟同步。
本实施例中,参考时钟源包括在通讯设备的某个或者某些节点上维护的比较精确的时钟,参考时钟源的时间可以为TimeA。例如,如图2所示,在本发明的一个实施例中,可以在通用服务器、PC或者虚拟机上使用1588从机(slave)(或者NTP客户端)向外部1588主机(master)(或者NTP服务器)进行时间同步的方式来维护精确时间TimeA。
如图3所示,在本发明的另一个实施例中,在当前已有时钟模块的情况下,为了利用旧设备让其发挥最大价值,可以在原有的时钟模块上使用全球定位系统(GPS)模块接收GPS时间的方式来维护精确时间TimeA,或者是通过如图4所示的在时钟模块上使用线路时钟向上级时钟模块同步的方式来维护精确时间TimeA。
可选的,由于一台设备具有一个或者多个节点,参考时钟源可以位于其中一个或者几个节点上,在步骤11中,参考时钟源的位置不同,节点的软件时间的确定方法也有所不同。可选的,在本发明的一个实施例中,根据参考时钟源确定需要进行数据收发的节点的软件时钟初始时间包括:
如果参考时钟源位于需要进行数据收发的节点,确定软件时钟初始时间等于参考时钟源的时间;
如果参考时钟源不在需要进行数据收发的节点,将需要进行数据收发的节点的本地时钟同步到参考时钟源,确定软件时钟初始时间等于同步后的本地时钟。
如图5所示,参考时钟源的时间记为TimeA,软件时钟的时间为TimeB。 当TimeB和TimeA不在同一个节点上时,TimeB和TimeA的同步方法如下:
1.时间同步客户端向时间同步服务端发送时间同步请求,请求中包含了TimeB的当前时间T1;
2.时间同步服务端接收到时间同步请求,记录下当前TimeA的时间T2;
3.时间同步服务端读取TimeA的时间T3,并向时间同步客户端应答,应答中包含了T1、T2、T3;
4.时间同步客户端接收到时间同步服务端的应答,记录当前TimeB的时间T4,并从应答消息中取出T1、T2、T3;
5.根据T1、T2、T3、T4计算链路时延(delay)以及TimeB与TimeA的时间偏差(offset,时间偏差简称为时间差),并根据计算结果校正TimeB,以此达到与TimeA的时间同步。计算方法遵循1588V2规范中的算法:
a=T2-T1;
b=T4-T3;
Figure PCTCN2016090181-appb-000001
Figure PCTCN2016090181-appb-000002
确定了软件时钟初始时间后,在步骤12中,需要根据软件时钟初始时间以及数据收发的节律,确定数据收发后的软件时钟当前时间。在本发明的一个可选实施例中,软件时钟当前时间的确定方法可包括:
在进行数据收发的节点上,通过定时器产生的时钟中断进行数据收发,并在每次时钟中断后,将定时器的定时周期累加在软件时钟初始时间上,将所得的累加结果确定为每次数据收发后的软件时钟当前时间。
例如,在本发明的一个实施例中,在需要和对端设备进行同步发送和接收数据帧的节点上,通过周期高精度定时器维护一个软件时钟TimeB。根据不同的制式标准和需要,设置的高精度定时器的周期t1也不同。在高精度定时器超时后,将TimeB累加一次t1,从而更新了TimeB的历史最大值(TimeBmax)。
通过步骤12中的收发数据的节律对软件时钟进行计时后,就可以周期性地将软件时钟的时间与参考时钟源的时间进行比较,得出二者的时间差,并在步骤13中根据该时间差对数据收发节律进行调整,以改善时间差。
可选的,在步骤13中,根据软件时钟当前时间与参考时钟源的当前时间的时间差,调整数据收发的节律,以使时间差的绝对值小于预设阈值可包括:
如果软件时钟当前时间与参考时钟源的当前时间的时间差小于零,确定软件时钟偏慢,增加数据收发的次数;
如果软件时钟当前时间与参考时钟源的当前时间的时间差大于零,确定软件时钟偏快,减少数据收发的次数。
可选的,增加或减少的数据收发次数等于时间差的绝对值与相邻两次数据收发的时间间隔的比值。
举例说明,在本发明的一个实施例中,假如设置收发数据的节点上维护的定时器的周期T=0.1毫秒,则每0.1毫秒产生一次时钟中断,该节点利用此次时钟中断与对端进行同步,从而进行数据收发。但是,由于该节点上的晶振存在微小误差,经过一段时间后微小误差会逐渐积累,从而导致定时器的周期T实际上并不是严格等于0.1毫秒。例如,如果节点上的晶振偏快,T可能0.09毫秒,如果节点上的晶振偏慢,T可能0.11毫秒。但计算软件时钟当前时间时,每次仍然按照T=0.1毫秒累加,这样导致的结果是:对于晶振偏快的节点,计算出的软件时钟当前时间就会比参考时间偏大,也就是软件时钟当前时间与所述参考时钟源的当前时间的时间差大于零;对于晶振偏慢的节点,计算出的软件时钟当前时间就会比参考时间偏小,也就是软件时钟当前时间与所述参考时钟源的当前时间的时间差小于零。对于晶振偏快的节点,同样的时间内,数据收发次数会偏多,因此,需要减少数据收发次数,相反,对于晶振偏慢的节点,同样的时间内,数据收发次数会偏少,因此,需要减少数据收发次数。通过对数据收发次数的调整,软件时钟的当前时间也就随之调整,从而使软件时钟当前时间与参考时钟源的当前时间的时间差小于预设阈值。可选的,该预设阈值的大小可以根据对时钟同步精度需求的不同而设置,预设阈值越小,同步越精确,但需要调整的次数也就越多,本发明的实施例对此不限。例如,在本发明的一个实施例中,1秒中内数据收 发次数的调整次数大约为2到8次。
可选的,根据软件时钟所处节点的不同,软件时钟TimeB可以有两种不同的维护方式,参见图6和图7:
如图6所示,当TimeA和TimeB在同一个节点上时,TimeB的维护可包括如下步骤:
1.在本节点读取TimeA,作为TimeB的初始值;
2.设置高精度定时器,定时器周期为t1,定时器到时,将TimeB累加t1。
如图7所示,当TimeA和TimeB不在同一个节点上时,TimeB的维护可包括:
1.通过网络通讯,TimeB所在节点上的时间同步客户端向TimeA所在节点上的时间同步服务端发出获取时间的请求;
2.时间同步服务端接收到请求后,读取到TimeA的时间;
3.时间同步服务端将读取到的时间发送给时间同步客户端;
4.时间同步客户端将该时间作为TimeB的初始时间;
5.设置高精度定时器,定时器周期为t1,定时器到时,将TimeB累加t1。
也就是说,参考时钟源Time A是相对准确的,节点的软件时钟TimeB可能是相对不准确的,因此,需要周期性地(比如2秒一次)用TimeA校正TimeB,校正后的值记为TimeB1,即将TimeB设置为TimeB1。如果TimeB和TimeA在同一个节点上,则直接使用TimeA校正TimeB;如果TimeB和TimeA不在同一个节点上,则将TimeA同步到TimeB所在的节点上,使用同步得到的时间来校正TimeB,同步流程如图5所示。
根据不同的条件和组网,可以包括如下几种实施方式。
实施方式1:
整个通讯设备的所有节点全部由通用服务器、PC机或者虚拟机实现,每个需要和对端设备进行同步发送和接收数据帧的节点上都启动了1588slave(或者NTP客户端)。如图8为此种情形下的实施图,其实施方法如下:
1.1588slave(或者NTP客户端)通过1588协议(或者NTP协议)向设 备外部的1588master(或者NTP服务器)进行时间同步;
2.根据同步结果校正通用服务器/PC机/虚拟机上的TimeA和本地晶振;
3.本地晶振通过自身的振荡维护TimeA;
4.周期性直接使用TimeA校正TimeB;
5.利用高精度定时器维护TimeB;
6.采用如图10所示的方法对高精度定时器产生的超时次数进行修正。
可选的,如图10所示,对高精度定时器产生的超时次数进行修正可包括如下步骤:
1.等待高精度定时器到时;
2.高精度定时器到时;
3.在TimeB当前值的基础上累加一次该高精度定时器的周期,成为最新的TimeB,并将TimeB与TimeA同步;
4.将最新的TimeB与TimeBmax比较;其中,TimeBmax等于上一个周期的TimeB,
5.如果TimeB大于TimeBmax,说明TimeB比TimeA慢或者相等(TimeB与TimeBmax的差值等于1个高精度定时器周期时,表示相等),则触发((TimeB-TimeBmax)/高精度定时器周期)次收发包流程,并将TimeBmax设置为TimeB的值,跳转到1;
6.如果TimeB小于TimeBmax,说明TimeB比TimeA快,则本次不触发收发包流程,TimeBmax保持不变,跳转到1。
实施方式2:
整个通讯设备的所有节点全部由通用服务器、PC机或者虚拟机实现,同时只有一个节点启动了1588slave(或者NTP客户端)。如图9为此种情形下的实施图,其实施方法如下:
1.1588slave(或者NTP客户端)通过1588协议(或者NTP协议)向设备外部的1588master(或者NTP服务器)进行时间同步;
2.根据同步结果校正通用服务器/PC机/虚拟机上的TimeA和本地晶振;
3.本地晶振通过自身的振荡维护TimeA;
4.采用图5所示的TimeB和TimeA时间同步示意图中的同步方法,将TimeB和TimeA进行时间同步;
5.利用同步后的结果对TimeB进行校正;
6.利用高精度定时器维护TimeB;
7.采用如图10所示的方法对高精度定时器产生的超时次数进行修正。
实施方式3:
通讯设备中提供了时钟模块,由线路时钟或者GPS实现时钟同步,但是其他节点为通用服务器、PC机或者虚拟机,需要和对端设备进行同步发送和接收数据帧的节点也是通用服务器、PC机或者虚拟机。这种场景下通常是为了利用当前设备中的已有时钟模块这种设备,最大发挥已有设备的价值。在只有线路时钟,没有GPS时,仅仅适合那些只要求和对端设备进行时钟同步,但是不要求和对端设备进行时间同步的通讯设备。如图11和图12为此种情形下的实施图,其实施方法如下:
1.GPS模块(或者线路时钟同步模块)接收来自GPS(或者上级时钟模块)的时间(或时钟)同步;
2.根据同步结果校正时钟晶振和TimeA(有GPS时需要校正TimeA,只有线路时钟时不需要校正TimeA);
3.时钟晶振通过自身的振荡维护TimeA;
4.采用图5所示的TimeB和TimeA时间同步示意图中的同步方法,将TimeB和TimeA进行时间同步;
5.利用同步后的结果对TimeB进行校正;
6.利用高精度定时器维护TimeB;
7.采用如图10所示的方法对高精度定时器产生的超时次数进行修正。
本发明实施例还提供一种计算机存储介质,计算机存储介质中存储有计算机可执行指令,计算机可执行指令用于执行上述时钟同步方法。
相应的,如图13所示,本发明实施例还提供一种时钟同步装置,包括:
初始时间确定单元901,设置为根据参考时钟源确定需要进行数据收发的节点的软件时钟初始时间;
当前时间确定单元902,设置为根据确定的软件时钟初始时间以及数据收发的节律,确定数据收发后的软件时钟当前时间;
调整单元903,设置为根据软件时钟当前时间与所述参考时钟源的当前时间的时间差,调整数据收发的节律,以使时间差的绝对值小于预设阈值。
本发明实施例提供的时钟同步方法,初始时间确定单元901能够根据参考时钟源确定需要进行数据收发的节点的软件时钟初始时间,当前时间确定单元902能够根据软件时钟初始时间以及数据收发的节律,确定数据收发后的软件时钟当前时间;调整单元903能够根据软件时钟当前时间与参考时钟源的当前时间的时间差,调整数据收发的节律,以使时间差的绝对值小于预设阈值。这样,在进行数据收发时,可以按照数据收发的节律计量时间,由于数据收发节律是由本地时钟控制的,经过多次数据收发的积累,本地时钟与参考时钟之间微小的误差也逐渐积累,积累的误差即为软件时钟当前时间与参考时钟源的当前时间之间的时间差。由于软件时钟的时间计量与数据收发节律有关,通过对数据收发节律的调整能够使软件时钟当前时间也相应调整,从而将上述时间差始终限制在很小的范围内,使本节点和对端节点达到了数据收发的时钟同步。
可选的,当前时间确定单元902是设置为:
在进行数据收发的节点上,通过定时器产生的时钟中断进行数据收发,并在每次时钟中断后,将定时器的定时周期累加在软件时钟初始时间上,将所得的累加结果确定为每次数据收发后的软件时钟当前时间。
可选的,调整单元903是设置为:
如果软件时钟当前时间与参考时钟源的当前时间的时间差小于零,确定软件时钟偏慢,增加数据收发的次数;
如果软件时钟当前时间与参考时钟源的当前时间的时间差大于零,确定软件时钟偏快,减少数据收发的次数。
可选的,增加或减少的数据收发次数等于时间差的绝对值与相邻两次数据收发的时间间隔的比值。
可选的,初始时间确定单元901是设置为:
如果参考时钟源位于需要进行数据收发的节点,确定软件时钟初始时间等于参考时钟源的时间;
如果参考时钟源不在需要进行数据收发的节点,将需要进行数据收发的节点的本地时钟同步到所述参考时钟源,确定软件时钟初始时间等于同步后的本地时钟。
相应的,本发明实施例还提供一种通信设备,包括前述实施例提供的任一种时钟同步装置,因此也能实现相应的有益效果,前文已经进行了说明,此处不再赘述。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的每个模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明不限制于任何特定形式的硬件和软件的结合。
虽然本申请所揭露的实施方式如上,但所述的内容仅为便于理解本申请而采用的实施方式,并非用以限定本申请,如本发明实施方式中的具体的实现方法。任何本申请所属领域内的技术人员,在不脱离本申请所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本 申请的专利保护范围,仍须以所附的权利要求书所界定的范围为准。
工业实用性
上述技术方案实现了无需特别设计硬件的前提下时钟同步,简化了基站控制器、基带处理单元(BBU)和射频拉远单元(RRU)等通讯设备的制造、使用和维护方式。

Claims (12)

  1. 一种时钟同步方法,所述时钟同步方法包括:
    根据参考时钟源确定需要进行数据收发的节点的软件时钟初始时间;
    根据确定的所述软件时钟初始时间以及数据收发的节律,确定数据收发后的软件时钟当前时间;
    根据所述软件时钟当前时间与所述参考时钟源的当前时间的时间差,调整所述数据收发的节律,以使所述时间差的绝对值小于预设阈值。
  2. 根据权利要求1所述的时钟同步方法,其中,所述确定数据收发后的软件时钟当前时间包括:
    在进行数据收发的所述节点上,通过定时器产生的时钟中断进行数据收发,并在每次时钟中断后,将所述定时器的定时周期累加在所述软件时钟初始时间上,将所得的累加结果确定为每次数据收发后的所述软件时钟当前时间。
  3. 根据权利要求1或2所述的时钟同步方法,其中,所述调整所述数据收发的节律包括:
    如果所述软件时钟当前时间与所述参考时钟源的当前时间的时间差小于零,确定所述软件时钟偏慢,增加所述数据收发的次数;
    如果所述软件时钟当前时间与所述参考时钟源的当前时间的时间差大于零,确定所述软件时钟偏快,减少所述数据收发的次数。
  4. 根据权利要求3所述的时钟同步方法,其中,所述增加或减少的数据收发次数等于所述时间差的绝对值与相邻两次数据收发的时间间隔的比值。
  5. 根据权利要求1所述的时钟同步方法,其中,所述根据参考时钟源确定需要进行数据收发的节点的软件时钟初始时间包括:
    如果所述参考时钟源位于所述需要进行数据收发的节点,确定所述软件时钟初始时间等于所述参考时钟源的时间;
    如果所述参考时钟源不在所述需要进行数据收发的节点,将所述需要进行数据收发的节点的本地时钟同步到所述参考时钟源,确定所述软件时钟初 始时间等于同步后的所述本地时钟。
  6. 根据权利要求1、2或5所述的时钟同步方法,其中,所述参考时钟源包括以下一种或多种:
    1588协议钟源;
    网络时间协议NTP时钟;
    全球定位系统GPS时钟源;
    上级线路时钟。
  7. 一种时钟同步装置,包括:
    初始时间确定单元,设置为根据参考时钟源确定需要进行数据收发的节点的软件时钟初始时间;
    当前时间确定单元,设置为根据确定的所述软件时钟初始时间以及数据收发的节律,确定数据收发后的软件时钟当前时间;
    调整单元,设置为根据所述软件时钟当前时间与所述参考时钟源的当前时间的时间差,调整所述数据收发的节律,以使所述时间差的绝对值小于预设阈值。
  8. 根据权利要求7所述的时钟同步装置,其中,所述当前时间确定单元是设置为:
    在进行数据收发的所述节点上,通过定时器产生的时钟中断进行数据收发,并在每次时钟中断后,将所述定时器的定时周期累加在所述软件时钟初始时间上,将所得的累加结果确定为每次数据收发后的所述软件时钟当前时间。
  9. 根据权利要求7或8所述的时钟同步装置,其中,所述调整单元是设置为:
    如果所述软件时钟当前时间与所述参考时钟源的当前时间的时间差小于零,确定所述软件时钟偏慢,增加所述数据收发的次数;
    如果所述软件时钟当前时间与所述参考时钟源的当前时间的时间差大于零,确定所述软件时钟偏快,减少所述数据收发的次数。
  10. 根据权利要求9所述的时钟同步装置,其中,增加或减少的数据收发次数等于所述时间差的绝对值与相邻两次数据收发的时间间隔的比值。
  11. 根据权利要求7或8所述的时钟同步装置,其中,所述初始时间确定单元是设置为:
    如果所述参考时钟源位于所述需要进行数据收发的节点,确定所述软件时钟初始时间等于所述参考时钟源的时间;
    如果所述参考时钟源不在所述需要进行数据收发的节点,将所述需要进行数据收发的节点的本地时钟同步到所述参考时钟源,确定所述软件时钟初始时间等于同步后的所述本地时钟。
  12. 一种通信设备,所述通信设备上设置有权利要求7至11中任一项所述的时钟同步装置。
PCT/CN2016/090181 2015-09-29 2016-07-15 一种时钟同步方法、装置及通信设备 WO2017054554A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510633536.1A CN106559157A (zh) 2015-09-29 2015-09-29 一种时钟同步方法、装置及通信设备
CN201510633536.1 2015-09-29

Publications (1)

Publication Number Publication Date
WO2017054554A1 true WO2017054554A1 (zh) 2017-04-06

Family

ID=58417143

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/090181 WO2017054554A1 (zh) 2015-09-29 2016-07-15 一种时钟同步方法、装置及通信设备

Country Status (2)

Country Link
CN (1) CN106559157A (zh)
WO (1) WO2017054554A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111208866A (zh) * 2019-12-27 2020-05-29 视联动力信息技术股份有限公司 一种系统时间调整方法和装置

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107040327B (zh) * 2017-06-14 2019-04-02 深圳市华信天线技术有限公司 主从机tdma时隙同步校准方法及装置
CN110098884B (zh) 2018-01-31 2021-05-18 慧与发展有限责任合伙企业 用于确定异常时钟的方法及设备
CN110502310B (zh) * 2018-05-18 2021-12-14 北京东土科技股份有限公司 一种虚拟机的时间同步方法及装置
CN110958667B (zh) * 2018-09-26 2021-05-18 华为技术有限公司 一种确定同步周期的方法、装置及系统
CN113009899B (zh) * 2019-12-20 2023-05-16 金卡智能集团股份有限公司 用于计量仪表高精度计时的rtc时钟校准方法
CN113687686B (zh) * 2021-08-10 2024-05-14 北京小米移动软件有限公司 时钟同步方法、装置、电子设备和存储介质
CN113687916B (zh) * 2021-08-17 2023-01-10 锐捷网络股份有限公司 数据处理方法及装置、时间更新方法及装置、电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1780488A (zh) * 2004-11-23 2006-05-31 中兴通讯股份有限公司 一种程控交换机系统时钟校准装置和方法
CN1933414A (zh) * 2005-09-13 2007-03-21 上海欣泰通信技术有限公司 一种电信领域中网络时间同步的时间调整算法
CN1949129A (zh) * 2006-11-27 2007-04-18 杭州华为三康技术有限公司 时间同步方法及装置
JP2012128552A (ja) * 2010-12-14 2012-07-05 Hitachi Ltd 情報処理装置および情報処理装置の時刻同期方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1780488A (zh) * 2004-11-23 2006-05-31 中兴通讯股份有限公司 一种程控交换机系统时钟校准装置和方法
CN1933414A (zh) * 2005-09-13 2007-03-21 上海欣泰通信技术有限公司 一种电信领域中网络时间同步的时间调整算法
CN1949129A (zh) * 2006-11-27 2007-04-18 杭州华为三康技术有限公司 时间同步方法及装置
JP2012128552A (ja) * 2010-12-14 2012-07-05 Hitachi Ltd 情報処理装置および情報処理装置の時刻同期方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111208866A (zh) * 2019-12-27 2020-05-29 视联动力信息技术股份有限公司 一种系统时间调整方法和装置

Also Published As

Publication number Publication date
CN106559157A (zh) 2017-04-05

Similar Documents

Publication Publication Date Title
WO2017054554A1 (zh) 一种时钟同步方法、装置及通信设备
US11038608B2 (en) Frequency synchronization method and slave clock
US11606155B2 (en) Method for exchanging time synchronization packet and network apparatus
CN103763055A (zh) 一种精确同步时间的方法
WO2001050674A1 (en) Synchronization in packet-switched telecommunications system
KR20170095234A (ko) 네트워크 디바이스들의 클록들을 동기화하는 방법
US11965971B2 (en) Systems for timestamping events on edge devices
JP6132734B2 (ja) 時刻同期システム及び装置
JP6025700B2 (ja) 時刻同期システム、スレーブ装置、及び時刻同期方法
US20140362960A1 (en) Receiver, method of calculating time difference, and program
CN104836630A (zh) Ieee1588时钟同步系统及其实现方法
CN113055117A (zh) 一种无线分布式网络的时钟同步装置及方法
CN109392074A (zh) 时钟校准方法和装置
CN105357752B (zh) 用于无线自组网的时间同步方法及装置
WO2020135198A1 (zh) 时钟同步方法、装置和存储介质
WO2020087370A1 (zh) 时间同步方法、设备及存储介质
CN111953442A (zh) 一种快速高精度时间同步系统
CN103532693A (zh) 一种时间同步装置和方法
JP6010802B2 (ja) 時刻同期システム、時刻同期方法、スレーブノード及びコンピュータプログラム
WO2014100982A1 (zh) 一种空口同步方法及相关装置
von Zengen et al. A sub-microsecond clock synchronization protocol for wireless industrial monitoring and control networks
WO2016065642A1 (zh) 一种同步装置及方法
KR101176798B1 (ko) 슬레이브 장치와 마스터 장치 간의 클락 동기화 방법
TW201729628A (zh) 頻率校正裝置及方法
CN110809314B (zh) 一种无线网络信标帧同步的方法

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: 16850178

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: 16850178

Country of ref document: EP

Kind code of ref document: A1