UPF Deployment Method, Device, Equipment and Medium

By receiving deployment requests from the MEC cloud platform, generating configuration files and modifying deployment scripts, creating virtual machines and deploying UPF in the virtual machines, the problem of inefficient deployment of UPF on the MEC platform is solved, and more efficient and lower-cost deployment is achieved.

CN115835305BActive Publication Date: 2025-07-11CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211399646.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-09
Publication Date
2025-07-11
Estimated Expiration
2042-11-09

AI Technical Summary

Technical Problem

In the prior art, UPF is inefficient in deployment on the MEC platform, has high hardware costs and long deployment time, and has a high probability of manual intervention and errors.

Method used

By receiving deployment requests from the MEC cloud platform, generating configuration files, modifying deployment scripts, creating virtual machines and deploying UPFs in virtual machines, optimizing the deployment process of UPFs with pre-set processing and mirroring files.

Benefits of technology

It shortens the deployment time of UPF, improves deployment efficiency, reduces hardware costs and reduces the probability of errors caused by manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115835305B_ABST
    Figure CN115835305B_ABST
Patent Text Reader

Abstract

The present application provides a UPF deployment method, apparatus, device, and medium. The method includes receiving a deployment request from a first MEC cloud platform, where the deployment request includes a first configuration file. The first configuration file is generated by the first MEC cloud platform according to a set virtual machine specification, and the first configuration file includes resource information configured by the first MEC cloud platform for a first virtual machine according to the virtual machine specification. According to the first configuration file, modify the virtual machine configuration field in the pre-stored deployment script to obtain a first script. By running the first script, create the first virtual machine on the first MEC cloud platform and deploy UPF in the first virtual machine. The present application completes the deployment of UPF by obtaining the first script and then running the first script, shortening the duration of deploying UPF and improving the efficiency of deploying UPF.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and in particular, to a method, device, equipment and medium for UPF deployment. Background Art

[0002] The greatest advantage of MEC is to access services nearby. Deploy the services that need to be accessed nearby on the MEC server. The specific implementation method is to deploy the user plane UPF of 5G near the MEC. Under the control of the 5G core network, the services to be accessed by the terminal are shunted on the UPF, and the service flow accessing the MEC is forwarded to the MEC.

[0003] The current UPF deployment is independent of the MEC platform. The UPF is deployed on the equipment unique to the 5G equipment provider, and the required hardware cost is high. Or it is necessary to manually intervene to install the UPF on the virtual machine provided by the MEC platform. The deployment time is long and the error probability is high. The current method of deploying the UPF near the MEC is inefficient. Improving the deployment efficiency of the UPF is an urgent problem to be solved. Summary of the Invention

[0004] This application provides a method, device, equipment and medium for UPF deployment to improve the deployment efficiency of the UPF.

[0005] On the one hand, this application provides a method for UPF deployment, and the method includes:

[0006] Receiving a deployment request from the first MEC cloud platform, where the deployment request includes a first configuration file; the first configuration file is generated by the first MEC cloud platform according to the set virtual machine specifications, and the first configuration file includes the resource information configured by the first MEC cloud platform for the first virtual machine according to the virtual machine specifications;

[0007] Modifying the virtual machine configuration field in the pre-stored deployment script according to the first configuration file to obtain a first script;

[0008] By running the first script, creating the first virtual machine on the first MEC cloud platform and deploying the UPF in the first virtual machine.

[0009] In one embodiment, the resource information includes the address information of the CPU and the network card information.

[0010] In one embodiment, the method further includes:

[0011] Receive the image file uploaded by the second MEC cloud platform, where the image file is uploaded after the second MEC cloud platform performs preset processing; wherein, the preset processing includes: completing registration with the MEPM; generating a second configuration file according to the virtual machine specification, and creating a second virtual machine on the second MEC cloud platform based on the second configuration file and the obtained virtual machine file for installing the virtual machine, and after obtaining the UPF file required for deploying the UPF under the second virtual machine, performing image conversion on the virtual machine file and the UPF file to obtain the image file;

[0012] Create the deployment script according to the pre-written initial script and the call path of the image file.

[0013] In one embodiment, the virtual machine file includes a first file for creating a virtual machine and a second file for configuring the virtual machine network card, and the second file contains virtual machine configuration fields; the creating the first virtual machine on the first MEC cloud platform and deploying the UPF in the first virtual machine by running the first script includes:

[0014] Call the first file by running the first script to create the first virtual machine on the first MEC cloud platform;

[0015] Call the second file by running the first script to configure corresponding resources for the first virtual machine according to the resource information in the first configuration file;

[0016] Start the first virtual machine, and execute the UPF file by running the first script under the first virtual machine to deploy the UPF in the first virtual machine.

[0017] In one embodiment, the UPF file includes a third file for establishing a cluster and a fourth file for installing the UPF; the executing the UPF file by running the first script under the first virtual machine to deploy the UPF in the first virtual machine includes:

[0018] Execute the third file under the first virtual machine to establish and initialize the cluster;

[0019] Based on the cluster, execute the fourth file under the first virtual machine to install the UPF under the first virtual machine.

[0020] On the other hand, the present application provides a UPF deployment device, and the device includes:

[0021] A receiving module, configured to receive a deployment request from a first MEC cloud platform, where the deployment request includes a first configuration file; the first configuration file is generated by the first MEC cloud platform according to a set virtual machine specification, and the first configuration file includes resource information configured by the first MEC cloud platform for a first virtual machine according to the virtual machine specification;

[0022] A modification module, configured to modify a virtual machine configuration field in a pre-stored deployment script according to the first configuration file to obtain a first script;

[0023] A processing module, configured to create the first virtual machine on the first MEC cloud platform and deploy a UPF in the first virtual machine by running the first script.

[0024] In one embodiment, the resource information includes address information of a CPU and network card information.

[0025] In one embodiment, the receiving module is further configured to receive an image file uploaded by a second MEC cloud platform, where the image file is uploaded by the second MEC cloud platform after performing preset processing; wherein, the preset processing includes: registering with a MEPM; generating a second configuration file according to the virtual machine specification, and creating a second virtual machine on the second MEC cloud platform based on the second configuration file and a virtual machine file obtained for installing the virtual machine, and after obtaining a UPF file required for deploying the UPF under the second virtual machine, performing image conversion on the virtual machine file and the UPF file to obtain the image file;

[0026] The processing module is further configured to create the deployment script according to a pre-written initial script and a call path of the image file.

[0027] In one embodiment, the processing module is specifically configured to call a first file by running the first script to create the first virtual machine on the first MEC cloud platform;

[0028] The processing module is specifically further configured to call a second file by running the first script to configure corresponding resources for the first virtual machine according to the resource information in the first configuration file;

[0029] The processing module is specifically further configured to start the first virtual machine, and execute a UPF file by running the first script under the first virtual machine to deploy the UPF in the first virtual machine.

[0030] In one embodiment, the processing module is specifically further configured to execute a third file under the first virtual machine to establish and initialize a cluster;

[0031] Specifically, the processing module is further configured to execute a fourth file under the first virtual machine based on the cluster to install UPF under the first virtual machine.

[0032] In another aspect, the present application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;

[0033] The memory stores computer-executable instructions;

[0034] The processor executes the computer-executable instructions stored in the memory to implement the method as described above.

[0035] In another aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement the method as described above.

[0036] In the UPF deployment method, device, equipment and medium provided by the present application, first, a deployment request from the first MEC cloud platform is received, and then a pre-stored deployment script is modified through a first configuration file in the deployment request to obtain a first script. The first configuration file includes resource information configured by the first MEC cloud platform for the first virtual machine according to the virtual machine specifications. Finally, a first virtual machine is created on the first MEC cloud platform by running the first script, and UPF is deployed in the first virtual machine. By obtaining the first script and then completing the deployment of UPF by running the first script, the present application shortens the duration of deploying UPF and improves the efficiency of deploying UPF. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0038] Figure 1 It is a schematic diagram of an application scenario for an example of the present application;

[0039] Figure 2 It is a schematic flowchart of a UPF deployment method provided in Embodiment 1 of the present application;

[0040] Figure 3 It is a schematic diagram of the structure of the MEC cloud platform;

[0041] Figure 4 It is a schematic flowchart of another UPF deployment method provided in Embodiment 1 of the present application;

[0042] Figure 5 It is a schematic flowchart of yet another UPF deployment method provided in Embodiment 1 of the present application;

[0043] Figure 6 Schematic structural diagram of a UPF deployment device provided in the second embodiment of the present application;

[0044] Figure 7 Schematic structural diagram of an electronic device provided in the embodiments of the present application.

