CN106713042A - Method and device for determination of network topology - Google Patents
Method and device for determination of network topology Download PDFInfo
- Publication number
- CN106713042A CN106713042A CN201611249811.0A CN201611249811A CN106713042A CN 106713042 A CN106713042 A CN 106713042A CN 201611249811 A CN201611249811 A CN 201611249811A CN 106713042 A CN106713042 A CN 106713042A
- Authority
- CN
- China
- Prior art keywords
- server
- interchanger
- network topology
- physical server
- virtual
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery 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)
- Computer And Data Communications (AREA)
Abstract
The present invention provides a method and device for determination of a network topology. The method comprises: obtaining configuration parameters of a switch; generating a call instruction according to the configuration parameters; sending the call instruction to the switch and receiving first network topology fed back by the switch, wherein the first network topology is the call relation between the switch and a physical server connected with the switch; sending a detection instruction to the physical server, wherein the detection instruction is configured to instruct the physical server to operate a virtual machine detection program, wherein the virtual machine detection program provides at least two interfaces corresponding to the virtualization technology; obtaining a detection result returned back by the virtual machine detection program, and determining a second network topology according to the detection result, wherein the second network topology is a call relation between a virtual server held in the physical server and the switch; and determining the network topology of the current network according to the first network topology and the second network topology. The more completed network topology is obtained to satisfy the operation demand of large-scale switch and physical server clustering management.
Description
Technical field
The present invention relates to technical field of the computer network, more particularly to a kind of determination network topological method and device.
Background technology
Server virtualization is to realize multiple virtual machines by virtualization software on physical server
(VirtualMachine;Referred to as:VM virtualization running environment).Server physical resource is abstracted into logical resource, one is allowed
Platform server becomes several even up to a hundred mutually isolated virtual servers, is no longer limited by boundary physically, but allow
The hardware such as CPU, internal memory, disk, I/O become " resource pool " that can dynamically manage, so as to improve the utilization rate of resource, simplify system
Reason under the overall leadership, realizes Server Consolidation, allows IT to the change more adaptive faculty of business.
With the rapid growth of business event, physical server quantity is more and more.Particularly under current cloud environment, enterprise
Be placed on increasing business on virtual server by industry, and these physical servers and virtual server are according to different purposes
Different networks are added, makes network size continuous enlargement, and when physical server failure, virtual server can Autonomic Migration Framework
Onto available physical server, so as to cause network topology change, this all increases the difficulty of network operation.
But in the prior art, network topology obtains automation low degree, it is impossible to provides interchanger and connects Virtual Service
Device network topology can only obtain Xen virtual server network topological diagrams, and flexibility is poor, it is impossible to meet and efficiently transport under cloud environment
The technical requirements of dimension.
The content of the invention
The present invention provides a kind of determination network topological method and device, for solving that friendship can not be provided in the prior art
Connected virtual server network topology of changing planes can only obtain Xen virtual server network topological diagrams, and flexibility is poor, it is impossible to full
The problem of efficient O&M under sufficient cloud environment.
The embodiment of the present invention provides a kind of determination network topological method, and methods described includes:
Obtain the configuration parameter of interchanger;
Call instruction is generated according to the configuration parameter;
The call instruction is sent to interchanger and receive the first network topology that the interchanger feeds back, first net
Network topology is the call relation between the interchanger and the physical server being connected with the interchanger;
Probe instructions are sent to the physical server, the probe instructions are used to indicate the physical server operation empty
Plan machine locator;Wherein, the virtual machine locator provides at least two Intel Virtualization Technologies corresponding interface;
The result of detection that the virtual machine locator is returned is obtained, determines that the second network is opened up according to the result of detection
Flutter, second network topology is the call relation of the virtual server with the interchanger of carrying in the physical server;
According to the first network is topological and second network topology determines the network topology of current network.
In the embodiment of the present invention, call instruction can be sent and according to feedback after interchanger reception call instruction to interchanger
Content, determine first network topology, and to physical server send probe instructions, in physical server run virtual machine visit
Ranging sequence, obtains the virtual server and the call relation of the interchanger carried in physical server, determines that the second network is opened up
Flutter, and the network topology of current network is determined according to first network topology and the second network topology.In the embodiment of the present invention,
Second network topology can obtain the topological relation of the corresponding virtual server of at least two Intel Virtualization Technologies, with existing skill
Art is compared, and can obtain more complete network topology in network, is met the large switch under cloud environment and is taken with physics
The O&M demand of business device cluster management.
Further, it is described that second network topology is determined according to the result of detection, including:
Obtain the attribute information of the virtual server in the result of detection;
It is determined that the interchanger matched with the attribute information of the virtual server;
Interchanger according to matching determines the second network topology with the virtual server.
In the embodiment of the present invention, the attribute information of the virtual server in the result of detection for getting is searched and category
Property information matches interchanger, then according to matching interchanger determine that the second network is opened up with the call relation of the virtual server
Flutter.
Further, before the transmission probe instructions to the physical server, also include:
Determine whether the physical server is the physical server for carrying virtual server;
If it is determined that the physical server is the physical server for carrying virtual server, then virtual machine is called to detect journey
Sequence, the physical server is pushed to by the virtual machine locator.
In the embodiment of the present invention, it is the physical server for carrying virtual server that physical server is only determined, and is just sent out
Probe instructions are sent, Internet resources are saved.
Further,
The configuration parameter for obtaining interchanger, including:
The configuration parameter of interchanger is obtained from database server;Or,
The interchanger for determining to be matched with the attribute information of the virtual server, including:
The matching relationship of attribute information and interchanger according to the virtual server obtained from the database server,
It is determined that the interchanger matched with the attribute information of the virtual server;Or,
Determine whether the physical server is the physical server for carrying virtual server, including:
Whether the physical server according to being obtained from the database server carries the information of virtual server, it is determined that
Whether the physical server is the physical server for carrying virtual server.
The configuration parameter of interchanger, the physical server are saved in the embodiment of the present invention, in database server is
No information, the attribute information of interchanger to carry the physical server of virtual server, realizes each server point in network
Cloth is laid out, and reduces the load pressure of each server in two networks.
Further, it is described according to the first network is topological and second network topology determines the net of current network
After network topology, also include:
The current network topology is sent to front end displaying server, so that front end displaying server displaying institute
State current network topology.
In the embodiment of the present invention, newest topological relation is pushed to front end displaying server and shows that newest network is opened up
Flutter figure, it is ensured that the real-time acquisition of network topology and accuracy.
The present invention provides a kind of network isolating device, including:
Acquiring unit, the configuration parameter for obtaining interchanger;
Generation unit, for generating call instruction according to the configuration parameter;
First network topology determining unit, feeds back for sending the call instruction to interchanger and receiving the interchanger
First network topology, first network topology for the interchanger and the physical server being connected with the interchanger it
Between call relation;
Probe instructions transmitting element, for sending probe instructions to the physical server, the probe instructions are used to refer to
Show the physical server operation virtual machine locator;Wherein, the virtual machine locator provides at least two and virtualizes
The corresponding interface of technology;
Second network topology determining unit, for obtaining the result of detection that the virtual machine locator is returned, according to institute
State result of detection and determine the second network topology, second network topology is the virtual server of carrying in the physical server
With the call relation of the interchanger;
Network topology determining unit, for according to the first network is topological and second network topology determine it is current
The network topology of network.
In the embodiment of the present invention, call instruction can be sent and according to feedback after interchanger reception call instruction to interchanger
Content, determine first network topology, and to physical server send probe instructions, in physical server run virtual machine visit
Ranging sequence, obtains the virtual server and the call relation of the interchanger carried in physical server, determines that the second network is opened up
Flutter, and the network topology of current network is determined according to first network topology and the second network topology.In the embodiment of the present invention,
Second network topology can obtain the topological relation of the corresponding virtual server of at least two Intel Virtualization Technologies, with existing skill
Art is compared, and can obtain more complete network topology in network, is met the large switch under cloud environment and is taken with physics
The O&M demand of business device cluster management.
Further, the second network topology determining unit, specifically for:
Obtain the attribute information of the virtual server in the result of detection;
It is determined that the interchanger matched with the attribute information of the virtual server;
Interchanger according to matching determines the second network topology with the virtual server.
Further, the probe instructions transmitting element, is additionally operable to:
Determine whether the physical server is the physical server for carrying virtual server;
If it is determined that the physical server is the physical server for carrying virtual server, then virtual machine is called to detect journey
Sequence, the physical server is pushed to by the virtual machine locator.
Further, the acquiring unit, specifically for:
The configuration parameter of interchanger is obtained from database server;Or,
The second network topology determining unit, specifically for:
The matching relationship of attribute information and interchanger according to the virtual server obtained from the database server,
It is determined that the interchanger matched with the attribute information of the virtual server;Or,
The probe instructions transmitting element, specifically for:
Whether the physical server according to being obtained from the database server carries the information of virtual server, it is determined that
Whether the physical server is the physical server for carrying virtual server.
Further, described device also includes:
Display unit, for the current network topology to be sent into front end displaying server, so that the front end exhibition
Show that server shows the current network topology.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will make needed for embodiment description
Accompanying drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this
For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these accompanying drawings
His accompanying drawing.
Fig. 1 is a kind of structural representation for determining network topological system provided in an embodiment of the present invention;
Fig. 2 is a kind of interchanger provided in an embodiment of the present invention and physical server, physical server and virtual server
Connection diagram;
Fig. 3 is a kind of interchanger provided in an embodiment of the present invention and physical server, physical server and virtual server
Connection diagram;
Fig. 4 is the connection diagram of a kind of physical server provided in an embodiment of the present invention and interchanger;
Fig. 5 is the second network topology schematic diagram provided in an embodiment of the present invention;
Fig. 6 is a kind of schematic flow sheet for determining network topological method provided in an embodiment of the present invention;
Fig. 7 is a kind of structural representation for determining network topology device provided in an embodiment of the present invention;
Fig. 8 is a kind of schematic flow sheet for determining network topological method provided in an embodiment of the present invention.
Specific embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with accompanying drawing the present invention is made into
One step ground is described in detail, it is clear that described embodiment is only some embodiments of the invention, rather than whole implementation
Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made
All other embodiment, belongs to the scope of protection of the invention.
The present invention provides a kind of determination network topological system, as shown in figure 1, including:
Automatic data collection server 101, interchanger 102, physical server 103, the Virtual Service that physical server 103 is carried
Device 104, database server 105, front end displaying server 106.
In the embodiment of the present invention, automatic data collection server 101 it needs to be determined that during current network topology, automatic data collection service
Device 101 obtains the configuration parameter of interchanger 102.
Optionally, automatic data collection server 101 can periodically determine current network topology, you can be taken with automatic data collection
Countdown clock is set in business device 101, when reaching in the cycle, the configuration parameter of interchanger 102 is obtained;Automatic data collection server
101 new informations that can also be sent by database server 105 determine the network topology of current network, data block service
Device 105 is it is determined that the quantity of interchanger 102 changes or physical server 103 changes, Huo Zhexu in current network
When plan server 104 is migrated, can be sent to automatic data collection server 101 and update request.
In embodiments of the present invention, due to having laid multiple switch 102 in a network, the producer of each interchanger 102
Difference, the parameter of each interchanger 102 is also different, so before call instruction is sent to interchanger 102, in addition it is also necessary to obtain in net
The configuration parameter of each interchanger 102 in network, for example, having 4 interchangers 102, respectively interchanger 1 in current network, hands over
Change planes 2, interchanger 3 and interchanger 4, interchanger 1 is same manufacturer production, interchanger 1 and interchanger 2 with interchanger 2
Configuration parameter is identical, is all configuration parameter 1, and interchanger 3 is all different from the producer of interchanger 1, interchanger 2, interchanger 4, exchanges
The configuration parameter of machine 3 is configuration parameter 2, and interchanger 4 is all different from the producer of interchanger 1, interchanger 2, interchanger 3, interchanger 4
Configuration parameter be configuration parameter 3.
In the embodiment of the present invention, configuration parameter generation of the automatic data collection server 101 according to each interchanger 102 for obtaining
Call instruction, call instruction refers to interchanger 102 and can obtain what is be connected or call with interchanger 102 according to call instruction
The order of the first network topological relation of physical server 103.
Optionally, in embodiments of the present invention, call instruction is SNMP (Simple Network Management
Protocol, Simple Network Management Protocol) to order, interchanger 102 can get what interchanger 102 was called according to SNMP orders
The network topology of physical server 103, is set to first network topology.
Optionally, in embodiments of the present invention, when call instruction is instructed for SNMP, the configuration parameter of interchanger 102 is
The SNMP parameters of each interchanger.
Optionally, in embodiments of the present invention, the SNMP ginsengs of each interchanger 102 that automatic data collection server 101 is obtained
Number can be stored in automatic data collection server 101, or obtain from database server 105.
After automatic data collection server 101 gets the SNMP parameters of each interchanger 102, SNMP is generated according to SNMP parameters
Call instruction, is sent to corresponding interchanger 102.
For example, in embodiments of the present invention, after 3 interchangers 102 perform SNMP orders, each interchanger 102 can be fed back
Port and interchanger 1 annexation.As shown in figure 1, there are 3 interchangers 102, respectively interchanger 1 in current network,
Interchanger 2 and interchanger 3;Interchanger 1 is connected to physical server 1 and physical server 2, and interchanger 2 is connected to physics
Server 3 and physical server 4;Interchanger 3 is connected to physical server 5.
Optionally, in embodiments of the present invention, what each interchanger 102 was obtained is that the port of interchanger 102 and physics take
The corresponding table of the MAC Address of business device 103, for example as shown in table 1, above topology relation is taken with the port of interchanger 103 with physics
The corresponding table of MAC Address of device 103 of being engaged in is represented:
Table 1:The port of interchanger and the corresponding table of the MAC Address of physical server
In embodiments of the present invention, the MAC Address and thing of physical server 103 are saved in automatic data collection server 101
The corresponding relation of the identification information of server 103 is managed, the identification information of physical server 103 is determined by corresponding relation.
Optionally, in order to reduce the load in automatic data collection server 101, automatic data collection server 101 can be from data
The MAC Address of physical machine 103 and the corresponding relation of the identification information of physical server 103 are obtained in storehouse server 105, then really
Determine the first network topology of interchanger 102 and the physical server 103 being connected in the port of interchanger 102.
In the embodiment of the present invention, after first network topology is got, in addition it is also necessary to determine virtual server 104 and interchanger
Call relation between 101.
In embodiments of the present invention, automatic data collection server 101 sends probe instructions to physical server 103, and detection refers to
Order is to operate in the virtual machine locator in physical server 103.Virtual machine locator is in order to detect physical server
Call relation between the virtual server 104 and interchanger 101 that are carried in 103.
Optionally, in embodiments of the present invention, in order to obtain two kinds of Intel Virtualization Technologies commonly used in the prior art
The topology of virtual server 104, virtual machine locator can provide at the corresponding interface of two kinds of Intel Virtualization Technologies.
Optionally, in embodiments of the present invention, two kinds of conventional Intel Virtualization Technologies are respectively Xen and KVM in the prior art,
Virtual machine locator is libvert, and libvirt is main flow virtualization instrument API under a set of free, support Linux for increasing income,
Libvirt can be supported to provide a set of convenient and reliable DLL including the various virtualization instruments including Xen and KVM
With C, the programming language such as C++, Python binding, can based on libvirt storehouses quickly develop manage KVM and Xen Virtual Services
Device program, that is to say, that obtain two kinds of topological relations of Intel Virtualization Technology Xen and KVM using libvert.
Optionally, in embodiments of the present invention, in order to reduce the resource occupation problem in current network, automatic data collection service
Device 101 to physical server 103 before probe instructions are sent, it is first determined whether the physical server 103 is to carry virtual clothes
The physical server 103 of business device 104.
Optionally, in embodiments of the present invention, the thing being connected with interchanger 102 is got in automatic data collection server 101
After reason server 103, save whether each physical server 103 is to carry virtual server 104 in automatic data collection server 101
Physical server 103 information, the thing is determined according to the identification information of physical server 103 in the first network topology for obtaining
Whether reason server 103 is the physical server 103 for carrying virtual server 104.
Optionally, in embodiments of the present invention, automatic data collection server 101 gets the physics being connected with interchanger 102
After server 103, obtain whether each physical server 103 is the thing for carrying virtual server 104 from database server 105
The information of server 103 is managed, the identification information according to physical server 103 in the first network topology for obtaining determines that the physics takes
Whether business device 103 is the physical server 103 for carrying virtual server 104.
When automatic data collection server 101 determines the physical server 103 being connected with interchanger 101 to carry virtual server
104 physical server 103, then call virtual machine locator, and the virtual machine locator is pushed into the physical services
Device 103.
For example, as shown in Fig. 2 the physical server 103 of the connection of interchanger 101 has two, respectively physical server A with
And physical server B, wherein, automatic data collection server 101 determines that physical server A is the physics for carrying virtual server 104
Server 103, then automatic data collection server 101 call virtual machine locator, by virtual machine call program be sent to physics clothes
Business device A.
Automatic data collection server 101 sends probe instructions to physical server A, and physical server A refers to receiving detection
After order, the virtual machine locator in physical virtual server A is operated in, be optionally libvert.
When physical server A has run virtual machine locator, result of detection can be obtained.Optionally, of the invention real
Apply in example, result of detection includes the attribute information of each virtual server 104 carried in physical server A.
Optionally, the attribute information of each virtual server 104 can be each virtual server 104 IP address or
Network interface card information of domain name, or each virtual server 104 etc..
When result of that probe is returned to automatic data collection server 101 by interchanger 102, automatic data collection server 101
The second network topology of virtual server 104 is determined according to the attribute information of each virtual server 104 in result of detection.
Optionally, automatic data collection server 101 saves the interchanger 102 and physical server 103 in current network
Attribute information, however, it is determined that the attribute information of virtual server 104 and interchanger 102 or the attribute of physical server 103
Information matches, then it is assumed that both have topological relation.
Optionally, interchanger 102 before automatic data collection server 101 is obtained from database server 105 in network with
And the attribute information of physical server 103, and attribute information and the attribute information of virtual server 104 according to acquisition, really
The fixed interchanger 102 or physical server 103 matched with the attribute information of virtual server 104.
For example, in embodiments of the present invention, after running virtual machine locator in physical server A, the detection knot for obtaining
Fruit includes the IP address of virtual server 1, virtual server 2 and virtual server 3, and IP address 1, IP address is corresponded to respectively
2 and IP address 3.
Interchanger 102 and thing that automatic data collection server 101 determines to be matched with three IP address according to three IP address
Reason server 101, that determine the matching of virtual server 1 is physical server A, and virtual server 2 and virtual server 3 are matched
Be interchanger 102, then the second network topology is as shown in Figure 3.
According to first network topology and the second network topology, it may be determined that the network topology of current network, optionally,
In the embodiment of the present invention, if also there are other interchangers 102, for example, the interchanger 1 in treatment Fig. 3, also has in current network and hands over
Change planes 2, and the interchanger 2 first network topology for shown in Fig. 4, and physical server 4 is not to carry virtual server 104
Physical server 103, then the network topology of current network is as shown in Figure 5.
In the embodiment of the present invention, optionally, when automatic data collection server 101 determines the network topology of current network,
Such as network topology in Fig. 5, front end displaying server 106 is sent to by the network topology, and front end displaying server 106 ought
The newest topology of preceding network represents, it is ensured that the real-time acquisition of network topology and accuracy.
Optionally, in embodiments of the present invention, automatic data collection server 101 can also send out the network topology of current network
Database server 105 is given, database server 105 is preserved the network topology of current network, and after being saved will
Current network topology is sent to front end displaying server and is shown.
Optionally, in embodiments of the present invention, database server 105 can be according to the generation time sequencing of network topology
Preserved, and be shown with time sequencing, be easy to user quickly to check out whether there is topological change in current network
Change, be easy to safeguard network.
For the ease of the understanding of those skilled in the art, herein for example, the present invention provides a kind of two determines that network is opened up
Method is flutterred, in the embodiment of the present invention, as shown in fig. 6, specific as follows:
Step 601, automatic data collection server receives the new information that database server sends;
Step 602, automatic data collection server obtains the SNMP parameters of each interchanger from database server;
Step 603, automatic data collection server is according to the generation of the SNMP parameters of each interchanger for each interchanger
The order of SNMP, and it is sent to each interchanger;
Step 604, interchanger upon receipt of the snmp command, obtains the physical server that is connected with switch ports themselves
First network topology;
First network topology is sent to automatic data collection server by step 605, interchanger;
Whether step 606, automatic data collection server determines have carrying empty in first network topology according to first network topology
Intend the physical server of server, if so, then performing step 607;Otherwise perform step 608;
Step 607, automatic data collection server calls libvert is sent to physical server;Perform step 609;
First network topology is sent to front end displaying server displaying by step 608, automatic data collection server;
Step 609, automatic data collection server sends probe instructions, runs libvert;
Step 610, automatic data collection server receives libvert operation results;
Step 611, the friendship that automatic data collection server is obtained according to libvert operation results and from database server
Change planes and the information of physical server determines the second network topology;
Step 612, automatic data collection server determines current network according to first network topology and the second network topology
Network topology;
The network topology of current network is sent to front end displaying server displaying by step 613, automatic data collection server.
Based on same design, the embodiment of the present invention also provides determination network topology device, as shown in fig. 7, comprises:
Acquiring unit 701, the configuration parameter for obtaining interchanger;
Generation unit 702, for generating call instruction according to the configuration parameter;
First network topology determining unit 703, for sending the call instruction to interchanger and receiving the interchanger
The first network topology of feedback, the first network topology is the interchanger and the physical services being connected with the interchanger
Call relation between device;
Probe instructions transmitting element 704, for sending probe instructions to the physical server, the probe instructions are used for
Indicate the physical server operation virtual machine locator;Wherein, the virtual machine locator offer at least two is virtual
The corresponding interface of change technology;
Second network topology determining unit 705, for obtaining the result of detection that the virtual machine locator is returned, according to
The result of detection determines the second network topology, and second network topology is the Virtual Service of carrying in the physical server
The call relation of device and the interchanger;
Network topology determining unit 706, for topological according to the first network and second network topology determines
The network topology of current network.
Further, the second network topology determining unit 705, specifically for:
Obtain the attribute information of the virtual server in the result of detection;
It is determined that the interchanger matched with the attribute information of the virtual server;
Interchanger according to matching determines the second network topology with the virtual server.
Further, the probe instructions transmitting element 704, is additionally operable to:
Determine whether the physical server is the physical server for carrying virtual server;
If it is determined that the physical server is the physical server for carrying virtual server, then virtual machine is called to detect journey
Sequence, the physical server is pushed to by the virtual machine locator.
Further, the acquiring unit 701, specifically for:
The configuration parameter of interchanger is obtained from database server;Or,
The second network topology determining unit 705, specifically for:
The matching relationship of attribute information and interchanger according to the virtual server obtained from the database server,
It is determined that the interchanger matched with the attribute information of the virtual server;Or,
The probe instructions transmitting element 704, specifically for:
Whether the physical server according to being obtained from the database server carries the information of virtual server, it is determined that
Whether the physical server is the physical server for carrying virtual server.
Further, described device also includes:
Display unit 707, for the current network topology to be sent into front end displaying server, so that the front end
Displaying server shows the current network topology.
Based on same design, the present invention also provides a kind of determination network topological method, as shown in figure 8, including:
Step 801, obtains the configuration parameter of interchanger;
Step 802, call instruction is generated according to the configuration parameter;
Step 803, sends the call instruction and receives the first network topology that the interchanger feeds back to interchanger, institute
It is the call relation between the interchanger and the physical server being connected with the interchanger to state first network topology;
Step 804, probe instructions are sent to the physical server, and the probe instructions are used to indicate the physical services
Device runs virtual machine locator;Wherein, the virtual machine locator provides at least two Intel Virtualization Technologies corresponding interface;
Step 805, obtains the result of detection that the virtual machine locator is returned, and second is determined according to the result of detection
Network topology, second network topology is the virtual server of carrying in the physical server and calling for the interchanger
Relation;
Step 806, it is topological according to the first network and second network topology determines that the network of current network is opened up
Flutter.
Further, it is described that second network topology is determined according to the result of detection, including:
Obtain the attribute information of the virtual server in the result of detection;
It is determined that the interchanger matched with the attribute information of the virtual server;
Interchanger according to matching determines the second network topology with the virtual server.
Further, before the transmission probe instructions to the physical server, also include:
Determine whether the physical server is the physical server for carrying virtual server;
If it is determined that the physical server is the physical server for carrying virtual server, then virtual machine is called to detect journey
Sequence, the physical server is pushed to by the virtual machine locator.
Further, the configuration parameter for obtaining interchanger, including:
The configuration parameter of interchanger is obtained from database server;Or,
The interchanger for determining to be matched with the attribute information of the virtual server, including:
The matching relationship of attribute information and interchanger according to the virtual server obtained from the database server,
It is determined that the interchanger matched with the attribute information of the virtual server;Or,
Determine whether the physical server is the physical server for carrying virtual server, including:
Whether the physical server according to being obtained from the database server carries the information of virtual server, it is determined that
Whether the physical server is the physical server for carrying virtual server.
Further, it is described according to the first network is topological and second network topology determines the net of current network
After network topology, also include:
The current network topology is sent to front end displaying server, so that front end displaying server displaying institute
State current network topology.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram are described.It should be understood that every first-class during flow chart and/or block diagram can be realized by computer program instructions
The combination of flow and/or square frame in journey and/or square frame and flow chart and/or block diagram.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of being specified in present one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy
In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger
Make the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described
Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent
Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without deviating from essence of the invention to the present invention
God and scope.So, if these modifications of the invention and modification belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising these changes and modification.
Claims (10)
1. it is a kind of to determine network topological method, it is characterised in that methods described includes:
Obtain the configuration parameter of interchanger;
Call instruction is generated according to the configuration parameter;
The call instruction being sent to interchanger and receiving the first network topology that the interchanger feeds back, the first network is opened up
The call relation flutterred between the physical server being connected for the interchanger and with the interchanger;
Probe instructions are sent to the physical server, the probe instructions are used to indicate the physical server operation virtual machine
Locator;Wherein, the virtual machine locator provides at least two Intel Virtualization Technologies corresponding interface;
The result of detection that the virtual machine locator is returned is obtained, the second network topology, institute are determined according to the result of detection
State the call relation that the second network topology is the virtual server and interchanger carried in the physical server;
According to the first network is topological and second network topology determines the network topology of current network.
2. method according to claim 1, it is characterised in that described to determine that the second network is opened up according to the result of detection
Flutter, including:
Obtain the attribute information of the virtual server in the result of detection;
It is determined that the interchanger matched with the attribute information of the virtual server;
Interchanger according to matching determines the second network topology with the virtual server.
3. method according to claim 1, it is characterised in that it is described send probe instructions to the physical server before,
Also include:
Determine whether the physical server is the physical server for carrying virtual server;
If it is determined that the physical server is the physical server for carrying virtual server, then virtual machine locator is called, will
The virtual machine locator is pushed to the physical server.
4. according to any described method of claims 1 to 3, it is characterised in that
The configuration parameter for obtaining interchanger, including:
The configuration parameter of interchanger is obtained from database server;Or,
The interchanger for determining to be matched with the attribute information of the virtual server, including:
The matching relationship of attribute information and interchanger according to the virtual server obtained from the database server, it is determined that
The interchanger matched with the attribute information of the virtual server;Or,
Determine whether the physical server is the physical server for carrying virtual server, including:
Whether the physical server according to being obtained from the database server carries the information of virtual server, it is determined that described
Whether physical server is the physical server for carrying virtual server.
5. method according to claim 4, it is characterised in that described topological and described second according to the first network
After network topology determines the network topology of current network, also include:
The current network topology is sent to front end displaying server, so as to displaying server displaying in the front end is described work as
Preceding network topology.
6. it is a kind of to determine network topology device, it is characterised in that including:
Acquiring unit, the configuration parameter for obtaining interchanger;
Generation unit, for generating call instruction according to the configuration parameter;
First network topology determining unit, for send the call instruction to interchanger and receive that the interchanger feeds back the
One network topology, the first network topology is between the interchanger and the physical server being connected with the interchanger
Call relation;
Probe instructions transmitting element, for sending probe instructions to the physical server, the probe instructions are used to indicate institute
State physical server operation virtual machine locator;Wherein, the virtual machine locator provides at least two Intel Virtualization Technologies
Corresponding interface;
Second network topology determining unit, for obtaining the result of detection that the virtual machine locator is returned, according to the spy
Survey result and determine the second network topology, second network topology is virtual server and the institute of carrying in the physical server
State the call relation of interchanger;
Network topology determining unit, for topological according to the first network and second network topology determines current network
Network topology.
7. device according to claim 6, it is characterised in that the second network topology determining unit, specifically for:
Obtain the attribute information of the virtual server in the result of detection;
It is determined that the interchanger matched with the attribute information of the virtual server;
Interchanger according to matching determines the second network topology with the virtual server.
8. device according to claim 6, it is characterised in that the probe instructions transmitting element, is additionally operable to:
Determine whether the physical server is the physical server for carrying virtual server;
If it is determined that the physical server is the physical server for carrying virtual server, then virtual machine locator is called, will
The virtual machine locator is pushed to the physical server.
9. according to any described device of claim 6~8, it is characterised in that
The acquiring unit, specifically for:
The configuration parameter of interchanger is obtained from database server;Or,
The second network topology determining unit, specifically for:
The matching relationship of attribute information and interchanger according to the virtual server obtained from the database server, it is determined that
The interchanger matched with the attribute information of the virtual server;Or,
The probe instructions transmitting element, specifically for:
Whether the physical server according to being obtained from the database server carries the information of virtual server, it is determined that described
Whether physical server is the physical server for carrying virtual server.
10. device according to claim 9, it is characterised in that described device also includes:
Display unit, for the current network topology to be sent into front end displaying server, so that front end displaying clothes
Business device shows the current network topology.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611249811.0A CN106713042B (en) | 2016-12-29 | 2016-12-29 | Method and device for determining network topology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611249811.0A CN106713042B (en) | 2016-12-29 | 2016-12-29 | Method and device for determining network topology |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106713042A true CN106713042A (en) | 2017-05-24 |
CN106713042B CN106713042B (en) | 2020-05-26 |
Family
ID=58904087
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611249811.0A Active CN106713042B (en) | 2016-12-29 | 2016-12-29 | Method and device for determining network topology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106713042B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109428824A (en) * | 2017-08-28 | 2019-03-05 | 中国电信股份有限公司 | Host Topology g eneration method and system |
CN109831318A (en) * | 2018-12-26 | 2019-05-31 | 中兴通讯股份有限公司 | A kind of system, method and server obtaining network topology |
CN110912751A (en) * | 2019-12-03 | 2020-03-24 | 山东中创软件商用中间件股份有限公司 | Network equipment topological graph generation method and related device |
CN111654440A (en) * | 2020-02-29 | 2020-09-11 | 新华三技术有限公司合肥分公司 | Intelligent routing method, electronic equipment and storage medium |
CN112291097A (en) * | 2020-10-30 | 2021-01-29 | 绿盟科技集团股份有限公司 | Virtual network topology generation method and device |
CN112398738A (en) * | 2020-11-05 | 2021-02-23 | 竞技世界(北京)网络技术有限公司 | Method, device and equipment for acquiring connection relation and computer readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103036725A (en) * | 2012-12-17 | 2013-04-10 | 华为技术有限公司 | Network administration device and method for discovery of network topology |
CN103281248A (en) * | 2013-06-09 | 2013-09-04 | 北京星网锐捷网络技术有限公司 | Network topology discovering method, device and system |
CN103685587A (en) * | 2012-09-07 | 2014-03-26 | 深圳市腾讯计算机系统有限公司 | Method and device for assigning MAC (Media Access Control) address |
CN104468219A (en) * | 2014-12-11 | 2015-03-25 | 杭州华三通信技术有限公司 | Virtual networking network topology discovery method and device |
CN104618246A (en) * | 2015-02-12 | 2015-05-13 | 浪潮电子信息产业股份有限公司 | Network topology discovery method for XEN virtualization environment |
US20160149771A1 (en) * | 2014-11-21 | 2016-05-26 | Oracle International Corporation | Transparent orchestration and management of composite network functions |
-
2016
- 2016-12-29 CN CN201611249811.0A patent/CN106713042B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103685587A (en) * | 2012-09-07 | 2014-03-26 | 深圳市腾讯计算机系统有限公司 | Method and device for assigning MAC (Media Access Control) address |
CN103036725A (en) * | 2012-12-17 | 2013-04-10 | 华为技术有限公司 | Network administration device and method for discovery of network topology |
CN103281248A (en) * | 2013-06-09 | 2013-09-04 | 北京星网锐捷网络技术有限公司 | Network topology discovering method, device and system |
US20160149771A1 (en) * | 2014-11-21 | 2016-05-26 | Oracle International Corporation | Transparent orchestration and management of composite network functions |
CN104468219A (en) * | 2014-12-11 | 2015-03-25 | 杭州华三通信技术有限公司 | Virtual networking network topology discovery method and device |
CN104618246A (en) * | 2015-02-12 | 2015-05-13 | 浪潮电子信息产业股份有限公司 | Network topology discovery method for XEN virtualization environment |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109428824A (en) * | 2017-08-28 | 2019-03-05 | 中国电信股份有限公司 | Host Topology g eneration method and system |
CN109831318A (en) * | 2018-12-26 | 2019-05-31 | 中兴通讯股份有限公司 | A kind of system, method and server obtaining network topology |
CN110912751A (en) * | 2019-12-03 | 2020-03-24 | 山东中创软件商用中间件股份有限公司 | Network equipment topological graph generation method and related device |
CN111654440A (en) * | 2020-02-29 | 2020-09-11 | 新华三技术有限公司合肥分公司 | Intelligent routing method, electronic equipment and storage medium |
CN111654440B (en) * | 2020-02-29 | 2022-05-27 | 新华三技术有限公司合肥分公司 | Intelligent routing method, electronic equipment and storage medium |
CN112291097A (en) * | 2020-10-30 | 2021-01-29 | 绿盟科技集团股份有限公司 | Virtual network topology generation method and device |
CN112291097B (en) * | 2020-10-30 | 2023-03-24 | 绿盟科技集团股份有限公司 | Virtual network topology generation method and device |
CN112398738A (en) * | 2020-11-05 | 2021-02-23 | 竞技世界(北京)网络技术有限公司 | Method, device and equipment for acquiring connection relation and computer readable storage medium |
CN112398738B (en) * | 2020-11-05 | 2022-06-28 | 竞技世界(北京)网络技术有限公司 | Method and device for acquiring connection relation, equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106713042B (en) | 2020-05-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106713042A (en) | Method and device for determination of network topology | |
CN106489251B (en) | The methods, devices and systems of applied topology relationship discovery | |
US20180145889A1 (en) | Life Cycle Management Method and Device for Network Service | |
CN112671772B (en) | Network security service system and method based on cloud security capability platform | |
CN106648826B (en) | For the method and apparatus of thermophoresis virtual machine | |
US8751654B2 (en) | Determining the graphic load of a virtual desktop | |
CN105979007A (en) | Acceleration resource processing method and device and network function virtualization system | |
US10296384B2 (en) | Dynamic workload deployment for data integration services | |
US11159604B2 (en) | Processing an operation with a plurality of processing steps | |
CN104081348A (en) | System and method to reduce memory usage by optimally placing VMs in virtualized data center | |
CN106789432A (en) | Test system based on autonomous controllable cloud platform technology | |
CN105847332A (en) | Desktop virtualization method, client device and server-side device | |
CN111800462A (en) | Micro-service instance processing method and device, computer equipment and storage medium | |
US11405328B2 (en) | Providing on-demand production of graph-based relationships in a cloud computing environment | |
CN110166507A (en) | More resource regulating methods and device | |
US20150347166A1 (en) | Paravirtualized migration counter for migrating a virtual cpu to a different physical cpu | |
US10318343B2 (en) | Migration methods and apparatuses for migrating virtual machine including locally stored and shared data | |
CN108563697A (en) | A kind of data processing method, device and storage medium | |
CN106156198A (en) | Task executing method based on distributed data base and device | |
CN108667750B (en) | Virtual resource management method and device | |
CN104754040B (en) | System for end-to-end cloud service virtualization | |
CN107045452B (en) | Virtual machine scheduling method and device | |
US9378057B2 (en) | Paravirtualized migration counter | |
CN115361382A (en) | Data processing method, device, equipment and storage medium based on data group | |
US11086874B2 (en) | Management of a virtual infrastructure via an object query language |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |