Optical distribution network fault diagnosis method, device, equipment, medium and program product

By monitoring the optical power difference and similarity comparison on the optical network unit ONU, the sliding window and dynamic time warping algorithm are used to identify optical distribution network faults, which solves the problem of low fault diagnosis efficiency in the existing technology and achieves fast and accurate Fault identification.

CN118803486APending Publication Date: 2024-10-18CHINA MOBILE GROUP ZHEJIANG +3
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410687255.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In the existing technology, optical distribution network fault diagnosis efficiency is low, and it is difficult to quickly identify the cause and type of faults, resulting in long maintenance time and poor timeliness.

Method used

By monitoring the optical power difference between multiple consecutive pairs of adjacent time windows on the optical network unit ONU, the abnormal sequence is determined, and the similarity is compared with the characteristic sequence of the fault optical power, and the sliding window and dynamic time warping algorithm are used to identify the fault type. .

Benefits of technology

It achieves rapid diagnosis and accurate identification of optical distribution network faults, improves fault diagnosis efficiency, can effectively capture abnormal sequences and accurately match fault types, and shortens fault location and repair time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118803486A_ABST
    Figure CN118803486A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, and provides an optical distribution network fault diagnosis method, device and equipment, a medium and a program product. The method comprises the following steps of: determining an abnormal sequence of optical power according to an optical power difference value between a plurality of pairs of continuous adjacent time windows of each optical network unit ONU; and determining the fault type of the optical distribution network according to the similarity between the abnormal sequence and each feature sequence of the fault optical power. The abnormal sequence is monitored and captured through the sliding window, and meanwhile, the fault type is determined according to the similarity between the abnormal sequence and each feature sequence, so that the fault hidden danger of the optical distribution network is comprehensively and completely diagnosed, and the fault diagnosis efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to an optical distribution network fault diagnosis method, device, equipment, medium and program product. Background Art

[0002] At present, the main cause of broadband service failures is the problem of the Optical Distribution Network (ODN). The access network transmission light in the optical distribution network is composed of passive accessories such as routing optical fibers and splitters, which makes it difficult to actively report the cause of the failure; and the optical lines are scattered and the laying environment is harsh, which is also prone to optical path failures. At this stage, operators mainly conduct regular inspections and patrols to locate hidden faults such as optical fiber breakage, bending, loose optical components, etc., which is time-consuming and labor-intensive and has poor timeliness. Therefore, how to improve the fault diagnosis efficiency of the optical distribution network has become an urgent problem to be solved. Summary of the invention

[0003] The present invention provides an optical distribution network fault diagnosis method, device, equipment, medium and program product, which are used to solve the defect of low fault diagnosis efficiency of the optical distribution network in the prior art and improve the fault diagnosis efficiency.

[0004] The present invention provides a method for diagnosing optical distribution network faults, comprising: According to the optical power difference between multiple pairs of consecutive adjacent time windows of each optical network unit ONU, an abnormal sequence of optical power is determined; The fault type of the optical distribution network is determined according to the similarity between the abnormal sequence and each characteristic sequence of the fault optical power.

[0005] According to a method for diagnosing faults in an optical distribution network provided by the present invention, the method determines the abnormal sequence of optical power according to the optical power difference between multiple pairs of consecutive adjacent time windows of each optical network unit ONU, including: According to the optical power information of each of the ONUs, the historical optical power value in the nearest neighbor time window of the target observation point is obtained; the target observation point represents the current observation point of the optical power; Predicting an optical power prediction value of the target observation point according to the historical optical power value, and taking a difference between the optical power prediction value and the optical power observation value of the target observation point as the optical power difference; Compare whether the optical power difference is greater than or equal to the abnormal threshold, if so, add 1 to the over-limit counter; According to the set sliding step sliding time window, continue to compare whether the optical power difference is greater than or equal to the abnormal threshold; if so, the over-limit counter is increased by 1; if not, the over-limit counter is set to 0; If the count value of the over-limit counter reaches M, the system enters the unstable mode and records the start time of the unstable mode; if the count value of the over-limit counter reaches M, it indicates that the optical power difference between the ONU in M ​​consecutive pairs of adjacent time windows is greater than or equal to the abnormal threshold; According to the set sliding step length sliding time window, compare whether the optical power difference is less than the abnormal threshold; if so, the limit counter is increased by 1; if not, the over-limit counter is set to 0; If the count value of the limit counter reaches N, the non-steady state mode is exited and the end time of the non-steady state mode is recorded; the count value of the limit counter reaches N, indicating that the optical power difference between the ONU in N consecutive adjacent time windows is less than the abnormal threshold; The abnormal sequence of the optical power is determined according to the start time and the end time of the non-steady-state mode.

[0006] According to a method for diagnosing optical distribution network faults provided by the present invention, determining the fault type of the optical distribution network according to the similarity between the abnormal sequence and each characteristic sequence of the fault optical power includes: Determine the squared Euclidean distance between the abnormal sequence and each of the characteristic sequences; the squared Euclidean distance is used to characterize the similarity between the abnormal sequence and each of the characteristic sequences; If the minimum square Euclidean distance is less than the set distance threshold, the fault type corresponding to the feature sequence of the minimum square Euclidean distance is determined as the fault type of the optical distribution network.

[0007] According to a method for diagnosing faults in an optical distribution network provided by the present invention, the squared Euclidean distance between the abnormal sequence and any of the characteristic sequences is determined based on the following method: Calculating the squared Euclidean distances between the elements in the abnormal sequence and the elements in the characteristic sequence to generate a distance matrix; determining a cumulative distance matrix based on the distance matrix; Determine an initial path according to the length of the abnormal sequence and the length of the characteristic sequence; the initial path represents point pairing information of the abnormal sequence and the characteristic sequence; Determining an optimal path according to the initial path and the accumulated distance matrix; According to the optimal path, mapping the abnormal sequence with the characteristic sequence to obtain mapping information; According to the mapping information, the squared Euclidean distance between the abnormal sequence and the characteristic sequence is calculated.

[0008] According to a method for diagnosing faults in an optical distribution network provided by the present invention, determining the best path according to the initial path and the accumulated distance matrix comprises: If the current position of the initial path is located at the 0th row of the cumulative distance matrix, then the next hop path is backtracked to the left one step to obtain the first coordinate value of the initial path; If the current position of the initial path is located in the 0th column of the cumulative distance matrix, then the next hop path is traced back to the next step to obtain the second coordinate value of the initial path; If the current position of the initial path is located in the non-boundary area of ​​the cumulative distance matrix, then the next jump path is traced back to the minimum direction among one step to the left, one step to the next, and one step diagonally to the left to obtain the third coordinate value of the initial path; based on the first coordinate value, the second coordinate value and the third coordinate value, the optimal path is determined.

[0009] According to a method for diagnosing faults in an optical distribution network provided by the present invention, determining a cumulative distance matrix according to the distance matrix comprises: Assigning the element of the first row and the first column in the cumulative distance matrix to 0; wherein i=0, j=0; Assign the sum of the element in the first column of the i-th row in the distance matrix and the element in the first column of the i-1-th row in the cumulative distance matrix to the element in the first column of the i-th row in the cumulative distance matrix; wherein i≠0, j=0; Assign the sum of the element in the first row and j column of the distance matrix and the element in the first row and j-1 column of the cumulative distance matrix to the element in the first row and j column of the cumulative distance matrix; wherein i=0, j≠0; Select the smallest element from the elements in the i-1th row and j-1th column, the elements in the i-1th row and j-1th column, and the elements in the i-th row and j-1th column in the cumulative distance matrix; assign the sum of the element in the i-th row and j-1th column in the distance matrix and the smallest element to the element in the i-th row and j-1th column in the cumulative distance matrix; wherein i≠0, j≠0.

[0010] According to a method for diagnosing faults in an optical distribution network provided by the present invention, each characteristic sequence of the fault optical power is determined based on the following method: Obtain optical power time series for various fault scenarios; the optical power time series includes multiple moments and optical power observation values ​​corresponding to each moment; The optical power time series are used as characteristic sequences of fault optical power.

[0011] According to a method for diagnosing optical distribution network faults provided by the present invention, after determining the fault type of the optical distribution network according to the similarity between the abnormal sequence and each characteristic sequence of the fault optical power, the method further comprises: If a single ONU under the secondary optical splitter in the access network transmission optical line fails, the fault interval is between the secondary optical splitter and the ONU; If all the ONUs under the secondary optical splitter fail, the fault interval is between the secondary optical splitter and the upstream primary optical splitter; If all the ONUs under the primary optical splitter fail, the fault interval is between the primary optical splitter and the upstream optical line terminal OLT.

[0012] The present invention also provides an optical distribution network fault diagnosis device, comprising the following modules: The abnormal sequence determination module is used to determine the abnormal sequence of optical power according to the optical power difference between multiple pairs of consecutive adjacent time windows of each optical network unit ONU; The fault type determination module is used to determine the fault type of the optical distribution network according to the similarity between the abnormal sequence and each characteristic sequence of the fault optical power.

[0013] The present invention also provides an electronic device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any one of the optical distribution network fault diagnosis methods described above is implemented.

[0014] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the optical distribution network fault diagnosis method as described above is implemented.

[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the optical distribution network fault diagnosis method as described above is implemented.

[0016] The optical distribution network fault diagnosis method, device, equipment, medium and program product provided by the present invention determine the abnormal sequence of optical power according to the optical power difference between multiple pairs of consecutive adjacent time windows of each optical network unit ONU; and determine the fault type of the optical distribution network according to the similarity between the abnormal sequence and each characteristic sequence of the fault optical power. The present invention captures the abnormal sequence through sliding window monitoring, and at the same time, determines the fault type according to the similarity between the abnormal sequence and each characteristic sequence, thereby comprehensively and completely realizing the diagnosis of hidden faults in the optical distribution network and improving the efficiency of fault diagnosis. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 It is a flow chart of the optical distribution network fault diagnosis method provided by the present invention.

[0019] Figure 2 It is a schematic diagram of a flow chart for determining an abnormal sequence provided by the present invention.

[0020] Figure 3 It is a schematic diagram of characteristic sequences and abnormal sequences provided by the present invention.

[0021] Figure 4 It is a schematic diagram of the process of fault type identification provided by the present invention.

[0022] Figure 5 It is a schematic diagram of the distance matrix between the characteristic sequence and the abnormal sequence provided by the present invention.

[0023] Figure 6 It is a schematic diagram of assigning values ​​to the first column of the cumulative distance matrix provided by the present invention.

[0024] Figure 7 It is a schematic diagram of assigning values ​​to the first row of the cumulative distance matrix provided by the present invention.

[0025] Figure 8 It is a schematic diagram of the full value assignment of the cumulative distance matrix provided by the present invention.

[0026] Fig. 9 It is a schematic diagram of the optimal path provided by the present invention.

[0027] Fig.10 It is a mapping relationship diagram between the characteristic sequence and the abnormal sequence provided by the present invention.

[0028] Fig.11 It is a schematic diagram of the characteristic sequence of optical power of optical fiber macrobend fault provided by the present invention.

[0029] Fig.12 It is a schematic diagram of the ODN network topology provided by the present invention.

[0030] Fig.13 It is a system architecture diagram provided by the present invention.

[0031] Fig.14 It is a data flow process diagram provided by the present invention.

[0032] Fig.15 It is a structural schematic diagram of the optical distribution network fault diagnosis device provided by the present invention.

[0033] Fig.16 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0035] ODN is a network between the central office equipment and multiple user-end devices, connected by an optical distribution network composed of passive optical cables, optical splitters, etc. Its function is to provide an optical transmission channel between OLT (Optical Line Terminal) and ONU (Optical Network Unit). Most of the operator's dedicated lines and home broadband and other wired data services are accessed through the ODN network.

[0036] From the analysis of the causes of broadband complaints, the main cause of broadband service failures is ODN problems. The access network transmission optical fiber in ODN is composed of passive accessories such as routing optical fiber and splitters, which makes it difficult to actively report the cause of the failure; and the optical lines are scattered and the laying environment is harsh, which is also prone to optical path failures. At present, operators mainly conduct regular inspections and patrols to locate hidden faults such as optical fiber breakage, bending, loose optical components, etc., which is time-consuming and labor-intensive and has poor timeliness. In order to improve the efficiency of ODN fault diagnosis, there are two main solutions in the existing technology: Solution 1: By connecting to IP network management data, analyze the optical power, aggregate the abnormal optical power to specific devices, determine whether there is an abnormality based on the algorithm, and implement the final dispatch.

[0037] Solution 2: Determine the first correlation and the second correlation based on the acquired characteristic data, determine the topological structure of the ODN based on the first correlation and the second correlation, and determine the cause of the fault based on the fault optical path indicator characteristic model, the transmit and receive optical power of each PON port of the OLT within the first preset time period, and the transmit and receive optical power of each user-side device among multiple user-side devices within the first preset time period; locate the fault of the ODN based on the fault cause and the topological structure of the ODN.

[0038] The above solution has the following problems: Solution 1 determines whether the ODN has a fault based on whether the optical power exceeds the limit, but cannot identify the cause of the fault (such as fiber damage, bending, loose optical components, etc.). Network operation and maintenance personnel need to go to the site for a second diagnosis of the fault type before they can complete the repair according to the cause of the fault, which prolongs the overall repair time of the ODN line and reduces the efficiency of fault diagnosis. In addition, for most ODN optical line hidden dangers, the optical power is still within the qualified range and cannot be identified in time by the method proposed in Solution 1.

[0039] Solution 2 states that the AI ​​algorithm is used to establish the topology of the ODN and use it as a basis for locating the optical path fault of the ODN. However, it only explains the specific implementation method of establishing the ODN topology structure, and does not explain the specific implementation method of building the optical path fault location model and analyzing the observation data. It does not specifically explain the implementation method of abnormal monitoring to trigger the start of the fault type location function.

[0040] Therefore, in response to the problems existing in the above-mentioned prior art, the present invention provides an optical distribution network fault diagnosis method, which can simultaneously complete fault monitoring, fault type determination and fault interval location, and solve the problem that it can only locate whether there is a fault in the ODN network, but cannot locate the specific and reproducible fault type; and the implementation method of abnormal monitoring is not specifically explained, that is, how to define the abnormal optical power time series segment for subsequent analysis.

[0041] Combine the following Figure 1-Figure 16 The optical distribution network fault diagnosis method, apparatus, device, medium and program product of the present invention are described.

[0042] Figure 1 FIG. 1 is a flow chart of the optical distribution network fault diagnosis method provided by the present invention, such as Figure 1 As shown, the method includes the following: Step 101, determining an abnormal sequence of optical power according to the optical power difference between a plurality of consecutive pairs of adjacent time windows of each optical network unit ONU.

[0043] Collect the optical power information of all ONUs under the OLT to be monitored and troubleshooted, such as the transmit and receive optical power, and store it in the database. For example, use an automated script to periodically run MML (Man-Machine Language) instructions to extract the transmit and receive optical power of the ONU. When collecting or saving optical power data, the data format used is: <p1=(t1,v1),p2=(t2,v2),..p i =(t i ,v i )..,p n =(t n ,v n )>; In the above data point set, point pi =(t i ,v i ) represents the time t i The corresponding observation value is v i If the data formats before and after are inconsistent, preprocessing and conversion steps are required.

[0044] It should be noted that the traditional optical power anomaly detection is mainly judged by comparing whether the difference between the current sampling point and the previous sampling point exceeds the limit. However, due to the performance level of optical devices and optical fibers themselves, the ODN network under normal conditions also has the probability of short-term jumps in optical power, which can be easily misjudged as a fault by traditional anomaly detection methods. Based on this problem, the present invention uses a sliding time window method to complete the extraction of abnormal optical power time series fragments.

[0045] Specifically, according to the optical power information of each ONU, the historical optical power value in the nearest neighbor time window of the target observation point is obtained; wherein the target observation point represents the current observation point of the optical power. The optical power prediction value of the target observation point is predicted according to the historical optical power value, and the difference between the optical power prediction value and the optical power observation value of the target observation point is used as the optical power difference. Then, the optical power difference is compared to see whether it is greater than or equal to the abnormal threshold. If so, the over-limit counter is incremented by 1; according to the set sliding step sliding time window, the optical power difference is continued to be compared to see whether it is greater than or equal to the abnormal threshold; if so, the over-limit counter is incremented by 1; if not, the over-limit counter is set to 0; if the count value of the over-limit counter reaches M, the non-steady-state mode is entered, and the start time of the non-steady-state mode is recorded; the count value of the over-limit counter reaches M, indicating that the optical power difference between the ONU in M ​​consecutive pairs of adjacent time windows is greater than or equal to the abnormal threshold. Furthermore, according to the set sliding step sliding time window, compare whether the optical power difference is less than the abnormal threshold; if so, the limit counter is increased by 1; if not, the over-limit counter is set to 0; if the count value of the limit counter reaches N, then exit the non-steady state mode and record the end time of the non-steady state mode; the count value of the limit counter reaches N, indicating that the optical power difference between N consecutive pairs of adjacent time windows of the ONU is less than the abnormal threshold. Finally, according to the start time and end time of the non-steady state mode, determine the abnormal sequence of optical power.

[0046] In a specific embodiment, reference Figure 2 , the sliding time window method is used to complete the extraction of abnormal optical power time series fragments. The specific implementation method is as follows: (1) Set the sliding window width to k, the sliding step size to s, the abnormal threshold to h, the over-limit counter LO = 0, and the closing limit counter LI = 0.

[0047] (2) Define observation point d i =(t i ,v i)’s historical optical power value in the nearest neighbor time window is w (k) = <d i-k =(t i-k ,v i-k ),…,d i-2 =(t i-2 ,v i-2 ),d i-1 =(t i-1 ,v i-1 )>; Among them, the observation point d i =(t i ,v i ) represents the time t i The corresponding observation value is v i , observation point d i =(t i ,v i ) is the current observation point, that is, the target observation point.

[0048] (3) Using the weighted autoregressive algorithm, the optical power prediction value of the current observation point is predicted based on the historical optical power value in the nearest neighbor time window: vp i =v i-k *x i-k +…+v i-2 *x i-2 +v i-1 *x i-1 ; Among them, x i-k 、x i-2 and x i-1 is the weight coefficient, an optional method, the weight coefficient is 1 / k, and k is the sliding window width.

[0049] (4) Compare the optical power observation value v at the current observation point i And the predicted optical power value vp i The absolute value of the difference between i =|vp i -v i |Whether it exceeds the abnormal threshold h; if it exceeds the limit, the limit-exceeding counter LO increases by 1. Among them, e i =|vp i -v i | is the observed optical power value v i And the predicted optical power value vp i The optical power difference between them.

[0050] (5) Slide the time window according to the sliding step s to participate in the next detection; if e i =|vp i -v i|If the limit is exceeded again, the limit over-counter LO is incremented by 1; if the limit is not exceeded, the limit over-counter LO is set to 0.

[0051] (6) Continue sliding the time window according to the sliding step s. If the over-limit counter LO value reaches M, the non-steady-state mode is entered and the current time t j M time points forward i-M Recorded as the start time of the abnormal phase, that is, the start time of the non-steady-state mode.

[0052] (7) Slide the time window according to the sliding step s and participate in the next detection; if e is detected j =|vp j -v j |If the abnormal threshold h is not exceeded, the limit counter LI is increased by 1; if the limit is not exceeded, the limit counter LO is set to 0.

[0053] (8) Continue sliding the time window according to the sliding step s. If the limit counter LI value reaches N, exit the non-steady-state mode and set the current time t j N time steps forward j-N It is recorded as the end time of the abnormal phase, that is, the end time of the non-steady-state mode.

