WO2018166223A1 - System and method for realizing 1588 time synchronization between otn devices - Google Patents

System and method for realizing 1588 time synchronization between otn devices Download PDF

Info

Publication number
WO2018166223A1
WO2018166223A1 PCT/CN2017/109845 CN2017109845W WO2018166223A1 WO 2018166223 A1 WO2018166223 A1 WO 2018166223A1 CN 2017109845 W CN2017109845 W CN 2017109845W WO 2018166223 A1 WO2018166223 A1 WO 2018166223A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
otn
overhead frame
packet
field
Prior art date
Application number
PCT/CN2017/109845
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 WO2018166223A1 publication Critical patent/WO2018166223A1/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/0647Synchronisation among TDM nodes
    • H04J3/065Synchronisation among TDM nodes using timestamps
    • 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
    • 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)
  • Small-Scale Networks (AREA)

Abstract

The present invention relates to the field of network communications. Disclosed is a system for realizing 1588 time synchronization between OTN devices, wherein the system comprises a sending end and a receiving end. The sending end comprises a time-stamping apparatus for time message sending, and a framing apparatus for an OTN overhead frame connected to each other; and the receiving end comprises a de-framing apparatus for the OTN overhead frame, and a time-stamping apparatus for time message receiving connected to each other, wherein two OTN devices are internally provided with the sending end and the receiving end, and the framing apparatus, of the sending end in one OTN device, for the OTN overhead frame is connected to the de-framing apparatus, of the receiving end in the other OTN device, for the OTN overhead frame. Further disclosed is a method for realizing 1588 time synchronization between OTN devices. The present invention enables an interaction involving a time synchronization message between two OTN devices.

Description

