Method, device and storage medium for determining energy consumption of virtual network element

By obtaining the CPU resource occupation information of VNFC instances and calculating the energy consumption of virtual network elements, the accuracy of energy consumption measurement in the virtualized network function is solved, and the energy consumption estimation under different resource attributes is realized, which is suitable for network resource virtualization environments.

CN115543597BActive Publication Date: 2025-08-22CHINA TELECOM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110741341.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-30
Publication Date
2025-08-22
Estimated Expiration
2041-06-30

AI Technical Summary

Technical Problem

The prior art cannot accurately calculate the energy consumption of virtualized network functions in 5G core networks, especially in network function virtualization infrastructure. The energy consumption measurement of virtual network elements cannot be directly mapped to virtual network functions and network functions, resulting in difficulty in energy efficiency analysis.

Method used

By obtaining the computing resource occupancy information of the VNFC instance, including the CPU clock frequency and number of cores, combining the processor utilization and average usage values, the resource occupancy of the VNFC instance on NFVI, and based on this, calculate the energy consumption of the virtual network element, and gradually accumulate to the energy consumption of the VNF and NF instances.

Benefits of technology

It provides a more accurate virtual network element energy consumption calculation method, which is suitable for network resource virtualization scenarios, and can perform energy consumption estimation under different virtual computing resource attributes, improving the universality and accuracy of the calculation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115543597B_ABST
    Figure CN115543597B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, device, and storage medium for determining energy consumption of a virtual network element, wherein the method includes: obtaining computing resource occupancy information based on computing resources allocated to a VNFC instance; the attributes of the computing resources include CPU clock frequency and number of CPU cores; obtaining the total computing resource occupancy based on the computing resource occupancy information; obtaining the EC information of the VNFC instance to be tested based on the computing resource occupancy of the VNFC instance to be tested, the total CPU resource consumption information of all VNFC instances of the NFVI, and the total energy consumption information of the NFVI; calculating the EC information of the VNF to be tested based on the EC information of the VNFC instance and obtaining the EC information of the NF instance to be tested. The method, device, and storage medium of the present disclosure calculate the usage of computing resources by the number of CPU cores and clock rate, do not require that the virtual computing resources occupied by the NF / VNF must be the same, are more universal, have more accurate calculation results, and are more suitable for scenarios where network resources are virtualized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method, device and storage medium for determining energy consumption of a virtual network element. Background Art

[0002] Currently, the energy efficiency calculation method defined by 3GPP for 5G networks uses the ratio of DV to EC, where DV represents data throughput and EC represents energy consumption. Estimating the energy consumption of 5G core network (5GC) network elements is an essential measurement for 5G network energy efficiency analysis. With the widespread use of NFV (Network Function Virtualization) in 5GC, different entities of the same type of network element, and entities of different types of network elements, may include one or more VNFs (Virtualized Network Functions). A VNF can be composed of one or more VNF components (VNFCs). These VNFCs are deployed on the Network Function Virtualization Infrastructure (NFVI), sharing the same physical resource pool.

[0003] Shared physical resources include computing, storage, internal I / O bandwidth, external I / O bandwidth, etc. In order to evaluate the energy efficiency of 5GC, it is necessary to measure the energy consumption of these VNFs. In NVFI, the energy consumption of the entire NFVI can only be measured as a whole. Figure 1 As shown in Figure 2, the relationship between VNFC and NFVI may include: multiple VNFCs constituting a VNF may be deployed on multiple NFVIs; multiple VNFCs can run simultaneously on a single NFVI. Therefore, energy measurements for NFVI cannot be directly mapped to VNFs and NFs. Therefore, a method for calculating VNFC energy consumption is needed. Summary of the Invention

[0004] In view of this, a technical problem to be solved by the present invention is to provide a method, device and storage medium for determining energy consumption of a virtual network element.

[0005] According to a first aspect of the present disclosure, a method for determining energy consumption of a virtual network element is provided, comprising: obtaining occupancy information of the computing resources allocated to a VNFC instance; wherein the attributes of the computing resources include: CPU clock frequency and number of CPU cores; obtaining the total occupancy of the computing resources corresponding to the NFVI based on the occupancy information of the computing resources corresponding to the VNFC instance; wherein the VNFC instance is deployed on the NFVI; obtaining EC information of the VNFC instance to be tested based on the computing resource occupancy of the VNFC instance to be tested, the sum of CPU resource consumption information of all VNFC instances of the NFVI, and the total energy consumption information of the NFVI; calculating the EC information of the VNF instance to be tested based on the EC information of each VNFC instance; and obtaining the EC information of the NF instance to be tested based on the EC information of each VNF instance to be tested.

[0006] Optionally, obtaining the occupancy information of the computing resources according to the computing resources allocated to the VNFC instance includes: obtaining a processor utilization of the VNFC instance; and obtaining the occupancy information of the computing resources based on the processor utilization, the CPU clock frequency, and the number of CPU cores.

[0007] Optionally, the computing resource occupancy information vCPU Resource Usage = ProcessorUtilization*vCpuClockSpeed*vCpuCores; wherein ProcessorUtilization is the processor utilization, vCpuClockSpeed ​​is the CPU clock frequency, and vCpuCores is the number of CPU cores.

[0008] Optionally, obtaining the occupancy information of the computing resources according to the computing resources allocated to the VNFC instance includes: obtaining an average processor usage of the VNFC instance; and obtaining the occupancy information of the computing resources based on the average processor usage, the CPU clock frequency, and the number of CPU cores.

[0009] Optionally, the computing resource usage information vCPU Resource Usage=vCpuUsageMean*vCpuClockSpeed*vCpuCores; wherein vCpuUsageMean is the average usage of the processor, vCpuClockSpeed ​​is the CPU clock frequency, and vCpuCores is the number of CPU cores.

[0010] Optionally, obtaining the total amount of computing resource occupancy corresponding to the NFVI based on the occupancy information of the computing resources corresponding to the VNFC instance includes: calculating the sum of the occupancy information of the computing resources corresponding to all the VNFC instances to obtain the total amount of computing resource occupancy.

[0011] Optionally, the EC information of the VNFC instance

[0012]

[0013] Among them, R VNFC,CPU is the CPU resource usage of the VNFC instance to be tested, ∑ VNFC R VNFC,CPU The total CPU resource consumption of all VNFC instances, EC NFVI is the total energy consumption information of the NFVI.

[0014] Optionally, calculating the EC information of the VNF instance to be tested based on the EC information of the VNFC instance includes: calculating the sum of the EC information of each VNFC instance constituting the VNF instance to be tested, and obtaining the EC information of the VNF instance to be tested.

[0015] Optionally, obtaining the EC information of the NF instance to be tested based on the EC information of each VNF instance to be tested includes: calculating the sum of the EC information of each VNF instance constituting the NF instance to be tested, and obtaining the EC information of the NF instance to be tested.

[0016] According to a second aspect of the present disclosure, a virtual network element energy consumption determination device is provided, comprising: a resource occupancy determination module, configured to obtain occupancy information of the computing resources allocated to a VNFC instance; wherein the attributes of the computing resources include: CPU clock frequency and number of CPU cores; a total resource amount determination module, configured to obtain the total occupancy of the computing resources corresponding to the NFVI based on the occupancy information of the computing resources corresponding to the VNFC instance; wherein the VNFC instance is deployed on the NFVI; a first EC information acquisition module, configured to obtain EC information of the VNFC instance to be tested based on the computing resource occupancy of the VNFC instance to be tested, the total CPU resource consumption information of all VNFC instances of the NFVI, and the total energy consumption information of the NFVI; a second EC information acquisition module, configured to calculate EC information of the VNF instance to be tested based on the EC information of each VNFC instance; and a third EC information acquisition module, configured to obtain EC information of the NF instance to be tested based on the EC information of each VNF instance to be tested.

[0017] Optionally, the resource occupancy determination module is configured to obtain a processor utilization rate of the VNFC instance; and obtain occupancy information of the computing resources based on the processor utilization rate, the CPU clock frequency, and the number of CPU cores.

[0018] Optionally, the computing resource occupancy information vCPU Resource Usage = ProcessorUtilization*vCpuClockSpeed*vCpuCores; wherein ProcessorUtilization is the processor utilization, vCpuClockSpeed ​​is the CPU clock frequency, and vCpuCores is the number of CPU cores.

[0019] Optionally, the resource occupancy determination module is configured to obtain an average processor usage value of the VNFC instance; and obtain occupancy information of the computing resources based on the average processor usage value, the CPU clock frequency, and the number of CPU cores.

[0020] Optionally, the computing resource usage information vCPU Resource Usage=vCpuUsageMean*vCpuClockSpeed*vCpuCores; wherein vCpuUsageMean is the average usage of the processor, vCpuClockSpeed ​​is the CPU clock frequency, and vCpuCores is the number of CPU cores.

[0021] Optionally, the resource total amount determination module is configured to calculate the sum of the occupancy information of the computing resources corresponding to all the VNFC instances to obtain the total occupancy of the computing resources.

[0022] Optionally, the EC information of the VNFC instance

[0023]

[0024] Among them, R VNFC,CPU is the CPU resource usage of the VNFC to be tested, ∑ VNFC R VNFC,CPU The total CPU resource consumption of all VNFC instances, EC NFVI is the total energy consumption information of the NFVI.

[0025] Optionally, the second EC information obtaining module is used to calculate the sum of EC information of each VNFC instance constituting the VNF instance to be tested, and obtain the EC information of the VNF instance to be tested.

[0026] Optionally, the third EC information acquisition module is used to calculate the sum of EC information of each VNF instance constituting the NF instance to be tested, and obtain the EC information of the NF instance to be tested.

[0027] According to a third aspect of the present disclosure, a device for determining energy consumption of a virtual network element is provided, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the method described above based on instructions stored in the memory.

[0028] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the instructions are executed by a processor to perform the method described above.

[0029] The disclosed method, device, and storage medium for determining virtual network element energy consumption obtain occupancy information of computing resources allocated to a VNFC instance, obtain the total amount of computing resource occupancy based on the computing resource occupancy information, and obtain the EC information of the VNFC instance based on the CPU resource occupancy of the VNFC instance to be tested, the total CPU resource consumption information of all VNFC instances, and the total energy consumption information of the NFVI. The EC information of the VNF instance to be tested is calculated based on the EC information of the VNFC instance, and the EC information of the NF instance to be tested is obtained. The method calculates the usage of computing resources based on the number of CPU cores and clock rate, and does not require that the virtual computing resources occupied by the NF instance / VNF instance must be the same. Therefore, the method is more universal, the calculation results are more accurate, and the method is more suitable for scenarios where network resources are virtualized. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0031] Figure 1 This is a diagram of NVF deployment;

[0032] Figure 2 1 is a flow chart of an embodiment of a method for determining energy consumption of a virtual network element according to the present disclosure;

[0033] Figure 3 A schematic diagram of a process for obtaining computing resource occupancy information in an embodiment of a method for determining virtual network element energy consumption according to the present disclosure;

[0034] Figure 4This is a flow chart of obtaining computing resource occupancy information in another embodiment of the method for determining virtual network element energy consumption according to the present disclosure;

[0035] Figure 5 This is a module diagram of an embodiment of a device for determining energy consumption of a virtual network element according to the present disclosure;

[0036] Figure 6 This is a module diagram of another embodiment of the device for determining energy consumption of a virtual network element according to the present disclosure. DETAILED DESCRIPTION

[0037] The present disclosure is described more fully below with reference to the accompanying drawings, which illustrate exemplary embodiments of the present disclosure. The technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present disclosure.

[0038] Figure 2 FIG. 1 is a flow chart of an embodiment of a method for determining energy consumption of a virtual network element according to the present disclosure, as shown in FIG. Figure 2 As shown:

[0039] Step 201: Obtain computing resource occupancy information based on computing resources allocated to the VNFC instance; attributes of the computing resources include CPU (Central Processing Unit) clock frequency and number of CPU cores.

[0040] Step 202: Based on the occupancy information of the computing resources corresponding to the VNFC instance, the total occupancy of the computing resources corresponding to the NFVI is obtained; the VNFC instance is deployed on the NFVI.

[0041] Step 203: Obtain EC information of the VNFC instance to be tested based on the computing resource usage of the VNFC instance to be tested, the total CPU resource consumption information of all VNFC instances of the NFVI, and the total energy consumption information of the NFVI; the EC (Energy Consumption) information is energy consumption information.

