Nothing Special   »   [go: up one dir, main page]

CN114520770A - Topological graph generation method, device, equipment and medium for network equipment - Google Patents

Topological graph generation method, device, equipment and medium for network equipment Download PDF

Info

Publication number
CN114520770A
CN114520770A CN202210143302.9A CN202210143302A CN114520770A CN 114520770 A CN114520770 A CN 114520770A CN 202210143302 A CN202210143302 A CN 202210143302A CN 114520770 A CN114520770 A CN 114520770A
Authority
CN
China
Prior art keywords
node
configuration
switch
nodes
subordination
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210143302.9A
Other languages
Chinese (zh)
Other versions
CN114520770B (en
Inventor
朱敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Cisco Networking Technology Co Ltd
Original Assignee
Inspur Cisco Networking Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Cisco Networking Technology Co Ltd filed Critical Inspur Cisco Networking Technology Co Ltd
Priority to CN202210143302.9A priority Critical patent/CN114520770B/en
Publication of CN114520770A publication Critical patent/CN114520770A/en
Application granted granted Critical
Publication of CN114520770B publication Critical patent/CN114520770B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/044Network management architectures or arrangements comprising hierarchical management structures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/15Interconnection of switching modules

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the specification discloses a method for generating a topological graph of network equipment, which comprises the following steps: when a network environment is built, acquiring a switch node which is built in the network environment in advance and a configuration node corresponding to the switch node; determining the subordination relation between the switch node and the configuration node, the subordination relation between different configuration nodes and the type of the configuration node; determining the number of layers of the switch node and the configuration node in the topological graph according to a preset layer number placing rule and the type of the configuration node; determining the placing positions of the switch nodes and the configuration nodes in different layers of the topological graph according to a preset position placing rule, the subordination between the switch nodes and the configuration nodes and the subordination between different configuration nodes; and connecting the switch and the configuration nodes with the determined placement positions according to the subordination relationship between the switch nodes and the configuration nodes and the subordination relationship between different configuration nodes to obtain a topological graph of the network equipment.

Description

Topological graph generation method, device, equipment and medium for network equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for generating a topology map of a network device.
Background
In the intelligent network equipment management building process, a plurality of switches can be deployed, the switches are configured in a related mode, and finally a plurality of network equipment are formed. When the number of the switches is large, the association relationship between the network devices is chaotic. In the prior art, most of the situations adopt a list mode to count the association relationship between the network devices, but the mode cannot be intuitively displayed.
Disclosure of Invention
One or more embodiments of the present specification provide a method, an apparatus, a device, and a medium for generating a topology map of a network device, so as to solve the following problems:
when the number of the switches is large, the association relationship between the network devices is chaotic. In the prior art, most of the situations adopt a list mode to count the association relationship between the network devices, but the mode cannot be intuitively displayed.
One or more embodiments of the present disclosure adopt the following technical solutions:
one or more embodiments of the present specification provide a method for generating a topology map of a network device, where the method includes:
When a network environment is built, a switch node which is built in the network environment in advance and a configuration node corresponding to the switch node are obtained;
determining the subordination relation between the switch node and the configuration node, the subordination relation between different configuration nodes and the type of the configuration node;
determining the number of layers of the switch node and the configuration node in the topological graph according to a preset layer number placing rule and the type of the configuration node;
determining the placing positions of the switch nodes and the configuration nodes in different layers of the topological graph according to a preset position placing rule, the affiliation between the switch nodes and the configuration nodes and the affiliation between different configuration nodes;
and connecting the switch with the determined placement position with the configuration node according to the subordination relationship between the switch node and the configuration node and the subordination relationship between different configuration nodes to obtain a network equipment topological graph.
Further, before the obtaining of the switch node constructed in the network environment in advance and the configuration node corresponding to the switch node, the method further includes:
Acquiring the configuration of a switch in the network environment corresponding to the switch;
and encapsulating the switch and the configuration corresponding to the switch through a JTopo plug-in to construct the switch node and the configuration node corresponding to the switch node.
Further, the configuration corresponding to the switch includes a firewall, a load balancing node, a subnet and an IP address, and the types of the configuration nodes include a firewall node, a load balancing node, a subnet node and an IP address node.
Further, the determining, according to a preset layer number placement rule and the type of the configuration node, the layer number of the switch node and the configuration node placed in the topology map specifically includes:
according to a preset layer number placing rule, the load balancing node and the firewall node are placed on a first layer of the topological graph, the switch node is placed on a second layer of the topological graph, the subnet node is placed on a third layer of the topological graph, and the IP address node is placed on a fourth layer of the topological graph.
Further, the determining, according to a preset position placement rule, an affiliation between the switch node and the configuration node, and an affiliation between different configuration nodes, the placement positions of the switch node and the configuration node in different layers of the topology map specifically includes:
Setting a coordinate value of the switch node;
and determining coordinate values of the configuration nodes in different layers of the topological graph according to the preset position placing rule, the coordinate position of the switch node, the subordination relationship between the switch node and the configuration nodes and the subordination relationship between different configuration nodes.
Further, after obtaining the network device topology map, the method further includes:
if the position of the switch node or the configuration node is misplaced, after receiving the moving instruction, the switch node or the configuration node with the misplacement is moved to the designated position, and the corresponding coordinate value is updated.
Further, the position placing rule is a sorting algorithm and a recursion algorithm.
One or more embodiments of the present specification provide an apparatus for generating a topology map of a network device, where the apparatus includes:
the system comprises an acquisition unit, a configuration unit and a processing unit, wherein the acquisition unit is used for acquiring a switch node constructed in the network environment in advance and a configuration node corresponding to the switch node when the network environment is constructed;
the first determining unit is used for determining the subordination relation between the switch node and the configuration node, the subordination relation between different configuration nodes and the type of the configuration node;
A second determining unit, configured to determine, according to a preset layer number placement rule and the type of the configuration node, the layer number for placing the switch node and the configuration node in the topology map;
a third determining unit, configured to determine the placement positions of the switch node and the configuration nodes in different levels of the topology map according to a preset position placement rule, the dependency relationship between the switch node and the configuration nodes, and the dependency relationship between different configuration nodes;
and the topology generating unit is used for connecting the switch with the determined placement position with the configuration nodes according to the subordination relation between the switch nodes and the configuration nodes and the subordination relation between different configuration nodes to obtain a network equipment topology map.
One or more embodiments of the present specification provide a topology map generating device of a network device, where the device includes:
at least one processor; and (c) a second step of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
When a network environment is built, a switch node which is built in the network environment in advance and a configuration node corresponding to the switch node are obtained;
determining the subordination relation between the switch node and the configuration node, the subordination relation between different configuration nodes and the type of the configuration node;
determining the number of layers of the switch node and the configuration node in the topological graph according to a preset layer number placing rule and the type of the configuration node;
determining the positions of the switch nodes and the configuration nodes in different layers of the topological graph according to a preset position placing rule, the subordination relation between the switch nodes and the configuration nodes and the subordination relation between different configuration nodes;
and connecting the switch with the determined placement position with the configuration node according to the subordination relationship between the switch node and the configuration node and the subordination relationship between different configuration nodes to obtain a network equipment topological graph.
One or more embodiments of the present specification provide a non-transitory computer storage medium storing computer-executable instructions configured to:
When a network environment is built, a switch node which is built in the network environment in advance and a configuration node corresponding to the switch node are obtained;
determining the subordination relation between the switch node and the configuration node, the subordination relation between different configuration nodes and the type of the configuration node;
determining the number of layers of the switch node and the configuration node in the topological graph according to a preset layer number placing rule and the type of the configuration node;
determining the positions of the switch nodes and the configuration nodes in different layers of the topological graph according to a preset position placing rule, the subordination relation between the switch nodes and the configuration nodes and the subordination relation between different configuration nodes;
and connecting the switch with the determined placement position with the configuration node according to the subordination relationship between the switch node and the configuration node and the subordination relationship between different configuration nodes to obtain a network equipment topological graph.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects: when a network environment is built, the configuration corresponding to the switch and the switch is set as the corresponding switch node and configuration node, and the switch node and the configuration node are generated into a topological graph according to the subordination relation between the switch and the switch configuration, the subordination relation between different switch configurations and the type of the switch configuration, so as to visually display the associated topological information between the switch and the switch configuration.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present specification, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort. In the drawings:
fig. 1 is a flowchart illustrating a method for generating a topology diagram of a network device according to one or more embodiments of the present disclosure;
fig. 2 is a schematic diagram of a topology generation manner of a network device according to one or more embodiments of the present disclosure;
FIG. 3 is a schematic diagram illustrating a topological diagram provided by one or more embodiments of the present disclosure;
FIG. 4 is a first schematic diagram illustrating a detailed display effect of a topological diagram provided in one or more embodiments of the present disclosure;
FIG. 5 is a second schematic diagram illustrating details of a topological diagram according to one or more embodiments of the present disclosure;
fig. 6 is a schematic structural diagram of a topology generating apparatus of a network device according to one or more embodiments of the present disclosure;
Fig. 7 is a schematic structural diagram of a topology diagram generating device of a network device according to one or more embodiments of the present specification.
Detailed Description
The embodiment of the specification provides a method, a device, equipment and a medium for generating a topological graph of network equipment.
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present specification without any creative effort shall fall within the protection scope of the present specification.
Fig. 1 is a schematic flowchart of a method for generating a topology diagram of a network device according to one or more embodiments of the present disclosure, where the process may be executed by a related platform for generating a topology diagram of a network device, and the platform may be applied in different development environments, and when a network environment is built, a topology diagram structure of a network device is generated, so as to facilitate visual display of an association relationship of a virtual network. Certain input parameters or intermediate results in the flow allow for manual intervention adjustments to help improve accuracy.
The method of the embodiment of the specification comprises the following steps:
s102, when a network environment is built, a switch node built in the network environment in advance and a configuration node corresponding to the switch node are obtained;
in this embodiment of the present disclosure, before obtaining a switch node and a configuration node corresponding to the switch node that are constructed in the network environment in advance, a configuration corresponding to a switch and a switch in the network environment may be obtained first, and then, the configuration corresponding to the switch and the switch is encapsulated by a JTopo plug-in to construct the configuration node corresponding to the switch node and the switch node.
The JTopo plug-in is a plug-in for drawing a topological graph, and the plug-in uses H5 Canvas to draw elements and operate the elements, so that the graphical processing of the dependency relationship of data can be realized.
S104, determining the subordination relation between the switch node and the configuration node, the subordination relation between different configuration nodes and the type of the configuration node.
In this embodiment, the configuration corresponding to the switch may include a firewall, a load balancing node, a subnet, and an IP address, and the types of the configuration nodes include a firewall node, a load balancing node, a subnet node, and an IP address node.
It should be noted that, the subordination between the switch node and the configuration node, the subordination between different configuration nodes, and the type of the configuration node are all preset, and this description embodiment may directly obtain, for example, the subordination between the switch node and the configuration node may be the firewall node b, the load balancing node c, and the subnet node d, the configuration node corresponding to the switch node a may be the firewall node b, the load balancing node c, and the sub-ordination between different configuration nodes may be the subnet node e, the IP address node f, and the IP address node g corresponding to the subnet node d.
And S106, determining the layer number of the switch node and the configuration node in the topological graph according to a preset layer number placing rule and the type of the configuration node.
Further, when the number of layers of the switch node and the configuration node in the topology graph is determined according to a preset number of layers placement rule and the type of the configuration node, the number of layers of each type of node may be set according to the preset number of layers placement rule, and in this embodiment of the present specification, the load balancing node and the firewall node may be placed on the first layer of the topology graph, the switch node is placed on the second layer of the topology graph, the subnet node is placed on the third layer of the topology graph, and the IP address node is placed on the fourth layer of the topology graph.
It should be noted that, the number of layers of the switch node and each configuration node in the topology diagram is not limited to the above manner, and the address node, the subnet node on the second layer, the switch node on the third layer, and the firewall node and the load balancing node on the fourth layer may also be placed on the first layer of the topology diagram.
The embodiment of the specification can directly determine the number of layers of the switch node and the different types of configuration nodes placed in the topological graph through the layer number placing rule without manual classification, so that a large amount of manpower can be saved. After the number of layers of the switch node and the different types of configuration nodes placed in the topological graph is determined, the subsequent steps can be executed to determine the specific positions of the switch node and the different types of configuration nodes.
S108, determining the positions of the switch and the configuration nodes in different layers of the topological graph according to a preset position placing rule, the subordination relation between the switch node and the configuration nodes and the subordination relation between different configuration nodes;
in this embodiment of the present specification, a coordinate value of the switch node may be set first, where a position of the switch node may be set arbitrarily, and after the position of the switch node is determined, the position of the configuration node is determined based on the switch node; then, coordinate values of the configuration nodes can be determined in different layer numbers of the topology map according to preset position placing rules, coordinate positions of the switch nodes, the subordination relationship between the switch nodes and the configuration nodes, and subordination relationships between different configuration nodes. Because the number of layers of the switch nodes and the configuration nodes in the topological graph is determined in the steps, when the position of each configuration node is determined, each configuration node is arranged around the switch node only by depending on the subordinate relationship between the switch node and the configuration node and the subordinate relationship between different configuration nodes, and the position arrangement rule at the moment can be used for orderly arranging each configuration node according to a sequencing algorithm and a recursion algorithm.
And S110, connecting the switch with the determined placing position with the configuration node according to the subordination relationship between the switch node and the configuration node and the subordination relationship between different configuration nodes to obtain a network equipment topological graph.
After the network device topology map is obtained, if the position of the switch node or the configuration node is misaligned, after receiving the moving instruction, the embodiment of the present specification moves the switch node or the configuration node, which is misaligned, to the designated position, and updates the corresponding coordinate value.
In the process of building a network environment, a plurality of switches are configured, a firewall, load balancing and the like are configured for the switches, subnets are configured under the switches, then IP addresses are distributed, and configuration information of the switches needs to be checked through an intuitive interface. When the network fails, the network topological graph can be quickly checked to show the configuration information of the switch.
Referring to a schematic diagram of a topology generation manner of a network device shown in fig. 2, in an overall flowchart of an embodiment of the present specification, at the beginning, a firewall of a switch, load balancing, and subnet information are stored in a database, then, a visualization algorithm program generates available data, then, a network request is performed, device data is analyzed, then, a topology is drawn according to node data, a flow is ended, and if a problem occurs when the device data is analyzed, a front end exception prompt is given, and the flow is ended.
The internal implementation mechanism of the embodiments of the present specification can be implemented by the following detailed steps:
when a network environment is built, the background stores equipment information such as a switch, a firewall, load balancing, a subnet and an IP to a database, the equipment information comprises equipment type and equipment subordination, then the equipment information is issued to a visualization program, in the visualization program, effective data is generated according to an algorithm formula on the equipment type and the equipment subordination, and finally the effective data is formed and stored in a warehouse. The visualization program generates effective data of a multi-branch tree linked list structure according to a sorting algorithm and a recursion algorithm, finds a top parent node as a first node of the multi-branch tree, and calculates the type, coordinate point and connecting line direction of each node. And performing view rendering by using a web visualization technology to generate a topological graph.
Js, CSS, draw graphics using Canvas, an API provided by Javascript, draw 2D graphics through < Canvas > tag elements. And (4) using the unique id of the device as a node of the topological graph, and initializing the position of the node according to x and y coordinates returned by the background. And generating a connecting line between the nodes according to the linkId and the destNode, and setting corresponding icons according to different equipment types. When drawing the graph, the graph is sequentially arranged by taking the switch as a unit, the first layer is load balancing, firewall and routing information, the second layer is the switch, the third layer is a subnet, and the fourth layer is IP information. The node supports clicking to check details and dragging. When the node is dragged, the node coordinate is stored and is stored in a background, and the real-time performance of the position coordinate is guaranteed. The topology map panel supports operations of zooming in, zooming out, full screen, adaptive canvas, and the like. Through the topological graph, the configurations of the firewall, the load balance, the subnet, the IP and the like of each switch can be clearly seen.
With the adoption of the scheme, the obtained topological graph has a display effect schematic diagram, as shown in fig. 3, wherein the first layer is the firewall node and the load balancing node respectively, the second layer is the switch node, the third layer is the three subnet nodes corresponding to the switch, and the fourth layer is the IP address nodes corresponding to the subnet nodes respectively.
Further, regarding that a node supports click-to-view details, reference may be made to a first schematic diagram and a second schematic diagram of a display effect of topology details shown in fig. 4 and fig. 5, and in a topology diagram, in this description, device configuration information may be clicked and viewed, that is, virtual device details are displayed on the right side.
When a network environment is built, the configuration corresponding to the switch and the switch is set as the corresponding switch node and the configuration node, and the switch node and the configuration node are generated into a topological graph according to the subordination between the switch and the switch configuration, the subordination between different switch configurations and the type of the switch configuration, so as to visually display the associated topological information between the switch and the switch configuration.
Fig. 6 is a schematic structural diagram of a topology diagram generating apparatus of a network device according to one or more embodiments of the present specification, where the apparatus includes: an obtaining unit 602, a first determining unit 604, a second determining unit 606, a third determining unit 608 and a topology generating unit 610.
When a network environment is established, the obtaining unit 602 is configured to obtain a switch node that is constructed in the network environment in advance and a configuration node corresponding to the switch node;
the first determining unit 604 is configured to determine an affiliation between the switch node and the configuration node, an affiliation between different configuration nodes, and a type of the configuration node;
the second determining unit 606 is configured to determine, according to a preset layer number placement rule and the type of the configuration node, the layer number for placing the switch node and the configuration node in the topology map;
a third determining unit 608 is configured to determine, according to a preset position placement rule, a dependency relationship between the switch node and the configuration node, and a dependency relationship between different configuration nodes, positions where the switch node and the configuration node are placed in different levels of the topology map;
the topology generating unit 610 is configured to connect the switch with the determined placement position with the configuration node according to the dependency relationship between the switch node and the configuration node and the dependency relationship between different configuration nodes, so as to obtain a network device topology diagram.
Fig. 7 is a schematic structural diagram of a topology generating device of a network device according to one or more embodiments of the present specification, where the topology generating device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
when a network environment is built, a switch node built in the network environment in advance and a configuration node corresponding to the switch node are obtained;
determining the subordination relation between the switch node and the configuration node, the subordination relation between different configuration nodes and the type of the configuration node;
determining the number of layers of the switch node and the configuration node in the topological graph according to a preset layer number placing rule and the type of the configuration node;
determining the placing positions of the switch nodes and the configuration nodes in different layers of the topological graph according to a preset position placing rule, the affiliation between the switch nodes and the configuration nodes and the affiliation between different configuration nodes;
And connecting the switch with the determined placement position with the configuration node according to the subordination relationship between the switch node and the configuration node and the subordination relationship between different configuration nodes to obtain a network equipment topological graph.
One or more embodiments of the present specification provide a non-transitory computer storage medium storing computer-executable instructions configured to:
when a network environment is built, a switch node which is built in the network environment in advance and a configuration node corresponding to the switch node are obtained;
determining the subordination relation between the switch node and the configuration node, the subordination relation between different configuration nodes and the type of the configuration node;
determining the number of layers of the switch node and the configuration node in the topological graph according to a preset layer number placing rule and the type of the configuration node;
determining the placing positions of the switch nodes and the configuration nodes in different layers of the topological graph according to a preset position placing rule, the affiliation between the switch nodes and the configuration nodes and the affiliation between different configuration nodes;
And connecting the switch with the determined placement position with the configuration node according to the subordination relationship between the switch node and the configuration node and the subordination relationship between different configuration nodes to obtain a network equipment topological graph.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain a corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical blocks. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the various elements may be implemented in the same one or more software and/or hardware implementations of the present description.
As will be appreciated by one skilled in the art, the present specification embodiments may be provided as a method, system, or computer program product. Accordingly, embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The description has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiments of the apparatus, the device, and the nonvolatile computer storage medium, since they are substantially similar to the embodiments of the method, the description is simple, and for the relevant points, reference may be made to the partial description of the embodiments of the method.
The foregoing description of specific embodiments has been presented for purposes of illustration and description. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The above description is merely one or more embodiments of the present disclosure and is not intended to limit the present disclosure. Various modifications and alterations to one or more embodiments of the present description will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of one or more embodiments of the present specification should be included in the scope of the claims of the present specification.

Claims (10)

1. A method for generating a topology map of a network device, the method comprising:
when a network environment is built, a switch node built in the network environment in advance and a configuration node corresponding to the switch node are obtained;
determining the subordination relation between the switch node and the configuration node, the subordination relation between different configuration nodes and the type of the configuration node;
determining the number of layers of the switch node and the configuration node in the topological graph according to a preset layer number placing rule and the type of the configuration node;
determining the placing positions of the switch nodes and the configuration nodes in different layers of the topological graph according to a preset position placing rule, the affiliation between the switch nodes and the configuration nodes and the affiliation between different configuration nodes;
and connecting the switch with the configuration node, which determines the placement position, with the configuration node according to the subordination relationship between the switch node and the configuration node and the subordination relationship between different configuration nodes to obtain a topological graph of the network equipment.
2. The method of claim 1, wherein before the obtaining a switch node constructed in the network environment in advance and a configuration node corresponding to the switch node, the method further comprises:
Acquiring the configuration of a switch in the network environment corresponding to the switch;
and encapsulating the switch and the configuration corresponding to the switch through a JTopo plug-in to construct the switch node and the configuration node corresponding to the switch node.
3. The method of claim 2, wherein the configuration corresponding to the switch comprises a firewall, a load balancing node, a subnet, and an IP address, and wherein the types of the configuration nodes comprise a firewall node, a load balancing node, a subnet node, and an IP address node.
4. The method according to claim 3, wherein the determining, according to a preset layer number placement rule and the type of the configuration node, the layer number of the switch node and the configuration node placed in the topology map specifically includes:
according to a preset layer number placing rule, the load balancing node and the firewall node are placed on a first layer of the topological graph, the switch node is placed on a second layer of the topological graph, the subnet node is placed on a third layer of the topological graph, and the IP address node is placed on a fourth layer of the topological graph.
5. The method according to claim 1, wherein the determining the placement positions of the switch node and the configuration node in different layers of the topology map according to a preset placement rule, an affiliation between the switch node and the configuration node, and an affiliation between different configuration nodes specifically comprises:
Setting a coordinate value of the switch node;
and determining coordinate values of the configuration nodes in different layers of the topological graph according to the preset position placing rule, the coordinate position of the switch node, the subordination relationship between the switch node and the configuration nodes and the subordination relationship between different configuration nodes.
6. The method of claim 5, wherein after obtaining the network device topology map, the method further comprises:
if the position of the switch node or the configuration node is misplaced, after receiving the moving instruction, the switch node or the configuration node with the misplacement is moved to the designated position, and the corresponding coordinate value is updated.
7. The method of claim 1, wherein the position-placing rules are a sorting algorithm and a recursive algorithm.
8. An apparatus for generating a topology map of a network device, the apparatus comprising:
the system comprises an acquisition unit, a configuration unit and a processing unit, wherein the acquisition unit is used for acquiring a switch node constructed in the network environment in advance and a configuration node corresponding to the switch node when the network environment is constructed;
the first determining unit is used for determining the subordination relation between the switch node and the configuration node, the subordination relation between different configuration nodes and the type of the configuration node;
A second determining unit, configured to determine, according to a preset layer number placement rule and the type of the configuration node, the layer number of the switch node and the configuration node placed in the topology map;
a third determining unit, configured to determine, according to a preset position placement rule, a dependency relationship between the switch node and the configuration node, and a dependency relationship between different configuration nodes, positions where the switch node and the configuration node are placed in different layers of the topology map;
and the topology generating unit is used for connecting the switch with the determined placement position with the configuration nodes according to the subordination relation between the switch nodes and the configuration nodes and the subordination relation between different configuration nodes to obtain a network equipment topology map.
9. A topology map generation device of a network device, the device comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
When a network environment is built, a switch node which is built in the network environment in advance and a configuration node corresponding to the switch node are obtained;
determining the subordination relation between the switch node and the configuration node, the subordination relation between different configuration nodes and the type of the configuration node;
determining the number of layers of the switch node and the configuration node in the topological graph according to a preset layer number placing rule and the type of the configuration node;
determining the placing positions of the switch nodes and the configuration nodes in different layers of the topological graph according to a preset position placing rule, the affiliation between the switch nodes and the configuration nodes and the affiliation between different configuration nodes;
and connecting the switch with the determined placement position with the configuration node according to the subordination relationship between the switch node and the configuration node and the subordination relationship between different configuration nodes to obtain a network equipment topological graph.
10. A non-transitory computer storage medium having stored thereon computer-executable instructions configured to:
When a network environment is built, a switch node built in the network environment in advance and a configuration node corresponding to the switch node are obtained;
determining the subordination relation between the switch node and the configuration node, the subordination relation between different configuration nodes and the type of the configuration node;
determining the number of layers of the switch node and the configuration node in the topological graph according to a preset layer number placing rule and the type of the configuration node;
determining the placing positions of the switch nodes and the configuration nodes in different layers of the topological graph according to a preset position placing rule, the affiliation between the switch nodes and the configuration nodes and the affiliation between different configuration nodes;
and connecting the switch with the determined placement position with the configuration node according to the subordination relationship between the switch node and the configuration node and the subordination relationship between different configuration nodes to obtain a network equipment topological graph.
CN202210143302.9A 2022-02-16 2022-02-16 Topology diagram generation method, device, equipment and medium of network equipment Active CN114520770B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210143302.9A CN114520770B (en) 2022-02-16 2022-02-16 Topology diagram generation method, device, equipment and medium of network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210143302.9A CN114520770B (en) 2022-02-16 2022-02-16 Topology diagram generation method, device, equipment and medium of network equipment

Publications (2)

Publication Number Publication Date
CN114520770A true CN114520770A (en) 2022-05-20
CN114520770B CN114520770B (en) 2024-05-10

Family

ID=81599676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210143302.9A Active CN114520770B (en) 2022-02-16 2022-02-16 Topology diagram generation method, device, equipment and medium of network equipment

Country Status (1)

Country Link
CN (1) CN114520770B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020158897A1 (en) * 2001-04-30 2002-10-31 Besaw Lawrence M. System for displaying topology map information through the web
CN109783568A (en) * 2018-12-29 2019-05-21 咪咕文化科技有限公司 Method and device for generating network topological graph and storage medium
CN112272109A (en) * 2020-10-15 2021-01-26 上海云轴信息科技有限公司 Network topological graph generation method, equipment and system
CN112291097A (en) * 2020-10-30 2021-01-29 绿盟科技集团股份有限公司 Virtual network topology generation method and device
CN113452561A (en) * 2021-06-25 2021-09-28 深信服科技股份有限公司 Topology generation method, device and equipment and readable storage medium
CN113904941A (en) * 2021-09-24 2022-01-07 绿盟科技集团股份有限公司 Method and system for generating topological graph and electronic equipment
CN114039856A (en) * 2021-09-29 2022-02-11 中孚安全技术有限公司 Network topology structure display system and method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020158897A1 (en) * 2001-04-30 2002-10-31 Besaw Lawrence M. System for displaying topology map information through the web
CN109783568A (en) * 2018-12-29 2019-05-21 咪咕文化科技有限公司 Method and device for generating network topological graph and storage medium
CN112272109A (en) * 2020-10-15 2021-01-26 上海云轴信息科技有限公司 Network topological graph generation method, equipment and system
CN112291097A (en) * 2020-10-30 2021-01-29 绿盟科技集团股份有限公司 Virtual network topology generation method and device
CN113452561A (en) * 2021-06-25 2021-09-28 深信服科技股份有限公司 Topology generation method, device and equipment and readable storage medium
CN113904941A (en) * 2021-09-24 2022-01-07 绿盟科技集团股份有限公司 Method and system for generating topological graph and electronic equipment
CN114039856A (en) * 2021-09-29 2022-02-11 中孚安全技术有限公司 Network topology structure display system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙桂萍;: "基于SNMP协议的网络拓扑结构的自动搜索的研究", 硅谷, no. 23, 8 December 2008 (2008-12-08) *

Also Published As

Publication number Publication date
CN114520770B (en) 2024-05-10

Similar Documents

Publication Publication Date Title
KR102154757B1 (en) Callpath finder
US8949742B2 (en) Compressing tree diagrams
CN109034183B (en) Target detection method, device and equipment
CN107622080B (en) Data processing method and equipment
CN112036236A (en) GhostNet-based detection model training method, device and medium
CN111399812B (en) Component construction method and device, development framework and equipment
CN113011483A (en) Method and device for model training and business processing
CN113656533A (en) Tree control processing method and device and electronic equipment
CN117406982A (en) Integrated storage and calculation application generation system and method, storage medium and equipment
CN117033527B (en) Knowledge graph construction method and device, storage medium and electronic equipment
CN116150563B (en) Service execution method and device, storage medium and electronic equipment
CN107369192B (en) Connection relation processing method and device
CN114520770A (en) Topological graph generation method, device, equipment and medium for network equipment
CN113360154B (en) Page construction method, device, equipment and readable medium
CN116136952A (en) Simulation test method and device for components
CN115061618A (en) Method and device for displaying list data in sliding mode and electronic equipment
CN107390995A (en) A kind of ladder numerical value method to set up and device
US20170315707A1 (en) Metadata-based navigation in semantic zoom environment
CN107783761B (en) Interface construction method, device and equipment
CN113342413B (en) Method, apparatus, device, medium, and article for processing components
CN114968462B (en) Equipment management and control method and device, electronic equipment and storage medium
CN112749425B (en) IAP platform-based gas circuit diagram implementation method and device
CN110515511A (en) A kind of operation application program image target method and device
CN116309940B (en) Map information display method, equipment and medium based on animation popup window assembly
CN115080671B (en) Method and device for creating user-defined relationship graph, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant