Atomic topology generation method and system based on equipment association relationship, and atomic topology display method and system based on equipment association relationship
By defining atomic nodes and links to generate intermediate layer data and constructing a visual assembly template, the problems of code duplication and data inconsistency in existing topology graph construction are solved, realizing unified generation and customized display of topology graphs and reducing system performance requirements.
Patent Information
- Application Number
- CN202511387623.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-26
- Publication Date
- 2025-12-16
AI Technical Summary
The existing topology map construction requires manual development, resulting in code duplication and non-reusability, and the data is inconsistent in different scenarios, which cannot meet the needs of personalized display.
By defining atomic nodes and links, intermediate layer data is generated, and a visual assembly template is built. The topology diagram is constructed using a drag-and-drop method. The topology diagram is generated using custom or system-built-in SQL, reducing system performance requirements and supporting customized displays for different scenarios.
It achieves unified generation and display of topology graphs, reduces system performance requirements, supports customized topology graph construction and display in different scenarios, and improves code reusability and data consistency.
Smart Images

Figure CN121151231A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of computer technology, specifically relating to an atomic topology generation method, display method, and system based on device association relationships. Background Technology
[0002] A network topology diagram is a network structure diagram composed of network node devices and communication media, which can intuitively show the relationships between nodes. Currently, there is no unified topology platform within the resource system; all topology scenarios rely entirely on manual development to build corresponding topology diagrams. For example, displaying a topology diagram for a specific business scenario requires manual development of targeted code. Each time a different scenario is developed, it needs to be redeveloped, and the data built each time is inconsistent, resulting in data non-reusability across different system scenarios. Furthermore, even for business scenarios with the same name, the connection modes and names of the subordinate devices differ across regions, further increasing the difficulty of reusing customized code. Summary of the Invention
[0003] The purpose of this invention is to provide an atomic topology generation method, display method, and system based on device association relationships, so as to solve the problems of redundant code development, non-reusable code, and inability to generate and display topology diagrams according to requirements in the construction of topology diagrams.
[0004] This invention is achieved through the following technical solution:
[0005] The atomic topology generation method based on device association includes the following steps:
[0006] Define atomic nodes, and based on the defined atomic nodes, define links connecting two atomic nodes to construct atomic links formed by atomic nodes and links;
[0007] Based on the constructed atomic links, the intermediate layer data corresponding to the atomic links is generated;
[0008] Visual assembly templates are built based on constructed atomic links;
[0009] The topology diagram is generated by calling intermediate layer data based on the visual assembly template.
[0010] In some embodiments of the present invention, SQL is used to define the link connecting two atomic nodes.
[0011] In some embodiments of the present invention, the step of generating intermediate layer data corresponding to the constructed atomic links includes:
[0012] The system automatically constructs SQL by querying a specified link table, and generates intermediate layer data based on the constructed SQL.
[0013] Alternatively, you can define a custom SQL statement and generate intermediate layer data based on that statement.
[0014] In some embodiments of the present invention, the step of constructing a visual assembly template based on the constructed atomic links includes:
[0015] Atomic links are dragged to the topology building area and the same atomic nodes in the atomic links are automatically associated as the same atomic node.
[0016] In some embodiments of the present invention, the atomic nodes are determined to be the same based on their IDs.
[0017] In some embodiments of the present invention, the method further includes the step of storing intermediate layer data and visual assembly templates into a relational database.
[0018] On the other hand, the present invention also provides an atomic topology display method based on device association. Using the atomic topology generation method based on device association, a corresponding visualization assembly template is selected according to the topology diagram structure to be displayed, and the generated topology diagram is displayed.
[0019] In some embodiments of the present invention, the visual assembly template is displayed on the same interface.
[0020] On the other hand, the present invention also provides an atomic topology generation system based on device association, for executing the aforementioned atomic topology generation method based on device association, comprising:
[0021] The first module is used to define atomic nodes;
[0022] The second module is used to define the link connecting two atomic nodes and construct the atomic link;
[0023] The third module is used to generate intermediate layer data corresponding to atomic links;
[0024] The fourth module is used for building visual assembly templates;
[0025] The fifth module is used to call intermediate layer data based on the visual assembly template to generate a topology diagram.
[0026] On the other hand, the present invention also provides an atomic topology display system based on device association, which uses the aforementioned atomic topology generation system based on device association to execute the aforementioned atomic topology display method based on device association, including:
[0027] The sixth module is used to display the generated topology diagram based on the selected visualization assembly template.
[0028] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0029] This invention defines unified atomic nodes, constructs atomic links based on atomic nodes, generates intermediate layer data based on atomic links, and constructs visual assembly templates. When generating a topology diagram, only the visual assembly template needs to be selected, and the corresponding intermediate layer data can be called to generate a topology diagram with the corresponding structure. In this way, when displaying the topology diagram, only the formatted stored data needs to be read, which reduces the demand on system performance. Furthermore, based on the defined atomic links, customized topology diagram generation and display can be performed according to different scenarios and display requirements.
[0030] Based on custom SQL, various atomic links can be customized, thereby enabling the construction of various customized visual assembly templates, which well meet the display needs in different scenarios. Attached Figure Description
[0031] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0032] Figure 1 This is a flowchart of the atomic topology generation method in an embodiment of the present invention.
[0033] Figure 2 This is a schematic diagram illustrating the operation of defining atomic nodes in an embodiment of the present invention.
[0034] Figure 3 This is a schematic diagram illustrating the operation of constructing an atomic link based on automatically generated SQL in an embodiment of the present invention.
[0035] Figure 4 This is a schematic diagram illustrating the operation of constructing an atomic link based on a custom SQL statement in an embodiment of the present invention.
[0036] Figure 5 This is a topology scenario to be constructed in an embodiment of the present invention.
[0037] Figure 6 This is a schematic diagram illustrating the process of constructing a visual assembly template in an embodiment of the present invention.
[0038] Figure 7 This is a schematic diagram of the second operation process for constructing a visual assembly template in an embodiment of the present invention.
[0039] Figure 8 This is a schematic diagram of the operation process of constructing a visual assembly template in an embodiment of the present invention.
[0040] Figure 9 This is a topology map generated in an embodiment of the present invention.
[0041] Figure 10 This is a schematic diagram illustrating the display of a visual assembly template on the same interface in an embodiment of the present invention. Detailed Implementation
[0042] To make the objectives, technical solutions, and advantages of this application clearer, specific embodiments of this application will be described in further detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely for explaining this application and not for limiting it. It should also be noted that, for ease of description, only the parts relevant to this application are shown in the drawings, not all of them. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe operations (or steps) as sequential processes, many of these operations can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but may also have additional steps not included in the drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0043] Existing topology display methods typically extract raw data directly from the corresponding tables through code, then assemble it into the corresponding topology data, and display it on the interface. This approach involves a large amount of computation and requires a large amount of relational data, placing high demands on system performance.
[0044] This topology display mode usually displays all the levels and nodes of the topology graph layer by layer according to the relationships between the nodes, based on the extracted relational data. However, for different users and usage scenarios, it may not be necessary to display all the levels and nodes. Therefore, the existing topology display method cannot meet the customized display needs of different scenarios.
[0045] This invention defines a unified intermediate layer model (containing points and lines). All data in the intermediate layer model can be extracted by a timer during system idle time and formatted into a standard point-line-point data model. Thus, during display, only the formatted simple data needs to be read and displayed, reducing the demand on system performance.
[0046] By uniformly defining edges and points, all data is extracted based on edges; that is, points are defined, while edges are the foundation of all data. The definition process is as follows:
[0047] 1) Define atomic nodes
[0048] An edge is formed by connecting two points with a line. First, define the points at both ends of the edge, and define some basic information about the points, including their names and codes.
[0049] 2) Define atomic links
[0050] After defining the points, it is necessary to define the data source for the lines. There are two ways to obtain the data source: one is to query the specified link table built into the system, and the other is to query complex data using SQL, such as for some virtual links or artificially abstracted links.
[0051] Existing topology diagrams all rely on code splicing without a graphical interface for operation and splicing; this invention uses a drag-and-drop interface for splicing, uses defined atomic links to build a visual assembly template, and extracts intermediate data from the visual assembly template to generate an atomic topology diagram.
[0052] Existing topology diagrams typically correspond to one URL or one interface for each scene. In this invention, different visualization assembly templates are used to display topology diagrams for different scenes. Different visualization assembly templates can be placed at a unified entry point for easy display and operation.
[0053] In some embodiments of the present invention, the atomic topology generation method based on device association relationships is described with reference to... Figure 1 This includes the following steps:
[0054] S01, Constructing atomic links
[0055] To construct atomic links, edges and vertices are uniformly defined, and all atomic link data is based on edge extraction; that is, edges are the foundation of atomic links. The process of constructing atomic links is as follows:
[0056] S011, Define atomic nodes
[0057] An edge is formed by connecting two points with a line; therefore, it is necessary to define the points at both ends of the edge. The definition of an atomic node is achieved by defining some basic information about that node, such as its name encoding. (Refer to...) Figure 2 As shown.
[0058] The ID data information of the defined atomic nodes is shown in Table 1.
[0059] Table 1. Atomic Node ID Data Information Table
[0060]
[0061]
[0062] S012, Define atomic links
[0063] After defining the points at both ends of the edge, the data source of the line is defined, resulting in an atomic link in an abstract sense.
[0064] Data sources can be obtained in the following two ways:
[0065] One approach is to use the system's built-in query function to look up a specific link table, such as optical path relationships, as shown in the reference table. Figure 3 As shown;
[0066] Using this approach, the system will automatically construct SQL based on the atomic nodes at both ends and the specifications of the link (such as optical fiber path), query and generate data, and generate the intermediate layer data corresponding to the atomic link.
[0067] SQL (Structured Query Language) is a special-purpose programming language, a database query and programming language used to access, query, update, and manage relational database systems.
[0068] Another approach is to query data using SQL, for example, for some virtual links or artificially abstracted links.
[0069] In this approach, the user needs to construct the corresponding SQL, and based on the constructed SQL, intermediate layer data corresponding to the atomic link is generated, as shown below. Figure 4 As shown.
[0070] The SQL example is shown below:
[0071] select id,a_device_id as a_physic_device_id,
[0072] z_device_id as z_physic_device_id,
[0073] a_port_id, z_port_id,
[0074] spec_id,
[0075] rs.access_code as name,
[0076] rs.access_code as code,
[0077] from
[0078] rm_servicers
[0079] where
[0080] exists(select id from cm_device cdwhere cd.id=rs.a_device_id andcd.network_role_id='80206751'and cd.spec_id='1024600001')and exists(select id from cm_device cd where cd.id=rs.z_device_id and cd.network_role_id='80206750' and cd.spec_id='1024600001').
[0081] The ID data information of the constructed atomic links is shown in Table 2.
[0082] Table 2. Atomic Link ID Data Information Table
[0083] Id Name name Spec_id Specification ID A_node_confg_id A-end atomic node A_node_config_name A-end atomic node name Z_node_config_id Z-terminal atomic nodes Z_node_config_name Z-end atomic node name Processing_details Processing details Remark Remark Code coding Effective Is it effective? Extract Extract or not Layer hierarchy Run_sql Run SQL
[0084] S02. Construct a relational database, generate intermediate layer data for each atomic link based on the constructed SQL, and store it in the relational database;
[0085] By defining atomic links, each atomic link can be defined through data. By traversing the atomic link database, data that meets the conditions can be extracted. Since the attributes of atomic nodes are not the same, a relational database is constructed and the data structure is defined.
[0086] Relational databases are used to store intermediate layer data, such as ID, code, and name. Other attributes are customized by other interfaces. This relational database only represents the relationships between data.
[0087] Intermediate layer data corresponds to the data of physical devices in the network or virtual devices used to connect upper and lower layers. Defining an atomic link is equivalent to defining a data template. The association between the atomic link and the intermediate layer data is established through this data template. After building a visual assembly template based on the atomic link, the visual assembly template can call the intermediate layer data of each corresponding level, thereby quickly generating the topology diagram of the corresponding structure.
[0088] S03. Construct a visual assembly template based on the defined atomic links, and store the constructed visual assembly template into a relational database;
[0089] The data structure for visualizing the assembly templates and template relationships is shown in Tables 3 and 4, respectively.
[0090] Table 3 Data Structure Table for Visual Assembly Template
[0091]
[0092]
[0093] Table 4 Data Structure Table of Template Relationship
[0094] Id Parent_id parent id Child_id subid Layer hierarchy Template_id template id Remark Remark Associate_node_id Related node ID Name name Code coding Load Initial loading? Self-circulation Self-loop Cycle_number Self-loop count
[0095] S04. Based on the visual assembly template, call the intermediate layer data to generate the corresponding topology diagram.
[0096] Based on custom SQL, different atomic links can be constructed, enabling customization of atomic links. Based on custom atomic links, various visual assembly templates with different display structures can be assembled. For different users, only the nodes that the user cares about can be displayed, or nodes that do not need to be displayed to the user can be selectively hidden.
[0097] The method for constructing atomic topology diagrams of the present invention will be described in detail below with reference to specific embodiments.
[0098] like Figure 5 The telecommunications equipment used in a typical home broadband network consists of, in order, an OLT device, a primary optical splitter, a secondary optical splitter, and an ONU device (optical modem). The process of constructing this communication network is as follows:
[0099] Step S01: Construct atomic links
[0100] For a system, the relationships between devices are maintained through direct or indirect links. For example, the OLT device and the optical splitter are directly connected by optical fiber, which is a direct link relationship. The OLT device and the ONU device are connected through a primary optical splitter and a secondary optical splitter, which is an indirect link relationship.
[0101] Regardless of the type of connection, these relationships can be identified, and batch extraction of this relational data can be achieved by running data scripts.
[0102] For the above communication network scenarios, the following types of atomic links can be identified, including:
[0103] a) OLT equipment—first-stage beam splitter;
[0104] b) OLT equipment—secondary beam splitter;
[0105] c) OLT equipment—ONU equipment;
[0106] d) First-stage beam splitter – Second-stage beam splitter;
[0107] e) Primary optical splitter—ONU equipment;
[0108] f) Secondary optical splitter—ONU equipment.
[0109] Based on the decomposed atomic links, the required atomic topology diagram can be constructed and displayed according to the completeness of the network topology diagram to be shown in different scenarios.
[0110] For example, when it is not necessary to display the primary and secondary optical splitters, the atomic link of "OLT device - ONU device" can be directly used when constructing the atomic topology diagram, without the need to construct other atomic links, so as to realize the personalized construction and display of the topology diagram.
[0111] Although only the topology of "OLT device - ONU device" was constructed and displayed, the relationship between the two did not change in terms of data structure. The intermediate devices were simply hidden when the topology was constructed and displayed.
[0112] Step S02: Construct a relational database, generate intermediate layer data for each atomic link based on the constructed SQL, and store it in the relational database;
[0113] Step S03: Construct a visual assembly template
[0114] In this step, a visual assembly template is built based on the defined atomic links. This includes the following steps:
[0115] S031. Select the defined atomic link "OLT Device - First-Level Optical Splitter" and drag it to the topology construction area, referring to... Figure 6 As shown;
[0116] like Figure 6 In the atomic link interface, you can search for and display selectable atomic links. For example, when searching for "OLT", you can display all atomic links that involve the atomic node "OLT device" in the atomic link interface.
[0117] S032. Select the defined atomic link "First-level splitter - Second-level splitter" and drag it to the topology construction area, referring to... Figure 7 As shown;
[0118] Since the IDs of the "first-level optical splitter" in the atomic link in step S031 and the "first-level optical splitter" in the atomic link in step S032 are the same when defining the data, it is determined that the two belong to the same device; therefore, the "first-level optical splitters" of the two atomic links can be automatically associated.
[0119] S033. Select the defined atomic link "Secondary Optical Splitter - ONU Device" and drag it to the topology construction area to build a visual assembly template, such as... Figure 8 As stated above.
[0120] Step S04: Generate topology graph
[0121] Based on the visual assembly template constructed in step S03, the intermediate layer data generated by the query is parsed to construct the atomic topology diagram, referring to... Figure 9 As shown.
[0122] On the other hand, in some embodiments of the present invention, the atomic topology display method based on device association is to use the above-mentioned atomic topology generation method based on device association, select the corresponding visualization assembly template according to the topology graph structure to be displayed, and display the generated topology graph.
[0123] The visual assembly template is displayed on the same interface for reference. Figure 10 The visual assembly template has a unified entry point to facilitate the display and operation of the topology diagram.
[0124] Assign different template usage permissions to different users, and restrict the templates that users can use based on permission settings.
[0125] On the other hand, the present invention also provides an atomic topology generation system based on device association, for executing the aforementioned atomic topology generation method based on device association, comprising:
[0126] The first module is used to define atomic nodes;
[0127] The second module is used to define the link connecting two atomic nodes and construct the atomic link;
[0128] The third module is used to generate intermediate layer data corresponding to atomic links;
[0129] The fourth module is used for building visual assembly templates;
[0130] The fifth module is used to call intermediate layer data based on the visual assembly template to generate a topology diagram.
[0131] On the other hand, the present invention also provides an atomic topology display system based on device association, which uses the aforementioned atomic topology generation system based on device association to execute the aforementioned atomic topology display method based on device association, including:
[0132] The sixth module is used to display the generated topology diagram based on the selected visualization assembly template.
[0133] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Any simple modifications or equivalent changes made to the above embodiments based on the technical essence of the present invention shall fall within the protection scope of the present invention.
Claims
1. An atomic topology generation method based on device association, characterized in that, Includes the following steps: Define atomic nodes, and based on the defined atomic nodes, define links connecting two atomic nodes to construct atomic links formed by atomic nodes and links; Based on the constructed atomic links, the intermediate layer data corresponding to the atomic links is generated; Visual assembly templates are built based on constructed atomic links; The topology diagram is generated by calling intermediate layer data based on the visual assembly template.
2. The atomic topology generation method based on device association as described in claim 1, characterized in that, The link connecting two atomic nodes is defined using SQL.
3. The atomic topology generation method based on device association as described in claim 2, characterized in that, The steps for generating intermediate layer data corresponding to the constructed atomic links include: The system automatically constructs SQL by querying a specified link table, and generates intermediate layer data based on the constructed SQL. Alternatively, you can define a custom SQL statement and generate intermediate layer data based on that statement.
4. The atomic topology generation method based on device association as described in claim 1, characterized in that, The steps for constructing a visual assembly template based on the constructed atomic links include: Atomic links are dragged to the topology building area and the same atomic nodes in the atomic links are automatically associated as the same atomic node.
5. The atomic topology generation method based on device association as described in claim 4, characterized in that, Determine whether the atomic nodes are the same based on their IDs.
6. The atomic topology generation method based on device association as described in claim 1, characterized in that, It also includes the step of storing intermediate layer data and visual assembly templates into a relational database.
7. An atomic topology display method based on device association, characterized in that, Using the atomic topology generation method based on device association as described in any one of claims 1-6, a corresponding visualization assembly template is selected according to the topology diagram structure to be displayed, and the generated topology diagram is displayed.
8. The atomic topology display method based on device association as described in claim 7, characterized in that, The visual assembly template is displayed on the same interface.
9. An atomic topology generation system based on device association, characterized in that, The method for performing the atomic topology generation method based on device association as described in any one of claims 1-6 includes: The first module is used to define atomic nodes; The second module is used to define the link connecting two atomic nodes and construct the atomic link; The third module is used to generate intermediate layer data corresponding to atomic links; The fourth module is used for building visual assembly templates; The fifth module is used to call intermediate layer data based on the visual assembly template to generate a topology diagram.
10. An atomic topology display system based on device association, characterized in that, Using the atomic topology generation system based on device association as described in claim 9, the atomic topology display method based on device association as described in claim 7 or 8 is executed, including: The sixth module is used to display the generated topology diagram based on the selected visualization assembly template.
Citation Information
Patent Citations
Topological link group flexible display method and device
CN114143202A
Template-based network topology automatic generation method and system
CN118353789A
Method for generating network link topological graph based on graph technology
CN119420656A
Network topology generation method and device, equipment, medium and program product
CN119629066A
Data processing method and apparatus, device, and storage medium
WO2024160273A1