Clock recovery method and device, electronic equipment and computer readable storage medium

By accumulating clock deviation values ​​in OSU transmission, the problem of node local reference clock deviation affecting the accuracy of clock recovery is solved and the accuracy of OSU clock recovery is improved.

CN118784125AInactive Publication Date: 2024-10-15ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310413723.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-07
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

During the optical service layer unit (OSU) transmission process, the local reference clock deviation of each node affects the accuracy of clock recovery, resulting in inaccurate OSU clock recovery.

Method used

By calculating the clock deviation value of the current node relative to the previous node within the sampling period, accumulating it with the cumulative clock deviation value received from the previous node, inserting it into the deviation overhead of the OSU, and passing it to the next node. The accumulated clock deviation value is finally used for OSU clock recovery.

Benefits of technology

It effectively overcomes the impact of the local reference clock deviation of each node on OSU clock recovery and improves the accuracy of OSU clock recovery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784125A_ABST
    Figure CN118784125A_ABST
Patent Text Reader

Abstract

The invention provides a clock recovery method, a clock recovery device, electronic equipment and a computer readable medium, and the clock recovery method comprises the steps: a current node calculates a clock deviation value of the current node relative to a previous node in a sampling period T1, and receives an optical service unit OSU sent by the previous node, extracting a first accumulated clock skew value from the OSU skew overhead in the OSU, and accumulating the calculated clock skew value and the first accumulated clock skew value obtained from the previous node to obtain a second accumulated clock skew value; and then inserting the second accumulated clock skew value into the OSU skew overhead in the OSU according to the sampling period T1 corresponding to the node, and sending the OSU to the next node, so that the clock skew value generated by each node can be accumulated into the OSU skew overhead in the OSU transmission process, and the OSU transmission efficiency is improved. Therefore, the OSU clock recovery can be finally carried out according to the accumulated clock deviation value in the OSU deviation overhead, and the accuracy of the OSU clock recovery is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a clock recovery method, a clock recovery device, an electronic device, and a computer-readable medium. Background Art

[0002] The Optical Service Unit (OSU) is a container for carrying sub1G customer service signals. Each node that the OSU passes through in end-to-end transmission has its own independent local reference clock, and at each node, the service signal carrying the OSU is generated by the local reference clock. The local reference clock of each node is allowed to have a certain deviation. When taking out the customer service signal from the OSU, the OSU clock needs to be recovered. However, the local reference clock deviation of each node will affect the accuracy of the OSU clock recovery. Summary of the invention

[0003] The embodiments of the present application provide a clock recovery method, a clock recovery device, an electronic device, and a computer-readable storage medium, which can reduce the impact of the local reference clock deviation of each node in OSU transmission on OSU clock recovery.

[0004] In a first aspect, an embodiment of the present application provides a clock recovery method, the method comprising:

[0005] Calculate the clock deviation value of the current node relative to the previous node within the sampling period T1;

[0006] Receiving an optical service unit OSU sent by the previous node, and extracting a first accumulated clock deviation value from an OSU deviation overhead in the OSU;

[0007] Accumulating the clock deviation value and the first number of the first accumulated clock deviation values ​​to obtain a second accumulated clock deviation value;

[0008] The second accumulated clock deviation value is inserted into the OSU deviation overhead in the OSU according to the frequency of the sampling period T1, and the OSU is sent to the next node.

[0009] In a second aspect, an embodiment of the present application provides a clock recovery device, the device comprising:

[0010] A determination module is used to calculate the clock deviation value of the current node relative to the previous node within the sampling period T1;

[0011] An extraction module, configured to receive an optical service unit OSU sent by the previous node, and extract a first accumulated clock deviation value from an OSU deviation overhead in the OSU;

[0012] An accumulation module, configured to accumulate the clock deviation value and a first number of the first accumulated clock deviation values ​​to obtain a second accumulated clock deviation value;

[0013] The sending module is used to insert the second accumulated clock deviation value into the OSU deviation overhead in the OSU according to the frequency of the sampling period T1, and send the OSU to the next node.

[0014] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0015] one or more processors;

[0016] A memory having one or more programs stored thereon, when the one or more programs are executed by the one or more processors, the one or more processors implement the clock recovery method as described in the first aspect above.

[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the clock recovery method as described in the first aspect above.

[0018] In an embodiment of the present application, the current node calculates the clock deviation value of the current node relative to the previous node within the sampling period T1, receives the optical service unit OSU sent by the previous node, and extracts the first cumulative clock deviation value from the OSU deviation overhead in the OSU, and then adds the calculated clock deviation value and the first cumulative clock deviation value obtained from the previous node to obtain a second cumulative clock deviation value, and then inserts the second cumulative clock deviation value into the OSU deviation overhead in the OSU according to the sampling period T1 corresponding to the current node, and then sends the OSU to the next node. In this way, during the OSU transmission process, the clock deviation value generated by each node will be added to the OSU deviation overhead, so that the OSU clock recovery can be finally performed according to the cumulative clock deviation value in the OSU deviation overhead, thereby overcoming the influence of the local reference clock deviation of each node on the OSU clock recovery and improving the accuracy of the OSU clock recovery. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0020] Figure 1 This is a schematic diagram of a network architecture provided by an embodiment of the present application;

[0021] Figure 2 is a flowchart of a clock recovery method provided by an embodiment of the present application;

[0022] Figure 3 is a schematic diagram of a process for calculating a clock deviation value provided by an embodiment of the present application;

[0023] Figure 4 It is a schematic diagram of the frame structure of an OSU provided by an embodiment of the present application;

[0024] Figure 5 is a schematic diagram of a process for obtaining a second accumulated clock deviation value provided by an embodiment of the present application;

[0025] Figure 6 is a schematic diagram of a process for obtaining a second accumulated clock deviation value provided by an embodiment of the present application;

[0026] Figure 7 is a schematic diagram of a process for obtaining a second accumulated clock deviation value provided by an embodiment of the present application;

[0027] Figure 8 is a schematic diagram of a process for calculating a second accumulated clock deviation value provided by an embodiment of the present application;

[0028] Figure 9a It is a schematic diagram of the application scenario provided by Example 1 of this application;

[0029] Figure 9b yes Figure 9a A schematic diagram of the sampling period corresponding to each node shown;

[0030] Fig.10a It is a schematic diagram of the application scenario provided by Example 2 of this application;

[0031] Fig.10b yes Fig.10a A schematic diagram of the sampling period corresponding to each node shown;

[0032] Fig.11 is a structural schematic diagram of a clock recovery device provided in an embodiment of the present application;

[0033] Fig.12 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to enable those skilled in the art to better understand the technical solution of the present application, the clock recovery method, clock recovery device, electronic device, and computer-readable storage medium provided by the present application are described in detail below in conjunction with the accompanying drawings.

[0035] The exemplary embodiments will be described more fully below with reference to the accompanying drawings, but the described exemplary embodiments may be embodied in different forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, the purpose of providing these embodiments is to make this application thorough and complete and to enable those skilled in the art to fully understand the scope of this application.

[0036] As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.

[0037] The terms used herein are only used to describe specific embodiments and are not intended to limit the present application. As used herein, the singular forms "a", "an" 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 "comprising" and / or "made of" are used in this specification, the presence of features, wholes, steps, operations, elements and / or components is specified, but the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof is not excluded.

[0038] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

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

[0040] As the process of intelligent peripheral (IP) of telecommunication services continues to advance, the main customer services facing OTN will be packet customer services. How to carry packet customer services less than 1G in OTN is one of the hot issues currently concerned by the industry. OSU is a container that carries sub1G customer service signals. Customer services carried by OSU include constant bit rate (CBR) services, such as STM-1 and STM-4. When taking out CBR service signals from OSU, clock recovery is required for the OSU carrying CBR.

[0041] Each node that the OSU passes through during end-to-end transmission has its own independent local reference clock, and at each node, the service signal carrying the OSU is generated by the local reference clock. However, the local reference clocks of each node are allowed to have a certain deviation, and the clock deviation will reduce the accuracy of the final OSU clock recovery.

[0042] Based on this, the embodiments of the present application provide a clock recovery method, a clock recovery device, an electronic device, and a computer-readable storage medium, which can reduce the impact of the local reference clock deviation of each node in OSU transmission on OSU clock recovery.

[0043] Before introducing the technical solution of the embodiment of the present application, the application scenario of the embodiment of the present application is first exemplified. Figure 1 , Figure 1 This is a schematic diagram of a network architecture provided by an embodiment of the present application. Figure 1 The network architecture shown in FIG. 1 includes multiple transmission nodes, namely, node 1, node 2, node 3, ..., node n. Low-rate services, packet services, and new services are adapted and mapped to OSU, and OSU is multiplexed to high-order ODUk / OTUk / OTUCn for transmission through multi-level multiplexing, or OSU can be directly multiplexed to high-order ODUk / OTUk / OTUCn for transmission. Here, high-order ODUk / OTUk / OTUCn can be called service signals. Service signals are transmitted in Figure 1 That is to say, the transmission of OSU between nodes is achieved by carrying it in the service signal.

[0044] In an embodiment of the present application, a sampling period corresponding to the node is configured for each node on the OSU transmission path. Each node calculates the clock deviation value of the node relative to the previous node according to the sampling period corresponding to the node, receives the OSU from the previous node, and extracts the first accumulated clock deviation value from the OSU deviation overhead in the OSU, and then adds the calculated clock deviation value and the first accumulated clock deviation value obtained from the previous node to obtain a second accumulated clock deviation value, and then inserts the second accumulated clock deviation value into the OSU deviation overhead in the OSU according to the sampling period corresponding to the node, and then sends the OSU to the next node. In this way, during the OSU transmission process, the clock deviation value generated by each node will be accumulated in the OSU deviation overhead, so that the OSU clock recovery can be finally performed according to the accumulated clock deviation value in the OSU deviation overhead, thereby overcoming the influence of the local reference clock deviation of each node on the OSU clock recovery and improving the accuracy of the OSU clock recovery.

[0045] See also Figure 2 , Figure 2is a flow chart of a clock recovery method provided by an embodiment of the present application. The clock recovery method can be applied to Figure 1 In the network architecture shown in FIG. , the execution subject can be any node in the network architecture. Figure 2 As shown, the clock recovery method provided by the embodiment of the present invention includes but is not limited to steps S110-S140, and each step is described in turn below.

[0046] Step S110, calculating the clock deviation value of the current node relative to the previous node within the sampling period T1.

[0047] In an embodiment of the present application, each node has a corresponding sampling period, and the sampling period corresponding to each node is determined based on the local reference clock corresponding to the node and the frame period of the OSU. Since the local reference clocks corresponding to different nodes may have deviations, the sampling periods corresponding to different nodes may be different.

[0048] In an exemplary embodiment, the sampling period corresponding to each node is composed of a fixed number of local reference clocks, and the sampling period corresponding to each node is greater than the frame period of the OSU. The local reference clock of each node can be determined by the local reference clock frequency. Generally speaking, the higher the local reference clock frequency, the shorter the length of the local reference clock, and the shorter the length of the corresponding sampling period.

[0049] In an exemplary embodiment, the sampling period corresponding to the current node is T1, the sampling period corresponding to the previous node is T2, the sampling period T1 is composed of the second number of local reference clocks of the current node, the sampling period T2 is composed of the second number of local reference clocks of the previous node, and the sampling periods T1 and T2 are both greater than the frame period of the OSU, and the second number is a preset fixed value. It should be understood that the sampling period T1 corresponding to the current node and the sampling period T2 corresponding to the previous node are composed of the same number of local reference clocks, but the local reference clocks of the current node and the previous node are allowed to have deviations, so there will also be deviations between the sampling period T1 and the sampling period T2.

[0050] See also Figure 3 , Figure 3 FIG. 1 is a schematic diagram of a process for calculating a clock deviation value provided by an embodiment of the present application. Figure 3 As shown, calculating the clock deviation value of the current node relative to the previous node within the sampling period T1 specifically includes the following steps S111-S114:

[0051] Step S111, counting the number of bits of a service signal received from a previous node within a sampling period T1, where the service signal is used to carry the OSU.

[0052] Exemplarily, the service signal may be any one of ODUk, OTUk or OTUCn, and the OSU is carried in any one of the above service signals. The embodiment of the present application does not impose too many restrictions on the specific type of the service signal.

[0053] It should be understood that when the current node receives the service signal sent by the previous node, it also counts the number of bits of the received service signal in each sampling period T1. For ease of description, the counted number of bits is recorded as M1.

[0054] Step S112, determining the number of reference clocks corresponding to the sampling period T1 according to the number of bits.

