Method, device and equipment for determining optical cable laying path and computer storage medium

By using the shortest path algorithm in graph databases, the problem of low efficiency in optical cable laying path design in large-scale data networks using relational databases is solved, achieving more efficient path search and reasonable path planning.

CN118966495APending Publication Date: 2024-11-15CHINA MOBILE GROUP ANHUI +1
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202411027532.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In existing technologies, optical cable laying path design schemes based on relational databases suffer from low query efficiency and high memory space utilization in large-scale data networks, resulting in low path search efficiency.

Method used

The shortest path algorithm is used to find the fiber optic cable laying path in the graph database. By converting the data in the relational database into the graph structure of the graph database, the graph data is used to represent the topological relationships and connection information in the network, and the shortest path algorithm is combined to search for the path.

Benefits of technology

It improves the search efficiency of optical cable laying paths, reduces storage space, ensures the rationality and accuracy of path planning, and meets the design requirements of optical cable laying paths.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118966495A_ABST
    Figure CN118966495A_ABST
Patent Text Reader

Abstract

The invention discloses a method, device and equipment for determining an optical cable laying path and a computer storage medium, and belongs to the technical field of communication. According to the embodiment of the invention, configuration information of an optical cable laying path is acquired, wherein the configuration information comprises information of a starting node, information of a termination node and demand constraint information of the optical cable laying path; searching all nodes from the starting node to the ending node in a graph of the graph database by adopting a shortest path algorithm so as to obtain a plurality of process paths meeting the demand constraint information; wherein nodes in the graph represent bearing facilities in the optical cable laying process, edges in the graph represent bearing road sections between the bearing facilities, and the bearing road sections comprise the path lengths of the bearing road sections and the types of the bearing road sections; graphs of the graph database are generated based on data in the relational database; and determining a shortest path from the plurality of process paths as a target path. Therefore, the path searching efficiency in the process of determining the optical cable laying path can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and in particular, relates to a method, device, equipment, computer-readable storage medium and computer program product for determining an optical cable laying path. Background Art

[0002] With the rapid development of communication technology, the scale of optical fiber networks is constantly growing. As an important carrier of optical fiber networks, the demand for optical cable resources is also increasing. Therefore, in order to meet the demand for optical cable resources, it is necessary to continuously plan and lay optical cables. The design of the optical cable laying path plan is an important link in the optical cable planning, design and laying process, and it also plays a vital role in the construction and operation of the entire communication network. The design scheme of the optical cable laying path in the prior art is mainly implemented by an optical cable path search method based on a relational database, but it is limited by the data structure of the relational database in the form of a table classified by attributes and the retrieval method of creating an index through a key-associated table. When applied to large-scale data networks, it is necessary to create complex indexes and maintain a large number of node records during the retrieval process. Therefore, there is a problem of low path search efficiency in the process of determining the optical cable laying path due to low data query efficiency and high memory space utilization. Summary of the invention

[0003] The embodiments of the present application provide a method, apparatus, device, computer-readable storage medium, and computer program product for determining an optical cable laying path, which can improve the efficiency of searching for the path in the process of determining the optical cable laying path.

[0004] In a first aspect, an embodiment of the present application provides a method for determining an optical cable laying path, the method comprising:

[0005] Obtaining configuration information of the optical cable laying path, the configuration information including information of the starting node, information of the ending node and demand constraint information of the optical cable laying path;

[0006] The shortest path algorithm is used to search all nodes from the starting node to the ending node in the graph of the graph database to obtain multiple process paths that meet the demand constraint information; wherein the nodes in the graph represent the carrying facilities in the optical cable laying, and the edges in the graph represent the carrying sections between the carrying facilities, and the carrying sections include the path length and type of the carrying sections; the graph of the graph database is generated based on the data in the relational database;

[0007] From multiple process paths, the shortest path is determined as the target path.

[0008] In one practicable implementation, before searching for all nodes from the start node to the end node in the graph of the graph database to obtain multiple initial paths, the method further includes:

[0009] When receiving the data request information, the information of the optical cable laying bearing facilities and the information of the bearing sections between the bearing facilities in the relational database are imported into the graph database through the data synchronization interface;

[0010] A graph is generated based on the information of the carrying facilities and the information of the carrying road sections.

[0011] In an achievable implementation, after generating the graph based on the information of the carrying facilities and the information of the carrying road segments, the method further includes:

[0012] Within a preset time period, through a data synchronization interface, full information of the bearer facilities for laying optical cables and full information of the bearer sections between the bearer facilities are obtained from a relational database, or variable information of the bearer facilities for laying optical cables and variable information of the bearer sections between the bearer facilities are obtained from a relational database;

[0013] A graph is generated based on the full information of the carrying facilities and the full information of the carrying sections, or the variable information of the carrying facilities and the variable information of the carrying sections.

[0014] In an achievable implementation, after generating the graph based on the information of the carrying facilities and the information of the carrying road segments, the method further includes:

[0015] Receive a data synchronization request, where the synchronization request includes a request for full data or variable data;

[0016] Obtaining, through the data synchronization interface, full information of the bearer facilities for laying optical cables and full information of the bearer sections between the bearer facilities from the relational database according to the data synchronization request, or obtaining variable information of the bearer facilities for laying optical cables and variable information of the bearer sections between the bearer facilities from the relational database;

[0017] A graph is generated based on the full information of the carrying facilities and the full information of the carrying sections, or the variable information of the carrying facilities and the variable information of the carrying sections.

[0018] In one possible implementation, the process path includes a total path length, where the total path length is the sum of the path lengths corresponding to the edges between the nodes in the process path;

[0019] From multiple process paths, determine the shortest path as the target path, including:

[0020] From multiple process paths, the process path with the smallest total path length is selected as the shortest path, and the shortest path is taken as the target path.

[0021] In an achievable implementation, the demand constraint information includes that the process path does not include the target bearing facility and / or the type of the bearing section is the target type.

