CN104243265A - Gateway control method, device and system based on virtual machine migration - Google Patents
Gateway control method, device and system based on virtual machine migration Download PDFInfo
- Publication number
- CN104243265A CN104243265A CN201410449715.5A CN201410449715A CN104243265A CN 104243265 A CN104243265 A CN 104243265A CN 201410449715 A CN201410449715 A CN 201410449715A CN 104243265 A CN104243265 A CN 104243265A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- gateway
- physical
- address
- vtep
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/34—Signalling channels for network management communication
- H04L41/342—Signalling channels for network management communication between virtual entities, e.g. orchestrators, SDN or NFV entities
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明实施例公开了一种基于虚拟机迁移的网关控制方法、装置及系统,涉及通信领域,用以解决虚拟机迁移后进行数据传输时,占用设备间进行数据传输的带宽,造成带宽资源浪费的问题。具体方案为:SDN控制器获取第一虚拟机网关的IP地址、第一虚拟机网关MAC地址和第二物理服务器的VTEP IP地址;SDN控制器根据第二物理服务器的VTEP IP地址,控制第二物理网关为虚拟机在第二物理网关上配置第二虚拟机网关,第二虚拟机网关的IP地址与第一虚拟机网关的IP地址相同,且第二虚拟机网关的MAC地址与第一虚拟机网关的MAC地址相同;创建第一流表项,以使得第二物理网关根据第一流表项所指示的数据转发策略为该虚拟机转发数据。
The embodiment of the present invention discloses a gateway control method, device, and system based on virtual machine migration, which relate to the communication field and are used to solve the problem of occupying bandwidth for data transmission between devices when data transmission is performed after virtual machine migration, resulting in waste of bandwidth resources The problem. The specific solution is: the SDN controller obtains the IP address of the first virtual machine gateway, the MAC address of the first virtual machine gateway, and the VTEP IP address of the second physical server; the SDN controller controls the second physical server according to the VTEP IP address of the second physical server. The physical gateway configures the second virtual machine gateway on the second physical gateway for the virtual machine. The IP address of the second virtual machine gateway is the same as the IP address of the first virtual machine gateway, and the MAC address of the second virtual machine gateway is the same as that of the first virtual machine gateway. The MAC address of the physical gateway is the same; the first flow entry is created, so that the second physical gateway forwards data for the virtual machine according to the data forwarding policy indicated by the first flow entry.
Description
技术领域technical field
本发明涉及通信领域,尤其涉及一种基于虚拟机迁移的网关控制方法、装置及系统。The present invention relates to the communication field, in particular to a virtual machine migration-based gateway control method, device and system.
背景技术Background technique
虚拟机(Virtual Machine,VM)是指通过软件模拟的具有完整硬件系统功能的,且运行在物理服务器上的计算机系统。一台物理服务器上可以同时运行多个虚拟机,每个虚拟机使用物理服务器中的一部分物理资源,如中央处理器、内存等。A virtual machine (Virtual Machine, VM) refers to a computer system that is simulated by software and has complete hardware system functions and runs on a physical server. A physical server can run multiple virtual machines at the same time, and each virtual machine uses a part of the physical resources of the physical server, such as CPU and memory.
虚拟机可以由一个物理服务器迁移至另一个物理服务器,并在迁移后的物理服务器上运行,以实现服务器的负载均衡、在线维护和故障处理等功能。其中,虚拟机迁移前所在的物理服务器的物理网关与虚拟机迁移后所在的物理服务器的物理网关不同,一个物理网关上可以配置至少一个虚拟机的虚拟机网关。A virtual machine can be migrated from one physical server to another, and run on the migrated physical server to achieve server load balancing, online maintenance, and fault handling. Wherein, the physical gateway of the physical server where the virtual machine resides before migration is different from the physical gateway of the physical server where the virtual machine resides after migration, and at least one virtual machine gateway of a virtual machine can be configured on a physical gateway.
其中,当虚拟机由一个物理服务器(物理服务器A)迁移至另一个物理服务器(物理服务器B)时,虚拟机的物理位置发生了变化,而虚拟机的虚拟机网关仍处于物理服务器A的物理网关上,此时,为了保证业务的连续性,虚拟机在与其他虚拟机(其他虚拟机为与该虚拟机处于不同网段的虚拟机)进行通信时,需要通过交换机将物理服务器B与物理服务器A相连,再通过物理服务器A的物理网关上配置的该虚拟机的虚拟机网关(原虚拟机网关)进行数据的转发。Among them, when a virtual machine is migrated from one physical server (physical server A) to another physical server (physical server B), the physical location of the virtual machine has changed, but the virtual machine gateway of the virtual machine is still in the physical On the gateway, at this time, in order to ensure business continuity, when the virtual machine communicates with other virtual machines (the other virtual machines are virtual machines on a different network segment from the virtual machine), it is necessary to connect the physical server B and the physical The server A is connected, and then the data is forwarded through the virtual machine gateway (the original virtual machine gateway) of the virtual machine configured on the physical gateway of the physical server A.
但是,存在的问题是:虚拟机和与该虚拟机处于不同物理服务器的虚拟机网关传输数据时,需要经过物理服务器之间的若干其他设备(如交换机)对该数据进行转发,而设备之间额外的数据转发则会增加设备之间进行数据传输的数据流量,占用设备之间进行数据传输的带宽,造成带宽资源的浪费。However, there is a problem that when a virtual machine and a virtual machine gateway that is on a different physical server from the virtual machine transmit data, the data needs to be forwarded through several other devices (such as switches) between the physical servers, and the data between the devices Additional data forwarding will increase the data traffic for data transmission between devices, occupy the bandwidth for data transmission between devices, and cause a waste of bandwidth resources.
发明内容Contents of the invention
本发明的实施例提供一种基于虚拟机迁移的网关控制方法、装置及系统,用以解决虚拟机迁移后进行数据传输时,占用设备之间进行数据传输的带宽,造成带宽资源浪费的问题。Embodiments of the present invention provide a gateway control method, device, and system based on virtual machine migration to solve the problem of occupying bandwidth for data transmission between devices during data transmission after virtual machine migration, resulting in waste of bandwidth resources.
为达到上述目的,本发明的实施例采用如下技术方案:In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:
本发明实施例的第一方面,提供一种基于虚拟机迁移的网关控制方法,第一物理网关为第一物理服务器的物理网关,第二物理网关为第二物理服务器的物理网关,当虚拟机由所述第一物理服务器迁移至所述第二物理服务器时,所述方法包括:The first aspect of the embodiments of the present invention provides a gateway control method based on virtual machine migration. The first physical gateway is the physical gateway of the first physical server, and the second physical gateway is the physical gateway of the second physical server. When the virtual machine When migrating from the first physical server to the second physical server, the method includes:
软件定义网络SDN控制器获取第一虚拟机网关的网际协议IP地址、所述第一虚拟机网关的媒体接入控制MAC地址和第二物理服务器的虚拟隧道终端节点VTEP IP地址,所述第一虚拟机网关为配置在所述第一物理网关上的所述虚拟机的虚拟机网关;The software-defined network SDN controller obtains the IP address of the Internet protocol of the first virtual machine gateway, the media access control MAC address of the first virtual machine gateway, and the virtual tunnel terminal node VTEP IP address of the second physical server, and the first The virtual machine gateway is a virtual machine gateway of the virtual machine configured on the first physical gateway;
所述SDN控制器根据所述第二物理服务器的VTEP IP地址,控制所述第二物理网关为所述虚拟机在所述第二物理网关上配置第二虚拟机网关,所述第二虚拟机网关的IP地址与所述第一虚拟机网关的IP地址相同,且所述第二虚拟机网关的MAC地址与所述第一虚拟机网关的MAC地址相同;The SDN controller controls the second physical gateway to configure a second virtual machine gateway for the virtual machine on the second physical gateway according to the VTEP IP address of the second physical server, and the second virtual machine The IP address of the gateway is the same as the IP address of the first virtual machine gateway, and the MAC address of the second virtual machine gateway is the same as the MAC address of the first virtual machine gateway;
所述SDN控制器创建第一流表项,所述第一流表项中包含所述第二物理网关的VTEP IP地址、所述第二虚拟机网关的IP地址、所述第二虚拟机网关的MAC地址和所述虚拟机的IP地址之间的映射关系以及所述虚拟机的扩展虚拟局域网络VxLAN ID,并发送所述第一流表项至所述第二物理网关,以使得所述第二物理网关根据所述第一流表项所指示的数据转发策略为所述虚拟机转发数据,所述虚拟机的VxLAN ID用于标识所述虚拟机所在的网段。The SDN controller creates a first flow entry, the first flow entry includes the VTEP IP address of the second physical gateway, the IP address of the second virtual machine gateway, and the MAC address of the second virtual machine gateway The mapping relationship between the address and the IP address of the virtual machine and the extended virtual local area network VxLAN ID of the virtual machine, and send the first flow entry to the second physical gateway, so that the second physical The gateway forwards data for the virtual machine according to the data forwarding policy indicated by the first flow entry, and the VxLAN ID of the virtual machine is used to identify the network segment where the virtual machine is located.
结合第一方面,在一种可能的实现方式中,所述SDN控制器根据所述第二物理服务器的VTEP IP地址,控制所述第二物理网关为所述虚拟机在所述第二物理网关上配置第二虚拟机网关,包括:With reference to the first aspect, in a possible implementation manner, the SDN controller controls the second physical gateway to make the virtual machine on the second physical gateway according to the VTEP IP address of the second physical server. Configure the second virtual machine gateway on it, including:
所述SDN控制器根据所述第二物理服务器的VTEP IP地址确定所述第二物理网关的VTEP IP地址;The SDN controller determines the VTEP IP address of the second physical gateway according to the VTEP IP address of the second physical server;
所述SDN控制器根据所述第二物理网关的VTEP IP地址,控制所述第二物理网关为所述虚拟机在所述第二物理网关上配置所述第二虚拟机网关。The SDN controller controls the second physical gateway to configure the second virtual machine gateway on the second physical gateway for the virtual machine according to the VTEP IP address of the second physical gateway.
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,所述SDN控制器根据所述第二物理网关的VTEP IP地址,控制所述第二物理网关为所述虚拟机在所述第二物理网关上配置所述第二虚拟机网关,包括:In combination with the first aspect and the above possible implementation, in another possible implementation, the SDN controller controls the second physical gateway to be the virtual machine according to the VTEP IP address of the second physical gateway. Configuring the second virtual machine gateway on the second physical gateway includes:
所述SDN控制器根据所述第二物理网关的VTEP IP地址,发送所述第一虚拟机网关的IP地址和所述第一虚拟机网关的MAC地址至所述第二物理网关,以使得所述第二物理网关根据所述第一虚拟机网关的IP地址和所述第一虚拟机网关的MAC地址在所述第二物理网关上配置所述第二虚拟机网关。The SDN controller sends the IP address of the first virtual machine gateway and the MAC address of the first virtual machine gateway to the second physical gateway according to the VTEP IP address of the second physical gateway, so that the The second physical gateway configures the second virtual machine gateway on the second physical gateway according to the IP address of the first virtual machine gateway and the MAC address of the first virtual machine gateway.
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,所述软件定义网络SDN控制器获取第一虚拟机网关的网际协议IP地址、所述第一虚拟机网关的媒体接入控制MAC地址和第二物理服务器的虚拟隧道终端节点VTEP IP地址,包括:In combination with the first aspect and the foregoing possible implementation manner, in another possible implementation manner, the software-defined network SDN controller acquires the Internet Protocol IP address of the first virtual machine gateway, the media address of the first virtual machine gateway Access control MAC address and virtual tunnel terminal node VTEP IP address of the second physical server, including:
所述SDN控制器获取虚拟机迁移信息,所述虚拟机迁移信息包括:所述虚拟机的IP地址、所述虚拟机的MAC地址和所述第二物理服务器的VTEP IP地址;The SDN controller obtains virtual machine migration information, and the virtual machine migration information includes: the IP address of the virtual machine, the MAC address of the virtual machine, and the VTEP IP address of the second physical server;
所述SDN控制器根据所述虚拟机的IP地址和所述虚拟机的MAC地址确定所述第一虚拟机网关的IP地址和所述第一虚拟机网关的MAC地址。The SDN controller determines the IP address of the first virtual machine gateway and the MAC address of the first virtual machine gateway according to the IP address of the virtual machine and the MAC address of the virtual machine.
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,在所述SDN控制器创建第一流表项之后,所述方法还包括:With reference to the first aspect and the foregoing possible implementation manner, in another possible implementation manner, after the SDN controller creates the first flow entry, the method further includes:
删除第二流表项,所述第二流表项中包含所述第一物理网关的VTEPIP地址、第一虚拟机网关的IP地址、所述第一虚拟机网关的MAC地址和所述虚拟机的IP地址之间的映射关系以及所述虚拟机的扩展虚拟局域网络VxLAN ID。Delete the second flow entry, the second flow entry includes the VTEP IP address of the first physical gateway, the IP address of the first virtual machine gateway, the MAC address of the first virtual machine gateway, and the virtual machine The mapping relationship between the IP address and the extended virtual local area network VxLAN ID of the virtual machine.
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,在所述SDN控制器创建第一流表项之前,所述SDN控制器获取虚拟机迁移信息之后,所述方法还包括:With reference to the first aspect and the foregoing possible implementation manner, in another possible implementation manner, after the SDN controller obtains virtual machine migration information before the SDN controller creates the first flow entry, the method further include:
根据所述虚拟机的IP地址和所述虚拟机的MAC地址确定所述虚拟机的VxLAN ID。Determine the VxLAN ID of the virtual machine according to the IP address of the virtual machine and the MAC address of the virtual machine.
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,在所述创建第一流表项之后,所述方法还包括:In combination with the first aspect and the foregoing possible implementation manner, in another possible implementation manner, after the first flow entry is created, the method further includes:
判断所述虚拟机的VxLAN ID所标识的网段内,是否存在其他虚拟机使用所述第一虚拟机网关;Judging whether there are other virtual machines using the first virtual machine gateway in the network segment identified by the VxLAN ID of the virtual machine;
若所述虚拟机的VxLAN ID所标识的网段内,不存在所述其他虚拟机使用所述第一虚拟机网关,则控制所述第一物理网关删除所述第一物理网关上配置的所述第一虚拟机网关。If there is no other virtual machine using the first virtual machine gateway in the network segment identified by the VxLAN ID of the virtual machine, then controlling the first physical gateway to delete all the configurations configured on the first physical gateway Describe the first virtual machine gateway.
本发明实施例的第二方面,提供一种软件定义网络SDN控制器,第一物理网关为第一物理服务器的物理网关,第二物理网关为第二物理服务器的物理网关,应用于虚拟机由所述第一物理服务器迁移至所述第二物理服务器的过程中,所述SDN控制器包括:The second aspect of the embodiment of the present invention provides a software-defined network SDN controller, the first physical gateway is the physical gateway of the first physical server, and the second physical gateway is the physical gateway of the second physical server, which is applied to the virtual machine by During the process of migrating the first physical server to the second physical server, the SDN controller includes:
获取单元,用于获取第一虚拟机网关的网际协议IP地址、所述第一虚拟机网关的媒体接入控制MAC地址和第二物理服务器的虚拟隧道终端节点VTEP IP地址,所述第一虚拟机网关为配置在所述第一物理网关上的所述虚拟机的虚拟机网关;An acquisition unit configured to acquire the IP address of the Internet protocol of the first virtual machine gateway, the media access control MAC address of the first virtual machine gateway, and the virtual tunnel terminal node VTEP IP address of the second physical server, the first virtual machine The machine gateway is a virtual machine gateway of the virtual machine configured on the first physical gateway;
配置单元,用于根据所述获取单元获取的所述第二物理服务器的VTEP IP地址,控制所述第二物理网关为所述虚拟机在所述第二物理网关上配置第二虚拟机网关,所述第二虚拟机网关的IP地址与所述获取单元获取的所述第一虚拟机网关的IP地址相同,且所述第二虚拟机网关的MAC地址与所述获取单元获取的所述第一虚拟机网关的MAC地址相同;A configuration unit, configured to control the second physical gateway to configure a second virtual machine gateway on the second physical gateway for the virtual machine according to the VTEP IP address of the second physical server acquired by the acquisition unit, The IP address of the second virtual machine gateway is the same as the IP address of the first virtual machine gateway obtained by the obtaining unit, and the MAC address of the second virtual machine gateway is the same as that of the first virtual machine gateway obtained by the obtaining unit. The MAC addresses of the virtual machine gateways are the same;
创建单元,用于创建第一流表项,所述第一流表项中包含所述第二物理网关的VTEP IP地址、所述第二虚拟机网关的IP地址、所述第二虚拟机网关的MAC地址和所述虚拟机的IP地址之间的映射关系以及所述虚拟机的扩展虚拟局域网络VxLAN ID;A creation unit, configured to create a first flow entry, the first flow entry includes the VTEP IP address of the second physical gateway, the IP address of the second virtual machine gateway, and the MAC of the second virtual machine gateway The mapping relationship between the address and the IP address of the virtual machine and the extended virtual local area network VxLAN ID of the virtual machine;
发送单元,用于发送创建单元创建的所述第一流表项至所述第二物理网关,以使得所述第二物理网关根据所述第一流表项所指示的数据转发策略为所述虚拟机转发数据,所述虚拟机的VxLAN ID用于标识所述虚拟机所在的网段。a sending unit, configured to send the first flow entry created by the creation unit to the second physical gateway, so that the second physical gateway provides the virtual machine with a data forwarding policy according to the data forwarding policy indicated by the first flow entry Forwarding data, the VxLAN ID of the virtual machine is used to identify the network segment where the virtual machine is located.
结合第二方面,在一种可能的实现方式中,所述配置单元,包括:With reference to the second aspect, in a possible implementation manner, the configuration unit includes:
第一确定子单元,用于根据所述第二物理服务器的VTEP IP地址确定所述第二物理网关的VTEP IP地址;The first determining subunit is used to determine the VTEP IP address of the second physical gateway according to the VTEP IP address of the second physical server;
配置子单元,用于根据所述第一确定子单元确定的所述第二物理网关的VTEP IP地址,控制所述第二物理网关为所述虚拟机在所述第二物理网关上配置所述第二虚拟机网关。The configuration subunit is configured to control the second physical gateway to configure the virtual machine on the second physical gateway according to the VTEP IP address of the second physical gateway determined by the first determination subunit. Second virtual machine gateway.
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,所述配置单元,具体用于根据所述第二物理网关的VTEP IP地址,发送所述第一虚拟机网关的IP地址和所述第一虚拟机网关的MAC地址至所述第二物理网关,以使得所述第二物理网关根据所述第一虚拟机网关的IP地址和所述第一虚拟机网关的MAC地址在所述第二物理网关上配置所述第二虚拟机网关。In combination with the second aspect and the above possible implementation, in another possible implementation, the configuration unit is specifically configured to send the VTEP IP address of the first virtual machine gateway according to the VTEP IP address of the second physical gateway. The IP address and the MAC address of the first virtual machine gateway to the second physical gateway, so that the second physical gateway according to the IP address of the first virtual machine gateway and the MAC address of the first virtual machine gateway The address configures the second virtual machine gateway on the second physical gateway.
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,所述获取单元,包括:In combination with the second aspect and the foregoing possible implementation manner, in another possible implementation manner, the acquiring unit includes:
获取子单元,用于获取虚拟机迁移信息,所述虚拟机迁移信息包括:所述虚拟机的IP地址、所述虚拟机的MAC地址和所述第二物理服务器的VTEP IP地址;An acquisition subunit, configured to acquire virtual machine migration information, where the virtual machine migration information includes: the IP address of the virtual machine, the MAC address of the virtual machine, and the VTEP IP address of the second physical server;
第二确定子单元,用于根据所述获取子单元获取的所述虚拟机的IP地址和所述虚拟机的MAC地址确定所述第一虚拟机网关的IP地址和所述第一虚拟机网关的MAC地址。A second determining subunit, configured to determine the IP address of the first virtual machine gateway and the first virtual machine gateway according to the IP address of the virtual machine and the MAC address of the virtual machine obtained by the obtaining subunit MAC address.
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,所述SDN控制器还包括:In combination with the second aspect and the foregoing possible implementation manner, in another possible implementation manner, the SDN controller further includes:
删除单元,用于在所述创建单元创建所述第一流表项之后,删除第二流表项,所述第二流表项中包含所述第一物理网关的VTEP IP地址、第一虚拟机网关的IP地址、所述第一虚拟机网关的MAC地址和所述虚拟机的IP地址之间的映射关系以及所述虚拟机的扩展虚拟局域网络VxLANID。A deletion unit, configured to delete a second flow entry after the creation unit creates the first flow entry, the second flow entry includes the VTEP IP address of the first physical gateway, the first virtual machine The IP address of the gateway, the mapping relationship between the MAC address of the gateway of the first virtual machine and the IP address of the virtual machine, and the extended virtual local area network VxLANID of the virtual machine.
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,所述SDN控制器还包括:In combination with the second aspect and the foregoing possible implementation manner, in another possible implementation manner, the SDN controller further includes:
确定单元,用于在所述创建单元创建所述第一流表项之前,所述获取单元获取所述虚拟机迁移信息之后,根据所述虚拟机的IP地址和所述虚拟机的MAC地址确定所述虚拟机的VxLAN ID。A determining unit, configured to determine the flow entry according to the IP address of the virtual machine and the MAC address of the virtual machine after the acquiring unit acquires the virtual machine migration information before the creating unit creates the first flow entry. VxLAN ID of the above-mentioned virtual machine.
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,所述SDN控制器还包括:In combination with the second aspect and the foregoing possible implementation manner, in another possible implementation manner, the SDN controller further includes:
判断单元,用于在所述创建单元创建所述第一流表项之后,判断所述虚拟机的VxLAN ID所标识的网段内,是否存在其他虚拟机使用所述第一虚拟机网关;A judging unit, configured to judge whether there are other virtual machines using the first virtual machine gateway in the network segment identified by the VxLAN ID of the virtual machine after the creating unit creates the first flow entry;
所述删除单元,还用于若所述判断单元判断得到所述虚拟机的VxLANID所标识的网段内,不存在所述其他虚拟机使用所述第一虚拟机网关,则控制所述第一物理网关删除所述第一物理网关上配置的所述第一虚拟机网关。The deleting unit is further configured to control the first virtual machine gateway if the judging unit judges that there is no other virtual machine using the first virtual machine gateway in the network segment identified by the VxLANID of the virtual machine. The physical gateway deletes the first virtual machine gateway configured on the first physical gateway.
本发明实施例的第三方面,提供一种基于虚拟机迁移的网关控制系统,第一物理网关为第一物理服务器的物理网关,第二物理网关为第二物理服务器的物理网关,应用于虚拟机由所述第一物理服务器迁移至所述第二物理服务器的过程中,所述系统包括:软件定义网络SDN控制器、所述虚拟机、所述第一物理服务器、所述第一物理网关、第一虚拟机网关、所述第二物理服务器、所述第二物理网关和第二虚拟机网关;The third aspect of the embodiment of the present invention provides a gateway control system based on virtual machine migration. The first physical gateway is the physical gateway of the first physical server, and the second physical gateway is the physical gateway of the second physical server. In the process of migrating the machine from the first physical server to the second physical server, the system includes: a software-defined network SDN controller, the virtual machine, the first physical server, and the first physical gateway , the first virtual machine gateway, the second physical server, the second physical gateway, and the second virtual machine gateway;
所述第一虚拟机网关为配置在所述第一物理网关上的所述虚拟机的虚拟机网关;所述第二虚拟机网关为配置在所述第二物理网关上的所述虚拟机的虚拟机网关;The first virtual machine gateway is the virtual machine gateway of the virtual machine configured on the first physical gateway; the second virtual machine gateway is the virtual machine gateway configured on the second physical gateway virtual machine gateway;
所述SDN控制器,用于执行如权利要求1-7中任一项所述的基于虚拟机迁移的网关控制方法;The SDN controller is configured to execute the gateway control method based on virtual machine migration according to any one of claims 1-7;
第二物理网关,用于根据所述SDN控制器的控制,在所述第二物理网关上配置所述第二虚拟机网关;The second physical gateway is configured to configure the second virtual machine gateway on the second physical gateway according to the control of the SDN controller;
其中,所述第二虚拟机网关的网际协议IP地址与所述第一虚拟机网关的IP地址相同,且所述第二虚拟机网关的MAC地址与所述第一虚拟机网关的媒体接入控制MAC地址相同。Wherein, the Internet Protocol IP address of the second virtual machine gateway is the same as the IP address of the first virtual machine gateway, and the MAC address of the second virtual machine gateway is the same as the media access address of the first virtual machine gateway. The control MAC address is the same.
本发明实施例提供的基于虚拟机迁移的网关控制方法、装置及系统,在虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置了与虚拟机迁移前的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机的虚拟机网关(第一虚拟机网关)具有相同的IP地址和MAC地址的虚拟机网关(第二虚拟机网关),保证了虚拟机迁移前后的虚拟机网关地址(虚拟机网关的IP地址和虚拟机网关的MAC地址)不变;并且,可以发送记录物理网关、虚拟机网关和虚拟机的映射关系的流表项至第二物理网关,以使虚拟机在进行数据传输时,可以直接通过虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置的虚拟机网关(第二虚拟机网关,即与虚拟机迁移前的虚拟机网关具有相同的IP地址和MAC地址的虚拟机网关)进行数据转发,不需要迂回到虚拟机迁移前所处的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机网关(第一虚拟机网关)进行数据转发,可以减少设备之间进行数据传输的数据流量,进而减少设备之间进行数据传输所占用的带宽,可以在一定程度上减少带宽资源的浪费。In the gateway control method, device and system based on virtual machine migration provided by the embodiments of the present invention, the physical gateway (second physical gateway) of the physical server (second physical server) after virtual machine migration is configured with the same The virtual machine gateway (first virtual machine gateway) of the virtual machine configured on the physical gateway (first physical gateway) of the physical server (first physical server) has the same IP address and MAC address as the virtual machine gateway (second virtual machine gateway) machine gateway), to ensure that the virtual machine gateway address (the IP address of the virtual machine gateway and the MAC address of the virtual machine gateway) remains unchanged before and after the virtual machine migration; moreover, the mapping relationship between the physical gateway, the virtual machine gateway and the virtual machine can be sent to record The flow entry to the second physical gateway, so that when the virtual machine performs data transmission, it can directly pass through the virtual machine configured on the physical gateway (second physical gateway) of the physical server (second physical server) after the virtual machine migration The gateway (the second virtual machine gateway, that is, the virtual machine gateway with the same IP address and MAC address as the virtual machine gateway before the virtual machine migration) performs data forwarding without detouring to the physical server where the virtual machine was located before the migration (No. The virtual machine gateway (first virtual machine gateway) configured on the physical gateway (first physical gateway) of a physical server) performs data forwarding, which can reduce the data traffic for data transmission between devices, thereby reducing the data transmission between devices The occupied bandwidth can reduce the waste of bandwidth resources to a certain extent.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to these drawings.
图1为实施例中的一种基于虚拟机迁移的网关控制方法流程图;FIG. 1 is a flowchart of a gateway control method based on virtual machine migration in an embodiment;
图2为实施例中的另一种基于虚拟机迁移的网关控制方法流程图;FIG. 2 is a flowchart of another gateway control method based on virtual machine migration in an embodiment;
图3为实施例中的一种虚拟机1和虚拟机2之间的通信交互图;FIG. 3 is a communication interaction diagram between a virtual machine 1 and a virtual machine 2 in an embodiment;
图4为实施例中的一种VxLAN报文的格式示意图;Fig. 4 is a schematic diagram of the format of a VxLAN message in an embodiment;
图5为实施例中的一种SDN控制器组成示意图;FIG. 5 is a schematic diagram of the composition of an SDN controller in an embodiment;
图6为实施例中的另一种SDN控制器组成示意图;FIG. 6 is a schematic diagram of the composition of another SDN controller in the embodiment;
图7为实施例中的另一种SDN控制器组成示意图;FIG. 7 is a schematic diagram of the composition of another SDN controller in the embodiment;
图8为实施例中的另一种SDN控制器组成示意图;FIG. 8 is a schematic diagram of the composition of another SDN controller in the embodiment;
图9为实施例中的另一种SDN控制器组成示意图;FIG. 9 is a schematic diagram of the composition of another SDN controller in the embodiment;
图10为实施例中的另一种SDN控制器组成示意图;FIG. 10 is a schematic diagram of the composition of another SDN controller in the embodiment;
图11为实施例中的再一种SDN控制器组成示意图;FIG. 11 is a schematic diagram of the composition of another SDN controller in the embodiment;
图12为实施例中的一种基于虚拟机迁移的网关控制系统组成示意图。Fig. 12 is a schematic composition diagram of a gateway control system based on virtual machine migration in an embodiment.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。本领域普通技术人员根据本发明中的实施例所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. All other embodiments obtained by persons of ordinary skill in the art according to the embodiments of the present invention belong to the protection scope of the present invention.
另外,本文中术语“系统”和“网络”在本文中常被可互换使用。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。Additionally, the terms "system" and "network" are often used herein interchangeably. The term "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations. In addition, the character "/" in this article generally indicates that the contextual objects are an "or" relationship.
为了方便理解本发明实施例,首先在此介绍本发明实施例描述中会引入的几个术语。In order to facilitate the understanding of the embodiments of the present invention, several terms that will be introduced in the description of the embodiments of the present invention are firstly introduced here.
数据中心:是一种数据整合系统,通常由计算系统、存储系统、通讯系统、网络设备、环境控制系统和安全系统等组件构成,其常用于数据的计算和存储。Data center: It is a data integration system, usually composed of components such as computing systems, storage systems, communication systems, network equipment, environmental control systems, and security systems, which are often used for data computing and storage.
云管理平台:可以是多个管理软件的集合,也可以是实现所需要的管理功能的一个软件。云管理平台可以以低运营成本实现对大规模的数据中心的集中管理。Cloud management platform: It can be a collection of multiple management software, or it can be a software that realizes the required management functions. The cloud management platform can realize centralized management of large-scale data centers with low operating costs.
物理服务器:是指一个用于管理资源并为用户提供服务的计算机。相对于普通计算机来说,物理服务器在稳定性和安全性等方面的要求更高。Physical server: refers to a computer used to manage resources and provide services to users. Compared with ordinary computers, physical servers have higher requirements in terms of stability and security.
虚拟机(Virtual Machine,VM):是指通过软件模拟的具有完整硬件系统功能的,且运行在物理服务器上的计算机系统。一台物理服务器上可以同时运行多个虚拟机,每个虚拟机使用物理服务器中的一部分物理资源,如中央处理器、内存等。也可以将多个不同类型的应用程序,运行在不同的虚拟机上,并整合到一个物理服务器上,这样可以提高资源的利用率,提高数据中心的计算能力。Virtual machine (Virtual Machine, VM): refers to a computer system that is simulated by software and has complete hardware system functions and runs on a physical server. A physical server can run multiple virtual machines at the same time, and each virtual machine uses a part of the physical resources of the physical server, such as CPU and memory. It is also possible to run multiple different types of applications on different virtual machines and integrate them into one physical server, which can improve resource utilization and increase the computing power of the data center.
扩展虚拟局域网络(Virtual Extensible LAN,VxLAN):是一种将二层(数据链路层)报文用三层(网络层)协议进行封装的技术,可以对二层网络在三层范围进行扩展。它应用于数据中心内部,使虚拟机可以在互相连通的三层网络范围内迁移,而不需要改变网际协议(InternetProtocol,IP)地址和媒体接入控制(Media Access Control,MAC)地址,保证业务的连续性。Extended Virtual Local Area Network (Virtual Extensible LAN, VxLAN): It is a technology that encapsulates Layer 2 (data link layer) packets with Layer 3 (network layer) protocols, and can extend the Layer 2 network in the Layer 3 range . It is applied inside the data center, so that the virtual machine can be migrated within the interconnected three-layer network without changing the Internet Protocol (Internet Protocol, IP) address and Media Access Control (Media Access Control, MAC) address, ensuring business continuity.
VxLAN ID(Virtual Extensible LAN ID):VxLAN网段的标识符,同一个网段内的虚拟机的VxLAN ID相同。VxLAN ID (Virtual Extensible LAN ID): The identifier of the VxLAN network segment. The VxLAN IDs of the virtual machines in the same network segment are the same.
虚拟隧道终端节点(Virtual tunnel endpoint,VTEP):用于对VxLAN报文(包括地址解析协议(Address Resolution Protocol,ARP)请求报文和正常的VxLAN数据报文)进行封装/解封装,在一端VTEP封装报文后通过隧道向另一端VTEP发送封装报文,另一端VTEP接收到封装报文后对报文解封装并根据封装的MAC地址进行转发。VTEP可由支持VxLAN的硬件设备或软件来实现。Virtual tunnel endpoint (Virtual tunnel endpoint, VTEP): used to encapsulate/decapsulate VxLAN packets (including address resolution protocol (Address Resolution Protocol, ARP) request packets and normal VxLAN data packets), at one end VTEP After the packet is encapsulated, the encapsulated packet is sent to the VTEP at the other end through the tunnel. After receiving the encapsulated packet, the VTEP at the other end decapsulates the packet and forwards it according to the encapsulated MAC address. VTEP can be implemented by hardware devices or software that support VxLAN.
地址解析协议ARP:是根据IP地址获取MAC地址的一个传输控制协议/因特网互联协议(Transmission Control Protocol/InternetProtocol,TCP/IP)。其功能是:本地物理服务器向网络上的所有物理服务器广播ARP请求,并接收网络上的某个物理服务器的返回消息,根据目标物理服务器的IP地址确定目标物理服务器的MAC地址,同时将目标物理服务器的IP地址和MAC地址存入本地物理服务器的ARP缓存中。Address Resolution Protocol ARP: It is a Transmission Control Protocol/Internet Protocol (Transmission Control Protocol/Internet Protocol, TCP/IP) that obtains a MAC address based on an IP address. Its function is: the local physical server broadcasts an ARP request to all physical servers on the network, and receives a return message from a certain physical server on the network, determines the MAC address of the target physical server according to the IP address of the target physical server, and sends the target physical server The IP address and MAC address of the server are stored in the ARP cache of the local physical server.
物理网关(Gateway,GW):负责不同VxLAN之间的数据转发,根据流表对VxLAN报文进行封装与解封装。Physical gateway (Gateway, GW): responsible for data forwarding between different VxLANs, and encapsulating and decapsulating VxLAN packets according to the flow table.
虚拟机网关:配置在物理网关上,用于虚拟机的数据转发。一个物理网关上可以配置多个虚拟机网关。Virtual machine gateway: configured on the physical gateway for data forwarding of virtual machines. Multiple virtual machine gateways can be configured on one physical gateway.
虚拟交换机(Virtual switch,Vswtich):和物理交换机一样,包含一定数量的端口,可以提供连接在不同端口的设备之间的数据交换。Virtual switch (Virtual switch, Vswtich): Like a physical switch, it contains a certain number of ports and can provide data exchange between devices connected to different ports.
软件定义网络控制器(Software Defined Network controller,SDNcontroller):对网络进行软件编程,可以通过创建流表控制VTEP以及VxLAN网关的数据转发。Software Defined Network controller (SDN controller): Software programming for the network can control the data forwarding of VTEP and VxLAN gateway by creating a flow table.
在VxLAN网络中,虚拟机从一个物理服务器迁移到另一个物理服务器时,云管理平台会将虚拟机的迁移信息通告给SDN控制器,由SDN控制器控制虚拟机的数据转发方向。本发明实施例以VxLAN网络中的虚拟机迁移为例进行说明。In the VxLAN network, when a virtual machine is migrated from one physical server to another, the cloud management platform will notify the SDN controller of the migration information of the virtual machine, and the SDN controller will control the data forwarding direction of the virtual machine. The embodiment of the present invention is described by taking virtual machine migration in a VxLAN network as an example.
实施例1Example 1
本发明实施例提供一种基于虚拟机迁移的网关控制方法,第一物理网关为第一物理服务器的物理网关,第二物理网关为第二物理服务器的物理网关,如图1所示,当虚拟机由第一物理服务器迁移至第二物理服务器时,该方法包括:An embodiment of the present invention provides a gateway control method based on virtual machine migration. The first physical gateway is the physical gateway of the first physical server, and the second physical gateway is the physical gateway of the second physical server. As shown in FIG. 1 , when the virtual When the machine is migrated from the first physical server to the second physical server, the method includes:
S101、SDN控制器获取第一虚拟机网关的IP地址、第一虚拟机网关的MAC地址和第二物理服务器的VTEP IP地址。S101. The SDN controller acquires the IP address of the first virtual machine gateway, the MAC address of the first virtual machine gateway, and the VTEP IP address of the second physical server.
其中,第一虚拟机网关为配置在第一物理网关上的虚拟机的虚拟机网关。第一物理服务器为虚拟机迁移前所在的物理服务器,第二物理服务器为虚拟机迁移后所在的物理服务器。一个物理服务器上可以配置多个虚拟机,每个虚拟机可以使用物理服务器的部分物理资源,如中央处理器、内存等。Wherein, the first virtual machine gateway is a virtual machine gateway of a virtual machine configured on the first physical gateway. The first physical server is the physical server where the virtual machine is located before migration, and the second physical server is the physical server where the virtual machine is located after migration. Multiple virtual machines can be configured on one physical server, and each virtual machine can use part of the physical resources of the physical server, such as CPU and memory.
本发明实施例中的第一虚拟机网关为虚拟机迁移前所在的物理服务器(第一物理服务器)的物理网关(第一物理网关)上虚拟出的用于虚拟机的数据转发的虚拟机的虚拟机网关。一个物理网关上可以配置多个虚拟机网关。The first virtual machine gateway in the embodiment of the present invention is the virtual machine used for data forwarding of the virtual machine virtualized on the physical gateway (first physical gateway) of the physical server (first physical server) where the virtual machine is located before migration Virtual machine gateway. Multiple virtual machine gateways can be configured on one physical gateway.
可选的,在本发明实施例中,虚拟机与虚拟机网关之间的映射关系可以为预先建立好,并存储在SDN控制器中的。当然,SDN控制器也可以在虚拟机需要通过虚拟机网关进行数据转发时,再建立虚拟机与虚拟机网关之间的映射关系,本发明实施例对此不做限制。Optionally, in this embodiment of the present invention, the mapping relationship between the virtual machine and the virtual machine gateway may be pre-established and stored in the SDN controller. Of course, the SDN controller may also establish a mapping relationship between the virtual machine and the virtual machine gateway when the virtual machine needs to forward data through the virtual machine gateway, which is not limited in the embodiment of the present invention.
其中,SDN控制器可以根据SDN控制器中存储的虚拟机网关与虚拟机之间的映射关系、虚拟机的IP地址和虚拟机的MAC地址,查找第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址。Wherein, the SDN controller can search for the IP address of the first virtual machine gateway and the first virtual MAC address of the machine gateway.
可选的,SDN控制器可以根据云管理平台上报的虚拟机迁移信息获取第二物理服务器的VTEP IP地址。当然,SDN控制器也可以通过向云管理平台发送请求以获取虚拟机迁移信息,本发明实施例对此不做限制。其中,虚拟机迁移信息包括虚拟机的IP地址、虚拟机的MAC地址和第二物理服务器的VTEP IP地址。Optionally, the SDN controller can obtain the VTEP IP address of the second physical server according to the virtual machine migration information reported by the cloud management platform. Certainly, the SDN controller may also obtain the virtual machine migration information by sending a request to the cloud management platform, which is not limited in this embodiment of the present invention. Wherein, the virtual machine migration information includes the IP address of the virtual machine, the MAC address of the virtual machine and the VTEP IP address of the second physical server.
S102、SDN控制器根据第二物理服务器的VTEP IP地址,控制第二物理网关为虚拟机在第二物理网关上配置第二虚拟机网关。S102. The SDN controller controls the second physical gateway to configure the second virtual machine gateway on the second physical gateway for the virtual machine according to the VTEP IP address of the second physical server.
其中,第二虚拟机网关为虚拟机迁移后所在的物理服务器(第二物理服务器)的物理网关(第二物理网关)上虚拟出的用于虚拟机的数据转发的虚拟机的虚拟机网关。第二虚拟机网关的IP地址与第一虚拟机网关的IP地址相同,且第二虚拟机网关的MAC地址与第一虚拟机网关的MAC地址相同。Wherein, the second virtual machine gateway is the virtual machine gateway of the virtual machine virtualized on the physical gateway (second physical gateway) of the physical server (second physical server) where the virtual machine is migrated and used for data forwarding of the virtual machine. The IP address of the second virtual machine gateway is the same as the IP address of the first virtual machine gateway, and the MAC address of the second virtual machine gateway is the same as the MAC address of the first virtual machine gateway.
具体的,SDN控制器可以根据第二物理服务器的VTEP IP地址确定第二物理网关的VTEP IP地址,并根据第二物理网关的VTEP IP地址确定第二物理网关,为虚拟机在第二物理网关上配置第二虚拟机网关。Specifically, the SDN controller can determine the VTEP IP address of the second physical gateway according to the VTEP IP address of the second physical server, and determine the second physical gateway according to the VTEP IP address of the second physical gateway. Configure the second virtual machine gateway on .
可选的,物理服务器与物理网关之间的映射关系可以为预先建立好的、并存储在SDN控制器中的。当然,SDN控制器也可以在虚拟机需要通过虚拟机网关进行数据转发时,再建立物理服务器与物理网关之间的映射关系,本发明实施例对此不做限制。其中,物理服务器和物理网关可以用不同的VTEP IP地址标识。每个物理服务器有一个唯一的VTEP IP地址,每一个物理网关有一个唯一的VTEP IP地址。Optionally, the mapping relationship between the physical server and the physical gateway may be pre-established and stored in the SDN controller. Of course, the SDN controller may also establish a mapping relationship between the physical server and the physical gateway when the virtual machine needs to forward data through the virtual machine gateway, which is not limited in the embodiment of the present invention. Wherein, the physical server and the physical gateway can be identified by different VTEP IP addresses. Each physical server has a unique VTEP IP address, and each physical gateway has a unique VTEP IP address.
其中,SDN控制器可以根据SDN控制器中存储的物理服务器与物理网关的映射关系和第二物理服务器的VTEP IP地址,查找第二物理网关的VTEP IP地址。Wherein, the SDN controller can search for the VTEP IP address of the second physical gateway according to the mapping relationship between the physical server and the physical gateway stored in the SDN controller and the VTEP IP address of the second physical server.
S103、SDN控制器创建第一流表项,第一流表项中包含第二物理网关的VTEP IP地址、第二虚拟机网关的IP地址、第二虚拟机网关的MAC地址和虚拟机的IP地址之间的映射关系以及虚拟机的扩展虚拟局域网络VxLAN ID。S103, the SDN controller creates a first flow entry, the first flow entry includes the VTEP IP address of the second physical gateway, the IP address of the second virtual machine gateway, the MAC address of the second virtual machine gateway, and the IP address of the virtual machine The mapping relationship between them and the extended virtual local area network VxLAN ID of the virtual machine.
其中,第一流表项存储在SDN控制器中。Wherein, the first flow entry is stored in the SDN controller.
S104、SDN控制器发送第一流表项至第二物理网关,以使得第二物理网关根据第一流表项所指示的数据转发策略为虚拟机转发数据。S104. The SDN controller sends the first flow entry to the second physical gateway, so that the second physical gateway forwards data for the virtual machine according to the data forwarding policy indicated by the first flow entry.
其中,虚拟机的VxLAN ID用于标识虚拟机所在的网段。第一流表项记录了物理网关、虚拟机网关和虚拟机之间的映射关系以及虚拟机所在的网段。第二物理网关在虚拟机迁移至第二物理服务器后,可以根据第一流表项的指示,通过第二虚拟机网关为虚拟机转发数据。Among them, the VxLAN ID of the virtual machine is used to identify the network segment where the virtual machine is located. The first flow entry records the mapping relationship between the physical gateway, the virtual machine gateway, and the virtual machine, and the network segment where the virtual machine is located. After the virtual machine is migrated to the second physical server, the second physical gateway may forward data for the virtual machine through the second virtual machine gateway according to the indication of the first flow entry.
本发明实施例提供的基于虚拟机迁移的网关控制方法,在虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置了与虚拟机迁移前的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机的虚拟机网关(第一虚拟机网关)具有相同的IP地址和MAC地址的虚拟机网关(第二虚拟机网关),保证了虚拟机迁移前后的虚拟机网关地址(虚拟机网关的IP地址和虚拟机网关的MAC地址)不变;并且,可以发送记录物理网关、虚拟机网关和虚拟机的映射关系的流表项至第二物理网关,以使虚拟机在进行数据传输时,可以直接通过虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置的虚拟机网关(第二虚拟机网关,即与虚拟机迁移前的虚拟机网关具有相同的IP地址和MAC地址的虚拟机网关)进行数据转发,不需要迂回到虚拟机迁移前所处的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机网关(第一虚拟机网关)进行数据转发,可以减少设备之间进行数据传输的数据流量,进而减少设备之间进行数据传输所占用的带宽,可以在一定程度上减少带宽资源的浪费。In the gateway control method based on virtual machine migration provided by the embodiment of the present invention, the physical server (second physical server) after virtual machine migration is configured on the physical gateway (second physical gateway) that is the same as the physical server (second physical server) before virtual machine migration. The virtual machine gateway (first virtual machine gateway) of the virtual machine configured on the physical gateway (first physical gateway) of the first physical server) has the virtual machine gateway (second virtual machine gateway) with the same IP address and MAC address, It is guaranteed that the virtual machine gateway address (the IP address of the virtual machine gateway and the MAC address of the virtual machine gateway) remains unchanged before and after the virtual machine migration; moreover, the flow table entry recording the mapping relationship between the physical gateway, the virtual machine gateway and the virtual machine can be sent to the second physical gateway, so that the virtual machine can directly pass through the virtual machine gateway (second physical gateway) configured on the physical gateway (second physical gateway) of the physical server (second physical server) after the virtual machine is migrated The virtual machine gateway, that is, the virtual machine gateway with the same IP address and MAC address as the virtual machine gateway before the virtual machine migration) performs data forwarding without detouring to the physical server (the first physical server) where the virtual machine was located before migration The virtual machine gateway (the first virtual machine gateway) configured on the physical gateway (the first physical gateway) performs data forwarding, which can reduce the data traffic for data transmission between devices, thereby reducing the bandwidth occupied by data transmission between devices , can reduce the waste of bandwidth resources to a certain extent.
实施例2Example 2
本发明实施例提供一种基于虚拟机迁移的网关控制方法,第一物理网关为第一物理服务器的物理网关,第二物理网关为第二物理服务器的物理网关,如图2所示,当虚拟机由第一物理服务器迁移至第二物理服务器时,该方法包括:An embodiment of the present invention provides a gateway control method based on virtual machine migration. The first physical gateway is the physical gateway of the first physical server, and the second physical gateway is the physical gateway of the second physical server. As shown in FIG. 2, when the virtual When the machine is migrated from the first physical server to the second physical server, the method includes:
S201、SDN控制器获取虚拟机迁移信息,虚拟机迁移信息包括:虚拟机的IP地址、虚拟机的MAC地址和第二物理服务器的VTEP IP地址。S201. The SDN controller obtains virtual machine migration information, and the virtual machine migration information includes: the IP address of the virtual machine, the MAC address of the virtual machine, and the VTEP IP address of the second physical server.
其中,虚拟机由第一物理服务器迁移至第二物理服务器包括:手动将虚拟机迁移至第二物理服务器;虚拟机自动迁移至第二物理服务器。虚拟机自动迁移需要云管理平台支持。虚拟机的迁移信息可以由云管理平台上报给SDN,也可以由SDN控制器向云管理平台发送请求,以获取虚拟机迁移信息,本发明实施例对此不做限制。第二物理服务器为虚拟机迁移后所在的物理服务器,用VTEP IP地址可以唯一标识物理服务器。Wherein, migrating the virtual machine from the first physical server to the second physical server includes: manually migrating the virtual machine to the second physical server; automatically migrating the virtual machine to the second physical server. The automatic migration of virtual machines requires the support of the cloud management platform. The virtual machine migration information may be reported to the SDN by the cloud management platform, or the SDN controller may send a request to the cloud management platform to obtain the virtual machine migration information, which is not limited in this embodiment of the present invention. The second physical server is the physical server where the virtual machine is migrated, and the physical server can be uniquely identified by the VTEP IP address.
S202、SDN控制器根据虚拟机的IP地址和虚拟机的MAC地址,确定第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址。S202. The SDN controller determines the IP address of the first virtual machine gateway and the MAC address of the first virtual machine gateway according to the IP address of the virtual machine and the MAC address of the virtual machine.
其中,第一虚拟机网关为虚拟机迁移前所在的物理服务器(第一物理服务器)的物理网关(第一物理网关)上虚拟出的用于虚拟机的数据转发的虚拟机的虚拟机网关。SDN控制器确定第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址的方法可以参考上述实施例中的相关描述,本发明实施例这里不再赘述。Wherein, the first virtual machine gateway is the virtual machine gateway of the virtual machine virtualized on the physical gateway (first physical gateway) of the physical server (first physical server) where the virtual machine resides before migration and used for data forwarding of the virtual machine. For the method for the SDN controller to determine the IP address of the first virtual machine gateway and the MAC address of the first virtual machine gateway, reference may be made to relevant descriptions in the foregoing embodiments, and details are not repeated here in the embodiments of the present invention.
S203、SDN控制器根据第二物理服务器的VTEP IP地址确定第二物理网关的VTEP IP地址。S203. The SDN controller determines the VTEP IP address of the second physical gateway according to the VTEP IP address of the second physical server.
其中,第二物理网关为第二物理服务器的物理网关,SDN控制器确定第二物理网关的VTEP IP地址的方法可以参考上述实施例中的相关描述,本发明实施例这里不再赘述。Wherein, the second physical gateway is the physical gateway of the second physical server, and the method for the SDN controller to determine the VTEP IP address of the second physical gateway can refer to the relevant descriptions in the above-mentioned embodiments, and the embodiments of the present invention will not be repeated here.
S204、SDN控制器根据第二物理网关的VTEP IP地址,发送第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址至第二物理网关,以使得第二物理网关根据第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址为虚拟机在第二物理网关上配置第二虚拟机网关。S204. The SDN controller sends the IP address of the first virtual machine gateway and the MAC address of the first virtual machine gateway to the second physical gateway according to the VTEP IP address of the second physical gateway, so that the second physical gateway uses the VTEP IP address of the first virtual machine The IP address of the gateway and the MAC address of the first virtual machine gateway configure the second virtual machine gateway on the second physical gateway for the virtual machine.
其中,第一虚拟机网关为虚拟机迁移前所在的物理服务器(第一物理服务器)的物理网关(第一物理网关)上虚拟出的用于虚拟机的数据转发的虚拟机的虚拟机网关。第二虚拟机网关为虚拟机迁移后所在的物理服务器(第二物理服务器)的物理网关(第二物理网关)上虚拟出的用于虚拟机的数据转发的虚拟机的虚拟机网关。第二虚拟机网关的IP地址与第一虚拟机网关的IP地址相同,且第二虚拟机网关的MAC地址与第一虚拟机网关的MAC地址相同。Wherein, the first virtual machine gateway is the virtual machine gateway of the virtual machine virtualized on the physical gateway (first physical gateway) of the physical server (first physical server) where the virtual machine resides before migration and used for data forwarding of the virtual machine. The second virtual machine gateway is the virtual machine gateway of the virtual machine virtualized on the physical gateway (second physical gateway) of the physical server (second physical server) where the virtual machine resides after migration and used for data forwarding of the virtual machine. The IP address of the second virtual machine gateway is the same as the IP address of the first virtual machine gateway, and the MAC address of the second virtual machine gateway is the same as the MAC address of the first virtual machine gateway.
S205、SDN控制器根据虚拟机的IP地址和虚拟机的MAC地址确定虚拟机的VxLAN ID。S205. The SDN controller determines the VxLAN ID of the virtual machine according to the IP address of the virtual machine and the MAC address of the virtual machine.
其中,虚拟机的VxLAN ID用于标识虚拟机所在的网段。虚拟机与虚拟机的VxLAN ID的映射关系可以为预先建立好,并存储在SDN控制器中的。SDN控制器可以根据SDN控制器中存储的虚拟机与虚拟机的VxLAN ID的映射关系、虚拟机的IP地址和虚拟机的MAC地址,查找虚拟机的VxLANID。Among them, the VxLAN ID of the virtual machine is used to identify the network segment where the virtual machine is located. The mapping relationship between the virtual machine and the VxLAN ID of the virtual machine can be established in advance and stored in the SDN controller. The SDN controller can search for the VxLAN ID of the virtual machine according to the mapping relationship between the virtual machine and the VxLAN ID of the virtual machine stored in the SDN controller, the IP address of the virtual machine, and the MAC address of the virtual machine.
S206、SDN控制器创建第一流表项,第一流表项中包含第二物理网关的VTEP IP地址、第二虚拟机网关的IP地址、第二虚拟机网关的MAC地址和虚拟机的IP地址之间的映射关系以及虚拟机的VxLAN ID。S206, the SDN controller creates a first flow entry, the first flow entry includes the VTEP IP address of the second physical gateway, the IP address of the second virtual machine gateway, the MAC address of the second virtual machine gateway, and the IP address of the virtual machine The mapping relationship between them and the VxLAN ID of the virtual machine.
其中,第一流表项存储在SDN控制器中,第一流表项记录了虚拟机迁移后的物理网关、虚拟机迁移后的虚拟机的虚拟机网关和虚拟机之间的映射关系以及虚拟机所在的网段。在虚拟机迁移至第二物理服务器后,第二物理网关可以根据第一流表项的指示,为虚拟机转发数据。Wherein, the first flow entry is stored in the SDN controller, and the first flow entry records the physical gateway after the virtual machine migration, the mapping relationship between the virtual machine gateway of the virtual machine after the virtual machine migration and the virtual machine, and the location of the virtual machine. network segment. After the virtual machine is migrated to the second physical server, the second physical gateway can forward data for the virtual machine according to the instruction of the first flow entry.
S207、SDN控制器发送第一流表项至第二物理网关,以使得第二物理网关根据第一流表项所指示的数据转发策略为虚拟机转发数据。S207. The SDN controller sends the first flow entry to the second physical gateway, so that the second physical gateway forwards data for the virtual machine according to the data forwarding policy indicated by the first flow entry.
S208、SDN控制器删除第二流表项,第二流表项中包含第一物理网关的VTEP IP地址、第一虚拟机网关的IP地址、第一虚拟机网关的MAC地址和虚拟机的IP地址之间的映射关系以及虚拟机的VxLAN ID。S208. The SDN controller deletes the second flow entry, which includes the VTEP IP address of the first physical gateway, the IP address of the first virtual machine gateway, the MAC address of the first virtual machine gateway, and the IP of the virtual machine The mapping relationship between addresses and the VxLAN ID of the virtual machine.
其中,第二流表项存储在SDN控制器中,第二流表项记录了虚拟机迁移前的物理网关、虚拟机迁移前的虚拟机的虚拟机网关和虚拟机之间的映射关系以及虚拟机所在的网段。Wherein, the second flow entry is stored in the SDN controller, and the second flow entry records the physical gateway before the virtual machine migration, the mapping relationship between the virtual machine gateway of the virtual machine before the virtual machine migration and the virtual machine, and the virtual The network segment where the machine is located.
通过建立第一流表项,删除第二流表项,可以防止虚拟机在进行数据传输时,再通过虚拟机迁移前的虚拟机的虚拟机网关(第一虚拟机网关)进行数据转发,而可以通过虚拟机迁移后的虚拟机的虚拟机网关(第二虚拟机网关)进行数据转发。这种通过第二虚拟机网关进行数据转发的过程,可以减少设备之间进行数据传输的数据流量,进而减少设备之间进行数据传输所占用的带宽。By establishing the first flow entry and deleting the second flow entry, it is possible to prevent the virtual machine from performing data forwarding through the virtual machine gateway (the first virtual machine gateway) of the virtual machine before the virtual machine migration when performing data transmission. Data forwarding is performed through the virtual machine gateway (second virtual machine gateway) of the virtual machine after the virtual machine migration. This process of forwarding data through the second virtual machine gateway can reduce the data traffic for data transmission between devices, thereby reducing the bandwidth occupied by data transmission between devices.
S209、SDN控制器判断虚拟机的VxLAN ID所标识的网段内,是否存在其他虚拟机使用第一虚拟机网关。S209. The SDN controller judges whether there are other virtual machines using the first virtual machine gateway in the network segment identified by the VxLAN ID of the virtual machine.
其中,SDN控制器可以在虚拟机的VxLAN ID所标识的网段内,根据SDN控制器中存储的虚拟机网关与虚拟机的映射关系、第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址,查找是否存在其他虚拟机的虚拟机网关的IP地址与第一虚拟机网关的IP地址相同,且虚拟机网关的MAC地址与第一虚拟机网关的MAC地址相同,进而判断出是否存在其他虚拟机使用第一虚拟机网关。具体的,若虚拟机的VxLAN ID所标识的网段内,存在其他虚拟机的虚拟机网关的IP地址与第一虚拟机网关的IP地址相同,且虚拟机网关的MAC地址与第一虚拟机网关的MAC地址相同,则可以判断出存在其他虚拟机使用第一虚拟机网关;若虚拟机的VxLAN ID所标识的网段内,不存在其他虚拟机的虚拟机网关的IP地址与第一虚拟机网关的IP地址相同,且虚拟机网关的MAC地址与第一虚拟机网关的MAC地址相同,则可以判断出不存在其他虚拟机使用第一虚拟机网关。Wherein, the SDN controller can be in the network segment identified by the VxLAN ID of the virtual machine, according to the mapping relationship between the virtual machine gateway and the virtual machine stored in the SDN controller, the IP address of the first virtual machine gateway, and the first virtual machine gateway MAC address of the virtual machine, check whether the IP address of the virtual machine gateway of other virtual machines is the same as the IP address of the first virtual machine gateway, and the MAC address of the virtual machine gateway is the same as the MAC address of the first virtual machine gateway, and then determine whether There are other virtual machines using the first virtual machine gateway. Specifically, if in the network segment identified by the VxLAN ID of the virtual machine, the IP address of the virtual machine gateway of other virtual machines is the same as the IP address of the first virtual machine gateway, and the MAC address of the virtual machine gateway is the same as that of the first virtual machine If the MAC addresses of the gateways are the same, it can be determined that there are other virtual machines using the first virtual machine gateway; if the network segment identified by the VxLAN ID of the virtual machine does not have the same If the IP address of the virtual machine gateway is the same, and the MAC address of the virtual machine gateway is the same as the MAC address of the first virtual machine gateway, it can be determined that no other virtual machine uses the first virtual machine gateway.
S210、若虚拟机的VxLAN ID所标识的网段内,不存在其他虚拟机使用第一虚拟机网关,则SDN控制器控制第一物理网关删除第一物理网关上配置的第一虚拟机网关。S210. If there is no other virtual machine using the first virtual machine gateway in the network segment identified by the VxLAN ID of the virtual machine, the SDN controller controls the first physical gateway to delete the first virtual machine gateway configured on the first physical gateway.
其中,若不存在其他虚拟机使用第一虚拟机网关,则删除第一物理网关上配置的第一虚拟机网关,可以减少物理网关资源(例如,MAC地址表容量、ARP表项容量和路由表项容量)的消耗。Wherein, if there are no other virtual machines using the first virtual machine gateway, deleting the first virtual machine gateway configured on the first physical gateway can reduce physical gateway resources (for example, MAC address table capacity, ARP entry capacity, and routing table item capacity) consumption.
需要说明的是,在完成上述虚拟机网关配置方法的步骤之后,当虚拟机需要通过网关转发数据时,SDN控制器控制第二物理网关上配置的第二虚拟机网关对虚拟机的数据进行转发。本发明实施例以虚拟机1和虚拟机2之间的通信为例进行说明。其中,虚拟机1为发生迁移的虚拟机,在完成上述虚拟机网关配置方法的步骤之后,如图3所示,虚拟机1和虚拟机2之间的通信流程包括:It should be noted that after completing the steps of the virtual machine gateway configuration method above, when the virtual machine needs to forward data through the gateway, the SDN controller controls the second virtual machine gateway configured on the second physical gateway to forward the data of the virtual machine . In the embodiment of the present invention, the communication between the virtual machine 1 and the virtual machine 2 is taken as an example for description. Wherein, virtual machine 1 is a virtual machine that has been migrated. After completing the steps of the virtual machine gateway configuration method described above, as shown in FIG. 3 , the communication process between virtual machine 1 and virtual machine 2 includes:
S301、虚拟机1向虚拟交换机1发送访问虚拟机1的请求,该请求包括虚拟机1的IP地址、虚拟机2的IP地址以及广播地址。S301. The virtual machine 1 sends a request for accessing the virtual machine 1 to the virtual switch 1, where the request includes the IP address of the virtual machine 1, the IP address of the virtual machine 2, and a broadcast address.
其中,虚拟机1在第一次访问虚拟机2时,虚拟机1不能获取虚拟机2的MAC地址,可以用广播地址代替虚拟机2的MAC地址。虚拟机1要获取虚拟机2的MAC地址,可以通过向网络上的所有虚拟机发送ARP请求,以获取虚拟机2的MAC地址。Wherein, when the virtual machine 1 accesses the virtual machine 2 for the first time, the virtual machine 1 cannot obtain the MAC address of the virtual machine 2, and the MAC address of the virtual machine 2 can be replaced by a broadcast address. To obtain the MAC address of virtual machine 2, virtual machine 1 may obtain the MAC address of virtual machine 2 by sending an ARP request to all virtual machines on the network.
S302、虚拟交换机1向SDN控制器发送访问请求,该请求包括虚拟机1的IP地址、虚拟机2的IP地址以及虚拟机1所在的物理服务器的VTEP IP。S302. The virtual switch 1 sends an access request to the SDN controller, where the request includes the IP address of the virtual machine 1, the IP address of the virtual machine 2, and the VTEP IP of the physical server where the virtual machine 1 is located.
其中,虚拟交换机1可以根据接收到的虚拟机1上报的信息,解析得到虚拟机1所在的物理服务器的VTEP IP地址。Wherein, the virtual switch 1 can analyze and obtain the VTEP IP address of the physical server where the virtual machine 1 is located according to the received information reported by the virtual machine 1.
S303、SDN控制器查看虚拟机1的IP地址与虚拟机2的IP地址,判断虚拟机1与虚拟机2是否在同一网段。S303. The SDN controller checks the IP address of the virtual machine 1 and the IP address of the virtual machine 2, and determines whether the virtual machine 1 and the virtual machine 2 are in the same network segment.
S304、若虚拟机1与虚拟机2不在同一网段,则SDN控制器根据虚拟机1所在的物理服务器的VTEP IP地址确定离虚拟机1的物理位置最近的物理网关1。S304. If the virtual machine 1 and the virtual machine 2 are not in the same network segment, the SDN controller determines the physical gateway 1 closest to the physical location of the virtual machine 1 according to the VTEP IP address of the physical server where the virtual machine 1 is located.
其中,SDN控制器可以根据SDN控制器中存储的物理服务器与物理网关的映射关系和虚拟机1所在的物理服务器的VTEP IP地址,查找离虚拟机1的物理位置最近的物理网关1,该物理网关1为虚拟机1迁移后的物理服务器的物理网关(即本发明实施例上述描述中的第二物理网关),且该物理网关1上有为虚拟机1配置的第二虚拟机网关。物理位置最近用于表征转发路径最短。Wherein, the SDN controller can search for the physical gateway 1 closest to the physical location of the virtual machine 1 according to the mapping relationship between the physical server and the physical gateway stored in the SDN controller and the VTEP IP address of the physical server where the virtual machine 1 is located. Gateway 1 is the physical gateway of the physical server after the migration of virtual machine 1 (that is, the second physical gateway in the above description of the embodiment of the present invention), and there is a second virtual machine gateway configured for virtual machine 1 on the physical gateway 1 . Physical location is most recently used to characterize the shortest forwarding path.
S305、SDN控制器下发关于虚拟机1的IP地址、虚拟机2的IP地址、虚拟机1所在的物理服务器的VTEP IP地址以及物理网关1的流表项至虚拟交换机1。S305. The SDN controller sends the IP address of the virtual machine 1, the IP address of the virtual machine 2, the VTEP IP address of the physical server where the virtual machine 1 is located, and the flow entry of the physical gateway 1 to the virtual switch 1.
S306、虚拟交换机1记录物理网关1的VTEP IP地址和虚拟机2的IP地址的映射关系。S306. The virtual switch 1 records the mapping relationship between the VTEP IP address of the physical gateway 1 and the IP address of the virtual machine 2.
S307、虚拟机1再次向虚拟交换机1发送访问虚拟机2的请求,该请求包括虚拟机1的IP地址、虚拟机2的IP地址以及广播地址。S307, the virtual machine 1 sends a request for accessing the virtual machine 2 to the virtual switch 1 again, and the request includes the IP address of the virtual machine 1, the IP address of the virtual machine 2, and the broadcast address.
S308、虚拟交换机1根据虚拟机2的IP地址封装虚拟机1所在的物理服务器的VTEP IP地址,形成虚拟机1访问虚拟机2的报文。S308. The virtual switch 1 encapsulates the VTEP IP address of the physical server where the virtual machine 1 is located according to the IP address of the virtual machine 2 to form a message for the virtual machine 1 to access the virtual machine 2.
S309、虚拟交换机1将1访问2的报文发送至物理网关1。S309. The virtual switch 1 sends the packet of 1 accessing 2 to the physical gateway 1.
S310、物理网关1根据虚拟机2的IP地址向SDN控制器请求虚拟机2所在的物理服务器的VTEP IP地址。S310. The physical gateway 1 requests the VTEP IP address of the physical server where the virtual machine 2 is located from the SDN controller according to the IP address of the virtual machine 2.
其中,虚拟机与物理服务器的映射关系可以为预先建立好,并在SDN控制器中存储的。SDN控制器可以根据SDN控制器中存储的虚拟机与物理服务器的映射关系和虚拟机2的IP地址,查找虚拟机2所在的物理服务器的VTEP IP地址。Wherein, the mapping relationship between the virtual machine and the physical server may be established in advance and stored in the SDN controller. The SDN controller can search for the VTEP IP address of the physical server where the virtual machine 2 is located according to the mapping relationship between the virtual machine and the physical server stored in the SDN controller and the IP address of the virtual machine 2.
S311、SDN控制器向物理网关1下发虚拟机2所在的物理服务器的VTEP IP地址和虚拟机2的VxLAN ID。S311. The SDN controller issues the VTEP IP address of the physical server where the virtual machine 2 is located and the VxLAN ID of the virtual machine 2 to the physical gateway 1.
其中,虚拟机2所在的物理服务器的VTEP IP地址和虚拟机2的VxLANID用于物理网关1封装VxLAN报文。Among them, the VTEP IP address of the physical server where the virtual machine 2 is located and the VxLAN ID of the virtual machine 2 are used for the physical gateway 1 to encapsulate the VxLAN message.
S312、物理网关1封装VxLAN报文。S312. The physical gateway 1 encapsulates the VxLAN packet.
其中,VxLAN报文的格式如图4所示,在原以太网帧的基础上增加VxLAN封装。外部目标IP地址为虚拟机2所在的物理服务器的VTEP IP地址;外部源IP地址为虚拟机1所在的物理服务器的VTEP IP地址;VxLANID为虚拟机2的VxLAN ID。外部目标MAC地址为物理网关1的MAC地址。当虚拟机2与虚拟机1在同一物理网关下时,外部目标MAC地址和外部源MAC地址相同;当虚拟机2与虚拟机1不在同一物理网关下时,外部目标MAC地址为虚拟机2的物理网关的MAC地址,外部源MAC地址为虚拟机1的物理网关的MAC地址。Among them, the format of the VxLAN message is shown in Figure 4, and the VxLAN encapsulation is added on the basis of the original Ethernet frame. The external target IP address is the VTEP IP address of the physical server where virtual machine 2 is located; the external source IP address is the VTEP IP address of the physical server where virtual machine 1 is located; VxLANID is the VxLAN ID of virtual machine 2. The external target MAC address is the MAC address of physical gateway 1. When virtual machine 2 and virtual machine 1 are under the same physical gateway, the external destination MAC address and external source MAC address are the same; when virtual machine 2 and virtual machine 1 are not under the same physical gateway, the external destination MAC address is that of virtual machine 2 The MAC address of the physical gateway. The external source MAC address is the MAC address of the physical gateway of VM 1.
S313、物理网关1向虚拟交换机2发送VxLAN报文。S313. The physical gateway 1 sends the VxLAN message to the virtual switch 2.
其中,物理网关1通过物理网关1上为虚拟机1配置的第二虚拟机网关向虚拟交换机2发送VxLAN报文。Wherein, the physical gateway 1 sends the VxLAN message to the virtual switch 2 through the second virtual machine gateway configured for the virtual machine 1 on the physical gateway 1 .
S314、虚拟交换机2对VxLAN报文解封装,并向虚拟机2发送原始报文。S314. The virtual switch 2 decapsulates the VxLAN packet, and sends the original packet to the virtual machine 2.
其中,原始报文为虚拟机1向虚拟交换机1发送的访问虚拟机2的请求的报文。Wherein, the original packet is a packet of a request for accessing the virtual machine 2 sent by the virtual machine 1 to the virtual switch 1 .
本发明实施例提供的基于虚拟机迁移的网关控制方法,在虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置了与虚拟机迁移前的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机的虚拟机网关(第一虚拟机网关)具有相同的IP地址和MAC地址的虚拟机网关(第二虚拟机网关),保证了虚拟机迁移前后的虚拟机网关地址(虚拟机网关的IP地址和虚拟机网关的MAC地址)不变;并且,可以发送记录物理网关、虚拟机网关和虚拟机的映射关系的流表项至第二物理网关,以使虚拟机在进行数据传输时,可以直接通过虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置的虚拟机网关(第二虚拟机网关,即与虚拟机迁移前的虚拟机网关具有相同的IP地址和MAC地址的虚拟机网关)进行数据转发,不需要迂回到虚拟机迁移前所处的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机网关(第一虚拟机网关)进行数据转发,可以减少设备之间进行数据传输的数据流量,进而减少设备之间进行数据传输所占用的带宽,可以在一定程度上减少带宽资源的浪费。In the gateway control method based on virtual machine migration provided by the embodiment of the present invention, the physical server (second physical server) after virtual machine migration is configured on the physical gateway (second physical gateway) that is the same as the physical server (second physical server) before virtual machine migration. The virtual machine gateway (first virtual machine gateway) of the virtual machine configured on the physical gateway (first physical gateway) of the first physical server) has the virtual machine gateway (second virtual machine gateway) with the same IP address and MAC address, It is guaranteed that the virtual machine gateway address (the IP address of the virtual machine gateway and the MAC address of the virtual machine gateway) remains unchanged before and after the virtual machine migration; moreover, the flow table entry recording the mapping relationship between the physical gateway, the virtual machine gateway and the virtual machine can be sent to the second physical gateway, so that the virtual machine can directly pass through the virtual machine gateway (second physical gateway) configured on the physical gateway (second physical gateway) of the physical server (second physical server) after the virtual machine is migrated The virtual machine gateway, that is, the virtual machine gateway with the same IP address and MAC address as the virtual machine gateway before the virtual machine migration) performs data forwarding without detouring to the physical server (the first physical server) where the virtual machine was located before migration The virtual machine gateway (the first virtual machine gateway) configured on the physical gateway (the first physical gateway) performs data forwarding, which can reduce the data traffic for data transmission between devices, thereby reducing the bandwidth occupied by data transmission between devices , can reduce the waste of bandwidth resources to a certain extent.
实施例3Example 3
本发明实施例提供一种SDN控制器,第一物理网关为第一物理服务器的物理网关,第二物理网关为第二物理服务器的物理网关,应用于虚拟机由第一物理服务器迁移至第二物理服务器的过程中,如图5所示,该SDN控制器可以包括:获取单元31、配置单元32、创建单元33和发送单元34。An embodiment of the present invention provides an SDN controller, the first physical gateway is the physical gateway of the first physical server, and the second physical gateway is the physical gateway of the second physical server, which is applied to the migration of a virtual machine from the first physical server to the second In the process of the physical server, as shown in FIG. 5 , the SDN controller may include: an acquisition unit 31 , a configuration unit 32 , a creation unit 33 and a sending unit 34 .
获取单元31,获取第一虚拟机网关的网际协议IP地址、第一虚拟机网关的媒体接入控制MAC地址和第二物理服务器的虚拟隧道终端节点VTEP IP地址,第一虚拟机网关为配置在第一物理网关上的虚拟机的虚拟机网关。The acquisition unit 31 acquires the IP address of the Internet protocol of the first virtual machine gateway, the media access control MAC address of the first virtual machine gateway and the virtual tunnel terminal node VTEP IP address of the second physical server, and the first virtual machine gateway is configured in A virtual machine gateway for a virtual machine on the first physical gateway.
配置单元32,用于根据获取单元31获取的第二物理服务器的VTEP IP地址,控制第二物理网关为虚拟机在第二物理网关上配置第二虚拟机网关,第二虚拟机网关的IP地址与获取单元获取的第一虚拟机网关的IP地址相同,且第二虚拟机网关的MAC地址与获取单元获取的第一虚拟机网关的MAC地址相同。The configuration unit 32 is used to control the second physical gateway to configure the second virtual machine gateway on the second physical gateway for the virtual machine according to the VTEP IP address of the second physical server acquired by the acquisition unit 31, and the IP address of the second virtual machine gateway It is the same as the IP address of the first virtual machine gateway obtained by the obtaining unit, and the MAC address of the second virtual machine gateway is the same as the MAC address of the first virtual machine gateway obtained by the obtaining unit.
创建单元33,用于创建第一流表项,第一流表项中包含第二物理网关的VTEP IP地址、第二虚拟机网关的IP地址、第二虚拟机网关的MAC地址和虚拟机的IP地址之间的映射关系以及虚拟机的扩展虚拟局域网络VxLAN ID。Creating unit 33, configured to create a first flow entry, the first flow entry includes the VTEP IP address of the second physical gateway, the IP address of the second virtual machine gateway, the MAC address of the second virtual machine gateway, and the IP address of the virtual machine The mapping relationship between them and the extended virtual local area network VxLAN ID of the virtual machine.
发送单元34,用于发送创建单元33创建的第一流表项至第二物理网关,以使得第二物理网关根据第一流表项所指示的数据转发策略为虚拟机转发数据,虚拟机的VxLAN ID用于标识虚拟机所在的网段。The sending unit 34 is configured to send the first flow entry created by the creation unit 33 to the second physical gateway, so that the second physical gateway forwards data for the virtual machine according to the data forwarding strategy indicated by the first flow entry, and the VxLAN ID of the virtual machine It is used to identify the network segment where the virtual machine resides.
进一步的,如图6所示,配置单元32,可以包括:第一确定子单元321和配置子单元322。Further, as shown in FIG. 6 , the configuring unit 32 may include: a first determining subunit 321 and a configuring subunit 322 .
第一确定子单元321,用于根据第二物理服务器的VTEP IP地址确定第二物理网关的VTEP IP地址。The first determination subunit 321 is configured to determine the VTEP IP address of the second physical gateway according to the VTEP IP address of the second physical server.
配置子单元322,用于根据第一确定子单元321确定的第二物理网关的VTEP IP地址,控制第二物理网关为虚拟机在第二物理网关上配置第二虚拟机网关。The configuration subunit 322 is configured to control the second physical gateway to configure the second virtual machine gateway on the second physical gateway for the virtual machine according to the VTEP IP address of the second physical gateway determined by the first determination subunit 321.
进一步的,配置单元32,具体用于根据第二物理网关的VTEP IP地址,发送第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址至第二物理网关,以使得第二物理网关根据第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址在第二物理网关上配置第二虚拟机网关。Further, the configuration unit 32 is specifically configured to send the IP address of the first virtual machine gateway and the MAC address of the first virtual machine gateway to the second physical gateway according to the VTEP IP address of the second physical gateway, so that the second physical gateway Configure the second virtual machine gateway on the second physical gateway according to the IP address of the first virtual machine gateway and the MAC address of the first virtual machine gateway.
进一步的,如图7所示,获取单元31,可以包括:获取子单元311和第二确定子单元312。Further, as shown in FIG. 7 , the acquiring unit 31 may include: an acquiring subunit 311 and a second determining subunit 312 .
获取子单元311,用于获取虚拟机迁移信息,虚拟机迁移信息包括:虚拟机的IP地址、虚拟机的MAC地址和第二物理服务器的VTEP IP地址。The acquiring subunit 311 is configured to acquire virtual machine migration information, and the virtual machine migration information includes: the IP address of the virtual machine, the MAC address of the virtual machine, and the VTEP IP address of the second physical server.
第二确定子单元312,用于根据获取子单元311获取的虚拟机的IP地址和虚拟机的MAC地址确定第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址。The second determining subunit 312 is configured to determine the IP address of the first virtual machine gateway and the MAC address of the first virtual machine gateway according to the IP address of the virtual machine and the MAC address of the virtual machine obtained by the obtaining subunit 311 .
进一步的,如图8所示,本发明实施例中的SDN控制器,还可以包括删除单元35。Further, as shown in FIG. 8 , the SDN controller in the embodiment of the present invention may further include a deletion unit 35 .
删除单元35,用于在创建单元33创建第一流表项之后,删除第二流表项,第二流表项中包含第一物理网关的VTEP IP地址、第一虚拟机网关的IP地址、第一虚拟机网关的MAC地址和虚拟机的IP地址之间的映射关系以及虚拟机的扩展虚拟局域网络VxLAN ID。Deletion unit 35 is used to delete the second flow entry after the creation unit 33 creates the first flow entry. The second flow entry includes the VTEP IP address of the first physical gateway, the IP address of the first virtual machine gateway, the first virtual machine gateway, and the second flow entry. A mapping relationship between the MAC address of the virtual machine gateway and the IP address of the virtual machine and the extended virtual local area network VxLAN ID of the virtual machine.
进一步的,如图9所示,本发明实施例中的SDN控制器,还可以包括确定单元36。Further, as shown in FIG. 9 , the SDN controller in the embodiment of the present invention may further include a determination unit 36 .
确定单元36,用于在创建单元33创建第一流表项之前,获取单元31获取虚拟机迁移信息之后,根据虚拟机的IP地址和虚拟机的MAC地址确定虚拟机的VxLAN ID。The determining unit 36 is configured to determine the VxLAN ID of the virtual machine according to the IP address of the virtual machine and the MAC address of the virtual machine after the obtaining unit 31 obtains the virtual machine migration information before the creating unit 33 creates the first flow entry.
进一步的,如图10所示,本发明实施例中的SDN控制器,还可以包括判断单元37。Further, as shown in FIG. 10 , the SDN controller in the embodiment of the present invention may further include a judging unit 37 .
判断单元37,用于在创建单元33创建第一流表项之后,判断虚拟机的VxLAN ID所标识的网段内,是否存在其他虚拟机使用第一虚拟机网关。The judging unit 37 is configured to judge whether there are other virtual machines using the first virtual machine gateway in the network segment identified by the VxLAN ID of the virtual machine after the creating unit 33 creates the first flow entry.
删除单元35,还用于若判断单元37判断得到虚拟机的VxLAN ID所标识的网段内,不存在其他虚拟机使用第一虚拟机网关,则控制第一物理网关删除第一物理网关上配置的第一虚拟机网关。The deletion unit 35 is also used to control the first physical gateway to delete the configuration on the first physical gateway if the judging unit 37 judges that in the network segment identified by the VxLAN ID of the virtual machine, there is no other virtual machine using the first virtual machine gateway. The first virtual machine gateway.
需要说明的是,本发明实施例提供的SDN控制器中部分功能模块的具体描述可以参考方法实施例中的对应内容,本实施例这里不再详细赘述。It should be noted that, for the specific description of some functional modules in the SDN controller provided in the embodiment of the present invention, reference may be made to the corresponding content in the method embodiment, and details are not described in detail here in this embodiment.
本发明实施例提供的SDN控制器,在虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置了与虚拟机迁移前的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机的虚拟机网关(第一虚拟机网关)具有相同的IP地址和MAC地址的虚拟机网关(第二虚拟机网关),保证了虚拟机迁移前后的虚拟机网关地址(虚拟机网关的IP地址和虚拟机网关的MAC地址)不变;并且,可以发送记录物理网关、虚拟机网关和虚拟机的映射关系的流表项至第二物理网关,以使虚拟机在进行数据传输时,可以直接通过虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置的虚拟机网关(第二虚拟机网关,即与虚拟机迁移前的虚拟机网关具有相同的IP地址和MAC地址的虚拟机网关)进行数据转发,不需要迂回到虚拟机迁移前所处的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机网关(第一虚拟机网关)进行数据转发,可以减少设备之间进行数据传输的数据流量,进而减少设备之间进行数据传输所占用的带宽,可以在一定程度上减少带宽资源的浪费。The SDN controller provided by the embodiment of the present invention is configured with the physical server (first physical server) before the virtual machine migration on the physical gateway (second physical gateway) of the physical server (second physical server) after the virtual machine migration The virtual machine gateway (first virtual machine gateway) of the virtual machine configured on the physical gateway (first physical gateway) has the same IP address and MAC address as the virtual machine gateway (second virtual machine gateway), ensuring virtual machine migration The virtual machine gateway address before and after (the IP address of the virtual machine gateway and the MAC address of the virtual machine gateway) is unchanged; and, the flow entry that records the mapping relationship between the physical gateway, the virtual machine gateway and the virtual machine can be sent to the second physical gateway , so that the virtual machine can directly pass through the virtual machine gateway (second virtual machine gateway) configured on the physical gateway (second physical gateway) of the physical server (second physical server) after the virtual machine is migrated. The virtual machine gateway with the same IP address and MAC address as the virtual machine gateway before the virtual machine migration) performs data forwarding without detouring to the physical gateway of the physical server (the first physical server) where the virtual machine is located before the migration (the first physical server) A virtual machine gateway (the first virtual machine gateway) configured on a physical gateway) performs data forwarding, which can reduce the data traffic for data transmission between devices, thereby reducing the bandwidth occupied by data transmission between devices, which can be achieved to a certain extent To reduce the waste of bandwidth resources.
实施例4Example 4
本发明实施例提供一种SDN控制器,第一物理网关为第一物理服务器的物理网关,第二物理网关为第二物理服务器的物理网关,应用于虚拟机由第一物理服务器迁移至第二物理服务器的过程中,如图11所示,该SDN控制器可以包括:接收器41、处理器42、发送器43和存储器44。An embodiment of the present invention provides an SDN controller, the first physical gateway is the physical gateway of the first physical server, and the second physical gateway is the physical gateway of the second physical server, which is applied to the migration of a virtual machine from the first physical server to the second In the process of a physical server, as shown in FIG. 11 , the SDN controller may include: a receiver 41 , a processor 42 , a transmitter 43 and a memory 44 .
接收器41,用于接收虚拟机迁移信息,以获取第一虚拟机网关的网际协议IP地址、第一虚拟机网关的媒体接入控制MAC地址和第二物理服务器的虚拟隧道终端节点VTEP IP地址,第一虚拟机网关为配置在第一物理网关上的虚拟机的虚拟机网关;虚拟机迁移信息包括:虚拟机的IP地址、虚拟机的MAC地址和第二物理服务器的VTEP IP地址。The receiver 41 is configured to receive the virtual machine migration information, so as to obtain the IP address of the first virtual machine gateway, the media access control MAC address of the first virtual machine gateway, and the virtual tunnel terminal node VTEP IP address of the second physical server , the first virtual machine gateway is the virtual machine gateway of the virtual machine configured on the first physical gateway; the virtual machine migration information includes: the IP address of the virtual machine, the MAC address of the virtual machine and the VTEP IP address of the second physical server.
处理器42,用于根据接收器41获取的第二物理服务器的VTEP IP地址,控制第二物理网关为虚拟机在第二物理网关上配置第二虚拟机网关,第二虚拟机网关的IP地址与获取单元获取的第一虚拟机网关的IP地址相同,且第二虚拟机网关的MAC地址与获取单元获取的第一虚拟机网关的MAC地址相同;还用于创建第一流表项,第一流表项中包含第二物理网关的VTEP IP地址、第二虚拟机网关的IP地址、第二虚拟机网关的MAC地址和虚拟机的IP地址之间的映射关系以及虚拟机的扩展虚拟局域网络VxLAN ID。The processor 42 is configured to control the second physical gateway to configure the second virtual machine gateway on the second physical gateway for the virtual machine according to the VTEP IP address of the second physical server obtained by the receiver 41, and the IP address of the second virtual machine gateway It is the same as the IP address of the first virtual machine gateway obtained by the obtaining unit, and the MAC address of the second virtual machine gateway is the same as the MAC address of the first virtual machine gateway obtained by the obtaining unit; it is also used to create the first flow entry, the first flow The entry contains the VTEP IP address of the second physical gateway, the IP address of the second virtual machine gateway, the mapping relationship between the MAC address of the second virtual machine gateway and the IP address of the virtual machine, and the extended virtual local area network VxLAN of the virtual machine ID.
发送器43,用于发送处理器42创建的第一流表项至第二物理网关,以使得第二物理网关根据第一流表项所指示的数据转发策略为虚拟机转发数据,虚拟机的VxLAN ID用于标识虚拟机所在的网段。The sender 43 is configured to send the first flow entry created by the processor 42 to the second physical gateway, so that the second physical gateway forwards data for the virtual machine according to the data forwarding policy indicated by the first flow entry, and the VxLAN ID of the virtual machine It is used to identify the network segment where the virtual machine resides.
存储器44,用于存储接收器41和处理器42得到的数据,如第一虚拟机网关的IP地址、第一虚拟机网关的MAC地址和第二物理服务器的VTEP IP地址、第二虚拟机网关的IP地址、第二虚拟机网关的MAC地址以及第一流表项等。Memory 44, for storing the data obtained by receiver 41 and processor 42, such as the IP address of the first virtual machine gateway, the MAC address of the first virtual machine gateway and the VTEP IP address of the second physical server, the second virtual machine gateway The IP address of the second virtual machine gateway, the MAC address of the second virtual machine gateway, the first flow entry, and so on.
其中,接收器41和发送器43可以为SDN控制器与其他设备进行通信时的通信接口。接收器41、处理器42、发送器43和存储器44通过总线连接并完成相互间的通信。Wherein, the receiver 41 and the transmitter 43 may be communication interfaces for the SDN controller to communicate with other devices. The receiver 41 , the processor 42 , the transmitter 43 and the memory 44 are connected through a bus to complete mutual communication.
其中,总线可以是工业标准体系结构(Industry StandardArchitecture,ISA)总线、外部设备互连(Peripheral ComponentInterconnect,PCI)总线或扩展工业标准体系结构(Extended IndustryStandard Architecture,EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图10中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Wherein, the bus can be an Industry Standard Architecture (Industry Standard Architecture, ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus, etc. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 10 , but it does not mean that there is only one bus or one type of bus.
需要说明的是,在本发明实施例中,所述处理器42可以为所述SDN控制器的控制中心,如中央处理器(Central Processing Unit,CPU),该控制中心可以利用各种接口和线路连接整个所述SDN控制器的各个部分。该处理器42可以由集成电路(Integrated Circuit,IC)或者特定集成电路(Application Specific Integrated Circuit,ASIC)组成(例如,该处理器42可以由单颗封装的IC所组成),也可以由连接多颗相同功能或不同功能的封装IC组成。举例来说,处理器42可以仅包括CPU,也可以是CPU、图像处理器(Graphic Processing Unit,GPU)、数字信号处理器(Digital Signal Processor,DSP)以及通信单元中的控制芯片(例如基带芯片)的组合。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。It should be noted that, in the embodiment of the present invention, the processor 42 can be the control center of the SDN controller, such as a central processing unit (Central Processing Unit, CPU), and the control center can utilize various interfaces and lines Connect various parts of the entire SDN controller. The processor 42 can be made up of an integrated circuit (Integrated Circuit, IC) or a specific integrated circuit (Application Specific Integrated Circuit, ASIC) (for example, the processor 42 can be made up of a single packaged IC), or can be made up of multiple It consists of packaged ICs with the same function or different functions. For example, the processor 42 may only include a CPU, or may be a CPU, an image processor (Graphic Processing Unit, GPU), a digital signal processor (Digital Signal Processor, DSP) and a control chip (such as a baseband chip) in a communication unit. )The combination. In the embodiments of the present invention, the CPU may be a single computing core, or may include multiple computing cores.
进一步的,处理器42,还用于根据第二物理服务器的VTEP IP地址确定第二物理网关的VTEP IP地址;根据第二物理网关的VTEP IP地址,控制第二物理网关为虚拟机在第二物理网关上配置第二虚拟机网关。Further, the processor 42 is also used to determine the VTEP IP address of the second physical gateway according to the VTEP IP address of the second physical server; Configure the second virtual machine gateway on the physical gateway.
进一步的,处理器42,还用于根据第二物理网关的VTEP IP地址,发送第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址至第二物理网关,以使得第二物理网关根据第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址在第二物理网关上配置第二虚拟机网关。Further, the processor 42 is also configured to send the IP address of the first virtual machine gateway and the MAC address of the first virtual machine gateway to the second physical gateway according to the VTEP IP address of the second physical gateway, so that the second physical gateway Configure the second virtual machine gateway on the second physical gateway according to the IP address of the first virtual machine gateway and the MAC address of the first virtual machine gateway.
进一步的,处理器42,还用于根据接收器41获取的虚拟机的IP地址和虚拟机的MAC地址确定第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址。Further, the processor 42 is further configured to determine the IP address of the first virtual machine gateway and the MAC address of the first virtual machine gateway according to the IP address of the virtual machine and the MAC address of the virtual machine acquired by the receiver 41 .
进一步的,处理器42,还用于在创建第一流表项之后,删除第二流表项,第二流表项中包含第一物理网关的VTEP IP地址、第一虚拟机网关的IP地址、第一虚拟机网关的MAC地址和虚拟机的IP地址之间的映射关系以及虚拟机的扩展虚拟局域网络VxLAN ID。Further, the processor 42 is also configured to delete the second flow entry after the first flow entry is created, and the second flow entry includes the VTEP IP address of the first physical gateway, the IP address of the first virtual machine gateway, The mapping relationship between the MAC address of the gateway of the first virtual machine and the IP address of the virtual machine and the extended virtual local area network VxLAN ID of the virtual machine.
进一步的,处理器42,还用于在创建第一流表项之前,接收器41获取虚拟机迁移信息之后,根据虚拟机的IP地址和虚拟机的MAC地址确定虚拟机的VxLAN ID。Further, the processor 42 is also configured to determine the VxLAN ID of the virtual machine according to the IP address of the virtual machine and the MAC address of the virtual machine after the receiver 41 obtains the migration information of the virtual machine before creating the first flow entry.
进一步的,处理器42,还用于在创建第一流表项之后,判断虚拟机的VxLAN ID所标识的网段内,是否存在其他虚拟机使用第一虚拟机网关;若虚拟机的VxLAN ID所标识的网段内,不存在其他虚拟机使用第一虚拟机网关,则控制第一物理网关删除第一物理网关上配置的第一虚拟机网关。Further, the processor 42 is also configured to determine whether there are other virtual machines using the first virtual machine gateway in the network segment identified by the VxLAN ID of the virtual machine after the first flow entry is created; In the identified network segment, if there is no other virtual machine using the first virtual machine gateway, the first physical gateway is controlled to delete the first virtual machine gateway configured on the first physical gateway.
需要说明的是,本发明实施例提供的SDN控制器中部分功能模块的具体描述可以参考方法实施例中的对应内容,本实施例这里不再详细赘述。It should be noted that, for the specific description of some functional modules in the SDN controller provided in the embodiment of the present invention, reference may be made to the corresponding content in the method embodiment, and details are not described in detail here in this embodiment.
本发明实施例提供的SDN控制器,在虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置了与虚拟机迁移前的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机的虚拟机网关(第一虚拟机网关)具有相同的IP地址和MAC地址的虚拟机网关(第二虚拟机网关),保证了虚拟机迁移前后的虚拟机网关地址(虚拟机网关的IP地址和虚拟机网关的MAC地址)不变;并且,可以发送记录物理网关、虚拟机网关和虚拟机的映射关系的流表项至第二物理网关,以使虚拟机在进行数据传输时,可以直接通过虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置的虚拟机网关(第二虚拟机网关,即与虚拟机迁移前的虚拟机网关具有相同的IP地址和MAC地址的虚拟机网关)进行数据转发,不需要迂回到虚拟机迁移前所处的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机网关(第一虚拟机网关)进行数据转发,可以减少设备之间进行数据传输的数据流量,进而减少设备之间进行数据传输所占用的带宽,可以在一定程度上减少带宽资源的浪费。The SDN controller provided by the embodiment of the present invention is configured with the physical server (first physical server) before the virtual machine migration on the physical gateway (second physical gateway) of the physical server (second physical server) after the virtual machine migration The virtual machine gateway (first virtual machine gateway) of the virtual machine configured on the physical gateway (first physical gateway) has the same IP address and MAC address as the virtual machine gateway (second virtual machine gateway), ensuring virtual machine migration The virtual machine gateway address before and after (the IP address of the virtual machine gateway and the MAC address of the virtual machine gateway) is unchanged; and, the flow entry that records the mapping relationship between the physical gateway, the virtual machine gateway and the virtual machine can be sent to the second physical gateway , so that the virtual machine can directly pass through the virtual machine gateway (second virtual machine gateway) configured on the physical gateway (second physical gateway) of the physical server (second physical server) after the virtual machine is migrated. The virtual machine gateway with the same IP address and MAC address as the virtual machine gateway before the virtual machine migration) performs data forwarding without detouring to the physical gateway of the physical server (the first physical server) where the virtual machine is located before the migration (the first physical server) A virtual machine gateway (the first virtual machine gateway) configured on a physical gateway) performs data forwarding, which can reduce the data traffic for data transmission between devices, thereby reducing the bandwidth occupied by data transmission between devices, which can be achieved to a certain extent To reduce the waste of bandwidth resources.
实施例5Example 5
本发明实施例提供一种基于虚拟机迁移的网关控制系统,第一物理网关为第一物理服务器的物理网关,第二物理网关为第二物理服务器的物理网关,应用于虚拟机由第一物理服务器迁移至第二物理服务器的过程中,如图12所示,该系统可以包括:SDN控制51、虚拟机52、第一物理服务器53、第一物理网关54、第一虚拟机网关55、第二物理服务器56、第二物理网关57和第二虚拟机网关58。An embodiment of the present invention provides a gateway control system based on virtual machine migration. The first physical gateway is the physical gateway of the first physical server, and the second physical gateway is the physical gateway of the second physical server. In the process of migrating the server to the second physical server, as shown in FIG. 12 , the system may include: SDN control 51, virtual machine 52, first physical server 53, first physical gateway 54, first virtual machine gateway 55, second Two physical servers 56 , a second physical gateway 57 and a second virtual machine gateway 58 .
第一虚拟机网关55为配置在第一物理网关54上的虚拟机52的虚拟机网关;第二虚拟机网关58为配置在第二物理网关57上的虚拟机52的虚拟机网关。The first virtual machine gateway 55 is the virtual machine gateway of the virtual machine 52 configured on the first physical gateway 54 ; the second virtual machine gateway 58 is the virtual machine gateway of the virtual machine 52 configured on the second physical gateway 57 .
SDN控制51,用于执行如权利要求1-7中任一项所述的基于虚拟机迁移的网关控制方法。The SDN control 51 is configured to execute the gateway control method based on virtual machine migration according to any one of claims 1-7.
第二物理网关57,用于根据SDN控制51的控制,在第二物理网关57上配置第二虚拟机网关58。The second physical gateway 57 is configured to configure the second virtual machine gateway 58 on the second physical gateway 57 according to the control of the SDN control 51 .
其中,第二虚拟机网关58的IP地址与第一虚拟机网关55的IP地址相同,且第二虚拟机网关58的MAC地址与第一虚拟机网关55的MAC地址相同。Wherein, the IP address of the second virtual machine gateway 58 is the same as that of the first virtual machine gateway 55 , and the MAC address of the second virtual machine gateway 58 is the same as that of the first virtual machine gateway 55 .
本发明实施例提供的基于虚拟机迁移的网关控制系统,在虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置了与虚拟机迁移前的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机的虚拟机网关(第一虚拟机网关)具有相同的IP地址和MAC地址的虚拟机网关(第二虚拟机网关),保证了虚拟机迁移前后的虚拟机网关地址(虚拟机网关的IP地址和虚拟机网关的MAC地址)不变;并且,可以发送记录物理网关、虚拟机网关和虚拟机的映射关系的流表项至第二物理网关,以使虚拟机在进行数据传输时,可以直接通过虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置的虚拟机网关(第二虚拟机网关,即与虚拟机迁移前的虚拟机网关具有相同的IP地址和MAC地址的虚拟机网关)进行数据转发,不需要迂回到虚拟机迁移前所处的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机网关(第一虚拟机网关)进行数据转发,可以减少设备之间进行数据传输的数据流量,进而减少设备之间进行数据传输所占用的带宽,可以在一定程度上减少带宽资源的浪费。In the gateway control system based on virtual machine migration provided by an embodiment of the present invention, the physical server (second physical server) after the virtual machine migration is configured on the physical gateway (second physical gateway) that is the same as the physical server (second physical server) before the virtual machine migration. The virtual machine gateway (first virtual machine gateway) of the virtual machine configured on the physical gateway (first physical gateway) of the first physical server) has the virtual machine gateway (second virtual machine gateway) with the same IP address and MAC address, It is guaranteed that the virtual machine gateway address (the IP address of the virtual machine gateway and the MAC address of the virtual machine gateway) remains unchanged before and after the virtual machine migration; moreover, the flow table entry recording the mapping relationship between the physical gateway, the virtual machine gateway and the virtual machine can be sent to the second physical gateway, so that the virtual machine can directly pass through the virtual machine gateway (second physical gateway) configured on the physical gateway (second physical gateway) of the physical server (second physical server) after the virtual machine is migrated The virtual machine gateway, that is, the virtual machine gateway with the same IP address and MAC address as the virtual machine gateway before the virtual machine migration) performs data forwarding without detouring to the physical server (the first physical server) where the virtual machine was located before migration The virtual machine gateway (the first virtual machine gateway) configured on the physical gateway (the first physical gateway) performs data forwarding, which can reduce the data traffic for data transmission between devices, thereby reducing the bandwidth occupied by data transmission between devices , can reduce the waste of bandwidth resources to a certain extent.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated according to needs It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the above-described system, device, and unit, reference may be made to the corresponding process in the foregoing method embodiments, and details are not repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
Claims (15)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410449715.5A CN104243265B (en) | 2014-09-05 | 2014-09-05 | A kind of gateway control method, apparatus and system based on virtual machine (vm) migration |
| PCT/CN2015/083212 WO2016034014A1 (en) | 2014-09-05 | 2015-07-02 | Gateway control method, device and system based on virtual machine migration |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410449715.5A CN104243265B (en) | 2014-09-05 | 2014-09-05 | A kind of gateway control method, apparatus and system based on virtual machine (vm) migration |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104243265A true CN104243265A (en) | 2014-12-24 |
| CN104243265B CN104243265B (en) | 2018-01-05 |
Family
ID=52230659
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410449715.5A Active CN104243265B (en) | 2014-09-05 | 2014-09-05 | A kind of gateway control method, apparatus and system based on virtual machine (vm) migration |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN104243265B (en) |
| WO (1) | WO2016034014A1 (en) |
Cited By (31)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104935463A (en) * | 2015-06-03 | 2015-09-23 | 清华大学 | Virtual software definition network mapping realization method |
| CN105227357A (en) * | 2015-09-15 | 2016-01-06 | 清华大学 | Virtual machine policy migration collocation method and device |
| WO2016034014A1 (en) * | 2014-09-05 | 2016-03-10 | 华为技术有限公司 | Gateway control method, device and system based on virtual machine migration |
| CN105407137A (en) * | 2015-10-22 | 2016-03-16 | 华为技术有限公司 | Data migration method, IP hard disk, IP disk gateway and storage system |
| CN105591925A (en) * | 2015-12-10 | 2016-05-18 | 杭州华三通信技术有限公司 | Message forwarding method and device applied to SDN |
| CN105871676A (en) * | 2016-03-17 | 2016-08-17 | 广东微云科技股份有限公司 | A network connection method and system for a remote virtual machine in a desktop cloud |
| CN106031104A (en) * | 2015-01-21 | 2016-10-12 | 华为技术有限公司 | Data packet forwarding method, apparatus and device |
| CN106059923A (en) * | 2016-05-30 | 2016-10-26 | 杭州华三通信技术有限公司 | Message forwarding method and device |
| CN106506315A (en) * | 2016-12-16 | 2017-03-15 | 无锡华云数据技术服务有限公司 | The transparent collocation method that a kind of message is forwarded |
| CN106533815A (en) * | 2017-01-13 | 2017-03-22 | 邦彦技术股份有限公司 | Gateway control method and device based on capability characteristics |
| CN106549780A (en) * | 2015-09-18 | 2017-03-29 | 华为技术有限公司 | A kind of network collocating method, apparatus and system |
| WO2017054626A1 (en) * | 2015-09-30 | 2017-04-06 | 华为技术有限公司 | Fault recovery method and device for virtual machine |
| CN106789529A (en) * | 2016-12-16 | 2017-05-31 | 平安科技(深圳)有限公司 | A kind of implementation method and terminal of OVERLAY networks |
| CN107147580A (en) * | 2017-06-23 | 2017-09-08 | 北京佰才邦技术有限公司 | The method and communication system of a kind of tunnel building |
| CN107241454A (en) * | 2016-03-29 | 2017-10-10 | 中兴通讯股份有限公司 | A kind of method for realizing address administration, device, aaa server and SDN controllers |
| CN107276783A (en) * | 2016-04-08 | 2017-10-20 | 中兴通讯股份有限公司 | A kind of methods, devices and systems for realizing virtual machine unified management and intercommunication |
| CN107276794A (en) * | 2017-06-02 | 2017-10-20 | 重庆邮电大学 | Interchanger migration algorithm in a kind of software defined network |
| CN107453971A (en) * | 2016-05-30 | 2017-12-08 | 北京京东尚科信息技术有限公司 | Communication means and system between a kind of multiple virtual machines |
| CN107659484A (en) * | 2017-10-13 | 2018-02-02 | 锐捷网络股份有限公司 | From the method, apparatus and system of vlan network access VXLAN networks |
| CN108023801A (en) * | 2016-10-31 | 2018-05-11 | 中国电信股份有限公司 | The resource regulating method and system of heterogeneous network |
| CN108259294A (en) * | 2017-02-28 | 2018-07-06 | 新华三技术有限公司 | Message processing method and device |
| CN108768889A (en) * | 2018-05-07 | 2018-11-06 | 广州大学华软软件学院 | A kind of SDN network multichannel line bandwidth dynamic allocation method |
| WO2018210148A1 (en) * | 2017-05-19 | 2018-11-22 | 中兴通讯股份有限公司 | Migration method for virtual machine, sdn controller, and computer readable storage medium |
| CN109391534A (en) * | 2018-10-26 | 2019-02-26 | 新华三技术有限公司合肥分公司 | A kind of access module update method and device |
| CN109587286A (en) * | 2018-12-27 | 2019-04-05 | 新华三技术有限公司 | A kind of equipment connection control method and device |
| CN109981493A (en) * | 2019-04-09 | 2019-07-05 | 苏州浪潮智能科技有限公司 | A kind of method and apparatus for configuring virtual machine network |
| CN111736958A (en) * | 2020-06-29 | 2020-10-02 | 中国联合网络通信集团有限公司 | Virtual machine migration method, system, computer device and storage medium |
| CN113301070A (en) * | 2020-04-07 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Method and device for establishing data transmission channel |
| CN113381936A (en) * | 2020-03-09 | 2021-09-10 | 阿里巴巴集团控股有限公司 | Network information processing method and device and network equipment |
| CN114826824A (en) * | 2022-04-01 | 2022-07-29 | 阿里云计算有限公司 | Traffic migration method, device, medium and product |
| CN119254633A (en) * | 2024-09-25 | 2025-01-03 | 新华三技术有限公司 | Network migration method, device, electronic device and storage medium |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109802985B (en) * | 2017-11-17 | 2021-01-29 | 北京金山云网络技术有限公司 | Data transmission method, device, equipment and readable storage medium |
| CN113590268B (en) * | 2021-08-06 | 2023-11-24 | 中国联合网络通信集团有限公司 | Virtual machine migration method, ARP proxy gateway and VTEP |
| CN114257545B (en) * | 2021-12-09 | 2023-09-05 | 北京奇艺世纪科技有限公司 | Message forwarding method and device |
| CN114844833B (en) * | 2022-03-30 | 2024-06-25 | 阿里云计算有限公司 | Message processing method and system, storage medium and computer terminal |
| CN117240902A (en) * | 2022-06-06 | 2023-12-15 | 华为云计算技术有限公司 | Gateway switching method, gateway switching system, gateway controller and gateway |
| CN119766647B (en) * | 2024-11-28 | 2025-11-04 | 天翼云科技有限公司 | A method, apparatus, electronic device, and storage medium for tenant gateway migration. |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102801715A (en) * | 2012-07-30 | 2012-11-28 | 华为技术有限公司 | Method for virtual machine migration in network, gateway and system |
| CN103346900A (en) * | 2013-05-31 | 2013-10-09 | 华为技术有限公司 | Route configuration method and gateway after thermal migration of virtual machine in large two-layer network |
| CN103685250A (en) * | 2013-12-04 | 2014-03-26 | 蓝盾信息安全技术股份有限公司 | Virtual machine security policy migration system and method based on SDN |
| CN103763121A (en) * | 2013-12-24 | 2014-04-30 | 杭州华三通信技术有限公司 | Method and device for quickly issuing network configuration information |
| CN103888386A (en) * | 2012-12-24 | 2014-06-25 | 华为技术有限公司 | Extensible virtual local area network message transmission method, device and system |
| CN103905283A (en) * | 2012-12-25 | 2014-07-02 | 华为技术有限公司 | Communication method and apparatus based on expandable virtual local area network |
| CN103905303A (en) * | 2012-12-28 | 2014-07-02 | 中国移动通信集团公司 | Method, device and system for processing data after VM transfer across subnet |
| US20140229944A1 (en) * | 2013-02-12 | 2014-08-14 | Futurewei Technologies, Inc. | Dynamic Virtual Machines Migration Over Information Centric Networks |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP3070887B1 (en) * | 2013-12-11 | 2017-08-09 | Huawei Technologies Co., Ltd. | Communication method, device and system for virtual extensible local area network |
| CN104243265B (en) * | 2014-09-05 | 2018-01-05 | 华为技术有限公司 | A kind of gateway control method, apparatus and system based on virtual machine (vm) migration |
-
2014
- 2014-09-05 CN CN201410449715.5A patent/CN104243265B/en active Active
-
2015
- 2015-07-02 WO PCT/CN2015/083212 patent/WO2016034014A1/en not_active Ceased
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102801715A (en) * | 2012-07-30 | 2012-11-28 | 华为技术有限公司 | Method for virtual machine migration in network, gateway and system |
| CN103888386A (en) * | 2012-12-24 | 2014-06-25 | 华为技术有限公司 | Extensible virtual local area network message transmission method, device and system |
| CN103905283A (en) * | 2012-12-25 | 2014-07-02 | 华为技术有限公司 | Communication method and apparatus based on expandable virtual local area network |
| CN103905303A (en) * | 2012-12-28 | 2014-07-02 | 中国移动通信集团公司 | Method, device and system for processing data after VM transfer across subnet |
| US20140229944A1 (en) * | 2013-02-12 | 2014-08-14 | Futurewei Technologies, Inc. | Dynamic Virtual Machines Migration Over Information Centric Networks |
| CN103346900A (en) * | 2013-05-31 | 2013-10-09 | 华为技术有限公司 | Route configuration method and gateway after thermal migration of virtual machine in large two-layer network |
| CN103685250A (en) * | 2013-12-04 | 2014-03-26 | 蓝盾信息安全技术股份有限公司 | Virtual machine security policy migration system and method based on SDN |
| CN103763121A (en) * | 2013-12-24 | 2014-04-30 | 杭州华三通信技术有限公司 | Method and device for quickly issuing network configuration information |
Cited By (55)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2016034014A1 (en) * | 2014-09-05 | 2016-03-10 | 华为技术有限公司 | Gateway control method, device and system based on virtual machine migration |
| CN106031104B (en) * | 2015-01-21 | 2019-07-12 | 华为技术有限公司 | Retransmission method, device and the equipment of data message |
| CN106031104A (en) * | 2015-01-21 | 2016-10-12 | 华为技术有限公司 | Data packet forwarding method, apparatus and device |
| CN104935463B (en) * | 2015-06-03 | 2019-02-05 | 清华大学 | Implementation method of virtual software-defined network mapping |
| CN104935463A (en) * | 2015-06-03 | 2015-09-23 | 清华大学 | Virtual software definition network mapping realization method |
| CN105227357A (en) * | 2015-09-15 | 2016-01-06 | 清华大学 | Virtual machine policy migration collocation method and device |
| CN105227357B (en) * | 2015-09-15 | 2018-10-16 | 清华大学 | Virtual machine policy migration configuration method and device |
| CN106549780A (en) * | 2015-09-18 | 2017-03-29 | 华为技术有限公司 | A kind of network collocating method, apparatus and system |
| CN106549780B (en) * | 2015-09-18 | 2020-05-08 | 华为技术有限公司 | A network configuration method, device and system |
| WO2017054626A1 (en) * | 2015-09-30 | 2017-04-06 | 华为技术有限公司 | Fault recovery method and device for virtual machine |
| WO2017067212A1 (en) * | 2015-10-22 | 2017-04-27 | 华为技术有限公司 | Data migration method, ip hard disk, ip disk gateway and storage system |
| CN105407137B (en) * | 2015-10-22 | 2019-07-23 | 华为技术有限公司 | A data migration method, IP hard disk, IP disk gateway and storage system |
| CN105407137A (en) * | 2015-10-22 | 2016-03-16 | 华为技术有限公司 | Data migration method, IP hard disk, IP disk gateway and storage system |
| CN105591925B (en) * | 2015-12-10 | 2019-03-12 | 新华三技术有限公司 | Applied to the message forwarding method and equipment in SDN |
| CN105591925A (en) * | 2015-12-10 | 2016-05-18 | 杭州华三通信技术有限公司 | Message forwarding method and device applied to SDN |
| CN105871676B (en) * | 2016-03-17 | 2019-02-12 | 广东微云科技股份有限公司 | A network connection method and system for a remote virtual machine in a desktop cloud |
| CN105871676A (en) * | 2016-03-17 | 2016-08-17 | 广东微云科技股份有限公司 | A network connection method and system for a remote virtual machine in a desktop cloud |
| CN107241454A (en) * | 2016-03-29 | 2017-10-10 | 中兴通讯股份有限公司 | A kind of method for realizing address administration, device, aaa server and SDN controllers |
| CN107241454B (en) * | 2016-03-29 | 2019-08-16 | 中兴通讯股份有限公司 | A method, device, AAA server and SDN controller for implementing address management |
| CN107276783A (en) * | 2016-04-08 | 2017-10-20 | 中兴通讯股份有限公司 | A kind of methods, devices and systems for realizing virtual machine unified management and intercommunication |
| CN107276783B (en) * | 2016-04-08 | 2022-05-20 | 中兴通讯股份有限公司 | Method, device and system for realizing unified management and intercommunication of virtual machines |
| CN107453971A (en) * | 2016-05-30 | 2017-12-08 | 北京京东尚科信息技术有限公司 | Communication means and system between a kind of multiple virtual machines |
| CN106059923A (en) * | 2016-05-30 | 2016-10-26 | 杭州华三通信技术有限公司 | Message forwarding method and device |
| CN107453971B (en) * | 2016-05-30 | 2020-11-24 | 北京京东尚科信息技术有限公司 | Communication method, communication system, computer system, and computer-readable storage medium |
| CN106059923B (en) * | 2016-05-30 | 2019-07-05 | 新华三技术有限公司 | A kind of message forwarding method and device |
| CN108023801A (en) * | 2016-10-31 | 2018-05-11 | 中国电信股份有限公司 | The resource regulating method and system of heterogeneous network |
| CN108023801B (en) * | 2016-10-31 | 2020-11-10 | 中国电信股份有限公司 | Resource scheduling method and system for heterogeneous network |
| CN106789529A (en) * | 2016-12-16 | 2017-05-31 | 平安科技(深圳)有限公司 | A kind of implementation method and terminal of OVERLAY networks |
| CN106506315A (en) * | 2016-12-16 | 2017-03-15 | 无锡华云数据技术服务有限公司 | The transparent collocation method that a kind of message is forwarded |
| CN106506315B (en) * | 2016-12-16 | 2019-03-12 | 无锡华云数据技术服务有限公司 | A transparent configuration method for packet forwarding |
| CN106789529B (en) * | 2016-12-16 | 2020-04-14 | 平安科技(深圳)有限公司 | Method and terminal for implementing OVERLAY network |
| CN106533815B (en) * | 2017-01-13 | 2019-10-29 | 邦彦技术股份有限公司 | Gateway management and control method and device based on capability characteristics |
| CN106533815A (en) * | 2017-01-13 | 2017-03-22 | 邦彦技术股份有限公司 | Gateway control method and device based on capability characteristics |
| CN108259294A (en) * | 2017-02-28 | 2018-07-06 | 新华三技术有限公司 | Message processing method and device |
| WO2018210148A1 (en) * | 2017-05-19 | 2018-11-22 | 中兴通讯股份有限公司 | Migration method for virtual machine, sdn controller, and computer readable storage medium |
| CN107276794B (en) * | 2017-06-02 | 2020-05-12 | 重庆邮电大学 | A Switch Migration Algorithm in Software-Defined Networking |
| CN107276794A (en) * | 2017-06-02 | 2017-10-20 | 重庆邮电大学 | Interchanger migration algorithm in a kind of software defined network |
| CN107147580B (en) * | 2017-06-23 | 2020-09-25 | 北京佰才邦技术有限公司 | Tunnel establishment method and communication system |
| CN107147580A (en) * | 2017-06-23 | 2017-09-08 | 北京佰才邦技术有限公司 | The method and communication system of a kind of tunnel building |
| CN107659484A (en) * | 2017-10-13 | 2018-02-02 | 锐捷网络股份有限公司 | From the method, apparatus and system of vlan network access VXLAN networks |
| CN107659484B (en) * | 2017-10-13 | 2020-08-21 | 锐捷网络股份有限公司 | Method, device and system for accessing VXLAN network from VLAN network |
| CN108768889A (en) * | 2018-05-07 | 2018-11-06 | 广州大学华软软件学院 | A kind of SDN network multichannel line bandwidth dynamic allocation method |
| CN109391534A (en) * | 2018-10-26 | 2019-02-26 | 新华三技术有限公司合肥分公司 | A kind of access module update method and device |
| CN109391534B (en) * | 2018-10-26 | 2021-05-07 | 新华三技术有限公司合肥分公司 | Access mode updating method and device |
| CN109587286A (en) * | 2018-12-27 | 2019-04-05 | 新华三技术有限公司 | A kind of equipment connection control method and device |
| CN109981493A (en) * | 2019-04-09 | 2019-07-05 | 苏州浪潮智能科技有限公司 | A kind of method and apparatus for configuring virtual machine network |
| CN109981493B (en) * | 2019-04-09 | 2020-05-01 | 苏州浪潮智能科技有限公司 | A method and apparatus for configuring a virtual machine network |
| CN113381936A (en) * | 2020-03-09 | 2021-09-10 | 阿里巴巴集团控股有限公司 | Network information processing method and device and network equipment |
| CN113381936B (en) * | 2020-03-09 | 2023-08-15 | 阿里巴巴集团控股有限公司 | Network information processing method and device and network equipment |
| CN113301070A (en) * | 2020-04-07 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Method and device for establishing data transmission channel |
| CN111736958A (en) * | 2020-06-29 | 2020-10-02 | 中国联合网络通信集团有限公司 | Virtual machine migration method, system, computer device and storage medium |
| CN111736958B (en) * | 2020-06-29 | 2023-06-30 | 中国联合网络通信集团有限公司 | Virtual machine migration method, system, computer equipment and storage medium |
| CN114826824A (en) * | 2022-04-01 | 2022-07-29 | 阿里云计算有限公司 | Traffic migration method, device, medium and product |
| CN119254633A (en) * | 2024-09-25 | 2025-01-03 | 新华三技术有限公司 | Network migration method, device, electronic device and storage medium |
| CN119254633B (en) * | 2024-09-25 | 2025-10-10 | 新华三技术有限公司 | Network migration method, device, electronic device and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104243265B (en) | 2018-01-05 |
| WO2016034014A1 (en) | 2016-03-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104243265B (en) | A kind of gateway control method, apparatus and system based on virtual machine (vm) migration | |
| CN111885075B (en) | Container communication method, device, network equipment and storage medium | |
| US11190375B2 (en) | Data packet processing method, host, and system | |
| CN109120494B (en) | Method for accessing physical machine in cloud computing system | |
| CN110896371B (en) | Virtual network equipment and related method | |
| EP2905930B1 (en) | Processing method, apparatus and system for multicast | |
| CN106789667A (en) | A kind of data forwarding method, relevant device and system | |
| CN108768817A (en) | A virtualized network networking system and data packet sending method | |
| WO2016107453A1 (en) | Media access control address forwarding table transmission control method, apparatus, and system | |
| WO2015149253A1 (en) | Data center system and virtual network management method of data center | |
| CN104780088A (en) | Service message transmission method and equipment | |
| CN105657081A (en) | DHCP (dynamic host configuration protocol) service providing method, device and system | |
| CN105991387A (en) | Message transformation method and device of virtual extensible local area network (VXLAN) | |
| TW201541262A (en) | Method for virtual machine migration using software defined networking (SDN) | |
| CN111556110B (en) | Automatic adaptation method for different physical service networks of private cloud system | |
| US10382391B2 (en) | Systems and methods for managing network address information | |
| CN104579898A (en) | Tenant isolating method and system | |
| CN105704042A (en) | Message processing method, BNG and BNG cluster system | |
| CN112583655B (en) | Data transmission method, device, electronic device and readable storage medium | |
| CN108683523A (en) | A kind of SDN frameworks based on network virtualization | |
| CN105554176A (en) | Method and device for sending message and communication system | |
| CN115941493A (en) | Multicast-based multi-activity distribution method and device for cloud scene NAT gateway cluster | |
| CN111404797A (en) | Control method, SDN controller, SDN access point, SDN gateway and CE | |
| EP3086512B1 (en) | Implementation method and apparatus for vlan to access vf network and fcf | |
| CN113254148A (en) | Virtual machine migration method and cloud management platform |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20220214 Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province Patentee after: Huawei Cloud Computing Technologies Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |