Network topological graph generation method and device, electronic equipment and readable medium
Through automated tools, network equipment information and generation rules are obtained and processed, and target network topology maps are generated, which solves the problem of time-consuming and error-prone problems of manually drawing topology maps, and realizes efficient and intelligent topology map generation.
Patent Information
- Application Number
- CN202411770683.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-04-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Designers manually draw network topology diagrams to understand the network structure, adding devices, establishing connections, adding comments and markers, takes a lot of time, especially in complex projects that are prone to errors.
By obtaining network device information of the preset network architecture, we obtain pending generation rules, historical generation rules and general generation rules, extract target generation rules based on priority rules, and generate target network topology maps based on network device information.
It reduces manual operations, reduces error rate, improves the efficiency and accuracy of network topology map generation, and provides a highly efficient and intelligent topology map generation solution.
Smart Images

Figure CN119814574A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network technology, and in particular to a method for generating a network topology map, a device for generating a network topology map, an electronic device and a computer-readable medium. Background Art
[0002] With the rapid development of Internet technology, computer networks have become an indispensable part of almost all organizations and enterprises. Network topology diagrams play a key role in the design, planning, implementation and maintenance of networks. Designers can draw network topology diagrams manually, but designers usually need to understand the network structure, add devices, establish connections, add annotations and tags, which often takes a lot of time, especially in complex projects. Summary of the invention
[0003] The embodiments of the present invention provide a method, device, electronic device and computer-readable storage medium for generating a network topology map to solve the problem that designers who manually draw topology maps usually need to understand the network structure, and then add devices, establish connections, add annotations and marks, which often takes a lot of time.
[0004] An embodiment of the present invention discloses a method for generating a network topology graph, the method comprising:
[0005] Obtaining network device information of a preset network architecture, and based on the network device information, obtaining a to-be-processed generation rule of a network topology map corresponding to the network architecture;
[0006] Obtaining historical generation rules corresponding to a preset historical network architecture and general generation rules of the network topology diagram;
[0007] Based on a preset priority rule, extracting a target generation rule from the to-be-processed generation rule, the historical generation rule, and the general generation rule;
[0008] Based on the target generation rule and the network device information, a target network topology map corresponding to the network architecture is generated.
[0009] Optionally, the to-be-processed generation rule includes a to-be-processed device location rule and / or a to-be-processed device connection rule; the network architecture includes at least one network device; and the to-be-processed generation rule of the network topology map corresponding to the network architecture is obtained based on the network device information, including:
[0010] Based on at least one of the quantity information, size information, heat dissipation requirement information, network requirement information, security requirement information and expansion requirement information of the network device, the location rule of the device to be processed and / or the connection rule of the device to be processed of the network topology diagram are obtained.
[0011] Optionally, the priority rule is that the priority of the to-be-processed generation rule is higher than that of the historical generation rule, and the priority of the historical generation rule is higher than that of the general generation rule.
[0012] Optionally, the generating a target network topology map corresponding to the network architecture based on the target generation rule and the network device information includes:
[0013] Based on the target generation rule and the network device information, acquiring the location information and connection information of the network device;
[0014] Based on the location information and the connection information, an initial network topology diagram corresponding to the network architecture is generated.
[0015] Optionally, the generating a target network topology map corresponding to the network architecture based on the target generation rule and the network device information includes:
[0016] In response to a user's adjustment operation on the initial network topology map, the initial network topology map is adjusted to generate a target network topology map corresponding to the network architecture.
[0017] Optionally, the method comprises:
[0018] Determining whether the target network topology map satisfies the target generation rule;
[0019] In the case where the target network topology graph satisfies the target generation rule, the target network topology graph is converted into a network topology graph in a target format.
[0020] Optionally, the method comprises:
[0021] In response to a user's modification operation on the network device information and / or the target generation rule, the target network topology map is modified.
[0022] The embodiment of the present invention further discloses a device for generating a network topology map, the device comprising:
[0023] An information acquisition module, used to acquire network device information of a preset network architecture, and based on the network device information, acquire a to-be-processed generation rule of a network topology map corresponding to the network architecture;
[0024] A rule acquisition module, used to acquire historical generation rules corresponding to a preset historical network architecture and a general generation rule of the network topology diagram;
[0025] An extraction module, used for extracting a target generation rule from the to-be-processed generation rule, the historical generation rule and the general generation rule based on a preset priority rule;
[0026] The target network topology map generation module is used to generate a target network topology map corresponding to the network architecture based on the target generation rule and the network device information.
[0027] Optionally, the to-be-processed generation rule includes a to-be-processed device location rule and / or a to-be-processed device connection rule; the network architecture includes at least one network device; and the information acquisition module includes:
[0028] The rule acquisition submodule is used to obtain the location rules of the device to be processed and / or the connection rules of the device to be processed in the network topology diagram based on at least one of the quantity information, size information, heat dissipation requirement information, network requirement information, security requirement information and extended requirement information of the network device.
[0029] Optionally, the priority rule is that the priority of the to-be-processed generation rule is higher than that of the historical generation rule, and the priority of the historical generation rule is higher than that of the general generation rule.
[0030] Optionally, the target network topology map generating module includes:
[0031] An information acquisition submodule, used to acquire the location information and connection information of the network device based on the target generation rule and the network device information;
[0032] The initial network topology map generation submodule is used to generate an initial network topology map corresponding to the network architecture based on the location information and the connection information.
[0033] Optionally, the target network topology map generating module includes:
[0034] The adjustment submodule is used to adjust the initial network topology map in response to the user's adjustment operation on the initial network topology map, and generate a target network topology map corresponding to the network architecture.
[0035] Optionally, the device comprises:
[0036] A judgment module, used to judge whether the target network topology map satisfies the target generation rule;
[0037] The conversion module is used to convert the target network topology map into a network topology map in a target format when the target network topology map meets the target generation rule.
[0038] Optionally, the device comprises:
[0039] The modification module is used to modify the target network topology map in response to a user's modification operation on the network device information and / or the target generation rule.
[0040] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0041] The memory is used to store computer programs;
[0042] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.
[0043] The embodiment of the present invention further discloses one or more computer-readable media on which instructions are stored. When executed by one or more processors, the processors are enabled to execute the method described in the embodiment of the present invention.
[0044] The embodiments of the present invention include the following advantages:
[0045] In an embodiment of the present invention, the network device information of the preset network architecture is obtained, and based on the network device information, the pending generation rules of the network topology map corresponding to the network architecture are obtained; the historical generation rules corresponding to the preset historical network architecture and the general generation rules of the network topology map are obtained; based on the preset priority rules, the target generation rules are extracted from the pending generation rules, the historical generation rules and the general generation rules; based on the target generation rules and the network device information, the target network topology map corresponding to the network architecture is generated. By collecting the general generation rules of the network topology map, the pending generation rules and the historical generation rules involved in the network topology map of the current project, the target generation rules of the network topology map of the current project are automatically calculated according to the rule priority, and then the intelligent logic is used to automatically layout the device positions of the entered devices according to all the calculated rules, and the device connections are automatically generated, that is, the network topology map is automatically generated. Manual operations are reduced and the error rate is reduced. The present invention effectively solves the problem of traditional manual drawing of topology maps, provides a highly efficient and intelligent topology map generation solution, further improves resource utilization and operation efficiency, and effectively controls labor costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a flowchart of the steps of a method for generating a network topology map provided in an embodiment of the present invention;
[0047] Figure 2 It is a flowchart of the steps of another method for generating a network topology map provided in an embodiment of the present invention;
[0048] Figure 3 It is a flowchart of the steps of another method for generating a network topology map provided in an embodiment of the present invention;
[0049] Figure 4 It is a structural block diagram of a device for generating a network topology map provided in an embodiment of the present invention;
[0050] Figure 5 It is a structural block diagram of another device for generating a network topology map provided in an embodiment of the present invention;
[0051] Figure 6 is a block diagram of an electronic device provided in an embodiment of the present invention;
[0052] Figure 7 is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0053] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0054] To facilitate understanding of the technical solutions and technical effects of the embodiments of the present invention, the prior art of the present invention is briefly described below.
[0055] With the rapid development of Internet technology, computer networks have become an indispensable part of almost all organizations and enterprises. Network topology diagrams play a key role in the design, planning, implementation and maintenance of networks. Through network topology diagrams, network administrators can have a deeper understanding of network architecture, quickly identify fault points, optimize network performance, adjust network configurations, and ensure network security. In short, as a key tool for network management and maintenance, network topology diagrams provide an intuitive visual display of network structure, helping administrators and engineers to understand, plan and maintain computer networks more effectively.
[0056] The drawing of network topology diagrams usually relies on professional software tools, which provide a rich library of icons and functions, allowing users to display various devices and connection relationships in the network in a concise and clear manner.
[0057] However, these software tools usually do not contain any business information. Therefore, when using these software tools to draw network topology diagrams, designers need to first determine the type of network topology diagram to be drawn, such as point-to-point, bus, ring, tree, mesh or hybrid topology. Then, select the appropriate software tool for drawing. In the process of drawing the network topology diagram, designers need to manually add network devices, establish connections between different network devices, add annotations and tags. Finally, export the network topology diagram for construction personnel to use. Construction personnel can perform construction according to the drawings and compare the cabinets and equipment on site. The method of designers manually drawing network topology diagrams has at least the following problems:
[0058] First, designers usually need to understand the network structure when manually drawing topology diagrams, and then add devices, establish connections, add annotations and labels, which often takes a lot of time, especially in complex projects.
[0059] Second, in the process of drawing the topology map, due to the lack of business information such as equipment information, connection rules, and computer room information, designers need to complete the topology map design based on survey results and personal experience. When there are a large number of network devices, manual drawing is prone to errors. For example, in a complex network topology structure, manual drawing is prone to errors such as disordered connection lines and inaccurate node positions. In addition, if the designer lacks business verification, misunderstandings or drawing errors may occur, resulting in inaccurate topology maps, which will cause construction interruptions. Subsequently, the designer needs to modify the inaccurate topology map and provide it to the construction personnel again. This iterative process causes a lot of time waste and reduces efficiency.
[0060] Third, after the designer manually draws the topology map, it becomes difficult to modify the topology map. Especially when the network structure changes or the equipment and connections need to be adjusted, the topology map cannot be automatically updated and the designer needs to manually search and update it, which is very costly to modify.
[0061] Fourth, the topology diagrams manually drawn by designers often cannot achieve multi-person collaboration and can only rely on a single person to complete the drawing of the entire topology diagram.
[0062] Reference Figure 1 , shows a flowchart of a method for generating a network topology diagram provided in an embodiment of the present invention, which may specifically include the following steps:
[0063] Step 101, obtaining network device information of a preset network architecture, and based on the network device information, obtaining a to-be-processed generation rule of a network topology graph corresponding to the network architecture;
[0064] In an embodiment of the present invention, an automated tool can be used to automatically generate a target network topology diagram of the network architecture of any project. The automated tool can obtain network device information of the network architecture of the project. Then, based on the network device information of the network architecture of the project, the pending generation rules of the network topology diagram corresponding to the network architecture are obtained. It should be noted that the pending generation rules are specifically set for the network architecture of the project and meet the specific needs of the project.
[0065] In some embodiments of the present invention, the to-be-processed generation rule includes a to-be-processed device location rule and / or a to-be-processed device connection rule; the network architecture includes at least one network device; and the to-be-processed generation rule of the network topology map corresponding to the network architecture is obtained based on the network device information, including:
[0066] Based on at least one of the quantity information, size information, heat dissipation requirement information, network requirement information, security requirement information and expansion requirement information of the network device, the location rule of the device to be processed and / or the connection rule of the device to be processed of the network topology diagram are obtained.
[0067] In an embodiment of the present invention, the network architecture of the project includes at least one network device. The network device includes a switch, a router, a server, etc. The to-be-processed generation rules of the network topology diagram of the network architecture of the project include the to-be-processed device location rules and / or the to-be-processed device connection rules.
[0068] In an embodiment of the present invention, the network device information includes at least one of the quantity information, size information, heat dissipation requirement information, network requirement information, security requirement information, and extended requirement information of the network device. Based on at least one of the quantity information, size information, heat dissipation requirement information, network requirement information, security requirement information, and extended requirement information of the network device, the automation tool can obtain the location rules of the devices to be processed and / or the wiring rules of the devices to be processed in the network topology diagram. Specifically, the physical size of the network device will affect its placement in the data center or rack. The heat dissipation requirements of the network device may determine that a certain space needs to be maintained between the devices, or specific heat dissipation facilities are required. Network requirement information, such as network performance requirements such as bandwidth, latency, and redundant paths, will affect the connection method between network devices. Security requirement information involves the security policy of the network, such as which devices need to be isolated, which connections need to be encrypted, etc. Extended requirement information refers to the future scalability of the network, and some connections or locations may need to be reserved to accommodate future growth.
[0069] In a specific example, the wiring rules for the devices to be processed are determined based on the network connection requirements of the specific business processes or applications of the project. Based on the network traffic and latency requirements, the physical distribution of network devices is determined to optimize network performance, thereby determining the location rules for the devices to be processed. Based on the security requirements information of the network, determine which devices need to be isolated and which connections need to be encrypted to determine the location rules and wiring rules for the devices to be processed. Based on the scalability and flexibility requirements of the network, determine whether special connection strategies are required. Based on factors such as the physical size, heat dissipation requirements, and power requirements of the network devices, determine the location rules for the devices to be processed. Evaluate the maintenance and operation requirements of the equipment and obtain the location rules for the devices to be processed, thereby ensuring that the location of the network devices is convenient for daily management and maintenance.
[0070] Step 102, obtaining a historical generation rule corresponding to a preset historical network architecture and a general generation rule of the network topology diagram;
[0071] In an embodiment of the present invention, a historical generation rule of a historical network topology diagram of a historical network architecture of a historical project can be obtained. The historical generation rule includes a location rule and a connection rule of a device.
[0072] In the embodiment of the present invention, a general generation rule of a network topology diagram may be obtained, and the general generation rule includes a general device location rule and a device connection rule.
[0073] Step 103, based on a preset priority rule, extracting a target generation rule from the to-be-processed generation rule, the historical generation rule and the general generation rule;
[0074] In the embodiment of the present invention, the target generation rule is extracted from the to-be-processed generation rule, the historical generation rule and the general generation rule according to the priority rules related to the to-be-processed generation rule, the historical generation rule and the general generation rule.
[0075] In some embodiments of the present invention, the priority rule is that the priority of the to-be-processed generation rule is higher than that of the historical generation rule, and the priority of the historical generation rule is higher than that of the general generation rule.
[0076] In the embodiment of the present invention, according to the rule that the priority of the pending generation rule is higher than the historical generation rule, and the priority of the historical generation rule is higher than the priority of the general generation rule, the pending generation rule, the historical generation rule and the general generation rule are screened, and the target generation rule more suitable for the current project is extracted from the pending generation rule, the historical generation rule and the general generation rule. The target generation rule includes the target device location rule and the device connection rule.
[0077] Step 104: Generate a target network topology map corresponding to the network architecture based on the target generation rule and the network device information.
[0078] In an embodiment of the present invention, the automation tool can generate a target network topology diagram corresponding to the network architecture of the current project according to the target generation rules and network device information.
[0079] In some embodiments of the present invention, generating a target network topology map corresponding to the network architecture based on the target generation rule and the network device information includes:
[0080] Based on the target generation rule and the network device information, acquiring the location information and connection information of the network device;
[0081] Based on the location information and the connection information, an initial network topology diagram corresponding to the network architecture is generated.
[0082] In an embodiment of the present invention, the automation tool can calculate the location information of each network device and the connection information between network devices based on the device location rules and device connection rules of the target and the network device information of the network architecture of the current project.
[0083] In an embodiment of the present invention, based on the location information of each network device and the connection information between network devices, the automation tool can generate an initial network topology diagram corresponding to the network architecture of the current project.
[0084] In an embodiment of the present invention, the automated tool can verify the initial network topology diagram to determine whether the initial network topology diagram meets the target generation rules, whether the device positions in the initial network topology diagram meet the target device position rules, and whether the connections between the devices meet the target device connection rules.
[0085] In some embodiments of the present invention, generating a target network topology map corresponding to the network architecture based on the target generation rule and the network device information includes:
[0086] In response to a user's adjustment operation on the initial network topology map, the initial network topology map is adjusted to generate a target network topology map corresponding to the network architecture.
[0087] In the embodiment of the present invention, the automation tool can display the initial network topology diagram on the visualization interface of the user terminal. The user can adjust the initial network topology diagram displayed on the visualization interface by operating the user terminal.
[0088] In an embodiment of the present invention, in response to the user's adjustment operation on the initial network topology map, the automation tool can adjust the initial network topology map to generate a target network topology map of the network architecture of the current project. It should be noted that the user can be multiple people, and in an embodiment of the present invention, multiple users can use the automation tool to collaboratively create a target network topology map.
[0089] In some embodiments of the invention, the method comprises:
[0090] Determining whether the target network topology map satisfies the target generation rule;
[0091] In the case where the target network topology graph satisfies the target generation rule, the target network topology graph is converted into a network topology graph in a target format.
[0092] In an embodiment of the present invention, after the automation tool adjusts the initial network topology map according to the user's adjustment operation on the initial network topology map, the automation tool can determine whether the generated target network topology map meets the target generation rules, whether the device positions in the target network topology map meet the target device position rules, and whether the connections between the devices meet the target device connection rules.
[0093] When the target network topology diagram satisfies the target generation rule, the target network topology diagram is converted into a network topology diagram in a target format, wherein the target format may be png (Portable Network Graphics), jpg (Joint Photographic Experts Group) or other formats for construction personnel to view.
[0094] In an embodiment of the present invention, the data of the network topology diagram may be rendered and displayed on a system page.
[0095] In some embodiments of the invention, the method comprises:
[0096] In response to a user's modification operation on the network device information and / or the target generation rule, the target network topology map is modified.
[0097] In an embodiment of the present invention, in response to any user's modification operation on network device information and / or target generation rules of the network architecture of the current project, the automation tool can modify the target network topology map.
[0098] In an embodiment of the present invention, the network device information of the preset network architecture is obtained, and based on the network device information, the pending generation rules of the network topology map corresponding to the network architecture are obtained; the historical generation rules corresponding to the preset historical network architecture and the general generation rules of the network topology map are obtained; based on the preset priority rules, the target generation rules are extracted from the pending generation rules, the historical generation rules and the general generation rules; based on the target generation rules and the network device information, the target network topology map corresponding to the network architecture is generated. By collecting the general generation rules of the network topology map, the pending generation rules and the historical generation rules involved in the network topology map of the current project, the target generation rules of the network topology map of the current project are automatically calculated according to the rule priority, and then the intelligent logic is used to automatically layout the device positions of the entered devices according to all the calculated rules, and the device connections are automatically generated, that is, the network topology map is automatically generated. Manual operations are reduced and the error rate is reduced. The present invention effectively solves the problem of traditional manual drawing of topology maps, provides a highly efficient and intelligent topology map generation solution, further improves resource utilization and operation efficiency, and effectively controls labor costs.
[0099] In the embodiment of the present invention, when the network device information and / or target generation rules are modified, such as when adding a device or modifying a rule, the target network topology map can be automatically updated. In addition, the automation tool supports multi-person collaboration, greatly reducing manual operations and excessive reliance on a single designer, reducing errors in the process of drawing the network topology map, and improving drawing efficiency.
[0100] The present invention integrates project equipment information and professional business rule logic such as equipment connections and locations, and uses automated tools and intelligent logic to process the topology drawing process and ensure stability and reliability, making topology drawing faster and smarter, reducing manual operations and improving drawing efficiency.
[0101] Reference Figure 2 , shows a flowchart of the steps of another method for generating a network topology map provided in an embodiment of the present invention, which may specifically include the following steps:
[0102] Step 201, input general rules.
[0103] Get the common generation rules applicable to all network topology diagrams, including connection and location rules.
[0104] Step 202, enter device information and special rules.
[0105] Get the network device information and pending generation rules of the network architecture of the current project.
[0106] Step 203, calculation rules.
[0107] According to the priority rule, the general generation rules, the pending generation rules and the historical generation rules of the network topology diagram are screened to obtain the target generation rules.
[0108] Step 204: Automatically generate a topology map
[0109] According to the target generation rules, the device location and device connection information are automatically calculated, and the target topology map is automatically generated.
[0110] Step 205: Verify the topology map
[0111] After the topology map is generated, the target generation rules are traversed to perform rule verification and inspection operations on the topology map.
[0112] Step 206: Export the topology map
[0113] The target topology map can be automatically exported as png, jpg and other format files for the convenience of construction personnel to refer to.
[0114] Reference Figure 3 , shows a flowchart of the steps of another method for generating a network topology map provided in an embodiment of the present invention, which may specifically include the following steps:
[0115] Step S1, input the general rules of the topology map and store them in the database.
[0116] Sub-step S11: Enter the general connection rules of the topology diagram.
[0117] Sub-step S12: Enter the general location rules of the topology map.
[0118] Step S2, input the relevant equipment and special rules of the current period of the topology diagram and store them in the database.
[0119] Sub-step S21: Enter device information, including device role, device quantity, device name, etc.
[0120] Sub-step S22: Enter the special connection rules involved in this issue's topology diagram.
[0121] Sub-step S23: Enter the device location rules involved in this topology map.
[0122] Step S3, generating topology map rules.
[0123] Sub-step S31: Filter the general rules related to the equipment in this issue.
[0124] Sub-step S32: Filter the previous project rules related to the current equipment.
[0125] Sub-step S33: Filter the entered equipment rules for this period.
[0126] Sub-step S34: Generate the current period topology map drawing rules according to the generation rules with the highest priority, the previous period project rules second, and the general rules with the lowest priority.
[0127] Step S4, automatically generate a topology map
[0128] Sub-step S41, automatic mode, automatically calculates the device location and device connection information according to the device information entered in S2 and the topology map rules based on S3, and automatically generates a topology map.
[0129] Sub-step S42, manual mode, manually drawing the topology map can be fine-tuned on the visual interface based on the topology map automatically generated in S41 according to actual conditions, and the server will query whether the adjustment meets the rules.
[0130] Step S5, verifying the topology map, traversing the current rules in S3, verifying the device positions, numbers and device connections in the topology map, ensuring that the structure and data of the topology map meet certain rules or conditions to maintain the legitimacy and accuracy of the topology map.
[0131] Sub-step S51, verifying the device position, and verifying whether the device position is reasonable according to the device rules;
[0132] Sub-step S52, verifying the connection, querying the connection rules, and determining whether the connection between devices is reasonable;
[0133] Sub-step S53, verifying the number of devices, verifying whether the number of devices is reasonable according to the number of device data entered in S2;
[0134] Step S6: Export the topology map
[0135] Sub-step S61, saving the verified topology map into the database;
[0136] Sub-step S62, processing the topology map data in the database into a specific format, supporting export to png, jpg and other formats.
[0137] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0138] Reference Figure 4 , shows a structural block diagram of a device for generating a network topology map provided in an embodiment of the present invention, which may specifically include the following modules:
[0139] The information acquisition module 401 is used to acquire network device information of a preset network architecture, and based on the network device information, acquire a to-be-processed generation rule of a network topology graph corresponding to the network architecture;
[0140] A rule acquisition module 402 is used to acquire a historical generation rule corresponding to a preset historical network architecture and a general generation rule of the network topology diagram;
[0141] An extraction module 403 is used to extract a target generation rule from the to-be-processed generation rule, the historical generation rule and the general generation rule based on a preset priority rule;
[0142] The target network topology map generation module 404 is used to generate a target network topology map corresponding to the network architecture based on the target generation rule and the network device information.
[0143] In an optional embodiment of the present invention, the to-be-processed generation rule includes a to-be-processed device location rule and / or a to-be-processed device connection rule; the network architecture includes at least one network device; and the information acquisition module includes:
[0144] The rule acquisition submodule is used to obtain the location rules of the device to be processed and / or the connection rules of the device to be processed in the network topology diagram based on at least one of the quantity information, size information, heat dissipation requirement information, network requirement information, security requirement information and extended requirement information of the network device.
[0145] In an optional embodiment of the present invention, the priority rule is that the priority of the to-be-processed generation rule is higher than that of the historical generation rule, and the priority of the historical generation rule is higher than that of the general generation rule.
[0146] In an optional embodiment of the present invention, the target network topology map generating module includes:
[0147] An information acquisition submodule, used to acquire the location information and connection information of the network device based on the target generation rule and the network device information;
[0148] The initial network topology map generation submodule is used to generate an initial network topology map corresponding to the network architecture based on the location information and the connection information.
[0149] In an optional embodiment of the present invention, the target network topology map generating module includes:
[0150] The adjustment submodule is used to adjust the initial network topology map in response to the user's adjustment operation on the initial network topology map, and generate a target network topology map corresponding to the network architecture.
[0151] In an optional embodiment of the present invention, the device comprises:
[0152] A judgment module, used to judge whether the target network topology map satisfies the target generation rule;
[0153] The conversion module is used to convert the target network topology map into a network topology map in a target format when the target network topology map meets the target generation rule.
[0154] In an optional embodiment of the present invention, the device comprises:
[0155] The modification module is used to modify the target network topology map in response to a user's modification operation on the network device information and / or the target generation rule.
[0156] Reference Figure 5 , shows a structural block diagram of another network topology map generation device provided in an embodiment of the present invention, which may specifically include the following modules:
[0157] Data entry module, used for topology equipment, rule entry and calculation, the main function is to enter the basic verification of data, and to assemble and format the data;
[0158] The rule calculation module generates the topology map generation rules for the current project according to the priority logic based on the topology map rules stored in the database, including general rules, rules for previous projects, and rules for the current project;
[0159] The topology map generation module automatically calculates the device location information and connections based on the devices entered in this period and the generated rules, and automatically generates a topology map;
[0160] The topology map verification module implements secondary verification of the topology map based on the checker generated by the rule calculation module, and verifies the compliance of the calculation results, including the device connection rule verification module and the device location verification module;
[0161] The topology map export module processes the topology map data verified by the topology map verification module into a specific format and exports it into jpg, pdf, png and other formats.
[0162] Design result display module to render the topology data and display it on the system page.
[0163] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0164] In addition, an embodiment of the present invention further provides an electronic device, such as Figure 6 As shown, it includes a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604.
[0165] Memory 603, used for storing computer programs;
[0166] The processor 601 is used to execute the program stored in the memory 603 to implement the following steps:
[0167] Obtaining network device information of a preset network architecture, and based on the network device information, obtaining a to-be-processed generation rule of a network topology map corresponding to the network architecture;
[0168] Obtaining historical generation rules corresponding to a preset historical network architecture and general generation rules of the network topology diagram;
[0169] Based on a preset priority rule, extracting a target generation rule from the to-be-processed generation rule, the historical generation rule, and the general generation rule;
[0170] Based on the target generation rule and the network device information, a target network topology map corresponding to the network architecture is generated.
[0171] In an optional embodiment of the present invention, the to-be-processed generation rule includes a to-be-processed device location rule and / or a to-be-processed device connection rule; the network architecture includes at least one network device; and the to-be-processed generation rule of the network topology map corresponding to the network architecture is obtained based on the network device information, including:
[0172] Based on at least one of the quantity information, size information, heat dissipation requirement information, network requirement information, security requirement information and expansion requirement information of the network device, the location rule of the device to be processed and / or the connection rule of the device to be processed of the network topology diagram are obtained.
[0173] In an optional embodiment of the present invention, the priority rule is that the priority of the to-be-processed generation rule is higher than that of the historical generation rule, and the priority of the historical generation rule is higher than that of the general generation rule.
[0174] In an optional embodiment of the present invention, generating a target network topology map corresponding to the network architecture based on the target generation rule and the network device information includes:
[0175] Based on the target generation rule and the network device information, acquiring the location information and connection information of the network device;
[0176] Based on the location information and the connection information, an initial network topology diagram corresponding to the network architecture is generated.
[0177] In an optional embodiment of the present invention, generating a target network topology map corresponding to the network architecture based on the target generation rule and the network device information includes:
[0178] In response to a user's adjustment operation on the initial network topology map, the initial network topology map is adjusted to generate a target network topology map corresponding to the network architecture.
[0179] In an optional embodiment of the present invention, the method includes:
[0180] Determining whether the target network topology map satisfies the target generation rule;
[0181] In the case where the target network topology graph satisfies the target generation rule, the target network topology graph is converted into a network topology graph in a target format.
[0182] In an optional embodiment of the present invention, the method includes:
[0183] In response to a user's modification operation on the network device information and / or the target generation rule, the target network topology map is modified.
[0184] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0185] The communication interface is used for communication between the above terminal and other devices.
[0186] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0187] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0188] like Figure 7 As shown, in another embodiment provided by the present invention, a computer-readable storage medium 701 is also provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes a method for generating a network topology diagram described in the above embodiment.
[0189] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes a method for generating a network topology map described in the above embodiment.
[0190] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0191] 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 sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0192] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0193] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A method for generating a network topology graph, characterized in that: The method comprises: Obtaining network device information of a preset network architecture, and based on the network device information, obtaining a to-be-processed generation rule of a network topology map corresponding to the network architecture; Obtaining historical generation rules corresponding to a preset historical network architecture and general generation rules of the network topology diagram; Based on a preset priority rule, extracting a target generation rule from the to-be-processed generation rule, the historical generation rule, and the general generation rule; Based on the target generation rule and the network device information, a target network topology map corresponding to the network architecture is generated.
2. The method according to claim 1, characterized in that The to-be-processed generation rules include to-be-processed device location rules and / or to-be-processed device connection rules; the network architecture includes at least one network device; The obtaining, based on the network device information, a to-be-processed generation rule of a network topology graph corresponding to the network architecture comprises: Based on at least one of the quantity information, size information, heat dissipation requirement information, network requirement information, security requirement information and expansion requirement information of the network device, the location rule of the device to be processed and / or the connection rule of the device to be processed of the network topology diagram are obtained.
3. The method according to claim 1, characterized in that The priority rule is that the priority of the to-be-processed generation rule is higher than that of the historical generation rule, and the priority of the historical generation rule is higher than that of the general generation rule.
4. The method according to claim 2, characterized in that: The generating a target network topology diagram corresponding to the network architecture based on the target generation rule and the network device information includes: Based on the target generation rule and the network device information, acquiring the location information and connection information of the network device; Based on the location information and the connection information, an initial network topology diagram corresponding to the network architecture is generated.
5. The method according to claim 4, characterized in that The generating a target network topology diagram corresponding to the network architecture based on the target generation rule and the network device information includes: In response to a user's adjustment operation on the initial network topology map, the initial network topology map is adjusted to generate a target network topology map corresponding to the network architecture.
6. The method according to claim 1, characterized in that The method comprises: Determining whether the target network topology map satisfies the target generation rule; In the case where the target network topology graph satisfies the target generation rule, the target network topology graph is converted into a network topology graph in a target format.
7. The method according to claim 1, characterized in that The method comprises: In response to a user's modification operation on the network device information and / or the target generation rule, the target network topology map is modified.
8. A device for generating a network topology diagram, characterized in that: The device comprises: An information acquisition module, used to acquire network device information of a preset network architecture, and based on the network device information, acquire a to-be-processed generation rule of a network topology map corresponding to the network architecture; A rule acquisition module, used to acquire historical generation rules corresponding to a preset historical network architecture and a general generation rule of the network topology diagram; An extraction module, used for extracting a target generation rule from the to-be-processed generation rule, the historical generation rule and the general generation rule based on a preset priority rule; The target network topology map generation module is used to generate a target network topology map corresponding to the network architecture based on the target generation rule and the network device information.
9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 7 when executing the program stored in the memory.
10. One or more computer-readable media having instructions stored thereon, which when executed by one or more processors cause the processors to perform the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Network structure processing method and device, electronic equipment and storage medium
CN114186680A
Network topology construction method and device based on digital twin technology
CN114615718A
Network topological graph generation method and device
CN114915561A
Network topological graph generation method
CN116319362A
Network topological graph auxiliary drawing method and system based on tree relation between nodes, electronic equipment and storage medium
CN118820556A
Cited By
Automatic planning method and system for quickly generating large-scale simulation network topology structure
CN121644372A
A method and system for topology adaptive management of a mimicking computing system
CN122698456A
Method and apparatus for generating network topology map, electronic device, and readable medium
WO2026118864A1