Time Calibration Method, Communication Device, and Computer-Readable Medium

The time information is transmitted through cell mode and the time deviation value is calculated, which solves the time synchronization problem between high-bandwidth equipment and low-speed dedicated line services in the communication network, realizes time calibration between Ethernet devices, and meets the high-quality time synchronization needs.

CN114499727BActive Publication Date: 2025-07-29NANJING ZHONGXING XIN SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011165572.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-27
Publication Date
2025-07-29
Estimated Expiration
2040-10-27

AI Technical Summary

Technical Problem

In communication networks, it is difficult for the prior art to achieve time synchronization between high-bandwidth devices and low-rate dedicated line services, especially in time synchronization between Ethernet devices, and time calibration cannot be effectively performed.

Method used

Time information is transmitted through cell mode, the transmission and reception time of the cell is determined, and the time deviation value is calculated for time calibration. The precise time protocol message is used to carry part of the message data in the cell to achieve time synchronization.

Benefits of technology

Time synchronization between devices in cell mode communication is realized, the efficiency and accuracy of time calibration are improved, and the high-quality requirements for time synchronization of low-speed dedicated line services are met.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114499727B_ABST
    Figure CN114499727B_ABST
Patent Text Reader

Abstract

The present disclosure provides a time calibration method, including: determining a first reception time corresponding to a first cell in response to the first cell sent by a first device, and sending a second cell to the first device; receiving a third cell carried with a second reception time corresponding to the second cell fed back by the first device, determining a first time deviation value according to a first transmission time, the first reception time, a second transmission time corresponding to the second cell, and the second reception time, and performing time calibration according to the first time deviation value. The present disclosure also provides a communication device and a computer-readable medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technologies, and in particular, to a time calibration method, a communication device, and a computer-readable medium. Background Art

[0002] At present, the bandwidth of communication network information transmission has increased rapidly. The interface bandwidth speed of communication devices has now reached 100G. While the network provides corresponding support for high-bandwidth services, it still needs to transmit low-rate dedicated line services, such as power, banking, railways, etc. The bandwidth required for such dedicated line services is much smaller than the interface bandwidth of the device network port, but its requirements for the quality of service of the bandwidth service are very high, and it is necessary to strictly ensure bandwidth exclusivity and physical isolation without being affected by other services. To this end, the cell mode is usually used for communication in the network, and the corresponding services are carried on multiple cells. If the bandwidth requirement is small, a small number of cells are used, which solves the needs of customers with different speeds. Correspondingly, time synchronization is a basic requirement of the communication network. When communication is carried out in the cell mode, the time synchronization between Ethernet devices has become a current research topic. Summary of the Invention

[0003] The present disclosure aims to at least solve one of the technical problems existing in the prior art, and provides a time calibration method, a communication device, and a computer-readable medium.

[0004] To achieve the above object, in a first aspect, an embodiment of the present disclosure provides a time calibration method, including:

[0005] In response to a first cell sent by a first device, determining a first reception time corresponding to the first cell, and sending a second cell to the first device, where the first cell carries a first transmission time corresponding to the first cell;

[0006] Receiving a third cell carried by the first device and carrying a second reception time corresponding to the second cell, determining a first time deviation value according to the first transmission time, the first reception time, a second transmission time corresponding to the second cell, and the second reception time, and performing time calibration according to the first time deviation value.

[0007] In a second aspect, an embodiment of the present disclosure further provides a time calibration method, including:

[0008] Determining a first transmission time corresponding to a first cell, placing the first transmission time in the first cell, and sending the first cell to a second device;

[0009] In response to a second cell sent by the second device, determine a second reception time corresponding to the second cell, place the second reception time in a third cell, and feedback the third cell to the second device, so that the second device can determine a first time deviation value according to the first transmission time, the first reception time corresponding to the first cell, the second transmission time of the second cell, and the second reception time, and perform time calibration according to the first time deviation value.

[0010] In a third aspect, an embodiment of the present disclosure further provides a communication device, including:

[0011] One or more processors;

[0012] A storage device for storing one or more programs;

[0013] When the one or more programs are executed by the one or more processors, the one or more processors implement the time calibration method including the step of sending a second cell to the first device as described in the above embodiment.

[0014] In a fourth aspect, an embodiment of the present disclosure further provides a communication device, including:

[0015] One or more processors;

[0016] A storage device for storing one or more programs;

[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the time calibration method including the step of sending the first cell to the second device as described in the above embodiment.

[0018] In a fifth aspect, an embodiment of the present disclosure further provides a computer-readable medium, on which a computer program is stored, wherein when the program is executed by a processor, it implements the steps in the time calibration method including sending a second cell to the first device as described in the above embodiment, and / or when the program is executed by a processor, it implements the steps in the time calibration method including sending the first cell to the second device as described in the above embodiment.

[0019] The present disclosure has the following beneficial effects:

[0020] The embodiment of the present disclosure provides a time calibration method, a communication device, and a computer-readable medium. The corresponding time information can be transmitted by using cells, the transmission time and reception time corresponding to the cells can be determined, and the time deviation value can be calculated for time calibration, so as to achieve time synchronization when communicating in the cell mode. Description of the Drawings

[0021] Figure 1Flowchart of a time calibration method provided by an embodiment of the present disclosure;

[0022] Figure 2 Flowchart of a specific implementation method of step S1 in an embodiment of the present disclosure;

[0023] Figure 3 Flowchart of a specific implementation method of step S2 in an embodiment of the present disclosure;

[0024] Figure 4 Flowchart of another time calibration method provided by an embodiment of the present disclosure;

[0025] Figure 5 Flowchart of yet another time calibration method provided by an embodiment of the present disclosure

[0026] Figure 6 Flowchart of a specific implementation method of step S7 in an embodiment of the present disclosure;

[0027] Figure 7 Flowchart of a specific implementation method of step S8 in an embodiment of the present disclosure;

[0028] Figure 8 Flowchart of yet another time calibration method provided by an embodiment of the present disclosure;

[0029] Figure 9 Schematic structural diagram of a communication device provided by an embodiment of the present disclosure;

[0030] Figure 10 Schematic structural diagram of another communication device provided by an embodiment of the present disclosure;

[0031] Figure 11 Schematic structural diagram of a computer-readable medium provided by an embodiment of the present disclosure. Detailed implementation manners

[0032] To enable those skilled in the art to better understand the technical solutions of the present disclosure, the time calibration method, communication device, and computer-readable medium provided by the present disclosure will be described in detail below with reference to the accompanying drawings.

[0033] Example embodiments will be described more fully hereinafter with reference to the accompanying drawings, but the example embodiments may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. On the contrary, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0034] The terms used herein are for the purpose of describing particular embodiments only and are not intended to limit the present disclosure. As used herein, the singular forms "a" and "the" are also intended to include the plural forms unless the context clearly indicates otherwise. It will also be understood that when the terms "comprises" and / or "comprising" are used in this specification, they specify the presence of the stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0035] It will be understood that although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. Thus, without departing from the teachings of the present disclosure, the first element, the first component, or the first module discussed below may be referred to as the second element, the second component, or the second module.

[0036] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted as having an idealized or overly formal meaning unless expressly so defined herein.

[0037] The time calibration method, communication device, and computer-readable medium provided by the present disclosure can be used to transmit corresponding time information using cells, determine the transmission time and reception time corresponding to the cells, and calculate the time deviation value for time calibration, so as to achieve time synchronization when communicating using cells.

[0038] Figure 1 This is a flowchart of a time calibration method provided for an embodiment of the present disclosure. As Figure 1 shown, when applied to a second device, the method includes:

[0039] Step S1, in response to a first cell sent by a first device, determine a first reception time corresponding to the first cell, and send a second cell to the first device.

[0040] Wherein, the first cell carries a first transmission time corresponding to the first cell.

[0041] Specifically, the reception time of a cell is obtained from the clock of the device that receives the cell, that is, the corresponding moment when the device receives the cell, and the transmission time of the cell is obtained from the clock of the device that transmits the cell, that is, the corresponding moment when the device sends the cell; in step S1, generally speaking, the first reception time corresponding to the first cell is the reception time of the first cell, which can be determined by direct measurement or by calculation based on the reception times of other cells and the number of related code blocks; in some embodiments, the first reception time corresponding to the first cell can also be determined according to the relevant time parameters of the cell multiplex frame to which the first cell belongs.

[0042] Step S2: Receive a third cell carried with the second reception time corresponding to the second cell fed back by the first device, determine a first time deviation value according to the first transmission time, the first reception time, the second transmission time and the second reception time corresponding to the second cell, and perform time calibration according to the first time deviation value.

[0043] Correspondingly, in step S2, generally speaking, the second transmission time corresponding to the second cell is the transmission time of the second cell, which can be determined by direct measurement or by calculation based on the transmission times of other cells and the number of related code blocks; in some embodiments, the second transmission time corresponding to the second cell can also be determined according to the relevant time parameters of the cell multiplex frame to which the second cell belongs.

[0044] In some embodiments, in the step of determining the time deviation value Offset according to the first transmission time T1, the first reception time T2, the second transmission time T3 and the second reception time T4, specifically, based on the following formula:

[0045] T2 = T1 + Delay + Offset; T4 = T3 + Delay - Offset; Solve for the delay value Delay and the time deviation value Offset.

[0046] It should be noted that the above description of calculating the time deviation value is only an optional implementation manner in the present disclosure, which will not limit the technical solution of the present disclosure, and other calculation methods and parameter determination processes are also applicable to the technical solution of the present disclosure.

[0047] In some embodiments, the first device may also be referred to as the master device or the reference device, and the second device, or the slave device, performs time calibration with the first device as the reference clock source to achieve time synchronization between the two devices.

[0048] An embodiment of the present disclosure provides a time calibration method, which can be used to receive and determine the first transmission time and the first reception time corresponding to the first cell when communicating in a cell mode, feedback the second cell and determine the second reception time and the second transmission time corresponding to the second cell, determine the first time deviation value according to the two sets of transmission times and reception times, and perform time calibration to achieve time synchronization between the device and the reference device.

[0049] In some embodiments, at least part of the message data of the Precision Time Protocol (PTP) message corresponding to each of the first cell, the second cell, and the third cell is carried therein; the Precision Time Protocol message includes: a Synchronize (Sync) message, a Delay Request (Delay_Req) message, and a Delay Response (Delay_Resp) message.

[0050] Specifically, when performing time calibration using the Precision Time Protocol, the first transmission time, the first reception time, the second transmission time, and the second reception time are all reflected in the form of timestamps. The second device determines the corresponding transmission time or reception time by obtaining the timestamp in the message data carried by the cell, parsing, and recording the timestamp value.

[0051] Among them, when communicating between devices in a message mode, each device directly sends a Precision Time Protocol message carrying a timestamp, parses the message, and extracts the timestamp to complete the calculation of the time deviation value and subsequent time calibration. However, when communicating between devices in a cell mode, the Precision Time Protocol message cannot be directly transmitted, so the transmission time and reception time corresponding to the Precision Time Protocol message cannot be determined, and time synchronization based on the Precision Time Protocol cannot be performed. In the embodiment of the present disclosure, at least part of the message data of the Precision Time Protocol message corresponding to each cell is carried by the cell to achieve time calibration and time synchronization based on the Precision Time Protocol.

[0052] Figure 2 It is a flowchart of a specific implementation method of step S1 in the embodiment of the present disclosure. Specifically, a single Precision Time Protocol message corresponds to multiple message cells, and all its message data is sent through the General Communication Channel (GCC) in the overhead area of the multiple message cells; the first cell is the first cell among the multiple first message cells corresponding to the Synchronize message; as Figure 2 shown, in step S1, the step of determining the first reception time corresponding to the first cell includes: step S101a.

[0053] Step S101a: Determine the reception time of the first cell as the first reception time.

[0054] In step S101a, directly use the reception time of the first cell as the first reception time, that is, use the reception time of the first cell among the multiple first message cells corresponding to the time synchronization message as the first reception time.

[0055] Specifically, a single Precision Time Protocol (PTP) message corresponds to multiple message cells, which means that the message data of a single PTP message is carried by multiple message cells. Here, the description of "message cell" is only used to indicate that the cell carries the message data of the corresponding message. Since the overhead area of a single cell can carry less information, and the length of a single PTP message is at least 64 bytes, in some embodiments, a PTP message needs to be carried by multiple cells.

