Display method and apparatus for network topology structure, and electronic device

By aggregating nodes in the network topology to form aggregate nodes and supporting expand and collapse operations, the problem of the incomplete display of the topology in large-scale network systems is solved, improving the ease of viewing and operational efficiency.

WO2025001148A1PCT designated stage expired Publication Date: 2025-01-02HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD

Patent Information

Application Number
PCT/CN2024/075758
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-06-29
Filing Date
2024-02-04
Publication Date
2025-01-02

AI Technical Summary

Technical Problem

When there are many devices in a network system, existing network topology display methods cannot display the entire structure, forcing maintenance personnel to drag or scroll the interface to view it, which affects convenience.

Method used

By identifying multiple nodes of the same device type and with the same parent node, aggregation is performed to form an aggregate node, and a detailed topology is displayed when expansion conditions are detected, supporting shrink and expand operations.

Benefits of technology

It improves the ease of viewing network topology, meets the different viewing needs of operation and maintenance personnel for single nodes or the overall structure, and improves operation and maintenance efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024075758_02012025_PF_FP_ABST
    Figure CN2024075758_02012025_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application relate to the technical field of network topology display, and provide a display method and apparatus for a network topology structure, and an electronic device. The display method for a network topology structure comprises: determining an initial network topology structure, wherein each node in the initial network topology structure is used for representing one device in a network system; identifying whether there are nodes satisfying an aggregation condition among nodes at a same level of the initial network topological structure, wherein the nodes satisfying the aggregation condition comprise a plurality of nodes representing a same device type and having a same parent node; aggregating the nodes satisfying the aggregation condition to obtain aggregated nodes corresponding to the nodes satisfying the aggregation condition; and displaying the initial network topology structure that has undergone aggregation as a target network topology structure of the network system. Therefore, this solution can improve the convenience of viewing a network topology structure.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device and electronic device for displaying network topology structure

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on June 29, 2023, with application number 202310790007.7 and invention name “A method, device and electronic device for displaying network topology structure”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the technical field of network topology display, and in particular to a method, device and electronic device for displaying a network topology structure. Background Art

[0003] Operation and maintenance personnel can quickly locate problems in the network system based on the network topology of the network system.

[0004] In related technologies, the network topology of a network system is usually represented by a tree structure, so as to clearly display the topological relationship between various devices in the network system.

[0005] However, when there are many devices in the network system, such as 5,000 devices, the network topology is huge, and the display interface usually cannot fully display the network topology. As a result, when operation and maintenance personnel view the network topology, they need to drag the display interface or use the scroll wheel to slide the display interface to view the overall network topology.

[0006] Currently, there is an urgent need for a display method for network topology structure to improve the convenience of viewing the network topology structure.

[0007] Summary of the Invention

[0008] The purpose of the embodiments of the present application is to provide a method, device, and electronic device for displaying a network topology structure, so as to improve the convenience of viewing the network topology structure. The specific technical solution is as follows:

[0009] In a first aspect, an embodiment of the present application provides a method for displaying a network topology structure, including:

[0010] Determine an initial network topology; wherein each node in the initial network topology is used to represent a device in the network system;

[0011] Identifying whether there are nodes meeting aggregation conditions among the nodes at the same level of the initial network topology structure; wherein the nodes meeting the aggregation conditions include multiple nodes representing the same device type and having the same parent node;

[0012] Aggregating the nodes that meet the aggregation conditions to obtain an aggregation node corresponding to the nodes that meet the aggregation conditions; wherein the aggregation node and the corresponding nodes that meet the aggregation conditions have the same parent-child relationship;

[0013] The initial network topology structure after aggregation processing is displayed as the target network topology structure of the network system; wherein, the target network topology structure is: when it is detected that the aggregation node meets the predetermined expansion condition, the network topology structure of the nodes that meet the aggregation condition corresponding to the aggregation node can be displayed.

[0014] Optionally, after displaying the initial network topology structure after aggregation as the target network topology structure of the network system, the method further includes:

[0015] In response to detecting that any aggregation node meets a predetermined expansion condition, the aggregation node is hidden, and nodes corresponding to the aggregation node and meeting the aggregation condition are displayed in the node display area corresponding to the aggregation node;

[0016] The parent-child relationship of the nodes that meet the aggregation conditions displayed in the target network topology structure is the parent-child relationship existing in the initial network topology structure.

[0017] Optionally, any aggregation node meeting a predetermined expansion condition includes:

[0018] An expansion operation issued by a user for any aggregation node is detected, or it is detected that the parent node of any aggregation node belongs to the aggregation node and an expansion action occurs; wherein the expansion action is to display the corresponding nodes that meet the aggregation conditions.

[0019] Optionally, in response to detecting that any aggregated node meets a predetermined expansion condition, displaying nodes corresponding to the aggregated node and meeting the aggregation condition in a node display area corresponding to the aggregated node includes:

[0020] In response to detecting that any aggregation node meets a predetermined expansion condition, when the number of nodes meeting the aggregation condition corresponding to the aggregation node exceeds a first quantity threshold, based on a page-turning display method, the nodes meeting the aggregation condition corresponding to the aggregation node are displayed in the node display area corresponding to the aggregation node.

[0021] Optionally, the method further includes:

[0022] In response to detecting that the displayed nodes meeting the aggregation conditions meet the predetermined shrinking condition, the displayed nodes meeting the aggregation conditions are hidden, and the aggregation node corresponding to the displayed nodes meeting the aggregation conditions is displayed in the target network topology structure.

[0023] Optionally, after displaying the initial network topology structure after aggregation as the target network topology structure of the network system, the method further includes:

[0024] In response to detecting that a mouse pointer is hovering over a target node, if the current parent node of the target node is an aggregation node, replacing 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;

[0025] and / or,

[0026] 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 structure is replaced by the child node of the target node in the initial network topology structure.

[0027] Optionally, after displaying the initial network topology structure after aggregation as the target network topology structure of the network system, the method further includes:

[0028] In response to detecting a node search operation, determining a node indicated by the node search operation to obtain a node to be processed;

[0029] If the target network topology structure displays an aggregate node corresponding to the node to be processed, in the target network topology structure, expand the 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 structure, replace the aggregate node corresponding to the node to be processed with the node to be processed;

[0030] The aggregation node corresponding to the node to be processed is the aggregation node obtained by aggregating the node to be processed;

[0031] The displayed parent-child relationship of the node to be processed in the target network topology structure is: the parent-child relationship existing in the initial network topology structure.

[0032] Optionally, the nodes meeting the aggregation conditions include:

[0033] The plurality of nodes are characterized as being of the same device type, having the same parent node, and having a number exceeding a second number threshold.

[0034] Optionally, the second quantity threshold is a quantity threshold set for the same device type;

[0035] The quantity threshold set for any device type is set based on the information display requirement for nodes of the device type, and the higher the information display requirement for nodes of any device type, the higher the quantity threshold set for the device type.

[0036] Optionally, the aggregation nodes in the target network topology are associated with and displayed with corresponding node description information of nodes meeting the aggregation conditions.

[0037] In a second aspect, an embodiment of the present application provides a device for displaying a network topology structure, including:

[0038] A determination module is configured to determine an initial network topology structure; wherein each node in the initial network topology structure is used to represent a device in the network system;

