CN102801715A - 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
CN102801715A
CN102801715A CN 201210266467 CN201210266467A CN102801715A CN 102801715 A CN102801715 A CN 102801715A CN 201210266467 CN201210266467 CN 201210266467 CN 201210266467 A CN201210266467 A CN 201210266467A CN 102801715 A CN102801715 A CN 102801715A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
gateway
entity
virtual
virtual machine
ip address
Prior art date
Application number
CN 201210266467
Other languages
Chinese (zh)
Other versions
CN102801715B (en )
Inventor
白涛
Original Assignee
华为技术有限公司
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

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

一种网络中虚拟机迁移的方法、网关及系统 A network method for migrating virtual machines, gateways and systems

技术领域 FIELD

[0001] 本发明实施例涉及通信技术领域,尤其涉及一种网络中虚拟机迁移的方法、网关及系统。 Embodiment [0001] The present invention relates to communications technologies, and in particular relates to a method for migrating virtual machines in the network, and the gateway system.

背景技术 Background technique

[0002] 虚拟机(英文全称为Virtual Machine,英文简称为VM)是通过软件模拟的具有完整硬件系统功能的、运行在一个完全隔离环境中的完整计算机系统。 [0002] Virtual Machine (English called Virtual Machine, the English referred to as a VM) is a software simulation of a complete hardware system functions, run a full computer system in a completely isolated environment. 其中,某些情况下需要应用虚拟机迁移(migration)技术。 Which in some cases require the application of virtual machine migration (migration) technology. 虚拟机迁移技术利用服务器、存储和网络连接的完全虚拟化,可将正在运行的整个虚拟机从一台服务器即刻移到另一台服务器中。 Virtual machine migration technology utilizes servers, storage and network connectivity is fully virtualized, the entire running virtual machine instantaneously from one server to another server in.

[0003] 虚拟机迁移的一个重要要求是避免业务中断,三层网络中虚拟机迁移面临虚拟机迁移后,虚拟机对应的新网关的互联网协议(英文全称为Internet Protocol,英文简称为IP)地址可能和虚拟机默认网关IP地址不同,这样虚拟机迁移后需要调整虚拟机的默认网关,在个过程中虚拟机的用户流量会出现中断,导致虚拟机无法正常与数据中心进行网络通信。 [0003] An important requirement for virtual machine migration is to avoid business interruption, three network virtual machine migration is facing new Internet Protocol gateway after virtual machine migration, virtual machine corresponding to the (English full Internet Protocol, English referred to as IP) address and may be different from the default virtual machine gateway IP address, default gateway needs to be adjusted so that the virtual machine after the virtual machine migration, in a process virtual machine user traffic will be interrupted, resulting in the virtual machine can not normally communicate with the network data center.

发明内容 SUMMARY

[0004] 本发明实施例提供了一种网络中虚拟机迁移的方法、网关及系统,以解决在虚拟机迁移过程中由于网关变化导致的虚拟机与数据中心业务中断的问题。 Example embodiments provide a method for migrating virtual machines in the network [0004] In the present invention, a gateway and a system to address the virtual machine and the data center because the gateway service interruption caused by changes in the virtual machine migration process.

[0005] 第一方面,提供了一种网络中虚拟机迁移的方法,所述网络包括第一实体网关、第二实体网关、数据中心及虚拟机,所述虚拟机通过所述第二实体网关与所述数据中心连接,所述第二实体网关上配置虚拟网关IP地址,所述第二实体网关保存有所述虚拟网关IP地址和虚拟MAC地址对应关系,所述虚拟机默认网关IP地址为所述虚拟网关IP地址,所述方法包括: [0005] In a first aspect, there is provided a method of migrating a virtual machine in a network, said network entity comprising a first gateway, a second gateway entity, the data center and the virtual machine, the virtual machine gateway via the second entity connected with the data center, the gateway IP address configured on the virtual entity of the second gateway, the gateway stores a virtual IP address and the virtual MAC address correspondence gateway a second entity, the virtual IP address of the default gateway of the virtual gateway IP address, the method comprising:

[0006] 在所述虚拟机从所述第二实体网关迁移到所述第一实体网关之前,所述第一实体网关配置所述虚拟网关IP地址,所述第一实体网关建立所述虚拟网关IP地址与所述虚拟MAC地址的对应关系; Before [0006] mobility gateway to the second entity from the first entity in the virtual machine gateway, the first gateway entity configuring the virtual IP address of the gateway, the first gateway entity establishing the virtual gateway the virtual IP address and the correspondence between the MAC address;

[0007] 在所述虚拟机从所述第二实体网关迁移到所述第一实体网关后,所述第一实体网关接收所述虚拟机发送的免费地址解析协议ARP报文,所述免费ARP报文包含所述虚拟机的IP地址及MAC地址; After the free ARP [0007] mobility gateway to the second entity from the first entity in the virtual machine gateway, the first gateway receives the virtual entity transmits an ARP packet, the gratuitous ARP IP address and the MAC address of the packet containing the virtual machine;

[0008] 所述第一实体网关根据所述虚拟机的IP地址生成所述虚拟机的路由; [0008] The gateway generates a first routing entity of the virtual machine according to the IP address of the virtual machine;

[0009] 所述第一实体网关向所述数据中心发布所述虚拟机路由。 [0009] The gateway entity issuing the first virtual machine to route the data center.

[0010] 在所述第一方面的第一种可能的实现方式中,所述虚拟MAC地址为预先规划的用于标识所述第一实体网关和所第二实体网关的MAC地址。 [0010] In a first possible implementation of the first aspect, the virtual MAC address is the MAC address pre-planned for identifying the first entity and the second entity gateway gateway.

[0011] 在所述第一方面或所述第一方面的第一种可能的实现方式中,还提供了所述第一方面的第二种可能的实现方式,所述第一实体网关只本地保存所述虚拟网关IP地址路由,并不对外发布所述所述虚拟网关IP地址路由。 [0011] In the first aspect or the second possible implementation of the first aspect, there is also provided a second aspect of the first possible implementation manner, only the first entity local gateway save the virtual gateway IP address routing, not released the virtual gateway IP address routing. [0012] 在所述第一方面或所述第一方面的前述任意一种可能的实现方式中,所述第一实体网关通过BGP或IGP向所述数据中心发布所述虚拟机路由。 [0012] In the first aspect or any of the foregoing first aspect of one possible implementation, the gateway entity issuing the first virtual machine to route the data center via BGP or IGP.

[0013] 第二方面,提供了一种第一实体网关,所述网络还包括第二实体网关、数据中心及虚拟机,所述虚拟机通过所述第二实体网关与所述数据中心连接,所述第二实体网关上配置虚拟网关IP地址,所述第二实体网关保存有所述虚拟网关IP地址和虚拟MAC地址对应关系,所述虚拟机默认网关IP地址为所述虚拟网关IP地址,所述第一实体网关包括: [0013] In a second aspect, there is provided a first gateway entity, the network entity further comprises a second gateway, the data center and the virtual machine, the virtual machine gateway via the second entity connected with the data center, the physical configuration of the second virtual gateway IP address of gateway, stores the virtual gateway IP address and MAC address of the virtual corresponding relationship between the second gateway entity, the virtual machine is the default gateway IP address of the virtual IP address of the gateway, the first gateway entity comprising:

[0014] 配置单元,用于在所述虚拟机从所述第二实体网关迁移到所述第一实体网关之前,配置所述虚拟网关IP地址,并建立所述虚拟网关IP地址与所述虚拟MAC地址的对应关系; [0014] The configuration unit for migrating the virtual machine prior to the second entity from the first entity to the gateway gateway, configuring the virtual IP address of the gateway, and establishing a virtual IP address and the virtual gateway mapping between the MAC address;

[0015] 接收单元,用于在所述虚拟机从所述第二实体网关迁移到所述第一实体网关后,接收所述虚拟机发送的免费地址解析协议ARP报文,所述免费ARP报文包含所述虚拟机IP的地址及MAC地址; After [0015] receiving unit for migrating from the second entity to the first gateway a gateway entity in the virtual machine, receiving the free ARP virtual machine ARP packets sent, the gratuitous ARP the message contains the IP address of the virtual machine and the MAC address;

