CN102821023A - Method and device for dynamically migrating VLAN (virtual local area network) configuration - Google Patents

Method and device for dynamically migrating VLAN (virtual local area network) configuration Download PDF

Info

Publication number
CN102821023A
CN102821023A CN2012102792114A CN201210279211A CN102821023A CN 102821023 A CN102821023 A CN 102821023A CN 2012102792114 A CN2012102792114 A CN 2012102792114A CN 201210279211 A CN201210279211 A CN 201210279211A CN 102821023 A CN102821023 A CN 102821023A
Authority
CN
China
Prior art keywords
virtual machine
physical
migration
physical server
moving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012102792114A
Other languages
Chinese (zh)
Other versions
CN102821023B (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

Images

Landscapes

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

Abstract

The invention provides a method and device for dynamically migrating VLAN (virtual local area network) configuration. The method comprises the following steps of: storing virtual machine ID and corresponding VLAN configuration information in a network management system in advance; transmitting the VLAN configuration of a virtual machine to an upstream physical switch corresponding to a migrated physical server of the virtual machine when the network management system senses out a network migration event of the virtual machine, wherein the migrated physical server transmits an RARP (reverse address resolution protocol) message so as to update ARP tables of all the upstream physical switches after the migration of the virtual machine is finished; and if the migration event is finished before the network management system finishes transmitting the VLAN configuration, the network management system ages the ARP table on a physical switch by an SNMP (simple network management protocol) or command line so as to update the ARP tables of all the upstream physical switches of the migrated physical server. According to the invention, the VLAN configuration of the virtual machine can be migrated dynamically along with the migration of the virtual machine.

Description

A kind of method and device of VLAN configuration dynamic migration
Technical field
The present invention relates to data communication technology field, relate in particular to a kind of under virtualized environment the method and the device of VLAN configuration dynamic migration along with the migration of virtual machine.
Background technology
Intel Virtualization Technology more and more comes into one's own at present, a lot of manufacturers produce of industry a lot of virtual machine products, like VMWare, HyperV, KVM etc.The user can be on physical server virtual a plurality of main frames, supply different user to use.When main frame virtual on certain physical server is too much, inadequate resource will take place, move situation slowly.For fear of the generation of this situation, each manufacturer all provides the function of virtual machine (vm) migration, with virtual machine from the bigger server migration of load to the little server of load, and then realize making full use of of resource.
In the network application of reality, from network security and otherwise consideration, enterprise generally can dispose different VLAN as required on different virtual machines, so that the virtual machine access external network is done certain restriction.Through above configuration, realize safeguard protection to a certain extent to virtual network.
Yet, when migration takes place in virtual machine, if the VLAN configuration that does not have pre-configured this virtual machine to use on the purpose switch of virtual machine (vm) migration, can cause virtual machine (vm) migration to be accomplished after, this virtual machine can't be visited proper network.
Summary of the invention
In view of this; The present invention provides a kind of method and device of VLAN configuration dynamic migration; Through the present invention; The VLAN configuration that need not be on the purpose switch of virtual machine (vm) migration pre-configured this virtual machine uses, the VLAN configuration meeting of said virtual machine is along with migration is accomplished in the migration of virtual machine dynamically.
For realizing the object of the invention, implementation of the present invention is specific as follows:
A kind of method of VLAN configuration dynamic migration; Be applied in the network system that comprises two physical servers and ascending physical signal switch formation thereof at least; Wherein said every physical server can be as required, virtually turns to a plurality of different virtual machines, and wherein said method comprises:
Step 1, in network management system the in advance ID of storage virtual machine and the corresponding relation between the VLAN configuration information;
Step 2, when network management system perceives the network migration incident of virtual machine, the ascending physical signal switch that the physical server of moving into to virtual machine is corresponding issues the VLAN configuration of this virtual machine.
Further, the corresponding ascending physical signal switch of physical server that said step 2 network management system is moved into to virtual machine issues the VLAN configuration information of this virtual machine, is specially:
Said network management system is obtained ID and the id information of the physical server of moving into of the virtual machine of migration according to the migration event of virtual machine; Said network management system further obtains the corresponding VLAN configuration information of this virtual machine according to the ID of this virtual machine; The network equipment topological relation of searching storage according to the id information of the physical server of moving into obtains the ascending physical signal switch corresponding port of this physical server of moving into, and then the VLAN configuration information of this virtual machine is handed down on the corresponding ascending physical signal switch corresponding port of the physical server of moving into.
Further, said step 2 network management system issues the migration action completion of the VLAN configuration information of this migration virtual machine prior to virtual machine to the ascending physical signal switch corresponding port of the physical server of moving into.And after virtual machine (vm) migration is accomplished; The physical server of moving into further sends the RARP message to its gateway physical switches; Wherein carry IP address and the mac address information of virtual machine VM1; Make local edge switch, gateway switch and between the ARP table of all physical switches be able to upgrade, and then make all ascending physical signal switches of the physical server that this is moved into all get access to the latest configuration of this virtual machine VM1.
Further; If after virtual machine (vm) migration is accomplished; Said step 2 network management system just issues the VLAN configuration information of the virtual machine of migration to the corresponding port of ascending physical signal switch of the physical server of moving into; At this moment, network management system further calculates the information of the gateway switch at the physical server place of moving into through network topology, and through the ARP table on SNMP or the aging gateway physical switches of order line.Said gateway physical switches is after the ARP table is aging; Further the edge switch to the physical server place of moving into sends probe messages; After the message of receiving edge switch is replied; Show that the ARP table on said edge switch and gateway switch and all physical switches between them all is able to upgrade, all got access to the latest position of the virtual machine of moving into, said virtual machine VM1 can access external network.
Further, said virtual machine ID is specially the MAC Address of this virtual machine, the information that IP address or other can this virtual machines of unique identification.
The present invention provides a kind of device of VLAN configuration dynamic migration simultaneously; Said device is applied in the network system that comprises two physical servers and ascending physical signal switch formation thereof at least; Wherein said every physical server can be as required; Virtually turn to a plurality of different virtual machines, it is characterized in that said device comprises:
Logging modle is used for the ID of the prior storage virtual machine of said device and the corresponding relation between the VLAN configuration information;
Issue module, be used for after said device perceives the network migration incident of virtual machine, the ascending physical signal switch that the physical server of moving into to virtual machine is corresponding issues the VLAN configuration information of this virtual machine.
Further, saidly issue the VLAN configuration information that the corresponding ascending physical signal switch of physical server that module moves into to virtual machine issues this virtual machine, be specially:
Said device obtains ID and the id information of the physical server of moving into of the virtual machine of migration according to the migration event of virtual machine; Said device further obtains the corresponding VLAN configuration information of this virtual machine according to the ID of this virtual machine; The network equipment topological relation of searching storage according to the id information of the physical server of moving into obtains the ascending physical signal switch corresponding port of this physical server of moving into, and then the VLAN configuration information of this virtual machine is handed down on the corresponding ascending physical signal switch corresponding port of the physical server of moving into through issuing module.
Further, the said module that issues issues the migration action completion of the VLAN configuration information of this migration virtual machine prior to virtual machine to the ascending physical signal switch corresponding port of the physical server of moving into.And after virtual machine (vm) migration is accomplished; The physical server of moving into further sends the RARP message to its gateway physical switches; Wherein carry IP address and the mac address information of virtual machine VM1; Make local edge switch, gateway switch and between the ARP table of all physical switches be able to upgrade, and then make all ascending physical signal switches of the physical server that this is moved into all get access to the latest configuration of this virtual machine VM1.
Further; If after virtual machine (vm) migration is accomplished; Saidly issue module just issues VLAN configuration information from the virtual machine of migration to the corresponding port of ascending physical signal switch of the physical server of moving into; At this moment, said device further calculates the information of the gateway switch at the physical server place of moving into through network topology, and through the ARP table on SNMP or the aging gateway physical switches of order line.Said gateway physical switches is after the ARP table is aging; Further the edge switch to the physical server place of moving into sends probe messages; After the message of receiving edge switch is replied; Show that the ARP table on said edge switch and gateway switch and all physical switches between them all is able to upgrade, all got access to the latest position of the virtual machine of moving into, said virtual machine VM1 can access external network.
Further, said virtual machine ID is specially the MAC Address of this virtual machine, the information that IP address or other can this virtual machines of unique identification.。
Compare with existing technical scheme; The present invention is through in virtual machine generation transition process; The virtual machine of migration and the purpose switch of moving into take place through the migration event perception in network management system; Said network management system is through in time issuing the VLAN configuration of this virtual machine to this virtual machine place purpose switch, after guaranteeing that virtual machine (vm) migration is accomplished, the RARP message that the physical server at virtual machine place sends can normally pass through; ARP table on the ascending physical signal switch of this physical server correspondence is able to upgrade, so that virtual function normal access network.
Description of drawings
Fig. 1 is that the migration sketch map takes place virtual machine under the present invention's application scenarios.
Fig. 2 is the method flow diagram of VLAN configuration dynamic migration provided by the invention.
Fig. 3 is the device sketch map of VLAN configuration dynamic migration provided by the invention.
Embodiment
In order to realize the object of the invention, the core concept that the present invention adopts is: prior storage virtual machine ID and corresponding VLAN configuration information in network management system; When network management system perceives the network migration incident of virtual machine; The ascending physical signal switch that the physical server of moving into to virtual machine is corresponding issues the VLAN configuration of this virtual machine; After virtual machine (vm) migration is accomplished; The physical server of moving into through send the RARP message make local edge switch, gateway switch and between the ARP table of all physical switches be able to upgrade, and then make all ascending physical signal switches of the physical server that this is moved into all get access to the latest configuration of this virtual machine.Because the ARP of the virtual machine normal access network on all ascending physical signal switches of the physical server of moving into table is able to upgrade, thereby virtual machine can the normal access network.
For making technical scheme of the present invention clear more and clear, specify below in conjunction with the specific embodiment of the invention.As shown in Figure 2, be the method flow diagram of VLAN configuration dynamic migration of the present invention.Wherein said method is applied in and comprises at least in the network system that two physical servers and ascending physical signal switch thereof constitute, and wherein said every physical server can be as required, virtually turns to a plurality of different virtual machines.Mainly comprise the steps:
Step 1, in network management system the in advance ID of storage virtual machine and the corresponding relation between the VLAN configuration information.
Particularly, in embodiments of the present invention, network management system can obtain the corresponding relation between each virtual machine ID and VLAN configuration information through modes such as polls.Wherein said virtual machine ID specifically can be the MAC Address of this virtual machine, the information that IP address or other can this virtual machines of unique identification.Behind the ID and the corresponding relation between the VLAN configuration information that obtain all virtual machines, network management system also needs further this corresponding relation of storage, as storing through modes such as forms.
The VLAN configuration information corresponding with VM1 shown in Figure 1 is that VLAN1 is an example, and network management system is after obtaining this corresponding relation, with the ID of record VM 1 and the corresponding relation between the VLAN1 configuration information.
Step 2, when network management system perceives the network migration incident of virtual machine, the ascending physical signal switch that the physical server of moving into to virtual machine is corresponding issues the VLAN configuration of this virtual machine.
Particularly; When resource in certain the physical server running (comprise CPU, internal memory, disk and network handle up etc.) bottleneck occurs or breaks down; Need be to other physical server with the virtual machine (vm) migration that moves on this physical server, thus reach the purpose of load balancing and efficent use of resources.When migration took place virtual machine, network management system can detect this migration event, directly obtained ID and the id information of the physical server of moving into of the virtual machine of migration then according to this migration event.Said network management system obtains the corresponding VLAN configuration information of this virtual machine according to the ID of this virtual machine, and the network equipment topological relation of searching storage according to the id information of the physical server of moving into obtains the ascending physical signal switch corresponding port of this physical server of moving into.Then the VLAN configuration information with this virtual machine is handed down on the ascending physical signal switch corresponding port of the physical server correspondence of moving into.
Need to prove that in order to realize the present invention, the preferred implementation VLAN configuration information that to be said network management system issue this migration virtual machine to the ascending physical signal switch corresponding port of the physical server of moving into will be accomplished prior to the migration of virtual machine.Like this; After virtual machine (vm) migration is accomplished; The physical server of moving into sends RARP (Reverse Address Resolution Protocol to its gateway physical switches; Reverse address resolution protocol) message; Wherein carry the information such as IP address and MAC Address of virtual machine, make local edge switch, gateway switch and between the ARP table of all physical switches be able to upgrade, and then make all ascending physical signal switches of the physical server that this is moved into all get access to the latest configuration of this virtual machine.
If after virtual machine (vm) migration is accomplished; Said network management system is just accomplished the VLAN configuration information that issues the virtual machine of migration to the corresponding port of ascending physical signal switch of the physical server of moving into; At this moment, the RARP message can't be through the ascending physical signal switch of the physical server of moving into.As the other a kind of implementation among the present invention, network management system can calculate the information of the gateway switch at the physical server place of moving into through network topology.Further; Said network management system is through the ARP table on SNMP or the aging gateway physical switches of order line; And through the edge switch transmission probe messages of said gateway physical switches to the physical server place of moving into; After the message of receiving edge switch is replied; Show that the ARP table on said edge switch and gateway switch and all physical switches between them all is able to upgrade, all got access to the latest position of virtual machine, said virtual machine and then can access external network.
Be example still with application scenarios shown in Figure 1; If bottleneck appears in physical server A resource in running; At this moment; Need the VM 1 on this physical server A is moved on the physical server B, at this moment, network management system can obtain the ID (for example being the mac address information of this virtual machine) of this VM 1 according to the migration event of VM 1 and the id information of the physical server B that moves into.Further obtain the corresponding VLAN configuration information VLAN1 of this VM 1 according to the id information of this VM 1, the network equipment topological relation of searching storage according to the id information of physical server B obtains ascending physical signal switch (the Edge Switch 2) port Ethernet 2/1 of physical server B.At last, the said network management system VLAN configuration information VLAN1 that the VM1 that obtains is corresponding is handed down to corresponding ascending physical signal switch (the Edge Switch 2) port Ethernet 2/1 of physical server B of moving into.
When the VLAN configuration information VLAN1 that issues VM1 to corresponding ascending physical signal switch (Edge Switch2) port Ethernet 2/1 of the physical server B that moves into when network management system accomplishes prior to the virtual machine (vm) migration action; With application scenarios shown in Figure 1 is example; After virtual machine VM1 accomplishes migration; The physical server B that moves into further sends RARP (Reverse Address Resolution Protocol to its up gateway physical switches; Reverse address resolution protocol) message; In this RARP message, carry the VLAN configuration information VLAN1 of this virtual machine; Make local edge switch (Edge Switch2), gateway switch and between all physical switches (not shown) obtain the VLAN configuration information of this virtual machine through study, and make ARP table separately be able to upgrade, and then make all ascending physical signal switches of the physical server B that this is moved into all get access to the latest configuration of this virtual machine.
If after virtual machine (vm) migration is accomplished; Said network management system is just accomplished the VLAN configuration information that issues the virtual machine of migration to the corresponding port of ascending physical signal switch of the physical server B that moves into; At this moment, the RARP message can't be through the edge switch (Edge Switch 2 as shown in fig. 1) of moving into.As the other a kind of implementation among the present invention, network management system at first calculates the information of the gateway switch at the physical server B place of moving into through network topology.Further; Said network management system is through the ARP table on SNMP or aging this gateway physical switches of order line; And through edge switch (Edge Switch2) the transmission probe messages of said gateway physical switches to the physical server B place of moving into; After the message of receiving edge switch Edge switch is replied; Show that the ARP table on said edge switch and gateway switch and all physical switches between them all is able to upgrade, all got access to the latest position of virtual machine VM1, said virtual machine VM1 can access external network.
Through two concrete embodiment said method is described in detail below.
Embodiment 1
As shown in Figure 1, virtual machine 1 (VM1) passes through the ethernet1/1 mouth that VLAN1 inserts edge switch (Edge Switch 1) before the migration on physical server A, thus accesses network.It is VLAN1 that network management system becomes to allow the VLAN that passes through with the ethernet1/1 port arrangement, then disposes on the ethernet2/1 port of switch (Edge Switch 2) on the edge of not allow VLAN1 to pass through.
When physical server A excess load, need VM 1 be moved on the physical server B.After migration event took place, network management system can perceive two kinds of message in different phase, and one is to move to carry out, and another is that migration is accomplished, and wherein these two kinds of message are sent by physical server B.
After network management system perceives the ongoing message of migration (migration event); Inquire about the database of self storing; Obtain VLAN 1 configuration information of this VM1 through the ID of VM1, the network equipment topological relation of searching storage according to the ID of physical server B obtains ascending physical signal switch (the Edge Switch 2) port Ethernet 2/1 of physical server B.At last, the said network management system VLAN configuration information VLAN1 that the VM1 that obtains is corresponding is handed down to corresponding ascending physical signal switch (the Edge Switch 2) port Ethernet 2/1 of physical server B of moving into.
Said network management system is further monitored the message that migration is accomplished, and after physical server B sends the message that migration accomplishes, in the LAN at its place, sends the RARP message, makes each physical switches of local area network (LAN) upgrade ARP table separately.
The ARP table of edge switch 2 and up all physical switches thereof is able to upgrade, and has got access to the latest position of virtual machine 1, and virtual machine 1 can the normal access network.
Need to prove; In the present embodiment, require network management system will accomplish prior to the virtual machine (vm) migration action to the VLAN configuration information VLAN1 that corresponding ascending physical signal switch (the Edge Switch 2) port Ethernet 2/1 of the physical server B that moves into issues VM1.Otherwise the RARP message of physical server B can't pass through edge switch 2, can only wait ARP table on the edge switch aging after, could generate new ARP and show, VM1 during this period can't accesses network.
Embodiment 2
As shown in Figure 1, virtual machine 1 (VM1) passes through the ethernet1/1 mouth that VLAN1 inserts edge switch (Edge Switch 1) before the migration on physical server A, thus accesses network.It is VLAN1 that network management system becomes to allow the VLAN that passes through with the ethernet1/1 port arrangement, then disposes on the ethernet2/1 port of switch (Edge Switch 2) on the edge of not allow VLAN1 to pass through.
When physical server A excess load, need VM 1 be moved on the physical server B.After migration event took place, network management system can perceive two kinds of message in different phase, and one is to move to carry out, and another is that migration is accomplished, and wherein these two kinds of message are sent by physical server B.
Send the message of migration completion as physical server B after, said physical server B can send out the ARP table that RARP message removes to upgrade local each physical server in the LAN at its place.At this moment, because ethernet2/1 is configured to not allow VLAN1 to pass through, so RARP is dropped.
Perceive the message of migration completion when Network Management Equipment after; Inquire about the database of self storing; Obtain VLAN 1 configuration information of this VM1 through the ID of VM1, the network equipment topological relation of searching storage according to the ID of physical server B obtains ascending physical signal switch (Edge Switch2) port Ethernet 2/1 of physical server B.At last, the said network management system VLAN configuration information VLAN1 that the VM1 that obtains is corresponding is handed down to corresponding ascending physical signal switch (Edge Switch2) port Ethernet 2/1 of physical server B of moving into.With the trunk mouth is example, and said network management system is configured to the VLAN that the permission of ethernet2/1 is passed through with VLAN1.
Network management system further calculates the information of the gateway switch of the physical server B that VM1 moves into through topology.After accomplishing the VLAN configuration, network management system is through the ARP table of the virtual machine VM1 of SNMP and the aging gateway switch of order line (telnet/ssh) dual mode.With the command line mode is example, and network management system telnet issues the order of aging ARP to gateway switch.Behind the aging ARP table of said gateway switch, further send probe messages and give virtual machine VM1, if can detect virtual machine VM1, show that then virtual machine a can the normal access network.
Other physical switches ARP table of edge switch 2 and upper strata thereof is able to upgrade, and gets access to the latest position of virtual machine VM1, and virtual machine VM1 can the normal access network.
Compare with existing technical scheme; The present invention is through in virtual machine generation transition process; The virtual machine of migration and the physical switches of moving into take place through the migration event perception in network management system; And the corresponding ascending physical signal switch of the physical server of moving into to virtual machine issues the VLAN configuration of this virtual machine; After virtual machine (vm) migration is accomplished; The physical server of moving into through send the RARP message make local edge switch, gateway switch and between the ARP table of all physical switches be able to upgrade, and then all ascending physical signal switches of realizing the physical server that this is moved into get access to the latest configuration of this virtual machine, virtual function normal access network on all.
The present invention provides a kind of device of VLAN configuration dynamic migration simultaneously; Said device is applied in the network system that comprises two physical servers and ascending physical signal switch formation thereof at least; Wherein said every physical server can be as required, virtually turns to a plurality of different virtual machines.Said device comprises:
Logging modle is used for the ID of the prior storage virtual machine of said device and the corresponding relation between the VLAN configuration information.
Particularly, in embodiments of the present invention, said device can obtain the corresponding relation between each virtual machine ID and VLAN configuration information through modes such as polls.Wherein said virtual machine ID specifically can be the MAC Address of this virtual machine, the information that IP address or other can this virtual machines of unique identification.Behind the ID and the corresponding relation between the VLAN configuration information that obtain all virtual machines, network management device specifically can be stored through modes such as forms through the ID of this virtual machine of logging modle storage and the corresponding relation between the VLAN configuration information.
The VLAN configuration information corresponding with VM1 shown in Figure 1 is that VLAN1 is an example, and said device is behind the corresponding relation between ID that obtains VM 1 and VLAN1 configuration information, and storage is stored this corresponding relation through the mode of form on its logging modle.
Issue module, be used for after said device perceives the network migration incident of virtual machine, the ascending physical signal switch that the physical server of moving into to virtual machine is corresponding issues the VLAN configuration information of this virtual machine.
Particularly; When resource in certain the physical server running (comprise CPU, internal memory, disk and network handle up etc.) bottleneck occurs or breaks down; Need be to other physical server with the virtual machine (vm) migration that moves on this physical server, thus reach the purpose of load balancing and efficent use of resources.When migration took place virtual machine, said device can detect this migration event, directly obtained ID and the id information of the physical server of moving into of the virtual machine of migration then according to this migration event.Said device obtains the corresponding VLAN configuration information of this virtual machine according to the ID of this virtual machine, and the network equipment topological relation of searching storage according to the id information of the physical server of moving into obtains the ascending physical signal switch corresponding port of this physical server of moving into.Then the VLAN configuration information with this virtual machine is handed down on the ascending physical signal switch corresponding port of the physical server correspondence of moving into through issuing module.
Need to prove that in order to realize the present invention, preferred implementation is that the said module that issues will be accomplished prior to the migration of virtual machine to the VLAN configuration information that the ascending physical signal switch corresponding port of the physical server of moving into issues this migration virtual machine.Like this; After virtual machine (vm) migration is accomplished; The physical server of moving into sends RARP (Reverse Address Resolution Protocol to its gateway physical switches; Reverse address resolution protocol) message; Wherein carry the information such as IP address and MAC Address of virtual machine VM1, make local edge switch, gateway switch and between the ARP table of all physical switches be able to upgrade, and then make all ascending physical signal switches of the physical server that this is moved into all get access to the latest configuration of this virtual machine VM1.
If after virtual machine (vm) migration is accomplished; The said module that issues is just accomplished the VLAN configuration information that issues the virtual machine of migration to the corresponding port of ascending physical signal switch of the physical server of moving into; At this moment, the RARP message can't be through the edge switch (Edge Switch 2 as shown in fig. 1) of moving into.As the other a kind of implementation among the present invention, said device can calculate the information of the gateway switch at the physical server place of moving into through network topology.Further; Said network management system is through the ARP table on SNMP or the aging gateway physical switches of order line; And through the edge switch transmission probe messages of said gateway physical switches to the physical server place of moving into; After the message of receiving edge switch is replied; Show that the ARP table on said edge switch and gateway switch and all physical switches between them all is able to upgrade, all got access to the latest position of the virtual machine of moving into, said virtual machine of moving into can access external network.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being made, is equal to replacement, improvement etc., all should be included within the scope that the present invention protects.

Claims (14)

1. the method for VLAN configuration dynamic migration; Be applied in and comprise at least in the network system that two physical servers and ascending physical signal switch thereof constitute, wherein said every physical server can be as required, virtually turns to a plurality of different virtual machines; It is characterized in that said method comprises:
Step 1, in network management system the in advance ID of storage virtual machine and the corresponding relation between the VLAN configuration information;
Step 2, when network management system perceives the network migration incident of virtual machine, the ascending physical signal switch that the physical server of moving into to virtual machine is corresponding issues the VLAN configuration of this virtual machine.
2. the method for claim 1 is characterized in that, the corresponding ascending physical signal switch of physical server that said step 2 network management system is moved into to virtual machine issues the VLAN configuration information of this virtual machine, is specially:
Said network management system is obtained ID and the id information of the physical server of moving into of the virtual machine of migration according to the migration event of virtual machine; Said network management system further obtains the corresponding VLAN configuration information of this virtual machine according to the ID of this virtual machine; The network equipment topological relation of searching storage according to the id information of the physical server of moving into obtains the ascending physical signal switch corresponding port of this physical server of moving into, and then the VLAN configuration information of this virtual machine is handed down on the corresponding ascending physical signal switch corresponding port of the physical server of moving into.
3. method as claimed in claim 2 is characterized in that, said step 2 network management system issues the migration action completion of the VLAN configuration information of this migration virtual machine prior to virtual machine to the ascending physical signal switch corresponding port of the physical server of moving into.
4. method as claimed in claim 3; It is characterized in that; After virtual machine (vm) migration was accomplished, the physical server of moving into further sent the RARP message to its gateway physical switches, wherein carries IP address and the mac address information of virtual machine VM1; Make local edge switch, gateway switch and between the ARP table of all physical switches be able to upgrade, and then make all ascending physical signal switches of the physical server that this is moved into all get access to the latest configuration of this virtual machine VM1.
5. method as claimed in claim 2; It is characterized in that; If after virtual machine (vm) migration is accomplished, said step 2 network management system just issues the VLAN configuration information of the virtual machine of migration to the corresponding port of ascending physical signal switch of the physical server of moving into, at this moment; Network management system further calculates the information of the gateway switch at the physical server place of moving into through network topology, and through the ARP table on SNMP or the aging gateway physical switches of order line.
6. method as claimed in claim 5; It is characterized in that said gateway physical switches is after the ARP table is aging, further the edge switch to the physical server place of moving into sends probe messages; After the message of receiving edge switch is replied; Show that the ARP table on said edge switch and gateway switch and all physical switches between them all is able to upgrade, all got access to the latest position of the virtual machine of moving into, said virtual machine VM1 can access external network.
7. the method for claim 1 is characterized in that, said virtual machine ID is specially the MAC Address of this virtual machine, the information that IP address or other can this virtual machines of unique identification.
8. the device of VLAN configuration dynamic migration; Said device is applied in the network system that comprises two physical servers and ascending physical signal switch formation thereof at least; Wherein said every physical server can be as required; Virtually turn to a plurality of different virtual machines, it is characterized in that said device comprises:
Logging modle is used for the ID of the prior storage virtual machine of said device and the corresponding relation between the VLAN configuration information;
Issue module, be used for after said device perceives the network migration incident of virtual machine, the ascending physical signal switch that the physical server of moving into to virtual machine is corresponding issues the VLAN configuration information of this virtual machine.
9. device as claimed in claim 8 is characterized in that, saidly issues the VLAN configuration information that the corresponding ascending physical signal switch of physical server that module moves into to virtual machine issues this virtual machine, is specially:
Said device obtains ID and the id information of the physical server of moving into of the virtual machine of migration according to the migration event of virtual machine; Said device further obtains the corresponding VLAN configuration information of this virtual machine according to the ID of this virtual machine; The network equipment topological relation of searching storage according to the id information of the physical server of moving into obtains the ascending physical signal switch corresponding port of this physical server of moving into, and then the VLAN configuration information of this virtual machine is handed down on the corresponding ascending physical signal switch corresponding port of the physical server of moving into through issuing module.
10. device as claimed in claim 9 is characterized in that, the said module that issues issues the migration action completion of the VLAN configuration information of this migration virtual machine prior to virtual machine to the ascending physical signal switch corresponding port of the physical server of moving into.
11. device as claimed in claim 10; It is characterized in that; After virtual machine (vm) migration was accomplished, the physical server of moving into further sent the RARP message to its gateway physical switches, wherein carries IP address and the mac address information of virtual machine VM1; Make local edge switch, gateway switch and between the ARP table of all physical switches be able to upgrade, and then make all ascending physical signal switches of the physical server that this is moved into all get access to the latest configuration of this virtual machine VM1.
12. device as claimed in claim 9; It is characterized in that; If after virtual machine (vm) migration is accomplished, saidly issue module just issues VLAN configuration information from the virtual machine of migration to the corresponding port of ascending physical signal switch of the physical server of moving into, at this moment; Said device further calculates the information of the gateway switch at the physical server place of moving into through network topology, and through the ARP table on SNMP or the aging gateway physical switches of order line.
13. device as claimed in claim 12; It is characterized in that said gateway physical switches is after the ARP table is aging, further the edge switch to the physical server place of moving into sends probe messages; After the message of receiving edge switch is replied; Show that the ARP table on said edge switch and gateway switch and all physical switches between them all is able to upgrade, all got access to the latest position of the virtual machine of moving into, said virtual machine VM1 can access external network.
14. device as claimed in claim 1 is characterized in that, said virtual machine ID is specially the MAC Address of this virtual machine, the information that IP address or other can this virtual machines of unique identification.
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 true CN102821023A (en) 2012-12-12
CN102821023B 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)

Cited By (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
CN104243427A (en) * 2013-06-19 2014-12-24 日电(中国)有限公司 Virtual machine online migration method and data package transmission method and device
WO2016004874A1 (en) * 2014-07-09 2016-01-14 Hangzhou H3C Technologies Co., Ltd. Software defined network-based gateway migration processing
WO2016188438A1 (en) * 2015-05-27 2016-12-01 International Business Machines Corporation Updating networks with migration information for a virtual machine
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)
CN106878052A (en) * 2016-12-21 2017-06-20 新华三技术有限公司 A kind of customer shift method and device
CN107205058A (en) * 2016-03-16 2017-09-26 中兴通讯股份有限公司 A kind of media intervention control MAC Address processing method and processing device
CN107370679A (en) * 2017-07-20 2017-11-21 郑州云海信息技术有限公司 A kind of method and device for realizing migration process
CN109842692A (en) * 2018-11-13 2019-06-04 联想企业解决方案(新加坡)有限公司 VxLAN switch, system and method for obtaining host information in physical network
CN110401729A (en) * 2019-06-28 2019-11-01 苏州浪潮智能科技有限公司 A kind of cloud platform server network moving method, system, terminal and storage medium
CN115297055A (en) * 2022-07-25 2022-11-04 紫光云技术有限公司 Public cloud host migration arp table entry 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