[0039] an identification module configured to identify whether there is a node that meets the aggregation condition from among the nodes at the same level of the initial network topology structure; wherein the nodes that meet the aggregation condition include multiple nodes that represent the same device type and have the same parent node;

[0040] an aggregation processing module configured to perform aggregation processing on the nodes meeting the aggregation conditions to obtain an aggregation node corresponding to the nodes meeting the aggregation conditions; wherein the aggregation node and the corresponding nodes meeting the aggregation conditions have the same parent-child relationship;

[0041] The first display module is configured 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 it is detected that the aggregation node meets the predetermined expansion condition, the network topology structure of the nodes corresponding to the aggregation node that meet the aggregation condition can be displayed.

[0042] Optionally, the device further comprises:

[0043] a second display module configured to, after displaying the initial network topology structure after aggregation as the target network topology structure of the network system, hide the aggregated node in response to detecting that any aggregated node meets a predetermined expansion condition, and display the nodes corresponding to the aggregated node that meet the aggregation condition in the node display area corresponding to the aggregated node;

[0044] The parent-child relationship of the nodes that meet the aggregation conditions displayed in the target network topology structure is the parent-child relationship existing in the initial network topology structure.

[0045] Optionally, any aggregation node meeting a predetermined expansion condition includes:

[0046] An expansion operation issued by a user for any aggregation node is detected, or it is detected that the parent node of any aggregation node belongs to the aggregation node and an expansion action occurs; wherein the expansion action is to display the corresponding nodes that meet the aggregation conditions.

[0047] Optionally, the second display module includes:

[0048] The first display submodule is configured to respond to detecting that any aggregation node meets a predetermined expansion condition. When the number of nodes meeting the aggregation condition corresponding to the aggregation node exceeds a first quantity threshold, the nodes meeting the aggregation condition corresponding to the aggregation node are displayed in the node display area corresponding to the aggregation node based on a page-turning display method.

[0049] Optionally, the device further comprises:

[0050] The third display module is configured to hide the displayed nodes that meet the aggregation conditions in response to detecting that the displayed nodes that meet the aggregation conditions meet the predetermined shrinking conditions, and display the aggregation node corresponding to the displayed nodes that meet the aggregation conditions in the target network topology structure.

[0051] Optionally, the device further comprises:

[0052] A 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 a mouse pointer is hovering over a target 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 if the current parent node of the target node is an aggregation node; wherein the target node is a node representing a device in the target network topology structure;

[0053] and / or,

[0054] The second replacement module is configured 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.

[0055] Optionally, the device further comprises:

[0056] a determination module configured to, after displaying the initial network topology structure after the aggregation process as the target network topology structure of the network system, determine the node indicated by the node search operation in response to detecting the node search operation, and obtain a node to be processed;

[0057] an expansion processing module configured to, if an aggregate node corresponding to the node to be processed is displayed in the target network topology, perform expansion processing on the aggregate node corresponding to the node to be processed in the target network topology 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;

[0058] The aggregation node corresponding to the node to be processed is the aggregation node obtained by aggregating the node to be processed;

[0059] The displayed parent-child relationship of the node to be processed in the target network topology structure is: the parent-child relationship existing in the initial network topology structure.

[0060] Optionally, the nodes meeting the aggregation conditions include:

[0061] The plurality of nodes are characterized as being of the same device type, having the same parent node, and having a number exceeding a second number threshold.

[0062] Optionally, the second quantity threshold is a quantity threshold set for the same device type;

[0063] The quantity threshold set for any device type is set based on the information display requirement for nodes of the device type, and the higher the information display requirement for nodes of any device type, the higher the quantity threshold set for the device type.

[0064] Optionally, the aggregation nodes in the target network topology are associated with and displayed with corresponding node description information of nodes meeting the aggregation conditions.

[0065] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0066] Memory for storing computer programs;

[0067] The processor is configured to implement any of the above methods for displaying a network topology structure when executing a program stored in the memory.

[0068] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements any of the above-mentioned methods for displaying a network topology structure.

[0069] Beneficial effects of the embodiments of the present application:

[0070] The method for displaying a network topology structure provided by the embodiment of the present application can determine the initial network topology structure, identify whether there are nodes that meet the aggregation conditions from the nodes at the same level of the initial network topology structure, perform aggregation processing on the nodes that meet the aggregation conditions, obtain the aggregation nodes corresponding to the nodes that meet the aggregation conditions, and display the initial network topology structure after the aggregation processing as the target network topology structure of the network system. It can be seen that the embodiment of the present application can perform aggregation processing on the nodes in the existing initial network topology structure, and perform aggregation processing on the nodes that meet the aggregation conditions at each level, so as to display the processed network topology structure after the aggregation processing. Then, when there are many device nodes, since the nodes that meet the aggregation conditions have been aggregated into aggregation nodes, the network topology structure will not be too large, which is convenient for operation and maintenance personnel to view the overall network topology structure, thereby improving the convenience of viewing the network topology structure.

[0071] In addition, since each aggregation node can be shrunk or expanded for display, it can meet the different viewing needs of operation and maintenance personnel for a single node or the overall structure, thereby improving the convenience of operation and maintenance.

[0072] Of course, it is not necessary to achieve all the advantages described above at the same time when implementing any product or method of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] The drawings described herein are used to provide further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application.

[0074] FIG1( a ) is a schematic structural diagram of a display form of an aggregation node provided in an embodiment of the present application;

[0075] FIG1( b ) is a schematic structural diagram of another display form of an aggregation node provided in an embodiment of the present application;

[0076] FIG2 is a flow chart of a method for displaying a network topology structure according to an embodiment of the present application;

[0077] FIG3 is a flow chart of another method for displaying a network topology structure according to an embodiment of the present application;

[0078] FIG4( a ) is a schematic diagram showing the structure of an aggregation node expanded and displayed according to an embodiment of the present application;

[0079] FIG4( b ) is a schematic diagram showing the structure of another aggregation node provided in an embodiment of the present application;

[0080] FIG5( a ) is a schematic diagram of a structure of a node contraction meeting aggregation conditions provided in an embodiment of the present application;

[0081] FIG5( b ) is a schematic structural diagram of another node contraction that meets aggregation conditions provided by an embodiment of the present application;

[0082] FIG6( a ) is a schematic diagram of a network topology structure provided in an embodiment of the present application;

[0083] FIG6( b ) is a schematic diagram of a command line for node description information provided in an embodiment of the present application;

[0084] FIG7 is a schematic structural diagram of a display device for a network topology structure provided in an embodiment of the present application;

[0085] FIG8 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0086] To make the objectives, technical solutions, and advantages of the present invention more clearly understood, the present invention is further described below with reference to the accompanying drawings and examples. It should be understood that the described examples are only some examples of the present invention, not all examples. All other examples derived by persons of ordinary skill in the art based on the examples of the present invention fall within the scope of protection of the present invention.

[0087] Below, the professional terms involved in the embodiments of this application are first introduced:

[0088] Network topology: The physical layout of various devices interconnected through transmission devices and media, that is, the way computers and other devices in the network are connected in some way. It can be understood that network topology can also be called network topology structure.

[0089] Topological nodes: Also known as network elements, network elements are various data processing devices, data communication control devices, and data terminal devices within a network system. Since topological nodes are nodes in the network topology, for simplicity, they will be referred to as nodes below.

[0090] Node aggregation: Aggregate multiple nodes of the same type into an aggregation node. The aggregation node can also be called an aggregation node display chain. The display form of the aggregation node can be divided into contracted display and expanded display.

[0091] For example, the following briefly introduces the display form of the aggregation node with reference to the accompanying drawings:

[0092] As shown in Figure 1(a), Figure 1(a) shows an exemplary display effect of an aggregated node, which is a contracted display effect. Aggregated node ID: 2 includes node ID: 3 and node ID: 4, and node ID: 3 and node ID: 4 are contracted.

[0093] As shown in FIG1( b ), FIG1( b ) is an exemplary effect of expanding and displaying the aggregated nodes, wherein the aggregated node ID: 2 includes the node ID: 3 and the node ID: 4, and the node ID: 3 and the node ID: 4 are expanded and displayed.

[0094] Topological link: A link is a line between two topological nodes.

[0095] The following introduces a method for displaying a network topology structure provided in an embodiment of the present application.

[0096] Among them, the method for displaying the network topology structure provided in the embodiment of the present application can be applied to a management platform. In specific applications, the management platform can be run on a terminal device, and operation and maintenance personnel can use the display interface of the terminal device to view the network topology structure. The embodiment of the present application does not limit the specific form of the management platform and the form of the device on which it runs.

[0097] Specifically, the execution entity of the network topology display method may be a network topology display device. For example, when the network topology display method is applied to a terminal device, the network topology display device may be a client running on the terminal device, which can be used to display the network topology. When the network topology display method is applied to a server, the network topology display device may be a computer program running on the server, which can be used to display the network topology.

[0098] The present invention provides a method for displaying a network topology structure, which may include the following steps:

[0099] Determine an initial network topology; wherein each node in the initial network topology is used to represent a device in the network system;

[0100] Identifying whether there are nodes meeting aggregation conditions among the nodes at the same level of the initial network topology structure; wherein the nodes meeting the aggregation conditions include multiple nodes representing the same device type and having the same parent node;

[0101] Aggregating the nodes that meet the aggregation conditions to obtain an aggregation node corresponding to the nodes that meet the aggregation conditions; wherein the aggregation node and the corresponding nodes that meet the aggregation conditions have the same parent-child relationship;

[0102] The initial network topology structure after aggregation processing is displayed as the target network topology structure of the network system; wherein, the target network topology structure is: when it is detected that the aggregation node meets the predetermined expansion condition, the network topology structure of the nodes that meet the aggregation condition corresponding to the aggregation node can be displayed.

[0103] It can be seen that the embodiment of the present application can aggregate the nodes in the existing initial network topology structure, aggregate the nodes at each level that meet the aggregation conditions, and thus display the processed network topology structure after the aggregation process. Then, when there are many device nodes, since the nodes that meet the aggregation conditions have been aggregated into aggregated nodes, the network topology structure will not be too large, making it easier for operation and maintenance personnel to view the overall network topology structure, thereby improving the convenience of viewing the network topology structure.

[0104] In addition, since each aggregation node can be shrunk or expanded for display, it can meet the different viewing needs of operation and maintenance personnel for a single node or the overall structure, thereby improving the convenience of operation and maintenance.

[0105] The following describes a method for displaying a network topology structure provided by an embodiment of the present application in conjunction with the accompanying drawings.

[0106] FIG2 is a flow chart of a method for displaying a network topology structure according to an embodiment of the present application. As shown in FIG2 , the method may include steps S201 to S204:

[0107] S201, determining an initial network topology;

[0108] Wherein, each node in the initial network topology structure is used to represent a device in the network system;

[0109] It is understood that the initial network topology can be represented by a tree structure, which can clearly show the topological relationship between the various devices in the network system. In addition, each node in the initial network topology can also be called a device node. Each node corresponds to a device in the actual network system. Therefore, operating 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 switch devices, terminal devices, fiber optic transceivers, wireless bridges, etc. in the network system, and the embodiments of the present application do not specifically limit this.

[0110] In addition, the network system can be a variety of systems, such as: access control system, monitoring system, etc. Any network system can be applicable to the embodiments of the present application, and the embodiments of the present application do not specifically limit it.

[0111] It should be emphasized that the embodiments of the present application do not limit the method for generating the initial network topology structure, and any method that can generate the initial network topology structure can be applied to the present application.

[0112] S202, identifying whether there is a node that meets the aggregation condition from the nodes at the same level of the initial network topology structure;

[0113] The nodes meeting the aggregation condition include multiple nodes representing the same device type and having the same parent node;

[0114] It is understandable that the initial network topology structure may include multiple levels, each level has nodes, then it is possible to identify whether there are multiple nodes of the same device type and the same parent node in the nodes of the same level. The device type may be a switch device type, a terminal device type, a ball camera type, etc., and the embodiments of the present application do not specifically limit this. For example, from the nodes of the same level of the initial network topology structure, a total of 10 nodes of the switch device type are identified, and the parent nodes of the 10 switch device type nodes are all the same node, then it can be considered that the nodes that meet the aggregation conditions are identified.

[0115] Optionally, in one implementation, the nodes meeting the aggregation condition include:

[0116] The plurality of nodes are characterized as being of the same device type, having the same parent node, and having a number exceeding a second number threshold.

[0117] It is understandable that in this implementation, the nodes that meet the aggregation conditions must not only represent the same device type and have the same parent node, but the number can also exceed the second quantity threshold. It should be noted that the second quantity threshold is pre-set according to the device type, and the second quantity thresholds corresponding to nodes of different device types are different. For example: the second quantity threshold corresponding to nodes of switch device type is 6, that is, nodes of switch device type, with the same parent node and more than 6 in number can be regarded as nodes that meet the aggregation conditions; the second quantity threshold corresponding to nodes of terminal device type is 1, that is, nodes of terminal device type, with the same parent node and more than 1 in number can be regarded as nodes that meet the aggregation conditions. It is understandable that the embodiment of the present application does not specifically limit the specific value of the second quantity threshold.

[0118] It should be noted that setting the second quantity threshold can avoid aggregating a small number of nodes representing the same device type and having the same parent node, thereby causing the network topology to become a single chain structure, which is not convenient for operation and maintenance personnel to view.

[0119] Optionally, in one implementation, the second quantity threshold is a quantity threshold set for the same device type;

[0120] The quantity threshold set for any device type is set based on the information display requirement for nodes of the device type, and the higher the information display requirement for nodes of any device type, the higher the quantity threshold set for the device type.

[0121] It is understandable that the quantity threshold can be set based on the information display requirements of the nodes of that device type. The higher the information display requirements for the nodes of that device type, the higher the quantity threshold set for that device type. Aggregation can only be performed when there are a large number of nodes of that device type. Aggregation cannot be performed when there are a small number of nodes of that device type, thereby ensuring that the information display requirements of the nodes of that device type are reflected. In addition, the information display requirements of switch devices are higher than those of image acquisition devices, so the quantity threshold corresponding to switches is higher, while the threshold corresponding to image acquisition devices is lower. For example, two dome cameras can be aggregated to obtain an aggregated node.

[0122] It can be seen that this application can identify the existence of nodes that meet the aggregation conditions based on the second quantity threshold, and then aggregate the nodes that meet the aggregation conditions to obtain aggregated nodes. Therefore, the network topology structure will not be too large, and the convenience of viewing the network topology structure can be improved.

