CN102801715B - Method for virtual machine migration in network, gateway and system - Google Patents

Method for virtual machine migration in network, gateway and system Download PDF

Info

Publication number
CN102801715B
CN102801715B CN201210266467.1A CN201210266467A CN102801715B CN 102801715 B CN102801715 B CN 102801715B CN 201210266467 A CN201210266467 A CN 201210266467A CN 102801715 B CN102801715 B CN 102801715B
Authority
CN
China
Prior art keywords
gateway
virtual machine
address
instance
described virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210266467.1A
Other languages
Chinese (zh)
Other versions
CN102801715A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210266467.1A priority Critical patent/CN102801715B/en
Publication of CN102801715A publication Critical patent/CN102801715A/en
Application granted granted Critical
Publication of CN102801715B publication Critical patent/CN102801715B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

An embodiment of the invention provides a method for virtual machine migration in a network. The method comprises: before a virtual machine migrating from a second entity gateway to a first entity gateway, the first entity gateway configuring a virtual gateway IP address; after the virtual machine migrating from a second entity gateway to a first entity gateway, the first entity gateway receiving a free address resolution protocol (ARP) message sent by the virtual machine, the free ARP message comprising an IP address of the virtual machine and an MAC address; the first entity gateway generating routing of the virtual machine according to the IP address of the virtual machine; and the first entity gateway issuing the routing of the virtual machine to a data center. The embodiment of the invention also provides an entity gateway and a system for virtual machine migration. Through the technical scheme provided in the embodiment, when the virtual machine migrates, default gateway configured in the virtual machine does not need reconfiguration. The virtual machine cannot aware changes of the gateway, so that a problem of flow interruption in a process of the virtual machine migration caused by gateway changing is prevented.

Description

