CN113992522B - Network topology graph generation method and device, electronic equipment and storage medium - Google Patents

Network topology graph generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113992522B
CN113992522B CN202111025803.9A CN202111025803A CN113992522B CN 113992522 B CN113992522 B CN 113992522B CN 202111025803 A CN202111025803 A CN 202111025803A CN 113992522 B CN113992522 B CN 113992522B
Authority
CN
China
Prior art keywords
tenant
network topology
link interface
setting
canvas
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.)
Active
Application number
CN202111025803.9A
Other languages
Chinese (zh)
Other versions
CN113992522A (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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN202111025803.9A priority Critical patent/CN113992522B/en
Publication of CN113992522A publication Critical patent/CN113992522A/en
Application granted granted Critical
Publication of CN113992522B publication Critical patent/CN113992522B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

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

Abstract

The embodiment of the invention is suitable for the technical field of computers, and provides a network topology graph generation method, a device, electronic equipment and a storage medium, wherein the network topology graph generation method comprises the following steps: determining a layout structure of a network topology diagram of the cloud platform selected by a user; receiving tenant information input by a user; inserting at least two first elements into the setting canvas based on the layout structure, and inserting at least one second element into the setting canvas based on tenant information, so as to obtain a network topology diagram of the cloud platform; the network links corresponding to the layout structure are represented by the at least two inserted first elements; the second element characterizes a tenant of the cloud platform.

Description

Network topology graph generation method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for generating a network topology map, an electronic device, and a storage medium.
Background
The network topology diagram can intuitively reflect the structural relation among all entities in the network, and is convenient for a user to configure and eliminate errors. In the related art, the layout structure of the network topology map created by each user is inconsistent, so that it is difficult for the user to understand the network topology map created by other users.
Disclosure of Invention
In order to solve the above problems, embodiments of the present invention provide a method, an apparatus, an electronic device, and a storage medium for generating a network topology map, so as to at least solve the problem that in the related art, a user is hard to understand a network topology map created by other users.
The technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for generating a network topology map, where the method includes:
determining a layout structure of a network topology diagram of the cloud platform selected by a user;
receiving tenant information input by a user;
inserting at least two first elements into a setting canvas based on the layout structure, and inserting at least one second element into the setting canvas based on the tenant information to obtain a network topology diagram of the cloud platform; wherein,
the at least two inserted first elements represent network links corresponding to the layout structure; the second element characterizes a tenant of the cloud platform.
In the above scheme, the network link includes a link interface; the inserting at least one second element in the setting canvas based on the tenant information includes:
under the condition that a first element representing a link interface is inserted into the setting canvas, inserting a corresponding second element into a first area corresponding to the link interface associated with the tenant based on the association relation between the tenant and the link interface; wherein,
the first element is located outside the first region.
In the above solution, the inserting the corresponding second element into the first area corresponding to the link interface associated with the tenant includes:
and inserting a corresponding second element into the vacant position of the first area corresponding to the link interface associated with the tenant.
In the above solution, after the inserting the corresponding second element into the first area corresponding to the link interface associated with the tenant, the method further includes:
establishing a connection line between a first element representing the link interface and a corresponding second element based on the association relation between the tenant and the link interface;
wherein the connection line does not overlap with the element in the first region.
In the above solution, when at least one second element is inserted into the setting canvas based on the tenant information, the method includes:
loading a background grid in the setting canvas;
inserting each second element of the at least one second element onto a corresponding set positioning point; and the set positioning point is determined based on the background network.
In the above solution, the inserting at least one second element in the setting canvas based on the tenant information includes:
generating the at least one second element in a second region based on the tenant information; the second area is used for storing a second element to be connected;
and based on the received drag instruction, moving the second element in the second area to a corresponding position in the setting canvas.
In the above scheme, the method further comprises:
and correspondingly adjusting the position of the element connected with the moved element under the condition that any element in the setting canvas is detected to move.
In a second aspect, an embodiment of the present invention provides a network topology map generating apparatus, including:
the determining module is used for determining the layout structure of the network topological graph of the cloud platform selected by the user;
the receiving module is used for receiving tenant information input by a user;
the inserting module is used for inserting at least two first elements into a setting canvas based on the layout structure and inserting at least one second element into the setting canvas based on the tenant information to obtain a network topology diagram of the cloud platform; the at least two inserted first elements represent network links corresponding to the layout structure; the second element characterizes a tenant of the cloud platform.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, where the processor and the memory are connected to each other, where the memory is configured to store a computer program, where the computer program includes program instructions, and where the processor is configured to invoke the program instructions to perform the steps of the network topology map generating method provided in the first aspect of the embodiment of the present invention.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium comprising: the computer readable storage medium stores a computer program. The computer program when executed by a processor implements the steps of the network topology generation method as provided in the first aspect of the embodiment of the present invention.
According to the embodiment of the invention, the tenant information input by the user is received by determining the layout structure of the network topology diagram of the cloud platform selected by the user; inserting at least two first elements into a setting canvas based on a layout structure, and inserting at least one second element into the setting canvas based on tenant information to obtain a network topological graph of a cloud platform; the network links corresponding to the layout structure are represented by at least two inserted first elements, and the tenants of the cloud platform are represented by second elements. According to the embodiment of the invention, the user can meet different requirements of the user under different scenes by independently configuring and independently selecting the layout structure of the network topology map, and can avoid different user cognition inconsistencies, so that the topology created by different users is consistent as a whole, and the network topology map created by other users can be quickly understood and put into the hand by the user.
Drawings
Fig. 1 is a network topology diagram drawn by the related art;
fig. 2 is a network topology diagram drawn by the related art;
fig. 3 is a schematic implementation flow diagram of a network topology graph generating method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a selection interface for a deployment template provided by an embodiment of the present invention;
fig. 5 is a schematic diagram of a network topology provided in an embodiment of the present invention;
fig. 6 is a schematic diagram of a network topology provided by an embodiment of the present invention;
fig. 7 is a schematic diagram of a network topology provided in an embodiment of the present invention;
fig. 8 is a schematic diagram of a network topology provided in an embodiment of the present invention;
fig. 9 is a schematic diagram of a network topology provided by an embodiment of the present invention;
fig. 10 is a schematic diagram of a network topology provided in an embodiment of the present invention;
fig. 11 is a schematic implementation flow diagram of another network topology map generation method according to an embodiment of the present invention;
FIG. 12 is a schematic diagram of a network topology provided by an embodiment of the present invention;
fig. 13 is a schematic diagram of a network topology provided in an embodiment of the present invention;
fig. 14 is a network topology diagram after a large number of tenants have been drained according to an embodiment of the present invention;
fig. 15 is a schematic diagram of a network topology provided by an embodiment of the present invention;
FIG. 16 is a schematic diagram of a network topology provided by an embodiment of the present invention;
FIG. 17 is a schematic diagram of a network topology provided by an embodiment of the present invention;
FIG. 18 is a schematic diagram of a platform drainage procedure according to an embodiment of the present invention;
fig. 19 is a schematic diagram of a tenant drainage flow provided by an embodiment of the present invention;
fig. 20 is a schematic diagram of a network topology generating apparatus according to an embodiment of the present invention;
fig. 21 is a schematic diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a network topology diagram drawn by a related art, in an implementation manner of a traditional virtualized network topology diagram, a user drags elements to a canvas in a toolbar, and manually drags the elements to a reasonable position, if the user drags the elements to the canvas at will, a large number of elements exist in the canvas, the situation shown in fig. 1 occurs, the elements in the canvas are disordered, and the user is difficult to quickly find specific elements. FIG. 2 is a network topology diagram drawn by a related art, wherein after a user drags an element to a canvas, the element is connected with the related element, the element can relate to a situation of 1-to-many connection and many-to-many connection, and various connection lines are mutually inserted when the element is many, so that flow connection is unclear.
As can be seen from fig. 1 and 2, the network topology drawn by the related art has the following problems.
The first problem is: the connection lines between the elements in the network topology graph are straight lines, which may cause the situation that the straight lines pass through the elements such as switches, routers, virtual local area network (VLAN, virtual Local Area Network) interfaces, tenants and the like, and are not clear enough for traffic data and the like. For example, when the number of tenant elements is large, drainage is unclear, and it is difficult to intuitively display the correspondence between the tenant and the link interface.
A second problem: dragging of elements is not linked, for example, tenant interfaces and VLAN interfaces are in binding relation, in the prior art, the tenant elements are dragged, and the VLAN interface elements cannot move along with the dragging; dragging the VLAN interface element, the tenant element will not move along. Under a multi-tenant scene, the network topology structure is complex and difficult to expand, and each element needs to be manually adjusted one by one when tenant elements are newly added or the positions of the tenant elements are adjusted.
Third problem: the topology structures created by each user are different, the user does not know the network topology diagrams created by other users, and if an operation and maintenance engineer of a certain company leaves the job or needs to remove barriers to the topology for a third party, the network topology diagrams have high learning cost, and the user cannot directly get up.
Fourth problem: the manual drawing efficiency is low, misoperation during manual drawing and connection is uncontrollable, and the user is required to have very precise knowledge of the logic and the network of the product before the mistakes are not easy to occur.
Aiming at the defects of the related art, the embodiment of the invention provides a network topology graph generation method, which at least can solve the problem that a user can hardly understand the network topology graph created by other users. In order to illustrate the technical scheme of the invention, the following description is made by specific examples.
Fig. 3 is a schematic implementation flow chart of a network topology graph generation method according to an embodiment of the present invention, where an execution body of the network topology graph generation method is an electronic device, and the electronic device includes a desktop computer, a notebook computer, a server, and the like. Referring to fig. 3, the network topology map generation method includes:
s301, determining a layout structure of a network topological graph of the cloud platform selected by a user.
Here, the tenant may access a cloud platform, host the service to the cloud platform, and the cloud platform cleans the service traffic for the tenant and alarms the event with risk. For example, the cloud platform can be a cloud security management platform, and the cloud security management platform can realize compliance such as fast implementation through integrating and linking each security component capability, provide complete security capability for user service, and can unify operation and maintenance management user security equipment, realize safe global detection, and the event is fast handled.
The user can operate on the platform for drawing the network topology map and select the layout structure of the network topology map. Referring to fig. 4, fig. 4 is a schematic diagram of a selection interface of a deployment template provided by an embodiment of the present invention, and fig. 4 includes 3 deployment templates, a single-arm deployment template, a gateway deployment template-multiple physical interfaces, and a gateway deployment template-single physical interface, where each deployment template corresponds to a layout structure of a network topology graph.
After the user clicks the ok button, at least two first elements corresponding to the selected layout structure are inserted on the setup canvas. As shown in FIG. 5, after the deployment template is selected, at least two first elements corresponding to the deployment template are inserted on the canvas. For example, the at least two first elements corresponding to the single-arm deployment template include: a physical egress, a VLAN interface and a core router. If the cancel button is clicked, a custom deployment mode is entered.
S302, receiving tenant information input by a user.
A tenant refers to a user of a service of a cloud platform, and may be a person, an enterprise, or a government entity. The tenant information includes the traffic size, transmission speed, name, selected element style, connection relationship, etc. required by the tenant.
After receiving the tenant information, the platform for drawing the network topology graph can generate a second element corresponding to the tenant on the setting canvas, wherein one tenant corresponds to one second element.
S303, inserting at least two first elements into a setting canvas based on the layout structure, and inserting at least one second element into the setting canvas based on the tenant information to obtain a network topology diagram of the cloud platform; the at least two inserted first elements represent network links corresponding to the layout structure; the second element characterizes a tenant of the cloud platform.
Here, at least two first elements represent network links corresponding to the layout structure, and a second element represents a tenant of the cloud platform. For example, the gateway deployment template-multi-physical interface network link in fig. 4 includes the following nodes: physical egress-VLAN interface-core router, tenant connects to the link interface of the network link.
And forming a network topological graph of the cloud platform by at least two first elements and at least one second element, and connecting the second elements with the first elements according to the actual association relationship, wherein the connection represents the flow trend.
Through the autonomous configuration and the autonomous selection of the layout structure of the network topology map, different requirements of users in different scenes can be met, and different user cognition inconsistencies are avoided, so that the topology created by different users is wholly consistent, different users can quickly understand the network topology map created by other users, and operation staff of a company can quickly get in hand and operate and maintain the network topology map drawn by other operation staff.
In an embodiment, the network link comprises a link interface; the inserting at least one second element in the setting canvas based on the tenant information includes:
under the condition that a first element representing a link interface is inserted into the setting canvas, inserting a corresponding second element into a first area corresponding to the link interface associated with the tenant based on the association relation between the tenant and the link interface; wherein the first element is located outside the first region.
Referring to fig. 6, a dashed box area in fig. 6 is a first area, rectangular elements in the first area represent tenants, and numerals represent the number of tenants. In the case of inserting the first element characterizing the link interface into the setting canvas, a first area is synchronously displayed in the setting canvas, and the first element characterizing the link interface is core route one in fig. 6. According to the association relation between the tenant and the link interface, the second element corresponding to the tenant falls in the first area of the corresponding link interface. All the first elements are located outside the first area, and the first area only stores the second elements corresponding to the link interface. The size of the first area is adaptively adjusted according to the number of tenants. Therefore, the relation between the tenant and the corresponding link interface is clear, and the tenant of each link interface is clear at a glance, so that operation and maintenance personnel can operate conveniently.
In an embodiment, the inserting the corresponding second element into the first area corresponding to the link interface associated with the tenant includes:
and inserting a corresponding second element into the vacant position of the first area corresponding to the link interface associated with the tenant.
Referring to fig. 7, a user may prune a second element in a first area, if the second element in the first area is pruned, the first area will generate a vacant position, the background will record the current vacant position, and if a new second element is added, the second element is preferentially inserted into the vacant position of the first area. In this way, the generated network topology map does not have a blank area, and the network topology map is more attractive and clear.
In the related art, after a tenant is newly added, a tenant element appears at a position specified by a canvas, and the specified position is not draggable. And the distinction between drainage tenants, which refer to the tenants that have completed the connection, and non-drainage tenants, which refer to the tenants that have not yet been connected, is not considered. At present, the non-drainage tenant and the drainage tenant are mixed together, so that interference is brought to a user, and meanwhile, the association relation between the tenant and the corresponding link interface is not considered, so that the relation between the tenant and the corresponding link interface is unclear, the flow relation between the tenant and the link interface is unclear, and the situation that flow data are overlapped as shown in fig. 8 occurs.
In the related art, as shown in fig. 9, the connection between the tenant and the link interface is a straight line, the implementation of the straight line passes through elements in the canvas, and the operation and maintenance engineer increases the operation and maintenance cost and the barrier removal cost during operation and maintenance.
In an embodiment, after the inserting the corresponding second element into the first area corresponding to the link interface associated with the tenant, the method further includes:
establishing a connection line between a first element representing the link interface and a corresponding second element based on the association relation between the tenant and the link interface;
wherein the connection line does not overlap with the element in the first region.
As shown in fig. 6 and fig. 7, according to the association relationship between the tenant and the link interface, a broken line is used to connect between the second element and the first element, the broken line can bypass the tenant to make an arrangement, in the connection process, whether the connection passes through the second element or not can be judged according to an algorithm, and the second element is bypassed through the broken line when the connection passes through the second element. The specific connection mode is shown in fig. 10, the drainage template refers to at least two first elements corresponding to the deployment template, the user can select a flexible connection mode to establish connection between the second element and the first element, the connection cannot be non-overlapping with the elements in the first area, so that the generated network topology graph is clear in connection, and the flow trend is clear.
Referring to fig. 11, in an embodiment, when the at least one second element is inserted in the setup canvas based on the tenant information, the method includes:
s1101, loading a background grid in the setting canvas.
As shown in fig. 12, a background grid is loaded in a setting canvas, and the background grid is composed of a plurality of straight lines intersecting horizontally and vertically to form a background grid having a plurality of rectangular lattices.
S1102, inserting each second element in the at least one second element into a corresponding set positioning point; and the set positioning point is determined based on the background network.
For example, the set anchor point may be the intersection of each line in the background grid, or the center point of each grid. If a second element is already present in the first region, the set anchor point may be located on the same line as the center point of the already present second element.
The purpose of this is to have the centre points of adjacent second elements lie on the same straight line. For example, in fig. 12, centers of tenant 1 element to tenant 4 element are on the same line, tenant 1 element and tenant 5 element are aligned, tenant 2 element and tenant 6 element are aligned, and so on. Therefore, the second elements in the formed network topological graph can be orderly arranged, so that operation and maintenance personnel can operate the network topological graph conveniently, and the network topological graph is more attractive when displayed outwards.
In the related technology, drainage tenants and non-drainage tenants are mixed together in a canvas, a user can only distinguish the drainage tenants and the non-drainage tenants through naked eyes, whether the non-drainage tenants are connected or not is identified, and the non-connection tenants represent the non-drainage tenants, so that operation and maintenance personnel are not facilitated to perform operation and maintenance obstacle removal.
In an embodiment, the inserting at least one second element in the setting canvas based on the tenant information includes:
generating the at least one second element in a second region based on the tenant information; the second area is used for storing a second element to be connected; and based on the received drag instruction, moving the second element in the second area to a corresponding position in the setting canvas.
The user inputs tenant information on the platform, the platform automatically generates corresponding second elements, and the tenant information comprises tenant names, selected element styles and the like.
And setting a second area in the design platform of the network topological graph, wherein the second area is used for storing second elements to be connected, and the second elements generated based on tenant information are stored in the second area and wait to be dragged to the canvas by a user.
Referring to fig. 13, the lower part of the diagram in fig. 13 includes a tenant area to be drained, where the tenant area to be drained is a second element to be connected, and the tenant area to be drained is the second area, and the second element in the tenant area to be drained can be dragged to a corresponding position in the canvas to be connected with the first element representing the link interface.
Like this, wait to drain the tenant and compare the correlation technique and have fixed area to deposit, if wait to drain the tenant, put in waiting to drain the region, already drain the tenant and drain specific position according to the link interface drainage of selecting, do benefit to fortune dimension personnel and carry out fortune dimension and remove the obstacle. Referring to fig. 14, fig. 14 is a network topology after the completion of the drainage of a number of tenants.
In the related art, dragging of elements is not linked, for example, tenant interfaces and VLAN interfaces are in binding relation, in the prior art, the tenant elements are dragged, and the VLAN interface elements cannot move along with the dragging; dragging the VLAN interface element, the tenant element will not move along. Under a multi-tenant scene, the network topology structure is complex and difficult to expand, and each element needs to be manually adjusted one by one when tenant elements are newly added or the positions of the tenant elements are adjusted.
In an embodiment, the method further comprises:
and correspondingly adjusting the position of the element connected with the moved element under the condition that any element in the setting canvas is detected to move.
Referring to fig. 15, fig. 15 is a schematic diagram of a network topology according to an embodiment of the present invention. When the VLAN9 element in fig. 15 is moved, the VLAN9 element and the tenant 9 element connected thereto are correspondingly moved to a selected position, and the effect after the movement is as shown in fig. 16.
The principle of implementation is that the tenant is bound with the corresponding link port in the background database. As shown in fig. 17, when a VLAN interface element (the first element characterizing the link interface) is created, a third area of a horizontal layout is bound, which is the dashed box area in fig. 17. Logically dividing the third area into a drainage area, a tenant area and a management area, and adaptively adjusting the size of the area according to the number of elements in the area.
The VLAN interface element is positioned in the drainage area of the third area, the tenant and the switch bound with the VLAN interface are adaptively distributed in the tenant area and the management area of the third area, and the positions of all elements in the third area are correspondingly adjusted under the condition that any element in the third area is moved.
Thus, as traffic expands, newly added VLAN interfaces and tenants can be inserted adaptively in the topology. Meanwhile, when the sequence needs to be adjusted, the associated elements can be adjusted in a self-adaptive mode, so that the topological structure is kept clear and visual continuously, and the topology is kept automatic and has good flexibility.
According to the embodiment of the invention, the tenant information input by the user is received by determining the layout structure of the network topology diagram of the cloud platform selected by the user; inserting at least two first elements into a setting canvas based on a layout structure, and inserting at least one second element into the setting canvas based on tenant information to obtain a network topological graph of a cloud platform; the network links corresponding to the layout structure are represented by at least two inserted first elements, and the tenants of the cloud platform are represented by second elements. According to the embodiment of the invention, the user can meet different requirements of the user under different scenes by independently configuring and independently selecting the layout structure of the network topology map, and can avoid different user cognition inconsistencies, so that the topology created by different users is consistent as a whole, and the network topology map created by other users can be quickly understood and put into the hand by the user.
In practical application, if an engineer just entering into the office selects a custom deployment mode according to a leader arrangement, then a tenant is newly added in a platform, the newly added tenant is drained, the network is not very familiar, and the first engineer hopes that the corresponding relation between the tenant and a link interface can be clearly seen after the tenant is drained, so that the engineer can conveniently perform daily operation and maintenance and obstacle removal; the second user hopes that the tenant can be arranged in an aligned mode after drainage, and the exhibition is conveniently carried out for the leader and the customer.
Referring to fig. 18, fig. 18 is a schematic diagram of a platform drainage procedure. The user selects a drainage mode on the platform, namely selects a layout structure, the user clicks to take effect immediately, and the platform inserts at least two first elements corresponding to the drainage mode on the canvas according to configuration information corresponding to the drainage mode.
Referring to fig. 19, fig. 19 is a schematic diagram of a tenant drainage flow. The user inputs tenant information in the platform, the platform finds the newly added tenant according to the newly added tenant of the tenant information, then selects a sub-interface and configuration information corresponding to the newly added tenant, the sub-interface is a link interface, the user clicks to take effect immediately, and the platform connects the newly added tenant with the selected link interface to finish drainage.
The user can flexibly define the drainage mode according to the service requirement, clearly and intuitively check the flow relation, and can predict the overall topology effect before constructing the whole network topology graph, compared with the prior art, the method can not drag and freely arrange the whole network topology graph to obtain sufficient freedom, and the method can ensure that the whole topology is more orderly and regular while meeting the freedom, so that the construction process of the whole security architecture is more control, the creation of the network topology graph is efficiently completed, the operation and maintenance engineers can conveniently and simply and efficiently complete the topology arrangement, and the work efficiency of operation and maintenance obstacle removal is greatly improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The technical schemes described in the embodiments of the present invention may be arbitrarily combined without any collision.
In addition, in the embodiments of the present invention, "first", "second", etc. are used to distinguish similar objects and are not necessarily used to describe a particular order or precedence.
Referring to fig. 20, fig. 20 is a schematic diagram of a network topology generating apparatus according to an embodiment of the present invention, as shown in fig. 20, the apparatus includes: the device comprises a determining module, a receiving module and an inserting module.
The determining module is used for determining the layout structure of the network topological graph of the cloud platform selected by the user;
the receiving module is used for receiving tenant information input by a user;
the inserting module is used for inserting at least two first elements into a setting canvas based on the layout structure and inserting at least one second element into the setting canvas based on the tenant information to obtain a network topology diagram of the cloud platform; the at least two inserted first elements represent network links corresponding to the layout structure; the second element characterizes a tenant of the cloud platform.
In an embodiment, the network link comprises a link interface; the insertion module is used for inserting at least one second element in the setting canvas based on the tenant information:
under the condition that a first element representing a link interface is inserted into the setting canvas, inserting a corresponding second element into a first area corresponding to the link interface associated with the tenant based on the association relation between the tenant and the link interface; wherein,
the first element is located outside the first region.
In an embodiment, when the inserting module inserts the corresponding second element into the first area corresponding to the link interface associated with the tenant, the inserting module is configured to:
and inserting a corresponding second element into the vacant position of the first area corresponding to the link interface associated with the tenant.
In an embodiment, after the inserting the corresponding second element into the first area corresponding to the link interface associated with the tenant, the apparatus further includes:
and the connecting module is used for establishing a connecting line between the first element representing the link interface and the corresponding second element based on the association relation between the tenant and the link interface.
In an embodiment, the device further comprises:
the loading module is used for loading a background grid in the setting canvas;
the inserting module is further used for inserting each second element in the at least one second element onto a corresponding set positioning point; and the set positioning point is determined based on the background network.
In an embodiment, the inserting module is configured to, when inserting at least one second element in the setting canvas based on the tenant information:
generating the at least one second element in a second region based on the tenant information; the second area is used for storing a second element to be connected;
and based on the received drag instruction, moving the second element in the second area to a corresponding position in the setting canvas.
In an embodiment, the device further comprises:
and the adjusting module is used for correspondingly adjusting the position of the element connected with the moved element under the condition that any element in the setting canvas is detected to move.
In practice, the determining module, the receiving module and the inserting module may be implemented by a processor in the electronic device, such as a central processing unit (CPU, central Processing Unit), a digital signal processor (DSP, digital Signal Processor), a micro control unit (MCU, microcontroller Unit) or a programmable gate array (FPGA, field-Programmable Gate Array), etc.
It should be noted that: in the network topology map generating apparatus provided in the above embodiment, only the division of the above modules is used for illustration, and in practical application, the above processing allocation may be performed by different modules according to needs, that is, the internal structure of the apparatus is divided into different modules, so as to complete all or part of the above processing. In addition, the network topology map generating apparatus provided in the foregoing embodiments and the network topology map generating method embodiment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
Based on the hardware implementation of the program modules, and in order to implement the method of the embodiment of the application, the embodiment of the application also provides an electronic device. Fig. 21 is a schematic diagram of a hardware composition structure of an electronic device according to an embodiment of the present application, as shown in fig. 21, the electronic device includes:
a communication interface capable of information interaction with other devices such as a network device and the like;
and the processor is connected with the communication interface so as to realize information interaction with other equipment and is used for executing the method provided by one or more technical schemes on the electronic equipment side when the computer program is run. And the computer program is stored on the memory.
Of course, in practice, the various components in the electronic device are coupled together by a bus system. It will be appreciated that a bus system is used to enable connected communications between these components. The bus system includes a power bus, a control bus, and a status signal bus in addition to the data bus. But for clarity of illustration the various buses are labeled as bus systems in fig. 21.
The memory in the embodiments of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program for operating on an electronic device.
It will be appreciated that the memory can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Wherein the nonvolatile Memory may be Read Only Memory (ROM), programmable Read Only Memory (PROM, programmable Read-Only Memory), erasable programmable Read Only Memory (EPROM, erasable Programmable Read-Only Memory), electrically erasable programmable Read Only Memory (EEPROM, electrically Erasable Programmable Read-Only Memory), magnetic random access Memory (FRAM, ferromagnetic random access Memory), flash Memory (Flash Memory), magnetic surface Memory, optical disk, or compact disk Read Only Memory (CD-ROM, compact Disc Read-Only Memory); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be random access memory (RAM, random Access Memory), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available, such as static random access memory (SRAM, static Random Access Memory), synchronous static random access memory (SSRAM, synchronous Static RandomAccess Memory), dynamic random access memory (DRAM, dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, synchronous Dynamic RandomAccess Memory), double data rate synchronous dynamic random access memory (ddr SDRAM, double Data Rate Synchronous Dynamic RandomAccess Memory), enhanced synchronous dynamic random access memory (ESDRAM, enhanced Synchronous Dynamic RandomAccess Memory), synchronous link dynamic random access memory (SLDRAM, syncLink Dynamic RandomAccess Memory), direct memory bus random access memory (DRRAM, direct Rambus RandomAccess Memory). The memory described in the embodiments of the present application is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the embodiments of the present application may be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The processor may be a general purpose processor, DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present application. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly embodied in a hardware decoding processor or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium having a memory, and the processor reads the program in the memory and performs the steps of the method in combination with its hardware.
Optionally, when the processor executes the program, a corresponding flow implemented by the electronic device in each method of the embodiments of the present application is implemented, and for brevity, will not be described herein again.
In an exemplary embodiment, the present application further provides a storage medium, i.e. a computer storage medium, in particular a computer readable storage medium, for example comprising a first memory storing a computer program, which is executable by a processor of an electronic device to perform the steps of the aforementioned method. The computer readable storage medium may be FRAM, ROM, PROM, EPROM, EEPROM, flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, electronic device, and method may be implemented in other manners. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware associated with program instructions, where the foregoing program may be stored in a computer readable storage medium, and when executed, the program performs steps including the above method embodiments; and the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
Alternatively, the integrated units described above may be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partly contributing to the prior art, and the computer software product may be stored in a storage medium, and include several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
The technical solutions described in the embodiments of the present application may be arbitrarily combined without any conflict.
In addition, in the examples of this application, "first," "second," etc. are used to distinguish similar objects and not necessarily to describe a particular order or sequence.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. A method for generating a network topology, the method comprising:
determining a layout structure of a network topology diagram of the cloud platform selected by a user;
receiving tenant information input by a user;
inserting at least two first elements into a setting canvas based on the layout structure, and inserting at least one second element into the setting canvas based on the tenant information to obtain a network topology diagram of the cloud platform; wherein,
the at least two inserted first elements represent network links corresponding to the layout structure; the second element characterizes the tenant of the cloud platform; the network link comprises a link interface;
the inserting at least one second element in the setting canvas based on the tenant information includes:
under the condition that a first element representing a link interface is inserted into the setting canvas, inserting a corresponding second element into a first area corresponding to the link interface associated with the tenant based on the association relation between the tenant and the link interface; wherein the first element is located outside the first region;
when at least one second element is inserted into the setting canvas based on the tenant information, the method comprises:
loading a background grid in the setting canvas;
if the second element exists in the first area, setting locating points in the background grid and the center point of the existing second element are located on the same straight line, and each second element in the at least one second element is inserted into the corresponding setting locating point.
2. The method of claim 1, wherein inserting the corresponding second element into the first region corresponding to the tenant-associated link interface comprises:
and inserting a corresponding second element into the vacant position of the first area corresponding to the link interface associated with the tenant.
3. The method of claim 1, wherein after inserting the corresponding second element into the first region corresponding to the tenant-associated link interface, the method further comprises:
establishing a connection line between a first element representing the link interface and a corresponding second element based on the association relation between the tenant and the link interface;
wherein the connection line does not overlap with the element in the first region.
4. The method of claim 1, wherein the inserting at least one second element in the setup canvas based on the tenant information comprises:
generating the at least one second element in a second region based on the tenant information; the second area is used for storing a second element to be connected;
and based on the received drag instruction, moving the second element in the second area to a corresponding position in the setting canvas.
5. The method according to claim 1, wherein the method further comprises:
and correspondingly adjusting the position of the element connected with the moved element under the condition that any element in the setting canvas is detected to move.
6. A network topology generation apparatus, comprising:
the determining module is used for determining the layout structure of the network topological graph of the cloud platform selected by the user;
the receiving module is used for receiving tenant information input by a user;
the inserting module is used for inserting at least two first elements into a setting canvas based on the layout structure and inserting at least one second element into the setting canvas based on the tenant information to obtain a network topology diagram of the cloud platform; the at least two inserted first elements represent network links corresponding to the layout structure; the second element characterizes the tenant of the cloud platform; the network link comprises a link interface;
the inserting module is specifically configured to insert, when a first element representing a link interface is inserted into the setting canvas, a corresponding second element into a first area corresponding to a link interface associated with a tenant based on an association relationship between the tenant and the link interface; wherein the first element is located outside the first region;
the inserting module is further specifically configured to load a background grid in the setting canvas; if the second element exists in the first area, setting locating points in the background grid and the center point of the existing second element are located on the same straight line, and each second element in the at least one second element is inserted into the corresponding setting locating point.
7. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the network topology generation method of any of claims 1 to 5 when the computer program is executed.
8. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the network topology map generation method of any of claims 1 to 5.
CN202111025803.9A 2021-09-02 2021-09-02 Network topology graph generation method and device, electronic equipment and storage medium Active CN113992522B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111025803.9A CN113992522B (en) 2021-09-02 2021-09-02 Network topology graph generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111025803.9A CN113992522B (en) 2021-09-02 2021-09-02 Network topology graph generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113992522A CN113992522A (en) 2022-01-28
CN113992522B true CN113992522B (en) 2024-04-09

Family

ID=79735324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111025803.9A Active CN113992522B (en) 2021-09-02 2021-09-02 Network topology graph generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113992522B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7036119B1 (en) * 2002-07-15 2006-04-25 Cisco Technology, Inc. Method and apparatus for creating a network topograph that includes all select objects that are in a network
CN102136946A (en) * 2011-03-07 2011-07-27 中国电力科学研究院 Optical network topology graph drawing method and topological subsystem
US9621428B1 (en) * 2014-04-09 2017-04-11 Cisco Technology, Inc. Multi-tiered cloud application topology modeling tool
CN106713050A (en) * 2017-02-08 2017-05-24 腾讯科技(深圳)有限公司 Network topology display method and device
CN106803796A (en) * 2017-03-05 2017-06-06 北京工业大学 Multi-tenant network topology reconstructing method based on cloud platform
CN108965008A (en) * 2018-07-19 2018-12-07 郑州云海信息技术有限公司 A kind of generation method and its device of customized network topology structure
CN109783568A (en) * 2018-12-29 2019-05-21 咪咕文化科技有限公司 A kind of generation method of network topological diagram, device and storage medium
CN110213107A (en) * 2019-06-11 2019-09-06 广东电网有限责任公司 A kind of autoplacement method, device and equipment for network topological diagram
CN111371595A (en) * 2020-02-25 2020-07-03 深信服科技股份有限公司 Network security deployment method, device, equipment and readable storage medium
CN111464338A (en) * 2020-03-16 2020-07-28 哈尔滨安天科技集团股份有限公司 Step-by-step layout method and system for complex network topology
CN111934922A (en) * 2020-07-29 2020-11-13 深信服科技股份有限公司 Method, device, equipment and storage medium for constructing network topology
CN112087379A (en) * 2019-06-12 2020-12-15 中兴通讯股份有限公司 Service chain arranging method and device, storage medium and electronic device
CN112272109A (en) * 2020-10-15 2021-01-26 上海云轴信息科技有限公司 Network topological graph generation method, equipment and system
CN112380803A (en) * 2020-10-21 2021-02-19 珠海许继芝电网自动化有限公司 Distribution network single line diagram artificial intelligence layout method, system and medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI117078B (en) * 2003-10-14 2006-05-31 Medicel Oy Visualization of large information networks
US20090116404A1 (en) * 2007-11-01 2009-05-07 Telefonaktiebolaget Lm Ericsson (Publ) Topology discovery in heterogeneous networks
US20130007591A1 (en) * 2011-06-30 2013-01-03 Infosys Limited System and method for creating an e-commerce website in real-time
US10785107B2 (en) * 2018-05-16 2020-09-22 Microsoft Technology Licensing, Llc Method and apparatus for optimizing legacy network infrastructure

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7036119B1 (en) * 2002-07-15 2006-04-25 Cisco Technology, Inc. Method and apparatus for creating a network topograph that includes all select objects that are in a network
CN102136946A (en) * 2011-03-07 2011-07-27 中国电力科学研究院 Optical network topology graph drawing method and topological subsystem
US9621428B1 (en) * 2014-04-09 2017-04-11 Cisco Technology, Inc. Multi-tiered cloud application topology modeling tool
CN106713050A (en) * 2017-02-08 2017-05-24 腾讯科技(深圳)有限公司 Network topology display method and device
CN106803796A (en) * 2017-03-05 2017-06-06 北京工业大学 Multi-tenant network topology reconstructing method based on cloud platform
CN108965008A (en) * 2018-07-19 2018-12-07 郑州云海信息技术有限公司 A kind of generation method and its device of customized network topology structure
CN109783568A (en) * 2018-12-29 2019-05-21 咪咕文化科技有限公司 A kind of generation method of network topological diagram, device and storage medium
CN110213107A (en) * 2019-06-11 2019-09-06 广东电网有限责任公司 A kind of autoplacement method, device and equipment for network topological diagram
CN112087379A (en) * 2019-06-12 2020-12-15 中兴通讯股份有限公司 Service chain arranging method and device, storage medium and electronic device
CN111371595A (en) * 2020-02-25 2020-07-03 深信服科技股份有限公司 Network security deployment method, device, equipment and readable storage medium
CN111464338A (en) * 2020-03-16 2020-07-28 哈尔滨安天科技集团股份有限公司 Step-by-step layout method and system for complex network topology
CN111934922A (en) * 2020-07-29 2020-11-13 深信服科技股份有限公司 Method, device, equipment and storage medium for constructing network topology
CN112272109A (en) * 2020-10-15 2021-01-26 上海云轴信息科技有限公司 Network topological graph generation method, equipment and system
CN112380803A (en) * 2020-10-21 2021-02-19 珠海许继芝电网自动化有限公司 Distribution network single line diagram artificial intelligence layout method, system and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
VNTGM:面向大规模网络安全实验的虚拟网络拓扑生成方法;黄震;朱俊虎;邱菡;周天阳;;信息工程大学学报(第02期);全文 *
黄震 ; 朱俊虎 ; 邱菡 ; 周天阳 ; .VNTGM:面向大规模网络安全实验的虚拟网络拓扑生成方法.信息工程大学学报.2019,(第02期),全文. *

Also Published As

Publication number Publication date
CN113992522A (en) 2022-01-28

Similar Documents

Publication Publication Date Title
EP3065017B1 (en) Safety relay configuration editor
EP3454268A1 (en) A graphical project management tool technical field
CN104750063B (en) For configuring the system and industrial safety system collocation method of industry security relay
CN104749992B (en) The method for configuring the system and configuration safety relay program of industry security relay
US9237073B2 (en) Inferring connectivity among network segments in the absence of configuration information
CN104750514B (en) Configure the system and safety relay program configuration method of industry security relay
CN112464497B (en) Fault drilling method, device, equipment and medium based on distributed system
CN106878204B (en) Virtual machine creating method and device
US11650888B2 (en) Workflow error handling for device driven management
CN109766139A (en) The configuration method and device of configuration file
CN113992522B (en) Network topology graph generation method and device, electronic equipment and storage medium
CN114650223A (en) Network configuration method and device of Kubernetes cluster and electronic equipment
KR101513983B1 (en) SOP scenario executing system and providing method thereof
WO2012155844A1 (en) Method and device for automatic removal of code
JPH08237247A (en) Network management system
CN115412452A (en) Configuration navigation method, device and medium based on physical layer Fabric scene
CN115134367A (en) Cloud platform and service processing method
CN112350879B (en) Data communication equipment test management method, device, system and storage medium
CN108920945A (en) Root authority obtains and delet method, device, terminal device and storage medium
CN114564855A (en) Operation method based on incidence relation of FMEA data nodes and electronic equipment
CN113268252A (en) Mirror image manufacturing method and system based on virtual chemical industry control equipment and storage medium
CN105939205A (en) Configuration rollback method and device
CN110968363A (en) Data configuration synchronization method and device, electronic equipment and readable storage medium
CN110555233A (en) circuit connection storage method, device and storage medium
CN109101242B (en) Data base automatic dispositions method and device

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