Time calibration method, device and computer-readable storage medium

The time calibration method addresses synchronization challenges by using code blocks to calculate time values, enabling accurate synchronization between devices even when the Ethernet interface is divided into subslots.

JP2024544701APending Publication Date: 2024-12-03ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2024534460
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-12-10
Filing Date
2022-12-07
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

Existing communication networks face challenges in achieving time synchronization between devices when the Ethernet interface is divided into multiple subslots, as the original time calibration methods are not applicable, leading to difficulties in performing time calibration.

Method used

A time calibration method that involves obtaining and utilizing multiple code blocks in data frames to calculate time values, allowing devices to synchronize their local time with a reference device, even when the Ethernet interface is divided into subslots.

Benefits of technology

Enables effective time calibration across devices in communication networks by determining and adjusting time offsets, ensuring accurate synchronization despite the division of Ethernet interfaces into multiple subslots.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024544701000001_ABST
    Figure 2024544701000001_ABST
Patent Text Reader

Abstract

The present invention provides a time calibration method, a device and a readable storage medium, in which a first data frame in the time calibration method includes a plurality of first code blocks, and a second data frame includes a plurality of second code blocks, so that the first data frame and the second data frame can be multi-frames including a plurality of code blocks to accommodate an Ethernet interface divided into a plurality of sub-slots, and a time offset of a device to be synchronized with respect to a reference device can be known according to the acquired first time value, second time value, third time value and fourth time value.
Need to check novelty before this filing date? Find Prior Art

Description

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application claims priority to a Chinese patent application filed with the China Patent Office on December 10, 2021, bearing application number 202111509933.X and titled "Time calibration method, device and computer-readable storage medium", the entire contents of which are incorporated herein by reference. [Technical field]

[0002] The present invention relates to the field of communications, and in particular to a time calibration method, device and computer readable storage medium. [Background technology]

[0003] There is a demand for realizing time synchronization among devices in a communication network, and currently, the main interface in a communication network is an Ethernet interface. The Ethernet interface is a shared interface, and all client services share one Ethernet physical interface, which makes it impossible to realize hard-tube isolation between messages of different clients. Therefore, in order to realize message isolation for different clients, one Ethernet interface needs to be divided into many sub-slot pipes, so as to realize hardware isolation among all sub-slots, and different clients bear on different sub-slots, so that different clients do not affect each other. In the related technology, a fine-grained service carrying standard is provided, which can divide one 10G interface into 960 sub-slots, and the client services can bear on different sub-slots, so as to realize the hardware isolation requirement of the client services. However, after the related technology divides the Ethernet interface into multiple sub-slots, the original Ethernet interface cannot directly transmit the Ethernet interface message, and the devices in the communication network cannot adopt the original time synchronization method of the Ethernet interface to perform time calibration. Summary of the Invention [Means for solving the problem]

[0004] The following is a summary of the subject matter described in detail in the present text, which is not intended to limit the scope of protection of the claims.

[0005] The present disclosure provides a time calibration method, device, and computer-readable storage medium that enable a device in a communication network to perform time calibration based on an Ethernet interface when the Ethernet interface is divided into multiple sub-slots.

[0006] In a first aspect, the present disclosure provides a time calibration method applied to a calibration target device (a device to be calibrated) of a time calibration system including a reference device and a calibration target device.

[0007] The time calibration method includes: acquiring a first data frame transmitted by the reference device, the first data frame including a plurality of first code blocks; acquiring a first time value and a second time value, the first time value being used to indicate (characterize) a local time at which a first of the first code blocks was transmitted from the reference device, and the second time value being used to indicate a local time at which the first of the first code blocks was received by the calibration target device; transmitting a second data frame including a plurality of second code blocks to the reference device in response to the first data frame; acquiring a third time value and a fourth time value, the third time value being used to indicate a local time at which a first of the second code blocks was transmitted from the calibration target device, and the fourth time value being used to indicate a local time at which the first of the second code blocks was received by the reference device; and performing time calibration in response to the first time value, the second time value, the third time value, and the fourth time value to synchronize a local time of the calibration target device to the reference device.

[0008] In a second aspect, the present disclosure provides a time calibration method applied to a reference device of a time calibration system including a reference device and a device to be calibrated.

[0009] The time calibration method includes generating a first data frame including a plurality of first code blocks; transmitting the first data frame to the calibration target device so that the calibration target device obtains a first time value indicating a local time at which a first first code block of the first data frame was transmitted from the reference device; and acquiring the second data frame including a plurality of the second code blocks transmitted by the calibration target device so that the calibration target device obtains a fourth time value indicating a local time at which a first second code block was received by the reference device and performs time calibration according to the first time value and the fourth time value.

[0010] In a third aspect, the present disclosure provides a time calibration device including a memory, a processor, and a computer program stored in the memory and executable by the processor, the time calibration device realizing a time calibration method in an embodiment of the first or second aspect above when the processor executes the computer program.

[0011] In a fourth aspect, the present disclosure provides a computer-readable storage medium storing computer-executable instructions for causing a computer to execute the time calibration method according to the embodiment of the first or second aspect described above.

[0012] The present disclosure includes acquiring a first data frame transmitted by the reference device, the first data frame including a plurality of first code blocks, acquiring a first time value and a second time value, the first time value being used to indicate a local time at which a first of the first code blocks was transmitted from the reference device and the second time value being used to indicate a local time at which the first of the first code blocks was received by the calibration target device; transmitting a second data frame to the reference device in response to the first data frame, the second data frame including a plurality of second code blocks, acquiring a third time value and a fourth time value, the third time value being used to indicate a local time at which a first of the second code blocks was transmitted from the calibration target device and the fourth time value being used to indicate a local time at which the first of the second code blocks was received by the reference device; and performing time calibration according to the first time value, the second time value, the third time value, and the fourth time value to synchronize a local time of the calibration target device to the reference device.According to the solution provided by the present disclosure, the first data frame includes a plurality of first code blocks, and the second data frame includes a plurality of second code blocks, so that the first data frame and the second data frame can be a multi-frame including a plurality of code blocks to accommodate an Ethernet interface divided into a plurality of sub-slots, and the first time value is used to indicate a local time when the first first code block is transmitted from the reference device, the second time value is used to indicate a local time when the first first code block is received by the calibration target device, and the third time value is used to indicate a local time when the first second code block is transmitted from the calibration target device. Since the first time value is used to indicate the local time and the fourth time value is used to indicate the local time at which the initial second code block was received by the reference device, the time offset of the device to be synchronized with respect to the reference device can be known depending on the first time value, the second time value, the third time value, and the fourth time value, so that the device to be synchronized with respect to the reference device can modify its local time to remove the time offset with respect to the reference device. Thus, the present invention enables devices in a communication network to perform time calibration based on an Ethernet interface when the Ethernet interface is divided into multiple sub-slots.

[0013] Other features and advantages of the invention will be set forth in the following description, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention may be realized and obtained as particularly pointed out in the written description, claims, and drawings. [Brief description of the drawings]

[0014] The drawings are used to provide a further understanding of the technical solution of the present invention, constitute a part of the specification, and are used to interpret the technical solution of the present invention together with the embodiments of the present invention, and are not intended to limit the technical solution of the present invention. [Figure 1] 1 is a schematic diagram of a time calibration system provided by one embodiment of the present invention. [Diagram 2] 4 is a flow chart of a time calibration method provided by one embodiment of the present invention. [Diagram 3] FIG. 2 is a structural schematic diagram of a fine-grained basic unit provided by the present disclosure. [Figure 4] FIG. 2 is a schematic diagram of a multi-frame provided by the present disclosure. [Diagram 5] FIG. 2 is a schematic diagram of a 64 / 66 encoding structure provided by the present disclosure. [Figure 6] FIG. 2 is a specific configuration diagram of a fine-grained basic unit provided by the present disclosure. [Figure 7] FIG. 2 is a schematic diagram of mapping a code block to a fine-grained elementary unit provided by the present disclosure; [Figure 8] 11 is a specific flowchart of obtaining a first time value and a second time value provided by another embodiment of the present invention; [Figure 9] 11 is a specific flowchart of obtaining a first time value according to a first data frame provided by another embodiment of the present invention; [Figure 10] 1 is a structural diagram of a cell overhead portion of a fine-grained basic unit provided by the present disclosure. [Figure 11] 4 is a specific flowchart of obtaining a first time value provided by another embodiment of the present invention; [Figure 12] 11 is a specific flowchart of obtaining a third time value and a fourth time value provided by another embodiment of the present invention; [Figure 13] 11 is a specific flowchart of obtaining a second data frame provided by another embodiment of the present invention; [Figure 14] 4 is a specific flowchart of time calibration provided by another embodiment of the present invention; [Figure 15] 4 is a flowchart of a time calibration method provided by another embodiment of the present invention. [Figure 16]4 is a flowchart of a time calibration method provided by another embodiment of the present invention. [Figure 17] 11 is a specific flowchart of carrying a time synchronization message in a first data frame provided by another embodiment of the present invention; [Figure 18] 1 is a schematic diagram of a fine-grained basic unit provided by one embodiment of the present invention carrying PTP messages. [Figure 19] A schematic diagram of a fine-grained basic unit provided by another embodiment of the present invention carrying a PTP message. [Figure 20] 4 is a flowchart of a time calibration method provided by another embodiment of the present invention. [Figure 21] 4 is a flowchart of a time calibration method provided by another embodiment of the present invention. [Figure 22] 1 is a schematic diagram of a time calibration device provided according to one embodiment of the present invention; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0015] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be described in more detail below with reference to the drawings and examples. It should be understood that the specific examples described herein are merely for the purpose of interpreting the present invention, and are not intended to limit the present invention.

[0016] In addition, although the schematic diagram of the device is divided into functional modules and the flowchart shows a logical order, in some cases, the steps shown or described may be divided into modules differently from the division into modules in the device, or may be performed in a different order from the order in the flowchart. The terms "first", "second", etc. in the specification and claims and the above drawings are not necessarily used to describe a specific order or chronology, but are used to distinguish between similar objects.

[0017] At present, the main interface of a communication network is an Ethernet interface, and there is a requirement to realize time synchronization between each network device in the communication network. All network devices in a communication network adopt the mode of Ethernet message to transmit services, and the clients carried by each network device share the same Ethernet physical interface to send and receive Ethernet messages. When an Ethernet interface transmits multiple client services through an interface, all client services share the same physical interface, so that the hard isolation effect cannot be realized between the services of different clients. Therefore, in some applications, one Ethernet interface needs to be divided into multiple sub-slot pipes, and all sub-slots are mutually isolated to achieve the transmission effect of rigid hardware isolation, so that different clients are carried on different sub-slots and do not affect each other between different clients. China Mobile has formulated a fine-grained service carrying standard called "10GE Interface Fine-Grained Slicing Technical Requirements", and in this standard scheme, one 10GE Ethernet interface is divided into 960 sub-slots, so that client services can be carried on different sub-slots and achieve the hard isolation effect between client services. After the 10GE Ethernet interface is divided into 960 subslots, the original Ethernet interface cannot directly transmit Ethernet messages, and network devices in the communication network cannot adopt the Ethernet interface to perform time synchronization and time calibration.

[0018] The present disclosure provides a time calibration method applied to a calibration target device of a time calibration system including a reference device and a calibration target device, the time calibration method including: acquiring a first data frame transmitted by the reference device, the first data frame including a plurality of first code blocks, acquiring a first time value and a second time value, the first time value being used to indicate a local time at which a first first code block was transmitted from the reference device and the second time value being used to indicate a local time at which the first first code block was received by the calibration target device; transmitting a second data frame including a plurality of second code blocks to the reference device in response to the first data frame, acquiring a third time value and a fourth time value, the third time value being used to indicate a local time at which the first second code block was transmitted from the calibration target device and the fourth time value being used to indicate a local time at which the first second code block was received by the reference device; and performing time calibration according to the first time value, the second time value, the third time value, and the fourth time value to synchronize the local time of the calibration target device to the reference device.According to the solution provided by the present disclosure, the first data frame includes a plurality of first code blocks, and the second data frame includes a plurality of second code blocks, so that the first data frame and the second data frame can be a multi-frame including a plurality of code blocks to accommodate an Ethernet interface divided into a plurality of sub-slots, and the first time value is used to indicate a local time when the first first code block is transmitted from the reference device, the second time value is used to indicate a local time when the first first code block is received by the calibration target device, and the third time value is used to indicate a local time when the first second code block is received from the calibration target device. Since the first time value is used to indicate the local time transmitted from the reference device, and the fourth time value is used to indicate the local time when the initial second code block was received by the reference device, the time offset of the device to be synchronized relative to the reference device can be known depending on the first time value, the second time value, the third time value, and the fourth time value, so that the device to be synchronized can modify its local time to remove the time offset relative to the reference device. Thus, the present invention enables devices in a communication network to perform time calibration based on an Ethernet interface when the Ethernet interface is divided into multiple sub-slots.

