CN102821023B - A kind of method and device of VLAN configuration dynamic migration - Google Patents

A kind of method and device of VLAN configuration dynamic migration Download PDF

Info

Publication number
CN102821023B
CN102821023B CN201210279211.4A CN201210279211A CN102821023B CN 102821023 B CN102821023 B CN 102821023B CN 201210279211 A CN201210279211 A CN 201210279211A CN 102821023 B CN102821023 B CN 102821023B
Authority
CN
China
Prior art keywords
virtual machine
physical
physical server
migration
switch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210279211.4A
Other languages
Chinese (zh)
Other versions
CN102821023A (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201210279211.4A priority Critical patent/CN102821023B/en
Publication of CN102821023A publication Critical patent/CN102821023A/en
Application granted granted Critical
Publication of CN102821023B publication Critical patent/CN102821023B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The method and device of a kind of VLAN configuration dynamic migration, by being previously stored virtual machine ID and corresponding VLAN configuration information in network management system;When network management system perceives the network migration event of virtual machine, the ascending physical signal switch that the physical server moved into virtual machine is corresponding issues the VLAN configuration of this virtual machine, after virtual machine (vm) migration completes, the physical server moved into makes the ARP table of its up all physical switches be updated by sending RARP message;If migration event was complete before network management system completes to issue VLAN configuration, described network management system is by the ARP table on SNMP or order line aging gateway physical switches, thus the ARP table completing the up all physical switches of the physical server moved into updates, by the present invention, the VLAN configuration of described virtual machine can along with the transport dynalnics of virtual machine complete migrate.

Description

A kind of method and device of VLAN configuration dynamic migration
Technical field
The present invention relates to data communication technology field, particularly relate to one VLAN under virtualized environment and configure along with virtual The migration of machine and the method and device of dynamic migration.
Background technology
Intel Virtualization Technology the most increasingly comes into one's own, and a lot of manufacturer of industry produces a lot of virtual machine product, as VMWare, HyperV, KVM etc..User can on physical server virtual multiple main frames, for different user.When certain When main frame virtual on physical server is too much, inadequate resource will occur, run situation slowly.In order to avoid this situation Producing, each manufacturer both provides the function of virtual machine (vm) migration, and virtual machine is little to load from the server migration that load is bigger Server, and then realize making full use of of resource.
In actual network application, for network security and otherwise consideration, enterprise typically can exist as required VLAN differently configured on different virtual machines, to make certain restriction to virtual machine access external network.By configuration as above, Realize the safeguard protection to virtual network to a certain extent.
But, when virtual machine occurs to migrate, if being previously not configured this on the purpose switch of virtual machine (vm) migration The VLAN configuration that virtual machine uses, after virtual machine (vm) migration can be caused to complete, this virtual machine cannot access proper network.
Summary of the invention
In view of this, the present invention provides a kind of VLAN method and device of configuration dynamic migration, by the present invention, Wu Xu The VLAN configuration that on the purpose switch of virtual machine (vm) migration, this virtual machine pre-configured uses, the VLAN configuration of described virtual machine That understands the transport dynalnics along with virtual machine completes migration.
For realizing the object of the invention, implementation of the present invention is specific as follows:
The method of a kind of VLAN configuration dynamic migration, applies and is at least including that two physical servers and ascending physical signal thereof are handed over Changing planes in the network system constituted, wherein said every physical server virtual can turn to multiple different void as required Plan machine, the method comprise the steps that
Step 1, the corresponding relation being previously stored in network management system between ID and the VLAN configuration information of virtual machine;
Step 2, when network management system perceives the network migration event of virtual machine, the physical server moved into virtual machine Corresponding ascending physical signal switch issues the VLAN configuration of this virtual machine.
Further, the ascending physical signal exchange that described step 2 network management system is moved into virtual machine physical server is corresponding Machine issues the VLAN configuration information of this virtual machine, particularly as follows:
ID that described network management system obtains, according to the migration event of virtual machine, the virtual machine migrated and the physical services moved into The id information of device, described network management system obtains, according to the ID of this virtual machine, the VLAN configuration information that this virtual machine is corresponding further, Id information according to the physical server moved into is searched the network equipment topological relation of storage and is obtained this physical server of moving into The port that ascending physical signal switch is corresponding, is then handed down to the physical server pair moved into by the VLAN configuration information of this virtual machine On the port that the ascending physical signal switch answered is corresponding.
Further, described step 2 network management system is to port corresponding to the ascending physical signal switch of physical server of moving into The VLAN configuration information issuing this migration virtual machine completes prior to the migration action of virtual machine.And after virtual machine (vm) migration completes, The physical server moved into sends RARP message further to its gateway physical switches, wherein carries the IP ground of virtual machine VM1 Location and mac address information so that local edge switch, gateway switch and between the ARP table of all physical switches Updated, and then make all ascending physical signal switches of this physical server moved into all get this virtual machine VM1's Latest configuration.
Further, if after virtual machine (vm) migration completes, described step 2 network management system is just to physical server of moving into Ascending physical signal switch corresponding ports issues the VLAN configuration information of the virtual machine of migration, and now, network management system is passed through further Network topology calculates the information of the gateway switch at the physical server place moved into, and by SNMP or the aging net of order line Close the ARP table in physical switches.Described gateway physical switches is after ARP table is aging, further to the physical services moved into The edge switch at device place sends probe messages, when, after the message response receiving edge switch, showing that described edge exchanges ARP table in machine and gateway switch and all physical switches between them is all updated, and has all got and has moved into The latest position of virtual machine, described virtual machine VM1 can access external network.
Further, described virtual machine ID is specially the MAC Address of this virtual machine, IP address or other can uniquely mark Know the information of this virtual machine.
Present invention simultaneously provides the device of a kind of VLAN configuration dynamic migration, described device is applied and is at least being included two things In the network system that reason server and ascending physical signal switch thereof are constituted, wherein said every physical server can be according to need Want, virtual turn to multiple different virtual machine, it is characterised in that described device includes:
Logging modle, is previously stored the corresponding relation between ID and the VLAN configuration information of virtual machine for described device;
Issue module, be used for after described device perceives the network migration event of virtual machine, the thing moved into virtual machine The ascending physical signal switch that reason server is corresponding issues the VLAN configuration information of this virtual machine.
Further, the ascending physical signal switch issuing physical server that module moves into virtual machine described in corresponding issues The VLAN configuration information of this virtual machine, particularly as follows:
ID that described device obtains, according to the migration event of virtual machine, the virtual machine migrated and the physical server moved into Id information, described device obtains, according to the ID of this virtual machine, the VLAN configuration information that this virtual machine is corresponding further, according to moving into The id information of physical server search the network equipment topological relation of storage and obtain the ascending physical signal of this physical server of moving into The port that switch is corresponding, then by the VLAN configuration information of this virtual machine by issuing the physical services that module is handed down to move into On the port that ascending physical signal switch that device is corresponding is corresponding.
Further, issue module described in and issue this to the port that the ascending physical signal switch of physical server of moving into is corresponding The VLAN configuration information migrating virtual machine completes prior to the migration action of virtual machine.And after virtual machine (vm) migration completes, move into Physical server sends RARP message further to its gateway physical switches, wherein carries IP address and the MAC of virtual machine VM1 Address information so that local edge switch, gateway switch and between the ARP table of all physical switches be able to more Newly, and then make all ascending physical signal switches of this physical server moved into all get up-to-date the joining of this virtual machine VM1 Put.
Further, if after virtual machine (vm) migration completes, described in issue module just up to physical server of moving into Physical switches corresponding ports issues the VLAN configuration information of the virtual machine of migration, and now, described device passes through network further Topology calculates the information of the gateway switch at the physical server place moved into, and by SNMP or order line aging gateway thing ARP table on reason switch.Described gateway physical switches is after ARP table is aging, further to the physical server institute moved into Edge switch send probe messages, when after the message response receiving edge switch, show described edge switch and ARP table on gateway switch and all physical switches between them is all updated, and has all got the void moved into The latest position of plan machine, described virtual machine VM1 can access external network.
Further, described virtual machine ID is specially the MAC Address of this virtual machine, IP address or other can uniquely mark Know the information of this virtual machine..
Compared with existing technical scheme, the present invention is by virtual machine generation transition process, and network management system is by moving Moving event perception and the virtual machine migrated and the purpose switch moved into occur, described network management system is by this virtual machine place Purpose switch issues the VLAN configuration of this virtual machine, after ensureing that virtual machine (vm) migration completes, the physics at virtual machine place in time The RARP message that server sends can be normal through, and the ARP table on ascending physical signal switch that this physical server is corresponding obtains To update, in order to virtual function normally accesses network.
Accompanying drawing explanation
Fig. 1 is that under present invention application scenarios, virtual machine occurs to migrate schematic diagram.
Fig. 2 is the method flow diagram of the VLAN configuration dynamic migration that the present invention provides.
Fig. 3 is the device schematic diagram of the VLAN configuration dynamic migration that the present invention provides.
Detailed description of the invention
In order to realize the object of the invention, the core concept that the present invention uses is: be previously stored virtual machine in network management system ID and corresponding VLAN configuration information;When network management system perceives the network migration event of virtual machine, move into virtual machine The ascending physical signal switch that physical server is corresponding issues the VLAN configuration of this virtual machine, after virtual machine (vm) migration completes, moves into Physical server by send RARP message make local edge switch, gateway switch and between all physics hand over The ARP table changed planes is updated, and then makes all ascending physical signal switches of this physical server moved into all get this The latest configuration of virtual machine.Owing to the virtual machine on all ascending physical signal switches of the physical server moved into normally accesses net The ARP table of network is updated, thus virtual machine can normally access network.
For making technical solution of the present invention more clear and understanding, below in conjunction with the specific embodiment of the invention in addition specifically Bright.As in figure 2 it is shown, configure the method flow diagram of dynamic migration for VLAN of the present invention.Wherein said method is applied and is at least being included In the network system that two physical servers and ascending physical signal switch thereof are constituted, wherein said every physical server can root According to needs, virtual turn to multiple different virtual machine.Mainly comprise the steps:
Step 1, the corresponding relation being previously stored in network management system between ID and the VLAN configuration information of virtual machine.
Specifically, in embodiments of the present invention, network management system can by the modes such as poll obtain each virtual machine ID with Corresponding relation between VLAN configuration information.Wherein said virtual machine ID is specifically as follows the MAC Address of this virtual machine, IP address or Person other can uniquely identify the information of this virtual machine.In the corresponding pass obtained between ID with the VLAN configuration information of all virtual machines After system, network management system also needs to store this corresponding relation further, as stored by modes such as forms.
As a example by VLAN configuration information corresponding for the VM1 shown in Fig. 1 is as VLAN1, network management system is obtaining this corresponding relation After, by the corresponding relation between ID and the VLAN1 configuration information of record VM 1.
Step 2, when network management system perceives the network migration event of virtual machine, the physical server moved into virtual machine Corresponding ascending physical signal switch issues the VLAN configuration of this virtual machine.
Specifically, when resource (including CPU, internal memory, disk and network throughput etc.) in certain physical server running When bottleneck occurring or breaks down, need the virtual machine (vm) migration of operation on this physical server to other physical server On, thus reach the purpose of load balancing and efficent use of resources.When virtual machine occurs to migrate, network management system can detect that this The ID letter of migration event, the ID then directly obtaining the virtual machine of migration according to this migration event and the physical server moved into Breath.Described network management system obtains, according to the ID of this virtual machine, the VLAN configuration information that this virtual machine is corresponding, according to the physics moved into The id information of server is searched the network equipment topological relation stored and is obtained the ascending physical signal switch of this physical server of moving into Corresponding port.The VLAN configuration information of this virtual machine is then handed down to ascending physical signal corresponding to the physical server moved into hand over Change planes on the port of correspondence.
It should be noted that in order to realize the present invention, preferably embodiment is that described network management system is to physics clothes of moving into The port corresponding to ascending physical signal switch of business device issues the VLAN configuration information of this migration virtual machine will moving prior to virtual machine Shifting completes.So, after virtual machine (vm) migration completes, the physical server moved into sends RARP to its gateway physical switches (Reverse Address Resolution Protocol, reverse address resolution protocol) message, wherein carries the IP of virtual machine The information such as address and MAC Address so that local edge switch, gateway switch and between all physical switches ARP table is updated, and then makes all ascending physical signal switches of this physical server moved into all get this virtual machine Latest configuration.
If after virtual machine (vm) migration completes, described network management system just completes to hand over to the ascending physical signal of physical server of moving into Corresponding ports of changing planes issues the VLAN configuration information of the virtual machine of migration, and now, RARP message will be unable to be taken by physics of moving into The ascending physical signal switch of business device.As another implementation in the present invention, network management system can pass through network topology Calculate the information of the gateway switch at the physical server place moved into.Further, described network management system by SNMP or ARP table in order line aging gateway physical switches, and by described gateway physical switches to the physical server moved into The edge switch at place sends probe messages, when after the message response receiving edge switch, shows described edge switch With the ARP table in gateway switch and all physical switches between them is all updated, all get virtual machine Latest position, described virtual machine and then external network can be accessed.
Still as a example by the application scenarios shown in Fig. 1, if there is bottleneck in physical server A resource in running, this Time, need to move on physical server B by the VM 1 on this physical server A, now, network management system is according to the migration of VM 1 Event can obtain the mac address information of ID(for example, this virtual machine of this VM 1) and the ID letter of the physical server B that moves into Breath.Id information according to this VM 1 obtains the VLAN configuration information VLAN1 of this VM 1 correspondence further, according to physical server B Id information search the network equipment topological relation of storage and obtain ascending physical signal switch (the Edge Switch of physical server B 2) port Ethernet 2/1.Finally, VLAN configuration information VLAN1 corresponding for the VM1 of acquisition is handed down to move by described network management system Ascending physical signal switch corresponding for physical server B (the Edge Switch 2) port Ethernet 2/1 entered.
When network management system is to ascending physical signal switch corresponding for physical server B (Edge Switch2) port moved into Ethernet2/1 issues the VLAN configuration information VLAN1 of VM1 when completing prior to virtual machine (vm) migration action, with the application shown in Fig. 1 As a example by scene, after virtual machine VM1 completes to migrate, the physical server B moved into is further to its up gateway physical exchange Machine sends RARP(Reverse Address Resolution Protocol, reverse address resolution protocol) message, at this RARP Message carries the VLAN configuration information VLAN1 of this virtual machine so that local edge switch (Edge Switch2), gateway are handed over Change planes and between all physical switches (not shown) by study obtain this virtual machine VLAN configuration information, and Make respective ARP table be updated, and then all ascending physical signal switches of this physical server B moved into all are got The latest configuration of this virtual machine.
If after virtual machine (vm) migration completes, described network management system just completes the ascending physical signal to the physical server B that moves into Switch corresponding ports issues the VLAN configuration information of the virtual machine of migration, and now, RARP message will be unable to the limit by moving into Edge switch (Edge Switch 2 as shown in Figure 1).As another implementation in the present invention, network management system First pass through the information that network topology calculates the gateway switch at the physical server B place moved into.Further, described net Guard system passes through the ARP table in SNMP or order line this gateway physical switches aging, and by described gateway physical switches Edge switch (Edge Switch2) to the physical server B place moved into sends probe messages, when receiving edge exchange After the message response of machine Edge switch, show described edge switch and gateway switch and the property between them ARP table on reason switch is all updated, and has all got the latest position of virtual machine VM1, and described virtual machine VM1 can visit Ask external network.
Below by two specific embodiments, said method is described in detail.
Embodiment 1
As it is shown in figure 1, virtual machine 1(VM1) on physical server A, before migrating, access edge switch by VLAN1 The ethernet1/1 mouth of (Edge Switch 1), thus access network.Ethernet1/1 port is configured to permit by network management system The VLAN being permitted to pass through is VLAN1, then configures and do not permit on the ethernet2/1 port of edge switch (Edge Switch 2) Permitted VLAN1 to pass through.
When physical server A over loading, need to move on physical server B VM 1.After migration event occurs, Network management system can perceive two kinds of message in different phase, and one is to migrate to carry out, and another is to have migrated, wherein Both message is sent by physical server B.
After network management system perceives the ongoing message of migration (migration event), inquire about the data base of self storage, Obtained VLAN 1 configuration information of this VM1 by the ID of VM1, the network equipment searching storage according to the ID of physical server B is opened up The relation of flutterring obtains ascending physical signal switch (the Edge Switch 2) port Ethernet 2/1 of physical server B.Finally, described VLAN configuration information VLAN1 corresponding for the VM1 of acquisition is handed down to the ascending corresponding for physical server B moved into by network management system Reason switch (Edge Switch 2) port Ethernet 2/1.
Described network management system monitors the message migrated further, when physical server B sends the message migrated After, the LAN at its place sends RARP message so that each physical switches of LAN updates respective ARP table.
The ARP table of edge switch 2 and up all physical switches thereof is updated, and has got virtual machine 1 Latest position, virtual machine 1 can normally access network.
It should be noted that in the present embodiment, it is desirable to network management system is to the ascending corresponding for physical server B moved into Reason switch (Edge Switch 2) port Ethernet 2/1 issues the VLAN configuration information VLAN1 of VM1 will be prior to virtual machine Migration action completes.Otherwise, the RARP message of physical server B will be unable to, by edge switch 2, to wait edge switch On ARP table aging after, new ARP table could be generated, VM1 during this period will be unable to access network.
Embodiment 2
As it is shown in figure 1, virtual machine 1(VM1) on physical server A, before migrating, access edge switch by VLAN1 The ethernet1/1 mouth of (Edge Switch 1), thus access network.Ethernet1/1 port is configured to permit by network management system The VLAN being permitted to pass through is VLAN1, then configures and do not permit on the ethernet2/1 port of edge switch (Edge Switch 2) Permitted VLAN1 to pass through.
When physical server A over loading, need to move on physical server B VM 1.After migration event occurs, Network management system can perceive two kinds of message in different phase, and one is to migrate to carry out, and another is to have migrated, wherein Both message is sent by physical server B.
After physical server B sends the message migrated, described physical server B can be at the LAN at its place In send out RARP message go to update the ARP table of local each physical server.Now, it is configured to not allow due to ethernet2/1 VLAN1 passes through, so RARP is dropped.
After Network Management Equipment perceives the message migrated, inquire about the data base of self storage, obtained by the ID of VM1 VLAN 1 configuration information of this VM1, the network equipment topological relation searching storage according to the ID of physical server B obtains physics clothes Ascending physical signal switch (Edge Switch2) port Ethernet 2/1 of business device B.Finally, described network management system is by acquisition VLAN configuration information VLAN1 corresponding for VM1 is handed down to the ascending physical signal switch (Edge corresponding for physical server B moved into Switch2) port Ethernet 2/1.As a example by trunk mouth, VLAN1 is configured to ethernet2/1's by described network management system Allow the VLAN passed through.
Network management system is calculated the information of the gateway switch of the physical server B that VM1 moves into further by topology. After completing VLAN configuration, network management system is by SNMP and the aging gateway switch of order line (telnet/ssh) two ways The ARP table of virtual machine VM1.As a example by command line mode, in network management system telnet to gateway switch, issue aging ARP's Order.After the aging ARP table of described gateway switch, transmission probe messages is to virtual machine VM1 further, if can detect Virtual machine VM1, then show that virtual machine a can normally access network.
Other physical switches ARP table of edge switch 2 and upper strata thereof is updated, and gets virtual machine VM1 New position, virtual machine VM1 can normally access network.
Compared with existing technical scheme, the present invention is by virtual machine generation transition process, and network management system is by moving Move event perception and the virtual machine migrated and the physical switches moved into, and the physical server correspondence moved into virtual machine occur Ascending physical signal switch issue this virtual machine VLAN configuration, after virtual machine (vm) migration completes, the physical server moved into lead to Cross send RARP message make local edge switch, gateway switch and between the ARP table of all physical switches obtain To update, so realize all ascending physical signal switches of this physical server moved into all on get the up-to-date of this virtual machine Configuration, virtual function normally accesses network.
Invention also provides the device of a kind of VLAN configuration dynamic migration, described device is applied and is at least being included two In the network system that physical server and ascending physical signal switch thereof are constituted, wherein said every physical server can be according to need Want, virtual turn to multiple different virtual machine.Described device includes:
Logging modle, is previously stored the corresponding relation between ID and the VLAN configuration information of virtual machine for described device.
Specifically, in embodiments of the present invention, described device can by the modes such as poll obtain each virtual machine ID with Corresponding relation between VLAN configuration information.Wherein said virtual machine ID is specifically as follows the MAC Address of this virtual machine, IP address or Person other can uniquely identify the information of this virtual machine.In the corresponding pass obtained between ID with the VLAN configuration information of all virtual machines After system, network management device stores the corresponding relation between ID and the VLAN configuration information of this virtual machine by logging modle, the most permissible Stored by modes such as forms.
As a example by VLAN configuration information corresponding for the VM1 shown in Fig. 1 is as VLAN1, described device obtain VM 1 ID with After corresponding relation between VLAN1 configuration information, its logging modle stores by the way of form, stores this corresponding relation.
Issue module, be used for after described device perceives the network migration event of virtual machine, the thing moved into virtual machine The ascending physical signal switch that reason server is corresponding issues the VLAN configuration information of this virtual machine.
Specifically, when resource (including CPU, internal memory, disk and network throughput etc.) in certain physical server running When bottleneck occurring or breaks down, need the virtual machine (vm) migration of operation on this physical server to other physical server On, thus reach the purpose of load balancing and efficent use of resources.When virtual machine occurs to migrate, described device can detect that this The ID letter of migration event, the ID then directly obtaining the virtual machine of migration according to this migration event and the physical server moved into Breath.Described device obtains, according to the ID of this virtual machine, the VLAN configuration information that this virtual machine is corresponding, according to the physical services moved into The id information of device is searched the network equipment topological relation stored and is obtained the ascending physical signal switch correspondence of this physical server of moving into Port.Corresponding upper of the physical server that then is handed down to move into by issuing module by the VLAN configuration information of this virtual machine On the port that row physical switches is corresponding.
It should be noted that in order to realize the present invention, preferably embodiment be described in issue module to physics clothes of moving into The port corresponding to ascending physical signal switch of business device issues the VLAN configuration information of this migration virtual machine will moving prior to virtual machine Shifting completes.So, after virtual machine (vm) migration completes, the physical server moved into sends RARP to its gateway physical switches (Reverse Address Resolution Protocol, reverse address resolution protocol) message, wherein carries virtual machine VM1 IP address and the information such as MAC Address so that local edge switch, gateway switch and between all physical switches ARP table updated, and then it is virtual to make all ascending physical signal switches of this physical server moved into all get this The latest configuration of machine VM1.
If after virtual machine (vm) migration completes, described in issue module just complete to physical server of moving into ascending physical signal hand over Corresponding ports of changing planes issues the VLAN configuration information of the virtual machine of migration, and now, RARP message will be unable to the edge by moving into Switch (Edge Switch 2 as shown in Figure 1).As another implementation in the present invention, described device can To be calculated the information of the gateway switch at the physical server place moved into by network topology.Further, described webmaster System passes through the ARP table in SNMP or order line aging gateway physical switches, and by described gateway physical switches to moving The edge switch at the physical server place entered sends probe messages, when after the message response receiving edge switch, shows ARP table in described edge switch and gateway switch and all physical switches between them is all updated, all Got the latest position of the virtual machine moved into, described in the virtual machine moved into can access external network.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all essences in the present invention Within god and principle, any modification, equivalent substitution and improvement etc. done, within should be included in the scope of protection of the invention.

Claims (8)

1. a method for VLAN configuration dynamic migration, applies and is at least including two physical servers and ascending physical signal exchange thereof In the network system that mechanism becomes, wherein every physical server virtual can turn to multiple different virtual machine as required, its Being characterised by, described method includes:
Step 1, the corresponding relation being previously stored in network management system between ID and the VLAN configuration information of virtual machine;
Step 2, when network management system perceives the network migration event of virtual machine, the physical server moved into virtual machine is corresponding Ascending physical signal switch issue this virtual machine VLAN configuration, particularly as follows:
ID that described network management system obtains, according to the migration event of virtual machine, the virtual machine migrated and the physical server moved into Id information, described network management system obtains, according to the ID of this virtual machine, the VLAN configuration information that this virtual machine is corresponding further, according to The id information of the physical server moved into is searched the network equipment topological relation of storage and is obtained the up of this physical server of moving into The port that physical switches is corresponding, the physical server then being handed down to move into by the VLAN configuration information of this virtual machine is corresponding On the port that ascending physical signal switch is corresponding;
Wherein, described step 2 network management system issues this to the port that the ascending physical signal switch of physical server of moving into is corresponding and moves The VLAN configuration information moving virtual machine completes prior to the migration action of virtual machine.
2. the method for claim 1, it is characterised in that after virtual machine (vm) migration completes, the physical server moved into Its gateway physical switches sends RARP message further, wherein carries IP address and the mac address information of virtual machine VM1, makes Local edge switch, gateway switch and between the ARP table of all physical switches updated, and then make this All ascending physical signal switches of the physical server moved into all get the latest configuration of this virtual machine VM1.
3. the method for claim 1, it is characterised in that if after virtual machine (vm) migration completes, described step 2 webmaster system System just issues the VLAN configuration information of the virtual machine of migration to the ascending physical signal switch corresponding ports of physical server of moving into, this Time, network management system calculates the information of the gateway switch at the physical server place moved into further by network topology, and By the ARP table in SNMP or order line aging gateway physical switches;
Described gateway physical switches is after ARP table is aging, further to the edge switch at the physical server place moved into Send probe messages, when after the message response receiving edge switch, show described edge switch and gateway switch and The ARP table in all physical switches between them is all updated, and has all got the latest position of the virtual machine moved into, Described virtual machine VM1 can access external network.
4. the method for claim 1, it is characterised in that described virtual machine ID is specially the MAC Address of this virtual machine, IP Address or other can uniquely identify the information of this virtual machine.
5. a device for VLAN configuration dynamic migration, described device is applied and is at least being included two physical servers and up In the network system that physical switches is constituted, wherein every physical server can as required, virtual turn to multiple different Virtual machine, it is characterised in that described device includes:
Logging modle, is previously stored the corresponding relation between ID and the VLAN configuration information of virtual machine for described device;
Issuing module, for after described device perceives the network migration event of virtual machine, the physics moved into virtual machine takes The ascending physical signal switch that business device is corresponding issues the VLAN configuration information of this virtual machine, particularly as follows:
ID that described device obtains, according to the migration event of virtual machine, the virtual machine migrated and the ID letter of physical server moved into Breath, described device obtains, according to the ID of this virtual machine, the VLAN configuration information that this virtual machine is corresponding further, according to the thing moved into The id information of reason server is searched the network equipment topological relation stored and is obtained the ascending physical signal exchange of this physical server of moving into The port that machine is corresponding, then by the VLAN configuration information of this virtual machine by issuing the physical server pair that module is handed down to move into On the port that the ascending physical signal switch answered is corresponding;
Wherein, issuing module described in, to issue this migration to the port that the ascending physical signal switch of physical server of moving into is corresponding virtual The VLAN configuration information of machine completes prior to the migration action of virtual machine.
6. device as claimed in claim 5, it is characterised in that after virtual machine (vm) migration completes, the physical server moved into Its gateway physical switches sends RARP message further, wherein carries IP address and the mac address information of virtual machine VM1, makes Local edge switch, gateway switch and between the ARP table of all physical switches updated, and then make this All ascending physical signal switches of the physical server moved into all get the latest configuration of this virtual machine VM1.
7. device as claimed in claim 5, it is characterised in that if after virtual machine (vm) migration completes, described in issue module The VLAN configuration information of the virtual machine of migration is issued to the ascending physical signal switch corresponding ports of physical server of moving into, now, Described device calculates the information of the gateway switch at the physical server place moved into further by network topology, and passes through ARP table on SNMP or order line aging gateway physical switches;
Described gateway physical switches is after ARP table is aging, further to the edge switch at the physical server place moved into Send probe messages, when after the message response receiving edge switch, show described edge switch and gateway switch and The ARP table in all physical switches between them is all updated, and has all got the latest position of the virtual machine moved into, Described virtual machine VM1 can access external network.
8. device as claimed in claim 5, it is characterised in that described virtual machine ID is specially the MAC Address of this virtual machine, IP Address or other can uniquely identify the information of this virtual machine.
CN201210279211.4A 2012-08-07 2012-08-07 A kind of method and device of VLAN configuration dynamic migration Active CN102821023B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210279211.4A CN102821023B (en) 2012-08-07 2012-08-07 A kind of method and device of VLAN configuration dynamic migration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210279211.4A CN102821023B (en) 2012-08-07 2012-08-07 A kind of method and device of VLAN configuration dynamic migration

Publications (2)

Publication Number Publication Date
CN102821023A CN102821023A (en) 2012-12-12
CN102821023B true CN102821023B (en) 2016-12-21

Family

ID=47304891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210279211.4A Active CN102821023B (en) 2012-08-07 2012-08-07 A kind of method and device of VLAN configuration dynamic migration

Country Status (1)

Country Link
CN (1) CN102821023B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014089799A1 (en) * 2012-12-13 2014-06-19 华为技术有限公司 Method and apparatus for determining virtual machine drifting
CN104243427B (en) * 2013-06-19 2018-04-06 日电(中国)有限公司 The online moving method of virtual machine, data pack transmission method and equipment
CN103716221B (en) * 2013-12-10 2017-02-01 同济大学 On-line migration method of virtual machine in wide area network under future network NDN (Named Data Network)
CN105471740B (en) * 2014-07-09 2018-10-12 新华三技术有限公司 Gateway based on software defined network migrates processing method and processing device
US9916174B2 (en) * 2015-05-27 2018-03-13 International Business Machines Corporation Updating networks having virtual machines with migration information
CN107205058B (en) * 2016-03-16 2021-06-04 中兴通讯股份有限公司 Media intervention control MAC address processing method and device
CN106878052B (en) * 2016-12-21 2020-04-03 新华三技术有限公司 User migration method and device
CN107370679A (en) * 2017-07-20 2017-11-21 郑州云海信息技术有限公司 A kind of method and device for realizing migration process
CN109842692B (en) * 2018-11-13 2022-06-14 联想企业解决方案(新加坡)有限公司 VxLAN switch, system and method for obtaining host information in physical network
CN110401729B (en) * 2019-06-28 2022-12-23 苏州浪潮智能科技有限公司 Cloud platform server network migration method, system, terminal and storage medium
CN115297055B (en) * 2022-07-25 2024-01-23 紫光云技术有限公司 Public cloud host migration arp table item updating method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143068A (en) * 2011-03-01 2011-08-03 华为技术有限公司 Method, device and system for learning MAC (Media Access Control) address
CN102148715A (en) * 2011-05-17 2011-08-10 杭州华三通信技术有限公司 Method and device for virtual network configuration migration
CN102412978A (en) * 2010-09-21 2012-04-11 杭州华三通信技术有限公司 Method for carrying out network configuration for VM and system thereof
CN102571416A (en) * 2011-12-12 2012-07-11 杭州华三通信技术有限公司 Positioning method and device for virtual machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102412978A (en) * 2010-09-21 2012-04-11 杭州华三通信技术有限公司 Method for carrying out network configuration for VM and system thereof
CN102143068A (en) * 2011-03-01 2011-08-03 华为技术有限公司 Method, device and system for learning MAC (Media Access Control) address
CN102148715A (en) * 2011-05-17 2011-08-10 杭州华三通信技术有限公司 Method and device for virtual network configuration migration
CN102571416A (en) * 2011-12-12 2012-07-11 杭州华三通信技术有限公司 Positioning method and device for virtual machine

Also Published As

Publication number Publication date
CN102821023A (en) 2012-12-12

Similar Documents

Publication Publication Date Title
CN102821023B (en) A kind of method and device of VLAN configuration dynamic migration
US9294349B2 (en) Host traffic driven network orchestration within data center fabric
US11095504B2 (en) Initializing network device and server configurations in a data center
CN105247826B (en) The network function of the network equipment virtualizes
CN105453487B (en) Method, apparatus and medium for the dual-homed deployment in data center environment
CN103930873B (en) The configuration of the interface based on dynamic strategy for virtualized environment
US10203972B2 (en) Framework for networking and security services in virtual networks
CN107113219B (en) System and method for supporting VLAN tagging in a virtual environment
CN112398676B (en) Vendor-independent profile-based modeling of service access endpoints in a multi-tenant environment
US20160315811A1 (en) Provisioning services in legacy mode in a data center network
US20150229641A1 (en) Migration of a security policy of a virtual machine
CN109716717A (en) From software-defined network controller management virtual port channel switching equipment peer-to-peer
US9641389B2 (en) Method and system for recovering from network disconnects by cloning a virtual port
CN102316001B (en) Virtual network connection configuration realizing method and network equipment
US20190109780A1 (en) Routing information validation in sdn environments
Matias et al. An OpenFlow based network virtualization framework for the cloud
KR20140057553A (en) - virtualization gateway between virtualized and non-virtualized networks
US11258661B2 (en) Initializing server configurations in a data center
US11755762B2 (en) Attribute-based encryption for microservices
US9712455B1 (en) Determining availability of networking resources prior to migration of a server or domain
US11716250B2 (en) Network scale emulator
CN106899478A (en) The method that power test business realizes resource resilient expansion by cloud platform
CN115398872A (en) Dynamic cellular connection between hypervisor and virtual machine
US10374941B2 (en) Determining aggregation information
CN109005117A (en) Polymerization, device and the SDN network of network topology

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou science and Technology Development Zone, Zhejiang high tech park, No. six and road, No. 310

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address