[0042] Step 204: Calculate the EC information of the VNF instance to be tested based on the EC information of the VNFC instance.

[0043] Step 205: Obtain the EC information of the NF (Network Function) instance to be tested based on the EC information of each VNF instance to be tested.

[0044] The virtual network element energy consumption determination method disclosed in the present invention calculates the network element (NF) energy consumption based on the computing resource occupancy. For the computing resources (Compute Resource) allocated to the VNFC instance, the computing resource occupancy (vCPU Resource Usage) can be obtained by the following two methods, and its unit is MegaHertz (MHz).

[0045] Figure 3 FIG. 1 is a flow chart of obtaining computing resource occupancy information in an embodiment of a method for determining virtual network element energy consumption according to the present disclosure, as shown in FIG. Figure 3 As shown:

[0046] Step 301: Obtain the processor utilization of the VNFC instance. Existing methods can be used to obtain processor utilization. Processor utilization is a reported value of a measurement quantity that quantifies the ratio of the total time spent by one or more computing resources (determined based on the required measurement range) executing instructions corresponding to a specific context during a measurement period to the measurement period, expressed as a percentage.

[0047] Step 302: Obtain computing resource occupancy information based on processor utilization, CPU clock frequency, and number of CPU cores.

[0048] In one embodiment, the computing resource usage information is obtained based on the average ProcessorUtilization of the VNFC instance within a given time range:

[0049] vCPU Resource Usage=ProcessorUtilization*vCpuClockSpeed*

[0050] vCpuCores(1-1);

[0051] ProcessorUtilization is the processor utilization, vCpuClockSpeed ​​is the CPU clock frequency of the computing resource, and vCpuCores is the number of CPU cores included in the computing resource.

[0052] vCpuClockSpeed ​​is the CPU clock speed of the compute resource, and vCpuCores is the number of CPU cores in the compute resource. Processor Utilization is defined in Section 6.6 of ETSI GS NFV-TST008. The value of Processor Utilization for a VNFC instance is equal to the ratio of the time it takes to execute instructions within a specific scope (e.g., the process containing the VNFC instance) on one or more compute resources to the duration of the measurement interval.

[0053] Figure 4 FIG. 1 is a flow chart of obtaining computing resource occupancy information in another embodiment of the method for determining virtual network element energy consumption according to the present disclosure, as shown in FIG. Figure 4 As shown:

[0054] Step 401: Obtain the average processor usage of the VNFC instance. Existing methods can be used to obtain the average processor usage. The average processor usage is the average value of processor usage; processor usage is a reported value of a measurement quantity that quantifies the total time spent by one or more computing resources (determined based on the required measurement range) executing instructions corresponding to a specific context during a measurement period.

[0055] Step 402: Obtain computing resource occupancy information based on the average processor usage, CPU clock frequency, and number of CPU cores.

[0056] In one embodiment, for fully virtualized computing resources, the occupancy information of the computing resources can also be calculated based on the vCpuUsageMean (recorded in cf. ETSI GSNFV IFA 027 clause 7.1.2) provided by the VIM (Virtualized Infrastructure Manager).

[0057] vCPU Resource Usage=vCpuUsageMean*vCpuClockSpeed*vCpuCores (1-2);

[0058] vCpuUsageMean is the average processor usage time, vCpuClockSpeed ​​is the CPU clock frequency of the vCPU, and vCpuCores is the number of CPU cores of the vCPU.

[0059] In one embodiment, the total computing resource usage is calculated by summing the computing resource usage information corresponding to all VNFC instances. For example, based on the results of formulas (1-1) and (1-2), for a VNFC instance to be tested deployed on a certain NFVI, the total vCPU Resource Usage on this NFVI can be further calculated using the following formula (1-3):

[0060] R VNFC,CPU =∑ ComputeResource {vCPU Resource Usage} (1-3);

[0061] ComputeResource is all computing resources on the NFVI where the VNFC instance to be tested is deployed. For example, for each vCPU on the NFVI, the EC estimate of the VNFC instance to be tested is further calculated:

[0062]