[0019] The present disclosure will be further described below in conjunction with the drawings.

[0020] FIG. 1 is a schematic diagram of a time calibration system provided by one embodiment of the present invention. In the example of FIG. 1, the time calibration system includes a reference device 100 and a device to be calibrated 110, and can perform bidirectional communication between the reference device 100 and the device to be calibrated 110. The local time of the reference device 100 is used as a reference time, and the local time of the device to be calibrated 110 needs to be synchronized with the reference time.

[0021] In addition, in the time calibration system, the calibration target device 110 may be one or more, and the present disclosure is not particularly limited thereto.

[0022] The time calibration system and application scenarios described in this disclosure are intended to more clearly explain the technical solution of the present disclosure, and are not intended to limit the technical solution provided in this disclosure. Those skilled in the art will appreciate that with the evolution of the time calibration system and the emergence of new application scenarios, the technical solution provided in this disclosure can be similarly applied to similar technical problems.

[0023] Those skilled in the art will appreciate that the time calibration system shown in FIG. 1 is not intended to be limiting of the present disclosure and may include more or fewer components than shown, or may combine some components or have different component arrangements.

[0024] Based on the above time calibration system, various embodiments of the time calibration method of the present invention are presented below.

[0025] As shown in FIG. 2, FIG. 2 is a flowchart of a time calibration method provided by one embodiment of the present invention, which is applied to a device to be calibrated in a time calibration system. In the example of FIG. 2, the time calibration method of the present disclosure includes, but is not limited to, step S100, step S200, and step S300.

[0026] Step S100: Obtain a first data frame including a plurality of first code blocks transmitted by a reference device, and obtain a first time value and a second time value, where the first time value is used to indicate a local time when the first first code block is transmitted from the reference device, and the second time value is used to indicate a local time when the first first code block is received by the device to be calibrated.

[0027] Since the first data frame includes a plurality of first code blocks, the first data frame may be a multiframe including a plurality of first code blocks so as to be adapted to an Ethernet interface divided into a plurality of subslots.

[0028] In one embodiment, the first data frame includes a plurality of fine grain base units (Fine Grain Base Units, FG-BUs), and each fine grain base unit includes a plurality of first code blocks.

[0029] Referring to FIG. 3, FIG. 3 is a structural schematic diagram of a fine-grained basic unit provided by the present disclosure. In the example of FIG. 3, the FG-BU is composed of an S code block representing a message start code block, a D code block representing a data code block, and a T code block representing a message end code block.

[0030] Specifically, the first data frame includes multiple FG-BUs, and the first code block is used to represent the S code block, the D code block, and the T code block included in the FG-BU, and each FG-BU is composed of one S code block, 195 D code blocks, and one T code block.

[0031] Specifically, the above FG-BU is defined by the "10GE Interface Fine-Grained Slice Technical Requirements" issued by China Mobile Research Institute.

[0032] Specifically, the S code block, the D code block, and the T code block are defined by the Ethernet 802.3 standard.

[0033] Referring to FIG. 4, FIG. 4 is a schematic diagram of a multi-frame provided by the present disclosure, and in the example of FIG. 4, each multi-frame includes multiple FG-BUs.

[0034] Step S200: In response to the first data frame, send a second data frame including a plurality of second code blocks to a reference device, and obtain a third time value and a fourth time value, where the third time value is used to indicate a local time at which the first second code block is sent from the calibration target device, and the fourth time value is used to indicate a local time at which the first second code block is received by the reference device.

[0035] Since the second data frame includes a plurality of second code blocks, the second data frame may be a multiframe including a plurality of first code blocks so as to accommodate an Ethernet interface divided into a plurality of subslots.

[0036] In one embodiment, the second data frame includes a plurality of FG-BUs, each of which includes a plurality of second code blocks.

[0037] Specifically, the second data frame includes multiple FG-BUs, and the second code block is used to represent the S code block, D code block, and T code block that the FG-BU includes, and each FG-BU consists of one S code block, 195 D code blocks, and one T code block.

[0038] Step S300: Perform time calibration according to a first time value, a second time value, a third time value, and a fourth time value, so as to synchronize a local time of a calibration target device with a reference device.

[0039] Since the first data frame includes a plurality of first code blocks and the second data frame includes a plurality of second code blocks, the first data frame and the second data frame may be multi-frames including a plurality of code blocks to accommodate an Ethernet interface divided into a plurality of sub-slots, and since the first time value is used to indicate a local time at which a first first code block is transmitted from the reference device, the second time value is used to indicate a local time at which the first first code block is received by the calibration target device, the third time value is used to indicate a local time at which the first second code block is transmitted from the calibration target device, and the fourth time value is used to indicate a local time at which the first second code block is received by the reference device, the time offset of the device to be synchronized with respect to the reference device can be known according to the first time value, the second time value, the third time value, and the fourth time value, whereby the device to be synchronized with respect to the reference device can change its local time to remove the time offset with respect to the reference device. Thus, the present disclosure enables a device in a communication network to perform time calibration based on an Ethernet interface when the Ethernet interface is divided into a plurality of sub-slots.

[0040] It should be noted that local time refers to the time determined by a device in a communication network according to its own local time.

[0041] Referring to FIG. 5, FIG. 5 is a schematic diagram of the 64 / 66 coding structure provided by the present disclosure. In the example of FIG. 5, the length of the 66-bit code block is 66 bits, the first two bits represent a synchronization header (Synchronization, Sync), the synchronization header being "10" represents that this code block is a control block code block, the first byte after the synchronization header is a control word field (Block Type field), and different control words represent various different control type code blocks. The synchronization header being "01" represents that it is a data block, and the 64 bits after the synchronization header represent the content of the data content. In FG-BU, the format of the S code block adopts the S0 control type, the control word is "0x78", the T code block adopts the T7 code, the control word is "0xFF", and the middle 195 D code blocks are data code blocks.

[0042] In one embodiment, the 64 / 66 encoding structure is defined by the Ethernet 802.3 standard.

[0043] Referring to FIG. 6, FIG. 6 is a specific configuration diagram of a fine-grained basic unit provided by the present disclosure. In the example of FIG. 6, the first line is an S code block, the content of the code block is "10+0x78+6*0x55+0xD5", the second line to the 196th line is a D code block, the first 7 bytes carry overhead information (OverHead, OH), and the remaining part carries the payload area (Payload) of the slot. The last one code block is a T7 code block, the content of the control field before the code block is "10+0xFF", and the last 7 bytes in the T7 code block carry the payload area (Payload) of the slot. In the FG-BU structure, the size of the payload area is 1560 bytes, and the 1560 bytes are divided into 24 sub-slots, and the size of each sub-slot is 65 bytes. When 40 FG-BUs constitute one FG-BU group, ie, one multiframe, one multiframe has a total of 960 slots.

[0044] In addition, the present disclosure does not set a specific limit on the number of FG-BUs included in a single multiframe, i.e., a single first data frame or a single second data frame, and for example, a single multiframe may include 40 FG-BUs, or a single multiframe may include 20 FG-BUs, and the present disclosure is not limited thereto. When a single multiframe includes 20 FG-BUs, one multiframe has a total of 480 slots.

[0045] Referring to FIG. 7, FIG. 7 is a schematic diagram of mapping code blocks to fine-grained basic units provided by the present disclosure. In the example of FIG. 7, when a client service is transmitted by an FG-BU, first, 64 / 66 encoding is performed for the client service, and the encoded client code block stream is divided according to eight 66-bit code block groups. For the eight 66-bit code block groups, before mapping, compression is first performed on the synchronization header part of each code block, compressing the synchronization header value of "10" to "1" and compressing the synchronization header value of "01" to "0", thus compressing the eight 66-bit code blocks into eight 65-bit code blocks. The eight compressed 65-bit code blocks are mapped to a certain slot in the FG-BU payload area, and the FG-BU overhead field, the previous S block, and the last T block are added to form the FG-BU, and the client service is finally transmitted by the FG-BU.

[0046] Referring to FIG. 8, FIG. 8 is a specific flowchart of obtaining a first time value and a second time value provided by another embodiment of the present invention, and in the example of FIG. 8, step S100 includes, but is not limited to, step S110 and step S120.

[0047] Step S110: Obtain a first time value according to the first data frame.

[0048] Step S120: In response to the first data frame, determine a second time value according to a local time at which the calibration target device receives the initial first code block.

[0049] In one embodiment, the first data frame carries a first time value, so that the synchronization target device can obtain the first time value according to the first data frame.

[0050] In one embodiment, the local time at which the calibration target device receives the first first code block is the time recorded according to the local time of the calibration target device when the S code block of the first FG-BU in the first data frame is received by the calibration target device.

[0051] Referring to FIG. 9, FIG. 9 is a specific flowchart of obtaining a first time value according to a first data frame provided by another embodiment of the present invention, and in the example of FIG. 9, step S110 includes, but is not limited to, step S111 and step S112.

[0052] Step S111: Obtain a time synchronization message according to a first data frame.

[0053] Step S112: Obtain a first time value in response to the time synchronization message.

[0054] Referring to FIG. 10, FIG. 10 is a structural diagram of the cell overhead part of the fine-grained basic unit provided by the present disclosure. In the example of FIG. 8, the cell overhead part is used to indicate the contents of the cell sequence number, management information, slot adjustment information, etc. The cell overhead part is composed of 7 bytes, where the MFI field represents the cell sequence number and multiframe structure, the GCCflag field represents the function of the General Communication Channel (GCC) field, and when the GCCFlag value is 11, the latter shared field is used as the GCC channel, and when the GCCFlag value is 00, the latter shared field is used as the clientID field, sub-slotID field, and RESV field. The C field represents the configuration command, the CR field represents the configuration request, and the CA field represents the configuration response, and the above three fields are used for the configuration of the client slot. The RESV is a reserved field, and the CRC field is used for the overhead content inspection function.

[0055] In one embodiment, the first data frame includes a plurality of FG-BUs, the FG-BUs including a plurality of code blocks, the FG-BUs are provided with a GCC field, and the time synchronization message is carried at the location where the GCC field is located.

[0056] Specifically, the time synchronization message is a Precision Time Protocol (PTP) synchronization message, the reference device generates an FG-BU of the first data frame and maps the client service to the FG-BU bearer, and when the FG-BU is transmitted, the PTP synchronization message is inserted into the GCC field of the cell overhead portion of the FG-BU, so that the PTP synchronization message can be transmitted to the synchronization target device along with the FG-BU.

[0057] Specifically, when the FG-BU of the first data frame is transmitted from the Ethernet port of the reference device, the transmission time of the first block of the first FG-BU, i.e., the S block, may be recorded according to the local time of the reference device, this time may be set as the first time value, and the first time value may be carried in a PTP synchronization message and transmitted to the calibration target device. When the calibration target device receives the FG-BU carrying the PTP synchronization message, it records the reception time of the first block of the FG-BU, i.e., the S block, i.e., the second time value, according to the local time of the calibration target device.

[0058] Specifically, the GCC field in the FG-BU is only 33 bits, and the PTP synchronization message is an Ethernet message larger than 64 bytes, so one FG-BU cannot carry the PTP synchronization message. Therefore, the present disclosure uses multiple FG-BUs to carry the PTP synchronization message.

[0059] Specifically, the PTP synchronization message is first 64 / 66 encoded into a 66-bit long code block stream, i.e., multiple 66-bit long message code blocks. Since the GCC field in one FG-BU is only 33 bits and can only carry a 33-bit PTP message, a single message code block is divided into two sub-code blocks, so that the GCC field in a single FG-BU carries half of a 66-bit code block, i.e., a sub-code block, and thus the GCC fields in two consecutive FG-BUs carry one complete 66-bit code block. Multiple consecutive FG-BUs are combined to complete one complete PTP synchronization message.

[0060] It should be noted that the PTP synchronization message may be started to be carried by the first FG-BU of the first data frame, or may be started to be carried by a non-first FG-BU of the first data frame, and the present invention is not limited thereto.

[0061] In addition, when the PTP synchronization message begins to be carried by the first FG-BU of the first data frame, a first time value may be determined according to the time when the S code block of the first FG-BU is transmitted from the Ethernet port of the reference device, and a second time value may be determined according to the time when the S code block of the first FG-BU is received by the synchronization target device, and in this case, the first code block may be used to indicate all code blocks or the first code block of the FG-BU, i.e., the S code block.

[0062] In addition, when the PTP synchronization message starts to be carried by a non-first FG-BU of the first data frame, a first time value may be determined according to the time when the first code block of the FG-BU starting to carry the PTP synchronization message, i.e., the S code block of the FG-BU carrying the PTP synchronization message, is transmitted from the Ethernet port of the reference device, and a second time value may be determined according to the time when the S code block of the FG-BU carrying the PTP synchronization message is received by the synchronization target device, in which case the first code block may be used to indicate all code blocks or the first code block of the first FG-BU carrying the PTP synchronization message, i.e., the S code block.

