WO2022121996A1 - Method and apparatus for implementing network time synchronization - Google Patents

Method and apparatus for implementing network time synchronization Download PDF

Info

Publication number
WO2022121996A1
WO2022121996A1 PCT/CN2021/136912 CN2021136912W WO2022121996A1 WO 2022121996 A1 WO2022121996 A1 WO 2022121996A1 CN 2021136912 W CN2021136912 W CN 2021136912W WO 2022121996 A1 WO2022121996 A1 WO 2022121996A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
timestamp
chip
ptp
incoming
Prior art date
Application number
PCT/CN2021/136912
Other languages
French (fr)
Chinese (zh)
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 WO2022121996A1 publication Critical patent/WO2022121996A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0682Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed in embodiments of the present invention are a method and apparatus for implementing network time synchronization. The method comprises: a PHY chip records an entry timestamp at which the PHY chip receives a PTP time packet sent by a switch chip and an exit timestamp at which the PHY chip sends the PTP time packet, and sends the entry timestamp and the exit timestamp to a data processing unit; the data processing unit calculates a two-way time difference according to the entry timestamp and the exit timestamp, sends the two-way time difference to the switch chip, and sets a delay value of the switch chip according to the two-way time difference; and the switch chip updates, according to the delay value, a time at which the switch chip sends the PTP time packet. The embodiments of the present invention implement the high-precision network time synchronization of a PHY chip, reduce the overall cost and power consumption of a system, and improve the stability of the system.

Description