[0022] In a second aspect, an embodiment of the present application provides a device for determining an optical cable laying path, the device comprising:

[0023] An acquisition module is used to acquire configuration information of the optical cable laying path, wherein the configuration information includes information of the starting node, information of the ending node and demand constraint information of the optical cable laying path;

[0024] A search module is used to use the shortest path algorithm to search for all nodes from the starting node to the ending node in the graph of the graph database to obtain multiple process paths that meet the demand constraint information; wherein the nodes in the graph represent the bearing facilities in the optical cable laying, the edges in the graph represent the bearing sections between the bearing facilities, and the bearing sections include the path length of the bearing sections and the type of the bearing sections; the graph of the graph database is generated based on the data in the relational database;

[0025] The determination module is used to determine the shortest path from multiple process paths as the target path.

[0026] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement a method for determining an optical cable laying path as in any one of the embodiments of the first aspect.

[0027] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, a method for determining an optical cable laying path as in any one of the embodiments of the first aspect is implemented.

[0028] In a fifth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes a method for determining an optical cable laying path as in any one of the embodiments of the first aspect.

[0029] The method, apparatus, device, computer-readable storage medium and computer program product for determining an optical cable laying path in an embodiment of the present application obtains configuration information of the optical cable laying path, wherein the configuration information includes information of a starting node, information of an ending node and demand constraint information of the optical cable laying path, thereby providing basic data for determining the optical cable laying path; a shortest path algorithm is used to search for all nodes from the starting node to the ending node in a graph of a graph database to obtain multiple process paths that satisfy the demand constraint information, wherein the nodes in the graph represent bearing facilities in the optical cable laying, the edges in the graph represent bearing sections between the bearing facilities, the bearing sections include the path length of the bearing sections, the type of the bearing sections, and the graph of the graph database. It is based on data generation in a relational database. Combining a relational database with a graph database can store data more flexibly. At the same time, it can take advantage of the graph data to effectively represent the complex topological relationship and connection information in the network, and facilitate the use of the shortest path algorithm to search the process path from the starting node to the ending node. It can reduce the storage space occupied during the path planning process and improve the search efficiency of the laying path. It can also ensure that the optical cable laying path meets the planning and design requirements and ensure the rationality of the optical cable laying path planning; from multiple process paths, the shortest path is determined as the target path, and finally the shortest path is determined in the process path as the optimal optical cable laying path to ensure the rationality of the optical cable laying path. Therefore, the embodiment of the present application can improve the search efficiency of the path in the process of determining the optical cable laying path. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0031] Figure 1 It is a flowchart of a method for determining an optical cable laying path provided by an embodiment of the present application;

[0032] Figure 2 is a flowchart of a method for determining an optical cable laying path provided by another embodiment of the present application;

[0033] Figure 3 This is a structural schematic diagram of the shortest load-bearing path in the optical cable laying path provided by an embodiment of the present application;

[0034] Figure 4 This is a structural diagram of the bearer layer data conversion graph structure data provided by an embodiment of the present application;

[0035] Figure 5 It is a structural schematic diagram of a bearing diagram for determining an optical cable laying path provided by an embodiment of the present application;

[0036] Figure 6 It is a structural schematic diagram of a device for determining an optical cable laying path provided by an embodiment of the present application;

[0037] Figure 7 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0038] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0039] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0040] The existing optical cable laying path planning work is completed based on the pipeline resource management system on the GIS (Geographic Information System) platform. It mainly uses relational databases (such as Oracle, PostgreSQL, etc.) to store and manage network resource data, and uses SQL query language to associate pipelines, poles and other bearing layer data for cyclic and recursive calculations to achieve optical cable laying path planning and query, and then completes the search for optical cable laying paths to obtain the final optical cable laying path plan.

[0041] Relational databases use object-oriented modeling to store network resource data in different tables. For example, the manhole table stores the name, ownership, longitude and latitude of the manhole, and the pipeline section table stores the name, ownership and other attributes of the pipeline section, as well as the relationship attributes with the carrying facilities associated with both ends. Relational databases use a two-dimensional table structure. This modeling structure makes the relationship between pipeline network data clear and provides a basis for path search. By writing complex SQL statements, accurate path search can be achieved. However, due to the modeling form of relational databases, even if structured data is used and there are rich query conditions, there are still the following obvious disadvantages:

[0042] (1) Low query efficiency: Relational databases are usually queried using the SQL language. For large-scale retrieval of pipeline routing information, SQL queries become very complex and require a lot of computing resources and time.

[0043] (2) Difficulty in expressing complex relationships: Path search often involves complex relationships between a large number of carrying facilities and carrying sections. Relational databases are difficult to express these complex relationships intuitively, which increases the difficulty of query and analysis. At the same time, it is also necessary to maintain a set of node access records. As the number of nodes increases, the space complexity will also increase.

[0044] (3) Occupies a large amount of memory space: When the data scale involved in the path planning solution is large, it is necessary to search a large amount of carrying facilities and carrying road section data, and maintain a set of node access records. As the number of nodes increases, the space complexity and memory space usage will also increase.

[0045] Therefore, the optical cable path search method based on relational database performs well in small-scale data networks. However, it is limited by the data structure of the relational database in the form of a table classified by attributes and the retrieval method of creating an index through a key-associated table. When applied to large-scale data networks, it is necessary to create complex indexes and maintain a large number of node records during the retrieval process. The calculation amount and space complexity are too high. Therefore, there is a problem of low path search efficiency in the process of determining the optical cable laying path due to low data query efficiency and high memory space utilization.

[0046] In order to solve the problems in the prior art, the embodiments of the present application provide a method, device, equipment, computer-readable storage medium and computer program product for determining an optical cable laying path. The method for determining an optical cable laying path provided by the embodiments of the present application is first introduced below.

[0047] Figure 1 FIG. 1 is a flow chart of a method for determining an optical cable laying path provided by an embodiment of the present application. Figure 1As shown, the method may include: steps S110 to S130.