[0063] In one embodiment, the local time at which the first code block is transmitted from the reference device is the transmission time of the first code block in the fine-grained basic unit in which the time synchronization message is located, recorded in the local time of the reference device, or the transmission time of the first code block of the first fine-grained basic unit in the first data frame in which the time synchronization message is located, and the local time at which the first code block is received by the device to be calibrated is the reception time of the first code block in the fine-grained basic unit in which the time synchronization message is located, recorded in the local time of the device to be calibrated, or the reception time of the first code block of the first fine-grained basic unit in the first data frame in which the time synchronization message is located.

[0064] Referring to FIG. 11, FIG. 11 is a specific flowchart of obtaining a first time value provided by another embodiment of the present invention, and in the example of FIG. 11, step S100 further includes, but is not limited to, step S130 and step S140.

[0065] Step S130: Obtain the first time information transmitted by the reference device.

[0066] Step S140: A first time value is obtained according to the first time information.

[0067] In addition, the first time value may be carried in the PTP synchronization message of the first data frame, or may not be carried in the PTP synchronization message of the first data frame, and the present disclosure is not limited thereto. When the first time value is not carried in the PTP synchronization message of the first data frame, the first time value may be further carried in the first time information, and the first time information is separately transmitted by the reference device to the calibration target device after transmitting the first data frame, thereby preventing the processing speed of the reference device from being insufficient to support mapping the first time value into the PTP synchronization message of the first data frame after transmitting the first code block of the first data frame, and thus reducing the performance requirements for the reference device, and thus improving stability.

[0068] In addition, the first time information may be a multi-frame consisting of multiple FG-BUs, or may adopt other data structures capable of carrying the first time value, and the present invention is not limited to this.

[0069] Referring to FIG. 12, FIG. 12 is a specific flowchart of obtaining a third time value and a fourth time value provided by another embodiment of the present invention, and in the example of FIG. 12, step S200 includes, but is not limited to, step S210 and step S220.

[0070] Step S210: Determine a third time value according to a local time when the calibration target device transmits a first second code block.

[0071] Step S220: Obtain second time information sent by the reference device, and obtain a fourth time value according to the second time information.

[0072] In one embodiment, the second data frame carries a time response message carrying one or more of the first time value, the second time value, and the third time value, the second data frame includes a plurality of FG-BUs, the FG-BUs include a plurality of code blocks, the fine-grained basic unit is provided with a GCC field, and the time response message is conveyed at a location where the GCC field is located.

[0073] Specifically, the time response message is a Precision Time Protocol (PTP) response message, and the calibration target device generates an FG-BU of the second data frame and maps the client service to the FG-BU bearer, and when the FG-BU is transmitted, the PTP response message is inserted into the GCC field of the cell overhead portion of the FG-BU, so that the PTP response message can be transmitted to the synchronization target device together with the FG-BU.

[0074] Specifically, when the FG-BU of the second data frame is transmitted from the Ethernet port of the calibration target device, the transmission time of the first block of the first FG-BU, i.e., the S block, is recorded according to the local time of the calibration target device, and this time may be set as a third time value, and the third time value may be carried in a PTP response message and transmitted to the reference device. When the reference device receives the FG-BU carrying the PTP response message, it records the reception time of the first block of the FG-BU, i.e., the S block, according to the local time of the reference device, i.e., the fourth time value.

[0075] Referring to FIG. 13, FIG. 13 is a specific flowchart of obtaining a second data frame provided by another embodiment of the present invention, and in the example of FIG. 13, the time synchronization method of the present disclosure includes, but is not limited to, step S400, step S500, and step S600.

[0076] Step S400: Encode a time response message to obtain a sequence of code blocks including a plurality of 66-bit long message code blocks.

[0077] Step S500: Divide each message code block into two sub-code blocks, each of which is 33 bits long.

[0078] Step S600: Carry the subcode block to a fine-grained basic unit to obtain a second data frame, in which a normal communication channel field of the fine-grained basic unit carries one subcode block, and one 66-bit long message code block is carried in the normal communication channel fields of two fine-grained basic units.

[0079] Specifically, the GCC field in the FG-BU is only 33 bits, and the PTP response message is an Ethernet message larger than 64 bytes, so one FG-BU cannot carry the PTP response message. Therefore, the present disclosure uses multiple FG-BUs to carry the PTP response message.

[0080] Specifically, the PTP synchronization message is first 64 / 66 encoded into a 66-bit long code block stream, i.e., multiple 66-bit long message code blocks. Since the GCC field in one FG-BU is only 33 bits and can only carry a 33-bit PTP message, a single message code block is divided into two sub-code blocks, so that the GCC field in a single FG-BU carries half of a 66-bit code block, i.e., a sub-code block, and thus the GCC fields in two consecutive FG-BUs carry one complete 66-bit code block. Multiple consecutive FG-BUs are combined to complete one complete PTP response message.

[0081] In addition, the PTP response message may be carried by the first FG-BU of the second data frame, or may be carried by a non-first FG-BU of the second data frame, and the present invention is not limited thereto.

[0082] In addition, when the PTP response message begins to be carried by the first FG-BU of the second data frame, a third time value may be determined according to the time when the S code block of the first FG-BU is transmitted from the Ethernet port of the device to be calibrated, and a fourth time value may be determined according to the time when the S code block of the first FG-BU is received by the device to be synchronized, and in this case, the second code block may be used to indicate all code blocks or the first code block of the FG-BU, i.e., the S code block.

[0083] In addition, when the PTP response message begins to be carried by a non-first FG-BU of the second data frame, a third time value may be determined according to the time when the first code block of the FG-BU starting to carry the PTP response message, i.e., the S code block of the FG-BU carrying the PTP response message, is transmitted from the Ethernet port of the calibration target device, and a fourth time value may be determined according to the time when the S code block of the FG-BU carrying the PTP response message is received by the synchronization target device, and in this case, the second code block may be used to indicate all code blocks or the first code block of the first FG-BU carrying the PTP response message, i.e., the S code block.

[0084] It should be noted that the third time value may or may not be carried in the PTP response message of the second data frame, and the present disclosure is not limited thereto. When the third time value is not carried in the PTP response message of the second data frame, the third time value may be directly stored locally in the device to be calibrated. When the third time value is carried in the PTP response message of the second data frame, the second time information sent by the reference device to the device to be calibrated simultaneously carries the third time value and the fourth time value.

[0085] In addition, the second time information may be a multi-frame consisting of multiple FG-BUs, or may adopt other data structures capable of carrying the fourth time value, and the present invention is not limited to this.