一种在OTN设备间实现1588时间同步的系统及方法System and method for realizing 1588 time synchronization between OTN devices 技术领域Technical field
本发明涉及网络通信领域,具体涉及一种在OTN设备间实现1588时间同步的系统和一种在OTN设备间实现1588时间同步的方法。The present invention relates to the field of network communications, and in particular, to a system for implementing 1588 time synchronization between OTN devices and a method for implementing 1588 time synchronization between OTN devices.
背景技术Background technique
时间同步功能是传输设备与传输设备之间重要的时间校准途径,特别是在与实时性相关度很高的业务或者传输设备上,时间同步功能更加显得重要。1588时间同步功能能够达到纳秒级别精度的时间同步,远远优于其它方式的时间同步方式,因而被大多数传输设备所采用。1588时间同步,全称IEEE1588时间同步,是一种用于网络测量和控制系统的精密时钟同步协议。Time synchronization is an important time calibration method between transmission equipment and transmission equipment. Especially in business or transmission equipment with high correlation with real-time, time synchronization is more important. The 1588 time synchronization function achieves nanosecond-level accuracy of time synchronization, which is far superior to other methods of time synchronization and is therefore adopted by most transmission equipment. 1588 Time Synchronization, full name IEEE1588 Time Synchronization, is a precision clock synchronization protocol for network measurement and control systems.
根据IEEE1588V2协议的规定,时间同步报文(或称PTP报文)的主要载体为以太网报文。在不同类型的传输设备中,时间报文的传输路径也各不相同,例如在PTN(Packet Transport Network,分组传送网)设备中,时间报文的传输路径与业务报文的传输路径相同,即在以太网路径上进行混传,但对于OTN(Optical Transport Network,光传送网)设备,ITU-T组织发布了最新的G.709标准,用于实现OTN设备中的时间同步,因而目前各个厂商均是根据自家OTN设备特点来进行1588时间同步功能的实现,但对于两PTN设备之间,目前还缺乏一种较好的时间同步报文交互方式用于实现两OTN设备间的1588时间同步功能。 According to the IEEE 1588 V2 protocol, the primary bearer of a time synchronization message (or PTP message) is an Ethernet packet. In a different type of transmission device, the transmission path of the time packet is also different. For example, in a PTN (Packet Transport Network) device, the transmission path of the time packet is the same as the transmission path of the service packet, that is, Mixed transmission on the Ethernet path, but for OTN (Optical Transport Network) devices, ITU-T has released the latest G.709 standard for time synchronization in OTN devices. The 1588 time synchronization function is implemented according to the characteristics of the OTN device. However, there is a lack of a good time synchronization packet interaction mode between the two PTN devices to implement the 1588 time synchronization function between the two OTN devices. .
发明内容Summary of the invention
针对现有技术中存在的缺陷,本发明的目的在于提供一种在OTN设备间实现1588时间同步的系统和一种在OTN设备间实现1588时间同步的方法,使两OTN设备间进行时间同步报文的交互。In view of the deficiencies in the prior art, the present invention aims to provide a system for implementing 1588 time synchronization between OTN devices and a method for implementing 1588 time synchronization between OTN devices, so that time synchronization reports between two OTN devices are performed. Text interaction.
为达到以上目的,本发明采取的技术方案是,包括:In order to achieve the above object, the technical solution adopted by the present invention includes:
发送端,其包括相连的时间报文发送打时戳装置和OTN开销帧组帧装置,所述时间报文发送打时戳装置用于对时间报文进行时戳以及修正域的替换,并将替换后的时间报文发送至所述OTN开销帧组帧装置进行GFP-F编码形成OTN开销帧数据流并发送;a transmitting end, comprising: a connected time message sending time stamping device and an OTN overhead frame framing device, wherein the time message sending time stamping device is configured to perform time stamping of the time message and correct domain replacement, and Transmitting the replaced time message to the OTN overhead frame framing device for GFP-F coding to form an OTN overhead frame data stream and transmitting;
接收端,其包括相连的OTN开销帧解帧装置和时间报文接收打时戳装置,所述OTN开销帧解帧装置用于接收OTN开销帧数据流,并对OTN开销帧数据流解码得到时间报文,然后将时间报文发送至所述时间报文接收打时戳装置进行时戳以及修正域的替换;The receiving end includes a connected OTN overhead frame deframing device and a time packet receiving time stamping device, and the OTN overhead frame deframing device is configured to receive an OTN overhead frame data stream and decode the OTN overhead frame data stream to obtain a time. Transmitting, then sending a time message to the time message receiving time stamping device for time stamping and correcting domain replacement;
其中,两OTN设备内均设有发送端和接收端,且一OTN设备中发送端的OTN开销帧组帧装置与另一OTN设备中接收端的OTN开销帧解帧装置相连。The OTN overhead frame framing device of the OTN device is connected to the OTN overhead frame demapping device of the receiving end of another OTN device.
在上述技术方案的基础上,所述发送端的两端分别连接时间报文数据帧输入总线和OTN开销帧输出总线,所述接收端的两端分别连接OTN开销帧输入总线和时间报文数据帧输出总线,且一OTN设备中发送端的OTN开销帧输出总线与另一OTN设备中接收端的OTN开销帧输入总线相连。On the basis of the foregoing technical solution, the two ends of the transmitting end are respectively connected with a time packet data frame input bus and an OTN overhead frame output bus, and two ends of the receiving end are respectively connected with an OTN overhead frame input bus and a time packet data frame output. The bus, and the OTN overhead frame output bus of the transmitting end of an OTN device is connected to the OTN overhead frame input bus of the receiving end of another OTN device.
本发明还公开了一种在OTN设备间实现1588时间同步的方法,包括:The invention also discloses a method for implementing 1588 time synchronization between OTN devices, comprising:
S1:在一OTN设备中,将时间报文数据帧输入总线输入的时间报文的时戳字段替换为设备当前时间值,并将时间报文的修正域字段 替换为设备当前时间值与时间报文中已有时戳之间的差值,所述设备当前时间值为时间报文当前所处OTN设备的当前时间值;S1: In an OTN device, replace the time stamp field of the time message input into the bus with the time packet data frame input into the current time value of the device, and modify the domain field of the time message. The current time value of the device is the difference between the current time value of the device and the time stamp of the time packet in the time packet. The current time value of the device is the current time value of the OTN device where the time packet is currently located.
S2:将替换处理后的时间报文填充于发送方向的OTN开销帧MFAS中,对OTN开销帧MFAS进行GFP-F编码,形成OTN开销帧数据流并发送至另一OTN设备;S2: The OTN overhead frame MFAS is filled in the OTN overhead frame MFAS in the sending direction, and the OTN overhead frame MFAS is GFP-F encoded to form an OTN overhead frame data stream and sent to another OTN device.
S3:另一OTN设备接收OTN开销帧数据流,并对OTN开销帧数据流进行解码处理得到时间报文和接收方向的OTN开销帧MFAS;S3: another OTN device receives the OTN overhead frame data stream, and decodes the OTN overhead frame data stream to obtain a time packet and an OTN overhead frame MFAS in the receiving direction;
S4:将时间报文的时戳字段替换为设备当前时间值,并将时间报文的修正域字段替换为设备当前时间值与时间报文中已有时戳之间的差值,然后将替换了时戳字段和修正域字段的时间报文经时间报文数据帧输出总线输出。S4: Replace the time stamp field of the time packet with the current time value of the device, and replace the modified domain field of the time packet with the difference between the current time value of the device and the existing time stamp in the time packet, and then replace the value. The time stamp field and the correction field field time message are output via the time message data frame output bus.
在上述技术方案的基础上,S1具体为:Based on the above technical solutions, S1 is specifically:
S101:接收时间报文和OTN开销帧接口中的发送方向的OTN开销帧MFAS;S101: Receive an OTN overhead frame MFAS in a sending direction and an OTN overhead frame interface.
S102:找出时间报文中的时戳和修正域位置;S102: Find a time stamp and a modified domain location in the time packet;
S103:将时间报文中时戳字段替换为设备当前时间值,并将时间报文中修正域字段替换为设备当前时间值与时间报文中已有时戳之间的差值。S103: Replace the time stamp field in the time packet with the current time value of the device, and replace the modified domain field in the time packet with the difference between the current time value of the device and the existing time stamp in the time packet.
在上述技术方案的基础上,S2具体为:Based on the above technical solutions, S2 is specifically:
S201:在发送方向的OTN开销帧MFAS的前面增加帧头字段,将时间报文填充于发送方向的OTN开销帧MFAS的后续字段中;S201: Add a frame header field in front of the OTN overhead frame MFAS in the sending direction, and fill the time packet in a subsequent field of the OTN overhead frame MFAS in the sending direction;
S202:在位于OTN开销帧MFAS上的时间报文后添加4个字节的CRC字段,形成OTN开销帧数据流,所述CRC字段的校验范围为时间报文的所有字节;S202: Add a 4-byte CRC field after the time packet on the OTN overhead frame MFAS to form an OTN overhead frame data stream, where the check range of the CRC field is all bytes of the time packet.
S203:对OTN开销帧数据流进行扰码处理。 S203: Perform scrambling processing on the OTN overhead frame data stream.
在上述技术方案的基础上,所述OTN开销帧数据流写入线路OTN业务帧中,然后从一OTN设备传输至另一OTN设备。Based on the foregoing technical solution, the OTN overhead frame data stream is written in a line OTN service frame, and then transmitted from one OTN device to another OTN device.
在上述技术方案的基础上,S3具体为:Based on the above technical solutions, S3 is specifically:
S301:对OTN开销帧数据流进行解码和解码处理,得到时间报文和接收方向的OTN开销帧MFAS;S301: Decoding and decoding the OTN overhead frame data stream to obtain a time packet and an OTN overhead frame MFAS in the receiving direction;
S302:对时间报文进行校验,判断时间报文是否之前填充于发送方向的OTN开销帧MFAS中的时间报文,若是,则保留,若否,则丢弃。S302: Checking the time packet, and determining whether the time packet is filled in the time packet in the OTN overhead frame MFAS in the sending direction, if yes, then, if not, discarding.
在上述技术方案的基础上,所述OTN开销帧数据流进行GFP定帧处理后,再进行解码和解码处理。Based on the above technical solution, after the OT frame is processed by the OTN overhead frame data stream, decoding and decoding processing is performed.
在上述技术方案的基础上,S4具体为:Based on the above technical solutions, S4 is specifically:
S401:找出时间报文中的时戳和修正域位置;S401: Find a time stamp and a modified domain location in the time packet;
S402:将时间报文中时戳字段替换为设备当前时间值,并将时间报文中修正域字段替换为设备当前时间值与时间报文中已有时戳之间的差值,然后将替换了时戳字段和修正域字段的时间报文经时间报文数据帧输出总线输出。S402: Replace the time stamp field in the time packet with the current time value of the device, and replace the modified domain field in the time packet with the difference between the current time value of the device and the existing time stamp in the time packet, and then replace the value. The time stamp field and the correction field field time message are output via the time message data frame output bus.
与现有技术相比,本发明一种在OTN设备间实现1588时间同步的系统的优点在于:两OTN设备中均设有发送端和接收端,通过发送端中的OTN开销帧组帧装置,对时间报文进行GFP-F编码封装,从而使得时间报文在两OTN设备间进行传输,完成时间报文的交互,从而实现OTN设备间的1588时间同步。Compared with the prior art, the system of the present invention achieves 1588 time synchronization between OTN devices. The two OTN devices are provided with a transmitting end and a receiving end, and the OTN overhead frame framing device in the transmitting end is used. The GFP-F encoding is encapsulated in the time packet, so that the time packet is transmitted between the two OTN devices, and the time packet is exchanged, thereby implementing 1588 time synchronization between the OTN devices.
本发明一种在OTN设备间实现1588时间同步的方法的优点在于:通过对时间报文进行时戳和修正域数值的替换,进行时间校准,然后将时间报文填充于发送方向的OTN开销帧MFAS中,进行GFP-F编码,从而将以太网帧以载荷的形式放在一个供非以太网传输辅助格 式内部,以便于在两OTN设备进行传输,从而使一OTN设备中的时间报文到达另一OTN设备中,进行时间报文的交互,然后再次对时间报文进行时间校准,从而完成两OTN设备的1588时间同步。An advantage of the method for implementing 1588 time synchronization between OTN devices is that time calibration is performed by replacing time stamps with modified domain values, and then time packets are filled in the OTN overhead frame in the sending direction. In MFAS, GFP-F encoding is performed to place the Ethernet frame in the form of a payload for a non-Ethernet transmission auxiliary grid. Internally, in order to transmit on the two OTN devices, the time packets in one OTN device are sent to another OTN device, the time message is exchanged, and then the time message is time-calibrated again, thereby completing two OTNs. 1588 time synchronization of the device.
附图说明DRAWINGS
图1为本发明一种在OTN设备间实现1588时间同步的系统的结构示意图;1 is a schematic structural diagram of a system for implementing 1588 time synchronization between OTN devices according to the present invention;
图2为本发明一种在OTN设备间实现1588时间同步的方法的流程图。2 is a flow chart of a method for implementing 1588 time synchronization between OTN devices according to the present invention.
具体实施方式detailed description
以下结合附图对本发明作进一步详细说明。The invention will be further described in detail below with reference to the accompanying drawings.
参见图1所示,本发明提供一种在OTN设备间实现1588时间同步的系统,用于在两OTN设备间实现1588时间同步,包括:两OTN设备内均设有发送端和接收端,发送端包括相连的时间报文发送打时戳装置和OTN开销帧组帧装置,时间报文发送打时戳装置用于对时间报文进行时戳以及修正域的替换,并将替换后的时间报文发送至所述OTN开销帧组帧装置进行GFP-F编码形成OTN开销帧数据流并发送,即将以太网帧以载荷的形式放在一个供非以太网传输辅助格式内部,以便于在两OTN设备进行传输,接收端包括相连的OTN开销帧解帧装置和时间报文接收打时戳装置,OTN开销帧解帧装置用于接收OTN开销帧数据流,并对OTN开销帧数据流解码得到时间报文,然后将时间报文发送至所述时间报文接收打时戳装置进行时戳以及修正域的替换,且一OTN设备中发送端的OTN开销帧组帧装置与另一OTN设备中接收端的OTN开销帧解帧装置相连。As shown in FIG. 1 , the present invention provides a system for implementing 1588 time synchronization between OTN devices, which is used to implement 1588 time synchronization between two OTN devices, including: two OTN devices are provided with a transmitting end and a receiving end, and are sent. The terminal includes a connected time message sending time stamping device and an OTN overhead frame framing device, and the time message sending time stamping device is configured to perform time stamping of the time message and correct the domain replacement, and replace the time report. Sending to the OTN overhead frame framing device for GFP-F encoding to form an OTN overhead frame data stream and transmitting, that is, placing the Ethernet frame in a payload format for a non-Ethernet transmission auxiliary format, so as to facilitate the OTN The device performs transmission, and the receiving end includes a connected OTN overhead frame de-frame device and a time packet receiving time-stamp device, and the OTN overhead frame de-frame device is configured to receive the OTN overhead frame data stream and decode the OTN overhead frame data stream to obtain a time. Transmitting, then sending a time message to the time message receiving time stamping device for time stamping and correcting domain replacement, and an OTN overhead frame framing device of the transmitting end of the OTN device and another OTN equipment OTN receiving end device connected to the frame overhead frame solutions.
发送端的两端分别连接时间报文数据帧输入总线和OTN开销帧 输出总线,接收端的两端分别连接OTN开销帧输入总线和时间报文数据帧输出总线,且一OTN设备中发送端的OTN开销帧输出总线与另一OTN设备中接收端的OTN开销帧输入总线相连,即时间报文发送打时戳装置连接时间报文数据帧输入总线,时间报文数据帧输入总线用于向时间报文发送打时戳装置中输入时间报文,OTN开销帧组帧装置连接OTN开销帧输出总线,OTN开销帧解帧装置连接OTN开销帧输入总线,时间报文接收打时戳装置连接时间报文数据帧输出总线,时间报文数据帧输出总线用于将进行完时戳以及修正域替换的时间报文输出。Both ends of the sender are connected to the time message data frame input bus and the OTN overhead frame respectively. The output bus, the two ends of the receiving end are respectively connected to the OTN overhead frame input bus and the time message data frame output bus, and the OTN overhead frame output bus of the transmitting end of one OTN device is connected with the OTN overhead frame input bus of the receiving end of another OTN device, That is, the time message sending time stamping device is connected to the time message data frame input bus, the time message data frame input bus is used to send the time message to the time message sending time stamping device, and the OTN overhead frame framing device is connected to the OTN. Overhead frame output bus, OTN overhead frame de-frame device connected to OTN overhead frame input bus, time message receiving time stamp device connected time message data frame output bus, time message data frame output bus for performing time stamping and Correct the time packet output of the domain replacement.
参见图2所示,本发明还提供一种基于上述系统的在OTN设备间实现1588时间同步的方法,包括:Referring to FIG. 2, the present invention further provides a method for implementing 1588 time synchronization between OTN devices based on the foregoing system, including:
S1:在一OTN设备中,将时间报文的时戳字段替换为设备当前时间值,并将时间报文的修正域字段替换为设备当前时间值与时间报文中已有时戳之间的差值,该步骤在时间报文发送打时戳装置中完成,且时间报文由时间报文数据帧输入总线输入时间报文发送打时戳装置中。设备当前时间值为时间报文当前所处OTN设备的当前时间值。具体的:S1: In an OTN device, replace the time stamp field of the time packet with the current time value of the device, and replace the modified field field of the time message with the difference between the current time value of the device and the existing time stamp in the time message. The value is completed in the time stamp sending time stamping device, and the time message is sent from the time message data frame input bus input time message to the time stamping device. The current time value of the device is the current time value of the OTN device where the time packet is currently located. specific:
S101:接收时间报文和OTN开销帧接口中的发送方向的OTN开销帧MFAS(Multi-frame Alignment Signal,复帧定位字节),发送方向的OTN开销帧MFAS由OTN开销帧接口发送至时间报文发送打时戳装置;S101: The OTN overhead frame MFAS (Multi-frame Alignment Signal) in the transmission direction of the time-of-day packet and the OTN overhead frame interface, and the OTN overhead frame MFAS in the sending direction is sent by the OTN overhead frame interface to the time report. Send a time stamp device;
S102:找出时间报文中的时戳和修正域位置;S102: Find a time stamp and a modified domain location in the time packet;
S103:将时间报文的时戳字段替换为设备当前时间值,并将时间报文的修正域字段替换为设备当前时间值与时间报文中已有时戳之间的差值。 S103: Replace the time stamp field of the time packet with the current time value of the device, and replace the modified domain field of the time message with the difference between the current time value of the device and the existing time stamp in the time message.
S2:将上述替换处理后的时间报文填充于发送方向的OTN开销帧MFAS中,对OTN开销帧MFAS进行GFP-F编码,形成OTN开销帧数据流并发送至另一OTN设备,即将以太网帧以载荷的形式放在一个供非以太网传输辅助格式内部,以便于在两OTN设备进行传输,GFP为一种常见的将以太网帧以载荷的形式放在一个供非以太网传输辅助格式内部的帧封装协议,GFP-F是该帧封装协议针对不同业务数据所采用的两种模式中的帧映射模式。该步骤在OTN开销帧组帧装置中完成,具体包括:S2: Filling in the OTN overhead frame MFAS in the sending direction, and performing GFP-F encoding on the OTN overhead frame MFAS to form an OTN overhead frame data stream and sending it to another OTN device, that is, Ethernet Frames are placed in a non-Ethernet transmission auxiliary format in the form of payloads for transmission on both OTN devices. GFP is a common way to place Ethernet frames in the form of payloads for a non-Ethernet transmission auxiliary format. The internal frame encapsulation protocol, GFP-F, is the frame mapping mode of the two modes adopted by the frame encapsulation protocol for different service data. The step is performed in the OTN overhead frame framing device, and specifically includes:
S201:在发送方向的OTN开销帧MFAS的前面增加帧头字段,将时间报文填充于发送方向的OTN开销帧MFAS的后续字段中;S201: Add a frame header field in front of the OTN overhead frame MFAS in the sending direction, and fill the time packet in a subsequent field of the OTN overhead frame MFAS in the sending direction;
S202:在位于OTN开销帧MFAS上的时间报文后添加4个字节的CRC字段,形成OTN开销帧数据流,CRC字段为校检字段,且CRC字段的校验范围为时间报文的所有字节;S202: Add a 4-byte CRC field after the time packet located on the OTN overhead frame MFAS to form an OTN overhead frame data stream, where the CRC field is a check field, and the check range of the CRC field is all of the time packet. byte;
S203:对OTN开销帧数据流进行扰码处理,避免其他信号影响OTN开销帧数据流,然后将OTN开销帧数据流写入线路OTN业务帧中,然后写入线路OTN业务帧中的OTN开销帧数据流从一OTN设备传输至另一OTN设备,具体的,写入线路OTN业务帧中的OTN开销帧数据流通过OTN开销帧输出总线和OTN开销帧输入总线,从一OTN设备传输至另一OTN设备中。S203: Perform scrambling on the OTN overhead frame data stream to prevent other signals from affecting the OTN overhead frame data stream, and then write the OTN overhead frame data stream into the line OTN service frame, and then write the OTN overhead frame in the line OTN service frame. The data stream is transmitted from one OTN device to another OTN device. Specifically, the OTN overhead frame data stream in the write line OTN service frame is transmitted from one OTN device to another through the OTN overhead frame output bus and the OTN overhead frame input bus. In OTN equipment.
S3:另一OTN设备接收OTN开销帧数据流,并对OTN开销帧数据流进行解码处理得到时间报文和接收方向的OTN开销帧MFAS;该步骤在OTN开销帧解帧装置中完成,具体的包括:S3: another OTN device receives the OTN overhead frame data stream, and decodes the OTN overhead frame data stream to obtain a time packet and an OTN overhead frame MFAS in the receiving direction. This step is performed in the OTN overhead frame de-frame device, and the specific include:
S301:对OTN开销帧数据流进行解码和解码处理,得到时间报文和接收方向的OTN开销帧MFAS;S301: Decoding and decoding the OTN overhead frame data stream to obtain a time packet and an OTN overhead frame MFAS in the receiving direction;
S302:对时间报文进行校验,判断时间报文是否之前填充于发送 方向的OTN开销帧MFAS中的时间报文,若是,则保留,若否,则丢弃。S302: Check the time packet to determine whether the time packet is filled in before sending. The time packet in the OTN overhead frame MFAS of the direction is retained if it is, and if not, it is discarded.
S4:将时间报文的时戳字段替换为设备当前时间值,并将时间报文的修正域字段替换为设备当前时间值与时间报文中已有时戳之间的差值,然后将替换了时戳字段和修正域字段的时间报文经时间报文数据帧输出总线输出。该步骤在时间报文接收打时戳装置中完成,具体包括:S4: Replace the time stamp field of the time packet with the current time value of the device, and replace the modified domain field of the time packet with the difference between the current time value of the device and the existing time stamp in the time packet, and then replace the value. The time stamp field and the correction field field time message are output via the time message data frame output bus. The step is completed in the time stamp receiving time stamping device, and specifically includes:
S401:找出时间报文中的时戳和修正域位置;S401: Find a time stamp and a modified domain location in the time packet;
S402:将时间报文的时戳字段替换为设备当前时间值,并将时间报文的修正域字段替换为设备当前时间值与时间报文中已有时戳之间的差值,然后将替换了时戳字段和修正域字段的时间报文经时间报文数据帧输出总线输出,即输出给接受了OTN开销帧数据流的OTN设备,从而完成两OTN设备间的时间同步。S402: Replace the time stamp field of the time packet with the current time value of the device, and replace the modified domain field of the time packet with the difference between the current time value of the device and the existing time stamp in the time packet, and then replace the value. The time stamp field and the correction field field time message are outputted by the time message data frame output bus, that is, output to the OTN device that accepts the OTN overhead frame data stream, thereby completing time synchronization between the two OTN devices.
本发明的在OTN设备间实现1588时间同步的方法,通过对时间报文进行时戳和修正域数值的替换,进行时间校准,然后将时间报文填充于发送方向的OTN开销帧MFAS中,进行GFP-F编码,从而将以太网帧以载荷的形式放在一个供非以太网传输辅助格式内部,以便于在两OTN设备进行传输,从而使一OTN设备中的时间报文到达另一OTN设备中,进行时间报文的交互,然后再次对时间报文进行时间校准,从而完成两OTN设备的1588时间同步。The method for implementing 1588 time synchronization between OTN devices according to the present invention performs time calibration by replacing the time stamp with the time domain and correcting the field value, and then filling the time packet into the OTN overhead frame MFAS in the sending direction. GFP-F encoding, so that the Ethernet frame is placed in a non-Ethernet transmission auxiliary format in the form of a payload, so as to be transmitted on the two OTN devices, so that the time message in one OTN device reaches another OTN device. The time packet is exchanged, and then the time packet is time-calibrated again, thereby completing 1588 time synchronization of the two OTN devices.
本发明不局限于上述实施方式,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围之内。本说明书中未作详细描述的内容属于本领域专业技术人员公知的现有技术。 The present invention is not limited to the above embodiments, and those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. These improvements and retouchings are also considered as protection of the present invention. Within the scope. The contents not described in detail in the present specification belong to the prior art well known to those skilled in the art.

Claims (9)

  1. 一种在OTN设备间实现1588时间同步的系统,用于在两OTN设备间实现1588时间同步,其特征在于,包括:A system for implementing 1588 time synchronization between OTN devices for implementing 1588 time synchronization between two OTN devices, including:
    发送端,其包括相连的时间报文发送打时戳装置和OTN开销帧组帧装置,所述时间报文发送打时戳装置用于对时间报文进行时戳以及修正域的替换,并将替换后的时间报文发送至所述OTN开销帧组帧装置进行GFP-F编码形成OTN开销帧数据流并发送;a transmitting end, comprising: a connected time message sending time stamping device and an OTN overhead frame framing device, wherein the time message sending time stamping device is configured to perform time stamping of the time message and correct domain replacement, and Transmitting the replaced time message to the OTN overhead frame framing device for GFP-F coding to form an OTN overhead frame data stream and transmitting;
    接收端,其包括相连的OTN开销帧解帧装置和时间报文接收打时戳装置,所述OTN开销帧解帧装置用于接收OTN开销帧数据流,并对OTN开销帧数据流解码得到时间报文,然后将时间报文发送至所述时间报文接收打时戳装置进行时戳以及修正域的替换;The receiving end includes a connected OTN overhead frame deframing device and a time packet receiving time stamping device, and the OTN overhead frame deframing device is configured to receive an OTN overhead frame data stream and decode the OTN overhead frame data stream to obtain a time. Transmitting, then sending a time message to the time message receiving time stamping device for time stamping and correcting domain replacement;
    其中,两OTN设备内均设有发送端和接收端,且一OTN设备中发送端的OTN开销帧组帧装置与另一OTN设备中接收端的OTN开销帧解帧装置相连。The OTN overhead frame framing device of the OTN device is connected to the OTN overhead frame demapping device of the receiving end of another OTN device.
  2. 如权利要求1所述的一种在OTN设备间实现1588时间同步的系统,其特征在于:所述发送端的两端分别连接时间报文数据帧输入总线和OTN开销帧输出总线,所述接收端的两端分别连接OTN开销帧输入总线和时间报文数据帧输出总线,且一OTN设备中发送端的OTN开销帧输出总线与另一OTN设备中接收端的OTN开销帧输入总线相连。A system for implementing 1588 time synchronization between OTN devices according to claim 1, wherein both ends of the transmitting end are respectively connected with a time message data frame input bus and an OTN overhead frame output bus, and the receiving end The OTN overhead frame input bus and the time message data frame output bus are respectively connected to the two ends, and the OTN overhead frame output bus of the transmitting end of one OTN device is connected to the OTN overhead frame input bus of the receiving end of another OTN device.
  3. 一种基于权利要求1或2任一项所述系统的在OTN设备间实现1588时间同步的方法,其特征在于,包括:A method for implementing 1588 time synchronization between OTN devices according to the system of any one of claims 1 or 2, comprising:
    S1:在一OTN设备中,将时间报文数据帧输入总线输入的时间报文的时戳字段替换为设备当前时间值,并将时间报文的修正域字段替换为设备当前时间值与时间报文中已有时戳之间的差值,所述设备 当前时间值为时间报文当前所处OTN设备的当前时间值;S1: In an OTN device, the time stamp field of the time message input into the bus is replaced with the current time value of the device, and the correction domain field of the time message is replaced with the current time value and time report of the device. The difference between the time stamps in the text, the device The current time value is the current time value of the OTN device where the time packet is currently located;
    S2:将替换处理后的时间报文填充于发送方向的OTN开销帧MFAS中,对OTN开销帧MFAS进行GFP-F编码,形成OTN开销帧数据流并发送至另一OTN设备;S2: The OTN overhead frame MFAS is filled in the OTN overhead frame MFAS in the sending direction, and the OTN overhead frame MFAS is GFP-F encoded to form an OTN overhead frame data stream and sent to another OTN device.
    S3:另一OTN设备接收OTN开销帧数据流,并对OTN开销帧数据流进行解码处理得到时间报文和接收方向的OTN开销帧MFAS;S3: another OTN device receives the OTN overhead frame data stream, and decodes the OTN overhead frame data stream to obtain a time packet and an OTN overhead frame MFAS in the receiving direction;
    S4:将时间报文的时戳字段替换为设备当前时间值,并将时间报文的修正域字段替换为设备当前时间值与时间报文中已有时戳之间的差值,然后将替换了时戳字段和修正域字段的时间报文经时间报文数据帧输出总线输出。S4: Replace the time stamp field of the time packet with the current time value of the device, and replace the modified domain field of the time packet with the difference between the current time value of the device and the existing time stamp in the time packet, and then replace the value. The time stamp field and the correction field field time message are output via the time message data frame output bus.
  4. 如权利要求3所述的一种在OTN设备间实现1588时间同步的方法,其特征在于,S1具体为:The method for implementing 1588 time synchronization between OTN devices according to claim 3, wherein S1 is specifically:
    S101:接收时间报文和OTN开销帧接口中的发送方向的OTN开销帧MFAS;S101: Receive an OTN overhead frame MFAS in a sending direction and an OTN overhead frame interface.
    S102:找出时间报文中的时戳和修正域位置;S102: Find a time stamp and a modified domain location in the time packet;
    S103:将时间报文中时戳字段替换为设备当前时间值,并将时间报文中修正域字段替换为设备当前时间值与时间报文中已有时戳之间的差值。S103: Replace the time stamp field in the time packet with the current time value of the device, and replace the modified domain field in the time packet with the difference between the current time value of the device and the existing time stamp in the time packet.
  5. 如权利要求4所述的一种在OTN设备间实现1588时间同步的方法,其特征在于,S2具体为:The method for implementing 1588 time synchronization between OTN devices according to claim 4, wherein S2 is specifically:
    S201:在发送方向的OTN开销帧MFAS的前面增加帧头字段,将时间报文填充于发送方向的OTN开销帧MFAS的后续字段中;S201: Add a frame header field in front of the OTN overhead frame MFAS in the sending direction, and fill the time packet in a subsequent field of the OTN overhead frame MFAS in the sending direction;
    S202:在位于OTN开销帧MFAS上的时间报文后添加4个字节的CRC字段,形成OTN开销帧数据流,所述CRC字段的校验范围为时间报文的所有字节; S202: Add a 4-byte CRC field after the time packet on the OTN overhead frame MFAS to form an OTN overhead frame data stream, where the check range of the CRC field is all bytes of the time packet.
    S203:对OTN开销帧数据流进行扰码处理。S203: Perform scrambling processing on the OTN overhead frame data stream.
  6. 如权利要求5所述的一种在OTN设备间实现1588时间同步的方法,其特征在于:所述OTN开销帧数据流写入线路OTN业务帧中,然后从一OTN设备传输至另一OTN设备。The method for implementing 1588 time synchronization between OTN devices according to claim 5, wherein the OTN overhead frame data stream is written in a line OTN service frame, and then transmitted from one OTN device to another OTN device. .
  7. 如权利要求5所述的一种在OTN设备间实现1588时间同步的方法,其特征在于,S3具体为:The method for implementing 1588 time synchronization between OTN devices according to claim 5, wherein S3 is specifically:
    S301:对OTN开销帧数据流进行解码和解码处理,得到时间报文和接收方向的OTN开销帧MFAS;S301: Decoding and decoding the OTN overhead frame data stream to obtain a time packet and an OTN overhead frame MFAS in the receiving direction;
    S302:对时间报文进行校验,判断时间报文是否之前填充于发送方向的OTN开销帧MFAS中的时间报文,若是,则保留,若否,则丢弃。S302: Checking the time packet, and determining whether the time packet is filled in the time packet in the OTN overhead frame MFAS in the sending direction, if yes, then, if not, discarding.
  8. 如权利要求7所述的一种在OTN设备间实现1588时间同步的方法,其特征在于:所述OTN开销帧数据流进行GFP定帧处理后,再进行解码和解码处理。The method for implementing 1588 time synchronization between OTN devices according to claim 7, wherein the OTN overhead frame data stream is subjected to GFP frame processing, and then decoded and decoded.
  9. 如权利要求8所述的一种在OTN设备间实现1588时间同步的方法,其特征在于,S4具体为:The method for implementing 1588 time synchronization between OTN devices according to claim 8, wherein S4 is specifically:
    S401:找出时间报文中的时戳和修正域位置;S401: Find a time stamp and a modified domain location in the time packet;
    S402:将时间报文中时戳字段替换为设备当前时间值,并将时间报文中修正域字段替换为设备当前时间值与时间报文中已有时戳之间的差值,然后将替换了时戳字段和修正域字段的时间报文经时间报文数据帧输出总线输出。 S402: Replace the time stamp field in the time packet with the current time value of the device, and replace the modified domain field in the time packet with the difference between the current time value of the device and the existing time stamp in the time packet, and then replace the value. The time stamp field and the correction field field time message are output via the time message data frame output bus.
PCT/CN2017/109845 2017-03-15 2017-11-08 System and method for realizing 1588 time synchronization between otn devices WO2018166223A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710154138.0A CN107070576B (en) 2017-03-15 2017-03-15 A kind of system and method for realizing 1588 time synchronizations in OTN equipment room
CN201710154138.0 2017-03-15

Publications (1)

Publication Number Publication Date
WO2018166223A1 true WO2018166223A1 (en) 2018-09-20

Family

ID=59620413

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/109845 WO2018166223A1 (en) 2017-03-15 2017-11-08 System and method for realizing 1588 time synchronization between otn devices

Country Status (2)

Country Link
CN (1) CN107070576B (en)
WO (1) WO2018166223A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107070576B (en) * 2017-03-15 2019-03-01 烽火通信科技股份有限公司 A kind of system and method for realizing 1588 time synchronizations in OTN equipment room
CN109787703B (en) * 2019-02-28 2020-08-25 烽火通信科技股份有限公司 Timestamp correction method, clock synchronization method and system
CN112672235A (en) * 2019-10-15 2021-04-16 中兴通讯股份有限公司 Synchronization method, device, equipment and storage medium
CN114866175A (en) * 2021-02-03 2022-08-05 华为技术有限公司 Communication method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102299788A (en) * 2011-09-21 2011-12-28 烽火通信科技股份有限公司 Method and device for controlling automatic transmission of IEEE1558 (Institute of Electrical and Electronic Engineers 1558) protocol message
US20120082156A1 (en) * 2010-09-30 2012-04-05 Ron Swartzentruber Timestamp predictor for packets over a synchronous protocol
CN102843620A (en) * 2011-06-24 2012-12-26 北京邮电大学 OTN (Optical Transport Network) device and method for realizing time synchronous transmission
CN104426772A (en) * 2013-09-10 2015-03-18 中国移动通信集团公司 Precision time protocol (PTP) message transmitting and receiving methods and PTP message transmitting and receiving equipment
CN104602141A (en) * 2015-01-16 2015-05-06 深圳市中兴微电子技术有限公司 Method, device and system for synchronizing time in OTN (Open Transport Network)
CN105846941A (en) * 2016-05-23 2016-08-10 西安电子科技大学 IEEE-1588-standard-based clock transparent transmission apparatus and method
CN107070576A (en) * 2017-03-15 2017-08-18 烽火通信科技股份有限公司 A kind of system and method that 1588 time synchronizeds are realized in OTN equipment rooms

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997669B (en) * 2009-08-14 2015-10-21 中兴通讯股份有限公司 Time-correcting method during optical transfer network carrying time synchronization protocol and system
US8953948B2 (en) * 2011-02-23 2015-02-10 Ciena Corporation Optical transport network synchronization and timestamping systems and methods
US9525482B1 (en) * 2015-02-09 2016-12-20 Microsemi Storage Solutions (U.S.), Inc. Apparatus and method for measurement of propagation time of a data stream in a transport network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120082156A1 (en) * 2010-09-30 2012-04-05 Ron Swartzentruber Timestamp predictor for packets over a synchronous protocol
CN102843620A (en) * 2011-06-24 2012-12-26 北京邮电大学 OTN (Optical Transport Network) device and method for realizing time synchronous transmission
CN102299788A (en) * 2011-09-21 2011-12-28 烽火通信科技股份有限公司 Method and device for controlling automatic transmission of IEEE1558 (Institute of Electrical and Electronic Engineers 1558) protocol message
CN104426772A (en) * 2013-09-10 2015-03-18 中国移动通信集团公司 Precision time protocol (PTP) message transmitting and receiving methods and PTP message transmitting and receiving equipment
CN104602141A (en) * 2015-01-16 2015-05-06 深圳市中兴微电子技术有限公司 Method, device and system for synchronizing time in OTN (Open Transport Network)
CN105846941A (en) * 2016-05-23 2016-08-10 西安电子科技大学 IEEE-1588-standard-based clock transparent transmission apparatus and method
CN107070576A (en) * 2017-03-15 2017-08-18 烽火通信科技股份有限公司 A kind of system and method that 1588 time synchronizeds are realized in OTN equipment rooms