[0045] Through the above-mentioned drawings, specific embodiments of the present application have been shown, and more detailed descriptions will be provided later. These drawings and textual descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. Specific embodiments

[0046] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0047] Figure 1 Schematic diagram of the application scenario of the present application example. In the figure, it is exemplified that the User Plane Function (UPF) forwards the user requests generated at the user side to the Multi-access Edge Computing (MEC) cloud platform to complete the user's access to the MEC cloud platform.

[0048] It should be noted that the brief description of the terms in the present application is only for the convenience of understanding the following described embodiments, rather than intending to limit the embodiments of the present application. Unless otherwise specified, these terms should be understood in their ordinary and common meanings.

[0049] The technical solutions of the present application will be described in detail below with specific embodiments. These several specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. In the description of the present application, unless otherwise clearly defined and limited, each term should be understood in a broad sense in the art. The embodiments of the present application will be described below with reference to the drawings.

[0050] Embodiment 1

[0051] Figure 2 Schematic flowchart of a UPF deployment method provided in the first embodiment of the present application, as Figure 2 shown, the method includes:

[0052] Step 201: Receive a deployment request from the first MEC cloud platform. The deployment request includes a first configuration file. The first configuration file is generated by the first MEC cloud platform according to a set virtual machine specification. The first configuration file includes resource information configured for a first virtual machine by the first MEC cloud platform according to the virtual machine specification.

[0053] Step 202: Modify the virtual machine configuration fields in the pre-stored deployment script according to the first configuration file to obtain a first script.

[0054] Step 203: Create the first virtual machine on the first MEC cloud platform and deploy the UPF in the first virtual machine by running the first script.

[0055] The execution subject of this embodiment is a Mobile Edge Platform Manager (MEPM for short). The Mobile Edge Platform Manager can be implemented through a computer program, for example, an application software, etc.; or, it can also be implemented as a medium storing relevant computer programs, for example, a USB flash drive, a cloud disk, etc.; or, it can also be implemented through an entity device integrated or installed with relevant computer programs, for example, a chip, etc.

[0056] Combined with a scenario example: The Mobile Edge Platform Manager is responsible for the operation and maintenance management of the MEC cloud platform. Figure 3 is a schematic structural diagram of the MEC cloud platform. The MEC cloud platform is a multi-access edge computing cloud platform, mainly composed of more than 3 physical servers. The MEC cloud platform runs the creation script of MEC based on the server to complete the creation of the MEC cloud platform. After completing the creation of the MEC cloud platform, it registers with the MEPM. The creation script of MEC is an ansible script, and the MEPM is responsible for managing each registered MEC cloud platform. Figure 3It can be known that the MEC cloud platform includes a virtualization platform openstack, a mobile edge platform mep, and virtual machines. The virtualization platform openstack is used to create multiple virtual machines. Some applications app can be installed in the virtual machines to obtain edge applications app. The mobile edge platform mep provides various services for the edge applications app, such as service registration, service discovery, status monitoring, local traffic splitting, etc. Among numerous applications app, not every application app can be installed on the MEC cloud platform. Only the applications app that are allowed to be installed can be installed on the MEC cloud platform according to requirements. One application app is installed in one virtual machine to obtain an edge application app. The edge applications app on the MEC cloud platform correspond one-to-one with the application app on the user side. In addition to installing application app, one virtual machine needs to be selected from all the virtual machines as the virtual machine for deploying the UPF. After the deployment of the UPF is completed, the UPF can forward the traffic corresponding to the request of the user to access the application app at the user side to the corresponding edge application app on the MEC cloud platform, completing the user's access to the MEC cloud platform. The virtual machine for deploying the UPF needs to first install a cluster internally to complete the deployment of the UPF on the cluster. The cluster can be a K8S cluster. When the K8S cluster is installed in the virtual machine, the MEPM completes the deployment of the UPF.

[0057] If there is a first cloud platform that wants to deploy the UPF, and the virtual machine for deploying the UPF on the first cloud platform is determined to be the first virtual machine, the first cloud platform needs to reserve corresponding configuration resources for the creation of the first virtual machine. The configuration resources need to be determined according to the virtual machine specifications set by the MEPM. The first cloud platform obtains a first configuration file based on the resource information corresponding to the configuration resources and the information of the first virtual machine. After obtaining the first configuration file, the first cloud platform sends a deployment request for the UPF to the MEPM. The deployment request for the UPF includes the first configuration file. There is a pre-stored deployment script inside the MEPM. The deployment script is executable code. The deployment script includes a virtual machine configuration field, and the content corresponding to the virtual machine configuration field is the configuration information of the virtual machine. The MEPM determines which configuration resource information is configured for the virtual machine based on the content of the virtual machine field. After receiving the deployment request for the UPF sent by the first cloud platform, the MEPM modifies the virtual machine configuration field in the deployment script according to the first configuration file in the deployment request to obtain a first script. The MEPM completes the creation of the first virtual machine on the first cloud platform and the operation of deploying the UPF for the first virtual machine in the first cloud platform by running the first script.

[0058] This example first receives a deployment request for the first MEC cloud platform, then modifies a pre-stored deployment script through the first configuration file in the deployment request to obtain a first script, and finally creates a first virtual machine on the first MEC cloud platform according to the first script and deploys the UPF in the first virtual machine. This example completes the deployment of the UPF by directly running the program corresponding to the first script, shortening the duration of deploying the UPF and improving the efficiency of deploying the UPF.

[0059] Optionally, the resource information includes the address information of the CPU and the network card information.

[0060] According to the scenario example, the first cloud platform is established by running the ansible script on the server for creating the MEC cloud platform, so the configuration resources reserved for the creation of the first virtual machine are provided based on the server. Before obtaining the configuration resource information reserved for creating the first virtual machine, first obtain the storage situation of the server host and the network card information that needs to be directly passed to the first virtual machine, determine the CPU information reserved for creating the first virtual machine according to the storage situation of the server host, and determine the configuration resource information reserved for creating the first virtual machine according to the obtained CPU information and the network card information, so as to obtain the first configuration file.

[0061] Optionally, the method further includes:

[0062] Receiving an image file uploaded by the second MEC cloud platform, where the image file is uploaded after the second MEC cloud platform performs preset processing; wherein, the preset processing includes: registering with the MEPM; generating a second configuration file according to the virtual machine specification, and creating a second virtual machine on the second MEC cloud platform based on the second configuration file and the obtained virtual machine file for installing the virtual machine, and after obtaining the UPF file required for deploying the UPF under the second virtual machine, performing image conversion on the virtual machine file and the UPF file to obtain the image file;

[0063] Create the deployment script according to the pre-written initial script and the call path of the image file.

[0064] According to the scenario example, for the cloud platform to complete the deployment of the UPF, it is necessary to be based on the deployment script pre-stored in the MEPM. The establishment of the deployment script is achieved by creating another second cloud platform. After completing a series of preset processes on the second cloud platform, an image file is obtained. Based on the written initial script and the call path of the image file, the deployment script is obtained. The preprocessing includes completing the registration of the second cloud platform to the MEPM, reserving configuration resources for creating a second virtual machine based on the virtual machine specifications, and obtaining a second configuration file according to the resource information. The second virtual machine is the virtual machine required for deploying the UPF on the second cloud platform. Obtain the virtual machine file for installing the virtual machine, where the virtual machine file is a file named "CentOS-7-aarch64-GenericCloud-2111.qcow2". Based on the second configuration file and the virtual machine file, create the second virtual machine on the second cloud platform. Then, obtain the UPF file required for deploying the UPF under the second virtual machine. Finally, perform image processing on the virtual machine file for installing the virtual machine and the UPF file required for deploying the UPF to obtain the image file.

[0065] In the initial script, there is program code for calling the image file, as well as for calling the virtual machine file and the UPF file included in the image file. However, simply relying on the program code in the initial script is not sufficient to use the image file. It is also necessary to rely on the call path of the image file in order to complete the retrieval and use of the image file, as well as the virtual machine file and the UPF file included in the image file. The program code in the initial script for calling the virtual machine file and the UPF file included in the image file, together with the call path of the image file, constitute the deployment script.

[0066] Optionally, the virtual machine file includes a first file for creating the virtual machine and a second file for configuring the virtual machine network card. The second file contains virtual machine configuration fields;

[0067] Figure 4 It is a schematic flowchart of another UPF deployment method provided in the first embodiment of this application. As Figure 4 shown, step 203 includes:

[0068] Step 401: Call the first file by running the first script to create the first virtual machine on the first MEC cloud platform;

[0069] Step 402: Call the second file by running the first script to configure corresponding resources for the first virtual machine according to the resource information in the first configuration file;

[0070] Step 403: Start the first virtual machine, and execute the UPF file by running the first script under the first virtual machine to deploy the UPF in the first virtual machine.

[0071] Combined with the scenario example, the virtual machine file is mainly used to create a virtual machine. In the virtual machine file, there are also a first file and a second file. The MEPM mainly uses the virtual machine created by the first file. The MEPM uses the configuration fields of the virtual machine included in the second file. The configuration fields mainly include the resource information for creating the virtual machine. The MEPM modifies the virtual machine configuration fields in the second file based on the resource information for creating the first virtual machine obtained from the first configuration file to obtain the first script.

[0072] The MEPM runs the first script, retrieves the first file to create the first virtual machine based on the image file retrieval path in the first script, and retrieves the second file. Based on the virtual machine configuration fields in the second file, corresponding resources are configured for the first virtual machine. After configuring the corresponding resources for the first virtual machine, the first virtual machine is started. The virtual machine includes a UPF file required for deploying the UPF. The first script is run to execute the UPF file, completing the UPF deployment of the first virtual machine.

[0073] Optionally, the UPF file includes a third file for establishing a cluster and a fourth file for installing the UPF; Figure 5 This is a flowchart of another UPF deployment method provided in the first embodiment of the present application. As Figure 5 shown, step 403 includes:

[0074] Step 501: Execute the third file under the first virtual machine to establish and initialize the cluster;

[0075] Step 502: Based on the cluster, execute the fourth file under the first virtual machine to install the UPF under the first virtual machine.

[0076] According to the scenario example, the UPF file further includes the third file and the fourth file. The third file includes some first software and first data files for creating the K8S cluster. When the first script executes the UPF file, the first script first executes the third file and then the fourth file. When the first script executes the third file, the first software runs the first data file to complete the establishment of the K8S cluster and initialize the K8S cluster. The first software includes kubeadm, kubectl, docker, etcd, and kubelet. The first data file is all the docker images output by the "kubeadm config images list" command. The fourth file includes second software and second data files for deploying the UPF on the K8S cluster. When the first script executes the fourth file, the second software runs the second data file to complete the deployment of the UPF on the K8S. The second software is helm, and the second data is the method data for deploying the UPF on the K8S.

[0077] In this embodiment, a deployment request of the first MEC cloud platform is first received, and then the pre-stored deployment script is modified according to the first configuration file in the deployment request to obtain a first script. The first configuration file includes the resource information configured by the first MEC cloud platform for the first virtual machine according to the virtual machine specification. Finally, the first virtual machine is created on the first MEC cloud platform according to the execution of the first script, and the UPF is deployed in the first virtual machine. By obtaining the first script and then completing the deployment of the UPF by running the first script, the application shortens the deployment duration of the UPF and improves the deployment efficiency of the UPF.

[0078] Embodiment 2

[0079] Figure 6 FIG. is a schematic structural diagram of a UPF deployment device provided in Embodiment 2 of the present application. The device includes:

[0080] A receiving module 61, configured to receive a deployment request of the first MEC cloud platform, where the deployment request includes a first configuration file; the first configuration file is generated by the first MEC cloud platform according to a set virtual machine specification, and the first configuration file includes the resource information configured by the first MEC cloud platform for the first virtual machine according to the virtual machine specification;

[0081] A modification module 62, configured to modify the virtual machine configuration field in the pre-stored deployment script according to the first configuration file to obtain a first script;

[0082] The processing module 63 is used to create the first virtual machine on the first MEC cloud platform and deploy the UPF in the first virtual machine by running the first script.

[0083] The execution subject of this embodiment is the MEPM device, which can be implemented by a computer program, such as an application software, etc.; or, it can also be implemented as a medium storing relevant computer programs, such as a USB flash drive, a cloud disk, etc.; or, it can also be implemented by an entity device integrated or installed with relevant computer programs, such as a chip, etc.