[0055] Exemplarily, the bandwidth B1 corresponding to the current node can be calculated based on the preset fixed clock frequency f1 and the conversion relationship between bandwidth and clock frequency, and then the reference clock number K1 corresponding to the bit number M1 can be calculated based on the bandwidth B1.

[0056] Step S113, determining the expected number of reference clocks of the current node in the sampling period T1.

[0057] Exemplarily, the expected number K2 of reference clocks included in the sampling period T1 may be determined according to a preset fixed clock frequency f1.

[0058] Step S114, calculating a clock deviation value according to the expected number of reference clocks and the number of reference clocks.

[0059] Exemplarily, the clock deviation value may be obtained by performing a subtraction operation on the number of reference clocks K1 and the expected number of reference clocks K2.

[0060] In an embodiment of the present application, the current node calculates and generates a clock deviation value in each sampling period T1. The generated clock deviation value will be accumulated with the accumulated clock deviation value received from the previous node in subsequent steps to obtain a new accumulated clock deviation value, and the new accumulated clock deviation value will be sent to the next node within the corresponding sampling period T1.

[0061] Step S120: receiving the OSU sent by the previous node, and extracting a first accumulated clock deviation value from the OSU deviation overhead in the OSU.

[0062] In an exemplary embodiment, the OSU deviation overhead is located in the overhead area of ​​the OSU, and the OSU deviation overhead is used to transfer the accumulated clock deviation value between nodes.

[0063] See also Figure 4 , Figure 4 FIG. 1 is a schematic diagram of an OSU frame structure provided by an embodiment of the present application. Figure 4As shown, the OSU includes an overhead and a payload. The OSU deviation overhead described in the embodiment of the present application is located in the overhead area of ​​the OSU. The OSU deviation overhead is used to transmit the accumulated clock deviation value between nodes. In other words, a designated area is divided from the OSU overhead as the OSU deviation overhead, and the value stored in the OSU deviation overhead can be called the accumulated clock deviation value.

[0064] In an exemplary embodiment, an indicator of OSU deviation overhead is defined in the OSU overhead, and the indicator is used to indicate whether the OSU deviation overhead carries the accumulated clock deviation value. Specifically, the indicator of OSU deviation overhead can be set at a specified position of the OSU overhead, and "0" and "1" are used at the specified position to indicate whether the OSU deviation overhead carries the accumulated clock deviation value. For example, when the value at the specified position is "1", it indicates that the OSU deviation overhead of the current OSU carries the accumulated clock deviation value, and when the value at the specified position is "0", it indicates that the OSU deviation overhead of the current OSU does not carry the accumulated clock deviation value.

[0065] It should be understood that the cumulative clock deviation value in the OSU deviation overhead received by the current node can be called the first cumulative clock deviation value. In an embodiment of the present application, the frequency with which the current node receives the OSU deviation overhead carrying the first cumulative clock deviation value is related to the sampling period T2 of the previous node.

[0066] In an exemplary embodiment, a current node receives a service signal sent by a previous node, wherein the service signal includes signal frames of multiple OSUs, each OSU including an OSU deviation overhead, and some of these OSU deviation overheads received by the current node carry a first accumulated clock deviation value. The frequency with which the current node receives the OSU deviation overhead carrying the first accumulated clock deviation value is related to a sampling period T2 of the previous node. Specifically, the current node receives an OSU deviation overhead carrying the first accumulated clock deviation value at every sampling period T2.

[0067] In an exemplary embodiment, the current node receives a service signal sent by the previous node, the service signal includes signal frames of multiple OSUs, each OSU includes an OSU deviation overhead, the current node traverses the indicator identifier of the OSU deviation overhead in each OSU, and determines whether the OSU deviation overhead in the OSU carries a first cumulative clock deviation value through the indicator identifier, if the judgment result indicates that the OSU deviation overhead carries the first cumulative clock deviation value, the first cumulative clock deviation value is extracted from the corresponding OSU deviation overhead.

[0068] Step S130: Accumulate the clock deviation value and the first number of first accumulated clock deviation values ​​to obtain a second accumulated clock deviation value.

[0069] In the embodiment of the present application, the first accumulated clock deviation value received by the current node from the previous node is the accumulated clock deviation value of all nodes before the current node in the OSU transmission path, that is, the clock deviation value of the previous node relative to the starting node. After the current node calculates the clock deviation value of the current node relative to the previous node, it adds the clock deviation value of the current node to the first accumulated clock deviation value, thereby obtaining the clock deviation value of the current node relative to the starting node (that is, the second accumulated clock deviation value).

[0070] Exemplarily, the first number is the number of first accumulated clock deviation values ​​extracted from the received OSU deviation overhead within the sampling period T1 of the current node. For example, if the current node receives 1 OSU deviation overhead carrying the first accumulated clock deviation value within the current sampling period T1, then 1 first accumulated clock deviation value is extracted from the received OSU deviation overhead, and the clock deviation value calculated in the current sampling period T1 is added to the 1 first accumulated clock deviation value, that is, the first quantity is 1; for another example, if the current node receives 2 OSU deviation overheads carrying the first accumulated clock deviation value within the current sampling period T1, then 2 first accumulated clock deviation values ​​are extracted from the received OSU deviation overhead, and the clock deviation value calculated in the current sampling period T1 is added to the 2 first accumulated clock deviation values, that is, the first quantity is 2; for another example, if the current node receives 0 OSU deviation overheads carrying the first accumulated clock deviation value within the current sampling period T1, then 0 first accumulated clock deviation values ​​are extracted from the received OSU deviation overhead, and the clock deviation value calculated in the current sampling period T1 is added to zero, that is, the first quantity is 0.

[0071] In an exemplary embodiment, the clock deviation value is accumulated with a first number of first accumulated clock deviation values ​​to obtain a second accumulated clock deviation value, including: within the sampling period T1, extracting 2 first accumulated clock deviation values ​​from the received OSU deviation overhead; and accumulating the clock deviation value with the 2 first accumulated clock deviation values ​​to obtain a second accumulated clock deviation value.

[0072] In an exemplary embodiment, the clock deviation value is accumulated with a first number of first accumulated clock deviation values ​​to obtain a second accumulated clock deviation value, including: within the sampling period T1, extracting 1 first accumulated clock deviation value from the received OSU deviation overhead; and accumulating the clock deviation value with 1 first accumulated clock deviation value to obtain a second accumulated clock deviation value.