[0054] (9) Output abnormal optical power time series fragment, that is, abnormal sequence of optical power: O= <o i-M =(t i-M ,v i-M ),....,o j-N =(t j-N ,v j-N )>.

[0055] (10) The over-limit counter LO=0, the limit counter LI=0.

[0056] Step 102: Determine the fault type of the optical distribution network according to the similarity between the abnormal sequence and each characteristic sequence of the fault optical power.

[0057] The similarity between the abnormal sequence and each characteristic sequence of the fault optical power is calculated, and then the fault type of the optical distribution network is determined according to the similarity. For example, the fault type of the characteristic sequence with the smallest similarity is used as the fault type of the optical distribution network, where the fault types include optical fiber macrobend, optical fiber microbend, poor optical fiber splicing, optical fiber sheath damage, dust on the pigtail end face, dust on the flange head, water ingress into the joint box, and optical fiber aging.

[0058] The optical distribution network fault diagnosis method proposed in the present invention determines the optical power abnormal sequence according to the optical power difference between multiple pairs of consecutive adjacent time windows of each optical network unit ONU; and determines the fault type of the optical distribution network according to the similarity between the abnormal sequence and each characteristic sequence of the fault optical power. The present invention captures the abnormal sequence through sliding window monitoring, and at the same time, determines the fault type according to the similarity between the abnormal sequence and each characteristic sequence, thereby comprehensively and completely realizing the diagnosis of the hidden dangers of optical distribution network faults and improving the efficiency of fault diagnosis.

[0059] Based on the above embodiment, determining the fault type of the optical distribution network according to the similarity between the abnormal sequence and each characteristic sequence of the fault optical power includes: Step 211, determining the squared Euclidean distance between the abnormal sequence and each of the characteristic sequences; the squared Euclidean distance is used to characterize the similarity between the abnormal sequence and each of the characteristic sequences; Step 212: If the minimum square Euclidean distance is less than the set distance threshold, the fault type corresponding to the feature sequence of the minimum square Euclidean distance is determined as the fault type of the optical distribution network.

[0060] The main purpose of fault type identification is to complete the fault hidden danger diagnosis classification by comparing the similarity between the abnormal sequence and the characteristic sequence, that is: Abnormal sequence: O= <o i-M =(t i-M ,v i-M ),....,o j-N =(t j-N ,v j-N )>; Characteristic sequence: P (n) = <p1=(t1,v1),p2=(t2,v2),..p i =(t i ,v i )..,p n =(t n ,v n )>.

[0061] In general, the lengths of the two time series are unequal and offset, and the amplitudes are not aligned, such as Figure 3 As shown, curve 1 is the characteristic sequence and curve 2 is the abnormal sequence. The principle of traditional algorithms such as Euclidean distance, Pearson correlation coefficient and pattern distance is to achieve similarity matching through point-by-point comparison between different time series, which is not applicable to this scenario. Based on this, the present invention adopts a dynamic time warping algorithm to complete the pattern matching between the two, which can solve such problems.

[0062] Specifically, the squared Euclidean distance between the abnormal sequence and each characteristic sequence is calculated; wherein the squared Euclidean distance is used to characterize the similarity between the abnormal sequence and each characteristic sequence, and the smaller the squared Euclidean distance, the higher the similarity. The squared Euclidean distance refers to the square of the Euclidean distance.

[0063] The squared Euclidean distance between an abnormal sequence and any characteristic sequence is determined in the following way: 1) Calculate the squared Euclidean distance between the elements in the anomaly sequence and the elements in the feature sequence to generate a distance matrix.

[0064] 2) According to the distance matrix, determine the cumulative distance matrix. Specifically, assign the elements in the first row and first column of the cumulative distance matrix to 0; where i=0, j=0. Assign the sum of the elements in the first column of the i-th row of the distance matrix and the elements in the first column of the i-1th row of the cumulative distance matrix to the elements in the first column of the i-th row of the cumulative distance matrix; where i≠0, j=0. Assign the sum of the elements in the first row and j-1 column of the distance matrix and the elements in the first row and j-1 column of the cumulative distance matrix to the elements in the first row and j-1 column of the cumulative distance matrix; where i=0, j≠0. Select the smallest element from the elements in the i-1th row and j-1th column of the cumulative distance matrix, the elements in the i-1th row and j-1th column, and the elements in the i-th row and j-1th column; assign the sum of the elements in the i-th row and j-1th column of the distance matrix and the smallest element to the elements in the i-th row and j-1th column of the cumulative distance matrix; where i≠0, j≠0.

[0065] 3) Determine an initial path according to the length of the abnormal sequence and the length of the characteristic sequence, wherein the initial path represents the point pairing information of the abnormal sequence and the characteristic sequence.

[0066] 4) Determine the best path based on the initial path and the cumulative distance matrix. Specifically, if the current position of the initial path is located in the 0th row of the cumulative distance matrix, then the next hop path is traced back to the left one step to obtain the first coordinate value of the initial path; if the current position of the initial path is located in the 0th column of the cumulative distance matrix, then the next hop path is traced back to the next step to obtain the second coordinate value of the initial path; if the current position of the initial path is located in the non-boundary area of ​​the cumulative distance matrix, then the next hop path is traced back to the minimum direction of one step to the left, one step downward, and one step diagonally to the left to obtain the third coordinate value of the initial path; determine the best path based on the first coordinate value, the second coordinate value, and the third coordinate value. Among them, the current position of the initial path can be understood as the current block where the initial path is located.

[0067] 5) According to the optimal path, the abnormal sequence and the characteristic sequence are mapped to obtain mapping information.

[0068] 6) Based on the mapping information, the squared Euclidean distance between the abnormal sequence and the characteristic sequence is calculated.

[0069] Finally, the minimum square Euclidean distance is selected and compared with the set distance threshold. If the minimum square Euclidean distance is less than the set distance threshold, the fault type corresponding to the feature sequence of the minimum square Euclidean distance is determined as the fault type of the optical distribution network.

[0070] In a specific embodiment, reference Figure 4 ,The specific implementation of fault type identification is as follows: 1) Set the feature sequence index z, initialize z=1, indicating the first feature sequence; 2) Generate the distance matrix Mat: for the zth feature sequence P (n) (z), calculate P (n) (z)= <p1=(t1,v1),p2=(t2,v2),..p i =(t i ,v i )..,p n =(t n ,v n )>Sequence and abnormal sequence O= <o i-M =(t i-M ,v i-M ),....,o j-N =(t j-N ,v j-N )>The distance matrix between them is Mat[i,j]=(O[j]-P (n) (z)[i]) 2 , where the value of the i-th row and j-th column of the distance matrix is ​​the value of the j-th element of the abnormal sequence O and the value of the z-th feature sequence P (n) (z) The squared Euclidean distance between the values ​​of the i-th element. Among them, the distance matrix between the characteristic sequence and the abnormal sequence is as follows: Figure 5 shown.

[0071] 3) Generate cumulative distance matrix Macc: Based on the distance matrix Mat, calculate the cumulative distance matrix Macc.

[0072] 3.1) Assign the value of the first row and first column of Macc: Macc[0,0]=Mat[0,0], where i=0, j=0.

[0073] 3.2) Assign the value of the first column of Macc: Macct[i,0]=Mat[i,0]+Macc[i-1,0], where i≠0, j=0, such as Figure 6 shown.

[0074] 3.3) The first row of Macc is assigned: Macc[0,j]=Mat[0,j]+Macc[0,j-1], where i=0 and j≠0. Figure 7 shown.

[0075] 3.4) Assignment of the remaining elements (i.e., i≠0, j≠0): For any other element, the cumulative distance is increased from three directions: left, bottom, and diagonally left and bottom. Dynamic programming can be used to make each step forward choose the direction with the smallest current travel distance. Therefore, for any other point, the calculation formula for the cumulative distance is: Macc[i,j]=Mat[i,j]+min(Macc[i-1,j-1],Macc[i-1,j],Macc[i,j-1]); The minimum cumulative distance is achieved based on the above cumulative distance calculation formula.

[0076] 4) At this point, the best path has been clearly displayed in the cumulative distance matrix Macc. Figure 8 The path is composed of the lightest blocks in the sequence. By mapping the elements in the abnormal sequence and the characteristic sequence according to this path subscript, the sum of the squared Euclidean distances of the two sequences can be minimized. The present invention finds the best path by backtracking, and the specific implementation method is as follows: 4.1) Initialize path = [[j,i]], where the initial value of j is the length of the abnormal optical power time series segment len(O)-1, and the initial value of i is the length of the zth characteristic sequence len(P (n) (z))-1, which is the upper right corner square of the above cumulative distance matrix.

[0077] 4.2) When i>0 and j>0: 4.21) If the current block is located in the 0th row of the above cumulative distance matrix, that is, i=0, then the backtracking next hop path is one step to the left, that is, j minus 1.

[0078] 4.22) If the current block is located in the 0th column of the cumulative distance matrix, that is, j=0, then the next hop path to be traced back is the next step forward, that is, i minus 1.

[0079] 4.23) If the current block is located in the non-border area of ​​the above cumulative distance matrix, that is, i≠0 and j≠0, then the backtracking next jump path is the minimum direction among the left, bottom and diagonally lower left blocks, that is, min(Macc[i-1,j],Macc[i-1,j-1],Macc[i,j-1]). Correspondingly, j is reduced by 1 to the left, i is reduced by 1 to the bottom, i is reduced by 1 to the diagonally lower left, and j is reduced by 1.

[0080] When any of the above conditions is met, the path path increases the current [j,i] coordinate. For example, when condition 4.21) is met, the path path increases the coordinate [j-1,0], which is the first coordinate value; when condition 4.22) is met, the path path increases the coordinate [0,i-1], which is the second coordinate value; when condition 4.23) is met, the path path increases the coordinate [j,i-1], [j-1,i-1] or [j-1,i], which is the third coordinate value.

[0081] 4.3) The path path adds the origin [0,0] coordinates.

[0082] The above steps are executed repeatedly, and the optimal path is obtained by connecting the obtained multiple first coordinate values, second coordinate values, and second coordinate values, such as Fig. 9 shown.

[0083] 5) Mapping the optimal path to the time series distribution scatter plot, we can get the mapping relationship diagram between the feature sequence and the abnormal sequence, as shown in Fig.10 As shown, curve 1 is the characteristic sequence and curve 2 is the abnormal sequence. According to the mapping relationship between the characteristic sequence and the abnormal sequence, the squared Euclidean distance between the two time series is calculated: Among them, O[path[u][0]] is the abnormal sequence obtained according to the optimal path mapping, P (n) (z)[path[u][1]] is the feature sequence obtained according to the optimal path mapping.

[0084] 6) z=z+1, for the next characteristic sequence, calculate the Euclidean square distance d(z) between it and the abnormal sequence.

[0085] 7) If min(d(z)) is less than the threshold value d th , then the abnormal sequence is determined to be the zth fault type corresponding to min(d(z)).

[0086] The present invention adopts a dynamic time warping algorithm to complete the pattern matching between two time series, so that it is not restricted by problems such as different sequence lengths, offsets or amplitude misalignment. Therefore, the similarity between them can be calculated more accurately, thereby improving the accuracy of matching and then improving the accuracy of fault diagnosis.

[0087] Based on the above embodiment, each characteristic sequence of the fault optical power is determined based on the following method: Step 221, obtaining optical power time series of various fault scenarios; the optical power time series includes multiple moments and the optical power observation value corresponding to each moment; Step 222: taking each of the optical power time series as each characteristic sequence of the fault optical power.

[0088] The fault optical power time series of a common optical distribution network is captured so as to be used for identifying the fault type in the subsequent stage.

[0089] For example, by artificially simulating a variety of common fault scenarios, including: optical fiber macrobend (bend where the curvature radius of the optical fiber is much larger than the diameter of the optical fiber), optical fiber microbend (micrometer-level bend in the optical fiber axis), poor optical fiber splicing, damaged optical fiber sheath, dust on the pigtail end face, dust on the flange head, water ingress into the joint box, and optical fiber aging, etc. For each fault scenario, collect its optical power time series, recorded as the characteristic sequence P(n), where P(n) includes n moments and the corresponding optical power observation value at each moment, that is, at each moment t i Corresponding to an observation value v i , represents the optical power at that moment. For example, the characteristic sequence of the optical power of a fiber macrobend fault (such as Fig.11 An example of ) is: P (n) = <p1=(t1,v1),p2=(t2,v2),..p i =(t i ,v i )..,p n =(t n ,v n )>; where p i =(t i ,v i ) represents the time t i The observed value is v i .

[0090] The present invention can provide important reference information for fault diagnosis and improve fault diagnosis efficiency by simulating multiple common fault scenarios and collecting their optical power time series as feature sequences.

[0091] Based on the above embodiment, after determining the fault type of the optical distribution network according to the similarity between the abnormal sequence and each characteristic sequence of the fault optical power, the method further includes: Step 311, if a single ONU under the secondary optical splitter in the access network transmission optical line fails, the fault interval is between the secondary optical splitter and the ONU; Step 312: If all the ONUs under the secondary optical splitter fail, the failure interval is between the secondary optical splitter and the upstream primary optical splitter; Step 313: If all the ONUs under the primary optical splitter fail, the failure interval is between the primary optical splitter and the upstream optical line terminal OLT.

