WO2023124197A1 - Timestamp synchronization error compensation method, apparatus, electronic device, and storage medium - Google Patents

Timestamp synchronization error compensation method, apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2023124197A1
WO2023124197A1 PCT/CN2022/117198 CN2022117198W WO2023124197A1 WO 2023124197 A1 WO2023124197 A1 WO 2023124197A1 CN 2022117198 W CN2022117198 W CN 2022117198W WO 2023124197 A1 WO2023124197 A1 WO 2023124197A1
Authority
WO
WIPO (PCT)
Prior art keywords
receiving end
message data
physical coding
coding sublayer
position information
Prior art date
Application number
PCT/CN2022/117198
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 WO2023124197A1 publication Critical patent/WO2023124197A1/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
    • 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
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring

Definitions

  • the present application belongs to the technical field of programmable logic devices, and in particular relates to a time stamp synchronization error compensation method, device, electronic equipment and storage medium.
  • IEEE 1588 is a precision clock synchronization protocol for networked measurement and control systems. It is often used in time synchronization in Ethernet and in time stamp synchronization of programmable logic devices.
  • the receiving end of the physical coding sublayer in the FPGA is composed of hsst quad (high-speed serial transceiver module) and emac quad (Ethernet media access control module) cascaded, in order to maintain the accuracy of the time stamp of the message data at the receiving end of the physical coding sublayer
  • hsst quad high-speed serial transceiver module
  • emac quad Error media access control module
  • the lane block sync module in the emac quad will be moved into the hsst quad.
  • the message data of the hsst quad will shift the bit position in the message data after passing through the lane block sync, so that the message header of the message data
  • a time stamp error will be generated in the lane block sync module.
  • the purpose of the present application is to provide a time stamp synchronization error compensation method, device, electronic equipment and storage medium, so as to solve the technical problems of the background technology.
  • the present application provides an error compensation method for time stamp synchronization, including:
  • Obtaining the message data at the receiving end of the physical coding sublayer is looking for the reference point position information in the codeword module;
  • obtaining the reference point position information of the message data at the receiving end of the physical coding sublayer in the codeword module includes:
  • the pcs lane format is the data channel format of the physical coding sublayer.
  • the method also includes:
  • the hsst lane format is a high-speed serial transceiver data channel format
  • the pcs lane format message data is obtained by converting the hsst lane format message data in the code word module of the receiving end of the physical coding sublayer.
  • obtaining the packet header position information in the codeword module of the packet data at the receiving end of the physical coding sublayer includes:
  • the Emac XGMII interface is a 10Gb independent media interface of the Ethernet media access module.
  • the method also includes:
  • the reference point position and the message header position of the pcs lane format message data at the receiving end of the physical coding sublayer determine the number of bits between the reference point position and the message header position of the pcs lane format message data at the receiving end of the physical coding sublayer ;
  • the reference point position information of the hsst lane format message data in the search codeword module of the receiving end of the physical encoding sublayer and the message header position information of the pcs lane format message data of the receiving end of the physical encoding sublayer determine the receiving end of the physical encoding sublayer The number of bits between the reference point position of the hsst lane format message data and the message header position in the end search codeword module.
  • determining the time stamp error of the packet data at the receiving end of the physical coding sublayer according to the position information of the reference point and the position information of the packet header includes:
  • the time stamp error is compensated for the time stamp of the message data at the receiving end of the physical coding sublayer, including:
  • the present application provides an error compensation device for time stamp synchronization, the device includes:
  • the first obtaining unit is used to obtain the reference point position information of the message data at the receiving end of the physical coding sublayer in the code word search module;
  • the second obtaining unit is used to obtain the message data of the receiving end of the physical coding sublayer in the message header position information in the code word module;
  • a determining unit configured to determine the time stamp error of the message data at the receiving end of the physical coding sublayer according to the reference point position information and the message header position information;
  • the compensation unit is configured to compensate the time stamp error for the time stamp of the message data at the receiving end of the physical coding sublayer.
  • the present application provides an electronic device, including:
  • the memory stores instructions executable by at least one processor, and the instructions are executed by at least one processor, so that the at least one processor can execute the error compensation method for time stamp synchronization in the first aspect.
  • the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the electronic device to perform the time stamp synchronization as in the first aspect. compensation method.
  • the present application provides a time stamp error compensation method, device, electronic equipment and storage medium, the method comprising: searching for a codeword module by obtaining hsst lane format message data and pcs lane format message data at the receiving end of the physical coding sublayer
  • the position information of the reference point and the position information of the message header in the frame respectively determine the search codeword module at the receiving end of the physical coding sublayer, the message data in the hsst lane format, and the position information of the reference point and the message data in the pcs lane format
  • the number of bits between the header position information, the hsst lane format message data is converted into the pcs lane format message data in the code word search module, after conversion, the message data reference point position and the message header position of the receiving end of the physical coding sublayer
  • the number of bits apart changes by Q bit, that is, the time stamp error of the message data is Q bit, the time stamp error Q bit is converted into the corresponding time T, and the time stamp
  • FIG. 1 is a schematic flowchart of a time stamp synchronization error compensation method provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a transmission flow of message data at a receiving end of a physical coding sublayer of a time stamp synchronization error compensation method provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of converting message data in hsst lane format into message data in pcs lane format in an error compensation method for time stamp synchronization provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of time stamp error compensation in a time stamp synchronization error compensation method provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an error compensation device for time stamp synchronization provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 7 is a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • FIG. 1 is a schematic flow chart of an error compensation method for time stamp synchronization provided by an embodiment of the present application. As shown in Figure 1, the method 100 includes:
  • Step 110 Obtain the position information of the reference point of the message data at the receiving end of the physical coding sublayer in the codeword search module.
  • the position of the reference point has its position specified in the IEEE 1588 protocol, which is used to indicate the message data of the receiving end of the physical coding sublayer.
  • the position of the reference point of the two formats The relative change of , caused the error.
  • Step 120 Obtain the message header position information of the message data at the receiving end of the physical coding sublayer in the code word search module.
  • Step 130 Determine the time stamp error of the packet data at the receiving end of the physical coding sublayer according to the position information of the reference point and the position information of the packet header.
  • Step 140 Compensate the time stamp error to the time stamp of the packet data at the receiving end of the physical coding sublayer.
  • step 110 includes:
  • the pcs lane format is the physical coding sublayer (Physical Coding Sublayer, PCS) data channel format.
  • PCS Physical Coding Sublayer
  • the time stamp synchronization error compensation method 100 provided in the embodiment of the present application further includes:
  • the hsst lane format is a high speed serial transceiver (High speed serial transceiver, HSST) data channel format;
  • the reference point position information of the pcs lane format message data is consistent with the reference point position information of the hsst lane format message data, so the reference point position information of the pcs lane format message data can be determined according to the reference point position information of the hsst lane format message data location information;
  • the message data in the pcs lane format is converted by the message data in the hsst lane format in the code word search module at the receiving end of the physical coding sublayer.
  • FIG. 3 is a schematic diagram of converting message data in hsst lane format into message data in pcs lane format in an error compensation method for time stamp synchronization provided by an embodiment of the present application.
  • the 128bit hsst lane format message data is converted into two 64bit emac lane format message data through the bit_demultiplexer 1, because the emac interface of the receiving end of the physical coding sublayer is 66bit, so It is necessary to convert the bit width of 64bit emac lane to 66bit.
  • the conversion relationship between emac lane and pcs lane is 1:5, and the bit width of pcs lane is 66bit.
  • 5 cycles of 66bit emac lane format message data are converted into 5 pcs lane format message data by bit_demultiplexer 2, and then the reference point position of pcs lane format message data is obtained by the lane block sync module information, because the reference point position information of the message data at the receiving end of the physical coding sublayer will not change, so the reference point position information of the message data in the pcs lane format is the reference point position information of the message data in the hsst lane format.
  • Emac lane is an Ethernet media access control (EMAC) data channel.
  • EMC Ethernet media access control
  • step 120 includes:
  • the Emac XGMII interface is a 10Gb independent media interface of the Ethernet media access module.
  • the time stamp synchronization error compensation method 100 provided in the embodiment of the present application further includes:
  • the reference point position information and message header position information of the pcs lane format message data at the receiving end of the physical coding sublayer determine the distance between the reference point position information and the message header position information of the pcs lane format message data at the receiving end of the physical coding sublayer The number of bits;
  • the reference point position information of the hsst lane format message data in the search codeword module of the receiving end of the physical encoding sublayer and the message header position information of the pcs lane format message data of the receiving end of the physical encoding sublayer determine the receiving end of the physical encoding sublayer The number of bits between the reference point position information and the message header position information of the hsst lane format message data in the codeword module of the terminal.
  • one hsst lane under the 100GB BASE-R PCS protocol is connected to two 25GB emac lane, the message data transmission flow chart of the receiving end of the physical coding sublayer shown in Figure 2, when the message data of the receiving end of the physical coding sublayer is transmitted to the emac XGMII interface, the message of the receiving end of the physical coding sublayer is obtained
  • the message header position information of the data the message data is transmitted in the pcs lane format at the receiving end of the physical coding sublayer after the codeword module is searched at the receiving end of the physical coding sublayer. Therefore, the message header position information is the codeword searching The message header position information of the pcs lane format message data in the module;
  • the hsst lane format message data is converted into pcs lane format message data, and the message header position information of the message data changes relative to the reference end position information. Therefore, when using the reference point position information and the report Errors will occur when calculating the timestamp of the message data at the receiving end of the physical coding sublayer based on the position information of the header.
  • FIG. 4 is a schematic diagram of time stamp error compensation of a time stamp synchronization error compensation method provided by the embodiment of the present application, as shown in the input module of Figure 4, the message data sequence of an hsst lane is lane0 0bit, lane2 0bit ...lane18 0bit, lane0 1bit, lane2 1bit...lane 18 128bit, the data sequence of another hsst lane is lane1 0bit, lane3 0bit...lane19 0bit, lane1 1bit, lane3 1bit...lane19 128bit; in pcs lane format
  • the message data is sorted by lane, that is, as shown in the output module in Figure 4, the order of a message data is lane0[65:0], lane2[65:0]...lane18[65:0] , the order of another message data is lane1[65:0], lane3[65:0]...lane19[65:0], the pcs lane
  • the number of bits between the reference point position of the hsst lane format message data and the message header position in the search codeword module of the receiving end of the physical encoding sublayer is n/2; as shown in Figure 4, the physical encoding The number of bits between the reference point position of the pcs lane format message data at the receiving end of the sublayer and the position of the message header is 66*n-n/2, that is, the reference point of the message data after the receiving end of the physical coding sublayer searches for the codeword module The number of bits between the point position and the message header position is 66*n-n/2, and lane n is lane0-lane19 in Figure 4;
  • the hsst lane format message data, the reference point is at lane00bit, and the packet header position is at lane 20bit
  • the hsst lane format message data, the reference point position and the packet header position differ by 2/2bit, that is, 1bit
  • the reference point is at 0bit of lane0[65:0]
  • the packet header is at 0bit of lane2[65:0].
  • the difference between the reference point and the packet header is 66*2-1bit.
  • step 130 includes:
  • one hsst lane under the 100GB BASE-R PCS protocol is connected to two 25GB emac lane, as shown in Figure 4, after the hsst lane format message data at the receiving end of the physical coding sublayer is converted into pcs lane format message data in the codeword search module, the resulting time stamp error is 66*n-n/2bit ;
  • the hsst lane format message data the reference point is at lane00bit
  • the packet header position is at lane 20bit
  • the packet header is at 0bit of lane0[65:0]
  • the packet header is at lane2[ 0bit at 65:0]
  • the difference between the reference point position and the message header position is 66*2-1bit, that is, after the
  • n/2 in the formula for calculating the timestamp error: 66*n-n/2bit is not an integer, it may be an integer according to a preset rule.
  • the preset rule is a rounding rule, and n/2 is 4.5 bits, then it is determined according to the preset rules that n/2 is 5 bits.
  • step 140 includes:
  • one hsst lane under the 100GB BASE-R PCS protocol is connected to two 25GB emac lane, as shown in Figure 4, after the hsst lane format message data at the receiving end of the physical coding sublayer is converted into pcs lane format message data in the codeword search module, the resulting time stamp error is 66*n-n/2bit , because the time corresponding to each bit is 1s/(frequency*bit width), the time corresponding to the timestamp error is [(66*n-n/2)/(frequency*bit width)] seconds.
  • this embodiment shows that under the 100GB BASE-R PCS protocol, in order to fully utilize the bandwidth of the hsst lane and emac lane, when one hsst lane under the 100GB BASE-R PCS protocol is connected to two 25GB emac lanes , error compensation for time stamp synchronization error of message data at the receiving end of the physical coding sublayer, under the IEEE 1588 protocol, there are also 50GB BASE-R PCS protocol, 40GB BASE-R PCS protocol, 25GB BASE-R PCS protocol, this application The error compensation method proposed for timestamp synchronization is also applicable to these protocols.
  • the embodiment of the present application shows that under the 100GB BASE-R PCS protocol, in order to make full use of the bandwidth of the hsst lane and emac lane, one hsst lane under the 100GB BASE-R PCS protocol is connected to two 25GB When using the emac lane, the time stamp synchronization error compensation for the receiving end of the physical coding sublayer is compensated.
  • the conversion relationship between hsst lane and emac lane is not limited to 1:2.
  • the hsst lane The maximum bit width is 50GB, and the bit width of emac lane has 10GB, 25GB, 50GB, and 100GB options.
  • the conversion relationship between hsst lane and emac lane can be freely matched based on this.
  • 50GB BASE-R PCS protocol 40GB BASE-R
  • the time stamp error compensation of the PCS protocol and the 25GB BASE-R PCS protocol still hold.
  • FIG. 5 is a schematic structural diagram of an error compensation device for time stamp synchronization provided by an embodiment of the present application.
  • the error compensation apparatus 200 for timestamp synchronization includes: a first acquisition unit 210 , a second acquisition unit 220 , a determination unit 230 and a compensation unit 240 .
  • the first acquiring unit 210 is configured to acquire the position information of the reference point of the packet data at the receiving end of the physical coding sublayer in the codeword search module.
  • the second acquisition unit 220 is configured to sample the second time stamp pulse signal input to the message receiving end to the source clock, and the second time stamp pulse signal is used to indicate the position of the reference point during the message data transmission process of the message receiving end.
  • the determining unit 230 is configured to determine the timestamp error of the packet data at the receiving end of the physical coding sublayer according to the position information of the reference point and the position information of the packet header.
  • the compensation unit 240 is configured to compensate the time stamp error for the time stamp of the packet data at the receiving end of the physical coding sublayer.
  • each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
  • FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device 300 includes: one or more processors 310 and a memory 320 , and one processor 310 is taken as an example in FIG. 6 .
  • the processor 310 and the memory 320 may be connected through a bus or in other ways, and connection through a bus is taken as an example in FIG. 6 .
  • the processor 310 is configured to obtain the reference point position information of the message data at the receiving end of the physical coding sublayer in the codeword module; obtain the message header position information of the message data at the receiving end of the physical coding sublayer in the codeword module ; Determine the time stamp error of the message data at the receiving end of the physical coding sublayer according to the position information of the reference point and the position information of the message header; compensate the time stamp error for the time stamp of the message data at the receiving end of the physical coding sublayer.
  • the memory 320 can be used to store non-volatile software programs, non-volatile computer-executable programs and modules, such as the error compensation method for time stamp synchronization in the embodiment of the present application program instructions/modules.
  • the processor 310 executes various functional applications and data processing of the electronic device by running the non-volatile software programs, instructions and modules stored in the memory 320 , that is, implements the error compensation method for time stamp synchronization in the above method embodiment.
  • the memory 320 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the use of the electronic device, and the like.
  • the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices.
  • the memory 320 may optionally include memory located remotely from the processor 310, and these remote memories may be connected to the controller through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • One or more modules are stored in the memory 320, and when executed by one or more processors 310, execute the error compensation method for time stamp synchronization in any of the above method embodiments.
  • FIG. 7 is a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable storage medium 400 stores a program code 410, and the program code 410 can be invoked by a processor to execute the time stamp synchronization error compensation method described in the above method embodiments.
  • the computer readable storage medium 400 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 400 has a storage space for program codes for executing any method steps in the error compensation method for time stamp synchronization described above. These program codes can be read from or written into one or more computer program products. The program code can eg be compressed in a suitable form.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)
  • Detection And Correction Of Errors (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

Disclosed by the present application are a timestamp synchronization error compensation method, apparatus, electronic device, and storage medium, belonging to the technical field of programmable logic devices. Specifically comprised is: obtaining reference point position information of message data of a receiving end of a physical coding sublayer in a code word searching module; obtaining message header position information of the message data of the physical coding sublayer receiving end in the code word searching module; determining a timestamp error of the physical coding sublayer receiving end message data according to the reference point position information and the message header position information; compensating the timestamp error to the timestamp of the receiving end message data of the physical coding sublayer. By means of the above technical solution, the present application compensates the timestamp error of the message data of the receiving end of the physical coding sublayer, and improves the timestamp precision of the message data of the receiving end of the physical coding sublayer.

Description

一种时间戳同步的误差补偿方法、装置、电子设备以及存储介质Error compensation method, device, electronic equipment and storage medium for time stamp synchronization
相关申请的交叉引用Cross References to Related Applications
本申请要求于2021年12月27日提交中国专利局的申请号为CN202111620531.7、名称为“一种时间戳同步的误差补偿方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application with application number CN202111620531.7 and titled "An Error Compensation Method for Time Stamp Synchronization" filed with the China Patent Office on December 27, 2021, the entire contents of which are hereby incorporated by reference In this application.
技术领域technical field
本申请属于可编程逻辑器件技术领域,尤其涉及一种时间戳同步的误差补偿方法、装置、电子设备以及存储介质。The present application belongs to the technical field of programmable logic devices, and in particular relates to a time stamp synchronization error compensation method, device, electronic equipment and storage medium.
背景技术Background technique
IEEE 1588全称为网络化测量和控制系统的精密时钟同步协议,常应用在以太网中的时间同步,也应用在可编程逻辑器件的时间戳同步。The full name of IEEE 1588 is a precision clock synchronization protocol for networked measurement and control systems. It is often used in time synchronization in Ethernet and in time stamp synchronization of programmable logic devices.
FPGA内的物理编码子层接收端由hsst quad(高速串行收发器模块)和emac quad(以太网介质访问控制模块)级联组成,为了保持物理编码子层接收端报文数据时间戳的精确度,会将emac quad中的lane block sync模块移入hsst quad内,然而,hsst quad的报文数据在经过lane block sync会使得报文数据内的bit位置移位,使报文数据的报文头位置变化,在使用报文数据的基准点和报文头位置进行时间戳同步时,会在lane block sync模块产生时间戳误差。在IEEE 1588协议下,有100GB BASE-R PCS、50GB BASE-R PCS、40GB BASE-R PCS、25GB BASE-R PCS,在这些协议下,报文数据的时间戳都会在lane block sync模块产生时间戳误差,因此,需要向基于这些协议的物理编码子层接收端报文数据的时间戳补偿产生的时间戳误差。The receiving end of the physical coding sublayer in the FPGA is composed of hsst quad (high-speed serial transceiver module) and emac quad (Ethernet media access control module) cascaded, in order to maintain the accuracy of the time stamp of the message data at the receiving end of the physical coding sublayer The lane block sync module in the emac quad will be moved into the hsst quad. However, the message data of the hsst quad will shift the bit position in the message data after passing through the lane block sync, so that the message header of the message data When the position changes, when using the reference point of the message data and the position of the message header to synchronize the time stamp, a time stamp error will be generated in the lane block sync module. Under the IEEE 1588 protocol, there are 100GB BASE-R PCS, 50GB BASE-R PCS, 40GB BASE-R PCS, and 25GB BASE-R PCS. Under these protocols, the time stamp of the message data will be generated in the lane block sync module Therefore, it is necessary to compensate the generated time stamp error to the time stamp of the receiving end message data based on the physical coding sublayer of these protocols.
发明内容Contents of the invention
本申请的目的在于提供一种时间戳同步的误差补偿方法、装置、电子设备以及存储介质,以解决背景技术的技术问题。The purpose of the present application is to provide a time stamp synchronization error compensation method, device, electronic equipment and storage medium, so as to solve the technical problems of the background technology.
为解决上述技术问题,本申请的技术方案如下:In order to solve the problems of the technologies described above, the technical scheme of the present application is as follows:
第一方面,本申请提供一种时间戳同步的误差补偿方法,包括:In the first aspect, the present application provides an error compensation method for time stamp synchronization, including:
获取物理编码子层接收端的报文数据在寻找码字模块内的基准点位置信息;Obtaining the message data at the receiving end of the physical coding sublayer is looking for the reference point position information in the codeword module;
获取物理编码子层接收端的报文数据在寻找码字模块内的报文头位置信息;Obtain the message data at the receiving end of the physical coding sublayer and search for the message header position information in the codeword module;
根据基准点位置信息和报文头位置信息确定物理编码子层接收端报文数据的时间戳误差;Determine the time stamp error of the message data at the receiving end of the physical coding sublayer according to the position information of the reference point and the position information of the message header;
向物理编码子层接收端报文数据的时间戳补偿时间戳误差。Compensate the time stamp error to the time stamp of the message data at the receiving end of the physical coding sublayer.
在一些实施例中,获取物理编码子层接收端的报文数据在寻找码字模块内的基准点位置信息,包括:In some embodiments, obtaining the reference point position information of the message data at the receiving end of the physical coding sublayer in the codeword module includes:
在物理编码子层接收端的寻找码字模块内获取pcs lane格式报文数据的基准点位置信息,pcs lane格式为物理编码子层数据通道格式。Obtain the reference point position information of the message data in the pcs lane format in the codeword search module of the receiving end of the physical coding sublayer, and the pcs lane format is the data channel format of the physical coding sublayer.
在一些实施例中,方法还包括:In some embodiments, the method also includes:
获取物理编码子层接收端的寻找码字模块内hsst lane格式报文数据的基准点位置信息,hsst lane格式为高速串行收发器数据通道格式;Obtain the reference point position information of the hsst lane format message data in the search codeword module of the receiving end of the physical coding sublayer, and the hsst lane format is a high-speed serial transceiver data channel format;
根据hsst lane格式报文数据的基准点位置信息确定pcs lane格式报文数据的基准点位置信息;Determine the reference point position information of the pcs lane format message data according to the reference point position information of the hsst lane format message data;
其中,pcs lane格式报文数据由hsst lane格式报文数据在物理编码子层接收端的寻找码 字模块内转换得到。Wherein, the pcs lane format message data is obtained by converting the hsst lane format message data in the code word module of the receiving end of the physical coding sublayer.
在一些实施例中,获取物理编码子层接收端的报文数据在寻找码字模块内的报文头位置信息,包括:In some embodiments, obtaining the packet header position information in the codeword module of the packet data at the receiving end of the physical coding sublayer includes:
在物理编码子层接收端的Emac XGMII接口模块内获取物理编码子层接收端的pcs lane格式报文数据的报文头位置信息,Emac XGMII接口为以太网介质访问模块的10Gb独立于媒体的接口。Obtain the header position information of the pcs lane format message data at the receiving end of the physical coding sublayer in the Emac XGMII interface module of the receiving end of the physical coding sublayer. The Emac XGMII interface is a 10Gb independent media interface of the Ethernet media access module.
在一些实施例中,方法还包括:In some embodiments, the method also includes:
根据物理编码子层接收端的pcs lane格式报文数据的基准点位置和报文头位置,确定物理编码子层接收端的pcs lane格式报文数据的基准点位置和报文头位置相距的bit位数;According to the reference point position and the message header position of the pcs lane format message data at the receiving end of the physical coding sublayer, determine the number of bits between the reference point position and the message header position of the pcs lane format message data at the receiving end of the physical coding sublayer ;
根据物理编码子层接收端的寻找码字模块内hsst lane格式报文数据的基准点位置信息和,物理编码子层接收端的pcs lane格式报文数据的报文头位置信息,确定物理编码子层接收端的寻找码字模块内hsst lane格式报文数据的基准点位置和报文头位置相距的bit位数。According to the reference point position information of the hsst lane format message data in the search codeword module of the receiving end of the physical encoding sublayer and the message header position information of the pcs lane format message data of the receiving end of the physical encoding sublayer, determine the receiving end of the physical encoding sublayer The number of bits between the reference point position of the hsst lane format message data and the message header position in the end search codeword module.
在一些实施例中,根据基准点位置信息和报文头位置信息确定物理编码子层接收端报文数据的时间戳误差,包括:In some embodiments, determining the time stamp error of the packet data at the receiving end of the physical coding sublayer according to the position information of the reference point and the position information of the packet header includes:
根据物理编码子层接收端的寻找码字模块内hsst lane格式报文数据的基准点位置和报文头位置相距的bit位数以及,pcs lane格式报文数据的基准点位置和报文头位置相距的bit位数,确定物理编码子层接收端hsst lane格式报文数据在寻找码字模块内转换为pcs lane格式报文数据的时间戳误差为Q bit,即物理编码子层接收端的报文数据的时间戳误差为Q bit;其中,Q为正整数。Find the number of bits between the reference point position of the hsst lane format message data and the message header position in the codeword module according to the receiving end of the physical coding sublayer, and the distance between the reference point position of the pcs lane format message data and the message header position Determine the number of bits of the physical coding sublayer receiving end hsst lane format message data in the search codeword module to convert the time stamp error of pcs lane format message data to Q bit, that is, the message data of the physical coding sublayer receiving end The timestamp error of is Q bit; among them, Q is a positive integer.
在一些实施例中,向物理编码子层接收端报文数据的时间戳补偿时间戳误差,包括:In some embodiments, the time stamp error is compensated for the time stamp of the message data at the receiving end of the physical coding sublayer, including:
确定物理编码子层接收端报文数据的时间戳误差Q bit对应的时间T;Determine the time T corresponding to the time stamp error Q bit of the message data at the receiving end of the physical coding sublayer;
通过物理编码子层接收端报文数据的时间戳减去时间戳误差Q bit对应的时间T以补偿物理编码子层接收端报文数据的时间戳。Subtract the time T corresponding to the timestamp error Q bit from the time stamp of the message data at the receiving end of the physical coding sublayer to compensate the time stamp of the message data at the receiving end of the physical coding sublayer.
第二方面,本申请提供一种时间戳同步的误差补偿装置,装置包括:In a second aspect, the present application provides an error compensation device for time stamp synchronization, the device includes:
第一获取单元,用于获取物理编码子层接收端的报文数据在寻找码字模块内的基准点位置信息;The first obtaining unit is used to obtain the reference point position information of the message data at the receiving end of the physical coding sublayer in the code word search module;
第二获取单元,用于获取物理编码子层接收端的报文数据在寻找码字模块内的报文头位置信息;The second obtaining unit is used to obtain the message data of the receiving end of the physical coding sublayer in the message header position information in the code word module;
确定单元,用于根据基准点位置信息和报文头位置信息确定物理编码子层接收端报文数据的时间戳误差;A determining unit, configured to determine the time stamp error of the message data at the receiving end of the physical coding sublayer according to the reference point position information and the message header position information;
补偿单元,用于向物理编码子层接收端报文数据的时间戳补偿时间戳误差。The compensation unit is configured to compensate the time stamp error for the time stamp of the message data at the receiving end of the physical coding sublayer.
第三方面,本申请提供一种电子设备,包括:In a third aspect, the present application provides an electronic device, including:
至少一个处理器;以及,at least one processor; and,
与至少一个处理器通信连接的存储器;其中,memory communicatively coupled to at least one processor; wherein,
存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行如第一方面的时间戳同步的误差补偿方法。The memory stores instructions executable by at least one processor, and the instructions are executed by at least one processor, so that the at least one processor can execute the error compensation method for time stamp synchronization in the first aspect.
第四方面,本申请提供一种计算机可读存储介质,其中,计算机可读存储介质存储有计算机可执行指令,计算机可执行指令用于使电子设备能够执行如第一方面的时间戳同步的误差补偿方法。In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable the electronic device to perform the time stamp synchronization as in the first aspect. compensation method.
本申请的有益效果:The beneficial effect of this application:
本申请提供一种时间戳误差补偿方法、装置、电子设备以及存储介质,该方法包括:通过获取物理编码子层接收端的hsst lane格式报文数据、以及pcs lane格式报文数据在寻 找码字模块内的基准点位置信息和报文头位置信息,分别确定了在物理编码子层接收端的寻找码字模块,hsst lane格式报文数据、以及pcs lane格式报文数据的基准点位置信息和报文头位置信息相距的bit位数,hsst lane格式报文数据在寻找码字模块内转换为pcs lane格式报文数据,转换后,物理编码子层接收端的报文数据基准点位置和报文头位置相距的bit位数变化Q bit,即报文数据的时间戳误差为Q bit,将时间戳误差Q bit转换为对应的时间T,物理编码子层接收端的报文数据的时间戳减去该时间T以补偿报文数据的时间戳。本申请通过以上技术方案,补偿了物理编码子层接收端报文数据的时间戳误差,提高了物理编码子层接收端报文数据的时间戳精度。The present application provides a time stamp error compensation method, device, electronic equipment and storage medium, the method comprising: searching for a codeword module by obtaining hsst lane format message data and pcs lane format message data at the receiving end of the physical coding sublayer The position information of the reference point and the position information of the message header in the frame respectively determine the search codeword module at the receiving end of the physical coding sublayer, the message data in the hsst lane format, and the position information of the reference point and the message data in the pcs lane format The number of bits between the header position information, the hsst lane format message data is converted into the pcs lane format message data in the code word search module, after conversion, the message data reference point position and the message header position of the receiving end of the physical coding sublayer The number of bits apart changes by Q bit, that is, the time stamp error of the message data is Q bit, the time stamp error Q bit is converted into the corresponding time T, and the time stamp of the message data at the receiving end of the physical coding sublayer is subtracted from this time T to compensate for the timestamp of the packet data. Through the above technical solutions, the present application compensates the time stamp error of the message data at the receiving end of the physical coding sublayer, and improves the time stamp accuracy of the message data at the receiving end of the physical coding sublayer.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only for the present application For some embodiments, those of ordinary skill in the art can also obtain other drawings based on these drawings without creative effort.
图1是本申请实施例提供的一种时间戳同步的误差补偿方法的流程示意图。FIG. 1 is a schematic flowchart of a time stamp synchronization error compensation method provided by an embodiment of the present application.
图2为本申请实施例提供的一种时间戳同步的误差补偿方法的物理编码子层接收端报文数据的传输流程示意图。FIG. 2 is a schematic diagram of a transmission flow of message data at a receiving end of a physical coding sublayer of a time stamp synchronization error compensation method provided by an embodiment of the present application.
图3为本申请实施例提供的一种时间戳同步的误差补偿方法的hsst lane格式报文数据转化为pcs lane格式报文数据的转换示意图。FIG. 3 is a schematic diagram of converting message data in hsst lane format into message data in pcs lane format in an error compensation method for time stamp synchronization provided by an embodiment of the present application.
图4为本申请实施例提供的一种时间戳同步的误差补偿方法的时间戳误差补偿示意图。FIG. 4 is a schematic diagram of time stamp error compensation in a time stamp synchronization error compensation method provided by an embodiment of the present application.
图5为本申请实施例提供的一种时间戳同步的误差补偿装置的结构示意图。FIG. 5 is a schematic structural diagram of an error compensation device for time stamp synchronization provided by an embodiment of the present application.
图6为本申请实施例提供的一种电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
图7为本申请实施例提供的一种计算机可读存储介质的结构框图。FIG. 7 is a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整的描述。应当明确,所描述的实施例仅仅是本申请一部分实施例,而不是全部实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。本申请实施例提供一种时间戳同步的误差补偿方法,请参阅图1,图1是本申请实施例提供的一种时间戳同步的误差补偿方法的流程示意图。如图1所示,该方法100包括:The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be clear that the described embodiments are only some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application. An embodiment of the present application provides an error compensation method for time stamp synchronization, please refer to FIG. 1 . FIG. 1 is a schematic flow chart of an error compensation method for time stamp synchronization provided by an embodiment of the present application. As shown in Figure 1, the method 100 includes:
步骤110:获取物理编码子层接收端的报文数据在寻找码字模块内的基准点位置信息。Step 110: Obtain the position information of the reference point of the message data at the receiving end of the physical coding sublayer in the codeword search module.
基准点位置在IEEE 1588协议中有规定其位置所在,用于指示物理编码子层接收端的报文数据,在本实施例中,因为报文数据格式的转换,导致了两个格式的基准点位置的相对变化,引起了误差。The position of the reference point has its position specified in the IEEE 1588 protocol, which is used to indicate the message data of the receiving end of the physical coding sublayer. In this embodiment, because of the conversion of the message data format, the position of the reference point of the two formats The relative change of , caused the error.
步骤120:获取物理编码子层接收端的报文数据在寻找码字模块内的报文头位置信息。Step 120: Obtain the message header position information of the message data at the receiving end of the physical coding sublayer in the code word search module.
步骤130:根据基准点位置信息和报文头位置信息确定物理编码子层接收端报文数据的时间戳误差。Step 130: Determine the time stamp error of the packet data at the receiving end of the physical coding sublayer according to the position information of the reference point and the position information of the packet header.
步骤140:向物理编码子层接收端报文数据的时间戳补偿时间戳误差。Step 140: Compensate the time stamp error to the time stamp of the packet data at the receiving end of the physical coding sublayer.
具体地,步骤110包括:Specifically, step 110 includes:
在物理编码子层接收端的寻找码字模块内获取pcs lane格式报文数据的基准点位置信息,pcs lane格式为物理编码子层(Physical Coding Sublayer,PCS)数据通道格式。Obtain the reference point position information of the message data in the pcs lane format in the codeword search module at the receiving end of the physical coding sublayer, and the pcs lane format is the physical coding sublayer (Physical Coding Sublayer, PCS) data channel format.
具体地,本申请实施例提供的时间戳同步的误差补偿方法100还包括:Specifically, the time stamp synchronization error compensation method 100 provided in the embodiment of the present application further includes:
获取物理编码子层接收端的寻找码字模块内hsst lane格式报文数据的基准点位置信息,hsst lane格式为高速串行收发器(High speed serial transceiver,HSST)数据通道格式;Obtain the reference point position information of the hsst lane format message data in the search codeword module of the receiving end of the physical coding sublayer, and the hsst lane format is a high speed serial transceiver (High speed serial transceiver, HSST) data channel format;
pcs lane格式报文数据的基准点位置信息,与hsst lane格式报文数据的基准点位置信息一致,因此可以根据hsst lane格式报文数据的基准点位置信息确定pcs lane格式报文数据的基准点位置信息;The reference point position information of the pcs lane format message data is consistent with the reference point position information of the hsst lane format message data, so the reference point position information of the pcs lane format message data can be determined according to the reference point position information of the hsst lane format message data location information;
pcs lane格式报文数据由hsst lane格式报文数据在物理编码子层接收端的寻找码字模块内转换。The message data in the pcs lane format is converted by the message data in the hsst lane format in the code word search module at the receiving end of the physical coding sublayer.
在本实施例中,作为本实施例的优选实施方式,在100GB BASE-R PCS协议下,为了充分利用hsst lane和emac lane的带宽,使100GB BASE-R PCS协议下1个hsst lane连接两个25GB的emac lane。图3为本申请实施例提供的一种时间戳同步的误差补偿方法的hsst lane格式报文数据转化为pcs lane格式报文数据的转换示意图。如图3所示,128bit的hsst lane格式报文数据经bit_解复用器1,转化为2个64bit的emac lane格式的报文数据,因为物理编码子层接收端的emac接口为66bit,所以需要将64bit的emac lane的位宽转换66bit,在IEEE 1588下的IEEE 802.3协议中,pcs lane的映射中,emac lane与pcs lane的转换关系为1:5,pcs lane的位宽为66bit,将5个周期的66bit的emac lane格式的报文数据经bit_解复用器2转换为5个pcs lane格式报文数据,然后经lane block sync模块获取到pcs lane格式报文数据的基准点位置信息,因为物理编码子层接收端报文数据的基准点位置信息不会变化,所以pcs lane格式报文数据的基准点位置信息即为hsst lane格式报文数据的基准点位置信息。In this embodiment, as a preferred implementation of this embodiment, under the 100GB BASE-R PCS protocol, in order to make full use of the bandwidth of the hsst lane and emac lane, one hsst lane under the 100GB BASE-R PCS protocol is connected to two 25GB emac lane. FIG. 3 is a schematic diagram of converting message data in hsst lane format into message data in pcs lane format in an error compensation method for time stamp synchronization provided by an embodiment of the present application. As shown in Figure 3, the 128bit hsst lane format message data is converted into two 64bit emac lane format message data through the bit_demultiplexer 1, because the emac interface of the receiving end of the physical coding sublayer is 66bit, so It is necessary to convert the bit width of 64bit emac lane to 66bit. In the IEEE 802.3 protocol under IEEE 1588, in the mapping of pcs lane, the conversion relationship between emac lane and pcs lane is 1:5, and the bit width of pcs lane is 66bit. 5 cycles of 66bit emac lane format message data are converted into 5 pcs lane format message data by bit_demultiplexer 2, and then the reference point position of pcs lane format message data is obtained by the lane block sync module information, because the reference point position information of the message data at the receiving end of the physical coding sublayer will not change, so the reference point position information of the message data in the pcs lane format is the reference point position information of the message data in the hsst lane format.
Emac lane为以太网介质访问控制(Ethernet media access control,EMAC)数据通道。Emac lane is an Ethernet media access control (EMAC) data channel.
需要说明的是,hsst lane格式报文数据转换为pcs lane格式报文数据的过程,物理编码子层接收端的报文数据在传输流程中经过的寻找码字模块,以及hsst lane格式报文数据转换为64bit emac lane格式报文数据,64bit emac lane格式报文数据转换为66bit emac lane格式报文数据,5个周期的66bit emac lane格式报文数据转换为pcs lane格式报文数据的转换过程,皆属于本领域的惯用技术手段,因此对于转换过程在此不做叙述,物理编码子层接收端报文数据传输流程图如图2所示的本申请实施例提供的一种时间戳同步的误差补偿方法的物理编码子层接收端报文数据的传输流程示意图。It should be noted that the process of converting message data in hsst lane format into message data in pcs lane format, the codeword module that the message data at the receiving end of the physical coding sublayer passes through in the transmission process, and the conversion of message data in hsst lane format It is 64bit emac lane format message data, 64bit emac lane format message data is converted to 66bit emac lane format message data, and the conversion process of 5 cycle 66bit emac lane format message data into pcs lane format message data, all It belongs to the usual technical means in the field, so the conversion process will not be described here. The flow chart of message data transmission at the receiving end of the physical coding sublayer is shown in Figure 2. An error compensation for time stamp synchronization provided by the embodiment of the present application A schematic diagram of the transmission process of the message data at the receiving end of the physical coding sublayer of the method.
具体地,步骤120包括:Specifically, step 120 includes:
在物理编码子层接收端的Emac XGMII接口模块内获取物理编码子层接收端的pcs lane格式报文数据的报文头位置信息,Emac XGMII接口为以太网介质访问模块的10Gb独立于媒体的接口。Obtain the header position information of the pcs lane format message data at the receiving end of the physical coding sublayer in the Emac XGMII interface module of the receiving end of the physical coding sublayer. The Emac XGMII interface is a 10Gb independent media interface of the Ethernet media access module.
具体地,本申请实施例提供的时间戳同步的误差补偿方法100还包括:Specifically, the time stamp synchronization error compensation method 100 provided in the embodiment of the present application further includes:
根据物理编码子层接收端的pcs lane格式报文数据的基准点位置信息和报文头位置信息,确定物理编码子层接收端的pcs lane格式报文数据的基准点位置信息和报文头位置信息相距的bit位数;According to the reference point position information and message header position information of the pcs lane format message data at the receiving end of the physical coding sublayer, determine the distance between the reference point position information and the message header position information of the pcs lane format message data at the receiving end of the physical coding sublayer The number of bits;
根据物理编码子层接收端的寻找码字模块内hsst lane格式报文数据的基准点位置信息和,物理编码子层接收端的pcs lane格式报文数据的报文头位置信息,确定物理编码子层接收端的寻找码字模块内hsst lane格式报文数据的基准点位置信息和报文头位置信息相距的bit位数。According to the reference point position information of the hsst lane format message data in the search codeword module of the receiving end of the physical encoding sublayer and the message header position information of the pcs lane format message data of the receiving end of the physical encoding sublayer, determine the receiving end of the physical encoding sublayer The number of bits between the reference point position information and the message header position information of the hsst lane format message data in the codeword module of the terminal.
在本实施例中,作为本实施例的优选实施方式,在100GB BASE-R PCS协议下,为了充分利用hsst lane和emac lane的带宽,使100GB BASE-R PCS协议下1个hsst lane连接两个25GB的emac lane,如图2所示的物理编码子层接收端报文数据传输流程图,当物理编码子层接收端的报文数据传输至emac XGMII接口处,获取物理编码子层接收端报文数据的报文头位置信息,报文数据在物理编码子层接收端的寻找码字模块后,以pcs lane格式在物理编码子层接收端传输,因此,的报文头位置信息即为寻找码字模块内pcs lane格式 报文数据的报文头位置信息;In this embodiment, as a preferred implementation of this embodiment, under the 100GB BASE-R PCS protocol, in order to make full use of the bandwidth of the hsst lane and emac lane, one hsst lane under the 100GB BASE-R PCS protocol is connected to two 25GB emac lane, the message data transmission flow chart of the receiving end of the physical coding sublayer shown in Figure 2, when the message data of the receiving end of the physical coding sublayer is transmitted to the emac XGMII interface, the message of the receiving end of the physical coding sublayer is obtained The message header position information of the data, the message data is transmitted in the pcs lane format at the receiving end of the physical coding sublayer after the codeword module is searched at the receiving end of the physical coding sublayer. Therefore, the message header position information is the codeword searching The message header position information of the pcs lane format message data in the module;
在寻找码字模块内,hsst lane格式报文数据转换为pcs lane格式报文数据,其报文数据的报文头位置信息相对基准端位置信息发生变化,因此,在使用基准点位置信息和报文头位置信息计算物理编码子层接收端的报文数据时间戳时会产生误差,为补偿物理编码子层接收端的报文数据的时间戳,在hsst lane格式报文数据中,报文数据按bit排序,图4为本申请实施例提供的一种时间戳同步的误差补偿方法的时间戳误差补偿示意图,如图4的输入模块所示,一条hsst lane的报文数据顺序为lane0 0bit、lane2 0bit……lane18 0bit、lane0 1bit、lane2 1bit……lane 18 128bit,另一条hsst lane的报文数据顺序为lane1 0bit、lane3 0bit……lane19 0bit、lane1 1bit、lane3 1bit……lane19 128bit;在pcs lane格式报文数据中,报文数据按lane排序,即如图4的输出模块所示,一条报文数据的顺序为lane0[65:0]、lane2[65:0]……lane18[65:0],另一条报文数据的顺序为lane1[65:0]、lane3[65:0]……lane19[65:0],的pcs lane指该模块的lane0[65:0]、lane1[65:0]……lane19[65:0];In the code word search module, the hsst lane format message data is converted into pcs lane format message data, and the message header position information of the message data changes relative to the reference end position information. Therefore, when using the reference point position information and the report Errors will occur when calculating the timestamp of the message data at the receiving end of the physical coding sublayer based on the position information of the header. Sorting, Figure 4 is a schematic diagram of time stamp error compensation of a time stamp synchronization error compensation method provided by the embodiment of the present application, as shown in the input module of Figure 4, the message data sequence of an hsst lane is lane0 0bit, lane2 0bit ...lane18 0bit, lane0 1bit, lane2 1bit...lane 18 128bit, the data sequence of another hsst lane is lane1 0bit, lane3 0bit...lane19 0bit, lane1 1bit, lane3 1bit...lane19 128bit; in pcs lane format In the message data, the message data is sorted by lane, that is, as shown in the output module in Figure 4, the order of a message data is lane0[65:0], lane2[65:0]...lane18[65:0] , the order of another message data is lane1[65:0], lane3[65:0]...lane19[65:0], the pcs lane refers to the module’s lane0[65:0], lane1[65:0] ]...lane19[65:0];
如图4所示,物理编码子层接收端的寻找码字模块内hsst lane格式报文数据的基准点位置和报文头位置相距的bit位数为n/2;如图4所示,物理编码子层接收端的pcs lane格式报文数据的基准点位置和报文头位置相距的bit位数为66*n-n/2,即物理编码子层接收端在寻找码字模块后的报文数据的基准点位置和报文头位置相距的bit位数为66*n-n/2,lane n即图4中的lane0-lane19;As shown in Figure 4, the number of bits between the reference point position of the hsst lane format message data and the message header position in the search codeword module of the receiving end of the physical encoding sublayer is n/2; as shown in Figure 4, the physical encoding The number of bits between the reference point position of the pcs lane format message data at the receiving end of the sublayer and the position of the message header is 66*n-n/2, that is, the reference point of the message data after the receiving end of the physical coding sublayer searches for the codeword module The number of bits between the point position and the message header position is 66*n-n/2, and lane n is lane0-lane19 in Figure 4;
如图4所示,假设hsst lane格式报文数据,基准点在lane00bit,报文头位置在lane 20bit,则hsst lane格式报文数据,基准点位置和报文头位置相差2/2bit,即1bit;在pcs lane格式报文数据中,基准点在lane0[65:0]的0bit,报文头在lane2[65:0]的0bit,基准点位置和报文头位置相差66*2-1bit。As shown in Figure 4, assuming that the hsst lane format message data, the reference point is at lane00bit, and the packet header position is at lane 20bit, then the hsst lane format message data, the reference point position and the packet header position differ by 2/2bit, that is, 1bit ;In the pcs lane format message data, the reference point is at 0bit of lane0[65:0], and the packet header is at 0bit of lane2[65:0]. The difference between the reference point and the packet header is 66*2-1bit.
在一些实施例中,步骤130包括:In some embodiments, step 130 includes:
根据物理编码子层接收端的寻找码字模块内hsst lane格式报文数据的基准点位置和报文头位置相距的bit位数以及,pcs lane格式报文数据的基准点位置和报文头位置相距的bit位数,确定物理编码子层接收端hsst lane格式报文数据在寻找码字模块内转换为pcs lane格式报文数据的时间戳误差为Q bit,即物理编码子层接收端的报文数据的时间戳误差为Q bit;其中,Q为正整数。Find the number of bits between the reference point position of the hsst lane format message data and the message header position in the codeword module according to the receiving end of the physical coding sublayer, and the distance between the reference point position of the pcs lane format message data and the message header position Determine the number of bits of the physical coding sublayer receiving end hsst lane format message data in the search codeword module to convert the time stamp error of pcs lane format message data to Q bit, that is, the message data of the physical coding sublayer receiving end The timestamp error of is Q bit; among them, Q is a positive integer.
在本实施例中,作为本实施例的优选实施方式,在100GB BASE-R PCS协议下,为了充分利用hsst lane和emac lane的带宽,使100GB BASE-R PCS协议下1个hsst lane连接两个25GB的emac lane,如图4所示,物理编码子层接收端hsst lane格式报文数据在寻找码字模块内转换为pcs lane格式报文数据后,造成的时间戳误差为66*n-n/2bit;假设hsst lane格式报文数据,基准点在lane00bit,报文头位置在lane 20bit,则在pcs lane格式报文数据中,基准点在lane0[65:0]的0bit,报文头在lane2[65:0]的0bit,基准点位置和报文头位置相差66*2-1bit,即物理编码子层接收端hsst lane格式报文数据在寻找码字模块内转换为pcs lane格式报文数据后,造成的时间戳误差为66*n-n/2bit。In this embodiment, as a preferred implementation of this embodiment, under the 100GB BASE-R PCS protocol, in order to make full use of the bandwidth of the hsst lane and emac lane, one hsst lane under the 100GB BASE-R PCS protocol is connected to two 25GB emac lane, as shown in Figure 4, after the hsst lane format message data at the receiving end of the physical coding sublayer is converted into pcs lane format message data in the codeword search module, the resulting time stamp error is 66*n-n/2bit ; Assume that the hsst lane format message data, the reference point is at lane00bit, and the packet header position is at lane 20bit, then in the pcs lane format message data, the reference point is at 0bit of lane0[65:0], and the packet header is at lane2[ 0bit at 65:0], the difference between the reference point position and the message header position is 66*2-1bit, that is, after the message data in hsst lane format at the receiving end of the physical coding sublayer is converted into message data in pcs lane format in the codeword search module , resulting in a timestamp error of 66*n-n/2bit.
在一些实施方式中,若计算时间戳误差的公式:66*n-n/2bit中的n/2不为整数,则可以根据预设规则取为整数。示例性地,预设规则为四舍五入规则,n/2为4.5bit,则根据预设规则确定n/2为5bit。In some implementation manners, if n/2 in the formula for calculating the timestamp error: 66*n-n/2bit is not an integer, it may be an integer according to a preset rule. Exemplarily, the preset rule is a rounding rule, and n/2 is 4.5 bits, then it is determined according to the preset rules that n/2 is 5 bits.
在一些实施例中,步骤140包括:In some embodiments, step 140 includes:
确定物理编码子层接收端报文数据的时间戳误差Q bit对应的时间T;Determine the time T corresponding to the time stamp error Q bit of the message data at the receiving end of the physical coding sublayer;
通过物理编码子层接收端报文数据的时间戳减去时间戳误差Q bit对应的时间T以补偿物理编码子层接收端报文数据的时间戳。Subtract the time T corresponding to the timestamp error Q bit from the time stamp of the message data at the receiving end of the physical coding sublayer to compensate the time stamp of the message data at the receiving end of the physical coding sublayer.
在本实施例中,作为本实施例的优选实施方式,在100GB BASE-R PCS协议下,为了 充分利用hsst lane和emac lane的带宽,使100GB BASE-R PCS协议下1个hsst lane连接两个25GB的emac lane,如图4所示,物理编码子层接收端hsst lane格式报文数据在寻找码字模块内转换为pcs lane格式报文数据后,造成的时间戳误差为66*n-n/2bit,因为每一bit对应的时间为1s/(频率*位宽),则该时间戳误差对应的时间为[(66*n-n/2)/(频率*位宽)]秒。In this embodiment, as a preferred implementation of this embodiment, under the 100GB BASE-R PCS protocol, in order to make full use of the bandwidth of the hsst lane and emac lane, one hsst lane under the 100GB BASE-R PCS protocol is connected to two 25GB emac lane, as shown in Figure 4, after the hsst lane format message data at the receiving end of the physical coding sublayer is converted into pcs lane format message data in the codeword search module, the resulting time stamp error is 66*n-n/2bit , because the time corresponding to each bit is 1s/(frequency*bit width), the time corresponding to the timestamp error is [(66*n-n/2)/(frequency*bit width)] seconds.
应当理解的是,本实施例展示了在100GB BASE-R PCS协议下,为了充分利用hsst lane和emac lane的带宽,使100GB BASE-R PCS协议下1个hsst lane连接两个25GB的emac lane时,对物理编码子层接收端报文数据的时间戳同步的误差补偿,在IEEE 1588协议下,还有50GB BASE-R PCS协议、40GB BASE-R PCS协议、25GB BASE-R PCS协议,本申请提出时间戳同步的误差补偿方法同样适用于这些协议。It should be understood that this embodiment shows that under the 100GB BASE-R PCS protocol, in order to fully utilize the bandwidth of the hsst lane and emac lane, when one hsst lane under the 100GB BASE-R PCS protocol is connected to two 25GB emac lanes , error compensation for time stamp synchronization error of message data at the receiving end of the physical coding sublayer, under the IEEE 1588 protocol, there are also 50GB BASE-R PCS protocol, 40GB BASE-R PCS protocol, 25GB BASE-R PCS protocol, this application The error compensation method proposed for timestamp synchronization is also applicable to these protocols.
除此之外,本申请的实施例展示了展示了在100GB BASE-R PCS协议下,为了充分利用hsst lane和emac lane的带宽,使100GB BASE-R PCS协议下1个hsst lane连接两个25GB的emac lane时,对物理编码子层接收端报文数据的时间戳同步的误差补偿,对于物理编码子层接收端,hsst lane和emac lane的转换关系并不局限于1:2,hsst lane的最大位宽为50GB,emac lane的位宽则有10GB、25GB、50GB、100GB的选择,hsst lane和emac lane的转换关系可以基于此进行自由配对,对于50GB BASE-R PCS协议、40GB BASE-R PCS协议、25GB BASE-R PCS协议的时间戳误差补偿,这些配对关系依然成立。In addition, the embodiment of the present application shows that under the 100GB BASE-R PCS protocol, in order to make full use of the bandwidth of the hsst lane and emac lane, one hsst lane under the 100GB BASE-R PCS protocol is connected to two 25GB When using the emac lane, the time stamp synchronization error compensation for the receiving end of the physical coding sublayer is compensated. For the receiving end of the physical coding sublayer, the conversion relationship between hsst lane and emac lane is not limited to 1:2. The hsst lane The maximum bit width is 50GB, and the bit width of emac lane has 10GB, 25GB, 50GB, and 100GB options. The conversion relationship between hsst lane and emac lane can be freely matched based on this. For 50GB BASE-R PCS protocol, 40GB BASE-R The time stamp error compensation of the PCS protocol and the 25GB BASE-R PCS protocol, these pairing relationships still hold.
请再参阅图5,图5为本申请实施例提供的一种时间戳同步的误差补偿装置的结构示意图。如图5所示,该时间戳同步的误差补偿装置200包括:第一获取单元210、第二获取单元220、确定单元230和补偿单元240。Please refer to FIG. 5 again. FIG. 5 is a schematic structural diagram of an error compensation device for time stamp synchronization provided by an embodiment of the present application. As shown in FIG. 5 , the error compensation apparatus 200 for timestamp synchronization includes: a first acquisition unit 210 , a second acquisition unit 220 , a determination unit 230 and a compensation unit 240 .
第一获取单元210,用于获取物理编码子层接收端的报文数据在寻找码字模块内的基准点位置信息。The first acquiring unit 210 is configured to acquire the position information of the reference point of the packet data at the receiving end of the physical coding sublayer in the codeword search module.
第二获取单元220,用于采样输入至报文接收端的第二时间戳脉冲信号至源时钟,第二时间戳脉冲信号用于在报文接收端的报文数据传输过程中指示基准点位置。The second acquisition unit 220 is configured to sample the second time stamp pulse signal input to the message receiving end to the source clock, and the second time stamp pulse signal is used to indicate the position of the reference point during the message data transmission process of the message receiving end.
确定单元230,用于根据基准点位置信息和报文头位置信息确定物理编码子层接收端报文数据的时间戳误差。The determining unit 230 is configured to determine the timestamp error of the packet data at the receiving end of the physical coding sublayer according to the position information of the reference point and the position information of the packet header.
补偿单元240,用于向物理编码子层接收端报文数据的时间戳补偿时间戳误差。The compensation unit 240 is configured to compensate the time stamp error for the time stamp of the packet data at the receiving end of the physical coding sublayer.
需要说明的是,对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。对于方法实施例中的所描述的任意的处理方式,在装置实施例中均可以通过相应的处理模块实现,装置实施例中不再一一赘述。It should be noted that, for the device-type embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for relevant parts, refer to the part of the description of the method embodiments. Any of the processing methods described in the method embodiments can be implemented by corresponding processing modules in the device embodiments, and details will not be repeated in the device embodiments.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
请在参阅图6,图6为本申请实施例提供的一种电子设备的结构示意图。如图6所示,该电子设备300包括:一个或多个处理器310以及存储器320,图6中以一个处理器310为例。Please refer to FIG. 6 , which is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 6 , the electronic device 300 includes: one or more processors 310 and a memory 320 , and one processor 310 is taken as an example in FIG. 6 .
处理器310和存储器320可以通过总线或者其他方式连接,图6中以通过总线连接为例。The processor 310 and the memory 320 may be connected through a bus or in other ways, and connection through a bus is taken as an example in FIG. 6 .
处理器310,用于获取物理编码子层接收端的报文数据在寻找码字模块内的基准点位置信息;获取物理编码子层接收端的报文数据在寻找码字模块内的报文头位置信息;根据基准点位置信息和报文头位置信息确定物理编码子层接收端报文数据的时间戳误差;向物理编码子层接收端报文数据的时间戳补偿时间戳误差。The processor 310 is configured to obtain the reference point position information of the message data at the receiving end of the physical coding sublayer in the codeword module; obtain the message header position information of the message data at the receiving end of the physical coding sublayer in the codeword module ; Determine the time stamp error of the message data at the receiving end of the physical coding sublayer according to the position information of the reference point and the position information of the message header; compensate the time stamp error for the time stamp of the message data at the receiving end of the physical coding sublayer.
存储器320作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的时间戳同步的误差补偿方法的程序指令/模块。处理器310通过运行存储在存储器320中的非易失性软件程序、指令以及模块,从而执行电子设备的各种功能应用以及数据处理,即实现上述方法实施例的时间戳同步的误差补偿方法。The memory 320, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs and modules, such as the error compensation method for time stamp synchronization in the embodiment of the present application program instructions/modules. The processor 310 executes various functional applications and data processing of the electronic device by running the non-volatile software programs, instructions and modules stored in the memory 320 , that is, implements the error compensation method for time stamp synchronization in the above method embodiment.
存储器320可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器320可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器320可选包括相对于处理器310远程设置的存储器,这些远程存储器可以通过网络连接至控制器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 320 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the use of the electronic device, and the like. In addition, the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 320 may optionally include memory located remotely from the processor 310, and these remote memories may be connected to the controller through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
一个或者多个模块存储在存储器320中,当被一个或者多个处理器310执行时,执行上述任意方法实施例中的时间戳同步的误差补偿方法。One or more modules are stored in the memory 320, and when executed by one or more processors 310, execute the error compensation method for time stamp synchronization in any of the above method embodiments.
请参考图7,图7是本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读存储介质400中存储有程序代码410,程序代码410可被处理器调用执行上述方法实施例中所描述的时间戳同步的误差补偿方法。Please refer to FIG. 7 , which is a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable storage medium 400 stores a program code 410, and the program code 410 can be invoked by a processor to execute the time stamp synchronization error compensation method described in the above method embodiments.
计算机可读存储介质400可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质400具有执行上述时间戳同步的误差补偿方法中的任何方法步骤的程序代码的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码可以例如以适当形式进行压缩。The computer readable storage medium 400 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer-readable storage medium 400 has a storage space for program codes for executing any method steps in the error compensation method for time stamp synchronization described above. These program codes can be read from or written into one or more computer program products. The program code can eg be compressed in a suitable form.
以上内容是结合具体的实施方式对本申请所作的进一步详细说明,不能认定本申请的具体实施只局限与这些说明。对于本申请所属技术领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干简单推演或替换,都应视为本申请的保护范围。The above content is a further detailed description of the present application in combination with specific implementation modes, and it cannot be determined that the specific implementation of the present application is only limited to these descriptions. For those of ordinary skill in the technical field to which this application belongs, some simple deduction or substitutions can be made without departing from the concept of this application, which should be regarded as the protection scope of this application.

Claims (10)

  1. 一种时间戳同步的误差补偿方法,其中,所述方法包括:An error compensation method for time stamp synchronization, wherein the method includes:
    获取物理编码子层接收端的报文数据在寻找码字模块内的基准点位置信息;Obtaining the message data at the receiving end of the physical coding sublayer is looking for the reference point position information in the codeword module;
    获取所述物理编码子层接收端的报文数据在寻找码字模块内的报文头位置信息;Obtaining the message data at the receiving end of the physical coding sublayer is looking for message header position information in the codeword module;
    根据所述基准点位置信息和所述报文头位置信息确定所述物理编码子层接收端报文数据的时间戳误差;determining the time stamp error of the message data at the receiving end of the physical coding sublayer according to the position information of the reference point and the position information of the message header;
    向所述物理编码子层接收端报文数据的时间戳补偿所述时间戳误差。Compensating the time stamp error to the time stamp of the packet data at the receiving end of the physical coding sublayer.
  2. 如权利要求1所述的时间戳同步的误差补偿方法,其中,所述获取物理编码子层接收端的报文数据在寻找码字模块内的基准点位置信息,包括:The error compensation method for time stamp synchronization according to claim 1, wherein said obtaining the message data of the receiving end of the physical coding sublayer is looking for reference point position information in the codeword module, comprising:
    在所述物理编码子层接收端的寻找码字模块内获取pcs lane格式报文数据的基准点位置信息,所述pcs lane格式为物理编码子层数据通道格式。Obtain the reference point position information of the pcs lane format message data in the code word module of the receiving end of the physical coding sublayer, and the pcs lane format is the data channel format of the physical coding sublayer.
  3. 如权利要求2所述的时间戳同步的误差补偿方法,其中,所述方法还包括:The error compensation method for time stamp synchronization according to claim 2, wherein said method further comprises:
    获取所述物理编码子层接收端的寻找码字模块内hsst lane格式报文数据的基准点位置信息,所述hsst lane格式为高速串行收发器数据通道格式;Obtain the reference point position information of the hsst lane format message data in the search codeword module of the receiving end of the physical coding sublayer, and the hsst lane format is a high-speed serial transceiver data channel format;
    根据所述hsst lane格式报文数据的基准点位置信息确定所述pcs lane格式报文数据的基准点位置信息;Determine the reference point position information of the pcs lane format message data according to the reference point position information of the hsst lane format message data;
    其中,所述pcs lane格式报文数据由所述hsst lane格式报文数据在所述物理编码子层接收端的寻找码字模块内转换得到。Wherein, the message data of the pcs lane format is obtained by converting the message data of the hsst lane format in the code word search module of the receiving end of the physical coding sublayer.
  4. 如权利要求1-3任一项所述的时间戳同步的误差补偿方法,其中,所述获取所述物理编码子层接收端的报文数据在寻找码字模块内的报文头位置信息,包括:The error compensation method for time stamp synchronization according to any one of claims 1-3, wherein said obtaining the message data at the receiving end of the physical coding sublayer is looking for the message header position information in the codeword module, including :
    在所述物理编码子层接收端的Emac XGMII接口模块内获取所述物理编码子层接收端的pcs lane格式报文数据的报文头位置信息,所述Emac XGMII接口为以太网介质访问模块的10Gb独立于媒体的接口。Obtain the message header position information of the pcs lane format message data of the physical encoding sublayer receiving end in the Emac XGMII interface module of the receiving end of the physical encoding sublayer, and the Emac XGMII interface is an independent 10Gb of the Ethernet media access module interface to the media.
  5. 如权利要求4所述的时间戳同步的误差补偿方法,其中,所述方法还包括:The error compensation method for time stamp synchronization according to claim 4, wherein the method further comprises:
    根据所述物理编码子层接收端的pcs lane格式报文数据的基准点位置信息和报文头位置信息,确定所述物理编码子层接收端的pcs lane格式报文数据的基准点位置和报文头位置相距的bit位数;According to the reference point position information and the message header position information of the pcs lane format message data of the receiving end of the physical coding sublayer, determine the reference point position and the message header of the pcs lane format message data of the receiving end of the physical coding sublayer The number of bits apart from each other;
    根据所述物理编码子层接收端的寻找码字模块内hsst lane格式报文数据的基准点位置信息和,所述物理编码子层接收端的pcs lane格式报文数据的报文头位置信息,确定所述物理编码子层接收端的寻找码字模块内hsst lane格式报文数据的基准点位置和报文头位置相距的bit位数。According to the reference point position information of the hsst lane format message data in the code word module of the receiving end of the physical coding sublayer and the message header position information of the pcs lane format message data of the physical coding sublayer receiving end, determine the The number of bits between the reference point position of the hsst lane format message data in the search codeword module of the receiving end of the physical coding sublayer and the message header position.
  6. 如权利要求1-5任一项所述的时间戳同步的误差补偿方法,其中,所述根据所述基准点位置信息和所述报文头位置信息确定所述物理编码子层接收端报文数据的时间戳误差,包括:The error compensation method for time stamp synchronization according to any one of claims 1-5, wherein said receiving end message of said physical coding sublayer is determined according to said reference point position information and said message header position information Timestamp errors of data, including:
    根据所述物理编码子层接收端的寻找码字模块内hsst lane格式报文数据的基准点和报文头位置相距的bit位数以及,pcs lane格式报文数据的基准点位置和报文头位置相距的bit位数,确定所述物理编码子层接收端hsst lane格式报文数据在寻找码字模块内转换为pcs lane格式报文数据的时间戳误差为Q bit,即所述物理编码子层接收端的报文数据的时间戳误差为Q bit;其中,Q为正整数。According to the number of bits apart from the reference point of the hsst lane format message data in the receiving end of the physical coding sublayer and the message header position in the codeword module, and the reference point position and the message header position of the pcs lane format message data The number of bits apart determines that the timestamp error of the hsst lane format message data at the receiving end of the physical coding sublayer converted into pcs lane format message data in the codeword module is Q bit, that is, the physical coding sublayer The time stamp error of the message data at the receiving end is Q bit; where, Q is a positive integer.
  7. 如权利要求1-6任一项所述的时间戳同步的误差补偿方法,其中,所述向所述物理编码子层接收端报文数据的时间戳补偿所述时间戳误差,包括:The error compensation method for timestamp synchronization according to any one of claims 1-6, wherein said compensating the timestamp error for the timestamp of the message data at the receiving end of the physical coding sublayer comprises:
    确定所述物理编码子层接收端报文数据的时间戳误差Q bit对应的时间T;Determine the time T corresponding to the timestamp error Q bit of the physical coding sublayer receiving end message data;
    通过所述物理编码子层接收端报文数据的时间戳减去所述时间戳误差Q bit对应的时 间T以补偿所述物理编码子层接收端报文数据的时间戳。The time T corresponding to the time stamp error Q bit is subtracted from the time stamp of the message data at the receiving end of the physical coding sublayer to compensate the time stamp of the message data at the receiving end of the physical coding sublayer.
  8. 一种时间戳同步的误差补偿装置,其中,所述装置包括:An error compensation device for time stamp synchronization, wherein the device includes:
    第一获取单元,用于获取物理编码子层接收端的报文数据在寻找码字模块内的基准点位置信息;The first obtaining unit is used to obtain the reference point position information of the message data at the receiving end of the physical coding sublayer in the code word search module;
    第二获取单元,用于获取所述物理编码子层接收端的报文数据在寻找码字模块内的报文头位置信息;The second obtaining unit is used to obtain the message header position information of the message data at the receiving end of the physical coding sublayer in the code word search module;
    确定单元,用于根据所述基准点位置信息和所述报文头位置信息确定所述物理编码子层接收端报文数据的时间戳误差;A determining unit, configured to determine the time stamp error of the packet data at the receiving end of the physical coding sublayer according to the position information of the reference point and the position information of the packet header;
    补偿单元,用于向所述物理编码子层接收端报文数据的时间戳补偿所述时间戳误差。A compensation unit, configured to compensate the time stamp error for the time stamp of the packet data at the receiving end of the physical coding sublayer.
  9. 一种电子设备,其中,包括:An electronic device, comprising:
    至少一个处理器;以及,at least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-7任一项所述的时间戳同步的误差补偿方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can perform the method described in any one of claims 1-7. An error compensation method for timestamp synchronization.
  10. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使电子设备能够执行权利要求1-7任一项所述的时间戳同步的误差补偿方法。A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable an electronic device to execute the time stamp according to any one of claims 1-7 Synchronous error compensation method.
PCT/CN2022/117198 2021-12-27 2022-09-06 Timestamp synchronization error compensation method, apparatus, electronic device, and storage medium WO2023124197A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111620531.7 2021-12-27
CN202111620531.7A CN114221733B (en) 2021-12-27 2021-12-27 Error compensation method for synchronizing time stamps

Publications (1)

Publication Number Publication Date
WO2023124197A1 true WO2023124197A1 (en) 2023-07-06

Family

ID=80706440

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/117198 WO2023124197A1 (en) 2021-12-27 2022-09-06 Timestamp synchronization error compensation method, apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN114221733B (en)
WO (1) WO2023124197A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114221733B (en) * 2021-12-27 2023-11-07 深圳市紫光同创电子有限公司 Error compensation method for synchronizing time stamps

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102244572A (en) * 2011-07-18 2011-11-16 中兴通讯股份有限公司 Clock synchronization method and device
US20150055644A1 (en) * 2013-08-22 2015-02-26 Lsi Corporation Precise timestamping of ethernet packets by compensating for start-of-frame delimiter detection delay and delay variations
US20200076439A1 (en) * 2017-06-28 2020-03-05 Analog Devices International Unlimited Company Apparatus and methods for system clock compensation
CN111934802A (en) * 2019-05-13 2020-11-13 英特尔公司 High precision time stamping for multi-channel ports
CN113228564A (en) * 2018-12-24 2021-08-06 华为技术有限公司 Stamping processing method and device
CN114172604A (en) * 2020-09-11 2022-03-11 华为技术有限公司 Time delay compensation method, device, equipment and computer readable storage medium
CN114221733A (en) * 2021-12-27 2022-03-22 深圳市紫光同创电子有限公司 Error compensation method for timestamp synchronization

Family Cites Families (4)

* 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
CN110224775B (en) * 2018-03-01 2021-10-29 中兴通讯股份有限公司 Method, device and equipment for determining time information
CN111245542B (en) * 2018-11-28 2022-01-28 中兴通讯股份有限公司 Method for acquiring time stamp and time synchronization system
CN111611147B (en) * 2020-06-28 2023-05-30 中国人民解放军国防科技大学 Method, system and medium for detecting and analyzing performance of internal universal interface of processor

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102244572A (en) * 2011-07-18 2011-11-16 中兴通讯股份有限公司 Clock synchronization method and device
US20150055644A1 (en) * 2013-08-22 2015-02-26 Lsi Corporation Precise timestamping of ethernet packets by compensating for start-of-frame delimiter detection delay and delay variations
US20200076439A1 (en) * 2017-06-28 2020-03-05 Analog Devices International Unlimited Company Apparatus and methods for system clock compensation
CN113228564A (en) * 2018-12-24 2021-08-06 华为技术有限公司 Stamping processing method and device
CN111934802A (en) * 2019-05-13 2020-11-13 英特尔公司 High precision time stamping for multi-channel ports
CN114172604A (en) * 2020-09-11 2022-03-11 华为技术有限公司 Time delay compensation method, device, equipment and computer readable storage medium
CN114221733A (en) * 2021-12-27 2022-03-22 深圳市紫光同创电子有限公司 Error compensation method for timestamp synchronization

