Method, device, equipment and storage medium for avoiding the same route protection path finding

By generating an avoidance policy condition table and sorting the paths, the inconvenience and error of manual operation under complex engineering business topologies in the existing technology are solved, the best protection path is quickly found, and the risk of the same primary and backup routes is preferentially eliminated.

CN119697092BActive Publication Date: 2025-09-12FIBERHOME TELECOMMUNICATION TECHNOLOGIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411851561.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2025-09-12
Estimated Expiration
2044-12-16

AI Technical Summary

Technical Problem

In the prior art, the complex topology of engineering services makes manual operation inconvenient and error-prone, and it is impossible to find the best protection path, resulting in protection path failure.

Method used

By generating an avoidance policy condition table, based on the primary-backup separation policy and avoidance type (such as avoiding the same single disk, same network element, same fiber connection, and same port), it is determined whether the target node of the path to be found is the destination node, and the paths that meet the conditions are stored as alternative paths. Finally, the alternative paths are sorted according to the policy condition table to find the optimal protection path.

Benefits of technology

It solves the problems of inconvenience and error in manual operation under complex topology of engineering business, quickly finds the best protection path with different routes for primary and backup, and prioritizes eliminating the risk of the same route for primary and backup.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119697092B_ABST
    Figure CN119697092B_ABST
Patent Text Reader

Abstract

A protection path finding method, apparatus, device and computer-readable storage medium for avoiding co-routing, comprising: generating an avoidance strategy condition table based on an acquired primary-backup separation strategy; judging whether a target node of a first path to be found in a preset set of paths to be found is a destination node; if it is determined that the target node of the first path to be found is the destination node, storing the first path to be found in a set of alternative paths as an alternative path; and when it is determined that the preset set of paths to be found is empty, sorting multiple alternative paths in the set of alternative paths according to the avoidance strategy condition table to find an optimal protection path, thereby solving the technical problems in related technologies of complex engineering business topology, inconvenient and error-prone manual operation, and inability to find an optimal protection path, reducing human interference and quickly finding an optimal path with different primary and backup routes, thereby preferentially eliminating the co-routing of primary and backup routes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication network technology, and in particular to a protection path finding method, apparatus, device and computer-readable storage medium for avoiding co-routing. Background Art

[0002] With the rapid development of telecommunications services, the scale of transmission networks continues to expand, and network topologies are becoming increasingly complex. This creates special requirements for the protection path within the primary and backup protection paths. These paths must avoid the same routing as the working path, such as passing through the same disk, network element, optical cable, or fiber. If a shared routing segment is interrupted, both the primary and backup paths will cease to function properly, resulting in protection failure.

[0003] like Figure 2 In the diagram of a single-chain deployment using the same routing, you cannot select "Avoid the same port" or "Avoid the same NE" when configuring a tunnel with protection. To create a tunnel with protection from NE 1 to NE 4, if no policy is selected, the working path is 1-2-3-4, and the primary and backup protection paths are 1-2-3-4. Because the last segment is a single chain, the working and protection paths share the same fiber.

[0004] If "Separate active and standby paths" is selected, the protection path will try to avoid links between NE 1 and NE 2 that may share the same optical cable. The protection path is shown in orange and will follow the shortest path principle, passing through NE 2 and sharing the same NE as the working path.

[0005] For users, the ideal protection path is 1-5-6-7-8-3-4. To achieve this, it is necessary to add a constraint to the protection path to avoid "network element 2". For complex engineering business topologies, manual operation is inconvenient and prone to errors, and it is impossible to find an optimal path.

[0006] Therefore, a protection path finding technology that avoids the same route is urgently needed to meet the increasingly urgent needs of existing network projects. Summary of the Invention

[0007] The present application provides a protection path finding method, device, equipment and computer-readable storage medium for avoiding the same route, which can solve the technical problems existing in the prior art such as complex topology of engineering business, inconvenient manual operation, easy errors, and inability to find an optimal protection path.

[0008] In a first aspect, an embodiment of the present application provides a method for finding a protection path to avoid the same route, characterized in that the method for finding a protection path to avoid the same route includes:

[0009] Generate an avoidance strategy condition table based on the acquired active / standby separation strategy, wherein the active / standby separation strategy is a strategy for avoiding the same route active / standby separation strategy and includes avoidance types, wherein the avoidance types include avoiding the same single disk, avoiding the same network element, avoiding the same fiber connection, and avoiding the same port. The avoidance strategy condition table includes the avoidance type, the number of avoidance types, and the priority level of the avoidance type;

[0010] Determine whether the target node of the first path to be found in the preset set of paths to be found is the destination node;

[0011] If it is determined that the target node of the first to-be-searched path is the destination node, storing the first to-be-searched path in the candidate path set as an alternative path;

[0012] When it is determined that the preset path set to be found is empty, multiple candidate paths in the candidate path set are sorted according to the avoidance strategy condition table to find an optimal protection path.

[0013] In combination with the first aspect, in one embodiment, sorting the multiple alternative paths in the alternative path set according to the avoidance strategy condition table to find the optimal protection path includes:

[0014] sorting the plurality of alternative paths according to a first priority of the avoidance type;

[0015] Determine whether the first sorted alternative path is unique;

[0016] If it is determined that the first-ranked candidate path is unique, the first-ranked candidate path is set as the optimal protection path.

[0017] In conjunction with the first aspect, in one embodiment, after determining whether the first sorted candidate path is unique, the method further includes:

[0018] If it is determined that the candidate paths in the first order are not unique, obtaining the number of times the candidate paths in the first order have the same route;

[0019] Determining whether the candidate paths in the first sorting have the same number of same routes;

[0020] If the number of times the candidate paths in the first order have the same route is different, the candidate path in the first order with the least number of times the candidate paths have the same route is taken as the optimal protection path.

[0021] In conjunction with the first aspect, in one embodiment, after determining whether the candidate paths in the first order have the same number of same routes, the method further includes:

[0022] If the number of same routes of the candidate paths in the first order is the same, obtaining the cost value of the candidate paths in the first order;

[0023] Determine whether the cost values ​​of the candidate paths in the first sort are the same;

[0024] If it is determined that the cost values ​​of the candidate paths in the first order are different, the candidate path in the first order with the smallest cost value is obtained as the optimal protection path.

[0025] In combination with the first aspect, in one embodiment, after determining whether the cost values ​​of the candidate paths in the first order are the same, the method further includes:

[0026] If the cost values ​​of the candidate paths in the first order are the same, sorting the candidate paths in the first order according to the second priority of the avoidance type;

[0027] A target candidate path is determined from the sorted candidate paths in the first sort, and the target candidate path is used as the optimal protection path.

[0028] In combination with the first aspect, in one embodiment, after determining whether the cost values ​​of the candidate paths in the first order are the same, the method further includes:

[0029] If the cost values ​​of the candidate paths in the first order are the same, obtaining the weighted cost values ​​of the candidate paths in the first order;

[0030] According to the weighted cost values ​​of the candidate paths in the first sorting, the candidate path with the smallest weighted cost value is determined as the optimal protection path.

[0031] In conjunction with the first aspect, in one embodiment, after determining whether the target node of the first path to be found in the preset set of paths to be found is the destination node, the method further includes:

[0032] If it is determined that the target node of the first path to be found is not the destination node, searching for the next node of the target node;

[0033] Determining whether the next node is a node in the first path to be found;

[0034] If it is determined that the next node is not a node in the first path to be found, then using the next node as the node after the target node in the first path to be found, generating a new path to be found, and determining whether the target node in the new path to be found is the destination node;

[0035] If it is determined that the target node of the new path to be found is the destination node, the new path to be found is stored in the candidate path set as an alternative path.

[0036] When it is determined that the preset path set to be found is empty, multiple candidate paths in the candidate path set are sorted according to the avoidance strategy condition table to find an optimal protection path.

[0037] In a second aspect, an embodiment of the present application provides a protection path finding device for avoiding the same route, the protection path finding device for avoiding the same route comprising:

[0038] a generation module, configured to generate an avoidance strategy condition table based on the acquired active / standby separation strategy, wherein the active / standby separation strategy is a strategy for avoiding the same route active / standby separation strategy and includes avoidance types, wherein the avoidance types include avoiding the same single disk, avoiding the same network element, avoiding the same fiber connection, and avoiding the same port; and the avoidance strategy condition table includes the avoidance type, the number of avoidance types, and the priority level of the avoidance type;

[0039] A judgment module, configured to judge whether a target node of a first path to be found in the preset set of paths to be found is a destination node;

[0040] a storage module configured to store the first to-be-searched path in a set of candidate paths as an alternative path if it is determined that the target node of the first to-be-searched path is the destination node;

[0041] The sorting and routing module is used to sort the multiple candidate paths in the candidate path set according to the avoidance strategy condition table and find the optimal protection path.