一种实现网络时间同步的方法及装置A method and device for realizing network time synchronization
本发明要求于2020年12月11日提交中国专利局、申请号为202011459234.4、发明名称“一种实现网络时间同步的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本发明中。The present invention claims the priority of the Chinese patent application with the application number of 202011459234.4 and the title of the invention "A method and device for realizing network time synchronization", which was submitted to the Chinese Patent Office on December 11, 2020, the entire contents of which are incorporated herein by reference. invention.
技术领域technical field
本发明涉及网络通信技术领域,具体而言,涉及一种实现网络时间同步的方法及装置。The present invention relates to the technical field of network communication, and in particular, to a method and device for realizing network time synchronization.
背景技术Background technique
在通信网络中,许多业务的正常运行都要求网络时间同步,即整个网络各设备之间的时间或频率差保持在合理的误差水平内,尤其是5G时代,对时间同步的要求越来越高。In communication networks, the normal operation of many services requires network time synchronization, that is, the time or frequency difference between devices in the entire network is kept within a reasonable error level. Especially in the 5G era, the requirements for time synchronization are getting higher and higher. .
目前有多种协议可以实现网络时间同步,如PTP(Precision Time Protocol,精确时间协议)是一种网络精准时间同步协议,可以实现相位同步和时钟同步。在工业、电力、数据中心、城域数据回传等领域,都要求有高精度的时间同步。At present, there are various protocols that can realize network time synchronization. For example, PTP (Precision Time Protocol, Precision Time Protocol) is a network precision time synchronization protocol, which can realize phase synchronization and clock synchronization. In the fields of industry, power, data center, and metro data backhaul, high-precision time synchronization is required.
现有通过PTP协议实现网络时间同步的方案,一般有如下两种技术方案:The existing solutions for realizing network time synchronization through the PTP protocol generally include the following two technical solutions:
技术方案一:是将PHY(物理收发器)作为透传链路,通过支持PTP功能的交换芯片计算出整个链路延时,并将该延时记录到交换芯片的Latency(延迟)字段,进行时间校正同步。但是方案一存在的缺点是:1588V2时钟(1588V2时钟是一种采用IEEE 1588V2协议的高精度时钟)的同步技术需要建立在假定Master(主设备)和Slave(从设备)之间收发链路的时延对称的基础上,如果不对称,将有补偿误差;实际上PHY的内部RX(接收端)到TX(发送端)与TX到RX的数据通路无法保证时延 对称,数据信号编解码处理及双向链路的拥塞情况都是不同的,因而这种方式计算的补偿误差比较大。Technical solution 1: The PHY (physical transceiver) is used as a transparent transmission link, and the entire link delay is calculated through a switching chip that supports the PTP function, and the delay is recorded in the Latency (delay) field of the switching chip. Time correction synchronization. However, the disadvantage of scheme 1 is that the synchronization technology of 1588V2 clock (1588V2 clock is a high-precision clock using the IEEE 1588V2 protocol) needs to be established on the assumption that the transmission and reception link between the Master (master) and the Slave (slave). On the basis of delay symmetry, if it is asymmetrical, there will be compensation errors; in fact, the data path from the internal RX (receiving end) to TX (transmitting end) of the PHY and the data path from TX to RX cannot guarantee the symmetry of the delay, and the data signal encoding and decoding processing and The congestion situation of the bidirectional link is different, so the compensation error calculated in this way is relatively large.
技术方案二:是在网络交换系统上,以太网交换芯片和PHY同时支持1588协议,提供PTP功能。Switch(交换机)和PHY都需要识别PTP报文,并需要各自维护时间,在报文离开PHY的时间抓取时间戳,告知CPU(中央处理器),CPU通过PTP功能计算出自己和主时钟的Offset(偏移量),再把offset同步给交换芯片及PHY。但是方案二存在的缺点是:PHY器件上需要集成很多时间相关模块,例如独立的时间维护机制、offset调整机制、PTP事件报文机制、时间戳产生和上报机制等,这些功能的增加对PHY来说就是面积和功耗的增加;其次,整个时间同步方案中,CPU和PHY交互频繁,逻辑复杂,对整个系统的稳定性带来隐患。Technical solution 2: On the network switching system, the Ethernet switching chip and the PHY support the 1588 protocol at the same time, and provide the PTP function. Both the Switch (switch) and the PHY need to identify the PTP message, and need to maintain their own time. The time stamp is captured when the message leaves the PHY, and the CPU (central processing unit) is informed. The CPU uses the PTP function to calculate the difference between itself and the master clock. Offset (offset), and then synchronize the offset to the switch chip and PHY. However, the disadvantage of scheme 2 is that many time-related modules need to be integrated on the PHY device, such as independent time maintenance mechanism, offset adjustment mechanism, PTP event message mechanism, timestamp generation and reporting mechanism, etc. In other words, the area and power consumption increase; secondly, in the entire time synchronization scheme, the CPU and PHY interact frequently, and the logic is complex, which brings hidden dangers to the stability of the entire system.
因此,需在此基础上提供一种新型的实现网络时间同步的技术方案,以解决上述方案存在的对PHY要求高以及系统复杂、系统稳定性存在隐患等问题。Therefore, it is necessary to provide a new technical solution for realizing network time synchronization on this basis, so as to solve the problems of the above solution, such as high requirements for PHY, complex system, hidden dangers in system stability, and the like.
发明内容SUMMARY OF THE INVENTION
本发明实施例的目的在于克服现有技术的缺陷,提供一种实现网络时间同步的方法及装置,以实现以太网PHY芯片的高精度网络时间同步,降低系统整体的成本及功耗。The purpose of the embodiments of the present invention is to overcome the defects of the prior art and provide a method and apparatus for realizing network time synchronization, so as to realize high-precision network time synchronization of Ethernet PHY chips and reduce the overall cost and power consumption of the system.
为实现上述目的,本发明实施例提出如下技术方案:一种实现网络时间同步的方法,所述方法包括:In order to achieve the above object, the embodiment of the present invention proposes the following technical solution: a method for realizing network time synchronization, the method includes:
S1,PHY芯片收到交换芯片发送过来的PTP时间报文,记录其接收端收到所述PTP时间报文的进时间戳和其发送端发出所述PTP时间报文的出时间戳,并将所述进时间戳和所述出时间戳发送给数据处理单元;S1, the PHY chip receives the PTP time packet sent by the switching chip, records the incoming timestamp of the PTP time packet received by the receiving end and the outgoing timestamp of the PTP time packet sent by the transmitting end, and records the incoming timestamp of the PTP time packet sent by the receiver. The incoming timestamp and the outgoing timestamp are sent to the data processing unit;
S2,所述数据处理单元根据所述进时间戳和出时间戳,计算出双向时间差值,将所述双向时间差值发送给交换芯片,并根据所述双向时间差值设置交换芯片的延迟值;S2, the data processing unit calculates a two-way time difference value according to the incoming time stamp and outgoing time stamp, sends the two-way time difference value to the switch chip, and sets the delay of the switch chip according to the two-way time difference value value;
S3,所述交换芯片根据所述延迟值更新交换芯片发出PTP时间报文的时间。S3, the switching chip updates the time at which the switching chip sends the PTP time packet according to the delay value.
可选地,所述S1中,所述PHY芯片周期性的将所述进时间戳和所述出时间戳发送给数据处理单元。Optionally, in the S1, the PHY chip periodically sends the incoming timestamp and the outgoing timestamp to the data processing unit.
可选地,所述S1中,所述PHY芯片通过MDIO(Management Data Input/Output,管理数据输入输出)信号线将所述进时间戳和所述出时间戳发送给数据处理单元。Optionally, in the S1, the PHY chip sends the incoming time stamp and the outgoing time stamp to the data processing unit through an MDIO (Management Data Input/Output, management data input/output) signal line.
可选地,所述S2中,所述双向时间差值为所述出时间戳和进时间戳的差值。Optionally, in the S2, the bidirectional time difference is the difference between the outgoing timestamp and the incoming timestamp.
可选地,所述S3中,更新后的交换芯片发出PTP时间报文的时间为加上延迟值后的时间。Optionally, in the S3, the time when the updated switching chip sends the PTP time packet is the time after adding the delay value.
本发明实施例还公开一种实现网络时间同步的装置,所述装置包括:The embodiment of the present invention also discloses an apparatus for realizing network time synchronization, the apparatus comprising:
交换芯片,用于发送PTP时间报文给PHY芯片;The switch chip is used to send the PTP time message to the PHY chip;
PHY芯片,用于接收所述交换芯片,记录其接收端收到所述PTP时间报文的进时间戳和其发送端发出所述PTP时间报文的出时间戳,并将所述进时间戳和所述出时间戳发送给数据处理单元,及The PHY chip is used to receive the switching chip, record the incoming timestamp of the PTP time packet received by the receiver and the outgoing timestamp of the PTP time packet sent by the transmitter, and record the incoming timestamp of the PTP time packet. and the out-timestamp is sent to the data processing unit, and
数据处理单元,用于根据所述进时间戳和出时间戳,计算出双向时间差值,将所述双向时间差值发送给交换芯片,并根据所述双向时间差值设置交换芯片的延迟值;A data processing unit, configured to calculate a two-way time difference value according to the incoming timestamp and outgoing time stamp, send the two-way time difference value to the switch chip, and set the delay value of the switch chip according to the two-way time difference value ;
所述交换芯片,还用于根据所述延迟值更新交换芯片发出PTP时间报文的时间。The switching chip is further configured to update the time at which the switching chip sends the PTP time packet according to the delay value.
可选地,所述PHY芯片周期性的将所述进时间戳和所述出时间戳发送给数据处理单元。Optionally, the PHY chip periodically sends the incoming timestamp and the outgoing timestamp to the data processing unit.
可选地,所述PHY芯片通过MDIO信号线将所述进时间戳和所述出时间戳发送给数据处理单元。Optionally, the PHY chip sends the incoming time stamp and the outgoing time stamp to the data processing unit through an MDIO signal line.
可选地,所述双向时间差值为所述出时间戳和进时间戳的差值。Optionally, the bidirectional time difference is a difference between the outgoing timestamp and the incoming timestamp.
可选地,更新后的交换芯片发出PTP时间报文的时间为加上延迟值后的时间。Optionally, the time when the updated switching chip sends the PTP time packet is the time after adding the delay value.
本发明实施例的有益效果是:The beneficial effects of the embodiments of the present invention are:
本发明实施例通过计算双向时间差值,根据双向时间差值设置交换芯片中的延迟字段,补偿掉PHY芯片中的时延,确保PTP时间报文计算的时候,来回路径对称。这种方式结合了交换芯片的PTP功能,对于不支持1588协议的PHY芯片,比较高效精确的实现了网络系统的时间同步,且因无需PHY芯片支持1588协议,所以对PHY芯片的要求较低,只需要实现入出的时间戳记录和上报,整个系统方案简单,降低了整体的系统成本及功耗,且提高系统稳定性。The embodiment of the present invention compensates for the delay in the PHY chip by calculating the bidirectional time difference and setting the delay field in the switching chip according to the bidirectional time difference, so as to ensure that the round-trip path is symmetrical when the PTP time packet is calculated. This method combines the PTP function of the switching chip. For the PHY chip that does not support the 1588 protocol, the time synchronization of the network system is more efficiently and accurately realized, and because the PHY chip does not need to support the 1588 protocol, the requirements for the PHY chip are low. Only need to realize the time stamp recording and reporting of in and out, the whole system scheme is simple, the overall system cost and power consumption are reduced, and the system stability is improved.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described herein are used to provide an understanding of the present invention and constitute a part of the present application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached image:
图1是根据本发明实施例的一种实现网络时间同步方法的流程示意图;1 is a schematic flowchart of a method for implementing network time synchronization according to an embodiment of the present invention;
图2是根据本发明实施例的一种实现网络时间同步装置的模块示意图。FIG. 2 is a schematic block diagram of an apparatus for implementing network time synchronization according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例的附图,对本发明实施例的技术方案进行清楚、完整的描述。The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention.
本发明实施例所揭示的一种实现网络时间同步的方法及装置,通过结合交换芯片的PTP功能,采用补偿报文在PHY芯片中传输的双向时间差值,等效于在PHY芯片的出口打时间戳,实现了以太网PHY芯片的高精度网络时间同步。The method and device for realizing network time synchronization disclosed in the embodiment of the present invention, by combining the PTP function of the switching chip, adopts the bidirectional time difference value of the compensation message transmitted in the PHY chip, which is equivalent to calling the output of the PHY chip. Timestamp realizes high-precision network time synchronization of the Ethernet PHY chip.
如图1所示,本发明实施例所揭示的一种实现网络时间同步的方法, 所述方法包括以下几个步骤:As shown in FIG. 1 , a method for realizing network time synchronization disclosed by an embodiment of the present invention includes the following steps:
S1,PHY芯片收到交换芯片发送过来的PTP时间报文,记录其接收端收到PTP时间报文的进时间戳和其发送端发出PTP时间报文的出时间戳,并将进时间戳和出时间戳发送给数据处理单元。S1, the PHY chip receives the PTP time packet sent by the switching chip, records the incoming timestamp of the PTP time packet received by the receiver and the outgoing timestamp of the PTP time packet sent by the sender, and records the incoming timestamp and The output timestamp is sent to the data processing unit.
可选地,交换芯片发送PTP时间报文给PHY芯片,定义交换芯片发出PTP时间报文时的时间为时间戳Ts0,此时的Ts0未加上经过PHY芯片的延迟时间。Optionally, the switching chip sends the PTP time packet to the PHY chip, and the time when the switching chip sends the PTP time packet is defined as the timestamp Ts0, and the delay time passing through the PHY chip is not added to Ts0 at this time.
PHY芯片的接收端RX接收交换芯片发送过来的PTP时间报文,记录其收到该PTP时间报文的进时间戳,记为时间戳Ts1;PHY芯片将该PTP时间报文从其发送端TX发送出去,PHY芯片记录其出端口TX发出该PTP时间报文的出时间戳,记为时间戳Ts2。The receiving end RX of the PHY chip receives the PTP time message sent by the switching chip, records the incoming time stamp of the PTP time message it receives, and records it as time stamp Ts1; the PHY chip sends the PTP time message from its sending end TX Sending out, the PHY chip records the outgoing timestamp of the PTP time packet sent by its outgoing port TX, which is recorded as the timestamp Ts2.
之后,PHY芯片将记录得到的时间戳Ts1和时间戳Ts2均发送给数据处理单元DSP。本实施例中,PHY芯片可选周期性地将记录得到的时间戳Ts1和时间戳Ts2发送给数据处理单元DSP。且本实施例中,PHY芯片与数据处理单元DSP之间通过MDIO(Management Data Input/Output,管理数据输入输出)信号线相连,所以,PHY芯片通过MDIO信号线将进时间戳和出时间戳发送给数据处理单元。After that, the PHY chip sends both the recorded time stamp Ts1 and the time stamp Ts2 to the data processing unit DSP. In this embodiment, the PHY chip optionally periodically sends the recorded time stamps Ts1 and Ts2 to the data processing unit DSP. And in this embodiment, the PHY chip and the data processing unit DSP are connected through the MDIO (Management Data Input/Output, management data input and output) signal line, so the PHY chip sends the incoming timestamp and the outgoing timestamp through the MDIO signal line. to the data processing unit.
S2,数据处理单元根据进时间戳和出时间戳,计算出双向时间差值,将双向时间差值发送给交换芯片,并根据双向时间差值设置交换芯片的延迟值。S2, the data processing unit calculates the two-way time difference value according to the incoming time stamp and the outgoing time stamp, sends the two-way time difference value to the switch chip, and sets the delay value of the switch chip according to the two-way time difference value.
可选地,本实施例中,记双向时间差值为△Ts,双向时间差值为△Ts可以为上述时间戳Ts2和时间戳Ts1的差值,即△Ts=Ts2-Ts1,双向时间差值为经过PHY芯片的延迟时间。Optionally, in this embodiment, the bidirectional time difference value is ΔTs, and the bidirectional time difference value ΔTs may be the difference between the timestamp Ts2 and the timestamp Ts1, that is, ΔTs=Ts2−Ts1, and the bidirectional time difference is ΔTs. The value is the delay time passing through the PHY chip.
数据处理单元将双向时间差值下发到交换芯片的延迟寄存器中,交换芯片中设置的延迟值Latency即为该双向时间差值为△Ts,即交换芯片的延迟值与双向时间差值相同。从而使得PTP时间报文在交换芯片中的MAC(media access control,介质访问控制子层)侧就矫正了通过PHY芯 片中的时延,以此等效于从PHY芯片的出口开始打时间戳,减少链路不对称。The data processing unit sends the two-way time difference value to the delay register of the switch chip. The delay value Latency set in the switch chip is the two-way time difference value of ΔTs, that is, the delay value of the switch chip is the same as the two-way time difference value. As a result, the PTP time packet corrects the time delay passing through the PHY chip on the MAC (media access control, media access control sublayer) side of the switching chip, which is equivalent to timestamping from the exit of the PHY chip. Reduce link asymmetry.
S3,交换芯片根据延迟值更新交换芯片发出PTP时间报文的时间。S3, the switching chip updates the time at which the switching chip sends the PTP time packet according to the delay value.
可选地,本实施例中,交换芯片更新其发出PTP时间报文的时间Ts0,例如,将交换芯片发出PTP时间报文的时间Ts0更新为Ts0加上延迟值后的时间。Optionally, in this embodiment, the switching chip updates the time Ts0 at which it sends the PTP time packet, for example, updates the time Ts0 at which the switching chip sends the PTP time packet to the time Ts0 plus the delay value.
对应的,如图2所示,本发明实施例所揭示一种实现网络时间同步的装置,包括交换芯片、PHY芯片和数据处理单元,其中,Correspondingly, as shown in FIG. 2 , an apparatus for realizing network time synchronization disclosed in an embodiment of the present invention includes a switching chip, a PHY chip, and a data processing unit, wherein,
交换芯片用于发送PTP时间报文给PHY芯片。The switch chip is used to send PTP time packets to the PHY chip.
PHY芯片用于接收交换芯片,记录其接收端收到PTP时间报文的进时间戳和其发送端发出PTP时间报文的出时间戳,并将进时间戳和出时间戳发送给数据处理单元。可选地,本实施例中,PHY芯片周期性的通过MDIO信号线将进时间戳和出时间戳发送给数据处理单元。The PHY chip is used to receive the switching chip, record the incoming timestamp of the PTP time packet received by the receiver and the outgoing timestamp of the PTP time packet sent by the sender, and send the incoming timestamp and outgoing timestamp to the data processing unit . Optionally, in this embodiment, the PHY chip periodically sends the incoming timestamp and the outgoing timestamp to the data processing unit through the MDIO signal line.
数据处理单元用于根据进时间戳和出时间戳,计算出双向时间差值。可选地,双向时间差值为出时间戳和进时间戳的差值,即为出时间戳减去进时间戳的差值。数据处理单元将该双向时间差值发送给交换芯片,并根据双向时间差值设置交换芯片的延迟值。The data processing unit is used to calculate the bidirectional time difference according to the incoming time stamp and the outgoing time stamp. Optionally, the bidirectional time difference is the difference between the outgoing timestamp and the incoming timestamp, that is, the difference between the outgoing timestamp and the incoming timestamp. The data processing unit sends the bidirectional time difference value to the switching chip, and sets the delay value of the switching chip according to the bidirectional time difference value.
交换芯片还用于根据延迟值更新交换芯片发出PTP时间报文的时间,更新后的交换芯片发出PTP时间报文的时间为加上延迟值后的时间。The switch chip is further configured to update the time at which the switch chip sends the PTP time packet according to the delay value, and the time at which the updated switch chip sends the PTP time packet is the time after adding the delay value.
且,交换芯片、PHY芯片和数据处理单元的工作原理可分别参照上述方法S1~S3中的描述,这里不做赘述。Moreover, for the working principles of the switching chip, the PHY chip and the data processing unit, reference may be made to the descriptions in the above-mentioned methods S1 to S3, which will not be repeated here.
本发明实施例通过记录报文进入PHY芯片和从PHY芯片出去的时间戳,并周期性的将时间戳数据发送给DSP,由DSP计算出合理的双向时间差值△Ts,根据双向时间差值设置交换芯片中的延迟字段,补偿掉PHY芯片中的时延,确保PTP时间报文计算的时候,来回路径对称。这种方式结合了交换芯片的PTP功能,对于不支持1588协议的PHY芯片,比较高 效精确的实现了网络系统的时间同步,且因无需PHY芯片支持1588协议,所以对PHY芯片的要求较低,只需要实现入出的时间戳记录和上报,整个系统方案简单,降低了整体的系统成本及功耗,且提高系统稳定性、降低隐患。In the embodiment of the present invention, the time stamps of the packets entering and leaving the PHY chip are recorded, and the time stamp data is periodically sent to the DSP, and the DSP calculates a reasonable bidirectional time difference ΔTs. Set the delay field in the switch chip to compensate for the delay in the PHY chip, and ensure that the round-trip path is symmetrical when the PTP time packet is calculated. This method combines the PTP function of the switching chip. For the PHY chip that does not support the 1588 protocol, the time synchronization of the network system is more efficiently and accurately realized, and because the PHY chip does not need to support the 1588 protocol, the requirements for the PHY chip are low. Only need to realize the time stamp recording and reporting of incoming and outgoing, the whole system scheme is simple, which reduces the overall system cost and power consumption, and improves system stability and reduces hidden dangers.
本发明实施例的技术内容及技术特征已揭示如上,然而熟悉本领域的技术人员仍可能基于本发明的教示及揭示而作种种不背离本发明精神的替换及修饰,因此,本发明保护范围应不限于实施例所揭示的内容,而应包括各种不背离本发明的替换及修饰,并为本专利申请权利要求所涵盖。The technical content and technical features of the embodiments of the present invention have been disclosed as above. However, those skilled in the art may still make various replacements and modifications based on the teaching and disclosure of the present invention without departing from the spirit of the present invention. Therefore, the protection scope of the present invention should be It is not limited to the contents disclosed in the embodiments, but includes various substitutions and modifications without departing from the present invention, and is covered by the claims of this patent application.

Claims (10)

  1. 一种实现网络时间同步的方法,所述方法包括:A method for realizing network time synchronization, the method comprising:
    S1,PHY芯片收到交换芯片发送过来的PTP时间报文,记录其接收端收到所述PTP时间报文的进时间戳和其发送端发出所述PTP时间报文的出时间戳,并将所述进时间戳和所述出时间戳发送给数据处理单元;S1, the PHY chip receives the PTP time packet sent by the switching chip, records the incoming timestamp of the PTP time packet received by the receiving end and the outgoing timestamp of the PTP time packet sent by the transmitting end, and records the incoming timestamp of the PTP time packet sent by the receiver. The incoming timestamp and the outgoing timestamp are sent to the data processing unit;
    S2,所述数据处理单元根据所述进时间戳和出时间戳,计算出双向时间差值,将所述双向时间差值发送给交换芯片,并根据所述双向时间差值设置交换芯片的延迟值;S2, the data processing unit calculates a two-way time difference value according to the incoming time stamp and outgoing time stamp, sends the two-way time difference value to the switch chip, and sets the delay of the switch chip according to the two-way time difference value value;
    S3,所述交换芯片根据所述延迟值更新交换芯片发出PTP时间报文的时间。S3, the switching chip updates the time at which the switching chip sends the PTP time packet according to the delay value.
  2. 根据权利要求1所述的实现网络时间同步的方法,其中,所述S1中,所述PHY芯片周期性的将所述进时间戳和所述出时间戳发送给数据处理单元。The method for realizing network time synchronization according to claim 1, wherein, in the S1, the PHY chip periodically sends the incoming time stamp and the outgoing time stamp to the data processing unit.
  3. 根据权利要求1所述的实现网络时间同步的方法,其中,所述S1中,所述PHY芯片通过MDIO信号线将所述进时间戳和所述出时间戳发送给数据处理单元。The method for realizing network time synchronization according to claim 1, wherein, in the S1, the PHY chip sends the incoming time stamp and the outgoing time stamp to a data processing unit through an MDIO signal line.
  4. 根据权利要求1所述的实现网络时间同步的方法,其中,所述S2中,所述双向时间差值为所述出时间戳和进时间戳的差值。The method for realizing network time synchronization according to claim 1, wherein, in the S2, the bidirectional time difference is the difference between the outgoing timestamp and the incoming timestamp.
  5. 根据权利要求1所述的实现网络时间同步的方法,其中,所述S3中,更新后的交换芯片发出PTP时间报文的时间为加上延迟值后的时间。The method for realizing network time synchronization according to claim 1, wherein, in said S3, the time when the updated switching chip sends the PTP time packet is the time after adding the delay value.
  6. 一种实现网络时间同步的装置,所述装置包括:A device for realizing network time synchronization, the device comprising:
    交换芯片,被设置为发送PTP时间报文给PHY芯片;The switch chip is set to send the PTP time message to the PHY chip;
    PHY芯片,被设置为接收所述交换芯片,记录其接收端收到所述PTP时间报文的进时间戳和其发送端发出所述PTP时间报文的出时间戳,并将 所述进时间戳和所述出时间戳发送给数据处理单元,及The PHY chip is set to receive the switching chip, record the incoming timestamp of the PTP time packet received by the receiver and the outgoing timestamp of the PTP time packet sent by the transmitter, and record the incoming timestamp. stamp and the out-time stamp are sent to the data processing unit, and
    数据处理单元,被设置为根据所述进时间戳和出时间戳,计算出双向时间差值,将所述双向时间差值发送给交换芯片,并根据所述双向时间差值设置交换芯片的延迟值;The data processing unit is configured to calculate a two-way time difference value according to the incoming time stamp and outgoing time stamp, send the two-way time difference value to the switch chip, and set the delay of the switch chip according to the two-way time difference value value;
    所述交换芯片,还被设置为根据所述延迟值更新交换芯片发出PTP时间报文的时间。The switching chip is further configured to update the time at which the switching chip sends the PTP time packet according to the delay value.
  7. 根据权利要求6所述的实现网络时间同步的装置,其中,所述PHY芯片周期性的将所述进时间戳和所述出时间戳发送给数据处理单元。The apparatus for realizing network time synchronization according to claim 6, wherein the PHY chip periodically sends the incoming time stamp and the outgoing time stamp to the data processing unit.
  8. 根据权利要求6所述的实现网络时间同步的装置,其中,所述PHY芯片通过MDIO信号线将所述进时间戳和所述出时间戳发送给数据处理单元。The apparatus for realizing network time synchronization according to claim 6, wherein the PHY chip sends the incoming time stamp and the outgoing time stamp to the data processing unit through an MDIO signal line.
  9. 根据权利要求6所述的实现网络时间同步的装置,其中,所述双向时间差值为所述出时间戳和进时间戳的差值。The apparatus for realizing network time synchronization according to claim 6, wherein the bidirectional time difference is a difference between the outgoing timestamp and the incoming timestamp.
  10. 根据权利要求6所述的实现网络时间同步的装置,其中,更新后的交换芯片发出PTP时间报文的时间为加上延迟值后的时间。The device for realizing network time synchronization according to claim 6, wherein the time when the updated switching chip sends the PTP time message is the time after adding the delay value.
PCT/CN2021/136912 2020-12-11 2021-12-09 Method and apparatus for implementing network time synchronization WO2022121996A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011459234.4 2020-12-11
CN202011459234.4A CN112615694B (en) 2020-12-11 2020-12-11 Method and device for realizing network time synchronization

Publications (1)

Publication Number Publication Date
WO2022121996A1 true WO2022121996A1 (en) 2022-06-16

Family

ID=75233476

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/136912 WO2022121996A1 (en) 2020-12-11 2021-12-09 Method and apparatus for implementing network time synchronization

Country Status (2)

Country Link
CN (1) CN112615694B (en)
WO (1) WO2022121996A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112615694B (en) * 2020-12-11 2022-08-12 苏州盛科通信股份有限公司 Method and device for realizing network time synchronization

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113517A (en) * 2013-04-22 2014-10-22 华为技术有限公司 Timestamp generation method, device and system
WO2015049481A1 (en) * 2013-10-02 2015-04-09 Khalifa University of Science, Technology, and Research Method and devices for compensating for path asymmetry
CN108322280A (en) * 2017-12-12 2018-07-24 北京时代民芯科技有限公司 A kind of distributed computer network (DCN) clock synchronizing relay compensation method
CN108599887A (en) * 2018-04-24 2018-09-28 新华三技术有限公司 A kind of time difference computational methods and forwarding unit
CN111800213A (en) * 2020-06-19 2020-10-20 西安电子科技大学 High-speed TTE (time to live) cascade network 1588 synchronization method, system and device
CN112615694A (en) * 2020-12-11 2021-04-06 盛科网络(苏州)有限公司 Method and device for realizing network time synchronization

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447861B (en) * 2008-12-29 2011-10-26 中兴通讯股份有限公司 IEEE 1588 time synchronization system and implementation method thereof
CN102638339B (en) * 2012-04-20 2014-12-24 杭州华三通信技术有限公司 Method and device for realizing precision time synchronization
CN107579793A (en) * 2016-07-04 2018-01-12 中兴通讯股份有限公司 The optimization method of time synchronized, device and equipment between a kind of communication network device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113517A (en) * 2013-04-22 2014-10-22 华为技术有限公司 Timestamp generation method, device and system
WO2015049481A1 (en) * 2013-10-02 2015-04-09 Khalifa University of Science, Technology, and Research Method and devices for compensating for path asymmetry
CN108322280A (en) * 2017-12-12 2018-07-24 北京时代民芯科技有限公司 A kind of distributed computer network (DCN) clock synchronizing relay compensation method
CN108599887A (en) * 2018-04-24 2018-09-28 新华三技术有限公司 A kind of time difference computational methods and forwarding unit
CN111800213A (en) * 2020-06-19 2020-10-20 西安电子科技大学 High-speed TTE (time to live) cascade network 1588 synchronization method, system and device
CN112615694A (en) * 2020-12-11 2021-04-06 盛科网络(苏州)有限公司 Method and device for realizing network time synchronization

