Method, device and electronic device for searching dual routes
By selecting dual routes with the shortest routing distance and different optical cable segments and pipeline segments in the telecommunications network, the fault problem caused by dual routes that may pass through the same geographical road segment is solved, and the stability and efficiency of information transmission are improved.
Patent Information
- Application Number
- CN202210513606.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-11
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-05-11
AI Technical Summary
In a telecommunications network, the configured dual routes may pass through the same geographical road segment. As a result, if the main route fails to transmit information, the backup route may also have the same problem, unable to effectively avoid the fault area, affecting the stability and efficiency of information transmission.
By selecting the first route with the shortest route distance among multiple routes and the second route with different optical cable segments and pipe segments, the preset rules are used to ensure that the selected route has different optical cable segments and pipe segments. If a certain part of the first route When a fault occurs in a geographical area, the second route is switched for information transmission, thereby avoiding the fault area and ensuring the performance and efficiency of information transmission.
It effectively avoids the optical cable fault area, ensures the stability and efficiency of information transmission, improves transmission performance and efficiency, while reducing the construction cost of the shortest route and improving the accuracy and implementability of selected routes.
Smart Images

Figure CN114866463B
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical cable network technology, and in particular to a method, device and electronic device for searching dual routes. Background Art
[0002] In telecommunications networks, dual routing is usually configured to ensure normal operation of services. If the main routing fails to transmit information, the backup routing is switched to transmit information.
[0003] However, in the actual information transmission process, the configured dual routes may pass through the same geographical section, that is, the optical cables used to transmit information are partially buried in the same geographical section. In this case, if the optical cables in the same geographical section have information transmission failures, the same problem will still exist even if the route is switched. Summary of the invention
[0004] The present application provides a method, device and electronic device for searching dual routes, which are used to solve the problem of transmission failure in both dual routes caused by the actual laying of optical cables.
[0005] In a first aspect, the present application provides a method for searching for dual routes, the method comprising:
[0006] Among multiple routes for connecting the first node and the second node, according to a preset rule, selecting a first route with the shortest routing distance;
[0007] Determine N first optical cable segments corresponding to the first route, and M first pipe segments corresponding to each of the N first optical cable segments; wherein N and M are integers greater than or equal to 1, and the first pipe segment is a pipe used to protect or carry the first optical cable segment;
[0008] Among the multiple routes that do not include the first route, according to the preset rule, select the second route with the shortest routing distance; wherein the second route corresponds to Y second optical cable segments, the second optical cable segments correspond to Z second pipeline segments, Y and Z are integers greater than or equal to 1, the second optical cable segment is different from the first optical cable segment, and the second pipeline segment is different from the first pipeline segment.
[0009] Based on the above method, because the searched dual routes correspond to different optical cable segments and pipeline segments, the pipeline segment is a physical facility used to protect or carry the optical cable, that is, if an information transmission failure occurs in the pipeline segment of a certain geographical area of the first route, the second route is switched to carry out information transmission, so that the geographical area where the failure occurs can be effectively avoided, thereby achieving normal information transmission. Furthermore, the first route and the second route are both the shortest routes selected by preset rules. Therefore, based on the above method, the transmission performance and transmission efficiency of information transmission can also be guaranteed.
[0010] In one possible design, the first route with the shortest routing distance is selected according to a preset rule, including: obtaining the number of hops of the core bundles of each of the multiple routes; wherein the core bundles are used to form the routes; selecting routes whose hops of the core bundles are greater than a preset threshold as alternative routes; in response to selecting a single alternative route, using the alternative route as the first route; in response to selecting multiple alternative routes, obtaining the lengths of the core bundles of each of the multiple alternative routes, and using the alternative route with the shortest length of the core bundle as the first route.
[0011] Based on the above method, by combining the number of hops and length of the fiber core bundle, the transmission performance of the shortest route and the construction cost of the shortest route can be comprehensively considered, that is, the raw materials required to build the shortest route in the actual scenario are effectively reduced, and the transmission speed of the selected shortest route is effectively improved.
[0012] In a possible design, selecting the first route with the shortest routing distance according to a preset rule includes: for each of the multiple routes, determining the multiple optical cable segments corresponding to the each route, and determining the multiple pipe segments corresponding to the multiple optical cable segments; wherein the pipe segment is a pipe used to protect or carry the optical cable segment; calculating the sum of the lengths of the multiple pipe segments corresponding to the multiple optical cable segments corresponding to each route, and using the calculated sum of the lengths as the pipe segment length of each route; and selecting the route with the shortest pipe segment length as the first route.
[0013] Based on the above method, the shortest route is selected by calculating the length of the pipeline segment, that is, the pipeline segment is a pipeline used to protect the optical cable segment. In actual scenarios, the actual length of the optical cable corresponding to the route is difficult to calculate, but the length of the pipeline segment is relatively easy to obtain. Therefore, the above method helps to improve the accuracy and feasibility of the final selected route being the shortest route.
[0014] In one possible design, selecting the first route with the shortest routing distance according to a preset rule includes: screening out multiple candidate routes that meet business requirements from the multiple routes; and selecting the first route with the shortest routing distance from the multiple candidate routes.
[0015] Based on the above method, through pre-screening of business needs, it can be ensured that the shortest route finally selected is the route that meets the business needs, thereby effectively saving screening time and improving screening accuracy.
[0016] In one possible design, the multiple candidate routes that meet the business needs are screened out from the multiple routes, including: obtaining multiple optical cable segments corresponding to each of the multiple routes, and obtaining a target optical cable type according to the business needs, and filtering out routes whose optical cable types of the optical cables to which each of the multiple optical cable segments belongs are not the target optical cable type, to obtain the multiple candidate routes that meet the business needs after being screened out; and / or obtaining multiple optical cable segments corresponding to each of the multiple routes, and according to the business needs, filtering out routes corresponding to optical cable segments in an unavailable state, to obtain the multiple candidate routes that meet the business needs after being screened out.
[0017] Based on the above method, by pre-screening the business needs, it can be ensured that the shortest route finally selected is the route that meets the business needs, thereby effectively saving screening time and improving screening accuracy. In actual application scenarios, by limiting the type of optical cables and / or the available status of optical cable segments, the efficiency and accuracy of screening in actual application scenarios can be effectively improved.
[0018] In a possible design, after selecting the second route with the shortest routing distance, it also includes: in response to displaying the routing information of the first route and the second route, obtaining first display information of the first route and second display information of the second route; wherein the display priority of the first display information is higher than that of the second display information; and sending the first display information and the second display information to a display screen so that the display screen displays the first display information and the second display information according to the display priority.
[0019] Based on the above method, by configuring the display priority, the better first routing information is displayed in the upper first display area or a more prominent first display area, so that the user can pay attention to the first routing information at the first time, which effectively improves the user's visual experience.
[0020] In a possible design, obtaining the first display information of the first route and the second display information of the second route includes: determining the area identifier of the first route, the N first optical cable segments, the available status of the N first optical cable segments, the M first pipe segments, and the total length of the M first pipe segments as the first display information of the first route; wherein the area identifier indicates whether the first node and the second node are in the same district office; determining the area identifier of the second route, the Y second optical cable segments, the available status of the Y second optical cable segments, the Z second pipe segments, and the total length of the Z second pipe segments as the second display information of the second route.
[0021] The first display information and the second display information obtained by the above method include some information characterizing the usage status and actual connection status of the first route and the second route. Therefore, the first display information and the second display information obtained in this way can improve the decision-making efficiency of the user.
[0022] In a second aspect, the present application provides a device for searching for dual routes, the device comprising:
[0023] A first selection module selects a first route with the shortest routing distance among multiple routes for connecting the first node and the second node according to a preset rule;
[0024] A determination module is configured to determine N first optical cable segments corresponding to the first route, and M first pipeline segments corresponding to each of the N first optical cable segments; wherein N and M are integers greater than or equal to 1, and the first pipeline segment is a pipeline for protecting or carrying the first optical cable segment;
[0025] The second selection module selects a second route with the shortest routing distance according to the preset rule from among the multiple routes that do not include the first route; wherein the second route corresponds to Y second optical cable segments, the second optical cable segments correspond to Z second pipeline segments, Y and Z are integers greater than or equal to 1, the second optical cable segment is different from the first optical cable segment, and the second pipeline segment is different from the first pipeline segment.
[0026] In some possible designs, the first selection module is specifically used to obtain the number of hops of the core bundles of each of the multiple routes; wherein the core bundles are used to form the routes; select routes whose hops of the core bundles are greater than a preset threshold as alternative routes; in response to selecting a single alternative route, use the alternative route as the first route; in response to selecting multiple alternative routes, obtain the lengths of the core bundles of each of the multiple alternative routes, and use the alternative route with the shortest length of the core bundle as the first route.
[0027] In some possible designs, the first selection module is specifically used to determine, for each of the multiple routes, multiple optical cable segments corresponding to the each route, and determine multiple pipe segments corresponding to the multiple optical cable segments; wherein the pipe segment is a pipe used to protect or carry the optical cable segment; calculate the sum of the lengths of the multiple pipe segments corresponding to the multiple optical cable segments corresponding to each route, and use the calculated sum of the lengths as the pipe segment length of each route; and select the route with the shortest pipe segment length as the first route.
[0028] In some possible designs, the first selection module is specifically used to screen out multiple candidate routes that meet business requirements from the multiple routes; and select the first route with the shortest routing distance from the multiple candidate routes.
[0029] In some possible designs, the first selection module is specifically used to obtain the multiple optical cable segments corresponding to each of the multiple routes, and obtain the target optical cable type according to business needs, and filter out the routes corresponding to the optical cable types of the optical cables to which the multiple optical cable segments belong are not the target optical cable type, to obtain the multiple candidate routes that meet the business needs after filtering out; and / or obtain the multiple optical cable segments corresponding to each of the multiple routes, and according to the business needs, filter out the routes corresponding to the optical cable segments in an unavailable state, to obtain the multiple candidate routes that meet the business needs after filtering out.
[0030] In some possible designs, the device further includes:
[0031] an acquisition module, in response to displaying the route information of the first route and the second route, acquiring first display information of the first route and second display information of the second route; wherein the display priority of the first display information is higher than that of the second display information;
[0032] The sending module sends the first display information and the second display information to a display screen, so that the display screen displays the first display information and the second display information according to the display priority.
[0033] In some possible designs, the acquisition module is specifically used to determine the area identification of the first route, the N first optical cable segments, the available status of the N first optical cable segments, the M first pipe segments, and the total length of the M first pipe segments, as the first display information of the first route; wherein the area identification indicates whether the first node and the second node are in the same district office; and determine the area identification of the second route, the Y second optical cable segments, the available status of the Y second optical cable segments, the Z second pipe segments, and the total length of the Z second pipe segments, as the second display information of the second route.
[0034] In a third aspect, the present application provides an electronic device, the electronic device comprising:
[0035] Memory, used to store computer programs;
[0036] The processor is used to implement the above-mentioned method steps for searching dual routes when executing the computer program stored in the memory.
[0037] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements the above-mentioned method steps for searching for dual routes.
[0038] For each aspect from the second to the fourth aspect and the technical effects that may be achieved by each aspect, please refer to the above description of the technical effects that can be achieved by the first aspect or various possible schemes in the first aspect, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A structural diagram of the hierarchical structure of an optical cable network provided by the present application;
[0040] Figure 2 A flowchart of a method for searching dual routes provided by the present application;
[0041] Figure 3 A flowchart of a dual-route search algorithm provided for this application;
[0042] Figure 4 A flowchart of a shortest path algorithm provided for this application;
[0043] Figure 5 A schematic diagram of a device for searching dual routes provided by the present application;
[0044] Figure 6 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the present application more clear, the present application will be further described in detail below in conjunction with the accompanying drawings. The specific operation method in the method embodiment can also be applied to the device embodiment or the system embodiment.
[0046] In the description of this application, "multiple" is understood to be "at least two". "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. A is connected to B, which can represent two situations: A is directly connected to B and A is connected to B through C. In addition, in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0047] In order to facilitate those skilled in the art to better understand the technical solutions provided by the embodiments of the present application, the following briefly describes the professional terms involved:
[0048] 1. Routing: refers to the network-wide process of determining the end-to-end path of a packet from source to destination.
[0049] 2. Optical cable: a collection of interconnected optical cable segments.
[0050] 3. Optical cable segment: The portion of the optical cable between two adjacent connection points.
[0051] 4. Duct section: physical facility used to protect or carry optical cables.
[0052] See also Figure 1 As shown, the embodiment of the present application provides a hierarchical structure of an optical cable network, which specifically includes a five-layer structure. Figure 1 The following detailed description is given in order from top to bottom.
[0053] In the first-level structure, a circle represents a device, and a line segment connecting any two devices is a route.
[0054] In the second-layer structure, a circle represents a computer room, and the connectivity of a route may pass through multiple computer rooms. The equipment in the first layer is located in the computer room, which means that the computer room also identifies the location of the equipment. A line segment connecting any two computer rooms is a fiber core bundle. The fiber core bundle is used to form a route. Because information transmission has an initiator and a receiver, the fiber core bundle is generally a core in the same direction. The core in the same direction can include the number of hops and the remaining cores.
[0055] In the third-layer structure, one cylinder represents one optical cable, that is, the fiber core bundle of the second layer belongs to the optical cable of the third layer.
[0056] In the fourth layer structure, a cylinder represents an optical cable segment. Referring to the third layer, an optical cable in the third layer is composed of a single or multiple optical cable segments in the fourth layer. The optical cable segment may include length and joints.
[0057] In the fifth layer structure, a cylinder represents a pipe segment. Referring to the fourth layer, a fiber optic cable segment of the fourth layer can be carried or protected by a single or multiple pipe segments of the fifth layer. The pipe segment can include length.
[0058] Based on the hierarchical structure of the optical cable network described above, the embodiments of the present application provide a method, device, and electronic device for searching dual routes, which solve the problem of transmission failures in both dual routes caused by the actual laying of optical cables.
[0059] Furthermore, the technical features included in the embodiments of the present application can be used in any combination. Those skilled in the art should understand that, based on actual application conditions, the technical solutions obtained by reasonably combining the technical features in the embodiments of the present application can also solve the same technical problems or achieve the same technical effects.
[0060] According to the method provided in the embodiment of the present application, firstly, the first route with the shortest routing distance is selected according to the preset rules, and then the second route corresponding to the first route with different optical cable segments and different pipeline segments is selected according to the preset rules to complete the search of the dual routes. In other words, the dual routes searched out by the embodiment of the present application correspond to different optical cable segments and pipeline segments, and the pipeline segment is a physical facility used to protect or carry optical cables, that is, if an information transmission failure occurs in a pipeline segment in a certain geographical area of the first route, then switching to the second route for information transmission can effectively avoid the geographical area where the failure occurs, thereby achieving normal information transmission. Furthermore, the first route and the second route are both the shortest routes selected by the preset rules. Therefore, the method of the embodiment of the present application can also ensure the transmission performance and transmission efficiency of information transmission.
[0061] The method provided in the embodiments of the present application is further described in detail below in conjunction with the accompanying drawings.
[0062] See also Figure 2 As shown, the embodiment of the present application provides a method for searching dual routes, and the specific process is as follows:
[0063] Step 201: Selecting a first route with the shortest routing distance from among multiple routes for connecting a first node and a second node according to a preset rule;
[0064] In the embodiment of the present application, the first node and the second node are two different computer rooms, wherein the node information of the first node or the second node may include but is not limited to: computer room name, computer room ID, business attributes of the computer room, area where the computer room is located, type of equipment in the computer room, model of equipment in the computer room. Based on this, the multiple routes used to connect the first node and the second node can be understood as multiple different paths connecting the equipment of the first node to the equipment of the second node.
[0065] It is understandable that, for example, in traffic planning, the length of a path affects the travel time between two places, and the same is true for routing. The routing distance will also affect the performance of information transmission. Therefore, after determining multiple routes for connecting the first node and the second node, it is also necessary to select the first route with the shortest routing distance from the multiple routes according to the preset rules.
[0066] Specifically, the preset rule is a preset method for selecting a route with the shortest distance. The setting of the preset rule will affect the transmission performance of the first route selected. Therefore, the following three methods of selecting the first route according to the preset rule are proposed in the embodiment of the present application.
[0067] Those skilled in the art should understand that the following three methods can be used by arbitrarily splitting and combining the technical features according to actual application requirements, on the premise that the first route can be selected.
[0068] Method 1: obtaining the hop count of the fiber core bundle of each of the multiple routes, and then selecting the route whose hop count of the fiber core bundle is greater than a preset threshold as the alternative route. In response to selecting a single alternative route, the single alternative route is used as the first route. In response to selecting multiple alternative routes, the length of the fiber core bundle of each of the multiple alternative routes is obtained, and the alternative route with the shortest fiber core bundle length is used as the first route.
[0069] Based on the above method, by combining the number of hops and length of the fiber core bundle, the transmission performance of the shortest route and the construction cost of the shortest route can be comprehensively considered, that is, the raw materials required to build the shortest route in the actual scenario are effectively reduced, and the transmission speed of the selected shortest route is effectively improved.
[0070] Method 2: For each of the multiple routes, determine the multiple optical cable segments corresponding to each route, and determine the multiple pipeline segments corresponding to each of the multiple optical cable segments, then calculate the sum of the lengths of all pipeline segments corresponding to each route, and use the calculated sum of the lengths as the pipeline segment length of each route, and then select the route with the shortest pipeline segment length as the first route.
[0071] Based on the above method, the shortest route is selected by calculating the length of the pipeline segment, that is, the pipeline segment is a pipeline used to protect the optical cable segment. In actual scenarios, the actual length of the optical cable corresponding to the route is difficult to calculate, but the length of the pipeline segment is relatively easy to obtain. Therefore, the above method helps to improve the accuracy and feasibility of the final selected route being the shortest route.
[0072] Furthermore, the number of hops of the fiber core bundle of each route may be obtained, and the route with the least number of hops of the fiber core bundle and the shortest pipe section length is taken as the first route.
[0073] Based on the above method, combined with the minimum hop count of the fiber core bundle, the transmission performance of selecting the shortest route can be further effectively improved.
[0074] Method three: select multiple candidate routes that meet the business requirements from among multiple routes, and then select the first route with the shortest route distance from among the multiple candidate routes.
[0075] Specifically, the business demand may be a restriction on the type of optical cable. In this case, firstly, the multiple optical cable segments corresponding to the multiple routes are obtained, and then the target optical cable type is obtained according to the business demand, the optical cable type of the optical cable to which the multiple optical cable segments belong is determined, and the routes that are not of the target optical cable type are screened out. After the screening, the candidate routes that meet the business demand are obtained. Here, the optical cable type can be trunk, distribution, relay, communication, intra-office optical cable, etc. Limiting the search of optical cable types according to business needs helps to speed up the search for the shortest route.
[0076] Business requirements may also be restrictions on the availability of optical cable segments. In this case, multiple optical cable segments corresponding to multiple routes are first obtained, and routes corresponding to optical cable segments in unavailable states are screened out based on business requirements. After screening, candidate routes that meet business requirements are obtained.
[0077] Based on the above method, by pre-screening the business needs, it can be ensured that the shortest route finally selected is the route that meets the business needs, thereby effectively saving screening time and improving screening accuracy. In actual application scenarios, by limiting the type of optical cables and / or the available status of optical cable segments, the efficiency and accuracy of screening in actual application scenarios can be effectively improved.
[0078] Furthermore, in some possible scenarios, the above-mentioned business demand may also be the last fiber pair mark, which can be specifically used in the business demand scenario of dual-fiber search; the above-mentioned business demand may also be the number of available fiber cores, which can be specifically used in the business demand scenario of single-fiber search; the above-mentioned business demand may also be the optical fiber mode, which may include single-mode, multi-mode and 10 Gigabit multi-mode.
[0079] Step 202: Determine N first optical cable segments corresponding to the first route, and M first pipeline segments corresponding to each of the N first optical cable segments;
[0080] In the embodiment of the present application, the first pipe section is a pipe used to protect or carry the first optical cable section.
[0081] Specifically, N first optical cable segments together form an optical cable segment group, that is, the route is carried by the optical cable, and the optical cable is composed of optical cable segments, so the route is composed of an ordered sequence of a group of optical cable segments. For example, a route corresponds to 3 optical cable segments: optical cable segment 1; optical cable segment 2; optical cable segment 3, and these 3 optical cable segments can be regarded as a group or a sequence.
[0082] Step 203: selecting a second route with the shortest routing distance according to the preset rule from among the multiple routes that do not include the first route;
[0083] In the embodiment of the present application, the second route corresponds to Y second optical cable segments, the second optical cable segments correspond to Z second pipe segments, the second optical cable segments are optical cable segments different from the first optical cable segments, and the second pipe segments are optical cable segments different from the first pipe segments. Wherein, Y and Z are integers greater than or equal to 1.
[0084] Specifically, the second optical cable segment is an optical cable segment different from the first optical cable segment, and the N first optical cable segments corresponding to the first route can be regarded as the first optical cable segment group corresponding to the first route, that is, the first optical cable segment group is a collection of one or more first optical cable segments; the Y second optical cable segments corresponding to the second route can be regarded as the first optical cable segment group corresponding to the second route, that is, the second optical cable segment group is a collection of one or more second optical cable segments. Here, the optical cable segments included in the first optical cable segment group and the second optical cable segment group have no intersection relationship.
[0085] For example, the cable segment group of route A includes: cable segment 1, cable segment 2, and cable segment 3; the cable segment group of route B includes: cable segment 2, cable segment 4, and cable segment 5. Among them, the cable segment groups of routes A and B have an intersection relationship of cable segment 2, so routes A and B do not meet the conditions for dual route selection. In other words, the conditions are met only when the intersection of the cable segment groups of routes A and B is empty.
[0086] It can be understood that the second conduit segment is an optical cable segment different from the first conduit segment, which is the same as the above understanding of the relationship between the second optical cable and the second optical cable segment, and will not be elaborated here.
[0087] Based on the above method, dual routes corresponding to different optical cable segments and different pipeline segments are searched.
[0088] Furthermore, in actual applications, the searched dual routes can also be displayed on a display screen, that is, in response to displaying the routing information of the first route and the second route, first display information of the first route and second display information of the second route are obtained, and then the first display information and the second display information are sent to the display screen, so that the display screen displays the first display information and the second display information.
[0089] Specifically, the first display information and the second display information obtained above have a priority identifier, and the priority identifier represents the display priority of the display information. Here, the display information is displayed on the display screen according to the corresponding relationship between the priority identifier and the display area. Generally speaking, the display priority of the first display information is higher than the display priority of the second display information. Therefore, the first display information is displayed in the first display area, and the second display information is displayed in the second display area. The first display area is located above the second display area or the first display area is more conspicuous than the second display area.
[0090] Based on the above method, by configuring the display priority, the better first routing information is displayed in the upper first display area or a more prominent first display area, so that the user can pay attention to the first routing information at the first time, which effectively improves the user's visual experience.
[0091] Optionally, the first display information may be obtained by the following method, namely, by determining the area identifier of the first route, the N first optical cable segments corresponding to the first route, the available status of the N first optical cable segments corresponding to the first route, the M first pipeline segments corresponding to the first route, and the total length of the M first pipeline segments corresponding to the first route, and using the above determined information as the first display information of the first route. The above area identifier is an identifier of whether the first node and the second node belong to the same district office.
[0092] The first display information obtained by the above method includes some information representing the usage status and actual connection status of the first route. Therefore, the first display information can improve the decision-making efficiency of the user.
[0093] Optionally, the second display information may be obtained by determining the area identifier of the second route, the Y second optical cable segments of the second route, the available status of the Y second optical cable segments of the second route, the Z second pipe segments of the second route, and the total length of the Z second pipe segments of the second route, and using the above determined information as the second display information of the second route. The above area identifier is an identifier of whether the first node and the second node belong to the same district office.
[0094] The second display information obtained by the above method includes some information representing the usage status and actual connection status of the second route. Therefore, the second display information can improve the decision-making efficiency of the user.
[0095] It is worth noting that the first display information and the second display information obtained above are a possible implementation mode, that is, the first display information and the second display information may also include other information representing the routing situation, and the above obtained information may be added or deleted according to actual application requirements.
[0096] Optionally, in some possible scenarios, the second route cannot be searched out by the method of the embodiment of the present application, that is, there is no second route corresponding to a different optical cable segment and a different pipe segment from the first route. In this case, the length of the heavy pipe between each of the multiple routes and the first route can also be obtained, and the heavy pipe length is the total length of the overlapping part of the pipe segments corresponding to the two routes. Then, the route with the shortest heavy pipe length is selected as the second route. Based on this, the heavy pipe length can be displayed on the display screen as part of the display information.
[0097] In this way, the gaps in the dual routes where there are no two corresponding to different optical cable segments and different pipeline segments can be filled. The selected route has the shortest overlapping part in terms of geographical location, which can effectively alleviate the problem of dual route information transmission failure caused by geographical location. Moreover, the visual display of the heavy pipeline length can effectively improve the user's visual perception and help the user's actual decision-making.
[0098] Furthermore, in order to facilitate those skilled in the art to better understand the method for searching dual routes provided in the embodiment of the present application, the following exemplary detailed description is given below in conjunction with the flowchart of the dual route search algorithm.
[0099] like Figure 3 As shown, it is a flowchart of the dual routing search algorithm, which includes the following steps:
[0100] Step 301: Determine AZ end;
[0101] The AZ end represents multiple routes used to connect the A node to the Z node.
[0102] Step 302: using the shortest path algorithm to determine the main route;
[0103] Here, according to the method of the shortest path algorithm, the shortest path can be determined from multiple paths, and the shortest path can be used as the main route.
[0104] Specifically, if Figure 4 As shown, it is a flowchart of the shortest path algorithm, and the algorithm may include the following steps: Step 401: determine multiple routes between AZ ends; Step 402: among multiple routes, determine the alternative routes whose hop count of the fiber core bundle is greater than a preset threshold; Step 403: among the alternative routes, select the route with the shortest length of the fiber core bundle as the shortest route.
[0105] Step 303: Obtain the fiber core route and pipeline route corresponding to the main route;
[0106] Among them, the fiber core route is a route composed of optical cable segments corresponding to the main route, and the pipeline route is a route composed of pipeline segments corresponding to the main route.
[0107] Step 304: Among the routes other than the main route, exclude the routes that have overlapping fiber core routes and overlapping pipeline routes with the main route;
[0108] The overlapping fiber core route is a route corresponding to at least one same optical cable segment as the main route, and the overlapping pipeline route is a route corresponding to at least one same pipeline segment as the main route.
[0109] Step 305: for the remaining routes after screening, use the shortest path algorithm to determine the backup routes;
[0110] The shortest path algorithm can be found in Figure 4 The specific execution steps are detailed in step 302 and will not be elaborated here.
[0111] Step 306: The primary route and the backup route are used as dual routes.
[0112] Based on the above method, the searched dual routes correspond to different optical cable segments and pipeline segments. The pipeline segment is a physical facility used to protect or carry optical cables. That is, if an information transmission failure occurs in a pipeline segment in a certain geographical area of the main route, then switching to the backup route for information transmission can effectively avoid the geographical area where the failure occurs, thereby achieving normal information transmission. Furthermore, the main route and the backup route are both the shortest routes selected by preset rules. Therefore, the method of the embodiment of the present application can also ensure the transmission performance and transmission efficiency of information transmission.
[0113] Based on the same inventive concept, the present application also provides a device for searching dual routes, which is used to search for two routes corresponding to different optical cable segments and different pipeline segments, so as to solve the problem that both dual routes have transmission failures due to the actual laying of optical cables, and effectively ensure the transmission performance and transmission efficiency of information transmission, see Figure 5 , the device comprises:
[0114] A first selection module 501 selects a first route with the shortest routing distance from among multiple routes for connecting the first node and the second node according to a preset rule;
[0115] The determination module 502 determines N first optical cable segments corresponding to the first route, and M first pipe segments corresponding to each of the N first optical cable segments; wherein N and M are integers greater than or equal to 1, and the first pipe segment is a pipe segment used to protect or carry the first optical cable segment;
[0116] The second selection module 503 selects a second route with the shortest routing distance from the multiple routes that do not include the first route according to the preset rule; wherein the second route corresponds to Y second optical cable segments, the second optical cable segments correspond to Z second pipeline segments, Y and Z are integers greater than or equal to 1, the second optical cable segment is different from the first optical cable segment, and the second pipeline segment is different from the first pipeline segment.
[0117] In some possible designs, the first selection module 501 is specifically used to obtain the number of hops of the core bundles of each of the multiple routes; wherein the core bundles are used to form the routes; select routes whose hops of the core bundles are greater than a preset threshold as alternative routes; in response to selecting a single alternative route, use the alternative route as the first route; in response to selecting multiple alternative routes, obtain the lengths of the core bundles of each of the multiple alternative routes, and use the alternative route with the shortest length of the core bundle as the first route.
[0118] In some possible designs, the first selection module 501 is specifically used to determine, for each of the multiple routes, multiple optical cable segments corresponding to the each route, and determine multiple pipe segments corresponding to the multiple optical cable segments; wherein the pipe segment is a pipe used to protect or carry the optical cable segment; calculate the sum of the lengths of the multiple pipe segments corresponding to the multiple optical cable segments corresponding to each route, and use the sum of the calculated lengths as the pipe segment length of each route; and select the route with the shortest pipe segment length as the first route.
[0119] In some possible designs, the first selection module 501 is specifically used to screen out multiple candidate routes that meet business requirements from the multiple routes; and select the first route with the shortest routing distance from the multiple candidate routes.
[0120] In some possible designs, the first selection module 501 is specifically used to obtain the multiple optical cable segments corresponding to each of the multiple routes, and obtain the target optical cable type according to business needs, and filter out the routes whose optical cable types of the optical cables to which the multiple optical cable segments belong are not the target optical cable type, to obtain the multiple candidate routes that meet the business needs after filtering out; and / or obtain the multiple optical cable segments corresponding to each of the multiple routes, and according to the business needs, filter out the routes corresponding to the optical cable segments in an unavailable state, to obtain the multiple candidate routes that meet the business needs after filtering out.
[0121] In some possible designs, the device further includes:
[0122] an acquisition module, in response to displaying the route information of the first route and the second route, acquiring first display information of the first route and second display information of the second route; wherein the display priority of the first display information is higher than that of the second display information;
[0123] The sending module sends the first display information and the second display information to a display screen, so that the display screen displays the first display information and the second display information according to the display priority.
[0124] In some possible designs, the acquisition module is specifically used to determine the area identification of the first route, the N first optical cable segments, the available status of the N first optical cable segments, the M first pipe segments, and the total length of the M first pipe segments, as the first display information of the first route; wherein the area identification indicates whether the first node and the second node are in the same district office; and determine the area identification of the second route, the Y second optical cable segments, the available status of the Y second optical cable segments, the Z second pipe segments, and the total length of the Z second pipe segments, as the second display information of the second route.
[0125] Based on the above device, the searched dual routes correspond to different optical cable segments and pipeline segments. The pipeline segment is a physical facility used to protect or carry optical cables. That is, if an information transmission failure occurs in a pipeline segment in a certain geographical area of the first route, then switching to the second route for information transmission can effectively avoid the geographical area where the failure occurs, thereby achieving normal information transmission. Furthermore, the first route and the second route are both the shortest routes selected by preset rules, which can ensure the transmission performance and transmission efficiency of information transmission.
[0126] Based on the same inventive concept, an electronic device is also provided in an embodiment of the present application, and the electronic device can realize the function of the aforementioned device for searching dual routes, referring to Figure 6 , the electronic device comprises:
[0127] At least one processor 601, and a memory 602 connected to the at least one processor 601. The specific connection medium between the processor 601 and the memory 602 is not limited in the embodiment of the present application. Figure 6 In the example, the processor 601 and the memory 602 are connected via a bus 600. The bus 600 is Figure 6 The connection between other components is shown by bold lines, and is not intended to be limiting. The bus 600 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 601 can also be called a controller, and there is no limitation on the name.
[0128] In the embodiment of the present application, the memory 602 stores instructions that can be executed by at least one processor 601. The at least one processor 601 can execute the search dual routing method discussed above by executing the instructions stored in the memory 602. The processor 601 can implement Figure 5 The functions of each module in the device shown.
[0129] Among them, the processor 601 is the control center of the device, and can use various interfaces and lines to connect the various parts of the entire control device. By running or executing instructions stored in the memory 602 and calling the data stored in the memory 602, the various functions of the device and processing data, the device can be monitored as a whole.
[0130] In one possible design, the processor 601 may include one or more processing units, and the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 601. In some embodiments, the processor 601 and the memory 602 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on separate chips.
[0131] Processor 601 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the search dual routing method disclosed in the embodiments of the present application can be directly embodied as a hardware processor to be executed, or a combination of hardware and software modules in the processor can be executed.
[0132] The memory 602 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 602 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 602 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 602 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0133] By programming the processor 601, the code corresponding to the search dual-route method described in the above embodiment can be fixed into the chip, so that the chip can execute the dual-route search method when running. Figure 2The steps of the dual-route search method of the embodiment shown are as follows: How to design and program the processor 601 is a technique known to those skilled in the art and will not be described in detail here.
[0134] Based on the same inventive concept, an embodiment of the present application further provides a storage medium, which stores computer instructions. When the computer instructions are executed on a computer, the computer executes the dual-route search method discussed above.
[0135] In some possible implementations, various aspects of the dual-route search method provided in the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on an apparatus, the program code is used to enable the control device to execute the steps of the dual-route search method according to various exemplary implementations of the present application described above in this specification.
[0136] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0137] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0138] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0139] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0140] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for searching dual routes, characterized in that: The method comprises: Among multiple routes for connecting the first node and the second node, according to a preset rule, selecting a first route with the shortest routing distance; Determine N first optical cable segments corresponding to the first route, and M first pipe segments corresponding to each of the N first optical cable segments; wherein N and M are integers greater than or equal to 1, and the first pipe segment is a pipe used to protect or carry the first optical cable segment; Among the multiple routes that do not include the first route, according to the preset rule, select the second route with the shortest routing distance; wherein the second route corresponds to Y second optical cable segments, the second optical cable segments correspond to Z second pipeline segments, Y and Z are integers greater than or equal to 1, the second optical cable segment is different from the first optical cable segment, and the second pipeline segment is different from the first pipeline segment.
2. The method according to claim 1, characterized in that The selecting, according to a preset rule, a first route with the shortest routing distance comprises: Obtaining the hop counts of the fiber core bundles of the respective routes; wherein the fiber core bundles are used to form the routes; Selecting a route whose hop count of the fiber core bundle is greater than a preset threshold as an alternative route; In response to selecting a single candidate route, using the candidate route as a first route; In response to selecting a plurality of candidate routes, the lengths of the fiber core bundles of the plurality of candidate routes are obtained, and the candidate route with the shortest length of the fiber core bundle is used as the first route.
3. The method according to claim 1, characterized in that The selecting, according to a preset rule, a first route with the shortest routing distance comprises: For each of the multiple routes, determine multiple optical cable segments corresponding to each route, and determine multiple pipeline segments corresponding to each of the multiple optical cable segments; wherein the pipeline segment is a pipeline used to protect or carry the optical cable segment; Calculating the sum of the lengths of the plurality of pipeline segments corresponding to the plurality of optical cable segments corresponding to each route, and using the calculated sum of the lengths as the pipeline segment length of each route; The route with the shortest pipe segment length is selected as the first route.
4. The method according to claim 1, characterized in that The selecting, according to a preset rule, a first route with the shortest routing distance comprises: Filtering out multiple candidate routes that meet the service requirements from the multiple routes; Among the multiple candidate routes, a first route with the shortest route distance is selected.
5. The method according to claim 4, characterized in that The step of selecting a plurality of candidate routes that meet the service requirements from among the plurality of routes includes: Acquire multiple optical cable segments corresponding to each of the multiple routes, and acquire a target optical cable type according to business requirements, filter out routes whose optical cable types of the optical cables to which each of the multiple optical cable segments belongs are not the routes corresponding to the target optical cable type, and obtain multiple candidate routes that meet the business requirements after filtering out; and / or A plurality of optical cable segments corresponding to the plurality of routes are obtained, and routes corresponding to optical cable segments in an unavailable state are screened out according to the service demand, so as to obtain a plurality of candidate routes that meet the service demand after screening out.
6. The method according to any one of claims 1 to 5, characterized in that: After selecting the second route with the shortest routing distance, the method further includes: In response to displaying the route information of the first route and the second route, obtaining first display information of the first route and second display information of the second route; wherein the display priority of the first display information is higher than that of the second display information; The first display information and the second display information are sent to a display screen, so that the display screen displays the first display information and the second display information according to the display priority.
7. The method according to claim 6, characterized in that The acquiring first display information of the first route and second display information of the second route includes: Determine the area identifier of the first route, the N first optical cable segments, the available status of the N first optical cable segments, the M first pipeline segments, and the total length of the M first pipeline segments as the first display information of the first route; wherein the area identifier indicates whether the first node and the second node are in the same district office; The area identifier of the second route, the Y second optical cable segments, the availability status of the Y second optical cable segments, the Z second pipe segments, and the total length of the Z second pipe segments are determined as second display information of the second route.
8. A device for searching dual routes, characterized in that: The device comprises: A first selection module selects a first route with the shortest routing distance among multiple routes for connecting the first node and the second node according to a preset rule; A determination module is configured to determine N first optical cable segments corresponding to the first route, and M first pipeline segments corresponding to each of the N first optical cable segments; wherein N and M are integers greater than or equal to 1, and the first pipeline segment is a pipeline for protecting or carrying the first optical cable segment; The second selection module selects a second route with the shortest routing distance according to the preset rule from among the multiple routes that do not include the first route; wherein the second route corresponds to Y second optical cable segments, the second optical cable segments correspond to Z second pipeline segments, Y and Z are integers greater than or equal to 1, the second optical cable segment is different from the first optical cable segment, and the second pipeline segment is different from the first pipeline segment.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to implement the method steps of any one of claims 1 to 7 when executing the computer program stored in the memory.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 7 are implemented.
