Fault positioning method and system based on preset circle detection in optical network

By constructing a topology map and obtaining a loop path in the optical network, a fault location method based on preset circle detection is implemented, which solves the problems of fault location accuracy and low cost efficiency in the existing technology, and improves the stability of the optical transmission network. and monitoring effects.

CN118764080APending Publication Date: 2024-10-11SUZHOU UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410711749.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing optical network fault location methods cannot adapt to the current high-speed information transmission rate, and the monitoring effect is low in cost performance. It is difficult to accurately locate fault locations at high transceiver rates, which affects network stability.

Method used

The fault location method based on preset circle detection is used to construct the topology diagram and adjacency matrix of the optical transmission network, obtain and sort multiple loop paths, and use them as fault monitoring loops after deduplication to realize fault location of the optical transmission network.

Benefits of technology

It improves the accuracy and efficiency of fault location, reduces monitoring costs, ensures the stable operation of the optical transmission network when faults occur, and solves the conflict between monitoring costs and effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764080A_ABST
    Figure CN118764080A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of optical network fault positioning, in particular to a fault positioning method and system based on preset circle detection in an optical network, and the method comprises the steps: constructing an adjacent matrix based on a topological graph of an optical transmission network, each element of the adjacent matrix represents a connection relationship between any two optical switching nodes in the optical transmission network; a two-dimensional array is initialized, elements in an adjacent matrix are copied to the two-dimensional array one by one, a plurality of circulation paths are searched based on the two-dimensional data, all the circulation paths are sorted, repeated paths are removed, and the circulation paths subjected to duplicate removal serve as fault monitoring loops; and carrying out fault positioning on the optical transmission network based on the fault monitoring ring. According to the invention, the fault position can be positioned in a short time, the influence of the network fault on the service request is reduced, and the method has the remarkable advantages of accuracy and high efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of optical network fault location, and in particular to a fault location method and system based on preset circle detection in an optical network. Background Art

[0002] In recent years, with the vigorous development of communication technology and the improvement of network quality, a large number of emerging application scenarios such as smart cities, the Internet of Everything, intelligent transportation systems, and virtual reality technology (VR) have emerged. Individuals' demand for the Internet is growing exponentially. The impact of the Internet on daily life is becoming more and more profound, not only limited to simple information exchange, but also extending to areas such as transportation and online shopping. Since these application scenarios can bring users higher bandwidth rates, more network connections, and lower latency, the size of data and business requests that the core network needs to process per unit time are growing exponentially. Once a part of the network fails, it will cause a series of service interruptions, seriously affecting people's work and daily life. Therefore, the stability of the network has become increasingly important. After a network failure occurs, preventing network failures and quickly locating the fault location for fault repair has become a topic that has received more and more attention. The process of network fault diagnosis involves identifying the root cause of the fault in the network and repairing or resolving the fault in a timely manner to ensure the quality of the network.

[0003] The scale of actual networks is often very large, and it is not easy to find the fault location in a large number of nodes and links. At present, the monitoring path method is more commonly used for fault location in optical networks. Nodes are selected in the network to place monitoring stations. Monitoring paths are established simultaneously during each monitoring process. Detection signals are sent simultaneously on the deployed monitoring paths. Monitoring stations on paths with light loss will generate alarm information. The faulty link is located by combining the monitoring results of multiple monitoring paths. The monitoring modes of related monitoring paths include monitoring ring (m-cycle), monitoring trail (m-trail) and bidirectional monitoring trail (bm-trail). According to the location of the monitoring station deployment, the corresponding fault location method can be divided into: clear fault location (UFL) with no constraints on the location of the monitoring station; local clear fault location (L-UFL) using only one monitoring station or a small number of nodes as monitoring stations; local clear fault location (NL-UFL) in the network range where each node can be used as a monitoring station. The second method is used in the present invention.

[0004] In fault diagnosis, the pre-detection loop fault location method is widely used due to its simple construction, rapid deployment capability and high monitoring efficiency. This fault location method establishes a set of detection links in the network before information service transmission, and sets the transceiver station of the monitoring signal to the same node on the detection link. The received monitoring signal is used to determine whether a fault has occurred. The specific fault location is located by judging the results of a set of detection links.