[0042] In the third aspect, an embodiment of the present application provides a protection path routing device for avoiding the same route, wherein the protection path routing device for avoiding the same route includes a processor, a memory, and a protection path routing program for avoiding the same route stored on the memory and executable by the processor, wherein when the protection path routing program for avoiding the same route is executed by the processor, the steps of the protection path routing method for avoiding the same route as described above are implemented.

[0043] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a protection path finding program for avoiding the same route is stored. When the protection path finding program for avoiding the same route is executed by a processor, the steps of the protection path finding method for avoiding the same route as described above are implemented.

[0044] The beneficial effects of the technical solutions provided in the embodiments of the present application include:

[0045] By generating an avoidance strategy condition table based on the acquired master-slave separation strategy, wherein the master-slave separation strategy is a master-slave separation strategy for avoiding the same route and includes avoidance types, the avoidance types include avoiding the same single disk, avoiding the same network element, avoiding the same fiber connection and avoiding the same port, and the avoidance strategy condition table includes the avoidance type, the number of avoidance types and the priority level of the avoidance type; judging whether the target node of the first path to be found in the preset set of paths to be found is the destination node; if it is determined that the target node of the first path to be found is the destination node, the first path to be found is stored in the alternative path set as an alternative path; when it is determined that the preset set of paths to be found is empty, sorting the multiple alternative paths in the alternative path set according to the avoidance strategy condition table, and finding the optimal protection path, solves the technical problems in the related technology that the engineering business has a complex topology, manual operation is inconvenient and prone to errors, and an optimal protection path cannot be found, reduces human interference and quickly finds an optimal path with different master and backup routes, thereby preferentially eliminating the master and backup having the same route. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A single-chain scenario diagram for deploying the same routing path in the prior art of this application;

[0047] Figure 2 A flowchart of a first embodiment of a protection path finding method for avoiding the same route in this application;

[0048] Figure 3 A flowchart of a second embodiment of the protection path finding method for avoiding the same route in this application;

[0049] Figure 4 A schematic diagram of the functional modules of an embodiment of a protection path finding device for avoiding the same route as the present application;

[0050] Figure 5 This is a schematic diagram of the hardware structure of the protection path finding device for avoiding the same route involved in the embodiment of the present application. DETAILED DESCRIPTION

[0051] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only 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 this application.

[0052] First, some technical terms in this application are explained to facilitate those skilled in the art to understand this application.

[0053] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0054] In a first aspect, an embodiment of the present application provides a protection path finding method for avoiding the same route.

[0055] In one embodiment, referring to Figure 2 , Figure 2 This is a flow chart of the first embodiment of the protection path finding method for avoiding the same route in this application. Figure 2 As shown in Figure 2, the protection path finding methods to avoid the same route include:

[0056] Step S10: Generate an avoidance strategy condition table based on the acquired active / standby separation strategy, wherein the active / standby separation strategy is a strategy for avoiding the same route and includes avoidance types, including avoiding the same single disk, avoiding the same network element, avoiding the same fiber connection, and avoiding the same port. The avoidance strategy condition table includes the avoidance type, the number of avoidance types, and the priority level of the avoidance type.

[0057] For example, a user-defined active / standby separation strategy is obtained. The active / standby separation strategy is a strategy for avoiding the same route active / standby separation strategy. The strategy for avoiding the same route active / standby separation strategy includes avoidance types, which include avoiding the same single disk, avoiding the same network element, avoiding the same fiber connection, and avoiding the same port. By selecting different avoidance types, an avoidance strategy condition table is generated. For example, if you select avoid the same single disk 2 and the number to be avoided is 4, the priority is 3; if you select avoid the same single disk, avoid the same network element, avoid the same fiber connection, and avoid the same port, and the number to be avoided is 0, the priority is 0, and 0 is the highest priority. The avoidance strategy condition table is as follows:

[0058] Avoid Types Number of types Priority Same single disk, same network element, same fiber and same port 0 0 Tonglian Fiber 1 1 Same network element 1 2 Same single disk 1 3 Same port 1 4

[0059] Among them, different avoidance types are accumulated according to the avoidance quantity to obtain the corresponding priority. For example, the avoidance types include avoiding the same fiber and avoiding the same network element. The number of avoiding the same fiber is 1 and the number of avoiding the same network element is 2. Then the priority of avoiding the same fiber and avoiding the same network element is 5.

[0060] Step S20: determining whether the target node of the first path to be found in the preset set of paths to be found is the destination node;