Cited By (21)

* 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
US9571569B2 (en) 2012-12-13 2017-02-14 Huawei Technologies Co., Ltd. Method and apparatus for determining virtual machine migration
KR101857511B1 (en) * 2012-12-13 2018-06-20 후아웨이 테크놀러지 컴퍼니 리미티드 Method and apparatus for determining virtual machine migration
CN104243427A (en) * 2013-06-19 2014-12-24 日电(中国)有限公司 Virtual machine online migration method and data package transmission method and device
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)
WO2016004874A1 (en) * 2014-07-09 2016-01-14 Hangzhou H3C Technologies Co., Ltd. Software defined network-based gateway migration processing
CN105471740A (en) * 2014-07-09 2016-04-06 杭州华三通信技术有限公司 Gateway migration processing method and gateway migration processing device based on software defined network
US10243830B2 (en) 2014-07-09 2019-03-26 Hewlett Packard Enterprise Development Lp Software defined network-based gateway migation processing
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
WO2016188438A1 (en) * 2015-05-27 2016-12-01 International Business Machines Corporation Updating networks with migration information for a virtual machine
US10684882B2 (en) 2015-05-27 2020-06-16 International Business Machines Corporation Updating networks with migration information for a virtual machine
CN107205058A (en) * 2016-03-16 2017-09-26 中兴通讯股份有限公司 A kind of media intervention control MAC Address processing method and processing device
CN106878052A (en) * 2016-12-21 2017-06-20 新华三技术有限公司 A kind of customer shift method and device
CN107370679A (en) * 2017-07-20 2017-11-21 郑州云海信息技术有限公司 A kind of method and device for realizing migration process
CN109842692A (en) * 2018-11-13 2019-06-04 联想企业解决方案(新加坡)有限公司 VxLAN switch, system and method for obtaining host information in physical network
CN110401729A (en) * 2019-06-28 2019-11-01 苏州浪潮智能科技有限公司 A kind of cloud platform server network moving method, system, terminal and storage medium
CN110401729B (en) * 2019-06-28 2022-12-23 苏州浪潮智能科技有限公司 Cloud platform server network migration method, system, terminal and storage medium
CN115297055A (en) * 2022-07-25 2022-11-04 紫光云技术有限公司 Public cloud host migration arp table entry updating method
CN115297055B (en) * 2022-07-25 2024-01-23 紫光云技术有限公司 Public cloud host migration arp table item updating method