[0048] S110: Acquire configuration information of the optical cable laying path, where the configuration information includes information of the starting node, information of the ending node, and demand constraint information of the optical cable laying path.

[0049] In the embodiment of the present application, the optical cable laying path is an optical cable line for laying optical cables. The optical cable line needs to pass through various optical cable bearing facilities as line support points.

[0050] The configuration information of the optical cable laying path refers to the information of the bearer facilities that can be used for laying during the optical cable laying process, the bearer section information between the bearer facilities that can be used for laying, and the demand constraint information that affects the laying path.

[0051] The information on the carrying facilities may include manholes, electric poles, supporting points, optical junction boxes, optical fiber distribution boxes, sites and other facility resource points, as well as their name, property rights, longitude and latitude and other attribute information.

[0052] The information of the load-bearing section may include the type of the load-bearing section and the path length of the load-bearing section. In one example, the type of the load-bearing section may be a type of load-bearing section such as a pipe section or a pole section connecting the load-bearing facilities. In one embodiment, the information of the load-bearing section may also include information such as occupancy rate, life cycle status, and location.

[0053] Demand constraint information includes information such as distance factors that affect the laying path, geographical information factors of the construction area, and business demand factors that need to be considered in the optical cable path planning and design work. These influencing factors can be quantified as the impact weights of the load-bearing sections and planning constraints in the optical cable laying path planning process.

[0054] Among them, the distance factor refers to the actual length of the optical cable laid in the optical cable path planning. The distance factor affects the material cost, construction time, manpower input, and attenuation and delay of the optical cable laying; the geographical information factors of the construction area can include topography, climate conditions, environmental factors (such as soil moisture, rock distribution, etc.) and existing infrastructure (such as roads, bridges, rivers, etc.). These geographical factors can also affect the material cost, construction time, and manpower input of the optical cable laying. For example, laying optical cables along the green belts of urban roads is cheaper than laying them through cement hardened pavement. Construction within the scope of townships is more suitable for considering overhead lines. Business demand factors refer to the need for the design of optical cable paths to meet specific business needs and constraints. For example, some areas may not allow the laying of optical cables due to policy restrictions or safety considerations, or they must avoid some ongoing large-scale construction areas. In the optical cable path planning, the distance factor of optical cable laying, the geographical information factors of the construction area, and the business demand factors can be quantified as the impact weight of the load-bearing section and the planning constraints, so as to determine the optical cable laying path that meets the cost-effectiveness rules and meets the business needs and constraints.

[0055] Obtain the information of the bearing facilities used for laying the optical cable laying path, the bearing section information between the bearing facilities that can be used for laying, and the demand constraint information affecting the laying path, including the preset starting node and ending node, that is, the information of the starting bearing facility and the ending bearing facility, as well as the demand constraint information including the distance factor, the geographical information factor of the construction area, and the business demand factor.

[0056] S120: Using the shortest path algorithm to search for all nodes from the start node to the end node in the graph of the graph database, so as to obtain multiple process paths that meet the demand constraint information.

[0057] Among them, the nodes in the graph represent the carrying facilities in the optical cable laying, and the edges in the graph represent the carrying sections between the carrying facilities. The carrying sections include the path length and the type of the carrying sections. The graph of the graph database is generated based on the data in the relational database.

[0058] In the embodiment of the present application, a graph of a graph database can be generated based on data in a relational database, and the carrying facilities in the optical cable laying in the relational database can be converted into nodes in the graph in the graph database. For example, manholes, electric poles, support points, optical junction boxes, optical fiber distribution boxes, sites, etc. can be converted into nodes in the graph. The carrying sections in the optical cable laying in the relational database can be converted into edges in the graph in the graph database, and the edges in the graph can also include the path length of the carrying section and the type of the carrying section.

[0059] In one embodiment, the path length of the load-bearing section can be quantified by the length, occupancy, life cycle status, location and other information of the load-bearing section and the corresponding distance factors affecting the laying of optical cables, geographical information factors of the construction area and business demand factors. The types of load-bearing sections may include pipelines, pole sections, bridges, rivers, overhead lines, etc., and the demand constraint information may limit the types of load-bearing sections.

[0060] In the embodiment of the present application, the shortest path algorithm refers to an algorithm that obtains the shortest path by taking a path with the smallest sum of weights on each edge in the path from a certain vertex to another vertex along the edge of the graph. The following algorithms are used to solve the shortest path problem, including Dijkstra algorithm, Bellman-Ford algorithm, Floyd algorithm and SPFA algorithm. Demand constraint information refers to information on planning constraints preset after quantification based on distance factors in the optical cable laying path, geographic information factors of the construction area, and business demand factors. For example, the optical cable laying path does not pass through the manhole of the bearing facility, the optical cable laying path only passes through the pipeline section, does not take overhead lines, does not pass through bridges, etc.

[0061] In the embodiments of the present application, graph theory is a mathematical theory that studies graph structures. In practical applications, graph structures are often used to represent various networks, such as communication networks, transportation networks, social networks, etc., and the Dijkstra algorithm is an important algorithm in graph theory. The Dijkstra algorithm can find the shortest path from one node to another in these networks, solve the shortest path problem in the weighted graph, and has a wide range of practical application value. For example, the relational database and graph database path search time table shown in Table 1 are statistical data in an actual query process. According to different routing depths, the path search is performed using both relational databases and graph databases. Under the same hardware conditions, the query results and the corresponding database time consumption are obtained.

[0062] Serial number Routing Depth Number of query results Relational databases take time Graph database time consumption 1 1 3=3 0.2s 1s 2 2 <![CDATA[3 2 =9]]> 0.5s 0.01s 3 3 <![CDATA[3 3 =27]]> 0.6s 0.168s 4 4 <![CDATA[3 4 =81]]> 1s 1.359s 5 5 <![CDATA[3 5 =243]]> 6s 2.132s 6 10 <![CDATA[3 10 =59049]]> 142s 4.323s 7 20 <![CDATA[3 20 =3486784]]> 5376s 5.761s 8 50 <![CDATA[3 50 =7.8886×10 13 ]]> ∞ 12.921s 9 100 <![CDATA[3 100 =7.627×10 48 ]]> ∞ 18.737s

[0063] Table 1

[0064] Assume that it is necessary to search for the optical cable laying path between two locations, which passes through the manhole pipeline network in the middle, and each manhole is associated with 3 pipeline segments on average. As can be seen from the table, when the routing depth is within 4 segments, the query results of the two data structures can be obtained in seconds; when the routing depth is 5 segments, the query time of the relational database has obvious waiting time; when the routing depth reaches 10 segments, the query time of the relational database is 142 seconds, while the query time of the graph database is still within 5 seconds; when the routing depth is more than 20 segments, the query time of the relational database has reached 5776 seconds, and the time consumption has increased exponentially, while the query time of the graph database is relatively stable, although the data has also increased, but the growth rate is slower. It can be seen that the query time of the relational database is relatively acceptable when the routing depth is shallow, but with the increase of routing depth, the query time shows a significant growth trend, and even when the routing depth is large, it may be impossible to handle. In contrast, when processing large routing depths, the query time of graph databases increases relatively slowly. Although there is an increase, the growth rate is relatively stable. This gives graph databases certain advantages when processing large-scale network data, and using graph databases is more efficient than relational databases.

[0065] The shortest path algorithm is used to search for all nodes from the starting node to the ending node in the graph of the graph database. These nodes and the edges between the nodes are used to form a path from the starting node to the ending node. The nodes and the edges between the nodes that meet the demand constraint information are screened out. The connection relationship between the starting node, the ending node, and the nodes and the edges between the nodes that meet the demand constraint information in the graph is used to determine multiple process paths composed of different nodes and the edges between the nodes. Each process path can reach the ending node from the initial node, wherein the nodes in the graph represent the bearing facilities in the optical cable laying, and the edges in the graph represent the bearing sections between the bearing facilities. The bearing sections include the path length of the bearing sections and the type of the bearing sections. The graph of the graph database is generated based on the data in the relational database.

[0066] For example, Figure 2 As shown in the flowchart of a method for determining an optical cable laying path provided by an embodiment of the present application, the method for determining an optical cable laying path may also include the following steps:

[0067] S210: Put the starting node into the visited array.

[0068] As shown in Table 2, after obtaining the bearing graph for carrying optical cable laying, it is known that node A in the graph is set as the starting node, node V5 is set as the ending node, and the demand constraint information is that the optical cable laying adopts the overhead mode, that is, the constraint condition is to limit the bearing facilities and the bearing section is an overhead line, where the distance from all nodes to the starting node is infinite, the distance from the starting node to itself is 0, the visited array S and the path array have been initialized, the visited array can place the traversed nodes, and the path array can place the searched process path. Put the starting node into the visited array S, and the nodes put into the visited array S will not repeat the distance value with other nodes during the subsequent traversal.

[0069] step Array S has been visited V2 V3 V4 V5 V6 V7 1 A ∞ ∞ ∞ ∞ ∞ ∞

[0070] Table 2

[0071] S220: Breadth-first search the nodes connected to the starting node, determine the nodes that meet the required constraint information and calculate the distance value.

[0072] As shown in Table 3, starting from the starting node, the breadth-first search algorithm is used to find all nodes directly connected to node A in the load-bearing graph, and their distance values ​​to the starting node are updated. At this time, there is a direct path between node A and nodes V2, V4, V6, and V7, and there is no direct path to other nodes, so the distance to node A is represented by the "infinity" symbol. However, the load-bearing facility corresponding to node V7 is a manhole, which does not meet the design requirements of the overhead line constraint condition. It is considered that there is no direct path between node A and node V7, and the distance to node A is represented by the "infinity" symbol instead. The load-bearing section corresponding to the edge between node V2 and node A meets the design requirements of the overhead line, but because there is municipal construction nearby, that is, the demand constraint information is affected by the geographical information factors of the construction area, the weight of the edge between node V2 and node A is set to 10, that is, the distance between node V2 and node A is 10, and each process path from node A to nodes V2, V4, and V6 is added to the path array.

[0073] step Array S has been visited V2 V3 V4 V5 V6 V7 1 A 10 ∞ 3 ∞ 3 ∞

[0074] Table 3

[0075] S230: Search for nodes connected to the nodes connected to the start node, determine the nodes that meet the required constraint information and update the distance value.

[0076] As shown in Table 4, for each node directly connected to the client of the starting node A, further search for other nodes connected to it, excluding the nodes connected to it in the visited array at this time, and update the distance value from the new node to the starting node in the path with reference to the judgment standard of the demand constraint information in step S220. Search the paths from node A to other nodes through node V6 respectively, excluding node A in the visited array, if there is a direct path from node V6 to another node through an edge, update the process path from this node to node A through node V6 to the path array, and the weight of the edge between this node and node V6 is accumulated to the process path distance value from this node to node A through node V6.

[0077] step Array S has been visited V2 V3 V4 V5 V6 V7 1 A 10 ∞ 3 ∞ 3 ∞ 2 A—V2 10 17 15 ∞ 12 ∞ 2 A—V4 8 7 3 7 9 ∞ 2 A—V6 5 ∞ 9 4 3 ∞

[0078] Table 4

[0079] S240: Construct a shortest path tree.

[0080] Construct a shortest path tree based on all process paths in the path array and all nodes in the process paths.

[0081] S250: Optimize and adjust the shortest path tree.

[0082] According to the specific business requirements and constraints, the shortest path tree is optimized by selecting a better starting node, adjusting the path order, etc. For example, if the distance value from the starting node to its connecting node in the path of the shortest path tree is mostly infinite or the distance value exceeds the normal value, other nodes close to node A are selected as new starting nodes.

[0083] S260: Test and verify the process path.