Also Published As

Publication number Publication date
CN112615694B (en) 2022-08-12
CN112615694A (en) 2021-04-06

Similar Documents

Publication Publication Date Title
EP3491753B1 (en) System and methods for network synchronization
US9256247B2 (en) Method and apparatus for communicating time information between time aware devices
CN101951312B (en) E1 link-based bidirectional time-frequency synchronous transmission method and master-slave device
US8571068B2 (en) Network timing distribution and synchronization using virtual network delays
CN102098155B (en) Method for realizing sub-microsecond synchronization accuracy based on PTP (Precision Time Protocol)
WO2011017867A1 (en) Method and system for bearing time synchronization protocol in optical transport network
WO2021004005A1 (en) Timestamp jitter compensation method and system
WO2019174554A1 (en) Time delay compensation method and device
WO2012003746A1 (en) Method and device for realizing boundary clock
WO2012068845A1 (en) Method and system for time synchronization
CN101753578B (en) ETHERNET/EI protocol conversion method and protocol converter
WO2010111963A1 (en) Time synchronization device, method and system
US20220007321A1 (en) Network Entities and Methods for a Wireless Network System for Determining Time Information
WO2015117501A1 (en) Time synchronization method, programmable logic device, single board and network element
CN105450321A (en) Network data transmission method and device
WO2011134371A1 (en) Method for synchronizing clocks and clock synchronization device
CN102244603A (en) Method, equipment and system for transmitting message bearing time
WO2017071276A1 (en) Relay systems air interface time synchronization method and device
WO2022121996A1 (en) Method and apparatus for implementing network time synchronization
CN105610727A (en) Network data transmission method and device
CN113014515B (en) Method and switch for supporting heterogeneous network time synchronization delay compensation
CN100474807C (en) Method and device for realizing media gateway synchronization in communication system
US20220026857A1 (en) Time transmission correction device, time transmission system, and delay measurement method
Schüngel et al. Single message distribution of timing information for time synchronization in converged wired and wireless networks
CN201789509U (en) Bidirectional frequency synchronous transmission master-slave device based on E1 link

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10/11/2023)