[0016] 生成单元,用于根据所述虚拟机IP的地址生成所述虚拟机的路由; [0016] generating unit for routing according to the IP address of the virtual machine to generate the virtual machine;

[0017] 发布单元,用于向所述数据中心发布所述虚拟机路由。 [0017] issuing unit for issuing routing the virtual machine to the data center.

[0018] 在所述第二方面的一种可能的实现方式中,所述第一实体网关为宽带远程接入服务器BRAS或业务路由器SR或交换机。 [0018] A second aspect of the possible implementations, the first entity is a gateway or a broadband remote access server BRAS SR service router or switch.

[0019] 第三方面,提供了一种网络中虚拟机迁移的系统,其特征在于,所述系统包括第一实体网关及虚拟机,所述虚拟机通过第二实体网关与数据中心连接,所述第二实体网关上配置虚拟网关IP地址,所述第二实体网关保存有所述虚拟网关IP地址和虚拟MAC地址对应关系,所述虚拟机默认网关IP地址为所述虚拟网关IP地址,其中,所述第一实体网关包括: [0019] In a third aspect, there is provided a system for migration of a virtual machine network, wherein the system comprises a first virtual machine and the gateway entity, the gateway entity with the second virtual machine via the data center, the virtual gateway IP addresses configured on said second gateway entity, the stored virtual gateway IP address and MAC address of the virtual corresponding relationship between the second gateway entity, the virtual machine default gateway IP address is the IP address of the virtual gateway, wherein the first gateway entity comprising:

[0020] 配置单元,用于在所述虚拟机从所述第二实体网关迁移到所述第一实体网关之前,配置所述虚拟网关IP地址,并建立所述虚拟网关IP地址与所述虚拟MAC地址的对应关系; [0020] The configuration unit for migrating the virtual machine prior to the second entity from the first entity to the gateway gateway, configuring the virtual IP address of the gateway, and establishing a virtual IP address and the virtual gateway mapping between the MAC address;

[0021] 接收单元,用于在所述虚拟机从所述第二实体网关迁移到所述第一实体网关后,接收所述虚拟机发送的免费地址解析协议ARP报文,所述免费ARP报文包含所述虚拟机的IP地址及MAC地址; After [0021] receiving unit for migrating from the second entity to the first gateway a gateway entity in the virtual machine, receiving the free ARP virtual machine ARP packets sent, the gratuitous ARP message contains the IP address of the virtual machine and the MAC address;

[0022] 生成单元,用于根据所述虚拟机的IP地址生成所述虚拟机的路由; [0022] generating unit for routing the IP address of the virtual machine to generate a virtual machine;

[0023] 发布单元,用于向所述数据中心发布所述虚拟机路; [0023] issuing unit for issuing a path to the virtual machine in the data center;

[0024] 所述虚拟机包括: [0024] The virtual machine comprises:

[0025] 发送单元,用于在所述虚拟机从所述第二实体网关迁移到所述第一实体网关后,向所述第一实体网关发送免费ARP报文,所述免费ARP报文包含所述虚拟机的IP地址及MAC地址。 After the [0025] transmitting unit for migrating from the second entity to the first gateway a gateway entity in the virtual machine, sending a gratuitous ARP message to the first gateway entity, the gratuitous ARP packet comprises the IP address and the MAC address of the virtual machine.

[0026] 在所述第三方面的一种可能的实现方式中,所述第一实体网关为宽带远程接入服务器BRAS或业务路由器SR或交换机。 [0026] A third aspect of the possible implementations, the first entity is a gateway or a broadband remote access server BRAS SR service router or switch.

[0027] 综上,通过本发明实施例提供的技术方案,在物理上分离的所述第一实体网关和所述第二实体网关上分别配置相同的所述虚拟网关IP地址,将所述第一实体网关和所述第二实体网关虚拟化为一个虚拟网关,这样在所述虚拟机迁移时,所述虚拟机上的配置的默认网关不需要重新配置,虚拟机感知不到网关变化,尽量避免了虚拟机迁移过程中由于网关变化导致的流量中断的问题。 The [0027] Fully, the technical solution provided by the present invention, are arranged the same virtual IP address of the gateway are physically separated in the first entity and the second entity gateway gateway, the first a gateway entity and the second entity virtualized as a virtual gateway gateway, so when the migration of the virtual machine, the virtual configuration of the default gateway on the need to reconfigure the machine, the virtual machine gateway imperceptible changes, as far as possible It avoids the problem of traffic virtual machine migration process because of interruptions due to changes in the gateway.

附图说明 BRIEF DESCRIPTION

[0028] 为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 [0028] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings are briefly introduced as required for use in the embodiments describing the embodiments. Apparently, the drawings in the following description are some embodiments of the present invention, for ordinary skill in the art, without creative efforts, you can obtain other drawings based on these drawings.

[0029] 图I是本发明实施例提供的一种网络中虚拟机迁移的方法流程示意图; [0030] 图2是本发明实施例提供的一种网络中虚拟机迁移的系统示意图; [0029] FIG. I is a network according to an embodiment of the present invention, the virtual machine migration flowchart of a method; [0030] FIG. 2 is a schematic diagram of a network according to an embodiment of the present invention, migration of the virtual machine system;

[0031] 图3是本发明实施例提供的另一种网络中虚拟机迁移的系统示意图。 [0031] FIG. 3 is a schematic diagram of another network system provided in the virtual machine migration embodiment of the present invention.

具体实施方式 detailed description

[0032] 为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。 [0032] In order that the invention object, technical solutions, and advantages of the embodiments more clearly, the following the present invention in the accompanying drawings, technical solutions of embodiments of the present invention will be clearly described, obviously, the described EXAMPLE some embodiments of the present invention rather than all embodiments. 基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, all other embodiments of ordinary skill in the art without any creative effort shall fall within the scope of the present invention.

[0033] 参见图1,本发明实施例提供了一种网络中虚拟机迁移的方法,所述网络包括第一实体网关、第二实体网关及虚拟机,所述虚拟机通过所述第二实体网关与数据中心连接,所述第二实体网关上配置虚拟网关IP地址,所述第二实体网关保存有所述虚拟网关IP地址和虚拟MAC地址对应关系,所述虚拟机默认网关IP地址为所述虚拟网关IP地址,所述方法包括,所述方法包括以下内容: [0033] Referring to Figure 1, embodiments of the present invention provides a method for migrating virtual machines in a network, said network gateway comprising a first entity, a second entity and a gateway virtual machine, the virtual machine by the second entity gateway and data center, the configuration of the second virtual gateway IP address on the gateway entity, the second entity stored gateway IP address and the virtual gateway virtual MAC address correspondence relationship of the virtual machine address of the default gateway IP the virtual IP address of said gateway, said method comprising, the method comprising the following:

[0034] 102,在所述虚拟机从所述第二实体网关迁移到所述第一实体网关之前,所述第一实体网关配置所述虚拟网关IP地址,所述第一实体网关建立所述虚拟网关IP地址与所述虚拟MAC地址的对应关系; Before [0034] 102, in the virtual machine from the gateway entity to the second entity a first gateway, the first gateway entity configuring the virtual IP address of the gateway, the first gateway entity establishing the virtual gateway IP address and the virtual MAC address corresponding relationship;

[0035] 网络管理员在进行虚拟机迁移规划时,在所述虚拟机需要从所述第二实体网关迁移到所述第一实体网关之前,在所述第一实体网关上也配置所述虚拟网关IP地址,在这个过程中,可能会出现一段时间内所述第一实体网关和所述第二实体网关同时配置了所述虚拟网关IP地址,为了防止网络中在这个时间段出现地址冲突,所述第二实体网关上配置的所述虚拟网关IP地址生成的路由只保存在所述第二实体网关内,所述第二实体网关不对外发布所述虚拟网关IP地址对应的路由。 Before 1200 [0035] Network administrators during VM migration plan, the second entity needs to be migrated from the first gateway to gateway entity in the virtual machine, the first entity in the virtual gateway is also arranged gateway IP address, in this process, may occur over a period of time of the first entity and the second entity gateway configure the gateway the virtual IP address of the gateway, in order to prevent the network address conflicts occurred in this time period, the configuration of the second entity on the IP address of the gateway virtual gateway routes generated only stored in the second gateway entity, the second entity not released gateway IP address corresponding to the virtual gateway route. 可选地,也可以通过所述第一实体网关不对外发布所述虚拟网关IP地址对应的路由来避免出现地址冲突,可选地,也可以通过所述第一实体网关和所述第二实体网关都不对外发布所述虚拟网关IP地址对应的主机路由来避免出现地址冲突。 Alternatively, it can not be released to the virtual gateway IP address corresponding to the first routed through the gateway entity to avoid address conflicts, optionally, it can also be a gateway through the first entity and the second entity gateway is not released to the virtual host routing gateway IP address corresponding to avoid address conflicts.

[0036] 可选地,配置所述虚拟机默认网关IP地址为所述虚拟网关地址可以通过静态配置默认路由的方式配置,也可以根据网络规划由动态主机配置协议服务器(英文全称为Dynamic Host Configuration Protocol Server,英文简称为DHCP Server)将所述默认网关通告给所述虚拟机。 [0036] Optionally, configuring the virtual IP address of the default gateway of the virtual gateway addresses can be configured statically configured default route embodiment, it may be a dynamic host configuration protocol server (Dynamic Host Configuration English full name according to network planning Protocol Server, English referred to as DHCP Server) will announce the default gateway to the virtual machine.

[0037] 可选地,为了便于网络统一管理和维护所述虚拟网关IP地址与所述虚拟机IP地址可以在同一个网段内。 [0037] Alternatively, in order to facilitate unified management and maintenance network gateway the virtual IP address and the IP address of the virtual machine may be in the same subnet.

[0038] 可选地,所述虚拟MAC地址为预先规划的用于标识所述第一实体网关和所第二实体网关的MAC地址,所述第一实体网关接收到目的MAC地址为所述虚拟MAC地址的报文时,按照目的地为所述第一实体网关的报文进行处理。 [0038] Alternatively, the virtual MAC address is a MAC address pre-planned identifying the first entity and the second entity gateway gateway, the first gateway entity receives the MAC address of the virtual object MAC address of the packet time, processing according to the destination of the first message gateway entity.

[0039] 104,在所述虚拟机从所述第二实体网关迁移到所述第一实体网关后,所述第一实体网关接收所述虚拟机发送的免费地址解析协议ARP报文,所述免费ARP报文包含所述虚拟机IP地址及MAC地址; Free ARP after [0039] 104, in the virtual machine from the gateway entity to the second entity a first gateway, the first gateway receives the virtual entity transmits an ARP packet, the free ARP packet containing the virtual machine IP address and MAC address;

[0040] 所述虚拟机从所述第二实体网关迁移到所述第一实体网关具体是指所述虚拟机由原来通过所述第二实体网关与数据中心连接变为通过所述第一实体网关与数据中心连接。 [0040] The virtual machine from the second entity to the first entity gateway gateway specifically means that the original virtual machine gateway via the second entity and data center via said first entity becomes gateway and data center. 所述虚拟机在访问数据中心时,首先通过所述第二实体网关与数据中心连接,所述虚拟机保存有到达所述虚拟网关IP地址的路由,并且保存有对应所述虚拟网关IP的所述虚MAC地址,当所述虚拟机从所述第二实体网关迁移至所述第一实体网关时,所述虚拟机通过所述第一实体网关与数据中心连接。 When the virtual machine access the data center, the first gateway via the second entity to the data center, the virtual machine virtual saved route which reaches the gateway IP address, and the stored corresponding to the virtual gateway IP said virtual MAC address, when the virtual machine from the second entity to the first gateway a gateway entity, the virtual machine is connected via the first gateway entity data center. 当所述虚拟机通过所述第一实体网关与数据中心连接后,所述虚拟机配置的默认网关IP地址不更新,仍然为所述虚拟网关IP地址,由于所述虚拟机迁移后所述第一实体网关并没有保存到达所述虚拟机的路由,所述虚拟机可以通过发送免费ARP报文的方式将所述虚拟机的IP地址通告给所述第一实体网关。 When the virtual machine is connected through a gateway entity of the first data center, the virtual machine configuration default gateway IP address is not updated, is still the virtual gateway IP address, since the migration of the virtual machine after the first a gateway entity does not save a route to the virtual machine, the virtual machine by sending gratuitous ARP packets manner the IP address of the virtual machine to announce the first entity gateway.

[0041] 106,所述第一实体网关根据所述虚拟机IP地址生成所述虚拟机的路由。 [0041] 106, the gateway generates a first routing entity of the virtual machine according to the virtual IP address.

[0042] 所述第一实体网关在接收到所述免费ARP报文后,解析获得所述虚拟机的IP地址和MAC地址信息,并可以获知接收所述免费ARP报文的接口信息,所述第一实体网关根据上述获得的信息可以生成到达所述虚拟机的虚拟机路由。 [0042] The first entity in the gateway after receiving the gratuitous ARP packet parsing obtain the IP address of the virtual machine and the MAC address information, and can learn the free interface information received ARP packet, the a first virtual machine reaches the gateway entity routing information of the virtual machine may be generated in accordance with the above-obtained.

[0043] 108,所述第一实体网关向所述数据中心发布所述虚拟机路由。 [0043] 108, the gateway entity issuing the first virtual machine to route the data center.

[0044] 所述第一实体网关向所述数据中心发布所述虚拟机路由可以通过边界网关协议(英文全称为Border Gateway Protocol,英文简称为BGP)或内部网关协议(英文全称为Interior Gateway Protocol,英文简称为IGP)来完成。 [0044] The first gateway entity to release the virtual machine in the data center by the Border Gateway Protocol routing (English called Border Gateway Protocol, referred to as English BGP) or Interior Gateway Protocol (English called Interior Gateway Protocol, English referred to as IGP) to complete. 通过将所述虚拟机路由发布到所述数据中心,即可实现所述虚拟机与所述数据中心之间进行通讯,可选地,所述第一实体网关还可以将所述虚拟机路由发布到网络中其他设备,这样,进一步还可以实现所述虚拟机和网络中其他设备进行通信。 By the virtual machine to the data central routes, can achieve communication between the virtual machine and the data center, alternatively, the first entity may also be the gateway routes the virtual machine other devices to the network, so that further may take the virtual machines and other network devices to communicate.

[0045] 可见,通过本发明实施例提供的技术方案,在物理上分离的所述第一实体网关和所述第二实体网关上分别配置相同的所述虚拟网关IP地址,将所述第一实体网关和所述第二实体网关虚拟化为一个虚拟网关,这样在所述虚拟机迁移时,所述虚拟机上的配置的默认网关不需要重新配置,虚拟机感知不到网关变化,尽量避免了虚拟机迁移过程中由于网关变化导致的流量中断的问题。 [0045] visible, the technical solution provided by the present invention, are arranged the same virtual IP address of the gateway are physically separated in the first entity and the second entity gateway gateway, the first gateway entity and the second entity virtual gateway into a virtual gateway, so that when the virtual machine migration, the virtual default gateway configured on the machine does not need to reconfigure the virtual machine-aware gateway can not change, try to avoid the problem of traffic interruption virtual machine migration process due to changes caused by the gateway.

[0046] 参见图2,本发明实施例提供了一种网络中虚拟机迁移的系统,所述系统包括第一实体网关202及虚拟机212,所述虚拟机212通过第二实体网关与数据中心连接,所述第二实体网关上配置虚拟网关IP地址,所述第二实体网关保存有所述虚拟网关IP地址和虚拟MAC地址对应关系,所述虚拟机默认网关IP地址为所述虚拟网关IP地址,其中,所述第一实体网关202包括: [0046] Referring to Figure 2, an embodiment is provided a network system migrating virtual machines according to the present invention, the system includes a first entity 202 and the virtual gateway 212, the virtual machine 212 via the data center and a second gateway entity connection, configure the virtual IP address of the gateway gateway on the second entity, the second entity stored gateway IP address and the virtual gateway virtual MAC address correspondence relationship of the virtual machine to default gateway IP address of the virtual IP gateway address, wherein the gateway 202 first entity comprising:

