Transmission network topology routing analysis method, device, equipment, storage medium and program
By constructing a basic information database and using Python loop traversal algorithm to analyze transmission network topology routes, it solves the difficulty and low efficiency of route planning and analysis in the existing technology, and achieves efficient and accurate identification and display of same routes. Reduces manual intervention and supports automated analysis of multi-topology connections.
Patent Information
- Application Number
- CN202410782917.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-18
AI Technical Summary
In the existing technology, transmission network topology routing planning and analysis is difficult, accuracy and efficiency are low, manual analysis is complex, initial data construction for algorithm analysis is difficult, adaptation is limited, multi-topology analysis function is weak, and the ability to explicitly output analysis results is Insufficient, manual intervention is required for secondary topology routing reconstruction.
By building a basic information database, including transmission network node data, optical cable information between nodes, and optical cable segment manhole longitude and latitude data, Python loop traversal algorithm is used to conduct comparative analysis of the longitude and latitude data of optical cable segments of different routes, and output the same route optical cable and its length. Support Multi-topology analysis simplifies the initial data construction, intuitively outputs the same routing paragraphs and displays them explicitly, avoiding manual secondary topology routing reconstruction.
It improves the accuracy and efficiency of transmission network topology routing analysis, simplifies operability, supports same-route analysis of multi-topology connections, reduces manual intervention, and realizes automated recognition and display of same-route paragraphs.
Smart Images

Figure CN118802706A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of routing planning and analysis, and in particular to a transmission network topology routing analysis method, device, equipment, storage medium and program. Background Art
[0002] The transmission network is divided into transmission lines and transmission equipment. As the basic bearer network, the transmission network provides physical transmission channels for the switching network, data network, and support network. In daily maintenance work, the transmission lines are greatly affected by uncontrollable factors such as municipal relocation, engineering construction, extreme weather, natural disasters, and man-made damage, which will pose a major safety hazard to the security of the transmission system and the business network it carries. If the optical cable segments passed by the main and backup routes of some services have the same optical cable, the same laying, the same path and other risk points, and when the risk point sections are interrupted, the main and backup paths cannot be switched normally, which will cause the service blocking failure. According to statistics, the proportion of transmission service interruptions caused by transmission network line failures exceeds 80%, which is much higher than the failure of transmission equipment. In the line route planning and design of the transmission system, it is necessary to reasonably plan the route of the optical cable line and analyze the same route in combination with the business carrying requirements and the overall network networking structure.
[0003] Communication optical cables can be laid in direct burial, overhead, or in pipelines according to different construction conditions and requirements. The longitude and latitude of optical cable joints, manholes, and poles can be used as references for optical cable routing. After the topology planning of the transmission system network is completed, combined with the arrangement of business paths, it is necessary to select the optical cable routes of the relevant topological connections and conduct the same route analysis.
[0004] In the prior art, the routing planning and analysis of the transmission network topology mainly include manual analysis methods and analysis methods based on certain routing comparison algorithms. However, manual analysis is difficult, accurate and inefficient, the initial data construction of the algorithm analysis is difficult, the adaptation is limited, and the operability is poor. The implementation process is complicated, the multi-topology analysis function is weak, and the ability to explicitly output the analysis results is insufficient, requiring manual intervention for secondary topology routing reconstruction. Summary of the invention
[0005] The present invention provides a transmission network topology routing analysis method, device, equipment, storage medium and program to solve the technical problems in the prior art that manual analysis is difficult, accurate and inefficient.
[0006] The invention provides a transmission network topology routing analysis method, comprising: constructing a basic information database; wherein the constructed basic information database includes transmission network node data, inter-node optical cable information, optical cable segment manhole longitude and latitude data, and inter-node optical cable connectivity diagram data; determining a network topology segment, a target optical cable, and a target reachable path according to the transmission network node data, the inter-node optical cable information, and the inter-node optical cable connectivity diagram data; respectively importing the network topology segment, the target optical cable, and the target reachable path into modules to be analyzed with different routes; calling a loop traversal algorithm in a python source file, performing comparative analysis on the longitude and latitude data of optical cable segments with different routes in the modules to be analyzed, and outputting the same-route optical cables existing in different routes, the names of the pipeline segments corresponding to the same-route optical cables, and the lengths of the same-route optical cables as analysis results; wherein the longitude and latitude data of the optical cable segments in different routes are obtained according to the longitude and latitude data of the optical cable segments manhole.
[0007] According to a transmission network topology routing analysis method provided by the present invention, a network topology segment, a target optical cable and a target reachable path are determined according to transmission network node data, inter-node optical cable information and inter-node optical cable connectivity diagram data, including: in a human-computer interaction interface, an existing network topology segment is selected according to the transmission network node data; a plurality of optical cables are queried from the inter-node optical cable information according to the input A-end position and Z-end position, and a target optical cable is selected from the plurality of optical cables; a plurality of reachable paths are calculated according to the inter-node optical cable connectivity diagram data using Python's networkx library according to the A-end position, the Z-end position and the routing depth, and a target reachable path is selected from the plurality of reachable paths.
[0008] According to a transmission network topology routing analysis method provided by the present invention, the same-route optical cables existing in different routes, the names of the pipeline sections corresponding to the same-route optical cables, and the lengths of the same-route optical cables are output as analysis results, including: outputting the same-route optical cables, the names of the pipeline sections corresponding to the same-route optical cables, and the lengths of the same-route optical cables as tabular results; in a map displayed on a human-computer interaction interface, using different colors to display the paths of different routes, and highlighting the same-route optical cables.
[0009] A transmission network topology routing analysis method provided by the present invention also includes: for an existing network topology segment, the corresponding longitude and latitude data of the optical cable pipeline is retrieved by matching the topology optical cable table and the inter-office optical cable table, the A end position and the Z end position are combined into one element and stored in a list; for a newly created network topology segment, multiple routes are generated, and each route creates a corresponding number of storage lists according to different route hops to store direct optical cables of two adjacent sites; the storage lists are arranged and combined using Python's itertools library tool to form a number of optical cable path combinations.
[0010] A transmission network topology routing analysis method provided by the present invention also includes: comparing the optical cable longitude and latitude lists of two routes in turn through a loop, and storing the same pipeline longitude and latitude combinations in a new longitude and latitude routing list; when the same longitude and latitude exist, synchronously recording the corresponding pipeline section name in a list, and outputting it as an Excel detailed analysis result; according to the A end position and the Z end position of the pipeline, calculating the length of each section of the same route pipeline through the Pythagorean theorem module of the haversine library, and storing it in a list as an Excel detailed analysis result output.
[0011] According to a transmission network topology routing analysis method provided by the present invention, a human-computer interaction interface is developed based on a python tool; in a module to be analyzed, at least route one, route two and route three are included; a loop traversal algorithm in a python source file is called to compare and analyze the longitude and latitude data of optical cable segments of different routes in the module to be analyzed, including: in the module to be analyzed, two routes are used for mutually exclusive analysis, or three routes are used for mutually exclusive analysis in pairs.
[0012] The present invention also provides a transmission network topology routing analysis device, comprising: a database module, used to construct a basic information database; wherein the constructed basic information database includes transmission network node data, inter-node optical cable information, optical cable segment manhole longitude and latitude data, and inter-node optical cable connectivity diagram data; a data acquisition module, used to determine the network topology segment, target optical cable, and target reachable path according to the transmission network node data, inter-node optical cable information, and inter-node optical cable connectivity diagram data; a data analysis module, used to import the network topology segment, target optical cable, and target reachable path into modules to be analyzed with different routes respectively; a data calculation module, used to call a loop traversal algorithm in a python source file, compare and analyze the longitude and latitude data of optical cable segments with different routes in the modules to be analyzed, and output the same-route optical cables existing in different routes, the names of the pipeline segments corresponding to the same-route optical cables, and the lengths of the same-route optical cables as analysis results; wherein the longitude and latitude data of the optical cable segments in different routes are obtained according to the longitude and latitude data of the optical cable segments manhole.
[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the transmission network topology routing analysis method described above is implemented.
[0014] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the transmission network topology routing analysis method described in any one of the above methods is implemented.
[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned transmission network topology routing analysis methods.
[0016] The transmission network topology routing analysis method, device, equipment, storage medium and program provided by the present invention include: constructing a basic information database; wherein the basic information database includes transmission network node data, inter-node optical cable information, optical cable segment manhole longitude and latitude data and inter-node optical cable connectivity diagram data; determining the network topology segment, target optical cable and target reachable path according to the transmission network node data, inter-node optical cable information and inter-node optical cable connectivity diagram data; importing the network topology segment, target optical cable and target reachable path into the to-be-analyzed module of different routes respectively; calling the loop traversal algorithm in the python source file, comparing and analyzing the longitude and latitude data of the optical cable segments of different routes in the to-be-analyzed module, and outputting the same-route optical cables existing in different routes, the names of the pipeline segments corresponding to the same-route optical cables and the length of the same-route optical cables as the analysis results; wherein the longitude and latitude data of the optical cable segments in different routes are obtained according to the longitude and latitude data of the optical cable segments manhole. Through the above-mentioned method, the present invention greatly improves the accuracy and efficiency compared with the manual analysis method; it has strong operability, simple algorithm and supports multi-topology analysis. Furthermore, the algorithm of the present invention has simple initial data construction and no adaptation restrictions; it can intuitively output the same route segments and display them explicitly in association; and it can avoid manual secondary topology route reconstruction. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 It is a flow chart of a transmission network topology routing analysis method provided in an embodiment of the present invention.
[0019] Figure 2 It is a tool system flow chart of the transmission network topology routing analysis method of the present invention.
[0020] Figure 3 It is a structural diagram of a transmission network topology routing analysis device provided in an embodiment of the present invention.
[0021] Figure 4 It is a schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0023] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiment of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0024] Transmission network topology routing planning and analysis methods mainly include manual methods and analysis methods based on certain routing comparison algorithms.
[0025] According to different construction conditions and requirements, communication optical cables can be laid by direct burial, overhead, pipeline, etc., among which the longitude and latitude of optical cable joints, manholes, and pole positions can be used as references for optical cable routing positioning. After the topology planning of the transmission system network is completed, it is necessary to select the optical cable routes of the relevant topological connections and analyze the same routes in combination with the service path arrangement. In the traditional way, the planning and analysis of the optical cable routes of the topological connections of the transmission system rely on the designers to be familiar with the connectivity of the optical cables between the topological nodes and the overview of the route laying. The optical cable routes of different topological connections are manually compared and analyzed on the drawings, and the optical cable segments that do not meet the same route avoidance requirements are replaced and updated and analyzed again. In addition to requiring designers to have sufficient reserve experience in the optical cable routes and connectivity between networking nodes, this method also has the problems of large workload, low accuracy, and low efficiency. In the case of large-scale network construction and more system topology correlation requirements, the workload and difficulty of manual route selection and analysis increase exponentially, and it is easy to fall into the dilemma of losing one thing while focusing on another.
[0026] In addition to the traditional manual method of route selection and same-route comparison and analysis, some related technologies also have methods for transmission network topology route planning and analysis based on neural network models, FP-growth algorithms, and collapse processing algorithms. The above-mentioned same-route analysis method completes the same-route risk point analysis of two topologically connected optical cables with mutually exclusive routing requirements through data analysis and processing, which can solve the accuracy problem of the comparison and analysis process under the existing manual method. However, in the case where there is a risk of same routing in the existing topologically connected optical cable segments, it is necessary to reconstruct and update one or two of the topologically connected optical cable segments, and call the algorithm again to complete the comparison and analysis. Manual intervention is still required for optical cable selection and analysis during route reconstruction, which is difficult to solve the problems of large analysis workload and labor efficiency. Moreover, the above algorithm cannot simultaneously complete the planning, analysis and calculation of optical cables when more than two multi-topologically connected routes are mutually exclusive.
[0027] Therefore, the disadvantages of the above solutions include: 1. Manual analysis is difficult, inaccurate and inefficient: Traditional manual analysis requires operators to have a wealth of knowledge about optical cable routing and be familiar with the accessibility of optical cables. When manually overlaying layers to compare the same route, it is necessary to select alternative optical cables in a targeted manner and conduct a secondary analysis based on the analysis results. This method is first limited by the technical capabilities of the operators and has great limitations in feasibility. Secondly, the routing analysis workload is large, the work efficiency is low, and the accuracy of the routing analysis conclusions is poor. When there are requirements for avoiding the same route in multiple topologies, it is difficult to output a complete solution.
[0028] 2. The initial data construction for algorithm analysis is difficult and the adaptation is limited: The algorithm-based analysis method of related technologies requires mapping the nodes, topological connections, and cable segments on the transmission network lines with the algorithm function parameters. The initial construction of data for multiple cable segments in large networks is labor-intensive and difficult to apply in actual networking and form productivity. Some algorithms have requirements for the initialization data type and are affected by parameters such as support thresholds, so they are not suitable for network topology analysis.
[0029] 3. Poor operability of algorithm analysis, complex algorithm implementation process, and weak multi-topology analysis function: The technical solution of algorithm analysis of related technologies has poor operability of routing analysis interface. The same routing analysis function algorithm implementation principle based on neural network model, GIS, FP-growth algorithm, etc. is complex, and can only support comparison analysis between two topology corresponding optical cables, and lacks the ability to analyze more than two multi-topology connections commonly seen in transmission networks.
[0030] 4. Insufficient ability to explicitly output and present analysis results: Existing algorithms are inadequate for outputting and presenting the same-route analysis results.
[0031] 5. Manual intervention is required for secondary topology routing reconstruction: During the routing analysis process, for sections with the same route, operators are required to manually intervene to replace the optical cables corresponding to the topology connection and reconstruct the topology.
[0032] Based on this, the present invention provides a transmission network topology routing analysis method. Figure 1 , Figure 1 1 is a flow chart of a transmission network topology routing analysis method provided in an embodiment of the present invention. In this embodiment, the transmission network topology routing analysis method may include steps S110 to S140, and each step is specifically as follows: S110: construct a basic information database; wherein the basic information database includes transmission network node data, inter-node optical cable information, optical cable section manhole longitude and latitude data, and inter-node optical cable connectivity diagram data.
[0033] S120: Determine the network topology segment, target optical cable and target reachable path according to the transmission network node data, the optical cable information between nodes and the optical cable connectivity diagram data between nodes.
[0034] S130: Import the network topology segment, the target optical cable, and the target reachable path into different routing modules to be analyzed.
[0035] S140: calling the loop traversal algorithm in the python source file, performing comparative analysis on the longitude and latitude data of the optical cable segments of different routes in the analysis module, and outputting the same-route optical cables existing in different routes, the names of the pipeline segments corresponding to the same-route optical cables, and the lengths of the same-route optical cables as analysis results.
[0036] The longitude and latitude data of the optical cable segments in different routes are obtained based on the longitude and latitude data of the optical cable segments.
[0037] In some embodiments, a network topology segment, a target optical cable, and a target reachable path are determined based on transmission network node data, inter-node optical cable information, and inter-node optical cable connectivity diagram data, including: in a human-computer interaction interface, selecting an existing network topology segment based on the transmission network node data; querying a number of optical cables from the inter-node optical cable information based on the input A-end position and Z-end position, and selecting a target optical cable from the number of optical cables; calculating multiple reachable paths based on the inter-node optical cable connectivity diagram data using Python's networkx library based on the A-end position, the Z-end position, and the routing depth, and selecting a target reachable path from the multiple reachable paths.
[0038] In some embodiments, the same-route optical cables existing in different routes, the names of the pipeline sections corresponding to the same-route optical cables, and the lengths of the same-route optical cables are output as analysis results, including: outputting the same-route optical cables, the names of the pipeline sections corresponding to the same-route optical cables, and the same-route optical cables lengths as tabular results; in the map displayed on the human-computer interaction interface, using different colors to display the paths of different routes, and highlighting the same-route optical cables.
[0039] In some embodiments, it also includes: for an existing network topology segment, the corresponding longitude and latitude data of the optical cable pipeline is retrieved by matching the topology optical cable table and the inter-office optical cable table, the A-end position and the Z-end position are combined into one element and stored in a list; for a newly created network topology segment, multiple routes are generated, and each route creates a corresponding number of storage lists according to different route hops to store direct optical cables of two adjacent sites; the storage lists are arranged and combined using Python's itertools library tool to form a number of optical cable path combinations.
[0040] In some embodiments, the method further includes: comparing the optical cable longitude and latitude lists of two routes in sequence through a loop, and storing the same pipeline longitude and latitude combinations in a new longitude and latitude routing list; when the same longitude and latitude exist, synchronously recording the corresponding pipeline section name in a list, and outputting it as an Excel detailed analysis result; according to the A-end position and the Z-end position of the pipeline, calculating the length of each section of the same route pipeline through the Pythagorean theorem module of the haversine library, and storing it in a list as an Excel detailed analysis result output.
[0041] In some embodiments, the human-computer interaction interface is developed based on a python tool; in the module to be analyzed, at least route one, route two and route three are included; a loop traversal algorithm in a python source file is called to compare and analyze the longitude and latitude data of optical cable segments of different routes in the module to be analyzed, including: in the module to be analyzed, two routes are used for mutually exclusive analysis, or three routes are used for mutually exclusive analysis in pairs.
[0042] In summary, the embodiment of the present invention provides a transmission network topology routing analysis method, which greatly improves accuracy and efficiency compared to manual analysis methods; has strong operability, simple algorithm, and supports multi-topology analysis. Furthermore, the initial data of the algorithm of the present invention is simple to construct, without adaptation restrictions; it can intuitively output the same routing segments and display them in an associated manner; it can avoid manual secondary topology routing reconstruction.
[0043] See also Figure 2 , Figure 2 It is a tool system flow chart of the transmission network topology routing analysis method of the present invention.
[0044] This embodiment is based on the need for co-routing analysis and optimization of optical cables bound to the transmission network topology, and builds a basic information database, including networking topology, networking sites, optical cable segment sources, manholes or joints, and pole route longitude and latitude data. Python built-in functions are used to extract and analyze relevant data, and complete analysis and calculation functions, such as optical cable data retrieval of existing topology, calculation of reachable paths at different depths between two sites, data retrieval of direct optical cables between two sites, co-routing analysis of 2 and 3 topologies, and finally output co-routing results and graphical display functions in the form of Excel and html, respectively.
[0045] The tool system includes a data acquisition module and a data calculation module.
[0046] In the data acquisition module, the file path is obtained and the file name format is verified to be correct. Specifically, through the optical cable manhole longitude and latitude files, network topology segments, network topology structures, inter-office optical cable details and other data acquisition: ① network topology segment site, optical cable data; ② network topology data; ③ pipe well longitude and latitude information.
[0047] Confirm the analysis content: ① Select the network topology segment; ② Set a new network topology segment; ③ Select the optical cable. Output the above analysis content to different routes. Figure 2 There are three routes in total, namely route one, route two and route three.
[0048] In the data operation module, the scenario is first determined: In scenario 1, the established optical cable route: ① network topology segment; ② selected optical cables. In scenario 2, a new network topology segment is created: ① based on the A / Z segment site + routing depth, all reachable paths are calculated; ② based on the selected path, all optical cable combinations are arranged and combined.
[0049] According to the selected route list to be analyzed, ① extract the relevant optical cable name; ② extract the longitude and latitude of the relevant pipeline laying according to the optical cable name; ③ within the same route, the longitude and latitude of the optical cables are superimposed; ④ analyze the same route situation of the optical cables involved in two or three routes.
[0050] According to the longitude and latitude of the pipeline, the total distance of the same route is calculated. Finally, the data calculation module outputs the analysis results, which include the same route list in Excel format and the optical cable route map in HTML format.
[0051] Specifically, each module involved in this embodiment is introduced in detail.
[0052] 1. Basic Information Database
[0053] The basic information database includes transmission network node data, optical cable information data between nodes, optical cable section longitude and latitude data and optical cable connectivity chart data between nodes.
[0054] Create a corresponding table of sites that the transmission network topology passes through, as shown below: Serial number Construction period Topology segment number Topology Site Topology Name Home Network 1 FYD01 AA-BB-CC-DD XXX-YYY 2 FYD02 AA-EE-FF XXX-WWW 3 FYD03 EE-DD
[0055] Establish a corresponding table of direct optical cables between nodes to provide data basis for calculating reachable paths and calling inter-office optical cables. As shown below: Terminal Point Cable name Cable number Cable length AA-BB GL01 AA-BB GL02 AA-BB GL03 <![CDATA[AA - CC]]> GL04 AA-CC GL05
[0056] The entire physical route of an optical cable is constructed by connecting several pipeline sections. Therefore, in the longitude and latitude table of the optical cable manhole, the longitude and latitude correspondence between the optical cable and the pipeline is established, including the name of the optical cable, the name of the pipeline section, the longitude and latitude of pipeline section A, and the longitude and latitude of pipeline section Z. When analyzing the same route of the optical cable, the longitude and latitude of the optical cable and its segmented longitude and latitude are retrieved for comparative analysis. As shown below: Serial number Pipeline segment name Longitude of pipeline end A Latitude of pipeline end A Longitude of the Z end of the pipeline Latitude of the Z end of the pipeline Cable name 1 GD1 GL01 2 GD2 GL01 3 GD3 GL02 4 GD4 GL02
[0057] Establish a corresponding relationship table of optical cable connectivity between nodes to provide data basis for calculating the reachable path between any two sites. As shown below: Site A Site B Site C Site D Site E Site F Site G Site H Site I Site A 0 1 1 1 1 1 0 0 1 Site B 1 0 1 1 1 1 0 1 1 Site C 1 1 0 0 1 1 1 0 1 Site D 1 1 0 0 0 1 0 0 1 Site E 1 1 1 0 0 1 1 0 1 Site F 1 1 1 1 1 0 1 0 1 Site G 0 0 1 0 1 1 0 0 1 Site H 0 1 0 0 0 0 0 0 1 Site I 1 1 1 1 1 1 1 1 0
[0058] (II) Query and Filter Module
[0059] The query and screening module can be further divided into an existing network topology screening module, a new transmission network topology path calculation module and an optical cable query module.
[0060] Existing network topology screening module: Screen and select the existing transmission network topology. In the actual analysis operation scenario, in each phase of the construction project, the newly built topology segment may be mutually exclusive with the existing topology. Therefore, the historical optical cable data of the networking optical cable can be retrieved for screening through the topology corresponding node table. At the same time, the human-computer interaction interface developed using the python tool in the embodiment of the present invention below can be moved in respectively. Select to import the modules to be analyzed for route one, route two, and route three. After the import is complete, click Analysis, and the background will compare and analyze the longitude and latitude data of the optical cable segment corresponding to the topology to be analyzed by calling the loop traversal algorithm in the python source file. The analysis results are accessed in the same route analysis output table, and the optical cable segment to be analyzed is intuitively presented on the map in the form of an associated html file.
[0061] Path calculation module for newly created transmission network topology: When creating a new transmission network topology, it is necessary to query the reachable path and try multiple feasible routes to avoid the same route. Set the site location of end A and end Z, set the maximum number of hops, that is, the routing depth, and use Python's networkx library to calculate the reachable path based on the topology of the inter-office connectivity graph. At the same time, the selected path can be moved to the analysis modules of route 1, route 2, and route 3 below.
[0062] Optical cable query module: provides direct optical cable query function between two stations, and displays relevant information of the optical cable in question, such as termination position, optical cable number, optical cable length, etc., based on the inter-station optical cable table. At the same time, the selected optical cable can be moved to the following modules to be analyzed: route 1, route 2, and route 3.
[0063] (III) Analysis module
[0064] In the analysis module, it supports mutually exclusive analysis of 2 routes and mutually exclusive analysis of 3 routes. In each route unit, according to different scenarios, this tool will retrieve the corresponding longitude and latitude of the optical cable, superimpose them, and analyze them one by one. In the output route map, different routes are distinguished by different colors.
[0065] Specifically, the analysis module may include an optical cable path extraction module and a comparison analysis module.
[0066] In the optical cable path extraction module, there are three main analysis scenarios.
[0067] In scenario 1, for the existing topology, the topology optical cable table + inter-office optical cable table can be used to match and retrieve the relevant optical cable pipeline longitude and latitude data. The longitude and latitude of end A + the longitude and latitude of end Z are combined into one element and stored in a list list.
[0068] For example: list = ["Site A - Site B Optical Cable 01", "Site B - Site C Optical Cable 01"].
[0069] Scenario 2: For a newly created topology, multiple routes may be generated. Each route creates a corresponding number of storage lists based on different route hops to store the direct optical cables of two adjacent sites. Then, the storage lists are arranged and combined using Python's itertools library tool to form several optical cable path combinations.
[0070] Assume that the route is site A-site B-site C, and the optical cable relationship is as follows: Site A - Site B Site B - Site C Direct fiber optic cable Site A-Site B optical cable 01 Site B-Site C Optical Cable 01 Direct fiber optic cable Site A-Site B optical cable 02 Site B-Site C Optical Cable 02 Direct fiber optic cable Site A-Site B optical cable 03
[0071] Therefore, there are 3×2=6 combinations of optical cable routes. Each combination is taken as an element and stored in a list list in sequence.
[0072] For example: list = [("Site A - Site B Cable 01", "Site B - Site C Cable 01"),
[0073] ("Site A - Site B Cable 01", "Site B - Site C Cable 02"),
[0074] ("Site A - Site B Cable 02", "Site B - Site C Cable 01"),
[0075] ("Site A - Site B Cable 02", "Site B - Site C Cable 02"),
[0076] ("Site A - Site B Cable 03", "Site B - Site C Cable 01"),
[0077] ("Site A - Site B Optical Cable 03", "Site B - Site C Optical Cable 02")].
[0078] In the subsequent comparative analysis, each optical cable routing situation will be analyzed one by one with the other analysis object, thereby outputting multiple analysis results for selection.
[0079] In scenario 3, in some cases, when the routing optical cable has been selected, the desired direct optical cable can be directly searched and selected as an element. The selected optical cables, one or more, are stored in a list list.
[0080] For example: list = ["Site A - Site B Optical Cable 01", "Site B - Site C Optical Cable 01"].
[0081] In the comparison and analysis module, there are two scenarios: mutually exclusive comparison of 2 routes and mutually exclusive comparison of 3 routes. According to the optical cable route list output by the three scenarios in the above module (existing multiplexing section, newly built multiplexing section, optical cable), the corresponding pipeline segment name and pipeline longitude and latitude are extracted according to the "inter-office optical cable table" and stored in the list.
[0082] The longitude and latitude lists of the optical cables of the two routes are compared in sequence through a for loop, and the same pipeline longitude and latitude combinations are stored in a new longitude and latitude routing list. At the same time, when there are identical longitudes and latitudes, the corresponding pipeline segment names are synchronously recorded in a list and output as Excel detailed analysis results. And according to the longitude and latitude of the A / Z end of the pipeline, the Pythagorean theorem module of the haversine library is used to calculate the length of each segment of the same route pipeline, and stored in a list as Excel detailed analysis results output. The example is as follows:
[0083] In addition, through the folium library, the map base map is set, and the two routes to be analyzed, including the existing identical routes, are displayed on the map and output, distinguished by different colors, to form an HTML file output.
[0084] In summary, the embodiment of the present invention provides a transmission network topology routing analysis method, which can achieve the following aspects with the help of system tools: 1. Simplify the same-route comparison algorithm and avoid manual secondary topology reconstruction: Compared with the solution of algorithm analysis in the related technical solutions, the embodiment of the present invention uses a simple loop traversal algorithm to complete the longitude and latitude data of the source and destination of the optical cable segment corresponding to the topology to be analyzed, compare the same optical cable segments and determine them as the same route and summarize and output them. At the same time, by completing the analysis of the reachable optical cable solution in full at one time and outputting all the analysis results, manual secondary topology reconstruction can be avoided, solving the pain points of the existing technical solutions.
[0085] 2. Innovative development of a friendly graphical human-computer interaction interface: The embodiment of the present invention uses Python tools combined with the habits in the actual network design process to develop a concise and friendly graphical human-computer interaction interface, which is convenient for operators to select nodes and optical cables in turn, add routing elements, and reduce the difficulty of operation.
[0086] 3. Explicit output and presentation of analysis results: After completing the same-route analysis of the optical cables corresponding to the topological connections, the embodiment of the present invention provides two methods for outputting the analysis results.
[0087] Method 1: Tabular output As shown in the following table, in the same-route analysis table output by the embodiment of the present invention, the name and length of the same-route optical cable segment can be easily viewed, and the risk level can be calculated.
[0088]
[0089] Method 2: Graphical presentation. For the same-route segments being compared and analyzed, the embodiment of the present invention can associate the topological connection with the overall optical cable path and the analyzed same-route optical cable segment path, and display them on a map to visually check the routing planning of the topological connection and the same-route segments.
[0090] 4. Simplify the initialization data construction and adapt to multi-topology association analysis: Initialize the data construction node, only need to complete the topology node, cable name entry, and combine the cable longitude and latitude data entry of the digital cable operation and maintenance management platform, and create a cable connectivity matrix table, you can complete the full amount of initialization data construction, the construction process is simple. At the same time, innovative development of multi-route association analysis to meet the same route analysis needs under the networking topology of the transmission network inter-office relay system.
[0091] Compared with the existing technology and related technologies, the embodiments of the present invention can be used in the transmission network optical cable routing planning and same-route analysis process. By comparing the same-route analysis results, the optimal transmission topology external optical cable selection and use plan can be comprehensively selected to maximize the security of the service network data carried by the transmission network. Specific technical advantages include: 1. Compared with the manual analysis method, the accuracy and efficiency are greatly improved: Compared with the traditional manual analysis method, the tool developed by the embodiment of the present invention can provide a full optical cable connectivity solution by specifying the topology source and sink end and combining the route depth parameter restriction. Further, through the loop traversal algorithm, the same routes under all possible solutions are compared and output, and the optical cable solution without the same route can be selected intuitively and easily through the output results. The technical ability level requirements for operators are reduced, and at the same time, the analysis accuracy is improved through the comparison and analysis of the longitude and latitude data of the source and sink of the optical cable segment, achieving zero errors and improving the analysis efficiency.
[0092] 2. The initial data of the algorithm in the embodiment of the present invention is simple to construct, and there is no adaptation restriction: The embodiment of the present invention constructs a basic database based on the longitude and latitude data of the site, cable name, and cable segment source and destination (including cable joints, pipeline manholes, and pole positions) exported from the optical cable digital operation and maintenance system. The overall data initialization is simple to construct, and the algorithm analysis process only completes the longitude and latitude data comparison, without any application restrictions.
[0093] 3. The embodiment of the present invention has strong operability, simple algorithm, and supports multi-topology analysis: The embodiment of the present invention uses Python to develop a human-computer interaction platform, supports node, topology, and optical cable graphical interface selection, and has strong overall operability. The same-route comparison algorithm of the embodiment of the present invention uses a simple loop traversal algorithm to perform a full loop traversal on the optical cable segment data bound to the topology to be compared, and compares the same optical cable segments and summarizes and outputs them. The algorithm is clear and concise. At the same time, the embodiment of the present invention can support multiple topological connections for the same-route comparison analysis at the same time.
[0094] 4. The embodiment of the present invention can intuitively output the same route segments and display them in an explicit manner: The embodiment of the present invention compares and analyzes the optical cable segments bound by topological connections, summarizes the data of the same optical cable segments and outputs them in an EXCEL table, and automatically exports them to a specified directory, so that the operator can intuitively perform statistical analysis of the same route optical cable segments. At the same time, the entire route segment optical cable can be associated and displayed on the map, and the same route segments can be displayed in an enhanced manner.
[0095] 5. The embodiment of the present invention can avoid manual secondary reconstruction of topology routing: During the analysis process, the embodiment of the present invention combines the selection of topology source and destination nodes, the connectivity of optical cables between nodes, and the setting of routing depth to complete all available routes between specified topology nodes at one time and complete the full-loop traversal analysis, that is, complete the comparison and analysis results under all available solutions. The operator can select the optimal solution based on the analysis results without manual secondary reconstruction of topology routing.
[0096] The present invention also provides a transmission network topology routing analysis device. The transmission network topology routing analysis device provided by the present invention is described below. The transmission network topology routing analysis device described below and the transmission network topology routing analysis method described above can be referenced to each other.
[0097] See also Figure 3 , Figure 3 It is a structural diagram of a transmission network topology routing analysis device provided in an embodiment of the present invention. In this embodiment, the transmission network topology routing analysis device may include a database module 310, a data acquisition module 320, a data analysis module 330 and a data calculation module 340.
[0098] The database module 310 is used to construct a basic information database; wherein the basic information database includes transmission network node data, inter-node optical cable information, optical cable section manhole longitude and latitude data, and inter-node optical cable connectivity diagram data.
[0099] The data acquisition module 320 is used to determine the network topology segment, the target optical cable and the target reachable path according to the input network node data, the optical cable information between nodes and the optical cable connectivity diagram data between nodes.
[0100] The data analysis module 330 is used to import the network topology segment, the target optical cable and the target reachable path into the to-be-analyzed modules of different routes respectively.
[0101] The data operation module 340 is used to call the loop traversal algorithm in the python source file, compare and analyze the longitude and latitude data of the optical cable segments of different routes in the analysis module, and output the optical cables with the same route existing in different routes, the names of the pipeline segments corresponding to the optical cables with the same route, and the lengths of the optical cables with the same route as the analysis results; wherein the longitude and latitude data of the optical cable segments in different routes are obtained based on the longitude and latitude data of the optical cable segments in the well.
[0102] In some embodiments, the data acquisition module 320 can be specifically used for: in a human-computer interaction interface, selecting an existing network topology segment according to transmission network node data; querying a number of optical cables from the optical cable information between nodes according to the input A-end position and Z-end position, and selecting a target optical cable from the number of optical cables; calculating multiple reachable paths based on the optical cable connectivity graph data between nodes using Python's networkx library according to the A-end position, Z-end position and routing depth, and selecting a target reachable path from the multiple reachable paths.
[0103] In some embodiments, the data calculation module 340 can be specifically used to: output the same-route optical cables, the names of the pipeline sections corresponding to the same-route optical cables, and the lengths of the same-route optical cables as tabular results; in the map displayed on the human-computer interaction interface, use different colors to display the paths of different routes, and highlight the same-route optical cables.
[0104] In some embodiments, it also includes an optical cable path combination module, which can be used for: for an existing network topology segment, the corresponding optical cable pipeline longitude and latitude data is retrieved through matching the topology optical cable table and the inter-office optical cable table, and the A-end position and the Z-end position are combined into one element and stored in a list; for a newly created network topology segment, multiple routes are generated, and each route creates a corresponding number of storage lists according to different route hops to store direct optical cables of two adjacent sites; the storage lists are arranged and combined using Python's itertools library tool to form a number of optical cable path combinations.
[0105] In some embodiments, the method further includes: comparing the optical cable longitude and latitude lists of two routes in sequence through a loop, and storing the same pipeline longitude and latitude combinations in a new longitude and latitude routing list; when the same longitude and latitude exist, synchronously recording the corresponding pipeline section name in a list, and outputting it as an Excel detailed analysis result; according to the A-end position and the Z-end position of the pipeline, calculating the length of each section of the same route pipeline through the Pythagorean theorem module of the haversine library, and storing it in a list as an Excel detailed analysis result output.
[0106] In some embodiments, the human-computer interaction interface is developed based on a python tool; in the module to be analyzed, at least route one, route two and route three are included; a loop traversal algorithm in a python source file is called to compare and analyze the longitude and latitude data of optical cable segments of different routes in the module to be analyzed, including: in the module to be analyzed, two routes are used for mutually exclusive analysis, or three routes are used for mutually exclusive analysis in pairs.
[0107] On the other hand, an embodiment of the present invention further provides an electronic device, see Figure 4 , Figure 4 is a schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention, such as Figure 4 As shown, the electronic device may include: the electronic device may include a memory 420, a processor 410, and a computer program stored in the memory 420 and executable on the processor 410. When the processor 410 executes the program, the transmission network topology routing analysis method provided by the above methods is implemented.
[0108] Optionally, the electronic device may further include a communication bus 430 and a communication interface (CommunicationsInterface) 440, wherein the processor 410, the communication interface 440, and the memory 420 communicate with each other through the communication bus 430. The processor 410 may call a computer program in the memory 420 to execute a transmission network topology routing analysis method, which may include: Construct a basic information database; wherein the basic information database includes transmission network node data, inter-node optical cable information, optical cable segment manhole longitude and latitude data, and inter-node optical cable connectivity diagram data; determine the network topology segment, target optical cable, and target reachable path based on the transmission network node data, inter-node optical cable information, and inter-node optical cable connectivity diagram data; import the network topology segment, target optical cable, and target reachable path into the modules to be analyzed of different routes respectively; call the loop traversal algorithm in the python source file, compare and analyze the longitude and latitude data of the optical cable segments of different routes in the modules to be analyzed, and output the same-route optical cables in different routes, the names of the pipeline segments corresponding to the same-route optical cables, and the lengths of the same-route optical cables as analysis results; wherein the longitude and latitude data of the optical cable segments in different routes are obtained based on the longitude and latitude data of the optical cable segments manhole.
[0109] In addition, the logic instructions in the above-mentioned memory 420 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0110] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the transmission network topology routing analysis method provided by the above methods. Its steps and principles have been introduced in detail in the above methods and will not be repeated here.
[0111] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the transmission network topology routing analysis method provided by the above-mentioned methods. The steps and principles thereof have been introduced in detail in the above-mentioned methods and will not be repeated here.
[0112] Non-transitory computer-readable storage media can be any available media or data storage devices that can be accessed by a processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CDs, DVDs, BDs, HVDs, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drives (SSDs)), etc.
[0113] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0114] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0115] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A transmission network topology routing analysis method, characterized in that: include: Build a basic information database; The basic information database includes transmission network node data, inter-node optical cable information, optical cable section manhole longitude and latitude data, and inter-node optical cable connectivity diagram data; Determine the network topology segment, the target optical cable and the target reachable path according to the transmission network node data, the inter-node optical cable information and the inter-node optical cable connectivity graph data; Importing the network topology segment, the target optical cable and the target reachable path into modules to be analyzed with different routes respectively; Call the loop traversal algorithm in the python source file to compare and analyze the longitude and latitude data of the optical cable segments of different routes in the module to be analyzed, and output the same-route optical cables existing in different routes, the names of the pipeline segments corresponding to the same-route optical cables, and the lengths of the same-route optical cables as analysis results; The longitude and latitude data of the optical cable segments in different routes are obtained based on the longitude and latitude data of the optical cable segments.
2. The transmission network topology routing analysis method according to claim 1, characterized in that: The determining of the network topology segment, the target optical cable and the target reachable path according to the transmission network node data, the inter-node optical cable information and the inter-node optical cable connectivity graph data comprises: In the human-computer interaction interface, an existing network topology segment is selected according to the transmission network node data; According to the input A-end position and Z-end position, several optical cables are queried from the optical cable information between nodes, and a target optical cable is selected from the several optical cables; According to the A-end position, the Z-end position and the routing depth, multiple reachable paths are calculated based on the optical cable connectivity graph data between the nodes using Python's networkx library, and a target reachable path is selected from the multiple reachable paths.
3. The transmission network topology routing analysis method according to claim 2, characterized in that: The outputting of the same-route optical cables existing in different routes, the names of the pipeline sections corresponding to the same-route optical cables, and the lengths of the same-route optical cables as analysis results includes: outputting the same-route optical cables, the names of the pipeline sections corresponding to the same-route optical cables, and the lengths of the same-route optical cables as table results; In the map displayed on the human-computer interaction interface, different routes are displayed using different colors, and optical cables on the same route are highlighted.
4. The transmission network topology routing analysis method according to claim 1, characterized in that: Also includes: For the existing network topology segment, the corresponding longitude and latitude data of the optical cable pipeline are retrieved by matching the topology optical cable table and the inter-office optical cable table. The A-end position and the Z-end position are combined into one element and stored in a list. For a newly created network topology segment, multiple routes are generated. For each route, a corresponding number of storage lists are created according to different route hops to store direct optical cables of two adjacent sites. The storage lists are arranged and combined using Python's itertools library tool to form several optical cable path combinations.
5. The transmission network topology routing analysis method according to claim 1, characterized in that: Also includes: Compare the longitude and latitude lists of the optical cables of the two routes in turn through a loop, and store the same longitude and latitude combinations of the pipelines in a new longitude and latitude routing list; When the same longitude and latitude exist, the corresponding pipeline section names are recorded in a list and output as Excel detailed analysis results; According to the A-end and Z-end positions of the pipeline, the length of each section of the same-route pipeline is calculated using the Pythagorean theorem module of the haversine library and stored in a list as an Excel detailed analysis result output.
6. The transmission network topology routing analysis method according to claim 2, characterized in that: The human-computer interaction interface is developed based on the python tool; in the module to be analyzed, at least route one, route two and route three are included; the loop traversal algorithm in the python source file is called to compare and analyze the longitude and latitude data of the optical cable segments of different routes in the module to be analyzed, including: In the module to be analyzed, two routes are used for mutually exclusive analysis, or three routes are used for mutually exclusive analysis in pairs.
7. A transmission network topology routing analysis device, characterized in that: include: Database module, used to build basic information database; The basic information database includes transmission network node data, inter-node optical cable information, optical cable section manhole longitude and latitude data, and inter-node optical cable connectivity diagram data; A data acquisition module, used to determine the network topology segment, the target optical cable and the target reachable path according to the transmission network node data, the inter-node optical cable information and the inter-node optical cable connectivity diagram data; A data analysis module, used for importing the network topology segment, the target optical cable and the target reachable path into modules to be analyzed with different routes respectively; A data operation module is used to call the loop traversal algorithm in the python source file, compare and analyze the longitude and latitude data of the optical cable segments of different routes in the module to be analyzed, and output the same-route optical cables existing in different routes, the names of the pipeline segments corresponding to the same-route optical cables, and the lengths of the same-route optical cables as analysis results; The longitude and latitude data of the optical cable segments in different routes are obtained based on the longitude and latitude data of the optical cable segments.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the transmission network topology routing analysis method as described in any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the transmission network topology routing analysis method according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the transmission network topology routing analysis method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Network topology determining method and device and computer-readable storage medium
CN107682211A
Method and equipment for analyzing same routing hidden dangers in transmission network
CN110858777A
Risk separation protection way-finding method and system for stability control service
CN111342889A
Route planning method, system and device for power SDH network and storage medium
CN112134616A
Method and system for positioning fault point of transmission optical cable based on GIS engine
CN114900232A
Cited By
GIS (Geographic Information System)-based reinsurance fixed telephone network service fault presentation method, system, equipment and medium
CN119835213A
Communication network fault analysis system and method
CN120034424A
Network planning method based on resource dynamic data
CN121357022A
