Method, device, equipment, storage medium and system for optimizing network interruption of virtual machine hot migration

By ensuring the release status of the virtual machine network interface and the configuration of the switch port during the virtual machine hot migration process, the problem of network interruption during the virtual machine hot migration process is solved and business continuity is achieved.

CN114003334BActive Publication Date: 2024-12-13CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010739655.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-28
Publication Date
2024-12-13
Estimated Expiration
2040-07-28

AI Technical Summary

Technical Problem

There is a network interruption problem during the hot migration of virtual machines, which has affected business continuity and the existing technology has not been effectively solved.

Method used

By sending migration instruction information between the source host and the target host, receiving confirmation information from the network control device, ensuring that the virtual machine network interface is in the open state, and data migration is carried out based on this state, deleting invalid information, and updating the switch port configuration, ensuring that Network continuity.

Benefits of technology

It greatly reduces network interruption time during the virtual machine's hot migration process, ensuring business continuity during the hot migration process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114003334B_ABST
    Figure CN114003334B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment, storage medium and system for optimizing network interruption during hot migration of virtual machines, which are applied to the field of network communications. The method comprises: a source host sends migration instruction information to a target host; receiving first confirmation information sent by a network control device indicating that the configuration of the relevant information of the virtual machine to be migrated is correct, and sending parameter information of the target host to the network control device based on the first confirmation information; receiving second confirmation information sent by the network control device, the second confirmation information is used to indicate that the first connection port is in an open state; migrating the data of the virtual machine to be migrated to the target host based on the first connection port in an open state. The technical solution adopted in this embodiment can greatly reduce the network interruption time during the hot migration of the virtual machine to be migrated, and ensure the continuity of the business during the hot migration process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network communications, and in particular to a method, device, equipment, storage medium and system for optimizing network interruption of virtual machine hot migration. Background Art

[0002] At present, when a virtual machine undergoes hot migration, the virtual network is mainly migrated in three stages, namely, the migration preparation stage, the migration stage, and the post-migration stage. In the migration preparation stage, the destination node mainly opens the virtual machine network card to the physical network card. However, after the source computing node virtual machine volume is disconnected, the service cannot be provided. Although the virtual path between the virtual network card of the destination computing node virtual machine and the host physical network card is opened, the host machine's uplink switch port does not open the virtual machine network. Therefore, the destination node virtual machine is always in a network unreachable state. At this time, the source computing node virtual machine cannot be accessed, and the destination computing node virtual machine network is unreachable. Therefore, the virtual machine hot migration has a network interruption problem for a certain period of time. There is currently no effective solution to this problem. Summary of the invention

[0003] In view of this, the present invention is intended to provide a method, device, equipment, storage medium and system for optimizing network interruption during hot migration of virtual machines.

[0004] The technical embodiment of the present invention is achieved as follows:

[0005] An embodiment of the present invention provides a method for optimizing network interruption of virtual machine hot migration, the method comprising:

[0006] The source host sends migration instruction information to the target host; the migration instruction information is used to instruct the target host to configure relevant information of the virtual machine to be migrated;

[0007] receiving first confirmation information sent by a network control device indicating that the configuration of the relevant information of the virtual machine to be migrated is correct, and sending parameter information of the target host to the network control device based on the first confirmation information; the parameter information includes an identifier of the target host; the identifier of the target host is used by the network control device to control the switch to configure a first connection port corresponding to the target host; the switch is connected to the source host and the target host through different connection ports respectively;

[0008] receiving second confirmation information sent by the network control device, where the second confirmation information is used to indicate that the first connection port is in an open state;

[0009] The data of the virtual machine to be migrated is migrated to the target host based on the first connection port in an open state.

[0010] In the above solution, the method further includes:

[0011] After the data of the virtual machine to be migrated is migrated to the target host, deleting the relevant information of the virtual machine to be migrated;

[0012] Sending first port configuration information to the network control device; the first port configuration information is used to instruct the network control device to control deletion of information of the second connection port corresponding to the source host in the switch.

[0013] An embodiment of the present invention provides a method for optimizing network interruption of virtual machine hot migration, the method comprising:

[0014] The target host receives the migration instruction information sent by the source host, and configures the relevant information of the virtual machine to be migrated based on the migration instruction information; the relevant information includes at least virtual bridge information and virtual network card information;

[0015] Sending indication information to the network control device; the indication information indicates that the target host has completed configuration of the relevant information of the virtual machine to be migrated;

[0016] Receive data of the virtual machine to be migrated sent by the source host.

[0017] In the above solution, the method further includes:

[0018] After the data of the virtual machine to be migrated is received, the second port configuration information is sent to the network control device; the second port configuration information is used to instruct the network control device to control and update the information of the first connection port corresponding to the target host in the switch; the switch is connected to the source host and the target host through different connection ports respectively.

[0019] An embodiment of the present invention provides a method for optimizing network interruption of virtual machine hot migration, the method comprising:

[0020] The network control device receives the indication information sent by the target host, wherein the indication information indicates that the target host has completed the configuration of the relevant information of the virtual machine to be migrated;

[0021] If it is determined based on the indication information that the configuration of the relevant information of the virtual machine to be migrated is correct, generating first confirmation information, and sending the first confirmation information to the source host; the first confirmation information is used to indicate that the configuration of the relevant information of the virtual machine to be migrated is correct;

[0022] Receiving parameter information of the target host sent by the source host; the parameter information includes an identifier of the target host;

[0023] Based on the identifier of the target host, the switch is controlled to configure a first connection port corresponding to the target host, second confirmation information is generated based on the configuration result, and the second confirmation information is sent to the source host; the switch is connected to the source host and the target host through different connection ports respectively; the second confirmation information is used to indicate that the first connection port is in an open state.

[0024] In the above solution, the method further includes:

[0025] receiving first port configuration information sent by the source host, and instructing the switch to delete information of a second connection port corresponding to the source host based on the first port configuration information;

[0026] The second port configuration information sent by the target host is received, and based on the second port configuration information, the switch is instructed to update the information of the first connection port corresponding to the target host.

[0027] An embodiment of the present invention provides a device for optimizing network interruption during hot migration of a virtual machine, the device comprising: a first sending unit, a first receiving unit and a migration unit, wherein:

[0028] The first sending unit is used to send migration instruction information to the target host; the migration instruction information is used to instruct the target host to configure relevant information of the virtual machine to be migrated;

[0029] The first receiving unit is used to receive first confirmation information sent by the network control device, indicating that the configuration of the relevant information of the virtual machine to be migrated is correct, and send parameter information of the target host to the network control device based on the first confirmation information; the parameter information includes an identifier of the target host; the identifier of the target host is used by the network control device to control the switch to configure a first connection port corresponding to the target host; the switch is connected to the source host and the target host through different connection ports respectively; and is also used to receive second confirmation information sent by the network control device, the second confirmation information is used to indicate that the first connection port is in an open state;

[0030] The migration unit is used to migrate the data of the virtual machine to be migrated to the target host based on the first connection port in an open state.

[0031] In the above solution, the device further comprises: a deleting unit,

[0032] The deleting unit is used to delete the relevant information of the virtual machine to be migrated after the data of the virtual machine to be migrated is migrated to the target host;

[0033] The first sending unit is further used to send first port configuration information to the network control device; the first port configuration information is used to instruct the network control device to control deletion of information of the second connection port corresponding to the source host in the switch.

[0034] An embodiment of the present invention provides a device for optimizing network interruption during hot migration of a virtual machine, the device comprising: a second receiving unit and a second sending unit, wherein:

[0035] The second receiving unit is used to receive the migration instruction information sent by the source host, and configure the relevant information of the virtual machine to be migrated based on the migration instruction information; the relevant information at least includes virtual bridge information and virtual network card information;

[0036] The second sending unit is used to send indication information to the network control device; the indication information represents that the target host has completed the configuration of the relevant information of the virtual machine to be migrated;

[0037] The second receiving unit is further configured to receive the data of the virtual machine to be migrated sent by the source host.

[0038] In the above scheme, the second sending unit is also used to send second port configuration information to the network control device after the data reception of the virtual machine to be migrated is completed; the second port configuration information is used to instruct the network control device to control the update of the information of the first connection port corresponding to the target host in the switch; the switch is connected to the source host and the target host through different connection ports respectively.

[0039] An embodiment of the present invention provides a device for optimizing network interruption during hot migration of a virtual machine, the device comprising: a third receiving unit and a third sending unit, wherein:

[0040] The third receiving unit is used to receive indication information sent by the target host, where the indication information indicates that the target host has completed configuration of the relevant information of the virtual machine to be migrated;

[0041] The third sending unit is used to generate first confirmation information when it is determined based on the indication information received by the third receiving unit that the relevant information of the virtual machine to be migrated is correctly configured, and send the first confirmation information to the source host; the first confirmation information is used to indicate that the relevant information of the virtual machine to be migrated is correctly configured;

[0042] The third receiving unit is further configured to receive parameter information of the target host sent by the source host; the parameter information includes an identifier of the target host;

[0043] The third sending unit is further used to control the switch to configure a first connection port corresponding to the target host based on the identifier of the target host received by the third receiving unit, generate second confirmation information based on the configuration result, and send the second confirmation information to the source host; the switch is connected to the source host and the target host through different connection ports respectively; the second confirmation information is used to indicate that the first connection port is in an open state.

[0044] In the above scheme, the third receiving unit is also used to receive the first port configuration information sent by the source host, and instruct the switch to delete the information of the second connection port corresponding to the source host based on the first port configuration information; and is also used to receive the second port configuration information sent by the target host, and instruct the switch to update the information of the first connection port corresponding to the target host based on the second port configuration information.

[0045] An embodiment of the present invention provides a device, including a memory and a processor, wherein the memory stores a program that can be run on the processor, and when the processor executes the program, any step of the above-mentioned method is implemented.

[0046] An embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, any step of the above-mentioned method is implemented.

[0047] An embodiment of the present invention provides a system, the system comprising: a source host, a target host and a network control device, wherein:

[0048] The source host is used to implement any step of the above method;

[0049] The target host is used to implement any step of the above method;

[0050] The network control device is used in any step of the above method.

[0051] The present invention provides a method, device, equipment, storage medium and system for optimizing network interruption of virtual machine hot migration, wherein the method comprises: a source host sends migration instruction information to a target host; the migration instruction information is used to instruct the target host to configure relevant information of the virtual machine to be migrated; first confirmation information sent by a network control device indicating that the relevant information of the virtual machine to be migrated is configured correctly, and parameter information of the target host is sent to the network control device based on the first confirmation information; the parameter information includes an identifier of the target host; the identifier of the target host is used by the network control device to control a switch to configure a first connection port corresponding to the target host; the switch is connected to the source host and the target host respectively through different connection ports; second confirmation information sent by the network control device is received, the second confirmation information is used to indicate that the first connection port is in an open state; and data of the virtual machine to be migrated is migrated to the target host based on the first connection port being in an open state. By adopting the technical solution of the present invention, the source host receives the second confirmation information sent by the network control device, indicating that the first connection port is in an open state, and then the data of the virtual machine to be migrated is migrated to the target host according to the first connection port in the open state, thereby greatly reducing the network interruption time during the hot migration of the virtual machine to be migrated and ensuring the continuity of the business during the hot migration. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 A schematic diagram of a flow chart of a method for optimizing network interruption during hot migration of a virtual machine according to an embodiment of the present invention;

[0053] Figure 2 A schematic diagram of a state in which a switch corresponding to a target host network interface is not opened in a method for optimizing network interruption during hot migration of a virtual machine according to an embodiment of the present invention;

[0054] Figure 3 A schematic diagram of a state in which a switch corresponding to a target host network interface is opened in a method for optimizing network interruption during hot migration of a virtual machine according to an embodiment of the present invention;

[0055] Figure 4 It is another implementation flow diagram of the method for optimizing network interruption during hot migration of virtual machines according to an embodiment of the present invention;

[0056] Figure 5 It is another implementation flow diagram of the method for optimizing network interruption during hot migration of virtual machines according to an embodiment of the present invention;

[0057] Figure 6 A schematic diagram of an interactive process of optimizing a method for network interruption during hot migration of a virtual machine;

[0058] Figure 7A schematic diagram of an application scenario of a method for optimizing network interruption during hot migration of virtual machines;

[0059] Figure 8 A schematic diagram of the composition structure of a device for optimizing network interruption during hot migration of a virtual machine according to an embodiment of the present invention;

[0060] Fig. 9 It is another structural schematic diagram of the composition of the device for optimizing network interruption during hot migration of virtual machines according to an embodiment of the present invention;

[0061] Fig.10 It is another structural schematic diagram of the composition of the device for optimizing network interruption during hot migration of virtual machines according to an embodiment of the present invention;

[0062] Fig.11 The present invention is a schematic diagram of a hardware entity structure of a device for optimizing network interruption during hot migration of virtual machines in an embodiment of the present invention. DETAILED DESCRIPTION

[0063] To make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the specific technical solution of the invention will be further described in detail below in conjunction with the drawings in the embodiments of the present invention. The following embodiments are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0064] In order to facilitate the understanding of the present invention, firstly, a brief introduction is given to the related technologies of Software Defined Network (SDN).

[0065] As a new generation of network organization structure, SDN network has greatly subverted the original traditional network organization mode, and provided great convenience and flexibility for network managers to manage the network. Managers can define the network according to their needs. In the SDN network, the control plane of the traditional network device is separated from the data plane, so as to realize the flexible control of network traffic. SDN can use a centralized controller to control the data flow at the data level. This new solution makes network management easier and can save costs. As a representative of cloud computing management tools, OpenStack uses the network component Neutron to provide network virtualization services, allowing tenants to create and manage virtual networks. In order to improve the programmability of the network, the SDN controller is integrated into the Openstack network component Neutron in a plug-in manner to form a network control device, providing centralized management for the data plane. Accordingly, the SDN architecture in the present invention may include a network control device, a source host, a target host and an SDN switch, wherein: the network control device and the SDN switch communicate through the SDN management channel. The network control device generates a flow table according to the user's configuration or the dynamically running protocol and sends it to the SDN switch, and the SDN switch processes the message according to the flow table sent by the network control device.

[0066] In this embodiment, live migration (also called dynamic migration or real-time migration) is virtual machine save / restore: the running state of the entire virtual machine is completely saved, and it can be quickly restored to the original hardware platform or even a different hardware platform. When a virtual machine undergoes live migration, the virtual network is mainly migrated in three stages, namely, the migration preparation stage (pre_live_migration), the migration stage (live_migration), and the post-migration stage (post_live_migration). In the migration preparation stage, the target node mainly opens the virtual machine network card to the physical network card; in the migration stage, the source node mainly copies the memory to the target node; in the post-migration stage, the source node cleans up the virtual machine virtual network card, etc., to release the host resources; the target node changes the host of the virtual machine port to the destination computing node, triggering the network control device to open the virtual machine network port on the switch connected to the destination computing node. However, the source node virtual machine volume is disconnected and cannot provide services. Although the virtual path between the virtual network card of the target node virtual machine and the physical network card of the host is open, the target node uplink switch port does not open the virtual machine network. Therefore, the target node virtual machine is always in a network unreachable state. At this time, the source node virtual machine is inaccessible, and the target node virtual machine network is unreachable. Therefore, there is a certain period of network interruption during the hot migration of the virtual machine, which will affect business continuity. In addition, the target node configures the virtual machine network card and adds the network card to the virtual bridge in advance during the migration preparation stage, but the source node cannot perceive whether the above steps are completed correctly. When the virtual network is not configured correctly, it will also cause the network interruption of the virtual machine hot migration.

[0067] This embodiment proposes a method for optimizing network interruption during hot migration of virtual machines. Figure 1 FIG. 1 is a flow chart of a method for optimizing network interruption during hot migration of a virtual machine according to an embodiment of the present invention. Figure 1 As shown, the method includes:

[0068] Step S101: The source host sends migration instruction information to the target host; the migration instruction information is used to instruct the target host to configure relevant information of the virtual machine to be migrated.

[0069] In this embodiment, the source host is a physical machine, also known as a physical server, host, source node, source computing node, etc. Before the source host sends migration instruction information to the target host, the source host can receive virtual machine migration request information triggered by the user, and send migration instruction information to the target host based on the migration request information; the migration instruction information is used to instruct the target host to configure the relevant information of the virtual machine to be migrated. Among them, the migration request information at least includes migrating the virtual machine to be migrated on the source host to the target host; the migration instruction information can be sent by the source host to the target host through a remote procedure call (Remote Procedure Call, RPC), and the remote procedure call can express the semantics of the call and convey the data of the call through the network; the relevant information of the virtual machine to be migrated can be the volume information of the virtual machine to be migrated, and the volume information can be hard disk information, and the hard disk information can at least include the virtual bridge information and virtual network card information of the virtual machine to be migrated; a certain relationship can be established between the virtual network card information and the virtual bridge information, and the certain relationship can be that the virtual network card is loaded onto the virtual bridge.

[0070] Step S102: Receive first confirmation information sent by a network control device indicating that relevant information of the virtual machine to be migrated is configured correctly, and send parameter information of the target host to the network control device based on the first confirmation information; the parameter information includes an identifier of the target host; the identifier of the target host is used by the network control device to control the switch to configure a first connection port corresponding to the target host; the switch is connected to the source host and the target host through different connection ports, respectively.

[0071] In this embodiment, the parameter information includes an identifier of the target host, and the identifier may be a host name of the target host.

[0072] The switch may be any switch and is not limited here. As an example, the switch may be an SDN switch. The switch is an uplink switch of the source host and the target host, and the switch is connected to the source host and the target host through different connection ports, respectively, and the different connection ports may be subports of the switch.

[0073] Step S103: receiving second confirmation information sent by the network control device, where the second confirmation information is used to indicate that the first connection port is in an open state.

[0074] It should be noted that the network control device can be any control device, which is not limited here. As an example, the network control device can be a device formed by integrating the SDN controller into the Openstack network component Neutron in a plug-in manner. The network control device can be understood as a network administrator, which performs network management and control on the migration process of the virtual machine.

[0075] In this embodiment, the source host receives the second confirmation information sent by the network control device, and the second confirmation information is used to indicate that the first connection port is in an open state; wherein, the first connection port is the port corresponding to the target host on the switch, and can also be understood as the network sub-interface corresponding to the switch connected to the target host, or the network sub-interface corresponding to the switch connected to the host machine; the second confirmation information is used to indicate that the first connection port is in an open state, which can be understood as the sub-interface of the switch connected to the target host sending a configuration to open the network traffic of the virtual machine.

[0076] Step S104: Migrating the data of the virtual machine to be migrated to the target host based on the first connection port in the open state.

[0077] In this embodiment, migrating the data of the virtual machine to be migrated to the target host based on the first connection port in the open state can be understood as the migration stage, copying the data of the virtual machine to be migrated in the source host to the target host, and the data can be memory data.

[0078] For ease of understanding, here is an example of the open state of the corresponding network interface of the switch in the preparation stage of hot migration. Figure 2 A schematic diagram of a state in which a switch corresponding to a target host network interface is not opened in a method for optimizing network interruption during hot migration of a virtual machine according to an embodiment of the present invention; Figure 3 Schematic diagram of the state of the switch corresponding to the target host network interface in the optimization method of the virtual machine hot migration network interruption according to the embodiment of the present invention; Figure 2 and Figure 3 To illustrate this with an example, Figure 2 and Figure 3 In the example, the switch can be an SDN switch, OVS is a virtual switch software, which is mainly used to create a virtual machine (VM) environment and can be used as a virtual switch; VM is the virtual machine to be migrated. Figure 2 In the case of a network failure, the corresponding target host network interface on the switch is not open, that is, the target host upstream switch port is not open and is in a closed state; Figure 3 In the embodiment, the network interface corresponding to the target host on the switch is opened, and the interface is the first connection port, which is in an open state, and the data of the virtual machine to be migrated can be migrated to the target host.

[0079] In an optional embodiment of the present invention, the method further includes:

[0080] After the data of the virtual machine to be migrated is migrated to the target host, deleting the relevant information of the virtual machine to be migrated;

[0081] Sending first port configuration information to the network control device; the first port configuration information is used to instruct the network control device to control deletion of information of the second connection port corresponding to the source host in the switch.

[0082] In this embodiment, the steps in the method belong to the post-migration stage, and after the data of the virtual machine to be migrated is migrated to the target host, the relevant information of the virtual machine to be migrated is deleted; wherein, the relevant information of the virtual machine to be migrated can be the volume information of the virtual machine to be migrated, and the volume information can be the hard disk information, and the hard disk information can at least include the virtual bridge information and virtual network card information of the virtual machine to be migrated. Here, deleting the relevant information of the virtual machine to be migrated can be understood as the source host clearing the relevant information of the virtual machine to be migrated, and specifically, the source host can clear the resources of the virtual machine to be migrated, and the resources can be resources such as virtual network cards of virtual machines, thereby releasing host resources.

[0083] The source host sends first port configuration information to the network control device; the first port configuration information is used to instruct the network control device to control the deletion of information about the second connection port corresponding to the source host in the switch; wherein the second connection port is a port corresponding to the source host on the switch, and can also be understood as a network sub-interface corresponding to the switch connected to the source host. The network control device controls the deletion of information about the second connection port corresponding to the source host in the switch, which can be described as the network control device controls the deletion of the network sub-interface corresponding to the source host in the switch.

[0084] The present invention provides a method for optimizing network interruption during hot migration of virtual machines, wherein first confirmation information sent by a network control device and indicating that relevant information of the virtual machine to be migrated is correctly configured is received, and parameter information of the target host is sent to the network control device based on the first confirmation information; and second confirmation information sent by the network control device is received, wherein the second confirmation information is used to indicate that the first connection port is in an open state; based on the first connection port being in an open state, the data of the virtual machine to be migrated is migrated to the target host, thereby greatly reducing the network interruption time during the hot migration of the virtual machine to be migrated and ensuring the continuity of business during the hot migration.

[0085] The embodiment of the present invention also provides a method for optimizing network interruption of virtual machine hot migration. Figure 4FIG. 1 is another implementation flow diagram of the optimization method for network interruption of virtual machine hot migration according to an embodiment of the present invention. Figure 4 As shown, the method includes:

[0086] Step S201: The target host receives the migration instruction information sent by the source host, and configures the relevant information of the virtual machine to be migrated based on the migration instruction information; the relevant information includes at least virtual bridge information and virtual network card information.

[0087] In this embodiment, the target host is a physical machine, also called a physical server, a host machine, a target node, a target computing node, etc.

[0088] Configuring the relevant information of the virtual machine to be migrated based on the migration instruction information can be to obtain the network information of the virtual machine to be migrated based on the migration instruction information, and to call the virtual machine driver to be migrated (libvirt driver) through a remote procedure call based on the network information, thereby configuring the relevant information of the virtual machine to be migrated. The libvirt driver can provide a convenient way to manage a collection of virtual machines and other virtualization function software, such as storage and network interface management. These software include an API library, a daemon process and a command line utility (virsh). The primary goal of libvirt is to be able to manage multiple different virtualization vendors / virtual machine hypervisors in a single way. For example, the command "virsh list etc. can be used for any list of supported existing virtual machine hypervisors, such as KVM, Xen, VMwareESX, etc.

[0089] The virtual bridge information can be understood as virtual path information between a physical machine and a virtual machine, which can establish a virtual path between the physical machine and the virtual machine; the virtual network card information is also called virtual network adapter information, which can connect the virtual machine to the physical machine through the virtual path.

[0090] Step S202: Sending indication information to the network control device; the indication information represents that the target host has completed configuration of the relevant information of the virtual machine to be migrated.

[0091] In this embodiment, after the target host completes the configuration of the relevant information of the virtual machine to be migrated, an indication message is sent to the network control device to inform the network control device that the target host has completed the configuration of the relevant information of the virtual machine to be migrated. The relevant information may include virtual bridge information and virtual network card information. The target host has completed the configuration of the relevant information of the virtual machine to be migrated, which can be understood as establishing a virtual path according to the virtual bridge information, and the virtual path can be opened according to the virtual network card information.

[0092] Step S203: receiving the data of the virtual machine to be migrated sent by the source host.

[0093] In this embodiment, the target host receives the data of the virtual machine to be migrated sent by the source host; the data may be memory data of the virtual machine to be migrated.

[0094] In an optional embodiment of the present invention, the method further includes:

[0095] After the data of the virtual machine to be migrated is received, the second port configuration information is sent to the network control device; the second port configuration information is used to instruct the network control device to control and update the information of the first connection port corresponding to the target host in the switch; the switch is connected to the source host and the target host through different connection ports respectively.

[0096] In this embodiment, the steps in the method belong to the post-migration stage. After the data of the virtual machine to be migrated is received, the target host sends second port configuration information to the network control device; wherein, the second port configuration information can be port information for updating the target host, and the port information can be information for binding the virtual machine port on the target host to the target host.

[0097] The present invention provides a method for optimizing network interruption during hot migration of virtual machines, wherein migration instruction information sent by a source host is received by a target host, and relevant information of the virtual machine to be migrated is configured based on the migration instruction information; the relevant information includes at least virtual bridge information and virtual network card information; indication information is sent to a network control device; the indication information indicates that the target host has completed configuration of relevant information of the virtual machine to be migrated; data of the virtual machine to be migrated sent by the source host is received; this process greatly reduces the network interruption time during the hot migration of the virtual machine to be migrated, and ensures the continuity of business during the hot migration process.

[0098] The embodiment of the present invention also provides a method for optimizing network interruption of virtual machine hot migration. Figure 5 FIG. 1 is another implementation flow diagram of the optimization method for network interruption of virtual machine hot migration according to an embodiment of the present invention. Figure 5 As shown, the method includes:

[0099] Step S301: a network control device receives indication information sent by a target host, wherein the indication information indicates that the target host has completed configuration of relevant information of a virtual machine to be migrated.

[0100] In this embodiment, the network control device can be any network management tool and is not limited here. As an example, the network control device can be a controller integrated into the network component of the cloud computing management platform (Openstack) in a plug-in manner. The controller can be an SDN controller, and the network component can be Neutron, the core component of Openstack.

[0101] Step S302: if it is determined based on the indication information that the relevant information of the virtual machine to be migrated is correctly configured, generate first confirmation information and send the first confirmation information to the source host; the first confirmation information is used to indicate that the relevant information of the virtual machine to be migrated is correctly configured.

[0102] In this embodiment, the network control device may determine whether the relevant information of the virtual machine to be migrated is configured correctly according to the indication information, and generate first confirmation information if the indication information determines that the relevant information of the virtual machine to be migrated is configured correctly.

[0103] In this embodiment, by determining that the relevant information of the virtual machine to be migrated is correctly configured based on the indication information, the first confirmation information is generated. This step adds a confirmation feedback mechanism for the target host of the virtual machine network configuration of the virtual machine to be migrated. In the migration preparation stage, the target host correctly configures the virtual machine network card and bridge based on the virtual bridge information and the virtual network card information. After the virtual network channel between the virtual machine network card and the physical switch port is prepared, the source host is informed through the network control device to continue the subsequent hot migration process. This mechanism is a synchronization mechanism, which can ensure that the subsequent hot migration operation will be performed only after the virtual network of the target host virtual machine is prepared, so as to avoid the problem of network interruption of the virtual machine hot migration caused by the incorrect configuration of the virtual network.

[0104] Step S303: receiving parameter information of the target host sent by the source host; the parameter information includes an identifier of the target host.

[0105] In this embodiment, the network control device receives the parameter information of the target host sent by the source host; the parameter information includes the identifier of the target host; wherein the identifier may include the host name of the target host.

[0106] Step S304: Based on the identifier of the target host, the switch is controlled to configure a first connection port corresponding to the target host, second confirmation information is generated based on the configuration result, and the second confirmation information is sent to the source host; the switch is connected to the source host and the target host through different connection ports respectively; the second confirmation information is used to indicate that the first connection port is in an open state.

[0107] It should be noted that the switch is connected to the source host and the target host through different connection ports respectively, which can be understood as the switch is connected to the source host through the first port, and the switch is connected to the target host through the second port; wherein the first port and the second port can both be understood as sub-ports on the switch.

[0108] Based on the identification of the target host, the switch is controlled to configure a first connection port corresponding to the target host, wherein the first connection port is a port on the switch corresponding to the target host, which can also be understood as a network sub-interface corresponding to the switch connected to the target host, or a network sub-interface corresponding to the switch connected to the host machine.

[0109] A second confirmation message is generated based on the configuration result, and the second confirmation message is used to indicate that the first connection port is in an open state. It can be understood that after the network control device controls the switch configuration based on the identifier of the target host and the first connection port corresponding to the target host is configured, the switch sends the configuration through the first connection port to open the virtual machine network traffic, that is, sends the network policy through the first connection port.

[0110] In an optional embodiment of the present invention, the method further includes:

[0111] receiving first port configuration information sent by the source host, and instructing the switch to delete information of a second connection port corresponding to the source host based on the first port configuration information;

[0112] The second port configuration information sent by the target host is received, and based on the second port configuration information, the switch is instructed to update the information of the first connection port corresponding to the target host.

[0113] In this embodiment, the steps in the method belong to the post-migration stage, the network control device receives the first port configuration information sent by the source host, and instructs the switch to delete the information of the second connection port corresponding to the source host based on the first port configuration information; wherein the second connection port is the port corresponding to the source host on the switch, and can also be understood as the network sub-interface corresponding to the switch connected to the source host. The network control device controls the deletion of the information of the second connection port corresponding to the source host in the switch, which can be the network control device controls the deletion of the network sub-interface corresponding to the source host in the switch.

[0114] The network control device receives the second port configuration information sent by the target host, and instructs the switch to update the information of the first connection port corresponding to the target host based on the second port configuration information; wherein the second port configuration information may be port information for updating the target host, and the port information may be information for binding a virtual machine port on the target host to the target host. Instructing the switch to update the information of the first connection port corresponding to the target host based on the second port configuration information may be instructing the switch to bind a virtual machine port on the target host to the target host according to the second port configuration information to update the information of the first connection port corresponding to the target host.

[0115] The present invention provides an optimization method for network interruption of virtual machine hot migration, wherein, an indication message sent by a target host is received through a network control device, the indication message indicating that the target host has configured relevant information of the virtual machine to be migrated; when it is determined based on the indication message that the relevant information of the virtual machine to be migrated is correctly configured, a first confirmation message is generated, and the first confirmation message is sent to the source host; the first confirmation message is used to indicate that the relevant information of the virtual machine to be migrated is correctly configured; parameter information of the target host sent by the source host is received; the parameter information includes an identifier of the target host; based on the identifier of the target host, a switch is controlled to configure a first connection port corresponding to the target host, a second confirmation message is generated based on the configuration result, and the second confirmation message is sent to the source host; the switch is connected to the source host and the target host through different connection ports respectively; the second confirmation message is used to indicate that the first connection port is in an open state; this process greatly reduces the network interruption time during the hot migration of the virtual machine to be migrated, and ensures the continuity of business during the hot migration.

[0116] In order to better understand the present invention, an embodiment of the present invention provides a complete interactive process of a method for optimizing network interruption during hot migration of a virtual machine; Figure 6 The interactive flow diagram of an optimization method for virtual machine hot migration network interruption is shown in FIG. Figure 6 As shown, the process includes:

[0117] Step S401: The source host sends migration instruction information to the target host.

[0118] Step S402: The target host receives the migration instruction information sent by the source host, and configures relevant information of the virtual machine to be migrated based on the migration instruction information; the relevant information includes at least virtual bridge information and virtual network card information.

[0119] Step S403: the target host sends indication information to the network control device; the indication information indicates that the target host has completed configuration of the relevant information of the virtual machine to be migrated.

[0120] Step S404: the network control device receives the instruction information sent by the target host.

[0121] Step S405: When the network control device determines that the relevant information of the virtual machine to be migrated is correctly configured based on the indication information, it generates first confirmation information and sends the first confirmation information to the source host; the first confirmation information is used to indicate that the relevant information of the virtual machine to be migrated is correctly configured.

[0122] Step S406: The source host receives first confirmation information sent by the network control device indicating that the configuration of the relevant information of the virtual machine to be migrated is correct, and sends parameter information of the target host to the network control device based on the first confirmation information.

[0123] Step S407: the network control device receives the parameter information of the target host sent by the source host; the parameter information includes the identifier of the target host.

[0124] Step S408: the network control device controls the switch to configure a first connection port corresponding to the target host based on the identifier of the target host, generates second confirmation information based on the configuration result, and sends the second confirmation information to the source host.

[0125] Step S409: the source host receives second confirmation information sent by the network control device, where the second confirmation information is used to indicate that the first connection port is in an open state.

[0126] Step S410: The source host migrates the data of the virtual machine to be migrated to the target host based on the first connection port in an open state.

[0127] Step S411: The target host receives the data of the virtual machine to be migrated sent by the source host.

[0128] In this embodiment, steps S401-S411 show the entire process of interaction among the source host, the target host and the network control device. The specific content description of the interaction process among the three can be found in the descriptions of steps S101-S104, steps S201-S203, and steps S301-S304, respectively, and will not be repeated here.

[0129] In order to better understand the present invention, an embodiment of the present invention provides an application scenario. Figure 7 A schematic diagram of an application scenario of a virtual machine hot migration network interruption optimization method, such as Figure 7 As shown, the source host is taken as the source computing node, the target host is taken as the destination computing node, the network control device is taken as the network component, and the virtual machine to be migrated needs to be migrated from the source computing node to the destination computing node. In this application scenario, the specific steps of the optimization method for realizing the network interruption of virtual machine hot migration are as follows:

[0130] Step 1: The source computing node obtains the volume information of the virtual machine to be migrated based on the migration request information, and sends the migration instruction information to the destination computing node through RPC call.

[0131] It should be noted that the user can trigger a virtual machine migration request message, the source computing node can receive the virtual machine migration request message triggered by the user, obtain the volume information of the virtual machine to be migrated based on the migration request message, and send the migration instruction information to the destination computing node through an RPC call to inform the destination computing node to prepare the relevant information of the virtual machine to be migrated.

[0132] Step 2: The destination computing node receives the migration instruction information, obtains the network information of the virtual machine to be migrated based on the migration instruction information, calls the virtual machine monitoring program based on the network information, creates the virtual machine resources to be migrated, and sends indication information to the network component after the virtual machine resources to be migrated are completed.

[0133] It should be noted that the network information of the virtual machine to be migrated can be the volume information of the virtual machine to be migrated. After the virtual network card of the virtual machine to be migrated is established according to the volume information of the virtual machine to be migrated and the network card of the virtual machine to be migrated is added to the virtual bridge, the destination computing node sends an indication message to the network component.

[0134] Step 3: The network component receives the indication information, determines based on the indication information that the configuration of the relevant information of the virtual machine to be migrated is correct, generates first confirmation information, and sends the first confirmation information to the source computing node;

[0135] It should be noted that this step is a network configuration confirmation mechanism for the destination node virtual machine, which is determined to be a synchronization mechanism. It can ensure that the relevant steps of the subsequent hot migration operation will be carried out only after the virtual network of the destination node virtual machine is prepared, so as to avoid the source node server being unable to perceive whether the relevant information configuration steps of the virtual machine to be migrated at the destination node are completed correctly, and the virtual machine hot migration network interruption problem caused by the virtual network of the virtual machine to be migrated is not correctly configured.

[0136] When it is determined based on the indication information that the relevant information of the virtual machine to be migrated is configured correctly, the first confirmation information can be generated when the virtual machine network card and the bridge are correctly configured at the destination computing node. The first confirmation information can be information that the virtual path of the virtual machine network card of the destination node is successfully prepared.

[0137] Step 4: The source computing node receives the first confirmation information; and sends the parameter information of the destination node to the network component based on the first confirmation information.

[0138] It should be noted that the parameter information of the destination node may include the host name of the destination node.

[0139] Step 5: The network component receives parameter information; based on the parameter information, the switch is controlled to configure the first connection port corresponding to the target host, a second confirmation information is generated based on the configuration result, and the second confirmation information is sent to the source host.

[0140] In actual applications, the management and configuration virtual machine (nova-compute) service on the source computing node sends a protocol (http) request to the open source cloud computing management platform component (OpenStack Neutron) service to update the virtual machine port (Port) field. The updated field parameter content can be "the host name of the destination computing node for migration". The purpose of this step is to inform the SDN controller in the network component in advance that the virtual machine to be migrated is hot migrated to the destination host, so that the SDN controller in the network component can issue and pass the network configuration in advance on the upstream switch side of the destination node.

[0141] Step 6: The source computing node receives second confirmation information; based on the second confirmation information, it is used to indicate that the first connection port is in an open state; based on the first connection port being in an open state, the data of the virtual machine to be migrated is migrated to the destination computing node.

[0142] In this embodiment, migrating the data of the virtual machine to be migrated to the destination computing node based on the first connection port in the open state can be understood as a migration phase, in which the data of the virtual machine to be migrated in the source computing node is copied to the destination computing node, and the data may be memory data. This process can be performed by calling libvirt driver to perform memory copying.

[0143] The present invention provides a method for optimizing network interruption during hot migration of virtual machines, wherein the source host receives first confirmation information sent by a network control device indicating that the configuration of the relevant information of the virtual machine to be migrated is correct, and the source host receives second confirmation information sent by the network control device, the second confirmation information is used to indicate that the first connection port is in an open state, and the source host migrates the data of the virtual machine to be migrated to the target host based on the first connection port in the open state. The technical solution of the present invention greatly reduces the network interruption time during the hot migration of the virtual machine to be migrated, and ensures the continuity of the business during the hot migration process.

[0144] This embodiment provides a device for optimizing network interruption during hot migration of virtual machines. Figure 8 FIG. 1 is a schematic diagram of the composition structure of the device for optimizing network interruption during hot migration of virtual machines according to an embodiment of the present invention. Figure 8 As shown, the apparatus 500 includes: a first sending unit 501, a first receiving unit 502 and a migration unit 503, wherein:

[0145] The first sending unit 501 is used to send migration instruction information to the target host; the migration instruction information is used to instruct the target host to configure relevant information of the virtual machine to be migrated;

[0146] The first receiving unit 502 is used to receive first confirmation information sent by the network control device, indicating that the configuration of the relevant information of the virtual machine to be migrated is correct, and send parameter information of the target host to the network control device based on the first confirmation information; the parameter information includes the identifier of the target host; the identifier of the target host is used by the network control device to control the switch to configure a first connection port corresponding to the target host; the switch is connected to the source host and the target host through different connection ports respectively; and is also used to receive second confirmation information sent by the network control device, and the second confirmation information is used to indicate that the first connection port is in a connected state;

[0147] The migration unit 503 is configured to migrate the data of the virtual machine to be migrated to the target host based on the first connection port in an open state.

[0148] In other embodiments, the device further comprises: a deleting unit,

[0149] The deleting unit is used to delete the relevant information of the virtual machine to be migrated after the data of the virtual machine to be migrated is migrated to the target host;

[0150] The first sending unit 501 is further used to send first port configuration information to the network control device; the first port configuration information is used to instruct the network control device to control deletion of information of the second connection port corresponding to the source host in the switch.

[0151] This embodiment provides a device for optimizing network interruption during hot migration of virtual machines. Fig. 9 FIG. 1 is another structural diagram of the composition of the optimization device for network interruption of virtual machine hot migration according to an embodiment of the present invention, as shown in FIG. Fig. 9 As shown, the device 600 includes: a second receiving unit 601 and a second sending unit 602, wherein:

[0152] The second receiving unit 601 is used to receive the migration instruction information sent by the source host, and configure the relevant information of the virtual machine to be migrated based on the migration instruction information; the relevant information at least includes virtual bridge information and virtual network card information;

[0153] The second sending unit 602 is used to send indication information to the network control device; the indication information represents that the target host has completed the configuration of the relevant information of the virtual machine to be migrated;

[0154] The second receiving unit 601 is further configured to receive the data of the virtual machine to be migrated sent by the source host.

[0155] In other embodiments, the second sending unit 602 is further used to send second port configuration information to the network control device after the data reception of the virtual machine to be migrated is completed; the second port configuration information is used to instruct the network control device to control the update of information of the first connection port corresponding to the target host in the switch; the switch is connected to the source host and the target host through different connection ports respectively.