[0086] In one embodiment, the local time at which the second code block is transmitted from the device to be calibrated is the transmission time of the first code block in the FG-BU in which the time response message recorded in the local time of the device to be calibrated is located, or the transmission time of the first code block in the first FG-BU in the second data frame in which the time response message is located, and the local time at which the second code block is received by the device to be calibrated is the reception time of the first code block in the FG-BU in which the time response message is located, recorded in the local time of the reference device, or the reception time of the first code block in the first FG-BU in the second data frame in which the time response message is located.

[0087] Referring to FIG. 14, FIG. 14 is a specific flowchart of performing time calibration provided by another embodiment of the present invention, and in the example of FIG. 14, step S300 includes, but is not limited to, step S310 and step S320.

[0088] Step S310: Obtain a delay value to indicate the time required to transmit a data frame between the reference device and the device to be calibrated according to the first time value, the second time value, the third time value, and the fourth time value.

[0089] Step S320: Obtain a deviation value indicating a deviation between the local times of the calibration target device and the reference device according to the first time value, the second time value, and the delay value, and perform time calibration according to the deviation value.

[0090] In one embodiment, if the round trip path delay times from the reference device to the device to be calibrated and from the device to be calibrated to the reference device are the same, i.e., the path delay times in the two directions, i.e., the delay values, are the same, and the time offset between the device to be calibrated and the reference device is the deviation value, the six numerical values ​​of the first time value, the second time value, the third time value, the fourth time value, the delay value, and the deviation value satisfy the following relationship: T2=T1+X+Y T4=T3+XY

[0091] where T1 is the first time value, T2 is the second time value, T3 is the third time value, T4 is the fourth time value, X is the delay value, and Y is the deviation value, and the above formula gives the following: X=((T2-T1)+(T4-T3)) / 2 Y=T2-T1-X Y=T3+X-T4

[0092] Therefore, the determined deviation value is the magnitude of the time deviation between the device to be calibrated and the reference device, the device to be calibrated is calibrated according to the deviation value, and after calibration, time synchronization is achieved between the device to be calibrated and the reference device.

[0093] In one embodiment, step S300 further includes obtaining a deviation value according to the third time value, the fourth time value and the delay value, and performing time calibration according to the deviation value.

[0094] Referring to FIG. 15, FIG. 15 is a flowchart of a time calibration method provided by another embodiment of the present invention, which is applied to a reference device of a time calibration system. In the example of FIG. 15, the time calibration method includes, but is not limited to, step S700, step S800, and step S900.

[0095] Step S700: A first data frame including a plurality of first code blocks is generated.

[0096] Step S800: A first data frame is transmitted to a device to be calibrated, such that the device to be calibrated obtains a first time value for indicating the local time at which a first code block at the beginning of the first data frame is transmitted from the reference device.

[0097] Step S900: The calibration target device acquires a second data frame including multiple second code blocks transmitted by the calibration target device, so as to acquire a fourth time value indicating the local time at which the first second code block was received by the reference device, and perform time calibration according to the first time value and the fourth time value.

[0098] It should be noted that the PTP synchronization message may be started to be carried by the first FG-BU of the first data frame, or may be started to be carried by a non-first FG-BU of the first data frame, and the present invention is not limited thereto.

[0099] In addition, when the PTP synchronization message begins to be carried by the first FG-BU of the first data frame, a first time value may be determined according to the time when the S code block of the first FG-BU is transmitted from the Ethernet port of the reference device, and a second time value may be determined according to the time when the S code block of the first FG-BU is received by the synchronization target device, and in this case, the first code block may be used to indicate all code blocks or the first code block of the FG-BU, i.e., the S code block.

[0100] In addition, when the PTP synchronization message starts to be carried by a non-first FG-BU of the first data frame, a first time value may be determined according to the time when the first code block of the FG-BU starting to carry the PTP synchronization message, i.e., the S code block of the FG-BU carrying the PTP synchronization message, is transmitted from the Ethernet port of the reference device, and a second time value may be determined according to the time when the S code block of the FG-BU carrying the PTP synchronization message is received by the synchronization target device, in which case the first code block may be used to indicate all code blocks or the first code block of the first FG-BU carrying the PTP synchronization message, i.e., the S code block.

[0101] In addition, the PTP response message may be carried by the first FG-BU of the second data frame, or may be carried by a non-first FG-BU of the second data frame, and the present invention is not limited thereto.

[0102] In addition, when the PTP response message begins to be carried by the first FG-BU of the second data frame, a third time value may be determined according to the time when the S code block of the first FG-BU is transmitted from the Ethernet port of the device to be calibrated, and a fourth time value may be determined according to the time when the S code block of the first FG-BU is received by the device to be synchronized, and in this case, the second code block may be used to indicate all code blocks or the first code block of the FG-BU, i.e., the S code block.

[0103] In addition, when the PTP response message begins to be carried by a non-first FG-BU of the second data frame, a third time value may be determined according to the time when the first code block of the FG-BU starting to carry the PTP response message, i.e., the S code block of the FG-BU carrying the PTP response message, is transmitted from the Ethernet port of the calibration target device, and a fourth time value may be determined according to the time when the S code block of the FG-BU carrying the PTP response message is received by the synchronization target device, and in this case, the second code block may be used to indicate all code blocks or the first code block of the first FG-BU carrying the PTP response message, i.e., the S code block.

[0104] Referring to FIG. 16, it is a flowchart of a time calibration method provided by another embodiment of the present invention. In the example of FIG. 16, the time calibration method includes, but is not limited to, step S1000 and step S1100.

[0105] Step S1000: Generate a time synchronization message, and carry the time synchronization message in a first data frame.

[0106] Step S1100: Map a first time value to a time synchronization message.

[0107] Referring to FIG. 17, FIG. 17 is a specific flowchart of carrying a time synchronization message in a first data frame provided by another embodiment of the present invention, and in the example of FIG. 17, step S1000 includes, but is not limited to, step S1010, step S1020, and step S1030.

[0108] Step S1010: Encode the time synchronization message to obtain a sequence of code blocks including a plurality of 66-bit long message code blocks.

[0109] Step S1020: Divide each message code block into two sub-code blocks, each of which is 33 bits long.

[0110] Step S1030: The subcode block is carried to the fine-grained basic unit, and a normal communication channel field of the fine-grained basic unit carries one subcode block, where one 66-bit long message code block is carried to the normal communication channel fields of two fine-grained basic units.

[0111] Specifically, the GCC field in the FG-BU is only 33 bits, and the PTP synchronization message is an Ethernet message larger than 64 bytes, so one FG-BU cannot carry the PTP synchronization message. Therefore, the present disclosure uses multiple FG-BUs to carry the PTP synchronization message.