[0084] Combined with the scenario example, if there is a first cloud platform that wants to deploy the UPF, and it is determined that the virtual machine for deploying the UPF on the first cloud platform is the first virtual machine, the first cloud platform needs to reserve corresponding configuration resources for the creation of the first virtual machine. The configuration resources need to be determined according to the virtual machine specifications set by the MEPM. The first cloud platform obtains the first configuration file based on the resource information corresponding to the configuration resources and the information of the first virtual machine. After obtaining the first configuration file, the first cloud platform sends a deployment request for the UPF to the MEPM, and the deployment request for the UPF includes the first configuration file. There is a pre-stored deployment script inside the MEPM, and the deployment script is executable code. The deployment script includes a virtual machine configuration field, and the content corresponding to the virtual machine configuration field is the configuration information of the virtual machine. The MEPM determines which configuration resource information is configured for the virtual machine based on the content of the virtual machine field. After the receiving module 61 receives the deployment request for the UPF sent by the first cloud platform, the modification module 62 modifies the virtual machine configuration field in the deployment script according to the first configuration file in the deployment request to obtain the first script. The processing module 63 completes the creation of the first virtual machine on the first cloud platform by running the first script, and completes the operation of deploying the UPF in the first virtual machine in the first cloud platform.

[0085] In this example, the receiving module 61 first receives the deployment request from the first MEC cloud platform, the modification module 62 then modifies the pre-stored deployment script according to the first configuration file in the deployment request to obtain the first script, and the processing module 63 finally creates the first virtual machine on the first MEC cloud platform and deploys the UPF in the first virtual machine according to the first script. This example completes the deployment of the UPF by directly running the program corresponding to the first script, shortening the deployment time of the UPF and improving the deployment efficiency of the UPF.

[0086] Optionally, the resource information includes the address information of the CPU and the network card information.

[0087] According to the scenario example, the first cloud platform is established by running the ansible script on the server that creates the MEC cloud platform. Therefore, the configuration resources reserved for the creation of the first virtual machine are provided based on the server. Before obtaining the configuration resource information reserved for the creation of the first virtual machine, first obtain the storage situation of the server host and the network card information that needs to be directly passed to the first virtual machine. Determine the CPU information reserved for the creation of the first virtual machine according to the storage situation of the server host, and determine the configuration resource information reserved for the creation of the first virtual machine according to the obtained CPU information and the network card information, so as to obtain the first configuration file.

[0088] Optionally, the receiving module 61 is further configured to receive the image file uploaded by the second MEC cloud platform, where the image file is uploaded after the second MEC cloud platform performs preset processing; wherein, the preset processing includes: completing registration with the MEPM; generating a second configuration file according to the virtual machine specification, and creating a second virtual machine on the second MEC cloud platform based on the second configuration file and the virtual machine file obtained for installing the virtual machine, and after obtaining the UPF file required for deploying the UPF under the second virtual machine, performing image conversion on the virtual machine file and the UPF file to obtain the image file;

[0089] The processing module 63 is further configured to create the deployment script according to the pre-written initial script and the call path of the image file.

[0090] According to the scenario example, to complete the deployment of the UPF on the cloud platform, it is necessary to rely on the deployment script pre-stored in the MEPM. The deployment script is established by creating another second cloud platform, performing a series of preset processing on the second cloud platform to obtain an image file, and obtaining the deployment script based on the pre-written initial script and the call path of the image file. The preprocessing includes completing the registration of the second cloud platform with the MEPM, reserving configuration resources for the creation of the second virtual machine based on the virtual machine specification, and obtaining the second configuration file according to the resource information. The second virtual machine is the virtual machine required for deploying the UPF on the second cloud platform. Obtain the virtual machine file for installing the virtual machine, where the virtual machine file is the file named "CentOS-7-aarch64-GenericCloud-2111.qcow2", create the second virtual machine on the second cloud platform based on the second configuration file and the virtual machine file, then obtain the UPF file required for deploying the UPF under the second virtual machine, and finally perform image processing on the virtual machine file for installing the virtual machine and the UPF file required for deploying the UPF to obtain the image file.

[0091] The receiving module 61 receives the mirror file. In the initial script, the mirror file is called, and the program codes of the virtual machine file and the UPF file included in the mirror file are called. However, it is not sufficient to use the mirror file only according to the program codes in the initial script. It is also necessary to follow the call path of the mirror file to complete the retrieval and use of the mirror file and the virtual machine file and the UPF file included in the mirror file. The processing module 63 constructs the deployment script based on the program codes for calling the virtual machine file and the UPF file included in the mirror file in the initial script and the call path of the mirror file.

[0092] Optionally, the processing module 63 is specifically configured to call a first file by running the first script to create the first virtual machine on the first MEC cloud platform;

[0093] The processing module 63 is further specifically configured to call a second file by running the first script to configure corresponding resources for the first virtual machine according to the resource information in the first configuration file;

[0094] The processing module 63 is further specifically configured to start the first virtual machine and execute the UPF file by running the first script under the first virtual machine to deploy UPF in the first virtual machine.

[0095] Combined with the scenario example, the virtual machine file is mainly used to create a virtual machine. In the virtual machine file, there are also a first file and a second file. The processing module 63 mainly uses the first file to create the virtual machine. The processing module 63 uses the configuration fields of the virtual machine included in the second file. The configuration fields mainly include the resource information for creating the virtual machine. The processing module 63 modifies the virtual machine configuration fields in the second file based on the resource information for creating the first virtual machine obtained from the first configuration file to obtain the first script.

[0096] The processing module 63 runs the first script, retrieves the first file based on the mirror file retrieval path in the first script to create the first virtual machine, and retrieves the second file. Based on the virtual machine configuration fields in the second file, corresponding resources are configured for the first virtual machine. After the processing module 63 configures corresponding resources for the first virtual machine, the first virtual machine is started. The virtual machine includes the UPF file required for deploying UPF. The first script is run to execute the UPF file to complete the UPF deployment of the first virtual machine.

[0097] Optionally, the processing module 63 is further specifically configured to execute a third file under the first virtual machine to establish and initialize a cluster;

[0098] The processing module 63 is further configured to execute a fourth file under the first virtual machine based on the cluster to install the UPF under the first virtual machine.

[0099] According to the scenario example, the UPF file further includes the third file and the fourth file. The third file includes some first software and first data files for creating the K8S cluster. When the processing module 63 runs the first script to execute the UPF file, the first script first executes the third file and then the fourth file. When the first script executes the third file, the first software runs the first data file to complete the establishment of the K8S cluster and initialize the K8S cluster. The first software includes kubeadm, kubectl, docker, etcd, kubelet, and the first data file is all docker images output by the command "kubeadm config images list". The fourth file includes second software and second data files for deploying the UPF on the K8S cluster. When the first script executes the fourth file, the second software runs the second data file to complete the deployment of the UPF on the K8S. The second software is helm, and the second data is the method data for deploying the UPF on the K8S.

[0100] In this embodiment, the receiving module receives the deployment request of the first MEC cloud platform, and the modification module modifies the pre-stored deployment script through the first configuration file in the deployment request to obtain the first script. The first configuration file includes the resource information configured by the first MEC cloud platform for the first virtual machine according to the virtual machine specification. Finally, the processing module creates the first virtual machine on the first MEC cloud platform and deploys the UPF in the first virtual machine according to the running of the first script. By obtaining the first script and then completing the deployment of the UPF by running the first script, the present application shortens the deployment duration of the UPF and improves the deployment efficiency of the UPF.

[0101] Embodiment III

[0102] Figure 7 It is a schematic structural diagram of an electronic device provided in an embodiment of the present application, as Figure 7 shown. The electronic device includes:

[0103] The electronic device includes a processor 291 and a memory 292; it may also include a communication interface 293 and a bus 294. Among them, the processor 291, the memory 292, and the communication interface 293 can communicate with each other through the bus 294. The communication interface 293 can be used for information transmission. The processor 291 can call the logical instructions in the memory 292 to execute the method of the above embodiments.

[0104] In addition, when the logical instructions in the above-mentioned memory 292 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.

[0105] As a computer-readable storage medium, the memory 292 can be used to store software programs and computer-executable programs, such as the program instructions / modules corresponding to the methods in the embodiments of the present application. The processor 291 executes functional applications and data processing by running the software programs, instructions, and modules stored in the memory 292, that is, to implement the methods in the above method embodiments.

[0106] The memory 292 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the terminal device, etc. In addition, the memory 292 may include high-speed random access memory and may also include non-volatile memory.

[0107] The embodiments of the present application provide a non-temporary computer-readable storage medium, in which computer-execution instructions are stored, and when the computer-execution instructions are executed by a processor, they are used to implement the method as described in the foregoing embodiments.

Claims

1. A UPF deployment method, characterized in that, The method includes: Receiving a deployment request from a first MEC cloud platform, where the deployment request includes a first configuration file; the first configuration file is generated by the first MEC cloud platform according to a set virtual machine specification, and the first configuration file includes resource information configured by the first MEC cloud platform for a first virtual machine according to the virtual machine specification; Modifying the virtual machine configuration field in a pre-stored deployment script according to the first configuration file to obtain a first script; By running the first script, creating the first virtual machine on the first MEC cloud platform and deploying UPF in the first virtual machine.

2. The method according to claim 1, wherein The resource information includes the address information of the CPU and network card information.

3. The method according to claim 1, wherein The method further includes: Receiving an image file uploaded by a second MEC cloud platform, where the image file is uploaded after the second MEC cloud platform performs preset processing; wherein, the preset processing includes: registering with the MEPM; generating a second configuration file according to the virtual machine specification, and based on the second configuration file and a virtual machine file obtained for installing the virtual machine, creating a second virtual machine on the second MEC cloud platform, and after obtaining a UPF file required for deploying UPF under the second virtual machine, performing image conversion on the virtual machine file and the UPF file to obtain the image file; Creating the deployment script according to a pre-written initial script and the call path of the image file.

4. The method according to any one of claims 1 to 3, characterized in that The virtual machine file includes a first file for creating a virtual machine and a second file for configuring the network card of the virtual machine, and the second file contains a virtual machine configuration field; The step of creating the first virtual machine on the first MEC cloud platform and deploying UPF in the first virtual machine by running the first script includes: Calling the first file by running the first script to create the first virtual machine on the first MEC cloud platform; Calling the second file by running the first script to configure corresponding resources for the first virtual machine according to the resource information in the first configuration file; Starting the first virtual machine, and executing the UPF file by running the first script under the first virtual machine to deploy UPF in the first virtual machine.

5. The method according to claim 4, wherein The UPF file includes a third file for establishing a cluster and a fourth file for installing UPF; The step of executing the UPF file by running the first script under the first virtual machine to deploy UPF in the first virtual machine includes: Executing the third file under the first virtual machine to establish and initialize the cluster; Based on the cluster, executing the fourth file under the first virtual machine to install UPF under the first virtual machine.

6. A UPF deployment device, characterized in that, The apparatus includes: A receiving module, configured to receive a deployment request from a first MEC cloud platform, where the deployment request includes a first configuration file; the first configuration file is generated by the first MEC cloud platform according to a set virtual machine specification, and the first configuration file includes resource information configured by the first MEC cloud platform for a first virtual machine according to the virtual machine specification; A modification module, configured to modify virtual machine configuration fields in a pre-stored deployment script according to the first configuration file to obtain a first script; A processing module, configured to create the first virtual machine on the first MEC cloud platform and deploy UPF in the first virtual machine by running the first script.

7. The device according to claim 6, characterized in that, The resource information includes address information of the CPU and network card information.

8. The apparatus according to claim 6, wherein The receiving module is further configured to receive an image file uploaded by a second MEC cloud platform, where the image file is uploaded after the second MEC cloud platform performs preset processing; wherein, the preset processing includes: registering with the MEPM; generating a second configuration file according to the virtual machine specification, and creating a second virtual machine on the second MEC cloud platform based on the second configuration file and a virtual machine file obtained for installing the virtual machine, and after obtaining a UPF file required for deploying UPF under the second virtual machine, performing image conversion on the virtual machine file and the UPF file to obtain the image file; The processing module is further configured to create the deployment script according to a pre-written initial script and a call path of the image file.

9. The apparatus according to any one of claims 6-8, wherein The processing module is specifically configured to call a first file by running the first script to create the first virtual machine on the first MEC cloud platform; The processing module is specifically further configured to call a second file by running the first script to configure corresponding resources for the first virtual machine according to the resource information in the first configuration file; The processing module is specifically further configured to start the first virtual machine, and execute a UPF file by running the first script under the first virtual machine to deploy UPF in the first virtual machine.

10. The apparatus according to claim 9, wherein The processing module is specifically further configured to execute a third file under the first virtual machine to establish and initialize a cluster; The processing module is specifically further configured to execute a fourth file under the first virtual machine based on the cluster to install UPF under the first virtual machine.

11. An electronic device, characterized in that, Including: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1-5.

12. A computer-readable storage medium, characterized in that, Computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, they are used to implement the method according to any one of claims 1-5.

Citation Information

Patent Citations

  • Virtual machine configuration method, device, server and system

    CN113238835A

  • Virtual machine deployment method, device and network function virtualization orchestrator (NFVO)

    WO2016206403A1