[0005] At present, the commonly used pre-detection loop fault location methods mainly include the heuristic minimum spanning tree ring cover algorithm (HST), the heuristic depth-first search ring cover algorithm (HDFS), and the shortest path Euler matching ring cover algorithm (SPFM). These methods have their own advantages, but the current fault location requirements are becoming more and more accurate. First, these fault location methods cannot adapt to the current information transmission rate in terms of positioning accuracy. Secondly, the monitoring effect is too low in cost performance compared to the monitoring cost. Therefore, there is an urgent need for a fault location method that can better adapt to the current high-speed information transmission and reception rate, has good monitoring effect, and has controllable monitoring cost. Summary of the invention

[0006] Therefore, the technical problem to be solved by the present invention is to overcome the problem that the existing method for locating the fault of a link or a node in an optical network cannot match the current information transmission rate.

[0007] In order to solve the above technical problems, reduce the impact of optical fiber breakage or transmission blockage in the network on information transmission and reception in the network, and improve the stability of the network when a fault occurs, the present invention provides a fault location method and system based on preset circle detection in an optical network, the method comprising the following steps:

[0008] S1: constructing an adjacency matrix based on a topological graph of an optical transmission network, wherein each element of the adjacency matrix represents a connection relationship between any two optical switching nodes in the optical transmission network;

[0009] S2: Initialize a two-dimensional array, copy the elements in the adjacency matrix into the two-dimensional array one by one, find multiple loop paths based on the two-dimensional data, sort all loop paths and remove duplicate paths, and use the deduplicated loop paths as fault monitoring loops;

[0010] S3: locating faults in the optical transmission network based on the fault monitoring ring.

[0011] In one embodiment of the present invention, the method for obtaining the cycle path includes:

[0012] S21: According to the two-dimensional data, select a node as the starting point node V iInitialize the visited node list, parent node list, current path list and loop path list. The visited node list is used to mark whether the nodes in the graph have been visited. The parent node list is used to record the parent node information of each node. The current path list is used to store the information from the starting node V i The current traversal path started, the loop path list is used to store the found loop paths;

[0013] S22: Set the starting node V i Mark as visited and add it to the current path list, traversing the starting node V i Adjacent nodes V j ;

[0014] S23: For each neighbor node V j , determine the neighbor node V j Marked as visited:

[0015] If the neighbor node V j Marked as visited, and proceeding to step S230;

[0016] If the neighbor node V j If it is not marked as visited, the neighbor node is marked as visited, and the neighbor node is passed in as a new starting node, the current path list is updated, and the process returns to S22;

[0017] S24: repeat steps S22 to S23 until all nodes have been visited and multiple cycle paths are obtained;

[0018] Wherein, the step S230 includes: determining the neighbor node V marked as visited j Is it the starting node V? i The parent node of:

[0019] If the neighbor node V is marked as visited j is the starting node V i The parent node of , select a new starting node V from the unvisited nodes i , return to S22;

[0020] If the neighbor node V is marked as visited j Not the starting node V i The parent node of the neighbor node is V. i The current path portion is added as a cyclic path to the cyclic path list.

[0021] In one embodiment of the present invention, the method for constructing the adjacency matrix includes:

[0022] Constructing a network topology diagram of an optical transmission network, the network topology diagram comprising nodes, transmission paths between nodes, and path lengths, the nodes representing optical switching nodes in the optical transmission network, the transmission paths and path lengths representing links and link lengths in the optical transmission network, respectively;

[0023] The size of the adjacency matrix is ​​determined according to the number of transmission paths and the number of nodes in the network topology graph, and each element in the adjacency matrix represents a connection relationship between any two nodes in the network topology graph.

[0024] In one embodiment of the present invention, the method for constructing the adjacency matrix further includes: determining the number of rows and columns of the adjacency matrix according to the number of nodes in the network topology graph, and the number of rows and columns of the adjacency matrix are equal to the number of nodes.

[0025] In one embodiment of the present invention, the number of non-zero elements in the adjacency matrix is ​​equal to the number of the transmission paths.

[0026] In one embodiment of the present invention, each element in the two-dimensional array contains connection relationship, distance and weight information between nodes.

[0027] In one embodiment of the present invention, a method for locating faults in an optical transmission network based on the fault monitoring loop includes: setting a monitoring module on the fault monitoring loop, sending monitoring traffic to each fault monitoring loop, obtaining the sending or receiving status of the monitoring traffic through the monitoring module, and determining the location of the fault.

[0028] Based on the same inventive concept, the present invention also provides a fault location system based on preset circle detection in an optical network, the system is used to implement the fault location method based on preset circle detection in an optical network, specifically comprising:

[0029] An adjacency matrix construction module, used to construct an adjacency matrix based on an optical transmission network, wherein each element of the adjacency matrix represents a connection relationship between any two optical switching nodes in the optical transmission network;

[0030] A fault monitoring loop acquisition module initializes a two-dimensional array, copies the elements in the adjacency matrix into the two-dimensional array one by one, finds multiple loop paths based on the two-dimensional data, sorts all loop paths and removes duplicate paths, and uses the deduplicated loop paths as fault monitoring loops;

[0031] The fault locating module is used to locate the fault of the optical transmission network based on the fault monitoring ring.

[0032] In one embodiment of the present invention, the fault monitoring loop acquisition module includes a loop path calculation module; wherein the loop path calculation module is configured to:

[0033] According to the two-dimensional data, select a node V i As the starting node, initialize the visited node list, parent node list, current path list and loop path list. The visited node list is used to mark whether the nodes in the graph have been visited. The parent node list is used to record the parent node information of each node. The current path list is used to store the information from the starting node V i The current traversal path started, the loop path list is used to store the found loop paths;

[0034] Set the starting node V i Mark as visited and add it to the current path list, traversing the starting node V i Adjacent nodes V j , for each neighbor node V j , if the node has been visited and is not the starting node V i The parent node of the neighbor node is V. i The current path part is added as a cycle path to the cycle path list if the neighbor node V j If it has not been visited, the neighbor node is marked as visited, and the neighbor node is passed in as a new starting node to update the current path list;

[0035] Traverse the nodes adjacent to the new starting node until all nodes have been visited, and multiple cycle paths are obtained.

[0036] The present invention also provides a computer storage medium, which stores a computer software product. The computer software product includes several instructions for enabling a computer device to execute the fault location method based on preset circle detection in an optical network.

[0037] The above technical solution of the present invention has the following advantages compared with the prior art:

[0038] The fault location method and system based on preset ring detection in the optical network described in the present invention establish a monitoring path in advance before information transmission in the optical transmission network, and locate the fault in time when a fault may occur, thereby minimizing the impact of the fault on the network; the advantages of the pre-detection ring fault location method are combined with the current optical transmission network fault location requirements, and a fault location method solution algorithm specifically designed to cope with the current high transmission and reception rates is designed, which solves the contradiction between the monitoring cost and the monitoring effect in the optical transmission network fault location, and ensures the stable operation of the optical transmission network. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to make the content of the present invention more clearly understood, the present invention is further described in detail below according to specific embodiments of the present invention in conjunction with the accompanying drawings, wherein

[0040] Figure 1 It is a schematic diagram of fault location using a pre-detection loop;

[0041] Figure 2 It is a flow chart for implementing a fault location method based on preset circle detection in an optical network provided in an embodiment of the present invention;

[0042] Figure 3 is a flow chart of a method for obtaining a cycle path provided in an embodiment of the present invention;

[0043] Figure 4 It is a topological diagram of an optical transmission network with 6 optical switching nodes and 12 links provided in an embodiment of the present invention;

[0044] Figure 5 is based on Figure 4 An optical transmission network topology diagram is provided, and a monitoring loop schematic diagram is generated using the fault location method of the present invention. DETAILED DESCRIPTION

[0045] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.

[0046] Embodiment 1

