CN112311452B - Clock deviation calculation method and device and calculation equipment - Google Patents

Clock deviation calculation method and device and calculation equipment Download PDF

Info

Publication number
CN112311452B
CN112311452B CN201910688025.8A CN201910688025A CN112311452B CN 112311452 B CN112311452 B CN 112311452B CN 201910688025 A CN201910688025 A CN 201910688025A CN 112311452 B CN112311452 B CN 112311452B
Authority
CN
China
Prior art keywords
node
value
optical fiber
calculating
fiber ring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910688025.8A
Other languages
Chinese (zh)
Other versions
CN112311452A (en
Inventor
张满
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201910688025.8A priority Critical patent/CN112311452B/en
Publication of CN112311452A publication Critical patent/CN112311452A/en
Application granted granted Critical
Publication of CN112311452B publication Critical patent/CN112311452B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0795Performance monitoring; Measurement of transmission parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/27Arrangements for networking
    • H04B10/275Ring-type networks

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The embodiment of the invention relates to the technical field of communication, and discloses a clock deviation calculation method, a clock deviation calculation device and calculation equipment. Wherein, the method comprises the following steps: acquiring comparison information of each node of the optical fiber ring network; calculating a deviation value between two adjacent nodes in the tracking path according to the tracking path of the optical fiber ring network and each comparison value; if the passive node exists in the optical fiber ring network, acquiring an asymmetric value of the passive node; and calculating the loop deviation value of the optical fiber ring network according to the asymmetric value of the passive node and the deviation value between two adjacent nodes in the tracking path. Through the mode, the embodiment of the invention considers the whole networking of the network and improves the precision of clock deviation calculation.

Description

Clock deviation calculation method and device and calculation equipment
Technical Field
The embodiment of the invention relates to the technical field of optical fibers, in particular to a clock deviation calculation method, a clock deviation calculation device and calculation equipment.
Background
The optical fiber asymmetry refers to line asymmetry caused by the length inconsistency of the transmitting optical fiber and the receiving optical fiber among network devices, which directly affects the accuracy of time synchronization thereof. The time delay introduced by the optical fiber with the length of 1 meter is about 5ns, according to the 1588v2 time calculation formula, if the optical fiber with the length of 400 meters is asymmetrical, 1us of clock error is generated, the clock precision requirement of the TD-SCDMA base station cannot be met (the clock precision requirement of the TD-SCDMA base station is 3us, and the clock precision provided by the requirement of distributing to a bearing network is 1 us).
At present, for the current network to open the 1588v2 characteristic, the asymmetry of the optical fiber can be compensated only by actual measurement because the optical fiber is laid.
The inventor finds that the current clock deviation calculation method of the optical fiber ring network does not consider the whole networking of the network in the process of implementing the embodiment of the application, and the precision is low.
Disclosure of Invention
In view of the above problems, embodiments of the present invention provide a clock skew calculation method, apparatus, and computing device, which overcome or at least partially solve the above problems.
According to an aspect of an embodiment of the present invention, there is provided a clock skew calculation method, including:
acquiring comparison information of each node of the optical fiber ring network;
calculating a deviation value between two adjacent nodes in the tracking path according to the tracking path of the optical fiber ring network and each comparison value;
if the passive node exists in the optical fiber ring network, acquiring an asymmetric value of the passive node;
and calculating the loop deviation value of the optical fiber ring network according to the asymmetric value of the passive node and the deviation value between two adjacent nodes in the tracking path.
In an optional manner, the method further comprises:
marking the nodes capable of acquiring the comparison values;
then, the calculating a deviation value between two adjacent nodes in the tracking path further includes:
if the node is marked and the upstream node of the node is marked, calculating a deviation value between the node and the upstream node of the node according to the comparison value of the node and the comparison value of the upstream node of the node;
if the node is not marked, the upstream node of the node is marked, and the downstream node of the node is also marked, calculating a deviation value between the node and the upstream node of the node or a deviation value between the node and the downstream node of the node according to the comparison value of the upstream node of the node and the comparison value of the downstream node of the node.
In an optional manner, the calculating a loop deviation value according to the asymmetry value of the passive node and a deviation value between two adjacent nodes in the tracking path further includes:
calculating the asymmetric sum of the passive node and the link related to the opposite end network element according to the deviation value between two adjacent nodes in the tracking path;
and solving the loop deviation value according to the condition that the sum of the asymmetry of the relative links of the passive node and the opposite terminal network element is equal to the asymmetry value of the passive node.
In an optional manner, the method further comprises:
determining the tracing path, wherein in the tracing path, each node is connected with an upstream node of the nodes through a slave connection, and the tracing path starts from an end node and terminates at a reference source of the optical fiber ring network.
In an optional mode, the comparison value is a time difference value between a 1588v2 clock and a GPS instrument.
In an optional manner, the obtaining a comparison value of each node of the optical fiber ring network further includes:
respectively acquiring a plurality of comparison information of each node;
and calculating the average value of a plurality of comparison information of the nodes as the comparison value of the nodes.
In an optional manner, the method further comprises:
and calculating the clock deviation of the optical fiber ring network according to the deviation value between two adjacent nodes on the tracking path and the loop deviation value.
According to another aspect of the embodiments of the present invention, there is provided a clock skew calculating apparatus including:
the first acquisition module is used for acquiring a comparison value of each node of the optical fiber ring network;
the adjacent node deviation calculation module is used for calculating a deviation value between two adjacent nodes in the tracking path according to the tracking path of the network equipment and each comparison value;
the second acquisition module is used for acquiring an asymmetric value of a passive node if the passive node exists in the optical fiber ring network;
and the loop deviation value calculating module is used for calculating the loop deviation value of the optical fiber ring network according to the asymmetric value of the passive node and the deviation value between two adjacent nodes in the tracking path.
According to still another aspect of an embodiment of the present invention, there is provided a computing device including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction which causes the processor to execute the operation of the clock deviation calculating method.
According to another aspect of the embodiments of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to execute the clock skew calculation method as described above.
According to the embodiment of the invention, the comparison information of each node of the optical fiber ring network is obtained, the deviation value between two adjacent nodes in the tracking path is calculated according to the tracking path and each comparison value of the optical fiber ring network, if the passive node exists in the optical fiber ring network, the asymmetric value of the passive node is obtained, and the loop deviation value of the optical fiber ring network is calculated according to the asymmetric value of the passive node and the deviation value between two adjacent nodes in the tracking path, so that the whole network grouping is considered, the large data analysis is introduced by combining the network topology, the unmeasured link is analyzed through the adjacent nodes, the data utilization rate is optimized, the precision of clock deviation calculation is improved, and the time deviation meter is changed from manual operation to automatic operation, so that the manpower and material resources are saved, the efficiency is higher, and errors are not easy to occur.
The foregoing description is only an overview of the technical solutions of the embodiments of the present invention, and the embodiments of the present invention can be implemented according to the content of the description in order to make the technical means of the embodiments of the present invention more clearly understood, and the detailed description of the present invention is provided below in order to make the foregoing and other objects, features, and advantages of the embodiments of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating a clock skew calculation method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an optical fiber ring network provided by an embodiment of the invention;
FIG. 3 is a schematic diagram of a tracking tree into which the fiber ring network of FIG. 2 is converted;
fig. 4 is a schematic structural diagram of a clock skew calculation apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computing device provided by an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 shows a flowchart of a clock skew calculation method according to an embodiment of the present invention. The method is applied in a computing device, such as a server in a communication network. As shown in fig. 1, the method comprises the steps of:
and step 110, obtaining a comparison value of each node of the optical fiber ring network.
For example, as shown in fig. 2, the optical fiber ring network is composed of 16 PTN devices including PTN1-PTN16, wherein a convergence ring composed of PTN1-PTN6 is connected in a single-fiber bidirectional manner, and the PTN1 is connected to a base station.
The network devices in the optical fiber ring network are nodes of the optical fiber ring network, such as the PTN in fig. 2. Wherein, the comparison value is the time difference between the 1588v2 clock of the node and the GPS instrument.
It should be noted that each node may not acquire the comparison value, and only the node having the GPS antenna may acquire the comparison value. For example, as shown in fig. 2, PTN7 can acquire the comparison value with a GPS antenna, and PTN8 cannot acquire the comparison value without a GPS antenna.
In some embodiments, if the node can obtain a plurality of comparison information, step 110 further includes: respectively acquiring a plurality of comparison information of each node; and calculating the average value of the plurality of comparison information of the nodes as the comparison value of the nodes. The average value of the comparison information of the calculation nodes may specifically be: preprocessing a plurality of comparison information of the nodes, and extracting an average value according to a majority judgment principle. For example, if at node AnReading a plurality of comparison values as Dn={d(n,1),d(n,2),d(n,3)Λd(n,kn) In which k isnIs node AnThe nth comparison value is obtained, and D is eliminatednIf only one data is left, the data is directly used as a comparison value, and if two data exist, the smaller value is used as the comparison value.
The comparison value of each node of the optical fiber ring network can be obtained periodically, and the cycle period can be set freely by a user.
And step 120, calculating a deviation value between two adjacent nodes in the tracking path according to the tracking path of the optical fiber ring network and each comparison value.
In the tracking path of the optical fiber ring network, each node is connected with an upstream node of the node through a slave connection, and the tracking path starts from a terminal node and terminates at a reference source of the optical fiber ring network.
Wherein, before step 120, the method further comprises: and determining a tracking path of the optical fiber ring network. Determining a tracking path of the optical fiber ring network, wherein the specific implementation mode can be as follows: and converting the optical fiber ring network into a tracking tree according to the synchronous path of the optical fiber ring network, thereby determining the tracking path of the terminal node. For example, as shown in fig. 3, if fig. 3 is a tracking tree converted from the optical fiber ring network of fig. 2, the tracking path of the PTN9 is: PTN9-PTN8-PTN7-PTN3-PTN2-PTN1-REF, the tracking path of PTN11 is: PTN11-PTN10-PTN4-PTN3-PTN3-PTN 1-REF.
For convenience of determination, different calculation methods are used for different situations. Prior to step 120, the method further comprises: and marking the nodes capable of acquiring the comparison information, namely marking the nodes with the GPS antenna. Step 120 further comprises:
step 121, if the node has a mark and the upstream node of the node has a mark, calculating a deviation value between the node and the upstream node of the node according to the comparison value of the node and the comparison value of the upstream node of the node;
and step 122, if the node is not marked, the upstream node of the node is marked, and the downstream node of the node is also marked, calculating a deviation value between the node and the upstream node of the node or a deviation value between the node and the downstream node of the node according to the comparison value of the upstream node of the node and the comparison value of the downstream node of the node.
Note that the upstream node of the node refers to the first node located upstream of the node in the trace path, and similarly, the downstream node of the node refers to the first node located downstream of the node in the trace path.
In step 121, calculating a deviation value between the node and the upstream node of the node according to the comparison value of the node and the comparison value of the upstream node of the node, which specifically includes:
calculating an offset value between the node and a node upstream of the node according to the following formula:
Fac-p=Dc-Dp
wherein Fac-pIs an offset value between node c and node p, which is an upstream node of node c, DcIs the comparison value of node c, DpIs the comparison value of the node p. For example, as shown in FIG. 3, if both PTN11 and PTN10 have labels, Fa11-10=D11-D10
In step 122, calculating an offset value between the node and the upstream node of the node or an offset value between the node and the downstream node of the node according to the comparison value of the upstream node of the node and the comparison value of the downstream node of the node, which specifically includes:
if the node has only one downstream path, calculating the deviation value between the node and the upstream node of the node or the deviation value between the node and the downstream node of the node according to the following formula:
Figure BDA0002146987360000061
wherein Fac-qIs the deviation value between node c and node q, Faq-pIs an offset value between node q and node p, node p being an upstream node of node q, node c being a downstream node of node q, DpIs the comparison value of node p, DcIs the alignment value of node c. For example, as shown in FIG. 3, PTN8 is unlabeled, and PTN1 and PTN9 are both labeled, then
Figure BDA0002146987360000062
If the node has other downstream paths, calculating an offset value between the node and an upstream node of the node or an offset value between the node and a downstream node of the node according to the following formula:
AX=b
where A is the matrix of the computational equation and b ═ Dc1-Dp,Dc2-Dp,ΛDcn-Dp]Where n is the number of downstream paths, node p is the upstream node of node q, nodes c1, c 2. cng are the downstream nodes of node q, DpIs the comparison value of node p, Dc1Is the alignment of node c1, Dc2Is the alignment value of node c 2. DcnSolving X for the comparison value of the node cn can obtain a deviation value between each two adjacent nodes.
For example, as shown in FIG. 3, PTN12 is unlabeled, and PTN16, PTN15 and PTN14 are all labeled, then
AX=b
Figure BDA0002146987360000071
Figure BDA0002146987360000072
To obtain
Figure BDA0002146987360000073
And step 130, if the passive node exists in the optical fiber ring network, acquiring an asymmetric value of the passive node.
In step 130, it is determined whether a passive node exists in the optical fiber ring network, and the specific method may be as follows: and searching whether the optical fiber ring network has a loop with double-fiber bidirectional connection, and if so, having a passive node. For example, as shown in fig. 2, two loops of two-fiber bidirectional connection exist in the optical fiber ring network, which are PTN9-PTN8-PTN7-PTN3-PTN4-PTN10-PTN9, PTN11-PTN10-PTN4-PTN5-PTN14-PTN12-PTN11, where a passive connection of the first loop is PTN9-PTN10, a passive node is PTN9, a passive connection of the second loop is PTN11-PTN12, and a passive node is PTN 11.
The asymmetric value of the passive node is the sum of the asymmetric links of the passive node and the opposite-end network element, wherein the opposite-end network element of the passive node is the node network element which is equivalent to the passive node but has clock deviation. For example, as shown in fig. 2, in the loop PTN9-PTN8-PTN7-PTN3-PTN4-PTN10-PTN9, there is a peer network element on the right side of PTN9, so that there is a clock skew between two links of the peer network element of PTN3-PTN7-PTN8-PTN9 and PTN3-PTN4-PTN10-PTN9, and this clock skew value is an asymmetry value of the passive node. The asymmetry value of the passive node can be obtained from a server or background monitoring.
The asymmetric value of the passive node can be acquired periodically, and the cycle period can be set freely by a user.
And 140, calculating a loop deviation value of the optical fiber ring network according to the asymmetry value of the passive node and the deviation value between two adjacent nodes in the tracking path.
Wherein, step 140 specifically includes:
step 141, calculating the asymmetric sum of passive nodes and links related to the opposite end network element thereof according to the deviation value between two adjacent nodes in the tracking path;
and 142, solving a loop deviation value according to the condition that the sum of the asymmetry of the passive node and the link related to the opposite terminal network element is equal to the asymmetry value of the passive node.
The specific implementation manner of step 141 may be: determining node AmWith its opposite end network element ampCo-tracking node A ofpCalculating A according to the deviation value between two adjacent nodes in the tracking pathmTo ApTotal offset value of the link of (1), and AmpTo ApAnd A is the total deviation value of the link of (1), andmto ApTotal offset value of the link of (1) minus AmpTo ApAnd obtaining the asymmetric sum of the passive node and the link related to the opposite terminal network element.
In step 142, the loop deviation value is a deviation value between the passive node and a node connected to the passive node passive.
For example, as shown in FIG. 2, in the loop PTN9-PTN8-PTN7-PTN3-PTN4-PTN10-PTN9, passive connection is PTN9-PTN10, and the asymmetry value P of the passive node is acquired to the right side of PTN9mIf the common tracking node is determined to be PTN3, P is presentm=(Fa9-8+Fa8-7+Fa7-3)-(Fa9-10+Fa10-4+Fa4-3) Solving to obtain a loop deviation value Fa9-10=(Fa9-8+Fa8-7+Fa7-3)-(Fa10-4+Fa4-3)-Pm
In some embodiments, after obtaining the deviation value between two adjacent nodes and the loop deviation value, the method further includes: calculating the deviation value between two adjacent nodes on the tracking path and the loop deviation valueClock skew of the fiber ring network. For example, as shown in FIG. 2, on a link with a tracking path PTN9-PTN8-PTN7-PTN3-PTN2-PTN1-REF, the total clock skew is
Figure BDA0002146987360000081
(ii) a As another example, as shown in FIG. 2, over a link with a tracking path PTN9-PTN10-PTN4-PTN3-PTN2-PTN1-REF, the total clock skew Fasum=Fa9-10+Fa10-4+Fa4-3+Fa3-2+Fa2-1+0=(Fa9-8+Fa8-7+Fa7-3-Fa10-4-Fa4-3-Pm)+(D10-0)+0+0+0。
It should be noted that, in this embodiment, a single-fiber bidirectional connected node (for example, a convergence ring composed of PTN1\ PTN2\ PTN3\ PTN4\ PTN5\ PTN6 in fig. 2) is used, and the offset value of the link is estimated through the bidirectional wavelength and the transmission length, and it can be considered that the offset value is estimated and compensated. In addition, the optical fiber between the network device and the base station is short, and the asymmetry value is considered to be small, which can be regarded as 0.
According to the embodiment of the invention, the comparison information of each node of the optical fiber ring network is obtained, the deviation value between two adjacent nodes in the tracking path is calculated according to the tracking path and each comparison value of the optical fiber ring network, if the passive node exists in the optical fiber ring network, the asymmetric value of the passive node is obtained, and the loop deviation value of the optical fiber ring network is calculated according to the asymmetric value of the passive node and the deviation value between two adjacent nodes in the tracking path, so that the whole network grouping is considered, the large data analysis is introduced by combining the network topology, the unmeasured link is analyzed through the adjacent nodes, the data utilization rate is optimized, the precision of clock deviation calculation is improved, and the time deviation meter is changed from manual operation to automatic operation, so that the manpower and material resources are saved, the efficiency is higher, and errors are not easy to occur.
Fig. 4 is a schematic structural diagram illustrating a clock skew calculation apparatus according to an embodiment of the present invention. As shown in fig. 4, the apparatus 200 includes: a first obtaining module 210, an adjacent node deviation calculating module 220, a second obtaining module 230, and a loop deviation value calculating module 240.
The first obtaining module 210 is configured to obtain a comparison value of each node of the optical fiber ring network; the adjacent node deviation calculating module 220 is configured to calculate a deviation value between two adjacent nodes in the tracking path according to the tracking path of the network device and each of the comparison values; the second obtaining module 230 is configured to obtain an asymmetric value of a passive node if the optical fiber ring network has the passive node; the loop deviation value calculating module 240 is configured to calculate a loop deviation value of the optical fiber ring network according to the asymmetric value of the passive node and a deviation value between two adjacent nodes in the tracking path.
In an optional manner, the apparatus 200 further comprises: and a marking module. And the marking module is used for marking the nodes which can obtain the comparison values. Then, the neighboring node deviation calculating module 220 is specifically configured to: if the node is marked and the upstream node of the node is marked, calculating a deviation value between the node and the upstream node of the node according to the comparison value of the node and the comparison value of the upstream node of the node; if the node is not marked, the upstream node of the node is marked, and the downstream node of the node is also marked, calculating a deviation value between the node and the upstream node of the node or a deviation value between the node and the downstream node of the node according to the comparison value of the upstream node of the node and the comparison value of the downstream node of the node.
In an optional manner, the loop deviation value calculating module 240 is specifically configured to: calculating the asymmetric sum of the passive node and the link related to the opposite end network element according to the deviation value between two adjacent nodes in the tracking path; and solving the loop deviation value according to the condition that the sum of the asymmetry of the relative links of the passive node and the opposite terminal network element is equal to the asymmetry value of the passive node.
In an optional manner, the apparatus 200 further comprises: and determining a module. The determination module is to: determining the tracing path, wherein in the tracing path, each node is connected with an upstream node of the nodes through a slave connection, and the tracing path starts from an end node and terminates at a reference source of the optical fiber ring network.
In an optional mode, the comparison value is a time difference value between a 1588v2 clock and a GPS instrument.
In an optional manner, the first obtaining module 210 is specifically configured to: respectively acquiring a plurality of comparison information of each node; and calculating the average value of a plurality of comparison information of the nodes as the comparison value of the nodes.
In an optional manner, the apparatus 200 further comprises: and a clock deviation calculation module. The clock skew calculation module is used for: and calculating the clock deviation of the optical fiber ring network according to the deviation value between two adjacent nodes on the tracking path and the loop deviation value.
It should be noted that the clock skew calculation apparatus provided in the embodiments of the present invention is an apparatus capable of executing the clock skew calculation method, and all embodiments of the clock skew calculation method are applicable to the apparatus and can achieve the same or similar beneficial effects.
According to the embodiment of the invention, the comparison information of each node of the optical fiber ring network is obtained, the deviation value between two adjacent nodes in the tracking path is calculated according to the tracking path and each comparison value of the optical fiber ring network, if the passive node exists in the optical fiber ring network, the asymmetric value of the passive node is obtained, and the loop deviation value of the optical fiber ring network is calculated according to the asymmetric value of the passive node and the deviation value between two adjacent nodes in the tracking path, so that the whole network grouping is considered, the large data analysis is introduced by combining the network topology, the unmeasured link is analyzed through the adjacent nodes, the data utilization rate is optimized, the precision of clock deviation calculation is improved, and the time deviation meter is changed from manual operation to automatic operation, so that the manpower and material resources are saved, the efficiency is higher, and errors are not easy to occur.
An embodiment of the present invention provides a computer storage medium, where at least one executable instruction is stored in the storage medium, and the executable instruction causes a processor to execute the clock skew calculation method in any of the above method embodiments.
According to the embodiment of the invention, the comparison information of each node of the optical fiber ring network is obtained, the deviation value between two adjacent nodes in the tracking path is calculated according to the tracking path and each comparison value of the optical fiber ring network, if the passive node exists in the optical fiber ring network, the asymmetric value of the passive node is obtained, and the loop deviation value of the optical fiber ring network is calculated according to the asymmetric value of the passive node and the deviation value between two adjacent nodes in the tracking path, so that the whole network grouping is considered, the large data analysis is introduced by combining the network topology, the unmeasured link is analyzed through the adjacent nodes, the data utilization rate is optimized, the precision of clock deviation calculation is improved, and the time deviation meter is changed from manual operation to automatic operation, so that the manpower and material resources are saved, the efficiency is higher, and errors are not easy to occur.
Embodiments of the present invention provide a computer program product comprising a computer program stored on a computer storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the clock skew calculation method of any of the above-described method embodiments.
According to the embodiment of the invention, the comparison information of each node of the optical fiber ring network is obtained, the deviation value between two adjacent nodes in the tracking path is calculated according to the tracking path and each comparison value of the optical fiber ring network, if the passive node exists in the optical fiber ring network, the asymmetric value of the passive node is obtained, and the loop deviation value of the optical fiber ring network is calculated according to the asymmetric value of the passive node and the deviation value between two adjacent nodes in the tracking path, so that the whole network grouping is considered, the large data analysis is introduced by combining the network topology, the unmeasured link is analyzed through the adjacent nodes, the data utilization rate is optimized, the precision of clock deviation calculation is improved, and the time deviation meter is changed from manual operation to automatic operation, so that the manpower and material resources are saved, the efficiency is higher, and errors are not easy to occur.
Fig. 5 is a schematic structural diagram of a computing device according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the computing device.
As shown in fig. 5, the computing device may include: a processor (processor)302, a communication Interface 304, a memory 306, and a communication bus 308.
Wherein: the processor 302, communication interface 304, and memory 306 communicate with each other via a communication bus 308. A communication interface 304 for communicating with network elements of other devices, such as clients or other servers. The processor 302 is configured to execute the program 310, and may specifically execute the time offset calculation method in any of the method embodiments described above.
In particular, program 310 may include program code comprising computer operating instructions.
The processor 302 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the present invention. The computing device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 306 for storing a program 310. Memory 306 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
According to the embodiment of the invention, the comparison information of each node of the optical fiber ring network is obtained, the deviation value between two adjacent nodes in the tracking path is calculated according to the tracking path and each comparison value of the optical fiber ring network, if the passive node exists in the optical fiber ring network, the asymmetric value of the passive node is obtained, and the loop deviation value of the optical fiber ring network is calculated according to the asymmetric value of the passive node and the deviation value between two adjacent nodes in the tracking path, so that the whole network grouping is considered, the large data analysis is introduced by combining the network topology, the unmeasured link is analyzed through the adjacent nodes, the data utilization rate is optimized, the precision of clock deviation calculation is improved, and the time deviation meter is changed from manual operation to automatic operation, so that the manpower and material resources are saved, the efficiency is higher, and errors are not easy to occur.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.

Claims (9)

1. A clock bias calculation method, comprising:
acquiring a comparison value of each node of the optical fiber ring network;
calculating a deviation value between two adjacent nodes in the tracking path according to the tracking path of the optical fiber ring network and each comparison value;
if the passive node exists in the optical fiber ring network, acquiring an asymmetric value of the passive node;
calculating the asymmetric sum of the passive node and the link related to the opposite end network element according to the deviation value between two adjacent nodes in the tracking path;
and solving a loop deviation value according to the condition that the sum of the asymmetry of the relative links of the passive node and the opposite terminal network element is equal to the asymmetry value of the passive node.
2. The method of claim 1, further comprising:
marking the nodes capable of acquiring the comparison values;
then, the calculating a deviation value between two adjacent nodes in the tracking path further includes:
if the node is marked and the upstream node of the node is marked, calculating a deviation value between the node and the upstream node of the node according to the comparison value of the node and the comparison value of the upstream node of the node;
if the node is not marked, the upstream node of the node is marked, and the downstream node of the node is also marked, calculating a deviation value between the node and the upstream node of the node or a deviation value between the node and the downstream node of the node according to the comparison value of the upstream node of the node and the comparison value of the downstream node of the node.
3. The method of claim 1, further comprising:
determining the tracing path, wherein in the tracing path, each node is connected with an upstream node of the nodes through a slave connection, and the tracing path starts from an end node and terminates at a reference source of the optical fiber ring network.
4. The method of claim 1,
the comparison value is the time difference value of the 1588v2 clock and the GPS instrument.
5. The method according to claim 4, wherein the obtaining the comparison value of each node of the optical fiber ring network further comprises:
respectively acquiring a plurality of comparison information of each node;
and calculating the average value of a plurality of comparison information of the nodes as the comparison value of the nodes.
6. The method according to any one of claims 1-5, further comprising:
and calculating the clock deviation of the optical fiber ring network according to the deviation value between two adjacent nodes on the tracking path and the loop deviation value.
7. A clock skew calculation apparatus, comprising:
the first acquisition module is used for acquiring a comparison value of each node of the optical fiber ring network;
the adjacent node deviation calculating module is used for calculating a deviation value between two adjacent nodes in the tracking path according to the tracking path of the optical fiber ring network and each comparison value;
the second acquisition module is used for acquiring an asymmetric value of a passive node if the passive node exists in the optical fiber ring network;
the loop deviation value calculating module is used for calculating the asymmetric sum of the passive node and the link related to the opposite end network element according to the deviation value between two adjacent nodes in the tracking path;
and the loop deviation value calculating module is further used for solving the loop deviation value according to the condition that the sum of the asymmetry of the passive node and the link related to the opposite-end network element is equal to the asymmetry value of the passive node.
8. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to perform the operations of the clock skew calculation method of any of claims 1-6.
9. A computer storage medium having stored therein at least one executable instruction for causing a processor to perform the clock skew calculation method of any one of claims 1-6.
CN201910688025.8A 2019-07-29 2019-07-29 Clock deviation calculation method and device and calculation equipment Active CN112311452B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910688025.8A CN112311452B (en) 2019-07-29 2019-07-29 Clock deviation calculation method and device and calculation equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910688025.8A CN112311452B (en) 2019-07-29 2019-07-29 Clock deviation calculation method and device and calculation equipment

Publications (2)

Publication Number Publication Date
CN112311452A CN112311452A (en) 2021-02-02
CN112311452B true CN112311452B (en) 2022-04-01

Family

ID=74329475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910688025.8A Active CN112311452B (en) 2019-07-29 2019-07-29 Clock deviation calculation method and device and calculation equipment

Country Status (1)

Country Link
CN (1) CN112311452B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102820941A (en) * 2012-08-09 2012-12-12 中兴通讯股份有限公司 Clock synchronization method and device of communication network
CN103166792A (en) * 2011-12-16 2013-06-19 中国移动通信集团公司 Line asymmetrical compensation method, equipment and system
CN103166730A (en) * 2013-03-13 2013-06-19 西北工业大学 Method for synchronizing time in wireless ad hoc network based on protocol of institute of electrical and electronic engineers (IEEE) 1588
US8630315B2 (en) * 2010-02-17 2014-01-14 Ciena Corporation Ethernet network synchronization systems and methods

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080103713A1 (en) * 2006-10-27 2008-05-01 Barford Lee A Labeling Asymmetric Cables For Improved Network Clock Synchronization

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8630315B2 (en) * 2010-02-17 2014-01-14 Ciena Corporation Ethernet network synchronization systems and methods
CN103166792A (en) * 2011-12-16 2013-06-19 中国移动通信集团公司 Line asymmetrical compensation method, equipment and system
CN102820941A (en) * 2012-08-09 2012-12-12 中兴通讯股份有限公司 Clock synchronization method and device of communication network
CN103166730A (en) * 2013-03-13 2013-06-19 西北工业大学 Method for synchronizing time in wireless ad hoc network based on protocol of institute of electrical and electronic engineers (IEEE) 1588

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Clock Skew Estimation Using Kalman Filter and IEEE 1588v2 PTP for Telecom Networks;Zdenek Chaloupka等;《IEEE Communications Letters》;20150428;第19卷(第7期);第1181-1184页 *
PTN中1588v2工程开通测试与运维探讨;张满 等;《电信技术》;20120125;第85-88页的第3.1、3.3、4.2部分及附图1、2 *

Also Published As

Publication number Publication date
CN112311452A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
US20190394132A1 (en) System and Method for Network Slicing for Service-Oriented Networks
US7594146B2 (en) Apparatus, method, and program for correcting time of event trace data
CN107037978A (en) Data Migration bearing calibration and system
CN113114533B (en) Network time consumption display method and device for distributed service invocation
CN113572560B (en) Method, electronic device, and storage medium for determining clock synchronization accuracy
CN108429764B (en) Data transmission and analysis method based on private protocol
CN103716187A (en) Network topology structure determination method and system
CN114328122A (en) IO full life cycle time delay monitoring method and related device
CN109447553A (en) A kind of checking method of inventory, system and terminal device
CN112311452B (en) Clock deviation calculation method and device and calculation equipment
CN105574091B (en) Information-pushing method and device
Li et al. Modeling and analysis of RabbitMQ using UPPAAL
US9367821B2 (en) System and method for profiling requests in service systems
CN109947173B (en) Maximum clock deviation calculation method and calculation system
CN107679011A (en) Harmonic impedance scanning method and device
CN103605573A (en) Reconfigurable architecture mapping decision-making method based on expense calculation
CN116862549A (en) Service cost determining method and device, electronic equipment and nonvolatile storage medium
Xu et al. Pinfer: Learning to infer concurrent request paths from system kernel events
WO2014092536A1 (en) A system and method for dynamic generation of distribution plan for intensive social network analysis (sna) tasks
CN108599834B (en) Method and system for analyzing utilization rate of satellite communication network link
CN103684908A (en) Delay measuring method, delay measuring device and delay measuring system
CN105337784B (en) A kind of loss packet test method, test device and system
CN115204083B (en) Chip static time sequence analysis method and device, electronic equipment and storage medium
CN110782238A (en) Abnormal resource transfer combination identification method, device, equipment and medium
US20150006713A1 (en) High Performance Computing Network Activity Tracking Tool

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant