WO2016034014A1 - 一种基于虚拟机迁移的网关控制方法、装置及系统 - Google Patents

一种基于虚拟机迁移的网关控制方法、装置及系统 Download PDF

Info

Publication number
WO2016034014A1
WO2016034014A1 PCT/CN2015/083212 CN2015083212W WO2016034014A1 WO 2016034014 A1 WO2016034014 A1 WO 2016034014A1 CN 2015083212 W CN2015083212 W CN 2015083212W WO 2016034014 A1 WO2016034014 A1 WO 2016034014A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual machine
gateway
physical
address
sdn controller
Prior art date
Application number
PCT/CN2015/083212
Other languages
English (en)
French (fr)
Inventor
张辛波
刘万来
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2016034014A1 publication Critical patent/WO2016034014A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/34Signalling channels for network management communication
    • H04L41/342Signalling channels for network management communication between virtual entities, e.g. orchestrators, SDN or NFV entities

Definitions

  • the present invention relates to the field of communications, and in particular, to a gateway control method, apparatus, and system based on virtual machine migration.
  • a virtual machine is a computer system that is simulated by software and has full hardware system functions and runs on a physical server. Multiple virtual machines can be running simultaneously on a single physical server. Each virtual machine uses a part of physical resources in the physical server, such as a central processing unit and memory.
  • a virtual machine can be migrated from one physical server to another and run on the migrated physical server to implement load balancing, online maintenance, and troubleshooting of the server.
  • the physical gateway of the physical server where the virtual machine is migrated is different from the physical gateway of the physical server where the virtual machine is migrated.
  • the virtual machine gateway of at least one virtual machine can be configured on one physical gateway.
  • the embodiment of the present invention provides a method, a device, and a system for controlling a gateway based on a virtual machine migration, which are used to solve the problem that the bandwidth of the data transmission between the devices is occupied when the data is transmitted after the virtual machine is migrated, thereby causing waste of bandwidth resources.
  • a first aspect of the embodiments of the present invention provides a gateway control method based on virtual machine migration.
  • the first physical gateway is a physical gateway of the first physical server
  • the second physical gateway is a physical gateway of the second physical server.
  • the method includes:
  • the software defined network SDN controller acquires an internet protocol IP address of the first virtual machine gateway, a media access control MAC address of the first virtual machine gateway, and a virtual tunnel terminal node VTEP IP address of the second physical server, where the first The virtual machine gateway is a virtual machine gateway of the virtual machine configured on the first physical gateway;
  • 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, where the second virtual machine
  • the IP address of the gateway is the same as the IP address of the first virtual machine gateway
  • the MAC address of the second virtual machine gateway is the same as the MAC address of the first virtual machine gateway
  • the SDN controller creates a first flow entry, where the first flow entry includes a VTEP IP address of the second physical gateway, an IP address of the second virtual machine gateway, and a MAC of the second virtual machine gateway. a 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 sending the first flow entry to the second physical gateway to cause the second physical
  • the gateway forwards the data to the virtual machine according to the data forwarding policy indicated by the first flow entry.
  • the VxLAN ID of the virtual machine is used to identify the network segment where the virtual machine is located.
  • the SDN controller controls the second physical gateway to be the virtual machine in the second physical gateway according to a VTEP IP address of the second physical server.
  • Configure the second virtual machine gateway including:
  • 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.
  • the SDN controller controls the second physical gateway to be the virtual machine according to a VTEP IP address of the second physical gateway.
  • Configuring the second virtual machine gateway on the second physical gateway including:
  • the SDN controller sends an IP address of the first virtual machine gateway and a 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 SDN controller
  • 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.
  • the software-defined network SDN controller acquires an Internet Protocol IP address of the first virtual machine gateway, and media of the first virtual machine gateway.
  • the access control MAC address and the virtual tunnel terminal node VTEP IP address of the second physical server including:
  • the SDN controller acquires virtual machine migration information, where the virtual machine migration information includes: an IP address of the virtual machine, a MAC address of the virtual machine, and a VTEP IP address of the second physical server;
  • the SDN controller determines an IP address of the first virtual machine gateway and a MAC address of the first virtual machine gateway according to an IP address of the virtual machine and a MAC address of the virtual machine.
  • the method further includes:
  • Deleting a second flow entry where the second flow entry includes a VTEP IP address of the first physical gateway, an IP address of the first virtual machine gateway, a MAC address of the first virtual machine gateway, and the virtual The mapping relationship between the IP addresses of the machines and the extended virtual local area network VxLAN ID of the virtual machine.
  • the method further include:
  • VxLAN ID of the virtual machine Determining a VxLAN ID of the virtual machine according to an IP address of the virtual machine and a MAC address of the virtual machine.
  • the method further includes:
  • the first physical gateway is controlled to delete the configured on the first physical gateway.
  • the first virtual machine gateway If the other virtual machine does not use the first virtual machine gateway in the network segment identified by the VxLAN ID of the virtual machine, the first physical gateway is controlled to delete the configured on the first physical gateway. The first virtual machine gateway.
  • a second aspect of the embodiments of the present invention provides a software-defined network SDN controller, where the first physical gateway is a physical gateway of the first physical server, and the second physical gateway is a physical gateway of the second physical server, and is applied to the virtual machine by the physical gateway.
  • the SDN controller includes:
  • An obtaining unit configured to acquire an internet protocol IP address of the first virtual machine gateway, a media access control MAC address of the first virtual machine gateway, and a virtual tunnel terminal node of the second physical server a VTEP IP address, where the first virtual machine gateway is a virtual machine gateway of the virtual machine configured on the first physical gateway;
  • a configuration unit configured to control, according to the VTEP IP address of the second physical server acquired by the acquiring unit, the second physical gateway to configure a second virtual machine gateway for the virtual machine on the second physical gateway,
  • the IP address of the second virtual machine gateway is the same as the IP address of the first virtual machine gateway acquired by the acquiring unit, and the MAC address of the second virtual machine gateway and the first acquired by the acquiring unit
  • the MAC address of a virtual machine gateway is the same;
  • a creating unit configured to create a first flow entry, where the first flow entry includes a VTEP IP address of the second physical gateway, an IP address of the second virtual machine gateway, and a MAC of the second virtual machine gateway a mapping relationship between the address and the IP address of the virtual machine and an extended virtual local area network VxLAN ID of the virtual machine;
  • a sending unit configured to send the first flow entry created by the creating unit to the second physical gateway, so that the second physical gateway is the virtual machine 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.
  • the configuration unit includes:
  • a first determining subunit configured to determine a VTEP IP address of the second physical gateway according to a VTEP IP address of the second physical server
  • a configuration subunit configured to control, according to the VTEP IP address of the second physical gateway determined by the first determining subunit, the second physical gateway to configure the virtual machine on the second physical gateway The second virtual machine gateway.
  • the configuration unit is specifically configured to send, according to the VTEP IP address of the second physical gateway, the first virtual machine gateway.
  • An IP address and a MAC address of the first virtual machine gateway to the second physical gateway, such that the second physical gateway is based on an IP address of the first virtual machine gateway and the The MAC address of the first virtual machine gateway configures the second virtual machine gateway on the second physical gateway.
  • the acquiring unit includes:
  • Obtaining a subunit configured to obtain virtual machine migration information, where the virtual machine migration information includes: an IP address of the virtual machine, a MAC address of the virtual machine, and a VTEP IP address of the second physical server;
  • a second determining subunit configured to determine an IP address of the first virtual machine gateway and the first virtual machine gateway according to an IP address of the virtual machine acquired by the obtaining subunit and a MAC address of the virtual machine MAC address.
  • the SDN controller further includes:
  • a deleting unit configured to delete a second flow entry after the first flow entry is created by the creating unit, where the second flow entry includes a VTEP IP address of the first physical gateway, and a first virtual machine A mapping relationship between an IP address of the gateway, a MAC address of the first virtual machine gateway, and an IP address of the virtual machine, and an extended virtual local area network (VxLAN ID) of the virtual machine.
  • VxLAN ID extended virtual local area network
  • the SDN controller further includes:
  • a determining unit configured to determine, according to the virtual machine migration information, the IP address of the virtual machine and the MAC address of the virtual machine, after the acquiring unit acquires the first flow entry The VxLAN ID of the virtual machine.
  • the SDN controller further includes:
  • a determining unit configured to determine the virtual state after the creating unit creates the first flow entry Whether there is another virtual machine using the first virtual machine gateway in the network segment identified by the VxLAN ID of the virtual machine;
  • the deleting unit is further configured to: if the determining unit determines that the network segment identified by the VxLAN ID of the virtual machine is obtained, and the other virtual machine does not use the first virtual machine gateway, control the A physical gateway deletes the first virtual machine gateway configured on the first physical gateway.
  • a third aspect of the embodiments of the present invention provides a gateway control system based on a virtual machine migration, where the first physical gateway is a physical gateway of the first physical server, and the second physical gateway is a physical gateway of the second physical server, and is applied to the virtual
  • the system includes: a software-defined network SDN controller, the virtual machine, the first physical server, and the first physical gateway a first virtual machine gateway, the second physical server, the second physical gateway, and a second virtual machine gateway;
  • the first virtual machine gateway is a virtual machine gateway of the virtual machine configured on the first physical gateway; the second virtual machine gateway is a virtual machine configured on the second physical gateway Virtual machine gateway
  • the SDN controller is configured to perform a virtual machine migration based gateway control method according to any one of claims 1-7;
  • a second physical gateway configured to configure the second virtual machine gateway on the second physical gateway according to the control of the SDN controller
  • 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 and the media access of the first virtual machine gateway Control the MAC address is the same.
  • the method, device and system for controlling a gateway based on virtual machine migration are configured on a physical gateway (second physical gateway) of a physical server (second physical server) after virtual machine migration and before virtual machine migration Physical gateway of the physical server (first physical server)
  • a virtual machine gateway (first virtual machine gateway) of a virtual machine configured on a physical gateway has a virtual machine gateway (second virtual machine gateway) having the same IP address and MAC address, and ensures a virtual machine gateway before and after virtual machine migration.
  • the address (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 to enable the virtual machine
  • the virtual machine gateway (the second virtual machine gateway) configured on the physical gateway (second physical gateway) of the physical server (second physical server) after the virtual machine migration (that is, before the virtual machine migration)
  • the virtual machine gateway has the same IP address and MAC address of the virtual machine gateway for data forwarding, and does not need to go back to the physical gateway (first physical gateway) of the physical server (first physical server) where the virtual machine was before the migration.
  • the configured virtual machine gateway (first virtual machine gateway) performs data forwarding, which can reduce data traffic for data transmission between devices, thereby reducing the number of devices.
  • the bandwidth occupied by data transmission can reduce the waste of bandwidth resources to some extent.
  • FIG. 1 is a flowchart of a gateway control method based on virtual machine migration in an embodiment
  • FIG. 2 is a flowchart of another method for controlling a gateway based on virtual machine migration in an embodiment
  • FIG. 3 is a communication interaction diagram between a virtual machine 1 and a virtual machine 2 in the embodiment
  • FIG. 4 is a schematic diagram of a format of a VxLAN packet in an embodiment
  • FIG. 5 is a schematic structural diagram of an SDN controller in an embodiment
  • FIG. 6 is a schematic diagram of another SDN controller in an embodiment
  • FIG. 7 is a schematic diagram of another SDN controller in an embodiment
  • FIG. 8 is a schematic diagram of another SDN controller in an embodiment
  • FIG. 9 is a schematic diagram of another SDN controller in an embodiment
  • FIG. 10 is a schematic diagram of another SDN controller in an embodiment
  • FIG. 11 is a schematic diagram of another SDN controller in the embodiment.
  • FIG. 12 is a schematic diagram of a composition of a gateway control system based on virtual machine migration in an embodiment.
  • system and “network” are used interchangeably herein.
  • the term “and/or” in this context is merely an association describing the associated object, indicating that there may be three relationships, for example, A and / or B, which may indicate that A exists separately, and both A and B exist, respectively. B these three situations.
  • the character "/" in this article generally indicates that the contextual object is an "or" relationship.
  • Data Center A data integration system, usually composed of components such as computing systems, storage systems, communication systems, network devices, environmental control systems, and security systems, which are commonly used for data calculation and storage.
  • Cloud management platform It can be a collection of multiple management software or a software that implements the required management functions.
  • the cloud management platform enables centralized management of large-scale data centers with low operating costs.
  • Physical server A computer that manages resources and provides services to users. Physical servers are more demanding in terms of stability and security than ordinary computers.
  • Virtual Machine A computer system that is simulated by software and has full hardware system functions and runs on a physical server. Can be the same on a physical server Run multiple virtual machines, each of which uses a portion of the physical resources in the physical server, such as the central processing unit, memory, and so on. It is also possible to run multiple different types of applications on different virtual machines and consolidate them on one physical server, which can improve resource utilization and improve computing power in the data center.
  • VxLAN Virtual Extensible LAN
  • IP Internet Protocol
  • MAC Media Access Control
  • VxLAN ID Virtual Extensible LAN ID
  • VxLAN ID The identifier of the VxLAN network segment, which is the same as the VxLAN ID of the virtual machine in the same network segment.
  • Virtual tunnel endpoint used to encapsulate/decapsulate VxLAN packets (including Address Resolution Protocol (ARP) request packets and normal VxLAN data packets) at one end of the VTEP. After the packet is encapsulated, the encapsulated packet is sent to the other end of the VTEP. The other end of the VTEP decapsulates the encapsulated packet and forwards the packet according to the encapsulated MAC address.
  • VTEP can be implemented by hardware devices or software that support VxLAN.
  • ARP Address Resolution Protocol
  • TCP/IP Transmission Control Protocol/Internet Protocol
  • Its function is: the local physical server broadcasts an ARP request to all physical servers on the network, and receives a return message of a 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 simultaneously targets the target physical
  • the IP address and MAC address of the server are stored in the ARP cache of the local physical server.
  • the physical gateway (Gateway, GW): Responsible for data forwarding between different VxLANs, and encapsulates and decapsulates VxLAN packets according to the flow table.
  • VM 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 Like a physical switch, it contains a certain number of ports, which can provide data exchange between devices connected to different ports.
  • SDN controller Software Defined Network Controller: Software programming of the network, which can control the data forwarding of VTEP and VxLAN gateway by creating a flow table.
  • the cloud management platform 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 controls the data forwarding direction of the virtual machine.
  • the embodiment of the present invention is described by taking a virtual machine migration in a VxLAN network as an example.
  • An embodiment of the present invention provides a gateway control method based on virtual machine migration, where the first physical gateway is a physical gateway of the first physical server, and the second physical gateway is a physical gateway of the second physical server, as shown in FIG.
  • the method includes:
  • the SDN controller acquires an IP address of the first virtual machine gateway, a MAC address of the first virtual machine gateway, and a VTEP IP address of the second physical server.
  • the first virtual machine gateway is a virtual machine gateway of the virtual machine configured on the first physical gateway.
  • the first physical server is the physical server where the virtual machine was migrated
  • the second physical server is the physical server where the virtual machine is migrated.
  • Multiple virtual machines can be configured on one physical server. Each virtual machine can use some physical resources of the physical server, such as a central processing unit and memory.
  • the first virtual machine gateway in the embodiment of the present invention is a virtual virtual machine for the virtual machine on the physical gateway (the first physical gateway) of the physical server (the first physical server) where the virtual machine is migrated.
  • the virtual machine gateway of the virtual machine for data forwarding. Multiple virtual machine gateways can be configured on one physical gateway.
  • the mapping relationship between the virtual machine and the virtual machine gateway may be pre-established and stored in the SDN controller.
  • the SDN controller can also establish a mapping relationship between the virtual machine and the virtual machine gateway when the virtual machine needs to perform data forwarding through the virtual machine gateway, which is not limited in this embodiment of the present invention.
  • the SDN controller can search for the IP address and the first virtuality of the first virtual machine gateway according to the mapping relationship between the virtual machine gateway and the virtual machine stored in the SDN controller, the IP address of the virtual machine, and the MAC address of the virtual machine. MAC address of the machine gateway.
  • the SDN controller may obtain the VTEP IP address of the second physical server according to the virtual machine migration information reported by the cloud management platform.
  • the SDN controller can also send the request to the cloud management platform to obtain the virtual machine migration information, which is not limited by the embodiment of the present invention.
  • the virtual machine migration information includes an IP address of the virtual machine, a MAC address of the virtual machine, and a VTEP IP address of the second physical server.
  • 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.
  • the second virtual machine gateway is a virtual machine gateway of the virtual machine for virtualizing data forwarding of the virtual machine on the physical gateway (second physical gateway) of the physical server (second physical server) where the virtual machine is migrated.
  • 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.
  • the SDN controller may 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, where the virtual machine is in the second physical gateway. Configure the second virtual machine gateway.
  • the mapping relationship between the physical server and the physical gateway may be pre-established and stored in the SDN controller.
  • the SDN controller can also pass virtual in the virtual machine.
  • the mapping between the physical server and the physical gateway is established.
  • 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.
  • 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.
  • the SDN controller creates a first flow entry, where the first flow entry includes a VTEP IP address of the second physical gateway, an IP address of the second virtual machine gateway, a MAC address of the second virtual machine gateway, and an IP address of the virtual machine.
  • the first flow entry is stored in the SDN controller.
  • the SDN controller sends the first flow entry to the second physical gateway, so that the second physical gateway forwards the data to the virtual machine according to the data forwarding policy indicated by the first flow entry.
  • the VxLAN ID of the VM is used to identify the network segment where the VM resides.
  • the first flow entry records the mapping between the physical gateway, the virtual machine gateway, and the virtual machine, and the network segment where the virtual machine resides.
  • the second physical gateway may forward data to the virtual machine through the second virtual machine gateway according to the indication of the first flow entry.
  • the virtual machine migration-based gateway control method configures a 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 is migrated ( a virtual machine gateway (first virtual machine gateway) of a virtual machine configured on a physical gateway (first physical gateway) of the first physical server) having a virtual machine gateway (second virtual machine gateway) having the same IP address and MAC address,
  • the virtual machine gateway address (the IP address of the virtual machine gateway and the MAC address of the virtual machine gateway) before and after the virtual machine migration is maintained, and the flow entry that records the mapping relationship between the physical gateway, the virtual machine gateway, and the virtual machine can be sent.
  • the gateway so that the virtual machine can directly transmit the virtual machine gateway (the second virtual machine gateway) configured on the physical gateway (the second physical gateway) of the physical server (the second physical server) after the virtual machine is migrated. 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, and does not need to return to the physical gateway of the physical server (the first physical server) where the virtual machine was migrated (
  • the virtual machine gateway (the first virtual machine gateway) configured on the first physical gateway performs data forwarding, which can reduce data traffic for data transmission between devices, thereby reducing the bandwidth occupied by data transmission between devices, and can be certain To a lesser extent, the waste of bandwidth resources.
  • An embodiment of the present invention provides a gateway control method based on virtual machine migration, where the first physical gateway is a physical gateway of the first physical server, and the second physical gateway is a physical gateway of the second physical server, as shown in FIG.
  • the method includes:
  • the SDN controller obtains the virtual machine migration information, where the virtual machine migration information includes: an IP address of the virtual machine, a MAC address of the virtual machine, and a VTEP IP address of the second physical server.
  • the 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; the virtual machine is automatically migrated to the second physical server.
  • Virtual machine automatic migration requires cloud management platform support.
  • the migration information of the virtual machine may be reported to the SDN by the cloud management platform, or may be sent by the SDN controller to the cloud management platform to obtain the virtual machine migration information, which is not limited in the embodiment of the present invention.
  • the second physical server is the physical server where the virtual machine is migrated.
  • the VTEP IP address can uniquely identify the physical server.
  • the SDN controller determines an IP address of the first virtual machine gateway and a 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.
  • the virtual machine gateway virtualizes the virtual data for the virtual machine on the physical gateway (the first physical gateway) of the physical server (the first physical server) where the virtual machine is migrated.
  • the virtual machine gateway of the machine For the method for determining the IP address of the first virtual machine gateway and the MAC address of the first virtual machine gateway, the SDN controller may refer to the related description in the foregoing embodiments, and details are not described herein again.
  • the SDN controller determines a VTEP IP address of the second physical gateway according to the VTEP IP address of the second physical server.
  • the method for determining the VTEP IP address of the second physical gateway by the SDN controller may refer to the related description in the foregoing embodiment, and details are not described herein again.
  • 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 is configured according to 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.
  • the first virtual machine gateway is a virtual machine gateway of the virtual machine for virtualizing the data forwarding of the virtual machine on the physical gateway (the first physical gateway) of the physical server (the first physical server) where the virtual machine is migrated.
  • the second virtual machine gateway is a virtual machine gateway of the virtual machine for virtualizing data forwarding of the virtual machine on the physical gateway (second physical gateway) of the physical server (second physical server) where the virtual machine is migrated.
  • 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.
  • the SDN controller determines a VxLAN ID of the virtual machine according to the IP address of the virtual machine and the MAC address of the virtual machine.
  • the VxLAN ID of the VM is used to identify the network segment where the VM resides.
  • the mapping relationship between the virtual machine and the virtual machine's VxLAN ID can be pre-established and stored in the SDN controller.
  • the SDN controller can find the VxLAN 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. ID.
  • the SDN controller creates a first flow entry, where the first flow entry includes a VTEP IP address of the second physical gateway, an IP address of the second virtual machine gateway, a MAC address of the second virtual machine gateway, and an IP address of the virtual machine.
  • the first flow entry is stored in the SDN controller, and the first flow entry records the mapping between the virtual gateway after the virtual machine is migrated, the virtual machine gateway of the virtual machine after the virtual machine is migrated, and the virtual machine. Network segment. After the virtual machine is migrated to the second physical server, the second physical gateway may forward data for the virtual machine according to the indication of the first flow entry.
  • the SDN controller sends the first flow entry to the second physical gateway, so that the second physical gateway forwards the data to the virtual machine according to the data forwarding policy indicated by the first flow entry.
  • the SDN controller deletes the second flow entry, where the second flow entry includes a VTEP IP address of the first physical gateway, an IP address of the first virtual machine gateway, a MAC address of the first virtual machine gateway, and an IP address of the virtual machine.
  • the second flow entry is stored in the SDN controller, and the second flow entry records the mapping relationship between the physical gateway before the virtual machine migration, 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.
  • the virtual machine can prevent the virtual machine from forwarding data through the virtual machine gateway (the first virtual machine gateway) of the virtual machine before the virtual machine is migrated.
  • the data is forwarded by the virtual machine gateway (second virtual machine gateway) of the virtual machine after the virtual machine is migrated.
  • the process of data forwarding by the second virtual machine gateway can reduce data traffic for data transmission between devices, thereby reducing the bandwidth occupied by data transmission between devices.
  • the SDN controller determines, in the network segment identified by the VxLAN ID of the virtual machine, whether another virtual machine uses the first virtual machine gateway.
  • the SDN controller may 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 find whether the virtual machine gateway of another virtual machine has the same IP address as 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, thereby determining whether There are other virtual machines that use the first virtual machine gateway. Specifically, if the virtual machine's VxLAN ID identifies the network segment, the virtual machine gateway of the other virtual machine has the same IP address as the first virtual machine gateway, and the virtual machine gateway's MAC address and the first virtual machine.
  • the MAC address of the gateway is the same, it can be determined that the other virtual machine uses the first virtual machine gateway; if the virtual machine's VxLAN ID identifies the network segment, there is no virtual address of the virtual machine gateway of the other virtual machine and the first virtual If the IP address of the 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 there is no other virtual machine using the first virtual machine gateway.
  • the SDN controller controls the first physical gateway to delete the first virtual machine gateway configured on the first physical gateway.
  • the first virtual machine gateway is deleted from the other virtual machine, the first virtual machine gateway configured on the first physical gateway is deleted, and the physical gateway resource (for example, the MAC address table capacity, the ARP entry capacity, and the routing table) can be reduced. Consumption of item capacity).
  • the physical gateway resource for example, the MAC address table capacity, the ARP entry capacity, and the routing table
  • the SDN controller controls the second virtual machine gateway configured on the second physical gateway to forward the data of the virtual machine.
  • the embodiment of the present invention is described by taking the communication between the virtual machine 1 and the virtual machine 2 as an example.
  • the virtual machine 1 is a virtual machine that has undergone migration.
  • the communication process between the virtual machine 1 and the virtual machine 2 includes:
  • 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 the broadcast address.
  • the virtual machine 1 When the virtual machine 1 accesses the virtual machine 2 for the first time, the virtual machine 1 cannot acquire the MAC address of the virtual machine 2, and the MAC address of the virtual machine 2 can be replaced by the broadcast address.
  • the virtual machine 1 needs to obtain the MAC address of the virtual machine 2, and can obtain the MAC address of the virtual machine 2 by sending an ARP request to all the virtual machines on the network.
  • the virtual switch 1 sends an access request to the SDN controller, where the request includes an IP address of the virtual machine 1, an IP address of the virtual machine 2, and a VTEP IP of the physical server where the virtual machine 1 is located.
  • the virtual switch 1 can parse the VTEP IP address of the physical server where the virtual machine 1 is located according to the information reported by the received virtual machine 1.
  • 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.
  • 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.
  • the SDN controller can find 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.
  • the gateway 1 is a physical gateway of the physical server after the migration of the virtual machine 1 (ie, the second physical gateway in the foregoing description of the embodiment of the present invention), and the physical gateway 1 has a second virtual machine gateway configured for the virtual machine 1.
  • the physical location was recently used to characterize the shortest forwarding path.
  • the SDN controller sends an IP address of the virtual machine 1, an IP address of the virtual machine 2, a VTEP IP address of the physical server where the virtual machine 1 is located, and a flow entry of the physical gateway 1 to the virtual switch 1.
  • the virtual switch 1 records the VTEP IP address of the physical gateway 1 and the IP address of the virtual machine 2. The mapping relationship of addresses.
  • the virtual machine 1 sends a request to the virtual switch 1 to access the virtual machine 2, the request including the IP address of the virtual machine 1, the IP address of the virtual machine 2, and the broadcast address.
  • 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, and forms a packet for the virtual machine 1 to access the virtual machine 2.
  • the virtual switch 1 sends a message of 1 access 2 to the physical gateway 1.
  • the physical gateway 1 requests the SDN controller for the VTEP IP address of the physical server where the virtual machine 2 is located according to the IP address of the virtual machine 2.
  • the mapping relationship between the virtual machine and the physical server may be pre-established and stored in the SDN controller.
  • the SDN controller can find 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.
  • the SDN controller sends 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.
  • 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 by the physical gateway 1 to encapsulate VxLAN packets.
  • the physical gateway 1 encapsulates the VxLAN packet.
  • the format of the VxLAN packet is as shown in FIG. 4, and the VxLAN encapsulation is added to the original Ethernet frame.
  • the external destination IP address is the VTEP IP address of the physical server where the virtual machine 2 is located; the external source IP address is the VTEP IP address of the physical server where the virtual machine 1 is located; and the VxLAN ID is the VxLAN ID of the virtual machine 2.
  • the external destination MAC address is the MAC address of the physical gateway 1.
  • the external target MAC address and the external source MAC address are the same; when the virtual machine 2 and the virtual machine 1 are not under the same physical gateway, the external target MAC address is the virtual machine 2 MAC address of the physical gateway, the external source MAC address is a virtual machine The MAC address of the physical gateway of 1.
  • the physical gateway 1 sends a VxLAN message to the virtual switch 2.
  • the physical gateway 1 sends a VxLAN message to the virtual switch 2 through the second virtual machine gateway configured for the virtual machine 1 on the physical gateway 1.
  • the virtual switch 2 decapsulates the VxLAN packet and sends the original packet to the virtual machine 2.
  • the original packet is a packet that the virtual machine 1 sends to the virtual switch 1 to access the request of the virtual machine 2.
  • the virtual machine migration-based gateway control method configures a 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 is migrated ( a virtual machine gateway (first virtual machine gateway) of a virtual machine configured on a physical gateway (first physical gateway) of the first physical server) having a virtual machine gateway (second virtual machine gateway) having the same IP address and MAC address,
  • the virtual machine gateway address (the IP address of the virtual machine gateway and the MAC address of the virtual machine gateway) before and after the virtual machine migration is maintained, and the flow entry that records the mapping relationship between the physical gateway, the virtual machine gateway, and the virtual machine can be sent.
  • 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 roundabout
  • the virtual machine gateway (the first virtual machine gateway) configured on the physical gateway (the first physical gateway) of the physical server (the first physical server) where the virtual machine is migrated performs data forwarding, which can reduce data transmission between devices.
  • Data traffic which in turn reduces the bandwidth used for data transmission between devices, can reduce the waste of bandwidth resources to a certain extent.
  • An embodiment of the present invention provides an SDN controller, where the first physical gateway is a first physical server.
  • the physical gateway is a physical gateway of the second physical server, and is applied to the process of the virtual machine being migrated from the first physical server to the second physical server.
  • the SDN controller may include: acquiring The unit 31, the configuration unit 32, the creation unit 33, and the transmission unit 34.
  • the obtaining unit 31 is configured to obtain an internet protocol IP address of the first virtual machine gateway, a media access control MAC address of the first virtual machine gateway, and a virtual tunnel terminal node VTEP IP address of the second physical server, where the first virtual machine gateway is configured The virtual machine gateway of the virtual machine on the first physical gateway.
  • the configuration unit 32 is configured to control, according to the VTEP IP address of the second physical server acquired by the obtaining unit 31, the second physical gateway to configure the second virtual machine gateway on the second physical gateway, and the IP address of the second virtual machine gateway.
  • the IP address of the first virtual machine gateway acquired by the acquiring unit is the same, and the MAC address of the second virtual machine gateway is the same as the MAC address of the first virtual machine gateway acquired by the acquiring unit.
  • the creating unit 33 is configured to create a first flow entry, where the first flow entry includes a VTEP IP address of the second physical gateway, an IP address of the second virtual machine gateway, a MAC address of the second virtual machine gateway, and an IP address of the virtual machine.
  • the sending unit 34 is configured to send the first flow entry created by the creating unit 33 to the second physical gateway, so that the second physical gateway forwards data to the virtual machine according to the data forwarding policy indicated by the first flow entry, and the VxLAN ID of the virtual machine Used to identify the network segment where the virtual machine is located.
  • the configuration unit 32 may include: a first determining subunit 321 and a configuration subunit 322.
  • the first determining subunit 321 is configured to determine a VTEP IP address of the second physical gateway according to the VTEP IP address of the second physical server.
  • the configuration sub-unit 322 is configured to control, according to the VTEP IP address of the second physical gateway determined by the first determining sub-unit 321 , the second physical gateway to configure the second virtual machine gateway for the virtual machine on the second physical gateway.
  • 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
  • the second virtual machine gateway is configured 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.
  • the obtaining unit 31 may include: an obtaining subunit 311 and a second determining subunit 312.
  • the obtaining sub-unit 311 is configured to obtain virtual machine migration information, where the virtual machine migration information includes: an IP address of the virtual machine, a MAC address of the virtual machine, and a VTEP IP address of the second physical server.
  • the second determining subunit 312 is configured to determine an IP address of the first virtual machine gateway and a MAC address of the first virtual machine gateway according to the IP address of the virtual machine acquired by the obtaining subunit 311 and the MAC address of the virtual machine.
  • the SDN controller in the embodiment of the present invention may further include a deleting unit 35.
  • the deleting unit 35 is configured to: after the creating unit 33 creates the first flow entry, delete the second flow entry, where the second flow entry includes the VTEP IP address of the first physical gateway, the IP address of the first virtual machine gateway, and the The mapping relationship between the MAC address of a virtual machine gateway and the IP address of the virtual machine and the extended virtual local area network VxLAN ID of the virtual machine.
  • the SDN controller in the embodiment of the present invention may further include a determining unit 36.
  • 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 acquiring unit 31 acquires the virtual machine migration information before the creating unit 33 creates the first flow entry.
  • the SDN controller in the embodiment of the present invention may further include a determining unit 37.
  • the determining unit 37 is configured to determine, after the creating unit 33 creates the first flow entry, whether the other virtual machine uses the first virtual machine gateway in the network segment identified by the VxLAN ID of the virtual machine.
  • the deleting unit 35 is further configured to: if the determining unit 37 determines that the other virtual machine uses the first virtual machine gateway in the network segment identified by the VxLAN ID of the virtual machine, then the first physical gateway is controlled to delete the configuration on the first physical gateway.
  • the first virtual machine gateway is further configured to: if the determining unit 37 determines that the other virtual machine uses the first virtual machine gateway in the network segment identified by the VxLAN ID of the virtual machine, then the first physical gateway is controlled to delete the configuration on the first physical gateway. The first virtual machine gateway.
  • the SDN controller configured by the embodiment of the present invention configures a 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 is migrated.
  • Virtual machine gateway (first virtual machine gateway) of the virtual machine configured on the physical gateway (first physical gateway) has a virtual machine gateway (second virtual machine gateway) with the same IP address and MAC address, ensuring virtual machine migration
  • the virtual machine gateway address (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.
  • 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 migration can be directly used.
  • 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, and does not need to return to the virtual machine before the migration.
  • the virtual machine gateway (the first virtual machine gateway) configured on the physical gateway (the first physical gateway) of the physical server (the first physical server) performs data forwarding, thereby reducing data traffic for data transmission between devices, thereby reducing equipment
  • the bandwidth occupied by data transmission can reduce the waste of bandwidth resources to a certain extent.
  • An embodiment of the present invention provides an SDN controller, where the first physical gateway is a physical gateway of the first physical server, and the second physical gateway is a physical gateway of the second physical server, and is applied to the virtual machine by the physical gateway.
  • the SDN controller may include a receiver 41, a processor 42, a transmitter 43, and a memory 44.
  • the receiver 41 is configured to receive virtual machine migration information, to obtain an internet protocol IP address of the first virtual machine gateway, a media access control MAC address of the first virtual machine gateway, and a virtual tunnel terminal node VTEP IP address of the second physical server.
  • the first virtual machine gateway is a virtual machine gateway of the virtual machine configured on the first physical gateway; the virtual machine migration information includes: an IP address of the virtual machine, a MAC address of the virtual machine, and a VTEP IP address of the second physical server.
  • the processor 42 is configured to control, according to the VTEP IP address of the second physical server acquired by the receiver 41, the second physical gateway to configure the second virtual machine gateway on the second physical gateway, and the IP address of the second virtual machine gateway.
  • the IP address of the first virtual machine gateway acquired by the acquiring unit is the same, and the MAC address of the second virtual machine gateway is the same as the MAC address of the first virtual machine gateway acquired by the acquiring unit; and is used to create the first flow entry, the first flow
  • the entry includes the mapping relationship between 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, and the extended virtual local area network VxLAN of the virtual machine. ID.
  • the transmitter 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 the data to the virtual machine according to the data forwarding policy indicated by the first flow entry, and the VxLAN ID of the virtual machine Used to identify the network segment where the virtual machine is located.
  • the memory 44 is configured to store data obtained by the receiver 41 and the processor 42, such as an IP address of the first virtual machine gateway, a MAC address of the first virtual machine gateway, and a VTEP IP address of the second physical server, and a second virtual machine gateway. IP address, MAC address of the second virtual machine gateway, and the first flow entry.
  • the receiver 41 and the transmitter 43 may be communication interfaces when the SDN controller communicates with other devices.
  • the receiver 41, the processor 42, the transmitter 43, and the memory 44 are connected by a bus and complete communication with each other.
  • the bus can be an industry standard architecture (Industry Standard Architecture, ISA) bus, Peripheral Component Interconnect (PCI) bus or Extended Industry Standard Architecture (EISA) bus.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in FIG. 10, but it does not mean that there is only one bus or one type of bus.
  • the processor 42 may be a control center of the SDN controller, such as a central processing unit (CPU), and the control center may utilize various interfaces and lines. Connecting the various parts of the entire SDN controller.
  • the processor 42 may be composed of an integrated circuit (IC) or an application specific integrated circuit (ASIC) (for example, the processor 42 may be composed of a single packaged IC), or may be connected by multiple A package IC with the same function or different functions.
  • the processor 42 may include only a CPU, or may be a CPU, a graphics processing unit (GPU), a digital signal processor (DSP), and a control chip in the communication unit (for example, a baseband chip). )The combination.
  • the CPU may be a single operation core, and may also include multiple operation cores.
  • the processor 42 is further configured to determine a VTEP IP address of the second physical gateway according to the VTEP IP address of the second physical server, and control the second physical gateway to be the virtual machine in the second according to the VTEP IP address of the second physical gateway. Configure the second virtual machine gateway on the physical gateway.
  • the processor 42 is further configured to send, according to the VTEP IP address of the second physical gateway, the IP address of the first virtual machine gateway and the MAC address of the first virtual machine gateway to the second physical gateway, so that the second physical gateway
  • the second virtual machine gateway is configured 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.
  • the processor 42 is further configured to determine an IP address of the first virtual machine gateway and a MAC address of the first virtual machine gateway according to the IP address of the virtual machine acquired by the receiver 41 and the MAC address of the virtual machine.
  • the processor 42 is further configured to delete the second flow entry after the first flow entry is created.
  • the second flow entry includes a mapping relationship between 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 address of the virtual machine, and the extended virtual virtual machine.
  • LAN VxLAN ID The second flow entry includes a mapping relationship between 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 address of the virtual machine, and the extended virtual virtual machine.
  • the processor 42 is further 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 acquires the virtual machine migration information before creating the first flow entry.
  • the processor 42 is further configured to: after the first flow entry is created, determine whether the other virtual machine uses the first virtual machine gateway in the network segment identified by the VxLAN ID of the virtual machine; if the virtual machine has the VxLAN ID The first virtual machine gateway is controlled by the first physical gateway to delete the first virtual machine gateway configured on the first physical gateway.
  • the SDN controller configured by the embodiment of the present invention configures a 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 is migrated.
  • Virtual machine gateway (first virtual machine gateway) of the virtual machine configured on the physical gateway (first physical gateway) has a virtual machine gateway (second virtual machine gateway) with the same IP address and MAC address, ensuring virtual machine migration
  • the virtual machine gateway address (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.
  • the virtual machine gateway configured on the physical gateway (second physical gateway) of the physical server (second physical server) after the virtual machine migration can be directly used.
  • 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, and does not need to return to the virtual machine before the migration.
  • the embodiment of the present invention provides a gateway control system based on virtual machine migration, where the first physical gateway is a physical gateway of the first physical server, and the second physical gateway is a physical gateway of the second physical server, and is applied to the virtual machine by the first physical During the migration of 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, Two physical servers 56, a second physical gateway 57, and a second virtual machine gateway 58.
  • the first virtual machine gateway 55 is a virtual machine gateway of the virtual machine 52 disposed on the first physical gateway 54; the second virtual machine gateway 58 is a virtual machine gateway of the virtual machine 52 disposed on the second physical gateway 57.
  • the SDN control 51 is configured to perform the virtual machine migration based gateway control method according to any one of claims 1-7.
  • 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.
  • the IP address of the second virtual machine gateway 58 is the same as the IP address of the first virtual machine gateway 55, and the MAC address of the second virtual machine gateway 58 is the same as the MAC address of the first virtual machine gateway 55.
  • the virtual machine migration-based gateway control system configures a 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 is migrated ( a virtual machine gateway (first virtual machine gateway) of a virtual machine configured on a physical gateway (first physical gateway) of the first physical server) having a virtual machine gateway (second virtual machine gateway) having the same IP address and MAC address,
  • the virtual machine gateway address (the IP address of the virtual machine gateway and the MAC address of the virtual machine gateway) before and after the virtual machine migration is guaranteed to be unchanged; Sending a flow entry that records the mapping relationship between the physical gateway, the virtual machine gateway, and the virtual machine to the second physical gateway, so that when the virtual machine performs data transmission, the virtual server can be directly migrated through the virtual machine (the second physical server)
  • the virtual machine gateway (the second virtual machine gateway, that is, the virtual machine gateway having the same IP address and MAC address as the virtual machine gateway before the virtual machine migration) configured on the physical gateway (the second physical gateway
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

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地址相同;创建第一流表项,以使得第二物理网关根据第一流表项所指示的数据转发策略为该虚拟机转发数据。

Description

一种基于虚拟机迁移的网关控制方法、装置及系统 技术领域
本发明涉及通信领域,尤其涉及一种基于虚拟机迁移的网关控制方法、装置及系统。
背景技术
虚拟机(Virtual Machine,VM)是指通过软件模拟的具有完整硬件系统功能的,且运行在物理服务器上的计算机系统。一台物理服务器上可以同时运行多个虚拟机,每个虚拟机使用物理服务器中的一部分物理资源,如中央处理器、内存等。
虚拟机可以由一个物理服务器迁移至另一个物理服务器,并在迁移后的物理服务器上运行,以实现服务器的负载均衡、在线维护和故障处理等功能。其中,虚拟机迁移前所在的物理服务器的物理网关与虚拟机迁移后所在的物理服务器的物理网关不同,一个物理网关上可以配置至少一个虚拟机的虚拟机网关。
其中,当虚拟机由一个物理服务器(物理服务器A)迁移至另一个物理服务器(物理服务器B)时,虚拟机的物理位置发生了变化,而虚拟机的虚拟机网关仍处于物理服务器A的物理网关上,此时,为了保证业务的连续性,虚拟机在与其他虚拟机(其他虚拟机为与该虚拟机处于不同网段的虚拟机)进行通信时,需要通过交换机将物理服务器B与物理服务器A相连,再通过物理服务器A的物理网关上配置的该虚拟机的虚拟机网关(原虚拟机网关)进行数据的转发。
但是,存在的问题是:虚拟机和与该虚拟机处于不同物理服务器的虚拟机网关传输数据时,需要经过物理服务器之间的若干其他设备(如交换机)对该数据进行转发,而设备之间额外的数据转发则会增加设备之间进行数据 传输的数据流量,占用设备之间进行数据传输的带宽,造成带宽资源的浪费。
发明内容
本发明的实施例提供一种基于虚拟机迁移的网关控制方法、装置及系统,用以解决虚拟机迁移后进行数据传输时,占用设备之间进行数据传输的带宽,造成带宽资源浪费的问题。
为达到上述目的,本发明的实施例采用如下技术方案:
本发明实施例的第一方面,提供一种基于虚拟机迁移的网关控制方法,第一物理网关为第一物理服务器的物理网关,第二物理网关为第二物理服务器的物理网关,当虚拟机由所述第一物理服务器迁移至所述第二物理服务器时,所述方法包括:
软件定义网络SDN控制器获取第一虚拟机网关的网际协议IP地址、所述第一虚拟机网关的媒体接入控制MAC地址和第二物理服务器的虚拟隧道终端节点VTEP IP地址,所述第一虚拟机网关为配置在所述第一物理网关上的所述虚拟机的虚拟机网关;
所述SDN控制器根据所述第二物理服务器的VTEP IP地址,控制所述第二物理网关为所述虚拟机在所述第二物理网关上配置第二虚拟机网关,所述第二虚拟机网关的IP地址与所述第一虚拟机网关的IP地址相同,且所述第二虚拟机网关的MAC地址与所述第一虚拟机网关的MAC地址相同;
所述SDN控制器创建第一流表项,所述第一流表项中包含所述第二物理网关的VTEP IP地址、所述第二虚拟机网关的IP地址、所述第二虚拟机网关的MAC地址和所述虚拟机的IP地址之间的映射关系以及所述虚拟机的扩展虚拟局域网络VxLAN ID,并发送所述第一流表项至所述第二物理网关,以使得所述第二物理网关根据所述第一流表项所指示的数据转发策略为所述虚拟机转发数据,所述虚拟机的VxLAN ID用于标识所述虚拟机所在的网段。
结合第一方面,在一种可能的实现方式中,所述SDN控制器根据所述第二物理服务器的VTEP IP地址,控制所述第二物理网关为所述虚拟机在所述第二物理网关上配置第二虚拟机网关,包括:
所述SDN控制器根据所述第二物理服务器的VTEP IP地址确定所述第二物理网关的VTEP IP地址;
所述SDN控制器根据所述第二物理网关的VTEP IP地址,控制所述第二物理网关为所述虚拟机在所述第二物理网关上配置所述第二虚拟机网关。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,所述SDN控制器根据所述第二物理网关的VTEP IP地址,控制所述第二物理网关为所述虚拟机在所述第二物理网关上配置所述第二虚拟机网关,包括:
所述SDN控制器根据所述第二物理网关的VTEP IP地址,发送所述第一虚拟机网关的IP地址和所述第一虚拟机网关的MAC地址至所述第二物理网关,以使得所述第二物理网关根据所述第一虚拟机网关的IP地址和所述第一虚拟机网关的MAC地址在所述第二物理网关上配置所述第二虚拟机网关。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,所述软件定义网络SDN控制器获取第一虚拟机网关的网际协议IP地址、所述第一虚拟机网关的媒体接入控制MAC地址和第二物理服务器的虚拟隧道终端节点VTEP IP地址,包括:
所述SDN控制器获取虚拟机迁移信息,所述虚拟机迁移信息包括:所述虚拟机的IP地址、所述虚拟机的MAC地址和所述第二物理服务器的VTEP IP地址;
所述SDN控制器根据所述虚拟机的IP地址和所述虚拟机的MAC地址确定所述第一虚拟机网关的IP地址和所述第一虚拟机网关的MAC地址。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,在所述SDN控制器创建第一流表项之后,所述方法还包括:
删除第二流表项,所述第二流表项中包含所述第一物理网关的VTEP IP地址、第一虚拟机网关的IP地址、所述第一虚拟机网关的MAC地址和所述虚拟机的IP地址之间的映射关系以及所述虚拟机的扩展虚拟局域网络VxLAN ID。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,在所述SDN控制器创建第一流表项之前,所述SDN控制器获取虚拟机迁移信息之后,所述方法还包括:
根据所述虚拟机的IP地址和所述虚拟机的MAC地址确定所述虚拟机的VxLAN ID。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,在所述创建第一流表项之后,所述方法还包括:
判断所述虚拟机的VxLAN ID所标识的网段内,是否存在其他虚拟机使用所述第一虚拟机网关;
若所述虚拟机的VxLAN ID所标识的网段内,不存在所述其他虚拟机使用所述第一虚拟机网关,则控制所述第一物理网关删除所述第一物理网关上配置的所述第一虚拟机网关。
本发明实施例的第二方面,提供一种软件定义网络SDN控制器,第一物理网关为第一物理服务器的物理网关,第二物理网关为第二物理服务器的物理网关,应用于虚拟机由所述第一物理服务器迁移至所述第二物理服务器的过程中,所述SDN控制器包括:
获取单元,用于获取第一虚拟机网关的网际协议IP地址、所述第一虚拟机网关的媒体接入控制MAC地址和第二物理服务器的虚拟隧道终端节点 VTEP IP地址,所述第一虚拟机网关为配置在所述第一物理网关上的所述虚拟机的虚拟机网关;
配置单元,用于根据所述获取单元获取的所述第二物理服务器的VTEP IP地址,控制所述第二物理网关为所述虚拟机在所述第二物理网关上配置第二虚拟机网关,所述第二虚拟机网关的IP地址与所述获取单元获取的所述第一虚拟机网关的IP地址相同,且所述第二虚拟机网关的MAC地址与所述获取单元获取的所述第一虚拟机网关的MAC地址相同;
创建单元,用于创建第一流表项,所述第一流表项中包含所述第二物理网关的VTEP IP地址、所述第二虚拟机网关的IP地址、所述第二虚拟机网关的MAC地址和所述虚拟机的IP地址之间的映射关系以及所述虚拟机的扩展虚拟局域网络VxLAN ID;
发送单元,用于发送创建单元创建的所述第一流表项至所述第二物理网关,以使得所述第二物理网关根据所述第一流表项所指示的数据转发策略为所述虚拟机转发数据,所述虚拟机的VxLAN ID用于标识所述虚拟机所在的网段。
结合第二方面,在一种可能的实现方式中,所述配置单元,包括:
第一确定子单元,用于根据所述第二物理服务器的VTEP IP地址确定所述第二物理网关的VTEP IP地址;
配置子单元,用于根据所述第一确定子单元确定的所述第二物理网关的VTEP IP地址,控制所述第二物理网关为所述虚拟机在所述第二物理网关上配置所述第二虚拟机网关。
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,所述配置单元,具体用于根据所述第二物理网关的VTEP IP地址,发送所述第一虚拟机网关的IP地址和所述第一虚拟机网关的MAC地址至所述第二物理网关,以使得所述第二物理网关根据所述第一虚拟机网关的IP地址和所述 第一虚拟机网关的MAC地址在所述第二物理网关上配置所述第二虚拟机网关。
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,所述获取单元,包括:
获取子单元,用于获取虚拟机迁移信息,所述虚拟机迁移信息包括:所述虚拟机的IP地址、所述虚拟机的MAC地址和所述第二物理服务器的VTEP IP地址;
第二确定子单元,用于根据所述获取子单元获取的所述虚拟机的IP地址和所述虚拟机的MAC地址确定所述第一虚拟机网关的IP地址和所述第一虚拟机网关的MAC地址。
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,所述SDN控制器还包括:
删除单元,用于在所述创建单元创建所述第一流表项之后,删除第二流表项,所述第二流表项中包含所述第一物理网关的VTEP IP地址、第一虚拟机网关的IP地址、所述第一虚拟机网关的MAC地址和所述虚拟机的IP地址之间的映射关系以及所述虚拟机的扩展虚拟局域网络VxLAN ID。
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,所述SDN控制器还包括:
确定单元,用于在所述创建单元创建所述第一流表项之前,所述获取单元获取所述虚拟机迁移信息之后,根据所述虚拟机的IP地址和所述虚拟机的MAC地址确定所述虚拟机的VxLAN ID。
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,所述SDN控制器还包括:
判断单元,用于在所述创建单元创建所述第一流表项之后,判断所述虚 拟机的VxLAN ID所标识的网段内,是否存在其他虚拟机使用所述第一虚拟机网关;
所述删除单元,还用于若所述判断单元判断得到所述虚拟机的VxLAN ID所标识的网段内,不存在所述其他虚拟机使用所述第一虚拟机网关,则控制所述第一物理网关删除所述第一物理网关上配置的所述第一虚拟机网关。
本发明实施例的第三方面,提供一种基于虚拟机迁移的网关控制系统,第一物理网关为第一物理服务器的物理网关,第二物理网关为第二物理服务器的物理网关,应用于虚拟机由所述第一物理服务器迁移至所述第二物理服务器的过程中,所述系统包括:软件定义网络SDN控制器、所述虚拟机、所述第一物理服务器、所述第一物理网关、第一虚拟机网关、所述第二物理服务器、所述第二物理网关和第二虚拟机网关;
所述第一虚拟机网关为配置在所述第一物理网关上的所述虚拟机的虚拟机网关;所述第二虚拟机网关为配置在所述第二物理网关上的所述虚拟机的虚拟机网关;
所述SDN控制器,用于执行如权利要求1-7中任一项所述的基于虚拟机迁移的网关控制方法;
第二物理网关,用于根据所述SDN控制器的控制,在所述第二物理网关上配置所述第二虚拟机网关;
其中,所述第二虚拟机网关的网际协议IP地址与所述第一虚拟机网关的IP地址相同,且所述第二虚拟机网关的MAC地址与所述第一虚拟机网关的媒体接入控制MAC地址相同。
本发明实施例提供的基于虚拟机迁移的网关控制方法、装置及系统,在虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置了与虚拟机迁移前的物理服务器(第一物理服务器)的物理网关(第 一物理网关)上配置的虚拟机的虚拟机网关(第一虚拟机网关)具有相同的IP地址和MAC地址的虚拟机网关(第二虚拟机网关),保证了虚拟机迁移前后的虚拟机网关地址(虚拟机网关的IP地址和虚拟机网关的MAC地址)不变;并且,可以发送记录物理网关、虚拟机网关和虚拟机的映射关系的流表项至第二物理网关,以使虚拟机在进行数据传输时,可以直接通过虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置的虚拟机网关(第二虚拟机网关,即与虚拟机迁移前的虚拟机网关具有相同的IP地址和MAC地址的虚拟机网关)进行数据转发,不需要迂回到虚拟机迁移前所处的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机网关(第一虚拟机网关)进行数据转发,可以减少设备之间进行数据传输的数据流量,进而减少设备之间进行数据传输所占用的带宽,可以在一定程度上减少带宽资源的浪费。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。
图1为实施例中的一种基于虚拟机迁移的网关控制方法流程图;
图2为实施例中的另一种基于虚拟机迁移的网关控制方法流程图;
图3为实施例中的一种虚拟机1和虚拟机2之间的通信交互图;
图4为实施例中的一种VxLAN报文的格式示意图;
图5为实施例中的一种SDN控制器组成示意图;
图6为实施例中的另一种SDN控制器组成示意图;
图7为实施例中的另一种SDN控制器组成示意图;
图8为实施例中的另一种SDN控制器组成示意图;
图9为实施例中的另一种SDN控制器组成示意图;
图10为实施例中的另一种SDN控制器组成示意图;
图11为实施例中的再一种SDN控制器组成示意图;
图12为实施例中的一种基于虚拟机迁移的网关控制系统组成示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。本领域普通技术人员根据本发明中的实施例所获得的所有其他实施例,都属于本发明保护的范围。
另外,本文中术语“系统”和“网络”在本文中常被可互换使用。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
为了方便理解本发明实施例,首先在此介绍本发明实施例描述中会引入的几个术语。
数据中心:是一种数据整合系统,通常由计算系统、存储系统、通讯系统、网络设备、环境控制系统和安全系统等组件构成,其常用于数据的计算和存储。
云管理平台:可以是多个管理软件的集合,也可以是实现所需要的管理功能的一个软件。云管理平台可以以低运营成本实现对大规模的数据中心的集中管理。
物理服务器:是指一个用于管理资源并为用户提供服务的计算机。相对于普通计算机来说,物理服务器在稳定性和安全性等方面的要求更高。
虚拟机(Virtual Machine,VM):是指通过软件模拟的具有完整硬件系统功能的,且运行在物理服务器上的计算机系统。一台物理服务器上可以同 时运行多个虚拟机,每个虚拟机使用物理服务器中的一部分物理资源,如中央处理器、内存等。也可以将多个不同类型的应用程序,运行在不同的虚拟机上,并整合到一个物理服务器上,这样可以提高资源的利用率,提高数据中心的计算能力。
扩展虚拟局域网络(Virtual Extensible LAN,VxLAN):是一种将二层(数据链路层)报文用三层(网络层)协议进行封装的技术,可以对二层网络在三层范围进行扩展。它应用于数据中心内部,使虚拟机可以在互相连通的三层网络范围内迁移,而不需要改变网际协议(Internet Protocol,IP)地址和媒体接入控制(Media Access Control,MAC)地址,保证业务的连续性。
VxLAN ID(Virtual Extensible LAN ID):VxLAN网段的标识符,同一个网段内的虚拟机的VxLAN ID相同。
虚拟隧道终端节点(Virtual tunnel endpoint,VTEP):用于对VxLAN报文(包括地址解析协议(Address Resolution Protocol,ARP)请求报文和正常的VxLAN数据报文)进行封装/解封装,在一端VTEP封装报文后通过隧道向另一端VTEP发送封装报文,另一端VTEP接收到封装报文后对报文解封装并根据封装的MAC地址进行转发。VTEP可由支持VxLAN的硬件设备或软件来实现。
地址解析协议ARP:是根据IP地址获取MAC地址的一个传输控制协议/因特网互联协议(Transmission Control Protocol/Internet Protocol,TCP/IP)。其功能是:本地物理服务器向网络上的所有物理服务器广播ARP请求,并接收网络上的某个物理服务器的返回消息,根据目标物理服务器的IP地址确定目标物理服务器的MAC地址,同时将目标物理服务器的IP地址和MAC地址存入本地物理服务器的ARP缓存中。
物理网关(Gateway,GW):负责不同VxLAN之间的数据转发,根据流表对VxLAN报文进行封装与解封装。
虚拟机网关:配置在物理网关上,用于虚拟机的数据转发。一个物理网关上可以配置多个虚拟机网关。
虚拟交换机(Virtual switch,Vswtich):和物理交换机一样,包含一定数量的端口,可以提供连接在不同端口的设备之间的数据交换。
软件定义网络控制器(Software Defined Network controller,SDN controller):对网络进行软件编程,可以通过创建流表控制VTEP以及VxLAN网关的数据转发。
在VxLAN网络中,虚拟机从一个物理服务器迁移到另一个物理服务器时,云管理平台会将虚拟机的迁移信息通告给SDN控制器,由SDN控制器控制虚拟机的数据转发方向。本发明实施例以VxLAN网络中的虚拟机迁移为例进行说明。
实施例1
本发明实施例提供一种基于虚拟机迁移的网关控制方法,第一物理网关为第一物理服务器的物理网关,第二物理网关为第二物理服务器的物理网关,如图1所示,当虚拟机由第一物理服务器迁移至第二物理服务器时,该方法包括:
S101、SDN控制器获取第一虚拟机网关的IP地址、第一虚拟机网关的MAC地址和第二物理服务器的VTEP IP地址。
其中,第一虚拟机网关为配置在第一物理网关上的虚拟机的虚拟机网关。第一物理服务器为虚拟机迁移前所在的物理服务器,第二物理服务器为虚拟机迁移后所在的物理服务器。一个物理服务器上可以配置多个虚拟机,每个虚拟机可以使用物理服务器的部分物理资源,如中央处理器、内存等。
本发明实施例中的第一虚拟机网关为虚拟机迁移前所在的物理服务器(第一物理服务器)的物理网关(第一物理网关)上虚拟出的用于虚拟机的 数据转发的虚拟机的虚拟机网关。一个物理网关上可以配置多个虚拟机网关。
可选的,在本发明实施例中,虚拟机与虚拟机网关之间的映射关系可以为预先建立好,并存储在SDN控制器中的。当然,SDN控制器也可以在虚拟机需要通过虚拟机网关进行数据转发时,再建立虚拟机与虚拟机网关之间的映射关系,本发明实施例对此不做限制。
其中,SDN控制器可以根据SDN控制器中存储的虚拟机网关与虚拟机之间的映射关系、虚拟机的IP地址和虚拟机的MAC地址,查找第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址。
可选的,SDN控制器可以根据云管理平台上报的虚拟机迁移信息获取第二物理服务器的VTEP IP地址。当然,SDN控制器也可以通过向云管理平台发送请求以获取虚拟机迁移信息,本发明实施例对此不做限制。其中,虚拟机迁移信息包括虚拟机的IP地址、虚拟机的MAC地址和第二物理服务器的VTEP IP地址。
S102、SDN控制器根据第二物理服务器的VTEP IP地址,控制第二物理网关为虚拟机在第二物理网关上配置第二虚拟机网关。
其中,第二虚拟机网关为虚拟机迁移后所在的物理服务器(第二物理服务器)的物理网关(第二物理网关)上虚拟出的用于虚拟机的数据转发的虚拟机的虚拟机网关。第二虚拟机网关的IP地址与第一虚拟机网关的IP地址相同,且第二虚拟机网关的MAC地址与第一虚拟机网关的MAC地址相同。
具体的,SDN控制器可以根据第二物理服务器的VTEP IP地址确定第二物理网关的VTEP IP地址,并根据第二物理网关的VTEP IP地址确定第二物理网关,为虚拟机在第二物理网关上配置第二虚拟机网关。
可选的,物理服务器与物理网关之间的映射关系可以为预先建立好的、并存储在SDN控制器中的。当然,SDN控制器也可以在虚拟机需要通过虚 拟机网关进行数据转发时,再建立物理服务器与物理网关之间的映射关系,本发明实施例对此不做限制。其中,物理服务器和物理网关可以用不同的VTEP IP地址标识。每个物理服务器有一个唯一的VTEP IP地址,每一个物理网关有一个唯一的VTEP IP地址。
其中,SDN控制器可以根据SDN控制器中存储的物理服务器与物理网关的映射关系和第二物理服务器的VTEP IP地址,查找第二物理网关的VTEP IP地址。
S103、SDN控制器创建第一流表项,第一流表项中包含第二物理网关的VTEP IP地址、第二虚拟机网关的IP地址、第二虚拟机网关的MAC地址和虚拟机的IP地址之间的映射关系以及虚拟机的扩展虚拟局域网络VxLAN ID。
其中,第一流表项存储在SDN控制器中。
S104、SDN控制器发送第一流表项至第二物理网关,以使得第二物理网关根据第一流表项所指示的数据转发策略为虚拟机转发数据。
其中,虚拟机的VxLAN ID用于标识虚拟机所在的网段。第一流表项记录了物理网关、虚拟机网关和虚拟机之间的映射关系以及虚拟机所在的网段。第二物理网关在虚拟机迁移至第二物理服务器后,可以根据第一流表项的指示,通过第二虚拟机网关为虚拟机转发数据。
本发明实施例提供的基于虚拟机迁移的网关控制方法,在虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置了与虚拟机迁移前的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机的虚拟机网关(第一虚拟机网关)具有相同的IP地址和MAC地址的虚拟机网关(第二虚拟机网关),保证了虚拟机迁移前后的虚拟机网关地址(虚拟机网关的IP地址和虚拟机网关的MAC地址)不变;并且,可以发送记录物理网关、虚拟机网关和虚拟机的映射关系的流表项至第二物理 网关,以使虚拟机在进行数据传输时,可以直接通过虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置的虚拟机网关(第二虚拟机网关,即与虚拟机迁移前的虚拟机网关具有相同的IP地址和MAC地址的虚拟机网关)进行数据转发,不需要迂回到虚拟机迁移前所处的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机网关(第一虚拟机网关)进行数据转发,可以减少设备之间进行数据传输的数据流量,进而减少设备之间进行数据传输所占用的带宽,可以在一定程度上减少带宽资源的浪费。
实施例2
本发明实施例提供一种基于虚拟机迁移的网关控制方法,第一物理网关为第一物理服务器的物理网关,第二物理网关为第二物理服务器的物理网关,如图2所示,当虚拟机由第一物理服务器迁移至第二物理服务器时,该方法包括:
S201、SDN控制器获取虚拟机迁移信息,虚拟机迁移信息包括:虚拟机的IP地址、虚拟机的MAC地址和第二物理服务器的VTEP IP地址。
其中,虚拟机由第一物理服务器迁移至第二物理服务器包括:手动将虚拟机迁移至第二物理服务器;虚拟机自动迁移至第二物理服务器。虚拟机自动迁移需要云管理平台支持。虚拟机的迁移信息可以由云管理平台上报给SDN,也可以由SDN控制器向云管理平台发送请求,以获取虚拟机迁移信息,本发明实施例对此不做限制。第二物理服务器为虚拟机迁移后所在的物理服务器,用VTEP IP地址可以唯一标识物理服务器。
S202、SDN控制器根据虚拟机的IP地址和虚拟机的MAC地址,确定第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址。
其中,第一虚拟机网关为虚拟机迁移前所在的物理服务器(第一物理服务器)的物理网关(第一物理网关)上虚拟出的用于虚拟机的数据转发的虚 拟机的虚拟机网关。SDN控制器确定第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址的方法可以参考上述实施例中的相关描述,本发明实施例这里不再赘述。
S203、SDN控制器根据第二物理服务器的VTEP IP地址确定第二物理网关的VTEP IP地址。
其中,第二物理网关为第二物理服务器的物理网关,SDN控制器确定第二物理网关的VTEP IP地址的方法可以参考上述实施例中的相关描述,本发明实施例这里不再赘述。
S204、SDN控制器根据第二物理网关的VTEP IP地址,发送第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址至第二物理网关,以使得第二物理网关根据第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址为虚拟机在第二物理网关上配置第二虚拟机网关。
其中,第一虚拟机网关为虚拟机迁移前所在的物理服务器(第一物理服务器)的物理网关(第一物理网关)上虚拟出的用于虚拟机的数据转发的虚拟机的虚拟机网关。第二虚拟机网关为虚拟机迁移后所在的物理服务器(第二物理服务器)的物理网关(第二物理网关)上虚拟出的用于虚拟机的数据转发的虚拟机的虚拟机网关。第二虚拟机网关的IP地址与第一虚拟机网关的IP地址相同,且第二虚拟机网关的MAC地址与第一虚拟机网关的MAC地址相同。
S205、SDN控制器根据虚拟机的IP地址和虚拟机的MAC地址确定虚拟机的VxLAN ID。
其中,虚拟机的VxLAN ID用于标识虚拟机所在的网段。虚拟机与虚拟机的VxLAN ID的映射关系可以为预先建立好,并存储在SDN控制器中的。SDN控制器可以根据SDN控制器中存储的虚拟机与虚拟机的VxLAN ID的映射关系、虚拟机的IP地址和虚拟机的MAC地址,查找虚拟机的VxLAN  ID。
S206、SDN控制器创建第一流表项,第一流表项中包含第二物理网关的VTEP IP地址、第二虚拟机网关的IP地址、第二虚拟机网关的MAC地址和虚拟机的IP地址之间的映射关系以及虚拟机的VxLAN ID。
其中,第一流表项存储在SDN控制器中,第一流表项记录了虚拟机迁移后的物理网关、虚拟机迁移后的虚拟机的虚拟机网关和虚拟机之间的映射关系以及虚拟机所在的网段。在虚拟机迁移至第二物理服务器后,第二物理网关可以根据第一流表项的指示,为虚拟机转发数据。
S207、SDN控制器发送第一流表项至第二物理网关,以使得第二物理网关根据第一流表项所指示的数据转发策略为虚拟机转发数据。
S208、SDN控制器删除第二流表项,第二流表项中包含第一物理网关的VTEP IP地址、第一虚拟机网关的IP地址、第一虚拟机网关的MAC地址和虚拟机的IP地址之间的映射关系以及虚拟机的VxLAN ID。
其中,第二流表项存储在SDN控制器中,第二流表项记录了虚拟机迁移前的物理网关、虚拟机迁移前的虚拟机的虚拟机网关和虚拟机之间的映射关系以及虚拟机所在的网段。
通过建立第一流表项,删除第二流表项,可以防止虚拟机在进行数据传输时,再通过虚拟机迁移前的虚拟机的虚拟机网关(第一虚拟机网关)进行数据转发,而可以通过虚拟机迁移后的虚拟机的虚拟机网关(第二虚拟机网关)进行数据转发。这种通过第二虚拟机网关进行数据转发的过程,可以减少设备之间进行数据传输的数据流量,进而减少设备之间进行数据传输所占用的带宽。
S209、SDN控制器判断虚拟机的VxLAN ID所标识的网段内,是否存在其他虚拟机使用第一虚拟机网关。
其中,SDN控制器可以在虚拟机的VxLAN ID所标识的网段内,根据SDN控制器中存储的虚拟机网关与虚拟机的映射关系、第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址,查找是否存在其他虚拟机的虚拟机网关的IP地址与第一虚拟机网关的IP地址相同,且虚拟机网关的MAC地址与第一虚拟机网关的MAC地址相同,进而判断出是否存在其他虚拟机使用第一虚拟机网关。具体的,若虚拟机的VxLAN ID所标识的网段内,存在其他虚拟机的虚拟机网关的IP地址与第一虚拟机网关的IP地址相同,且虚拟机网关的MAC地址与第一虚拟机网关的MAC地址相同,则可以判断出存在其他虚拟机使用第一虚拟机网关;若虚拟机的VxLAN ID所标识的网段内,不存在其他虚拟机的虚拟机网关的IP地址与第一虚拟机网关的IP地址相同,且虚拟机网关的MAC地址与第一虚拟机网关的MAC地址相同,则可以判断出不存在其他虚拟机使用第一虚拟机网关。
S210、若虚拟机的VxLAN ID所标识的网段内,不存在其他虚拟机使用第一虚拟机网关,则SDN控制器控制第一物理网关删除第一物理网关上配置的第一虚拟机网关。
其中,若不存在其他虚拟机使用第一虚拟机网关,则删除第一物理网关上配置的第一虚拟机网关,可以减少物理网关资源(例如,MAC地址表容量、ARP表项容量和路由表项容量)的消耗。
需要说明的是,在完成上述虚拟机网关配置方法的步骤之后,当虚拟机需要通过网关转发数据时,SDN控制器控制第二物理网关上配置的第二虚拟机网关对虚拟机的数据进行转发。本发明实施例以虚拟机1和虚拟机2之间的通信为例进行说明。其中,虚拟机1为发生迁移的虚拟机,在完成上述虚拟机网关配置方法的步骤之后,如图3所示,虚拟机1和虚拟机2之间的通信流程包括:
S301、虚拟机1向虚拟交换机1发送访问虚拟机1的请求,该请求包括 虚拟机1的IP地址、虚拟机2的IP地址以及广播地址。
其中,虚拟机1在第一次访问虚拟机2时,虚拟机1不能获取虚拟机2的MAC地址,可以用广播地址代替虚拟机2的MAC地址。虚拟机1要获取虚拟机2的MAC地址,可以通过向网络上的所有虚拟机发送ARP请求,以获取虚拟机2的MAC地址。
S302、虚拟交换机1向SDN控制器发送访问请求,该请求包括虚拟机1的IP地址、虚拟机2的IP地址以及虚拟机1所在的物理服务器的VTEP IP。
其中,虚拟交换机1可以根据接收到的虚拟机1上报的信息,解析得到虚拟机1所在的物理服务器的VTEP IP地址。
S303、SDN控制器查看虚拟机1的IP地址与虚拟机2的IP地址,判断虚拟机1与虚拟机2是否在同一网段。
S304、若虚拟机1与虚拟机2不在同一网段,则SDN控制器根据虚拟机1所在的物理服务器的VTEP IP地址确定离虚拟机1的物理位置最近的物理网关1。
其中,SDN控制器可以根据SDN控制器中存储的物理服务器与物理网关的映射关系和虚拟机1所在的物理服务器的VTEP IP地址,查找离虚拟机1的物理位置最近的物理网关1,该物理网关1为虚拟机1迁移后的物理服务器的物理网关(即本发明实施例上述描述中的第二物理网关),且该物理网关1上有为虚拟机1配置的第二虚拟机网关。物理位置最近用于表征转发路径最短。
S305、SDN控制器下发关于虚拟机1的IP地址、虚拟机2的IP地址、虚拟机1所在的物理服务器的VTEP IP地址以及物理网关1的流表项至虚拟交换机1。
S306、虚拟交换机1记录物理网关1的VTEP IP地址和虚拟机2的IP 地址的映射关系。
S307、虚拟机1再次向虚拟交换机1发送访问虚拟机2的请求,该请求包括虚拟机1的IP地址、虚拟机2的IP地址以及广播地址。
S308、虚拟交换机1根据虚拟机2的IP地址封装虚拟机1所在的物理服务器的VTEP IP地址,形成虚拟机1访问虚拟机2的报文。
S309、虚拟交换机1将1访问2的报文发送至物理网关1。
S310、物理网关1根据虚拟机2的IP地址向SDN控制器请求虚拟机2所在的物理服务器的VTEP IP地址。
其中,虚拟机与物理服务器的映射关系可以为预先建立好,并在SDN控制器中存储的。SDN控制器可以根据SDN控制器中存储的虚拟机与物理服务器的映射关系和虚拟机2的IP地址,查找虚拟机2所在的物理服务器的VTEP IP地址。
S311、SDN控制器向物理网关1下发虚拟机2所在的物理服务器的VTEP IP地址和虚拟机2的VxLAN ID。
其中,虚拟机2所在的物理服务器的VTEP IP地址和虚拟机2的VxLAN ID用于物理网关1封装VxLAN报文。
S312、物理网关1封装VxLAN报文。
其中,VxLAN报文的格式如图4所示,在原以太网帧的基础上增加VxLAN封装。外部目标IP地址为虚拟机2所在的物理服务器的VTEP IP地址;外部源IP地址为虚拟机1所在的物理服务器的VTEP IP地址;VxLAN ID为虚拟机2的VxLAN ID。外部目标MAC地址为物理网关1的MAC地址。当虚拟机2与虚拟机1在同一物理网关下时,外部目标MAC地址和外部源MAC地址相同;当虚拟机2与虚拟机1不在同一物理网关下时,外部目标MAC地址为虚拟机2的物理网关的MAC地址,外部源MAC地址为虚拟机 1的物理网关的MAC地址。
S313、物理网关1向虚拟交换机2发送VxLAN报文。
其中,物理网关1通过物理网关1上为虚拟机1配置的第二虚拟机网关向虚拟交换机2发送VxLAN报文。
S314、虚拟交换机2对VxLAN报文解封装,并向虚拟机2发送原始报文。
其中,原始报文为虚拟机1向虚拟交换机1发送的访问虚拟机2的请求的报文。
本发明实施例提供的基于虚拟机迁移的网关控制方法,在虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置了与虚拟机迁移前的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机的虚拟机网关(第一虚拟机网关)具有相同的IP地址和MAC地址的虚拟机网关(第二虚拟机网关),保证了虚拟机迁移前后的虚拟机网关地址(虚拟机网关的IP地址和虚拟机网关的MAC地址)不变;并且,可以发送记录物理网关、虚拟机网关和虚拟机的映射关系的流表项至第二物理网关,以使虚拟机在进行数据传输时,可以直接通过虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置的虚拟机网关(第二虚拟机网关,即与虚拟机迁移前的虚拟机网关具有相同的IP地址和MAC地址的虚拟机网关)进行数据转发,不需要迂回到虚拟机迁移前所处的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机网关(第一虚拟机网关)进行数据转发,可以减少设备之间进行数据传输的数据流量,进而减少设备之间进行数据传输所占用的带宽,可以在一定程度上减少带宽资源的浪费。
实施例3
本发明实施例提供一种SDN控制器,第一物理网关为第一物理服务器 的物理网关,第二物理网关为第二物理服务器的物理网关,应用于虚拟机由第一物理服务器迁移至第二物理服务器的过程中,如图5所示,该SDN控制器可以包括:获取单元31、配置单元32、创建单元33和发送单元34。
获取单元31,获取第一虚拟机网关的网际协议IP地址、第一虚拟机网关的媒体接入控制MAC地址和第二物理服务器的虚拟隧道终端节点VTEP IP地址,第一虚拟机网关为配置在第一物理网关上的虚拟机的虚拟机网关。
配置单元32,用于根据获取单元31获取的第二物理服务器的VTEP IP地址,控制第二物理网关为虚拟机在第二物理网关上配置第二虚拟机网关,第二虚拟机网关的IP地址与获取单元获取的第一虚拟机网关的IP地址相同,且第二虚拟机网关的MAC地址与获取单元获取的第一虚拟机网关的MAC地址相同。
创建单元33,用于创建第一流表项,第一流表项中包含第二物理网关的VTEP IP地址、第二虚拟机网关的IP地址、第二虚拟机网关的MAC地址和虚拟机的IP地址之间的映射关系以及虚拟机的扩展虚拟局域网络VxLAN ID。
发送单元34,用于发送创建单元33创建的第一流表项至第二物理网关,以使得第二物理网关根据第一流表项所指示的数据转发策略为虚拟机转发数据,虚拟机的VxLAN ID用于标识虚拟机所在的网段。
进一步的,如图6所示,配置单元32,可以包括:第一确定子单元321和配置子单元322。
第一确定子单元321,用于根据第二物理服务器的VTEP IP地址确定第二物理网关的VTEP IP地址。
配置子单元322,用于根据第一确定子单元321确定的第二物理网关的VTEP IP地址,控制第二物理网关为虚拟机在第二物理网关上配置第二虚拟机网关。
进一步的,配置单元32,具体用于根据第二物理网关的VTEP IP地址,发送第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址至第二物理网关,以使得第二物理网关根据第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址在第二物理网关上配置第二虚拟机网关。
进一步的,如图7所示,获取单元31,可以包括:获取子单元311和第二确定子单元312。
获取子单元311,用于获取虚拟机迁移信息,虚拟机迁移信息包括:虚拟机的IP地址、虚拟机的MAC地址和第二物理服务器的VTEP IP地址。
第二确定子单元312,用于根据获取子单元311获取的虚拟机的IP地址和虚拟机的MAC地址确定第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址。
进一步的,如图8所示,本发明实施例中的SDN控制器,还可以包括删除单元35。
删除单元35,用于在创建单元33创建第一流表项之后,删除第二流表项,第二流表项中包含第一物理网关的VTEP IP地址、第一虚拟机网关的IP地址、第一虚拟机网关的MAC地址和虚拟机的IP地址之间的映射关系以及虚拟机的扩展虚拟局域网络VxLAN ID。
进一步的,如图9所示,本发明实施例中的SDN控制器,还可以包括确定单元36。
确定单元36,用于在创建单元33创建第一流表项之前,获取单元31获取虚拟机迁移信息之后,根据虚拟机的IP地址和虚拟机的MAC地址确定虚拟机的VxLAN ID。
进一步的,如图10所示,本发明实施例中的SDN控制器,还可以包括判断单元37。
判断单元37,用于在创建单元33创建第一流表项之后,判断虚拟机的VxLAN ID所标识的网段内,是否存在其他虚拟机使用第一虚拟机网关。
删除单元35,还用于若判断单元37判断得到虚拟机的VxLAN ID所标识的网段内,不存在其他虚拟机使用第一虚拟机网关,则控制第一物理网关删除第一物理网关上配置的第一虚拟机网关。
需要说明的是,本发明实施例提供的SDN控制器中部分功能模块的具体描述可以参考方法实施例中的对应内容,本实施例这里不再详细赘述。
本发明实施例提供的SDN控制器,在虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置了与虚拟机迁移前的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机的虚拟机网关(第一虚拟机网关)具有相同的IP地址和MAC地址的虚拟机网关(第二虚拟机网关),保证了虚拟机迁移前后的虚拟机网关地址(虚拟机网关的IP地址和虚拟机网关的MAC地址)不变;并且,可以发送记录物理网关、虚拟机网关和虚拟机的映射关系的流表项至第二物理网关,以使虚拟机在进行数据传输时,可以直接通过虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置的虚拟机网关(第二虚拟机网关,即与虚拟机迁移前的虚拟机网关具有相同的IP地址和MAC地址的虚拟机网关)进行数据转发,不需要迂回到虚拟机迁移前所处的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机网关(第一虚拟机网关)进行数据转发,可以减少设备之间进行数据传输的数据流量,进而减少设备之间进行数据传输所占用的带宽,可以在一定程度上减少带宽资源的浪费。
实施例4
本发明实施例提供一种SDN控制器,第一物理网关为第一物理服务器的物理网关,第二物理网关为第二物理服务器的物理网关,应用于虚拟机由 第一物理服务器迁移至第二物理服务器的过程中,如图11所示,该SDN控制器可以包括:接收器41、处理器42、发送器43和存储器44。
接收器41,用于接收虚拟机迁移信息,以获取第一虚拟机网关的网际协议IP地址、第一虚拟机网关的媒体接入控制MAC地址和第二物理服务器的虚拟隧道终端节点VTEP IP地址,第一虚拟机网关为配置在第一物理网关上的虚拟机的虚拟机网关;虚拟机迁移信息包括:虚拟机的IP地址、虚拟机的MAC地址和第二物理服务器的VTEP IP地址。
处理器42,用于根据接收器41获取的第二物理服务器的VTEP IP地址,控制第二物理网关为虚拟机在第二物理网关上配置第二虚拟机网关,第二虚拟机网关的IP地址与获取单元获取的第一虚拟机网关的IP地址相同,且第二虚拟机网关的MAC地址与获取单元获取的第一虚拟机网关的MAC地址相同;还用于创建第一流表项,第一流表项中包含第二物理网关的VTEP IP地址、第二虚拟机网关的IP地址、第二虚拟机网关的MAC地址和虚拟机的IP地址之间的映射关系以及虚拟机的扩展虚拟局域网络VxLAN ID。
发送器43,用于发送处理器42创建的第一流表项至第二物理网关,以使得第二物理网关根据第一流表项所指示的数据转发策略为虚拟机转发数据,虚拟机的VxLAN ID用于标识虚拟机所在的网段。
存储器44,用于存储接收器41和处理器42得到的数据,如第一虚拟机网关的IP地址、第一虚拟机网关的MAC地址和第二物理服务器的VTEP IP地址、第二虚拟机网关的IP地址、第二虚拟机网关的MAC地址以及第一流表项等。
其中,接收器41和发送器43可以为SDN控制器与其他设备进行通信时的通信接口。接收器41、处理器42、发送器43和存储器44通过总线连接并完成相互间的通信。
其中,总线可以是工业标准体系结构(Industry Standard Architecture, ISA)总线、外部设备互连(Peripheral Component Interconnect,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图10中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
需要说明的是,在本发明实施例中,所述处理器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可以是单运算核心,也可以包括多运算核心。
进一步的,处理器42,还用于根据第二物理服务器的VTEP IP地址确定第二物理网关的VTEP IP地址;根据第二物理网关的VTEP IP地址,控制第二物理网关为虚拟机在第二物理网关上配置第二虚拟机网关。
进一步的,处理器42,还用于根据第二物理网关的VTEP IP地址,发送第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址至第二物理网关,以使得第二物理网关根据第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址在第二物理网关上配置第二虚拟机网关。
进一步的,处理器42,还用于根据接收器41获取的虚拟机的IP地址和虚拟机的MAC地址确定第一虚拟机网关的IP地址和第一虚拟机网关的MAC地址。
进一步的,处理器42,还用于在创建第一流表项之后,删除第二流表项, 第二流表项中包含第一物理网关的VTEP IP地址、第一虚拟机网关的IP地址、第一虚拟机网关的MAC地址和虚拟机的IP地址之间的映射关系以及虚拟机的扩展虚拟局域网络VxLAN ID。
进一步的,处理器42,还用于在创建第一流表项之前,接收器41获取虚拟机迁移信息之后,根据虚拟机的IP地址和虚拟机的MAC地址确定虚拟机的VxLAN ID。
进一步的,处理器42,还用于在创建第一流表项之后,判断虚拟机的VxLAN ID所标识的网段内,是否存在其他虚拟机使用第一虚拟机网关;若虚拟机的VxLAN ID所标识的网段内,不存在其他虚拟机使用第一虚拟机网关,则控制第一物理网关删除第一物理网关上配置的第一虚拟机网关。
需要说明的是,本发明实施例提供的SDN控制器中部分功能模块的具体描述可以参考方法实施例中的对应内容,本实施例这里不再详细赘述。
本发明实施例提供的SDN控制器,在虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置了与虚拟机迁移前的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机的虚拟机网关(第一虚拟机网关)具有相同的IP地址和MAC地址的虚拟机网关(第二虚拟机网关),保证了虚拟机迁移前后的虚拟机网关地址(虚拟机网关的IP地址和虚拟机网关的MAC地址)不变;并且,可以发送记录物理网关、虚拟机网关和虚拟机的映射关系的流表项至第二物理网关,以使虚拟机在进行数据传输时,可以直接通过虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置的虚拟机网关(第二虚拟机网关,即与虚拟机迁移前的虚拟机网关具有相同的IP地址和MAC地址的虚拟机网关)进行数据转发,不需要迂回到虚拟机迁移前所处的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机网关(第一虚拟机网关)进行数据转发,可以减少设备之间进行数据传输的数据流量,进 而减少设备之间进行数据传输所占用的带宽,可以在一定程度上减少带宽资源的浪费。
实施例5
本发明实施例提供一种基于虚拟机迁移的网关控制系统,第一物理网关为第一物理服务器的物理网关,第二物理网关为第二物理服务器的物理网关,应用于虚拟机由第一物理服务器迁移至第二物理服务器的过程中,如图12所示,该系统可以包括:SDN控制51、虚拟机52、第一物理服务器53、第一物理网关54、第一虚拟机网关55、第二物理服务器56、第二物理网关57和第二虚拟机网关58。
第一虚拟机网关55为配置在第一物理网关54上的虚拟机52的虚拟机网关;第二虚拟机网关58为配置在第二物理网关57上的虚拟机52的虚拟机网关。
SDN控制51,用于执行如权利要求1-7中任一项所述的基于虚拟机迁移的网关控制方法。
第二物理网关57,用于根据SDN控制51的控制,在第二物理网关57上配置第二虚拟机网关58。
其中,第二虚拟机网关58的IP地址与第一虚拟机网关55的IP地址相同,且第二虚拟机网关58的MAC地址与第一虚拟机网关55的MAC地址相同。
本发明实施例提供的基于虚拟机迁移的网关控制系统,在虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置了与虚拟机迁移前的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机的虚拟机网关(第一虚拟机网关)具有相同的IP地址和MAC地址的虚拟机网关(第二虚拟机网关),保证了虚拟机迁移前后的虚拟机网关地址(虚拟机网关的IP地址和虚拟机网关的MAC地址)不变;并且,可 以发送记录物理网关、虚拟机网关和虚拟机的映射关系的流表项至第二物理网关,以使虚拟机在进行数据传输时,可以直接通过虚拟机迁移后的物理服务器(第二物理服务器)的物理网关(第二物理网关)上配置的虚拟机网关(第二虚拟机网关,即与虚拟机迁移前的虚拟机网关具有相同的IP地址和MAC地址的虚拟机网关)进行数据转发,不需要迂回到虚拟机迁移前所处的物理服务器(第一物理服务器)的物理网关(第一物理网关)上配置的虚拟机网关(第一虚拟机网关)进行数据转发,可以减少设备之间进行数据传输的数据流量,进而减少设备之间进行数据传输所占用的带宽,可以在一定程度上减少带宽资源的浪费。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。

Claims (15)

  1. 一种基于虚拟机迁移的网关控制方法,其特征在于,第一物理网关为第一物理服务器的物理网关,第二物理网关为第二物理服务器的物理网关,当虚拟机由所述第一物理服务器迁移至所述第二物理服务器时,所述方法包括:
    软件定义网络SDN控制器获取第一虚拟机网关的网际协议IP地址、所述第一虚拟机网关的媒体接入控制MAC地址和第二物理服务器的虚拟隧道终端节点VTEP IP地址,所述第一虚拟机网关为配置在所述第一物理网关上的所述虚拟机的虚拟机网关;
    所述SDN控制器根据所述第二物理服务器的VTEP IP地址,控制所述第二物理网关为所述虚拟机在所述第二物理网关上配置第二虚拟机网关,所述第二虚拟机网关的IP地址与所述第一虚拟机网关的IP地址相同,且所述第二虚拟机网关的MAC地址与所述第一虚拟机网关的MAC地址相同;
    所述SDN控制器创建第一流表项,所述第一流表项中包含所述第二物理网关的VTEP IP地址、所述第二虚拟机网关的IP地址、所述第二虚拟机网关的MAC地址和所述虚拟机的IP地址之间的映射关系以及所述虚拟机的扩展虚拟局域网络VxLAN ID,并发送所述第一流表项至所述第二物理网关,以使得所述第二物理网关根据所述第一流表项所指示的数据转发策略为所述虚拟机转发数据,所述虚拟机的VxLAN ID用于标识所述虚拟机所在的网段。
  2. 根据权利要求1所述的方法,其特征在于,所述SDN控制器根据所述第二物理服务器的VTEP IP地址,控制所述第二物理网关为所述虚拟机在所述第二物理网关上配置第二虚拟机网关,包括:
    所述SDN控制器根据所述第二物理服务器的VTEP IP地址确定所述第二物理网关的VTEP IP地址;
    所述SDN控制器根据所述第二物理网关的VTEP IP地址,控制所述第 二物理网关为所述虚拟机在所述第二物理网关上配置所述第二虚拟机网关。
  3. 根据权利要求1或2所述的方法,其特征在于,所述SDN控制器根据所述第二物理网关的VTEP IP地址,控制所述第二物理网关为所述虚拟机在所述第二物理网关上配置所述第二虚拟机网关,包括:
    所述SDN控制器根据所述第二物理网关的VTEP IP地址,发送所述第一虚拟机网关的IP地址和所述第一虚拟机网关的MAC地址至所述第二物理网关,以使得所述第二物理网关根据所述第一虚拟机网关的IP地址和所述第一虚拟机网关的MAC地址在所述第二物理网关上配置所述第二虚拟机网关。
  4. 根据权利要求1或2所述的方法,其特征在于,所述软件定义网络SDN控制器获取第一虚拟机网关的网际协议IP地址、所述第一虚拟机网关的媒体接入控制MAC地址和第二物理服务器的虚拟隧道终端节点VTEP IP地址,包括:
    所述SDN控制器获取虚拟机迁移信息,所述虚拟机迁移信息包括:所述虚拟机的IP地址、所述虚拟机的MAC地址和所述第二物理服务器的VTEP IP地址;
    所述SDN控制器根据所述虚拟机的IP地址和所述虚拟机的MAC地址确定所述第一虚拟机网关的IP地址和所述第一虚拟机网关的MAC地址。
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,在所述SDN控制器创建第一流表项之后,所述方法还包括:
    删除第二流表项,所述第二流表项中包含所述第一物理网关的VTEP IP地址、第一虚拟机网关的IP地址、所述第一虚拟机网关的MAC地址和所述虚拟机的IP地址之间的映射关系以及所述虚拟机的扩展虚拟局域网络VxLAN ID。
  6. 根据权利要求4所述的方法,其特征在于,在所述SDN控制器创 建第一流表项之前,所述SDN控制器获取虚拟机迁移信息之后,所述方法还包括:
    根据所述虚拟机的IP地址和所述虚拟机的MAC地址确定所述虚拟机的VxLAN ID。
  7. 根据权利要求6所述的方法,其特征在于,在所述创建第一流表项之后,所述方法还包括:
    判断所述虚拟机的VxLAN ID所标识的网段内,是否存在其他虚拟机使用所述第一虚拟机网关;
    若所述虚拟机的VxLAN ID所标识的网段内,不存在所述其他虚拟机使用所述第一虚拟机网关,则控制所述第一物理网关删除所述第一物理网关上配置的所述第一虚拟机网关。
  8. 一种软件定义网络SDN控制器,其特征在于,第一物理网关为第一物理服务器的物理网关,第二物理网关为第二物理服务器的物理网关,应用于虚拟机由所述第一物理服务器迁移至所述第二物理服务器的过程中,所述SDN控制器包括:
    获取单元,用于获取第一虚拟机网关的网际协议IP地址、所述第一虚拟机网关的媒体接入控制MAC地址和第二物理服务器的虚拟隧道终端节点VTEP IP地址,所述第一虚拟机网关为配置在所述第一物理网关上的所述虚拟机的虚拟机网关;
    配置单元,用于根据所述获取单元获取的所述第二物理服务器的VTEP IP地址,控制所述第二物理网关为所述虚拟机在所述第二物理网关上配置第二虚拟机网关,所述第二虚拟机网关的IP地址与所述获取单元获取的所述第一虚拟机网关的IP地址相同,且所述第二虚拟机网关的MAC地址与所述获取单元获取的所述第一虚拟机网关的MAC地址相同;
    创建单元,用于创建第一流表项,所述第一流表项中包含所述第二物理网关的VTEP IP地址、所述第二虚拟机网关的IP地址、所述第二虚拟机 网关的MAC地址和所述虚拟机的IP地址之间的映射关系以及所述虚拟机的扩展虚拟局域网络VxLAN ID;
    发送单元,用于发送创建单元创建的所述第一流表项至所述第二物理网关,以使得所述第二物理网关根据所述第一流表项所指示的数据转发策略为所述虚拟机转发数据,所述虚拟机的VxLAN ID用于标识所述虚拟机所在的网段。
  9. 根据权利要求8所述的SDN控制器,其特征在于,所述配置单元,包括:
    第一确定子单元,用于根据所述第二物理服务器的VTEP IP地址确定所述第二物理网关的VTEP IP地址;
    配置子单元,用于根据所述第一确定子单元确定的所述第二物理网关的VTEP IP地址,控制所述第二物理网关为所述虚拟机在所述第二物理网关上配置所述第二虚拟机网关。
  10. 根据权利要求8或9所述的SDN控制器,其特征在于,所述配置单元,具体用于根据所述第二物理网关的VTEP IP地址,发送所述第一虚拟机网关的IP地址和所述第一虚拟机网关的MAC地址至所述第二物理网关,以使得所述第二物理网关根据所述第一虚拟机网关的IP地址和所述第一虚拟机网关的MAC地址在所述第二物理网关上配置所述第二虚拟机网关。
  11. 根据权利要求8或9所述的SDN控制器,其特征在于,所述获取单元,包括:
    获取子单元,用于获取虚拟机迁移信息,所述虚拟机迁移信息包括:所述虚拟机的IP地址、所述虚拟机的MAC地址和所述第二物理服务器的VTEP IP地址;
    第二确定子单元,用于根据所述获取子单元获取的所述虚拟机的IP地址和所述虚拟机的MAC地址确定所述第一虚拟机网关的IP地址和所述第 一虚拟机网关的MAC地址。
  12. 根据权利要求8-11中任一项所述的SDN控制器,其特征在于,还包括:
    删除单元,用于在所述创建单元创建所述创建第一流表项之后,删除第二流表项,所述第二流表项中包含所述第一物理网关的VTEP IP地址、第一虚拟机网关的IP地址、所述第一虚拟机网关的MAC地址和所述虚拟机的IP地址之间的映射关系以及所述虚拟机的扩展虚拟局域网络VxLAN ID。
  13. 根据权利要求11所述的SDN控制器,其特征在于,还包括:
    确定单元,用于在所述创建单元创建所述第一流表项之前,所述获取单元获取所述虚拟机迁移信息之后,根据所述虚拟机的IP地址和所述虚拟机的MAC地址确定所述虚拟机的VxLAN ID。
  14. 根据权利要求10所述的SDN控制器,其特征在于,还包括:
    判断单元,用于在所述创建单元创建所述第一流表项之后,判断所述虚拟机的VxLAN ID所标识的网段内,是否存在其他虚拟机使用所述第一虚拟机网关;
    所述删除单元,还用于若所述判断单元判断得到所述虚拟机的VxLAN ID所标识的网段内,不存在所述其他虚拟机使用所述第一虚拟机网关,则控制所述第一物理网关删除所述第一物理网关上配置的所述第一虚拟机网关。
  15. 一种基于虚拟机迁移的网关控制系统,其特征在于,第一物理网关为第一物理服务器的物理网关,第二物理网关为第二物理服务器的物理网关,应用于虚拟机由所述第一物理服务器迁移至所述第二物理服务器的过程中,所述系统包括:软件定义网络SDN控制器、所述虚拟机、所述第一物理服务器、所述第一物理网关、第一虚拟机网关、所述第二物理服务器、所述第二物理网关和第二虚拟机网关;
    所述第一虚拟机网关为配置在所述第一物理网关上的所述虚拟机的虚拟机网关;所述第二虚拟机网关为配置在所述第二物理网关上的所述虚拟机的虚拟机网关;
    所述SDN控制器,用于执行如权利要求1-7中任一项所述的基于虚拟机迁移的网关控制方法;
    第二物理网关,用于根据所述SDN控制器的控制,在所述第二物理网关上配置所述第二虚拟机网关;
    其中,所述第二虚拟机网关的网际协议IP地址与所述第一虚拟机网关的IP地址相同,且所述第二虚拟机网关的MAC地址与所述第一虚拟机网关的媒体接入控制MAC地址相同。
PCT/CN2015/083212 2014-09-05 2015-07-02 一种基于虚拟机迁移的网关控制方法、装置及系统 WO2016034014A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410449715.5A CN104243265B (zh) 2014-09-05 2014-09-05 一种基于虚拟机迁移的网关控制方法、装置及系统
CN201410449715.5 2014-09-05

Publications (1)

Publication Number Publication Date
WO2016034014A1 true WO2016034014A1 (zh) 2016-03-10

Family

ID=52230659

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/083212 WO2016034014A1 (zh) 2014-09-05 2015-07-02 一种基于虚拟机迁移的网关控制方法、装置及系统

Country Status (2)

Country Link
CN (1) CN104243265B (zh)
WO (1) WO2016034014A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109802985A (zh) * 2017-11-17 2019-05-24 北京金山云网络技术有限公司 数据传输方法、装置、设备及可读取存储介质
CN113590268A (zh) * 2021-08-06 2021-11-02 中国联合网络通信集团有限公司 虚拟机迁移方法、arp代理网关及vtep
CN114257545A (zh) * 2021-12-09 2022-03-29 北京奇艺世纪科技有限公司 一种报文转发方法及装置

Families Citing this family (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104243265B (zh) * 2014-09-05 2018-01-05 华为技术有限公司 一种基于虚拟机迁移的网关控制方法、装置及系统
CN106031104B (zh) * 2015-01-21 2019-07-12 华为技术有限公司 数据报文的转发方法、装置及设备
CN104935463B (zh) * 2015-06-03 2019-02-05 清华大学 虚拟软件定义网络映射实现方法
CN105227357B (zh) * 2015-09-15 2018-10-16 清华大学 虚拟机策略迁移配置方法及装置
CN106549780B (zh) * 2015-09-18 2020-05-08 华为技术有限公司 一种网络配置方法、装置及系统
CN105204955B (zh) * 2015-09-30 2018-05-29 华为技术有限公司 一种虚拟机故障修复方法和装置
CN105407137B (zh) * 2015-10-22 2019-07-23 华为技术有限公司 一种数据迁移方法、ip硬盘、ip盘网关及存储系统
CN105591925B (zh) * 2015-12-10 2019-03-12 新华三技术有限公司 应用于sdn中的报文转发方法和设备
CN105871676B (zh) * 2016-03-17 2019-02-12 广东微云科技股份有限公司 一种桌面云中远端虚拟机的网络连接方法及系统
CN107241454B (zh) * 2016-03-29 2019-08-16 中兴通讯股份有限公司 一种实现地址管理的方法、装置、aaa服务器及sdn控制器
CN107276783B (zh) * 2016-04-08 2022-05-20 中兴通讯股份有限公司 一种实现虚拟机统一管理及互通的方法、装置和系统
CN106059923B (zh) * 2016-05-30 2019-07-05 新华三技术有限公司 一种报文转发方法及装置
CN107453971B (zh) * 2016-05-30 2020-11-24 北京京东尚科信息技术有限公司 通信方法、通信系统、计算机系统及计算机可读存储介质
CN108023801B (zh) * 2016-10-31 2020-11-10 中国电信股份有限公司 异构网络的资源调度方法及系统
CN106506315B (zh) * 2016-12-16 2019-03-12 无锡华云数据技术服务有限公司 一种报文转发的透明配置方法
CN106789529B (zh) * 2016-12-16 2020-04-14 平安科技(深圳)有限公司 一种overlay网络的实现方法及终端
CN106533815B (zh) * 2017-01-13 2019-10-29 邦彦技术股份有限公司 基于能力特征的网关管控方法及装置
CN108259294B (zh) * 2017-02-28 2021-01-26 新华三技术有限公司 报文处理方法及装置
CN108964949A (zh) * 2017-05-19 2018-12-07 中兴通讯股份有限公司 虚拟机迁移方法、sdn控制器及计算机可读存储介质
CN107276794B (zh) * 2017-06-02 2020-05-12 重庆邮电大学 一种软件定义网络中交换机迁移算法
CN107147580B (zh) * 2017-06-23 2020-09-25 北京佰才邦技术有限公司 一种隧道建立的方法及通信系统
CN107659484B (zh) * 2017-10-13 2020-08-21 锐捷网络股份有限公司 从vlan网络接入vxlan网络的方法、装置及系统
CN108768889A (zh) * 2018-05-07 2018-11-06 广州大学华软软件学院 一种sdn网络多通道线路带宽动态分配方法
CN109391534B (zh) * 2018-10-26 2021-05-07 新华三技术有限公司合肥分公司 一种接入模式更新方法及装置
CN109587286B (zh) * 2018-12-27 2022-05-31 新华三技术有限公司 一种设备接入控制方法及装置
CN109981493B (zh) * 2019-04-09 2020-05-01 苏州浪潮智能科技有限公司 一种用于配置虚拟机网络的方法和装置
CN113381936B (zh) * 2020-03-09 2023-08-15 阿里巴巴集团控股有限公司 网络信息处理方法、装置及网络设备
CN113301070A (zh) * 2020-04-07 2021-08-24 阿里巴巴集团控股有限公司 数据传输通道的建立方法及装置
CN111736958B (zh) * 2020-06-29 2023-06-30 中国联合网络通信集团有限公司 虚拟机迁移方法、系统、计算机设备及存储介质
CN114826824A (zh) * 2022-04-01 2022-07-29 阿里云计算有限公司 流量迁移方法、设备、介质及产品

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103346900A (zh) * 2013-05-31 2013-10-09 华为技术有限公司 大二层网络中虚拟机热迁移后的路由配置方法和网关
CN103814554A (zh) * 2013-12-11 2014-05-21 华为技术有限公司 一种虚拟可扩展局域网的通信方法、装置和系统
CN103905283A (zh) * 2012-12-25 2014-07-02 华为技术有限公司 基于可扩展虚拟局域网的通信方法及装置
WO2014101394A1 (zh) * 2012-12-24 2014-07-03 华为技术有限公司 可扩展虚拟局域网报文的传输方法及装置、系统
CN104243265A (zh) * 2014-09-05 2014-12-24 华为技术有限公司 一种基于虚拟机迁移的网关控制方法、装置及系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801715B (zh) * 2012-07-30 2015-03-11 华为技术有限公司 一种网络中虚拟机迁移的方法、网关及系统
CN103905303B (zh) * 2012-12-28 2018-02-23 中国移动通信集团公司 一种虚拟机vm跨网迁移后的数据处理方法、装置及系统
US9477506B2 (en) * 2013-02-12 2016-10-25 Futurewei Technologies, Inc. Dynamic virtual machines migration over information centric networks
CN103685250A (zh) * 2013-12-04 2014-03-26 蓝盾信息安全技术股份有限公司 一种基于sdn的虚拟机安全策略迁移的系统及方法
CN103763121B (zh) * 2013-12-24 2018-01-09 新华三技术有限公司 一种网络配置信息快速下发的方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014101394A1 (zh) * 2012-12-24 2014-07-03 华为技术有限公司 可扩展虚拟局域网报文的传输方法及装置、系统
CN103905283A (zh) * 2012-12-25 2014-07-02 华为技术有限公司 基于可扩展虚拟局域网的通信方法及装置
CN103346900A (zh) * 2013-05-31 2013-10-09 华为技术有限公司 大二层网络中虚拟机热迁移后的路由配置方法和网关
CN103814554A (zh) * 2013-12-11 2014-05-21 华为技术有限公司 一种虚拟可扩展局域网的通信方法、装置和系统
CN104243265A (zh) * 2014-09-05 2014-12-24 华为技术有限公司 一种基于虚拟机迁移的网关控制方法、装置及系统

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109802985A (zh) * 2017-11-17 2019-05-24 北京金山云网络技术有限公司 数据传输方法、装置、设备及可读取存储介质
CN113590268A (zh) * 2021-08-06 2021-11-02 中国联合网络通信集团有限公司 虚拟机迁移方法、arp代理网关及vtep
CN113590268B (zh) * 2021-08-06 2023-11-24 中国联合网络通信集团有限公司 虚拟机迁移方法、arp代理网关及vtep
CN114257545A (zh) * 2021-12-09 2022-03-29 北京奇艺世纪科技有限公司 一种报文转发方法及装置
CN114257545B (zh) * 2021-12-09 2023-09-05 北京奇艺世纪科技有限公司 一种报文转发方法及装置

Also Published As

Publication number Publication date
CN104243265B (zh) 2018-01-05
CN104243265A (zh) 2014-12-24

Similar Documents

Publication Publication Date Title
WO2016034014A1 (zh) 一种基于虚拟机迁移的网关控制方法、装置及系统
US11190375B2 (en) Data packet processing method, host, and system
CN111885075B (zh) 容器通信方法、装置、网络设备及存储介质
US11502920B1 (en) Multi-carrier access to provider substrate extensions
WO2017113231A1 (zh) 一种报文传输的方法、装置和系统
EP3091696B1 (en) Method and device for implementing virtual machine communication
US11831551B2 (en) Cloud computing data center system, gateway, server, and packet processing method
WO2017114017A1 (zh) 实现负载均衡的计算机设备、系统和方法
WO2018086014A1 (zh) 云计算系统中报文处理的方法、主机和系统
US8990808B2 (en) Data relay device, computer-readable recording medium, and data relay method
WO2016107453A1 (zh) 一种控制mac地址转发表发送的方法、装置及系统
CN105577723B (zh) 虚拟化网络中实现负载分担的方法和装置
US10572291B2 (en) Virtual network management
US11159344B1 (en) Connectivity of cloud edge locations to communications service provider networks
WO2015149253A1 (zh) 数据中心的虚拟网络管理方法及数据中心系统
TW201541262A (zh) 以軟體定義網路(sdn)支援虛擬機器遷移之方法
CN104780088A (zh) 一种业务报文的传输方法和设备
CN110519075A (zh) 基于sdn的物理主机与虚拟云主机的通信系统及方法
CN105634901A (zh) 基于cas vxlan的mac地址信息同步方法及装置
EP3086512B1 (en) Implementation method and apparatus for vlan to access vf network and fcf
CN112583655B (zh) 数据传输方法、装置、电子设备及可读存储介质
KR101794719B1 (ko) Sdn 기반 네트워크 가상화 플랫폼에서의 ip 주소 가상화 방법 및 시스템
CN114650290A (zh) 网络连通的方法、处理装置、终端及存储介质
CN105897949A (zh) 一种数据中心内部网络的直接访问方法及系统
JP6693141B2 (ja) パケット転送装置、パケット転送方法、および、プログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15837810

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15837810

Country of ref document: EP

Kind code of ref document: A1