Optical cable fault detection method and device, equipment, storage medium and program product
By obtaining multiple preset key indicator information and judging their conditions in optical cable fault detection, combined with the power outage alarm information of the end-point equipment room, the detection accuracy problem of multiple optical cables in the transmission ring network is solved when the simultaneous failure is achieved, and more efficient optical cable fault judgment is achieved.
Patent Information
- Application Number
- CN202510609699.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-12
- Publication Date
- 2025-08-15
AI Technical Summary
In the transmission ring network, when multiple optical cables fail at the same time, the network element management system cannot accurately detect optical cable failure, especially when the transmission equipment is unpierced, it cannot obtain signal loss information, resulting in detection failure.
After receiving the optical cable breakpoint position alarm information of the starting device port, a plurality of preset key indicator information in the first preset time window is obtained, and whether these indicators meet the preset judgment conditions, and when the power outage alarm information of the end device room is not received, it is determined that there is an optical cable failure between the starting device and the end device.
It improves the accuracy of optical cable fault detection, eliminates signal reception abnormalities caused by power outage in the computer room, and ensures multi-dimensional judgment of fault detection.
Smart Images

Figure CN120498530A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of transmission and carrying technology, and in particular relates to a method, apparatus, device, storage medium and program product for optical cable fault detection. Background Art
[0002] Currently, when an optical cable in an optical cable transmission network fails, the fault point of the optical cable can be located based on a Geographic Information System (GIS).
[0003] Specifically, the network element management system in the optical cable transmission network obtains the signal loss information and fault point distance information sent by the starting transmission device and the end transmission device, and then determines whether an optical cable fault occurs based on the pre-stored topological connection relationship between the transmission devices and the signal loss information.
[0004] However, more than one optical cable may fail simultaneously in the transmission ring network. When multiple optical cables fail, the transmission equipment in the transmission network may be disconnected, making it impossible to send signal loss information. Therefore, the network element management system cannot obtain signal loss information and cannot accurately detect optical cable failures in the transmission network. Summary of the Invention
[0005] The embodiments of the present application provide a method, apparatus, device, storage medium, and program product for optical cable fault detection, which can determine whether an optical cable fault has occurred from multiple dimensions based on multiple preset key indicator information, thereby improving the accuracy of optical cable fault detection.
[0006] In a first aspect, an embodiment of the present application provides a method for detecting an optical cable fault, which is applied to a network element management system. The method includes:
[0007] When receiving the optical cable break point location alarm information sent by the starting device port, obtaining a plurality of preset key indicator information corresponding to each time point of the starting device port and the end device port within the first preset time window;
[0008] Traversing each time point within the first preset time window, determining whether multiple preset key indicator information within the preset time window satisfies a preset judgment condition corresponding to each preset key indicator, the preset judgment condition being used to determine whether an optical cable between the starting device port and the end device port is interrupted;
[0009] If the plurality of preset key indicator information within the first preset time window meets the preset judgment conditions corresponding to each preset key indicator, determining whether the power outage alarm information sent by the computer room where the terminal device is located is received within the second preset time window;
[0010] If no power outage alarm information is received from the computer room where the end point device is located within the second preset time window, it is determined that an optical cable fault exists between the start point device and the end point device.
[0011] In a possible implementation, traversing each time point within the first preset time window and determining whether multiple preset key indicator information within the preset time window satisfies a preset judgment condition corresponding to each preset key indicator includes:
[0012] For each time point, construct a judgment matrix corresponding to the time point, wherein the rows of the judgment matrix represent the corresponding time points, and the columns of the judgment matrix represent different preset judgment conditions;
[0013] For a plurality of preset key indicator information corresponding to each time point, if the preset key indicator information meets the corresponding target preset judgment condition, the column corresponding to the target preset judgment condition in the judgment matrix is set to 1;
[0014] For a plurality of preset key indicator information corresponding to each time point, if the preset key indicator information does not meet the corresponding target preset judgment condition, the column corresponding to the target preset judgment condition in the judgment matrix is set to 0.
[0015] In one possible implementation, when multiple preset key indicator information within the first preset time window meets the preset judgment condition corresponding to each preset key indicator, before determining whether power outage alarm information sent by the computer room where the endpoint device is located is received within the second preset time window, the method further includes:
[0016] For each preset judgment condition, obtaining the target element value of the column corresponding to the preset judgment condition in each judgment matrix;
[0017] Sum the target element values corresponding to each judgment matrix to obtain the total element value;
[0018] When the total element value is greater than a preset threshold, it is determined that the plurality of preset key indicator information within the first preset time window meets the preset judgment condition corresponding to each preset key indicator.
[0019] In a possible implementation, the preset key indicator information includes signal loss alarm information sent by the starting device port, optical cable break position alarm information, signal loss alarm information, and network element disconnection alarm information sent by the end device port;
[0020] The determining of the plurality of preset key indicator information within the preset time window and whether the preset determination conditions corresponding to each preset key indicator are satisfied includes:
[0021] When receiving the signal loss alarm information sent by the starting device port, setting the corresponding column in the judgment matrix to 1;
[0022] When receiving the optical cable break point location alarm information sent by the terminal device port, setting the corresponding column in the judgment matrix to 1;
[0023] When receiving the signal loss alarm information sent by the terminal device port, setting the corresponding column in the judgment matrix to 1;
[0024] When the network element disconnection alarm information sent by the terminal device port is received, the corresponding column in the judgment matrix is set to 1.
[0025] In one possible implementation, when the optical cable break point location alarm information sent by the starting device port is obtained, obtaining a plurality of preset key indicator information corresponding to each time point of the starting device port and the end device port within the first preset time window includes:
[0026] When the optical cable break point location alarm information sent by the starting device port is obtained, a dynamic time interval is obtained;
[0027] Constructing the first preset time window based on the timestamp of the optical cable break point location alarm information sent by the starting device port and the dynamic time interval;
[0028] Acquire multiple preset key indicator information corresponding to each time point in the first preset time window.
[0029] In a possible implementation, before obtaining the dynamic time interval, the method further includes:
[0030] Acquire multiple sets of optical cable fault information sets, the optical cable fault information sets including a first timestamp when the starting device port sends an optical cable break point location alarm and a second timestamp when the network element management system determines that an optical cable fault occurs, each set of optical cable fault information sets corresponding to a time point in a continuous time sequence;
[0031] For each set of optical cable fault information, calculate the absolute value of the difference between the first timestamp and the second timestamp to obtain a time length;
[0032] Constructing a gating function with the first timestamp as a center point and the time length as a boundary;
[0033] For each set of optical cable fault information corresponding to the gating function, calculating the probability distribution function on the continuous time series;
[0034] Intercepting a target coordinate point on the probability distribution function that is greater than or equal to a preset fault demarcation accuracy rate;
[0035] The dynamic time interval is determined according to the target coordinate point.
[0036] In a possible implementation, the abscissa of the target coordinate point represents a corresponding time point, and the ordinate represents a probability; and determining the dynamic time interval according to the target coordinate point includes:
[0037] Determine, according to the ordinate of the target coordinate point, a first target coordinate point and a second target coordinate point corresponding to the minimum ordinate on both sides of the first timestamp;
[0038] Calculating an absolute value of a difference between the horizontal coordinate of the first target coordinate point and the first timestamp to obtain a first absolute value;
[0039] Calculating an absolute value of a difference between the horizontal coordinate of the second target coordinate point and the first timestamp to obtain a second absolute value;
[0040] The maximum value between the first absolute value and the second absolute value is used as the dynamic time interval.
[0041] In a possible implementation, after determining that an optical cable fault exists between the starting device and the end device, the method further includes:
[0042] Taking the starting device as the starting point and the ending device as the ending point, obtaining the optical cable segment information;
[0043] Acquire optical cable laying information of each optical cable segment according to the optical cable segment information, wherein the optical cable laying information includes location information of a sending device and location information of a receiving device of each bearing segment in each optical cable segment;
[0044] For each bearer segment, the sending device and the receiving device are connected according to the location information of the sending device and the location information of the receiving device, thereby completing the drawing of the transmission optical path from the starting device to the end device;
[0045] The bearer section having an optical cable fault in the transmission optical path is identified according to the optical cable break point location alarm information sent by the starting device and the optical cable break point location alarm information sent by the end device.
[0046] In one possible implementation, the optical cable break location alarm information sent by the starting device and the end device carries distance information corresponding to the optical cable fault, and identifying the bearer segment having the optical cable fault in the transmission optical path according to the optical cable break location alarm information sent by the starting device and the optical cable break location alarm information sent by the end device includes:
[0047] Taking the starting point device as a starting point, cumulatively calculating the length of the bearing segment on the transmission optical path to obtain a first cumulative calculation result;
[0048] determining a first bearing section where the optical cable fault occurs according to the first distance information in the optical cable break point location alarm information sent by the end device and the first accumulated calculation result;
[0049] Taking the terminal device as a starting point, cumulatively calculating the length of the bearing segment on the transmission optical path to obtain a second cumulative calculation result;
[0050] determining a second bearing section where the optical cable fault occurs according to the second distance information in the optical cable break point location alarm information sent by the end device and the second accumulated calculation result;
[0051] In the case that the first load-bearing section and the second load-bearing section are the same load-bearing section, the same load-bearing section is marked.
[0052] In a possible implementation, the optical cable laying information further includes the reel lengths of the optical cables of the sending device and the receiving device; and before accumulating the lengths of the load-bearing segments on the transmission optical path, the method further includes:
[0053] For each bearer segment, calculate the longitude and latitude distance based on the location information of the sending device and the receiving device;
[0054] The sum of the latitude and longitude distance and the cable reel length is calculated to obtain the length corresponding to each load-bearing section.
[0055] In a second aspect, an embodiment of the present application provides a device for detecting optical cable faults, which is applied to a network element management system. The device includes:
[0056] an acquisition module, configured to, upon receiving the optical cable break point location alarm information sent by the starting device port, acquire a plurality of preset key indicator information corresponding to each time point of the starting device port and the end device port within a first preset time window;
[0057] a judgment module, configured to traverse each time point within the first preset time window, and judge whether a plurality of preset key indicator information within the preset time window satisfies a preset judgment condition corresponding to each preset key indicator, wherein the preset judgment condition is used to judge whether an optical cable between the starting device port and the end device port is interrupted;
[0058] The judgment module is further configured to judge whether a power outage alarm message sent by the computer room where the endpoint device is located is received within a second preset time window, if the plurality of preset key indicator information within the first preset time window meets the preset judgment condition corresponding to each preset key indicator;
[0059] The determination module is configured to determine that an optical cable fault exists between the starting device and the end device when no power outage alarm information sent by the computer room where the end device is located is received within the second preset time window.
[0060] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory storing computer program instructions;
[0061] When the processor executes the computer program instructions, the optical cable fault detection method of the first aspect is implemented.
[0062] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method for optical cable fault detection according to the first aspect is implemented.
[0063] In a fifth aspect, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the optical cable fault detection method of the first aspect.
[0064] The embodiment of the present application provides a method, apparatus, device, storage medium and program product for optical cable fault detection. After receiving the optical cable breakpoint location alarm information sent by the starting device port, the network element management system triggers the fault detection process, obtains multiple preset key indicator information within the first preset time window, and determines whether the preset key indicator information corresponding to each time point meets the corresponding preset judgment conditions. When it is determined that the multiple preset key indicator information within the first preset time window all meet the corresponding preset judgment conditions, in order to further improve the accuracy of fault detection and eliminate the signal reception abnormality caused by power outage in the computer room, the network element management system can further determine whether the power outage alarm information sent by the computer room where the terminal device is located is received within the second preset time window. If the power outage alarm information is not received, it indicates that the terminal device is operating normally. Therefore, it can be determined that the optical cable between the starting device and the terminal device has a break fault. In this way, combined with multiple preset key indicator information, it can be determined from multiple dimensions whether a break fault has occurred, thereby improving the accuracy of optical cable fault detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0066] Figure 1 This is a schematic diagram of the structure of a ring transmission network provided by an embodiment of the present application;
[0067] Figure 2 This is a flow chart of a method for detecting optical cable faults provided in an embodiment of the present application;
[0068] Figure 3 This is a flow chart of a method for determining a dynamic time interval provided in an embodiment of the present application;
[0069] Figure 4 is an exemplary schematic diagram of a discrete sequence function provided in an embodiment of the present application;
[0070] Figure 5 is an exemplary schematic diagram of a gating function provided in an embodiment of the present application;
[0071] Figure 6 is an exemplary schematic diagram of a probability distribution function provided in an embodiment of the present application;
[0072] Figure 7 This is a flow chart of a judgment matrix construction method provided in an embodiment of the present application;
[0073] Figure 8is an exemplary schematic diagram of a method for detecting optical cable faults provided in an embodiment of the present application;
[0074] Figure 9 This is a flow chart of a method for drawing a light path provided in an embodiment of the present application;
[0075] Figure 10 This is an exemplary schematic diagram of an optical cable segment query page provided in an embodiment of the present application;
[0076] Figure 11 This is an exemplary schematic diagram of an optical cable segment display page provided in an embodiment of the present application;
[0077] Figure 12 is an exemplary schematic diagram of another optical cable segment display page provided in an embodiment of the present application;
[0078] Figure 13 This is an exemplary schematic diagram of an optical installation information display page provided in an embodiment of the present application;
[0079] Figure 14 This is an exemplary schematic diagram of a page displaying the length of an optical cable reel provided in an embodiment of the present application;
[0080] Figure 15 This is a flow chart of a method for carrying segment marking provided in an embodiment of the present application;
[0081] Figure 16 This is a structural diagram of a device for detecting optical cable faults provided in an embodiment of the present application;
[0082] Figure 17 It is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0083] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is merely to provide a better understanding of the present application by illustrating the examples of the present application.
[0084] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.
[0085] The current method for detecting the fault point of a transmission optical cable is as follows: after receiving the signal loss alarm information sent by the starting device, the network element management system determines whether it has also received the signal loss alarm information sent by the end device within a preset time period. When it is determined that both the starting device and the end device have sent signal loss alarm information to the network element management system, the network element management system determines that an optical cable fault has occurred, and further uses the optical cable break point location alarm to determine the specific location where the optical cable break occurred.
[0086] However, more than one optical cable may fail at the same time in the transmission ring network. When multiple optical cables fail, the transmission equipment in the transmission network may be disconnected, resulting in the inability to send signal loss information, such as Figure 1 As shown in the figure, a fault has occurred in the optical cable between node 1 and node 7, and a cable fault has occurred in the optical cable between node 3 and node 4. Node 7 and node 4 are out of the pipe and cannot send signal loss alarm information. Therefore, the network element management system cannot determine that a fault has occurred in the optical cable between node 1 and node 7, or in the optical cable between node 3 and node 4.
[0087] In order to solve the problems of the prior art, the embodiments of the present application provide a method, apparatus, device, storage medium and program product for detecting optical cable faults. The following first describes the method for detecting optical cable faults provided by the embodiments of the present application. Figure 2 As shown, the method is applied to a network element management system, and the method includes:
[0088] S201: Upon receiving optical cable break point location alarm information sent by a starting device port, obtain a plurality of preset key indicator information corresponding to each time point of the starting device port and the ending device port within a first preset time window.
[0089] The optical cable break location alarm information is used to carry the location information of the optical cable break. The starting device is the starting transmission device of the signal transmission, and the end device is the end transmission device of the signal transmission.
[0090] It is understandable that the minimum processing time of the network element management system is 1 millisecond. Therefore, the network element management system collects information sent by the end device and the starting device within the first preset time window according to the minimum processing time, and obtains preset key indicators from the received information.
[0091] The preset key indicators may be preset based on experience. In one example, the preset key indicators may be signal loss alarm information and network element disconnection alarm information.
[0092] S202: Traverse each time point within the first preset time window to determine whether multiple preset key indicator information within the preset time window meets the preset determination conditions corresponding to each preset key indicator.
[0093] The preset judgment condition is used to judge whether the optical cable between the starting device port and the end device port is interrupted.
[0094] S203: When multiple preset key indicator information within the first preset time window meets the preset judgment conditions corresponding to each preset key indicator, determine whether power outage alarm information sent by the computer room where the terminal device is located is received within the second preset time window.
[0095] It is understandable that in order to further improve the accuracy of fault detection and exclude signal reception anomalies caused by power outages in the computer room, it is possible to determine whether a power outage alarm message sent by the computer room is received within the second preset time window. If a power outage alarm message is received, it indicates that the signal reception anomaly is caused by a power outage in the computer room.
[0096] S204: If no power outage alarm information is received from the computer room where the end device is located within the second preset time window, it is determined that there is an optical cable fault between the starting device and the end device.
[0097] Using the above method, after receiving the optical cable break location alarm information sent by the starting device port, the network element management system triggers the fault detection process, obtains multiple preset key indicator information within the first preset time window, and determines whether the preset key indicator information corresponding to each time point meets the corresponding preset judgment conditions. When it is determined that the multiple preset key indicator information within the first preset time window all meet the corresponding preset judgment conditions, in order to further improve the accuracy of fault detection and eliminate signal reception anomalies caused by power outages in the computer room, the network element management system can further determine whether the power outage alarm information sent by the computer room where the terminal device is located is received within the second preset time window. If the power outage alarm information is not received, it indicates that the terminal device is operating normally. Therefore, it can be determined that the optical cable between the starting device and the terminal device has a break fault. In this way, combined with multiple preset key indicator information, it can be judged from multiple dimensions whether a break fault has occurred, thereby improving the accuracy of optical cable fault detection.
[0098] In some embodiments of the present application, the first preset time window is determined according to a dynamic time interval, and the dynamic time interval is determined by a set of historical optical cable fault information. Figure 3 Introduce the method of calculating the dynamic interval, such as Figure 3 As shown:
[0099] S301. Acquire multiple sets of optical cable fault information.
[0100] The optical cable fault information set includes the first timestamp when the starting device port sends the optical cable break location alarm information and the second timestamp when the network element management system determines that the optical cable fault occurs. Each set of optical cable fault information corresponds to a time point in the continuous time series.
[0101] S302: For each set of optical cable fault information, calculate the absolute value of the difference between the first timestamp and the second timestamp to obtain a time length.
[0102] like Figure 4 As shown, Figure 4 is a discrete function corresponding to a set of optical cable fault information. t0 is the moment when the NEMS receives the optical cable endpoint location alarm from the source device, and timi is the moment when the NEMS determines that an optical cable break has occurred. After a cable break is determined, the ordinate corresponding to that moment is set to 1, and all other moments are set to 0. The duration can be obtained by calculating the absolute value of the difference between timi and t0.
[0103] S303: Construct a gate function with the first timestamp as the center point and the time length as the boundary.
[0104] like Figure 5 As shown, Figure 5 The variable Δτ is shown as an example i g(Δτ i ) gate function, where Figure 4 The calculated time length Δτ provided by the embodiment shown i Based on this, we can construct a gate function with the first timestamp t0 as the center and the time length as the extension. Specifically, the discrete values in the horizontal coordinate timi and the symmetrical -timi range are set to 1, and the function values in the remaining positions are set to 0 to obtain the gate function.
[0105] S304 : Calculate the probability distribution function on the continuous time series for the gating function corresponding to each set of optical cable fault information.
[0106] Among them, after calculating the gate function corresponding to each set of optical cable fault information, g(Δτ i )=1, thus obtaining the probability distribution function on the continuous time series.
[0107] S305 , intercepting a target coordinate point on the probability distribution function that is greater than or equal to a preset fault demarcation accuracy rate.
[0108] S306: Determine a dynamic time interval according to the target coordinate point.
[0109] Specifically, such as Figure 6 As shown, Figure 6 The vertical axis represents the probability, and the horizontal axis represents the discrete time point. Figure 6 The coordinate points in the grid are intercepted to determine the intersection of the preset fault delimitation accuracy and the probability distribution function. The two intersection points are used to construct the time range interval to obtain Δτ1 and Δτ2. The maximum value of Δτ1 and Δτ2 is used as the dynamic time interval.
[0110] By adopting the method provided in the embodiment of the present application, the network element management system obtains historical data, namely, multiple sets of optical cable fault information, and constructs a gate function with the first timestamp as the center and the calculated time length as the boundary. The gate function can be used to characterize the time interval in which the network element management system determines that the optical cable fault occurs. In this way, by calculating the probability distribution function for each set of optical cable fault information, the network element management system can obtain the time concentration interval for determining the occurrence of the optical cable fault. Furthermore, based on the preset fault delimitation accuracy rate set by the user, the time concentration interval can be intercepted according to actual business needs, thereby ensuring the accuracy of the calculated dynamic time interval. This balances the accuracy and efficiency of the subsequent network element management system in determining the optical cable fault using the data within the first preset time window.
[0111] Regarding the above S306, determining the dynamic time interval according to the target coordinate point can be specifically implemented as follows:
[0112] Step A: According to the ordinate of the target coordinate point, respectively determine the first target coordinate point and the second target coordinate point corresponding to the minimum ordinate on both sides of the first timestamp.
[0113] Step B: Calculate the absolute value of the difference between the horizontal coordinate of the first target coordinate point and the first timestamp to obtain a first absolute value.
[0114] Step C: Calculate the absolute value of the difference between the horizontal coordinate of the second target coordinate point and the first timestamp to obtain a second absolute value.
[0115] Step D: taking the maximum value between the first absolute value and the second absolute value as the dynamic time interval.
[0116] Continuing the above Figure 6 In the example shown, after the first absolute value and the second absolute value are calculated, the dynamic time interval Δτ can be determined according to the following formula:
[0117]
[0118] Here, |Δτ1| is the first absolute value, and |Δτ2| is the second absolute value.
[0119] Using the method provided in an embodiment of the present application, after determining the target coordinate point, a first target coordinate point and a second target coordinate point located on either side of the first timestamp are determined within the target coordinate point, wherein the ordinate value of the first target coordinate point and the second target coordinate point is the minimum value among the target coordinate points. In this manner, the coordinates of the intersection of a preset fault delimitation accuracy and a probability distribution function can be determined using the first target coordinate point and the second target coordinate point. Furthermore, by calculating the first absolute value and the second absolute value and determining the maximum value between them as the dynamic time interval, detection accuracy is improved while ensuring the efficiency of the network element management system in detecting optical cable faults.
[0120] Based on the dynamic time interval obtained by the above calculation, the above S201, when receiving the optical cable break point location alarm information sent by the starting device port, obtains a plurality of preset key indicator information corresponding to each time point of the starting device port and the end device port within the first preset time window, which can be specifically implemented as follows:
[0121] Step 1: When the optical cable break point location alarm information sent by the starting device port is obtained, a dynamic time interval is obtained.
[0122] It should be noted that the above dynamic time interval can be updated according to a preset period.
[0123] Step 2: Construct a first preset time window based on the timestamp and dynamic time interval of the optical cable break point location alarm information sent by the starting device port.
[0124] Specifically, after determining the timestamp and dynamic time interval of the optical cable break location alarm information, the difference between the timestamp and the dynamic time interval, as well as the sum of the timestamp and the dynamic time interval, are calculated to obtain two time boundaries. These two time boundaries are the two boundaries of the first preset time window. In one example, the timestamp of the optical cable break location alarm information is t0, and the dynamic time interval is Δτ. Then, the constructed first preset time window is [t0-Δτ, t0+Δτ].
[0125] Step 3: Obtain multiple preset key indicator information corresponding to each time point in the first preset time window.
[0126] Using the method provided in the embodiment of the present application, a first preset time window is constructed based on the dynamic time interval calculated above. Since the dynamic time interval is calculated based on historical data, after determining the timestamp of the optical cable break location alarm information, within the dynamic time interval, the network element management system can accurately and quickly make an optical cable fault judgment.
[0127] In some embodiments of the present application, for each time point, it is determined whether the time point meets the corresponding preset judgment condition based on multiple preset key indicator information of the time point. Specifically, the preset key indicator information of each time point can be represented by a judgment matrix to determine whether the time point meets the corresponding preset judgment condition. Based on this, Figure 7 As shown, for the above S202, traversing each time point within the first preset time window, judging whether the multiple preset key indicator information within the preset time window meets the preset judgment conditions corresponding to each preset key indicator, can be specifically implemented as follows:
[0128] S2021. For each time point, construct a judgment matrix corresponding to the time point.
[0129] The rows of the judgment matrix represent corresponding time points, and the columns of the judgment matrix represent different preset judgment conditions.
[0130] S2022. For a plurality of preset key indicator information corresponding to each time point, if the preset key indicator information meets the corresponding target preset judgment condition, set the column corresponding to the target preset judgment condition in the judgment matrix to 1.
[0131] S2023. For a plurality of preset key indicator information corresponding to each time point, if the preset key indicator information does not meet the corresponding target preset judgment condition, set the column corresponding to the target preset judgment condition in the judgment matrix to 0.
[0132] In one example, for each time point, a judgment matrix corresponding to that time point is constructed. This judgment matrix can be a one-row, five-column matrix, for example, [1 1 1 1 1], where the first 1 indicates that the preset key indicator information meets the preset judgment condition corresponding to that column. In this way, after constructing the judgment matrix corresponding to each time point, the multiple judgment matrices can be sorted according to the corresponding time points to construct a judgment matrix corresponding to the first preset time window.
[0133] By using the method provided in the embodiment of the present application, after obtaining multiple preset key indicator information within the first preset time window, a judgment matrix corresponding to each time point can be constructed based on the number of preset judgment conditions, wherein each column corresponds to a preset judgment condition. According to the judgment matrix corresponding to each time point, the time point that meets the preset judgment condition within the first preset time window can be accurately determined.
[0134] In an embodiment of the present application, the preset key indicator information includes signal loss alarm information sent by the starting device port, optical cable break point location alarm information sent by the end device port, signal loss alarm information, and network element disconnection alarm information. The above-mentioned determination of multiple preset key indicator information within the preset time window and whether the preset judgment conditions corresponding to each preset key indicator are satisfied can be implemented as follows:
[0135] When a signal loss alarm is received from a source device port, the corresponding column in the judgment matrix is set to 1. When an optical cable break location alarm is received from a destination device port, the corresponding column in the judgment matrix is set to 1. When a signal loss alarm is received from a destination device port, the corresponding column in the judgment matrix is set to 1. When a network element disconnection alarm is received from a destination device port, the corresponding column in the judgment matrix is set to 1.
[0136] The preset judgment condition is whether the network element management system receives the corresponding information. If the corresponding information is received, the element value of the corresponding column is set to 1; if the corresponding information is not received, the element value of the corresponding column is set to 0.
[0137] In this way, the network element management system can determine whether there is an optical cable interruption fault from multiple dimensions by determining whether the preset key indicator information is received within the first preset time window, thereby improving the accuracy of fault detection.
[0138] After constructing the judgment matrix corresponding to each time point, the judgment matrix corresponding to each time point is used to determine whether the preset judgment condition is satisfied within the first preset time window. Specifically, in the above S204, if no power outage alarm information is received from the computer room where the end device is located within the second preset time window, before determining that there is an optical cable fault between the starting device and the end device, the method further includes:
[0139] For each preset judgment condition, obtain the target element value of the column corresponding to the preset judgment condition in each judgment matrix; sum the target element values corresponding to each judgment matrix to obtain the total element value; when the total element value is greater than the preset threshold, determine whether the multiple preset key indicator information within the first preset time window meets the preset judgment condition corresponding to each preset key indicator.
[0140] Specifically, after constructing the judgment matrix corresponding to each time point, each judgment matrix can be sorted in the order of the time points to construct an n×m matrix, where n is the number of time points and m is the number of preset judgment conditions. In this way, for the above n×m matrix, the elements of each column can be summed to obtain the total element value corresponding to each column. Among them, based on the above setting of the element value of the judgment matrix, when the preset key indicator information corresponding to a certain time point meets the preset judgment condition, the calculated total element value corresponding to the preset judgment condition is greater than 1, and therefore, it can be determined that an optical cable fault has occurred. In this way, by calculating the total element value corresponding to each column, it is possible to determine whether an optical cable fault exists through multiple dimensions within the first preset time window, thereby improving the accuracy of fault detection.
[0141] The following combination Figure 8 Introducing a method for detecting optical cable faults provided by an embodiment of the present application, such as Figure 8 As shown, the method includes:
[0142] S801. The A-end device port sends an optical cable endpoint location alarm.
[0143] The A-end device is the starting point device in the above embodiment.
[0144] Specifically, after the network element management system receives the optical cable end position alarm information sent by the A-end device port, it can mark T A_FIBER_BREAK_POS =1, that is, the element value of the corresponding column in the judgment matrix is set to 1. The network element, network element port, and cable break location information in the optical cable endpoint location alarm information are extracted. This is used to subsequently draw the transmission optical path and mark the interrupted bearer segment.
[0145] In an example, the information such as the network element, network element port, and optical cable break point location in the extracted optical cable endpoint location alarm information can be cached in the structure shown in Table 1:
[0146] Table 1
[0147]
[0148] S802: Extract port topology information of the A-end device and the Z-end device.
[0149] A topology database is pre-stored in the network element management system, and the topology database can be used to store the topological relationship between different transmission devices.
[0150] In one example, the optical path information table in the topology database is queried using the A-end device port or the Z-end device port to obtain unique optical path information. For example, if "network element port" = "72-1005-AA-HJ-1-1a-4-TN11SFIU(TN11SFIU01)-1" is queried for optical path information, information such as the optical path name, A-end device, A-end device port, Z-end device, and Z-end device port can be extracted. This is shown in Table 2:
[0151] Table 2
[0152]
[0153] S803: Determine whether the signal loss alarm information sent by the A-end device port is received.
[0154] If yes, execute S804; if no, end the process.
[0155] If the signal loss alarm information sent by the A-end device port is received within the first preset time window, the T A_R_LOS =1, that is, the element at the corresponding position in the judgment matrix is set to 1, otherwise it is set to 0.
[0156] S804: Determine whether the Z-end device port sends optical cable endpoint position alarm information.
[0157] If yes, execute S805; if no, end the process.
[0158] S805: Determine whether the Z-end device port sends a signal loss alarm message.
[0159] If yes, execute S806; if no, end the process.
[0160] S806: Determine whether the Z-end device sends a network element disconnection alarm message.
[0161] If yes, execute S807; if no, end the process.
[0162] S807. Extract the computer room information of the computer room where the Z-end device is located.
[0163] S808. Determine whether the computer room where the Z-end device is located sends a power outage alarm message.
[0164] If yes, the process ends; if no, step S809 is executed.
[0165] S809: Determine that the optical cable at the AZ end is faulty.
[0166] According to the method provided in the embodiment of the present application, after receiving the optical cable break position alarm information sent by the starting device port, the network element management system triggers the fault detection process and obtains multiple preset key indicator information within the first preset time window, namely, optical cable break position alarm information, signal loss information, and network element disconnection alarm information. And it is judged whether the preset key indicator information corresponding to each time point meets the corresponding preset judgment conditions. When it is determined that the multiple preset key indicator information within the first preset time window all meet the corresponding preset judgment conditions, in order to further improve the accuracy of fault detection and eliminate the signal reception abnormality caused by power outage in the computer room, the network element management system can further judge whether the power outage alarm information sent by the computer room where the terminal device is located is received within the second preset time window. If the power outage alarm information is not received, it means that the terminal device is operating normally. Therefore, it can be determined that the optical cable between the starting device and the terminal device has a disconnection fault. In this way, combined with multiple preset key indicator information, it can be judged from multiple dimensions whether a disconnection fault has occurred, thereby improving the accuracy of optical cable fault detection.
[0167] After the above determination that an optical cable fault has occurred, the network element management system can also draw a transmission optical path based on the above multiple preset key indicator information. Figure 9 As shown, the method includes:
[0168] S901. Acquire optical cable segment information with a starting device as the starting point and an ending device as the ending point.
[0169] The optical cable segment information includes the name of the starting device, the name of the ending device, and the name of the optical cable segment.
[0170] Specifically, the network element management system can query the above-mentioned optical cable segment information from the preset database. Figure 10 As shown, Figure 10 An example query page is shown. By inputting the names of the starting device and the ending device, all optical cable segments associated with the optical path can be obtained, specifically information on 51 optical cable segments.
[0171] For each cable segment, the user can click on the corresponding cable segment to obtain detailed information about the cable segment, such as Figure 11 and Figure 12 As shown, Figure 11 and Figure 12 Detailed information of different fiber optic cable sections is shown as an example.
[0172] S902: Obtain optical cable laying information of each optical cable segment according to the optical cable segment information.
[0173] The optical cable laying information includes the location information of the sending device and the location information of the receiving device of each bearing segment in each optical cable segment. Each optical cable segment includes multiple bearing segments. Specifically, Figure 13 As shown, Figure 13 An example of a display page for optical cable laying information is shown, which includes the serial number corresponding to the optical cable laying information, and the location information of bearing point A and bearing point Z. Bearing point A is the starting device for data transmission, and bearing point Z is the end device for data transmission.
[0174] S903 : For each bearer segment, connect the sending device and the receiving device according to the location information of the sending device and the location information of the receiving device, and complete the drawing of the transmission optical path from the starting device to the end device.
[0175] The location information of the sending device is the location information of the aforementioned bearing point A, and the location information of the receiving device is the location information of the aforementioned bearing point Z. Specifically, the location information of the sending device and the location information of the receiving device can be longitude and latitude information.
[0176] In an example, assuming the longitude and latitude information of the sending device is (x1, y1) and the longitude and latitude information of the receiving device is (x2, y2), the longitude and latitude distance between the sending device and the receiving device can be calculated using the following formula, thereby achieving a connection between the sending device and the receiving device:
[0177] D = R*arccos(siny1*siny2+cosy1*cosy2cos(x1-x2)). R is the radius of the Earth, which is 6370 km.
[0178] For each bearer segment, the starting device and the ending device of the bearer segment are connected end to end according to the sequence number of the bearer segment, thereby obtaining a complete transmission optical path.
[0179] S904: Identify the bearer section with the optical cable fault in the transmission optical path according to the optical cable break point location alarm information sent by the starting device and the optical cable break point location alarm information sent by the end device.
[0180] It can be understood that the optical cable break location alarm information includes the distance from the optical cable break location to the starting device and the end device. After obtaining the distance of each bearing segment as mentioned above, the bearing segment with the interruption fault can be determined by accumulating the distance of each bearing segment and the distance from the optical cable break location to the starting device and the end device.
[0181] By adopting the method provided in the embodiment of the present application, when it is determined that an optical cable fault has occurred as mentioned above, the information of each optical cable segment and the optical laying information corresponding to each optical cable segment information are obtained from the preset database, and the starting point and end point of each load-bearing segment can be determined. By connecting the head and tail nodes of each load-bearing segment, the entire transmission optical path can be drawn.
[0182] It should be noted that the above optical installation information also includes the cable reel lengths of the receiving and transmitting devices of the load-bearing segment. Based on this, the distance of each load-bearing segment can be accurately calculated based on the cable reel lengths. Specifically, the distance of the load-bearing segment is calculated as follows:
[0183] For each load-bearing segment, the longitude and latitude distance is calculated based on the location information of the transmitting device and the receiving device; the sum of the longitude and latitude distance and the length of the optical cable reel is calculated to obtain the length corresponding to each load-bearing segment.
[0184] like Figure 14 As shown, Figure 14 The example shows the length of spare optical cable reserved for the sending device and receiving device of the load-bearing section. After the longitude and latitude distances of the sending device and the receiving device are calculated based on the location information of the sending device and the receiving device of the load-bearing section, in order to further improve the accuracy of the calculated distance of the load-bearing section, since a part of the optical cable will be reserved for backup in the sending device and the receiving device during the actual laying of the optical cable, the length of the optical cable reel is accumulated to obtain the longitude and latitude distances calculated above, and the length corresponding to each load-bearing section can be accurately obtained.
[0185] Based on the length of each carrying segment obtained by the above calculation, the distance information corresponding to the optical cable fault is carried in the optical cable break location alarm information sent by the starting device and the end device to verify the optical cable segment where the interruption occurs. Figure 15 As shown, the above S904, identifying the bearer section having the optical cable fault in the transmission optical path according to the optical cable break point location alarm information sent by the starting device and the optical cable break point location alarm information sent by the end device, can be implemented as follows:
[0186] S9041. Taking the starting device as the starting point, perform cumulative calculation on the length of the bearer segment on the transmission optical path to obtain a first cumulative calculation result.
[0187] S9042: Determine a first bearer section where the optical cable fault occurs based on the first distance information and the first accumulated calculation result in the optical cable break point location alarm information sent by the endpoint device.
[0188] S9043. Taking the end point device as the starting point, perform cumulative calculation on the length of the bearer segment on the transmission optical path to obtain a second cumulative calculation result.
[0189] S9044: Determine a second bearer segment where the optical cable fault occurs based on the second distance information and the second accumulated calculation result in the optical cable break point location alarm information sent by the endpoint device.
[0190] S9045: If the first bearing segment and the second bearing segment are the same bearing segment, mark the same bearing segment.
[0191] Using the method provided in the embodiments of the present application, the starting device first accumulates the lengths of the bearer segments of the transmission optical path to obtain a cumulative calculation result for each bearer segment. After the cumulative calculation for each bearer segment, the cumulative calculation result for that bearer segment is compared with the first distance information in the optical cable break location alarm information of the starting device, thereby determining the first bearer segment where the fault occurred from the starting device. Accordingly, the second bearer segment is calculated from the receiving device. If the first bearer segment and the second bearer segment are the same bearer segment, the failed bearer segment is verified from two directions, thereby marking the same bearer segment.
[0192] Based on the same concept, the embodiment of the present application also provides a device for detecting optical cable faults, which is applied to a network element management system, such as Figure 16 As shown, the device includes:
[0193] The acquisition module 1601 is configured to, upon receiving the optical cable break point location alarm information sent by the starting device port, acquire a plurality of preset key indicator information corresponding to each time point of the starting device port and the end device port within a first preset time window;
[0194] A determination module 1602 is configured to traverse each time point within the first preset time window and determine whether multiple preset key indicator information within the preset time window satisfies a preset determination condition corresponding to each preset key indicator, wherein the preset determination condition is used to determine whether an optical cable between the starting device port and the end device port is disconnected;
[0195] The judgment module 1602 is further configured to determine whether a power outage alarm message sent by the computer room where the endpoint device is located is received within a second preset time window, if the plurality of preset key indicator information within the first preset time window meets the preset judgment condition corresponding to each preset key indicator;
[0196] The determination module 1603 is configured to determine that an optical cable fault exists between the starting device and the end device if no power outage alarm information is received from the computer room where the end device is located within the second preset time window.
[0197] In a possible implementation, the determination module 1602 is specifically configured to:
[0198] For each time point, construct a judgment matrix corresponding to the time point, wherein the rows of the judgment matrix represent the corresponding time points, and the columns of the judgment matrix represent different preset judgment conditions;
[0199] For a plurality of preset key indicator information corresponding to each time point, if the preset key indicator information meets the corresponding target preset judgment condition, the column corresponding to the target preset judgment condition in the judgment matrix is set to 1;
[0200] For a plurality of preset key indicator information corresponding to each time point, if the preset key indicator information does not meet the corresponding target preset judgment condition, the column corresponding to the target preset judgment condition in the judgment matrix is set to 0.
[0201] In a possible implementation, the device further includes:
[0202] An acquisition module 1601 is configured to acquire, for each preset judgment condition, a target element value of a column corresponding to the preset judgment condition in each judgment matrix;
[0203] A summation module is used to sum the target element values corresponding to each judgment matrix to obtain the total element value;
[0204] The determination module 1603 is further configured to determine, when the total element value is greater than a preset threshold, whether the plurality of preset key indicator information within the first preset time window meets a preset judgment condition corresponding to each preset key indicator.
[0205] In a possible implementation, the preset key indicator information includes signal loss alarm information sent by the starting device port, optical cable break position alarm information, signal loss alarm information, and network element disconnection alarm information sent by the end device port;
[0206] The determining module 1602 is further configured to:
[0207] When receiving the signal loss alarm information sent by the starting device port, setting the corresponding column in the judgment matrix to 1;
[0208] When receiving the optical cable break point location alarm information sent by the terminal device port, setting the corresponding column in the judgment matrix to 1;
[0209] When receiving the signal loss alarm information sent by the terminal device port, setting the corresponding column in the judgment matrix to 1;
[0210] When the network element disconnection alarm information sent by the terminal device port is received, the corresponding column in the judgment matrix is set to 1.
[0211] In a possible implementation, the acquisition module 1601 is specifically configured to:
[0212] When the optical cable break point location alarm information sent by the starting device port is obtained, a dynamic time interval is obtained;
[0213] Constructing the first preset time window based on the timestamp of the optical cable break point location alarm information sent by the starting device port and the dynamic time interval;
[0214] Acquire multiple preset key indicator information corresponding to each time point in the first preset time window.
[0215] In a possible implementation, the device further includes:
[0216] An acquisition module 1601 is specifically configured to acquire, before acquiring the dynamic time interval, multiple sets of optical cable fault information, the optical cable fault information sets including a first timestamp of the optical cable break point location alarm information sent by the starting device port and a second timestamp of the network element management system determining that the optical cable fault has occurred, each set of optical cable fault information sets corresponding to a time point in a continuous time sequence;
[0217] a calculation module, configured to calculate, for each set of optical cable fault information, an absolute value of a difference between the first timestamp and the second timestamp to obtain a time length;
[0218] A construction module, configured to construct a gating function with the first timestamp as a center point and the time length as a boundary;
[0219] The calculation module is further configured to calculate a probability distribution function on the continuous time series for each set of optical cable fault information corresponding to the gating function;
[0220] An interception module, configured to intercept a target coordinate point on the probability distribution function that is greater than or equal to a preset fault demarcation accuracy rate;
[0221] The determination module 1603 is further configured to determine the dynamic time interval according to the target coordinate point.
[0222] In a possible implementation, the abscissa of the target coordinate point represents the corresponding time point, and the ordinate represents the probability; the determination module 1603 is further configured to:
[0223] Determine, according to the ordinate of the target coordinate point, a first target coordinate point and a second target coordinate point corresponding to the minimum ordinate on both sides of the first timestamp;
[0224] Calculating an absolute value of a difference between the horizontal coordinate of the first target coordinate point and the first timestamp to obtain a first absolute value;
[0225] Calculating an absolute value of a difference between the horizontal coordinate of the second target coordinate point and the first timestamp to obtain a second absolute value;
[0226] The maximum value between the first absolute value and the second absolute value is used as the dynamic time interval.
[0227] In a possible implementation, the device further includes:
[0228] The acquisition module 1601 is further configured to acquire optical cable segment information with the starting device as the starting point and the ending device as the ending point; acquire optical cable laying information of each optical cable segment based on the optical cable segment information, wherein the optical cable laying information includes location information of a sending device and location information of a receiving device of each bearer segment in each optical cable segment;
[0229] a connection module, configured to connect the sending device and the receiving device for each bearer segment according to the location information of the sending device and the location information of the receiving device, thereby completing the drawing of a transmission optical path from the starting device to the end device;
[0230] The identification module is used to identify the bearing section with the optical cable fault in the transmission optical path according to the optical cable break point location alarm information sent by the starting device and the optical cable break point location alarm information sent by the end device.
[0231] In a possible implementation, the optical cable break point location alarm information sent by the starting device and the end device carries distance information corresponding to the optical cable fault, and the identification module is specifically configured to:
[0232] Taking the starting point device as a starting point, cumulatively calculating the length of the bearing segment on the transmission optical path to obtain a first cumulative calculation result;
[0233] determining a first bearing section where the optical cable fault occurs according to the first distance information in the optical cable break point location alarm information sent by the end device and the first accumulated calculation result;
[0234] Taking the terminal device as a starting point, cumulatively calculating the length of the bearing segment on the transmission optical path to obtain a second cumulative calculation result;
[0235] determining a second bearing section where the optical cable fault occurs according to the second distance information in the optical cable break point location alarm information sent by the end device and the second accumulated calculation result;
[0236] In the case that the first load-bearing section and the second load-bearing section are the same load-bearing section, the same load-bearing section is marked.
[0237] In a possible implementation, the optical cable laying information further includes the optical cable reel lengths of the sending device and the receiving device; and the apparatus further includes:
[0238] A calculation module is used to calculate the longitude and latitude distance for each load-bearing segment based on the location information of the sending device and the receiving device before accumulating the lengths of the load-bearing segments on the transmission optical path; and calculate the sum of the longitude and latitude distance and the length of the optical cable reel to obtain the length corresponding to each load-bearing segment.
[0239] It should be noted that the optical cable fault detection device is a device corresponding to the above-mentioned optical cable fault detection method. All implementation methods in the above-mentioned method embodiments are applicable to the embodiments of the device and can achieve the same technical effects.
[0240] Figure 17 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0241] The electronic device may include a processor 1701 and a memory 1702 storing computer program instructions.
[0242] Specifically, the processor 1701 may include a central processing unit (CPU) or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0243] Memory 1702 may include a large capacity memory for data or instructions. By way of example and not limitation, memory 1702 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 1702 may include removable or non-removable (or fixed) media. Where appropriate, memory 1702 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, memory 1702 is a non-volatile solid-state memory.
[0244] In certain embodiments, the memory 1702 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical, or other physical / tangible memory storage device. Thus, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0245] The processor 1701 reads and executes computer program instructions stored in the memory 1702 to implement any one of the optical cable fault detection methods in the above embodiments.
[0246] In one example, the electronic device may further include a communication interface 1703 and a bus 1704. Figure 17 As shown, the processor 1701, the memory 1702, and the communication interface 1703 are connected via a bus 1704 and communicate with each other.
[0247] The communication interface 1703 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0248] The bus 1704 includes hardware, software, or both that couples components of the electronic device to each other. By way of example and not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Super Transmission (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, the bus 1704 may include one or more buses. Although embodiments herein describe and illustrate a particular bus, this application contemplates any suitable bus or interconnect.
[0249] In addition, in conjunction with the optical cable fault detection method in the above embodiments, embodiments of the present application may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any of the optical cable fault detection methods in the above embodiments is implemented.
[0250] An embodiment of the present application further provides a computer program product, including a computer program, which, when executed, implements any one of the optical cable fault detection methods in the above embodiments.
[0251] It should be understood that the present application is not limited to the specific configurations and processes described above and illustrated in the figures. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and illustrated as examples. However, the method process of the present application is not limited to the specific steps described and illustrated. Those skilled in the art can make various changes, modifications, and additions, or change the order of the steps after understanding the spirit of the present application.
[0252] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier wave. "Machine-readable medium" can include any medium that can store or transmit information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (erasable read-only memory, EROM), floppy disks, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical discs, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0253] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps. In other words, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0254] Aspects of the present disclosure have been described above with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit. It is also understood that each box in the block diagram and / or flowchart and the combination of the boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0255] The above is only a specific implementation method of the present application. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the scope of protection of the present application is not limited to this. Any technician familiar with this technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the scope of protection of this application.
Claims
1. A method for detecting optical cable faults, characterized in that: Applied to a network element management system, the method includes: When receiving the optical cable break point location alarm information sent by the starting device port, obtaining a plurality of preset key indicator information corresponding to each time point of the starting device port and the end device port within the first preset time window; Traversing each time point within the first preset time window, determining whether multiple preset key indicator information within the preset time window satisfies a preset judgment condition corresponding to each preset key indicator, the preset judgment condition being used to determine whether an optical cable between the starting device port and the end device port is interrupted; If the plurality of preset key indicator information within the first preset time window meets the preset judgment conditions corresponding to each preset key indicator, determining whether a power outage alarm information sent by the computer room where the endpoint device is located is received within the second preset time window; If no power outage alarm information is received from the computer room where the end point device is located within the second preset time window, it is determined that an optical cable fault exists between the start point device and the end point device.
2. The method according to claim 1, characterized in that The traversing each time point within the first preset time window, and determining whether a plurality of preset key indicator information within the preset time window meets a preset determination condition corresponding to each preset key indicator, includes: For each time point, construct a judgment matrix corresponding to the time point, wherein the rows of the judgment matrix represent the corresponding time points, and the columns of the judgment matrix represent different preset judgment conditions; For a plurality of preset key indicator information corresponding to each time point, if the preset key indicator information meets the corresponding target preset judgment condition, the column corresponding to the target preset judgment condition in the judgment matrix is set to 1; For a plurality of preset key indicator information corresponding to each time point, if the preset key indicator information does not meet the corresponding target preset judgment condition, the column corresponding to the target preset judgment condition in the judgment matrix is set to 0.
3. The method according to claim 2, characterized in that If the plurality of preset key indicator information within the first preset time window satisfies the preset judgment condition corresponding to each preset key indicator, before determining whether power outage alarm information sent by the computer room where the endpoint device is located is received within the second preset time window, the method further includes: For each preset judgment condition, obtaining the target element value of the column corresponding to the preset judgment condition in each judgment matrix; Sum the target element values corresponding to each judgment matrix to obtain the total element value; When the total element value is greater than a preset threshold, it is determined that the plurality of preset key indicator information within the first preset time window meets the preset judgment condition corresponding to each preset key indicator.
4. The method according to claim 3, characterized in that The preset key indicator information includes the signal loss alarm information sent by the starting device port, the optical cable break position alarm information sent by the end device port, the signal loss alarm information and the network element disconnection alarm information; The determining of the plurality of preset key indicator information within the preset time window and whether the preset determination conditions corresponding to each preset key indicator are satisfied includes: When receiving the signal loss alarm information sent by the starting device port, setting the corresponding column in the judgment matrix to 1; When receiving the optical cable break point location alarm information sent by the terminal device port, setting the corresponding column in the judgment matrix to 1; When receiving the signal loss alarm information sent by the terminal device port, setting the corresponding column in the judgment matrix to 1; When the network element disconnection alarm information sent by the terminal device port is received, the corresponding column in the judgment matrix is set to 1.
5. The method according to claim 1, wherein When the optical cable break point location alarm information sent by the starting device port is obtained, a plurality of preset key indicator information corresponding to each time point of the starting device port and the end device port within the first preset time window is obtained, including: When the optical cable break point location alarm information sent by the starting device port is obtained, a dynamic time interval is obtained; Constructing the first preset time window based on the timestamp of the optical cable break point location alarm information sent by the starting device port and the dynamic time interval; Acquire multiple preset key indicator information corresponding to each time point in the first preset time window.
6. The method according to claim 5, characterized in that Before obtaining the dynamic time interval, the method further includes: Acquire multiple sets of optical cable fault information sets, the optical cable fault information sets including a first timestamp when the starting device port sends an optical cable break point location alarm and a second timestamp when the network element management system determines that an optical cable fault occurs, each set of optical cable fault information sets corresponding to a time point in a continuous time sequence; For each set of optical cable fault information, calculate the absolute value of the difference between the first timestamp and the second timestamp to obtain a time length; Constructing a gating function with the first timestamp as a center point and the time length as a boundary; For each set of optical cable fault information corresponding to the gating function, calculating the probability distribution function on the continuous time series; Intercepting a target coordinate point on the probability distribution function that is greater than or equal to a preset fault demarcation accuracy rate; The dynamic time interval is determined according to the target coordinate point.
7. The method according to claim 6, characterized in that The abscissa of the target coordinate point represents the corresponding time point, and the ordinate represents the probability; determining the dynamic time interval according to the target coordinate point includes: Determine, according to the ordinate of the target coordinate point, a first target coordinate point and a second target coordinate point corresponding to the minimum ordinate on both sides of the first timestamp; Calculating an absolute value of a difference between the abscissa of the first target coordinate point and the first timestamp to obtain a first absolute value; Calculating an absolute value of a difference between the horizontal coordinate of the second target coordinate point and the first timestamp to obtain a second absolute value; The maximum value between the first absolute value and the second absolute value is used as the dynamic time interval.
8. The method according to claim 1, characterized in that After determining that an optical cable fault exists between the starting device and the end device, the method further includes: Taking the starting device as the starting point and the ending device as the ending point, obtaining the optical cable segment information; Acquire optical cable laying information of each optical cable segment according to the optical cable segment information, wherein the optical cable laying information includes location information of a sending device and location information of a receiving device of each bearer segment in each optical cable segment; For each bearer segment, the sending device and the receiving device are connected according to the location information of the sending device and the location information of the receiving device, thereby completing the drawing of the transmission optical path from the starting device to the end device; The bearer section having an optical cable fault in the transmission optical path is identified according to the optical cable break point location alarm information sent by the starting device and the optical cable break point location alarm information sent by the end device.
9. The method according to claim 8, characterized in that The optical cable break position alarm information sent by the starting device and the end device carries distance information corresponding to the optical cable fault, and the identifying the bearer section having the optical cable fault in the transmission optical path according to the optical cable break position alarm information sent by the starting device and the optical cable break position alarm information sent by the end device includes: Taking the starting point device as a starting point, cumulatively calculating the length of the bearing segment on the transmission optical path to obtain a first cumulative calculation result; determining a first bearing section where the optical cable fault occurs according to the first distance information in the optical cable break point location alarm information sent by the end device and the first accumulated calculation result; Taking the terminal device as a starting point, cumulatively calculating the length of the bearing segment on the transmission optical path to obtain a second cumulative calculation result; determining a second bearing section where the optical cable fault occurs according to the second distance information in the optical cable break point location alarm information sent by the end device and the second accumulated calculation result; In the case that the first load-bearing section and the second load-bearing section are the same load-bearing section, the same load-bearing section is marked.
10. The method according to claim 9, characterized in that The optical cable laying information also includes the optical cable reel lengths of the sending device and the receiving device; Before accumulating and calculating the lengths of the bearing segments on the transmission optical path, the method further includes: For each bearer segment, calculate the longitude and latitude distance based on the location information of the sending device and the receiving device; The sum of the latitude and longitude distance and the cable reel length is calculated to obtain the length corresponding to each load-bearing section.
11. A device for detecting optical cable faults, characterized in that: Applied to a network element management system, the device includes: an acquisition module, configured to, upon receiving the optical cable break point location alarm information sent by the starting device port, acquire a plurality of preset key indicator information corresponding to each time point of the starting device port and the end device port within a first preset time window; a judgment module, configured to traverse each time point within the first preset time window, and judge whether a plurality of preset key indicator information within the preset time window satisfies a preset judgment condition corresponding to each preset key indicator, wherein the preset judgment condition is used to judge whether an optical cable between the starting device port and the end device port is interrupted; The judgment module is further configured to judge whether a power outage alarm message sent by the computer room where the endpoint device is located is received within a second preset time window, if the plurality of preset key indicator information within the first preset time window meets the preset judgment conditions corresponding to each preset key indicator; The determination module is configured to determine that an optical cable fault exists between the starting device and the end device when no power outage alarm information sent by the computer room where the end device is located is received within the second preset time window.
12. An electronic device, characterized in that: The device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the method for detecting optical cable faults according to any one of claims 1 to 10 is implemented.
13. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for detecting optical cable faults according to any one of claims 1 to 10 is implemented.
14. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device is caused to execute the optical cable fault detection method according to any one of claims 1 to 10.