[0056] Alternatively, in step S1, the step of determining the first reception time corresponding to the first cell includes: step S101b.

[0057] Step S101b: Determine the reception time of the first cell of the cell multiplex frame to which the first cell belongs as the first reception time.

[0058] In step S101b, use the reception time of the first cell of the cell multiplex frame to which the first cell belongs as the first reception time, that is, use the reception time of the first cell of the first cell multiplex frame corresponding to the time synchronization message as the first reception time. Specifically, the first cell is the first cell among the multiple first message cells corresponding to the time synchronization message. Since there is a situation where the first cell is not the first cell of the cell multiplex frame to which it belongs, in this case, use the time information of the first cell of this cell multiplex frame as the reference.

[0059] It should be noted that the "first" in the first cell corresponding to the message means that among all the cells corresponding to this message, the sending order of this cell is the first, that is, it is prior in terms of time sequence.

[0060] Figure 3 This is a flowchart of a specific implementation method for step S2 in the embodiments of the present disclosure. Specifically, the second cell is the first cell among the multiple second message cells corresponding to the delay request message; in step S2, before the step of determining the first time deviation value according to the first transmission time, the first reception time, the second transmission time and the second reception time corresponding to the second cell, and performing time calibration according to the first time deviation value, it further includes: step S201a.

[0061] Step S201a: Determine the transmission time of the second cell as the second transmission time.

[0062] In step S201a, directly use the transmission time of the second cell as the second transmission time, that is, use the transmission time of the first cell among the multiple second message cells corresponding to the delay request message as the second transmission time.

[0063] Alternatively, in step S2, before the step of determining the first time deviation value according to the first transmission time, the first reception time, the second transmission time and the second reception time corresponding to the second cell, and performing time calibration according to the first time deviation value, it further includes: step S201b.

[0064] Step S201b: Determine the transmission time of the first cell of the cell multiframe to which the second cell belongs as the second transmission time.

[0065] In step S201b, use the transmission time of the first cell of the cell multiframe to which the second cell belongs as the second transmission time, that is, use the transmission time of the first cell of the first cell multiframe corresponding to the delay request message as the second transmission time.

[0066] The embodiments of the present disclosure provide a time calibration method, which can be used to place the message data corresponding to the precise time protocol message in the cell when communicating in cell mode, so as to achieve time calibration and time synchronization based on cell mode and precise time protocol.

[0067] Figure 4 It is a flowchart of another time calibration method provided by the embodiments of the present disclosure. As Figure 4 shown, this method is a specific optional implementation scheme based on Figure 1 the method shown. Specifically, the first reception time is determined by the reception time of the first cell of the cell multiframe to which the first cell belongs, and the second transmission time is determined by the transmission time of the first cell of the cell multiframe to which the second cell belongs; this method not only includes step S1 and step S2, but also includes: step S3 to step S6.

[0068] Step S3: Receive the number of attachment code blocks of each cell multiframe sent by the first device, and determine the first expected reception time of each cell multiframe sent by the first device according to the number of attachment code blocks and the first reception time, and determine the first expected transmission time of each cell multiframe sent by itself according to the number of attachment code blocks and the second transmission time.

[0069] In step S3, determine the time when it is expected to receive each cell multiframe sent by the first device according to the number of attachment code blocks and the first reception time, and determine the time when it is expected to send each cell multiframe according to the number of attachment code blocks and the second transmission time. Among them, the first expected reception (transmission) time of the obtained cell multiframe is the expected reception (transmission) time of the first cell therein.

[0070] Specifically, the first expected reception time Tx+1 can be obtained based on the following formula: T x+1 = T x +(n * m + y x ) * w * t; where, T x is the first reception time corresponding to the previous time calibration process, n is the number of cells in a cell multiframe, m is the number of bit blocks in a cell, w is the bit block size, t is the transmission duration corresponding to a bit block, and n, m, and t can be set as fixed values; y x represents the number of subsidiary code blocks, where the subsidiary code blocks are non-cell code blocks, including other code blocks except for S blocks, D blocks, and T blocks, such as O blocks and idle blocks. And the first expected transmission time can be calculated based on a similar method.

[0071] It should be noted that the present disclosure embodiment does not limit the execution order of step S1 - step S2 and step S3. Step S3 can be performed after step S2, or step S3 can be interspersed with step S2.

[0072] After the step of performing time calibration according to the first time deviation value in step S2, it further includes:

[0073] Step S4, in response to the fourth cell sent by the first device, use the first expected reception time of the cell multiframe to which the fourth cell belongs as the third reception time corresponding to the fourth cell.

[0074] Among them, the fourth cell carries the third transmission time corresponding to the fourth cell.

[0075] Specifically, when performing time calibration again later, the calculated expected reception (transmission) time can be directly used to obtain the reception (transmission) time corresponding to the cell. Thus, there is no need for a real-time detection process.

[0076] In some embodiments, the cell also carries the cell multiframe identifier of the cell multiframe to which it belongs. Thus, the device can quickly know the cell multiframe to which the cell belongs and find the corresponding expected reception (transmission) time based on this. Among them, the cell multiframe identifier can include various forms such as the cell multiframe serial number and the cell multiframe label; generally speaking, each cell multiframe is sent in the corresponding serial number order, and the serial number repeats continuously, and each cell multiframe is sent cyclically.

[0077] Step S5, send a fifth cell to the first device, and use the first expected transmission time of the cell multiframe to which the fifth cell belongs as the fourth transmission time corresponding to the fifth cell.

[0078] Step S6: Receive the sixth cell carrying the fourth reception time corresponding to the fifth cell from the first device, determine the second time deviation value based on the third transmission time, the third reception time, the fourth transmission time, and the fourth reception time, and perform time calibration according to the second time deviation value.

[0079] Embodiments of the present disclosure provide a time calibration method, which can be used to calculate the time information required for the current time calibration based on the number of attached code blocks and the time information of the previous time calibration, thereby eliminating the need for real-time detection processes and improving the calibration efficiency.

[0080] Figure 5 It is a flowchart of another time calibration method provided by the embodiments of the present disclosure. As Figure 5 shown, applied to the first device, the method includes:

[0081] Step S7: Determine the first transmission time corresponding to the first cell, place the first transmission time in the first cell, and send the first cell to the second device.

[0082] Step S8: In response to the second cell sent by the second device, determine the second reception time corresponding to the second cell, place the second reception time in the third cell, and feedback the third cell to the second device.

[0083] In step S8, feedback the third cell to the second device for the second device to determine the first time deviation value based on the first transmission time, the first reception time corresponding to the first cell, the second transmission time, and the second reception time of the second cell, and perform time calibration according to the first time deviation value.

[0084] In some embodiments, the first cell, the second cell, and the third cell carry at least part of the message data of the precise time protocol message corresponding to each of them; the precise time protocol message includes: time synchronization message, delay request message, and delay request response message.

[0085] Figure 6 It is a flowchart of a specific implementation method of step S7 in the embodiments of the present disclosure. Specifically, a single precise time protocol message corresponds to multiple message cells, and all its message data is sent through the general communication channel in the overhead area of the multiple message cells; the first cell is the first cell among the multiple first message cells corresponding to the time synchronization message; as Figure 5 shown, in step S7, the step of determining the first transmission time corresponding to the first cell includes: step S701a.

[0086] Step S701a: Determine the transmission time of the first cell as the first transmission time.

[0087] In step S701a, the transmission time of the first cell is directly used as the first transmission time, that is, the transmission time of the first cell among the multiple first message cells corresponding to the time synchronization message is used as the first transmission time.

[0088] Alternatively, in step S7, the step of determining the first transmission time corresponding to the first cell includes: step S701b.

[0089] Step S701b: Determine the transmission time of the first cell of the cell multiplex frame to which the first cell belongs as the first transmission time.

[0090] In step S701b, the transmission time of the first cell of the cell multiplex frame to which the first cell belongs is used as the first transmission time, that is, the transmission time of the first cell of the first cell multiplex frame corresponding to the time synchronization message is used as the first transmission time.

[0091] Figure 7 This is a flowchart of a specific implementation method for step S8 in the embodiments of the present disclosure. Specifically, the second cell is the first cell among the multiple second message cells corresponding to the delay request message; as Figure 7 shown, in step S8, the step of determining the second reception time corresponding to the second cell includes: step S801a.

[0092] Step S801a: Determine the reception time of the second cell as the second reception time.

[0093] In step S801a, the reception time of the second cell is directly used as the second reception time, that is, the reception time of the first cell among the multiple second message cells corresponding to the delay request message is used as the second reception time.

[0094] Alternatively, in step S8, the step of determining the second reception time corresponding to the second cell includes: step S801b.

[0095] Step S801b: Determine the reception time of the first cell of the cell multiplex frame to which the second cell belongs as the second reception time.

[0096] In step S801b, the reception time of the first cell of the cell multiplex frame to which the second cell belongs is used as the second reception time, that is, the reception time of the first cell of the first cell multiplex frame corresponding to the delay request message is used as the second reception time.

[0097] Figure 8 This is a flowchart of yet another time calibration method provided by the embodiments of the present disclosure. As Figure 8 shown, this method is based on Figure 5A specific alternative implementation of the method shown. Specifically, the first transmission time is determined by the transmission time of the first cell in the cell multiplex frame to which the first cell belongs, and the second reception time is determined by the reception time of the first cell in the cell multiplex frame to which the second cell belongs; this method not only includes steps S7 and S8, but also includes: steps S9 to S11.

[0098] Step S9: Determine the second expected transmission time of each cell multiplex frame to be sent by itself according to the number of appended code blocks of each cell multiplex frame and the first transmission time, and determine the second expected reception time of each cell multiplex frame sent by the second device according to the number of appended code blocks and the second reception time.

[0099] In step S9, determine the time when each cell multiplex frame is expected to be sent by itself according to the number of appended code blocks and the first transmission time, and determine the time when each cell multiplex frame sent by the second device is expected to be received by itself according to the number of appended code blocks and the second reception time. Among them, the second expected reception (transmission) time of the obtained cell multiplex frame is the expected reception (transmission) time of the first cell therein, and the specific calculation method can refer to the corresponding description in step S3.

[0100] It should be noted that the present disclosure embodiment does not limit the execution order of steps S7 - S8 and step S9. Step S9 can be performed after step S8, or step S9 can be interspersed with step S8.

[0101] After step S8, the step of feeding back the third cell to the second device, further includes:

[0102] Step S10: Use the second expected transmission time of the cell multiplex frame to which the fourth cell belongs as the third transmission time corresponding to the fourth cell, place the third transmission time in the fourth cell, and send the fourth cell to the second device.

[0103] Specifically, when subsequent time calibration is performed again, the expected reception (transmission) time obtained by calculation can be directly used to obtain the reception (transmission) time corresponding to the cell. Thus, there is no need for a real-time detection process.

[0104] Step S11: In response to the fifth cell sent by the second device, use the second expected reception time of the cell multiplex frame to which the fifth cell belongs as the fourth reception time of the fifth cell, place the fourth reception time in the sixth cell, and feed back the sixth cell to the second device.

[0105] In step S11, feed back the sixth cell to the second device, so that the second device can determine the second time deviation value according to the third transmission time, the third reception time corresponding to the fourth cell, the fourth transmission time corresponding to the fifth cell, and the fourth reception time, and perform time calibration according to the second time deviation value.

[0106] Figure 9 A structural schematic diagram of a communication device provided by an embodiment of the present disclosure. As Figure 9 shown, the communication device includes:

[0107] One or more processors 101;

[0108] A memory device 102, on which one or more programs are stored. When the one or more programs are executed by the one or more processors, the one or more processors implement the time calibration method including step S1 as described in any of the above embodiments;

[0109] One or more I / O interfaces 103, connected between the processor and the memory, configured to implement information interaction between the processor and the memory.

[0110] Among them, the processor 101 is a device with data processing capabilities, which includes but is not limited to a central processing unit (CPU), etc.; the memory 102 is a device with data storage capabilities, which includes but is not limited to a random access memory (RAM, more specifically such as SDRAM, DDR, etc.), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory (FLASH); the I / O interface (read / write interface) 103 is connected between the processor 101 and the memory 102, and can implement information interaction between the processor 101 and the memory 102, which includes but is not limited to a data bus (Bus), etc.

[0111] In some embodiments, the processor 101, the memory 102, and the I / O interface 103 are interconnected through a bus 104, and further connected to other components of the computing device.

[0112] Figure 10 A structural schematic diagram of another communication device provided by an embodiment of the present disclosure. As Figure 10 shown, the communication device includes:

[0113] One or more processors 201;

[0114] A memory 202, on which one or more programs are stored. When the one or more programs are executed by the one or more processors, the one or more processors implement the time calibration method including step S7 as described in any of the above embodiments;

[0115] One or more I / O interfaces 203, connected between the processor and the memory, configured to implement information interaction between the processor and the memory.

[0116] Among them, the processor 201 is a device with data processing capabilities, including but not limited to a central processing unit (CPU), etc.; the memory 202 is a device with data storage capabilities, including but not limited to a random access memory (RAM, more specifically such as SDRAM, DDR, etc.), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), and a flash memory (FLASH); the I / O interface (read / write interface) 203 is connected between the processor 201 and the memory 202 and can realize the information interaction between the processor 201 and the memory 202, including but not limited to a data bus (Bus), etc.

[0117] In some embodiments, the processor 201, the memory 202, and the I / O interface 203 are interconnected through a bus 204 and are further connected to other components of the computing device.

[0118] Figure 11 It is a schematic structural diagram of a computer-readable medium provided by an embodiment of the present disclosure. A computer program is stored on the computer-readable medium. Among them, when the program is executed by a processor, it implements the steps in the time calibration method including step S1 in any one of the above embodiments, and / or, when the program is executed by a processor, it implements the steps in the time calibration method including step S7 in any one of the above embodiments.

[0119] Those of ordinary skill in the art will understand that all or some of the steps in the methods disclosed above, and the functional modules / units in the devices, can be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between the functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, one physical component can have multiple functions, or one function or step can be executed by several physical components in cooperation. Some or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include a computer storage medium (or non-transitory medium) and a communication medium (or transitory medium). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as 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 technologies, CD-ROM, digital versatile disks (DVDs) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, a communication medium typically includes computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and can include any information delivery medium.

[0120] Example embodiments have been disclosed herein, and although specific terms have been employed, they are used for and should be construed only for general descriptive purposes and not for purposes of limitation. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly stated, features, characteristics, and / or elements described in connection with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in connection with other embodiments. Accordingly, those skilled in the art will understand that various forms and details may be changed without departing from the scope of the disclosure as set forth in the appended claims.

Claims

1. A time calibration method, wherein, Including: In response to a first cell sent by a first device, determining a first reception time corresponding to the first cell, and sending a second cell to the first device, where the first cell carries a first transmission time corresponding to the first cell; Receiving a third cell carried by the first device and carrying a second reception time corresponding to the second cell, determining a first time deviation value according to the first transmission time, the first reception time, a second transmission time corresponding to the second cell, and the second reception time, and performing time calibration according to the first time deviation value; The first cell, the second cell, and the third cell carry at least partial message data of a precise time protocol message corresponding to each of them; The precise time protocol message includes: a time synchronization message, a delay request message, and a delay request response message; Wherein, a single precise time protocol message corresponds to multiple message cells, and all its message data is sent through a common communication channel in the overhead area of the multiple message cells; The first cell is the first cell among multiple first message cells corresponding to the time synchronization message; the second cell is the first cell among multiple second message cells corresponding to the delay request message.

2. The time calibration method according to claim 1, wherein, The step of determining the first reception time corresponding to the first cell includes: Determining the reception time of the first cell as the first reception time; or, determining the reception time of the first cell of the cell frame to which the first cell belongs as the first reception time; Before the step of determining a first time deviation value according to the first transmission time, the first reception time, a second transmission time corresponding to the second cell, and the second reception time, and performing time calibration according to the first time deviation value, it further includes: Determining the transmission time of the second cell as the second transmission time; or, determining the transmission time of the first cell of the cell frame to which the second cell belongs as the second transmission time.