Also Published As

Publication number Publication date
CN107070576A (en) 2017-08-18
CN107070576B (en) 2019-03-01

Similar Documents

Publication Publication Date Title
WO2018166223A1 (en) System and method for realizing 1588 time synchronization between otn devices
US11575495B2 (en) One-step timestamping in network devices
US8023505B2 (en) Circuit emulation service method and telecommunication system for implementing the method
EP2437416A2 (en) Timestamp predictor for packets over a synchronous protocol
JP5518191B2 (en) Method and system for optical transmission network carrying time synchronization protocol
EP2515481A1 (en) Transmission control method, access equipment and transmission system
WO2007012245A1 (en) Transmission processing method for data frame and system thereof
EP3082281B1 (en) Method for measuring transmission delay of optical transport network device and source otn device
CN106921641B (en) Method and device for transmitting message
US6731654B1 (en) Communication system overhead channel
US20160337730A1 (en) Ptp transparent clock system upgrade solution
US7672330B2 (en) Methods for sending and receiving network management messages and/or control messages
US8644347B2 (en) Transporting optical data units in an optical transport network
US20140226683A1 (en) Network adapter with high performance in-line timestamp
US20160365920A1 (en) Optical transmission system and delay measurement method
US7742503B2 (en) Method and apparatus for transmitting data from asynchronous network via synchronous network
WO2019170064A1 (en) Method, apparatus and system for processing ethernet data in optical network
WO2022121996A1 (en) Method and apparatus for implementing network time synchronization
CN112994824A (en) Time synchronization method, device and system for IRIG-B code non-delay transmission
WO2021073444A1 (en) Synchronization method and apparatus, device and storage medium
US20230269161A1 (en) Dynamic one-step/two-step timestamping per packet in network devices
US20230269018A1 (en) Dynamic one-step/two-step timestamping per packet in network devices
CN113708912B (en) Clock synchronization method and system thereof
US7158535B1 (en) System and method for translating overhead bytes in a multidimensional digital frame structure
WO2023284563A1 (en) Slot configuration method, slot configuration apparatus, and computer-readable storage medium

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

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

Country of ref document: EP

Kind code of ref document: A1