[0112] Specifically, the PTP synchronization message is first 64 / 66 encoded into a 66-bit long code block stream, i.e., multiple 66-bit long message code blocks. Since the GCC field in one FG-BU is only 33 bits and can only carry a 33-bit PTP message, a single message code block is divided into two sub-code blocks, so that the GCC field in a single FG-BU carries half of a 66-bit code block, i.e., a sub-code block, and thus the GCC fields in two consecutive FG-BUs carry one complete 66-bit code block. Multiple consecutive FG-BUs are combined to complete one complete PTP synchronization message.

[0113] It should be noted that the PTP synchronization message may be started to be carried by the first FG-BU of the first data frame, or may be started to be carried by a non-first FG-BU of the first data frame, and the present invention is not limited thereto.

[0114] Referring to Figure 18, Figure 18 is a schematic diagram of a fine-grained basic unit provided by one embodiment of the present invention carrying a PTP message. In the example of Figure 18, the PTP message starts to be carried from the fourth FG-BU, and the transmission or reception time of the first code block of the fourth FG-BU can be the transmission or reception time of the PTP message.

[0115] Referring to Figure 19, Figure 19 is a schematic diagram of a fine-grained basic unit provided by another embodiment of the present invention carrying a PTP message. In the example of Figure 19, the PTP message starts to be carried from the fourth FG-BU, but the fourth FG-BU is in the Xth FG-BU group, i.e., in the Xth multiframe consisting of multiple FG-BUs, so the transmission time and reception time of the first code block in the first FG-BU of the Xth FG-BU group can be the transmission time and reception time of the PTP message.

[0116] Referring to FIG. 20, FIG. 20 is a flowchart of a time calibration method provided by another embodiment of the present invention, and in the example of FIG. 20, the time calibration method includes, but is not limited to, step S1200 and step S1300.

[0117] Step S1200: After sending a first data frame to a calibration target device, generate first time information carrying a first time value.

[0118] Step S1300: Transmit first time information to the calibration target device.

[0119] In addition, the first time value may be carried in the PTP synchronization message of the first data frame, or may not be carried in the PTP synchronization message of the first data frame, and the present disclosure is not limited thereto. When the first time value is not carried in the PTP synchronization message of the first data frame, the first time value may be further carried in the first time information, and the first time information is separately transmitted by the reference device to the calibration target device after transmitting the first data frame, thereby preventing the processing speed of the reference device from being insufficient to support mapping the first time value into the PTP synchronization message of the first data frame after transmitting the first code block of the first data frame, and thus reducing the performance requirements for the reference device, and thus improving stability.

[0120] In addition, the first time information may be a multi-frame consisting of multiple FG-BUs, or may adopt other data structures capable of carrying the first time value, and the present invention is not limited to this.

[0121] Referring to FIG. 21, FIG. 21 is a flowchart of a time calibration method provided by another embodiment of the present invention, and in the example of FIG. 21, the time calibration method includes, but is not limited to, step S1400 and step S1500.

[0122] Step S1400: Generate second time information in response to the second data frame, the second time information carrying a fourth time value.

[0123] Step S1500: Transmit second time information to the calibration target device.

[0124] It should be noted that the third time value may or may not be carried in the PTP response message of the second data frame, and the present disclosure is not limited thereto. When the third time value is not carried in the PTP response message of the second data frame, the third time value may be directly stored locally in the device to be calibrated. When the third time value is carried in the PTP response message of the second data frame, the second time information sent by the reference device to the device to be calibrated simultaneously carries the third time value and the fourth time value.

[0125] In addition, the second time information may be a multi-frame consisting of multiple FG-BUs, or may adopt other data structures capable of carrying the fourth time value, and the present invention is not limited to this.

[0126] Also, referring to FIG. 22, FIG. 22 is a schematic diagram of a time calibration device 200 including a memory 220, a processor 210, and a computer program stored in the memory 220 and executable by the processor 210, provided in accordance with one embodiment of the present invention.

[0127] The processor 210 and the memory 220 may be connected by a bus or in some other manner.

[0128] The memory 220 may be used as a non-transitory computer-readable storage medium to store non-transitory software programs and non-transitory computer-executable programs. The memory 220 may also include high-speed random access memory, and may further include non-transitory memory, such as at least one disk memory device, flash memory device, or other non-transitory solid-state memory device. In some embodiments, the memory 220 may optionally include remote memory that is remotely provided with respect to the processor 210, and these remote memories may be connected to the processor 210 via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0129] The non-transitory software programs and instructions required to implement the time calibration method of the above embodiment are stored in the memory 220 and, when executed by the processor 210, perform the time calibration method of the above embodiment.

[0130] Furthermore, one embodiment of the present invention further provides a computer-readable storage medium storing computer-executable instructions executed by a processor or controller, for example, by a processor in the above-mentioned apparatus or device embodiments, thereby causing the processor to execute the time calibration method in the above-mentioned embodiment.

[0131] Those skilled in the art will understand that all or part of the steps in the methods, systems disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a CPU, digital signal processor, or microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as a dedicated integrated circuit. Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (e.g., computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that stores the desired information and can be accessed by a computer. Additionally, as known to those skilled in the art, communication media typically includes computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier or other transport mechanism, and may include any information delivery media.

[0132] Although the above describes in detail the more preferred implementation of the present invention, the present invention is not limited to the above embodiment, and those skilled in the art may make various equivalent modifications or substitutions without departing from the spirit of the present invention, and all of these equivalent modifications or substitutions are included within the scope limited by the claims of the present invention. [Explanation of symbols]

[0133] 100 reference devices, 110 devices to be calibrated, 200 time calibration devices, 210 processors, 220 memory

Claims

1. 1. A time calibration method applied to a calibration target device of a time calibration system including a reference device and a calibration target device, comprising: obtaining a first data frame transmitted by the reference device, the first data frame including a plurality of first code blocks; obtaining a first time value and a second time value, the first time value being used to indicate a local time at which a first of the first code blocks was transmitted from the reference device, and the second time value being used to indicate a local time at which a first of the first code blocks was received by the calibration target device; transmitting a second data frame to the reference device in response to the first data frame, the second data frame including a plurality of second code blocks; obtaining a third time value and a fourth time value, the third time value being used to indicate a local time at which a first of the second code blocks was transmitted from the calibration target device, and the fourth time value being used to indicate a local time at which a first of the second code blocks was received by the reference device; performing a time calibration according to the first time value, the second time value, the third time value, and the fourth time value so as to synchronize a local time of the calibration target device with the reference device. Time calibration method.

2. the first data frame carries the first time value; Obtaining the first time value and the second time value includes: obtaining the first time value in response to the first data frame; determining the second time value in response to the first data frame as a function of a local time at which the device under calibration received an initial first code block; The method of claim 1 , comprising:

3. the first data frame carries a time synchronization message carrying the first time value; Obtaining the first time value in response to the first data frame includes: obtaining the time synchronization message in response to the first data frame; obtaining the first time value in response to the time synchronization message; The time calibration method of claim 2 , comprising:

4. The first data frame includes a plurality of fine-grained basic units, the fine-grained basic units include a plurality of code blocks, the fine-grained basic units are provided with a normal communication channel field, and the time synchronization message is carried to a position where the normal communication channel field is located. The time calibration method according to claim 3.

5. The first code block is used to indicate all the code blocks or the first code block of the fine-grained basic unit. The time calibration method according to claim 4.

6. the time synchronization message is carried in some of the fine-grained basic units in the first data frame, and the first code block is used to indicate all the code blocks or the first code block of the fine-grained basic unit in which the time synchronization message is carried; The time calibration method according to claim 4.

7. The local time at which the first code block is transmitted from the reference device is the transmission time of the first code block in the fine-grained basic unit in which the time synchronization message is located, recorded in the local time of the reference device, or the transmission time of the first code block of the first fine-grained basic unit in the first data frame in which the time synchronization message is located; The local time at which the first code block is received by the calibration target device is the reception time of the first code block in the fine-grained basic unit in which the time synchronization message is located, recorded in the local time of the calibration target device, or the reception time of the first code block of the first fine-grained basic unit in the first data frame in which the time synchronization message is located. The time calibration method according to claim 4.

8. Obtaining the first time value includes: Obtaining first time information transmitted by the reference device; obtaining the first time value in response to the first time information; The time calibration method of claim 1 further comprising:

9. the second data frame carries the fourth time value; Obtaining the third time value and the fourth time value includes: determining the third time value according to a local time of the first of the second code blocks; obtaining second time information transmitted by the reference device and obtaining the fourth time value according to the second time information; The method of claim 1 , comprising:

10. The second data frame carries a time response message carrying one or more of the first time value, the second time value, and the third time value, the second data frame includes a plurality of fine-grained basic units, the fine-grained basic units include a plurality of code blocks, the fine-grained basic units are provided with a normal communication channel field, and the time synchronization message is carried at a position where the normal communication channel field is located. The time calibration method according to claim 1 .

11. encoding the time response message to obtain a sequence of code blocks including a plurality of 66-bit long message code blocks; dividing each of said message code blocks into two sub-code blocks, each of said sub-code blocks being 33 bits in length; conveying the sub-code blocks to the fine-grained basic units to obtain the second data frame, the normal communication channel field of the fine-grained basic units conveying one of the sub-code blocks, and one of the 66-bit long message code blocks conveyed in the normal communication channel fields of two of the fine-grained basic units; The time calibration method of claim 10 further comprising:

12. The local time at which the second code block is transmitted from the calibration target device is the transmission time of the first code block in the fine-grained basic unit in which the time response message is located, recorded in the local time of the calibration target device, or the transmission time of the first code block of the first fine-grained basic unit in the second data frame in which the time response message is located; The local time at which the second code block is received by the calibration target device is the reception time of the first code block in the fine-grained basic unit in which the time response message is located, recorded in the local time of the reference device, or the reception time of the first code block of the first fine-grained basic unit in the second data frame in which the time response message is located. The time calibration method according to claim 10.

13. performing time calibration according to the first time value, the second time value, the third time value, and the fourth time value; obtaining a delay value indicative of a time required to transmit a data frame between the reference device and the device to be calibrated in response to the first time value, the second time value, the third time value, and the fourth time value; obtaining a deviation value indicating a deviation between a local time of the calibration target device and a local time of the reference device according to the first time value, the second time value, and the delay value, and performing time calibration according to the deviation value; The method of claim 1 , comprising:

14. performing time calibration according to the first time value, the second time value, the third time value, and the fourth time value; obtaining the deviation value according to the third time value, the fourth time value, and the delay value, and adjusting the local time of the calibration target device according to the deviation value to complete time calibration; The time calibration method of claim 13 further comprising:

15. 1. A time calibration method applied to a calibration target device of a time calibration system including a reference device and a calibration target device, comprising: generating a first data frame including a plurality of first code blocks; transmitting the first data frame to the calibration target device such that the calibration target device obtains a first time value indicating a local time at which the first code block of the first data frame was transmitted from the reference device; acquiring a second data frame including a plurality of the second code blocks transmitted by the calibration target device, such that the calibration target device acquires a fourth time value indicating a local time at which a first second code block is received by the reference device, and performs time calibration according to the first time value and the fourth time value; A method for time calibration, including:

16. generating a time synchronization message and carrying the time synchronization message in the first data frame; mapping the first time value into the time synchronization message; The time calibration method of claim 15 further comprising:

17. The first data frame includes a plurality of fine-grained basic units, each of which is made up of a plurality of 66-bit long code blocks, and a normal communication channel field is provided in the fine-grained basic unit, and the time synchronization message is carried to a position where the normal communication channel field is located.

17. The time calibration method according to claim 16.

18. The first data frame includes a plurality of fine-grained elementary units; Carrying the time synchronization message in the first data frame comprises: encoding the time synchronization message to obtain a sequence of code blocks including a plurality of 66-bit long message code blocks; dividing each of said message code blocks into two sub-code blocks, each of said sub-code blocks being 33 bits in length; conveying the sub-code block to the fine-grained basic unit, the normal communication channel field of the fine-grained basic unit conveying one of the sub-code blocks, and one 66-bit long message code block being conveyed to the normal communication channel field of two of the fine-grained basic units; 20. The time calibration method of claim 17, comprising:

19. generating first time information carrying the first time value after transmitting the first data frame to the calibration target device; Transmitting the first time information to the calibration target device; The time calibration method of claim 15 further comprising:

20. generating second time information carrying the fourth time value in response to the second data frame; Transmitting the second time information to the calibration target device; The time calibration method of claim 15 further comprising:

21. A time calibration device including a memory, a processor, and a computer program stored in the memory and executable by the processor, When the processor executes the computer program, the time calibration method according to any one of claims 1 to 14 or claims 15 to 20 is realized. Time calibration device.

22. storing computer executable instructions for causing a computer to carry out the time calibration method according to any one of claims 1 to 14 or claims 15 to 20; A computer-readable storage medium.