3. The time calibration method according to claim 2, wherein, The first reception time is determined by the reception time of the first cell of the cell frame to which the first cell belongs, and the second transmission time is determined by the transmission time of the first cell of the cell frame to which the second cell belongs; The method further includes: Receiving the number of attached code blocks of each cell frame sent by the first device, and determining a first expected reception time of each cell frame sent by the first device according to the number of attached code blocks and the first reception time, and determining a first expected transmission time of each cell frame sent by itself according to the number of attached code blocks and the second transmission time; After the step of performing time calibration according to the first time deviation value, it further includes: In response to a fourth cell sent by the first device, taking the first expected reception time of the cell frame to which the fourth cell belongs as the third reception time corresponding to the fourth cell, where the fourth cell carries a third transmission time corresponding to the fourth cell; Sending a fifth cell to the first device, and taking the first expected transmission time of the cell frame to which the fifth cell belongs as the fourth transmission time corresponding to the fifth cell; Receive a sixth cell carrying the fourth reception time corresponding to the fifth cell feedback from the first device, determine a second time deviation value according to the third transmission time, the third reception time, the fourth transmission time, and the fourth reception time, and perform time calibration according to the second time deviation value.

4. A time calibration method, wherein, Including: Determine the first transmission time corresponding to the first cell, place the first transmission time in the first cell, and send the first cell to a second device; In response to the second cell sent by the second device, determine the second reception time corresponding to the second cell, place the second reception time in a third cell, and feedback the third cell to the second device for the second device to determine a first time deviation value according to the first transmission time, the first reception time corresponding to the first cell, the second transmission time of the second cell, and the second reception time, and perform time calibration according to the first time deviation value; At least partial message data of the precise time protocol message corresponding to each of the first cell, the second cell, and the third cell is carried therein; The precise time protocol message includes: a time synchronization message, a delay request message, and a delay request response message; Wherein, a single precise time protocol message corresponds to multiple message cells, and all of its message data is sent through a common communication channel in the overhead area of the multiple message cells; The first cell is the first cell among multiple first message cells corresponding to the time synchronization message; the second cell is the first cell among multiple second message cells corresponding to the delay request message.

5. The time calibration method according to claim 4, wherein, The step of determining the first transmission time corresponding to the first cell includes: Determine the transmission time of the first cell as the first transmission time; or, determine the transmission time of the first cell of the cell multiplex corresponding to the first cell as the first transmission time; The step of determining the second reception time corresponding to the second cell includes: Determine the reception time of the second cell as the second reception time; or, determine the reception time of the first cell of the cell multiplex corresponding to the second cell as the second reception time.

6. The time calibration method according to claim 5, wherein, The first transmission time is determined by the transmission time of the first cell of the cell multiplex corresponding to the first cell, and the second reception time is determined by the reception time of the first cell of the cell multiplex corresponding to the second cell; The method further includes: Determine the second expected transmission time of each cell multiplex sent by itself according to the number of parity blocks of each cell multiplex and the first transmission time, and determine the second expected reception time of each cell multiplex sent by the second device according to the number of parity blocks and the second reception time; After the step of feedbacking the third cell to the second device, further includes: Use the second expected transmission time of the cell multiplex corresponding to the fourth cell as the third transmission time corresponding to the fourth cell, place the third transmission time in the fourth cell, and send the fourth cell to the second device; In response to the fifth cell sent by the second device, the second expected reception time of the cell multiplex frame to which the fifth cell belongs is used as the fourth reception time of the fifth cell, the fourth reception time is placed in the sixth cell, and the sixth cell is fed back to the second device, so that the second device determines a second time deviation value according to the third transmission time, the third reception time corresponding to the fourth cell, the fourth transmission time corresponding to the fifth cell, and the fourth reception time, and performs time calibration according to the second time deviation value.

7. A communication device, comprising: One or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the time calibration method according to any one of claims 1-3.

8. A communication device, comprising: One or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the time calibration method according to any one of claims 4-6.

9. A computer-readable medium having a computer program stored thereon, wherein, When the program is executed by the processor, it implements the steps in the time calibration method according to any one of claims 1-3, and / or, when the program is executed by the processor, it implements the steps in the time calibration method according to any one of claims 4-6.

Citation Information

Patent Citations

  • Cell processing method and device

    CN103973592A

  • Packet processing method and network device

    EP3664375A1