[0092] In order to efficiently troubleshoot and repair the problem, it is necessary to locate the fault area. Fig.12 , OLT is the central device in the fiber optic access network, responsible for connecting with users and providing services to users. The primary optical splitter is located between the OLT and the secondary optical splitter, and is used to distribute the optical signal from the OLT to multiple secondary optical splitters; or the primary optical splitter is located between the OLT and the ONU, and is used to distribute the optical signal from the OLT to multiple ONUs. The secondary optical splitter is located between the OLT and multiple ONUs, and is used to distribute the optical signal from the OLT to multiple ONUs. ONU is the user terminal device in the fiber optic access network.

[0093] The fault interval is located as follows: (1) Single ONU failure: If a single ONU under the secondary optical splitter fails, the fault interval is limited to the secondary optical splitter and the affected ONU. This means that the fault is likely to occur somewhere between the two devices, which may be a problem with the fiber connection, fiber port, or the ONU itself.

[0094] (2) Only all ONUs under the secondary splitter fail: If all ONUs under the secondary splitter fail, the fault range extends to the secondary splitter and its upstream primary splitter. This indicates that the fault may be caused by a problem with the secondary splitter itself or a problem with the connection between the secondary splitter and the primary splitter.

[0095] (3) Only all ONUs under the first-level splitter fail: If all ONUs under the first-level splitter fail, the fault range is further extended to the first-level splitter and the OLT connected to it. This indicates that the fault may be caused by a problem with the first-level splitter itself or a problem with the connection between the first-level splitter and the OLT.

[0096] By narrowing the fault range to a specific interval, the present invention allows maintenance personnel to more quickly determine the root cause of the fault, thereby saving time, shortening network recovery time, and reducing user service interruption time. On the other hand, after determining the fault range, maintenance personnel can perform targeted troubleshooting, saving manpower, material resources, and time costs.

[0097] In order to further analyze and explain the optical distribution network fault diagnosis method proposed by the present invention, refer to Figure 13-14 And the following examples.

[0098] The present invention specifically proposes a method for diagnosing hidden dangers of access network transmission optical lines based on pattern recognition, wherein the access network transmission optical line is a part of the optical distribution network, which is responsible for transmitting optical signals from optical fibers to user terminals, including components such as optical fibers and splitters.

[0099] The method first collects optical power time series (i.e., optical power waveform) for 8 common optical fiber fault scenarios as the optical power time series characteristics of the fault scenario, and uses this as the basis for identifying and judging ODN faults. This is different from the prior art that generally only uses the optical power threshold at a single time point as the judgment benchmark.

[0100] Furthermore, the present invention captures the start and end time points of the abnormal state from the optical power time series collected by polling through a sliding window, and saves the optical power time series of the abnormal state.

[0101] Furthermore, when comparing the abnormal state optical power timing with the characteristic sequence pattern to determine the fault type, the present invention uses a dynamic time warping algorithm to solve the difficulty that the traditional method cannot overcome the above-mentioned two sequences with different lengths and offsets.

[0102] The present invention is mainly composed of an interaction layer, a capability layer and a data layer, and mainly involves five functional modules: data collection, fault optical power feature collection, anomaly detection, fault potential type identification and fault interval analysis. Among them, the interaction layer realizes the presentation of fault location results and the input of configuration information. The capability layer realizes the identification of ODN fault causes and the location of faults through the three functional modules of anomaly detection, fault potential type identification and fault interval analysis. The data layer realizes the collection and storage of two optical power sequences: monitoring and feature through the two modules of data collection and fault optical power feature collection.

[0103] The specific functions of each module are as follows: The data collection module collects the optical power data of all ONUs connected to the OLT through MML instructions and performs basic storage.

[0104] The fault optical power feature collection module collects and intercepts the optical power time series of common ODN faults (fiber damage, bending, loose optical components, etc.) as feature samples based on the large amount of ONU transmit and receive optical power data collected above and according to daily operation and maintenance experience.

[0105] The abnormality detection module monitors the above-mentioned transmitted and received optical power information for each ONU through a sliding time window. If the optical power difference between M consecutive pairs of adjacent time windows is greater than or equal to the threshold value, it enters the non-steady-state mode, and the time point is recorded as the start time of the non-steady-state mode; until the optical power difference between N consecutive pairs of adjacent time windows is less than the threshold value, it exits the non-steady-state mode, and the time point is recorded as the end time of the non-steady-state mode, generating an abnormal optical power sequence fragment.

[0106] The fault potential type identification module uses a dynamic time warping pattern recognition algorithm to compare the similarity of the abnormal optical power sequence fragments within the above-mentioned non-steady-state mode time interval with the typical fault optical power feature sequence. If the similarity is greater than the threshold value, it is classified into the corresponding fault potential type.

[0107] The fault interval analysis module is based on the OLT-first-level splitter-second-level splitter-ONU network topology resource data. If a single ONU under the second-level splitter fails, the fault interval is between the second-level splitter and the ONU; if all ONUs under the second-level splitter fail, the fault interval is between the second-level splitter and the upstream first-level splitter; if all ONUs under the first-level splitter fail, the fault interval is between the first-level splitter and the upstream OLT.

[0108] The present invention elaborately describes the collection of characteristic sequences of various typical fault scenarios, the capture of abnormal sequences by sliding window monitoring, and the mapping of characteristic sequences and abnormal sequences by dynamic time warping algorithm to complete fault pattern matching. It comprehensively and completely realizes the diagnosis of common fault hazards of access network ODN transmission optical lines and improves the efficiency of fault diagnosis.

[0109] The optical distribution network fault diagnosis device provided by the present invention is described below. The optical distribution network fault diagnosis device described below and the optical distribution network fault diagnosis method described above can be referred to each other.

[0110] refer to Fig.15 , Fig.15 : is a schematic diagram of the structure of the optical distribution network fault diagnosis device provided by the present invention, and the optical distribution network fault diagnosis device provided by the present invention comprises: The abnormal sequence determination module is used to determine the abnormal sequence of optical power according to the optical power difference between multiple pairs of consecutive adjacent time windows of each optical network unit ONU; The fault type determination module is used to determine the fault type of the optical distribution network according to the similarity between the abnormal sequence and each characteristic sequence of the fault optical power.

