CN109936474A - A kind of method and apparatus generating network topological diagram - Google Patents

A kind of method and apparatus generating network topological diagram Download PDF

Info

Publication number
CN109936474A
CN109936474A CN201811627083.1A CN201811627083A CN109936474A CN 109936474 A CN109936474 A CN 109936474A CN 201811627083 A CN201811627083 A CN 201811627083A CN 109936474 A CN109936474 A CN 109936474A
Authority
CN
China
Prior art keywords
network
resource object
network unit
configuration parameter
target resource
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
CN201811627083.1A
Other languages
Chinese (zh)
Other versions
CN109936474B (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.)
Shanghai Axis Mdt Infotech Ltd
Original Assignee
Shanghai Axis Mdt Infotech 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 Shanghai Axis Mdt Infotech Ltd filed Critical Shanghai Axis Mdt Infotech Ltd
Priority to CN201811627083.1A priority Critical patent/CN109936474B/en
Publication of CN109936474A publication Critical patent/CN109936474A/en
Application granted granted Critical
Publication of CN109936474B publication Critical patent/CN109936474B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This application provides a kind of method and apparatus for generating network topological diagram, the program is when network changes, record changes the configuration parameter of associated network unit with this, when needing to obtain network topological diagram, read the configuration parameter of all-network unit in the network, and the link information between the identity information and network unit of the network unit is determined according to the configuration parameter, then according to the link information between the identity information and network unit of the network unit, automatic generating network topological diagram.Due to during obtaining network topological diagram, it is the configuration parameter based on self registering network unit, there is no need to the artificial participations of operation maintenance personnel, even for the high network of complexity, also the connection relationship between network unit can be accurately determined, convenient for intuitively showing the topological relation of network.

Description

A kind of method and apparatus generating network topological diagram
Technical field
This application involves information technology field more particularly to a kind of method and apparatus for generating network topological diagram.
Background technique
With the development of network technology, the complexity of network topology structure is also risen with it, and operation maintenance personnel is difficult clearly Understand the topological structure of whole network.It, can be by operation maintenance personnel by the way of artificial when complexity is low when network size is smaller The topological structure of network is managed, but in the biggish scene of network complexity, involved by the frequency of the change of network, each change And network unit quantity can all greatly improve, therefore such mode workload is huge, and is easy error.More particularly, to mixing In the network application scene of cloud, due to the network structure in the network structure and public cloud that can be related in private clound, complexity It is further promoted, and user also tends to accurately to know the network topology structure of public cloud part, therefore without one kind The preferable scheme for generating network topological diagram.
Apply for content
The purpose of the application is to provide a kind of method and apparatus for generating network topological diagram.
To achieve the above object, this application provides a kind of methods for generating network topological diagram, this method comprises:
When network changes, record changes the configuration parameter of associated network unit with this;
The configuration parameter of all-network unit in the network is read, and the network list is determined according to the configuration parameter Link information between the identity information and network unit of member;
According to the link information between the identity information and network unit of the network unit, network topological diagram is generated.
Further, according to the link information between the identity information and network unit of the network unit, net is generated Network topological diagram, comprising:
According to the identity information of the network unit, figure of the network unit in network topological diagram is determined;
According to the link information between network unit, line is formed between the figure, to generate network topological diagram.
Further, the network topological diagram includes the corresponding figure of all-network unit and the net there are connection relationship Line between figure corresponding to network unit, wherein the connection relationship is determined based on the link information between network unit.
Further, the network includes mixing cloud network, and the mixing cloud network includes privately owned cloud network and public cloud Network;
When network changes, record changes the configuration parameter of associated network unit with this, comprising:
When publicly-owned cloud network changes, associated network element synchronization will be changed with this to privately owned cloud network, Record changes the configuration parameter of associated network unit with this in the privately owned cloud network.
Further, associated network element synchronization will be changed with this to privately owned cloud network, in the privately owned cloud network It is middle to record the configuration parameter that associated network unit is changed with this, comprising:
Determine this hyposynchronous target resource object, wherein the target resource object is to change associated net with this Network unit;
It is corresponding resources-type according to the target resource object, determine its related resource class;
According to the related resource class, there are incidence relations with institute's target resource object for lookup in the publicly-owned cloud network Related resource object;
The target resource object and the related resource object are obtained from the publicly-owned cloud network, in the private clound net The configuration parameter of the target resource object and the related resource object is recorded in network.
Further, corresponding resources-type according to the target resource object, determine its related resource class, comprising:
It is corresponding resources-type according to the target resource object, inquire the resources-type relation table, wherein described resources-type Relation table contain in publicly-owned cloud network it is each it is resources-type between incidence relation;
The corresponding resources-type related resource class of the target resource object is obtained in the resources-type relation table.
Further, the target resource object and the related resource object are obtained from the publicly-owned cloud network, comprising:
The target resource object and the related resource object are obtained from the publicly-owned cloud network, and the target is provided The incidence relation of source object and the related resource object is marked.
Further, the incidence relation of the target resource object and the related resource object is marked, comprising:
To have resource object in the target resource object and the related resource Object Creation and privately owned cloud network The identification information matched, the identification information can be used for inquiring the target resource object and the association of the related resource object is closed System.
Present invention also provides a kind of equipment for generating network topological diagram, wherein the equipment includes:
Processor;And
One or more machine readable medias of machine readable instructions are stored with, when the processor execution machine can When reading instruction, so that the equipment executes the method for generating network topological diagram.
In addition, being stored thereon with computer program instructions, the meter present invention also provides a kind of computer-readable medium Calculation machine readable instruction can be executed by processor to realize the method for generating network topological diagram.
In a kind of scheme generating network topological diagram provided by the present application, when network changes, record and this change The configuration parameter for moving associated network unit reads all-network unit in the network when needing to obtain network topological diagram Configuration parameter, and the link between the identity information and network unit of the network unit is determined according to the configuration parameter Information, then according to the link information between the identity information and network unit of the network unit, automatic generating network is opened up Flutter figure.Due to being the configuration parameter based on self registering network unit during obtaining network topological diagram, there is no need to The artificial participation of operation maintenance personnel can also accurately determine the connection between network unit even for the high network of complexity Relationship, convenient for intuitively showing the topological relation of network.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of process flow diagram of method for generating network topological diagram provided by the embodiments of the present application;
Fig. 2 is the schematic diagram of the network topological diagram generated in the embodiment of the present application;
Fig. 3 is the process flow diagram for synchronizing and recording configuration parameter in the embodiment of the present application;
Fig. 4 be in the embodiment of the present application in a kind of public cloud part it is resources-type between incidence relation schematic diagram;
Fig. 5 is the incidence relation schematic diagram in the embodiment of the present application between the resource object of part;
Fig. 6 is a kind of structural schematic diagram of equipment for generating network topological diagram provided by the embodiments of the present application;
Fig. 7 is the structural schematic diagram of another equipment for generating network topological diagram provided by the embodiments of the present application;
The same or similar appended drawing reference represents the same or similar component in attached drawing.
Specific embodiment
The application is described in further detail with reference to the accompanying drawing.
In a typical configuration of this application, terminal, the equipment of service network include one or more processors (CPU), image processing unit (GPU), input/output interface, network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media, can be by any side Method or technology realize that information stores.Information can be the device or other numbers of computer readable instructions, data structure, program According to.The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory techniques, CD-ROM (CD- ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storages Equipment or any other non-transmission medium, can be used for storage can be accessed by a computing device information.
A kind of method generating network topological diagram provided by the embodiments of the present application, based on matching for self registering network unit Parameter is set to generate network topological diagram, there is no need to the artificial participations of operation maintenance personnel also can even for the high network of complexity The connection relationship between network unit is accurately determined, enough convenient for intuitively showing the topological relation of network.
In actual scene, the executing subject of this method can be user equipment, the network equipment or user equipment and network Equipment is integrated constituted equipment by network, or is also possible to run on the application program of above equipment.The user Equipment includes but is not limited to all kinds of terminal devices such as computer, mobile phone, tablet computer;The network equipment includes but is not limited to such as Network host, single network server, multiple network server collection or set of computers based on cloud computing etc. are realized.Here, Cloud is made of a large amount of hosts or network server for being based on cloud computing (Cloud Computing), wherein cloud computing is distributed One kind of calculating, a virtual machine consisting of a loosely coupled set of computers.
Fig. 1 shows a kind of method for generating network topological diagram provided by the embodiments of the present application, and this method includes following place Manage step:
Step S101, when network changes, record changes the configuration parameter of associated network unit with this.Its In, network, which changes, refers to that user such as increases to network unit in a network, modifies, deleting newly at the operation, so that network Topological structure changes.For example, user increases a server newly in a network, in addition to needing to carry out configuring it to the server Outside, it is also necessary to its relevant other network unit is configured, such as the router for forwarding data packet to the server, Changing associated network unit with this time at this time is the server and router.
Due to needing to generate network topological diagram, the configuration parameter of record is at least needed comprising routing relevant parameter, To determine the link information between network unit.For example, in the embodiment of the present application, configuration parameter may include the address ip, son Net mask, gateway address etc..Wherein, the equipment forwarded for needing to participate in data packet, such as all kinds of routers, network interface, Configuration parameter can also include the routing policy etc. when carrying out data packet forwarding, such as address of destination address, next-hop etc..
When recording these configuration parameters, can be obtained from the network unit in network according to preset condition and uniformly Storage, when needing to generate network topological diagram, reads newest configuration parameter from the data of storage;Or it can also deposit respectively Storage reads configuration parameter from each network unit when needed in each network unit.It is described default in actual scene Condition can be according to the preset time interval, preset time point or triggered by preset event etc., such as each N point Clock record is primary, or records once in the daily M time, can also be every according to the input of user instruction either network Secondary change goes out trigger recording later.
Here, it will be appreciated by those skilled in the art that the concrete mode of the content of above-mentioned configuration parameter, record configuration parameter And trigger condition is only for example, the content of configuration parameter involved in actual scene is more complicated, and due to heterogeneous networks Unit plays the role of difference in a network, and the content for including in the corresponding configuration parameter of heterogeneous networks unit can not yet Together, other existing or the other configurations parameter that is likely to occur from now on contents, record the concrete mode and touching of configuration parameter Clockwork spring part is such as applicable to the present invention, should also be included within the scope of protection of the present invention, and is incorporated herein by reference.
Step S102 reads the configuration parameter of all-network unit in the network, and is determined according to the configuration parameter Link information between the identity information and network unit of the network unit.
In actual scene, which can be based on the instruction triggers of user.For example, when user needs to check current net When network topological diagram, corresponding instruction can be inputted by its client device, the equipment for executing the program is getting the instruction Later, configuration parameter is read from the all-network equipment in network from the equipment of storage configuration parameter or directly, then root The link information between the identity information and network unit of the network unit is determined according to the configuration parameter read.
The identity information of the network unit refers to the identity attribute of network unit in the entire network, different identity information Network unit play different effects in a network, for example, the identity information of network unit can be virtual router VR, visitor Family end access device CPE, border router BR etc., realize different functions respectively in a network.Due to the net of different identity Its configuration parameter of network unit also can be different, to realize different functions, therefore can determine net by analyzing its configuration parameter The identity information of network equipment.
Link information between the network unit refers between network unit with the presence or absence of connection relationship, such as router The next address of A is the address ip of router B, it may be considered that there are connection relationships by router A and router B, if routing The address ip of device A is 10.255.255.1, and the address ip of router B is 10.255.255.220, then link letter between the two Breath is 10.255.255.1 → 10.255.255.220.
Step S103 generates net according to the link information between the identity information and network unit of the network unit Network topological diagram.
Specifically, it can determine the network unit in network topological diagram according to the identity information of the network unit Figure, such as different figures can be set in advance for the network units of all kinds of identity informations, determine each network unit Identity information after, inquire different identity information network unit corresponding to figure.By taking Fig. 2 as an example, virtual router VR, Client access device CPE, border router BR etc. have been all made of different figures to indicate, thus user can intuitively from The identity information of each network unit is viewed in network topological diagram, to more be apparent from current network and specifically include Which network unit.
Meanwhile line can be formed between the figure, to generate network according to the link information between network unit Topological diagram.By taking two routers A, B above-mentioned as an example, link information between the two be 10.255.255.1 → 10.255.255.220 thus line can be formed between the figure corresponding to the two.All chains in traversal whole network Road information is formed after corresponding line, it can complete network topological diagram is generated, as shown in Fig. 2, as the application is implemented The example of scheme network topology generated provided by example.Due to during obtaining network topological diagram, being based on automatic The configuration parameter of the network unit of record, there is no need to the artificial participation of operation maintenance personnel, even for the high network of complexity, The connection relationship between network unit can be accurately determined, convenient for intuitively showing the topological relation of network.
In actual scene, the network topological diagram of generation may include the corresponding figure of all-network unit, and exist Line between figure corresponding to the network unit of connection relationship, wherein the connection relationship is based between network unit Link information determines.If in the network topological diagram ultimately generated, there is the figure of network unit and the figure of other network units Between there is no line, then it represents that the connectivity of the network unit there is a problem, can not be with other any network lists in network Member interacts, and needs the configuration parameter of operation maintenance personnel adjustment related network elements, it is made to restore normal.The application side as a result, Case network topology figure generated can be convenient user and carry out O&M inspection, so that operation maintenance personnel checks each net in which can be convenient The connectivity of network unit.
When application scenarios are the scene of mixed cloud, i.e., the network includes mixing cloud network, wherein the mixed cloud net Network includes privately owned cloud network and publicly-owned cloud network, is the energy that user provides since publicly-owned cloud network is often referred to third party provider The cloud enough used, user can not usually obtain the topological structure of publicly-owned cloud network, if therefore the Web vector graphic of user public cloud When resource, complete network topological diagram can not be obtained.The problem is not solved, when the scheme of the application is applied to mixed cloud scene When, if publicly-owned cloud network changes, associated network element synchronization can will be changed with this to privately owned cloud network, in institute The configuration parameter that record in privately owned cloud network changes associated network unit with this is stated, thus the network list in publicly-owned cloud network Member can have corresponding mapping in privately owned cloud network, in order to which user generates complete network topological diagram.
Fig. 3 shows the process flow that configuration parameter is synchronized and recorded in the embodiment of the present application, including handles as follows Step:
Step S301 determines this hyposynchronous target resource object, wherein the target resource object is and this is changed Associated network unit.For example, being repaired in publicly-owned cloud network to an ECS (elastic calculation host) and Disk (cloud disk) Change, while needing corresponding another VRouter (virtual router) of adjustment, it can thus be appreciated that changing associated network unit with this As ECS, Disk and the VRouter determine that it is target resource object.
Step S302, it is corresponding resources-type according to the target resource object, determine its related resource class.
This synchronizes directly specified resource object to the target resource object, and resource object refers to a certain specific money Source, and resource object is corresponding resources-type, refers to classification belonging to a certain resource, such as Disk (cloud disk), ECS (elastic calculation Host) etc. each mean resources-type, and specific cloud disk (such as ID be Disk1, Disk2, Disk3 cloud disk) or specific bullet Property calculating main frame (such as ID be ECS1, ECS2 elastic calculation host) then refer to resource object.Cloud network publicly-owned for one, Its each resource classes relation correlation is fixed, and will not generally be changed in a short time, and Fig. 4 shows a kind of publicly-owned cloud network Incidence relation schematic diagram between middle part is resources-type, the incidence relation can use the form of resources-type relation table (class map) It is indicated.For example, for Disk above-mentioned and ECS, by class map it is found that its incidence relation is the child resource that Disk is ECS Class.
As a result, in a kind of embodiment of the application, corresponding resources-type according to the target resource object, its phase is determined , can be corresponding resources-type according to the target resource object when closing resources-type, the resources-type relation table is inquired, due to resource Class relation table contain in publicly-owned cloud network it is each it is resources-type between incidence relation, therefore can be in the resources-type relation table It is middle to obtain the corresponding resources-type related resource class of the target resource object.
For example, in the present embodiment, if target resource to be synchronized is ECS1, it is corresponding it is resources-type be ECS, if sharp It is inquired with the class map of Fig. 4, then can obtain the related resource class about ECS.In actual scene, related resource class and mesh Mark resource object it is corresponding it is resources-type between incidence relation can be set according to the actual demand of scene, such as related resource class It can be target resource object corresponding resources-type parent resource class and child resource class, can also be only child resource class.If this In embodiment, the incidence relation of the related resource class of setting refers to child resource class, then can inquire the related resource class for obtaining ECS Result be Eip and Disk.
Step S303 is searched in the publicly-owned cloud network and is deposited with institute target resource object according to the related resource class In the related resource object of incidence relation.
After related resource class has been determined, the specific related money of target resource object can be searched in publicly-owned cloud network Source object.Such as by taking target resource object ECS1 as an example, it has been determined that the result of the related resource class of ECS is Eip and Disk, then may be used To be traversed in publicly-owned cloud network based on ECS1, all there are the resource objects of incidence relation.
For example, being with two elastic calculation hosts of tri- cloud disks of aforementioned Disk1, Disk2, Disk3 and ECS1, ECS2 Example, if that ECS1 load is Disk1 and Disk2 and Eip1, ECS2 load is Disk3, and the tool of resources-type Eip is not present Body resource object, then there are two subclasses resource object Disk1, Disk2 and Eip1, resource objects under resource object ECS1 There is only a subclass resource object Disk3 under ECS2.Fig. 5 shows the incidence relation between these resource objects.
Step S304 obtains the target resource object and the related resource object from the publicly-owned cloud network, in institute State the configuration parameter that the target resource object and the related resource object are recorded in privately owned cloud network.
Due to when synchronizing the resource in publicly-owned cloud network, not only synchronizing direct relevant target resource object, but Meeting is synchronous simultaneously, and there are the related resource objects of incidence relation with target resource object, so that user can be from private clound net The concrete condition of each network unit in publicly-owned cloud network is obtained in network, to generate network topological diagram complete.
Based on the same inventive concept, the equipment for generating network topological diagram, the equipment are additionally provided in the embodiment of the present application Corresponding method is the method in previous embodiment, and its principle solved the problems, such as is similar to this method.
A kind of equipment generating network topological diagram provided by the embodiments of the present application, the equipment can be based on self registering net The configuration parameter of network unit generates network topological diagram, and there is no need to the artificial participations of operation maintenance personnel, even for complexity height Network, the connection relationship between network unit can be also accurately determined, convenient for intuitively showing the topological relation of network.
In actual scene, the specific implementation of the equipment can be user equipment, the network equipment or user equipment and network Equipment is integrated constituted equipment by network, or is also possible to run on the application program of above equipment.The user Equipment includes but is not limited to all kinds of terminal devices such as computer, mobile phone, tablet computer;The network equipment includes but is not limited to such as Network host, single network server, multiple network server collection or set of computers based on cloud computing etc. are realized.Here, Cloud is made of a large amount of hosts or network server for being based on cloud computing (Cloud Computing), wherein cloud computing is distributed One kind of calculating, a virtual machine consisting of a loosely coupled set of computers.
Fig. 6 shows a kind of equipment for generating network topological diagram provided by the embodiments of the present application, which includes that parameter obtains Take device 610, Parameter analysis of electrochemical device 620 and Topology g eneration device 630.Wherein, the parameter obtaining device 610 is used in network When changing, record changes the configuration parameter of associated network unit with this, and is read in the network when needed The configuration parameter of all-network unit;Parameter analysis of electrochemical device 620 is used to determine the network unit according to the configuration parameter Link information between identity information and network unit;The Topology g eneration device 630 is according to the identity of the network unit Link information between information and network unit generates network topological diagram.
Network, which changes, refers to that user such as increases to network unit in a network, modifies, deleting newly at the operation, so that net The topological structure of network changes.For example, user increases a server newly in a network, in addition to needing to match to the server Except setting, it is also necessary to be configured to its relevant other network unit, such as the routing to server forwarding data packet Device etc., changing associated network unit with this time at this time is the server and router.
Due to needing to generate network topological diagram, the configuration parameter of record is at least needed comprising routing relevant parameter, To determine the link information between network unit.For example, in the embodiment of the present application, configuration parameter may include the address ip, son Net mask, gateway address etc..Wherein, the equipment forwarded for needing to participate in data packet, such as all kinds of routers, network interface, Configuration parameter can also include the routing policy etc. when carrying out data packet forwarding, such as address of destination address, next-hop etc..
When recording these configuration parameters, can be obtained from the network unit in network according to preset condition and uniformly Storage, when needing to generate network topological diagram, reads newest configuration parameter from the data of storage;Or it can also deposit respectively Storage reads configuration parameter in each network unit from each network unit when needed, and parameter obtains in this case The not responsible record configuration parameter of device.In actual scene, the preset condition be can be according to the preset time interval, in advance If time point or triggered by preset event etc., such as each N minute record is once, or remembers in the daily M time Record is primary, can also be and goes out trigger recording after changing every time according to the input of user instruction either network.
Here, it will be appreciated by those skilled in the art that the concrete mode of the content of above-mentioned configuration parameter, record configuration parameter And trigger condition is only for example, the content of configuration parameter involved in actual scene is more complicated, and due to heterogeneous networks Unit plays the role of difference in a network, and the content for including in the corresponding configuration parameter of heterogeneous networks unit can not yet Together, other existing or the other configurations parameter that is likely to occur from now on contents, record the concrete mode and touching of configuration parameter Clockwork spring part is such as applicable to the present invention, should also be included within the scope of protection of the present invention, and is incorporated herein by reference.
In actual scene, parameter obtaining device reads configuration parameter can be based on the instruction triggers of user.For example, when using When family needs to check current network topological diagram, corresponding instruction can be inputted by its client device, executes the program Equipment from the equipment of storage configuration parameter or is directly read from the all-network equipment in network after getting the instruction Configuration parameter is taken, is then determined between the identity information and network unit of the network unit according to the configuration parameter read Link information.
The identity information of the network unit refers to the identity attribute of network unit in the entire network, different identity information Network unit play different effects in a network, for example, the identity information of network unit can be virtual router VR, visitor Family end access device CPE, border router BR etc., realize different functions respectively in a network.Due to the net of different identity Its configuration parameter of network unit also can be different, to realize different functions, therefore can determine net by analyzing its configuration parameter The identity information of network equipment.
Link information between the network unit refers between network unit with the presence or absence of connection relationship, such as router The next address of A is the address ip of router B, it may be considered that there are connection relationships by router A and router B, if routing The address ip of device A is 10.255.255.1, and the address ip of router B is 10.255.255.220, then link letter between the two Breath is 10.255.255.1 → 10.255.255.220.
Topology g eneration device 630 can be determined when generating network topological diagram according to the identity information of the network unit Figure of the network unit in network topological diagram, such as can be set in advance for the network unit of all kinds of identity informations different Figure, after the identity information for determining each network unit, inquire different identity information network unit corresponding to figure Shape.By taking Fig. 2 as an example, virtual router VR, client access device CPE, border router BR etc. have been all made of different figures It indicates, thus user can intuitively view the identity information of each network unit from network topological diagram, thus more Which it is apparent from current network specifically comprising network unit.
Meanwhile line can be formed between the figure, to generate network according to the link information between network unit Topological diagram.By taking two routers A, B above-mentioned as an example, link information between the two be 10.255.255.1 → 10.255.255.220 thus line can be formed between the figure corresponding to the two.All chains in traversal whole network Road information is formed after corresponding line, it can complete network topological diagram is generated, as shown in Fig. 2, as the application is implemented The example of scheme network topology generated provided by example.Due to during obtaining network topological diagram, being based on automatic The configuration parameter of the network unit of record, there is no need to the artificial participation of operation maintenance personnel, even for the high network of complexity, The connection relationship between network unit can be accurately determined, convenient for intuitively showing the topological relation of network.
In actual scene, the network topological diagram of generation may include the corresponding figure of all-network unit, and exist Line between figure corresponding to the network unit of connection relationship, wherein the connection relationship is based between network unit Link information determines.If in the network topological diagram ultimately generated, there is the figure of network unit and the figure of other network units Between there is no line, then it represents that the connectivity of the network unit there is a problem, can not be with other any network lists in network Member interacts, and needs the configuration parameter of operation maintenance personnel adjustment related network elements, it is made to restore normal.The application side as a result, Case network topology figure generated can be convenient user and carry out O&M inspection, so that operation maintenance personnel checks each net in which can be convenient The connectivity of network unit.
When application scenarios are the scene of mixed cloud, i.e., the network includes mixing cloud network, wherein the mixed cloud net Network includes privately owned cloud network and publicly-owned cloud network, is the energy that user provides since publicly-owned cloud network is often referred to third party provider The cloud enough used, user can not usually obtain the topological structure of publicly-owned cloud network, if therefore the Web vector graphic of user public cloud When resource, complete network topological diagram can not be obtained.The problem is not solved, when the scheme of the application is applied to mixed cloud scene When, if publicly-owned cloud network changes, associated network element synchronization can will be changed with this to privately owned cloud network, in institute The configuration parameter that record in privately owned cloud network changes associated network unit with this is stated, thus the network list in publicly-owned cloud network Member can have corresponding mapping in privately owned cloud network, in order to which user generates complete network topological diagram.
Fig. 3 shows the process flow that configuration parameter is synchronized and recorded in the embodiment of the present application, at this time the equipment Further include a synchronizing device, specific processing step is as follows:
Step S301, synchronizing device determine this hyposynchronous target resource object, wherein the target resource object be with This changes associated network unit.For example, in publicly-owned cloud network to an ECS (elastic calculation host) and Disk (cloud disk) into Gone modification, at the same need it is corresponding adjust another VRouter (virtual router), it can thus be appreciated that changing associated net with this Network unit is ECS, Disk and the VRouter, determines that it is target resource object.
Step S302, synchronizing device is corresponding resources-type according to the target resource object, determines its related resource class.
This synchronizes directly specified resource object to the target resource object, and resource object refers to a certain specific money Source, and resource object is corresponding resources-type, refers to classification belonging to a certain resource, such as Disk (cloud disk), ECS (elastic calculation Host) etc. each mean resources-type, and specific cloud disk (such as ID be Disk1, Disk2, Disk3 cloud disk) or specific bullet Property calculating main frame (such as ID be ECS1, ECS2 elastic calculation host) then refer to resource object.Cloud network publicly-owned for one, Its each resource classes relation correlation is fixed, and will not generally be changed in a short time, and Fig. 4 shows a kind of publicly-owned cloud network Incidence relation schematic diagram between middle part is resources-type, the incidence relation can use the form of resources-type relation table (class map) It is indicated.For example, for Disk above-mentioned and ECS, by class map it is found that its incidence relation is the child resource that Disk is ECS Class.
As a result, in a kind of embodiment of the application, corresponding resources-type according to the target resource object, its phase is determined , can be corresponding resources-type according to the target resource object when closing resources-type, the resources-type relation table is inquired, due to resource Class relation table contain in publicly-owned cloud network it is each it is resources-type between incidence relation, therefore can be in the resources-type relation table It is middle to obtain the corresponding resources-type related resource class of the target resource object.
For example, in the present embodiment, if target resource to be synchronized is ECS1, it is corresponding it is resources-type be ECS, if sharp It is inquired with the class map of Fig. 4, then can obtain the related resource class about ECS.In actual scene, related resource class and mesh Mark resource object it is corresponding it is resources-type between incidence relation can be set according to the actual demand of scene, such as related resource class It can be target resource object corresponding resources-type parent resource class and child resource class, can also be only child resource class.If this In embodiment, the incidence relation of the related resource class of setting refers to child resource class, then can inquire the related resource class for obtaining ECS Result be Eip and Disk.
Step S303, synchronizing device are searched in the publicly-owned cloud network and are provided with institute's target according to the related resource class There are the related resource objects of incidence relation for source object.
After related resource class has been determined, the specific related money of target resource object can be searched in publicly-owned cloud network Source object.Such as by taking target resource object ECS1 as an example, it has been determined that the result of the related resource class of ECS is Eip and Disk, then may be used To be traversed in publicly-owned cloud network based on ECS1, all there are the resource objects of incidence relation.
For example, being with two elastic calculation hosts of tri- cloud disks of aforementioned Disk1, Disk2, Disk3 and ECS1, ECS2 Example, if that ECS1 load is Disk1 and Disk2 and Eip1, ECS2 load is Disk3, and the tool of resources-type Eip is not present Body resource object, then there are two subclasses resource object Disk1, Disk2 and Eip1, resource objects under resource object ECS1 There is only a subclass resource object Disk3 under ECS2.Fig. 5 shows the incidence relation between these resource objects.
Step S304, synchronizing device obtain the target resource object and the related resource pair from the publicly-owned cloud network As parameter obtaining device records the configuration of the target resource object and the related resource object in the privately owned cloud network Parameter.
Due to when synchronizing the resource in publicly-owned cloud network, not only synchronizing direct relevant target resource object, but Meeting is synchronous simultaneously, and there are the related resource objects of incidence relation with target resource object, so that user can be from private clound net The concrete condition of each network unit in publicly-owned cloud network is obtained in network, to generate network topological diagram complete.
In addition, a part of the application can be applied to computer program product, such as computer program instructions, when its quilt When computer executes, by the operation of the computer, it can call or provide according to the present processes and/or technical solution. And the program instruction of the present processes is called, it is possibly stored in fixed or moveable recording medium, and/or pass through Broadcast or the data flow in other signal-bearing mediums and transmitted, and/or be stored according to program instruction run calculating In the working storage of machine equipment.Here, include a calculating equipment as shown in Figure 7 according to some embodiments of the present application, The calculating equipment includes being stored with one or more memories 710 of computer-readable instruction and for executing computer-readable finger The processor 720 of order, wherein when the computer-readable instruction is executed by the processor, so that before equipment execution is based on State the method and/or technology scheme of multiple embodiments of the application.
In addition, some embodiments of the present application additionally provide a kind of computer-readable medium, it is stored thereon with computer journey Sequence instruction, the computer-readable instruction can be executed by processor with the method for realizing multiple embodiments of aforementioned the application and/ Or technical solution.
It should be noted that the application can be carried out in the assembly of software and/or software and hardware, for example, can adopt With specific integrated circuit (ASIC), general purpose computer or any other realized similar to hardware device.In some embodiments In, the software program of the application can be executed by processor to realize above step or function.Similarly, the software of the application Program (including relevant data structure) can be stored in computer readable recording medium, for example, RAM memory, magnetic or CD-ROM driver or floppy disc and similar devices.In addition, hardware can be used to realize in some steps or function of the application, for example, As the circuit cooperated with processor thereby executing each step or function.
It is obvious to a person skilled in the art that the application is not limited to the details of above-mentioned exemplary embodiment, Er Qie In the case where without departing substantially from spirit herein or essential characteristic, the application can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and scope of the present application is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included in the application.Any reference signs in the claims should not be construed as limiting the involved claims.This Outside, it is clear that one word of " comprising " does not exclude other units or steps, and odd number is not excluded for plural number.That states in device claim is multiple Unit or device can also be implemented through software or hardware by a unit or device.The first, the second equal words are used to table Show title, and does not indicate any particular order.

Claims (10)

1. a method of generate network topological diagram, wherein this method comprises:
When network changes, record changes the configuration parameter of associated network unit with this;
The configuration parameter of all-network unit in the network is read, and the network unit is determined according to the configuration parameter Link information between identity information and network unit;
According to the link information between the identity information and network unit of the network unit, network topological diagram is generated.
2. according to the method described in claim 1, wherein, according between the identity information and network unit of the network unit Link information, generate network topological diagram, comprising:
According to the identity information of the network unit, figure of the network unit in network topological diagram is determined;
According to the link information between network unit, line is formed between the figure, to generate network topological diagram.
3. according to the method described in claim 2, wherein, the network topological diagram include the corresponding figure of all-network unit with And the line between figure corresponding to the network unit there are connection relationship, wherein the connection relationship is based on network unit Between link information determine.
4. the mixing cloud network includes according to the method described in claim 1, wherein, the network includes mixing cloud network Privately owned cloud network and publicly-owned cloud network;
When network changes, record changes the configuration parameter of associated network unit with this, comprising:
When publicly-owned cloud network changes, associated network element synchronization will be changed with this to privately owned cloud network, described Record changes the configuration parameter of associated network unit with this in privately owned cloud network.
5. according to the method described in claim 4, wherein, associated network element synchronization will be changed with this to private clound net Network, record changes the configuration parameter of associated network unit with this in the privately owned cloud network, comprising:
Determine this hyposynchronous target resource object, wherein the target resource object is to change associated network list with this Member;
It is corresponding resources-type according to the target resource object, determine its related resource class;
According to the related resource class, search that there are the phases of incidence relation with institute target resource object in the publicly-owned cloud network Close resource object;
The target resource object and the related resource object are obtained from the publicly-owned cloud network, in the privately owned cloud network Record the configuration parameter of the target resource object and the related resource object.
6. it is corresponding resources-type according to the target resource object according to the method described in claim 5, wherein, determine its phase It closes resources-type, comprising:
It is corresponding resources-type according to the target resource object, inquire the resources-type relation table, wherein the resources-type relationship Table contain in publicly-owned cloud network it is each it is resources-type between incidence relation;
The corresponding resources-type related resource class of the target resource object is obtained in the resources-type relation table.
7. according to the method described in claim 5, wherein, the target resource object and described is obtained from the publicly-owned cloud network Related resource object, comprising:
The target resource object and the related resource object are obtained from the publicly-owned cloud network, and to the target resource pair As being marked with the incidence relation of the related resource object.
8. according to the method described in claim 7, wherein, the association to the target resource object and the related resource object Relationship is marked, comprising:
It is matched for the target resource object and the related resource Object Creation and resource object existing in privately owned cloud network Identification information, the identification information can be used for inquiring the incidence relation of the target resource object and the related resource object.
9. a kind of equipment for generating network topological diagram, wherein the equipment includes:
Processor;And
One or more machine readable medias of machine readable instructions are stored with, when the processor executes the machine readable finger When enabling, so that the equipment executes method as claimed in any one of claims 1-9 wherein.
10. a kind of computer-readable medium, is stored thereon with computer program instructions, the computer-readable instruction can be processed Device is executed to realize method as claimed in any one of claims 1-9 wherein.
CN201811627083.1A 2018-12-28 2018-12-28 Method and equipment for generating network topological graph Active CN109936474B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811627083.1A CN109936474B (en) 2018-12-28 2018-12-28 Method and equipment for generating network topological graph

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811627083.1A CN109936474B (en) 2018-12-28 2018-12-28 Method and equipment for generating network topological graph

Publications (2)

Publication Number Publication Date
CN109936474A true CN109936474A (en) 2019-06-25
CN109936474B CN109936474B (en) 2022-03-18

Family

ID=66984869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811627083.1A Active CN109936474B (en) 2018-12-28 2018-12-28 Method and equipment for generating network topological graph

Country Status (1)

Country Link
CN (1) CN109936474B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110912751A (en) * 2019-12-03 2020-03-24 山东中创软件商用中间件股份有限公司 Network equipment topological graph generation method and related device
CN112152850A (en) * 2020-09-22 2020-12-29 康佳集团股份有限公司 Internet of things equipment management method based on IGRS (intelligent grouping and resource sharing) protocol and business terminal
CN112511596A (en) * 2020-11-05 2021-03-16 苏州浪潮智能科技有限公司 Method and equipment for creating cloud resources in cloud platform
CN112714008A (en) * 2019-10-25 2021-04-27 中兴通讯股份有限公司 Network topology analysis method, device and storage medium
CN113673966A (en) * 2021-09-03 2021-11-19 海尔数字科技(青岛)有限公司 Information security construction scheme generation method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150156635A1 (en) * 2013-12-02 2015-06-04 Apple Inc. Systems and Methods for Carrier Aggregation Deployment and Organization in Unlicensed Bands
CN108462587A (en) * 2017-02-20 2018-08-28 中兴通讯股份有限公司 A kind of network topology treating method and apparatus
CN108833129A (en) * 2018-04-17 2018-11-16 国网冀北电力有限公司信息通信分公司 A kind of method for discovering network topology and device
CN108880844A (en) * 2017-05-12 2018-11-23 中兴通讯股份有限公司 A kind of method and apparatus of network topology construction

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150156635A1 (en) * 2013-12-02 2015-06-04 Apple Inc. Systems and Methods for Carrier Aggregation Deployment and Organization in Unlicensed Bands
CN108462587A (en) * 2017-02-20 2018-08-28 中兴通讯股份有限公司 A kind of network topology treating method and apparatus
CN108880844A (en) * 2017-05-12 2018-11-23 中兴通讯股份有限公司 A kind of method and apparatus of network topology construction
CN108833129A (en) * 2018-04-17 2018-11-16 国网冀北电力有限公司信息通信分公司 A kind of method for discovering network topology and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112714008A (en) * 2019-10-25 2021-04-27 中兴通讯股份有限公司 Network topology analysis method, device and storage medium
CN112714008B (en) * 2019-10-25 2024-02-23 中兴通讯股份有限公司 Network topology analysis method, device and storage medium
CN110912751A (en) * 2019-12-03 2020-03-24 山东中创软件商用中间件股份有限公司 Network equipment topological graph generation method and related device
CN112152850A (en) * 2020-09-22 2020-12-29 康佳集团股份有限公司 Internet of things equipment management method based on IGRS (intelligent grouping and resource sharing) protocol and business terminal
CN112152850B (en) * 2020-09-22 2023-05-23 康佳集团股份有限公司 Internet of things equipment management method based on flash connection protocol and service terminal
CN112511596A (en) * 2020-11-05 2021-03-16 苏州浪潮智能科技有限公司 Method and equipment for creating cloud resources in cloud platform
CN113673966A (en) * 2021-09-03 2021-11-19 海尔数字科技(青岛)有限公司 Information security construction scheme generation method and device, electronic equipment and storage medium
CN113673966B (en) * 2021-09-03 2024-03-08 卡奥斯数字科技(青岛)有限公司 Information security construction scheme generation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109936474B (en) 2022-03-18

Similar Documents

Publication Publication Date Title
CN109936474A (en) A kind of method and apparatus generating network topological diagram
CN105684357B (en) The management of address in virtual machine
US9736064B2 (en) Offline queries in software defined networks
US11928605B2 (en) Techniques for cyber-attack event log fabrication
CN109918378A (en) A kind of remotely-sensed data storage method and storage system based on block chain
US8990058B2 (en) Generating and evaluating expert networks
CN106953741B (en) A kind of traffic playback method and system of network-oriented simulated environment
CN109672752A (en) The synchronous method of data and node
CN109660389A (en) A kind of IT assets management method and device
CN110008197A (en) A kind of data processing method, system and electronic equipment and storage medium
CN106354587A (en) Mirror image server and method for exporting mirror image files of virtual machine
CN108459910A (en) A kind of method and apparatus for deleting resource
CN109144837B (en) User behavior pattern recognition method supporting accurate service push
CN107948242A (en) More service number template message sending methods and system
CN109804365A (en) Elastic geography database copy method
CN112181049B (en) Cluster time synchronization method, device, system, equipment and readable storage medium
US11516138B2 (en) Determining network flow direction
US11093477B1 (en) Multiple source database system consolidation
US20170185929A1 (en) Resource allocation forecasting
CN113553520B (en) Domain name automation operation and maintenance method, system and equipment for multi-technology stack fusion
US10168999B2 (en) Software object definition and integration
CN112583740B (en) Network communication method and device
US20200293463A1 (en) Accurate can-based distributed control system simulations
CN105009516B (en) Clear message modification for diagnosing or testing
WO2018228259A1 (en) Relationship diagram processing method and apparatus

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