Network topological graph construction method and device, electronic equipment and storage medium
By acquiring and layering the topology data of network equipment, the arrangement and movement of network nodes are realized, and the network topology diagram is generated, which solves the problem of low network topology construction efficiency in the existing technology, and improves the support for network management and troubleshooting.
Patent Information
- Application Number
- CN202410795542.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-12-13
AI Technical Summary
The existing network topology is inefficient to build, resulting in difficulty in network management and troubleshooting.
By obtaining the topology data of network devices, processing them in layers and setting them as network nodes, the arrangement and movement of network nodes are realized, the network topology diagram is generated, the association relationship is highlighted, and the network topology diagram is automatically created in the visual management software.
It improves the accuracy and efficiency of network topology diagram construction, simplifies the orchestration and relationship display of network equipment, and enhances the support for network management and troubleshooting.
Smart Images

Figure CN119135545A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method, device, electronic device and storage medium for constructing a network topology map. Background Art
[0002] With the continuous development and application of network technology, people are becoming more and more dependent on the network. Network topology can support network management and operation and maintenance: The automatic topology discovery function can help users discover and understand various devices in the network, such as the IP address, MAC address, device model, firmware version, etc. of the router, providing strong support for network management and troubleshooting.
[0003] In existing networks, due to the large number of network devices and the complex connection relationships among network devices, the existing network topology construction efficiency is low. Summary of the invention
[0004] The present invention provides a network topology map construction method, device, electronic device and storage medium, which are used to solve the defect of low efficiency of network topology construction in the prior art and improve the construction efficiency of the network topology map.
[0005] The present invention provides a method, device, electronic device and storage medium for constructing a network topology map, comprising the following steps: obtaining topological data of a network device; layering the topological data according to the transmission process of the network data to obtain at least one first level; setting the network device as a network node, arranging the network nodes in the first level to obtain a network node array; in response to a user's click operation on the network node, obtaining at least one first associated network node associated with the clicked network node and the initial coordinate position of the first associated network node in the network node array; moving the first associated network node of the same first level from the initial coordinate position to the set coordinate position of the first level to obtain a network topology map of the clicked network node.
[0006] According to a method for constructing a network topology map provided by the present invention, after obtaining the topology data of the network device, the method also includes: layering the topology data according to the processing flow of the network data to obtain at least one second level; setting the network device as a network node, and constructing an overall network topology map based on the upper-lower relationship, network nodes, grouping of network nodes and connections of the second level; in response to a user's click operation on the network node, obtaining at least one second associated network node associated with the clicked network node and the connection relationship of the second associated network node in the overall network topology map; and obtaining the network topology map of the clicked network node based on the second associated network nodes and the connection relationship of the second associated network nodes.
[0007] According to a network topology map construction method provided by the present invention, network nodes in a first level are arranged to obtain a network node array, including: obtaining two adjacent rows consisting of network nodes, the two adjacent rows include a first row and a second row; setting the network nodes in the first row at the interval between two adjacent network nodes in the second row to obtain an array row; obtaining two adjacent columns consisting of network nodes, the two adjacent columns include a first column and a second column; setting the network nodes in the first column at the interval between two adjacent network nodes in the second column to obtain an array column; and obtaining a network node array based on the array rows and array columns.
[0008] According to a network topology map construction method provided by the present invention, after moving the first associated network node of the same first level from the initial coordinate position to the set coordinate position of the first level to obtain the network topology map of the clicked network node, it also includes: in response to the user's click operation again, moving the first associated network node from the set coordinate position to the initial coordinate position.
[0009] According to a method for constructing a network topology map provided by the present invention, the network topology map includes nodes and connections between nodes, and the nodes include a clicked network node and a second associated network node. After the network topology map of the clicked network node is obtained based on the second associated network node and the connection relationship between the second associated network node, it also includes: obtaining alarm data of the node, rendering the alarm data to the connection between the nodes; and displaying an introduction page of the node in response to a user's mouse operation on the node.
[0010] According to a network topology map construction method provided by the present invention, the topology data is layered according to the transmission process of the network data to obtain at least one first level, including: according to the transmission process of the network data, the topology data is divided into a network element layer, a virtual layer and a physical layer to obtain the first level.
[0011] According to a network topology map construction method provided by the present invention, the topology data is layered according to the processing flow of the network data to obtain at least one second level, including: according to the processing flow of the network data, the topology data is divided into a network element layer, a virtual machine layer, a host layer, a rack top layer TOR, a rack end layer EOR, a routing layer and a storage layer.
[0012] The present invention also provides a network topology map construction device, including: a topology data acquisition module, used to acquire topology data of network devices; a layering module, used to layer topology data according to the transmission process of network data to obtain at least one first layer; an arrangement module, used to set network devices as network nodes, arrange network nodes in the first layer, and obtain a network node array; a network topology map construction module, used to respond to a user's click operation on a network node, obtain at least one first associated network node associated with the clicked network node and the initial coordinate position of the first associated network node in the network node array; move the first associated network node of the same first layer from the initial coordinate position to the set coordinate position of the first layer, and obtain a network topology map of the clicked network node.
[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned methods for constructing a network topology diagram is implemented.
[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the computer program implements any of the above-mentioned methods for constructing a network topology diagram.
[0015] The network topology map construction method, device, electronic device and storage medium provided by the present invention obtain the topology data of the network device; layer the topology data according to the transmission process of the network data to obtain at least one first level; set the network device as a network node, arrange the network nodes in the first level to obtain a network node array; in response to the user's click operation on the network node, obtain at least one first associated network node associated with the clicked network node and the initial coordinate position of the first associated network node in the network node array; move the first associated network node of the same first level from the initial coordinate position to the set coordinate position of the first level to obtain the network topology map of the clicked network node. The arrangement of a large number of network devices is realized through the network node array. By moving the first associated network node to the set coordinate position, the relationship between the first associated network node is made more compact, and the association relationship between the first associated network node and the clicked network node can be more prominent. The present invention realizes the automatic creation of the network topology map of the clicked network node through the visual management software, and improves the accuracy and efficiency of creating the network topology map. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 This is one of the flow charts of the network topology diagram construction method provided by the present invention.
[0018] Figure 2 It is a schematic diagram of the network node array provided by the present invention.
[0019] Figure 3 It is one of the structural schematic diagrams of the network topology diagram provided by the present invention.
[0020] Figure 4 This is the second structural schematic diagram of the network topology diagram provided by the present invention.
[0021] Figure 5 This is the second flow chart of the network topology diagram construction method provided by the present invention.
[0022] Figure 6 It is a structural schematic diagram of the network topology map construction device provided by the present invention.
[0023] Figure 7 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] Combine the following Figure 1-Figure 7 The invention describes a method, device and electronic device for constructing a network topology diagram.
[0026] Figure 1 It is one of the flow charts of the method for constructing a network topology diagram provided by the present invention, such as Figure 1 As shown, a network topology diagram construction method is applied to visual management software. The method includes steps S100 to S300, and each step is specifically as follows.
[0027] S100: Acquire topology data of network devices.
[0028] The executor of the present invention is a visualization management software, such as a network topology visualization engine (Twaver). Twaver is a network topology map and chart library based on HTML5 Canvas technology, which is used to build interactive network topology and chart displays in Web applications. It provides a rich application programming interface (API) and components to meet various customization requirements. Twaver has the following main features: (1) Using Canvas elements for graphics rendering, various complex graphics can be drawn without being restricted by Document Object Model (DOM) elements, thereby improving performance. (2) A series of network topology map algorithms are provided to automatically layout node connections and improve user visualization experience. (3) Cross-platform compatibility, supporting development across mainstream browsers and operating systems, including Google Chrome, Firefox, Safari, Microsoft Edge, etc., and adapting to screens of different resolutions to ensure stability and usability.
[0029] Collect the original data of network devices, summarize the connection relationship and link relationship between network devices, and generate initial topology data. Use Twaver to create a topology instance diagram of network devices based on the initial topology data to obtain topology data.
[0030] S200: Layering topology data according to a transmission process of network data to obtain at least one first layer.
[0031] According to the transmission process of network data, topology data is layered to obtain at least one first level, including: according to the transmission process of network data, topology data is divided into a network element layer, a virtual layer and a physical layer to obtain the first level.
[0032] Execute the honeycomb graph algorithm on the topology data to view the resource pool dimension. Figure 2 As shown, the topology data is divided into the network element layer, virtual layer and physical layer by level to obtain multiple first levels. The number of network devices in each first level is counted. The space occupied by the first level on the Twaver canvas is allocated according to the proportion of the number of network devices.
[0033] The network devices in the topology data are traversed, each network device is created as a network node (Network Node, Node), and each network node is set as a regular hexagon icon.
[0034] S300: Setting the network devices as network nodes, arranging the network nodes in the first level, and obtaining a network node array.
[0035] Arrange the network nodes in the first level to obtain a network node array. Specifically, obtain two adjacent rows consisting of network nodes, the adjacent two rows include a first row and a second row; set the network nodes in the first row at the interval between two adjacent network nodes in the second row to obtain an array row; obtain two adjacent columns consisting of network nodes, the adjacent two columns include a first column and a second column; set the network nodes in the first column at the interval between two adjacent network nodes in the second column to obtain an array column; obtain a topological point array based on the array rows and array columns.
[0036] like Figure 2 As shown, in each first level, the network nodes are arranged, and the network nodes of two adjacent rows are staggered so that the network nodes of the second row are located at the interval between the two network nodes of the adjacent first row. In the same row, the interval width of two adjacent network nodes is the width of the network node icon (regular hexagon) × 50%. In the same column, the interval width of two adjacent network nodes is the width of the network node icon × the preset coefficient.
[0037] S400: In response to a user clicking operation on a network node, obtaining at least one first associated network node associated with the clicked network node and the initial coordinate position of the first associated network node in the network node array; moving the first associated network node of the same first level from the initial coordinate position to the set coordinate position of the first level to obtain a network topology map of the clicked network node.
[0038] like Figure 3 The method comprises the following steps: binding a click event to a network node. Obtaining a user's click operation on a network node. In response to the click operation, traversing the network nodes in multiple first levels, and obtaining multiple first associated network nodes associated with the clicked network node. In each first level, the coordinates of the central area nodes are calculated. According to the coordinate position of the central area nodes of each first level, the initial coordinate position of each first associated network node is determined and stored. Multiple set coordinate positions of each first level are set so that the multiple set coordinate positions are concentrated in the coordinate position of the central area nodes. The number of set coordinate positions is equal to the number of first associated network nodes in the corresponding first level. Multiple set coordinate positions are clustered in a honeycomb shape. An animation (Animate) instance is created, and according to the Animate instance, the first associated network nodes of the same first level are moved from their corresponding initial coordinate positions to a set coordinate position of the first level to obtain a honeycomb state converged network node group. The network nodes in the honeycomb-shaped converged network node group are kept at normal brightness, and other non-associated network nodes are set to grayscale to highlight the association state of the first associated network node and the clicked network node.
[0039] After moving the first associated network node of the same first level from the initial coordinate position to the set coordinate position of the first level to obtain the network topology map of the clicked network node, it also includes: in response to the user's click operation again, moving the first associated network node from the set coordinate position to the initial coordinate position.
[0040] When the user clicks the canvas again, the current convergence state is canceled. An Animate instance is created for the converged first associated network nodes, and each first associated network node is moved from the corresponding set coordinate position to the initial coordinate position. At the same time, the grayscale setting of other non-associated network nodes is canceled.
[0041] The network topology map construction method provided by the embodiment of the present invention obtains the topology data of the network device; hierarchizes the topology data according to the transmission process of the network data to obtain at least one first level; sets the network device as a network node, arranges the network nodes in the first level to obtain a network node array; in response to the user's click operation on the network node, obtains at least one first associated network node associated with the clicked network node and the initial coordinate position of the first associated network node in the network node array; moves the first associated network node of the same first level from the initial coordinate position to the set coordinate position of the first level to obtain the network topology map of the clicked network node. The arrangement of a large number of network devices is realized through the network node array. By moving the first associated network node to the set coordinate position, the relationship between the first associated network node is made more compact, and the association relationship between the first associated network node and the clicked network node can be more prominent. The present invention realizes the automatic creation of the network topology map of the clicked network node through the visual management software, and improves the accuracy and efficiency of creating the network topology map.
[0042] Based on the above embodiment, after acquiring the topology data of the network device, the network topology map construction method further includes steps S500 to S800, and each step is specifically as follows.
[0043] S500: hierarchical topology data according to a processing flow of network data to obtain at least one second level.
[0044] S600: Setting the network devices as network nodes, and constructing an overall network topology diagram based on the upper-lower relationship of the second level, the network nodes, the grouping of the network nodes, and the connection of the network nodes.
[0045] S700: In response to a user clicking operation on a network node, obtaining at least one second associated network node associated with the clicked network node and a connection relationship of the second associated network node in the overall network topology map.
[0046] S800: Obtaining a network topology diagram of the clicked network node based on the second associated network node and the connection relationship between the second associated network nodes.
[0047] According to the processing flow of network data, the topology data is layered to obtain at least one second level. Specifically, according to the processing flow of network data, the topology data is divided into network element layer, virtual machine layer, host layer, rack top layer TOR, rack end layer EOR, routing layer and storage layer.
[0048] After obtaining the topology data, the upper and lower hierarchical algorithms are executed on the topology data to view the network device dimensions. Figure 4 As shown in FIG. 1 , the topology data is divided from top to bottom into the network element layer, the virtual machine layer, the host layer, the top of rack (TOR), the end of row (EOR), the routing layer and the storage layer to obtain multiple second layers. The canvas is evenly distributed from top to bottom for each second layer and adapted to the browser page size.
[0049] Starting from the top layer of the second layer, traverse the connection of each network device, and generate the next layer of sink network devices according to the source network device sequence of the previous layer. Set the network devices as network nodes, and calculate the node coordinates of the network nodes according to the preset node size and interval. Create groupings of network nodes based on the groupings of network devices, and create connections of network nodes based on the connections of network devices. Construct the overall network topology based on network nodes, groupings of network nodes, and connections of network nodes.
[0050] like Figure 4 As shown, a click event is bound. When a user clicks a network node in the overall network topology map, a second associated network node associated with the clicked network node and a connection relationship of the second associated network node in the overall network topology map are obtained. The network topology map of the clicked network node is obtained based on the second associated network node and the connection relationship of the second associated network node. The second associated network node and the connection relationship are highlighted.
[0051] The network topology diagram includes nodes and connections between nodes. The nodes include a clicked network node and a second associated network node. After obtaining the network topology diagram of the clicked network node based on the second associated network node and the connection relationship between the second associated network node, it also includes: obtaining the alarm data of the node and rendering the alarm data to the connections between the nodes; in response to the user's mouse operation on the node, displaying the node's introduction page.
[0052] Get the alarm data of the clicked network node or the second associated network node (node), such as the alarm level. Render the alarm level onto the line between the nodes. For example, when the alarm level is a high alarm, the line between the nodes is red; when the alarm level is a normal level, the line between the nodes is green. Add an introduction page for the node, and in response to the user's mouse operation on the node (for example, the user moves the mouse button to the node), present the introduction page on the network topology map in the form of a pop-up window or sidebar. The introduction page is used to introduce the resources or performance of the node.
[0053] The embodiment of the present invention drills down the superior-subordinate relationship of the clicked network node through the connection relationship of the second associated network node, realizes viewing the superior-subordinate relationship based on the network device dimension, and improves the efficiency of obtaining the network topology map. By rendering the alarm data to the connection between the nodes, the alarm monitoring of the network device is improved. By displaying the introduction page, the monitoring of the resources and performance of the network device is improved.
[0054] like Figure 5 As shown, the present invention provides a method for constructing a network topology diagram, comprising the following steps.
[0055] a. Data collection: Collect the original data of network devices.
[0056] a. Summarize initial topology data: Summarize the connection relationships and link relationships between network devices to generate initial topology data.
[0057] b. Create network nodes: Create network nodes based on network devices.
[0058] c. Execute layout algorithm: execute honeycomb graph algorithm on topology data to view resource pool dimension, or execute upper and lower hierarchical algorithm on topology data to view network device dimension.
[0059] d. Get the network topology diagram.
[0060] e. Resource query: According to the node introduction page, obtain the resource data of the network device. Manage the resources of the network device according to the resource data. Alarm query: According to the node introduction page, obtain the alarm data of the network device. Locate the fault of the network device according to the alarm data. Performance query: According to the node introduction page, monitor the performance of the network device.
[0061] The network topology map construction method provided by the present invention can effectively solve the problem that the network topology structure is complex and the topological relationship is not obvious. The present invention provides a honeycomb map algorithm and an upper and lower hierarchical algorithm to realize the construction of network topology maps of different dimensions of network devices. The monitoring efficiency of network devices is improved through resource query, alarm query and performance query, which greatly improves the user's operation and maintenance capabilities of the network system.
[0062] The network topology map construction device provided by the present invention is described below. The network topology map construction device described below and the network topology map construction method described above can be referenced to each other.
[0063] like Figure 6 As shown, a network topology map construction device includes: a topology data acquisition module 601, which is used to acquire topology data of network devices.
[0064] The layering module 602 is used to layer the topology data according to the transmission process of the network data to obtain at least one first layer.
[0065] The arrangement module 603 is used to set the network devices as network nodes, arrange the network nodes in the first level, and obtain a network node array.
[0066] The network topology map construction module 604 is used to respond to the user's click operation on the network node, obtain at least one first associated network node associated with the clicked network node and the initial coordinate position of the first associated network node in the network node array; move the first associated network node of the same first level from the initial coordinate position to the set coordinate position of the first level, and obtain the network topology map of the clicked network node.
[0067] The network topology map construction device provided by the embodiment of the present invention obtains the topology data of the network device; hierarchizes the topology data according to the transmission process of the network data to obtain at least one first level; sets the network device as a network node, arranges the network nodes in the first level to obtain a network node array; in response to the user's click operation on the network node, obtains at least one first associated network node associated with the clicked network node and the initial coordinate position of the first associated network node in the network node array; moves the first associated network node of the same first level from the initial coordinate position to the set coordinate position of the first level to obtain the network topology map of the clicked network node. The arrangement of a large number of network devices is realized through the network node array. By moving the first associated network node to the set coordinate position, the relationship between the first associated network node is made more compact, and the association relationship between the first associated network node and the clicked network node can be more prominent. The present invention realizes the automatic creation of the network topology map of the clicked network node through the visual management software, and improves the accuracy and efficiency of creating the network topology map.
[0068] In one embodiment, the layering module 602 is further used to: layer the topology data according to the processing flow of the network data to obtain at least one second level. The arrangement module 603 is further used to: set the network device as a network node, and construct an overall network topology map based on the upper-lower relationship, network nodes, grouping of network nodes and connection of network nodes of the second level. The network topology map construction module 604 is also used to: in response to the user's click operation on the network node, obtain at least one second associated network node associated with the clicked network node and the connection relationship of the second associated network node in the overall network topology map; based on the second associated network node and the connection relationship of the second associated network node, obtain the network topology map of the clicked network node.
[0069] In one embodiment, the arrangement module 603 is used to: arrange the network nodes in the first level to obtain a network node array, including: obtaining two adjacent rows consisting of network nodes, the two adjacent rows include a first row and a second row; setting the network nodes in the first row at the interval between two adjacent network nodes in the second row to obtain an array row; obtaining two adjacent columns consisting of network nodes, the two adjacent columns include a first column and a second column; setting the network nodes in the first column at the interval between two adjacent network nodes in the second column to obtain an array column; and obtaining a network node array based on the array rows and array columns.
[0070] In one embodiment, the network topology map construction module 604 is further configured to: in response to a click operation by the user again, move the first associated network node from the set coordinate position to the initial coordinate position.
[0071] In one embodiment, the network topology map includes nodes and connections between nodes, and the nodes include a clicked network node and a second associated network node. The network topology map construction module 604 is also used to: obtain the alarm data of the node and render the alarm data to the connection between the nodes; in response to the user's mouse operation on the node, display the node introduction page.
[0072] In one embodiment, the topology data acquisition module 601 is used to divide the topology data into a network element layer, a virtual layer and a physical layer according to the transmission process of the network data to obtain a first layer.
[0073] In one embodiment, the topology data acquisition module 601 is used to divide the topology data into network element layer, virtual machine layer, host layer, rack top layer TOR, rack end layer EOR, routing layer and storage layer according to the processing flow of network data.
[0074] Figure 7 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 7As shown, the electronic device may include: a processor 710, a communication interface 720, a memory 730 and a communication bus 740, wherein the processor 710, the communication interface 720 and the memory 730 communicate with each other through the communication bus 740. The processor 710 may call the logic instructions in the memory 730 to execute the network topology map construction method, which includes: obtaining the topology data of the network device; layering the topology data according to the transmission process of the network data to obtain at least one first level; setting the network device to a network node, arranging the network nodes in the first level to obtain a network node array; in response to the user's click operation on the network node, obtaining at least one first associated network node associated with the clicked network node and the initial coordinate position of the first associated network node in the network node array; moving the first associated network node of the same first level from the initial coordinate position to the set coordinate position of the first level to obtain the network topology map of the clicked network node.
[0075] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0076] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the network topology map construction method provided by the above methods, which method includes: obtaining topology data of the network device; layering the topology data according to the transmission process of the network data to obtain at least one first level; setting the network device as a network node, arranging the network nodes in the first level to obtain a network node array; in response to a user's click operation on the network node, obtaining at least one first associated network node associated with the clicked network node and the initial coordinate position of the first associated network node in the network node array; moving the first associated network node of the same first level from the initial coordinate position to the set coordinate position of the first level to obtain a network topology map of the clicked network node.
[0077] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the network topology map construction method provided by the above-mentioned methods, the method comprising: obtaining topology data of a network device; layering the topology data according to the transmission process of the network data to obtain at least one first level; setting the network device as a network node, arranging the network nodes in the first level to obtain a network node array; in response to a user's click operation on a network node, obtaining in the network node array at least one first associated network node associated with the clicked network node and the initial coordinate position of the first associated network node; moving the first associated network node of the same first level from the initial coordinate position to the set coordinate position of the first level to obtain a network topology map of the clicked network node.
[0078] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0079] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0080] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for constructing a network topology graph, characterized in that: Applied to visual management software, including: Get topology data of network devices; According to the transmission process of the network data, the topology data is layered to obtain at least one first layer; Setting the network devices as network nodes, and arranging the network nodes in the first level to obtain a network node array; In response to a user clicking operation on the network node, at least one first associated network node associated with the clicked network node and the initial coordinate position of the first associated network node are obtained in the network node array; the first associated network node of the same first level is moved from the initial coordinate position to the set coordinate position of the first level to obtain a network topology map of the clicked network node.
2. The network topology diagram construction method according to claim 1, characterized in that: After acquiring the topology data of the network device, the method further includes: According to the processing flow of the network data, the topology data is layered to obtain at least one second level; Setting the network device as the network node, and constructing an overall network topology diagram based on the superior-subordinate relationship of the second level, the network nodes, the grouping of the network nodes, and the connection of the network nodes; In response to a click operation of the user on the network node, acquiring, in the overall network topology map, at least one second associated network node associated with the clicked network node and a connection relationship of the second associated network node; The network topology map of the clicked network node is obtained based on the second associated network node and the connection relationship between the second associated network nodes.
3. The method for constructing a network topology diagram according to claim 1, characterized in that: The step of arranging the network nodes in the first level to obtain a network node array includes: Acquire two adjacent rows formed by the network nodes, the two adjacent rows comprising a first row and a second row; The network nodes in the first row are arranged at intervals between two adjacent network nodes in the second row to obtain an array row; Acquire two adjacent columns formed by the network nodes, the two adjacent columns comprising a first column and a second column; The network nodes in the first column are arranged at intervals between two adjacent network nodes in the second column to obtain an array column; The network node array is obtained based on the array rows and the array columns.
4. The method for constructing a network topology diagram according to claim 1, characterized in that: After moving the first associated network node of the same first level from the initial coordinate position to the set coordinate position of the first level to obtain the network topology map of the clicked network node, the method further includes: In response to the user's click operation again, the first associated network node is moved from the set coordinate position to the initial coordinate position.
5. The method for constructing a network topology diagram according to claim 2, characterized in that: The network topology diagram includes nodes and lines between nodes, and the nodes include the clicked network node and the second associated network node. After the network topology diagram of the clicked network node is obtained based on the connection relationship between the second associated network node and the second associated network node, the method further includes: Acquire the alarm data of the nodes, and render the alarm data to the connection lines between the nodes; In response to the user's mouse operation on the node, an introduction page of the node is displayed.
6. The method for constructing a network topology diagram according to claim 1, characterized in that: The topology data is layered according to the transmission process of the network data to obtain at least one first level, including: According to the transmission process of the network data, the topology data is divided into a network element layer, a virtual layer and a physical layer to obtain the first level.
7. The method for constructing a network topology diagram according to claim 2, characterized in that: The topology data is layered according to the processing flow of the network data to obtain at least one second level, including: According to the processing flow of the network data, the topology data is divided into a network element layer, a virtual machine layer, a host layer, a rack top layer TOR, a rack end layer EOR, a routing layer and a storage layer.
8. A network topology diagram construction device, characterized in that: include: A topology data acquisition module is used to acquire topology data of network devices; A layering module, used for layering the topology data according to a transmission process of the network data to obtain at least one first layer; an arrangement module, configured to set the network device as a network node, and arrange the network nodes in the first level to obtain a network node array; A network topology map construction module is used to respond to a user's click operation on the network node, obtain at least one first associated network node associated with the clicked network node and the initial coordinate position of the first associated network node in the network node array; move the first associated network node of the same first level from the initial coordinate position to the set coordinate position of the first level, and obtain a network topology map of the clicked network node.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the network topology map construction method as described in any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for constructing a network topology map as claimed in any one of claims 1 to 7 is implemented.