Also Published As

Publication number Publication date
CN102821023B (en) 2016-12-21

Similar Documents

Publication Publication Date Title
CN102821023A (en) Method and device for dynamically migrating VLAN (virtual local area network) configuration
US9294349B2 (en) Host traffic driven network orchestration within data center fabric
EP2866393B1 (en) Method and apparatus for determining virtual machine drifting
US9323554B2 (en) Method, device, and system for migrating configuration information during live migration of virtual machine
CN107070691B (en) Cross-host communication method and system of Docker container
EP3668011B1 (en) Method, apparatus, computer program product and system for implementing software-defined network sdn
US9525648B2 (en) Method for acquiring physical address of virtual machine
US8423632B2 (en) Method, network management center, and a related device for configuring a network policy for a virtual port
CN102316001B (en) Virtual network connection configuration realizing method and network equipment
US10091274B2 (en) Method, device, and system for controlling network device auto-provisioning
WO2015081766A1 (en) Sdn based virtual machine security policy migration system and method
CN102412978B (en) Method for carrying out network configuration for VM and system thereof
CN109981493B (en) Method and device for configuring virtual machine network
US9749182B2 (en) Method and apparatus for configuring network policy of virtual network
US20130315242A1 (en) Network Communication Method and Device
US10572291B2 (en) Virtual network management
JP2019525631A (en) Configuring forwarding policies
CN103607430A (en) Network processing method and system, and network control center
CN103152200B (en) Virtual machine migration method, switch, network management device and network system
CN103581324A (en) Cloud computing resource pool system and implement method thereof
CN105704042A (en) Message processing method, BNG and BNG cluster system
CN102571416B (en) Positioning method and device for virtual machine
CN103581325A (en) Cloud computing resource pool system and implement method thereof
US9130938B2 (en) Method, switch, and system for processing a message
CN103747115A (en) Method of discovering IP (Internet Protocol) address of virtual machine based on virtual network interface card

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
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.