[0073] In an exemplary embodiment, the clock deviation value is accumulated with a first number of first accumulated clock deviation values ​​to obtain a second accumulated clock deviation value, including: within a sampling period T1, 0 first accumulated clock deviation values ​​are extracted from the received OSU deviation overhead, and the clock deviation value is accumulated with zero to obtain a second accumulated clock deviation value.

[0074] Exemplarily, the first number is related to the local reference clock frequency of the current node and the local reference clock frequency of the previous node, and the first number can be any value of 0, 1 or 2.

[0075] In an exemplary embodiment, the local reference clock frequency of the current node is less than the local reference clock frequency corresponding to the previous node. Since the sampling period corresponding to each node is composed of a fixed number of local reference clocks, the sampling period T1 corresponding to the current node is greater than the sampling period T2 corresponding to the previous node. In this case, the value of the first number may be 1 or 2. See Figure 5 , Figure 5 1 is a schematic diagram of a process for obtaining a second accumulated clock deviation value provided by an embodiment of the present application. As mentioned above, the frequency at which the current node receives the OSU deviation overhead carrying the first accumulated clock deviation value is related to the sampling period T2 of the previous node, so Figure 5 In the example, A1, A2, …, A N1 , A N1+1 are the N1+1 first accumulated clock deviation values ​​sent in sequence by the previous node at the frequency of the sampling period T2, B1, B2, ..., B N1 is the clock deviation value calculated by the current node in N1 sampling periods T1; suppose (N1+1)*T2=N1*T1, that is, N1+1 sampling period T2 is equal to N1 sampling period T1. In this case, in the 1st to N1-1th sampling periods T1, the current node will receive an OSU deviation overhead carrying the first accumulated clock deviation value in each sampling period T1, that is, a first accumulated clock deviation value can be extracted in 1 sampling period T1. Every time the current node extracts a first accumulated clock deviation value, it is accumulated with the clock deviation value calculated in the corresponding sampling period T1. In this way, the 1st to N1-1th second accumulated clock deviation values ​​C1, C2, ..., C N1-1 ; In the N1th sampling period T1, the current node will receive two OSU deviation overheads carrying the first accumulated clock deviation value, that is, two first accumulated clock deviation values ​​can be extracted in one sampling period T1, and then the two first accumulated clock deviation values ​​are added together with the clock deviation value calculated in the corresponding sampling period T1 to obtain the N1th second accumulated clock deviation value C N1 .

[0076] In an exemplary embodiment, the local reference clock frequency of the current node is greater than the local reference clock frequency corresponding to the previous node. Since the sampling period corresponding to each node is composed of a fixed number of local reference clocks, the sampling period T1 corresponding to the current node is less than the sampling period T2 corresponding to the previous node. In this case, the value of the first number may be 1 or 0. See Figure 6 , Figure 6 It is a schematic diagram of a process for obtaining a second accumulated clock deviation value provided by an embodiment of the present application. Figure 6 In the example, A1, A2, …, A N2 are the N2 first accumulated clock deviation values ​​sent in sequence by the previous node at the frequency of the sampling period T2, B1, B2, ..., B N2 , B N2+1 is the clock deviation value calculated by the current node in N2+1 sampling cycles T1; suppose (N2+1)*T1=N2*T2, that is, N2+1 sampling cycles T1 equals N2 sampling cycles T2. In this case, in the 1st to N2th sampling cycles T1, the current node will receive an OSU deviation overhead carrying the first accumulated clock deviation value in each sampling cycle T1, that is, a first accumulated clock deviation value can be extracted in 1 sampling cycle T1. Every time the current node extracts a first accumulated clock deviation value, it is accumulated with the clock deviation value calculated in the corresponding sampling cycle T1. In this way, the 1st to N2th second accumulated clock deviation values ​​C1, C2, ..., C N2 In the N2+1th sampling period T1, the current node will receive 0 OSU deviation overheads carrying the first accumulated clock deviation value, that is, there is no first accumulated clock deviation value to be extracted in the N2+1th sampling period T1, and then the clock deviation value calculated in the corresponding sampling period T1 is accumulated with zero, and the corresponding N2+1th second accumulated clock deviation value C is obtained. N2+1 .

[0077] In an exemplary embodiment, the local reference clock frequency of the current node is equal to the local reference clock frequency corresponding to the previous node. Since the sampling period corresponding to each node is composed of a fixed number of local reference clocks, the sampling period T1 corresponding to the current node is equal to the sampling period T2 corresponding to the previous node. In this case, the value of the first number can only be 1. See Figure 7 , Figure 7 FIG. 1 is a schematic diagram of a process for obtaining a second accumulated clock deviation value provided by an embodiment of the present application. Figure 7As shown, the current node will receive an OSU deviation overhead carrying the first accumulated clock deviation value in each sampling period T1, that is, a first accumulated clock deviation value can be extracted in one sampling period T1. Each time the current node extracts a first accumulated clock deviation value, it accumulates it with the clock deviation value calculated in the corresponding sampling period T1, as shown in Figure 7 In this example, the previous node sends N3 first accumulated clock deviation values ​​A1, A2, ..., A1 in sequence according to the frequency of the sampling period T2. N3 , corresponding to the clock deviation values ​​B1, B2, ..., B calculated for the current node in N3 sampling cycles T1 N3 Add them together to obtain the corresponding second accumulated clock deviation values ​​C1, C2, ..., C N3 .

[0078] It should be noted that the value of the first number is not limited to 0, 1 or 2, and can also be other values. For example, when the local reference clock frequency of the current node is less than the local reference clock frequency corresponding to the previous node, according to (N1+1)*T2=N1*T1, in the 1st to 2N1+1th sampling periods T1, the current node can respectively add 1 unaccumulated first accumulated clock deviation value with the clock deviation value calculated in the corresponding sampling period T1, and in the 2N1+2th sampling period T1, the current node can respectively add 3 first accumulated clock deviation values ​​to be accumulated with the clock deviation value calculated in the corresponding sampling period T1. Therefore, the embodiment of the present application does not specifically limit the value of the first number.

[0079] In an exemplary embodiment, after extracting the first accumulated clock deviation value from the OSU deviation overhead carried by the OSU, the method of the embodiment of the present application further includes: writing the extracted first accumulated clock deviation value into a cache queue. When the current node needs to calculate the second accumulated clock deviation value, the corresponding number of first clock deviation values ​​can be taken out from the cache queue according to a preset rule and added to the previously calculated clock deviation value to obtain the second accumulated clock deviation value.

[0080] In an exemplary embodiment, the clock deviation value is accumulated with the first number of first accumulated clock deviation values ​​to obtain a second accumulated clock deviation value, including one of the following:

[0081] In sampling period T1, when the number of first accumulated clock deviation values ​​cached in the cache queue is greater than or equal to a preset threshold, two first accumulated clock deviation values ​​are read from the cache queue, and the clock deviation value is accumulated with the two first accumulated clock deviation values ​​to obtain a second accumulated clock deviation value;

[0082] or,

[0083] In sampling period T1, when the number of first accumulated clock deviation values ​​cached in the cache queue is greater than zero and less than a preset threshold, one first accumulated clock deviation value is read from the cache queue, and the clock deviation value is accumulated with one first accumulated clock deviation value to obtain a second accumulated clock deviation value;

[0084] or,

[0085] In the sampling period T1, when the number of first accumulated clock deviation values ​​buffered in the buffer queue is equal to zero, the clock deviation value is accumulated with zero to obtain a second accumulated clock deviation value.

[0086] See also Figure 8 , Figure 8 It is a schematic diagram of a process for calculating a second accumulated clock deviation value provided by an embodiment of the present application.

[0087] like Figure 8 As shown, the process of calculating the second accumulated clock deviation value in the embodiment of the present application may include the following steps:

[0088] Step S210, obtaining the number of first accumulated clock deviation values ​​cached by the cache queue in the current sampling period T1, and obtaining the cache quantity;

[0089] Step S220, determine whether the cache quantity is equal to 0, if so, execute step S230, otherwise execute step S240;

[0090] Step S230, adding the clock deviation value calculated in the current sampling period T1 to zero to obtain a second accumulated clock deviation value;

[0091] Step S240, determining whether the cache quantity is less than a preset threshold, if so, executing step S250, otherwise executing step S260.

[0092] Step S250, reading a first accumulated clock deviation value from the cache queue, and adding the clock deviation value calculated in the current sampling period T1 to the first accumulated clock deviation value just read to obtain a second accumulated clock deviation value;

[0093] Step S260, reading two first accumulated clock deviation values ​​from the cache queue, and adding the clock deviation value calculated in the current sampling period T1 to the two first accumulated clock deviation values ​​just read to obtain a second accumulated clock deviation value.

[0094] Exemplarily, the preset threshold value can take any value greater than or equal to 2.

[0095] Step S140: insert the second accumulated clock deviation value into the OSU deviation overhead according to the frequency of the sampling period T1, and send the OSU carrying the OSU deviation overhead to the next node.

[0096] In an embodiment of the present application, the second accumulated clock deviation value calculated in the current sampling period T1 is inserted into the OSU deviation overhead of the OSU, and then the OSU is sent to the next node, so that the next node can extract the accumulated clock deviation value calculated by the current node from the OSU deviation overhead of the OSU, and perform operations similar to steps S110-S140 of the embodiment of the present application, and so on. The clock deviation value generated by each node can be transmitted all the way to the end node of the OSU transmission path. When the end node of the OSU transmission path receives the OSU, the accumulated clock deviation values ​​of all previous nodes can be obtained from the OSU deviation overhead of the OSU, and the clock of the OSU can be recovered according to the accumulated clock deviation value, thereby overcoming the influence of the local reference clock deviation of each node on the OSU clock recovery and improving the accuracy of the OSU clock recovery.

[0097] The clock recovery method provided in the embodiment of the present application is described below through specific examples.

[0098] Example 1:

[0099] See also Figure 9a , Figure 9a This is a schematic diagram of the application scenario provided by Example 1 of this application. Figure 9a In the scenario shown, node 1 and node 2 transmit OSU services via OTU2, and node 2 and node 3 transmit OSU services via OTU4.

[0100] See also Figure 9b , Figure 9b yes Figure 9a The schematic diagram of the sampling period corresponding to each node is shown in FIG. Figure 9b As shown, for nodes 1 to 3, the corresponding local reference clocks are H1, H2 and H3. The sampling periods of nodes 1 to 3 are composed of a fixed number A of local reference clocks, and the sampling periods are all greater than the OSU frame period. Suppose the sampling periods corresponding to nodes 1, 2 and 3 are T1', T2' and T3', and T1'>T2'>T3', that is, there are some deviations in the local reference clocks of the three nodes.

[0101] For Example 1, the clock recovery method provided in the embodiment of the present application may include the following steps:

[0102] Step S301, node 1 inserts the accumulated clock deviation value D1 of the node into the OSU deviation overhead according to the frequency of the sampling period T1', multiplexes the OSU carrying the OSU deviation overhead into ODU2, multiplexes ODU2 into OTU2, and then sends OTU2 to node 2 through the OTU2 interface;

[0103] Step S302: Node 2 receives OTU2 sent by node 1 according to sampling period T2', and counts the number of bits of OTU2 received in the current sampling period T2', and then converts the counted number of bits into the corresponding reference clock number M1, and then determines the expected reference clock number M2 of node 2 in the sampling period T2', and subtracts M2 from M1 to obtain the clock deviation value Md1 of node 2 relative to node 1 in the current sampling period T2';

[0104] Step S303, when receiving OTU2 sent by node 1, node 2 also extracts OSU from OTU2, and obtains the indication mark of OSU deviation overhead from OSU. If the obtained indication mark indicates that OSU deviation overhead carries the accumulated clock deviation value, the accumulated clock deviation value D1 is extracted from the OSU deviation overhead, and the accumulated clock deviation value D1 is cached in the local cache queue;

[0105] Step S304, node 2 extracts 1 accumulated clock deviation value D1 from the cache queue and adds it to the clock deviation value Md1 calculated in the current sampling period T2' to obtain the accumulated clock deviation value D2; since T1'>T2', that is, the speed at which node 2 receives the accumulated clock deviation value D1 is slower than the speed at which the clock deviation value Md1 is calculated, there will be a certain sampling period T2' when there is no accumulated clock deviation value D1 that can be extracted from the cache queue. At this time, the clock deviation value Md1 calculated in the current sampling period T2' is added to zero to obtain the accumulated clock deviation value D2;

[0106] Step S305, node 2 inserts the calculated accumulated clock deviation value D2 into the OSU deviation overhead according to the frequency of the sampling period T2', multiplexes the OSU carrying the OSU deviation overhead into ODU4, multiplexes ODU4 into OTU4, and then sends OTU4 to node 3 through the OTU4 interface;

