Resource scheduling method of virtualized network function and related equipment
By dynamically scheduling the CPU resources of VNFs and using the load prediction model to optimize CPU resource allocation, the problem of low CPU resource utilization in non-cloud native VNFs is solved, and efficient resource utilization and performance stability are achieved.
Patent Information
- Application Number
- CN202410598557.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-08-27
AI Technical Summary
In the existing technology, virtualized network functions (VNF) have the problem of low CPU resource utilization in non-cloud native environments, resulting in resource waste and unstable performance.
By obtaining VNF operation data, the trained load prediction model is used to predict the number of required CPU resources, and CPU resources are dynamically scheduled based on the prediction results to ensure that sufficient resources are provided in high-load scenarios while reducing resource waste during low-load situations.
It improves the utilization of CPU resources, ensures the reliability and performance of VNF in high-load scenarios, and reduces unnecessary waste of resources.
Smart Images

Figure CN118550692A
Abstract
Description
Background Art
[0002] In order to realize NFV, it is hoped that a general-purpose network cloud can be used to carry multiple types of VNFs (Virtualised Network Functions) at the same time, and the characteristics of the cloud can be used to achieve efficient use of resources. Among them, NFV, or Network Functions Virtualization, is to transform traditional CT services into virtualized network elements and deploy them on the cloud platform to achieve software and hardware decoupling. In order to achieve this goal, not only a general-purpose network cloud is needed, but also the cloud-native nature of VNFs is needed to enable VNFs to have the ability to elastically expand and shrink capacity and fast and flexible scheduling.
[0003] However, there are still many difficulties in the cloud nativeization of VNFs. In practice, there are still a large proportion of non-cloud native VNFs. These non-cloud native VNFs do not have elastic expansion and contraction capabilities and flexible scheduling capabilities. Therefore, in order to ensure that the service performance and reliability requirements of non-cloud native VNFs are met, it is generally necessary to allocate sufficient resources to non-cloud native VNFs at one time during initial creation, and ensure that the allocated resources can meet the resource requirements of non-cloud native VNFs in any high-load scenario.
[0004] Obviously, when the existing resource allocation strategy is adopted, the CPU resources allocated to the VNF are idle most of the time during non-business peak hours, resulting in obvious resource waste, leading to low CPU resource utilization, which goes against the original intention of using the characteristics of the cloud to achieve efficient resource utilization.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] The present disclosure provides a resource scheduling method for virtualized network functions and related devices, which at least to a certain extent overcome the problem of low CPU resource utilization in related technologies.
[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0008] According to a first aspect of the present disclosure, a resource scheduling method for a virtualized network function is provided, comprising:
[0009] Obtaining the operation data of the virtualized network function VNF during the operation period;
[0010] Based on the operation data of the VNF in the operation period, the trained VNF load prediction model is used to determine the amount of central processing unit CPU resources required by the VNF in the prediction period;
[0011] The actual allocated CPU resources corresponding to the VNF within the prediction period are scheduled according to the required number of CPU resources of the VNF within the prediction period.
[0012] In some embodiments of the present disclosure, after scheduling the actual allocated CPU resources corresponding to the VNF within the prediction period according to the required CPU resource quantity of the VNF within the prediction period, the resource scheduling method for virtualized network functions provided further includes:
[0013] Monitor the amount of available CPU resources of the node where the VNF is located;
[0014] When it is monitored that the number of available CPU resources of the node where the VNF is located is less than a first preset threshold, determining the network element priority corresponding to each VNF among all VNFs on the node where the VNF is located;
[0015] According to the network element priority corresponding to each VNF among all VNFs on the node where the VNF is located, at least one VNF on the node where the VNF is located is scheduled and evacuated to other nodes, so that the number of available CPU resources on the node where the VNF is located is greater than or equal to the first preset threshold.
[0016] In some embodiments of the present disclosure, determining the network element priority corresponding to each VNF among all VNFs on the node where the VNF is located includes:
[0017] Obtaining attribute information of each VNF among all VNFs on the node where the VNF is located;
[0018] Determine cloud native attribute information, migration impact information, and network element type information of each VNF according to the attribute information of each VNF;
[0019] The network element priority corresponding to each VNF is calculated based on the cloud native attribute information, migration impact information and network element type information of each VNF.
[0020] In some embodiments of the present disclosure, the network element priority corresponding to each VNF is calculated according to the cloud native attribute information, migration impact information and network element type information of each VNF according to the following formula:
[0021] U i =c i × ci +m i × mi +T i
[0022] Among them, U i Indicates the network element priority corresponding to the i-th VNF;
[0023] c i represents the cloud native attribute parameter of the i-th VNF, w ci represents the cloud native attribute parameter coefficient of the i-th VNF;
[0024] m i represents the migration impact parameter of the i-th VNF, w mi represents the migration impact parameter coefficient of the i-th VNF;
[0025] T i Indicates the network element type parameter of the i-th VNF.
[0026] In some embodiments of the present disclosure, obtaining operation data of a virtualized network function VNF during a running period includes:
[0027] The operation data of the VNF during the operation period is obtained at fixed time intervals.
[0028] In some embodiments of the present disclosure, before obtaining the operation data of the virtualized network function VNF during the operation period, the method further includes:
[0029] Monitor the CPU occupancy of the VNF;
[0030] The operation data of the virtualized network function VNF during the operation period is obtained, including:
[0031] When it is monitored that the CPU occupancy rate of the VNF exceeds a second preset threshold, the operation data of the VNF during the operation period is obtained.
[0032] In some embodiments of the present disclosure, obtaining operation data of a virtualized network function VNF during a running period includes:
[0033] During the initialization phase of creating the VNF, the operation data of the VNF during the operation period is obtained.
[0034] In some embodiments of the present disclosure, before determining the number of central processing unit (CPU) resources required by the VNF in the prediction period based on the operation data of the VNF in the operation period using the trained VNF load prediction model, a resource scheduling method for virtualized network functions is provided, further comprising:
[0035] Obtaining historical operation data of the VNF; wherein the historical operation data of the VNF includes the historical operation data of the VNF in a first historical period and the amount of CPU resources required by the VNF in a second historical period;
[0036] Taking the required CPU resource quantity of the VNF in the second historical period as output and the historical operation data of the VNF in the first historical period as input, the VNF load prediction model is constructed and trained to obtain a trained VNF load prediction model.
[0037] In some embodiments of the present disclosure, the VNF load prediction model includes a VNF load long-term prediction model and a VNF load short-term prediction model.
[0038] In some embodiments of the present disclosure, obtaining operation data of a virtualized network function VNF during a running period includes:
[0039] Obtaining operation data of the VNF during a first operation period;
[0040] Obtaining operation data of the VNF during the second operation period;
[0041] The first operating time period has a greater length than the second operating time period.
[0042] In some embodiments of the present disclosure, based on the operation data of the VNF in the operation period, the number of central processing unit CPU resources required by the VNF in the prediction period is determined using a trained VNF load prediction model, including:
[0043] Inputting the operation data of the VNF in the first operation period into the trained VNF load long-term prediction model to predict a first prediction value of the required CPU resource quantity of the VNF in the prediction period;
[0044] Inputting the operation data of the VNF in the second operation period into the trained VNF load short-term prediction model to predict a second prediction value of the required CPU resource quantity of the VNF in the prediction period;
[0045] The required number of CPU resources for the VNF within the prediction period is calculated based on the first prediction value and the second prediction value.
[0046] In some embodiments of the present disclosure, the required CPU resource quantity of the VNF within the prediction period is calculated according to the first prediction value and the second prediction value according to the following formula:
[0047] N=max(P1,P2,N0) / L max
[0048] Wherein, N represents the number of CPU resources required by the VNF during the prediction period;
[0049] P1 represents a first predicted value of the amount of CPU resources required by the VNF within the prediction period;
[0050] P2 represents a second predicted value of the amount of CPU resources required by the VNF within the prediction period;
[0051] N0 represents the minimum allocation quantity of the required CPU resources of the VNF within the preset prediction period;
[0052] L mox Indicates the preset maximum value of the CPU occupancy of the VNF.
[0053] In some embodiments of the present disclosure, before determining the number of central processing unit (CPU) resources required by the VNF in the prediction period based on the operation data of the VNF in the operation period using the trained VNF load prediction model, a resource scheduling method for virtualized network functions is provided, further comprising:
[0054] Acquire the first historical operation data of the VNF; wherein the first historical operation data of the VNF includes the historical operation data of the VNF in the first historical operation period and the required CPU resource quantity of the VNF in the first historical prediction period;
[0055] Acquire the second historical operation data of the VNF; wherein the second historical operation data of the VNF includes the historical operation data of the VNF in the second historical operation period and the required CPU resource quantity of the VNF in the second historical prediction period;
[0056] Extracting long-term operation features from the historical operation data of the VNF in the first historical operation period, taking the long-term operation features as input and the required CPU resource quantity of the VNF in the first historical prediction period as output, constructing and training the VNF load long-term prediction model;
[0057] Extract short-term operation features from the historical operation data of the VNF during the second historical operation period, use the short-term operation features as input, and use the required number of CPU resources of the VNF during the second historical prediction period as output to build and train the VNF load short-term prediction model.
[0058] In some embodiments of the present disclosure, scheduling the actual allocated CPU resources corresponding to the VNF within the prediction period according to the required CPU resource quantity of the VNF within the prediction period includes:
[0059] While ensuring that the number of virtual central processing units (vCPUs) of the VNF remains unchanged, determining the CPU over-allocation ratio corresponding to the VNF in the prediction period according to the number of CPU resources required by the VNF in the prediction period;
[0060] The CPU resources corresponding to the VNF are scheduled within the prediction period based on the CPU over-allocation ratio corresponding to the VNF within the prediction period.
[0061] In some embodiments of the present disclosure, the VNF is a non-cloud native VNF.
[0062] According to a second aspect of the present disclosure, there is also provided a resource scheduling device for a virtualized network function, including:
[0063] An operation data acquisition module is used to acquire the operation data of the virtualized network function VNF during the operation period;
[0064] A CPU resource prediction module is used to determine the amount of central processing unit (CPU) resources required by the VNF in the prediction period based on the operation data of the VNF in the operation period and using the trained VNF load prediction model;
[0065] The CPU resource scheduling module is used to schedule the actual allocated CPU resources corresponding to the VNF within the prediction period according to the required CPU resource quantity of the VNF within the prediction period.
[0066] According to the third aspect of the present disclosure, an electronic device is also provided, which includes: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the resource scheduling method for the virtualized network function described in any one of the above-mentioned first aspects by executing the executable instructions.
[0067] According to a fourth aspect of the present disclosure, there is also provided a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the resource scheduling method for the virtualized network function described in any one of the first aspects above is implemented.
[0068] According to a fifth aspect of the present disclosure, a computer program product is also provided, including a computer program, which, when executed by a processor, implements the resource scheduling method for virtualized network functions described in any one of the first aspects above.
[0069] The resource scheduling method for virtualized network functions provided in the embodiments of the present disclosure obtains the operation data of the VNF during the operation period; based on the operation data of the VNF during the operation period, the trained VNF load prediction model is used to determine the required CPU resource quantity of the VNF during the prediction period; and the actual allocated CPU resources corresponding to the VNF during the prediction period are scheduled according to the required CPU resource quantity of the VNF during the prediction period. The required CPU resource quantity of the VNF can be predicted based on the operation status of the VNF, so as to dynamically adjust the actual allocated CPU resources corresponding to the VNF, and under the premise of ensuring the reliable operation of the VNF, unnecessary waste of CPU resources can be reduced as much as possible, and the utilization rate of the CPU resources allocated to the VNF can be improved.
[0070] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0072] Figure 1 A schematic diagram showing a resource scheduling system architecture for a virtualized network function in an embodiment of the present disclosure;
[0073] Figure 2 A schematic diagram of a resource scheduling method for virtualized network functions in an embodiment of the present disclosure is shown;
[0074] Figure 3 A schematic diagram showing a process flow of a resource scheduling method for virtualized network functions in some embodiments of the present disclosure is shown;
[0075] Figure 4 A schematic diagram showing a specific implementation process of S202 in some embodiments of the present disclosure is shown;
[0076] Figure 5 A schematic diagram showing a specific implementation process of S205 in some embodiments of the present disclosure is shown;
[0077] Figure 6 A schematic diagram showing a flow chart of another resource scheduling method for virtualized network functions in some embodiments of the present disclosure is shown;
[0078] Figure 7 A schematic diagram showing a specific implementation process of S206 in some embodiments of the present disclosure is shown;
[0079] Figure 8A schematic diagram showing a flow chart of a resource scheduling method for virtualized network functions in some embodiments of the present disclosure is shown;
[0080] Fig. 9 A schematic diagram showing a specific implementation process of S804 in some embodiments of the present disclosure is shown;
[0081] Fig.10 A schematic diagram showing a resource scheduling workflow of a virtualized network function in a specific example in an embodiment of the present disclosure is shown;
[0082] Fig.11 A schematic diagram showing a resource scheduling device for virtualized network functions in an embodiment of the present disclosure; and
[0083] Fig.12 A structural block diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0084] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0085] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0086] The specific implementation of the embodiment of the present disclosure is described in detail below with reference to the accompanying drawings.
[0087] Figure 1 FIG. 1 shows an exemplary application system architecture diagram to which the resource scheduling method for virtualized network functions in the embodiment of the present disclosure can be applied. Figure 1 As shown, the system architecture may include a terminal device 101 , a network 102 and a server 103 .
[0088] The network 102 is a medium for providing a communication link between the terminal device 101 and the server 103, and can be a wired network or a wireless network.
[0089] Optionally, the wireless network or wired network described above uses standard communication technology and / or protocol. The network is typically the Internet, but may also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or any combination of a virtual private network). In some embodiments, technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent data exchanged over the network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPSec) and the like may be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies may also be used to replace or supplement the above data communication technologies.
[0090] The terminal device 101 can be various electronic devices, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, smart speakers, smart watches, wearable devices, augmented reality devices, virtual reality devices, etc.
[0091] Optionally, the client of the application installed in different terminal devices 101 is the same, or the client of the same type of application based on different operating systems. Based on the different terminal platforms, the specific form of the client of the application can also be different, for example, the application client can be a mobile client, a PC client, etc.
[0092] The server 103 may be a server that provides various services, such as a background management server that provides support for the device operated by the user using the terminal device 101. The background management server may analyze and process the received request and other data, and feed back the processing results to the terminal device.
[0093] Optionally, the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.
[0094] Those skilled in the art will know that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration, and any number of terminal devices, networks and servers may be provided according to actual needs, and the embodiments of the present disclosure do not limit this.
[0095] Under the above system architecture, a resource scheduling method for virtualized network functions is provided in an embodiment of the present disclosure. In some embodiments, the resource scheduling method for virtualized network functions provided in an embodiment of the present disclosure can be implemented by a server or by interaction between a terminal device and a server.
[0096] like Figure 2 As shown, a resource scheduling method for a virtualized network function provided in an embodiment of the present disclosure includes:
[0097] S202, obtaining the operation data of the VNF during the operation period;
[0098] It should be noted that VNF refers to virtualized network function, network element software running on a virtualized platform, and the smallest deployment unit is one or more VMs (Virtual Machines). The operation data of VNF during the runtime period refers to the relevant data of the VNF during a period of operation, such as the start and end time information of the runtime period and the actual number of CPU resources used during the runtime.
[0099] S204, based on the operation data of the VNF in the operation period, using the trained VNF load prediction model to determine the amount of CPU resources required by the VNF in the prediction period;
[0100] S206, scheduling the actual allocated CPU resources corresponding to the VNF within the prediction period according to the required CPU resource quantity of the VNF within the prediction period.
[0101] It can be seen from the above steps that the resource scheduling method for virtualized network functions provided in the embodiments of the present disclosure obtains the operation data of the VNF during the operation period; based on the operation data of the VNF during the operation period, the trained VNF load prediction model is used to determine the required CPU resource quantity of the VNF during the prediction period; and the actual allocated CPU resources corresponding to the VNF during the prediction period are scheduled according to the required CPU resource quantity of the VNF during the prediction period. The required CPU resource quantity of the VNF can be predicted based on the operation status of the VNF, so as to dynamically adjust the actual allocated CPU resources corresponding to the VNF, and under the premise of ensuring the reliable operation of the VNF, the unnecessary waste of CPU resources can be reduced as much as possible, and the utilization rate of the CPU resources allocated to the VNF can be improved.
[0102] In some embodiments of the present disclosure, the VNF is a non-cloud native VNF. It should be noted that cloud native refers to an application designed specifically for the network cloud, which fully considers the elasticity and distributed characteristics of the cloud platform at the beginning of the design. Cloud native applications have the characteristics of elastic expansion and contraction on demand, flexible and fast scheduling, high availability, high concurrency, etc., while non-cloud native applications do not have the ability of elastic expansion and contraction and flexible scheduling. Network cloud refers to a cloud resource pool for CT (Communication Technology) business scenarios, which is used to carry various virtualized network elements (VNFs) and containerized network elements (CNFs), and is specially optimized in terms of multiple network planes, network acceleration, protocol support, etc.
[0103] In some embodiments of the present disclosure, the specific implementation of S202 may include: obtaining the operation data of the VNF during the operation period during the initialization phase of creating the VNF. In some embodiments of the present disclosure, the specific implementation of S202 may include: obtaining the operation data of the VNF during the operation period at fixed time intervals. During the specific implementation, the fixed time interval is preset and can be set according to the actual business requirements or the operation rules of the VNF. For example, within 10 minutes, the number of CPU resources required by the VNF will not fluctuate significantly, then the fixed time interval can be set to 10 minutes, 10 minutes as a cycle, and the operation data of the VNF during the operation period is periodically obtained. In some embodiments of the present disclosure, before S202, it also includes: monitoring the CPU occupancy rate of the VNF. Accordingly, the specific implementation of S202 may also include: when the CPU occupancy rate of the VNF is monitored to exceed the second preset threshold, obtaining the operation data of the VNF during the operation period. It can be understood by those skilled in the art that the second preset threshold is preset and set according to the operation requirements or business parameter requirements, for example, it can be 85%, the specific value is not limited, and it is not used to limit the protection scope of the present disclosure.
[0104] That is to say, the resource scheduling method for virtualized network functions provided in the embodiments of the present disclosure can be applied to the initialization stage of creating a VNF to ensure that a large number of CPU resources do not need to be allocated to the VNF when the VNF is initially created and that the VNF is always in an idle state; it can also be applied to periodically predicting the number of CPU resources required by the VNF to dynamically and in real time adjust the CPU resources allocated to the VNF to ensure the real-time allocation; it can also be applied to re-predicting the number of CPU resources required by the VNF when it is monitored that the CPU occupancy rate of the VNF is too high to adjust the CPU resources allocated to the VNF so that the CPU occupancy rate of the VNF meets the preset requirements, that is, is lower than the second preset threshold, thereby ensuring the reliability of the VNF operation.
[0105] In some embodiments of the present disclosure, a resource scheduling method for virtualized network functions is provided, such as Figure 3 As shown, before S204, the following steps are also included:
[0106] S302, obtaining historical operation data of the VNF;
[0107] It should be noted that the historical operation data of the VNF includes the historical operation data of the VNF in the first historical period and the number of CPU resources required by the VNF in the second historical period. The time of the first historical period is earlier than the second historical period, that is, after obtaining the historical operation data of the VNF, the historical operation data of the VNF in the first historical period with an earlier operation time is extracted, which may include the time information of the first historical period and the number of CPU resources required by the VNF in the first historical period; and the number of CPU resources required by the VNF in the second historical period whose operation time is later than the first historical period is extracted as training data. The time period length of the first historical period and the second historical period can be determined according to the prediction requirements. For example, if the prediction requires the use of the operation data of the previous 30 minutes to predict the number of CPU resources required by the VNF in the next 15 minutes, the time period length of the first historical period can be set to 30 minutes, and the time period length of the second historical period can be set to 15 minutes. The time interval between the first historical period and the second historical period is set according to the prediction requirements and the accuracy of the prediction, which can be 0, 2 minutes, or 3 hours. It can be understood by those skilled in the art that the above values are only examples and are not used to limit the protection scope of the embodiments of the present disclosure.
[0108] It should be noted that, in order to ensure the accuracy of the training model, the historical operation data of the VNF may include multiple sets of training data, each set of training data includes the historical operation data of the VNF in a first historical period and the number of CPU resources required by the VNF in a second historical period corresponding to the first historical period. The first historical periods between different sets of training data may overlap or may not overlap, and the period lengths may also be different.
[0109] S304, taking the required CPU resource quantity of the VNF in the second historical period as output and the historical operation data of the VNF in the first historical period as input, construct and train a VNF load prediction model to obtain a trained VNF load prediction model.
[0110] It should be noted that the VNF load prediction model can be obtained by learning and training using big data technology or AI technology, such as deep learning, machine learning, etc. It can be understood by those skilled in the art that the VNF load prediction model provided in the embodiment of the present disclosure is used to predict the number of CPU resources required by the VNF in a period of time after the period of time based on the operation data of the VNF in a period of time, and the method or technology for constructing and training the VNF load prediction model is not limited and is not used to limit the protection scope of the embodiment of the present disclosure.
[0111] In some embodiments of the present disclosure, the VNF load prediction model includes a VNF load long-term prediction model and a VNF load short-term prediction model. It should be noted that the VNF load long-term prediction model is used to predict the number of CPU resources required by the VNF in a period of time after the period based on the operation data of the VNF in a long period of time, and the VNF load short-term prediction model is used to predict the number of CPU resources required by the VNF in a period of time after the period of time based on the operation data of the VNF in a short period of time, so as to make predictions in different time dimensions, and comprehensively consider multiple prediction results to ensure that the predicted number of CPU resources required by the VNF can meet the safe and stable requirements.
[0112] Accordingly, the specific implementation process of step S202 is as follows: Figure 4 As shown, the following steps are included:
[0113] S402, obtaining operation data of the VNF in the first operation period;
[0114] S404, obtaining the operation data of the VNF in the second operation period.
[0115] It should be noted that the length of the first operating time period is greater than the length of the second operating time period.
[0116] Accordingly, the specific implementation process of step S204 is as follows: Figure 5 As shown, the following steps are included:
[0117] S502, inputting the operation data of the VNF in the first operation period into the trained VNF load long-term prediction model to predict and obtain a first prediction value of the number of CPU resources required by the VNF in the prediction period;
[0118] S504, inputting the operation data of the VNF in the second operation period into the trained VNF load short-term prediction model to predict and obtain a second prediction value of the number of CPU resources required by the VNF in the prediction period;
[0119] S506: Calculate the required CPU resource quantity of the VNF within the prediction period according to the first prediction value and the second prediction value.
[0120] It should be noted that the required CPU resource quantity of the VNF in the prediction period is calculated according to the first prediction value and the second prediction value according to the following formula:
[0121] N=max(P1,P2,N0) / L max
[0122] Where N represents the number of CPU resources required by VNF during the prediction period;
[0123] P1 represents the first predicted value of the required CPU resource quantity of the VNF within the prediction period;
[0124] P2 represents a second predicted value of the amount of CPU resources required by the VNF during the prediction period;
[0125] N0 represents the minimum allocation quantity of the required CPU resources of the VNF in the preset prediction period, which is a constant. When implemented, it is set according to actual business needs, for example, it can be set to 0;
[0126] L max Indicates the preset maximum value of the CPU usage of the VNF, a constant, which is set according to business requirements, for example, it can be set to 70%.
[0127] In some embodiments of the present disclosure, a resource scheduling method for virtualized network functions is provided, such as Figure 6 As shown, before S204, the following steps are also included:
[0128] S602, obtaining first historical operation data of the VNF;
[0129] It should be noted that the first historical operation data of the VNF includes the historical operation data of the VNF in the first historical operation period and the number of CPU resources required by the VNF in the first historical prediction period. In specific implementation, the first historical operation data of the VNF may include the historical operation data of the VNF in multiple first historical operation periods and the number of CPU resources required by the VNF in the first historical prediction period corresponding to each first historical operation period, so as to ensure the accuracy of the trained model.
[0130] S604, obtaining second historical operation data of the VNF;
[0131] It should be noted that the second historical operation data of the VNF includes the historical operation data of the VNF in the second historical operation period and the number of CPU resources required by the VNF in the second historical prediction period. In specific implementation, the second historical operation data of the VNF may include the historical operation data of the VNF in multiple second historical operation periods and the number of CPU resources required by the VNF in the second historical prediction period corresponding to each second historical operation period, so as to ensure the accuracy of the trained model. And generally, the period length of the second historical operation period is much smaller than the period length of the first historical operation period.
[0132] S606, extracting long-term operation features from the historical operation data of the VNF in the first historical operation period, taking the long-term operation features as input and the required CPU resource quantity of the VNF in the first historical prediction period as output, constructing and training a long-term prediction model for VNF load;
[0133] It should be noted that the construction and training of the long-term prediction model of VNF load can be carried out through big data technology or AI technology. The long-term operation feature refers to the temporal feature of the long-term prediction, such as the prediction time feature, the prediction date feature and the prediction date attribute feature. The prediction time feature refers to the time feature of the first historical prediction period. For example, the start time of the first historical prediction period is 15:00, and the historical operation data of the VNF at the same time in the first historical operation period can be extracted; the prediction date feature refers to the date feature of the first historical prediction period. For example, the date of the first historical prediction period is Friday, and the historical operation data of the VNF when the date of the first historical operation period is Friday can be extracted; the prediction date attribute feature refers to whether the date of the first historical prediction period has special attributes. For example, if the date of the first historical prediction period is a public holiday, the historical operation data of the VNF when the date of the first historical operation period is a public holiday can be extracted.
[0134] S608, extracting short-term operation features from the historical operation data of the VNF in the second historical operation period, taking the short-term operation features as input and the required number of CPU resources of the VNF in the second historical prediction period as output, to build and train a VNF load short-term prediction model.
[0135] It should be noted that the construction and training of the VNF load short-term prediction model can be carried out through big data technology or AI technology. The short-term operation feature refers to the temporal feature during short-term prediction, such as the prediction time feature and the prediction period length feature. The prediction time feature refers to the start time of the second historical prediction period, and the prediction period length feature refers to the period length of the second historical prediction period. For example, the start time of the second historical prediction period is 12:25, and the period length is 15 minutes. Then, the historical operation data of the VNF 15 minutes before 12:25 can be extracted.
[0136] In some embodiments of the present disclosure, the specific implementation process of step S206 is as follows: Figure 7 As shown, the following steps are included:
[0137] S702, while ensuring that the number of vCPUs of the VNF remains unchanged, determining the CPU over-allocation ratio corresponding to the VNF in the prediction period according to the number of CPU resources required by the VNF in the prediction period;
[0138] It should be noted that vCPU refers to a virtual central processing unit or virtual processor, which is a portion or share of the underlying physical CPU allocated to a specific virtual machine VM. In most cases, it is not a one-to-one allocation. CPU overcommit, also known as CPU overprovisioning or CPU multiplexing, refers to a strategy on a cloud platform where the total number of vCPUs allocated to users is greater than the total number of physical CPUs actually available, which can achieve improved CPU utilization.
[0139] S704, scheduling the CPU resources corresponding to the VNF within the prediction period based on the CPU over-allocation ratio corresponding to the VNF within the prediction period.
[0140] It should be noted that, while ensuring that the number of vCPUs remains unchanged, the actual number of CPU cores allocated to the VNF can be changed by changing the CPU over-allocation ratio corresponding to the VNF, so that the nominal idle CPU resources of the VNF can be reused to reduce the waste of resources caused by idle resources. In specific implementation, this can be achieved through Cgroup (Control groups) technology.
[0141] In order to ensure the reliability requirements of VNF, in some embodiments of the present disclosure, a resource scheduling method for virtualized network functions is provided as follows: Figure 8 As shown, in Figure 2 On the basis of, after step S206, the following steps are also included:
[0142] S802, monitoring the number of available CPU resources of the node where the VNF is located;
[0143] S804, when it is monitored that the number of available CPU resources of the node where the VNF is located is less than the first preset threshold, determine the network element priority corresponding to each VNF in all VNFs on the node where the VNF is located;
[0144] It should be noted that the first preset threshold is set according to reliability requirements and is not limited here. For example, it may be 5, 10 or 10% of the total number of CPU resources.
[0145] S806, schedule and evacuate at least one VNF on the node where the VNF is located to other nodes according to the network element priority corresponding to each VNF among all VNFs on the node where the VNF is located, so that the number of available CPU resources on the node where the VNF is located is greater than or equal to the first preset threshold.
[0146] It should be noted that when scheduling evacuation, all VNFs are sorted from low to high according to the corresponding network element priorities, and the part with lower network element priority can be evacuated to one or more other nodes. For example, multiple VNFs that are 15% of the total number of VNFs can be evacuated. For example, multiple VNFs whose network element priority is lower than a value, such as 10, can be evacuated. For example, a small number of VNFs with lower network element priority can be evacuated, and then it is monitored whether the number of available CPU resources of the node where the VNF is located is greater than or equal to the first preset threshold. If so, no evacuation is required. If not, another part of the VNFs is evacuated until the number of available CPU resources of the node where the monitored VNF is located is greater than or equal to the first preset threshold.
[0147] In some embodiments of the present disclosure, S804 is implemented as follows: Fig. 9 As shown, the following steps are included:
[0148] S902, obtaining attribute information of each VNF in all VNFs on the node where the VNF is located;
[0149] S904, determining cloud native attribute information, migration impact information, and network element type information of each VNF according to the attribute information of each VNF;
[0150] S906, calculate the network element priority corresponding to each VNF based on the cloud native attribute information, migration impact information and network element type information of each VNF.
[0151] It should be noted that the cloud native attribute information of the VNF refers to whether the VNF is cloud native; the migration impact information of the VNF refers to the impact of the VNF migration on the business, whether it will cause business interruption; the network element type information of the VNF refers to the importance of the network element type of the VNF, and it is assigned a value according to the importance of the network element type of the VNF.
[0152] In specific implementation, S904 calculates the network element priority corresponding to each VNF according to the following formula:
[0153] U i =c i × ci +m i × mi +T i
[0154] Among them, U iIndicates the network element priority corresponding to the i-th VNF; i is an integer greater than or equal to 1;
[0155] c i represents the cloud native attribute parameter of the i-th VNF. If the i-th VNF is cloud native, c i The value is 0. If the i-th VNF is non-cloud native, then c i The value is 1;
[0156] w ci represents the cloud native attribute parameter coefficient of the i-th VNF, which may be 25, for example;
[0157] m i represents the migration impact parameter of the i-th VNF. If the migration of the i-th VNF causes service interruption, then m i The value is 0, and the migration of the i-th VNF will not cause service interruption. i The value is 1;
[0158] w mi represents the migration impact parameter coefficient of the i-th VNF, which may be 10, for example;
[0159] T i Indicates the network element type parameter of the i-th VNF. It is set according to the importance of the network element type of the VNF and takes a value between 1 and 9. The higher the importance, the larger the value.
[0160] In order to better illustrate the resource scheduling method for virtualized network functions provided by the embodiment of the present disclosure, a specific example is now given for further explanation. Fig.10 The resource scheduling workflow of the virtualized network function shown in the figure includes:
[0161] When creating a non-cloud native VNF, the CPU resource dynamic adjustment module is called to dynamically adjust the actual allocated CPU resources corresponding to the VNF when the VNF is initialized. When the CPU resource dynamic adjustment module adjusts the actual allocated CPU resources corresponding to the VNF, the evacuation scheduling module is called to monitor the number of available CPU resources on the node where the VNF is located. If it is found that the available CPU resources are insufficient, the low-priority VNF is evacuated to other nodes according to the priority value of each VNF on the node.
[0162] If it is not found that the available CPU resources are insufficient, continue to monitor whether the current actual load of the VNF is too high. If so, re-call the CPU resource dynamic adjustment module to dynamically adjust the actual allocated CPU resources corresponding to the VNF. If not, determine whether the accumulated timing of the timer has reached the specified interval of dynamic adjustment. If not, continue to monitor whether the current actual load of the VNF is too high and repeat the process. If so, re-call the CPU resource dynamic adjustment module to dynamically adjust the actual allocated CPU resources corresponding to the VNF, and reset the timer to zero and start timing again.
[0163] Among them, the CPU resource dynamic adjustment module is specifically used to collect the current relevant information of the VNF, that is, the operation data of the VNF during the operation period, such as the operation data of the VNF within 20 minutes before the current moment. Call the trained VNF load prediction model to predict the CPU load of the VNF in the future (prediction period), that is, to determine the predicted value of the number of CPU resources required by the VNF during the prediction period. Combined with the predicted value of the number of CPU resources required by the VNF, the current load of the VNF, and the adjustment setting parameters, calculate the actual number of physical CPU cores allocated to the VNF and the CPU over-allocation ratio. Schedule the CPU resources corresponding to the VNF according to the calculation results.
[0164] It can be seen that this specific example can realize intelligent prediction of the future CPU load of non-native VNFs through the CPU resource dynamic adjustment module, and dynamically adjust the CPU resources of non-cloud native VNFs based on the prediction results, thereby reducing unnecessary CPU resource waste as much as possible and improving the CPU resource utilization allocated to VNFs. Through the evacuation scheduling module, when the available CPU resources of a node are insufficient, the network element priority of all VNFs on the node can be calculated, and low-priority VNFs can be evacuated and scheduled to other nodes to release the CPU resources occupied on this node, freeing up enough available CPU resources for high-priority VNFs to complete scheduling and ensure the reliability of VNFs.
[0165] It should be noted that the acquisition, storage, use, and processing of data in the technical solution disclosed in this disclosure are in compliance with the relevant provisions of national laws and regulations.
[0166] Based on the same inventive concept, the present disclosure also provides a resource scheduling device for virtualized network functions, as described in the following embodiments. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.
[0167] Fig.11 A schematic diagram of a resource scheduling device for virtualized network functions in an embodiment of the present disclosure is shown. Fig.11 As shown, the device comprises:
[0168] The operation data acquisition module 1101 is used to acquire the operation data of the virtualized network function VNF during the operation period;
[0169] The CPU resource prediction module 1102 is used to determine the amount of central processing unit (CPU) resources required by the VNF in the prediction period based on the operation data of the VNF in the operation period and using the trained VNF load prediction model;
[0170] The CPU resource scheduling module 1103 is used to schedule the actual allocated CPU resources corresponding to the VNF within the prediction period according to the required CPU resource quantity of the VNF within the prediction period.
[0171] It should be noted that the above-mentioned operation data acquisition module 1101, CPU resource prediction module 1102 and CPU resource scheduling module 1103 correspond to S202 to S206 in the method embodiment, and the examples and application scenarios implemented by the above-mentioned modules and corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned method embodiment. It should be noted that the above-mentioned modules as part of the device can be executed in a computer system such as a set of computer executable instructions.
[0172] In some embodiments of the present disclosure, it also includes: a scheduling and evacuation module, which is used to: monitor the number of available CPU resources of the node where the VNF is located; when it is monitored that the number of available CPU resources of the node where the VNF is located is less than a first preset threshold, determine the network element priority corresponding to each VNF among all VNFs on the node where the VNF is located; schedule and evacuate at least one VNF on the node where the VNF is located to other nodes according to the network element priority corresponding to each VNF among all VNFs on the node where the VNF is located, so that the number of available CPU resources of the node where the VNF is located is greater than or equal to the first preset threshold.
[0173] During specific implementation, the scheduling and evacuation module is specifically used to: obtain the attribute information of each VNF among all VNFs on the node where the VNF is located; determine the cloud native attribute information, migration impact information and network element type information of each VNF based on the attribute information of each VNF; calculate the network element priority corresponding to each VNF based on the cloud native attribute information, migration impact information and network element type information of each VNF.
[0174] Furthermore, the scheduling and evacuation module is specifically used to calculate the network element priority corresponding to each VNF according to the cloud native attribute information, migration impact information and network element type information of each VNF according to the following formula:
[0175] U i =c i × ci +m i × mi +Ti
[0176] Among them, U i Indicates the network element priority corresponding to the i-th VNF;
[0177] c i represents the cloud native attribute parameter of the i-th VNF, w ci represents the cloud native attribute parameter coefficient of the i-th VNF;
[0178] m i represents the migration impact parameter of the i-th VNF, w mi represents the migration impact parameter coefficient of the i-th VNF;
[0179] T i Indicates the network element type parameter of the i-th VNF.
[0180] In some embodiments of the present disclosure, the operation data acquisition module 1101 is specifically used to obtain the operation data of the VNF during the operation period at fixed time intervals.
[0181] In some embodiments of the present disclosure, it also includes: a CPU occupancy monitoring module, which is used to: monitor the CPU occupancy of the VNF. Correspondingly, the operation data acquisition module 1101 is specifically used to: when the CPU occupancy of the VNF is monitored to exceed the second preset threshold, obtain the operation data of the VNF during the operation period.
[0182] In some embodiments of the present disclosure, the operation data acquisition module 1101 is specifically used to: obtain the operation data of the VNF during the operation period during the initialization phase of creating the VNF.
[0183] In some embodiments of the present disclosure, it also includes: a first model training module, which is used to: obtain historical operation data of the VNF; wherein the historical operation data of the VNF includes the historical operation data of the VNF in a first historical period and the required number of CPU resources of the VNF in a second historical period; using the required number of CPU resources of the VNF in the second historical period as output and the historical operation data of the VNF in the first historical period as input, construct and train a VNF load prediction model to obtain a trained VNF load prediction model.
[0184] In some embodiments of the present disclosure, the VNF load prediction model includes a VNF load long-term prediction model and a VNF load short-term prediction model. Accordingly, the operation data acquisition module 1101 is specifically used to: obtain the operation data of the VNF in the first operation period; obtain the operation data of the VNF in the second operation period; wherein the time period length of the first operation period is greater than that of the second operation period.
[0185] Correspondingly, the CPU resource prediction module 1102 is specifically used to: input the operation data of the VNF in the first operation period into the trained VNF load long-term prediction model to predict the first prediction value of the number of CPU resources required by the VNF in the prediction period; input the operation data of the VNF in the second operation period into the trained VNF load short-term prediction model to predict the second prediction value of the number of CPU resources required by the VNF in the prediction period; calculate the number of CPU resources required by the VNF in the prediction period based on the first prediction value and the second prediction value.
[0186] Furthermore, the CPU resource prediction module 1102 is specifically used to calculate the required CPU resource quantity of the VNF in the prediction period according to the first prediction value and the second prediction value according to the following formula:
[0187] N=max(P1,P2,N0) / L max
[0188] Where N represents the number of CPU resources required by VNF during the prediction period;
[0189] P1 represents the first predicted value of the required CPU resource quantity of the VNF within the prediction period;
[0190] P2 represents a second predicted value of the amount of CPU resources required by the VNF during the prediction period;
[0191] N0 represents the minimum allocation quantity of the required CPU resources of the VNF within the preset prediction period;
[0192] L max Indicates the preset maximum CPU usage of the VNF.
[0193] In some embodiments of the present disclosure, the second model training module is further included, which is used to:
[0194] Acquire first historical operation data of the VNF; wherein the first historical operation data of the VNF includes historical operation data of the VNF in a first historical operation period and the amount of CPU resources required by the VNF in a first historical prediction period;
[0195] Acquire the second historical operation data of the VNF; wherein the second historical operation data of the VNF includes the historical operation data of the VNF in the second historical operation period and the required CPU resource quantity of the VNF in the second historical prediction period;
[0196] Extracting long-term operation features from the historical operation data of the VNF in the first historical operation period, taking the long-term operation features as input and the required CPU resource quantity of the VNF in the first historical prediction period as output, constructing and training a long-term prediction model for VNF load;
[0197] The short-term operation features are extracted from the historical operation data of the VNF in the second historical operation period, and a VNF load short-term prediction model is constructed and trained with the short-term operation features as input and the required CPU resource quantity of the VNF in the second historical prediction period as output.
[0198] In some embodiments of the present disclosure, the CPU resource scheduling module 1103 is specifically used to: determine the CPU over-allocation ratio corresponding to the VNF within the prediction period according to the required number of CPU resources of the VNF within the prediction period while ensuring that the number of virtual central processing units vCPU of the VNF remains unchanged; and schedule the CPU resources corresponding to the VNF within the prediction period based on the CPU over-allocation ratio corresponding to the VNF within the prediction period.
[0199] In some embodiments of the present disclosure, the VNF is a non-cloud native VNF.
[0200] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0201] Refer to the following Fig.12 1200 according to this embodiment of the present disclosure is described. Fig.12 The electronic device 1200 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0202] like Fig.12 As shown, the electronic device 1200 is in the form of a general computing device. The components of the electronic device 1200 may include but are not limited to: at least one processing unit 1210, at least one storage unit 1220, and a bus 1230 connecting different system components (including the storage unit 1220 and the processing unit 1210).
[0203] The storage unit stores a program code, which can be executed by the processing unit 1210, so that the processing unit 1210 performs the steps of various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification. For example, the processing unit 1210 can perform the following steps of the above method embodiment:
[0204] Obtaining the operation data of the virtualized network function VNF during the operation period;
[0205] Based on the operation data of the VNF in the operation period, the trained VNF load prediction model is used to determine the amount of central processing unit CPU resources required by the VNF in the prediction period;
[0206] The actual allocated CPU resources corresponding to the VNF within the prediction period are scheduled according to the required CPU resource quantity of the VNF within the prediction period.
[0207] The storage unit 1220 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 12201 and / or a cache storage unit 12202 , and may further include a read-only storage unit (ROM) 12203 .
[0208] The storage unit 1220 may also include a program / utility 12204 having a set (at least one) of program modules 12205, such program modules 12205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0209] Bus 1230 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0210] The electronic device 1200 may also communicate with one or more external devices 1240 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 1200, and / or communicate with any device that enables the electronic device 1200 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1250. Furthermore, the electronic device 1200 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 1260. As shown, the network adapter 1260 communicates with other modules of the electronic device 1200 via a bus 1230. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0211] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0212] In particular, according to an embodiment of the present disclosure, the process described with reference to the flowchart above may be implemented as a computer program product, which includes: a computer program, which implements the resource scheduling method for virtualized network functions when executed by a processor.
[0213] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, which may be a readable signal medium or a readable storage medium. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above “Exemplary Method” section of this specification.
[0214] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0215] In the present disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0216] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0217] In a specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0218] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0219] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0220] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0221] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
Claims
1. A resource scheduling method for virtualized network functions, characterized in that: include: Obtaining the operation data of the virtualized network function VNF during the operation period; Based on the operation data of the VNF in the operation period, the number of central processing unit CPU resources required by the VNF in the prediction period is determined using the trained VNF load prediction model; The actual allocated CPU resources corresponding to the VNF within the prediction period are scheduled according to the required number of CPU resources of the VNF within the prediction period.
2. The resource scheduling method for virtualized network functions according to claim 1, characterized in that: After scheduling the actually allocated CPU resources corresponding to the VNF in the prediction period according to the required CPU resource quantity of the VNF in the prediction period, the resource scheduling method of the virtualized network function further includes: Monitor the amount of available CPU resources of the node where the VNF is located; When it is monitored that the number of available CPU resources of the node where the VNF is located is less than a first preset threshold, determining the network element priority corresponding to each VNF among all VNFs on the node where the VNF is located; According to the network element priority corresponding to each VNF among all VNFs on the node where the VNF is located, at least one VNF on the node where the VNF is located is scheduled and evacuated to other nodes, so that the number of available CPU resources on the node where the VNF is located is greater than or equal to the first preset threshold.
3. The resource scheduling method for virtualized network functions according to claim 2, characterized in that: Determining the network element priority corresponding to each VNF among all VNFs on the node where the VNF is located includes: Obtaining attribute information of each VNF among all VNFs on the node where the VNF is located; Determine cloud native attribute information, migration impact information, and network element type information of each VNF according to the attribute information of each VNF; The network element priority corresponding to each VNF is calculated based on the cloud native attribute information, migration impact information and network element type information of each VNF.
4. The resource scheduling method for virtualized network functions according to claim 3, characterized in that: The network element priority corresponding to each VNF is calculated according to the cloud native attribute information, migration impact information, and network element type information of each VNF according to the following formula: U i =c i ×w ci +m i ×w mi +T i Among them, U i Indicates the network element priority corresponding to the i-th VNF; c i represents the cloud native attribute parameter of the i-th VNF, w ci represents the cloud native attribute parameter coefficient of the i-th VNF; m i represents the migration impact parameter of the i-th VNF, w mi represents the migration impact parameter coefficient of the i-th VNF; T i Indicates the network element type parameter of the i-th VNF.
5. The resource scheduling method for virtualized network functions according to claim 1, characterized in that: Obtain the operation data of the virtualized network function VNF during the operation period, including: The operation data of the VNF during the operation period is obtained at fixed time intervals.
6. The resource scheduling method for virtualized network functions according to claim 1, characterized in that: Before obtaining the operation data of the virtualized network function VNF in the operation period, the resource scheduling method of the virtualized network function further includes: Monitor the CPU occupancy of the VNF; The operation data of the virtualized network function VNF during the operation period is obtained, including: When it is monitored that the CPU occupancy rate of the VNF exceeds a second preset threshold, the operation data of the VNF during the operation period is obtained.
7. The resource scheduling method for virtualized network functions according to claim 1, characterized in that: Obtain the operation data of the virtualized network function VNF during the operation period, including: During the initialization phase of creating the VNF, the operation data of the VNF during the operation period is obtained.
8. The resource scheduling method for virtualized network functions according to claim 1, characterized in that: Before determining the amount of central processing unit (CPU) resources required by the VNF in the prediction period by using the trained VNF load prediction model based on the operation data of the VNF in the operation period, the resource scheduling method for the virtualized network function further includes: Obtaining historical operation data of the VNF; wherein the historical operation data of the VNF includes the historical operation data of the VNF in a first historical period and the amount of CPU resources required by the VNF in a second historical period; Taking the required CPU resource quantity of the VNF in the second historical period as output and the historical operation data of the VNF in the first historical period as input, the VNF load prediction model is constructed and trained to obtain a trained VNF load prediction model.
9. The resource scheduling method for virtualized network functions according to claim 1, characterized in that: The VNF load prediction model includes a VNF load long-term prediction model and a VNF load short-term prediction model.
10. The resource scheduling method for virtualized network functions according to claim 9, characterized in that: Obtain the operation data of the virtualized network function VNF during the operation period, including: Obtaining operation data of the VNF during a first operation period; Obtaining operation data of the VNF during the second operation period; The first operating time period has a greater length than the second operating time period.
11. The resource scheduling method for virtualized network functions according to claim 10, characterized in that: Based on the operation data of the VNF in the operation period, the trained VNF load prediction model is used to determine the amount of central processing unit CPU resources required by the VNF in the prediction period, including: Inputting the operation data of the VNF in the first operation period into the trained VNF load long-term prediction model to predict a first prediction value of the required CPU resource quantity of the VNF in the prediction period; Inputting the operation data of the VNF in the second operation period into the trained VNF load short-term prediction model to predict a second prediction value of the required CPU resource quantity of the VNF in the prediction period; The required number of CPU resources for the VNF within the prediction period is calculated based on the first prediction value and the second prediction value.
12. The resource scheduling method for virtualized network functions according to claim 11, characterized in that: The required CPU resource quantity of the VNF within the prediction period is calculated according to the first prediction value and the second prediction value according to the following formula: N=max(P1,P2,N0) / L max Wherein, N represents the number of CPU resources required by the VNF during the prediction period; P1 represents a first predicted value of the amount of CPU resources required by the VNF within the prediction period; P2 represents a second predicted value of the amount of CPU resources required by the VNF within the prediction period; N0 represents the minimum allocation quantity of the required CPU resources of the VNF within the preset prediction period; L max Indicates the preset maximum CPU occupancy of the VNF.
13. The resource scheduling method for virtualized network functions according to claim 9, characterized in that: Before determining the amount of central processing unit (CPU) resources required by the VNF in the prediction period by using the trained VNF load prediction model based on the operation data of the VNF in the operation period, the resource scheduling method for the virtualized network function further includes: Acquire the first historical operation data of the VNF; wherein the first historical operation data of the VNF includes the historical operation data of the VNF in the first historical operation period and the required CPU resource quantity of the VNF in the first historical prediction period; Acquire the second historical operation data of the VNF; wherein the second historical operation data of the VNF includes the historical operation data of the VNF in the second historical operation period and the required CPU resource quantity of the VNF in the second historical prediction period; Extracting long-term operation features from the historical operation data of the VNF in the first historical operation period, taking the long-term operation features as input and the required CPU resource quantity of the VNF in the first historical prediction period as output, constructing and training the VNF load long-term prediction model; Extract short-term operation features from the historical operation data of the VNF during the second historical operation period, use the short-term operation features as input, and use the required number of CPU resources of the VNF during the second historical prediction period as output to build and train the VNF load short-term prediction model.
14. The resource scheduling method for virtualized network functions according to claim 1, characterized in that: Scheduling the actual allocated CPU resources corresponding to the VNF within the prediction period according to the required CPU resource quantity of the VNF within the prediction period includes: While ensuring that the number of virtual central processing units (vCPUs) of the VNF remains unchanged, determining the CPU over-allocation ratio corresponding to the VNF in the prediction period according to the number of CPU resources required by the VNF in the prediction period; The CPU resources corresponding to the VNF are scheduled within the prediction period based on the CPU over-allocation ratio corresponding to the VNF within the prediction period.
15. The resource scheduling method for virtualized network functions according to any one of claims 1 to 14, characterized in that: The VNF is a non-cloud native VNF.
16. A resource scheduling device for virtualized network functions, characterized in that: include: An operation data acquisition module is used to acquire the operation data of the virtualized network function VNF during the operation period; A CPU resource prediction module is used to determine the amount of central processing unit (CPU) resources required by the VNF in the prediction period based on the operation data of the VNF in the operation period and using the trained VNF load prediction model; The CPU resource scheduling module is used to schedule the actual allocated CPU resources corresponding to the VNF within the prediction period according to the required CPU resource quantity of the VNF within the prediction period.
17. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the resource scheduling method for virtualized network functions as described in any one of claims 1 to 15 by executing the executable instructions.
18. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the resource scheduling method for virtualized network functions described in any one of claims 1 to 15 is implemented.
19. A computer program product comprising: A computer program or instruction, characterized in that when the computer program or instruction is executed by a processor, it implements the resource scheduling method for virtualized network functions as described in any one of claims 1 to 15.
Citation Information
Cited By
Dynamic resource allocation method and device based on container cloud and storage medium
CN119292789A