The method of virtual machine (vm) migration, gateway and system in a kind of network
Technical field
The embodiment of the present invention relates to communication technical field, particularly relates to the method for virtual machine (vm) migration in a kind of network, gateway and system.
Background technology
Virtual machine (English full name is Virtual Machine, and English abbreviation is VM) be by software simulation have complete hardware system function, the complete computer operated in a completely isolated environment.Wherein, application virtual machine is needed to move (migration) technology in some cases.The Full-virtualization that virtual machine migration technology utilizes server, storage and network to be connected, can move on to another station server from a station server at once by the whole virtual machine run.
Service disconnection is avoided in an important requirement of virtual machine (vm) migration, after in three-layer network, virtual machine (vm) migration faces virtual machine (vm) migration, (English full name is Internet Protocol to the Internet protocol of the new gateway that virtual machine is corresponding, English abbreviation is IP) address may be different with virtual machine default gateway ip address, the default gateway adjusting virtual machine is needed after such virtual machine (vm) migration, in individual process, the customer flow of virtual machine there will be interruption, cause virtual machine cannot normally and data center carry out network service.
Summary of the invention
Embodiments provide the method for virtual machine (vm) migration in a kind of network, gateway and system, to solve in virtual machine (vm) migration process because gateway changes the problem that the virtual machine that causes and data center traffic interrupt.
First aspect, provide the method for virtual machine (vm) migration in a kind of network, described network comprises first instance gateway, second instance gateway, data center and virtual machine, described virtual machine is connected with described data center by described second instance gateway, configuration virtual gateway ip address on described second instance gateway, described second instance gateway preserves described virtual gateway IP address and virtual mac address corresponding relation, described virtual machine default gateway ip address is described virtual gateway IP address, and described method comprises:
Before described virtual machine is from described second instance gateway transport to described first instance gateway, virtual gateway IP address described in described first instance gateway configuration, described first instance gateway sets up the corresponding relation of described virtual gateway IP address and described virtual mac address;
After described virtual machine is from described second instance gateway transport to described first instance gateway, described first instance gateway receives the free ARP message that described virtual machine sends, and described gratuitous ARP packet comprises IP address and the MAC Address of described virtual machine;
Described first instance gateway generates the route of described virtual machine according to the IP address of described virtual machine;
Described first instance gateway to described data center issue described virtual machine by.
In the first possible implementation of described first aspect, the MAC Address for identify described first instance gateway and institute second instance gateway of described virtual mac address for planning in advance.
In the first possible implementation of described first aspect or described first aspect, additionally provide the implementation that the second of described first aspect is possible, described first instance gateway is only local preserves described virtual gateway IP address route, does not externally issue described virtual gateway IP address route.
In any one possible implementation aforementioned of described first aspect or described first aspect, described first instance gateway by BGP or IGP to described data center issue described virtual machine by.
Second aspect, provide a kind of first instance gateway, described network also comprises second instance gateway, data center and virtual machine, described virtual machine is connected with described data center by described second instance gateway, configuration virtual gateway ip address on described second instance gateway, described second instance gateway preserves described virtual gateway IP address and virtual mac address corresponding relation, and described virtual machine default gateway ip address is described virtual gateway IP address, and described first instance gateway comprises:
Dispensing unit, for before described virtual machine is from described second instance gateway transport to described first instance gateway, configures described virtual gateway IP address, and sets up the corresponding relation of described virtual gateway IP address and described virtual mac address;
Receiving element, for after described virtual machine is from described second instance gateway transport to described first instance gateway, receive the free ARP message that described virtual machine sends, described gratuitous ARP packet comprises address and the MAC Address of described virtual machine IP;
Generation unit, for generating the route of described virtual machine according to the address of described virtual machine IP;
Release unit, for issue to described data center described virtual machine by.
In a kind of possible implementation of described second aspect, described first instance gateway is Broadband Remote Access Server BRAS or business router SR or switch.
The third aspect, provide the system of virtual machine (vm) migration in a kind of network, it is characterized in that, described system comprises first instance gateway and virtual machine, and described virtual machine is connected with data center by second instance gateway, configuration virtual gateway ip address on described second instance gateway, described second instance gateway preserves described virtual gateway IP address and virtual mac address corresponding relation, described virtual machine default gateway ip address is described virtual gateway IP address, and wherein, described first instance gateway comprises:
Dispensing unit, for before described virtual machine is from described second instance gateway transport to described first instance gateway, configures described virtual gateway IP address, and sets up the corresponding relation of described virtual gateway IP address and described virtual mac address;
Receiving element, for after described virtual machine is from described second instance gateway transport to described first instance gateway, receive the free ARP message that described virtual machine sends, described gratuitous ARP packet comprises IP address and the MAC Address of described virtual machine;
Generation unit, for generating the route of described virtual machine according to the IP address of described virtual machine;
Release unit, for issuing described virtual machine to described data center;
Described virtual machine comprises:
Transmitting element, for after described virtual machine is from described second instance gateway transport to described first instance gateway, send gratuitous ARP packet to described first instance gateway, described gratuitous ARP packet comprises IP address and the MAC Address of described virtual machine.
In a kind of possible implementation of the described third aspect, described first instance gateway is Broadband Remote Access Server BRAS or business router SR or switch.
To sum up, by the technical scheme that the embodiment of the present invention provides, the described first instance gateway be separated physically and described second instance gateway configure identical described virtual gateway IP address respectively, described first instance gateway and described second instance net virtual are turned to a virtual gateway, like this when described virtual machine (vm) migration, the default gateway of the configuration on described virtual machine does not need to reconfigure, virtual machine aware changes less than gateway, avoids in virtual machine (vm) migration process because gateway changes the problem of the flow interrupt caused as far as possible.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow schematic diagram of virtual machine (vm) migration in a kind of network of providing of the embodiment of the present invention;
Fig. 2 is the system schematic of virtual machine (vm) migration in a kind of network of providing of the embodiment of the present invention;
Fig. 3 is the system schematic of virtual machine (vm) migration in the another kind of network that provides of the embodiment of the present invention.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
See Fig. 1, embodiments provide the method for virtual machine (vm) migration in a kind of network, described network comprises first instance gateway, second instance gateway and virtual machine, described virtual machine is connected with data center by described second instance gateway, configuration virtual gateway ip address on described second instance gateway, described second instance gateway preserves described virtual gateway IP address and virtual mac address corresponding relation, described virtual machine default gateway ip address is described virtual gateway IP address, described method comprises, and described method comprises following content:
102, before described virtual machine is from described second instance gateway transport to described first instance gateway, virtual gateway IP address described in described first instance gateway configuration, described first instance gateway sets up the corresponding relation of described virtual gateway IP address and described virtual mac address;
Network manager is when carrying out virtual machine (vm) migration planning, before described virtual machine needs from described second instance gateway transport to described first instance gateway, described first instance gateway also configures described virtual gateway IP address, in this process, may occur that in a period of time, described first instance gateway and described second instance gateway are configured with described virtual gateway IP address simultaneously, in order to prevent occurring address conflict in this time period in network, the route that the described virtual gateway IP address that described second instance gateway configures generates only is kept in described second instance gateway, described second instance gateway does not externally issue route corresponding to described virtual gateway IP address.Alternatively, also the route can externally not issuing described virtual gateway IP address corresponding by described first instance gateway is avoided occurring address conflict, alternatively, the Host routes also can externally not issuing described virtual gateway IP address corresponding by described first instance gateway and described second instance gateway is avoided occurring address conflict.
Alternatively, configuring described virtual machine default gateway ip address is that described virtual gateway address can be configured by the mode of static configuration default route, also by Dynamic Host Configuration Protocol server (English full name is Dynamic Host Configuration Protocol Server, and English abbreviation is DHCP Server), described default gateway can be advertised to described virtual machine according to the network planning.
Alternatively, can in the same network segment for the ease of network unified management and the described virtual gateway IP address of maintenance and described virtual machine IP address.
Alternatively, the MAC Address for identify described first instance gateway and institute second instance gateway of described virtual mac address for planning in advance, described first instance gateway receives target MAC (Media Access Control) address when being the message of described virtual mac address, and the message being described first instance gateway according to destination processes.
104, after described virtual machine is from described second instance gateway transport to described first instance gateway, described first instance gateway receives the free ARP message that described virtual machine sends, and described gratuitous ARP packet comprises described virtual machine IP address and MAC Address;
Described virtual machine specifically refers to that from described second instance gateway transport to described first instance gateway described virtual machine was connected with data center from being originally connected to become with data center by described second instance gateway by described first instance gateway.Described virtual machine is when visit data center, first be connected with data center by described second instance gateway, described virtual machine preserves the route arriving described virtual gateway IP address, and preserve the described virtual MAC address of corresponding described virtual gateway IP, when described virtual machine is from described second instance gateway transport to described first instance gateway, described virtual machine is connected with data center by described first instance gateway.After described virtual machine is connected with data center by described first instance gateway, the default gateway ip address of described virtual machine configuration does not upgrade, still be described virtual gateway IP address, because first instance gateway described after described virtual machine (vm) migration does not preserve the route arriving described virtual machine, described virtual machine can by the mode that sends gratuitous ARP packet by the IP address notification of described virtual machine to described first instance gateway.
106, described first instance gateway generates the route of described virtual machine according to described virtual machine IP address.
Described first instance gateway is after receiving described gratuitous ARP packet, resolve the IP address and mac address information that obtain described virtual machine, and the interface message receiving described gratuitous ARP packet can be known, described first instance gateway can generate according to the information of above-mentioned acquisition the virtual machine that arrives described virtual machine by.
108, described first instance gateway to described data center issue described virtual machine by.
Described first instance gateway issues described virtual machine by can (English full name is Border Gateway Protocol by Border Gateway Protocol to described data center, English abbreviation is BGP) or Interior Gateway Protocol (English full name is Interior Gateway Protocol, and English abbreviation is IGP) come.By by described virtual machine by being published to described data center, can realize carrying out communication between described virtual machine and described data center, alternatively, described first instance gateway can also by described virtual machine by being published to other equipment in network, like this, described virtual machine can also be realized further to communicate with other equipment in network.
Visible, by the technical scheme that the embodiment of the present invention provides, the described first instance gateway be separated physically and described second instance gateway configure identical described virtual gateway IP address respectively, described first instance gateway and described second instance net virtual are turned to a virtual gateway, like this when described virtual machine (vm) migration, the default gateway of the configuration on described virtual machine does not need to reconfigure, virtual machine aware changes less than gateway, avoids in virtual machine (vm) migration process because gateway changes the problem of the flow interrupt caused as far as possible.
See Fig. 2, embodiments provide the system of virtual machine (vm) migration in a kind of network, described system comprises first instance gateway 202 and virtual machine 212, described virtual machine 212 is connected with data center by second instance gateway, configuration virtual gateway ip address on described second instance gateway, described second instance gateway preserves described virtual gateway IP address and virtual mac address corresponding relation, described virtual machine default gateway ip address is described virtual gateway IP address, wherein, described first instance gateway 202 comprises:
Dispensing unit 204, for before described virtual machine 212 is from described second instance gateway transport to described first instance gateway, configures described virtual gateway IP address, and sets up the corresponding relation of described virtual gateway IP address and described virtual mac address;
Receiving element 206, for after described virtual machine 212 is from described second instance gateway transport to described first instance gateway 202, receive the free ARP message that described virtual machine 212 sends, described gratuitous ARP packet comprises IP address and the MAC Address of described virtual machine 212;
Generation unit 208, for generating the route of described virtual machine according to the IP address of the described virtual machine 212 in the described gratuitous ARP packet of described receiving element 206 reception;
Release unit 210, for issue to described data center described generation unit 208 generate described virtual machine by;
Described virtual machine 212 comprises:
Transmitting element 214, for after described virtual machine 404 is from described second instance gateway transport to described first instance gateway 202, send gratuitous ARP packet to described first instance gateway 202, described gratuitous ARP packet comprises IP address and the MAC Address of described virtual machine 212.
Network manager is when carrying out virtual machine (vm) migration planning, before described virtual machine 212 needs from described second instance gateway transport to described first instance gateway 202, also described virtual gateway IP address is configured by described dispensing unit 204 at described first instance gateway 202, in this process, may occur that in a period of time, described first instance gateway 202 and described second instance gateway are configured with described virtual gateway IP address simultaneously, in order to prevent occurring address conflict in this time period in network, the route that the described virtual gateway IP address that described second instance gateway configures generates only is kept in described second instance gateway, described second instance gateway does not externally issue route corresponding to described virtual gateway IP address.Alternatively, also the route can externally not issuing described virtual gateway IP address corresponding by described first instance gateway 202 is avoided occurring address conflict, alternatively, the Host routes also can externally not issuing described virtual gateway IP address corresponding by described first instance gateway 202 and described second instance gateway is avoided occurring address conflict.
Alternatively, configuring described virtual machine 212 default gateway ip address is that described virtual gateway address can be configured by the mode of static configuration default route, also by Dynamic Host Configuration Protocol server DHCP Server, described default gateway can be advertised to described virtual machine according to the network planning.
Alternatively, the IP address for the ease of network unified management and the described virtual gateway IP address of maintenance and described virtual machine 212 can in the same network segment.
Alternatively, the MAC Address for identify described first instance gateway 202 and institute second instance gateway of described virtual mac address for planning in advance, described first instance gateway 202 receives target MAC (Media Access Control) address when being the message of described virtual mac address, and the message being described first instance gateway 202 according to destination processes.
Described virtual machine 212 specifically refers to that from described second instance gateway transport to described first instance gateway 202 described virtual machine 212 was connected with data center from being originally connected to become with data center by described second instance gateway by described first instance gateway 202.Described virtual machine 212 is when visit data center, first be connected with data center by described second instance gateway, described virtual machine 212 preserves the route arriving described virtual gateway IP address, and preserve the described virtual MAC address of corresponding described virtual gateway IP, when described virtual machine 212 is from described second instance gateway transport to described first instance gateway 202, described virtual machine is connected with data center by described first instance gateway 202.After described virtual machine is connected with data center by described first instance gateway 202, the default gateway ip address that described virtual machine 212 configures does not upgrade, still be described virtual gateway IP address, not do not preserve because described virtual machine 212 moves rear described first instance gateway 202 route arriving described virtual machine 212, described virtual machine 212 can by the mode that sends gratuitous ARP packet by the IP address notification of described virtual machine to described first instance gateway 202.After described receiving element 206 receives the free ARP message of described virtual machine transmission, resolve the IP address and mac address information that obtain described virtual machine, and the interface message receiving described gratuitous ARP packet can be known, described generation unit 208 generate according to above-mentioned information the virtual machine that arrives described virtual machine by, described release unit 210, by described virtual machine by being distributed to described data center, and then realize described data center and can carry out network service with described virtual machine 212, alternatively, described release unit 210 can also by described virtual machine by being published to other equipment in network, like this, described virtual machine 212 can also be realized further communicate with other equipment in network.
Described first instance gateway 202 issues described virtual machine by having been come by BGP or IGP to described data center.By by described virtual machine by being published to described data center, can realize carrying out communication between described virtual machine 212 and described data center.
Alternatively, described first instance gateway is Broadband Remote Access Server BRAS or business router SR or switch.
Alternatively, the dispensing unit 204 of the described first instance gateway 202 that provides of the embodiment of the present invention, receiving element 206, receiving element 206 and release unit 210 can merge into one or more unit.
Visible, by the technical scheme that the embodiment of the present invention provides, the described first instance gateway 202 be separated physically and described second instance gateway configure identical described virtual gateway IP address respectively, by a virtual gateway after described first instance gateway 202 and described second instance net virtual, like this when described virtual machine 212 moves, on described virtual machine, the default gateway of configuration of 212 does not need to reconfigure, virtual machine 212 perception changes less than gateway, avoid in virtual machine 212 transition process because gateway changes the problem of the flow interrupt caused as far as possible.
See Fig. 3, embodiments provide the system of virtual machine (vm) migration in another kind of network, described system comprises first instance gateway 302 and virtual machine 312, described virtual machine 312 is connected with data center by second instance gateway, configuration virtual gateway ip address on described second instance gateway, described second instance gateway preserves described virtual gateway IP address and virtual mac address corresponding relation, described virtual machine default gateway ip address is described virtual gateway IP address, wherein, described first instance gateway 302 comprises:
Configurator 304, for before described virtual machine is from described second instance gateway transport to described first instance gateway, configures described virtual gateway IP address, and sets up the corresponding relation of described virtual gateway IP address and described virtual mac address;
Receiver 306, for after described virtual machine is from described second instance gateway transport to described first instance gateway 302, receive the free ARP message that described virtual machine 312 sends, described gratuitous ARP packet comprises IP address and the MAC Address of described virtual machine 312;
Processor 308, also for generating the route of described virtual machine according to the IP address of the described virtual machine 312 in the described gratuitous ARP packet of described receiver 306 reception;
Transmitter 310, for issue to described data center described processor 304 generate described virtual machine by;
Described virtual machine 312 comprises:
Transmitter unit 314, for after described virtual machine 312 is from described second instance gateway transport to described first instance gateway 302, send gratuitous ARP packet to described first instance gateway 302, described gratuitous ARP packet comprises IP address and the MAC Address of described virtual machine 312
Network manager is when carrying out virtual machine (vm) migration planning, before described virtual machine 312 needs from described second instance gateway transport to described first instance gateway 302, also described virtual gateway IP address is configured by described configurator 304 at described first instance gateway 302, in this process, may occur that in a period of time, described first instance gateway 302 and described second instance gateway are configured with described virtual gateway IP address simultaneously, in order to prevent occurring address conflict in this time period in network, the route that the described virtual gateway IP address that described second instance gateway configures generates only is kept in described second instance gateway, described second instance gateway does not externally issue route corresponding to described virtual gateway IP address.Alternatively, also the route can externally not issuing described virtual gateway IP address corresponding by described first instance gateway 302 is avoided occurring address conflict, alternatively, the Host routes also can externally not issuing described virtual gateway IP address corresponding by described first instance gateway 302 and described second instance gateway is avoided occurring address conflict.
Alternatively, configuring described virtual machine default gateway ip address is that described virtual gateway address can be configured by the mode of static configuration default route, also by DHCP Server, described default gateway can be advertised to described virtual machine 312 according to the network planning.
Alternatively, can in the same network segment for the ease of network unified management and the described virtual gateway IP address of maintenance and described virtual machine IP address.
Alternatively, the MAC Address for identify described first instance gateway 302 and institute second instance gateway of described virtual mac address for planning in advance, described first instance gateway 302 receives target MAC (Media Access Control) address when being the message of described virtual mac address, and the message being described first instance gateway 302 according to destination processes.
Described virtual machine 312 specifically refers to that from described second instance gateway transport to described first instance gateway 302 described virtual machine 312 was connected with data center from being originally connected to become with data center by described second instance gateway by described first instance gateway 302.Described virtual machine 312 is when visit data center, first be connected with data center by described second instance gateway, described virtual machine 312 preserves the route arriving described virtual gateway IP address, and preserve the described virtual MAC address of corresponding described virtual gateway IP, when described virtual machine 312 is from described second instance gateway transport to described first instance gateway 302, described virtual machine 312 is connected with data center by described first instance gateway 302.After described virtual machine 312 is connected with data center by described first instance gateway 302, the default gateway ip address that described virtual machine 312 configures does not upgrade, still be described virtual gateway IP address, not do not preserve because described virtual machine 312 moves rear described first instance gateway 302 route arriving described virtual machine 312, described virtual machine 312 can by the mode that sends gratuitous ARP packet by the IP address notification of described virtual machine to described first instance gateway 302.After described receiver 306 receives the free ARP message of described virtual machine 312 transmission, resolve the IP address and mac address information that obtain described virtual machine, and the interface message receiving described gratuitous ARP packet can be known, described processor 308 generate according to above-mentioned information the virtual machine that arrives described virtual machine by, described transmitter 310, by described virtual machine by being distributed to described data center, and then realize described data center and can carry out network service with described virtual machine 312, alternatively, described release unit 310 can also by described virtual machine by being published to other equipment in network, like this, described virtual machine 312 can also be realized further communicate with other equipment in network.
Described first instance gateway 302 issues described virtual machine by having been come by BGP or IGP to described data center.By by described virtual machine by being published to described data center, can realize carrying out communication between described virtual machine 312 and described data center.
Alternatively, described first instance gateway is Broadband Remote Access Server BRAS or business router SR or switch.
Visible, by the technical scheme that the embodiment of the present invention provides, the described first instance gateway 302 be separated physically and described second instance gateway will configure respectively identical described virtual gateway IP address by a virtual gateway after described first instance gateway 302 and described second instance net virtual, like this when described virtual machine 312 moves, the default gateway of the configuration on described virtual machine 312 does not need to reconfigure, virtual machine 312 perception changes less than gateway, avoid in virtual machine 312 transition process because gateway changes the problem of the flow interrupt caused as far as possible.
Alternatively, the configurator 304 of above-mentioned first instance gateway 302, receiver 306, processor 308 and transmitter 310 can be integrated into one or more independently circuit or hardware, as: application-specific integrated circuit (ASIC) (English full name is Application Specific Integrated Circuit, and English abbreviation is ASIC).
Visible, by the technical scheme that the embodiment of the present invention provides, the described first instance gateway 202 be separated physically and described second instance gateway configure identical described virtual gateway IP address respectively, by a virtual gateway after described first instance gateway 202 and described second instance net virtual, like this when described virtual machine 212 moves, on described virtual machine, the default gateway of configuration of 212 does not need to reconfigure, virtual machine 212 perception changes less than gateway, avoid in virtual machine 212 transition process because gateway changes the problem of the flow interrupt caused as far as possible.
" first " in the first instance gateway mentioned in the embodiment of the present invention is only used to do name identification, does not represent first in order; " second " in second instance gateway is also only used to do name identification, does not represent second in order.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, foregoing routine can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: read-only memory (English full name is read-only memory, and English abbreviation is ROM), RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above embodiment is only in order to exemplary explanation technical scheme of the present invention, be not intended to limit; Although be described in detail the beneficial effect that the present invention and the present invention bring with reference to previous embodiment, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of the claims in the present invention.

Claims (8)

1. the method for virtual machine (vm) migration in a network, it is characterized in that, described network comprises first instance gateway, second instance gateway, data center and virtual machine, described virtual machine is connected with described data center by described second instance gateway, configuration virtual gateway ip address on described second instance gateway, described second instance gateway preserves described virtual gateway IP address and virtual mac address corresponding relation, described virtual machine default gateway ip address is described virtual gateway IP address, and described method comprises:
Before described virtual machine is from described second instance gateway transport to described first instance gateway, virtual gateway IP address described in described first instance gateway configuration, described first instance gateway sets up the corresponding relation of described virtual gateway IP address and described virtual mac address;
After described virtual machine is from described second instance gateway transport to described first instance gateway, described first instance gateway receives the free ARP message that described virtual machine sends, and described gratuitous ARP packet comprises IP address and the MAC Address of described virtual machine;
Described first instance gateway generates the route of described virtual machine according to the IP address of described virtual machine;
Described first instance gateway to described data center issue described virtual machine by.
2. method according to claim 1, is characterized in that, the MAC Address for identify described first instance gateway and institute second instance gateway of described virtual mac address for planning in advance.
3. method according to claim 1, is characterized in that, described first instance gateway is only local preserves described virtual gateway IP address route, does not externally issue described virtual gateway IP address route.
4. the method according to the arbitrary claim of claims 1 to 3, is characterized in that, described first instance gateway to described data center issue described virtual machine by, comprising:
Described first instance gateway by BGP or IGP to described data center issue described virtual machine by.
5. the first instance gateway in a network, it is characterized in that, described network also comprises second instance gateway, data center and virtual machine, described virtual machine is connected with described data center by described second instance gateway, configuration virtual gateway ip address on described second instance gateway, described second instance gateway preserves described virtual gateway IP address and virtual mac address corresponding relation, and described virtual machine default gateway ip address is described virtual gateway IP address, and described first instance gateway comprises:
Dispensing unit, for before described virtual machine is from described second instance gateway transport to described first instance gateway, configures described virtual gateway IP address, and sets up the corresponding relation of described virtual gateway IP address and described virtual mac address;
Receiving element, for after described virtual machine is from described second instance gateway transport to described first instance gateway, receive the free ARP message that described virtual machine sends, described gratuitous ARP packet comprises address and the MAC Address of described virtual machine IP;
Generation unit, for generating the route of described virtual machine according to the address of described virtual machine IP;
Release unit, for issue to described data center described virtual machine by.
6. first instance gateway according to claim 5, is characterized in that, described first instance gateway is Broadband Remote Access Server BRAS or business router SR or switch.
7. the system of virtual machine (vm) migration in a network, it is characterized in that, described system comprises first instance gateway and virtual machine, described virtual machine is connected with data center by second instance gateway, configuration virtual gateway ip address on described second instance gateway, described second instance gateway preserves described virtual gateway IP address and virtual mac address corresponding relation, and described virtual machine default gateway ip address is described virtual gateway IP address, wherein, described first instance gateway comprises:
Dispensing unit, for before described virtual machine is from described second instance gateway transport to described first instance gateway, configures described virtual gateway IP address, and sets up the corresponding relation of described virtual gateway IP address and described virtual mac address;
Receiving element, for after described virtual machine is from described second instance gateway transport to described first instance gateway, receive the free ARP message that described virtual machine sends, described gratuitous ARP packet comprises IP address and the MAC Address of described virtual machine;
Generation unit, for generating the route of described virtual machine according to the IP address of described virtual machine;
Release unit, for issuing described virtual machine to described data center;
Described virtual machine comprises:
Transmitting element, for after described virtual machine is from described second instance gateway transport to described first instance gateway, send gratuitous ARP packet to described first instance gateway, described gratuitous ARP packet comprises IP address and the MAC Address of described virtual machine.
8. the system of virtual machine (vm) migration according to claim 7, is characterized in that, described first instance gateway is Broadband Remote Access Server BRAS or business router SR or switch.
CN201210266467.1A 2012-07-30 2012-07-30 Method for virtual machine migration in network, gateway and system Active CN102801715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210266467.1A CN102801715B (en) 2012-07-30 2012-07-30 Method for virtual machine migration in network, gateway and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210266467.1A CN102801715B (en) 2012-07-30 2012-07-30 Method for virtual machine migration in network, gateway and system

Publications (2)

Publication Number Publication Date
CN102801715A CN102801715A (en) 2012-11-28
CN102801715B true CN102801715B (en) 2015-03-11

Family

ID=47200678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210266467.1A Active CN102801715B (en) 2012-07-30 2012-07-30 Method for virtual machine migration in network, gateway and system

Country Status (1)

Country Link
CN (1) CN102801715B (en)

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916320B (en) * 2012-12-28 2017-09-15 中国移动通信集团公司 Message processing method and device after a kind of VM equipment across-the-wire migration
CN103346900B (en) * 2013-05-31 2016-12-28 华为技术有限公司 Method for configuring route after live migration of virtual machine and gateway in big double layer network
CN104243427B (en) * 2013-06-19 2018-04-06 日电(中国)有限公司 The online moving method of virtual machine, data pack transmission method and equipment
US9910686B2 (en) 2013-10-13 2018-03-06 Nicira, Inc. Bridging between network segments with a logical router
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)
CN104717081B (en) * 2013-12-13 2018-01-23 杭州华为数字技术有限公司 The implementation method and device of a kind of gateway function
WO2015100656A1 (en) 2013-12-31 2015-07-09 华为技术有限公司 Method and device for implementing virtual machine communication
CN103795650B (en) * 2014-01-27 2018-02-06 新华三技术有限公司 A kind of moving method of configuration information, method to set up and its equipment
CN106063298B (en) * 2014-03-05 2019-07-12 华为技术有限公司 System and method for for customized 5th generation network
US9893988B2 (en) 2014-03-27 2018-02-13 Nicira, Inc. Address resolution using multiple designated instances of a logical router
CN105323136B (en) * 2014-07-31 2020-01-10 中兴通讯股份有限公司 Information processing method and device
CN104243265B (en) * 2014-09-05 2018-01-05 华为技术有限公司 A kind of gateway control method, apparatus and system based on virtual machine (vm) migration
US10511458B2 (en) 2014-09-30 2019-12-17 Nicira, Inc. Virtual distributed bridging
US10250443B2 (en) 2014-09-30 2019-04-02 Nicira, Inc. Using physical location to modify behavior of a distributed virtual network element
CN105704045B (en) * 2014-11-26 2019-05-28 华为技术有限公司 The method of virtual machine location information synchronizing, gateway and system between data center's gateway
CN105812340B (en) * 2014-12-31 2019-01-08 新华三技术有限公司 A kind of method and apparatus of virtual network access outer net
CN105991440B (en) * 2015-02-12 2019-03-15 新华三技术有限公司 The method and apparatus of flow interrupt caused by preventing virtual machine VM from migrating
US10348625B2 (en) 2015-06-30 2019-07-09 Nicira, Inc. Sharing common L2 segment in a virtual distributed router environment
CN106559451B (en) * 2015-09-29 2020-09-08 新华三技术有限公司 User migration method and device
CN106161439B (en) * 2016-06-30 2019-11-26 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN113946416A (en) * 2016-08-30 2022-01-18 华为技术有限公司 Method and device for determining virtual machine migration
CN106657330B (en) * 2016-12-22 2019-08-27 北京华为数字技术有限公司 Migration of subscriber data method and user data backup method, apparatus and system
CN106911534A (en) * 2017-02-28 2017-06-30 郑州云海信息技术有限公司 A kind of live migration of virtual machine method and its system
CN108733460B (en) * 2017-04-17 2022-11-29 伊姆西Ip控股有限责任公司 Method and apparatus for maintaining sessions for network storage devices
US10511459B2 (en) 2017-11-14 2019-12-17 Nicira, Inc. Selection of managed forwarding element for bridge spanning multiple datacenters
CN113301070A (en) * 2020-04-07 2021-08-24 阿里巴巴集团控股有限公司 Method and device for establishing data transmission channel

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465812A (en) * 2009-01-06 2009-06-24 北京航空航天大学 Redirection method for virtual machine network connection when on-line migrating striding sub network
CN102164091A (en) * 2011-05-13 2011-08-24 北京星网锐捷网络技术有限公司 Method for building MAC (Media Access Control) address table and provider edge device
CN102394831A (en) * 2011-11-28 2012-03-28 杭州华三通信技术有限公司 Flow uninterruptible method and device based on virtual machine VM (virtual memory) migration

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8924560B2 (en) * 2010-11-29 2014-12-30 At&T Intellectual Property I, L.P. Optimized game server relocation environment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465812A (en) * 2009-01-06 2009-06-24 北京航空航天大学 Redirection method for virtual machine network connection when on-line migrating striding sub network
CN102164091A (en) * 2011-05-13 2011-08-24 北京星网锐捷网络技术有限公司 Method for building MAC (Media Access Control) address table and provider edge device
CN102394831A (en) * 2011-11-28 2012-03-28 杭州华三通信技术有限公司 Flow uninterruptible method and device based on virtual machine VM (virtual memory) migration

Also Published As

Publication number Publication date
CN102801715A (en) 2012-11-28

Similar Documents

Publication Publication Date Title
CN102801715B (en) Method for virtual machine migration in network, gateway and system
US10541836B2 (en) Virtual gateways and implicit routing in distributed overlay virtual environments
US10778532B2 (en) Overlay network movement operations
CN109155799B (en) Subnet extension via layer three communication
CN110088732B (en) Data packet processing method, host and system
US10567482B2 (en) Accessing endpoints in logical networks and public cloud service providers native networks using a single network interface and a single routing table
US9363207B2 (en) Private virtual local area network isolation
EP3175590B1 (en) Bridging clouds
EP3096490B1 (en) Method for realizing network virtualization and related device and communication system
CN107579900B (en) Method, device and system for accessing VX L AN network from V L AN network
US10389825B2 (en) Network device identification in an industrial control network
CN104272668A (en) Layer-3 overlay gateways
US20190052598A1 (en) Managing network connectivity between cloud computing service endpoints and virtual machines
CN102577256A (en) Method and apparatus for transparent cloud computing with a virtualized network infrastructure
CN103795602A (en) Network strategy configuration method and device of virtual network
US11671345B2 (en) Self-expansion of a layer 3 network fabric
CN109150638A (en) A kind of route management method and device
CN111800523B (en) Management method, data processing method and system of virtual machine network
CN108259295B (en) MAC address synchronization method and device
CN112822104A (en) Data message processing method, device, storage medium and system
CN117061352A (en) Method, device, equipment and medium for implementing multi-mode virtual network element
CN112385194B (en) State packet transmission between remote networks
CN108270856B (en) Virtual management system of logic CPE (customer premises equipment) based on Docker technology and configuration method thereof
CN104426759A (en) Host machine router acquiring method, host machine router acquiring device, and host machine router acquiring system
EP4236270A2 (en) Software defined access fabric without subnet restriction to a virtual network

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