[0107] Step S306, node 3 receives OTU4 sent by node 2 according to sampling period T3', and counts the number of bits of OTU4 received in sampling period T3', and then converts the counted number of bits into the corresponding reference clock number M3, and then determines the expected reference clock number M4 of node 3 in sampling period T3', and subtracts M4 from M3 to obtain the clock deviation value Md2 of node 3 relative to node 2 in the current sampling period T3';

[0108] Step S307, when receiving OTU4 sent by node 2, node 3 also extracts OSU from OTU4, and obtains the indication mark of OSU deviation overhead from OSU. If the obtained indication mark indicates that OSU deviation overhead carries the accumulated clock deviation value, the accumulated clock deviation value D2 is extracted from the OSU deviation overhead, and the accumulated clock deviation value D2 is cached in the local cache queue;

[0109] Step S308, node 3 extracts 1 accumulated clock deviation value D2 from the cache queue and adds it to the clock deviation value Md2 calculated in the current sampling period T3' to obtain the accumulated clock deviation value D3; since T2'>T3', that is, the speed at which node 3 receives the accumulated clock deviation value D2 is slower than the speed at which the clock deviation value Md2 is calculated, there will be a certain sampling period T3', and there is no situation where the accumulated clock deviation value D2 can be extracted in the cache queue. At this time, the clock deviation value Md2 calculated in the current sampling period T3' is added to zero to obtain the accumulated clock deviation value D3;

[0110] Step S309: Node 3 inserts the calculated accumulated clock deviation value D3 into the OSU deviation overhead according to the frequency of the sampling period T3'.

[0111] Example 2

[0112] See also Fig.10a , Fig.10a This is a schematic diagram of the application scenario provided by Example 2 of this application. Fig.10a In the scenario shown, node 1 and node 2 transmit OSU services through OTU1, and node 2 and node 3 transmit OSU services through OTU2.

[0113] See also Fig.10b , Fig.10b yes Fig.10a The schematic diagram of the sampling period corresponding to each node is shown in FIG. Fig.10b As shown, for nodes 1 to 3, the corresponding local reference clocks are H1, H2 and H3. The sampling periods of nodes 1 to 3 are composed of a fixed number A of local reference clocks, and the sampling periods are all greater than the OSU frame period. Suppose the sampling periods corresponding to nodes 1, 2 and 3 are T1', T2' and T3', and T1'<T2', T2'>T3', that is, there are some deviations in the local reference clocks of the three nodes.

[0114] For Example 2, the clock recovery method provided in the embodiment of the present application may include the following steps:

[0115] Step S401, node 1 inserts the accumulated clock deviation value D1 of the node into the OSU deviation overhead according to the frequency of the sampling period T1', multiplexes the OSU carrying the OSU deviation overhead into ODU1, multiplexes ODU1 into OTU1, and then sends OTU1 to node 2 through the OTU1 interface;

[0116] Step S402: Node 2 receives OTU1 sent by node 1 according to sampling period T2', and counts the number of bits of OTU1 received in the current sampling period T2', and then converts the counted number of bits into the corresponding reference clock number M1, and then determines the expected reference clock number M2 of node 2 in the sampling period T2', and subtracts M2 from M1 to obtain the clock deviation value Md1 of node 2 relative to node 1 in the current sampling period T2';

[0117] Step S403, when receiving OTU1 sent by node 1, node 2 also extracts OSU from OTU1, and obtains the indication mark of OSU deviation overhead from OSU. If the obtained indication mark indicates that OSU deviation overhead carries the accumulated clock deviation value, the accumulated clock deviation value D1 is extracted from the OSU deviation overhead, and the accumulated clock deviation value D1 is cached in the local cache queue;

[0118] Step S404, node 2 extracts one accumulated clock deviation value D1 from the cache queue and adds it to the clock deviation value Md1 calculated in the current sampling period T2' to obtain the accumulated clock deviation value D2; since T1'<T2', that is, the speed at which node 2 receives the accumulated clock deviation value D1 is faster than the speed at which the clock deviation value Md1 is calculated, there will be a certain sampling period T2', and there will be two or more accumulated clock deviation values ​​D1 that can be extracted in the cache queue. At this time, the clock deviation value Md1 calculated in the current sampling period T2' is added to the two accumulated clock deviation values ​​D1 to obtain the accumulated clock deviation value D2;

[0119] Step S405, node 2 inserts the calculated accumulated clock deviation value D2 into the OSU deviation overhead according to the frequency of the sampling period T2', multiplexes the OSU carrying the OSU deviation overhead into ODU2, multiplexes ODU2 into OTU2, and then sends OTU2 to node 3 through the OTU2 interface;

[0120] Step S406: Node 3 receives OTU2 sent by node 2 according to sampling period T3', counts the number of bits of OTU2 received in sampling period T3', and then converts the counted number of bits into the corresponding reference clock number M3, and then determines the expected reference clock number M4 of node 3 in sampling period T3', and subtracts M4 from M3 to obtain the clock deviation value Md2 of node 3 relative to node 2 in the current sampling period T3'.

[0121] Step S407, when receiving OTU2 sent by node 2, node 3 also extracts OSU from OTU2, and obtains the indication mark of OSU deviation overhead from OSU. If the obtained indication mark indicates that OSU deviation overhead carries the accumulated clock deviation value, the accumulated clock deviation value D2 is extracted from the OSU deviation overhead, and the accumulated clock deviation value D2 is cached in the local cache queue;

[0122] Step S408, node 3 extracts 1 accumulated clock deviation value D2 from the cache queue and adds it to the clock deviation value Md2 calculated in the current sampling period T3' to obtain the accumulated clock deviation value D3; since T2'>T3', that is, the speed at which node 3 receives the accumulated clock deviation value D2 is slower than the speed at which the clock deviation value Md2 is calculated, there will be a certain sampling period T3', and there is no situation where the accumulated clock deviation value D2 can be extracted in the cache queue. At this time, the clock deviation value Md2 calculated in the current sampling period T3' is added to zero to obtain the accumulated clock deviation value D3;

[0123] Step S409: Node 3 inserts the calculated accumulated clock deviation value D3 into the OSU deviation overhead according to the frequency of the sampling period T3'.

