Network topology generation method and device, equipment, medium and program product
By obtaining target topology templates and target network information, the network topology diagram is automatically generated, which solves the problem of low efficiency and accuracy of generating network topology diagrams in the existing technology, and achieves topology diagram generation that is more in line with the network architecture, improving troubleshooting efficiency.
Patent Information
- Application Number
- CN202411679290.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-11-21
AI Technical Summary
The prior art has low efficiency and accuracy when generating network topology maps, especially manual drawing methods, which are difficult to meet the needs of complex network architectures.
By obtaining the target topology template and the target network information, the network topology diagram is automatically generated. The target topology template includes network level and device description information. Combined with the connection relationship and description information of the actual network device, it determines the network level to which the device belongs, and finally generates a topology diagram.
It realizes the generation of topology diagrams that are more in line with the network architecture without manual drawing, improves generation efficiency and accuracy, and can better demonstrate device relationships and troubleshooting efficiency.
Smart Images

Figure CN119629066A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, equipment, medium and program product for generating a network topology. Background Art
[0002] Network topology is used to characterize the relationship between topological nodes. Generally, the connection relationship between topological nodes is intuitively displayed through a network topology diagram. However, network topology diagrams are usually generated by manual drawing, but the efficiency and accuracy of this method are low. Therefore, it is necessary to provide a method that can automatically generate network topology. Summary of the invention
[0003] In view of this, the present disclosure provides a method, apparatus, device, medium and program product for generating a network topology to solve the problem of generating a network topology.
[0004] In a first aspect, the present disclosure provides a method for generating a network topology, the method comprising:
[0005] Acquire a target topology template, wherein the target topology template includes a network layer and first description information of a network device in each of the network layers;
[0006] Based on the target topology template and the information collected from the target network, a network topology diagram of the target network is generated and displayed; the collected information includes: network devices in the target network, connection relationships between network devices, and second description information, and the second description information is used to determine the network level to which the network devices in the target network belong.
[0007] In a second aspect, the present disclosure provides a device for generating a network topology, the device comprising:
[0008] A template acquisition module, used to acquire a target topology template, wherein the target topology template includes a network layer and first description information of a network device in each of the network layers;
[0009] A topology display module is used to generate and display a network topology diagram of the target network based on the target topology template and information collected from the target network; the collected information includes: network devices in the target network, connection relationships between network devices, and second description information, the second description information is used to determine the network level to which the network devices in the target network belong
[0010] In a third aspect, the present disclosure provides an electronic device comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method for generating a network topology of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0011] In a fourth aspect, the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for generating a network topology according to the first aspect or any corresponding embodiment thereof.
[0012] In a fifth aspect, the present disclosure provides a computer program product, including computer instructions, where the computer instructions are used to enable a computer to execute the method for generating a network topology according to the first aspect or any corresponding embodiment thereof.
[0013] The network topology generation method provided by the embodiment of the present disclosure generates and displays a network topology diagram by acquiring a target topology template, wherein the target topology template includes a network level and first description information of network devices in each network level. The network topology diagram is generated in combination with the information collected from the target network, and the collected information includes the connection relationship between network devices in the target network and a second description, and the second description information is used to determine the network level to which the network devices in the target network belong. In the method, the first description information of the network level and the network devices in each network level is defined in the target topology template. On this basis, combined with the second description information of the network devices in the target network, the actual network level to which it belongs can be determined, and finally displayed in the form of a network topology diagram. The method defines the topological architecture of the network by means of a topological template, rather than drawing the topological relationship completely based on the scanned acquisition, and can automatically generate an effect similar to manually drawing a topology when the network topology architecture is satisfied. Furthermore, since the network topology diagram is drawn based on the real network level, it can show the complete device relationship, generate a relatively complete network topological relationship, and can display the fragmented information in series in the complete topology, thereby improving the efficiency of network troubleshooting. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0015] Figure 1 is a schematic diagram of an optional application scenario according to an embodiment of the present disclosure;
[0016] Figure 2 is a flow chart of a method for generating a network topology according to an embodiment of the present disclosure;
[0017] Figure 3 is a flowchart of another method for generating a network topology according to an embodiment of the present disclosure;
[0018] Figure 4 is a schematic diagram of a target topology template according to an embodiment of the present disclosure;
[0019] Figure 5 is a schematic diagram of a network topology diagram according to an embodiment of the present disclosure;
[0020] Figure 6a-6b is a schematic diagram of an aggregation setting page according to an embodiment of the present disclosure;
[0021] Figure 7a-7d is a schematic diagram of a first aggregation node according to an embodiment of the present disclosure;
[0022] Figure 8a-8c is a schematic diagram of a layer setting page according to an embodiment of the present disclosure;
[0023] Figure 9a-9c is a schematic diagram of another network topology diagram according to an embodiment of the present disclosure;
[0024] Figure 10a-Figure 10b is a schematic diagram of another network topology diagram according to an embodiment of the present disclosure;
[0025] Fig.11 is a schematic diagram of a first information board according to an embodiment of the present disclosure;
[0026] Figure 12a-12b is a schematic diagram of a second information board according to an embodiment of the present disclosure;
[0027] Fig.13 is a schematic diagram of an architecture for generating a network topology according to an embodiment of the present disclosure;
[0028] Fig.14 is a schematic diagram of a network device according to an embodiment of the present disclosure;
[0029] Fig.15 is a flow chart of another method for generating a network topology according to an embodiment of the present disclosure;
[0030] Fig.16 is a schematic diagram of a data processing flow according to an embodiment of the present disclosure;
[0031] Fig.17 is a schematic diagram of entity processing according to an embodiment of the present disclosure;
[0032] Fig.18 is a schematic diagram of a physical display according to an embodiment of the present disclosure;
[0033] Fig.19 is a structural block diagram of another network topology generation device according to an embodiment of the present disclosure;
[0034] Fig. 20 It is a schematic diagram of the hardware structure of the electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0036] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0037] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0038] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0039] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0040] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0041] In order to solve the efficiency problem of manual drawing, the related technology often adopts the method of automatically drawing network topology. That is, the relationship between topological nodes is obtained by scanning and displayed. However, in this process, the hierarchical relationship of the scanned topological nodes does not conform to the actual network hierarchical relationship, which leads to the low accuracy of the generated network topology. For example, in a store scenario, there is only one switch, which serves as both the core layer and the access layer. If it is connected to the external network, it also has the capabilities of the network (WAN) layer. In this case, the default level of the platform does not meet customer needs, and it is necessary to support custom levels and the configuration of the device's belonging level.
[0042] Based on this, an embodiment of the present disclosure provides a method for generating a network topology, which realizes automatic generation of a network topology by obtaining a target topology template and, after obtaining collected information of network devices in the target network, displaying it in the form of a network topology diagram.
[0043] Furthermore, the information collection for the network devices in the target network is to obtain the connection relationship and the second description information of the network devices in the target network by at least one method. In the process of generating the network topology map, the second description information is compared with the target topology template to determine the network level to which the network devices in the target network belong. On this basis, a network topology map of the target network is generated.
[0044] The network topology generation method provided by the embodiment of the present disclosure automatically generates a topology that is more in line with the network architecture by associating topology templates and adopting an automatic scanning method without manually drawing the topology, so as to have the advantages of both manual drawing and automatic drawing. Specifically, the embodiment of the present disclosure defines the topology architecture of the network by defining a topology template, rather than drawing based entirely on the topological relationship obtained by scanning, and can draw an effect similar to manually drawn topology when the network topology architecture is satisfied.
[0045] Furthermore, the network topology generation method provided by the embodiment of the present disclosure not only has the real-time performance of automatic topology drawing, but also solves the difficulty of drawing the topology of a large number of devices. It can reference the configuration management database (CMDB) to support the aggregation of topology nodes based on attribute information, which can meet the scenario of viewing the topology of a large network.
[0046] As an optional application scenario of the embodiment of the present disclosure, Figure 1As shown, the application scenario includes a front-end device 1 and a back-end server 2. The front-end device 1 obtains the topology template and displays the network topology diagram. The back-end server 2 is used to obtain the connection relationship and description information of the network devices in the target network, and compares the obtained description information with the description information of the network devices in the topology template, so as to determine the network level to which the network devices in the target network belong. Furthermore, the front-end device 1 is displayed in the form of a network topology diagram.
[0047] In addition, the network topology map displayed on the front-end device 1 also provides a query function, for example, by detecting the location of the interaction point, displaying the information of the corresponding network device or connection, etc. Since the back-end server 2 can scan the network devices in the target network in real time or according to the detection cycle, accordingly, the network topology map in the front-end device 1 can display the latest data of the network devices or connections.
[0048] According to an embodiment of the present disclosure, an embodiment of a method for generating a network topology is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0049] In this embodiment, a method for generating a network topology is provided. Figure 2 is a flow chart of a method for generating a network topology according to an embodiment of the present disclosure, such as Figure 2 As shown, the process includes the following steps:
[0050] Step S201: Obtain a target topology template.
[0051] The target topology template includes network levels and first description information of network devices in each network level.
[0052] The network devices at each network level in the target topology template are network devices that may be included in each network level, which is not strictly corresponding to the actual situation of the target network. That is to say, when constructing the target topology template, the network devices that may be included in each network level of the target topology template can be determined based on experience or the actual network topology of the target network. Since the target network may change later, such as upgrades or renovations, etc., when constructing the target topology template, the network devices in each network level can be determined in combination with the later changes. Among them, the network levels include but are not limited to operators, WAN, core layer, aggregation layer, wired access layer, and wireless access layer.
[0053] The first description information of the network device can be used to determine the network level to which different network device roles belong. For example, the first description information of the switch is defined, and then after the network device is scanned, the second description information of the scanned network device is matched with the first description information to determine the network level to which the scanned network device belongs, thereby mapping the actual second network device in the target network to the target topology template to form a network topology diagram.
[0054] The first description information may be a weight, or a device name, a device model, etc., which is set according to actual needs and is not limited here.
[0055] The target topology template can be obtained by creating a new topology template or by modifying the topology template of a similar network. By providing an interactive interface, the user can configure the first description information of the network layer in the target network and the network devices included in each network layer through interactive operations with the interactive interface, and based on this, the target topology template can be obtained. For example, a target topology template suitable for the target network can be obtained by construction, etc. That is, the target topology template here corresponds to the target network and is suitable for the actual network structure of the target network.
[0056] Step S202: Generate and display a network topology map of the target network based on the target topology template and information collected from the target network.
[0057] The collected information includes: network devices in the target network, connection relationships between network devices, and second description information, and the second description information is used to determine the network level to which the network devices in the target network belong.
[0058] The target network is the network corresponding to the current business scenario. Different networks can build their own corresponding topology templates. The target network includes at least one network layer, and each network layer can include at least one network device. The network layers included in the target network are determined according to the actual situation of the target network and are not limited here.
[0059] The network devices in the target network are network devices that actually exist in the target network, and are different from the network devices in the target topology template in that the network devices in the target network topology template are network devices that may be included in the network hierarchy. The connection relationship between the network devices in the target network can be obtained by scanning the background server, and accordingly, the second description information of the network devices in the target network can also be obtained after scanning.
[0060] Based on this, the second description information can be compared with the first description information of the network device in the target topology template to obtain the network level to which each second network device belongs in the target network. After determining the connection relationship between the network devices in the target network and the network level to which they belong, they can be displayed in combination with the target topology template, and the corresponding network topology diagram can be displayed on the interface.
[0061] Since the real network topology in the target network is not a strict tree structure, in order to provide better network redundancy, there are often physical loops in the network topology diagram, that is, the network topology diagram is a tree-like diagram structure. The network topology diagram is used to visualize the comprehensive and complete device relationship and the complex connection relationship between the second network devices at each network level.
[0062] The network topology generation method provided in this embodiment defines the network hierarchy and the first description information of the network devices in each network hierarchy in the target topology template. On this basis, combined with the second description information of the network devices in the target network, the actual network hierarchy can be determined, and finally displayed in the form of a network topology diagram. This method defines the topological architecture of the network by means of a topological template, rather than drawing it completely based on the topological relationship obtained by scanning. It can automatically generate an effect similar to manually drawing a topology when the network topology architecture is satisfied. Furthermore, since the network topology diagram is drawn based on the actual network hierarchy, it can show the complete device relationship, generate a relatively complete network topology relationship, and can display the fragmented information in series in the complete topology, thereby improving the efficiency of network troubleshooting.
[0063] In some optional implementations, the target topology template is obtained by construction. That is, in response to the construction operation of the topology template for the target network, the target topology template is obtained. Based on this, Figure 3 As shown, in response to the construction operation of the topology template for the target network, a target topology template is obtained, including:
[0064] Step S301: In response to a creation operation of a topology template for a target network, a topology template creation page is displayed.
[0065] The topology template new creation page includes a hierarchical control.
[0066] The user triggers the creation of a topology template through interaction, and accordingly, a creation instruction is generated. The creation page of the topology template is displayed through the corresponding creation instruction. The creation page of the topology template may also display a hierarchy control, and after a network hierarchy is created, a device control is also displayed under the corresponding network hierarchy.
[0067] In some optional implementations, the topology template creation page also displays description information representing the target network. For example, the description information of the target network can be represented by a geographical location, or by a network name, etc. After the target topology template of the target network is constructed, it can be saved so that the existing topology template can be used to modify and form a topology template of the corresponding network.
[0068] In addition, other contents may be displayed on the topology template creation page, such as the topology template of an existing network. Based on this, by interacting with the topology templates of these existing networks, the topology template is displayed on the interface to determine whether it is applicable to the target network, etc.
[0069] Other contents may also be displayed on the topology template creation page, which are set according to actual needs and are not limited here.
[0070] Step S302: In response to an interactive operation on a hierarchy control, the network hierarchy is displayed on a new topology template page.
[0071] The corresponding area of the network level also displays device controls.
[0072] A hierarchy control is displayed on the topology template new page, and a new hierarchy instruction is generated through interaction with the hierarchy control. Accordingly, in response to the new hierarchy instruction, the network hierarchy is displayed on the topology template new page.
[0073] For the creation of a new network layer, all network layers may be added first according to the network topology of the target network, and then the network devices that may be included in each network layer may be set. Alternatively, after a new network layer is created, the network devices that may be included in the network layer may be set, etc. Of course, the setting method of the network layer and the network devices that may be included in the network layer is set according to actual needs and is not limited to the above description.
[0074] It should be noted that the network level here is a general term for all network levels in the target topology template, and is not limited to just one network level.
[0075] After the network level is created, a device control is also displayed in the corresponding area of the network level. The corresponding area can be a certain position in the display area of the network level, or a specified position, etc. Furthermore, the device control is used to add a network device in the network level.
[0076] The display forms of the hierarchical controls and device controls may be buttons, or other forms of controls, etc., and no limitation is imposed on their display forms.
[0077] In some optional implementations, the above step S302 includes:
[0078] Step a1, in response to an interactive operation on a hierarchical control, a first entry is displayed on a new topology template page, the first entry includes an interactive area corresponding to a template field, and the template field includes a name field and a weight field.
[0079] Step a2: In response to the interactive operation on the first interactive area corresponding to the name field, obtain the name of the network layer.
[0080] Step a3, in response to the interactive operation on the second interactive area corresponding to the weight field, obtain the weight range of the network level to obtain the network level.
[0081] After the user interacts with the hierarchical control, a hierarchical addition instruction is generated. Accordingly, in response to the hierarchical addition instruction, the first entry is displayed under the topology template new page. Specifically, after adding a new network hierarchy, template fields can be displayed, including but not limited to the name field and the weight field. Based on this, the first entry includes the interaction area corresponding to the template field, that is, the first interaction area corresponding to the name field and the second interaction area corresponding to the weight field.
[0082] The first interactive area and the second interactive area are set to set the name and weight range of the network level. The display forms of the first interactive area and the second interactive area include but are not limited to text boxes or drop-down lists, etc., which are not limited here.
[0083] For the network level, a network name setting instruction is generated through interaction with the first interaction area, and accordingly, the name of the network level is displayed in the first interaction area in response to the network name setting instruction. A weight range setting instruction is generated through interaction with the second interaction area, and accordingly, the weight range of the network level is displayed in the second interaction area in response to the weight range setting instruction.
[0084] For example, Figure 4 As shown, the target network may include layer 1 and layer 2, and layer 2 may also include a bypass layer. Device roles of included network devices may be set at each network layer, including but not limited to network devices, terminal devices, and the like.
[0085] The template fields including the name field and the weight field are displayed in the topology template creation page, giving the user corresponding prompt information to facilitate the creation of the target topology template.
[0086] Step S303, in response to the interactive operation on the device control, the network device and the first description information are displayed under the network level of the new topology template page to obtain the target topology template.
[0087] After the user interacts with the device control, a new device instruction is generated. Accordingly, in response to the new device instruction, the network device and the first description information are displayed under the network level of the new topology template page. The network device here can be used to characterize the device role under the network level, and the first description information can be the weight of the network device.
[0088] For example, Figure 4 As shown, for different device roles in each level, a corresponding weight is set, wherein the weight of the device role is within the weight range of the corresponding level.
[0089] In some optional implementations, the above step S303 includes:
[0090] Step b1, in response to an interactive operation on a device control, displaying a second entry under the network level, the second entry including an interactive area corresponding to a template field, the template field including a name field and a weight field.
[0091] Step b2: In response to the interactive operation on the third interactive area corresponding to the name field, display the selectable network device name.
[0092] Step b3: In response to the selection operation for the selectable network device name, the name of the network device is obtained.
[0093] Step b4, in response to the interactive operation on the fourth interactive area corresponding to the weight field, obtain the weight of the network device to obtain the network device and first description information, wherein the first description information includes the weight.
[0094] After interacting with the device control, a second entry is displayed under the network level. Similar to the first entry, the second entry includes an interaction area corresponding to the template field. Specifically, the third interaction area corresponding to the name field in the second entry is interacted with to implement the setting of the device name of the network device. For example, after interacting with the third interaction area, the optional network device name, that is, the name of the optional device role, can be displayed. These optional device roles are device roles applicable to the network level, avoiding the full quantization of device role searches and improving the efficiency of building topology templates.
[0095] Further, after the selectable network device names are displayed, one of them is selected as the role name of the network device through interaction with the selectable network device names.
[0096] In addition, after the interaction with the fourth interaction area corresponding to the weight field in the second entry, the weight of the network device is set. The first description information may include the weight or other content, which is not limited here.
[0097] For the setting of network devices at the network level, when performing interactive operations in the third interactive area corresponding to the name field, the optional network device names are displayed, which improves the interaction efficiency and simplifies the topology template construction process.
[0098] In the new topology template page, you can set the name of each network layer in the target network, the weight range of the network layer, and the weight corresponding to the network devices in each network layer.
[0099] When the network topology diagram is subsequently displayed, if the weight of the second network device is within a certain network level range, the second network device belongs to the network level. Furthermore, if multiple second network devices belong to the same network level, the upper and lower connection relationships can be displayed according to the weight.
[0100] In some optional implementations, the network topology diagram can adaptively generate the topology level panel size based on the topology network level relationship and the size of the canvas. For example, if there are multiple weighted devices in a network level, they will be scaled in proportion to ensure that all network devices in the network level are displayed.
[0101] Some commonly used network layers can be provided for users to choose from in the topology template creation page, where the commonly used network layers include but are not limited to operators, WAN, core layer, bypass layer, aggregation layer, wired access layer, wireless access layer and terminal, etc.
[0102] Specifically, different weights can be defined according to device roles to meet the needs of the network layer. The default weight size logic provided by the new topology template page is: egress device weight > core device weight > side-mounted device weight > aggregation device weight > wired access device weight > wireless access device weight > terminal device weight. The topology structure at and below the core layer is relatively stable. Above the core layer, if there are physical links with both the egress device and the core device, it belongs to the WAN layer; if it is only connected to the core device, it belongs to the side-mounted layer. Furthermore, the wireless controller belongs to the side-mounted layer by default. When there is no connection between the firewall WAN layer and the operator layer, it belongs to the side-mounted layer.
[0103] In some optional implementations, the target topology template of the target network can be obtained by modifying the topology template of a similar network. Specifically, the above-mentioned generating the target topology template in response to the construction operation of the topology template includes:
[0104] Step c1: displaying an initial topology template, where the initial topology template is used to characterize a topology template of a network similar to the target network.
[0105] Step c2: in response to the modification operation on the initial topology template, a target topology template is obtained.
[0106] The initial topology template can be obtained through retrieval, for example, by describing the topology architecture of the target network and obtaining the initial topology template through retrieval. Alternatively, the initial topology template can be selected by interactively selecting an existing topology template for display on the new topology template page. Of course, other methods can also be used to determine the initial topology template, which is not limited here, and can be set according to actual needs.
[0107] After the initial topology template is determined, the initial topology template is modified according to the actual topology level of the target network to obtain a target topology template suitable for the target network.
[0108] The topology template for the target network can be constructed by modifying the topology template of a similar network. Due to the universality of the topology template, the construction efficiency of the topology template used in the network can be improved.
[0109] After obtaining the target topology template, the network topology diagram can be generated and displayed based on the information collected from the target network.
[0110] For example, Figure 5 As shown in the figure, a network topology diagram is used to display the topology information of the target network. The network layers included in the target network include operators, WAN, core layer, aggregation layer, wired access layer and wireless access layer. Each network layer has its own corresponding network equipment, and the network equipment is connected by lines to represent their association.
[0111] The network topology generation method provided in this embodiment constructs a target topology template by a new construction method, creates a new network hierarchy, and then creates new network devices and first description information in the network hierarchy, and establishes the target topology template based on the network hierarchy relationship, thereby improving the adaptability of the target topology template and the target network.
[0112] In some optional implementations, the network topology diagram also displays a toolbar. Based on this, the above-mentioned network topology generation method also includes:
[0113] Step d1, in response to an interactive operation on an aggregation control in the toolbar, an aggregation setting page is displayed, the aggregation setting page is used to display an optional aggregation network layer and an interactive control of the optional aggregation network layer, the optional aggregation network layer includes at least one of the network layers.
[0114] Step d2, in response to an interactive operation on an interactive control of the selectable aggregated network level, displaying aggregated attributes of the selectable aggregated network level, where the aggregated attributes include at least one of a location attribute and a device attribute.
[0115] Step d3, in response to the selection operation on the aggregation attribute, displaying the selection result of the aggregation attribute in the interactive control of the selectable aggregation network level to update the network topology map.
[0116] Combination Figure 5 As shown, a toolbar is also displayed in the network topology diagram, and an aggregation control is included in the toolbar. In the case where there are many second network devices displayed in the network topology diagram, the second network devices that meet the set aggregation properties can be displayed in the form of aggregation nodes on the network topology diagram through the interaction of the aggregation control.
[0117] Specifically, by interacting with the aggregation control in the toolbar, an aggregation instruction is generated, and accordingly, in response to the aggregation instruction, the display of the aggregation setting page is triggered. The aggregation setting page displays optional aggregation network levels and interactive controls corresponding to the optional aggregation network levels. Among them, the optional aggregation network level can be at least one of the network levels of the target network. For example, all network levels of the target network can be displayed on the aggregation setting page, or only some network levels that can be aggregated can be displayed. That is, by counting the number of second network devices in each network level, the network level in which the number of second network devices is greater than the first threshold can be determined as an aggregateable network level, and it can be displayed on the aggregation setting page.
[0118] For each optional aggregation network level, the aggregation properties of the optional aggregation network level are triggered by interacting with the interactive controls in the optional aggregation network level, and the aggregation properties of the optional aggregation network level are determined by interactive selection with the aggregation properties. When the aggregation display is subsequently performed, the second network devices of the same network level are aggregated according to the aggregation properties and displayed through the aggregation node. Among them, the aggregation properties include at least one of the location attributes and the device attributes. The location attributes may be the same place or the same area. The device attributes include but are not limited to the device model and the device role, etc. The specific content of the location attributes and the device attributes can be set according to actual needs, and no limitation is made here.
[0119] For example, Figure 6a As shown, in Figure 6a The optional aggregation network layers shown in the figure include the aggregation layer. By interacting with the interactive controls of the aggregation layer, the optional aggregation properties of the aggregation layer, namely, floor, device model, and device role, are displayed. The aggregation properties of the aggregation layer are obtained by selecting from the optional aggregation properties in an interactive manner. After selecting the aggregation properties of the aggregation layer, the Figure 6b The Aggregation Settings page is shown.
[0120] exist Figure 6bThe optional aggregation network layers displayed in the displayed aggregation setting page include the aggregation layer, wired access layer, and wireless access layer. Among them, the aggregation attributes of the wired access layer and the wireless access layer are both floors.
[0121] When displaying the network topology diagram, if there are too many devices, you can use the interaction of aggregation controls to aggregate and display the network devices at the same network level based on the aggregation properties, so as to quickly locate the corresponding network devices.
[0122] In some optional implementations, the above-mentioned method for generating a network topology further includes:
[0123] Step e1: If the network topology diagram includes a first aggregation node, the number of first network devices included in the first aggregation node and the status identifiers of the first network devices are displayed at the corresponding position of the aggregation node in the network topology diagram.
[0124] Step e2: In response to the interactive operation on the first aggregation node, display the status identifier of the first network device and each first network device.
[0125] If the network topology diagram includes a first aggregation node, the first aggregation node may be displayed to display the number of first network devices included in the first aggregation node and the status identifier of the first network device. The status identifier may be used to indicate whether the first network device is faulty, whether there is an alarm, etc., and different states of the first network device may be distinguished by different status identifiers. For example, different colors of the same identifier may be used to distinguish, or different identifiers may be used to distinguish, etc., which may be set according to actual needs, and no limitation is made here.
[0126] If the first aggregation node is interacted with, the status identifiers of all first network devices and each network device included in the first aggregation node are displayed.
[0127] For example, in Figure 7a The first aggregation node shown includes three first network devices, and all the first network devices are working normally. Figure 7a The first aggregation node shown interacts and displays three first network devices.
[0128] exist Figure 7b The first aggregation node shown includes three first network devices, and there is one first network device with an abnormal state, that is, when the first aggregation node is displayed, not only the number of included first network devices is displayed, but also the number of first network devices with abnormal states is displayed. Figure 7bThe interaction of the first aggregation node shown shows three first network devices and one of the first network devices has a status identifier, indicating that the status of the first network device is abnormal.
[0129] exist Figure 7c There are three first network devices in the first aggregation node shown, and two of them are in abnormal states. Figure 7c The interaction of the first aggregation node shown shows three first network devices, and two of the first network devices have status identifiers, indicating that the statuses of the two first network devices are abnormal.
[0130] Furthermore, when the first aggregation node is displayed, a connection relationship can be represented by a line, and after interacting with the first aggregation node, the connection lines of all first network devices are displayed. Figure 7d When the first aggregation node is displayed, only one line is shown with the upstream node; Figure 7d After the first aggregation node is interacted, connections of three first network devices are displayed.
[0131] When the first aggregation node is displayed, the number and status identifiers of the aggregated network devices are displayed, so as to intuitively understand the status of the network devices. Further, after the first aggregation node is expanded, the first network device and its status identifier are displayed, so as to accurately locate the specific network device.
[0132] In some optional implementations, the network topology diagram also displays a toolbar, which includes a layer control, and the layer control is used to trigger the display of a layer setting page, and the layer setting page is used to set the display state of the topology object in the network topology diagram, that is, display or hide. Based on this, the above-mentioned network topology generation method also includes:
[0133] Step f1, in response to the interactive operation on the layer control in the toolbar, the layer setting page is displayed, the layer setting page is used to display the network hierarchy in the target topology template and the network devices in the network hierarchy, the network hierarchy is displayed with a first display control, and the network devices are displayed with a second display control.
[0134] Step f2, in response to the interactive operation on the first display control and / or the second display control, obtain the display form of the corresponding network layer and / or network device to update the network topology map, the display form includes display and hiding, and the target topology template is also used to characterize the network layer of the target network and the display form of the network devices in each network layer.
[0135] The user triggers the display of the layer setting page by interacting with the layer control in the toolbar. The layer setting page displays the network level and network devices in the target topology template, a first display control is displayed at the position corresponding to the network level, and a second display control is displayed at the position corresponding to the network device. For example, Figure 8a A schematic diagram of the layer settings page is shown. Figure 8a There are corresponding display controls for each network level, each network device within the network level, and each connection.
[0136] By interacting with the first display control and / or the second display control, the display form of the corresponding network layer and / or network device is adjusted and updated to the network topology map accordingly.
[0137] When setting the display format, it can be set for the entire network hierarchy, that is, by interacting with the first display control corresponding to the network hierarchy, if the display format of a certain network hierarchy is set to hidden, then the display format of all network devices in the network hierarchy is hidden; it can also be set for one or more network devices in a certain network hierarchy, that is, by interacting with the second display control corresponding to the network device that needs to be set in a certain network hierarchy.
[0138] For example, Figure 8a All display controls in the display state indicate that the corresponding topology objects (network levels, network devices and connections) are in display state. Figure 8b Some of the network devices are displayed as hidden, while the rest are displayed. Figure 8c All network devices in the WLAN are displayed as hidden.
[0139] For each network layer and each network device in the network topology diagram, the display or hiding status of the corresponding network layer and / or network device can be determined through the first display control and / or the second display control in the layer setting page.
[0140] In some optional implementations, the network topology diagram also provides an information query function. Specifically, the above-mentioned network topology generation method also includes:
[0141] Step g1: if it is detected that the interaction point is located on a first topology object, the first topology object and a second topology object associated with the first topology object are displayed in a first manner, and the remaining topology objects are displayed in a second manner. The first topology object includes network devices or connections in the network topology diagram.
[0142] Step g2: display basic information of the first topology object in the network topology map.
[0143] When the network topology diagram is displayed on the interface, the position of the interaction point is detected. If it is detected that the interaction point is located on the first topology object of the network topology diagram, it means that the relevant information of the first topology object needs to be queried at this time. Since the first topology object does not exist independently in the network topology diagram, it is necessary to determine the second topology object associated with the first topology object. That is, the first topology object and its associated second topology object are displayed in a first manner, and the remaining topology objects are displayed in a second manner. Among them, the first manner can be highlighted, and the second manner is normal display; the first manner can be bold, and the second manner is normal display. Of course, the first manner and the second manner can also be displayed in other ways, as long as the first manner and the second manner are different, and no limitation is made here.
[0144] Furthermore, the network topology map can not only display the first topology object, the second topology object and other topology objects, but also display the basic information of the first topology object, wherein the basic information includes but is not limited to the name, connection object and the like.
[0145] The network topology map also provides an information query function, which displays the selected first topology object and its associated second topology object in different ways by detecting the location of the interaction point, wherein the basic information of the first topology object is displayed to facilitate quick positioning.
[0146] In some optional implementations, the above-mentioned method for generating a network topology further includes: in response to an interactive operation on the first topology object, displaying detailed information of the first topology object in the network topology map.
[0147] After the interaction point is detected, the basic information of the first topology object is displayed. If you want to further view the detailed information of the first topology object, you can select the first topology object in an interactive manner. Correspondingly, the corresponding detailed information is displayed in the network topology diagram. Among them, the fields displayed in the detailed information can be related to the first topology object, for example, there can be corresponding fields for network devices, there can be corresponding fields for connections, and so on.
[0148] When the first topology object is selected, detailed information of the first topology object is displayed in the network topology map, so that the detailed content thereof can be easily understood from the network topology map without switching to other pages for query.
[0149] In some optional implementations, for different types of first topology objects, their associated second topology objects are different. Specifically, if the first topology object is a second network device in the network topology diagram, the second topology object includes an upstream network device, a downstream network device, a first connection between the second network device and the upstream network device, and a second connection between the second network device and the downstream network device. If the first topology object is a third connection in the network topology diagram, the second topology object includes the network device connected to the third connection.
[0150] For example, Figure 9a A schematic diagram of a network topology diagram is shown in Figure 9a The network includes the convergence layer, wired access layer, and wireless access layer. If the current detected interaction point is located on the switch of the wired access layer, then Figure 9b As shown, the first method is used to display the upstream and downstream devices of the switch and the lines connecting the upstream and downstream devices, and to display the basic information of the switch. If the switch is selected, you can switch to Fig.9c , display the detailed device information of the switch.
[0151] like Fig.10a As shown, if the interaction point is currently detected to be on a line, the first mode is displayed to display the line and the network device connected to the line, and to display the basic information of the line. If the line is selected, you can switch to Fig.10b As shown in the figure, the detailed information of the connection is displayed.
[0152] Different types of first topological objects have different associated second topological objects, which facilitates distinguishing display. It also provides analysis drill-down capability and analysis path series connection capability, which helps users to close the analysis path loop.
[0153] In some optional implementations, if the first topology object is a second network device in the network topology map, displaying detailed information of the first topology object in the network topology map includes:
[0154] Step h11: if the second network device is not connected to the terminal device, detailed device information of the second network device is displayed in the first information dashboard, and the fields in the detailed device information correspond to the device type of the second network device.
[0155] Step h12, if the second network device is connected to a terminal device, a second information dashboard is displayed. The second information dashboard includes a first tab corresponding to basic information and a second tab corresponding to the connected terminal. The page corresponding to the first tab is used to display the device detailed information of the second network device, and the page corresponding to the second tab is used to display the information of the terminal device connected to the second network device.
[0156] As described above, different first topology objects display different detailed information. Specifically, if the first topology object is a second network device, and the second network device is not connected to a terminal device, the detailed information of the second network device is displayed. Fig.11 As shown, the first information board is used to display detailed information of the second network device.
[0157] If the second network device is connected to a terminal device, the displayed content is switched through different tabs in the second information dashboard. That is, the first tab corresponds to the basic information of the second network device, and the second tab corresponds to the information of the terminal device connected to the second network device. For example, Fig.12a The content corresponding to the first tab is displayed. Figure 12b The content corresponding to the second tab is displayed.
[0158] When the first topology object is a second network device, a corresponding information board is used to display corresponding content according to whether the second network device is connected to a terminal device, that is, detailed information of the second network device is displayed in a corresponding manner.
[0159] In some optional implementations, the method for generating a network topology further includes:
[0160] Step g1: In response to a selection operation on a second tab, display a page corresponding to the second tab.
[0161] Step g2: in response to a selection operation on the first terminal device in the page corresponding to the second tab, display detailed information of the first terminal device.
[0162] If you select the second tab in the second information dashboard, the page corresponding to the second tab is displayed. The first terminal device connected to the second network device is displayed on this page, and only the basic information of the first terminal device can be displayed here. If you want to view the detailed information of the first terminal device, you can select the corresponding first terminal device in an interactive manner, and accordingly, the detailed information of the first terminal device is displayed.
[0163] When the second network device is connected to a terminal device, by selecting the second tab, a page corresponding to the second tab is displayed, in which a selection operation for the first terminal device is provided and detailed information of the first terminal device is displayed, that is, drill-down capability of detailed information is provided.
[0164] In some optional embodiments, if the first topology object is the third line in the network topology map, displaying detailed information of the first topology object in the network topology map includes: if the third line is a stacking line, displaying detailed information of at least two network devices connected to the third line in the network topology map.
[0165] From the perspective of high availability of devices, two physical devices can be simulated into one logical device through network technology. For example, if a network device has 10 ports but needs to connect 20 devices, the two devices can be tied together through network technology. That is, they are connected through stacking cables, that is, the connection relationship on this line is logically two devices, and what is displayed is its physical device.
[0166] Accordingly, in the network topology diagram, if it is detected that the interaction point is located on a stacking line, the stacking line is selected in an interactive manner, and detailed information of at least two network devices connected to the stacking line is displayed.
[0167] In the case of stacking lines, if the third line is selected, detailed information of at least two network devices connected to the display is displayed, and drilling down of the terminal device is realized.
[0168] The collection of information in the target network can be used for the back-end server, that is, the back-end server is used to scan the network devices in the target network to generate a network topology map.
[0169] Before describing the method for generating the network topology executed by the backend server, the generation of the network topology is described first. For example, Fig.13 A schematic diagram of the architecture for generating a network topology is shown, which mainly includes data pipelines, back-end servers, and front-end devices.
[0170] The data pipeline includes a data collection module and a data processing module. The data collection module is used to collect raw data from various network devices (such as switches and other network hardware). It uses protocols such as LLDP (Link Layer Discovery Protocol) and ARP (Address Resolution Protocol) to collect information about network topology. The data processing module is used to process the raw data collected from network devices and CMDB. It extracts relevant information, converts it into a structured format suitable for analysis, and loads it into the database for further use.
[0171] Furthermore, the data pipeline aims to collect topological relationship data between devices, including physical connection relationships and logical association relationships. The collected objects can be as follows: Fig.14 As shown, of course, Fig.14 It is only an example and does not limit the protection scope of the present disclosure.
[0172] The back-end server includes entity management and entity services. Specifically, the entity service is used to manage and query topology data: namely, entity management: by managing the relationship between raw data and entity types, ensuring that the raw data is correctly interpreted and associated with the appropriate entity definition; topology query: by providing an API for querying topology data, allowing the front end to request information about the network topology, such as device details, connections and hierarchical relationships, etc.
[0173] The front-end device is used to provide a user interface for users to interact with topology data. It provides visualization tools to display the network topology, perform queries, explore different parts of the network, and view detailed information about devices and connections.
[0174] The present disclosure provides a method for generating a network topology. Fig.15 is a flow chart of a method for generating a network topology according to an embodiment of the present disclosure, such as Fig.15 As shown, the process includes the following steps:
[0175] Step S1501: Obtain a target topology template.
[0176] The target topology template includes network levels and first description information of network devices in each network level.
[0177] For details, see Figure 3 The description of step S301 of the illustrated embodiment will not be repeated here.
[0178] Step S1502: Generate and display a network topology map of the target network based on the target topology template and information collected from the target network.
[0179] The collected information includes: network devices in the target network, connection relationships between network devices, and second description information, and the second description information is used to determine the network level to which the network devices in the target network belong.
[0180] Specifically, the above step S1502 includes:
[0181] Step S15021: Acquire a connection relationship and second description information of a second network device in the target network using at least one method.
[0182] Different methods may be used to obtain the connection relationship and the second description information for different types of second network devices in the target network.
[0183] For example, the connection relationship of network devices can be scanned through the Simple Network Management Protocol (SNMP). Specifically, in order to shield the problem of non-standard configuration in the customer environment, the device identification (Chasis ID) is used as the unique identification of the network device. For example, the Chasis ID of devices such as switches is obtained through SNMP scanning, and the Chasis ID of wireless access points is obtained by querying the wireless controller. SNMP scans the port name and port index of wired network devices. SNMP scans the device LLDP data and establishes a port-level connection relationship table.
[0184] The data of the wireless controller can also be collected through the network device configuration and management protocol (Representational State Transfer Configuration, RestConf) based on the REST (Representational State Transfer) principle to obtain the corresponding relationship between the wireless access point and the controller, that is, the logical relationship between the wireless access point and the wireless controller, and obtained by querying the wireless controller through the RestConf protocol.
[0185] The connection relationship of wired access devices can also be obtained through the Address Resolution Protocol (ARP) and the physical address (MAC) table. That is, scan the gateway node to obtain the ARP table of the network; scan the access switch to obtain the MAC address table; query the ARP table to obtain the correspondence between the terminal device IP address and MAC address.
[0186] It can also be collected through external lines. That is, the dedicated line obtains data through SNMP scanning Link Layer Discovery Protocol (LLDP); query the CMDB line module to obtain the information of the connected public network line / dedicated line.
[0187] After collecting the original topological data, the data processing (DATA ETL) framework is used to make the data clear, relevant, and stored in the database. Fig.16 As shown, the data processing process includes data extraction, data conversion, and data loading.
[0188] Specifically, data extraction is implemented from the data source, for example, the original topological data obtained by the above scanning is read.
[0189] The data conversion process includes data cleaning, data parsing, and data coloring. Data cleaning is used to filter invalid data, remove records with null values or incorrect formats, and ensure data quality. Data cleaning can be divided into ARP data cleaning and LLDP data cleaning. ARP data cleaning is used to ensure that each record contains a valid IP and MAC address, and LLDP data cleaning is used to ensure that the device data associated with each line is valid data.
[0190] Data parsing is used to parse the original topology data into a structured format, which is divided into ARP data parsing and LLDP data parsing. Among them, ARP data parsing is used to parse the original topology data into structured data containing IP addresses and MAC addresses. LLDP data parsing is used to parse each line information into structured data containing basic device information and port information, and aggregate the lines belonging to the same stack of devices.
[0191] Data coloring means that the network equipment is configured with a network detection protocol on the key links, and the five-tuple information of the data flow is actively sent to the center; the basic information of the wireless device can be obtained through the authentication system; the basic information of the wired device can be obtained through IP address management; the five-tuple information is associated with the basic information to expand the domain name, network, device information, etc. associated with the IP.
[0192] Data loading includes target data storage and real-time update. The target data storage is divided into ARP data storage and LLDP data storage, and the real-time update is divided into ARP real-time update and LLDP real-time update. The target data storage is used to write the converted data into the relational database (RDS) and graph database (ByteGraph) for subsequent query and analysis. The ARP data storage is used to store data in a table structure or key-value database for fast search of IP-MAC correspondence. The LLDP data storage is used to store data in a graph database for querying and visualizing the topological relationship between devices.
[0193] Real-time update uses stream processing capabilities to ensure real-time update and persistence of data and keep the latest status of the topology view, including ARP real-time update and LLDP real-time update. Among them, ARP real-time update: real-time update IP-MAC mapping to promptly reflect changes in the network. LLDP real-time update is used to update device connection relationships in real time to promptly reflect changes in network topology.
[0194] Further, Fig.13 Entity management in is mainly achieved through the definition of entity types. Fig.17As shown, after extracting data from the data source and processing it, the data of each entity is obtained, each entity is associated with the entity type, and parsed on this basis to obtain topological data that can be used for front-end rendering. Among them, the entity type includes location information and device role, and the location information includes but is not limited to buildings, floors and computer rooms, and the device role includes but is not limited to switches, wireless access points, wireless controllers, firewalls and gateway servers.
[0195] After obtaining the entity, it is necessary to perform entity type definition, field management, view definition, topology layout setting, data display, etc., so as to realize the display method of the second network device of the target network on the topology map by controlling the entity type.
[0196] Specifically, the definition of entity types is divided into entity classification and field management. Entity classification is to first classify different types of entities. Each entity type has different attributes and characteristics. Field management is to define unique fields and attributes for each entity type. These fields and attributes will affect the display of entities in the topology map.
[0197] Field management is divided into field configuration and field mapping. Field configuration is to configure the fields of each entity type in entity type field management, which includes defining the field name, type, display mode, etc. Field mapping is to map the original data with the corresponding entity field to ensure that the data is correctly filled into each field.
[0198] The view definition includes macro view, micro view and view layout. Fig.18 As shown, macro view and micro view define different view types according to requirements, such as macro view (Hostmap, Table, Topology) and micro view (Card, Detail Page). View layout is to define the layout and display mode of different views in the view according to the configuration in entity field management.
[0199] Data display is divided into entity filtering and entity mapping. Entity filtering is to filter data according to entity type and field, and only display qualified entities. Entity mapping is to map the filtered entities to the corresponding views and layouts to form the final topology display.
[0200] After the above processing on the original topology data, the connection relationship between the second network devices in the target network and the second description information are obtained.
[0201] Step S15022, comparing the second description information with the target topology template, determining the network level to which the network device in the target network belongs, and obtaining a network topology map.
[0202] The second descriptive information includes the device role of the second network device. By comparing the device role with the weight of the device role in the target topology template, the weight of the second network device can be obtained. Furthermore, by comparing the weight of the second network device with the weights of each network layer in the target topology template, the network layer to which the second network device belongs can be determined, thereby obtaining a network topology diagram.
[0203] Step S15023, display the network topology diagram.
[0204] Among them, since network devices have the ability to expand horizontally, the iteration of network architecture may make the network topology not a strict tree structure, but a tree-like graph structure, which determines that the traditional tree layout cannot adapt to the network topology. Therefore, the layout implementation of the network topology can be improved based on the Darge algorithm. Based on this algorithm, a tree-like graph structure can be implemented, and then the personalized layout of the network topology can be adjusted by adding a subgraph layout. Of course, other methods can also be used to implement a tree-like graph structure, which is not limited to the above description.
[0205] After the graph structure of the class tree is determined, it can be rendered based on the canvas network topology. That is, the creation of nodes and connection relationships can be achieved by creating a canvas element, obtaining the drawing context, defining the nodes and connections of the network topology, drawing on the canvas using the canvas drawing API, and aggregating nodes according to data labels; the implementation of legends and toolbars can be achieved through: object combination, and the implementation of legends in the form of subgraphs; interactions and events can be achieved by detecting mouse and keyboard events of entities such as nodes and lines.
[0206] After the above processing, the final display rendering result can be displayed on the interface in the form of a network topology diagram, and through corresponding interaction and query capabilities, etc.
[0207] The network topology generation method provided in this embodiment obtains real-time data of network devices in the target network through multiple acquisition methods and processes the data, so that the latest information of the device can be obtained in time, which is convenient for subsequent combination with the target topology template to be reflected in the generated network topology map.
[0208] As a specific application embodiment of the disclosed embodiment, the display of the topology template new page is triggered on the front-end device in an interactive manner, and the topology template new page is interacted with to achieve the network level of the target network and the weight setting of the device role of the network device. The back-end server scans the original topology data of the second network device in the target network regularly or in real time, processes it accordingly, and then feeds it back to the front-end device, and displays it in the form of a network topology diagram after rendering by the front-end device.
[0209] In the present embodiment, a device for generating a network topology is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made are not repeated here. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0210] This embodiment provides a device for generating a network topology, such as Fig.19 As shown, including:
[0211] The template acquisition module 1901 is used to acquire a target topology template, where the target topology template includes a network layer and first description information of network devices in each network layer.
[0212] The topology display module 1902 is used to generate and display a network topology diagram of the target network based on the target topology template and information collected from the target network. The collected information includes network devices in the target network, connection relationships between network devices, and second description information. The second description information is used to determine the network level to which the network devices in the target network belong.
[0213] In some optional implementations, the network topology generating device further includes:
[0214] The construction module is used to obtain a target topology template in response to a construction operation of a topology template for a target network.
[0215] In some optional embodiments, the building blocks include:
[0216] The first response unit is used to respond to a creation operation of a topology template for a target network and display a topology template creation page, wherein the topology template creation page includes a hierarchical control.
[0217] The second response unit is used to respond to the interactive operation on the hierarchy control, and display the network hierarchy on the new topology template page, and the corresponding area of the network hierarchy also displays the device control.
[0218] The third response unit is used to respond to the interactive operation on the device control and display the network device and the first description information under the network level of the new topology template page to obtain the target topology template.
[0219] In some optional implementations, the second response unit includes:
[0220] The first response subunit is used to respond to the interactive operation on the hierarchical control and display the first entry under the new topology template page. The first entry includes an interactive area corresponding to the template field, and the template field includes a name field and a weight field.
[0221] The second response subunit is used to obtain the name of the network layer in response to the interactive operation on the first interactive area corresponding to the name field.
[0222] The third response subunit is used to obtain a weight range of the network level in response to the interactive operation of the second interactive area corresponding to the weight field, so as to obtain the network level.
[0223] In some optional implementations, the third response unit includes:
[0224] The fourth response subunit is used to display a second entry under the network level in response to an interactive operation on the device control, where the second entry includes an interactive area corresponding to the template field, and the template field includes a name field and a weight field.
[0225] The fifth response subunit is used to display the selectable network device name in response to the interactive operation on the third interactive area corresponding to the name field.
[0226] The sixth responding subunit is used to obtain the name of the network device in response to the selection operation on the optional network device name.
[0227] The seventh response subunit is used to obtain the weight of the network device in response to the interactive operation of the fourth interactive area corresponding to the weight field, so as to obtain the network device and the first description information, wherein the first description information includes the weight.
[0228] In some optional embodiments, the building blocks include:
[0229] The first display unit is used to display an initial topology template, where the initial topology template is used to represent a topology template of a network similar to the target network.
[0230] The fourth responding unit is configured to obtain a target topology template in response to a modification operation on the initial topology template.
[0231] In some optional implementations, the network topology diagram further displays a toolbar, and the network topology generating device includes:
[0232] The first response module is used to display an aggregation setting page in response to an interactive operation on the aggregation control in the toolbar, and the aggregation setting page is used to display an optional aggregation network layer and an interactive control of the optional aggregation network layer, and the optional aggregation network layer includes at least one of the network layers.
[0233] The second response module is used to display the aggregated attributes of the selectable aggregated network level in response to the interactive operation on the interactive control of the selectable aggregated network level, where the aggregated attributes include at least one of the location attributes and the device attributes.
[0234] The third response module is used to display the selection result of the aggregation attribute in the interactive control of the selectable aggregation network level in response to the selection operation on the aggregation attribute, so as to update the network topology map.
[0235] In some optional implementations, the network topology generating device includes:
[0236] The first display module is used to display the number of first network devices included in the first aggregation node and the status identifier of the first network device at a corresponding position of the aggregation node in the network topology diagram if the network topology diagram includes the first aggregation node.
[0237] The second display module is used to display the state identifier of the first network device and each first network device in response to the interactive operation on the first aggregation node.
[0238] In some optional implementations, the network topology diagram further displays a toolbar, and the network topology generating device includes:
[0239] The fourth response module is used to respond to the interactive operation of the layer control in the toolbar and display the layer setting page, the layer setting page is used to display the network hierarchy in the target topology template and the network devices in the network hierarchy, the network hierarchy is displayed with a first display control correspondingly, and the network device is displayed with a second display control correspondingly.
[0240] The fifth response module is used to respond to the interactive operation on the first display control and / or the second display control to obtain the display form of the corresponding network layer and / or network device to update the network topology map, and the display form includes display and hiding. The target topology template is also used to characterize the network layer of the target network and the display form of the network devices in each network layer.
[0241] In some optional implementations, the network topology generating device includes:
[0242] The third display module is used to display the first topology object and the second topology object associated with the first topology object in a first manner if it is detected that the interaction point is located on the first topology object, and to display the remaining topology objects in a second manner. The first topology object includes network devices or connections in the network topology diagram.
[0243] The fourth display module is used to display basic information of the first topology object in the network topology map.
[0244] In some optional implementations, the network topology generating device includes:
[0245] The sixth response module is used to display detailed information of the first topology object in the network topology map in response to the interactive operation on the first topology object.
[0246] In some optional implementations, if the first topology object is a second network device in the network topology diagram, the second topology object includes an upstream network device, a downstream network device, a first connection between the second network device and the upstream network device, and a second connection between the second network device and the downstream network device. If the first topology object is a third connection in the network topology diagram, the second topology object includes the network device connected to the third connection.
[0247] In some optional implementations, if the first topology object is a second network device in the network topology graph, the sixth response module includes:
[0248] The second display unit is used to display detailed device information of the second network device in the first information dashboard if the second network device is not connected to the terminal device, wherein the fields in the detailed device information correspond to the device type of the second network device.
[0249] The third display unit is used to display a second information dashboard if the second network device is connected to a terminal device. The second information dashboard includes a first tab corresponding to basic information and a second tab corresponding to the connected terminal. The page corresponding to the first tab is used to display device detailed information of the second network device, and the page corresponding to the second tab is used to display information of the terminal device connected to the second network device.
[0250] In some optional implementations, the network topology generating device includes:
[0251] The seventh response module is used to display a page corresponding to the second tab in response to a selection operation on the second tab.
[0252] The eighth response module is used to display detailed information of the first terminal device in response to the selection operation of the first terminal device in the page corresponding to the second tab.
[0253] In some optional implementations, if the first topology object is a third line in the network topology diagram, the sixth response module includes:
[0254] The fourth display unit is used to display detailed information of at least two network devices connected to the third connection line in the network topology diagram if the third connection line is a stacking line.
[0255] In some optional implementations, the topology display module 1902 includes:
[0256] The information acquisition module is used to acquire the connection relationship and second description information of the second network device in the target network in at least one manner.
[0257] The comparison module is used to compare the second description information with the target topology template, determine the network level to which the network device in the target network belongs, and obtain a network topology map.
[0258] The display module is used to display the network topology diagram.
[0259] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0260] The network topology generating device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0261] The present disclosure also provides an electronic device having the above Fig.19 A device for generating the network topology shown.
[0262] See also Fig. 20 , Fig. 20 is a schematic diagram of the structure of an electronic device provided by an optional embodiment of the present disclosure, such as Fig. 20 As shown, the electronic device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig. 20 A processor 10 is taken as an example.
[0263] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0264] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0265] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0266] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0267] The electronic device further comprises a communication interface 30 for the electronic device to communicate with other devices or a communication network.
[0268] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0269] A part of the present disclosure may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present disclosure through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.
[0270] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for generating a network topology, characterized in that: The method comprises: Acquire a target topology template, wherein the target topology template includes a network layer and first description information of a network device in each of the network layers; Based on the target topology template and the information collected from the target network, a network topology diagram of the target network is generated and displayed; the collected information includes: network devices in the target network, connection relationships between network devices, and second description information, and the second description information is used to determine the network level to which the network devices in the target network belong.
2. The method according to claim 1, characterized in that: Before obtaining the target topology template, the method further includes: In response to the topology template construction operation, the target topology template is generated.
3. The method according to claim 2, characterized in that The generating the target topology template in response to the construction operation of the topology template includes: In response to a creation operation of a topology template for the target network, displaying a topology template creation page, wherein the topology template creation page includes a hierarchical control; In response to an interactive operation on the hierarchy control, displaying a network hierarchy on the topology template new creation page, and displaying a device control in a corresponding area of the network hierarchy; In response to the interactive operation on the device control, the network device and the first description information are displayed under the network level of the new topology template page to obtain the target topology template.
4. The method according to claim 3, characterized in that In response to the interactive operation on the hierarchy control, displaying the network hierarchy on the topology template new page includes: In response to an interactive operation on the hierarchical control, displaying a first entry under the topology template new creation page, the first entry including an interactive area corresponding to a template field, the template field including a name field and a weight field; In response to an interactive operation on a first interactive area corresponding to the name field, obtaining a name of the network level; In response to an interactive operation on a second interactive area corresponding to the weight field, a weight range of the network level is obtained to obtain the network level.
5. The method according to claim 3, characterized in that: The step of displaying the network device and the first description information at the network level of the newly created page of the topology template in response to the interactive operation on the device control includes: In response to an interactive operation on the device control, displaying a second entry under the network level, the second entry including an interactive area corresponding to a template field, the template field including a name field and a weight field; In response to an interactive operation on a third interactive area corresponding to the name field, displaying an optional network device name; In response to a selection operation on the selectable network device name, obtaining a name of the network device; In response to an interactive operation on a fourth interactive area corresponding to the weight field, a weight of the network device is obtained to obtain the network device and the first description information, wherein the first description information includes the weight.
6. The method according to claim 2, characterized in that The generating the target topology template in response to the construction operation of the topology template includes: Displaying an initial topology template, where the initial topology template is used to characterize a topology template of a network similar to the target network; In response to a modification operation on the initial topology template, the target topology template is obtained.
7. The method according to claim 1, characterized in that The network topology diagram also displays a toolbar, and the method further includes: In response to an interactive operation on an aggregate control in the toolbar, displaying an aggregate settings page, the aggregate settings page being used to display selectable aggregate network levels and interactive controls for the selectable aggregate network levels, the selectable aggregate network levels including at least one of the network levels; In response to an interactive operation on an interactive control of the selectable aggregated network level, displaying aggregated attributes of the selectable aggregated network level, the aggregated attributes comprising at least one of a location attribute and a device attribute; In response to a selection operation on the aggregation attribute, a selection result of the aggregation attribute is displayed in an interactive control of the selectable aggregation network level to update the network topology map.
8. The method according to claim 7, characterized in that The method further comprises: If the network topology diagram includes a first aggregation node, the number of first network devices included in the first aggregation node and the status identifier of the first network device are displayed at a corresponding position of the first aggregation node in the network topology diagram; In response to the interactive operation on the first aggregation node, the first network device and the status identifier of each of the first network devices are displayed.
9. The method according to claim 1, characterized in that: The network topology diagram also displays a toolbar, and the method further includes: In response to an interactive operation on a layer control in the toolbar, a layer setting page is displayed, wherein the layer setting page is used to display a network hierarchy in the target topology template and a network device in the network hierarchy, wherein a first display control is displayed correspondingly to the network hierarchy, and a second display control is displayed correspondingly to the network device; In response to interactive operations on the first display control and / or the second display control, the display form of the corresponding network layer and / or network device is obtained to update the network topology map, and the display form includes display and hiding. The target topology template is also used to characterize the network layer of the target network and the display form of the network devices in each of the network layers.
10. The method according to claim 1, characterized in that The method further comprises: If it is detected that the interaction point is located on a first topology object, the first topology object and a second topology object associated with the first topology object are displayed in a first manner, and the remaining topology objects are displayed in a second manner, wherein the first topology object includes a network device or a connection in the network topology diagram; The basic information of the first topology object is displayed in the network topology map.
11. The method according to claim 10, characterized in that The method further comprises: In response to an interactive operation on the first topology object, detailed information of the first topology object is displayed in the network topology map.
12. The method according to claim 11, characterized in that If the first topology object is a second network device in the network topology diagram, the second topology object includes an upstream network device, a downstream network device, a first connection between the second network device and the upstream network device, and a second connection between the second network device and the downstream network device; If the first topology object is the third line in the network topology map, the second topology object includes the network device connected to the third line.
13. The method according to claim 12, characterized in that If the first topology object is a second network device in the network topology map, the displaying detailed information of the first topology object in the network topology map includes: If the second network device is not connected to the terminal device, displaying detailed device information of the second network device in the first information dashboard, where the fields in the detailed device information correspond to the device type of the second network device; If the second network device is connected to a terminal device, a second information dashboard is displayed. The second information dashboard includes a first tab corresponding to basic information and a second tab corresponding to the connected terminal. The page corresponding to the first tab is used to display the device detailed information of the second network device, and the page corresponding to the second tab is used to display the information of the terminal device connected to the second network device.
14. The method according to claim 13, characterized in that The method further comprises: In response to a selection operation on the second tab, displaying a page corresponding to the second tab; In response to a selection operation on the first terminal device in the page corresponding to the second tab, detailed information of the first terminal device is displayed.
15. The method according to claim 12, characterized in that If the first topology object is the third link in the network topology map, displaying detailed information of the first topology object in the network topology map includes: If the third connection line is a stacking line, detailed information of at least two network devices connected to the third connection line is displayed in the network topology diagram.
16. The method according to claim 1, characterized in that The generating and displaying of a network topology diagram according to the target topology template and the information collected from the target network includes: Acquire the connection relationship and second description information of the network devices in the target network by using at least one method; Comparing the second description information with the target topology template, determining the network level to which the network device in the target network belongs, and obtaining the network topology map; The network topology diagram is displayed.
17. A device for generating a network topology, characterized in that: The device comprises: A template acquisition module, used to acquire a target topology template, wherein the target topology template includes a network layer and first description information of a network device in each of the network layers; A topology display module is used to generate and display a network topology diagram of the target network based on the target topology template and information collected from the target network; the collected information includes: network devices in the target network, connection relationships between network devices, and second description information, and the second description information is used to determine the network level to which the network devices in the target network belong.
18. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for generating a network topology according to any one of claims 1 to 16 by executing the computer instructions.
19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method for generating a network topology according to any one of claims 1 to 16.
20. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the method for generating a network topology according to any one of claims 1 to 16.
Citation Information
Patent Citations
Network topology generation method, electronic equipment and computer readable medium
CN112636988A
Network topological graph generation method and device
CN114915561A
System and method for automatically generating network topology based on network equipment resource discovery algorithm
CN115314392A
Network topological graph generation method and device, equipment and medium
CN117857366A
Multi-node network topology management method and apparatus, and electronic device and storage medium
WO2022021860A1
Cited By
Atomic topology generation method and system based on equipment association relationship, and atomic topology display method and system based on equipment association relationship
CN121151231A
Network topology generation method and device, storage medium and program product
CN121333943A
Automatic planning method and system for quickly generating large-scale simulation network topology structure
CN121644372A