[0111] The optical distribution network fault diagnosis device proposed in the present invention determines the abnormal sequence of optical power according to the optical power difference between multiple pairs of consecutive adjacent time windows of each optical network unit ONU; and determines the fault type of the optical distribution network according to the similarity between the abnormal sequence and each characteristic sequence of the fault optical power. The present invention captures the abnormal sequence through sliding window monitoring, and at the same time, determines the fault type according to the similarity between the abnormal sequence and each characteristic sequence, thereby comprehensively and completely realizing the diagnosis of hidden faults in the optical distribution network and improving the efficiency of fault diagnosis.

[0112] In one embodiment, the abnormal sequence determination module 1501 is further configured to: According to the optical power information of each of the ONUs, the historical optical power value in the nearest neighbor time window of the target observation point is obtained; the target observation point represents the current observation point of the optical power; Predicting an optical power prediction value of the target observation point according to the historical optical power value, and taking a difference between the optical power prediction value and the optical power observation value of the target observation point as the optical power difference; Compare whether the optical power difference is greater than or equal to the abnormal threshold, if so, add 1 to the over-limit counter; According to the set sliding step sliding time window, continue to compare whether the optical power difference is greater than or equal to the abnormal threshold; if so, the over-limit counter is increased by 1; if not, the over-limit counter is set to 0; If the count value of the over-limit counter reaches M, the system enters the unstable mode and records the start time of the unstable mode; if the count value of the over-limit counter reaches M, it indicates that the optical power difference between the ONU in M ​​consecutive pairs of adjacent time windows is greater than or equal to the abnormal threshold; According to the set sliding step length sliding time window, compare whether the optical power difference is less than the abnormal threshold; if so, the limit counter is increased by 1; if not, the over-limit counter is set to 0; If the count value of the limit counter reaches N, the non-steady state mode is exited and the end time of the non-steady state mode is recorded; the count value of the limit counter reaches N, indicating that the optical power difference between the ONU in N consecutive adjacent time windows is less than the abnormal threshold; An abnormal sequence of the optical power is determined according to the start time and the end time of the non-steady-state mode.

[0113] In one embodiment, the fault type determination module 1502 is further configured to: Determine the squared Euclidean distance between the abnormal sequence and each of the characteristic sequences; the squared Euclidean distance is used to characterize the similarity between the abnormal sequence and each of the characteristic sequences; If the minimum square Euclidean distance is less than the set distance threshold, the fault type corresponding to the feature sequence of the minimum square Euclidean distance is determined as the fault type of the optical distribution network.

[0114] In one embodiment, the fault type determination module 1502 is further configured to: Calculating the squared Euclidean distances between the elements in the abnormal sequence and the elements in the characteristic sequence to generate a distance matrix; determining a cumulative distance matrix based on the distance matrix; Determine an initial path according to the length of the abnormal sequence and the length of the characteristic sequence; the initial path represents point pairing information of the abnormal sequence and the characteristic sequence; Determining an optimal path according to the initial path and the cumulative distance matrix; According to the optimal path, mapping the abnormal sequence with the characteristic sequence to obtain mapping information; The squared Euclidean distance between the abnormal sequence and the characteristic sequence is calculated according to the mapping information.

[0115] In one embodiment, the fault type determination module 1502 is further configured to: If the current position of the initial path is located at the 0th row of the cumulative distance matrix, then the next hop path is backtracked to the left one step to obtain the first coordinate value of the initial path; If the current position of the initial path is located in the 0th column of the cumulative distance matrix, then the next hop path is traced back to the next step to obtain the second coordinate value of the initial path; If the current position of the initial path is located in the non-boundary area of ​​the cumulative distance matrix, then the next jump path is traced back to the minimum direction among one step to the left, one step to the next, and one step diagonally to the left to obtain the third coordinate value of the initial path; based on the first coordinate value, the second coordinate value and the third coordinate value, the optimal path is determined.

[0116] In one embodiment, the fault type determination module 1502 is further configured to: Assigning the element of the first row and the first column in the cumulative distance matrix to 0; wherein i=0, j=0; Assign the sum of the element in the first column of the i-th row in the distance matrix and the element in the first column of the i-1-th row in the cumulative distance matrix to the element in the first column of the i-th row in the cumulative distance matrix; wherein i≠0, j=0; Assign the sum of the element in the first row and j column of the distance matrix and the element in the first row and j-1 column of the cumulative distance matrix to the element in the first row and j column of the cumulative distance matrix; wherein i=0, j≠0; Select the smallest element from the elements in the i-1th row and j-1th column, the elements in the i-1th row and j-1th column, and the elements in the i-th row and j-1th column in the cumulative distance matrix; assign the sum of the element in the i-th row and j-1th column in the distance matrix and the smallest element to the element in the i-th row and j-1th column in the cumulative distance matrix; wherein i≠0, j≠0.

[0117] In one embodiment, the fault type determination module 1502 is further configured to: Obtain optical power time series for various fault scenarios; the optical power time series includes multiple moments and optical power observation values ​​corresponding to each moment; The optical power time series are used as characteristic sequences of fault optical power.

[0118] In one embodiment, the fault type determination module 1502 is further configured to: If a single ONU under the secondary optical splitter in the access network transmission optical line fails, the fault interval is between the secondary optical splitter and the ONU; If all the ONUs under the secondary optical splitter fail, the fault interval is between the secondary optical splitter and the upstream primary optical splitter; If all the ONUs under the primary optical splitter fail, the fault interval is between the primary optical splitter and the upstream optical line terminal OLT.

[0119] Fig.16 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.16 As shown, the electronic device may include: a processor 1610, a communication interface 1620, a memory 1630 and a communication bus 1640, wherein the processor 1610, the communication interface 1620 and the memory 1630 communicate with each other through the communication bus 1640. The processor 1610 may call the logic instructions in the memory 1630 to execute the optical distribution network fault diagnosis method, the method comprising: determining an abnormal sequence of optical power according to the optical power difference between a plurality of consecutive pairs of adjacent time windows of each optical network unit ONU; determining the fault type of the optical distribution network according to the similarity between the abnormal sequence and each characteristic sequence of the fault optical power.

[0120] In addition, the logic instructions in the above-mentioned memory 1630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0121] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the optical distribution network fault diagnosis method provided by the above-mentioned methods, and the method includes: determining an abnormal sequence of optical power according to the optical power difference between multiple pairs of adjacent time windows of each optical network unit ONU; determining the fault type of the optical distribution network according to the similarity between the abnormal sequence and each characteristic sequence of the fault optical power.

[0122] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the optical distribution network fault diagnosis method provided by the above-mentioned methods. The method includes: determining an abnormal sequence of optical power according to the optical power difference between multiple pairs of adjacent time windows of each optical network unit ONU; determining the fault type of the optical distribution network according to the similarity between the abnormal sequence and each characteristic sequence of the fault optical power.

