Virtual machine migration processing and strategy generation method, device, equipment and storage medium
By determining the virtual machine migration strategy in the cloud platform, using the idle resources and occupied resources of each physical host, the problem of being unable to create a virtual machine is solved, and efficient resource utilization and cost reduction are achieved.
Patent Information
- Application Number
- CN201910663286.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-22
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2039-07-22
AI Technical Summary
In the cloud platform, when the idle resources on each physical host are not sufficient to meet the resource requirements of virtualized network function (VNF) virtual machines separately, but the sum of the total idle resources is sufficient, the virtual machine cannot be successfully created, resulting in high costs and low resource utilization.
By obtaining the resource information occupied by the current virtual resource layer on each physical host and its corresponding service information, and combining the resource requirements of VNF and the idle resource information of each physical host, the virtual machine migration strategy is determined. This strategy includes the target migration out physical host, the target virtual machine to be migrated out and the target physical host to be migrated into, so that the sum of the idle resources on the target migration out physical host and the virtual machine resources to be migrated out meets the resource requirements of VNF.
It realizes that without adding physical hosts, it meets the VNF virtual machine resource requirements, improves resource utilization and reduces costs.
Smart Images

Figure CN112286622B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and in particular to a virtual machine migration processing and strategy generation method, device, equipment and storage medium. Background Art
[0002] With the gradual maturity of the European Telecommunications Standards Institute (ETSI) virtualized network function (VNF) protocol specifications and virtualization technology, more and more operators choose to build their own network functions on virtualization platforms. Use industry-standard general-purpose servers, storage and switching equipment to replace proprietary network element equipment of equipment vendors to save costs. Open API interfaces based on cloud computing management platforms (such as open source OpenStack, RedHat, VMware, etc.) to help operators obtain more flexible network orchestration and deployment capabilities. The universality of hardware resources and open platform interfaces make the opening and maintenance of services more flexible, and derive scenarios such as automated opening and deployment of services, flexible scaling, and self-healing in abnormal situations. Among them, the hot migration action and protocol specifications put forward higher requirements for the management system. Different from the way cold migration affects the service, hot migration requires that the service be lossless during the virtual machine migration process.
[0003] Of course, even a cloud computing management platform based on general-purpose hardware is bound to be more or less subject to some hardware constraints, such as the resource capabilities of the server itself. When we use an open API to schedule resources and create a virtual machine, the resources required by the virtual machine, such as the central processing unit (CPU) and memory, must actually fall on a physical host. When there are sufficient idle resources on the physical host to meet the resource requirements of the virtual machine, the virtual machine can be created normally, otherwise the virtual machine will not be created. In actual operation or operation, this situation often occurs: the combined resources of all physical hosts in the environment are sufficient, but no physical host has enough idle resources. For example, see Figure 1 In the scenario shown, it is assumed that a virtual machine with 8GB of memory needs to be created. There are four physical hosts on the cloud platform, and all of them have only 7GB of remaining memory. The total idle resources are 28GB. The platform has sufficient idle resources, but the virtual machine cannot be successfully created on any of the physical hosts. If the virtual machine is to be created, it can only be achieved by adding physical hosts, resulting in high costs and low resource utilization. Summary of the invention
[0004] The embodiments of the present invention provide a virtual machine migration processing and policy generation method, device, equipment and storage medium to solve the problem in the related art that when the idle resources on each physical host currently do not meet the resource requirements of the VNF, but the sum of the idle resources on each physical host meets the resource requirements of the VNF, the virtual machine cannot be created, resulting in high cost and low resource utilization.
[0005] In order to solve the above technical problems, an embodiment of the present invention provides a method for generating a virtual machine migration strategy, comprising:
[0006] When the idle resources on each physical host in the system do not meet the resource requirements of the virtualized network function VNF, and the sum of the idle resources on each physical host meets the resource requirements of the VNF, obtain the resource information occupied by the current virtual resource layer on each physical host, and obtain the service information corresponding to the resource information;
[0007] In combination with the resource requirements of the VNF, the idle resource information on each physical host, the occupied resource information on each physical host and the business information corresponding to the resource information, a virtual machine migration strategy is determined. The virtual machine migration strategy includes a target migration-out physical host, a target virtual machine to be migrated out on the target migration-out physical host, and a target migration-in physical host to which the target virtual machine is to be migrated. The sum of the idle resources on the target migration-out physical host and the resources occupied by the target virtual machine to be migrated meets the resource requirements of the VNF.
[0008] To solve the above technical problems, an embodiment of the present invention further provides a virtual machine migration processing method, including:
[0009] receiving a request including resource requirements of a virtualized network function VNF;
[0010] When the idle resources on each physical host currently in the system do not meet the resource requirements of the virtualized network function VNF, and the sum of the idle resources on each physical host meets the resource requirements of the VNF, a virtual machine migration strategy is generated by the virtual machine migration strategy generation method as described above;
[0011] Generate a request response message including the virtual machine migration policy and send it to the requesting party that sends the request;
[0012] When a virtual machine migration instruction is received, the virtual machine migration is performed according to the virtual machine migration policy indicated by the virtual machine migration instruction.
[0013] In order to solve the above technical problems, an embodiment of the present invention further provides a virtual machine migration strategy generating device, comprising:
[0014] An information acquisition module is used to obtain resource information occupied by the current virtual resource layer on each physical host in the system, and obtain service information corresponding to the resource information, when the idle resources on each physical host currently in the system do not meet the resource requirements of the virtualized network function VNF, and the sum of the idle resources on each physical host meets the resource requirements of the VNF;
[0015] A policy generation module is used to determine a virtual machine migration strategy based on the resource requirements of the VNF, the idle resource information on each physical host, the occupied resource information on each physical host, and the business information corresponding to the resource information. The virtual machine migration strategy includes a target migration-out physical host, a target virtual machine to be migrated out on the target migration-out physical host, and a target migration-in physical host to which the target virtual machine is to be migrated, and the sum of the idle resources on the target migration-out physical host and the resources occupied by the target virtual machine to be migrated meets the resource requirements of the VNF.
[0016] To solve the above technical problems, an embodiment of the present invention further provides a virtual machine migration processing device, comprising the virtual machine migration strategy generating device as described above, and also comprising a request processing module and an execution module;
[0017] The request processing module is used to receive a request containing resource requirements of a virtualized network function VNF, and generate a request response message according to the virtual machine migration policy generated by the virtual machine migration policy generating device and send it to the requesting party that sent the request;
[0018] The virtual machine migration strategy generating device is used to generate a virtual machine migration strategy and send it to the request processing module when the idle resources on each physical host currently in the system do not meet the resource requirements of the virtualized network function VNF, and the sum of the idle resources on each physical host meets the resource requirements of the VNF;
[0019] The execution module is used to perform virtual machine migration according to the virtual machine migration strategy indicated by the virtual machine migration instruction when receiving the virtual machine migration instruction.
[0020] To solve the above technical problems, an embodiment of the present invention further provides a communication device, including a processor, a memory and a communication bus;
[0021] The communication bus is used to connect the processor and the memory;
[0022] The processor is used to execute the first computer program stored in the memory to implement the steps of the virtual machine migration strategy generation method as described above;
[0023] Alternatively, the processor is used to execute a second computer program stored in the memory to implement the steps of the virtual machine migration processing method as described above.
[0024] To solve the above technical problem, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a first computer program, and the first computer program can be executed by a processor to implement the steps of the virtual machine migration strategy generation method as described above;
[0025] Alternatively, the computer-readable storage medium stores a second computer program, and the second computer program can be executed by a processor to implement the steps of the virtual machine migration processing method as described above.
[0026] Beneficial Effects
[0027] According to the virtual machine migration processing and policy generation method, device, equipment and storage medium provided by the embodiments of the present invention, when the idle resources on each physical host in the system currently do not meet the resource requirements of the virtualized network function VNF, and the sum of the idle resources on each physical host meets the resource requirements of the VNF, a virtual machine migration strategy is determined based on the resource information occupied by the current virtual resource layer on each physical host and the business information corresponding to the resource information. In the determined virtual machine migration strategy, the sum of the idle resources on the target migrated physical host and the resources occupied by the target virtual machine to be migrated meets the resource requirements of the VNF; when necessary, the virtual machine can be migrated according to the virtual machine migration strategy so that the idle resources on the target migrated physical host after the migration meet the resource requirements of the VNF (for example, the resource requirements established by the virtual machine); without the need to meet the resource requirements of the VNF by adding physical hosts; it can be seen that the embodiments of the present invention can reasonably integrate the resources on each physical host through the reasonable migration of the above-mentioned virtual machines, thereby improving resource utilization and reducing costs.
[0028] Optionally, the embodiment of the present invention can utilize NFVO to perform virtual machine hot migration, migrate some virtual machines in a lossless manner, release the resources of the physical host node corresponding to the virtual machine, and make the idle resources on the physical host meet the requirements of the resources to be deployed; and optionally, the process can also support automatic integration into the life cycle management process to complete all actions. This can improve resource utilization on the one hand, and increase the success rate of resource operations in life cycle operations on the other hand.
[0029] Other features and corresponding beneficial effects of the present invention are described in the latter part of the specification, and it should be understood that at least part of the beneficial effects become obvious from the description in the specification of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 This is a schematic diagram of resource usage of four physical hosts on a cloud platform;
[0031] Figure 2This is a flow chart of a method for generating a virtual machine migration strategy according to a first embodiment of the present invention;
[0032] Figure 3 This is a schematic diagram of a process for obtaining part of the business information in the first embodiment of the present invention;
[0033] Figure 4 A schematic diagram of a process for determining a virtual machine migration strategy according to the first embodiment of the present invention;
[0034] Figure 5 A schematic diagram of a flow chart of a virtual machine migration processing method according to a first embodiment of the present invention;
[0035] Figure 6 This is a schematic diagram of the structure of a virtual machine migration strategy generating device according to Embodiment 2 of the present invention;
[0036] Figure 7 This is a schematic diagram of the structure of a virtual machine migration strategy generating device according to Embodiment 2 of the present invention;
[0037] Figure 8 This is a flow chart of a sandbox test application scenario according to the second embodiment of the present invention;
[0038] Fig. 9 This is a flow chart of a VNF instantiation application scenario of the second embodiment of the present invention;
[0039] Fig.10 This is a flow chart of a VNF automatic elastic application scenario according to the second embodiment of the present invention;
[0040] Fig.11 This is a schematic diagram of the structure of a communication device according to Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the following is a further detailed description of the embodiments of the present invention through specific implementation methods combined with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0042] Embodiment 1:
[0043] The virtual machine migration processing and policy generation method provided in this embodiment can determine the virtual machine migration strategy according to the resource information occupied by the current virtual resource layer on each physical host and the business information corresponding to the resource information when the idle resources on each physical host currently in the system do not meet the resource demand of the virtualized network function VNF, and the sum of the idle resources on each physical host meets the resource demand of the VNF. This can reasonably migrate the virtual machines on the physical hosts to reasonably integrate the resources on each physical host to meet the resource demand of the VNF, thereby improving resource utilization and reducing costs.
[0044] For ease of understanding, this embodiment is described below with reference to a method for generating a virtual machine migration strategy as an example. Figure 2 As shown, including:
[0045] S201: When the idle resources on each physical host in the system do not meet the resource requirements of the virtualized network function VNF, and the sum of the idle resources on each physical host meets the resource requirements of the VNF, obtain the resource information occupied by the current virtual resource layer on each physical host, and obtain the business information corresponding to the resource information.
[0046] The resource requirements of the VNF in this embodiment may be the resource requirements of the VNF in various scenarios, for example, including but not limited to at least one of a sandbox testing scenario, a VNF instantiation deployment scenario, and a VNF elastic scaling operation scenario.
[0047] In some application scenarios of this embodiment, the idle resources on the physical host refer to resources currently occupied on the physical host and other resources other than the pre-allocated resources.
[0048] In some application scenarios of this embodiment, obtaining the resource information occupied by the current virtual resource layer on each physical host may include but is not limited to: obtaining the resource information occupied by each physical host from the virtual infrastructure management VIM layer, wherein the obtained resource information includes but is not limited to: the virtual machines deployed on each physical host, the resource information occupied by each virtual machine, such as the number of cores, CPU resources, memory resources, disk resources, etc. Optionally, in some application scenarios, the resource information obtained according to demand may also include but is not limited to at least one of the mutual exclusion relationship between each virtual machine and the affinity relationship between each virtual machine. For example, in one example, information can be sent to VIM (Virtual Infrastructure Manager) through NFVO (Network Functions Virtualization Orchestrator) to obtain the resource information occupied by the current virtual resource layer on each physical host.
[0049] In some application scenarios of this embodiment, obtaining the service information corresponding to the resource information includes but is not limited to: obtaining a list of virtual machines that support hot migration from within the VNF. Optionally, in some application scenarios, the service information obtained according to demand may also include but is not limited to at least one of VNF priority, the correspondence between the virtual machine and the VNF, and virtual machine importance identification information. For example, in one example, the VNF priority and the correspondence between the virtual machine and the VNF can be directly obtained from the NFVO; through the message flow, the following information is obtained from within the VNF, including but not limited to virtual machine importance identification information, a list of virtual machines that support hot migration obtained from within the VNF, etc. For an example of the acquisition process, please refer to Figure 3 As shown, including:
[0050] S301: A request for querying VNF service resource information may be sent to a VNFM (Virtualized Network Function Manager) through NFVO.
[0051] S302: The VNFM sends a request to the VNF for obtaining service resource information.
[0052] S303: After the VNF obtains the service resource information, it returns to the VNFM;
[0053] S304: After receiving the service resource information returned by the VNF, the VNFM sorts out the service resource data and returns the information to the NFVO, specifically to the corresponding module in the NFVO that generates the virtual machine migration strategy.
[0054] S202: Determine a virtual machine migration strategy based on the resource requirements of the VNF, the idle resource information on each physical host, the occupied resource information on each physical host, and the business information corresponding to the resource information.
[0055] In this embodiment, the determined virtual machine migration strategy includes the target migration-out physical host (which may be one or more), the target virtual machine to be migrated on the target migration-out physical host (which may be one or more), and the target migration-in physical host to which the target virtual machine is to be migrated (which may be one or more), and the sum of the idle resources on the target migration-out physical host and the resources occupied by the target virtual machine to be migrated meets the resource requirements of the VNF.
[0056] Optionally, in this embodiment, in order to improve the service experience satisfaction, the virtual machine migration in this embodiment can adopt virtual machine hot migration to achieve service lossless during virtual machine migration. For example, in one example, the virtual machine migration strategy is determined by combining the resource requirements of VNF, the idle resource information on each physical host, the occupied resource information on each physical host, and the service information corresponding to the resource information. Figure 4 As shown, including:
[0057] S401: Determine each virtual machine supporting hot migration on each physical host according to the list of virtual machines supporting hot migration in the VNF.
[0058] S402: From the virtual machines that support hot migration obtained in S401, remove the virtual machines for which the sum of the resources occupied by the virtual machine itself and the idle resources on the physical host where the virtual machine is located does not meet the resource demand of the VNF.
[0059] S403: Select at least one virtual machine from the remaining virtual machines obtained in S402 as the target virtual machine to be migrated out, the physical host where the target virtual machine is currently located is the target migration-out physical host, and select a physical host whose idle resources meet the resource requirements of the target virtual machine to be migrated out from the physical hosts as the target migration-in physical host.
[0060] In an example of this embodiment, the method of selecting at least one virtual machine from the remaining virtual machines as the target virtual machine to be migrated out may be any one of the following methods, but is not limited to:
[0061] Minimum migration number principle: At this time, selecting at least one virtual machine from the remaining virtual machines as the target virtual machine to be migrated includes: selecting at least one virtual machine from the remaining virtual machines as the target virtual machine to be migrated according to the minimum migration number principle;
[0062] Minimum impact on VNF principle: At this time, the service information obtained previously also includes the correspondence between the virtual machine and the VNF; at this time, at least one virtual machine is selected from the remaining virtual machines as the target virtual machine to be migrated, including:
[0063] According to the correspondence between virtual machines and VNFs, at least one virtual machine is selected from the remaining virtual machines as the target virtual machine to be migrated, based on the principle of minimizing the number of VNFs involved in the migration.
[0064] Principle of irrelevance of business impact: At this time, the business information obtained previously may also include at least one of the VNF priority and the virtual machine importance identification information of each virtual machine; at this time, selecting at least one virtual machine from the remaining virtual machines as the target virtual machine to be migrated may include:
[0065] According to at least one of the VNF priority and the virtual machine importance identification information of each virtual machine, at least one virtual machine with the lowest virtual machine importance is selected from the remaining virtual machines as the target virtual machine to be migrated.
[0066] Optionally, in order to improve the accuracy and effect of virtual machine migration and avoid the situation where virtual machines with mutually exclusive relationships are deployed on one physical host after migration, in some application scenarios of this embodiment, the resource information obtained from the VIM also includes the mutually exclusive relationship between the virtual machines; in this application scenario, before selecting at least one from the remaining virtual machines as the target virtual machine to be migrated out in S403, the following may also be included:
[0067] According to the mutually exclusive relationship between the obtained virtual machines, the virtual machines with mutually exclusive relationship are removed from the remaining virtual machines; thereby avoiding the situation where the virtual machines with mutually exclusive relationship are deployed on one physical host after migration, and improving the accuracy of virtual machine migration control.
[0068] Optionally, in order to improve the accuracy and effect of virtual machine migration and avoid the situation where virtual machines with affinity are deployed on different physical hosts after migration, in some application scenarios of this embodiment, the resource information obtained from the VIM also includes the affinity relationship between the virtual machines; in this application scenario, in the above S403, selecting at least one virtual machine from the remaining virtual machines as the target virtual machine to be migrated includes:
[0069] When a virtual machine is selected from the remaining virtual machines as the target virtual machine to be migrated, if it is determined that the selected virtual machine has an affinity virtual machine based on the affinity between the virtual machines, the virtual machine with the affinity will also be used as the target virtual machine to be migrated, and the virtual machines with affinity will be migrated to the same physical host when they are migrated; this ensures that after migration, the virtual machines with affinity will remain on the same physical host.
[0070] This embodiment also provides a virtual machine migration processing method, see Figure 5 As shown, including:
[0071] S501: Receive a request including resource requirements of a virtualized network function VNF.
[0072] In this step, the NFVO may receive a request including resource requirements of the virtualized network function VNF; it should be understood that the request in this embodiment may include but is not limited to at least one of the following requests:
[0073] Sandbox test request including resource requirements of the VNF;
[0074] An authorization request containing the resource requirements for VNF instantiation deployment;
[0075] Contains the authorization request for the deployment resource requirements of the VNF elastic scaling operation.
[0076] S502: When the idle resources on each physical host currently in the system do not meet the resource requirements of the virtualized network function VNF, and the sum of the idle resources on each physical host meets the resource requirements of the VNF, a virtual machine migration policy is generated using the virtual machine migration policy generation method as described above.
[0077] S503: Generate a request response message including a virtual machine migration policy and send it to the requesting party that sent the request.
[0078] S504: When a virtual machine migration instruction is received, the virtual machine migration is performed according to the virtual machine migration policy indicated by the virtual machine migration instruction.
[0079] The virtual machine migration processing and strategy generation method provided in this embodiment can obtain resource information of the virtual resource layer from the VIM layer on the one hand, and obtain service information corresponding to the resources from within NFVO and through message interaction between NFVO and VNFM, VNFM and VNF on the other hand, and provide the best resource migration deployment plan by virtual resource statistics and service analysis combined with corresponding strategies; and optionally, the virtual machine hot migration action can be performed through NFVO to migrate some virtual machines in a lossless way, release the resources of the physical host node corresponding to the virtual machine, so that the idle resources on the physical host can meet the requirements of the resources to be deployed; and optionally, the process can also support automatic integration into the life cycle management process to complete all actions. In this way, on the one hand, the utilization rate of resources is improved, and on the other hand, the success rate of resource operations in life cycle operations can be increased.
[0080] Embodiment 2:
[0081] This embodiment provides a virtual machine migration strategy generation device, which can be set in various communication devices or systems for generating virtual machine migration strategies, for example, it can be set in NFVO, see Figure 6 As shown, the virtual machine migration strategy generating device includes:
[0082] The information acquisition module 601 is used to obtain the resource information occupied by the current virtual resource layer on each physical host and obtain the business information corresponding to the resource information when the idle resources on each physical host currently in the system do not meet the resource requirements of the virtualized network function VNF, and the sum of the idle resources on each physical host meets the resource requirements of the VNF; the information acquisition method and the specific content of the acquired information are shown in the above embodiment and will not be repeated here.
[0083] The policy generation module 602 is used to determine the virtual machine migration strategy in combination with the resource requirements of the VNF, the idle resource information on each physical host, the occupied resource information on each physical host, and the business information corresponding to the resource information. The virtual machine migration strategy includes the target migration-out physical host, the target virtual machine to be migrated out on the target migration-out physical host, and the target migration-in physical host to be migrated in by the target virtual machine, and the idle resources on the target migration-out physical host and the resources occupied by the target virtual machine to be migrated meet the resource requirements of the VNF. The specific generation process of the virtual machine migration strategy is shown in the above embodiment, which will not be repeated here.
[0084] This embodiment also provides a virtual machine migration processing device, which can be set in various communication devices or systems, for example, it can also be set in NFVO, see Figure 7 As shown, the virtual machine migration strategy generating device includes:
[0085] The virtual machine migration strategy generating device 701 also includes a request processing module 702 and an execution module 703;
[0086] The request processing module 702 is used to receive a request containing resource requirements of a virtualized network function VNF, and a virtual machine migration policy generated by a virtual machine migration policy generating device, and generate a request response message to send to the requesting party that sends the request; the request may include but is not limited to at least one of the following requests: a sandbox test request including resource requirements of the VNF, an authorization request including resource requirements for instantiation and deployment of the VNF; an authorization request including resource requirements for elastic scaling operation and deployment of the VNF.
[0087] The virtual machine migration strategy generating device 701 is used to generate a virtual machine migration strategy by the method illustrated in the above embodiment and send it to the request processing module when the idle resources on each physical host currently in the system do not meet the resource requirements of the virtualized network function VNF, and the sum of the idle resources on each physical host meets the resource requirements of the VNF;
[0088] The execution module 703 is used to perform virtual machine migration according to the virtual machine migration policy indicated by the virtual machine migration instruction when receiving the virtual machine migration instruction.
[0089] For ease of understanding, this embodiment is described below with reference to several specific application scenarios as examples.
[0090] Application scenario 1: VNF resource deployment sandbox test process
[0091] See also Figure 8 As shown in the figure, this figure is a schematic diagram of the VNF resource deployment sandbox test process implemented in this embodiment, including the following processing steps:
[0092] S801: Before resource deployment, a sandbox test is triggered from the client to verify whether the resources can meet the deployment requirements.
[0093] S802: After receiving the sandbox test request, NFVO sends a resource query request to VIM, and checks the resource requirements of VNF in combination with the resource information obtained from VIM; if the resources are sufficient and the existing idle resources can meet the requirements of VNF, the authorization result is directly returned. If the total idle resources are sufficient, but the idle resources of a single node (i.e., a single physical host) cannot meet the requirements, go to S803; otherwise, the sandbox test failure is directly returned.
[0094] S803: Send a resource operation plan request to the virtual machine migration strategy generating device.
[0095] S804: After receiving the resource operation plan request, the virtual machine migration strategy generating device starts to obtain resource information and corresponding business information, and generates a virtual machine migration strategy, including:
[0096] Resource layer information: Relevant resource information is obtained from VIM, including but not limited to the following information: free resource information (core number / memory / disk) on each physical host, existing virtual machine information (name / resource, etc.) on each physical host, affinity and mutual exclusion relationship between virtual machines, etc. Application layer information: The virtual machine migration strategy generation device obtains virtual machine and VNF detailed information from NFVO, wherein NFVO can directly obtain information including but not limited to the following: VNF priority, correspondence between virtual machine and VNF, etc. Some information that cannot be directly obtained, such as VNF business resource information, cannot be directly obtained from NFVO. NFVO can query VNF business resource information to VNFM, and VNFM obtains the following information from VNF by obtaining business resource information request, including but not limited to the list of virtual machines that support hot migration in VNF, virtual machine importance identification information, etc. After the collection is completed, the virtual machine migration strategy can be generated by the method shown in the above embodiment but not limited to it.
[0097] S805: Return a sandbox test verification failure response to the NFVO, and send the virtual machine migration strategy (that is, the best resource migration solution) to the user in the response.
[0098] S806: The user implements the corresponding virtual machine hot migration action through the NFVO client according to the resource migration deployment plan, so that the node resources are released and then new resources are deployed.
[0099] Application scenario 2: VNF instantiation process
[0100] See also Fig. 9 As shown, the figure is a schematic diagram of the VNF instantiation process implemented by the present invention, which includes the following processing steps:
[0101] S901: During the instantiation process, NFVO sends an instantiation request to VNFM.
[0102] S902: VNFM calculates the resource requirements currently required for deployment, and sends an authorization request for the deployment resource requirements to NFVO through an authorization interface.
[0103] S903: After receiving the authorization request, NFVO sends a resource query request to VIM, and performs authorization operations on the resource requirements of VNF in combination with the resource information obtained from VIM; if the resources are sufficient and the existing idle resources of a single physical host can meet the requirements of VNF, the authorization result is directly returned; if the total idle resources are sufficient, but the physical host resources cannot meet the requirements, the following process is entered, otherwise the authorization failure is directly returned.
[0104] S904: After receiving the resource operation plan request, the virtual machine migration strategy generating device starts to obtain resource information and corresponding business information, and generates a virtual machine migration strategy, including:
[0105] Resource layer information: Relevant resource information is obtained from VIM, including but not limited to the following information: free resource information (core number / memory / disk) on each physical host, existing virtual machine information (name / resource, etc.) on each physical host, affinity and mutual exclusion relationship between virtual machines, etc. Application layer information: The virtual machine migration strategy generation device obtains virtual machine and VNF detailed information from NFVO, wherein NFVO can directly obtain information including but not limited to the following: VNF priority, correspondence between virtual machine and VNF, etc. Some information that cannot be directly obtained, such as VNF business resource information, cannot be directly obtained from NFVO. NFVO can query VNF business resource information to VNFM, and VNFM obtains the following information from VNF by obtaining business resource information request, including but not limited to the list of virtual machines that support hot migration in VNF, virtual machine importance identification information, etc. After the collection is completed, the virtual machine migration strategy can be generated by the method shown in the above embodiment but not limited to it.
[0106] S905: Return a response to the NFVO, carrying the virtual machine migration strategy (that is, the best resource migration solution) to the user.
[0107] S906: After receiving the response carrying the virtual machine migration policy, the NFVO assembles it into an authorization response and returns it to the VNFM.
[0108] S907: VNFM notifies NFVO to complete the virtual machine hot migration according to the received authorization response and the migration plan in the response.
[0109] S908: After the hot migration is completed, VNF resources are created;
[0110] The subsequent process of instantiation continues and will not be repeated here.
[0111] Application scenario 3: VNF automatic elasticity (Auto Scale Out) process
[0112] See also Fig.10 As shown in the figure, this figure is a scenario in the process of VNF automatic elastic expansion implemented by the present invention. During the process of expanding a virtual machine, it is found during authorization that no host node's resources meet the requirements, which includes the following processing steps:
[0113] S1001: After the VNF detects that the service performance data reaches the elastic scaling threshold, an automatic elastic scaleout operation is triggered, and the VNF sends an elastic scaling request to create a virtual machine to the VNFM.
[0114] S1002: VNFM sends a VNF elastic scaling operation notification to NFVO, and NFVO returns a notification receipt response.
[0115] S1003: VNFM obtains resource requirements of the corresponding type from the VNFD model according to the elastic virtual machine type, and sends the resource requirements to NFVO through an authorization request.
[0116] S1004: After receiving the authorization request, NFVO obtains resource information from VIM and compares whether there are idle resources of physical host nodes that can meet the resource requirements. If yes, it directly returns authorization approval, otherwise it continues to the following steps.
[0117] S1005: After receiving the resource operation plan request, the virtual machine migration strategy generating device starts to obtain resource information and corresponding business information, and generates a virtual machine migration strategy, including:
[0118] Resource layer information: Relevant resource information is obtained from VIM, including but not limited to the following information: free resource information (core number / memory / disk) on each physical host, existing virtual machine information (name / resource, etc.) on each physical host, affinity and mutual exclusion relationship between virtual machines, etc. Application layer information: The virtual machine migration strategy generation device obtains virtual machine and VNF detailed information from NFVO, wherein NFVO can directly obtain information including but not limited to the following: VNF priority, correspondence between virtual machine and VNF, etc. Some information that cannot be directly obtained, such as VNF business resource information, cannot be directly obtained from NFVO. NFVO can query VNF business resource information to VNFM, and VNFM obtains the following information from VNF by obtaining business resource information request, including but not limited to the list of virtual machines that support hot migration in VNF, virtual machine importance identification information, etc. After the collection is completed, the virtual machine migration strategy can be generated by the method shown in the above embodiment but not limited to it.
[0119] S1006: Return a response to the NFVO, carrying the virtual machine migration strategy (that is, the best resource migration solution) to the user.
[0120] S1007: After receiving the response message carrying the virtual machine migration policy, the NFVO assembles it into an authorization response and returns it to the VNFM.
[0121] S1008: VNFM notifies NFVO to complete the hot migration of the virtual machine according to the received authorization response and the migration plan in the response.
[0122] S1009: After the hot migration is completed, create elastic virtual machine resources.
[0123] The subsequent elastic process continues and will not be described in detail here.
[0124] It should be understood that the virtual machine migration policy generating device and the virtual machine migration processing device provided in this embodiment are not limited to the application scenarios of the above examples.
[0125] Embodiment three:
[0126] This embodiment also provides a communication device, which may be a non-NFVO network element, see Fig.11 As shown, it includes a processor 1101, a memory 1102 and a communication bus 1103;
[0127] The communication bus 1103 is used to realize the communication connection between the processor 1101 and the memory 1102;
[0128] In one example, the processor 1101 may be used to execute a first computer program stored in the memory 1102 to implement the steps of the virtual machine migration strategy generation method in the above embodiments;
[0129] In some other examples, the processor 1101 may be used to execute a second computer program stored in the memory 1102 to implement the steps of the virtual machine migration processing method in the above embodiments;
[0130] The present embodiment also provides a computer-readable storage medium, which includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules or other data). Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable read only memory), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer.
[0131] In an example, the computer-readable storage medium in this embodiment can be used to store a first computer program, and the first computer program can be executed by one or more processors to implement the steps of the virtual machine migration strategy generation method in the above embodiments;
[0132] In other examples, the computer-readable storage medium in this embodiment may be used to store a second computer program, which may be executed by one or more processors to implement the steps of the virtual machine migration processing method in the above embodiments.
[0133] This embodiment also provides a first computer program (or computer software), which can be distributed on a computer-readable medium and executed by a computing device to implement at least one step of the virtual machine migration strategy generation method shown in the above embodiments; and in some cases, at least one of the steps shown or described can be executed in an order different from that described in the above embodiments.
[0134] This embodiment also provides a second computer program (or computer software), which can be distributed on a computer-readable medium and executed by a computing device to implement at least one step of the virtual machine migration processing method shown in the above embodiments; and in some cases, at least one step shown or described can be executed in an order different from that described in the above embodiments.
[0135] This embodiment further provides a computer program product, including a computer readable device, on which the computer program as shown above is stored. In this embodiment, the computer readable device may include the computer readable storage medium as shown above.
[0136] It can be seen that those skilled in the art should understand that all or some of the steps, systems, and functional modules / units in the above disclosed methods can be implemented as software (which can be implemented with computer program code executable by a computing device), firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component can have multiple functions, or a function or step can be performed by several physical components in cooperation. Some or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit.
[0137] In addition, it is well known to those skilled in the art that communication media generally contain computer readable instructions, data structures, computer program modules or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery media. Therefore, the present invention is not limited to any specific hardware and software combination.
[0138] The above contents are further detailed descriptions of the embodiments of the present invention in combination with specific implementation methods, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A method for generating a virtual machine migration strategy, comprising: When the idle resources on each physical host currently in the system do not meet the resource requirements of the virtualized network function VNF, and the sum of the idle resources on each physical host meets the resource requirements of the VNF, the resource information occupied on each physical host is obtained from the virtual facility management VIM layer, and the service information corresponding to the resource information is obtained, wherein the resource information includes the virtual machines deployed on each physical host and the resource information occupied by each virtual machine; the service information includes a list of virtual machines supporting hot migration obtained from the inside of the VNF; Determine each virtual machine supporting hot migration on each physical host according to the list of virtual machines supporting hot migration in the VNF; From the virtual machines supporting hot migration, remove the virtual machines for which the sum of the resources occupied by the virtual machine itself and the idle resources on the physical host where the virtual machine itself is located does not meet the resource demand of the VNF; At least one virtual machine is selected from the remaining virtual machines as the target virtual machine to be migrated out, the physical host where the target virtual machine is currently located is the target migration-out physical host, and a physical host whose idle resources meet the resource requirements of the target virtual machine to be migrated out is selected from the physical hosts as the target migration-in physical host. The virtual machine migration strategy includes the target migration-out physical host, the target virtual machine to be migrated out on the target migration-out physical host, and the target migration-in physical host to which the target virtual machine is to be migrated, and the sum of the idle resources on the target migration-out physical host and the resources occupied by the target virtual machine to be migrated meets the resource requirements of the VNF.
2. The method for generating a virtual machine migration strategy according to claim 1, wherein: The selecting at least one virtual machine from the remaining virtual machines as the target virtual machine to be migrated out includes: selecting at least one virtual machine from the remaining virtual machines as the target virtual machine to be migrated out according to the principle of minimum migration times.
3. The method for generating a virtual machine migration strategy according to claim 1, wherein: The service information also includes the correspondence between the virtual machine and the VNF; The step of selecting at least one virtual machine from the remaining virtual machines as a target virtual machine to be migrated includes: According to the correspondence between the virtual machines and the VNFs, the principle of minimizing the number of VNFs involved in the migration is adopted, and at least one virtual machine is selected from the remaining virtual machines as the target virtual machine to be migrated.
4. The method for generating a virtual machine migration strategy according to claim 1, wherein: The service information also includes at least one of the VNF priority and the virtual machine importance identification information of each virtual machine; the selecting at least one virtual machine from the remaining virtual machines as the target virtual machine to be migrated includes: According to at least one of the VNF priority and the virtual machine importance identification information of each virtual machine, at least one virtual machine with the lowest virtual machine importance is selected from the remaining virtual machines as the target virtual machine to be migrated.
5. The method for generating a virtual machine migration strategy according to any one of claims 1 to 4, characterized in that: The resource information also includes the mutually exclusive relationship between the virtual machines; Before selecting at least one virtual machine from the remaining virtual machines as the target virtual machine to be migrated out, the method further includes: According to the mutually exclusive relationship between the virtual machines, the virtual machines with the mutually exclusive relationship are removed from the remaining virtual machines.
6. The method for generating a virtual machine migration strategy according to any one of claims 1 to 4, characterized in that: The resource information also includes affinity relationships between virtual machines; The step of selecting at least one virtual machine from the remaining virtual machines as a target virtual machine to be migrated includes: When a virtual machine is selected from the remaining virtual machines as the target virtual machine to be migrated, if it is determined that the selected virtual machine has an affinity virtual machine based on the affinity relationship between the virtual machines, the virtual machine with affinity to the virtual machine will also be used as the target virtual machine to be migrated, and the virtual machines with affinity will be migrated to the same physical host when migrating.
7. A virtual machine migration processing method, comprising: receiving a request including resource requirements of a virtualized network function VNF; When the idle resources on each physical host currently in the system do not meet the resource requirements of the virtualized network function VNF, and the sum of the idle resources on each physical host meets the resource requirements of the VNF, a virtual machine migration strategy is generated by the virtual machine migration strategy generation method according to any one of claims 1 to 6; Generate a request response message including the virtual machine migration policy and send it to the requesting party that sends the request; When a virtual machine migration instruction is received, the virtual machine migration is performed according to the virtual machine migration policy indicated by the virtual machine migration instruction.
8. The virtual machine migration processing method according to claim 7, characterized in that: The request includes at least one of the following requests: Sandbox test request including resource requirements of the VNF; An authorization request containing the resource requirements for VNF instantiation deployment; Contains the authorization request for the deployment resource requirements of the VNF elastic scaling operation.
9. A virtual machine migration strategy generation device, characterized in that: include: An information acquisition module is used to obtain the resource information occupied on each physical host from the virtual facility management VIM layer and obtain the service information corresponding to the resource information when the idle resources on each physical host currently in the system do not meet the resource requirements of the virtualized network function VNF and the sum of the idle resources on each physical host meets the resource requirements of the VNF, wherein the resource information includes the virtual machines deployed on each physical host and the resource information occupied by each virtual machine; the service information includes a list of virtual machines supporting hot migration obtained from inside the VNF; A policy generation module is used to determine the virtual machines that support hot migration on the physical hosts according to the list of virtual machines that support hot migration in the VNF; from the virtual machines that support hot migration, eliminate the virtual machines whose resources occupied by the virtual machines themselves and the idle resources on the physical host where the virtual machines are located do not meet the resource requirements of the VNF; select at least one virtual machine from the remaining virtual machines as the target virtual machine to be migrated out, the physical host where the target virtual machine is currently located is the target migration-out physical host, and select a physical host whose idle resources meet the resource requirements of the target virtual machine to be migrated out from the physical hosts as the target migration-in physical host, the virtual machine migration policy includes the target migration-out physical host, the target virtual machine to be migrated out on the target migration-out physical host, and the target migration-in physical host to which the target virtual machine is to be migrated, and the sum of the idle resources on the target migration-out physical host and the resources occupied by the target virtual machine to be migrated meets the resource requirements of the VNF.
10. A virtual machine migration processing device, characterized in that: The device for generating a virtual machine migration strategy as claimed in claim 9 further comprises a request processing module and an execution module; The request processing module is used to receive a request containing resource requirements of a virtualized network function VNF, and generate a request response message according to the virtual machine migration policy generated by the virtual machine migration policy generating device and send it to the requesting party that sent the request; The virtual machine migration strategy generating device is used to generate a virtual machine migration strategy and send it to the request processing module when the idle resources on each physical host currently in the system do not meet the resource requirements of the virtualized network function VNF, and the sum of the idle resources on each physical host meets the resource requirements of the VNF; The execution module is used to perform virtual machine migration according to the virtual machine migration strategy indicated by the virtual machine migration instruction when receiving the virtual machine migration instruction.
11. A communication device comprising a processor, a memory and a communication bus; The communication bus is used to connect the processor and the memory; The processor is used to execute the first computer program stored in the memory to implement the steps of the method for generating a virtual machine migration strategy according to any one of claims 1 to 6; Or, the processor is used to execute a second computer program stored in the memory to implement the steps of the virtual machine migration processing method as described in claim 7.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a first computer program, and the first computer program can be executed by a processor to implement the steps of the method for generating a virtual machine migration strategy according to any one of claims 1 to 6; Alternatively, the computer-readable storage medium stores a second computer program, and the second computer program can be executed by a processor to implement the steps of the virtual machine migration processing method as claimed in claim 7.
Citation Information
Patent Citations
Virtual machine resource integration system and method
CN103309723A
Virtual machine migration method for energy saving of virtual machine cluster and virtual machine migration device for energy saving of virtual machine cluster
CN105279008A