[0084] The process path is verified to ensure that it meets the requirements of the planning and design plan, that is, the demand constraint information, and the process path that does not meet the planning and design plan is abandoned. For example, according to the design plan requirements, the optical cable laying path only passes through the pipeline section, does not go through overhead lines, and does not pass through bridges.

[0085] S270: determining in sequence whether the nodes connected to the searched nodes include an end node, and searching for a process path including a start node and an end node.

[0086] Determine whether the nodes connected to the searched nodes include the terminating node. If the nodes connected to the searched nodes do not include the terminating node, determine the nodes connected to the searched nodes as the starting nodes, and repeat steps S210 to S260 until the nodes connected to each searched node include the terminating node, and obtain all process paths from the starting node to the terminating node as shown in Table 5.

[0087] step Array S has been visited V2 V3 V4 V5 V6 V7 1 A 10 ∞ 3 ∞ 3 ∞ 2 A—V2 10 17 15 ∞ 12 ∞ 2 A—V4 8 7 3 7 9 ∞ 2 A—V6 5 ∞ 9 4 3 ∞ 3 A—V2—V3 ∞ ∞ 21 ∞ ∞ ∞ 3 A—V2—V4 ∞ 19 15 22 21 ∞ 3 A—V2—V6 ∞ ∞ 18 13 12 ∞ 4 A—V2—V3—V4 ∞ ∞ ∞ 28 ∞ ∞

[0088] Table 5

[0089] According to Table 5, the value of each column is the total length of the path from node A to the node corresponding to the column, and the path of the visited array S column is the process path from node A to the node corresponding to the column. The process path corresponding to the minimum total length of the path from the starting node to the ending node is determined to be the shortest path, that is, the target path for the optical cable laying. Exemplarily, the minimum total length of the path from node A to node V5 is 4, and the corresponding process path A-V6-V5 is the target path for the optical cable laying.

[0090] S130: Determine the shortest path from multiple process paths as the target path.

[0091] After determining multiple process paths consisting of different nodes and edges between nodes that can reach the terminal node from the initial node, the shortest path is determined from these process paths as the target path from the initial node to the terminal node, that is, the final optical cable laying path.

[0092] Exemplarily, as shown in Table 5, there are multiple process paths from the initial node to the terminal node and the total path length of each process path. The value of each column is the total path length from node A to the node corresponding to the column. The path of the visited array S column is the process path from node A to the node corresponding to the column. The total path length of the minimum path from node A to node V5 is 4, and the corresponding process path A-V6-V5 is the shortest path. Figure 3 The structural diagram of the shortest load-bearing path in the optical cable laying path is shown in the figure. Figure 3 The middle arrow indicates that the path from node A to node V6 and then to node V5 is the shortest path, and the target path for laying the optical cable is obtained.

[0093] This embodiment obtains the configuration information of the optical cable laying path, which includes the information of the starting node, the ending node and the demand constraint information of the optical cable laying path, and provides basic data for determining the optical cable laying path; the shortest path algorithm is used to search all nodes from the starting node to the ending node in the graph of the graph database to obtain multiple process paths that meet the demand constraint information, wherein the nodes in the graph represent the bearing facilities in the optical cable laying, the edges in the graph represent the bearing sections between the bearing facilities, and the bearing sections include the path length and the type of the bearing sections. The graph of the graph database is generated based on the data in the relational database, and the relational The combination of a type database and a graph database can store data more flexibly. At the same time, the graph data can effectively represent the complex topological relationships and connection information in the network, making it easier to use the shortest path algorithm to search for the process path from the start node to the end node, which can reduce the storage space occupied during the path planning process and improve the search efficiency of the laying path. It can also ensure that the optical cable laying path meets the planning and design requirements and ensure the rationality of the optical cable laying path planning; from multiple process paths, the shortest path is determined as the target path, and finally the shortest path is determined in the process path as the optimal optical cable laying path to ensure the rationality of the optical cable laying path. Therefore, the embodiment of the present application can improve the search efficiency of the path in the process of determining the optical cable laying path.

[0094] In one embodiment, the method may further include: generating a summary report of the shortest path plan for the optical cable laying path, including information such as the number of load-bearing sections in the shortest path plan, the total length of the path, the number of load-bearing facilities passed, etc., and the report may be output to a front-end interface for designers to analyze and select. This embodiment can generate a summary report containing information such as the number of load-bearing sections of the shortest path, the total length of the path, the number of load-bearing facilities passed, etc., which facilitates intuitive and comprehensive analysis of the optical cable laying path to ensure the effectiveness of the optical cable laying path.

[0095] As another implementation of the present application, before step S120: using the shortest path algorithm to search for all nodes from the start node to the end node in the graph of the graph database to obtain multiple process paths that meet the demand constraint information, the method further includes the following steps:

[0096] S121: When receiving the data request information, the information of the optical cable laying bearing facilities and the information of the bearing sections between the bearing facilities in the relational database are imported into the graph database through the data synchronization interface.

[0097] In the embodiment of the present application, information about the carrying facilities for laying optical cables and information about the carrying sections between the carrying facilities are stored in a relational database of the pipeline resource management system.

[0098] When receiving data request information, a data synchronization interface is added to the pipeline resource management system, and the information of the bearing facilities and the bearing sections between the bearing facilities stored and maintained in the relational database of the pipeline resource management system are imported into the graph database, and the bearing facilities in the optical cable laying in the relational database are converted into node storage in the graph database, and the bearing sections in the optical cable laying in the relational database are converted into edge storage in the graph database. The relational database is set as the main database, and the graph database is set as the secondary database, that is, the relevant original data of the information of the bearing facilities maintained in the main database and the information of the bearing sections between the bearing facilities are stored in the graph database in the form of nodes and edges, and the data in the graph database is the secondary database data relative to the original relational database.

[0099] S122: Generate a map based on the information of the carrying facilities and the information of the carrying road sections.

[0100] like Figure 4 As shown in the structural diagram of the bearer layer data conversion graph structure data, the bearer layer data includes the data of the bearer facilities and the bearer sections. Based on the information of the bearer facilities in the graph database and the information of the bearer sections between the bearer facilities, the bearer facilities are converted into nodes in the graph in the graph database, and the bearer sections are converted into edges in the graph in the graph database, and finally a graph containing the information of the bearer facilities and the information of the bearer sections between the bearer facilities is generated.

[0101] In one embodiment, before step S210: placing the start node into the visited array, the method may further include:

[0102] Step S211: Based on the configuration information of the optical cable laying path, define the path bearing diagram and initialize the array.

[0103] The information of the bearer facilities used for laying based on the optical cable laying path, the bearer section information between the bearer facilities that can be used for laying, and the related constraint information affecting the laying path, such as Figure 5 As shown in the structural schematic diagram of the bearing graph for determining the optical cable laying path, a structural schematic diagram of a bearing graph is defined with bearing facilities as nodes and bearing sections as edges. The bearing graph includes each node and edges representing the connection relationship between nodes.

[0104] For example, in order to open the dedicated line service for customer A, it is necessary to build a new optical cable from the nearest access point V5 optical junction box to customer A. The customer is in the suburbs and the optical cable is laid in an overhead mode. Therefore, node A in the bearer graph is set as the starting node, and node V5 in the bearer graph is set as the ending node. The demand constraint information is that the optical cable is laid in an overhead mode. The obtained constraint conditions are that the bearing facilities are restricted and the bearing section is an overhead line. As shown in Table 6, the distances from all nodes to the starting node are set to infinity, and the distance from the starting node to itself is set to 0. The visited array S and the path array are initialized. The visited array is used to place the traversed nodes, and the path array is used to place the searched process path.

[0105] step Array S has been visited V2 V3 V4 V5 V6 V7 1 0 ∞ ∞ ∞ ∞ ∞ ∞

[0106] Table 6

[0107] This embodiment imports the information of the optical cable laying bearing facilities and the bearing sections between the bearing facilities in the relational database into the graph database through the data synchronization interface when receiving the data request information, and generates a graph based on the bearing facilities information and the bearing sections information. The graph of the graph database is generated based on the data in the relational database. Combining the relational database and the graph database can store data more flexibly, and the graph data can effectively represent the complex topological relationships and connection information in the network.

[0108] As another implementation of the present application, after generating a graph based on the information of the carrying facilities and the information of the carrying road sections in step S122, the method further includes the following steps:

[0109] S123: Within a preset time period, obtain the full information of the optical cable laying bearing facilities and the full information of the bearing sections between the bearing facilities from the relational database through the data synchronization interface, or obtain the variable information of the optical cable laying bearing facilities and the variable information of the bearing sections between the bearing facilities from the relational database.

[0110] In an embodiment of the present application, a cache component can also be introduced between the relational database and the graph database to achieve periodic full synchronization or real-time incremental synchronization to batch synchronize the updated data of the main database to the secondary database according to different needs and scenarios, thereby ensuring data consistency and integrity.

[0111] Within a preset time period, the full information of the optical cable laying carrying facilities and the full information of the carrying sections between the carrying facilities are obtained from the relational database through the data synchronization interface and synchronized to the graph database to achieve periodic full synchronization, or the variable information of the optical cable laying carrying facilities and the variable information of the carrying sections between the carrying facilities are obtained from the relational database and synchronized to the graph database to achieve real-time incremental synchronization, so as to ensure the consistency and integrity of the information data of the carrying facilities and the carrying sections.

[0112] S124: Generate a graph based on the full information of the bearing facilities and the full information of the bearing sections, or the variable information of the bearing facilities and the variable information of the bearing sections.

[0113] Based on the full information of the carrying facilities and the full information of the carrying sections between the carrying facilities in the graph database, or based on the variable information of the carrying facilities and the variable information of the carrying sections between the carrying facilities in the graph database, the carrying facilities are converted into nodes in the graph in the graph database, and the carrying sections are converted into edges in the graph in the graph database. Finally, a graph containing the information of the carrying facilities and the information of the carrying sections between the carrying facilities is generated periodically or in real time.

[0114] This embodiment periodically obtains the full information of the optical cable laying bearing facilities and the full information of the bearing sections between the bearing facilities from the relational database and synchronizes them into the graph database, or obtains the variable information of the optical cable laying bearing facilities and the variable information of the bearing sections between the bearing facilities from the relational database in real time and synchronizes them into the graph database, so that a graph containing the information of the bearing facilities and the information of the bearing sections between the bearing facilities can be generated periodically or in real time, thereby ensuring the consistency and integrity of the graph data and providing a guarantee for the accuracy of the optical cable laying path.

[0115] As another implementation of the present application, after generating a graph based on the information of the carrying facilities and the information of the carrying road sections in step S122, the method further includes the following steps:

[0116] S125: receiving a data synchronization request, where the synchronization request includes a request for full data or variable data.

[0117] A data synchronization request is received, where the synchronization request may include a request to synchronize and update the full data or the variable data.

[0118] S126: Through the data synchronization interface, according to the data synchronization request, the full information of the optical cable laying bearing facilities and the full information of the bearing sections between the bearing facilities are obtained from the relational database, or the variable information of the optical cable laying bearing facilities and the variable information of the bearing sections between the bearing facilities are obtained from the relational database.

[0119] Through the data synchronization interface, in response to the data synchronization request, the full information of the optical cable laying carrying facilities and the full information of the carrying sections between the carrying facilities are obtained from the relational database and synchronized into the graph database, or the variable information of the optical cable laying carrying facilities and the variable information of the carrying sections between the carrying facilities are obtained from the relational database and synchronized into the graph database, so as to realize batch synchronization of the updated data of the main database to the secondary database according to the demand, so as to ensure the consistency and integrity of the data.

[0120] S127: Generate a graph based on the full information of the bearing facilities and the full information of the bearing sections, or the variable information of the bearing facilities and the variable information of the bearing sections.