[0123] S203, performing aggregation processing on the nodes that meet the aggregation conditions to obtain aggregation nodes corresponding to the nodes that meet the aggregation conditions;

[0124] The aggregation node and the corresponding node meeting the aggregation conditions have the same parent-child relationship;

[0125] It can be understood that by aggregating nodes that meet the aggregation conditions, multiple nodes of the same device type and with the same parent node can be aggregated to obtain an aggregation node corresponding to the nodes that meet the aggregation conditions. The aggregation node can include multiple nodes that meet the aggregation conditions. The specific form of the aggregation node has been introduced above, so it will not be repeated here.

[0126] It should be emphasized that in the target network topology, the node icon of the aggregated node is different from the node icon of the non-aggregated single node, so that the aggregated node can be distinguished from the single node more intuitively.

[0127] It should be noted that the aggregated node has the same parent-child relationship as the nodes that meet the aggregation conditions. It is understandable that after the nodes that meet the aggregation conditions are aggregated, their parent-child relationships are also aggregated, so the aggregated node has the same parent-child relationship as the corresponding nodes that meet the aggregation conditions. It should be emphasized that the parent node of the aggregated node is the parent node of the corresponding node that meets the aggregation conditions, and the child nodes of the aggregated node include the child nodes of the corresponding nodes that meet the aggregation conditions. For example, if the device type of nodes a, b, and c are all switches and have the same parent node, then performing aggregation processing on nodes a, b, and c will result in a corresponding aggregated node A, which has the same parent-child relationship with nodes a, b, and c.

[0128] S204, displaying the initial network topology structure after aggregation as the target network topology structure of the network system;

[0129] The target network topology structure is: when it is detected that the aggregation node meets a predetermined expansion condition, a network topology structure of nodes that meet the aggregation condition and are corresponding to the aggregation node can be displayed.

[0130] It is understood that the initial network topology after aggregation processing is not too large and can be displayed as the target network topology of the network system. Therefore, when the operation and maintenance personnel view the aggregated node, they can be considered to have detected that the aggregated node meets the predetermined expansion conditions. In this case, all nodes corresponding to the aggregated node that meet the aggregation conditions can be displayed. For example, using the above example, when it is detected that aggregated node A meets the predetermined expansion conditions, nodes a, b, and c corresponding to aggregated node A can be displayed.

[0131] Optionally, in one implementation, the aggregation nodes in the target network topology are associated with and displayed with corresponding node description information of nodes meeting the aggregation conditions.

[0132] It is understandable that when the operation and maintenance personnel perform a specified operation, for example: when the pointer is hovering over an aggregation node in the target network topology, or when clicking on an aggregation node, the node description information of the corresponding nodes that meet the aggregation conditions can be associated and displayed; wherein the node description information can be the number of nodes, node status, etc. It is understandable that the embodiment of the present application does not make specific limitations on the node description information, and at the same time does not make specific limitations on the above-mentioned specified operations. For example, when the operation and maintenance personnel's pointer is hovering over an aggregation node A in the target network topology, the number of nodes that meet the aggregation conditions can be associated and displayed, which is 3, namely node a, node b, and node c.

[0133] Optionally, in another implementation, the node icon of the aggregation node can be directly associated with the node description information of the corresponding nodes that meet the aggregation conditions. No operation is required, and the node description information can be intuitively displayed, such as: the number of nodes forming the aggregation node, etc.

[0134] It can be seen that the aggregation nodes in the target network structure of the embodiment of the present application can be associated with the node description information of the nodes that meet the aggregation conditions, so as to facilitate the operation and maintenance personnel to view the network topology structure, thereby improving the convenience of viewing the network topology structure.

[0135] It can be seen that the embodiment of the present application can aggregate the nodes in the existing initial network topology structure, aggregate the nodes at each level that meet the aggregation conditions, and thus display the processed network topology structure after the aggregation process. Then, when there are many device nodes, since the nodes that meet the aggregation conditions have been aggregated into aggregated nodes, the network topology structure will not be too large, making it easier for operation and maintenance personnel to view the overall network topology structure, thereby improving the convenience of viewing the network topology structure and improving the ease of use for operation and maintenance personnel.

[0136] In addition, since each aggregation node can be shrunk or expanded for display, it can meet the different viewing needs of operation and maintenance personnel for a single node or the overall structure, thereby improving the convenience of operation and maintenance.

[0137] Optionally, the embodiment of the present application also provides another method for displaying a network topology structure, as shown in FIG3 , which may include:

[0138] S301, determining an initial network topology;

[0139] S302, identifying whether there is a node that meets the aggregation condition from the nodes at the same level of the initial network topology structure;

[0140] S303, performing aggregation processing on the nodes that meet the aggregation conditions to obtain aggregation nodes corresponding to the nodes that meet the aggregation conditions;

[0141] S304, displaying the initial network topology structure after aggregation as the target network topology structure of the network system;

[0142] It is understandable that steps S301-S304 are the same as steps S201-S204, so they are not described here in detail.

[0143] S305: In response to detecting that any aggregated node meets a predetermined expansion condition, the aggregated node is hidden, and nodes corresponding to the aggregated node and meeting the aggregation condition are displayed in the node display area corresponding to the aggregated node;

[0144] The parent-child relationship of the nodes that meet the aggregation conditions displayed in the target network topology structure is the parent-child relationship existing in the initial network topology structure.

[0145] It should be noted that the process of hiding the aggregation node and displaying the nodes that meet the aggregation conditions corresponding to the aggregation node can also be regarded as replacing the aggregation node with the nodes that meet the aggregation conditions corresponding to the aggregation node and displaying them. The display effect can be the effect of the aggregation node being expanded and displayed. In addition, the node display area is an area near the aggregation node, which is used to display the nodes that meet the aggregation conditions corresponding to the aggregation node. The node display area can be a pre-set position, and the embodiment of the present application does not make specific restrictions on this. It can be understood that the parent-child relationship of the displayed nodes that meet the aggregation conditions in the target network topology is consistent with the parent-child relationship that exists in the initial network topology. Then, when an aggregation node is expanded and displayed, the child nodes corresponding to the aggregation node will also be expanded and displayed, so that the accurate parent-child relationship can be displayed.

[0146] It should be noted that after displaying the nodes that meet the aggregation conditions corresponding to the aggregation node, the core connection information can be displayed through the connecting lines between the nodes. The core connection information can also be called link information. The link information may include: upstream device information, that is, the node description information of the parent node, downstream device information, that is, the node description information of the child node, so as to facilitate operation and maintenance personnel to quickly locate the component information of the link. Of course, the link information can also include other information, and the embodiment of the present application does not make specific limitations on this.

[0147] Optionally, in one implementation, any aggregation node meeting a predetermined expansion condition includes:

[0148] An expansion operation issued by a user for any aggregation node is detected, or it is detected that the parent node of any aggregation node belongs to the aggregation node and an expansion action occurs; wherein the expansion action is to display the corresponding nodes that meet the aggregation conditions.

[0149] It can be understood that the predetermined expansion conditions satisfied by any aggregation node may be in two situations. One is that an expansion operation issued by a user for any aggregation node is detected. The user here can also be understood as an operation and maintenance personnel. When the operation and maintenance personnel view an aggregation node on the management platform, they can issue an expansion operation for the aggregation node; the other is that the parent node of any aggregation node is detected to be an aggregation node, and the aggregation node as the parent node is performing an expansion action. Then, when the parent node of the aggregation node is expanded and displayed, the aggregation node is also expanded and displayed. Therefore, the parent-child relationship of the nodes that meet the aggregation conditions in the target network topology structure is the parent-child relationship that exists in the initial network topology, that is, the accurate parent-child relationship.

[0150] It should be noted that, when it is detected that the parent node of any aggregation node belongs to an aggregation node and an expansion action occurs, the aggregation node is also expanded. This expansion method can be considered as a recursive expansion method. When the parent node is expanded and displayed, its child nodes are also expanded and displayed. This is a layer-by-layer recursive expansion method.

[0151] In order to better understand the above content, the following will briefly introduce two situations that meet the predetermined expansion conditions with reference to the accompanying drawings:

[0152] As shown in Figure 4(a), the operator clicks on aggregate node ID: 11. The operator's expansion operation for aggregate node ID: 11 is detected, and aggregate node ID: 11 is hidden. In the node display area corresponding to aggregate node ID: 11, nodes ID: 6, 7, 9, and 10 are displayed. Furthermore, aggregate node ID: 2 can include nodes ID: 3 and 4.

[0153] As shown in Figure 4(b), when the operator clicks on aggregate node ID: 2, it is detected that the parent node of aggregate node ID: 11 is expanding, and aggregate node ID: 11 will also be expanded and displayed. Aggregate node ID: 2 can display nodes ID: 3 and 4 in the corresponding node expansion area, and aggregate node ID: 11 can display nodes ID: 6, 7, 9, and 10 in the corresponding node expansion area. Node ID: 3 has child node ID: 5, which is also an aggregate node. Aggregate node ID: 5 can display nodes ID: 6 and 7 in the corresponding node display area. Node ID: 4 has child node ID: 8, which is also an aggregate node. Aggregate node ID: 8 can display nodes ID: 9 and 10 in the corresponding node display area.

[0154] Of course, the specific circumstances for expanding and displaying the aggregation node are not limited to the two circumstances described above, and there may be other circumstances. The embodiment of the present application does not specifically limit the specific circumstances for expanding and displaying the aggregation node.

[0155] In this embodiment of the present application, when any aggregation node meets the predetermined expansion conditions, the aggregation node can be hidden, and the nodes corresponding to the aggregation node that meet the aggregation conditions can be displayed in the corresponding node expansion area. As can be seen, when the parent node of the aggregation node is expanded and displayed, the aggregation node will also be expanded and displayed. This recursive expansion method can accurately display the parent-child relationship, making it easier for operation and maintenance personnel to view the overall network topology structure, thereby improving the convenience of viewing the network topology structure.

[0156] Optionally, in one implementation, in response to detecting that any aggregated node meets a predetermined expansion condition, displaying nodes corresponding to the aggregated node and meeting the aggregation condition in a node display area corresponding to the aggregated node may include step A1:

[0157] Step A1, in response to detecting that any aggregation node meets a predetermined expansion condition, when the number of nodes meeting the aggregation condition corresponding to the aggregation node exceeds a first quantity threshold, based on a page-turning display method, the nodes meeting the aggregation condition corresponding to the aggregation node are displayed in the node display area corresponding to the aggregation node.

[0158] It is understood that the page-turning display method is because the node display area corresponding to the aggregate node cannot fully display all nodes that meet the aggregation conditions corresponding to the aggregate node. Therefore, the nodes that meet the aggregation conditions can be displayed by flipping the page. For example, there are 100 nodes that meet the aggregation conditions corresponding to aggregate node A, but the node expansion area corresponding to aggregate node A can only display 5 nodes that meet the aggregation conditions at a time. Therefore, the 100 nodes that meet the aggregation conditions can be displayed by flipping the page.

[0159] It should be noted that the first quantity threshold is a threshold set for the page-turning expansion method and is set based on the number of nodes that can be displayed in the node expansion area corresponding to the aggregate node. For example, if the number of nodes that can be displayed in the node expansion area corresponding to aggregate node A is 5, then the first quantity threshold may be 5. If there are more than 5 nodes that meet the aggregation conditions, then based on the page-turning display method, the nodes that meet the aggregation conditions corresponding to aggregate node A will be displayed in the node display area corresponding to aggregate node A. It will be understood that the embodiments of the present application do not specifically limit the specific value of the first quantity threshold.

[0160] It can be seen that by setting the first quantity threshold, the page-turning display method of the nodes that meet the aggregation conditions can be determined. Therefore, in the embodiment of the present application, when there are multiple nodes that meet the aggregation conditions, multiple nodes that meet the aggregation conditions can also be displayed through page-turning display, which is convenient for operation and maintenance personnel to view the overall network topology structure, thereby improving the convenience of viewing the network topology structure.

[0161] Optionally, in one implementation, the method further includes step B1:

[0162] Step B1, in response to detecting that the displayed nodes meeting the aggregation conditions meet the predetermined shrinking conditions, hiding the displayed nodes meeting the aggregation conditions, and displaying the aggregation node corresponding to the displayed nodes meeting the aggregation conditions in the target network topology structure.

[0163] It can be understood that the predetermined shrinking condition can be the detection of a shrinking operation issued by the operation and maintenance personnel for any aggregation node. The shrinking operation can be that the operation and maintenance personnel clicks on the corresponding node that meets the aggregation conditions again after viewing the node that meets the aggregation conditions corresponding to the aggregation node, thereby hiding the displayed node that meets the aggregation conditions, and displaying the aggregation node corresponding to the displayed node that meets the aggregation conditions in the target network topology. Of course, in one implementation method, the above-mentioned process of hiding the displayed node that meets the aggregation conditions and displaying the aggregation node corresponding to the displayed node that meets the aggregation conditions in the target network topology can also be regarded as replacing the displayed node that meets the aggregation conditions with the aggregation node corresponding to the node that meets the aggregation conditions. The display effect can be the effect of the node that meets the aggregation conditions being shrunk. The embodiment of the present application does not make specific limitations on this.

[0164] Furthermore, after a node that meets the aggregation conditions is shrunk to an aggregate node, the aggregate node is connected to a child node. Then, the link connecting the two may include multiple actual links.

[0165] To better understand the above content, the following is a brief introduction to the shrinking of nodes that meet the aggregation conditions, combined with the accompanying figures:

[0166] As shown in Figure 5(a), it is detected that the displayed nodes that meet the aggregation conditions meet the predetermined shrinkage conditions, and the displayed node ID: 3 and node ID: 4 that meet the aggregation conditions are hidden. The aggregation node ID: 2 corresponding to the displayed node that meets the aggregation conditions is displayed, and its child node ID: 5 and child node ID: 6 can be shrunk or not. If shrunk, the child node ID: 5 and child node ID: 6 that meet the aggregation conditions are hidden, and the aggregation node ID: 7 is displayed.

[0167] As shown in Figure 5(b), it is detected that the displayed nodes that meet the aggregation conditions meet the predetermined contraction conditions, and the displayed node ID: 3, node ID: 4, and the node ID: 6, node ID: 7 that meet the aggregation conditions are hidden. In the target network topology, the aggregation node ID: 2 corresponding to the displayed node ID: 3 and node ID: 4 that meet the aggregation conditions is displayed, and the aggregation node ID: 5 corresponding to the displayed node ID: 6 and node ID: 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 aggregation node ID: 2. In this way, the aggregation node ID: 5 and the aggregation node ID: 8 can be further contracted 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.

[0168] Of course, the embodiments of the present application do not specifically limit the specific circumstances under which shrinkage meets the polymerization conditions.

[0169] It can be seen that the nodes that meet the aggregation conditions in the embodiment of the present application can be shrunk when the predetermined shrinkage conditions are met, so that the aggregation node corresponding to the displayed node that meets the aggregation conditions can be displayed. When the aggregation node is shrunk, the core connection information can still be displayed through the node connection line, which is convenient for operation and maintenance personnel to view the overall network topology structure, thereby improving the convenience of viewing the network topology structure.

[0170] As can be seen, in response to any aggregation node meeting a predetermined expansion condition or a predetermined contraction condition, the embodiment of the present application expands the aggregation node or contracts the nodes that meet the aggregation condition, and displays them, thereby responding to the various viewing needs of operation and maintenance personnel, facilitating operation and maintenance personnel to view the overall network topology structure, thereby improving the convenience of viewing the network topology structure. In addition, since each aggregation node can be contracted or expanded for display, it can meet the different viewing needs of operation and maintenance personnel for a single node or the overall structure, thereby improving the convenience of operation and maintenance.

[0171] Optionally, in one implementation, after displaying the initial network topology structure after aggregation as the target network topology structure of the network system, the method further includes one or more of step C1 and step C2:

[0172] Step C1: in response to detecting that a mouse pointer is hovering over a target node, if the current parent node of the target node is an aggregation node, replacing 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;

[0173] It is understandable that when it is detected that the mouse pointer is hovering over the target node and the current parent node of the target node is an aggregation node, step C1 can be applied. Then, 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, and the parent-child relationship in the initial network topology can be displayed. It should be noted that when the mouse pointer is hovering over the target node, the accurate connection relationship of the target node can be displayed, that is, the parent node actually connected to the target node; wherein, the parent node in the initial network topology can be the node in the target network topology that meets the aggregation conditions and corresponds to the parent node of the target node. Exemplarily, in the target network topology, it is detected that the mouse pointer is hovering over the target node B, and the parent node C of the target node B is an aggregation node. Then, the parent node C of the target node B in the target network topology is replaced with the parent node D of the target node B in the initial network topology, wherein the parent node D is the node that meets the aggregation conditions and corresponds to the parent node C.

[0174] Step C2: 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.

[0175] It is understandable that when it is detected that the mouse pointer is hovering over the target node and the current child node of the target node is an aggregation node, step C2 can be applied. Then, the child node of the target node in the target network topology can be replaced with the child node of the target node in the initial network topology, and the parent-child relationship in the initial network topology can be displayed. It should be noted that when the mouse pointer is hovering over the target node, the accurate connection relationship of the target node can be displayed, that is, the child node actually connected to the target node; wherein, the child node in the initial network topology can be the node of the target node in the target network topology that meets the aggregation conditions. Exemplarily, in the target network topology, it is detected that the mouse pointer is hovering over the target node B, and the child node C of the target node B is an aggregation node. Then, the child node C of the target node B in the target network topology is replaced with the child node D of the target node B in the initial network topology, wherein the child node D is the node that meets the aggregation conditions corresponding to the child node C.

[0176] It should be noted that if the current child node and parent node of the target node are both aggregation nodes, then step C1 and step C2 are applicable. The specific process has been introduced and will not be repeated here.

[0177] It can be seen that when the current child node and parent node of the target node are aggregation nodes, the child nodes of the target node in the initial network topology structure can be displayed, thereby showing the accurate connection relationship of the target node, which is convenient for operation and maintenance personnel to view the overall network topology structure, thereby improving the convenience of viewing the network topology structure.

[0178] Optionally, in one implementation, after displaying the initial network topology structure after aggregation as the target network topology structure of the network system, the method further includes steps D1-D2:

[0179] Step D1, in response to detecting a node search operation, determining a node indicated by the node search operation, and obtaining a node to be processed;

[0180] It can be understood that the node to be processed is the node searched in response to the node search operation. The node search operation is applicable to the situation where the operation and maintenance personnel view any node in the management platform. The node to be processed can be obtained through the node search operation.

[0181] Step D2: If the target network topology structure 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 structure and highlight the node to be processed obtained 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 structure;

[0182] The aggregation node corresponding to the node to be processed is the aggregation node obtained by aggregating the node to be processed;

[0183] The displayed parent-child relationship of the node to be processed in the target network topology structure is: the parent-child relationship existing in the initial network topology structure.

[0184] It is understandable that if the target network topology shows an aggregate node corresponding to the node to be processed, two situations will occur. One is that in the target network topology, the aggregate node corresponding to the node to be processed is expanded, the node corresponding to the aggregate node that meets the aggregation conditions is displayed, and the node to be processed is highlighted; the other is that the aggregate node corresponding to the node to be processed in the target network topology is directly replaced with the node to be processed. It should be noted that the above two situations can clearly show the parent-child relationship of the node to be processed in the target network topology, and can also show the parent-child relationship existing in the initial network topology. Exemplarily, in response to detecting a node search operation, the node indicated by the node search operation is determined, and the node to be processed a is obtained. The aggregate node A corresponding to the node to be processed a is displayed in the target network topology. In the target network topology, the aggregate node A is expanded, and the node to be processed a obtained after the display processing is highlighted; or, in the target network topology, the aggregate node A is replaced with the node to be processed a.

[0185] In another implementation, if the node to be processed is displayed as a single node in the initial network topology, the node to be processed may be directly displayed in the target network topology.

[0186] It can be seen that after searching for any node, the operation and maintenance personnel can use the node as a node to be processed. If the target network topology structure displays the aggregation 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, which is convenient for the operation and maintenance personnel to view the overall network topology structure, thereby improving the convenience of viewing the network topology structure.

[0187] Based on the above embodiment, the following briefly introduces the network topology structure in actual use in combination with Figure 6 (a) and Figure 6 (b):

[0188] As shown in Figure 6(a), the network topology used in the access control system has multiple levels. The first level is the core switch, which can be understood as the root node. There are 6 switches in the second level, among which switch 1 is connected to aggregation node 1, which includes 20 switch devices. There is a 20 mark in the upper right corner of the aggregation node, indicating that the 20 switch devices in the aggregation node are abnormal. Aggregation node 1 is connected to gun camera 1 and dome camera 1, among which gun camera 1 includes 50 gun cameras and dome camera 1 includes 60 dome cameras. Since all the switch devices in aggregation node 1 are abnormal, all the devices in gun camera 1 and dome camera 1 are also abnormal; switch 2 is connected to aggregation node 2, which includes 23 switch devices. Aggregation node 2 is connected to access control equipment and dome camera 2, among which access control equipment includes 10 access control devices and the total number of downstream devices is 8. Dome camera 2 includes 60 dome cameras, among which 4 dome cameras are abnormal; switch 3 is connected to aggregation node 3, which includes 23 switch devices. Aggregation node 3 is connected to AP (Access Point, wireless access point) and dome camera 3, among which AP There are 100 APs in the system, which are connected to the dome camera 5. The dome camera 5 contains 200 dome cameras, of which 4 dome cameras are abnormal. The dome camera 3 contains 30 dome cameras. Switch 4 is connected to the aggregation node 4, which contains 10 switch devices. The aggregation node 4 is connected to the NVR (Network Video Recorder). Recorder, network video recorder), and bridge 1 are connected, wherein the NVR includes 2 NVR devices, and the total number of downstream devices is 30, of which 6 are abnormal. Bridge 1 includes 10 bridge devices, and bridge 1 is communicated with bridge 2, which includes 10 bridge devices, and the total number of downstream devices of bridge 2 is 10. Switch 5 is connected to aggregation node 5, and aggregation node 5 includes 6 switch devices. Aggregation node 5 is connected to gun camera 2 and ball camera 4, wherein ball camera 4 includes 30 ball cameras, of which 4 are abnormal. Switch 6 is respectively connected to storage server, DS-3CS000 (optical terminal model), video integrated platform, platform server group and AC (Access Controller).

[0189] As shown in Figure 6(b), this command line behavior is the data structure description information of the node and sub-node in actual use, and some description information such as the device, port, and connection line status is not displayed.

[0190] It can be seen that the network topology structure introduced above can facilitate operation and maintenance personnel to view the overall network topology structure, thereby improving the convenience of viewing the network topology structure.

[0191] Based on the above method embodiment, as shown in FIG7 , the embodiment of the present application provides a display device for a network topology structure, including:

[0192] The determination module 710 is configured to determine an initial network topology structure; wherein each node in the initial network topology structure is used to represent a device in the network system;

[0193] An identification module 720 is configured to identify whether there are nodes that meet aggregation conditions from the nodes at the same level of 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;

[0194] an aggregation processing module 730 configured to perform aggregation processing on the nodes meeting the aggregation conditions to obtain an aggregation node corresponding to the nodes meeting the aggregation conditions; wherein the aggregation node and the corresponding nodes meeting the aggregation conditions have the same parent-child relationship;

[0195] The first display module 740 is configured 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 it is detected that the aggregation node meets the predetermined expansion condition, the network topology structure of the nodes corresponding to the aggregation node that meet the aggregation condition can be displayed.

[0196] Optionally, the device further comprises:

[0197] a second display module configured to, after displaying the initial network topology structure after aggregation as the target network topology structure of the network system, hide the aggregated node in response to detecting that any aggregated node meets a predetermined expansion condition, and display the nodes corresponding to the aggregated node that meet the aggregation condition in the node display area corresponding to the aggregated node;

[0198] The parent-child relationship of the nodes that meet the aggregation conditions displayed in the target network topology structure is the parent-child relationship existing in the initial network topology structure.

[0199] Optionally, any aggregation node meeting a predetermined expansion condition includes:

[0200] An expansion operation issued by a user for any aggregation node is detected, or it is detected that the parent node of any aggregation node belongs to the aggregation node and an expansion action occurs; wherein the expansion action is to display the corresponding nodes that meet the aggregation conditions.

[0201] Optionally, the second display module includes:

[0202] The first display submodule is configured to respond to detecting that any aggregation node meets a predetermined expansion condition. When the number of nodes meeting the aggregation condition corresponding to the aggregation node exceeds a first quantity threshold, the nodes meeting the aggregation condition corresponding to the aggregation node are displayed in the node display area corresponding to the aggregation node based on a page-turning display method.

[0203] Optionally, the device further comprises:

[0204] The third display module is configured to hide the displayed nodes that meet the aggregation conditions in response to detecting that the displayed nodes that meet the aggregation conditions meet the predetermined shrinking conditions, and display the aggregation node corresponding to the displayed nodes that meet the aggregation conditions in the target network topology structure.

[0205] Optionally, the device further comprises:

[0206] A 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 a mouse pointer is hovering over a target 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 if the current parent node of the target node is an aggregation node; wherein the target node is a node representing a device in the target network topology structure;

[0207] and / or,

[0208] The second replacement module is configured 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.

[0209] Optionally, the device further comprises:

[0210] a determination module configured to, after displaying the initial network topology structure after the aggregation process as the target network topology structure of the network system, determine the node indicated by the node search operation in response to detecting the node search operation, and obtain a node to be processed;

[0211] an expansion processing module configured to, if an aggregate node corresponding to the node to be processed is displayed in the target network topology, perform expansion processing on the aggregate node corresponding to the node to be processed in the target network topology 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;

[0212] The aggregation node corresponding to the node to be processed is the aggregation node obtained by aggregating the node to be processed;

[0213] The displayed parent-child relationship of the node to be processed in the target network topology structure is: the parent-child relationship existing in the initial network topology structure.

[0214] Optionally, the nodes meeting the aggregation conditions include:

[0215] The plurality of nodes are characterized as being of the same device type, having the same parent node, and having a number exceeding a second number threshold.

[0216] Optionally, the second quantity threshold is a quantity threshold set for the same device type;

[0217] The quantity threshold set for any device type is set based on the information display requirement for nodes of the device type, and the higher the information display requirement for nodes of any device type, the higher the quantity threshold set for the device type.

[0218] Optionally, the aggregation nodes in the target network topology are associated with and displayed with corresponding node description information of nodes meeting the aggregation conditions.

[0219] The embodiment of the present application further provides an electronic device, as shown in FIG8 , comprising:

[0220] Memory 801, used for storing computer programs;

[0221] The processor 802 is configured to implement a method for displaying a network topology structure when executing a program stored in the memory 801 .

[0222] Furthermore, the electronic device may further include a communication bus and / or a communication interface, and the processor 802, the communication interface, and the memory 801 communicate with each other via the communication bus.

[0223] The communication bus mentioned in the electronic device mentioned above may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is used in the figure, but this does not mean that there is only one bus or only one type of bus.

[0224] The communication interface is used for communication between the above electronic device and other devices.

[0225] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage. Alternatively, the memory may be at least one storage device located away from the processor.

[0226] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.

[0227] In another embodiment provided by the present application, a computer-readable storage medium is further provided, wherein a computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, any of the above-mentioned methods for displaying a network topology structure is implemented.

[0228] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any one of the methods for displaying a network topology structure in the above embodiments.

[0229] In another embodiment provided by the present application, a computer program is further provided. When the computer program is run on a computer, the computer executes any one of the methods for displaying a network topology structure in the above embodiments.

[0230] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD).

[0231] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0232] Each embodiment in this specification is described in a related manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiment is generally similar to the method embodiment, so the description is relatively simple. For related parts, refer to the description of the method embodiment.

[0233] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for displaying a network topology structure, comprising: Determine an initial network topology structure; wherein each node in the initial network topology structure is used to represent a device in the network system; From the nodes at the same level of the initial network topology structure, identifying whether there are nodes that meet the aggregation condition; wherein the nodes that meet the aggregation condition include multiple nodes that represent the same device type and have the same parent node; Aggregating the nodes that meet the aggregation condition to obtain an aggregation node corresponding to the nodes that meet the aggregation condition; wherein the aggregation node and the corresponding node that meets the aggregation condition have the same parent-child relationship; The initial network topology structure after aggregation processing is used as the target network topology structure of the network system for display; wherein, the target network topology structure is: when it is detected that the aggregation node meets the predetermined expansion condition, the network topology structure of the nodes that meet the aggregation condition corresponding to the aggregation node can be displayed.

2. The method according to claim 1, wherein: After displaying the initial network topology structure after the aggregation process as the target network topology structure of the network system, the method further includes: In response to detecting that any aggregation node meets a predetermined expansion condition, the aggregation node is hidden, and nodes meeting the aggregation condition corresponding to the aggregation node are displayed in a node display area corresponding to the aggregation node; The parent-child relationship of the nodes that meet the aggregation conditions displayed in the target network topology structure is: the parent-child relationship existing in the initial network topology structure.

3. The method according to claim 2, wherein: The predetermined expansion condition satisfied by any aggregation node includes: An expansion operation issued by a user for any aggregation node is detected, or it is detected that the parent node of any aggregation node belongs to the aggregation node and an expansion action occurs; wherein the expansion action is to display the corresponding nodes that meet the aggregation conditions.

4. The method according to claim 2, wherein: In response to detecting that any aggregation node meets a predetermined expansion condition, displaying nodes meeting the aggregation condition corresponding to the aggregation node in a node display area corresponding to the aggregation node includes: In response to detecting that any aggregation node satisfies a predetermined expansion condition, when the number of nodes corresponding to the aggregation node that meet the aggregation condition exceeds a first quantity threshold, based on a page-turning display method, the nodes corresponding to the aggregation node that meet the aggregation condition are displayed in the node display area corresponding to the aggregation node.

5. The method according to claim 2, wherein: The method further comprises: In response to detecting that the displayed nodes meeting the aggregation conditions meet the predetermined shrinking conditions, the displayed nodes meeting the aggregation conditions are hidden, and the aggregation node corresponding to the displayed nodes meeting the aggregation conditions is displayed in the target network topology structure.

6. The method according to claim 1, wherein: After displaying the initial network topology structure after the aggregation process 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, replacing 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, 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 structure is replaced by the child node of the target node in the initial network topology structure.

7. The method according to claim 1, wherein: After displaying the initial network topology structure after the aggregation process as the target network topology structure of the network system, the method further includes: In response to detecting a node search operation, determining a node indicated by the node search operation to obtain a node to be processed; If the target network topology structure displays an aggregate node corresponding to the node to be processed, in the target network topology structure, the aggregate node corresponding to the node to be processed is expanded, and the node to be processed obtained after the display processing is highlighted; or, in the target network topology structure, the aggregate node corresponding to the node to be processed is replaced with the node to be processed. node; The aggregation node corresponding to the node to be processed is an aggregation node obtained by aggregating the node to be processed; The displayed parent-child relationship of the node to be processed in the target network topology structure is: the parent-child relationship existing in the initial network topology structure.

8. The method according to any one of claims 1 to 7, wherein: The nodes meeting the aggregation conditions include: Characterizes a plurality of nodes of the same device type, having the same parent node, and having a number exceeding a second number threshold.

9. The method according to claim 8, wherein: The second quantity threshold is a quantity threshold set for the same device type; The quantity threshold set for any device type is set based on the information display requirement for the nodes of the device type, and the higher the information display requirement for the nodes of any device type, the higher the quantity threshold set for the device type.

10. The method according to any one of claims 1 to 7, wherein: The aggregation nodes in the target network topology are associated with corresponding node description information of nodes meeting the aggregation conditions.

11. A display device for a network topology structure, comprising: A determination module, configured to determine an initial network topology structure; wherein each node in the initial network topology structure is used to represent a device in the network system; An identification module, configured to identify whether there is a node that meets the aggregation condition from the nodes at the same level of the initial network topology structure; wherein the nodes that meet the aggregation condition include multiple nodes that represent the same device type and have the same parent node; An aggregation processing module, configured to perform aggregation processing on the nodes that meet the aggregation conditions to obtain an aggregation node corresponding to the nodes that meet the aggregation conditions; wherein the aggregation node has the same parent-child relationship with the corresponding node that meets the aggregation conditions; The first display module is configured 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 it is detected that the aggregation node meets the predetermined expansion condition, the network topology structure of the nodes corresponding to the aggregation node that meet the aggregation condition can be displayed.

12. The device according to claim 11, wherein The device also includes: A second display module is configured to, after displaying the initial network topology structure after the aggregation process 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 condition, and display the node corresponding to the aggregation node and meeting the aggregation condition in the node display area corresponding to the aggregation node; The parent-child relationship of the nodes that meet the aggregation conditions in the target network topology structure is: the parent-child relationship existing in the initial network topology structure; The predetermined expansion condition satisfied by any aggregation node includes: Detecting an expansion operation issued by a user for any aggregation node, or detecting that the parent node of any aggregation node belongs to the aggregation node and an expansion action occurs; wherein the expansion action is to display the corresponding nodes that meet the aggregation conditions; The second display module includes: A first display submodule is configured to, in response to detecting that any aggregation node satisfies a predetermined expansion condition, display the nodes corresponding to the aggregation node that meet the aggregation condition in a node display area corresponding to the aggregation node based on a page-turning display method when the number of nodes that meet the aggregation condition corresponding to the aggregation node exceeds a first quantity threshold; The device also includes: A third display module is configured to hide the displayed nodes meeting the aggregation conditions in response to detecting that the displayed nodes meeting the aggregation conditions meet the predetermined shrinking conditions, and display the aggregation node corresponding to the displayed nodes meeting the aggregation conditions in the target network topology structure; The device also 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 a 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 target network topology structure. The parent node in the initial network topology structure; wherein the target node is a node representing a device in the target network topology architecture; and / or, A second replacement module is configured to replace the child node of the target node in the target network topology structure with the child node of the target node in the initial network topology structure if the current child node of the target node is an aggregation node; The device also includes: A determination module is configured to, after displaying the initial network topology structure after the aggregation process as the target network topology structure of the network system, determine the node indicated by the node search operation in response to detecting the node search operation, and obtain the node to be processed; an expansion processing module, configured to, if the target network topology structure displays an aggregate node corresponding to the node to be processed, perform expansion processing on the aggregate node corresponding to the node to be processed in the target network topology structure, and highlight the node to be processed obtained after the display processing; or, in the target network topology structure, replace the aggregate node corresponding to the node to be processed with the node to be processed; The aggregation node corresponding to the node to be processed is an aggregation node obtained by aggregating the node to be processed; The displayed parent-child relationship of the node to be processed in the target network topology structure is: the parent-child relationship existing in the initial network topology structure; The nodes meeting the aggregation conditions include: Characterizing a plurality of nodes of the same device type, having the same parent node and having a number exceeding a second number threshold; The second quantity threshold is a quantity threshold set for the same device type; The quantity threshold set for any device type is set based on the information display requirement for the node of the device type, and the higher the information display requirement for the node of any device type, the higher the quantity threshold set for the device type; The aggregation nodes in the target network topology are associated with corresponding node description information of nodes meeting the aggregation conditions.

13. An electronic device comprising: Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-10 when executing a program stored in a memory.

14. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.

15. A computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method according to any one of claims 1 to 10.

16. A computer program, which, when executed on a computer, enables the computer to execute the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Topological structure chart display method and device, equipment and storage medium

    CN112115390A

  • Large-scale network space view display method and system based on node centrality

    CN115618082A

  • Display method and device for network topology structure and electronic equipment

    CN116846768A

  • Presenting devices from an aggregated node within a network topology

    US10778537B1

  • Visual hierarchy explorer

    US20100287512A1

Cited By

  • Network topology processing method and device, storage medium and electronic equipment

    CN120658617A