WO2020134709A1 - Time correction method, device, system, and storage medium - Google Patents
Time correction method, device, system, and storage medium Download PDFInfo
- Publication number
- WO2020134709A1 WO2020134709A1 PCT/CN2019/119273 CN2019119273W WO2020134709A1 WO 2020134709 A1 WO2020134709 A1 WO 2020134709A1 CN 2019119273 W CN2019119273 W CN 2019119273W WO 2020134709 A1 WO2020134709 A1 WO 2020134709A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- time
- message
- module
- time stamp
- messages
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
- H04J3/0661—Clock or time synchronisation among packet nodes using timestamps
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0602—Systems characterised by the synchronising information used
- H04J3/0605—Special codes used as synchronising signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0682—Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/16—Threshold monitoring
Definitions
- the present invention requires the priority of the Chinese patent application filed on December 29, 2018 in the Chinese Patent Office with the application number 201811641992.0 and the invention titled "a time correction method, device, system and storage medium”. The content is incorporated by reference in the present invention.
- This application relates to the field of communications, and in particular to a time correction method, device, system, and storage medium.
- the main control board passes the time information to each service board through the same 1pps backplane trace.
- the transmission of high-precision time information between the sub-racks is a function that must be implemented .
- timestamp information is added to the Ethernet message, and the switch chip is used to send the Ethernet message.
- the switching chip has the problems of relatively large forwarding delay and unstable path delay. Therefore, it will cause the problem of inaccurate time information transmitted between service subracks.
- This application provides a time correction method, device, system, and storage medium.
- an embodiment of the present application provides a time correction method, including: acquiring a first pair of time messages, the first pair of time messages carrying a time stamp and a preset code; recording and detecting the pre Set a first time stamp corresponding to the encoded moment, and delete the preset code in the first pair of time messages to obtain the original time message; extract the time stamp in the original time message; use the The time stamp and the first time stamp correct the time stamp of the time stamp counter so that the time stamp of the time stamp counter and the time stamp of the time stamp counter that sent the first pair of time messages are at the same time The value is the same.
- an embodiment of the present application provides a time correction method, including: when a timestamp counter is cleared at the second level, generating a second time stamp including a second timestamp corresponding to the timestamp reset time of the timestamp counter at the second level Timed message; insert a preset code into the second timed message to obtain the marked message; output the marked message.
- an embodiment of the present application provides a time correction device, including: a first message processing module and a user-defined code deletion module; the delete user-defined code module is connected to the first message processing module to To obtain a first pair of time messages, the first pair of time messages carries a time stamp and a preset code, records a first time stamp corresponding to the moment when the preset code is detected, and deletes the first The preset encoding in the time synchronization message to obtain an original time synchronization message; the first message processing module is used to extract the time synchronization time stamp in the original time synchronization message, and use the time synchronization time stamp and all Said first timestamp, correcting the timestamp of the timestamp counter so that the timestamp of the timestamp counter and the timestamp of the timestamp counter sending the first pair of time messages have the same value at the same time.
- an embodiment of the present application provides a time correction device, including: a second message processing module and a module for inserting a custom code; the second message processing module is used to clear the timestamp counter at the second level , Generate a second pair of time messages including a second time stamp corresponding to the second time clearing time of the time stamp counter, and send the second pair of time messages to the module for inserting a custom code; the inserting a custom code
- the module is configured to receive the second pair of time messages sent by the second message processing module, insert a preset code into the second pair of time messages, obtain a marked message, and output the marked message.
- an embodiment of the present application provides a time correction system.
- the system includes the time correction device according to any one of the third aspect and the time correction device according to any one of the fourth aspect.
- an embodiment of the present application provides a computer-readable storage medium that stores computer instructions, and the computer instructions cause the computer to perform any one of the first aspect and the second aspect Describe the steps of the method.
- an embodiment of the present application provides a computer program product.
- the computer program product includes a computer program stored on a non-transitory computer-readable storage medium.
- the computer program includes program instructions. When the program instructions When executed by a computer, the computer is caused to perform the methods described in the above aspects.
- FIG. 1 is a schematic diagram of a first connection of a service board provided by an embodiment of this application.
- FIG. 2 is a schematic diagram of a second connection of a service board provided by an embodiment of this application.
- FIG. 3 is a flowchart of a time correction method provided by an embodiment of this application.
- FIG. 4 is a first schematic structural diagram of a time correction device provided by an embodiment of the present application.
- FIG. 5 is a second schematic structural diagram of a time correction device provided by an embodiment of this application.
- FIG. 6 is a first schematic structural diagram of a time correction system provided by an embodiment of the present application.
- FIG. 7 is a second schematic structural diagram of a time correction system provided by an embodiment of the present application.
- FIG. 8 is a schematic structural diagram of a server provided by an embodiment of the present application.
- the present application provides a time correction method, device, system and storage medium, which can alleviate the problem of inaccurate time information transmitted between service subracks in the prior art, and improve the accuracy of time information transmitted between service subracks Sex.
- the first service board 11 may be connected to the second service board 12, the third service board 13, and the fourth service board 14 through interfaces, respectively.
- the interface may be a GE interface (Gigabit Ethernet, Gigabit Ethernet interface).
- the second business board 12, the third business board 13 and the fourth business board 14 may be located in the same subrack, and the second business board 12, the third business board 13 and the fourth business board 14 may also be located in different subracks in.
- the first service board 11 may be located in the first subrack, and the second service board 12, the third service board 13, and the fourth service board 14 may all be located in the second subrack.
- the first service board 11 may be located in the first subrack
- the second service board 12 may be located in the second subrack
- the third service board 13 may be located in the third subrack
- the fourth service board 14 may be located in the fourth In the subrack.
- the first service board 11 may be located in the first subrack
- the second service board 12 and the third service board 13 may both be located in the second subrack
- the fourth service board 14 may be located in the third subrack. This is just an illustration.
- first business board 11 is connected to the second business board 12, the third business board 13, and the fourth business board 14 through the interface, then the first business board 11 is the main side, and the second business board 12, the third business board 13 Both the fourth service board 14 and the first service board 14 send time information to the second service board 12, the third service board 13, the fourth service board 14, the second service board 12, and the third service board 13
- the fourth service board 14 uses the time information to correct the time stamps of the respective time stamp counters.
- the A business board 21 and the B business board 22 are connected.
- the master-slave relationship between the A business board 21 and the B business board 22 is configurable. If the A business board 21 is the main side, the B business board 21 22 is the slave side, the A service board 21 sends time information to the B service board 22, and the B service board 22 uses the time information to correct the time stamp of its own time stamp counter. If the B business board 22 is the master side, the A business board 21 is the slave side, and the B business board 22 sends time information to the A business board 21, and the A business board 21 uses the time information to correct the time stamp of its own time stamp counter.
- the time correction method provided by the embodiment of the present application may be applied to the service board or device on the slave side.
- the time correction method may include steps S101 to S104:
- the first pair of time messages may be sent by a service board or device on the main side.
- the time-stamping time stamp may be recorded when the time stamp counter in the service board or device on the main side is cleared in seconds.
- the preset encoding may include: a custom K code and a custom D code.
- the custom K code may be K28.5.
- the custom D code can be D5.6.
- S102 Record a first time stamp corresponding to the moment when the preset encoding is detected, and delete the preset encoding in the first pair of time-of-day messages to obtain the original time-of-day message.
- the difference between the time stamp and the first time stamp is obtained. If the absolute value of the difference is greater than the absolute value threshold, the time stamp of the local time stamp counter is updated.
- the update formula can be:
- t is the time stamp of the updated local time stamp counter
- t 3 is the time stamp of the local time stamp counter corresponding to the update time
- t 1 is the time stamp
- t 2 is the first time stamp.
- the absolute threshold can be set to 16ns.
- An embodiment of the present application provides a time correction method.
- the method includes: acquiring a first pair of time messages, the first pair of time messages carrying a time stamp and a preset code; recording and detecting the preset code A first timestamp corresponding to the time, and deleting the preset code in the first pair of time-of-day messages to obtain an original time-of-day message; extracting the time-of-day timestamp in the original time-of-day message; using the time-of-day
- the timestamp and the first timestamp correct the timestamp of the timestamp counter so that the timestamp of the timestamp counter and the timestamp of the timestamp counter sending the first pair of time messages have the same value at the same time, Therefore, the time correction method provided by the present application can use the time stamp and the first time stamp to correct the time stamp of the time stamp counter so that the time stamp of the time stamp counter and the first pair of time reports are sent
- the timestamp of the text timestamp counter has the same value at the
- step S103 may be Including step S1031 to step S1033: S1031, the first waterline data of the first first-in first-out FIFO memory is obtained, and the first FIFO memory is used to store the first time stamp and the original time synchronization message.
- the first waterline threshold can be set according to actual needs.
- the number of idle frames inserted each time can also be set according to actual needs.
- step S1032 may also be: if the first waterline data is less than the first waterline threshold and a continuous idle frame is detected in the data stream composed of the first timestamp and the original time synchronization message, then Insert idle frames in the data stream.
- the extracting the time synchronization timestamp in the original time synchronization message includes: obtaining the first FIFO memory first Waterline data, the first FIFO memory is used to store the first timestamp and the original time synchronization message; if the first waterline data is less than the first waterline threshold, then the first time Insert a free frame into the data stream composed of the stamp and the original time synchronization message; extract the time synchronization time stamp from the data stream inserted into the idle frame. Therefore, the problem of lowering the speed and stability of data transmission due to the lower waterline of the FIFO memory can be avoided, and the technical effect of ensuring the speed and stability of data transmission is achieved.
- the time correction method may further include steps S11 to S14: S11 to obtain message data transmitted by parallel communication.
- the interface and the optical module can be used to obtain the message data transmitted by the parallel communication method.
- the interface may be a GE port.
- the byte sliding method may be used to align the bytes in the byte unaligned message.
- the 8B/10B coding standard may be used to decode the undecoded message from 8 bits to 10 bits.
- a time correction method in the embodiment of the present application is described in detail.
- the time correction method provided in the embodiment of the present application may be applied to a service board or device on the main side.
- the time correction method may include steps S21 to S23: S21, when the timestamp counter is cleared at the second level, a second time-of-day message including a second timestamp corresponding to the second time cleared time of the timestamp counter is generated.
- the preset encoding may include: a custom K code and a custom D code.
- the custom K code may be K28.5.
- the custom D code can be D5.6.
- An embodiment of the present application provides a time correction method.
- the method includes: when a timestamp counter is cleared at the second level, generating a second time-of-day message including a second timestamp corresponding to the second time cleared time of the timestamp counter ; Insert the preset code into the second pair of time messages to get the marked message; output the marked message, so you can use the marked message to the time stamp of the slave time stamp counter connected to the time stamp counter Correction, even if the switching chip connecting the timestamp counter and the slave timestamp counter has a problem that the forwarding delay is relatively large and the path delay is unstable, the timestamp of the slave timestamp counter will be corrected finally, so this method can alleviate The problem of inaccurate time information transmitted between service subracks in the prior art improves the accuracy of time information transmitted between service subracks.
- step S23 may include step S231 to step S233: S231, acquiring second waterline data of a second FIFO memory, where the second FIFO memory is used to store the marked message.
- the second waterline threshold can be set according to actual needs.
- the number of idle frames deleted each time can also be set according to actual needs. Exemplarily, the number of idle frames deleted each time may be set to one.
- step S232 may also be: if the second waterline data is greater than the second waterline threshold and continuous idle frames are detected in the marked message, the idle frame is deleted from the marked message .
- the outputting the marked message includes: acquiring the second waterline data of the second FIFO memory, and the second FIFO memory It is used to store the marked message; if the second waterline data is greater than the second waterline threshold, delete the idle frame from the marked message; delete the idle frame and output the marked message. Therefore, the problem of reducing the speed and stability of data transmission due to the increased waterline of the FIFO memory can be avoided, and the technical effect of ensuring the speed and stability of data transmission is achieved.
- step S233 may include steps S2331 to S2332: S2331, encoding the marked messages for deleting idle frames to obtain the encoding After the time message.
- the 8B/10B coding standard can be used to encode 8-bit to 10-bit messages for marked messages with idle frames deleted.
- the interface and the optical module can be used to output the encoded time synchronization message according to the parallel communication mode.
- the time correction device includes: a first message processing module 41 and a Definition code module 42.
- the delete custom code module 42 is connected to the first message processing module 41, and is used to obtain a first pair of time messages.
- the first pair of time messages carries a time stamp and a preset code for recording and detection.
- the first timestamp corresponding to the moment of the preset encoding, and deleting the preset encoding in the first pair of time-of-day messages to obtain the original time-of-day message.
- the delete custom code module 42 is further configured to generate a first pulse signal and send the first pulse signal to the first message processing module 41 if it is detected that the first pair of time messages contains a preset code.
- the first message processing module 41 is used to extract the time stamp in the original time stamp message, and use the time stamp and the first time stamp to correct the time stamp of the time stamp counter, so that The time stamp of the time stamp counter and the time stamp of the time stamp counter that sent the first pair of time messages have the same value at the same time.
- the first message processing module 41 is also used to receive the first pulse signal sent by the delete custom code module 42. If the first pulse signal is received, the first time stamp is determined as valid data. If the first time stamp is valid data, the first time stamp is used to correct the time stamp of the time stamp counter. In this way, the accuracy and validity of the time stamp of the corrected time stamp counter can be improved.
- An embodiment of the present application provides a time correction device.
- the time correction device includes a first message processing module 41 and a custom code deletion module 42.
- the delete custom code module 42 is connected to the first message processing module 41, and is used to obtain a first pair of time messages.
- the first pair of time messages carries a time stamp and a preset code for recording and detection.
- the first timestamp corresponding to the moment of the preset encoding, and deleting the preset encoding in the first pair of time-of-day messages to obtain the original time-of-day message.
- the first message processing module 41 is used to extract the time stamp in the original time stamp message, and use the time stamp and the first time stamp to correct the time stamp of the time stamp counter, so that The timestamp of the timestamp counter and the timestamp of the timestamp counter that sent the first pair of time messages have the same value at the same time. Therefore, the time correction device provided by the embodiment of the present application can use the timestamp And the first timestamp, correct the timestamp of the timestamp counter so that the timestamp of the timestamp counter and the timestamp counter of the timestamp counter sending the first pair of time messages have the same value at the same time, even if they are exchanged
- the chip has the problems that the forwarding delay is relatively large and the path delay is unstable. Finally, the timestamp of the local timestamp counter is also corrected. Therefore, the inaccurate time information transmitted between service subracks in the prior art can be alleviated To improve the accuracy of time information transmitted between business subracks.
- the time correction device may further include: a first FIFO The memory 43 and the insert idle frame module 44.
- the time correction device in the embodiment of the present application is located on the slave side.
- the first FIFO memory 43 is respectively connected to the insert idle frame module 44 and the first message processing module 41, and is used to store the first time stamp and the original time synchronization message.
- the insert idle frame module 44 and the delete custom code module 42 are connected to obtain the first waterline data of the first FIFO memory, if the first waterline data is less than the first waterline threshold, then Insert an idle frame in the data stream composed of the first time stamp and the original time synchronization message.
- the first message processing module 41 is also used to extract the time-stamping time stamp from the data stream inserted into the idle frame.
- the time correction device may further include: a byte alignment module 45, Decoding module 46 and first optical port processing module 47.
- the time correction device in the embodiment of the present application is located on the slave side.
- the first optical port processing module 47 and the byte alignment module 45 are connected to obtain message data transmitted by parallel communication, and convert the message data into bytes transmitted by serial communication. Align the message, and send the byte unaligned message to the byte alignment module 45.
- the first optical port processing module 47 may adopt an IP core to perform serial/parallel communication mode conversion and communicate with the optical module.
- the byte alignment module 45 and the decoding module 46 are connected to receive the byte unaligned message sent by the first optical port processing module 47, and align words in the byte unaligned message Section, get the undecoded message, and send the undecoded message to the decoding module 46.
- the decoding module 46 is configured to receive the undecoded message sent by the byte alignment module 45, decode the undecoded message, and obtain the first pair of time messages.
- the decoding module 46 may be an 8B/10B decoding module.
- the time correction device in the embodiment of the present application is described in detail. As shown in FIG. 5, the time correction device may include: a second message processing module 51 and a custom code insertion module 52.
- the time correction device in the embodiment of the present application is located on the main side.
- the second message processing module 51 is used to generate a second pair of time messages including a second time stamp corresponding to the second time of the time stamp counter when the time stamp counter is cleared at the second level, and send the The second pair of time messages is inserted into the custom code module 52.
- the second message processing module 51 is also used to generate a second pulse signal when the time stamp counter is cleared at the second level, and send the second pulse signal to the custom code module 52.
- the inserting custom code module 52 is used to receive the second pair of time messages sent by the second message processing module 51, insert a preset code into the second pair of time messages, obtain the marked message, and output The marked message.
- the custom code insertion module 52 is also used to receive the second pulse signal sent by the second message processing module 51. If the second pulse signal is received, a preset code is inserted into the second pair of time messages.
- the time correction device includes: a second message processing module and a module for inserting a custom code; the second message processing module is used for generating and including the time when the timestamp counter is cleared at the second level A second time-stamp message corresponding to the second timestamp corresponding to the second-time zero-stamping time of the counter, and sending the second time-stamp message to the insert custom code module; the insert custom code module is used to receive the The second pair of time messages sent by the second message processing module inserts a preset code into the second pair of time messages, obtains the marked message, and outputs the marked message. Therefore, the time correction device can use the marked message to correct the timestamp of the slave timestamp counter connected to the timestamp counter.
- this method can alleviate the problem of inaccurate time information transmission between cross-service subracks in the prior art, and improve cross-service subracks The accuracy of the time information passed between.
- the time correction device may further include: a second FIFO The memory 53 and the delete idle frame module 54.
- the time correction device in the embodiment of the present application is located on the main side.
- the second FIFO memory 53 is connected to the inserted custom code module 52 for storing the marked message.
- the delete idle frame module 54 is connected to the second message processing module 51 and the second FIFO memory 53 respectively, and is used to obtain the second waterline data of the second FIFO memory 53, if the second If the waterline data is greater than the second waterline threshold, the idle frame is deleted from the marked message.
- the inserting custom code module 52 is also used to output the marked message with the idle frames deleted.
- the time correction device may further include: an encoding module 55 and a second Optical port processing module 56.
- the time correction device in the embodiment of the present application is located on the main side.
- the encoding module 55 is connected to the inserted custom code module 52 and the second optical port processing module 56 respectively, and is used to encode the marked messages with idle frames deleted. After the encoding, the time-of-day message is sent to the second optical port processing module 56.
- the encoding module 55 may be an 8B/10B encoding module.
- the second optical port processing module 56 is configured to receive the encoded time synchronization message sent by the encoding module 55, and output the encoded time synchronization message using parallel communication.
- the second optical port processing module 56 may adopt an IP (Internet Protocol) core to perform serial/parallel communication mode conversion and communicate with the optical module.
- IP Internet Protocol
- a time correction system in the embodiment of the present application includes: a time correction device on the slave side and a time correction device on the master side.
- the time correction system may include: a time correction device 61 and a time correction device 62.
- the time correction device 61 may be a time correction device located on the main side.
- the time correction device 62 may be a time correction device on the slave side.
- the time correction system may include: a time correction device 71, a time correction device 72, a time correction device 73 and a time correction device 74.
- the time correction device 71 is connected to the time correction device 72, the time correction device 73, and the time correction device 74, respectively.
- the time correction device 71 may be a time correction device located on the main side.
- the time correction device 72, the time correction device 73, and the time correction device 74 may be time correction devices on the slave side, respectively.
- the server may include: a processor 801, a memory 802, a communication interface 803, and a bus 804.
- the processor 801, the memory 802, and the communication interface 803 communicate with each other through the bus 804.
- the communication interface 803 is used for information transmission between external devices.
- the external device may be user equipment UE.
- the processor 801 is configured to call program instructions in the memory 802 to execute the steps of the time correction method described in any one of the foregoing embodiments.
- the processor 801 is used to execute a time correction program to achieve the following steps: acquiring a first pair of time messages, the first pair of time messages carrying a time stamp and a preset encoding; recording and detection A first timestamp corresponding to the moment of the preset encoding, and deleting the preset encoding in the first pair of time messages to obtain an original time stamp; extracting the time stamp in the original time stamp Using the time stamp and the first time stamp to correct the time stamp of the time stamp counter so that the time stamp of the time stamp counter and the time stamp of the time stamp counter that sent the first pair of time messages are at The value at the same moment is the same.
- the processor 801 is used to execute a time correction program to implement the following steps: when the timestamp counter is cleared at the second level, a second time stamp including a time corresponding to the timestamp reset time of the timestamp counter is generated A second pair of time messages; insert a preset code into the second pair of time messages to obtain a marked message; and output the marked message.
- a computer-readable storage medium in an embodiment of the present application is described in detail.
- the computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to execute any of the above The steps of the time correction method according to an embodiment.
- the computer-readable storage medium may store one or more computer instructions.
- the computer-readable storage medium may include volatile memory, such as random access memory; the computer-readable storage medium may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state hard disk;
- the computer-readable storage medium may also include a combination of the aforementioned types of memory.
- the computer instruction causes the computer to perform the following steps: obtain a first pair of time messages, the first pair of time messages carrying a time stamp and a preset code; recording and detecting the preset code The first timestamp corresponding to the moment of time, and deleting the preset code in the first pair of time-of-day messages to obtain the original time-of-day message; extracting the time-of-day timestamp in the original time-of-day message; using the pair The timestamp and the first timestamp, correct the timestamp of the timestamp counter so that the timestamp of the timestamp counter and the timestamp of the timestamp counter sending the first pair of time messages have the same value at the same time .
- the computer instruction causes the computer to perform the following steps: when the time stamp counter is cleared at the second level, a second pair of time stamps including a second time stamp corresponding to the time at which the time stamp counter is cleared at the second level is generated Text; insert a preset code into the second pair of time messages to get the marked message; output the marked message.
- a computer program product includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions.
- the program instructions When executed by a computer, the computer is caused to execute the method in any of the above method embodiments.
- the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof.
- the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSPDevice, DSPD), programmable logic Device (Programmable Logic Device, PLD), Field-Programmable Gate Array (FPGA), general-purpose processor, controller, microcontroller, microprocessor, others used to perform the functions described in this application Electronic unit or its combination.
- ASIC Application Specific Integrated Circuits
- DSP Digital Signal Processing
- DSPDevice digital signal processing device
- PLD programmable logic Device
- FPGA Field-Programmable Gate Array
- the techniques described herein may be implemented through units that perform the functions described herein.
- the software codes can be stored in memory and executed by the processor.
- the memory may be implemented in the processor or external to the processor.
- the disclosed device and method may be implemented in other ways.
- the device embodiments described above are only schematic.
- the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
- the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical, or other forms.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
- the technical solutions of the embodiments of the present invention may essentially be a part that contributes to the existing technology or a part of the technical solution may be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
- the foregoing storage media include various media that can store program codes, such as a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
- Electric Clocks (AREA)
Abstract
The present application relates to a time correction method, device, system, and storage medium, the method comprises: acquiring a first time setting message, the first time setting message carrying a time setting timestamp and a preset code; recording a first timestamp corresponding to the moment when the preset code is detected, and deleting the preset code in the first time setting message to obtain the original time setting message; extracting the time setting timestamp in the original time setting message; using the time setting timestamp and the first timestamp to correct the timestamp of the timestamp counter, so that the timestamp of the timestamp counter and the timestamp of the timestamp counter sending the first time setting message have the same value at the same moment.
Description
交叉引用cross reference
本发明要求在2018年12月29日提交至中国专利局、申请号为201811641992.0、发明名称为“一种时间校正方法、装置、系统及存储介质”的中国专利申请的优先权,该申请的全部内容通过引用结合在本发明中。The present invention requires the priority of the Chinese patent application filed on December 29, 2018 in the Chinese Patent Office with the application number 201811641992.0 and the invention titled "a time correction method, device, system and storage medium". The content is incorporated by reference in the present invention.
本申请涉及通信领域,尤其涉及一种时间校正方法、装置、系统及存储介质。This application relates to the field of communications, and in particular to a time correction method, device, system, and storage medium.
随着运营商对子架交叉容量需求的进一步提升,运营商对跨业务子架间的高精度时间传递的需求越来越强烈。在传统单个子架中,主控板通过相同的1pps背板走线将时间信息传递到每个业务板中。在跨业务子架交叉的环境下,为了确保各业务子架间的业务交叉互通及各业务子架的本地时戳相同,跨子架间的高精度时间信息的传递,是必须实现的一个功能。As operators' requirements for cross-subrack cross-capacity further increase, operators' demands for high-precision time transfer between service subracks are becoming stronger. In a traditional single subrack, the main control board passes the time information to each service board through the same 1pps backplane trace. In the cross-service sub-rack environment, in order to ensure the cross-communication between the service sub-racks and the local time stamp of each service sub-rack is the same, the transmission of high-precision time information between the sub-racks is a function that must be implemented .
为了满足跨业务子架间的高精度时间传递的需求,在一些情形下,将时戳信息添加到以太网报文中,利用交换芯片发送以太网报文。但是,交换芯片存在转发延时比较大,路径延时不稳定的问题。因此,会导致跨业务子架间传递的时间信息不准确的问题。In order to meet the requirement of high-precision time transfer between service subracks, in some cases, timestamp information is added to the Ethernet message, and the switch chip is used to send the Ethernet message. However, the switching chip has the problems of relatively large forwarding delay and unstable path delay. Therefore, it will cause the problem of inaccurate time information transmitted between service subracks.
发明内容Summary of the invention
本申请提供了一种时间校正方法、装置、系统及存储介质。This application provides a time correction method, device, system, and storage medium.
第一方面,本申请实施例提供了一种时间校正方法,包括:获取第一对时报文,所述第一对时报文携带有对时时间戳和预设编码;记录与检测到所述预设编码的时刻对应的第一时间戳,及删除所述第一对时报文中的所述预设编码,得到原始对时报文;提取所述原始对时报文中的所述对时时间戳;利用所述对时时间戳和所述第一时间戳,校正时间戳计数器的时间戳,使得所述时间戳计数器的时间戳和发送所述第一对时报文的时间戳计数器的时间戳在同一时刻的值相同。In a first aspect, an embodiment of the present application provides a time correction method, including: acquiring a first pair of time messages, the first pair of time messages carrying a time stamp and a preset code; recording and detecting the pre Set a first time stamp corresponding to the encoded moment, and delete the preset code in the first pair of time messages to obtain the original time message; extract the time stamp in the original time message; use the The time stamp and the first time stamp correct the time stamp of the time stamp counter so that the time stamp of the time stamp counter and the time stamp of the time stamp counter that sent the first pair of time messages are at the same time The value is the same.
第二方面,本申请实施例提供了一种时间校正方法,包括:在时间戳计 数器秒级清零时,生成包括与所述时间戳计数器秒级清零时刻对应的第二时间戳的第二对时报文;插入预设编码至所述第二对时报文中,得到已标示报文;输出所述已标示报文。In a second aspect, an embodiment of the present application provides a time correction method, including: when a timestamp counter is cleared at the second level, generating a second time stamp including a second timestamp corresponding to the timestamp reset time of the timestamp counter at the second level Timed message; insert a preset code into the second timed message to obtain the marked message; output the marked message.
第三方面,本申请实施例提供了一种时间校正装置,包括:第一报文处理模块和删除自定义码模块;所述删除自定义码模块和所述第一报文处理模块连接,用于获取第一对时报文,所述第一对时报文携带有对时时间戳和预设编码,记录与检测到所述预设编码的时刻对应的第一时间戳,及删除所述第一对时报文中的所述预设编码,得到原始对时报文;所述第一报文处理模块用于提取所述原始对时报文中的所述对时时间戳,利用所述对时时间戳和所述第一时间戳,校正时间戳计数器的时间戳,使得所述时间戳计数器的时间戳和发送所述第一对时报文的时间戳计数器的时间戳在同一时刻的值相同。In a third aspect, an embodiment of the present application provides a time correction device, including: a first message processing module and a user-defined code deletion module; the delete user-defined code module is connected to the first message processing module to To obtain a first pair of time messages, the first pair of time messages carries a time stamp and a preset code, records a first time stamp corresponding to the moment when the preset code is detected, and deletes the first The preset encoding in the time synchronization message to obtain an original time synchronization message; the first message processing module is used to extract the time synchronization time stamp in the original time synchronization message, and use the time synchronization time stamp and all Said first timestamp, correcting the timestamp of the timestamp counter so that the timestamp of the timestamp counter and the timestamp of the timestamp counter sending the first pair of time messages have the same value at the same time.
第四方面,本申请实施例提供了一种时间校正装置,包括:第二报文处理模块和插入自定义码模块;所述第二报文处理模块用于在时间戳计数器秒级清零时,生成包括与所述时间戳计数器秒级清零时刻对应的第二时间戳的第二对时报文,发送所述第二对时报文给所述插入自定义码模块;所述插入自定义码模块用于接收所述第二报文处理模块发送的所述第二对时报文,插入预设编码至所述第二对时报文中,得到已标示报文,输出所述已标示报文。According to a fourth aspect, an embodiment of the present application provides a time correction device, including: a second message processing module and a module for inserting a custom code; the second message processing module is used to clear the timestamp counter at the second level , Generate a second pair of time messages including a second time stamp corresponding to the second time clearing time of the time stamp counter, and send the second pair of time messages to the module for inserting a custom code; the inserting a custom code The module is configured to receive the second pair of time messages sent by the second message processing module, insert a preset code into the second pair of time messages, obtain a marked message, and output the marked message.
第五方面,本申请实施例提供了一种时间校正系统,所述系统包括:如第三方面任一项所述的时间校正装置与如第四方面任一项所述的时间校正装置。According to a fifth aspect, an embodiment of the present application provides a time correction system. The system includes the time correction device according to any one of the third aspect and the time correction device according to any one of the fourth aspect.
第六方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行如第一方面和第二方面任一项所述方法的步骤。According to a sixth aspect, an embodiment of the present application provides a computer-readable storage medium that stores computer instructions, and the computer instructions cause the computer to perform any one of the first aspect and the second aspect Describe the steps of the method.
第七方面,本申请实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行以上各个方面所述的方法。According to a seventh aspect, an embodiment of the present application provides a computer program product. The computer program product includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions When executed by a computer, the computer is caused to perform the methods described in the above aspects.
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发 明的实施例,并与说明书一起用于解释本发明的原理。The drawings herein are incorporated in and constitute a part of the specification, show embodiments consistent with the invention, and are used to explain the principles of the invention together with the specification.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required in the embodiments or the description of the prior art. Obviously, for those of ordinary skill in the art In other words, other drawings can be obtained based on these drawings without paying any creative labor.
图1为本申请实施例提供的业务板的第一种连接示意图;1 is a schematic diagram of a first connection of a service board provided by an embodiment of this application;
图2为本申请实施例提供的业务板的第二种连接示意图;2 is a schematic diagram of a second connection of a service board provided by an embodiment of this application;
图3为本申请实施例提供的时间校正方法的流程图;3 is a flowchart of a time correction method provided by an embodiment of this application;
图4为本申请实施例提供的时间校正装置的第一种结构示意图;4 is a first schematic structural diagram of a time correction device provided by an embodiment of the present application;
图5为本申请实施例提供的时间校正装置的第二种结构示意图;FIG. 5 is a second schematic structural diagram of a time correction device provided by an embodiment of this application;
图6为本申请实施例提供的时间校正系统的第一种结构示意图;6 is a first schematic structural diagram of a time correction system provided by an embodiment of the present application;
图7为本申请实施例提供的时间校正系统的第二种结构示意图;7 is a second schematic structural diagram of a time correction system provided by an embodiment of the present application;
图8为本申请实施例提供的服务器的结构示意图。FIG. 8 is a schematic structural diagram of a server provided by an embodiment of the present application.
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without making creative efforts fall within the protection scope of the present application.
本申请提供一种时间校正方法、装置、系统及存储介质,可以缓解现有技术中存在的跨业务子架间传递的时间信息不准确的问题,提高跨业务子架间传递的时间信息的准确性。The present application provides a time correction method, device, system and storage medium, which can alleviate the problem of inaccurate time information transmitted between service subracks in the prior art, and improve the accuracy of time information transmitted between service subracks Sex.
首先,对本申请实施例中的一种时间校正方法进行详细介绍。First, a time correction method in the embodiments of the present application will be described in detail.
如图1所示,第一业务板11可以通过接口分别与第二业务板12、第三业务板13和第四业务板14连接。接口可以为GE接口(Gigabit Ethernet,千兆以太网接口)。其中,第二业务板12、第三业务板13和第四业务板14可以位于同一个子架中,第二业务板12、第三业务板13和第四业务板14也可以位于不同的子架中。示例性的,第一业务板11可以位于第一子架中,第二业务板12、第三业务板13和第四业务板14可以均位于第二子架中。或者,第一业务板11可以位于第一子架中,第二业务板12可以位于第二子架中,第三业务板13可以位于第三子架中,第四业务板14可以位于第四子架中。 或者,第一业务板11可以位于第一子架中,第二业务板12和第三业务板13可以均位于第二子架中,第四业务板14可以位于第三子架中。这只是示例性的说明。若第一业务板11通过接口分别与第二业务板12、第三业务板13和第四业务板14连接,那么第一业务板11为主侧,第二业务板12、第三业务板13和第四业务板14均为从侧,第一业务板11分别发送时间信息给第二业务板12、第三业务板13和第四业务板14,第二业务板12、第三业务板13和第四业务板14分别利用时间信息校正各自的时间戳计数器的时间戳。As shown in FIG. 1, the first service board 11 may be connected to the second service board 12, the third service board 13, and the fourth service board 14 through interfaces, respectively. The interface may be a GE interface (Gigabit Ethernet, Gigabit Ethernet interface). Among them, the second business board 12, the third business board 13 and the fourth business board 14 may be located in the same subrack, and the second business board 12, the third business board 13 and the fourth business board 14 may also be located in different subracks in. Exemplarily, the first service board 11 may be located in the first subrack, and the second service board 12, the third service board 13, and the fourth service board 14 may all be located in the second subrack. Alternatively, the first service board 11 may be located in the first subrack, the second service board 12 may be located in the second subrack, the third service board 13 may be located in the third subrack, and the fourth service board 14 may be located in the fourth In the subrack. Alternatively, the first service board 11 may be located in the first subrack, the second service board 12 and the third service board 13 may both be located in the second subrack, and the fourth service board 14 may be located in the third subrack. This is just an illustration. If the first business board 11 is connected to the second business board 12, the third business board 13, and the fourth business board 14 through the interface, then the first business board 11 is the main side, and the second business board 12, the third business board 13 Both the fourth service board 14 and the first service board 14 send time information to the second service board 12, the third service board 13, the fourth service board 14, the second service board 12, and the third service board 13 The fourth service board 14 uses the time information to correct the time stamps of the respective time stamp counters.
如图2所示,A业务板21和B业务板22连接,A业务板21和B业务板22之间的主从关系是可配的,若A业务板21为主侧,则B业务板22为从侧,A业务板21发送时间信息给B业务板22,B业务板22利用时间信息校正自己的时间戳计数器的时间戳。若B业务板22为主侧,则A业务板21为从侧,B业务板22发送时间信息给A业务板21,A业务板21利用时间信息校正自己的时间戳计数器的时间戳。As shown in FIG. 2, the A business board 21 and the B business board 22 are connected. The master-slave relationship between the A business board 21 and the B business board 22 is configurable. If the A business board 21 is the main side, the B business board 21 22 is the slave side, the A service board 21 sends time information to the B service board 22, and the B service board 22 uses the time information to correct the time stamp of its own time stamp counter. If the B business board 22 is the master side, the A business board 21 is the slave side, and the B business board 22 sends time information to the A business board 21, and the A business board 21 uses the time information to correct the time stamp of its own time stamp counter.
本申请实施例提供的时间校正方法可以应用于位于从侧的业务板或装置。The time correction method provided by the embodiment of the present application may be applied to the service board or device on the slave side.
如图3所示,时间校正方法可以包括步骤S101至步骤S104:As shown in FIG. 3, the time correction method may include steps S101 to S104:
S101,获取第一对时报文,所述第一对时报文携带有对时时间戳和预设编码。S101. Acquire a first pair of time messages, where the first pair of time messages carry a time stamp and a preset code.
其中,第一对时报文可以为位于主侧的业务板或装置发送的。对时时间戳可以为位于主侧的业务板或装置内的时间戳计数器秒级清零时记录的。The first pair of time messages may be sent by a service board or device on the main side. The time-stamping time stamp may be recorded when the time stamp counter in the service board or device on the main side is cleared in seconds.
其中,预设编码可以包括:一个自定义K码和一个自定义D码。示例性的,自定义K码可以为K28.5。自定义D码可以为D5.6。Among them, the preset encoding may include: a custom K code and a custom D code. Exemplarily, the custom K code may be K28.5. The custom D code can be D5.6.
S102,记录与检测到所述预设编码的时刻对应的第一时间戳,及删除所述第一对时报文中的所述预设编码,得到原始对时报文。S102: Record a first time stamp corresponding to the moment when the preset encoding is detected, and delete the preset encoding in the first pair of time-of-day messages to obtain the original time-of-day message.
S103,提取所述原始对时报文中的所述对时时间戳。S103: Extract the synchronization time stamp in the original synchronization message.
S104,利用所述对时时间戳和所述第一时间戳,校正时间戳计数器的时间戳,使得所述时间戳计数器的时间戳和发送所述第一对时报文的时间戳计数器的时间戳在同一时刻的值相同。S104, using the time stamp and the first time stamp to correct the time stamp of the time stamp counter so that the time stamp of the time stamp counter and the time stamp of the time stamp counter that sent the first pair of time messages The values are the same at the same time.
具体的,获取对时时间戳和第一时间戳之间的差值,若差值的绝对值大于绝对值阈值,则更新本地的时间戳计数器的时间戳。更新公式可以为:Specifically, the difference between the time stamp and the first time stamp is obtained. If the absolute value of the difference is greater than the absolute value threshold, the time stamp of the local time stamp counter is updated. The update formula can be:
t=t
3+t
1-t
2
t=t 3 +t 1 -t 2
其中,t为更新后的本地的时间戳计数器的时间戳,t
3为与更新时刻对应的本地的时间戳计数器的时间戳,t
1为对时时间戳,t
2为第一时间戳。
Where t is the time stamp of the updated local time stamp counter, t 3 is the time stamp of the local time stamp counter corresponding to the update time, t 1 is the time stamp, and t 2 is the first time stamp.
更进一步的,绝对值阈值可以设置为16ns。Furthermore, the absolute threshold can be set to 16ns.
本申请实施例提供一种时间校正方法,该方法包括:获取第一对时报文,所述第一对时报文携带有对时时间戳和预设编码;记录与检测到所述预设编码的时刻对应的第一时间戳,及删除所述第一对时报文中的所述预设编码,得到原始对时报文;提取所述原始对时报文中的所述对时时间戳;利用所述对时时间戳和所述第一时间戳,校正时间戳计数器的时间戳,使得所述时间戳计数器的时间戳和发送所述第一对时报文的时间戳计数器的时间戳在同一时刻的值相同,所以,本申请提供的时间校正方法可以利用所述对时时间戳和所述第一时间戳,校正时间戳计数器的时间戳,使得所述时间戳计数器的时间戳和发送所述第一对时报文的时间戳计数器的时间戳在同一时刻的值相同,即使交换芯片存在转发延时比较大,路径延时不稳定的问题,最后本地时间戳计数器的时间戳也会被校正,因此,该方法可以缓解现有技术中存在的跨业务子架间传递的时间信息不准确的问题,提高跨业务子架间传递的时间信息的准确性。An embodiment of the present application provides a time correction method. The method includes: acquiring a first pair of time messages, the first pair of time messages carrying a time stamp and a preset code; recording and detecting the preset code A first timestamp corresponding to the time, and deleting the preset code in the first pair of time-of-day messages to obtain an original time-of-day message; extracting the time-of-day timestamp in the original time-of-day message; using the time-of-day The timestamp and the first timestamp, correct the timestamp of the timestamp counter so that the timestamp of the timestamp counter and the timestamp of the timestamp counter sending the first pair of time messages have the same value at the same time, Therefore, the time correction method provided by the present application can use the time stamp and the first time stamp to correct the time stamp of the time stamp counter so that the time stamp of the time stamp counter and the first pair of time reports are sent The timestamp of the text timestamp counter has the same value at the same time. Even if the switching chip has a large forward delay and the path delay is unstable, the timestamp of the local timestamp counter will be corrected. Therefore, this method The problem of inaccurate time information transmitted between service subracks in the prior art can be alleviated, and the accuracy of time information transmitted between service subracks can be improved.
在时间校正的过程中,可能存在要删除第一对时报文中的预设编码的情况,在删除预设编码的过程中,可能会存在FIFO存储器的两端吞吐量不一致的情况,使得FIFO存储器的水线变低,因此,可能会降低数据传输的速度和稳定性,为了解决这个问题,在本申请的又一实施例中,在前述步骤S101至步骤S104的实施例的基础上,步骤S103可以包括步骤S1031至步骤S1033:S1031,获取第一先进先出FIFO存储器的第一水线数据,所述第一FIFO存储器用于存储所述第一时间戳和所述原始对时报文。In the process of time correction, there may be a case where the preset code in the first pair of time messages is to be deleted. In the process of deleting the preset code, there may be a situation where the throughput of both ends of the FIFO memory is inconsistent, making the FIFO memory The waterline becomes lower, therefore, the speed and stability of data transmission may be reduced. In order to solve this problem, in another embodiment of the present application, on the basis of the foregoing embodiments of steps S101 to S104, step S103 may be Including step S1031 to step S1033: S1031, the first waterline data of the first first-in first-out FIFO memory is obtained, and the first FIFO memory is used to store the first time stamp and the original time synchronization message.
S1032,若所述第一水线数据小于第一水线阈值,则在由所述第一时间戳和所述原始对时报文组成的数据流中插入空闲帧。S1032: If the first waterline data is less than the first waterline threshold, insert an idle frame in the data stream composed of the first time stamp and the original time synchronization message.
其中,第一水线阈值可以根据实际需要进行设置。每次插入的空闲帧的数量也可以根据实际需要进行设置。The first waterline threshold can be set according to actual needs. The number of idle frames inserted each time can also be set according to actual needs.
进一步的,步骤S1032也可以为:若所述第一水线数据小于第一水线阈值,且在由第一时间戳和原始对时报文组成的数据流中检测到连续的空闲帧 时,则在数据流中插入空闲帧。Further, step S1032 may also be: if the first waterline data is less than the first waterline threshold and a continuous idle frame is detected in the data stream composed of the first timestamp and the original time synchronization message, then Insert idle frames in the data stream.
S1033,从插入空闲帧的数据流中,提取所述对时时间戳。S1033: Extract the synchronization timestamp from the data stream inserted into the idle frame.
本申请实施例中,在前述步骤S101至步骤S105的实施例的基础上,所述提取所述原始对时报文中的所述对时时间戳,包括:获取第一先进先出FIFO存储器的第一水线数据,所述第一FIFO存储器用于存储所述第一时间戳和所述原始对时报文;若所述第一水线数据小于第一水线阈值,则在由所述第一时间戳和所述原始对时报文组成的数据流中插入空闲帧;从插入空闲帧的数据流中,提取所述对时时间戳。所以,可以避免由于FIFO存储器的水线变低而导致的降低数据传输的速度和稳定性的问题,达到了保证数据传输的速度和稳定性的技术效果。In the embodiment of the present application, on the basis of the foregoing embodiments from step S101 to step S105, the extracting the time synchronization timestamp in the original time synchronization message includes: obtaining the first FIFO memory first Waterline data, the first FIFO memory is used to store the first timestamp and the original time synchronization message; if the first waterline data is less than the first waterline threshold, then the first time Insert a free frame into the data stream composed of the stamp and the original time synchronization message; extract the time synchronization time stamp from the data stream inserted into the idle frame. Therefore, the problem of lowering the speed and stability of data transmission due to the lower waterline of the FIFO memory can be avoided, and the technical effect of ensuring the speed and stability of data transmission is achieved.
在本申请的又一实施例中,在前述步骤S1031至步骤S1033的实施例的基础上,时间校正方法还可以包括步骤S11至步骤S14:S11,获取利用并行通信方式传输的报文数据。In yet another embodiment of the present application, on the basis of the foregoing embodiments of steps S1031 to S1033, the time correction method may further include steps S11 to S14: S11 to obtain message data transmitted by parallel communication.
其中,可以利用接口和光模块获取利用并行通信方式传输的报文数据。具体的,接口可以为GE口。Among them, the interface and the optical module can be used to obtain the message data transmitted by the parallel communication method. Specifically, the interface may be a GE port.
S12,将所述报文数据转换成利用串行通信方式传输的字节未对齐报文。S12. Convert the message data into a byte-unaligned message transmitted by serial communication.
S13,对齐所述字节未对齐报文中的字节,得到未解码报文。S13: Align the bytes in the byte-unaligned message to obtain an undecoded message.
具体的,可以利用bit滑动的方法对齐所述字节未对齐报文中的字节。Specifically, the byte sliding method may be used to align the bytes in the byte unaligned message.
S14,对所述未解码报文进行解码,得到所述第一对时报文。S14. Decode the undecoded message to obtain the first pair of time messages.
具体的,可以利用8B/10B编码标准,对所述未解码报文进行8bit到10bit的解码。Specifically, the 8B/10B coding standard may be used to decode the undecoded message from 8 bits to 10 bits.
在本申请的又一实施例中,对本申请实施例中的一种时间校正方法进行详细介绍,本申请实施例提供的时间校正方法可以应用于位于主侧的业务板或装置。时间校正方法可以包括步骤S21至步骤S23:S21,在时间戳计数器秒级清零时,生成包括与所述时间戳计数器秒级清零时刻对应的第二时间戳的第二对时报文。In yet another embodiment of the present application, a time correction method in the embodiment of the present application is described in detail. The time correction method provided in the embodiment of the present application may be applied to a service board or device on the main side. The time correction method may include steps S21 to S23: S21, when the timestamp counter is cleared at the second level, a second time-of-day message including a second timestamp corresponding to the second time cleared time of the timestamp counter is generated.
S22,插入预设编码至所述第二对时报文中,得到已标示报文。S22. Insert a preset code into the second pair of time messages to obtain the marked message.
其中,预设编码可以包括:一个自定义K码和一个自定义D码。示例性的,自定义K码可以为K28.5。自定义D码可以为D5.6。Among them, the preset encoding may include: a custom K code and a custom D code. Exemplarily, the custom K code may be K28.5. The custom D code can be D5.6.
S23,输出所述已标示报文。S23, output the marked message.
本申请实施例提供一种时间校正方法,该方法包括:在时间戳计数器秒级清零时,生成包括与所述时间戳计数器秒级清零时刻对应的第二时间戳的第二对时报文;插入预设编码至所述第二对时报文中,得到已标示报文;输出所述已标示报文,所以,可以利用已标示报文对与时间戳计数器连接的从属时间戳计数器的时间戳进行校正,即使连接时间戳计数器与从属时间戳计数器的交换芯片存在转发延时比较大,路径延时不稳定的问题,最后从属时间戳计数器的时间戳也会被校正,因此,该方法可以缓解现有技术中存在的跨业务子架间传递的时间信息不准确的问题,提高跨业务子架间传递的时间信息的准确性。An embodiment of the present application provides a time correction method. The method includes: when a timestamp counter is cleared at the second level, generating a second time-of-day message including a second timestamp corresponding to the second time cleared time of the timestamp counter ; Insert the preset code into the second pair of time messages to get the marked message; output the marked message, so you can use the marked message to the time stamp of the slave time stamp counter connected to the time stamp counter Correction, even if the switching chip connecting the timestamp counter and the slave timestamp counter has a problem that the forwarding delay is relatively large and the path delay is unstable, the timestamp of the slave timestamp counter will be corrected finally, so this method can alleviate The problem of inaccurate time information transmitted between service subracks in the prior art improves the accuracy of time information transmitted between service subracks.
在时间校正的过程中,插入预设编码至第二对时报文中,在插入预设编码的过程中,可能会存在FIFO存储器的两端吞吐量不一致的情况,使得FIFO存储器的水线变高,因此,可能会降低数据传输的速度和稳定性,为了解决这个问题,在本申请的又一实施例中,在前述步骤S21至步骤S23的实施例的基础上,步骤S23可以包括步骤S231至步骤S233:S231,获取第二FIFO存储器的第二水线数据,所述第二FIFO存储器用于存储所述已标示报文。In the process of time correction, the preset code is inserted into the second pair of time messages. During the process of inserting the preset code, there may be a situation where the throughput of both ends of the FIFO memory is inconsistent, making the FIFO memory waterline higher. Therefore, the speed and stability of data transmission may be reduced. In order to solve this problem, in another embodiment of the present application, on the basis of the foregoing embodiments of step S21 to step S23, step S23 may include step S231 to step S233: S231, acquiring second waterline data of a second FIFO memory, where the second FIFO memory is used to store the marked message.
S232,若所述第二水线数据大于第二水线阈值,则从所述已标示报文中删除空闲帧。S232: If the second waterline data is greater than the second waterline threshold, delete idle frames from the marked message.
其中,第二水线阈值可以根据实际需要进行设置。每次删除的空闲帧的数量也可以根据实际需要进行设置。示例性的,每次删除的空闲帧的数量可以设置为一个。The second waterline threshold can be set according to actual needs. The number of idle frames deleted each time can also be set according to actual needs. Exemplarily, the number of idle frames deleted each time may be set to one.
进一步的,步骤S232也可以为:若所述第二水线数据大于第二水线阈值,且在已标示报文中检测到连续的空闲帧,则从所述已标示报文中删除空闲帧。Further, step S232 may also be: if the second waterline data is greater than the second waterline threshold and continuous idle frames are detected in the marked message, the idle frame is deleted from the marked message .
S233,将删除空闲帧的已标示报文输出。S233, the marked packet output of the idle frame will be deleted.
本申请实施例中,在前述步骤S21至步骤S23的实施例的基础上,所述输出所述已标示报文,包括:获取第二FIFO存储器的第二水线数据,所述第二FIFO存储器用于存储所述已标示报文;若所述第二水线数据大于第二水线阈值,则从所述已标示报文中删除空闲帧;将删除空闲帧的已标示报文输出。所以,可以避免由于FIFO存储器的水线变高而导致的降低数据传输的速度和稳定性的问题,达到了保证数据传输的速度和稳定性的技术效果。In the embodiment of the present application, on the basis of the foregoing embodiments from step S21 to step S23, the outputting the marked message includes: acquiring the second waterline data of the second FIFO memory, and the second FIFO memory It is used to store the marked message; if the second waterline data is greater than the second waterline threshold, delete the idle frame from the marked message; delete the idle frame and output the marked message. Therefore, the problem of reducing the speed and stability of data transmission due to the increased waterline of the FIFO memory can be avoided, and the technical effect of ensuring the speed and stability of data transmission is achieved.
在本申请的又一实施例中,在前述步骤S231至步骤S233的实施例的基础上,步骤S233可以包括步骤S2331至步骤S2332:S2331,对删除空闲帧的已标示报文进行编码,得到编码后对时报文。In another embodiment of the present application, on the basis of the foregoing embodiments of steps S231 to S233, step S233 may include steps S2331 to S2332: S2331, encoding the marked messages for deleting idle frames to obtain the encoding After the time message.
其中,可以利用8B/10B编码标准,对删除空闲帧的已标示报文进行8bit到10bit的编码。Among them, the 8B/10B coding standard can be used to encode 8-bit to 10-bit messages for marked messages with idle frames deleted.
S2332,利用并行通信方式输出所述编码后对时报文。S2332. Use the parallel communication mode to output the encoded time-of-day message.
其中,可以利用接口和光模块,按照并行通信方式输出所述编码后对时报文。Wherein, the interface and the optical module can be used to output the encoded time synchronization message according to the parallel communication mode.
在本申请的又一实施例中,对本申请实施例中的一种位于从侧的时间校正装置进行详细介绍,如图4所示,时间校正装置包括:第一报文处理模块41和删除自定义码模块42。In yet another embodiment of the present application, a time correction device on the slave side in the embodiment of the present application is described in detail. As shown in FIG. 4, the time correction device includes: a first message processing module 41 and a Definition code module 42.
所述删除自定义码模块42和所述第一报文处理模块41连接,用于获取第一对时报文,所述第一对时报文携带有对时时间戳和预设编码,记录与检测到所述预设编码的时刻对应的第一时间戳,及删除所述第一对时报文中的所述预设编码,得到原始对时报文。The delete custom code module 42 is connected to the first message processing module 41, and is used to obtain a first pair of time messages. The first pair of time messages carries a time stamp and a preset code for recording and detection. The first timestamp corresponding to the moment of the preset encoding, and deleting the preset encoding in the first pair of time-of-day messages to obtain the original time-of-day message.
其中,所述删除自定义码模块42还用于若检测到所述第一对时报文中包含有预设编码,则生成第一脉冲信号,发送第一脉冲信号给第一报文处理模块41。Wherein, the delete custom code module 42 is further configured to generate a first pulse signal and send the first pulse signal to the first message processing module 41 if it is detected that the first pair of time messages contains a preset code.
所述第一报文处理模块41用于提取所述原始对时报文中的所述对时时间戳,利用所述对时时间戳和所述第一时间戳,校正时间戳计数器的时间戳,使得所述时间戳计数器的时间戳和发送所述第一对时报文的时间戳计数器的时间戳在同一时刻的值相同。The first message processing module 41 is used to extract the time stamp in the original time stamp message, and use the time stamp and the first time stamp to correct the time stamp of the time stamp counter, so that The time stamp of the time stamp counter and the time stamp of the time stamp counter that sent the first pair of time messages have the same value at the same time.
其中,第一报文处理模块41还用于接收删除自定义码模块42发送的第一脉冲信号。若接收到第一脉冲信号,则将第一时间戳确定为有效数据。若第一时间戳为有效数据,则利用第一时间戳校正时间戳计数器的时间戳。这样,可以提高被校正时间戳计数器的时间戳的准确性和有效性。The first message processing module 41 is also used to receive the first pulse signal sent by the delete custom code module 42. If the first pulse signal is received, the first time stamp is determined as valid data. If the first time stamp is valid data, the first time stamp is used to correct the time stamp of the time stamp counter. In this way, the accuracy and validity of the time stamp of the corrected time stamp counter can be improved.
本申请实施例提供一种时间校正装置,时间校正装置包括:第一报文处理模块41和删除自定义码模块42。所述删除自定义码模块42和所述第一报文处理模块41连接,用于获取第一对时报文,所述第一对时报文携带有对时时间戳和预设编码,记录与检测到所述预设编码的时刻对应的第一时间戳,及删除所述第一对时报文中的所述预设编码,得到原始对时报文。所述第一 报文处理模块41用于提取所述原始对时报文中的所述对时时间戳,利用所述对时时间戳和所述第一时间戳,校正时间戳计数器的时间戳,使得所述时间戳计数器的时间戳和发送所述第一对时报文的时间戳计数器的时间戳在同一时刻的值相同,所以,本申请实施例提供的时间校正装置可以利用所述对时时间戳和所述第一时间戳,校正时间戳计数器的时间戳,使得所述时间戳计数器的时间戳和发送所述第一对时报文的时间戳计数器的时间戳在同一时刻的值相同,即使交换芯片存在转发延时比较大,路径延时不稳定的问题,最后本地时间戳计数器的时间戳也会被校正,因此,可以缓解现有技术中存在的跨业务子架间传递的时间信息不准确的问题,提高跨业务子架间传递的时间信息的准确性。An embodiment of the present application provides a time correction device. The time correction device includes a first message processing module 41 and a custom code deletion module 42. The delete custom code module 42 is connected to the first message processing module 41, and is used to obtain a first pair of time messages. The first pair of time messages carries a time stamp and a preset code for recording and detection. The first timestamp corresponding to the moment of the preset encoding, and deleting the preset encoding in the first pair of time-of-day messages to obtain the original time-of-day message. The first message processing module 41 is used to extract the time stamp in the original time stamp message, and use the time stamp and the first time stamp to correct the time stamp of the time stamp counter, so that The timestamp of the timestamp counter and the timestamp of the timestamp counter that sent the first pair of time messages have the same value at the same time. Therefore, the time correction device provided by the embodiment of the present application can use the timestamp And the first timestamp, correct the timestamp of the timestamp counter so that the timestamp of the timestamp counter and the timestamp counter of the timestamp counter sending the first pair of time messages have the same value at the same time, even if they are exchanged The chip has the problems that the forwarding delay is relatively large and the path delay is unstable. Finally, the timestamp of the local timestamp counter is also corrected. Therefore, the inaccurate time information transmitted between service subracks in the prior art can be alleviated To improve the accuracy of time information transmitted between business subracks.
在本申请的又一实施例中,如图4所示,在包括第一报文处理模块41和删除自定义码模块42的时间校正装置的基础上,时间校正装置还可以包括:第一FIFO存储器43和插入空闲帧模块44。In yet another embodiment of the present application, as shown in FIG. 4, on the basis of the time correction device including the first message processing module 41 and the custom code deletion module 42, the time correction device may further include: a first FIFO The memory 43 and the insert idle frame module 44.
其中,本申请实施例中的时间校正装置位于从侧。Among them, the time correction device in the embodiment of the present application is located on the slave side.
所述第一FIFO存储器43分别与所述插入空闲帧模块44和所述第一报文处理模块41连接,用于存储所述第一时间戳和所述原始对时报文。The first FIFO memory 43 is respectively connected to the insert idle frame module 44 and the first message processing module 41, and is used to store the first time stamp and the original time synchronization message.
所述插入空闲帧模块44和所述删除自定义码模块42连接,用于获取所述第一FIFO存储器的第一水线数据,若所述第一水线数据小于第一水线阈值,则在由所述第一时间戳和所述原始对时报文组成的数据流中插入空闲帧。The insert idle frame module 44 and the delete custom code module 42 are connected to obtain the first waterline data of the first FIFO memory, if the first waterline data is less than the first waterline threshold, then Insert an idle frame in the data stream composed of the first time stamp and the original time synchronization message.
所述第一报文处理模块41还用于从插入空闲帧的数据流中,提取所述对时时间戳。The first message processing module 41 is also used to extract the time-stamping time stamp from the data stream inserted into the idle frame.
在本申请的又一实施例中,如图4所示,在包括第一FIFO存储器43和插入空闲帧模块44的时间校正装置的基础上,时间校正装置还可以包括:字节对齐模块45、解码模块46和第一光口处理模块47。In yet another embodiment of the present application, as shown in FIG. 4, on the basis of the time correction device including the first FIFO memory 43 and the inserted idle frame module 44, the time correction device may further include: a byte alignment module 45, Decoding module 46 and first optical port processing module 47.
其中,本申请实施例中的时间校正装置位于从侧。Among them, the time correction device in the embodiment of the present application is located on the slave side.
所述第一光口处理模块47和所述字节对齐模块45连接,用于获取利用并行通信方式传输的报文数据,将所述报文数据转换成利用串行通信方式传输的字节未对齐报文,将所述字节未对齐报文发送给所述字节对齐模块45。The first optical port processing module 47 and the byte alignment module 45 are connected to obtain message data transmitted by parallel communication, and convert the message data into bytes transmitted by serial communication. Align the message, and send the byte unaligned message to the byte alignment module 45.
其中,第一光口处理模块47可以采用IP核,进行串行/并行通信方式转化,与光模块互通。Among them, the first optical port processing module 47 may adopt an IP core to perform serial/parallel communication mode conversion and communicate with the optical module.
所述字节对齐模块45和所述解码模块46连接,用于接收所述第一光口处理模块47发送的所述字节未对齐报文,对齐所述字节未对齐报文中的字节,得到未解码报文,将所述未解码报文发送给所述解码模块46。The byte alignment module 45 and the decoding module 46 are connected to receive the byte unaligned message sent by the first optical port processing module 47, and align words in the byte unaligned message Section, get the undecoded message, and send the undecoded message to the decoding module 46.
所述解码模块46用于接收所述字节对齐模块45发送的所述未解码报文,对所述未解码报文进行解码,得到所述第一对时报文。The decoding module 46 is configured to receive the undecoded message sent by the byte alignment module 45, decode the undecoded message, and obtain the first pair of time messages.
具体的,解码模块46可以为8B/10B解码模块。Specifically, the decoding module 46 may be an 8B/10B decoding module.
在本申请的又一实施例中,对本申请实施例中的一种时间校正装置进行详细介绍,如图5所示,时间校正装置可以包括:第二报文处理模块51和插入自定义码模块52。In yet another embodiment of the present application, a time correction device in the embodiment of the present application is described in detail. As shown in FIG. 5, the time correction device may include: a second message processing module 51 and a custom code insertion module 52.
其中,本申请实施例中的时间校正装置位于主侧。Among them, the time correction device in the embodiment of the present application is located on the main side.
所述第二报文处理模块51用于在时间戳计数器秒级清零时,生成包括与所述时间戳计数器秒级清零时刻对应的第二时间戳的第二对时报文,发送所述第二对时报文给所述插入自定义码模块52。The second message processing module 51 is used to generate a second pair of time messages including a second time stamp corresponding to the second time of the time stamp counter when the time stamp counter is cleared at the second level, and send the The second pair of time messages is inserted into the custom code module 52.
其中,第二报文处理模块51还用于在时间戳计数器秒级清零时,生成第二脉冲信号,发送第二脉冲信号给插入自定义码模块52。The second message processing module 51 is also used to generate a second pulse signal when the time stamp counter is cleared at the second level, and send the second pulse signal to the custom code module 52.
所述插入自定义码模块52用于接收所述第二报文处理模块51发送的所述第二对时报文,插入预设编码至所述第二对时报文中,得到已标示报文,输出所述已标示报文。The inserting custom code module 52 is used to receive the second pair of time messages sent by the second message processing module 51, insert a preset code into the second pair of time messages, obtain the marked message, and output The marked message.
其中,插入自定义码模块52还用于接收第二报文处理模块51发送的第二脉冲信号,若接收到第二脉冲信号,则插入预设编码至所述第二对时报文中。The custom code insertion module 52 is also used to receive the second pulse signal sent by the second message processing module 51. If the second pulse signal is received, a preset code is inserted into the second pair of time messages.
本申请实施例中,时间校正装置包括:第二报文处理模块和插入自定义码模块;所述第二报文处理模块用于在时间戳计数器秒级清零时,生成包括与所述时间戳计数器秒级清零时刻对应的第二时间戳的第二对时报文,发送所述第二对时报文给所述插入自定义码模块;所述插入自定义码模块用于接收所述第二报文处理模块发送的所述第二对时报文,插入预设编码至所述第二对时报文中,得到已标示报文,输出所述已标示报文。所以,时间校正装置可以利用已标示报文对与时间戳计数器连接的从属时间戳计数器的时间戳进行校正,即使连接时间戳计数器与从属时间戳计数器的交换芯片存在转发延时比较大,路径延时不稳定的问题,最后从属时间戳计数器的时间戳也会被校正,因此,该方法可以缓解现有技术中存在的跨业务子架间传递的时间 信息不准确的问题,提高跨业务子架间传递的时间信息的准确性。In the embodiment of the present application, the time correction device includes: a second message processing module and a module for inserting a custom code; the second message processing module is used for generating and including the time when the timestamp counter is cleared at the second level A second time-stamp message corresponding to the second timestamp corresponding to the second-time zero-stamping time of the counter, and sending the second time-stamp message to the insert custom code module; the insert custom code module is used to receive the The second pair of time messages sent by the second message processing module inserts a preset code into the second pair of time messages, obtains the marked message, and outputs the marked message. Therefore, the time correction device can use the marked message to correct the timestamp of the slave timestamp counter connected to the timestamp counter. Even if the switching chip connecting the timestamp counter and the slave timestamp counter has a relatively large forward delay, the path delay Time stability problem, the timestamp of the subordinate timestamp counter will be corrected finally. Therefore, this method can alleviate the problem of inaccurate time information transmission between cross-service subracks in the prior art, and improve cross-service subracks The accuracy of the time information passed between.
在本申请的又一实施例中,如图5所示,在包括第二报文处理模块51和插入自定义码模块52的时间校正装置的基础上,时间校正装置还可以包括:第二FIFO存储器53和删除空闲帧模块54。In yet another embodiment of the present application, as shown in FIG. 5, on the basis of the time correction device including the second message processing module 51 and the custom code module 52, the time correction device may further include: a second FIFO The memory 53 and the delete idle frame module 54.
其中,本申请实施例中的时间校正装置位于主侧。Among them, the time correction device in the embodiment of the present application is located on the main side.
所述第二FIFO存储器53和所述插入自定义码模块52连接,用于存储所述已标示报文。The second FIFO memory 53 is connected to the inserted custom code module 52 for storing the marked message.
所述删除空闲帧模块54分别与所述第二报文处理模块51和所述第二FIFO存储器53连接,用于获取所述第二FIFO存储器53的第二水线数据,若所述第二水线数据大于第二水线阈值,则从所述已标示报文中删除空闲帧。The delete idle frame module 54 is connected to the second message processing module 51 and the second FIFO memory 53 respectively, and is used to obtain the second waterline data of the second FIFO memory 53, if the second If the waterline data is greater than the second waterline threshold, the idle frame is deleted from the marked message.
所述插入自定义码模块52还用于将删除空闲帧的已标示报文输出。The inserting custom code module 52 is also used to output the marked message with the idle frames deleted.
在本申请的又一实施例中,如图5所示,在包括第二FIFO存储器53和删除空闲帧模块54的时间校正装置的基础上,时间校正装置还可以包括:编码模块55和第二光口处理模块56。In yet another embodiment of the present application, as shown in FIG. 5, on the basis of the time correction device including the second FIFO memory 53 and the idle frame deletion module 54, the time correction device may further include: an encoding module 55 and a second Optical port processing module 56.
其中,本申请实施例中的时间校正装置位于主侧。Among them, the time correction device in the embodiment of the present application is located on the main side.
所述编码模块55分别与所述插入自定义码模块52和所述第二光口处理模块56连接,用于对删除空闲帧的已标示报文进行编码,得到编码后对时报文,发送所述编码后对时报文给所述第二光口处理模块56。The encoding module 55 is connected to the inserted custom code module 52 and the second optical port processing module 56 respectively, and is used to encode the marked messages with idle frames deleted. After the encoding, the time-of-day message is sent to the second optical port processing module 56.
具体的,编码模块55可以为8B/10B编码模块。Specifically, the encoding module 55 may be an 8B/10B encoding module.
所述第二光口处理模块56用于接收所述编码模块55发送的所述编码后对时报文,利用并行通信方式输出所述编码后对时报文。The second optical port processing module 56 is configured to receive the encoded time synchronization message sent by the encoding module 55, and output the encoded time synchronization message using parallel communication.
其中,第二光口处理模块56可以采用IP(Internet Protocol Address,网际协议地址)核,进行串行/并行通信方式转化,与光模块互通。Among them, the second optical port processing module 56 may adopt an IP (Internet Protocol) core to perform serial/parallel communication mode conversion and communicate with the optical module.
在本申请的又一实施例中,对本申请实施例中的一种时间校正系统进行详细介绍,所述系统包括:位于从侧的时间校正装置与位于主侧的时间校正装置。In yet another embodiment of the present application, a time correction system in the embodiment of the present application is described in detail. The system includes: a time correction device on the slave side and a time correction device on the master side.
示例性的,如图6所示,时间校正系统可以包括:时间校正装置61和时间校正装置62。其中,时间校正装置61可以为位于主侧的时间校正装置。时间校正装置62可以为位于从侧的时间校正装置。Exemplarily, as shown in FIG. 6, the time correction system may include: a time correction device 61 and a time correction device 62. The time correction device 61 may be a time correction device located on the main side. The time correction device 62 may be a time correction device on the slave side.
示例性的,如图7所示,时间校正系统可以包括:时间校正装置71、时间校正装置72、时间校正装置73和时间校正装置74。时间校正装置71分别与时间校正装置72、时间校正装置73和时间校正装置74连接。时间校正装置71可以为位于主侧的时间校正装置。时间校正装置72、时间校正装置73和时间校正装置74可以分别为位于从侧的时间校正装置。Exemplarily, as shown in FIG. 7, the time correction system may include: a time correction device 71, a time correction device 72, a time correction device 73 and a time correction device 74. The time correction device 71 is connected to the time correction device 72, the time correction device 73, and the time correction device 74, respectively. The time correction device 71 may be a time correction device located on the main side. The time correction device 72, the time correction device 73, and the time correction device 74 may be time correction devices on the slave side, respectively.
在本申请的又一实施例中,对本申请实施例中的一种服务器进行详细介绍,如图8所示,服务器可以包括:处理器801、存储器802、通信接口803和总线804。In another embodiment of the present application, a server in the embodiment of the present application is described in detail. As shown in FIG. 8, the server may include: a processor 801, a memory 802, a communication interface 803, and a bus 804.
所述处理器801、所述存储器802与所述通信接口803通过所述总线804完成相互间的通信。The processor 801, the memory 802, and the communication interface 803 communicate with each other through the bus 804.
所述通信接口803用于外部设备之间的信息传输。The communication interface 803 is used for information transmission between external devices.
示例性的,外部设备可以为用户设备UE。Exemplarily, the external device may be user equipment UE.
所述处理器801用于调用所述存储器802中的程序指令,以执行如上述任一项实施例所述的时间校正方法的步骤。The processor 801 is configured to call program instructions in the memory 802 to execute the steps of the time correction method described in any one of the foregoing embodiments.
具体而言,所述处理器801用于执行时间校正程序,以实现以下步骤:获取第一对时报文,所述第一对时报文携带有对时时间戳和预设编码;记录与检测到所述预设编码的时刻对应的第一时间戳,及删除所述第一对时报文中的所述预设编码,得到原始对时报文;提取所述原始对时报文中的所述对时时间戳;利用所述对时时间戳和所述第一时间戳,校正时间戳计数器的时间戳,使得所述时间戳计数器的时间戳和发送所述第一对时报文的时间戳计数器的时间戳在同一时刻的值相同。Specifically, the processor 801 is used to execute a time correction program to achieve the following steps: acquiring a first pair of time messages, the first pair of time messages carrying a time stamp and a preset encoding; recording and detection A first timestamp corresponding to the moment of the preset encoding, and deleting the preset encoding in the first pair of time messages to obtain an original time stamp; extracting the time stamp in the original time stamp Using the time stamp and the first time stamp to correct the time stamp of the time stamp counter so that the time stamp of the time stamp counter and the time stamp of the time stamp counter that sent the first pair of time messages are at The value at the same moment is the same.
具体而言,所述处理器801用于执行时间校正程序,以实现以下步骤:在时间戳计数器秒级清零时,生成包括与所述时间戳计数器秒级清零时刻对应的第二时间戳的第二对时报文;插入预设编码至所述第二对时报文中,得到已标示报文;输出所述已标示报文。Specifically, the processor 801 is used to execute a time correction program to implement the following steps: when the timestamp counter is cleared at the second level, a second time stamp including a time corresponding to the timestamp reset time of the timestamp counter is generated A second pair of time messages; insert a preset code into the second pair of time messages to obtain a marked message; and output the marked message.
在本申请的又一实施例中,对本申请实施例中的一种计算机可读存储介质进行详细介绍,所述计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行如上述任一项实施例所述时间校正方法的步骤。In yet another embodiment of the present application, a computer-readable storage medium in an embodiment of the present application is described in detail. The computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to execute any of the above The steps of the time correction method according to an embodiment.
其中,所述计算机可读存储介质可以存储有一个或者多个计算机指令。所述计算机可读存储介质可以包括易失性存储器,例如随机存取存储器;所 述计算机可读存储介质也可以包括非易失性存储器,例如只读存储器、快闪存储器、硬盘或固态硬盘;所述计算机可读存储介质还可以包括上述种类的存储器的组合。Wherein, the computer-readable storage medium may store one or more computer instructions. The computer-readable storage medium may include volatile memory, such as random access memory; the computer-readable storage medium may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state hard disk; The computer-readable storage medium may also include a combination of the aforementioned types of memory.
具体而言,所述计算机指令使所述计算机执行以下步骤:获取第一对时报文,所述第一对时报文携带有对时时间戳和预设编码;记录与检测到所述预设编码的时刻对应的第一时间戳,及删除所述第一对时报文中的所述预设编码,得到原始对时报文;提取所述原始对时报文中的所述对时时间戳;利用所述对时时间戳和所述第一时间戳,校正时间戳计数器的时间戳,使得所述时间戳计数器的时间戳和发送所述第一对时报文的时间戳计数器的时间戳在同一时刻的值相同。Specifically, the computer instruction causes the computer to perform the following steps: obtain a first pair of time messages, the first pair of time messages carrying a time stamp and a preset code; recording and detecting the preset code The first timestamp corresponding to the moment of time, and deleting the preset code in the first pair of time-of-day messages to obtain the original time-of-day message; extracting the time-of-day timestamp in the original time-of-day message; using the pair The timestamp and the first timestamp, correct the timestamp of the timestamp counter so that the timestamp of the timestamp counter and the timestamp of the timestamp counter sending the first pair of time messages have the same value at the same time .
具体而言,所述计算机指令使所述计算机执行以下步骤:在时间戳计数器秒级清零时,生成包括与所述时间戳计数器秒级清零时刻对应的第二时间戳的第二对时报文;插入预设编码至所述第二对时报文中,得到已标示报文;输出所述已标示报文。Specifically, the computer instruction causes the computer to perform the following steps: when the time stamp counter is cleared at the second level, a second pair of time stamps including a second time stamp corresponding to the time at which the time stamp counter is cleared at the second level is generated Text; insert a preset code into the second pair of time messages to get the marked message; output the marked message.
在本申请的又一实施例中,提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任意方法实施例中的方法。In yet another embodiment of the present application, a computer program product is provided. The computer program product includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer is caused to execute the method in any of the above method embodiments.
可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(Application Specific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSPDevice,DSPD)、可编程逻辑设备(Program mable Logic Device,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It can be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSPDevice, DSPD), programmable logic Device (Programmable Logic Device, PLD), Field-Programmable Gate Array (FPGA), general-purpose processor, controller, microcontroller, microprocessor, others used to perform the functions described in this application Electronic unit or its combination.
对于软件实现,可通过执行本文所述功能的单元来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the techniques described herein may be implemented through units that perform the functions described herein. The software codes can be stored in memory and executed by the processor. The memory may be implemented in the processor or external to the processor.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方 法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Persons of ordinary skill in the art may realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application of the technical solution and design constraints. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and conciseness of the description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed device and method may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical, or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of the embodiments of the present invention may essentially be a part that contributes to the existing technology or a part of the technical solution may be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage media include various media that can store program codes, such as a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或 者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these There is any such actual relationship or order between entities or operations. Moreover, the terms "include", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also those not explicitly listed Or other elements that are inherent to this process, method, article, or equipment. Without more restrictions, the element defined by the sentence "include one..." does not exclude that there are other identical elements in the process, method, article or equipment that includes the element.
以上所述仅是本发明的具体实施方式,使本领域技术人员能够理解或实现本发明。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所申请的原理和新颖特点相一致的最宽的范围。The above are only specific embodiments of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to these embodiments shown in this document, but should conform to the widest scope consistent with the principles and novel features applied in this document.
Claims (14)
- 一种时间校正方法,其中,包括:A time correction method, which includes:获取第一对时报文,所述第一对时报文携带有对时时间戳和预设编码;Acquiring a first pair of time messages, the first pair of time messages carrying a time stamp and a preset code;记录与检测到所述预设编码的时刻对应的第一时间戳,及删除所述第一对时报文中的所述预设编码,得到原始对时报文;Recording a first timestamp corresponding to the moment when the preset encoding is detected, and deleting the preset encoding in the first pair of time-of-day messages to obtain the original time-of-day message;提取所述原始对时报文中的所述对时时间戳;Extracting the time synchronization timestamp in the original time synchronization message;利用所述对时时间戳和所述第一时间戳,校正时间戳计数器的时间戳,使得所述时间戳计数器的时间戳和发送所述第一对时报文的时间戳计数器的时间戳在同一时刻的值相同。Using the time stamp and the first time stamp to correct the time stamp of the time stamp counter so that the time stamp of the time stamp counter and the time stamp of the time stamp counter that sent the first pair of time messages are the same The value at the moment is the same.
- 根据权利要求1所述的时间校正方法,其中,所述提取所述原始对时报文中的所述对时时间戳,包括:The time correction method according to claim 1, wherein the extracting the time synchronization time stamp in the original time synchronization message comprises:获取第一先进先出FIFO存储器的第一水线数据,所述第一FIFO存储器用于存储所述第一时间戳和所述原始对时报文;Acquiring first waterline data of a first first-in first-out FIFO memory, where the first FIFO memory is used to store the first timestamp and the original time synchronization message;若所述第一水线数据小于第一水线阈值,则在由所述第一时间戳和所述原始对时报文组成的数据流中插入空闲帧;If the first waterline data is less than the first waterline threshold, insert an idle frame in the data stream composed of the first time stamp and the original time synchronization message;从插入空闲帧的数据流中,提取所述对时时间戳。From the data stream inserted into the idle frame, extract the time stamp.
- 根据权利要求2所述的时间校正方法,其中,所述方法还包括:The time correction method according to claim 2, wherein the method further comprises:获取利用并行通信方式传输的报文数据;Obtain message data transmitted by parallel communication;将所述报文数据转换成利用串行通信方式传输的字节未对齐报文;Converting the message data into byte-unaligned messages transmitted by serial communication;对齐所述字节未对齐报文中的字节,得到未解码报文;Align the bytes in the byte unaligned message to obtain an undecoded message;对所述未解码报文进行解码,得到所述第一对时报文。Decoding the undecoded message to obtain the first pair of time messages.
- 一种时间校正方法,其中,包括:A time correction method, which includes:在时间戳计数器秒级清零时,生成包括与所述时间戳计数器秒级清零时刻对应的第二时间戳的第二对时报文;When the timestamp counter is cleared at the second level, a second pair of time messages including a second timestamp corresponding to the second time cleared time of the timestamp counter is generated;插入预设编码至所述第二对时报文中,得到已标示报文;Insert a preset code into the second pair of time messages to obtain the marked message;输出所述已标示报文。Output the marked message.
- 根据权利要求4所述的时间校正方法,其中,所述输出所述已标示报文,包括:The time correction method according to claim 4, wherein the outputting the marked message includes:获取第二FIFO存储器的第二水线数据,所述第二FIFO存储器用于存储所述已标示报文;Acquiring second waterline data of a second FIFO memory, where the second FIFO memory is used to store the marked message;若所述第二水线数据大于第二水线阈值,则从所述已标示报文中删除空闲帧;If the second waterline data is greater than the second waterline threshold, delete idle frames from the marked message;将删除空闲帧的已标示报文输出。The marked message output of idle frames will be deleted.
- 根据权利要求5所述的时间校正方法,其中,所述将删除空闲帧的已标示报文输出,包括:The time correction method according to claim 5, wherein the output of the marked message that will delete idle frames includes:对删除空闲帧的已标示报文进行编码,得到编码后对时报文;Encode the marked messages with idle frames deleted, and get the timed messages after encoding;利用并行通信方式输出所述编码后对时报文。Use the parallel communication mode to output the encoded time-aligned message.
- 一种时间校正装置,其中,包括:第一报文处理模块和删除自定义码模块;A time correction device, including: a first message processing module and a module for deleting a custom code;所述删除自定义码模块和所述第一报文处理模块连接,用于获取第一对时报文,所述第一对时报文携带有对时时间戳和预设编码,记录与检测到所述预设编码的时刻对应的第一时间戳,及删除所述第一对时报文中的所述预设编码,得到原始对时报文;The delete custom code module is connected to the first message processing module, and is used to obtain a first pair of time messages. The first pair of time messages carries a time stamp and a preset code. A first time stamp corresponding to the moment of the preset encoding, and deleting the preset encoding in the first pair of time messages to obtain the original time stamp message;所述第一报文处理模块用于提取所述原始对时报文中的所述对时时间戳,利用所述对时时间戳和所述第一时间戳,校正时间戳计数器的时间戳,使得所述时间戳计数器的时间戳和发送所述第一对时报文的时间戳计数器的时间戳在同一时刻的值相同。The first message processing module is used to extract the time stamp in the original time stamp message, and use the time stamp and the first time stamp to correct the time stamp of the time stamp counter so that all The time stamp of the time stamp counter and the time stamp of the time stamp counter sending the first pair of time messages have the same value at the same time.
- 根据权利要求7所述的时间校正装置,其中,所述装置还包括:第一FIFO存储器和插入空闲帧模块;The time correction device according to claim 7, wherein the device further comprises: a first FIFO memory and an idle frame insertion module;所述第一FIFO存储器分别与所述插入空闲帧模块和所述第一报文处理模块连接,用于存储所述第一时间戳和所述原始对时报文;The first FIFO memory is respectively connected to the inserted idle frame module and the first message processing module, and is used to store the first time stamp and the original time synchronization message;所述插入空闲帧模块和所述删除自定义码模块连接,用于获取所述第一FIFO存储器的第一水线数据,若所述第一水线数据小于第一水线阈值,则在由所述第一时间戳和所述原始对时报文组成的数据流中插入空闲帧;The insert idle frame module and the delete custom code module are connected to obtain the first waterline data of the first FIFO memory, if the first waterline data is less than the first waterline threshold, then the Inserting an idle frame into the data stream composed of the first time stamp and the original time synchronization message;所述第一报文处理模块还用于从插入空闲帧的数据流中,提取所述对时时间戳。The first message processing module is also used to extract the time-stamping time stamp from the data stream inserted into the idle frame.
- 根据权利要求7或8所述的时间校正装置,其中,所述装置还包括:字节对齐模块、解码模块和第一光口处理模块;The time correction device according to claim 7 or 8, wherein the device further comprises: a byte alignment module, a decoding module and a first optical port processing module;所述第一光口处理模块和所述字节对齐模块连接,用于获取利用并行通信方式传输的报文数据,将所述报文数据转换成利用串行通信方式传输的字节未对齐报文,将所述字节未对齐报文发送给所述字节对齐模块;The first optical port processing module is connected to the byte alignment module, and is used to obtain the message data transmitted by the parallel communication method, and convert the message data into a byte unaligned message transmitted by the serial communication method Send the byte unaligned message to the byte alignment module;所述字节对齐模块和所述解码模块连接,用于接收所述第一光口处理模块发送的所述字节未对齐报文,对齐所述字节未对齐报文中的字节,得到未解码报文,将所述未解码报文发送给所述解码模块;The byte alignment module and the decoding module are connected to receive the byte unaligned message sent by the first optical port processing module, and align the bytes in the byte unaligned message to obtain Undecoded message, send the undecoded message to the decoding module;所述解码模块用于接收所述字节对齐模块发送的所述未解码报文,对所述未解码报文进行解码,得到所述第一对时报文。The decoding module is configured to receive the undecoded message sent by the byte alignment module, decode the undecoded message, and obtain the first pair of time messages.
- 一种时间校正装置,其中,包括:第二报文处理模块和插入自定义码模块;A time correction device, including: a second message processing module and a module for inserting a custom code;所述第二报文处理模块用于在时间戳计数器秒级清零时,生成包括与所述时间戳计数器秒级清零时刻对应的第二时间戳的第二对时报文,发送所述第二对时报文给所述插入自定义码模块;The second message processing module is used to generate a second time-of-day message including a second time stamp corresponding to the second time of the time stamp counter when the time stamp counter is cleared at the second level, and send the second Two pairs of time messages are inserted into the custom code module;所述插入自定义码模块用于接收所述第二报文处理模块发送的所述第二对时报文,插入预设编码至所述第二对时报文中,得到已标示报文,输出所述已标示报文。The inserting a custom code module is used to receive the second pair of time messages sent by the second message processing module, insert a preset code into the second pair of time messages, obtain a marked message, and output the Message marked.
- 根据权利要求10所述的时间校正装置,其中,所述装置还包括:第二FIFO存储器和删除空闲帧模块;The time correction device according to claim 10, wherein the device further comprises: a second FIFO memory and a module for deleting idle frames;所述第二FIFO存储器和所述插入自定义码模块连接,用于存储所述已标示报文;The second FIFO memory is connected to the inserted custom code module, and is used to store the marked message;所述删除空闲帧模块分别与所述第二报文处理模块和所述第二FIFO存储器连接,用于获取所述第二FIFO存储器的第二水线数据,若所述第二水线数据大于第二水线阈值,则从所述已标示报文中删除空闲帧;The delete idle frame module is respectively connected to the second message processing module and the second FIFO memory, and is used to obtain the second waterline data of the second FIFO memory, if the second waterline data is greater than The second waterline threshold, then delete idle frames from the marked message;所述插入自定义码模块还用于将删除空闲帧的已标示报文输出。The module for inserting a custom code is also used to output the marked message with idle frames deleted.
- 根据权利要求11所述的时间校正装置,其中,所述装置还包括:编码模块和第二光口处理模块;The time correction device according to claim 11, wherein the device further comprises: an encoding module and a second optical port processing module;所述编码模块分别与所述插入自定义码模块和所述第二光口处理模块连接,用于对删除空闲帧的已标示报文进行编码,得到编码后对时报文,发送所述编码后对时报文给所述第二光口处理模块;The encoding module is respectively connected to the inserted custom code module and the second optical port processing module, and is used to encode the marked messages with idle frames deleted, obtain the encoded time-of-day messages, and send the encoded Time synchronization message to the second optical port processing module;所述第二光口处理模块用于接收所述编码模块发送的所述编码后对时报文,利用并行通信方式输出所述编码后对时报文。The second optical port processing module is configured to receive the encoded time synchronization message sent by the encoding module, and output the encoded time synchronization message using parallel communication.
- 一种时间校正系统,其中,所述系统包括:如权利要求7至9中任一项所述的时间校正装置与如权利要求10至12中任一项所述的时间校正装置。A time correction system, wherein the system includes the time correction device according to any one of claims 7 to 9 and the time correction device according to any one of claims 10 to 12.
- 一种计算机可读存储介质,其中,所述计算机可读存储介质存储计算机指令,所述计算机指令使所述计算机执行如权利要求1至6中任一项所述方法的步骤。A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions that cause the computer to perform the steps of the method according to any one of claims 1 to 6.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811641992.0A CN111385049B (en) | 2018-12-29 | 2018-12-29 | Time correction method, device, system and storage medium |
CN201811641992.0 | 2018-12-29 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020134709A1 true WO2020134709A1 (en) | 2020-07-02 |
Family
ID=71127448
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/119273 WO2020134709A1 (en) | 2018-12-29 | 2019-11-18 | Time correction method, device, system, and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111385049B (en) |
WO (1) | WO2020134709A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112415996B (en) * | 2020-10-12 | 2024-03-15 | 星火科技技术(深圳)有限责任公司 | Calibration system and method based on steering engine execution time |
CN114390492A (en) * | 2020-10-20 | 2022-04-22 | Oppo广东移动通信有限公司 | Timing method, device, equipment and storage medium |
CN113242128B (en) * | 2021-07-13 | 2022-02-08 | 北京天御云安科技有限公司 | Timestamp correction method based on system time as cryptographic algorithm initialization vector |
CN113973215A (en) * | 2021-10-25 | 2022-01-25 | 北京字节跳动网络技术有限公司 | Data deduplication method and device and storage medium |
CN117992126B (en) * | 2024-04-07 | 2024-06-25 | 西安羚控电子科技有限公司 | Processor cooperative work method and system based on software lockstep |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005027385A1 (en) * | 2003-09-11 | 2005-03-24 | Cisco Technology, Inc. | System for synchronizing circuitry in an access network |
CN102932083A (en) * | 2011-08-11 | 2013-02-13 | 中兴通讯股份有限公司 | Microwave time synchronization method and device |
CN103873448A (en) * | 2012-12-17 | 2014-06-18 | 北京旋极信息技术股份有限公司 | High-speed Internet specification protocol solving method and system for embedded system |
CN104602141A (en) * | 2015-01-16 | 2015-05-06 | 深圳市中兴微电子技术有限公司 | Method, device and system for synchronizing time in OTN (Open Transport Network) |
CN107579793A (en) * | 2016-07-04 | 2018-01-12 | 中兴通讯股份有限公司 | The optimization method of time synchronized, device and equipment between a kind of communication network device |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3989932B2 (en) * | 2002-04-30 | 2007-10-10 | インターナショナル・ビジネス・マシーンズ・コーポレーション | Method and mechanism for local synchronization in a master-slave distributed communication system |
US20100034191A1 (en) * | 2006-10-12 | 2010-02-11 | Koninklijke Philips Electronics N. V. | Method and system for time synchronization in a sensor network |
US9306693B2 (en) * | 2013-11-15 | 2016-04-05 | Broadcom Corporation | Time synchronization architecture in a network device |
CN106230540B (en) * | 2016-06-30 | 2019-03-26 | 电信科学技术第五研究所有限公司 | High-precision NTP message method of reseptance and sending method |
CN108809618B (en) * | 2018-05-18 | 2021-06-01 | 国电南瑞科技股份有限公司 | Clock recovery method for 8b10b coded serial data |
CN109005557B (en) * | 2018-09-26 | 2021-12-07 | 中兴通讯股份有限公司 | Time delay symmetry measuring method, device and system |
-
2018
- 2018-12-29 CN CN201811641992.0A patent/CN111385049B/en active Active
-
2019
- 2019-11-18 WO PCT/CN2019/119273 patent/WO2020134709A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005027385A1 (en) * | 2003-09-11 | 2005-03-24 | Cisco Technology, Inc. | System for synchronizing circuitry in an access network |
CN102932083A (en) * | 2011-08-11 | 2013-02-13 | 中兴通讯股份有限公司 | Microwave time synchronization method and device |
CN103873448A (en) * | 2012-12-17 | 2014-06-18 | 北京旋极信息技术股份有限公司 | High-speed Internet specification protocol solving method and system for embedded system |
CN104602141A (en) * | 2015-01-16 | 2015-05-06 | 深圳市中兴微电子技术有限公司 | Method, device and system for synchronizing time in OTN (Open Transport Network) |
CN107579793A (en) * | 2016-07-04 | 2018-01-12 | 中兴通讯股份有限公司 | The optimization method of time synchronized, device and equipment between a kind of communication network device |
Also Published As
Publication number | Publication date |
---|---|
CN111385049B (en) | 2022-09-27 |
CN111385049A (en) | 2020-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020134709A1 (en) | Time correction method, device, system, and storage medium | |
CN111194529B (en) | Packet classification and time stamping system and method | |
US6775300B2 (en) | Clock distribution in a communications network | |
US7656905B2 (en) | Apparatus and method for aggregation and transportation of gigabit ethernet and other packet based data formats | |
WO2017202158A1 (en) | Data forwarding method and device | |
WO2017206954A1 (en) | Optical port implementation method and apparatus, and field programmable gate array device | |
KR20210038959A (en) | Service transmission method, equipment and computer storage medium | |
CN113612564A (en) | Message processing method and network equipment | |
EP2966823A1 (en) | Encoding and decoding methods and apparatuses of ethernet physical layer | |
EP3122012B1 (en) | Data processing method and apparatus for openflow network | |
JP2018515026A (en) | Delay variation smoothing method, apparatus and system for communication network | |
US20240314079A1 (en) | Service sending and receiving methods, device, system and storage medium | |
CN110858790B (en) | Data packet transmission method and device, storage medium and electronic device | |
WO2020114436A1 (en) | Clock synchronization method, system, device and storage medium | |
US8644347B2 (en) | Transporting optical data units in an optical transport network | |
CN1849767B (en) | Forward error correction mapping and de-mapping techniques | |
EP4175210A1 (en) | Rate adaptation method and apparatus | |
WO2021082468A1 (en) | Communication method, device, and storage medium | |
CN108460044B (en) | Data processing method and device | |
JP2012165334A (en) | Multiplex transmission apparatus, multiplex transmission method, and computer program | |
CN101374145B (en) | Method and apparatus for adapting velocity | |
EP3223478A1 (en) | Packet processing method and device, and storage medium | |
WO2021063369A1 (en) | Method and device for message processing and network equipment | |
US9258147B2 (en) | Multi-frame data processing apparatus and method using frame disassembly | |
CN106911545B (en) | Method and device for transmitting ST _ BUS data through Ethernet |
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: 19904313 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 19.08.2021.) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19904313 Country of ref document: EP Kind code of ref document: A1 |