[0156] This embodiment provides a device for optimizing network interruption during hot migration of virtual machines. Fig.10 FIG. 1 is another structural diagram of the composition of the optimization device for network interruption of virtual machine hot migration according to an embodiment of the present invention, as shown in FIG. Fig.10 As shown, the device 700 includes: a third receiving unit 701 and a third sending unit 702, wherein:

[0157] The third receiving unit 701 is used to receive indication information sent by the target host, where the indication information indicates that the target host has completed configuration of relevant information of the virtual machine to be migrated;

[0158] The third sending unit 702 is used to generate first confirmation information when it is determined that the relevant information of the virtual machine to be migrated is correctly configured based on the indication information received by the third receiving unit, and send the first confirmation information to the source host; the first confirmation information is used to indicate that the relevant information of the virtual machine to be migrated is correctly configured;

[0159] The third receiving unit 701 is further configured to receive parameter information of the target host sent by the source host; the parameter information includes an identifier of the target host;

[0160] The third sending unit 702 is further used to control the switch to configure a first connection port corresponding to the target host based on the identifier of the target host received by the third receiving unit, generate second confirmation information based on the configuration result, and send the second confirmation information to the source host; the switch is connected to the source host and the target host through different connection ports respectively; the second confirmation information is used to indicate that the first connection port is in an open state.

[0161] In other embodiments, the third receiving unit 702 is further used to receive the first port configuration information sent by the source host, and based on the first port configuration information, instruct the switch to delete the information of the second connection port corresponding to the source host; and is further used to receive the second port configuration information sent by the target host, and based on the second port configuration information, instruct the switch to update the information of the first connection port corresponding to the target host.

[0162] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present invention, please refer to the description of the method embodiment of the present invention for understanding.

[0163] It should be noted that, in the embodiment of the present invention, if the above-mentioned optimization method for network interruption of virtual machine hot migration is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical embodiment of the embodiment of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a control server (which can be a personal computer, a server, or a network server, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present invention is not limited to any specific combination of hardware and software.

[0164] Correspondingly, an embodiment of the present invention provides an optimization device for network interruption of hot migration of virtual machines, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, it implements the steps in the optimization method for network interruption of hot migration of virtual machines provided in the above embodiment.

[0165] Correspondingly, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the method for optimizing network interruption of virtual machine hot migration provided in the above embodiment are implemented.

[0166] Correspondingly, an embodiment of the present invention provides a system for network interruption of virtual machine hot migration, the system comprising: a source host, a target host and a network control device, wherein:

[0167] The source host is used to implement the steps of the method for optimizing network interruption of virtual machine hot migration provided in the above embodiment;

[0168] The target host is used to implement the steps of the method for optimizing network interruption of virtual machine hot migration provided in the above embodiment;

[0169] The network control device is used in the steps of the method for optimizing network interruption during hot migration of virtual machines provided in the above embodiment.

[0170] It should be noted that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of the present invention, please refer to the description of the method embodiments of the present invention for understanding.

[0171] It should be noted that Fig.11 FIG. 1 is a schematic diagram of a hardware entity structure of a device for optimizing network interruption during hot migration of a virtual machine according to an embodiment of the present invention. Fig.11 As shown, the hardware entity of the virtual machine hot migration network interruption optimization device 800 includes: a processor 801 and a memory 803 . Optionally, the virtual machine hot migration network interruption optimization device 800 may also include a communication interface 802 .

[0172] It can be understood that the memory 803 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 803 described in the embodiment of the present invention is intended to include but is not limited to these and any other suitable types of memories.

[0173] The method disclosed in the above embodiment of the present invention can be applied to the processor 801, or implemented by the processor 801. The processor 801 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 801 or the instruction in the form of software. The above processor 801 may be a general processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 801 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiment of the present invention. The general processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present invention, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 803. The processor 801 reads the information in the memory 803 and completes the steps of the above method in combination with its hardware.

[0174] In an exemplary embodiment, the device may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.

[0175] In the several embodiments provided by the present invention, it should be understood that the disclosed methods and devices can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another observation, or some features can be ignored or not executed. In addition, the communication connection between the components shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0176] The units described above 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, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of this embodiment.

[0177] A person skilled in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), disks or optical disks, etc. Various media that can store program codes.

[0178] Alternatively, if the above-mentioned integrated unit of the embodiment of the present invention is implemented in the form of a software functional unit and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical embodiment of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0179] The present invention is a method, device, equipment, storage medium and system for optimizing network interruption of hot migration of virtual machines recorded in the example, which only takes the embodiment of the present invention as an example, but is not limited to this. As long as it involves the method, device, equipment, storage medium and system for optimizing network interruption of hot migration of virtual machines, they are within the protection scope of the present invention.

[0180] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present invention. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present invention, the size of the serial number of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention. The serial numbers of the above-mentioned embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments.

[0181] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0182] The methods disclosed in the several method embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new method embodiments.

[0183] The features disclosed in several product embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new product embodiments.

[0184] The features disclosed in several method or device embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0185] The above is only an embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for optimizing network interruption during hot migration of virtual machines, characterized in that: The method comprises: The source host sends migration instruction information to the target host; the migration instruction information is used to instruct the target host to configure relevant information of the virtual machine to be migrated; the relevant information includes at least virtual bridge information and virtual network card information; The source host receives the first confirmation information sent by the network control device indicating that the configuration of the relevant information of the virtual machine to be migrated is correct, and sends the parameter information of the target host to the network control device based on the first confirmation information; the parameter information includes the identifier of the target host; the identifier of the target host is used by the network control device to control the switch to configure the first connection port corresponding to the target host; the switch is connected to the source host and the target host through different connection ports respectively; the switch is a software defined network SDN switch; the network control device is formed by integrating the SDN controller into the Openstack network component Neutron in a plug-in manner; The source host receives second confirmation information sent by the network control device, where the second confirmation information is used to indicate that the first connection port is in an open state; The data of the virtual machine to be migrated is migrated to the target host based on the first connection port in an open state.

2. The method according to claim 1, characterized in that The method further comprises: After the data of the virtual machine to be migrated is migrated to the target host, deleting the relevant information of the virtual machine to be migrated; Sending first port configuration information to the network control device; the first port configuration information is used to instruct the network control device to control deletion of information of the second connection port corresponding to the source host in the switch.

3. A method for optimizing network interruption during hot migration of virtual machines, characterized in that: The method comprises: The target host receives the migration instruction information sent by the source host, and configures the relevant information of the virtual machine to be migrated based on the migration instruction information; the relevant information includes at least virtual bridge information and virtual network card information; The target host sends an indication message to the network control device, so that the network control device determines that the configuration of the relevant information of the virtual machine to be migrated is correct based on the indication message, generates first confirmation information, sends the first confirmation information to the source host, and controls the switch to configure the first connection port corresponding to the target host based on the identifier of the target host, generates second confirmation information based on the configuration result, and sends the second confirmation information to the source host, wherein the second confirmation information is used to indicate that the first connection port is in an open state, so that the source host migrates the data of the virtual machine to be migrated to the target host based on the first connection port in the open state; the indication information indicates that the target host has completed the configuration of the relevant information of the virtual machine to be migrated; the network control device is formed by integrating the SDN controller into the Openstack network component Neutron in a plug-in manner; The target host receives the data of the virtual machine to be migrated sent by the source host.

4. The method according to claim 3, characterized in that The method further comprises: After the data of the virtual machine to be migrated is received, the second port configuration information is sent to the network control device; the second port configuration information is used to instruct the network control device to control and update the information of the first connection port corresponding to the target host in the switch; the switch is connected to the source host and the target host through different connection ports respectively.

5. A method for optimizing network interruption during hot migration of virtual machines, characterized in that: The method comprises: The network control device receives indication information sent by the target host, wherein the indication information indicates that the target host has configured relevant information of the virtual machine to be migrated; the relevant information includes at least virtual bridge information and virtual network card information; the network control device is formed by integrating the SDN controller into the Openstack network component Neutron in a plug-in manner; When the network control device determines that the configuration of the relevant information of the virtual machine to be migrated is correct based on the indication information, the network control device generates first confirmation information and sends the first confirmation information to the source host; the first confirmation information is used to indicate that the configuration of the relevant information of the virtual machine to be migrated is correct; The network control device receives the parameter information of the target host sent by the source host; the parameter information includes the identifier of the target host; The network control device controls the switch to configure a first connection port corresponding to the target host based on the identifier of the target host, generates second confirmation information based on the configuration result, and sends the second confirmation information to the source host; the switch is connected to the source host and the target host through different connection ports respectively; the second confirmation information is used to characterize that the first connection port is in an open state, so that the source host migrates the data of the virtual machine to be migrated to the target host based on the first connection port in the open state; the switch is a software defined network SDN switch.

6. The method according to claim 5, characterized in that The method further comprises: receiving first port configuration information sent by the source host, and instructing the switch to delete information of a second connection port corresponding to the source host based on the first port configuration information; The second port configuration information sent by the target host is received, and based on the second port configuration information, the switch is instructed to update the information of the first connection port corresponding to the target host.

7. An optimization device for virtual machine hot migration network interruption, characterized in that: The device comprises: a first sending unit, a first receiving unit and a migration unit, wherein: The first sending unit is used to send migration instruction information to the target host; the migration instruction information is used to indicate the target host to configure relevant information of the virtual machine to be migrated; the relevant information at least includes virtual bridge information and virtual network card information; The first receiving unit is used to receive first confirmation information sent by a network control device, indicating that the configuration of the relevant information of the virtual machine to be migrated is correct, and send parameter information of the target host to the network control device based on the first confirmation information; the parameter information includes an identifier of the target host; the identifier of the target host is used by the network control device to control the switch to configure a first connection port corresponding to the target host; the switch is connected to the source host and the target host through different connection ports respectively; and is also used to receive second confirmation information sent by the network control device, the second confirmation information is used to indicate that the first connection port is in an open state; the switch is a software defined network SDN switch; the network control device is formed by integrating the SDN controller into the Openstack network component Neutron in a plug-in manner; The migration unit is used to migrate the data of the virtual machine to be migrated to the target host based on the first connection port in an open state.

8. The device according to claim 7, characterized in that The device further comprises: a deleting unit, The deleting unit is used to delete the relevant information of the virtual machine to be migrated after the data of the virtual machine to be migrated is migrated to the target host; The first sending unit is further used to send first port configuration information to the network control device; the first port configuration information is used to instruct the network control device to control deletion of information of the second connection port corresponding to the source host in the switch.

9. An optimization device for virtual machine hot migration network interruption, characterized in that: The device comprises: a second receiving unit and a second sending unit, wherein: The second receiving unit is used to receive the migration instruction information sent by the source host, and configure the relevant information of the virtual machine to be migrated based on the migration instruction information; the relevant information at least includes virtual bridge information and virtual network card information; The second sending unit is used to send indication information to the network control device; the indication information represents that the target host has completed the configuration of the relevant information of the virtual machine to be migrated; the network control device is formed by integrating the SDN controller into the Openstack network component Neutron in a plug-in manner; The second receiving unit is further configured to receive the data of the virtual machine to be migrated sent by the source host.

10. The device according to claim 9, characterized in that The second sending unit is also used to send second port configuration information to the network control device after the data of the virtual machine to be migrated is received; the second port configuration information is used to instruct the network control device to control and update the information of the first connection port corresponding to the target host in the switch; the switch is connected to the source host and the target host through different connection ports respectively.

11. An optimization device for virtual machine hot migration network interruption, characterized in that: The device comprises: a third receiving unit and a third sending unit, wherein: The third receiving unit is used to receive the indication information sent by the target host, wherein the indication information indicates that the target host has configured the relevant information of the virtual machine to be migrated; the relevant information includes at least virtual bridge information and virtual network card information; the network control device is formed by integrating the SDN controller into the Openstack network component Neutron in a plug-in manner; The third sending unit is used to generate first confirmation information when it is determined based on the indication information received by the third receiving unit that the relevant information of the virtual machine to be migrated is correctly configured, and send the first confirmation information to the source host; the first confirmation information is used to indicate that the relevant information of the virtual machine to be migrated is correctly configured; The third receiving unit is further configured to receive parameter information of the target host sent by the source host; the parameter information includes an identifier of the target host; The third sending unit is further used to control the switch to configure a first connection port corresponding to the target host based on the identifier of the target host received by the third receiving unit, generate second confirmation information based on the configuration result, and send the second confirmation information to the source host; the switch is connected to the source host and the target host through different connection ports respectively; the second confirmation information is used to indicate that the first connection port is in an open state; the switch is a software defined network SDN switch.

12. The device according to claim 11, characterized in that The third receiving unit is further used to receive the first port configuration information sent by the source host, and based on the first port configuration information, instruct the switch to delete the information of the second connection port corresponding to the source host; and is also used to receive the second port configuration information sent by the target host, and based on the second port configuration information, instruct the switch to update the information of the first connection port corresponding to the target host.

13. An optimization device for virtual machine hot migration network interruption, comprising a memory and a processor, wherein the memory stores a program that can be run on the processor, characterized in that: When the processor executes the program, the steps in the method of any one of claims 1-2 or 3-4 or 5-6 are implemented.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the method of any one of claims 1-2 or 3-4 or 5-6 are implemented.

15. A system for network interruption of virtual machine hot migration, characterized in that: The system includes: a source host, a target host and a network control device, wherein: The source host is used to implement the steps in the method according to any one of claims 1-2; The target host is used to implement the steps in the method according to any one of claims 3-4; The network control device is used to implement the steps in the method described in any one of claims 5-6.