[0047] 配置单元204,用于在所述虚拟机212从所述第二实体网关迁移到所述第一实体网关之前,配置所述虚拟网关IP地址,并建立所述虚拟网关IP地址与所述虚拟MAC地址的对应关系; [0047] The configuration unit 204, for the virtual machine 212 prior to migrating from the second entity to the first entity gateway gateway, configuring the virtual IP address of the gateway, and establishing the virtual IP address of the gateway said correspondence between the virtual MAC address;

[0048] 接收单元206,用于在所述虚拟机212从所述第二实体网关迁移到所述第一实体网关202后,接收所述虚拟机212发送的免费地址解析协议ARP报文,所述免费ARP报文包含所述虚拟机212的IP地址及MAC地址; [0048] The receiving unit 206 for the virtual machine 212 after the migration from the second entity to the first entity gateway gateway 202, Free Address Resolution Protocol ARP packet receiver 212 sends the virtual machine, and the said gratuitous ARP packet comprises a virtual IP address and the MAC address 212;

[0049] 生成单元208,用于根据所述接收单元206接收的所述免费ARP报文中的所述虚拟机212的IP地址生成所述虚拟机的路由; [0049] The generating unit 208, according to the receiving unit 206 receives the gratuitous ARP packet is the IP address of the virtual machine 212 to generate the virtual routing machine;

[0050] 发布单元210,用于向所述数据中心发布所述生成单元208生成的所述虚拟机路由; [0050] issuing unit 210 for publishing the data center to the generation unit 208 generates the virtual machine route;

[0051] 所述虚拟机212包括: [0051] The virtual machine 212 comprises:

[0052] 发送单元214,用于在所述虚拟机404从所述第二实体网关迁移到所述第一实体网关202后,向所述第一实体网关202发送免费ARP报文,所述免费ARP报文包含所述虚拟机212的IP地址及MAC地址。 [0052] The transmitting unit 214, in the virtual machine 404 to transition from the second entity to the first gateway after the gateway entity 202 sends a gratuitous ARP message to the first gateway entity 202, the free ARP packet containing the IP address of the virtual machine 212, and the MAC address. [0053] 网络管理员在进行虚拟机迁移规划时,在所述虚拟机212需要从所述第二实体网关迁移到所述第一实体网关202之前,在所述第一实体网关202通过所述配置单元204也配置所述虚拟网关IP地址,在这个过程中,可能会出现一段时间内所述第一实体网关202和所述第二实体网关同时配置了所述虚拟网关IP地址,为了防止网络中在这个时间段出现地址冲突,所述第二实体网关上配置的所述虚拟网关IP地址生成的路由只保存在所述第二实体网关内,所述第二实体网关不对外发布所述虚拟网关IP地址对应的路由。 When [0053] the network administrator during planning virtual machine migration, 202 need to be migrated before the second entity from the first entity to the gateway in the virtual gateway 212, the gateway 202 by the first entity the configuration unit 204 is also configured virtual gateway IP address, in this process, may occur over a period of time of the first entity and the second entity gateway 202 configure the gateway the virtual IP address of the gateway, in order to prevent the network address conflicts that appear at this time, the physical configuration of the second virtual gateway routing gateway IP address generated only stored in the gateway of the second entity, the second entity not released the virtual gateway gateway IP address corresponding to the route. 可选地,也可以通过所述第一实体网关202不对外发布所述虚拟网关IP地址对应的路由来避免出现地址冲突,可选地,也可以通过所述第一实体网关202和所述第二实体网关都不对外发布所述虚拟网关IP地址对应的主机路由来避免出现地址冲突。 Alternatively, 202 can not be released to the virtual gateway IP address corresponding to the first routed through the gateway entity to avoid address conflicts, optionally, also through the gateway and the first entity 202 two entities are not released to the virtual gateway host routing gateway IP address corresponding to avoid address conflicts.

[0054] 可选地,配置所述虚拟机212默认网关IP地址为所述虚拟网关地址可以通过静态配置默认路由的方式配置,也可以根据网络规划由动态主机配置协议服务器DHCP Server 将所述默认网关通告给所述虚拟机。 [0054] Optionally, configuring the virtual IP address of the default gateway 212 to the virtual gateway addresses can be configured statically configured default route mode, the default may be a dynamic host configuration protocol DHCP Server according to network planning server advertisement gateway to the virtual machine.

[0055] 可选地,为了便于网络统一管理和维护所述虚拟网关IP地址与所述虚拟机212的IP地址可以在同一个网段内。 [0055] Alternatively, in order to facilitate unified management and maintenance network gateway the virtual IP address and the IP address of the virtual machine 212 may be in the same subnet.

[0056] 可选地,所述虚拟MAC地址为预先规划的用于标识所述第一实体网关202和所第二实体网关的MAC地址,所述第一实体网关202接收到目的MAC地址为所述虚拟MAC地址的报文时,按照目的地为所述第一实体网关202的报文进行处理。 [0056] Alternatively, the virtual MAC address is a MAC address pre-planned second entity identifying a first entity of the gateway 202 and the gateway, the first gateway entity 202 receives the destination MAC address said packet when the virtual MAC address, according to the destination of the first message gateway entity 202 for processing.

[0057] 所述虚拟机212从所述第二实体网关迁移到所述第一实体网关202具体是指所述虚拟机212由原来通过所述第二实体网关与数据中心连接变为通过所述第一实体网关202与数据中心连接。 [0057] The migration of the virtual machine 212 from the second entity to the first entity gateway gateway 202 refers to the particular virtual machine from the original 212 by the second entity and data center becomes gateway through the the first gateway entity 202 connected to the data center. 所述虚拟机212在访问数据中心时,首先通过所述第二实体网关与数据中心连接,所述虚拟机212保存有到达所述虚拟网关IP地址的路由,并且保存有对应所述虚拟网关IP的所述虚MAC地址,当所述虚拟机212从所述第二实体网关迁移至所述第一实体网关202时,所述虚拟机通过所述第一实体网关202与数据中心连接。 The virtual machine 212 when accessing the data center, the first gateway via the second entity and data center, the virtual machine 212 reaches the virtual route stored gateway IP address, and stored corresponding to the virtual gateway IP the virtual MAC address, the virtual machine 212 when migration from the second entity to the first entity to the gateway when the gateway 202, the virtual machine connected to the data center 202 through the first gateway entity. 当所述虚拟机通过所述第一实体网关202与数据中心连接后,所述虚拟机212配置的默认网关IP地址不更新,仍然为所述虚拟网关IP地址,由于所述虚拟机212迁移后所述第一实体网关202并没有保存到达所述虚拟机212的路由,所述虚拟机212可以通过发送免费ARP报文的方式将所述虚拟机的IP地址通告给所述第一实体网关202。 After the virtual machine when connected by said first entity data center with gateway 202, the virtual machine 212 is configured to default gateway IP address is not updated, is still the virtual gateway IP address, since the migration of the virtual machine 212 the first gateway entity 202 does not keep a route to the virtual machine 212, the virtual machine 212 may send gratuitous ARP packets by way of the IP address of the virtual machine to the first entity advertisement gateway 202 . 所述接收单元206接收所述虚拟机发送的免费地址解析协议ARP报文后,解析获得所述虚拟机的IP地址和MAC地址信息,并可以获知接收所述免费ARP报文的接口信息,所述生成单元208根据上述信息生成到达所述虚拟机的虚拟机路由,所述发布单元210,将所述虚拟机路由发布给所述数据中心,进而实现所述数据中心能够与所述虚拟机212进行网络通信,可选地,所述发布单元210还可以将所述虚拟机路由发布到网络中其他设备,这样,进一步还可以实现所述虚拟机212和网络中其他设备进行通信。 After the receiving unit 206 receives the transmitted free virtual machine ARP protocol packets, obtain an IP address and resolve the MAC address information of the virtual machine, and may learn the free interface information received ARP packet, the said generation information generating unit 208 reaches the above-described virtual machine according to the route of the virtual machine, the issuing unit 210, the routing of the virtual machine to release the data center, the data center so as to realize the virtual machine 212 is capable of communication network, alternatively, the issuing unit 210 may also publish the route to the virtual machine other network devices, so that further the virtual machine may also be implemented in network 212 and other devices to communicate.

[0058] 所述第一实体网关202向所述数据中心发布所述虚拟机路由可以通过BGP或IGP来完成。 [0058] The gateway 202 first entity to release the virtual machine in the data center may be accomplished by routing BGP or IGP. 通过将所述虚拟机路由发布到所述数据中心,即可实现所述虚拟机212与所述数据中心之间进行通讯。 By the virtual machine to the data central routes, can achieve communication between the virtual machine 212 and the data center.

[0059] 可选地,所述第一实体网关为宽带远程接入服务器BRAS或业务路由器SR或交换机。 [0059] Alternatively, the first entity is a gateway or a broadband remote access server BRAS SR service router or switch.

[0060] 可选地,本发明实施例提供的所述第一实体网关202的配置单元204、接收单元206、接收单元206和发布单元210可以合并为一个或者多个单元。 [0060] Alternatively, the gateway entity according to a first configuration unit 202 of the embodiment 204 of the present invention, the receiving unit 206, a receiving unit 206 and issue unit 210 may be combined into one or more elements.

[0061] 可见,通过本发明实施例提供的技术方案,在物理上分离的所述第一实体网关202 和所述第二实体网关上分别配置相同的所述虚拟网关IP地址,将所述第一实体网关202和所述第二实体网关虚拟化后的一个虚拟网关,这样在所述虚拟机212迁移时,所述虚拟机上212的配置的默认网关不需要重新配置,虚拟机212感知不到网关变化,尽量避免了虚拟机212迁移过程中由于网关变化导致的流量中断的问题。 [0061] visible, the technical solution provided by the embodiment of the present invention, arranged on physically separate entities of the first gateway 202 and the second entity are the same gateway the virtual IP address of the gateway, the first a virtual gateway entity after a second gateway 202 and the virtual gateway entity, so when the migration of the virtual machine 212, the configuration of the virtual machine 212 does not need to reconfigure the default gateway, the virtual machine 212 is not perceived gateway to change, try to avoid the problem of traffic VM 212 migration process because of interruptions due to changes in the gateway.

[0062] 参见图3,本发明实施例提供了另一种网络中虚拟机迁移的系统,所述系统包括第一实体网关302及虚拟机312,所述虚拟机312通过第二实体网关与数据中心连接,所述第二实体网关上配置虚拟网关IP地址,所述第二实体网关保存有所述虚拟网关IP地址和虚拟MAC地址对应关系,所述虚拟机默认网关IP地址为所述虚拟网关IP地址,其中,所述第一实体网关302包括: [0062] Referring to Figure 3, an embodiment of the present invention provides another network system migrating virtual machines, the system comprising a first entity 302 and the gateway 312 virtual machine, the virtual machine 312 and a second data gateway entity central connection, configure the virtual IP address of the second gateway entity gateway, stores the virtual gateway IP address and the virtual MAC address of the second entity relationship gateway, the IP address of the default gateway virtual machine to the virtual gateway IP address, wherein the gateway 302 first entity comprising:

[0063] 配置器304,用于在所述虚拟机从所述第二实体网关迁移到所述第一实体网关之前,配置所述虚拟网关IP地址,并建立所述虚拟网关IP地址与所述虚拟MAC地址的对应关系; Before the [0063] configuration 304, for the second virtual machine from the gateway entity to the first entity gateway, configuring the virtual IP address of the gateway, and establishing the virtual address and the gateway IP the correspondence relationship of the virtual MAC address;

[0064] 接收器306,用于在所述虚拟机从所述第二实体网关迁移到所述第一实体网关302后,接收所述虚拟机312发送的免费地址解析协议ARP报文,所述免费ARP报文包含所述虚拟机312的IP地址及MAC地址; [0064] The receiver 306 configured to migrate the virtual machine from the gateway to the second entity after the first entity gateway 302, receives the free ARP virtual machine 312 sends an ARP packet, the Gratuitous ARP packet containing the IP address of the virtual machine 312 and the MAC address;

[0065] 处理器308,还用于根据所述接收器306接收的所述免费ARP报文中的所述虚拟机312的IP地址生成所述虚拟机的路由; [0065] The processor 308 is further configured according to the receiver 306 receives the gratuitous ARP packet is the IP address of the virtual machine 312 to generate the routing of the virtual machine;

[0066] 发送器310,用于向所述数据中心发布所述处理器304生成的所述虚拟机路由; [0066] The transmitter 310, for the release of the processor 304 to the data generated by the virtual machine center route;

[0067] 所述虚拟机312包括: [0067] The virtual machine 312 includes:

[0068] 发送器元314,用于在所述虚拟机312从所述第二实体网关迁移到所述第一实体网关302后,向所述第一实体网关302发送免费ARP报文,所述免费ARP报文包含所述虚拟机312的IP地址及MAC地址 [0068] The transmitter element 314, 312 for the virtual machine migration from a gateway to the second entity after the first entity gateway 302 sends a gratuitous ARP message to the first gateway entity 302, the free ARP packets contain the IP address and MAC address of the virtual machine 312

[0069] 网络管理员在进行虚拟机迁移规划时,在所述虚拟机312需要从所述第二实体网关迁移到所述第一实体网关302之前,在所述第一实体网关302通过所述配置器304也配置所述虚拟网关IP地址,在这个过程中,可能会出现一段时间内所述第一实体网关302和所述第二实体网关同时配置了所述虚拟网关IP地址,为了防止网络中在这个时间段出现地址冲突,所述第二实体网关上配置的所述虚拟网关IP地址生成的路由只保存在所述第二实体网关内,所述第二实体网关不对外发布所述虚拟网关IP地址对应的路由。 When [0069] the network administrator during planning virtual machine migration, 302 need to be migrated before the second entity from the first entity to the gateway in the virtual machine gateway 312, the gateway 302 by the first entity Configurator 304 can also configure the virtual gateway IP address, in this process, may occur over a period of time of the first entity and the second entity gateway 302 configure the gateway the virtual IP address of the gateway, in order to prevent the network address conflicts that appear at this time, the physical configuration of the second virtual gateway routing gateway IP address generated only stored in the gateway of the second entity, the second entity not released the virtual gateway gateway IP address corresponding to the route. 可选地,也可以通过所述第一实体网关302不对外发布所述虚拟网关IP地址对应的路由来避免出现地址冲突,可选地,也可以通过所述第一实体网关302和所述第二实体网关都不对外发布所述虚拟网关IP地址对应的主机路由来避免出现地址冲突。 Alternatively, 302 can not be released to the virtual gateway IP address corresponding to the first routed through the gateway entity to avoid address conflicts, optionally, also by the first entity and the second gateway 302 two entities are not released to the virtual gateway host routing gateway IP address corresponding to avoid address conflicts.

[0070] 可选地,配置所述虚拟机默认网关IP地址为所述虚拟网关地址可以通过静态配置默认路由的方式配置,也可以根据网络规划由DHCP Server将所述默认网关通告给所述虚拟机312。 [0070] Optionally, configuring the virtual IP address of the default gateway of the virtual gateway addresses can be configured statically configured default route mode, according to network planning may be a DHCP Server to the default gateway of the virtual advertisement 312 machine.

[0071] 可选地,为了便于网络统一管理和维护所述虚拟网关IP地址与所述虚拟机IP地址可以在同一个网段内。 [0071] Alternatively, in order to facilitate unified management and maintenance network gateway the virtual IP address and the IP address of the virtual machine may be in the same subnet.

[0072] 可选地,所述虚拟MAC地址为预先规划的用于标识所述第一实体网关302和所第二实体网关的MAC地址,所述第一实体网关302接收到目的MAC地址为所述虚拟MAC地址的报文时,按照目的地为所述第一实体网关302的报文进行处理。 [0072] Alternatively, the virtual MAC address is a MAC address pre-planned second entity identifying a first entity of the gateway 302 and the gateway, the first gateway entity 302 receives the destination MAC address said packet when the virtual MAC address, according to the destination of the first message gateway entity 302 for processing.

[0073] 所述虚拟机312从所述第二实体网关迁移到所述第一实体网关302具体是指所述虚拟机312由原来通过所述第二实体网关与数据中心连接变为通过所述第一实体网关302与数据中心连接。 [0073] The migration of the virtual machine 312 from the second entity to the first entity gateway gateway 302 refers to the particular virtual machine from the original 312 by the second entity and data center becomes gateway through the the first gateway entity 302 connected to the data center. 所述虚拟机312在访问数据中心时,首先通过所述第二实体网关与数据中心连接,所述虚拟机312保存有到达所述虚拟网关IP地址的路由,并且保存有对应所述虚拟网关IP的所述虚MAC地址,当所述虚拟机312从所述第二实体网关迁移至所述第一实体网关302时,所述虚拟机312通过所述第一实体网关302与数据中心连接。 The virtual machine 312 when accessing the data center, the first gateway via the second entity and data center, the virtual machine 312 reaches the virtual route stored gateway IP address, and stored corresponding to the virtual gateway IP the virtual MAC address, the virtual machine 312 when migration from the second entity to the first entity to the gateway when the gateway 302, the virtual machine 312 is connected via the first gateway entity 302 and the data center. 当所述虚拟机312通过所述第一实体网关302与数据中心连接后,所述虚拟机312配置的默认网关IP地址不更新,仍然为所述虚拟网关IP地址,由于所述虚拟机312迁移后所述第一实体网关302并没有保存到达所述虚拟机312的路由,所述虚拟机312可以通过发送免费ARP报文的方式将所述虚拟机的IP地址通告给所述第一实体网关302。 When the virtual machine 312 is connected via the first gateway entity 302 and the data center, the virtual machine 312 is configured to default gateway IP address is not updated, is still the virtual gateway IP address, since the migration of the virtual machine 312 after the first entity 302 and the gateway is not stored route to the virtual machine 312, virtual machine 312 may be the ARP packets IP address of the virtual machine to notify the gateway entity sends the first free 302. 所述接收器306接收所述虚拟机312发送的免费地址解析协议ARP报文后,解析获得所述虚拟机的IP地址和MAC地址信息,并可以获知接收所述免费ARP报文的接口信息,所述处理器308根据上述信息生成到达所述虚拟机的虚拟机路由,所述发送器310,将所述虚拟机路由发布给所述数据中心,进而实现所述数据中心能够与所述虚拟机312进行网络通信,可选地,所述发布单元310还可以将所述虚拟机路由发布到网络中其他设备,这样,进一步还可以实现所述虚拟机312和网络中其他设备进行通信。 After the receiver 306 receives the free ARP virtual machine 312 sends an ARP packet, obtain the IP address resolve the virtual machine and the MAC address information, and can learn the free interface information received ARP packet, the processor 308 generates the above information reaches the virtual machine according to the route of the virtual machine, the transmitter 310, routes the virtual machine to the data center, the data center so as to realize the virtual machine capable of 312 communication network, alternatively, the issuing unit 310 may also publish the route to the virtual machine other network devices, so that further may take the virtual machine 312 and other network devices to communicate.

[0074] 所述第一实体网关302向所述数据中心发布所述虚拟机路由可以通过BGP或IGP来完成。 [0074] The gateway 302 first entity to release the virtual machine in the data center may be accomplished by routing BGP or IGP. 通过将所述虚拟机路由发布到所述数据中心,即可实现所述虚拟机312与所述数据中心之间进行通讯。 By the virtual machine to the data central routes, can achieve communication between the virtual machine 312 and the data center.

[0075] 可选地,所述第一实体网关为宽带远程接入服务器BRAS或业务路由器SR或交换机。 [0075] Alternatively, the first entity is a gateway or a broadband remote access server BRAS SR service router or switch.

[0076] 可见,通过本发明实施例提供的技术方案,将在物理上分离的所述第一实体网关302和所述第二实体网关上分别配置相同的所述虚拟网关IP地址将所述第一实体网关302和所述第二实体网关虚拟化后的一个虚拟网关,这样在所述虚拟机312迁移时,所述虚拟机312上的配置的默认网关不需要重新配置,虚拟机312感知不到网关变化,尽量避免了虚拟机312迁移过程中由于网关变化导致的流量中断的问题。 [0076] visible, the technical solution provided by the present invention, are arranged the same virtual IP address of the second gateway on physically separated gateway entity of the first entity and the second gateway 302 a gateway entity 302 and after the second entity a virtual gateway virtual gateway, so when the migration of the virtual machine 312, the virtual machine configured on the default gateway 312 does not need to reconfigure the virtual machine 312 is not perceived gateway to change, try to avoid the problem of traffic interruption virtual machine migration process because the gateway 312 variations.

[0077] 可选地,上述第一实体网关302的配置器304、接收器306、处理器308和发送器310可以集成为一个或多个独立的电路或硬件,如:专用集成电路(英文全称为Application Specific Integrated Circuit,英文简称为ASIC)。 [0077] Alternatively, the first gateway 302 is disposed entity 304, a receiver 306, a processor 308 and transmitter 310 may be integrated into one or more independent circuits or hardware, such as: application specific integrated circuits (full name as Application Specific Integrated Circuit, English referred to as ASIC).

[0078] 可见,通过本发明实施例提供的技术方案,在物理上分离的所述第一实体网关202和所述第二实体网关上分别配置相同的所述虚拟网关IP地址,将所述第一实体网关202和所述第二实体网关虚拟化后的一个虚拟网关,这样在所述虚拟机212迁移时,所述虚拟机上212的配置的默认网关不需要重新配置,虚拟机212感知不到网关变化,尽量避免了虚拟机212迁移过程中由于网关变化导致的流量中断的问题。 [0078] visible, the technical solution provided by the embodiment of the present invention, arranged on physically separate entities of the first gateway 202 and the second entity are the same gateway the virtual IP address of the gateway, the first a virtual gateway entity after a second gateway 202 and the virtual gateway entity, so when the migration of the virtual machine 212, the configuration of the virtual machine 212 does not need to reconfigure the default gateway, the virtual machine 212 is not perceived gateway to change, try to avoid the problem of traffic VM 212 migration process because of interruptions due to changes in the gateway.

[0079] 本发明实施例中提到的第一实体网关中的“第一”只是用来做名字标识,并不代表顺序上的第一;第二实体网关中的“第二”也只是用来做名字标识,并不代表顺序上的第二。 [0079] The first embodiment of the present invention is a gateway entity mentioned in the "first" is only used for identification name does not represent the first order; second gateway entity "second" is only used do name identification, does not mean that the second order.

[0080] 本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:只读存储器(英文全称为read-only memory,英文简称为ROM)、RAM、磁碟或者光盘等各种可以存储程序代码的介质。 [0080] Those of ordinary skill in the art can be appreciated: realize all or part of the steps of the method described above may be implemented by a program instructing relevant hardware to complete, the program may be stored in a computer readable storage medium, when the program execution , comprising the step of performing the above-described embodiment of the method; and the storage medium comprising: a variety of read-only memory (English full read-only memory, English referred to as ROM), RAM, magnetic disk, or an optical disc medium capable of storing program code .

[0081] 最后应说明的是:以上实施例仅用以示例性的说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明及本发明带来的有益效果进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明权利要求的范围。 [0081] Finally, it should be noted that: the above embodiments are intended to illustrate the present invention in an exemplary, rather than limiting; Although the foregoing embodiments of the present invention with reference to the present invention and the beneficial effects of the embodiment in detail description, those of ordinary skill in the art should be understood: it may still make modifications to the technical solutions described in the embodiments, some technical features or equivalent replacements; such modifications or replacements do not cause the corresponding technical solutions essence departing from the scope of the appended claims.

Claims (8)

  1. 1. 一种网络中虚拟机迁移的方法,其特征在于,所述网络包括第一实体网关、第二实体网关、数据中心及虚拟机,所述虚拟机通过所述第二实体网关与所述数据中心连接,所述第二实体网关上配置虚拟网关IP地址,所述第二实体网关保存有所述虚拟网关IP地址和虚拟MAC地址对应关系,所述虚拟机默认网关IP地址为所述虚拟网关IP地址,所述方法包括: 在所述虚拟机从所述第二实体网关迁移到所述第一实体网关之前,所述第一实体网关配置所述虚拟网关IP地址,所述第一实体网关建立所述虚拟网关IP地址与所述虚拟MAC地址的对应关系; 在所述虚拟机从所述第二实体网关迁移到所述第一实体网关后,所述第一实体网关接收所述虚拟机发送的免费地址解析协议ARP报文,所述免费ARP报文包含所述虚拟机的IP地址及MAC地址; 所述第一实体网关根据所述虚拟机的IP 1. A method of machine migration, the virtual network, wherein said network entity comprising a first gateway, a second gateway entity, the data center and the virtual machine, the virtual machine by the second entity with the gateway connected to the data center, the gateway IP address configured on the virtual entity of the second gateway, stores the virtual gateway IP address and MAC address of the virtual corresponding relationship between the second gateway entity, the virtual IP address of the default gateway of the virtual gateway IP address, the method comprising: migrating a virtual machine from the gateway entity to the second entity prior to the first gateway, the first gateway entity configuring the virtual IP address of the gateway, the first entity gateway establishes a mapping between the IP address and the virtual MAC address of the virtual gateway; after migrating from the second gateway to the first entity in the virtual machine gateway entity, said first entity receiving the virtual gateway free address Resolution protocol ARP packet sent by the gratuitous ARP message contains the IP address of the virtual machine and the MAC address; the first entity according to the IP gateway of the virtual machine 地址生成所述虚拟机的路由; 所述第一实体网关向所述数据中心发布所述虚拟机路由。 Generating routing address of the virtual machine; the first entity issuing the virtual machine gateway to route the data center.
  2. 2.根据权利要求I所述的方法,其特征在于,所述虚拟MAC地址为预先规划的用于标识所述第一实体网关和所第二实体网关的MAC地址。 2. The method as claimed in claim I, wherein said virtual MAC address is a MAC address for identifying the pre-planned first entity and the second entity gateway gateway.
  3. 3.根据权利要求I或2所述的方法,其特征在于,所述第一实体网关只本地保存所述虚拟网关IP地址路由,并不对外发布所述所述虚拟网关IP地址路由。 3. The method of claim I or claim 2, wherein said first gateway entity only locally stored routing the virtual gateway IP address, is not released to the IP address of the virtual gateway routing.
  4. 4.根据权利要求I至3任一权利要求所述的方法,其特征在于,所述所述第一实体网关向所述数据中心发布所述虚拟机路由,包括: 所述第一实体网关通过BGP或IGP向所述数据中心发布所述虚拟机路由。 The method according to claim I according to any one of claims 3 to, characterized in that said first entity issuing the virtual machine gateway to route the data center, comprising: a first entity said gateway BGP or IGP routing issue the virtual machines to the data center.
  5. 5. 一种网络中的第一实体网关,其特征在于,所述网络还包括第二实体网关、数据中心及虚拟机,所述虚拟机通过所述第二实体网关与所述数据中心连接,所述第二实体网关上配置虚拟网关IP地址,所述第二实体网关保存有所述虚拟网关IP地址和虚拟MAC地址对应关系,所述虚拟机默认网关IP地址为所述虚拟网关IP地址,所述第一实体网关包括: 配置单元,用于在所述虚拟机从所述第二实体网关迁移到所述第一实体网关之前,配置所述虚拟网关IP地址,并建立所述虚拟网关IP地址与所述虚拟MAC地址的对应关系; 接收单元,用于在所述虚拟机从所述第二实体网关迁移到所述第一实体网关后,接收所述虚拟机发送的免费地址解析协议ARP报文,所述免费ARP报文包含所述虚拟机IP的地址及MAC地址; 生成单元,用于根据所述虚拟机IP的地址生成所述虚拟机的路由; A first entity in the network gateway, wherein the gateway network further comprises a second entity, the data center and the virtual machine, the virtual machine gateway via the second entity connected with the data center, the physical configuration of the second virtual gateway IP address of gateway, stores the virtual gateway IP address and MAC address of the virtual corresponding relationship between the second gateway entity, the virtual machine is the default gateway IP address of the virtual IP address of the gateway, the first gateway entity comprising: a configuring unit, configured to, before the virtual machine from the gateway entity to the second entity a first gateway, configuring the virtual IP address of the gateway, and establishing the virtual gateway IP corresponding relationship between the virtual address and the MAC address; a receiving unit, configured to, after the virtual machine from the gateway entity to the second entity a first gateway, receiving the free ARP virtual transmits an ARP packet, the gratuitous ARP packet containing the IP address of the virtual machine and the MAC address; generating means for routing according to the IP address of the virtual machine to generate the virtual machine; 发布单元,用于向所述数据中心发布所述虚拟机路由。 Issuing unit for issuing routing the virtual machine to the data center.
  6. 6.根据权利要求5所述的第一实体网关,其特征在于,所述第一实体网关为宽带远程接入服务器BRAS或业务路由器SR或交换机。 The first gateway entity according to claim 5, wherein the first entity is a gateway or a broadband remote access server BRAS SR service router or switch.
  7. 7. —种网络中虚拟机迁移的系统,其特征在于,所述系统包括第一实体网关及虚拟机,所述虚拟机通过第二实体网关与数据中心连接,所述第二实体网关上配置虚拟网关IP地址,所述第二实体网关保存有所述虚拟网关IP地址和虚拟MAC地址对应关系,所述虚拟机默认网关IP地址为所述虚拟网关IP地址,其中,所述第一实体网关包括: 配置单元,用于在所述虚拟机从所述第二实体网关迁移到所述第一实体网关之前,配置所述虚拟网关IP地址,并建立所述虚拟网关IP地址与所述虚拟MAC地址的对应关系;接收单元,用于在所述虚拟机从所述第二实体网关迁移到所述第一实体网关后,接收所述虚拟机发送的免费地址解析协议ARP报文,所述免费ARP报文包含所述虚拟机的IP地址及MAC地址; 生成单元,用于根据所述虚拟机的IP地址生成所述虚拟机的路由; 发布单元,用 7. - species migrating virtual machines in the network system, wherein said system comprises a first entity and a gateway virtual machine, the virtual machine is connected via a second gateway to a data center entities disposed on said second gateway entity virtual gateway IP address, the stored virtual gateway IP address and MAC address of the virtual corresponding relationship between the second gateway entity, the virtual machine default gateway IP address is the IP address of the virtual gateway, wherein the gateway entity first comprising: a configuring unit, configured to, before the virtual machine from the gateway entity to the second entity a first gateway, configuring the virtual IP address of the gateway, and establishing the virtual gateway IP address and the virtual MAC address correspondence relationship; after receiving unit for migrating from a gateway to the second entity the first entity in the virtual machine gateway, receiving the free ARP virtual ARP packets sent by the free ARP packet containing the IP address of the virtual machine and the MAC address; generating means for generating a route of the virtual machine according to the IP address of the virtual machine; release unit, with 于向所述数据中心发布所述虚拟机路; 所述虚拟机包括: 发送单元,用于在所述虚拟机从所述第二实体网关迁移到所述第一实体网关后,向所述第一实体网关发送免费ARP报文,所述免费ARP报文包含所述虚拟机的IP地址及MAC地址。 To release the virtual machine channel to the data center; said virtual machine comprising: a sending unit, configured to, after the virtual machine from the gateway entity to the second entity a first gateway, to the first the gateway entity transmits a gratuitous ARP packet, the gratuitous ARP packet contains the IP address of the virtual machine and the MAC address.
  8. 8.根据权利要求7所述的虚拟机迁移的系统,其特征在于,所述第一实体网关为宽带远程接入服务器BRAS或业务路由器SR或交换机。 The system migrating virtual machines according to claim 7, wherein the first entity is a gateway or a broadband remote access server BRAS SR service router or switch.
CN 201210266467 2012-07-30 2012-07-30 Method for virtual machine migration in network, gateway and system CN102801715B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210266467 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
CN 201210266467 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 true true CN102801715A (en) 2012-11-28
CN102801715B CN102801715B (en) 2015-03-11

Family

ID=47200678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201210266467 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)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103346900A (en) * 2013-05-31 2013-10-09 华为技术有限公司 Route configuration method and gateway after thermal migration of virtual machine in large two-layer network
CN103795650A (en) * 2014-01-27 2014-05-14 杭州华三通信技术有限公司 Configuration information migration method and setting method and device of configuration information migration method and setting method
CN103916320A (en) * 2012-12-28 2014-07-09 中国移动通信集团公司 Method and device for message processing after cross-network relocation of VM device
CN104243427A (en) * 2013-06-19 2014-12-24 日电(中国)有限公司 Virtual machine online migration method and data package transmission method and device
CN104243265A (en) * 2014-09-05 2014-12-24 华为技术有限公司 Gateway control method, device and system based on virtual machine migration
CN104717081A (en) * 2013-12-13 2015-06-17 杭州华为数字技术有限公司 Gateway function realization method and device
WO2015100953A1 (en) * 2013-12-31 2015-07-09 华为技术有限公司 Method and device for implementing virtual machine communication
WO2015117401A1 (en) * 2014-07-31 2015-08-13 中兴通讯股份有限公司 Information processing method and device
WO2016082528A1 (en) * 2014-11-26 2016-06-02 华为技术有限公司 Method, gateway and system for synchronizing virtual machine location information between data center gateways
WO2016107594A1 (en) * 2014-12-31 2016-07-07 Hangzhou H3C Technologies Co., Ltd. Accessing external network from virtual network
WO2016127911A1 (en) * 2015-02-12 2016-08-18 Hangzhou H3C Technologies Co., Ltd. Preventing flow interruption caused by migration of vm
CN103716221B (en) * 2013-12-10 2017-02-01 同济大学 A kind of virtual machine live migration method in the future under the WAN network in ndn
WO2017054718A1 (en) * 2015-09-29 2017-04-06 杭州华三通信技术有限公司 User migration
WO2018040530A1 (en) * 2016-08-30 2018-03-08 华为技术有限公司 Method and apparatus for determining virtual machine migration

Citations (4)

* 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
US20120137287A1 (en) * 2010-11-29 2012-05-31 The Board Of Trustees Of The University Of Illinois Optimized game server relocation environment

Patent Citations (4)

* 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
US20120137287A1 (en) * 2010-11-29 2012-05-31 The Board Of Trustees Of The University Of Illinois Optimized game server relocation environment
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

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916320A (en) * 2012-12-28 2014-07-09 中国移动通信集团公司 Method and device for message processing after cross-network relocation of VM device
CN103346900A (en) * 2013-05-31 2013-10-09 华为技术有限公司 Route configuration method and gateway after thermal migration of virtual machine in large two-layer network
CN104243427B (en) * 2013-06-19 2018-04-06 日电(中国)有限公司 Virtual Machine live migration method, packet transmission method and apparatus
CN104243427A (en) * 2013-06-19 2014-12-24 日电(中国)有限公司 Virtual machine online migration method and data package transmission method and device
CN103716221B (en) * 2013-12-10 2017-02-01 同济大学 A kind of virtual machine live migration method in the future under the WAN network in ndn
CN104717081B (en) * 2013-12-13 2018-01-23 杭州华为数字技术有限公司 Implemented method and apparatus for gateway function
CN104717081A (en) * 2013-12-13 2015-06-17 杭州华为数字技术有限公司 Gateway function realization method and device
WO2015100953A1 (en) * 2013-12-31 2015-07-09 华为技术有限公司 Method and device for implementing virtual machine communication
US9577958B2 (en) 2013-12-31 2017-02-21 Huawei Technologies Co., Ltd. Method and apparatus for implementing communication between virtual machines
US9325615B2 (en) 2013-12-31 2016-04-26 Huawei Technologies Co., Ltd. Method and apparatus for implementing communication between virtual machines
US10003571B2 (en) 2013-12-31 2018-06-19 Huawei Technologies Co., Ltd. Method and apparatus for implementing communication between virtual machines
CN103795650A (en) * 2014-01-27 2014-05-14 杭州华三通信技术有限公司 Configuration information migration method and setting method and device of configuration information migration method and setting method
WO2015117401A1 (en) * 2014-07-31 2015-08-13 中兴通讯股份有限公司 Information processing method and device
CN104243265B (en) * 2014-09-05 2018-01-05 华为技术有限公司 Gateway control method based on the migration of the virtual machine, apparatus and system for
CN104243265A (en) * 2014-09-05 2014-12-24 华为技术有限公司 Gateway control method, device and system based on virtual machine migration
WO2016082528A1 (en) * 2014-11-26 2016-06-02 华为技术有限公司 Method, gateway and system for synchronizing virtual machine location information between data center gateways
WO2016107594A1 (en) * 2014-12-31 2016-07-07 Hangzhou H3C Technologies Co., Ltd. Accessing external network from virtual network
WO2016127911A1 (en) * 2015-02-12 2016-08-18 Hangzhou H3C Technologies Co., Ltd. Preventing flow interruption caused by migration of vm
WO2017054718A1 (en) * 2015-09-29 2017-04-06 杭州华三通信技术有限公司 User migration
WO2018040530A1 (en) * 2016-08-30 2018-03-08 华为技术有限公司 Method and apparatus for determining virtual machine migration

Also Published As

Publication number Publication date Type
CN102801715B (en) 2015-03-11 grant

Similar Documents

Publication Publication Date Title
Nordström et al. Serval: An end-host stack for service-centric networking
US8612627B1 (en) Managing encoded multi-part communications for provided computer networks
US7937438B1 (en) Using virtual networking devices to manage external connections
US20110022711A1 (en) Dynamically migrating computer networks
US20110310899A1 (en) Distributed Virtual Network Gateways
US20130332983A1 (en) Elastic Enforcement Layer for Cloud Security Using SDN
US20090063706A1 (en) Combined Layer 2 Virtual MAC Address with Layer 3 IP Address Routing
US8369333B2 (en) Method and apparatus for transparent cloud computing with a virtualized network infrastructure
US20110019676A1 (en) Extended subnets
US7865586B2 (en) Configuring communications between computing nodes
US20130136126A1 (en) Data center network system and packet forwarding method thereof
US20120287936A1 (en) Efficient software-based private vlan solution for distributed virtual switches
US8644188B1 (en) Providing virtual networking functionality for managed computer networks
US20090249473A1 (en) Authorizing communications between computing nodes
US20090327392A1 (en) Method and system for creating a virtual router in a blade chassis to maintain connectivity
US8224931B1 (en) Managing use of intermediate destination computing nodes for provided computer networks
US20120331142A1 (en) Private virtual local area network isolation
US20130332577A1 (en) Multitenant server for virtual networks within datacenter
US20090248896A1 (en) Embedding overlay virtual network addresses in underlying substrate network addresses
US8683023B1 (en) Managing communications involving external nodes of provided computer networks
US20100191813A1 (en) Automatically releasing resources reserved for subscriber devices within a broadband access network
US8396946B1 (en) Managing integration of external nodes into provided computer networks
US20090150883A1 (en) Method and system for controlling network traffic in a blade chassis
US20130058346A1 (en) Distributed Routing Domains in Multi-Tenant Datacenter Virtual Networks
US20100246443A1 (en) Providing logical networking functionality for managed computer networks

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model