A method, apparatus, and electronic device for displaying network topology
Patent Information
- Application Number
- CN202310790007.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-29
- Publication Date
- 2026-09-01
- Estimated Expiration
- 2043-06-29
AI Technical Summary
[0004]但是,在网络系统中的设备较多时,如:5000个设备,网络拓扑结构庞大,显示界面中通常无法完整展示网络拓扑结构,这样导致运维人员在查看网络拓扑结构时,需要拖拽显示界面或借助滚轮滑动显示界面,才能查看到整体的网络拓扑结构
Smart Images

Figure CN116846768B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of network topology display technology, and in particular to a method, apparatus and electronic device for displaying network topology. Background Technology
[0002] Operations and maintenance personnel can quickly locate problems in the network system based on its network topology.
[0003] In related technologies, the network topology of a network system is usually represented by a tree structure, which can clearly show the topological relationships between various devices in the network system.
[0004] However, when there are many devices in a network system, such as 5,000 devices, the network topology is huge, and the display interface usually cannot fully display the network topology. This means that maintenance personnel need to drag the display interface or use the scroll wheel to scroll the display interface to view the overall network topology.
[0005] Currently, there is an urgent need for a method to display network topology, thereby improving the ease of viewing network topology. Summary of the Invention
[0006] The purpose of this application is to provide a method, apparatus, and electronic device for displaying network topology, so as to improve the convenience of viewing network topology. The specific technical solution is as follows:
[0007] In a first aspect, embodiments of this application provide a method for displaying network topology, including:
[0008] Determine an initial network topology; wherein each node in the initial network topology represents a device in the network system;
[0009] From the nodes at the same level of the initial network topology, identify whether there are nodes that meet the aggregation conditions; wherein, the nodes that meet the aggregation conditions include multiple nodes that represent the same device type and have the same parent node;
[0010] The nodes that meet the aggregation conditions are aggregated to obtain the aggregated nodes corresponding to the nodes that meet the aggregation conditions; wherein the aggregated nodes and the corresponding nodes that meet the aggregation conditions have the same parent-child relationship;
[0011] The initial network topology after aggregation is used as the target network topology of the network system and displayed; wherein, the target network topology is: when the aggregation node is detected to meet the predetermined expansion conditions, the network topology of the nodes corresponding to the aggregation node that meet the aggregation conditions can be displayed.
[0012] Optionally, after displaying the initial network topology after aggregation as the target network topology of the network system, the method further includes:
[0013] In response to the detection that any aggregation node meets the predetermined expansion conditions, the aggregation node is hidden, and the nodes that meet the aggregation conditions corresponding to the aggregation node are displayed in the node display area corresponding to the aggregation node.
[0014] The parent-child relationship between nodes that meet the aggregation conditions in the target network topology is the parent-child relationship that exists in the initial network topology.
[0015] Optionally, any aggregation node satisfying a predetermined expansion condition includes:
[0016] The system detects a user-initiated expand operation for any aggregate node, or detects that the parent node of any aggregate node is an aggregate node and an expand operation has occurred; wherein, the expand operation is to display the corresponding nodes that meet the aggregation conditions.
[0017] Optionally, the step of responding to detecting that any aggregation node meets a predetermined expansion condition, and displaying the nodes that meet the aggregation condition corresponding to that aggregation node in the node display area corresponding to that aggregation node, includes:
[0018] In response to the detection that any aggregation node meets the predetermined expansion conditions, when the number of nodes that meet the aggregation conditions corresponding to the aggregation node exceeds a first threshold, the nodes that meet the aggregation conditions corresponding to the aggregation node are displayed in the node display area corresponding to the aggregation node based on the pagination display method.
[0019] Optionally, the method further includes:
[0020] In response to the detection that the displayed nodes that meet the aggregation conditions satisfy the predetermined shrinkage conditions, the displayed nodes that meet the aggregation conditions are hidden, and the aggregated node corresponding to the displayed nodes that meet the aggregation conditions is displayed in the target network topology.
[0021] Optionally, after displaying the initial network topology after aggregation as the target network topology of the network system, the method further includes:
[0022] In response to detecting that the mouse pointer is hovering over the target node, if the current parent node of the target node is an aggregation node, the parent node of the target node in the target network topology is replaced with the parent node of the target node in the initial network topology; wherein, the target node is a node representing a device in the target network topology.
[0023] And / or,
[0024] If the current child node of the target node is an aggregation node, the child node of the target node in the target network topology is replaced with the child node of the target node in the initial network topology.
[0025] Optionally, after displaying the initial network topology after aggregation as the target network topology of the network system, the method further includes:
[0026] In response to the detection of a node search operation, the node indicated by the node search operation is determined, and the node to be processed is obtained;
[0027] If the target network topology displays an aggregate node corresponding to the node to be processed, then in the target network topology, the aggregate node corresponding to the node to be processed is expanded, and the node to be processed after the display processing is highlighted; or, in the target network topology, the aggregate node corresponding to the node to be processed is replaced with the node to be processed.
[0028] Wherein, the aggregate node corresponding to the node to be processed is the aggregate node obtained by performing aggregation processing on the node to be processed;
[0029] The parent-child relationship of the node to be processed in the target network topology is as follows: the parent-child relationship existing in the initial network topology.
[0030] Optionally, the nodes that meet the aggregation conditions include:
[0031] This represents multiple nodes of the same device type, with the same parent node, and whose number exceeds the second quantity threshold.
[0032] Optionally, the second quantity threshold is a quantity threshold set for the same device type;
[0033] The quantity threshold set for any device type is based on the information display requirements of the nodes for that device type. The higher the information display requirements for the nodes of any device type, the higher the quantity threshold set for that device type.
[0034] Optionally, the aggregation nodes in the target network topology are associated with and displayed with node description information of the corresponding nodes that meet the aggregation conditions.
[0035] Secondly, embodiments of this application provide a display device for network topology, including:
[0036] A determination module is used to determine an initial network topology; wherein each node in the initial network topology is used to characterize a device in the network system;
[0037] The identification module is used to identify whether there are nodes that meet the aggregation conditions from the nodes of the same level in the initial network topology; wherein, the nodes that meet the aggregation conditions include multiple nodes that represent the same device type and have the same parent node;
[0038] An aggregation processing module is used to perform aggregation processing on the nodes that meet the aggregation conditions to obtain the aggregated nodes corresponding to the nodes that meet the aggregation conditions; wherein, the aggregated nodes and the corresponding nodes that meet the aggregation conditions have the same parent-child relationship;
[0039] The first display module is used to display the initial network topology structure after aggregation as the target network topology structure of the network system; wherein, the target network topology structure is: when the aggregation node is detected to meet the predetermined expansion conditions, the network topology structure of the nodes corresponding to the aggregation node that meet the aggregation conditions can be displayed.
[0040] Optionally, the device further includes:
[0041] The second display module is used to, after displaying the initial network topology structure after aggregation processing as the target network topology structure of the network system, hide the aggregation node in response to detecting that any aggregation node meets the predetermined expansion conditions, and display the nodes that meet the aggregation conditions corresponding to the aggregation node in the node display area corresponding to the aggregation node.
[0042] The parent-child relationship between nodes that meet the aggregation conditions in the target network topology is the parent-child relationship that exists in the initial network topology.
[0043] Optionally, any aggregation node satisfying a predetermined expansion condition includes:
[0044] The system detects a user-initiated expand operation for any aggregate node, or detects that the parent node of any aggregate node is an aggregate node and an expand operation has occurred; wherein, the expand operation is to display the corresponding nodes that meet the aggregation conditions.
[0045] Optionally, the second display module includes:
[0046] The first display submodule is used to respond to the detection that any aggregation node meets the predetermined expansion conditions. When the number of nodes that meet the aggregation conditions corresponding to the aggregation node exceeds a first threshold, the submodule displays the nodes that meet the aggregation conditions corresponding to the aggregation node in the node display area corresponding to the aggregation node based on the pagination display method.
[0047] Optionally, the device further includes:
[0048] The third display module is used to hide the displayed nodes that meet the aggregation conditions in response to detecting that the displayed nodes meet the aggregation conditions satisfy the predetermined shrinkage conditions, and to display the aggregate node corresponding to the displayed nodes that meet the aggregation conditions in the target network topology.
[0049] Optionally, the device further includes:
[0050] The first replacement module is configured to, after displaying the initial network topology structure after aggregation processing as the target network topology structure of the network system, in response to detecting that the mouse pointer is hovering over the target node, if the current parent node of the target node is an aggregation node, replace the parent node of the target node in the target network topology structure with the parent node of the target node in the initial network topology structure; wherein, the target node is a node representing a device in the target network topology architecture;
[0051] And / or,
[0052] The second replacement module is used to replace the child nodes of the target node in the target network topology with the child nodes of the target node in the initial network topology if the current child node of the target node is an aggregation node.
[0053] Optionally, the device further includes:
[0054] The determination module is used to, after displaying the initial network topology structure after aggregation as the target network topology structure of the network system, determine the node indicated by the node search operation in response to the detection of the node search operation, and obtain the node to be processed.
[0055] The expansion processing module is used to perform expansion processing on the aggregate node corresponding to the node to be processed in the target network topology if the target network topology displays an aggregate node corresponding to the node to be processed, and highlight the node to be processed obtained after the display processing; or, in the target network topology, replace the aggregate node corresponding to the node to be processed with the node to be processed.
[0056] Wherein, the aggregate node corresponding to the node to be processed is the aggregate node obtained by performing aggregation processing on the node to be processed;
[0057] The parent-child relationship of the node to be processed in the target network topology is as follows: the parent-child relationship existing in the initial network topology.
[0058] Optionally, the nodes that meet the aggregation conditions include:
[0059] This represents multiple nodes of the same device type, with the same parent node, and whose number exceeds the second quantity threshold.
[0060] Optionally, the second quantity threshold is a quantity threshold set for the same device type;
[0061] The quantity threshold set for any device type is based on the information display requirements of the nodes for that device type. The higher the information display requirements for the nodes of any device type, the higher the quantity threshold set for that device type.
[0062] Optionally, the aggregation nodes in the target network topology are associated with and displayed with node description information of the corresponding nodes that meet the aggregation conditions.
[0063] Thirdly, embodiments of this application provide an electronic device, including:
[0064] Memory, used to store computer programs;
[0065] The processor, when executing a program stored in memory, implements any of the above methods for displaying network topology.
[0066] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements any of the above-described methods for displaying network topology.
[0067] Beneficial effects of the embodiments in this application:
[0068] The network topology display method provided in this application can determine an initial network topology, identify whether there are nodes that meet aggregation conditions from the nodes of the same level in the initial network topology, aggregate the nodes that meet the aggregation conditions to obtain the aggregated nodes corresponding to the nodes that meet the aggregation conditions, and use the initial network topology after aggregation processing as the target network topology of the network system for display. It can be seen that this application embodiment can aggregate nodes in an existing initial network topology, aggregating nodes at each level that meet the aggregation conditions, thereby displaying the processed network topology after aggregation. Therefore, when there are many device nodes, since the nodes that meet the aggregation conditions have been aggregated into aggregated nodes, the network topology will not be too large, making it easier for maintenance personnel to view the overall network topology, thus improving the convenience of viewing the network topology.
[0069] In addition, since each aggregation node can be collapsed or expanded, it can meet the different viewing needs of operation and maintenance personnel for single nodes or the overall structure, thereby improving the convenience of operation and maintenance.
[0070] Of course, implementing any product or method of this application does not necessarily require achieving all of the advantages described above at the same time. Attached Figure Description
[0071] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other embodiments can be obtained based on these drawings.
[0072] Figure 1(a) is a structural schematic diagram of an aggregation node display form provided in an embodiment of this application;
[0073] Figure 1(b) is a structural schematic diagram of another form of aggregation node provided in the embodiment of this application;
[0074] Figure 2 A flowchart illustrating a method for displaying network topology, provided as an embodiment of this application;
[0075] Figure 3 A flowchart illustrating another method for displaying network topology provided in this application embodiment;
[0076] Figure 4(a) is a schematic diagram of an aggregate node expansion structure provided in an embodiment of this application;
[0077] Figure 4(b) is a schematic diagram of another structure for expanding an aggregate node according to an embodiment of this application;
[0078] Figure 5(a) is a schematic diagram of a node shrinkage structure that meets the aggregation conditions provided in an embodiment of this application;
[0079] Figure 5(b) is a schematic diagram of another node shrinkage structure that meets the aggregation conditions provided in an embodiment of this application;
[0080] Figure 6(a) is a schematic diagram of a network topology provided in an embodiment of this application;
[0081] Figure 6(b) is a schematic diagram of a command line for node description information provided in an embodiment of this application;
[0082] Figure 7 A schematic diagram of a network topology display device provided in this application embodiment;
[0083] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0084] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art based on this application are within the scope of protection of this application.
[0085] Below, we will first introduce the technical terms involved in the embodiments of this application:
[0086] Network topology: The physical layout of various devices interconnected through transmission equipment media; that is, how computers and other devices in a network are connected in some way. It can also be understood as network topology structure.
[0087] Topology node: also known as a network unit. A network unit is a variety of data processing devices, data communication control devices, and data terminal devices in a network system. Since a topology node is a node in the network topology, it will be simply referred to as a node in the following text for the sake of brevity and convenience.
[0088] Node aggregation: Multiple nodes of the same type are aggregated into an aggregate node. An aggregate node can also be called an aggregate node display chain. The display form of an aggregate node can be collapsed display or expanded display.
[0089] For example, the following is a brief description of the display format of the aggregation node, with reference to the accompanying drawings:
[0090] As shown in Figure 1(a), this is an exemplary display of the aggregation node, which is a collapsed display. Aggregate node ID: 2 includes node ID: 3 and node ID: 4, which are displayed in a collapsed manner.
[0091] As shown in Figure 1(b), Figure 1(b) is an exemplary effect of the expanded display of the aggregation node. In this figure, aggregation node ID:2 includes node ID:3 and node ID:4, which are displayed in expanded form.
[0092] Topology link: A link is a connection between two topology nodes.
[0093] The following describes a method for displaying network topology provided by an embodiment of this application.
[0094] The network topology display method provided in this application can be applied to a management platform. In specific applications, the management platform can run on a terminal device, and maintenance personnel can use the terminal device's display interface to view the network topology. This application does not limit the specific form of the management platform or the form of the device on which it runs.
[0095] Specifically, the entity executing this method for displaying network topology can be a device for displaying network topology. For example, when the method is applied to a terminal device, the device can be a client running on the terminal device, which can be used to display the network topology. When the method is applied to a server, the device can be a computer program running on the server, which can be used to display the network topology.
[0096] One embodiment of this application provides a method for displaying network topology, which may include the following steps:
[0097] Determine an initial network topology; wherein each node in the initial network topology represents a device in the network system;
[0098] From the nodes at the same level of the initial network topology, identify whether there are nodes that meet the aggregation conditions; wherein, the nodes that meet the aggregation conditions include multiple nodes that represent the same device type and have the same parent node;
[0099] The nodes that meet the aggregation conditions are aggregated to obtain the aggregated nodes corresponding to the nodes that meet the aggregation conditions; wherein the aggregated nodes and the corresponding nodes that meet the aggregation conditions have the same parent-child relationship;
[0100] The initial network topology after aggregation is used as the target network topology of the network system and displayed; wherein, the target network topology is: when the aggregation node is detected to meet the predetermined expansion conditions, the network topology of the nodes corresponding to the aggregation node that meet the aggregation conditions can be displayed.
[0101] As can be seen, the embodiments of this application can aggregate nodes in the existing initial network topology, aggregating nodes at each level that meet the aggregation conditions, thereby displaying the processed network topology after aggregation. Therefore, when there are many device nodes, since nodes meeting the aggregation conditions have been aggregated into aggregate nodes, the network topology will not be too large, making it easier for maintenance personnel to view the overall network topology and thus improving the convenience of viewing the network topology.
[0102] In addition, since each aggregation node can be collapsed or expanded, it can meet the different viewing needs of operation and maintenance personnel for single nodes or the overall structure, thereby improving the convenience of operation and maintenance.
[0103] The following describes a method for displaying network topology provided by an embodiment of this application, with reference to the accompanying drawings.
[0104] Figure 2 This is a flowchart illustrating a method for demonstrating network topology provided in an embodiment of this application, such as... Figure 2 As shown, the method may include steps S201-S204:
[0105] S201, Determine the initial network topology;
[0106] Each node in the initial network topology represents a device in the network system;
[0107] It is understood that the initial network topology can be represented using a tree structure, which clearly shows the topological relationships between various devices in the network system. Furthermore, each node in the initial network topology can also be called a device node, and each node corresponds to a device in the actual network system. Therefore, operations on the nodes in the initial network topology can affect the devices in the network system. It is understood that the nodes in the initial network topology can represent network devices such as switches, terminal devices, fiber optic transceivers, and wireless bridges; this application does not specifically limit this.
[0108] In addition, the network system can be a variety of systems, such as access control systems, monitoring systems, etc. Any network system can be applied to the embodiments of this application, and the embodiments of this application do not specifically limit it.
[0109] It should be emphasized that the embodiments of this application do not limit the method of generating the initial network topology, and any method that can generate the initial network topology can be applied to this application.
[0110] S202, Identify whether there are nodes that meet the aggregation conditions from the nodes of the same level in the initial network topology;
[0111] The nodes that meet the aggregation conditions include multiple nodes that represent the same device type and have the same parent node;
[0112] It is understood that the initial network topology may include multiple layers, each with nodes. Therefore, it is possible to identify whether multiple nodes of the same type and with the same parent node exist within the same layer. The device type can be a switch, a terminal device, a PTZ camera, etc., and this embodiment does not specifically limit this. For example, if 10 nodes of the same type (switch device) are identified within the same layer of the initial network topology, and all 10 nodes of the same type share the same parent node, then nodes meeting the aggregation criteria can be considered identified.
[0113] Optionally, in one implementation, the nodes that meet the aggregation conditions include:
[0114] This represents multiple nodes of the same device type, with the same parent node, and whose number exceeds the second quantity threshold.
[0115] It is understood that in this implementation, nodes meeting the aggregation conditions must not only represent the same device type and have the same parent node, but their number can also exceed the second quantity threshold. It should be noted that the second quantity threshold is preset based on the device type; different device types correspond to different second quantity thresholds. For example, the second quantity threshold for nodes of the switch device type is 6, meaning that nodes of the switch device type, having the same parent node and exceeding 6 in number, can be considered nodes meeting the aggregation conditions. The second quantity threshold for nodes of the terminal device type is 1, meaning that nodes of the terminal device type, having the same parent node and exceeding 1 in number, can be considered nodes meeting the aggregation conditions. It is understood that this application embodiment does not specifically limit the value of the second quantity threshold.
[0116] It should be noted that setting a second threshold can prevent aggregation from occurring with a small number of nodes, which would cause the network topology to become a single-chain structure and make it inconvenient for maintenance personnel to monitor.
[0117] Optionally, in one implementation, the second quantity threshold is a quantity threshold set for the same device type;
[0118] The quantity threshold set for any device type is based on the information display requirements of the nodes for that device type. The higher the information display requirements for the nodes of any device type, the higher the quantity threshold set for that device type.
[0119] Understandably, the quantity threshold can be set based on the information display requirements of nodes of a specific device type. The higher the information display requirements for a particular device type, the higher the quantity threshold for that device type. Aggregation only occurs when there are a large number of nodes of that device type; otherwise, aggregation is not performed, thus ensuring that the information display requirements of that device type are met. Furthermore, the information display requirements of switching devices are higher than those of image acquisition devices, resulting in a higher quantity threshold for switches and a lower threshold for image acquisition devices. For example, two PTZ cameras can be aggregated to obtain an aggregated node.
[0120] As can be seen, this application, based on the second quantity threshold, can identify nodes that meet the aggregation conditions, and then perform aggregation processing on the nodes that meet the aggregation conditions to obtain aggregated nodes. Therefore, the network topology structure will not be too large, which can improve the convenience of viewing the network topology structure.
[0121] S203, perform aggregation processing on the nodes that meet the aggregation conditions to obtain the aggregated nodes corresponding to the nodes that meet the aggregation conditions;
[0122] Wherein, the aggregation node and the corresponding node that meets the aggregation condition have the same parent-child relationship;
[0123] It is understandable that clustering nodes that meet the clustering conditions can aggregate multiple nodes of the same device type and with the same parent node to obtain the clustered node corresponding to the node that meets the clustering conditions. The clustered node can include multiple nodes that meet the clustering conditions. The specific form of the clustered node has been introduced above, so it will not be repeated here.
[0124] It is important to emphasize that in the target network topology, the node icon of the aggregated node is different from that of the single node that is not aggregated. This makes it easier to distinguish between aggregated nodes and single nodes.
[0125] It should be noted that the aggregation node and all nodes that meet the aggregation criteria have the same parent-child relationship. This means that after aggregation processing, the parent-child relationships of nodes meeting the aggregation criteria are also aggregated, hence the aggregation node shares the same parent-child relationship with its corresponding nodes that meet the aggregation criteria. It is important to emphasize that the parent node of the aggregation node is the same as the parent node of the nodes that meet the aggregation criteria, and the child nodes of the aggregation node include the child nodes of the nodes that meet the aggregation criteria. For example, if nodes a, b, and c are all switch devices and share the same parent node, then aggregation processing on nodes a, b, and c yields a corresponding aggregation node A, which has the same parent-child relationship as nodes a, b, and c.
[0126] S204, The initial network topology structure after aggregation is displayed as the target network topology structure of the network system;
[0127] The target network topology is such that, when the aggregation node is detected to meet the predetermined expansion conditions, the network topology of the nodes corresponding to the aggregation node that meet the aggregation conditions can be displayed.
[0128] Understandably, the initial network topology after aggregation will not be too large and can serve as the target network topology for display. Therefore, when maintenance personnel want to view aggregated nodes, the target network topology can display all nodes that meet the aggregation conditions corresponding to the aggregated node. For example, continuing with the above example, when aggregated node A is detected to meet the predetermined expansion conditions, nodes a, b, and c corresponding to aggregated node A can be displayed.
[0129] Optionally, in one implementation, the aggregate nodes in the target network topology are associated with and displayed with node description information of the corresponding nodes that meet the aggregation conditions.
[0130] It is understood that, for example, when an operations and maintenance personnel perform a specified operation, such as hovering a pointer over an aggregate node in the target network topology or clicking on an aggregate node, the node description information of the corresponding nodes that meet the aggregation conditions can be displayed. The node description information may include the number of nodes, node status, etc. It is understood that this application embodiment does not specifically limit the node description information, nor does it specifically limit the aforementioned specified operation. For example, when an operations and maintenance personnel hover their pointer over aggregate node A in the target network topology, the number of nodes that meet the aggregation conditions can be displayed, which is 3: node a, node b, and node c.
[0131] Alternatively, in another implementation, the node description information can be directly displayed on the node icon of the aggregation node without performing any operations. This allows for an intuitive display of the node description information, such as the number of nodes forming the aggregation node.
[0132] As can be seen, the aggregation nodes in the target network structure of this application embodiment can be associated with and display the node description information of nodes that meet the aggregation conditions, thereby facilitating the operation and maintenance personnel to view the network topology structure and improving the convenience of viewing the network topology structure.
[0133] As can be seen, the embodiments of this application can aggregate nodes in the existing initial network topology, aggregating nodes at each level that meet the aggregation conditions, thereby displaying the processed network topology after aggregation. Therefore, when there are many device nodes, since nodes meeting the aggregation conditions have been aggregated into aggregate nodes, the network topology will not be too large, making it easier for maintenance personnel to view the overall network topology, thus improving the convenience of viewing the network topology and offering good usability for maintenance personnel.
[0134] In addition, since each aggregation node can be collapsed or expanded, it can meet the different viewing needs of operation and maintenance personnel for single nodes or the overall structure, thereby improving the convenience of operation and maintenance.
[0135] Optionally, embodiments of this application also provide another method for displaying network topology, such as... Figure 3 As shown, it may include:
[0136] S301, Determine the initial network topology;
[0137] S302, Identify whether there are nodes that meet the aggregation conditions from the nodes of the same level in the initial network topology;
[0138] S303, perform aggregation processing on the nodes that meet the aggregation conditions to obtain the aggregated nodes corresponding to the nodes that meet the aggregation conditions;
[0139] S304, The initial network topology after aggregation is displayed as the target network topology of the network system;
[0140] It is understood that steps S301-S304 are the same as steps S201-S204, so they will not be described in detail here.
[0141] S305, in response to detecting that any aggregation node meets the predetermined expansion conditions, the aggregation node is hidden, and the nodes that meet the aggregation conditions corresponding to the aggregation node are displayed in the node display area corresponding to the aggregation node;
[0142] The parent-child relationship between nodes that meet the aggregation conditions in the target network topology is the parent-child relationship that exists in the initial network topology.
[0143] It should be noted that the process of hiding the aggregation node and displaying the nodes that meet the aggregation conditions can also be seen as replacing the aggregation node with the nodes that meet the aggregation conditions and then displaying them. The display effect can be that the aggregation node is expanded. Furthermore, the node display area is the area near the aggregation node, used to display the nodes that meet the aggregation conditions corresponding to that aggregation node. This area can be a pre-set location, and this embodiment does not specifically limit this. It is understood that the parent-child relationships of the nodes that meet the aggregation conditions in the target network topology are consistent with the parent-child relationships in the initial network topology. Therefore, when an aggregation node is expanded, its child nodes will also be expanded, thus displaying accurate parent-child relationships.
[0144] It should be noted that after the aggregation node is expanded into nodes that meet the aggregation conditions, the core connection information can be displayed through the connection lines between the nodes. This core connection information can also be called link information. The link information can include: uplink device information, that is, the node description information of the parent node, and downlink device information, that is, the node description information of the child node, so as to facilitate the operation and maintenance personnel to quickly locate the composition information of the link.
[0145] Optionally, in one implementation, the condition that any aggregation node satisfies a predetermined expansion condition includes:
[0146] The system detects a user-initiated expand operation for any aggregate node, or detects that the parent node of any aggregate node is an aggregate node and an expand operation has occurred; wherein, the expand operation is to display the corresponding nodes that meet the aggregation conditions.
[0147] It is understandable that the predetermined expansion condition satisfied by any aggregation node can be one of two cases. One is that an expansion operation issued by a user for any aggregation node is detected, and the user here can also be understood as an operations and maintenance personnel. The other is that the parent node of any aggregation node is also an aggregation node, and the parent aggregation node is performing an expansion action. In this case, when the parent node of the aggregation node expands, the aggregation node also expands. Therefore, the parent-child relationship of the nodes that meet the aggregation conditions in the target network topology is the parent-child relationship that exists in the initial network topology, that is, the accurate parent-child relationship.
[0148] It should be noted that when it is detected that the parent node of any aggregate node is an aggregate node and an expansion action is performed, the aggregate node is also expanded. This expansion method is a recursive expansion method. When the parent node is expanded, its child nodes are also expanded in a layer-by-layer progressive expansion method.
[0149] To better understand the above content, the following will briefly introduce two cases that meet the predetermined unfolding conditions, with reference to the accompanying drawings:
[0150] As shown in Figure 4(a), when the operations and maintenance personnel click on the aggregation node ID: 11, the expansion operation of the aggregation node ID: 11 issued by the operations and maintenance personnel is detected, the aggregation node ID: 11 is hidden, and the nodes ID: 6, ID: 7, ID: 9 and ID: 10 are displayed in the node display area corresponding to the aggregation node ID: 11.
[0151] As shown in Figure 4(b), when the maintenance personnel click on the aggregation node ID: 2, it is detected that the parent node of aggregation node ID: 11 is expanding. Aggregation node ID: 11 will also expand. Aggregation node ID: 2 can be expanded into node ID: 3 and node ID: 4 in the corresponding node expansion area. Aggregation node ID: 11 can be expanded into node ID: 6, node ID: 7, node ID: 9 and node ID: 10 in the corresponding node expansion area and displayed.
[0152] Of course, the specific circumstances of the expansion of aggregation nodes are not limited to the two situations described above, and there may be other situations. This application embodiment does not specifically limit the specific circumstances of the expansion of aggregation nodes.
[0153] In this embodiment, when any aggregation node meets the predetermined expansion conditions, the aggregation node can be hidden, and the nodes corresponding to that aggregation node that meet the aggregation conditions can be displayed in the corresponding node expansion area. It is evident that when the parent node of an aggregation node is expanded, the aggregation node itself will also expand. This recursive expansion method can display accurate parent-child relationships, facilitating maintenance personnel to view the overall network topology and thus improving the ease of viewing the network topology.
[0154] Optionally, in one implementation, the step of responding to detecting that any aggregated node meets a predetermined expansion condition, and displaying the nodes that meet the aggregation condition corresponding to the aggregated node in the node display area corresponding to the aggregated node, may include step A1:
[0155] Step A1: In response to detecting that any aggregation node meets the predetermined expansion conditions, when the number of nodes that meet the aggregation conditions corresponding to the aggregation node exceeds a first threshold, based on the pagination display method, the nodes that meet the aggregation conditions corresponding to the aggregation node are displayed in the node display area corresponding to the aggregation node.
[0156] Understandably, the pagination method is used because the node display area corresponding to an aggregation node cannot fully display all nodes that meet the aggregation criteria. Therefore, pagination is used to display the nodes that meet the aggregation criteria. For example, aggregation node A has 100 nodes that meet the aggregation criteria, but the expanded node area corresponding to aggregation node A can only display 5 nodes that meet the aggregation criteria at a time. Therefore, pagination is used to display all 100 nodes that meet the aggregation criteria.
[0157] It should be noted that the first quantity threshold is a threshold set for the pagination expansion method. It is set based on the number of nodes that can be displayed in the expanded area corresponding to the aggregation node. For example, if the expanded area corresponding to aggregation node A can display 5 nodes, then the first quantity threshold can be 5. If more than 5 nodes meet the aggregation conditions, then based on the pagination display method, the nodes that meet the aggregation conditions corresponding to aggregation node A will be displayed in the node display area corresponding to aggregation node A. It is understood that this application embodiment does not specifically limit the value of the first quantity threshold.
[0158] As can be seen, by setting a first quantity threshold, the pagination display method of nodes that meet the aggregation conditions can be determined. Therefore, in the case where there are multiple nodes that meet the aggregation conditions, the pagination display method can also be used to display multiple nodes that meet the aggregation conditions, making it easier for operation and maintenance personnel to view the overall network topology and thus improving the convenience of viewing the network topology.
[0159] Optionally, in one implementation, the method further includes step B1:
[0160] Step B1: In response to detecting that the displayed nodes that meet the aggregation conditions satisfy the predetermined shrinkage conditions, the displayed nodes that meet the aggregation conditions are hidden, and the aggregated node corresponding to the displayed nodes that meet the aggregation conditions is displayed in the target network topology.
[0161] Understandably, the predetermined shrinkage condition could be the detection of a shrinkage operation issued by the operations and maintenance personnel for any aggregation node. This could occur when the operations and maintenance personnel, after viewing the nodes that meet the aggregation conditions for an aggregation node, click on that node again, thus hiding the previously displayed nodes that meet the aggregation conditions. The target network topology would then then display the corresponding aggregation node for the node that meets the aggregation conditions. Alternatively, this process of hiding the displayed nodes that meet the aggregation conditions and then displaying the corresponding aggregation node in the target network topology can also be seen as replacing the displayed nodes that meet the aggregation conditions with the corresponding aggregation node, resulting in the visual effect of shrinking the nodes that meet the aggregation conditions.
[0162] For example, after nodes that meet the aggregation conditions are shrunk into aggregate nodes, a node is connected to an aggregate node. Then, the link connecting the two nodes contains multiple actual links.
[0163] To better understand the above content, the following will briefly introduce the shrinking of nodes that meet the aggregation conditions, with reference to the attached diagram:
[0164] As shown in Figure 5(a), if the nodes that meet the aggregation conditions are detected to satisfy the predetermined shrinkage conditions, the nodes IDs 3 and 4 that meet the aggregation conditions are hidden. The aggregation node ID 2 corresponding to the nodes that meet the aggregation conditions is displayed. Its child nodes IDs 5 and 6 can be shrunk or not. If they are shrunk, the nodes IDs 5 and 6 that meet the aggregation conditions are hidden, and the aggregation node ID 7 is displayed.
[0165] As shown in Figure 5(b), the nodes that meet the aggregation conditions are detected to satisfy the predetermined shrinkage conditions. The displayed node IDs 3 and 4, and the nodes IDs 6 and 7 that meet the aggregation conditions are hidden. In the target network topology, the aggregation node ID 2 corresponding to the displayed nodes IDs 3 and 4 that meet the aggregation conditions is displayed, and the aggregation node ID 5 corresponding to the displayed nodes IDs 6 and 7 that meet the aggregation conditions is displayed. Then, the aggregation node ID 5 and the aggregation node ID 8 are child nodes belonging to the same parent node ID 2. Thus, the aggregation node ID 5 and the aggregation node ID 8 can be further shrunk to obtain the aggregation node ID 11. The nodes that meet the aggregation conditions corresponding to the aggregation node ID 11 include: node ID 6, node ID 7, node ID 9, and node ID 10.
[0166] Of course, this application does not specifically limit the specific circumstances under which shrinkage occurs when the polymerization conditions are met.
[0167] As can be seen, in this embodiment, nodes that meet the aggregation conditions can be shrunk when the predetermined shrinkage conditions are met, thereby displaying the aggregated node corresponding to the nodes that meet the aggregation conditions. When the aggregated node shrinks, the core connection information can still be displayed through the node's connection lines, making it easier for maintenance personnel to view the overall network topology and thus improving the convenience of viewing the network topology.
[0168] As can be seen, in this embodiment, in response to any aggregated node meeting predetermined expansion or contraction conditions, the aggregated node is expanded or nodes meeting the aggregation conditions are contracted and displayed. This responds to various viewing needs of operations and maintenance personnel, facilitating their viewing of the overall network topology and improving the ease of viewing the network topology. Furthermore, since each aggregated node can be contracted or expanded, it can meet the different viewing needs of operations and maintenance personnel for single nodes or the overall structure, thereby improving the convenience of operations and maintenance.
[0169] Optionally, in one implementation, after displaying the initial network topology after aggregation as the target network topology of the network system, the method further includes one or more of steps C1 and C2:
[0170] Step C1: In response to detecting that the mouse pointer is hovering over the target node, if the current parent node of the target node is an aggregation node, replace the parent node of the target node in the target network topology with the parent node of the target node in the initial network topology; wherein, the target node is a node representing a device in the target network topology.
[0171] Understandably, when the mouse pointer is detected hovering over a target node, and the target node's current parent node is an aggregation node, step C1 can be applied. In this case, the parent node of the target node in the target network topology can be replaced with the parent node of the target node in the initial network topology, thus displaying the parent-child relationships in the initial network topology. It should be noted that when the mouse pointer hovers over a target node, the accurate connection relationship of the target node can be displayed, i.e., the parent nodes actually connected to the target node; where the parent node in the initial network topology is the node that meets the aggregation condition corresponding to the target node's parent node. For example, if the mouse pointer is detected hovering over target node B, and target node B's parent node C is an aggregation node, then the parent node C of target node B in the target network topology can be replaced with the parent node D of target node B in the initial network topology, where parent node D is the node that meets the aggregation condition corresponding to parent node C.
[0172] Step C2: If the current child node of the target node is an aggregation node, replace the child node of the target node in the target network topology with the child node of the target node in the initial network topology.
[0173] Understandably, when the mouse pointer is detected hovering over a target node, and the target node's current child node is an aggregation node, step C2 can be applied. Then, the child nodes of the target node in the target network topology can be replaced with the child nodes of the target node in the initial network topology, thus displaying the parent-child relationships in the initial network topology. It should be noted that when the mouse pointer hovers over a target node, the accurate connection relationships of the target node can be displayed, i.e., the child nodes actually connected to the target node; where the child nodes in the initial network topology are the nodes that meet the aggregation conditions corresponding to the target node's child nodes. For example, if the mouse pointer is detected hovering over target node B, and target node B's child node C is an aggregation node, then the child node C of target node B in the target network topology can be replaced with the child node D of target node B in the initial network topology, where child node D is the node that meets the aggregation conditions corresponding to child node C.
[0174] It should be noted that if both the current child node and parent node of the target node are aggregate nodes, then steps C1 and C2 can be applied. The specific process has already been introduced, so it will not be repeated here.
[0175] As can be seen, when the target node's current child nodes and parent node are aggregate nodes, the target node's child nodes in the initial network topology can be displayed, thus showing the target node's accurate connection relationship. This makes it easier for maintenance personnel to view the overall network topology, thereby improving the convenience of viewing the network topology.
[0176] Optionally, in one implementation, after displaying the initial network topology after aggregation as the target network topology of the network system, the method further includes steps D1-D2:
[0177] Step D1: In response to the detection of a node search operation, determine the node indicated by the node search operation and obtain the node to be processed;
[0178] It is understandable that the node to be processed is the node found in response to the node search operation. The node search operation is suitable for operation and maintenance personnel who want to view the status of any node. The node to be processed can be obtained through the node search operation.
[0179] Step D2: If the target network topology displays an aggregate node corresponding to the node to be processed, expand the aggregate node corresponding to the node to be processed in the target network topology and highlight the node to be processed after the display processing; or, replace the aggregate node corresponding to the node to be processed with the node to be processed in the target network topology.
[0180] Wherein, the aggregate node corresponding to the node to be processed is the aggregate node obtained by performing aggregation processing on the node to be processed;
[0181] The parent-child relationship of the node to be processed in the target network topology is as follows: the parent-child relationship existing in the initial network topology.
[0182] Understandably, if the target network topology displays an aggregate node corresponding to the node to be processed, two scenarios will occur: one is to expand the aggregate node corresponding to the node to be processed in the target network topology, displaying nodes that meet the aggregation conditions and highlighting the node to be processed; the other is to directly replace the aggregate node corresponding to the node to be processed in the target network topology with the node to be processed. It should be noted that both scenarios clearly demonstrate the parent-child relationship of the node to be processed in the target network topology, i.e., the parent-child relationship existing in the initial network topology. For example, in response to detecting a node search operation, the node indicated by the node search operation is determined, resulting in node a to be processed. An aggregate node A corresponding to node a is displayed in the target network topology. An expansion operation is performed on aggregate node A in the target network topology, highlighting the node a obtained after the display process; or, aggregate node A is replaced with node a to be processed in the target network topology.
[0183] In another implementation, if the node to be processed is displayed as a single node in the network topology, the node to be processed is directly displayed in the target network topology.
[0184] As can be seen, after searching for any node, the operations and maintenance personnel can designate that node as a node to be processed. If the target network topology displays an aggregate node corresponding to the node to be processed, the actual parent-child relationship of the node to be processed in the target network structure will be displayed, making it easier for the operations and maintenance personnel to view the overall network topology and thus improving the convenience of viewing the network topology.
[0185] Based on the above embodiments, the network topology in actual use will be briefly introduced below with reference to Figures 6(a) and 6(b):
[0186] As shown in Figure 6(a), this network topology is used for an access control system and has multiple layers. The first layer is the core switch, which can be understood as the root node. The second tier consists of six switches. Switch 1 connects to Aggregator Node 1, which contains 20 switch devices. A "20" indicator in the upper right corner of Aggregator Node 1 indicates that all 20 switch devices in this node are malfunctioning. Aggregator Node 1 is connected to both Bullet Camera 1 and PTZ Camera 1. Bullet Camera 1 contains 50 bullet cameras, and PTZ Camera 1 contains 60 PTZ cameras. Because all switch devices in Aggregator Node 1 are malfunctioning, all devices in both Bullet Camera 1 and PTZ Camera 1 are also malfunctioning. Switch 2 connects to Aggregator Node 2, which contains 23 switch devices. Aggregator Node 2 is connected to the access control system and PTZ Camera 2. The access control system contains 10 access control devices with a total of 8 downstream devices. PTZ Camera 2 contains 60 PTZ cameras, of which 4 are malfunctioning. Switch 3 connects to Aggregator Node 3, which contains 23 switch devices. Aggregator Node 3 is connected to the Access Point (AP). Point (wireless access point), PTZ camera 3 is connected to point (AP), which includes 100 APs. Each AP is connected to PTZ camera 5, which includes 200 PTZ cameras, of which 4 are malfunctioning. PTZ camera 3 includes 30 PTZ cameras. Switch 4 connects to aggregation node 4, which includes 10 switching devices. Aggregation node 4 is connected to NVR (Network Video) The network video recorder (NVR) is connected to bridge 1. The NVR includes two NVR devices with a total of 30 downstream devices, of which 6 are malfunctioning. Bridge 1 includes 10 bridge devices and is connected to bridge 2, which also includes 10 bridge devices with a total of 10 downstream devices. Switch 5 is connected to aggregation node 5, which includes 6 switch devices. Aggregation node 5 is connected to bullet camera 2 and PTZ camera 4. PTZ camera 4 includes 30 PTZ cameras, of which 4 are malfunctioning. Switch 6 is connected to the storage server, DS-3CS000 (optical transceiver model), video integration platform, platform server group, and AC (Access Controller).
[0187] As shown in Figure 6(b), this command line is a description of the data structure of nodes and child nodes in actual use. Some descriptions of devices, ports, connection status, etc. are not displayed.
[0188] As can be seen, the network topology described above makes it easier for operations and maintenance personnel to view the overall network topology, thereby improving the convenience of viewing the network topology.
[0189] Based on the above method embodiments, such as Figure 7As shown, this application embodiment provides a display device for network topology, including:
[0190] The determining module 710 is used to determine an initial network topology; wherein each node in the initial network topology is used to represent a device in the network system;
[0191] The identification module 720 is used to identify whether there are nodes that meet the aggregation conditions from the nodes of the same level in the initial network topology; wherein, the nodes that meet the aggregation conditions include multiple nodes that represent the same device type and have the same parent node;
[0192] The aggregation processing module 730 is used to perform aggregation processing on the nodes that meet the aggregation conditions to obtain the aggregated nodes corresponding to the nodes that meet the aggregation conditions; wherein, the aggregated nodes and the corresponding nodes that meet the aggregation conditions have the same parent-child relationship.
[0193] The first display module 740 is used to display the initial network topology structure after aggregation processing as the target network topology structure of the network system; wherein, the target network topology structure is: when the aggregation node is detected to meet the predetermined expansion conditions, the network topology structure of the nodes corresponding to the aggregation node that meet the aggregation conditions can be displayed.
[0194] Optionally, the device further includes:
[0195] The second display module is used to, after displaying the initial network topology structure after aggregation processing as the target network topology structure of the network system, hide the aggregation node in response to detecting that any aggregation node meets the predetermined expansion conditions, and display the nodes that meet the aggregation conditions corresponding to the aggregation node in the node display area corresponding to the aggregation node.
[0196] The parent-child relationship between nodes that meet the aggregation conditions in the target network topology is the parent-child relationship that exists in the initial network topology.
[0197] Optionally, any aggregation node satisfying a predetermined expansion condition includes:
[0198] The system detects a user-initiated expand operation for any aggregate node, or detects that the parent node of any aggregate node is an aggregate node and an expand operation has occurred; wherein, the expand operation is to display the corresponding nodes that meet the aggregation conditions.
[0199] Optionally, the second display module includes:
[0200] The first display submodule is used to respond to the detection that any aggregation node meets the predetermined expansion conditions. When the number of nodes that meet the aggregation conditions corresponding to the aggregation node exceeds a first threshold, the submodule displays the nodes that meet the aggregation conditions corresponding to the aggregation node in the node display area corresponding to the aggregation node based on the pagination display method.
[0201] Optionally, the device further includes:
[0202] The third display module is used to hide the displayed nodes that meet the aggregation conditions in response to detecting that the displayed nodes meet the aggregation conditions satisfy the predetermined shrinkage conditions, and to display the aggregate node corresponding to the displayed nodes that meet the aggregation conditions in the target network topology.
[0203] Optionally, the device further includes:
[0204] The first replacement module is configured to, after displaying the initial network topology structure after aggregation processing as the target network topology structure of the network system, in response to detecting that the mouse pointer is hovering over the target node, if the current parent node of the target node is an aggregation node, replace the parent node of the target node in the target network topology structure with the parent node of the target node in the initial network topology structure; wherein, the target node is a node representing a device in the target network topology architecture;
[0205] And / or,
[0206] The second replacement module is used to replace the child nodes of the target node in the target network topology with the child nodes of the target node in the initial network topology if the current child node of the target node is an aggregation node.
[0207] Optionally, the device further includes:
[0208] The determination module is used to, after displaying the initial network topology structure after aggregation as the target network topology structure of the network system, determine the node indicated by the node search operation in response to the detection of the node search operation, and obtain the node to be processed.
[0209] The expansion processing module is used to perform expansion processing on the aggregate node corresponding to the node to be processed in the target network topology if the target network topology displays an aggregate node corresponding to the node to be processed, and highlight the node to be processed obtained after the display processing; or, in the target network topology, replace the aggregate node corresponding to the node to be processed with the node to be processed.
[0210] Wherein, the aggregate node corresponding to the node to be processed is the aggregate node obtained by performing aggregation processing on the node to be processed;
[0211] The parent-child relationship of the node to be processed in the target network topology is as follows: the parent-child relationship existing in the initial network topology.
[0212] Optionally, the nodes that meet the aggregation conditions include:
[0213] This represents multiple nodes of the same device type, with the same parent node, and whose number exceeds the second quantity threshold.
[0214] Optionally, the second quantity threshold is a quantity threshold set for the same device type;
[0215] The quantity threshold set for any device type is based on the information display requirements of the nodes for that device type. The higher the information display requirements for the nodes of any device type, the higher the quantity threshold set for that device type.
[0216] Optionally, the aggregation nodes in the target network topology are associated with and displayed with node description information of the corresponding nodes that meet the aggregation conditions.
[0217] This application also provides an electronic device, such as... Figure 8 As shown, it includes:
[0218] Memory 801 is used to store computer programs;
[0219] The processor 802 is used to implement a method for displaying the network topology when executing the program stored in the memory 801.
[0220] Furthermore, the aforementioned electronic device may also include a communication bus and / or a communication interface, with the processor 802, communication interface, and memory 801 communicating with each other via the communication bus.
[0221] The communication bus mentioned in the above electronic devices can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.
[0222] The communication interface is used for communication between the aforementioned electronic devices and other devices.
[0223] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0224] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0225] In another embodiment provided in this application, a computer-readable storage medium is also provided, which stores a computer program that, when executed by a processor, implements any of the above-described methods for displaying network topology.
[0226] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute any of the network topology display methods described in the above embodiments.
[0227] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape) or an optical medium (e.g., DVD).
[0228] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0229] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0230] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application are included within the scope of protection of this application.
Claims
1. A method for displaying network topology, characterized in that, include: Determine an initial network topology; wherein each node in the initial network topology represents a device in the network system; From the nodes at the same level of the initial network topology, identify whether there are nodes that meet the aggregation conditions; wherein, the nodes that meet the aggregation conditions include multiple nodes that represent the same device type, have the same parent node, and whose number exceeds a second quantity threshold; the second quantity threshold is a quantity threshold set for the same device type; the quantity threshold set for any device type is based on the information display requirements of the nodes for that device type; The nodes that meet the aggregation conditions are aggregated to obtain the aggregated nodes corresponding to the nodes that meet the aggregation conditions; wherein the aggregated nodes and the corresponding nodes that meet the aggregation conditions have the same parent-child relationship; The initial network topology after aggregation is used as the target network topology of the network system and displayed; wherein, the target network topology is: when the aggregation node is detected to meet the predetermined expansion conditions, the network topology of the nodes corresponding to the aggregation node that meet the aggregation conditions can be displayed.
2. The method according to claim 1, characterized in that, After displaying the initial network topology structure after aggregation as the target network topology structure of the network system, the method further includes: In response to the detection that any aggregation node meets the predetermined expansion conditions, the aggregation node is hidden, and the nodes that meet the aggregation conditions corresponding to the aggregation node are displayed in the node display area corresponding to the aggregation node. The parent-child relationship between nodes that meet the aggregation conditions in the target network topology is the parent-child relationship that exists in the initial network topology.
3. The method according to claim 2, characterized in that, The conditions for any aggregation node to satisfy the predetermined expansion conditions include: The system detects a user-initiated expand operation for any aggregate node, or detects that the parent node of any aggregate node is an aggregate node and an expand operation has occurred; wherein, the expand operation is to display the corresponding nodes that meet the aggregation conditions.
4. The method according to claim 2, characterized in that, The response to detecting that any aggregation node meets the predetermined expansion conditions, displaying the nodes that meet the aggregation conditions corresponding to that aggregation node in the node display area, includes: In response to the detection that any aggregation node meets the predetermined expansion conditions, when the number of nodes that meet the aggregation conditions corresponding to the aggregation node exceeds a first threshold, the nodes that meet the aggregation conditions corresponding to the aggregation node are displayed in the node display area corresponding to the aggregation node based on the pagination display method.
5. The method according to claim 2, characterized in that, The method further includes: In response to the detection that the displayed nodes that meet the aggregation conditions satisfy the predetermined shrinkage conditions, the displayed nodes that meet the aggregation conditions are hidden, and the aggregated node corresponding to the displayed nodes that meet the aggregation conditions is displayed in the target network topology.
6. The method according to claim 1, characterized in that, After displaying the initial network topology structure after aggregation as the target network topology structure of the network system, the method further includes: In response to detecting that the mouse pointer is hovering over a target node, if the current parent node of the target node is an aggregation node, the parent node of the target node in the target network topology is replaced with the parent node of the target node in the initial network topology; wherein, the target node is a node representing a device in the target network topology. And / or, If the current child node of the target node is an aggregation node, the child node of the target node in the target network topology is replaced with the child node of the target node in the initial network topology.
7. The method according to claim 1, characterized in that, After displaying the initial network topology structure after aggregation as the target network topology structure of the network system, the method further includes: In response to the detection of a node search operation, the node indicated by the node search operation is determined, and the node to be processed is obtained; If the target network topology displays an aggregate node corresponding to the node to be processed, then in the target network topology, the aggregate node corresponding to the node to be processed is expanded, and the node to be processed after the display processing is highlighted; or, in the target network topology, the aggregate node corresponding to the node to be processed is replaced with the node to be processed. Wherein, the aggregate node corresponding to the node to be processed is the aggregate node obtained by performing aggregation processing on the node to be processed; The parent-child relationship of the node to be processed in the target network topology is as follows: the parent-child relationship existing in the initial network topology.
8. The method according to claim 1, characterized in that, The higher the information display demand for any device type of node, the higher the quantity threshold set for that device type.
9. The method according to any one of claims 1-7, characterized in that, The aggregation nodes in the target network topology are associated with and displayed with node description information of the nodes that meet the aggregation conditions.
10. A display device for network topology, characterized in that, include: A determination module is used to determine an initial network topology; wherein each node in the initial network topology is used to characterize a device in the network system; The identification module is used to identify whether there are nodes that meet the aggregation conditions from the nodes of the same level in the initial network topology; wherein, the nodes that meet the aggregation conditions include multiple nodes that represent the same device type, have the same parent node, and whose number exceeds a second quantity threshold; the second quantity threshold is a quantity threshold set for the same device type; the quantity threshold set for any device type is based on the information display requirements of the nodes for that device type. An aggregation processing module is used to perform aggregation processing on the nodes that meet the aggregation conditions to obtain the aggregated nodes corresponding to the nodes that meet the aggregation conditions; wherein, the aggregated nodes and the corresponding nodes that meet the aggregation conditions have the same parent-child relationship; The first display module is used to display the initial network topology structure after aggregation as the target network topology structure of the network system; wherein, the target network topology structure is: when the aggregation node is detected to meet the predetermined expansion conditions, the network topology structure of the nodes corresponding to the aggregation node that meet the aggregation conditions can be displayed.
11. The apparatus according to claim 10, characterized in that, The device further includes: The second display module is used to, after displaying the initial network topology structure after aggregation processing as the target network topology structure of the network system, hide the aggregation node in response to detecting that any aggregation node meets the predetermined expansion conditions, and display the nodes that meet the aggregation conditions corresponding to the aggregation node in the node display area corresponding to the aggregation node. The parent-child relationship between nodes that meet the aggregation conditions in the target network topology is the parent-child relationship that exists in the initial network topology. The conditions for any aggregation node to satisfy the predetermined expansion conditions include: The system detects a user-initiated expand operation for any aggregate node, or detects that the parent node of any aggregate node is an aggregate node and an expand operation has occurred; wherein, the expand operation is to display the corresponding nodes that meet the aggregation conditions. The second display module includes: The first display submodule is used to respond to the detection that any aggregation node meets the predetermined expansion conditions, and when the number of nodes that meet the aggregation conditions corresponding to the aggregation node exceeds a first number threshold, based on the pagination display method, to display the nodes that meet the aggregation conditions corresponding to the aggregation node in the node display area corresponding to the aggregation node. The device further includes: The third display module is used to hide the displayed nodes that meet the aggregation conditions in response to detecting that the displayed nodes meet the aggregation conditions satisfy the predetermined shrinkage conditions, and to display the aggregate node corresponding to the displayed nodes that meet the aggregation conditions in the target network topology. The device further includes: The first replacement module is configured to, after displaying the initial network topology structure after aggregation processing as the target network topology structure of the network system, in response to detecting that the mouse pointer is hovering over the target node, if the current parent node of the target node is an aggregation node, replace the parent node of the target node in the target network topology structure with the parent node of the target node in the initial network topology structure; wherein, the target node is a node representing a device in the target network topology structure; And / or, The second replacement module is used to replace the child node of the target node in the target network topology with the child node of the target node in the initial network topology if the current child node of the target node is an aggregation node. The device further includes: The determination module is used to, after displaying the initial network topology structure after aggregation as the target network topology structure of the network system, determine the node indicated by the node search operation in response to the detection of the node search operation, and obtain the node to be processed. The expansion processing module is used to perform expansion processing on the aggregate node corresponding to the node to be processed in the target network topology if the target network topology displays an aggregate node corresponding to the node to be processed, and highlight the node to be processed obtained after the display processing; or, in the target network topology, replace the aggregate node corresponding to the node to be processed with the node to be processed. Wherein, the aggregate node corresponding to the node to be processed is the aggregate node obtained by performing aggregation processing on the node to be processed; The parent-child relationship of the node to be processed in the target network topology is shown as the parent-child relationship existing in the initial network topology. The higher the information display demand for any device type of node, the higher the quantity threshold set for that device type; The aggregation nodes in the target network topology are associated with and displayed with node description information of the nodes that meet the aggregation conditions.
12. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the method described in any one of claims 1-9.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method described in any one of claims 1-9.
Citation Information
Patent Citations
Network topology display method and device
CN108964964A
Network topology display method and device, readable storage medium and intelligent terminal
CN112448829A