[0124] According to the clock recovery method provided in the embodiment of the present application, the current node calculates the clock deviation value of the current node relative to the previous node within the sampling period, receives the OSU from the previous node, and then takes out the first accumulated clock deviation value from the OSU deviation overhead of the OSU, and then adds the calculated clock deviation value and the first accumulated clock deviation value obtained from the previous node to obtain a second accumulated clock deviation value, and then inserts the second accumulated clock deviation value into the OSU deviation overhead of the OSU according to the sampling period corresponding to the current node, and then sends the OSU to the next node. In this way, during the OSU transmission process, the clock deviation value generated by each node will be added to the OSU deviation overhead, so that the OSU clock recovery can be finally performed according to the accumulated clock deviation value in the OSU deviation overhead, thereby overcoming the influence of the local reference clock deviation of each node on the OSU clock recovery and improving the accuracy of the OSU clock recovery.

[0125] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0126] See also Fig.11 The embodiment of the present application further provides a clock recovery device. The clock recovery device 1000 of the embodiment of the present application includes:

[0127] A determination module 1100 is used to calculate a clock deviation value of a current node relative to a previous node within a sampling period T1;

[0128] The extraction module 1200 is used to receive the OSU sent by the previous node and extract the first accumulated clock deviation value from the OSU deviation overhead in the OSU;

[0129] An accumulation module 1300, configured to accumulate the clock deviation value and a first number of first accumulated clock deviation values ​​to obtain a second accumulated clock deviation value;

[0130] The sending module 1400 is used to insert the second accumulated clock deviation value into the OSU deviation overhead in the OSU according to the frequency of the sampling period T1, and send the OSU to the next node.

[0131] In an exemplary embodiment, the OSU deviation overhead is located in the overhead area of ​​the OSU, and the OSU deviation overhead is used to transfer the accumulated clock deviation value between nodes.

[0132] In an exemplary embodiment, an indication flag of the OSU deviation overhead is defined in the OSU overhead, and the indication flag is used to indicate whether the OSU deviation overhead carries a cumulative clock deviation value.

[0133] In an exemplary embodiment, the frequency at which the current node receives the OSU deviation overhead carrying the first accumulated clock deviation value is related to the sampling period T2 of the previous node.

[0134] In an exemplary embodiment, the first number is related to the local reference clock frequency of the current node and the local reference clock frequency of the previous node, and the first number is any value of 0, 1, or 2.

[0135] In an exemplary embodiment, the first number is the number of OSU deviation overheads carrying the first accumulated clock deviation value received from the previous node within the sampling period T1 of the current node.

[0136] In an exemplary embodiment, the determination module 1100 is specifically configured to:

[0137] Count the number of bits of the service signal received from the previous node within the sampling period T1, where the service signal is used to carry the OSU;

[0138] Determine the number of reference clocks corresponding to the sampling period T1 according to the number of bits;

[0139] Determine the expected number of reference clocks of the current node in sampling period T1;

[0140] The clock deviation value is calculated based on the expected number of reference clocks and the number of reference clocks.

[0141] In an exemplary embodiment, the sampling period T1 is composed of a second number of local reference clocks of the current node, the sampling period T2 is composed of a second number of local reference clocks of the previous node, and both sampling periods T1 and T2 are greater than the frame period of the OSU, and the second number is a preset fixed value.

[0142] In an exemplary embodiment, the accumulation module 1300 is specifically configured to:

[0143] In sampling period T1, two OSU deviation overheads carrying the first accumulated clock deviation value are received from the previous node;

[0144] The clock deviation value is accumulated with two first accumulated clock deviation values ​​extracted from the OSU deviation overhead to obtain a second accumulated clock deviation value.

[0145] In an exemplary embodiment, the accumulation module 1300 is specifically configured to:

[0146] In sampling period T1, an OSU deviation overhead carrying a first accumulated clock deviation value is received from the previous node;

[0147] The clock deviation value is accumulated with a first accumulated clock deviation value extracted from the OSU deviation overhead to obtain a second accumulated clock deviation value.

[0148] In an exemplary embodiment, the accumulation module 1300 is specifically configured to:

[0149] In sampling period T1, 0 OSU deviation overheads carrying the first accumulated clock deviation value are received from the previous node, and the clock deviation value is accumulated with zero to obtain a second accumulated clock deviation value.

[0150] In an exemplary embodiment, the clock recovery device in the embodiment of the present application further includes a cache module, and the cache module is used to:

[0151] The first accumulated clock deviation value extracted from the OSU deviation overhead of the previous node is written into the cache queue.

[0152] In an exemplary embodiment, the accumulation module 1300 is specifically configured to:

[0153] In sampling period T1, when the number of first accumulated clock deviation values ​​cached in the cache queue is greater than or equal to a preset threshold, two first accumulated clock deviation values ​​are read from the cache queue, and the clock deviation value is accumulated with the two first accumulated clock deviation values ​​to obtain a second accumulated clock deviation value;

[0154] In sampling period T1, when the number of first accumulated clock deviation values ​​cached in the cache queue is greater than zero and less than a preset threshold, one first accumulated clock deviation value is read from the cache queue, and the clock deviation value is accumulated with one first accumulated clock deviation value to obtain a second accumulated clock deviation value;

[0155] In the sampling period T1, when the number of first accumulated clock deviation values ​​buffered in the buffer queue is equal to zero, the clock deviation value is accumulated with zero to obtain a second accumulated clock deviation value.

[0156] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0157] It should be noted that since the clock recovery device of this embodiment can implement the clock recovery method of the previous embodiment, the clock recovery device of this embodiment and the clock recovery method of the previous embodiment have the same technical principles and the same beneficial effects. In order to avoid repetition, they will not be repeated here.

[0158] See also Fig.12 The present application also provides an electronic device, the electronic device 2000 includes but is not limited to:

[0159] at least one processor 2001;

[0160] At least one memory 2002, used to store at least one program;

[0161] When at least one program is executed by at least one processor 2001 , the clock recovery method described in any of the above embodiments is performed.

[0162] It should be understood that the processor 2001 and the memory 2002 may be connected via a bus or other means.

[0163] It should be understood that the processor 2001 can use a central processing unit (CPU). The processor can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. Or the processor 2001 uses one or more integrated circuits to execute related programs to implement the technical solutions provided in the embodiments of the present application.

[0164] The memory 2002 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs and non-transitory computer executable programs, such as the clock recovery method performed by the electronic device side described in any embodiment of the present application. The processor 2001 implements the above-mentioned clock recovery method by running the non-transitory software program and instructions stored in the memory 2002.

[0165] The memory 2002 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store and execute the above-mentioned clock recovery method. In addition, the memory 2002 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 2002 may optionally include a memory remotely arranged relative to the processor 2001, and these remote memories may be connected to the processor 2001 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0166] The non-transient software programs and instructions required to implement the above-mentioned clock recovery method are stored in the memory 2002, and when executed by one or more processors 2001, the clock recovery method provided by any embodiment of the present application is executed.

[0167] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the clock recovery method described in any of the above embodiments is implemented.

[0168] The computer storage medium of the embodiment of the present application can adopt any combination of one or more computer-readable media. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0169] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0170] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0171] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0172] An embodiment of the present application further provides a computer program product, which stores program instructions. When the program instructions are executed on a computer device, the computer device implements the clock recovery method described in any of the above embodiments.

[0173] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above implementation. Those skilled in the art can make various equivalent modifications or substitutions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the present application.

Claims

1. A clock recovery method, the method comprising: Calculate the clock deviation value of the current node relative to the previous node within the sampling period T1; Receiving an optical service unit OSU sent by the previous node, and extracting a first accumulated clock deviation value from an OSU deviation overhead in the OSU; Accumulating the clock deviation value and the first number of the first accumulated clock deviation values ​​to obtain a second accumulated clock deviation value; The second accumulated clock deviation value is inserted into the OSU deviation overhead in the OSU according to the frequency of the sampling period T1, and the OSU is sent to the next node.

2. The clock recovery method according to claim 1, characterized in that: The OSU deviation overhead is located in the overhead area of ​​the OSU, and the OSU deviation overhead is used to transmit the accumulated clock deviation value between nodes.

3. The clock recovery method according to claim 2, characterized in that: An indication flag of the OSU deviation overhead is defined in the OSU overhead, and the indication flag is used to indicate whether the OSU deviation overhead carries a cumulative clock deviation value.

4. The clock recovery method according to claim 1, characterized in that: The frequency at which the current node receives the OSU deviation overhead carrying the first accumulated clock deviation value is related to the sampling period T2 of the previous node.

5. The clock recovery method according to claim 1, characterized in that: The first number is related to the local reference clock frequency of the current node and the local reference clock frequency of the previous node, and the first number is any value of 0, 1 or 2.

6. The clock recovery method according to claim 1 or 5, characterized in that: The first number is the number of the first accumulated clock deviation values ​​extracted from the received OSU deviation overhead within the sampling period T1 of the current node.

7. The clock recovery method according to claim 1, characterized in that: The calculating of the clock deviation value of the current node relative to the previous node within the sampling period T1 includes: Counting the number of bits of a service signal received from the previous node within the sampling period T1, where the service signal is used to carry the OSU; Determine the number of reference clocks corresponding to the sampling period T1 according to the number of bits; Determine the expected number of reference clocks of the current node in the sampling period T1; The clock deviation value is calculated according to the expected number of reference clocks and the number of reference clocks.

8. The clock recovery method according to claim 1, characterized in that: The sampling period T1 is composed of a second number of the local reference clocks of the current node, the sampling period T2 is composed of a second number of the local reference clocks of the previous node, and the sampling periods T1 and T2 are both greater than the frame period of the OSU, and the second number is a preset fixed value.

9. The clock recovery method according to claim 1, characterized in that: The step of accumulating the clock deviation value and the first number of the first accumulated clock deviation values ​​to obtain a second accumulated clock deviation value includes: In the sampling period T1, extracting two first accumulated clock deviation values ​​from the received OSU deviation overhead; The clock deviation value is accumulated with two of the first accumulated clock deviation values ​​to obtain the second accumulated clock deviation value.

10. The clock recovery method according to claim 1, characterized in that: The step of accumulating the clock deviation value and the first number of the first accumulated clock deviation values ​​to obtain a second accumulated clock deviation value includes: In the sampling period T1, extracting one first accumulated clock deviation value from the received OSU deviation overhead; The clock deviation value is accumulated with one of the first accumulated clock deviation values ​​to obtain the second accumulated clock deviation value.

11. The clock recovery method according to claim 1, characterized in that: The step of accumulating the clock deviation value and the first number of the first accumulated clock deviation values ​​to obtain a second accumulated clock deviation value includes: In the sampling period T1, 0 first accumulated clock deviation values ​​are extracted from the received OSU deviation overhead, and the clock deviation value is accumulated with zero to obtain the second accumulated clock deviation value.

12. The clock recovery method according to claim 1, characterized in that: After extracting the first accumulated clock deviation value from the OSU deviation overhead in the OSU, the method further comprises: The extracted first accumulated clock deviation value is written into the cache queue.

13. The clock recovery method according to claim 12, characterized in that: Accumulating the clock deviation value and the first number of the first accumulated clock deviation values ​​to obtain a second accumulated clock deviation value includes: In the sampling period T1, when the number of the first accumulated clock deviation values ​​cached by the cache queue is greater than or equal to a preset threshold, two of the first accumulated clock deviation values ​​are read from the cache queue, and the clock deviation value is accumulated with the two first accumulated clock deviation values ​​to obtain the second accumulated clock deviation value; In the sampling period T1, when the number of the first accumulated clock deviation values ​​cached by the cache queue is greater than zero and less than a preset threshold, one of the first accumulated clock deviation values ​​is read from the cache queue, and the clock deviation value is accumulated with one of the first accumulated clock deviation values ​​to obtain the second accumulated clock deviation value; In the sampling period T1, when the number of the first accumulated clock deviation values ​​cached in the cache queue is equal to zero, the clock deviation value is accumulated with zero to obtain the second accumulated clock deviation value.

14. A clock recovery device, characterized in that: The device comprises: A determination module is used to calculate the clock deviation value of the current node relative to the previous node within the sampling period T1; An extraction module, configured to receive an optical service unit OSU sent by the previous node, and extract a first accumulated clock deviation value from an OSU deviation overhead in the OSU; An accumulation module, configured to accumulate the clock deviation value and a first number of the first accumulated clock deviation values ​​to obtain a second accumulated clock deviation value; The sending module is used to insert the second accumulated clock deviation value into the OSU deviation overhead in the OSU according to the frequency of the sampling period T1, and send the OSU to the next node.

15. An electronic device, comprising: one or more processors; A memory having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the clock recovery method according to any one of claims 1 to 13.

16. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the clock recovery method according to any one of claims 1 to 13.