[0123] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0124] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0125] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for diagnosing faults in an optical distribution network, characterized in that: include: According to the optical power difference between multiple pairs of consecutive adjacent time windows of each optical network unit ONU, an abnormal sequence of optical power is determined; The fault type of the optical distribution network is determined according to the similarity between the abnormal sequence and each characteristic sequence of the fault optical power.

2. The optical distribution network fault diagnosis method according to claim 1, characterized in that: The method of determining an abnormal sequence of optical power according to the optical power difference between a plurality of consecutive pairs of adjacent time windows of each optical network unit ONU comprises: According to the optical power information of each of the ONUs, the historical optical power value in the nearest neighbor time window of the target observation point is obtained; the target observation point represents the current observation point of the optical power; Predicting an optical power prediction value of the target observation point according to the historical optical power value, and taking a difference between the optical power prediction value and the optical power observation value of the target observation point as the optical power difference; Compare whether the optical power difference is greater than or equal to the abnormal threshold, if so, add 1 to the over-limit counter; According to the set sliding step sliding time window, continue to compare whether the optical power difference is greater than or equal to the abnormal threshold; if so, the over-limit counter is increased by 1; if not, the over-limit counter is set to 0; If the count value of the over-limit counter reaches M, the system enters the unstable mode and records the start time of the unstable mode; if the count value of the over-limit counter reaches M, it indicates that the optical power difference between the ONU in M ​​consecutive pairs of adjacent time windows is greater than or equal to the abnormal threshold; According to the set sliding step length sliding time window, compare whether the optical power difference is less than the abnormal threshold; if so, the limit counter is increased by 1; if not, the over-limit counter is set to 0; If the count value of the limit counter reaches N, the non-steady state mode is exited and the end time of the non-steady state mode is recorded; the count value of the limit counter reaches N, indicating that the optical power difference between the ONU in N consecutive adjacent time windows is less than the abnormal threshold; An abnormal sequence of the optical power is determined according to the start time and the end time of the non-steady-state mode.

3. The optical distribution network fault diagnosis method according to claim 1, characterized in that: Determining the fault type of the optical distribution network according to the similarity between the abnormal sequence and each characteristic sequence of the fault optical power includes: Determine the squared Euclidean distance between the abnormal sequence and each of the characteristic sequences; the squared Euclidean distance is used to characterize the similarity between the abnormal sequence and each of the characteristic sequences; If the minimum square Euclidean distance is less than the set distance threshold, the fault type corresponding to the feature sequence of the minimum square Euclidean distance is determined as the fault type of the optical distribution network.

4. The optical distribution network fault diagnosis method according to claim 3, characterized in that: The squared Euclidean distance between the abnormal sequence and any of the characteristic sequences is determined based on the following method: Calculating the squared Euclidean distances between the elements in the abnormal sequence and the elements in the characteristic sequence to generate a distance matrix; determining a cumulative distance matrix based on the distance matrix; Determining an initial path according to the length of the abnormal sequence and the length of the characteristic sequence; The initial path represents the point pairing information of the abnormal sequence and the characteristic sequence; Determining an optimal path according to the initial path and the cumulative distance matrix; According to the optimal path, mapping the abnormal sequence with the characteristic sequence to obtain mapping information; The squared Euclidean distance between the abnormal sequence and the characteristic sequence is calculated according to the mapping information.

5. The optical distribution network fault diagnosis method according to claim 4, characterized in that: The determining the best path according to the initial path and the accumulated distance matrix comprises: If the current position of the initial path is located at the 0th row of the cumulative distance matrix, then the next hop path is backtracked to the left one step to obtain the first coordinate value of the initial path; If the current position of the initial path is located in the 0th column of the cumulative distance matrix, then the next hop path is traced back to the next step to obtain the second coordinate value of the initial path; If the current position of the initial path is located in the non-boundary area of ​​the cumulative distance matrix, then the next hop path is traced back to the minimum direction among one step to the left, one step to the left, and one step to the left diagonally, to obtain the third coordinate value of the initial path; The optimal path is determined according to the first coordinate value, the second coordinate value and the third coordinate value.

6. The optical distribution network fault diagnosis method according to claim 4, characterized in that: Determining a cumulative distance matrix according to the distance matrix includes: Assigning the element of the first row and the first column in the cumulative distance matrix to 0; wherein i=0, j=0; Assign the sum of the element in the first column of the i-th row in the distance matrix and the element in the first column of the i-1-th row in the cumulative distance matrix to the element in the first column of the i-th row in the cumulative distance matrix; wherein i≠0, j=0; Assign the sum of the element in the first row and j column of the distance matrix and the element in the first row and j-1 column of the cumulative distance matrix to the element in the first row and j column of the cumulative distance matrix; wherein i=0, j≠0; Select the smallest element from the elements in the i-1th row and j-1th column, the elements in the i-1th row and j-1th column, and the elements in the i-th row and j-1th column in the cumulative distance matrix; assign the sum of the element in the i-th row and j-1th column in the distance matrix and the smallest element to the element in the i-th row and j-1th column in the cumulative distance matrix; wherein i≠0, j≠0.

7. The optical distribution network fault diagnosis method according to claim 1, characterized in that: Each characteristic sequence of the fault optical power is determined based on the following method: Obtain optical power time series for various fault scenarios; the optical power time series includes multiple moments and optical power observation values ​​corresponding to each moment; The optical power time series are used as characteristic sequences of fault optical power.

8. The optical distribution network fault diagnosis method according to claim 1, characterized in that: After determining the fault type of the optical distribution network according to the similarity between the abnormal sequence and each characteristic sequence of the fault optical power, the method further includes: If a single ONU under the secondary optical splitter in the access network transmission optical line fails, the fault interval is between the secondary optical splitter and the ONU; If all the ONUs under the secondary optical splitter fail, the fault interval is between the secondary optical splitter and the upstream primary optical splitter; If all the ONUs under the primary optical splitter fail, the fault interval is between the primary optical splitter and the upstream optical line terminal OLT.

9. An optical distribution network fault diagnosis device, characterized in that: include: The abnormal sequence determination module is used to determine the abnormal sequence of optical power according to the optical power difference between multiple pairs of consecutive adjacent time windows of each optical network unit ONU; The fault type determination module is used to determine the fault type of the optical distribution network according to the similarity between the abnormal sequence and each characteristic sequence of the fault optical power.

10. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, the optical distribution network fault diagnosis method according to any one of claims 1 to 8 is implemented.

11. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the optical distribution network fault diagnosis method according to any one of claims 1 to 8 is implemented.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the optical distribution network fault diagnosis method according to any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Fault diagnosis and intelligent operation and maintenance method and system for optical distribution network

    CN122394663A