[0061] Exemplarily, a preset set of paths to be found is obtained, where the preset set of paths to be found includes multiple different paths to be found, for example, a first path to be found, a second path to be found, a third path to be found, and a fourth path to be found. The preset set of paths to be found is to obtain a working path and a network topology for the service, determine the first network element in the working path, and based on the network topology and the first network element, obtain all next-hop network elements of the first network element in the network topology. The generated path serves as the path to be found in the preset set of paths to be found. The first path to be found in the preset set of paths to be found is obtained, and it is determined whether the second node in the first path to be found is the destination node.

[0062] Step S30: If it is determined that the target node of the first path to be found is the destination node, the first path to be found is stored in a candidate path set as a candidate path;

[0063] Exemplarily, if it is determined that the target node of the first path to be found is the destination node, the first path to be found is stored in the candidate path set as a candidate path. The candidate paths include not only the first path to be found, but also the paths in the preset path set whose target nodes are not the destination nodes.

[0064] Step S40: When it is determined that the preset path set to be searched is empty, multiple candidate paths in the candidate path set are sorted according to the avoidance strategy condition table to search for an optimal protection path.

[0065] Exemplarily, it is determined whether the preset path set to be found is empty. If it is determined that the preset path set to be found is empty, multiple candidate paths in the candidate path set are sorted according to the avoidance strategy condition table to find the optimal protection path.

[0066] The plurality of alternative paths are sorted according to the first priority of the avoidance type; whether the first-ranked alternative path is unique is determined; if the first-ranked alternative path is determined to be unique, the first-ranked alternative path is designated as the optimal protection path. If the first-ranked alternative path is determined to be not unique, the number of times the first-ranked alternative path has the same route is obtained; and whether the number of times the first-ranked alternative path has the same route is determined.

[0067] If the number of times the first-ranked alternative paths have the same route is different, the first-ranked alternative path with the least number of times is selected as the optimal protection path. If the number of times the first-ranked alternative paths have the same route is the same, the cost value of each first-ranked alternative path is obtained; then it is determined whether the cost values ​​of each first-ranked alternative path are the same; if it is determined that the cost values ​​of each first-ranked alternative path are different, the first-ranked alternative path with the smallest cost value is selected as the optimal protection path.

[0068] If the cost values ​​of the first-ranked candidate paths are the same, the first-ranked candidate paths are ranked according to the second priority of the avoidance type; a target candidate path is determined from the ranked first-ranked candidate paths, and the target candidate path is used as the optimal protection path.

[0069] If the cost values ​​of the first-ranked candidate paths are the same, the weighted cost values ​​of the first-ranked candidate paths are obtained; and according to the weighted cost values ​​of the first-ranked candidate paths, the candidate path with the smallest weighted cost value is determined as the optimal protection path.

[0070] In this embodiment, an avoidance strategy condition table is generated based on the acquired primary-backup separation strategy, wherein the primary-backup separation strategy is a primary-backup separation strategy for avoiding the same route and includes avoidance types, the avoidance types include avoiding the same single disk, avoiding the same network element, avoiding the same fiber connection and avoiding the same port, and the avoidance strategy condition table includes the avoidance type, the number of avoidance types and the priority level of the avoidance type; it is judged whether the target node of the first path to be found in the preset path to be found set is the destination node; if it is determined that the target node of the first path to be found is the destination node, the first path to be found is stored in the alternative path set as an alternative path; when it is determined that the preset path to be found set is empty, the multiple alternative paths in the alternative path set are sorted according to the avoidance strategy condition table to find the optimal protection path, which solves the technical problems in the related technology that the engineering business has a complex topology, manual operation is inconvenient and prone to errors, and an optimal protection path cannot be found, reduces human interference and quickly finds an optimal path with different primary and backup routes, thereby preferentially eliminating the primary and backup same routes.

[0071] In one embodiment, referring to Figure 3 , Figure 3 This is a flow chart of the second embodiment of the protection path finding method for avoiding the same route in this application. Figure 3 As shown in Figure 2, the protection path finding methods to avoid the same route include:

[0072] Step S11: Generate an avoidance strategy condition table based on the acquired active / standby separation strategy, wherein the active / standby separation strategy is a strategy for avoiding the same route and includes avoidance types, including avoiding the same single disk, avoiding the same network element, avoiding the same fiber connection, and avoiding the same port. The avoidance strategy condition table includes the avoidance type, the number of avoidance types, and the priority level of the avoidance type.