[0063] The numerator is the CPU Resource Consumption of the current VNFC instance to be tested, and the denominator is the sum of the CPU Resource Consumption of all VNFC instances (including the current VNFC instance to be tested) deployed on the NFVI where the current VNFC instance to be tested is deployed, that is, R VNFC,CPU is the CPU resource usage of the VNFC instance to be tested, ∑ VNFC R VNFC,CPU The total CPU resource consumption of all VNFC instances, EC NFVI It is the total energy consumption information of NFVI.

[0064] In one embodiment, the EC information of each VNFC instance constituting the VNF instance to be tested is summed to obtain the EC information of the VNF instance to be tested. The EC information of each VNF instance constituting the NF instance to be tested is summed to obtain the EC information of the NF instance to be tested.

[0065] In formula 1-4, EC NVFI The total energy consumption of the NFVI platform is measured by the instrument on the NFVI, in joules. The EC of the VNF instance under test is calculated by summing the EC of each VNFC instance that constitutes the VNF instance under test:

[0066] EC VNF =∑ VNFCs EC VNFC (1-5);

[0067] Furthermore, the EC of the NF instance to be tested is calculated by accumulating the ECs of the VNF instances that make up the NF instance to be tested:

[0068] EC NF =∑ VNFs EC VNF (1-6).

[0069] The virtual network element energy consumption determination method disclosed in the present invention uses the number of CPU cores and clock rate as necessary parts to measure CPU usage. The number of CPU cores and CPU clock frequency information contained in the computing resources are strongly correlated with the processing time required for the computing resources to process the same number of instructions. Due to the virtualization of resources, different VNFC instances that constitute NF instances / VNF instances can be deployed simultaneously on NFVIs with different computing resource attributes (for example, multiple NFVIs with different hardware resource configurations); on the same NVFI, the mapping relationship between different virtual computing resources and physical computing resources can also be independently configured (for example, exclusive use of a core, or sharing of several cores).

[0070] Existing CPU usage calculation methods, such as Processor Utilization or vCpuUsageMean, only consider the instruction processing time and time ratio, and do not reflect factors related to computing resources and computing power (number of cores and clock frequency). When using existing computing resource measurements for calculations, the CPU usage of different virtual computing resources can only be accumulated if the virtual computing resource attributes occupied by NF / VNF instances are exactly the same.

[0071] The disclosed method for determining virtual network element energy consumption uses duration and the computing power of virtual resources (number of cores and clock frequency) as inputs to calculate computing resource usage. This method does not require that NF instances or VNF instances occupy identical virtual computing resources, making it more universal and accurate, making it more suitable for network resource virtualization scenarios. The energy consumption (in joules) of a VNFC instance can be directly estimated using its CPU resource usage, allowing for direct estimation of the computing power consumption of the core network and virtualized network elements.

[0072] In one embodiment, Figure 5 As shown, the present disclosure provides a virtual network element energy consumption determination device 50, including: a resource occupancy determination module 51, a total resource determination module 52, a first EC information acquisition module 53, a second EC information acquisition module 54 and a third EC information acquisition module 55.

[0073] The resource occupancy determination module 51 obtains computing resource occupancy information based on the computing resources allocated to the VNFC instance. The computing resource attributes include CPU clock frequency and number of CPU cores. The total resource amount determination module 52 obtains the total amount of computing resource occupancy corresponding to the NFVI based on the computing resource occupancy information corresponding to the VNFC instance. The VNFC instance is deployed on the NFVI.

[0074] The first EC information acquisition module 53 obtains the EC information of the VNFC instance to be tested based on the CPU resource usage of the VNFC instance to be tested, the total CPU resource consumption of all VNFC instances, and the total energy consumption of the NFVI. The second EC information acquisition module 54 calculates the EC information of the VNF instance to be tested based on the EC information of the VNFC instance. The third EC information acquisition module 55 obtains the EC information of the NF instance to be tested based on the EC information of each VNF instance to be tested.

[0075] In one embodiment, the resource occupancy determination module 51 obtains the processor utilization of the VNFC instance and obtains computing resource occupancy information based on the processor utilization, CPU clock frequency, and number of CPU cores. Alternatively, the resource occupancy determination module 51 obtains the average processor usage of the VNFC instance and obtains computing resource occupancy information based on the average processor usage, CPU clock frequency, and number of CPU cores.

[0076] The total resource amount determination module 52 calculates the sum of the computing resource occupancy information corresponding to all VNFC instances to obtain the total computing resource occupancy. The second EC information acquisition module 54 calculates the sum of the EC information of each VNFC instance that constitutes the VNF instance to be tested to obtain the EC information of the VNF instance to be tested. The third EC information acquisition module 55 calculates the sum of the EC information of each VNF instance that constitutes the NF instance to be tested to obtain the EC information of the NF instance to be tested.

[0077] In one embodiment, Figure 6 FIG. 1 is a module diagram of another embodiment of the cloud resource allocation device according to the present disclosure. Figure 6 As shown, the apparatus may include a memory 61, a processor 62, a communication interface 63, and a bus 64. The memory 61 is used to store instructions, the processor 62 is coupled to the memory 61, and the processor 62 is configured to execute the above-mentioned method for determining the energy consumption of a virtual network element based on the instructions stored in the memory 61.

[0078] Memory 61 can be high-speed RAM, non-volatile memory, or a memory array. Memory 61 can also be divided into blocks, and the blocks can be combined into virtual volumes according to certain rules. Processor 62 can be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the virtual network element energy consumption determination method disclosed herein.

[0079] In one embodiment, the present disclosure provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, implement the method for determining energy consumption of a virtual network element in any of the above embodiments.

[0080] The virtual network element energy consumption determination method, device and storage medium in the above-mentioned embodiment obtains the occupancy information of the computing resources allocated to the VNFC instance, obtains the total computing resource occupancy based on the computing resource occupancy information, obtains the EC information of the VNFC instance based on the CPU resource occupancy of the VNFC instance to be tested, the total CPU resource consumption information of all VNFC instances and the total energy consumption information of NFVI; calculates the EC information of the VNF instance to be tested based on the EC information of the VNFC instance and obtains the EC information of the NF instance to be tested; calculates the usage of computing resources by the number of CPU cores and clock rate, does not require the virtual computing resources occupied by the NF instance / VNF instance to be the same, is more universal, has more accurate calculation results, and is more suitable for scenarios of network resource virtualization.

[0081] The methods and systems of the present disclosure may be implemented in many ways. For example, the methods and systems of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above unless otherwise specified. In addition, in some embodiments, the present disclosure may also be implemented as programs recorded in a recording medium, which include machine-readable instructions for implementing the methods according to the present disclosure. Therefore, the present disclosure also covers recording media that store programs for executing the methods according to the present disclosure.

[0082] The description of the present disclosure is provided for purposes of illustration and description and is not intended to be exhaustive or to limit the disclosure to the disclosed form. Many modifications and variations will be apparent to those skilled in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present disclosure and to enable those skilled in the art to understand the present disclosure and design various embodiments with various modifications suitable for specific applications.

Claims

1. A method for determining energy consumption of a virtual network element, comprising: Obtain computing resource occupancy information based on the computing resources allocated to the VNFC instance; The attributes of the computing resources include: CPU clock frequency and number of CPU cores; and obtaining the occupancy information of the computing resources allocated to the VNFC instance includes: Obtaining a processor utilization rate of the VNFC instance, and obtaining occupancy information of the computing resource based on the processor utilization rate, the CPU clock frequency, and the number of CPU cores; Obtaining a total amount of computing resource occupancy corresponding to the NFVI based on the occupancy information of the computing resources corresponding to the VNFC instance, wherein the VNFC instance is deployed on the NFVI; Obtaining EC information of the VNFC instance to be tested based on the computing resource usage of the VNFC instance to be tested, the total CPU resource consumption information of all VNFC instances of the NFVI, and the total energy consumption information of the NFVI; Calculate the EC information of the VNF instance to be tested based on the EC information of each VNFC instance; The EC information of the NF instance to be tested is obtained based on the EC information of each VNF instance to be tested.

2. The method according to claim 1, wherein Occupancy information of the computing resources ; in, is the processor utilization, is the CPU clock frequency, is the number of CPU cores.

3. The method of claim 1 , wherein obtaining, based on the computing resources allocated to the VNFC instance, the occupancy information of the computing resources comprises: Obtaining an average processor usage of the VNFC instance; Based on the average processor usage, the CPU clock frequency, and the number of CPU cores, the occupancy information of the computing resources is obtained.

4. The method according to claim 3, wherein: Occupancy information of the computing resources ; in, Use the average value for the processor, is the CPU clock frequency, is the number of CPU cores.

5. The method according to claim 1, wherein obtaining the total amount of computing resource occupancy corresponding to the NFVI based on the occupancy information of the computing resources corresponding to the VNFC instance comprises: Calculate the sum of the occupancy information of the computing resources corresponding to all the VNFC instances of the NFVI to obtain the total occupancy of the computing resources.

6. The method of claim 1, wherein: EC information of the VNFC instance ; in, is the CPU resource usage of the VNFC instance to be tested, is the total CPU resource consumption information of all VNFCs of the NFVI, is the total energy consumption information of the NFVI.

7. The method according to claim 1, wherein calculating the EC information of the VNF instance to be tested based on the EC information of each VNFC instance comprises: Calculate the sum of EC information of each VNFC instance constituting the VNF instance to be tested to obtain the EC information of the VNF instance to be tested.

8. The method according to claim 1, wherein obtaining the EC information of the NF instance to be tested based on the EC information of each VNF instance to be tested comprises: Calculate the sum of EC information of each VNF instance constituting the NF instance to be tested to obtain the EC information of the NF instance to be tested.

9. A device for determining energy consumption of a virtual network element, comprising: a resource occupancy determination module, configured to obtain occupancy information of the computing resources allocated to the VNFC instance; The attributes of the computing resource include: a CPU clock frequency and a number of CPU cores; the resource occupancy determination module is configured to obtain a processor utilization rate of the VNFC instance, and obtain occupancy information of the computing resource based on the processor utilization rate, the CPU clock frequency, and the number of CPU cores; a total resource amount determination module, configured to obtain the total amount of computing resource occupancy corresponding to the NFVI based on the occupancy information of the computing resources corresponding to the VNFC instance, wherein the VNFC instance is deployed on the NFVI; A first EC information obtaining module is configured to obtain EC information of the VNFC instance to be tested based on the computing resource usage of the VNFC instance to be tested, the total CPU resource consumption information of all VNFC instances of the NFVI, and the total energy consumption information of the NFVI; The second EC information obtaining module is used to calculate the EC information of the VNF instance to be tested based on the EC information of each VNFC instance; The third EC information acquisition module is used to obtain the EC information of the NF instance to be tested based on the EC information of each VNF instance to be tested.

10. The device according to claim 9, wherein Occupancy information of the computing resources ; in, is the processor utilization, is the CPU clock frequency, is the number of CPU cores.

11. The device according to claim 9, wherein The resource occupancy determination module is configured to obtain an average processor usage of the VNFC instance; and obtain occupancy information of the computing resources based on the average processor usage, the CPU clock frequency, and the number of CPU cores.

12. The device according to claim 11, wherein Occupancy information of the computing resources ; in, Use the average value for the processor, is the CPU clock frequency, is the number of CPU cores.

13. The apparatus of claim 9, wherein: The resource total amount determination module is configured to calculate the sum of the occupancy information of the computing resources corresponding to all the VNFC instances of the NFVI to obtain the total occupancy of the computing resources.

14. The apparatus of claim 9, wherein: EC information of the VNFC instance ; in, is the computing resource usage of the VNFC instance to be tested, is the total CPU resource consumption information of all VNFC instances of the NFVI, is the total energy consumption information of the NFVI.

15. The apparatus of claim 9, wherein: The second EC information obtaining module is used to calculate the sum of EC information of each VNFC instance constituting the VNF instance to be tested, and obtain the EC information of the VNF instance to be tested.

16. The apparatus of claim 9, wherein: The third EC information acquisition module is used to calculate the sum of EC information of each VNF instance constituting the NF instance to be tested, and obtain the EC information of the NF instance to be tested.

17. A device for determining energy consumption of a virtual network element, comprising: Memory; and a processor coupled to the memory, wherein the processor is configured to execute the method according to any one of claims 1 to 8 based on instructions stored in the memory. 18 . A computer-readable storage medium storing computer instructions, wherein the instructions are executed by a processor to execute the method according to claim 1 .

Citation Information

Patent Citations

  • CPU resource management method and apparatus for virtual machine

    CN106951321A

  • Time delay, resource and energy consumption perceived virtual network online migration method and device

    CN112910960A