Also Published As

Publication number Publication date
CN114221733B (en) 2023-11-07
CN114221733A (en) 2022-03-22

Similar Documents

Publication Publication Date Title
US9667370B2 (en) Communication device with peer-to-peer assist to provide synchronization
CN103916252B (en) High-bandwidth Ethernet IP core based on FPGA
WO2019165965A1 (en) Method, apparatus, and device for determining time information
US9300421B2 (en) Methods to achieve accurate time stamp in IEEE 1588 for system with FEC encoder
US8842793B2 (en) Communication circuit and method of adjusting sampling clock signal
WO2020029023A1 (en) Baud rate calibration circuit and serial chip
US9942025B2 (en) Electrical transceiver for synchronous ethernet
CN103825696A (en) Device for realizing high-speed real-time communication by optical fibers based on FPGA (Field Programmable Gate Array)
CN110858811B (en) Method for measuring time delay and network equipment
WO2017219881A1 (en) Method and device for time synchronization based on 1588 standard
US20160087737A1 (en) A network receiver for a network using distributed clock synchronization and a method of sampling a signal received from the network
WO2023124197A1 (en) Timestamp synchronization error compensation method, apparatus, electronic device, and storage medium
WO2023109147A1 (en) Timestamp pulse synchronization method and apparatus, and electronic device and storage medium
US20220006546A1 (en) Time Synchronization Method and Device, and Storage Medium
CN110708133B (en) Method and device for clock synchronization and time synchronization in system based on FPGA
US20210203428A1 (en) Technologies for high-precision timestamping of packets
CN104144047A (en) Synchronization method of communication network system, intermediate node and slave node
US20220360350A1 (en) Method and apparatus for acquiring timestamp of data stream, storage medium, and electronic apparatus
CN103812797A (en) Method for transmitting data packets, and communication module for receiving data packets
US20130016762A1 (en) Data communication system, method of optimizing preamble length, and communication apparatus
CN111181677B (en) Time synchronization method, network device and storage medium
US11388111B1 (en) Systems and methods for providing a compatible backplane operation mechanism for 2.5-gigabit high-speed ethernet
US9910818B2 (en) Serdes interface architecture for multi-processor systems
KR100684564B1 (en) Frame synchronization method and apparatus therefor
WO2017003441A1 (en) Identification codewords for a rate-adapted version of a data stream

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

Country of ref document: EP

Kind code of ref document: A1