[0121] Based on the full information of the carrying facilities and the full information of the carrying sections between the carrying facilities in the graph database, or based on the variable information of the carrying facilities and the variable information of the carrying sections between the carrying facilities in the graph database, the carrying facilities are converted into nodes in the graph in the graph database, and the carrying sections are converted into edges in the graph in the graph database. Finally, a graph containing the information of the carrying facilities and the information of the carrying sections between the carrying facilities is generated periodically or in real time.

[0122] This embodiment receives a data synchronization request including a request for full data or variable data, and obtains the full information of the optical cable laying bearing facilities and the full information of the bearing sections between the bearing facilities from the relational database through the data synchronization interface, or synchronizes the variable information of the optical cable laying bearing facilities and the variable information of the bearing sections between the bearing facilities into the graph database, and generates a graph containing the information of the bearing facilities and the information of the bearing sections between the bearing facilities based on the synchronized data, so that the graph containing the information of the bearing facilities and the information of the bearing sections between the bearing facilities can be flexibly generated according to the synchronization request, thereby ensuring the consistency and integrity of the graph data and providing a guarantee for the accuracy of the optical cable laying path.

[0123] As another implementation of the present application, step S130: using the shortest path algorithm to determine a target path that satisfies the demand constraint information from multiple initial paths includes the following steps:

[0124] S1301: The process path includes a total path length, and the total path length is the sum of the path lengths corresponding to the edges between the nodes in the process path.

[0125] According to the path length of the load-bearing section, the path length corresponding to the corresponding edge can be obtained. The path length corresponding to the edge can be expressed as the weight of the edge. Then, according to the weights of each edge on each process path, the total length of each process path is calculated. That is, the total length of the process path is obtained by summing up the weights of all edges on each process path.

[0126] S1302: Determine the shortest path as the target path from among the multiple process paths, including: selecting a process path with the shortest total path length as the shortest path from among the multiple process paths, and taking the shortest path as the target path.

[0127] The process path with the smallest sum of weights among all process paths is determined as the shortest path, and the shortest path is taken as the target path, that is, the final optical cable laying path.

[0128] This implementation calculates the sum of the weights of each process path according to the weights of each edge on each process path, and determines the process path with the minimum sum of weights as the target path. Based on the weights corresponding to the corresponding edges of the load-bearing sections quantified based on the attribute information of the load-bearing sections and the influencing factors, the shortest path algorithm can be used to determine the optimal optical cable laying path that meets the cost-effectiveness principle from multiple paths, which can improve the effectiveness and accuracy of the optical cable laying path.

[0129] As another implementation of the present application, the demand constraint information includes that the type of the target bearing facility and / or bearing section not included in the process path is the target type.

[0130] Demand constraint information includes information such as distance factors that affect the laying path, geographical information factors of the construction area, and business demand factors that need to be considered in the planning and design of the optical cable path. These influencing factors can be quantified as the influence weights of the load-bearing sections in the optical cable laying path planning process and planning constraints. For example, the constraint condition can be that the process path does not pass through load-bearing facilities such as manholes and / or load-bearing sections such as bridges, rivers, and overhead lines.

[0131] This embodiment satisfies the design requirements of the optical cable laying path and takes into account the factors affecting the optical cable laying by limiting the bearing facilities, namely the bearing sections, in the process path, thereby ensuring the rationality of the optical cable laying path.

[0132] Based on the same concept, the embodiment of the present application provides a device for determining the optical cable laying path. Figure 6 A device for determining an optical cable laying path provided in an embodiment of the present application is described in detail. Figure 6 It is a structural schematic diagram of a device for determining an optical cable laying path shown in an embodiment of the present application.

[0133] like Figure 6 As shown, the device for determining the optical cable laying path may include:

[0134] The acquisition module is used to acquire the configuration information of the optical cable laying path, wherein the configuration information includes the information of the starting node, the ending node and the demand constraint information of the optical cable laying path.

[0135] A search module is used to use the shortest path algorithm to search for all nodes from the starting node to the ending node in the graph of the graph database to obtain multiple process paths that meet the demand constraint information; wherein the nodes in the graph represent the bearing facilities in the optical cable laying, and the edges in the graph represent the bearing sections between the bearing facilities, and the bearing sections include the path length of the bearing sections and the type of the bearing sections; the graph of the graph database is generated based on the data in the relational database.

[0136] The determination module is used to determine the shortest path from multiple process paths as the target path.

[0137] In one embodiment, the search module is also used to import the information of the optical cable laying bearing facilities and the bearing section information between the bearing facilities in the relational database into the graph database through the data synchronization interface before using the shortest path algorithm to search for all nodes from the starting node to the ending node in the graph of the graph database to obtain multiple process paths that meet the demand constraint information. When receiving data request information, the search module is also used to import the information of the optical cable laying bearing facilities and the bearing section information between the bearing facilities in the relational database into the graph database through the data synchronization interface; and generate a graph based on the information of the bearing facilities and the bearing section information.

[0138] In one embodiment, the search module is also used to obtain the full information of the optical cable-laying bearing facilities and the full information of the bearing sections between the bearing facilities from the relational database through the data synchronization interface within a preset time period after generating the graph based on the information of the bearing facilities and the information of the bearing sections, or to obtain the variable information of the optical cable-laying bearing facilities and the variable information of the bearing sections between the bearing facilities from the relational database; generate the graph based on the full information of the bearing facilities and the full information of the bearing sections, or the variable information of the bearing facilities and the variable information of the bearing sections.

[0139] In one embodiment, the search module is also used to receive a data synchronization request after generating a graph based on the information of the bearer facilities and the information of the bearer sections, the synchronization request including a request for full data or variable data; through a data synchronization interface, according to the data synchronization request, obtain the full information of the bearer facilities for laying optical cables and the full information of the bearer sections between the bearer facilities from a relational database, or obtain the variable information of the bearer facilities for laying optical cables and the variable information of the bearer sections between the bearer facilities from a relational database; generate a graph based on the full information of the bearer facilities and the full information of the bearer sections, or the variable information of the bearer facilities and the variable information of the bearer sections.

[0140] In one embodiment, the process path includes a total path length, which is the sum of the path lengths corresponding to the edges between the nodes in the process path. The determination module is also used to determine the shortest path as the target path from multiple process paths, including: selecting the process path with the shortest total path length as the shortest path from multiple process paths, and taking the shortest path as the target path.

[0141] In one embodiment, the acquisition module is further used to require that the constraint information includes that the target process path does not include the target bearing facility and / or the type of the bearing section is the target type.

[0142] Figure 6 Each module in the device shown has the function of realizing Figure 1 and Figure 2 The functions of each step in the process can achieve the corresponding technical effects, which will not be described in detail here for the sake of brevity.

[0143] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present application is shown.

[0144] The electronic device may include a processor 710 and a memory 720 storing computer program instructions.

[0145] Specifically, the processor 710 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0146] The memory 720 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 720 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 720 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 720 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 720 is a non-volatile solid-state memory.

[0147] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to the first aspect of the present disclosure.

[0148] The processor 710 implements any one of the methods for determining an optical cable laying path in the above embodiments by reading and executing computer program instructions stored in the memory 720 .

[0149] In one example, the electronic device may further include a communication interface 730 and a bus 740. Figure 7 As shown, the processor 710, the memory 720, and the communication interface 730 are connected via a bus 740 and communicate with each other.

[0150] The communication interface 730 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0151] Bus 740 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 710 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.

[0152] The electronic device can execute the method for determining the optical cable laying path in the embodiment of the present application, thereby realizing the combination Figure 1 and Figure 2 Describes the billing method.

[0153] In addition, in combination with the method for determining the optical cable laying path in the above embodiment, the embodiment of the present application can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the methods for determining the optical cable laying path in the above embodiment is implemented.

[0154] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed, implements any one of the methods for determining an optical cable laying path in the above embodiments.

[0155] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0156] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0157] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0158] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.

[0159] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A method for determining an optical cable laying path, characterized in that: include: Acquire configuration information of the optical cable laying path, wherein the configuration information includes information of the starting node, information of the ending node and demand constraint information of the optical cable laying path; A shortest path algorithm is used to search for all nodes from the starting node to the ending node in a graph of a graph database to obtain multiple process paths that meet the demand constraint information; wherein the nodes in the graph represent the bearing facilities in the optical cable laying, the edges in the graph represent the bearing sections between the bearing facilities, and the bearing sections include the path length and the type of the bearing sections; the graph of the graph database is generated based on data in a relational database; From the plurality of process paths, a shortest path is determined as a target path.

2. The method according to claim 1, characterized in that Before using the shortest path algorithm to search for all nodes from the starting node to the ending node in the graph of the graph database to obtain multiple process paths that meet the demand constraint information, the method also includes: In case of receiving the data request information, the information of the optical cable laying bearing facilities and the information of the bearing sections between the bearing facilities in the relational database are imported into the graph database through the data synchronization interface; The map is generated based on the information of the carrying facilities and the information of the carrying road sections.

3. The method according to claim 2, characterized in that After generating the graph based on the information of the bearing facility and the information of the bearing road segment, the method further includes: Within a preset time period, obtaining, through a data synchronization interface, from the relational database the full amount information of the bearer facilities for laying optical cables and the full amount information of the bearer sections between the bearer facilities, or obtaining, from the relational database, the variable information of the bearer facilities for laying optical cables and the variable information of the bearer sections between the bearer facilities; A graph is generated based on the full information of the bearing facilities and the full information of the bearing sections, or the variable information of the bearing facilities and the variable information of the bearing sections.

4. The method according to claim 2, characterized in that After generating the graph based on the information of the bearing facility and the information of the bearing road segment, the method further includes: Receiving a data synchronization request, wherein the synchronization request includes requesting full data or variable data; Obtaining, through the data synchronization interface, full information of the bearer facilities for laying optical cables and full information of the bearer sections between the bearer facilities from the relational database according to the data synchronization request, or obtaining variable information of the bearer facilities for laying optical cables and variable information of the bearer sections between the bearer facilities from the relational database; A graph is generated based on the full information of the bearing facilities and the full information of the bearing sections, or the variable information of the bearing facilities and the variable information of the bearing sections.

5. The method according to claim 1, characterized in that The process path includes a total path length, and the total path length is the sum of the path lengths corresponding to the edges between the nodes in the process path; The step of determining the shortest path from the plurality of process paths as the target path comprises: From the multiple process paths, the process path with the shortest total path length is selected as the shortest path, and the shortest path is used as the target path.

6. The method according to claim 1, characterized in that The demand constraint information includes that the process path does not include the target bearing facility and / or the type of the bearing section is the target type.

7. A device for determining an optical cable laying path, characterized in that: The device comprises: An acquisition module, used to acquire configuration information of the optical cable laying path, wherein the configuration information includes information of the starting node, information of the ending node and demand constraint information of the optical cable laying path; A search module, used for searching all nodes from the starting node to the ending node in a graph of a graph database by using a shortest path algorithm, so as to obtain multiple process paths that satisfy the demand constraint information; wherein the nodes in the graph represent the bearing facilities in the optical cable laying, the edges in the graph represent the bearing sections between the bearing facilities, and the bearing sections include the path length and the type of the bearing sections; the graph of the graph database is generated based on the data in the relational database; The determination module is used to determine the shortest path from the multiple process paths as the target path.

8. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the method for determining the optical cable laying path according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for determining an optical cable laying path according to any one of claims 1 to 6 is implemented.

10. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the method for determining an optical cable laying path as described in any one of claims 1 to 6.

Citation Information

Cited By

  • Cable laying management method and system for communication construction

    CN119477649A

  • Cable laying management method and system for communication construction

    CN119477649B

  • Cable line optimization method, device and equipment based on artificial intelligence reasoning model

    CN119598654A

  • Optical cable laying scheme generation method and device, equipment and storage medium

    CN120562083A