[0047] First, we introduce the main ideas of fault location in the pre-detection loop. Figure 1 In the simplified topology diagram, there are six optical switching nodes (V 0 、V 1 、V 2 、V 3 、V 4 、V 5 ) and eight fiber links (e 1 、e 2 、e 3 、e 4 、e 5 、e 6 、e 7 、e 8 ) form three monitoring loops: C 1 , C 2 and C 3 The monitoring modules are located at V 1 、V 0 and V 3When a fault occurs, the location of the fault can be determined based on the monitoring traffic status of the three monitoring modules. For example, after sending monitoring traffic through each monitoring loop, if C 1 Can successfully receive traffic, and C 2 and C 3 Unable to receive, it can be inferred that link e 7 There is a problem, then the link e 7 Perform further troubleshooting.

[0048] In order to solve the problems of limited detection effect, high monitoring cost and overly complex fault location method generation in the existing fault location methods based on pre-detection rings, the present invention provides a fault location method based on preset ring detection in an optical network, which realizes an optimized fault location method with the goal of minimum monitoring cost and higher detection effect in the optical transmission network.

[0049] Reference Figure 2 As shown, the fault location method includes the following steps:

[0050] S1: constructing an adjacency matrix based on a topological graph of an optical transmission network, wherein each element of the adjacency matrix represents a connection relationship between any two optical switching nodes in the optical transmission network;

[0051] S2: Initialize a two-dimensional array, copy the elements in the adjacency matrix into the two-dimensional array one by one, find multiple loop paths based on the two-dimensional data, sort all loop paths and remove duplicate paths, and use the deduplicated loop paths as fault monitoring loops;

[0052] S3: locating a fault in the optical transmission network based on the fault monitoring loop.

[0053] Among them, in step S2, if Figure 3 As shown, the method for obtaining the cycle path includes the following steps:

[0054] S21: According to the two-dimensional data, select a node as the starting point node V i Initialize the visited node list, parent node list, current path list and loop path list. The visited node list is used to mark whether the nodes in the graph have been visited. The parent node list is used to record the parent node information of each node. The current path list is used to store the information from the starting node V i The current traversal path started, the loop path list is used to store the found loop paths;

[0055] S22: Set the starting node V i Mark as visited and add it to the current path list, traversing the starting node V in ascending order of node numberi Adjacent nodes V j ;

[0056] S23: For each neighbor node V j , determine the neighbor node V j Marked as visited:

[0057] If the neighbor node V j Marked as visited, and proceeding to step S230;

[0058] If the neighbor node V j If it is not marked as visited, the neighbor node is marked as visited, and the neighbor node is passed in as a new starting node, the current path list is updated, and the process returns to S22;

[0059] S24: repeat steps S22 to S23 until all nodes have been visited and multiple cycle paths are obtained;

[0060] Wherein, the step S230 includes: determining the neighbor node V marked as visited j Is it the starting node V? i The parent node of:

[0061] If the neighbor node V is marked as visited j is the starting node V i The parent node of , select a new starting node V from the unvisited nodes i , return to S22;

[0062] If the neighbor node V is marked as visited j Not the starting node V i The parent node of the neighbor node is V. i The current path portion is added as a cyclic path to the cyclic path list.

[0063] In this embodiment, the method for constructing the adjacency matrix includes:

[0064] Constructing a network topology diagram of an optical transmission network, the network topology diagram comprising nodes, transmission paths between nodes, and path lengths, the nodes representing optical switching nodes in the optical transmission network, the transmission paths and path lengths representing links and link lengths in the optical transmission network, respectively;

[0065] The size of the adjacency matrix is ​​determined according to the number of transmission paths and the number of nodes in the network topology graph, and each element in the adjacency matrix represents a connection relationship between any two nodes in the network topology graph.

[0066] Furthermore, the method for constructing the adjacency matrix further includes: determining the number of rows and columns of the adjacency matrix according to the number of nodes in the network topology diagram, and the number of rows and columns of the adjacency matrix are equal to the number of nodes. Furthermore, the number of non-zero elements in the adjacency matrix is ​​equal to the number of transmission paths.

[0067] In step S2, a two-dimensional array is initialized, and the elements in the adjacency matrix are copied one by one into the two-dimensional array, wherein each element in the two-dimensional array contains but is not limited to the connection relationship, distance and weight information between nodes.

