Method and apparatus for determining virtual machine migration
AssigneeHuawei Technologies Co., Ltd.
InventorsYuan Gao, Xingguo Sun, Wenhui Liang
Life of this patent
Estimating the term…
Abstract
Embodiments of this application provide a method and an apparatus for determining virtual machine VM migration. The method includes: after a VM is migrated, sending a gratuitous ARP packet or a RARP packet to an in-migration VTEP device; obtaining, by the VTEP device, a MAC address of the VM, searching an ARP cache table based on the MAC address, and obtaining an IP address of the VM; and constructing an ARP unicast request packet by using the IP address as a destination IP address, and if the VTEP device receives an ARP response packet sent by the VM for the ARP unicast request packet, determining that the VM is migrated.
Claims20
A method for determining virtual machine (VM) migration, the method comprising:
- obtaining, by a first virtual extensible local area network tunnel end point (VTEP) device, a Media Access Control (MAC) address of a VM from a first interface, wherein the first interface is connected to an attachment circuit (AC);
- searching, by the first VTEP device by using the MAC address of the VM as a keyword, an Address Resolution Protocol (ARP) cache table stored in the first VTEP device, and determining that the ARP cache table records that the VM accesses a second VTEP device;
- obtaining, by the first VTEP device, an Internet Protocol (IP) address of the VM according to the ARP cache table, and generating and sending an ARP unicast request packet by using the IP address as a destination IP address;
- receiving, by the first VTEP device from the first interface, an ARP response packet sent by the VM for the ARP unicast request packet;
- and
- in response to the received ARP response packet, determining, by the first VTEP device, that the VM is migrated.
A method for determining virtual machine (VM) migration, the method comprising:
- receiving, by a second virtual extensible local area network tunnel end point (VTEP) device, Address Resolution Protocol (ARP) cache entry information corresponding to a VM and sent by a first VTEP device;
- determining, by the second VTEP device, that the ARP cache entry information records that the VM accesses the first VTEP device;
- determining, by the second VTEP device, that an ARP cache table stored in the second VTEP device records that the VM is a local host accessing the second VTEP device;
- obtaining, by the second VTEP device, an Internet Protocol (IP) address of the VM, and generating and sending an ARP unicast request packet by using the IP address as a destination IP address;
- and
- determining, by the second VTEP device, that the VM is migrated when the second VTEP device does not receive, within a predetermined time, an ARP response packet sent by the VM for the ARP unicast request packet.
An apparatus for determining virtual machine (VM) migration, wherein the apparatus is located on a first virtual extensible local area network tunnel end point (VTEP) device side, and the apparatus comprising:
- a non-transitory memory storing instructions;
- and
- a processor coupled to the non-transitory memory;
- wherein the instructions, when executed by the processor, cause the apparatus to:
- obtain a Media Access Control (MAC) address of a VM from a first interface of the first VTEP device, wherein the first interface is connected to an attachment circuit (AC),
- search, by using the MAC address of the VM as a keyword, an Address Resolution Protocol (ARP) cache table stored in the first VTEP device, and determine that the ARP cache table records that the VM accesses a second VTEP device, obtain an Internet Protocol (IP) address of the VM according to the ARP cache table, and generate an ARP unicast request packet by using the IP address as a destination IP address;
- send the ARP unicast request packet,
- receive, from the first interface, an ARP response packet sent by the VM for the ARP unicast request packet, and
- in response to the received ARP response packet, determine that the VM is migrated.
An apparatus for determining virtual machine (VM) migration, wherein the apparatus is located on a second virtual extensible local area network tunnel end point (VTEP) device side, and the apparatus comprises:
- a non-transitory memory storing instructions;
- and
- a processor coupled to the non-transitory memory;
- wherein the instructions, when executed by the processor, cause the apparatus to be configured to:
- receive Address Resolution Protocol (ARP) cache entry information that is corresponding to the VM and that is sent by a first VTEP device;
- determine that the ARP cache entry information records that the VM accesses the first VTEP device, and determine that an ARP cache table stored in the second VTEP device records that the VM is a local host accessing the second VTEP device;
- obtain an Internet Protocol (IP) address of the VM, and generate an ARP unicast request packet by using the IP address as a destination IP address;
- send the ARP unicast request packet;
- and
- when the apparatus does not receive, within a predetermined time, an ARP response packet sent by the VM for the ARP unicast request packet, determine that the VM is migrated.
Dependencies are inferred from the claim text.