[0073] For example, a user-defined active / standby separation strategy is obtained. The active / standby separation strategy is a strategy for avoiding the same route active / standby separation strategy. The strategy for avoiding the same route active / standby separation strategy includes avoidance types, which include avoiding the same single disk, avoiding the same network element, avoiding the same fiber connection, and avoiding the same port. By selecting different avoidance types, an avoidance strategy condition table is generated. For example, if you select avoid the same single disk 2 and the number to be avoided is 4, the priority is 3; if you select avoid the same single disk, avoid the same network element, avoid the same fiber connection, and avoid the same port, and the number to be avoided is 0, the priority is 0, and 0 is the highest priority. The avoidance strategy condition table is as follows:

[0074] Avoid Types Number of types Priority Same single disk, same network element, same fiber and same port 0 0 Tonglian Fiber 1 1 Same network element 1 2 Same single disk 1 3 Same port 1 4

[0075] Among them, different avoidance types are accumulated according to the avoidance quantity to obtain the corresponding priority. For example, the avoidance types include avoiding the same fiber and avoiding the same network element. The number of avoiding the same fiber is 1 and the number of avoiding the same network element is 2. Then the priority of avoiding the same fiber and avoiding the same network element is 5.

[0076] Step S12: determining whether the target node of the first path to be found in the preset set of paths to be found is the destination node;

[0077] Exemplarily, a preset set of paths to be found is obtained, where the preset set of paths to be found includes multiple different paths to be found, for example, a first path to be found, a second path to be found, a third path to be found, and a fourth path to be found. The preset set of paths to be found is to obtain a working path and a network topology for the service, determine the first network element in the working path, and based on the network topology and the first network element, obtain all next-hop network elements of the first network element in the network topology. The generated path serves as the path to be found in the preset set of paths to be found. The first path to be found in the preset set of paths to be found is obtained, and it is determined whether the second node in the first path to be found is the destination node.

[0078] Step S13: If it is determined that the target node of the first path to be found is not the destination node, then searching for the next node of the target node;

[0079] Exemplarily, if it is determined that the target node of the first path to be found is not the destination node, the next node of the target node is found, for example, all next-hop nodes are traversed and the next-hop node is used as the next node of the target node.

[0080] Step S14: Determine whether the next node is a node in the first path to be found;

[0081] Step S15: If it is determined that the next node is not a node in the first path to be found, the next node is used as the node after the target node in the first path to be found, and a new path to be found is generated to determine whether the target node in the new path to be found is the destination node.

[0082] Exemplarily, if it is determined that the next node is not a node in the first path to be found, the next node is used as the node after the target node in the first path to be found, and a new path to be found is generated. Based on the new path to be found, mapMaxCount<same route type, number of times> and mapMaxCost<same route type, sumcost value> for the current node are calculated and recorded. The new path to be found is placed in the set of preset paths to be found to determine whether the target node in the new path to be found is the destination node.

[0083] Step S16: If it is determined that the target node of the new path to be found is the destination node, the new path to be found is stored in the candidate path set as a candidate path;

[0084] Exemplarily, if it is determined that the target node of the new path to be found is the destination node, the new path to be found is stored in the candidate path set as a candidate path. The candidate paths include not only the first path to be found, but also the paths in the preset path set whose target nodes are not the destination node.

[0085] Step S17: When it is determined that the preset path set to be searched is empty, multiple candidate paths in the candidate path set are sorted according to the avoidance strategy condition table to search for an optimal protection path.

[0086] It is determined whether the preset path set to be found is empty. If it is determined that the preset path set to be found is empty, multiple alternative paths in the alternative path set are sorted according to the avoidance strategy condition table to find the optimal protection path.

[0087] Sort multiple alternative paths according to the first priority of the avoidance type; determine whether the first-ranked alternative path is unique; if it is determined that the first-ranked alternative path is unique, then set the first-ranked alternative path as the optimal protection path. If it is determined that the first-ranked alternative path is not unique, obtain the number of times the first-ranked alternative paths have the same route; determine whether the number of times the first-ranked alternative paths have the same route is the same;

[0088] If the number of times the first-ranked alternative paths have the same route is different, the first-ranked alternative path with the least number of times is selected as the optimal protection path. If the number of times the first-ranked alternative paths have the same route is the same, the cost value of each first-ranked alternative path is obtained; then it is determined whether the cost values ​​of each first-ranked alternative path are the same; if it is determined that the cost values ​​of each first-ranked alternative path are different, the first-ranked alternative path with the smallest cost value is selected as the optimal protection path.

[0089] If the cost values ​​of the first-ranked candidate paths are the same, the first-ranked candidate paths are ranked according to the second priority of the avoidance type; a target candidate path is determined from the ranked first-ranked candidate paths, and the target candidate path is used as the optimal protection path.

[0090] If the cost values ​​of the first-ranked candidate paths are the same, the weighted cost values ​​of the first-ranked candidate paths are obtained; and according to the weighted cost values ​​of the first-ranked candidate paths, the candidate path with the smallest weighted cost value is determined as the optimal protection path.

[0091] In this embodiment, if it is determined that the target node of the first path to be found is not the destination node, the next node of the target node is searched; it is determined whether the next node is a node in the first path to be found; if it is determined that the next node is not a node in the first path to be found, the next node is used as the node after the target node in the first path to be found, and a new path to be found is generated to determine whether the target node in the new path to be found is the destination node. New paths to be found are generated and sorted by path finding, avoiding the difficulties caused by the need to deploy constraints in advance, so that poor planning may result in finding more complex paths, making path finding more flexible, and further improving the probability of eliminating the same route for the primary and backup nodes.

[0092] In a second aspect, an embodiment of the present application further provides a protection path finding device for avoiding the same route.

[0093] In one embodiment, referring to Figure 4 , Figure 4 This is a functional module diagram of an embodiment of a protection path finding device for avoiding the same route in this application. Figure 4 As shown, the protection path finding device for avoiding the same route includes:

[0094] A generating module 10 is configured to generate an avoidance strategy condition table based on the acquired active / standby separation strategy, wherein the active / standby separation strategy is a strategy for avoiding the same route active / standby separation strategy and includes avoidance types, including avoiding the same single disk, avoiding the same network element, avoiding the same fiber connection, and avoiding the same port. The avoidance strategy condition table includes the avoidance type, the number of avoidance types, and the priority of the avoidance types.

[0095] A determination module 20 is configured to determine whether a target node of a first path to be found in a preset set of paths to be found is a destination node;

[0096] The storage module 30 is configured to store the first to-be-searched path in a set of candidate paths as a candidate path if it is determined that the target node of the first to-be-searched path is the destination node;

[0097] The sorting and routing module 40 is configured to sort the multiple candidate paths in the candidate path set according to the avoidance strategy condition table and to find an optimal protection path.

[0098] Furthermore, in one embodiment, the sorting and routing module 40 is configured to:

[0099] sorting the plurality of alternative paths according to a first priority of the avoidance type;

[0100] Determine whether the first sorted alternative path is unique;

[0101] If it is determined that the first-ranked candidate path is unique, the first-ranked candidate path is set as the optimal protection path.

[0102] Furthermore, in one embodiment, the protection path finding device for avoiding the same route further includes a new module for:

[0103] If it is determined that the candidate paths in the first order are not unique, obtaining the number of times the candidate paths in the first order have the same route;

[0104] Determining whether the candidate paths in the first sorting have the same number of same routes;

[0105] If the number of times the candidate paths in the first order have the same route is different, the candidate path in the first order with the least number of times the candidate paths have the same route is obtained as the optimal protection path.

[0106] Furthermore, in one embodiment, the protection path finding device for avoiding the same route further includes a new module for:

[0107] If the number of same routes of the candidate paths in the first order is the same, obtaining the cost value of the candidate paths in the first order;

[0108] Determine whether the cost values ​​of the candidate paths in the first sort are the same;

[0109] If it is determined that the cost values ​​of the candidate paths in the first order are different, the candidate path in the first order with the smallest cost value is obtained as the optimal protection path.

[0110] Furthermore, in one embodiment, the protection path finding device for avoiding the same route further includes a new module for:

[0111] If the cost values ​​of the candidate paths in the first order are the same, sorting the candidate paths in the first order according to the second priority of the avoidance type;

[0112] A target candidate path is determined from the sorted candidate paths in the first sort, and the target candidate path is used as the optimal protection path.

[0113] Furthermore, in one embodiment, the protection path finding device for avoiding the same route further includes a new module for:

[0114] If the cost values ​​of the candidate paths in the first order are the same, obtaining the weighted cost values ​​of the candidate paths in the first order;

[0115] According to the weighted cost values ​​of the candidate paths in the first sorting, the candidate path with the smallest weighted cost value is determined as the optimal protection path.

[0116] Furthermore, in one embodiment, the protection path finding device for avoiding the same route further includes a new module for:

[0117] If it is determined that the target node of the first path to be found is not the destination node, searching for the next node of the target node;

[0118] Determining whether the next node is a node in the first path to be found;

[0119] If it is determined that the next node is not a node in the first path to be found, then using the next node as the node after the target node in the first path to be found, generating a new path to be found, and determining whether the target node in the new path to be found is the destination node;

[0120] If it is determined that the target node of the new path to be found is the destination node, the new path to be found is stored in the candidate path set as an alternative path.

[0121] When it is determined that the preset path set to be found is empty, multiple candidate paths in the candidate path set are sorted according to the avoidance strategy condition table to find an optimal protection path.

[0122] Among them, the functional implementation of each module in the above-mentioned protection path routing device for avoiding the same route corresponds to the various steps in the above-mentioned protection path routing method embodiment for avoiding the same route, and their functions and implementation processes are no longer repeated here.

[0123] In a third aspect, an embodiment of the present application provides a protection path finding device for avoiding the same route. The protection path finding device for avoiding the same route can be a personal computer (PC), a laptop computer, a server, or other device with data processing capabilities.

[0124] Reference Figure 5 , Figure 5 Schematic diagram of the hardware structure of the protection path finding device for avoiding the same route involved in the embodiment of the present application. In the embodiment of the present application, the protection path finding device for avoiding the same route may include a processor, a memory, a communication interface, and a communication bus.

[0125] The communication bus may be of any type and is used to interconnect the processor, memory, and communication interface.

[0126] Communication interfaces include input / output (I / O) interfaces, physical interfaces, and logical interfaces, used to interconnect components within the co-routing protection path routing device, as well as interfaces used to interconnect the co-routing protection path routing device with other devices (such as other computing devices or user devices). Physical interfaces can be Ethernet, fiber, or ATM interfaces; user devices can be displays or keyboards.

[0127] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.

[0128] The processor may be a general-purpose processor, which may call a protection path finding program for avoiding the same route stored in a memory and execute the protection path finding method for avoiding the same route provided in the embodiments of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the protection path finding program for avoiding the same route is called may refer to the various embodiments of the protection path finding method for avoiding the same route of the present application, and will not be repeated here.

[0129] Those skilled in the art will understand that Figure 5The hardware structure shown in the figure does not constitute a limitation to the present application and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0130] In a fourth aspect, an embodiment of the present application also provides a computer-readable storage medium.

[0131] The computer-readable storage medium of the present application stores a protection path finding program for avoiding the same route, wherein when the protection path finding program for avoiding the same route is executed by a processor, the steps of the protection path finding method for avoiding the same route as described above are implemented.

[0132] Among them, the method implemented when the protection path routing program for avoiding the same route is executed can refer to the various embodiments of the protection path routing method for avoiding the same route in this application, and will not be repeated here.

[0133] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0134] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit the "first", "second" and "third" to different types.

[0135] In the description of the embodiments of this application, the words "exemplary," "for example," or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary," "for example," or "for example" in the embodiments of this application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary," "for example," or "for example" is intended to present the relevant concepts in a concrete manner.

[0136] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.

[0137] In some processes described in the embodiments of the present application, multiple operations or steps are included that appear in a specific order. However, it should be understood that these operations or steps may not be performed in the order in which they appear in the embodiments of the present application or may be performed in parallel. The sequence numbers of the operations are only used to distinguish between different operations, and the sequence numbers themselves do not represent any order of execution. In addition, these processes may include more or fewer operations, and these operations or steps may be performed in sequence or in parallel, and these operations or steps may be combined.

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

[0139] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A protection path finding method for avoiding the same route, characterized in that: The protection path finding method for avoiding the same route includes: Generate an avoidance strategy condition table based on the acquired active / standby separation strategy, wherein the active / standby separation strategy is a strategy for avoiding the same route active / standby separation strategy and includes avoidance types, wherein the avoidance types include avoiding the same single disk, avoiding the same network element, avoiding the same fiber connection, and avoiding the same port. The avoidance strategy condition table includes the avoidance type, the number of avoidance types, and the priority level of the avoidance type; Determine whether the target node of the first path to be found in the preset set of paths to be found is the destination node; If it is determined that the target node of the first to-be-searched path is the destination node, storing the first to-be-searched path in the candidate path set as an alternative path; When it is determined that the preset path set to be found is empty, sorting the multiple candidate paths according to the first priority of the avoidance type; Determine whether the first sorted alternative path is unique; If it is determined that the candidate paths in the first order are not unique, obtaining the number of times the candidate paths in the first order have the same route; Determining whether the candidate paths in the first sorting have the same number of same routes; If the number of times the candidate paths in the first order have the same route is different, the candidate path in the first order with the least number of times the candidate paths have the same route is taken as the optimal protection path.

2. The protection path finding method for avoiding the same route as claimed in claim 1, characterized in that: After determining whether the first sorted candidate path is unique, the method further includes: If it is determined that the first-ranked candidate path is unique, the first-ranked candidate path is set as the optimal protection path.

3. The protection path finding method for avoiding the same route as claimed in claim 1, characterized in that: After determining whether the candidate paths in the first sorting have the same number of same routes, the method further includes: If the number of same routes of the candidate paths in the first order is the same, obtaining the cost value of the candidate paths in the first order; Determine whether the cost values ​​of the candidate paths in the first sort are the same; If it is determined that the cost values ​​of the candidate paths in the first order are different, the candidate path in the first order with the smallest cost value is obtained as the optimal protection path.

4. The protection path finding method for avoiding the same route as claimed in claim 3, characterized in that: After determining whether the cost values ​​of the candidate paths in the first sorting are the same, the method further includes: If the cost values ​​of the candidate paths in the first order are the same, sorting the candidate paths in the first order according to the second priority of the avoidance type; A target candidate path is determined from the sorted candidate paths in the first sort, and the target candidate path is used as the optimal protection path.

5. The protection path finding method for avoiding the same route as claimed in claim 3, characterized in that: After determining whether the cost values ​​of the candidate paths in the first sorting are the same, the method further includes: If the cost values ​​of the candidate paths in the first order are the same, obtaining the weighted cost values ​​of the candidate paths in the first order; According to the weighted cost values ​​of the candidate paths in the first sorting, the candidate path with the smallest weighted cost value is determined as the optimal protection path.

6. The protection path finding method for avoiding the same route as claimed in claim 1, characterized in that: After determining whether the target node of the first path to be found in the preset set of paths to be found is the destination node, the method further includes: If it is determined that the target node of the first path to be found is not the destination node, searching for the next node of the target node; Determining whether the next node is a node in the first path to be found; If it is determined that the next node is not a node in the first path to be found, then using the next node as the node after the target node in the first path to be found, generating a new path to be found, and determining whether the target node in the new path to be found is the destination node; If it is determined that the target node of the new path to be found is the destination node, the new path to be found is stored in the candidate path set as an alternative path; When it is determined that the preset path set to be found is empty, multiple candidate paths in the candidate path set are sorted according to the avoidance strategy condition table to find an optimal protection path.

7. A protection path finding device for avoiding the same route, characterized in that: The protection path finding device for avoiding the same route includes: a generation module, configured to generate an avoidance strategy condition table based on the acquired active / standby separation strategy, wherein the active / standby separation strategy is a strategy for avoiding the same route active / standby separation strategy and includes avoidance types, wherein the avoidance types include avoiding the same single disk, avoiding the same network element, avoiding the same fiber connection, and avoiding the same port; and the avoidance strategy condition table includes the avoidance type, the number of avoidance types, and the priority level of the avoidance type; A judgment module, configured to judge whether a target node of a first path to be found in the preset set of paths to be found is a destination node; a storage module configured to store the first to-be-searched path in a set of candidate paths as an alternative path if it is determined that the target node of the first to-be-searched path is the destination node; a sorting and routing module, configured to sort the plurality of candidate paths according to a first priority of the avoidance type; Determine whether the first sorted alternative path is unique; If it is determined that the candidate paths in the first order are not unique, obtaining the number of times the candidate paths in the first order have the same route; Determining whether the candidate paths in the first sorting have the same number of same routes; If the number of times the candidate paths in the first order have the same route is different, the candidate path in the first order with the least number of times the candidate paths have the same route is obtained as the optimal protection path.

8. A protection path finding device for avoiding the same route, characterized in that: The protection path routing device for avoiding the same routing includes a processor, a memory, and a protection path routing program for avoiding the same routing stored on the memory and executable by the processor, wherein when the protection path routing program for avoiding the same routing is executed by the processor, the steps of the protection path routing method for avoiding the same routing as described in any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a protection path finding program for avoiding the same route, wherein when the protection path finding program for avoiding the same route is executed by the processor, the steps of the protection path finding method for avoiding the same route as claimed in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Multiple paths computation for label switched paths

    CN107888496A

  • Optical cable adjustment method and device, equipment and storage medium

    CN115767328A