[0068] In step S3, the method for locating faults in an optical transmission network based on the fault monitoring loop includes: setting a monitoring module on the fault monitoring loop, sending monitoring traffic to each fault monitoring loop, obtaining the sending or receiving status of the monitoring traffic through the monitoring module, and determining the location of the fault.

[0069] by Figure 4 Taking the network topology diagram of an optical transmission network shown in FIG. 1 as an example, the network topology diagram is a network structure with 6 optical switching nodes and 12 links. Each optical transmission node is represented by a circle and numbered 0, 1, 2, 3, 4, and 5. The nodes are connected by optical fiber links, and each optical fiber link is bidirectional.

[0070] To make the calculation process more intuitive and concise, the distance between all directly connected nodes is set to 1. For those node pairs that are not directly connected, 10000 is used in the adjacency matrix M to indicate that there is no direct link between the nodes. This processing method not only simplifies the calculation process, but also makes the entire network structure easier to analyze and process mathematically. The adjacency matrix M is expressed as:

[0071]

[0072] Such an adjacency matrix is ​​fed into the algorithm, which analyzes it according to the previously defined steps. These steps include identifying all possible node paths, checking if these paths have loops or repetitions, and sorting them appropriately. This process is intended to discover possible failure points in the network, thereby providing decision support for network maintenance and optimization.

[0073] After algorithm processing, a detailed fault location method is finally obtained. Figure 5 Each ellipse in the figure represents a monitoring loop that needs to be established in an actual network. It can be seen that, as the name of the algorithm, the minimum loop cover algorithm, the generated monitoring loops are all based on the minimum circle in the network topology graph.

[0074] Through observation, the method of the present invention shows good performance in terms of cost overhead, resource utilization and loop length, especially in topologies with fewer optical switching nodes. However, in topologies with dispersed nodes and poor interconnectivity, the method of the present invention may lead to higher costs and resource waste. This shows that the applicability of the method of the present invention in different network structures is different, and it needs to be adjusted and optimized according to the specific situation to ensure the efficiency and economy of network monitoring.

[0075] The monitoring link set obtained by each pre-detection cycle coverage algorithm is denoted as C, and each pre-detection cycle obtained by the fault location method is denoted as C i The performance of the fault location method provided by the present invention can be evaluated by the following evaluation indicators:

[0076] The first evaluation indicator is the average length AL of the monitoring loop in the fault location method:

[0077]

[0078] Where M represents the number of monitoring loops in the fault location method generated by the algorithm, L(C i ) represents the length of the ith monitoring loop in the fault location method. The average monitoring loop length of the fault location method is obtained by summing the lengths of each monitoring loop in the fault location method and dividing it by the number of monitoring loops. In actual scenarios, since the distances between optical switching nodes vary, a reasonable selection of a fault location method can greatly reduce the cost caused by the distance.

[0079] The second evaluation indicator is the average number of monitoring modules required for each optical switching node in the fault location method corresponding to the topology map:

[0080] cost = M / N(G)

[0081] Wherein, N(G) represents the number of optical switching nodes in the topology graph G, and M represents the number of monitoring rings in the fault location method generated by the algorithm. Generally speaking, the cost of the monitoring ring is determined by the monitoring site and the monitoring path, among which the cost of the monitoring site accounts for the vast majority. Therefore, the cost of the fault location method can be determined by calculating the average number of monitoring sites required by the optical switching nodes in the topology graph of the fault location method.

[0082] The third evaluation indicator is the average coverage number AC of each link in the topology generated by the algorithm, which reflects the number of times the link in the topology map is selected as a monitoring loop. It can reflect the monitoring effect and monitoring cost of the fault location method to a certain extent. It should be noted that if this indicator is too small, it may lead to a significant deterioration in monitoring quality. Its calculation formula is:

[0083] AC=L(C) / E(G)

[0084] Among them, L(C) represents the total length of all monitoring loops in the monitoring fault location method, and E(G) represents the number of links in the topology map used. Ideally, each link is only passed once, because as long as the link is repeatedly selected by the monitoring loop, it means a waste of resources and wavelengths. In the actual fault location method, due to the interconnection and layout of the topology map, it is inevitable that a link is selected multiple times, so how to balance this parameter becomes a problem worth discussing.

[0085] By introducing relevant evaluation parameters such as monitoring cost and monitoring resource utilization, the feasibility of the fault location method described in the present invention is discussed by comparing the effects and costs of the fault location method obtained by the monitoring algorithm with those of the traditional fault location method, and each fault location method obtained must meet certain monitoring effect standards.

[0086] Embodiment 2

[0087] Based on the same inventive concept as that of the first embodiment, the present invention further provides a fault location system based on preset circle detection in an optical network, the system is used to implement the fault location method based on preset circle detection in an optical network, specifically comprising:

[0088] An adjacency matrix construction module, used to construct an adjacency matrix based on an optical transmission network, wherein each element of the adjacency matrix represents a connection relationship between any two optical switching nodes in the optical transmission network;

[0089] A fault monitoring loop acquisition module initializes a two-dimensional array, copies the elements in the adjacency matrix into the two-dimensional array one by one, finds multiple loop paths based on the two-dimensional data, sorts all loop paths and removes duplicate paths, and uses the deduplicated loop paths as fault monitoring loops;

[0090] The fault locating module is used to locate the fault of the optical transmission network based on the fault monitoring ring.

[0091] Specifically, in an embodiment of the present invention, the fault monitoring loop acquisition module includes a loop path calculation module; wherein the loop path calculation module is configured to:

[0092] According to the two-dimensional data, select a node V i As the starting node, initialize the visited node list, parent node list, current path list and loop path list. The visited node list is used to mark whether the nodes in the graph have been visited. The parent node list is used to record the parent node information of each node. The current path list is used to store the information from the starting node V i The current traversal path started, the loop path list is used to store the found loop paths;

[0093] Set the starting node V i Mark as visited and add it to the current path list, traversing the starting node V i Adjacent nodes V j , for each neighbor node V j , if the node has been visited and is not the starting node V i The parent node of the neighbor node is V. i The current path part is added as a cycle path to the cycle path list if the neighbor node V j If it has not been visited, the neighbor node is marked as visited, and the neighbor node is passed in as a new starting node to update the current path list;

[0094] Traverse the nodes adjacent to the new starting node until all nodes have been visited, and multiple cycle paths are obtained.

[0095] Embodiment 3

[0096] The present invention also provides a computer storage medium, which stores a computer software product. The computer software product includes several instructions for enabling a computer device to execute the fault location method based on preset circle detection in an optical network described in Example 1.

[0097] Obviously, the above embodiments are merely examples for clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from these are still within the protection scope of the invention.

Claims

1. A fault location method based on preset circle detection in an optical network, characterized in that: include: S1: constructing an adjacency matrix based on a topological graph of an optical transmission network, wherein each element of the adjacency matrix represents a connection relationship between any two optical switching nodes in the optical transmission network; S2: Initialize a two-dimensional array, copy the elements in the adjacency matrix into the two-dimensional array one by one, find multiple loop paths based on the two-dimensional data, sort all loop paths and remove duplicate paths, and use the deduplicated loop paths as fault monitoring loops; S3: locating a fault in the optical transmission network based on the fault monitoring loop.

2. The method for locating a fault in an optical network based on preset circle detection according to claim 1, characterized in that: In S2, the method for obtaining the cycle path includes: S21: According to the two-dimensional data, select a node as the starting point node V i Initialize the visited node list, parent node list, current path list and loop path list. The visited node list is used to mark whether the nodes in the graph have been visited. The parent node list is used to record the parent node information of each node. The current path list is used to store the information from the starting node V i The current traversal path started, the loop path list is used to store the found loop paths; S22: Set the starting node V i Mark as visited and add it to the current path list, traversing the starting node V i Adjacent nodes V j ; S23: For each neighbor node V j , determine the neighbor node V j Marked as visited: If the neighbor node V j Marked as visited, and proceeding to step S230; If the neighbor node V j If it is not marked as visited, the neighbor node is marked as visited, and the neighbor node is passed in as a new starting node, the current path list is updated, and the process returns to S22; S24: repeat steps S22 to S23 until all nodes have been visited and multiple cycle paths are obtained; Wherein, the step S230 includes: determining the neighbor node V marked as visited j Is it the starting node V? i The parent node of: If so, select a new starting node V from the unvisited nodes i , return to S22; Otherwise, move the neighbor node to the starting node V i The current path portion is added as a cyclic path to the cyclic path list.

3. The method for locating a fault in an optical network based on preset circle detection according to claim 1, characterized in that: The method for constructing the adjacency matrix includes: Constructing a network topology diagram of an optical transmission network, the network topology diagram comprising nodes, transmission paths between nodes, and path lengths, the nodes representing optical switching nodes in the optical transmission network, and the transmission paths and path lengths representing links and link lengths in the optical transmission network, respectively; The size of the adjacency matrix is ​​determined according to the number of transmission paths and the number of nodes in the network topology graph, and each element in the adjacency matrix represents a connection relationship between any two nodes in the network topology graph.

4. The method for locating a fault in an optical network based on preset circle detection according to claim 3, characterized in that: The method for constructing the adjacency matrix also includes: determining the number of rows and columns of the adjacency matrix according to the number of nodes in the network topology graph, and the number of rows and columns of the adjacency matrix are equal to the number of nodes.

5. The method for locating a fault in an optical network based on preset circle detection according to claim 3, characterized in that: The number of non-zero elements in the adjacency matrix is ​​equal to the number of transmission paths.

6. The method for locating a fault in an optical network based on preset circle detection according to claim 1, characterized in that: Each element in the two-dimensional array contains the connection relationship, distance and weight information between nodes.

7. The method for locating a fault in an optical network based on preset circle detection according to claim 1, characterized in that: In S3, the method for locating faults in an optical transmission network based on the fault monitoring loop includes: setting a monitoring module on the fault monitoring loop, sending monitoring traffic to each fault monitoring loop, obtaining the sending or receiving status of the monitoring traffic through the monitoring module, and determining the location of the fault.

8. A fault location system based on preset circle detection in an optical network, characterized in that: The system is used to implement the fault location method based on preset circle detection in an optical network according to any one of claims 1 to 7, specifically comprising: An adjacency matrix construction module, used to construct an adjacency matrix based on an optical transmission network, wherein each element of the adjacency matrix represents a connection relationship between any two optical switching nodes in the optical transmission network; A fault monitoring loop acquisition module initializes a two-dimensional array, copies the elements in the adjacency matrix into the two-dimensional array one by one, finds multiple loop paths based on the two-dimensional data, sorts all loop paths and removes duplicate paths, and uses the deduplicated loop paths as fault monitoring loops; The fault locating module is used to locate the fault of the optical transmission network based on the fault monitoring loop.

9. The fault location system based on preset circle detection in an optical network according to claim 8, characterized in that: The fault monitoring loop acquisition module includes a loop path calculation module; wherein the loop path calculation module is configured to: According to the two-dimensional data, any node is selected as the starting node V i Initialize the visited node list, parent node list, current path list and loop path list. The visited node list is used to mark whether the nodes in the graph have been visited. The parent node list is used to record the parent node information of each node. The current path list is used to store the information from the starting node V i The current traversal path started, the loop path list is used to store the found loop paths; Set the starting node V i Mark as visited and add it to the current path list, traversing the starting node V i Adjacent nodes V j , for each neighbor node V j , if the node has been visited and is not the starting node V i The parent node of the neighbor node is V. i The current path part is added as a cycle path to the cycle path list if the neighbor node V j If it has not been visited, the neighbor node is marked as visited, and the neighbor node is passed in as a new starting node to update the current path list; Traverse the nodes adjacent to the new starting node until all nodes have been visited, and multiple cycle paths are obtained.

10. A computer storage medium, characterized in that: The computer storage medium stores a computer software product, and the computer software product includes a number of instructions for enabling a computer device to execute the fault location method based on preset circle detection in an optical network as claimed in any one of claims 1 to 7.