Method, device, electronic device and storage medium for operating virtual machines
By adding a new virtual machine operation entrance in the NFVO system and using the interface between NFVO and VIM to operate the virtual machines in the VNF network element, the problem of cumbersome virtual machine abnormal management is solved, simplifying the virtual machine maintenance process and reducing business costs. Influence effect.
Patent Information
- Application Number
- CN202110007644.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-05
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2041-01-05
AI Technical Summary
In the management system of network function virtualization (NFV), when the virtual machine health status inside the VNF network element is abnormal, it is necessary to use tedious operations to manage the life cycle of the virtual machine that occurs, thereby affecting the operation of the business.
Send a request to VNFM through NFVO, request to operate the virtual machine in the VNF mesh, and operate the virtual machine in the corresponding VIM through NFVO after receiving the response of the VNFM in NFVO. This solution adds an operation entrance to the operation of the virtual machine in the VNF mesh to simplify the maintenance process of the virtual machine.
The maintenance process of the virtual machine is simplified, and the impact of the maintenance operation of the virtual machine on the operation of the VNF network is.
Smart Images

Figure CN114721767B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network technology, and in particular to a method, device, electronic device and storage medium for operating a virtual machine. Background Art
[0002] The management of Network Functions Virtualization (NFV) is based on the Management and Orchestration (MANO) system. In the MANO system, the life cycle of the network simulator (NS) is managed by the NFV orchestrator (NFVO); the life cycle of the virtualized network function (VNF) network element is managed by the virtualized network function management component (VNFM); and the life cycle of the virtual machine (VM) is managed by the virtualized infrastructure manager (VIM).
[0003] In the related art, when the operation status of the virtual machine inside the VNF network element is abnormal, cumbersome operations are required to perform life cycle management on the abnormal virtual machine, thereby affecting business operations. Summary of the invention
[0004] To solve the related technical problems, the embodiments of the present application provide a method, device, electronic device and storage medium for operating a virtual machine.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] The present application provides a method for operating a virtual machine, including:
[0007] Sending a first request to the VNFM through the NFVO; the first request is used to request a first operation to be performed on a first virtual machine in a first VNF network element;
[0008] When the NFVO receives the first response regarding the first request returned by the VNFM, the first operation is performed on the first virtual machine in the corresponding VIM through the NFVO; the first response indicates that the first virtual machine can execute the first operation.
[0009] Wherein, in the above solution, the first operation includes one of the following:
[0010] Creating the first virtual machine;
[0011] Deleting the first virtual machine;
[0012] Starting the first virtual machine;
[0013] Stopping the first virtual machine;
[0014] Restarting the first virtual machine;
[0015] The first virtual machine is hot migrated.
[0016] In the above solution, when the first operation is performed on the first virtual machine in the corresponding VIM through NFVO, the method further includes:
[0017] Setting the state of the first VNF network element to a first state; wherein,
[0018] The first state represents that the virtual machine in the first VNF network element is being maintained.
[0019] In the above solution, after performing the first operation on the first virtual machine in the corresponding VIM through NFVO, the method further includes:
[0020] If the first operation is successfully executed, changing the state of the first VNF network element from the first state to an activated state;
[0021] In the event that the first operation fails to be executed, the state of the first VNF network element is changed from the first state to a failed state.
[0022] In the above solution, sending the first request to the VNFM through the NFVO includes:
[0023] When the first VNF network element is in the Active state or the Failed state, the NFVO sends a first request to the VNFM.
[0024] In the above solution, when the first operation is performed on the first virtual machine in the corresponding VIM through NFVO, the method includes:
[0025] The VNFM sends a northbound interface request of the corresponding VIM to the NFVO;
[0026] The NFVO sends the northbound interface request to the corresponding VIM.
[0027] In the above scheme, the method further includes:
[0028] Before or after the operation is performed on the first virtual machine in the corresponding VIM through NFVO, the VNFM and the first VNF network element exchange first information; wherein,
[0029] The first information represents relevant information about the NFVO performing the first operation on the first virtual machine.
[0030] In the above solution, after performing the first operation on the first virtual machine in the corresponding VIM through NFVO, the method further includes:
[0031] The VNFM sends a second message to the Operation and Maintenance Center (OMC); wherein,
[0032] The second information is used to notify the status change of the first VNF network element.
[0033] The embodiment of the present application also provides a device for operating a virtual machine, including:
[0034] A first sending unit is used to send a first request to the VNFM through the NFVO; the first request is used to request a first operation to be performed on a first virtual machine in a first VNF network element;
[0035] An operating unit is configured to perform the first operation on the first virtual machine in the corresponding VIM through the NFVO when the NFVO receives a first response regarding the first request returned by the VNFM; the first response indicates that the first virtual machine can execute the first operation.
[0036] An electronic device according to an embodiment of the present application is characterized by comprising: a first processor and a first communication interface; wherein:
[0037] The first communication interface is used to send a first request to the VNFM through the NFVO; the first request is used to request a first operation to be performed on a first virtual machine in a first VNF network element;
[0038] And when NFVO receives a first response regarding the first request returned by VNFM, it is used to perform the first operation on the first virtual machine in the corresponding VIM through NFVO in combination with the first processor; the first response indicates that the first virtual machine can execute the first operation.
[0039] An electronic device according to an embodiment of the present application is characterized by comprising: a first processor and a first memory for storing a computer program that can be run on the processor,
[0040] Wherein, the first processor is used to execute the steps of any of the above methods when running the computer program.
[0041] An embodiment of the present application provides a storage medium having a computer program stored thereon, wherein the computer program implements the steps of any of the above methods when executed by a processor.
[0042] The method, device, electronic device and storage medium for operating a virtual machine provided in the embodiments of the present application, wherein an operation entry for operating a virtual machine in a VNF network element is newly added on the NFVO, a first request is sent to the VNFM through the NFVO to request a first operation to be performed on a first virtual machine in a first VNF network element, and when the NFVO receives a first response returned by the VNFM indicating that the first virtual machine can perform the first operation, the NFVO performs the first operation on the first virtual machine in the corresponding VIM. Since the NFVO is connected to multiple VIMs, when the operation status of the virtual machine in the VNF network element is abnormal, the virtual machine is operated in the corresponding VIM through the NFVO, which can simplify the maintenance operation process of the virtual machine and reduce the impact of the maintenance operation of the virtual machine on the business operation of the VNF network element. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A schematic diagram of the VNF network element instantiation process for related technologies;
[0044] Figure 2 A flowchart of a method for operating a virtual machine according to an embodiment of the present application;
[0045] Figure 3 An end-to-end interactive flow chart for starting or stopping a virtual machine according to an embodiment of the present application;
[0046] Figure 4 This is an end-to-end interaction flow chart for restarting a virtual machine according to an embodiment of the present application;
[0047] Figure 5 This is an end-to-end interaction flow chart of hot migration of virtual machines in an embodiment of the present application;
[0048] Figure 6 An end-to-end interaction flow chart for creating a virtual machine for an embodiment of the present application;
[0049] Figure 7 An end-to-end interactive flow chart for deleting a virtual machine in an embodiment of the present application;
[0050] Figure 8 A schematic diagram of the lifecycle management state of a VNF network element instantiated in an embodiment of the present application;
[0051] Fig. 9A schematic diagram of the structure of a device for operating a virtual machine according to an embodiment of the present application;
[0052] Fig.10 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0053] NFV management is based on the MANO system, which is a cloud management system proposed by the European Telecommunications Standards Institute (ETSI). The system mainly manages the life cycle of network elements required for cloud management, the loading templates required for network elements, the installation packages required for network elements, and network resources. Among them, NFVO+ is used to manage the life cycle of NS, including the instantiation, termination, expansion, and reduction of NS; VNFM is used to manage the life cycle of VNF network elements, including the management of VNF descriptions (VNFD, VNFDDescriptor), the instantiation of VNF network elements, and the expansion and reduction of VNF network elements; VIM is used to manage the hardware resources and virtualization resources of the infrastructure layer, including the execution of life cycle management operations such as power on and off, restart, hot migration, deletion, and reconstruction of virtual machines.
[0054] In the related technology, network personnel log in to NFVO to make an interface call, send the lifecycle management operations of multiple VNF network elements in NS to VNFM, and VNFM parses the VNFD template of the VNF network element to perform lifecycle management on the VNF network element. Figure 1 The instantiation process of the VNF network element in the related technology is shown. For the VNF network element that has been instantiated, the operation and maintenance personnel can obtain the service performance indicators of the VNF network element from the OMC, and can also log in to the virtual machine inside the VNF network element to view the operation status of the virtual machine. However, when the virtual machine inside the VNF network element has abnormal operation conditions such as no response, blue screen of the console, and "hanging", it is impossible to restart, power on and off the virtual machine through the Linux command inside the virtual machine. The operation and maintenance personnel need to log in to each VIM one by one, query the virtual machine inside the VNF network element, and then manage the life cycle of the virtual machine through the VIM. In the case of a large number of VIM resource pools, the above-mentioned query to the virtual machine and then manage the life cycle of the virtual machine through the VIM is cumbersome, which affects the correct use of the business.
[0055] Based on this, in the embodiment of the present application, an operation entry for operating the virtual machine in the VNF network element is newly added on the NFVO, and a first request is sent to the VNFM through the NFVO to request a first operation to be performed on the first virtual machine in the first VNF network element. When the NFVO receives a first response returned by the VNFM indicating that the first virtual machine can perform the first operation, the NFVO performs the first operation on the first virtual machine in the corresponding VIM. Since the NFVO is connected to multiple VIMs, when the operation status of the virtual machine in the VNF network element is abnormal, the NFVO operates the virtual machine in the corresponding VIM, which can simplify the maintenance operation process of the virtual machine and reduce the impact of the maintenance operation of the virtual machine on the business operation of the VNF network element.
[0056] The present application embodiment provides a method for operating a virtual machine, which is applicable to a MANO system, such as Figure 2 As shown, the method includes:
[0057] Step 201: Send a first request to the VNFM through the NFVO.
[0058] Among them, the first request is used to request a first operation to be performed on a first virtual machine in a first VNF network element.
[0059] Step 202: When the NFVO receives the first response regarding the first request returned by the VNFM, the NFVO performs the first operation on the first virtual machine in the corresponding VIM.
[0060] The first response indicates that the first virtual machine can execute the first operation.
[0061] Here, a new operation entry for operating the virtual machine in the VNF network element is added on the NFVO. The operations that can be performed on the virtual machine based on the operation entry include one of the following:
[0062] Creating the first virtual machine;
[0063] Deleting the first virtual machine;
[0064] Starting the first virtual machine;
[0065] Stopping the first virtual machine;
[0066] Restarting the first virtual machine;
[0067] The first virtual machine is hot migrated.
[0068] When the maintenance operation is performed on the virtual machine through NFVO, a first request is sent to VNFM through NFVO, and the request specifies the operation that NFVO needs to perform, the virtual machine to be operated, and the VNF network element corresponding to the virtual machine. After receiving the first request, NFVO detects the feasibility of the operation based on the above information specified in the first request. When it is determined that the corresponding operation can be performed on the corresponding virtual machine, VNFM returns a first response to NFVO. When NFVO receives the first response, it performs the corresponding operation on the corresponding virtual machine in the corresponding VIM.
[0069] In actual application, a new interface can be added between NFVO and VNFM to implement the above virtual machine operation solution. Table 1 shows the relevant definition of the new interface:
[0070] Table 1
[0071]
[0072] Table 2 shows the parameter definition of the new interface:
[0073] Table 2
[0074]
[0075] If the operation on the virtual machine through the newly added interface is performed correctly, the newly added interface returns status code 202; if the operation on the virtual machine through the newly added interface fails, the newly added interface returns status code 404; if the VNF network element is in other states of the life cycle causing an operation conflict, the newly added interface returns status code 409.
[0076] In actual application, the northbound interface of the corresponding VIM is called by the VNFM so that the NFVO completes the maintenance operation of the corresponding virtual machine. Based on this, when the first operation is performed on the first virtual machine in the corresponding VIM by the NFVO, the method includes:
[0077] The VNFM sends a northbound interface request of the corresponding VIM to the NFVO;
[0078] The NFVO sends the northbound interface request to the corresponding VIM.
[0079] That is to say, the indirect mode is adopted here, and VNFM sends the northbound interface request of the corresponding VIM, that is, the native openstack interface request to NFVO, and NFVO forwards the northbound interface request to the corresponding VIM, so as to perform the corresponding operation on the corresponding virtual machine in the corresponding VIM based on the corresponding northbound interface.
[0080] In one embodiment, the method further comprises:
[0081] Before or after the operation is performed on the first virtual machine in the corresponding VIM through NFVO, the VNFM and the first VNF network element exchange first information; wherein,
[0082] The first information represents relevant information about the NFVO performing the first operation on the first virtual machine.
[0083] Here, before and after the NFVO operates the virtual machine, information is exchanged between the VNFM and the first VNF network element, including that before executing the first operation, the VNFM sends a pre-operation request for the first operation to the first VNF network element, and the first VNF network element returns the post-processing result of the first operation to the VNFM. After completing the first operation, the VNFM sends the corresponding post-processing request to the first VNF network element, and the first VNF network element returns the corresponding post-processing result to the VNFM.
[0084] In one embodiment, after performing the first operation on the first virtual machine in the corresponding VIM through NFVO, the method further includes:
[0085] VNFM sends second information to OMC; wherein,
[0086] The second information is used to notify the status change of the first VNF network element.
[0087] In actual application, maintenance operations on the virtual machine in the first VNF network element will involve a state change in the life cycle of the first VNF network element. Therefore, after the first operation on the first virtual machine is completed through NFVO, the VNFM sends a second message to the OMC to notify the OMC that the state of the first VNF network element has changed.
[0088] Through the interaction between the VNFM and the VNF network element and OMC, real-time interactive transmission of information can be achieved. Compared with the situation where information interaction is not timely when the VM is directly operated through the VIM, the impact of the operation process of the virtual machine on the business operation in the VNF network element is reduced.
[0089] The following further describes the operation method of the virtual machine in the embodiment of the present application in combination with different operation types:
[0090] 1. Start or stop the virtual machine.
[0091] Combination Figure 3 The end-to-end interaction process for starting or stopping a virtual machine is as follows:
[0092] 1. Select the virtual machine in the VNF network element in the NS instance.
[0093] 2. Initiate the operation of starting or stopping the virtual machine to NFVO.
[0094] 3. NFVO checks the feasibility of the operation and sets the instance status of the NS and VNF network elements.
[0095] 4. NFVO sends a request to VNFM to start or stop the virtual machine.
[0096] 5. After receiving the message, VNFM checks the status of the virtual machine and the mutual exclusivity of the operation.
[0097] 6. VNFM returns the task progress indicator for NFVO to query the progress.
[0098] 7. VNFM sends a pre-operation request to start or stop the virtual machine to the VNF network element. The VNF network element performs internal processing preparation according to its own situation and returns the post-processing result to VNFM.
[0099] 8. VNFM sends a request to NFVO+ to create virtual resources.
[0100] 9. NFVO+ creates the required virtual resources in the specified VIM.
[0101] 10. VNFM sends a post-processing request to the VNF network element. The VNF network element performs internal processing after the virtual machine is started or stopped according to its own needs, and returns the post-processing result to VNFM.
[0102] 11. VNFM sends VNF network element lifecycle change notification to OMC.
[0103] 12. NFVO returns the operation results, and the operation and maintenance personnel can see the operation progress on the NFVO+ interface.
[0104] 2. Restart the virtual machine.
[0105] Combination Figure 4 , the end-to-end interaction process of restarting a virtual machine is as follows:
[0106] 1. Select the virtual machine in the VNF network element in the NS instance.
[0107] 2. Initiate a restart operation of the VM to NFVO.
[0108] 3. NFVO checks the feasibility of the operation and sets the instance status of the NS and VNF network elements.
[0109] 4. NFVO sends a virtual machine restart operation request to VNFM.
[0110] 5. After receiving the message, VNFM checks the status of the virtual machine and the mutual exclusivity of the operation.
[0111] 6. VNFM returns the task progress indicator for NFVO to query the progress.
[0112] 7. VNFM sends a pre-operation request to restart the virtual machine to the VNF network element. The VNF network element performs internal processing preparation according to its own situation and returns the post-processing result to VNFM.
[0113] 8. VNFM sends a request to NFVO+ to create virtual resources.
[0114] 9. NFVO+ creates the required virtual resources in the specified VIM.
[0115] 10. VNFM sends a post-processing request to the VNF network element. The VNF network element performs internal processing after the virtual machine restart according to its own needs and returns the post-processing result to VNFM.
[0116] 11. VNFM sends VNF network element lifecycle change notification to OMC.
[0117] 12. NFVO returns the operation results, and the operation and maintenance personnel can see the operation progress on the NFVO+ interface.
[0118] 3. Live migration of virtual machines.
[0119] Combination Figure 5 ,The end-to-end interaction process of hot migration of virtual machines is as follows:
[0120] 1. Select the virtual machine in the VNF network element in the NS instance.
[0121] 2. Initiate a hot migration operation of the virtual machine to NFVO.
[0122] 3. NFVO checks the feasibility of the operation and sets the instance status of the NS and VNF network elements.
[0123] 4. NFVO sends a request for hot migration of virtual machines to VNFM.
[0124] 5. After receiving the message, VNFM checks the status of the virtual machine and the mutual exclusivity of the operation.
[0125] 6. VNFM returns the task progress indicator for NFVO to query the progress.
[0126] 7. VNFM sends a pre-operation request for hot-migrating the virtual machine to the VNF network element. The VNF network element performs internal processing preparations based on its own situation and returns the post-processing results to VNFM.
[0127] 8. VNFM sends a request to NFVO+ to create virtual resources.
[0128] 9. NFVO+ creates the required virtual resources in the specified VIM.
[0129] 10. VNFM sends a post-processing request to the VNF network element. The VNF network element performs internal processing after the live migration of the virtual machine according to its own needs and returns the post-processing result to VNFM.
[0130] 11. VNFM sends VNF network element lifecycle change notification to OMC.
[0131] 12. NFVO returns the operation results, and the operation and maintenance personnel can see the operation progress on the NFVO+ interface.
[0132] 4. Create a virtual machine.
[0133] Combination Figure 6 , the end-to-end interaction process for creating a virtual machine is as follows:
[0134] 1. Select the virtual machine in the VNF network element in the NS instance.
[0135] 2. Initiate a virtual machine creation operation to NFVO.
[0136] 3. NFVO checks the feasibility of the operation and sets the instance status of the NS and VNF network elements.
[0137] 4. NFVO sends a virtual machine creation operation request to VNFM.
[0138] 5. After receiving the message, VNFM checks the status of the virtual machine and the mutual exclusivity of the operation.
[0139] 6. VNFM returns the task progress indicator for NFVO to query the progress.
[0140] 7. VNFM sends a pre-operation request to create a virtual machine to the VNF network element. The VNF network element performs internal processing preparation according to its own situation and returns the post-processing result to VNFM.
[0141] 8. VNFM calls C6: GrantLifecycle interface to request NFVO+ for authorization.
[0142] 9. If NFVO+ allows the operation and meets the resource requirements of VNFM, VIMID and TenantID are returned to VNFM. If NFVO+ does not allow the operation or the required resources are insufficient, NFVO+ rejects VNFM's authorization request.
[0143] 10. When NFVO receives the authorization request from VNFM, VNFM sends a request to NFVO+ to create virtual resources.
[0144] 11. NFVO+ creates the required virtual resources in the specified VIM.
[0145] 12. VNFM sends a post-processing request to the VNF network element. The VNF network element performs internal processing after the virtual machine is created according to its own needs and returns the post-processing result to VNFM.
[0146] 13. After the resources are created successfully, VNFM configures and deploys related parameters in the VNF network element.
[0147] 14 After the resources are created successfully, VNFM sends C6: VNFLifecycleChangeNotification interface to NFVO+ to inform the VNF network element of the virtual resources contained in it.
[0148] 15. NFVO+ returns a response to VNFM.
[0149] 16. VNFM sends a VNF network element lifecycle change notification to OMC.
[0150] 17. NFVO returns the operation results, and the operation and maintenance personnel can see the operation progress on the NFVO+ interface.
[0151] 5. Delete the virtual machine.
[0152] Combination Figure 7 , the end-to-end interaction process for deleting a virtual machine is as follows:
[0153] 1. Select the virtual machine in the VNF network element in the NS instance.
[0154] 2. Initiate a virtual machine deletion operation to NFVO.
[0155] 3. NFVO checks the feasibility of the operation and sets the instance status of the NS and VNF network elements.
[0156] 4. NFVO sends a virtual machine deletion operation request to VNFM.
[0157] 5. After receiving the message, VNFM checks the status of the virtual machine and the mutual exclusivity of the operation.
[0158] 6. VNFM returns the task progress indicator for NFVO to query the progress.
[0159] 7. VNFM sends a pre-operation request to delete the virtual machine to the VNF network element. The VNF network element performs internal processing preparation according to its own situation and returns the post-processing result to VNFM.
[0160] 8. VNFM calls C6: GrantLifecycle interface to request NFVO+ for authorization.
[0161] 9. If NFVO+ allows the operation and meets the resource requirements of VNFM, VIMID and TenantID are returned to VNFM. If NFVO+ does not allow the operation or the required resources are insufficient, NFVO+ rejects VNFM's authorization request.
[0162] 10. When NFVO receives the authorization request from VNFM, VNFM sends a request to NFVO+ to delete virtual resources.
[0163] 11. NFVO+ deletes the required virtual resources in the specified VIM.
[0164] 12. VNFM sends a post-processing request to the VNF network element. The VNF network element performs internal processing after the virtual machine is deleted according to its own needs and returns the post-processing result to VNFM.
[0165] 13. After the resource is deleted successfully, VNFM sends C6: VNFLifecycleChangeNotification interface to NFVO+ to inform the VNF network element of the virtual resources contained in it.
[0166] 14. NFVO+ returns a response to VNFM.
[0167] 15. VNFM sends VNF network element lifecycle change notification to OMC.
[0168] 16. NFVO returns the operation results, and the operation and maintenance personnel can see the operation progress on the NFVO+ interface.
[0169] In actual application, when the VNF network element is in the Active state or the Failed state, the maintenance operation can be performed on the virtual machine with abnormal conditions in the VNF network element through the above-mentioned newly added interface. Based on this, in one embodiment, the sending of the first request to the VNFM through the NFVO includes:
[0170] When the first VNF network element is in the Active state or the Failed state, the NFVO sends a first request to the VNFM.
[0171] In the process of lifecycle management of instantiated VNF network elements, the Active state and the Failed state are two states that characterize the instantiation state of the VNF network element. In an embodiment of the present application, based on the instantiation state of the VNF network element defined in the related art, a virtual machine maintenance (Maintaining) state is added. When the instantiation state of a VNF network element is set to the Maintaining state, it indicates that a maintenance operation is being performed on the virtual machine in the VNF network element. Based on this, in one embodiment, when the first operation is performed on the first virtual machine in the corresponding VIM through NFVO, the method also includes:
[0172] Setting the state of the first VNF network element to a first state; wherein,
[0173] The first state represents that the virtual machine in the first VNF network element is being maintained.
[0174] In one embodiment, after performing the first operation on the first virtual machine in the corresponding VIM through NFVO, the method further includes:
[0175] If the first operation is successfully executed, changing the state of the first VNF network element from the first state to an activated Active state;
[0176] In the event that the first operation fails to be executed, the state of the first VNF network element is changed from the first state to a failed state.
[0177] Here, when the first operation is performed on the first virtual machine in the corresponding VIM through NFVO, the instantiation state of the first VNF network element is set to Maintaining state, indicating that the maintenance operation is being performed on the virtual machine in the first VNF network element. Figure 8 The lifecycle management state diagram of the instantiated VNF network element is shown, wherein, in the Maintaining state, when the first operation is executed successfully, the task state (status) corresponding to the first operation is set to "completed", indicating that the first operation is executed successfully, and correspondingly, the instantiation state of the first VNF network element is changed to the Active state; when the first operation fails to be executed, the task state corresponding to the first operation is set to "Failed", indicating that the first operation fails to be executed, and correspondingly, the instantiation state of the first VNF network element is changed to the Failed state.
[0178] The method for operating a virtual machine provided in the embodiment of the present application adds an operation entry for operating a virtual machine in a VNF network element on NFVO, sends a first request to VNFM through NFVO to request a first operation to be performed on a first virtual machine in a first VNF network element, and performs the first operation on the first virtual machine in a corresponding VIM through NFVO when NFVO receives a first response returned by VNFM indicating that the first virtual machine can perform the first operation. Since NFVO is connected to multiple VIMs, when the operation status of a virtual machine in a VNF network element is abnormal, the virtual machine can be operated in the corresponding VIM through NFVO, which can simplify the maintenance operation process of the virtual machine and reduce the impact of the maintenance operation of the virtual machine on the business operation of the VNF network element.
[0179] In order to implement the method of the embodiment of the present application, the embodiment of the present application also provides a device for operating a virtual machine, such as Fig. 9 As shown, the device comprises:
[0180] The first sending unit 901 is used to send a first request to the VNFM through the NFVO; the first request is used to request a first operation to be performed on a first virtual machine in a first VNF network element;
[0181] The operation unit 902 is configured to perform the first operation on the first virtual machine in the corresponding VIM through the NFVO when the NFVO receives a first response regarding the first request returned by the VNFM; the first response indicates that the first virtual machine can execute the first operation.
[0182] In one embodiment, the first operation includes one of the following:
[0183] Creating the first virtual machine;
[0184] Deleting the first virtual machine;
[0185] Starting the first virtual machine;
[0186] Stopping the first virtual machine;
[0187] Restarting the first virtual machine;
[0188] The first virtual machine is hot migrated.
[0189] In one embodiment, the device further comprises:
[0190] A first setting unit is configured to set the state of the first VNF network element to a first state when the first operation is performed on the first virtual machine in the corresponding VIM through NFVO; wherein,
[0191] The first state represents that the virtual machine in the first VNF network element is being maintained.
[0192] In one embodiment, the device further comprises:
[0193] The second setting unit is used for, after the first operation is performed on the first virtual machine in the corresponding VIM through NFVO, if the first operation is successfully executed, changing the state of the first VNF network element from the first state to the Active state; if the first operation fails to be executed, changing the state of the first VNF network element from the first state to the Failed state.
[0194] In one embodiment, the first sending unit 901 is configured to:
[0195] When the first VNF network element is in the Active state or the Failed state, the NFVO sends a first request to the VNFM.
[0196] In one embodiment, the operating unit 902 is used to:
[0197] The VNFM sends a northbound interface request of the corresponding VIM to the NFVO;
[0198] The NFVO sends the northbound interface request to the corresponding VIM.
[0199] In one embodiment, the device further comprises:
[0200] An interaction unit, configured to exchange first information between the VNFM and the first VNF network element before or after the operation is performed on the first virtual machine in the corresponding VIM through the NFVO; wherein,
[0201] The first information represents relevant information about the NFVO performing the first operation on the first virtual machine.
[0202] In one embodiment, the device further comprises:
[0203] The second sending unit is configured to, after the first operation is performed on the first virtual machine in the corresponding VIM through the NFVO, the VNFM sends second information to the OMC; wherein,
[0204] The second information is used to notify the status change of the first VNF network element.
[0205] In actual application, the first sending unit 901, the interaction unit and the second sending unit can be implemented by the communication interface in the device operated by the virtual machine; the operation unit 902, the first setting unit and the second setting unit can be implemented by the processor in the device operated by the virtual machine combined with the communication interface.
[0206] It should be noted that: the apparatus for operating a virtual machine provided in the above embodiment only uses the division of the above program modules as an example when operating a virtual machine. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the apparatus is divided into different program modules to complete all or part of the processing described above. In addition, the apparatus for operating a virtual machine provided in the above embodiment and the method embodiment for operating a virtual machine belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0207] Based on the hardware implementation of the above program modules, and in order to implement the method of operating the virtual machine in the embodiment of the present application, the embodiment of the present application also provides an electronic device, such as Fig.10 As shown, the electronic device 1000 includes:
[0208] The first communication interface 1001 is capable of exchanging information with other network nodes;
[0209] The first processor 1002 is connected to the first communication interface 1001 to implement information exchange with other network nodes, and is used to execute one or more methods provided by the technical solution when running a computer program. The computer program is stored in the first memory 1003.
[0210] Specifically, the first communication interface 1001 sends a first request to the VNFM through the NFVO; the first request is used to request a first operation to be performed on a first virtual machine in a first VNF network element;
[0211] And when NFVO receives a first response regarding the first request returned by VNFM, it is used to perform the first operation on the first virtual machine in the corresponding VIM through NFVO in combination with the first processor; the first response indicates that the first virtual machine can execute the first operation.
[0212] In one embodiment, the first operation includes one of the following:
[0213] Creating the first virtual machine;
[0214] Deleting the first virtual machine;
[0215] Starting the first virtual machine;
[0216] Stopping the first virtual machine;
[0217] Restarting the first virtual machine;
[0218] The first virtual machine is hot migrated.
[0219] In one embodiment, the first processor 1002 is configured to:
[0220] When the first operation is performed on the first virtual machine in the corresponding VIM through NFVO, the state of the first VNF network element is set to the first state; wherein,
[0221] The first state represents that the virtual machine in the first VNF network element is being maintained.
[0222] In one embodiment, the first processor 1002 is further configured to:
[0223] After performing the first operation on the first virtual machine in the corresponding VIM through NFVO, if the first operation is successfully executed, the state of the first VNF network element is changed from the first state to the Active state; if the first operation fails to be executed, the state of the first VNF network element is changed from the first state to the Failed state.
[0224] In one embodiment, the first communication interface 1001 is used to:
[0225] When the first VNF network element is in the Active state or the Failed state, the NFVO sends a first request to the VNFM.
[0226] In one embodiment, the first communication interface 1001 is used to:
[0227] The VNFM sends a northbound interface request of the corresponding VIM to the NFVO;
[0228] The NFVO sends the northbound interface request to the corresponding VIM.
[0229] In one embodiment, the first communication interface 1001 is further used for:
[0230] Before or after the operation is performed on the first virtual machine in the corresponding VIM through NFVO, the VNFM and the first VNF network element exchange first information; wherein,
[0231] The first information represents relevant information about the NFVO performing the first operation on the first virtual machine.
[0232] In one embodiment, the first communication interface 1001 is further used for:
[0233] After performing the first operation on the first virtual machine in the corresponding VIM through NFVO, the VNFM sends second information to the OMC; wherein,
[0234] The second information is used to notify the status change of the first VNF network element.
[0235] It should be noted that the specific processing process of the first processor 1002 and the first communication interface 1001 can be understood by referring to the above method.
[0236] Of course, in actual application, the various components in the electronic device 1000 are coupled together through the bus system 1004. It can be understood that the bus system 1004 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1004 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.10 Various buses are labeled as bus system 1004 .
[0237] The first memory 1003 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device 1000. Examples of such data include: any computer program used to operate on the electronic device 1000.
[0238] The method disclosed in the above embodiment of the present application can be applied to the first processor 1002, or implemented by the first processor 1002. The first processor 1002 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 or software instructions in the first processor 1002. The above-mentioned first processor 1002 may be a general-purpose 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 first processor 1002 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose 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 application, 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 may be located in a storage medium, which is located in the first memory 1003, and the first processor 1002 reads the information in the first memory 1003 and completes the steps of the above method in combination with its hardware.
[0239] In an exemplary embodiment, the electronic device 1000 can 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.
[0240] It can be understood that the first memory 1003 of the embodiment of the present application 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 ferromagnetic random access memory, 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 RAMbus random access memory (DRRAM, Direct Rambus Random Access Memory).The memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.
[0241] In an exemplary embodiment, the embodiment of the present application further provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, including a first memory 1003 storing a computer program, and the computer program can be executed by a first processor 1002 of the electronic device 1000 to complete the steps of the aforementioned method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.
[0242] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0243] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
[0244] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. A method for operating a virtual machine, characterized in that: include: Sending a first request to a virtualized network function management component VNFM through a network function virtualization orchestrator NFVO; The first request is used to request a first operation to be performed on a first virtual machine in a first virtualized network function VNF network element; When the NFVO receives the first response regarding the first request returned by the VNFM, the NFVO performs the first operation on the first virtual machine in the corresponding virtualization infrastructure manager VIM; the first response indicates that the first virtual machine can execute the first operation.
2. The method according to claim 1, characterized in that The first operation includes one of the following: Creating the first virtual machine; Deleting the first virtual machine; Starting the first virtual machine; Stopping the first virtual machine; Restarting the first virtual machine; The first virtual machine is hot migrated.
3. The method according to claim 1 or 2, characterized in that: When the first operation is performed on the first virtual machine in the corresponding VIM through NFVO, the method further includes: Setting the state of the first VNF network element to a first state; wherein, The first state represents that the virtual machine in the first VNF network element is being maintained.
4. The method according to claim 3, characterized in that After performing the first operation on the first virtual machine in the corresponding VIM through NFVO, the method further includes: If the first operation is successfully executed, changing the state of the first VNF network element from the first state to an activated Active state; In the event that the first operation fails to be executed, the state of the first VNF network element is changed from the first state to a failed state.
5. The method according to claim 1 or 2, characterized in that: The sending a first request to the VNFM through the NFVO includes: When the first VNF network element is in the Active state or the Failed state, the NFVO sends a first request to the VNFM.
6. The method according to claim 1, characterized in that When the first operation is performed on the first virtual machine in the corresponding VIM through NFVO, the method includes: The VNFM sends a northbound interface request of the corresponding VIM to the NFVO; The NFVO sends the northbound interface request to the corresponding VIM.
7. The method according to claim 1, characterized in that The method further comprises: Before or after the operation is performed on the first virtual machine in the corresponding VIM through NFVO, the VNFM and the first VNF network element exchange first information; wherein, The first information represents relevant information about the NFVO performing the first operation on the first virtual machine.
8. The method according to claim 1, characterized in that After performing the first operation on the first virtual machine in the corresponding VIM through NFVO, the method further includes: The VNFM sends the second information to the operation and maintenance center OMC; wherein, The second information is used to notify the status change of the first VNF network element.
9. A device for operating a virtual machine, characterized in that: include: A first sending unit, configured to send a first request to the VNFM through the NFVO; The first request is used to request a first operation to be performed on a first virtual machine in a first VNF network element; an operating unit, configured to perform the first operation on the first virtual machine in the corresponding VIM through the NFVO when the NFVO receives a first response to the first request returned by the VNFM; The first response indicates that the first virtual machine can execute the first operation.
10. An electronic device, characterized in that: include: A first processor and a first communication interface; wherein, The first communication interface is used to send a first request to the VNFM through the NFVO; the first request is used to request a first operation to be performed on a first virtual machine in a first VNF network element; And when NFVO receives a first response regarding the first request returned by VNFM, it is used to perform the first operation on the first virtual machine in the corresponding VIM through NFVO in combination with the first processor; the first response indicates that the first virtual machine can execute the first operation.
11. An electronic device, characterized in that: include: a first processor and a first memory for storing a computer program executable on the processor, Wherein, when the first processor is used to run the computer program, the steps of the method described in any one of claims 1 to 8 are executed.
12. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
NFV network element deployment system, method and device, medium and equipment
CN111404712A
Method, system, device, and program for managing network function virtualization
WO2016121834A1