WO2017011938A1 - Virtual network function capacity expansion method and apparatus - Google Patents

Virtual network function capacity expansion method and apparatus Download PDF

Info

Publication number
WO2017011938A1
WO2017011938A1 PCT/CN2015/084315 CN2015084315W WO2017011938A1 WO 2017011938 A1 WO2017011938 A1 WO 2017011938A1 CN 2015084315 W CN2015084315 W CN 2015084315W WO 2017011938 A1 WO2017011938 A1 WO 2017011938A1
Authority
WO
WIPO (PCT)
Prior art keywords
vdu
vnf
expansion
infrastructure
vnfd
Prior art date
Application number
PCT/CN2015/084315
Other languages
French (fr)
Chinese (zh)
Inventor
李飞
唐朋成
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2015/084315 priority Critical patent/WO2017011938A1/en
Priority to CN201580041914.5A priority patent/CN106664259B/en
Publication of WO2017011938A1 publication Critical patent/WO2017011938A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]

Definitions

  • the embodiments of the present invention relate to a network function virtualization technology, and in particular, to a method and an apparatus for expanding a virtual network function.
  • NFV Network Functions Virtualization
  • VNFs virtual network functions
  • VNFLs virtual network function links
  • VNFs virtual functions with network functions.
  • the entity is, for example, a VNF with the Mobile Management Entity (MME) function, which is a virtual MME.
  • MME Mobile Management Entity
  • a VNF can be decomposed into a set of virtual network function components (VNFCs), which are carried on the corresponding virtual machines (VMs).
  • VNFCs virtual network function components
  • VNFC instance which is the process of instantiating VNFC
  • the Virtualization Deployment Unit is defined, wherein the infrastructure resources of the VM may specifically include resources such as a central processing unit (CPU), a memory, and a network.
  • the VNF is sensitive to the change of the traffic.
  • the VNFC instance needs to be expanded in time to ensure the service quality.
  • each VNF service corresponds to a fixed VDU, and the infrastructure resource allocation of the VM in the VDU is manually determined in advance.
  • the VDU corresponding to the VNF service needs to be used.
  • the VNFC instance is expanded to meet business requirements.
  • the infrastructure resource allocation amount of the VM specified in the VDU is much larger than the VNF resource usage during the actual operation of the service. , thereby causing VM infrastructure resources The waste of the source.
  • the embodiments of the present invention provide a method and an apparatus for expanding a virtual network function, which can not only meet the resource requirements of the VNF service, but also not waste the infrastructure resources of the VM.
  • the embodiment of the present invention provides a method for expanding a virtual network function VNF, including:
  • a VDU is a VDU currently corresponding to the VNF
  • a VM required for the VNF runtime from all VDUs of the VNFD file according to VM infrastructure resource information in each VDU in the VNFD file and VM infrastructure resources required by the VNF runtime a second VDU with the greatest matching of infrastructure resources;
  • the VNF is expanded according to the second VDU.
  • the expanding the VNF according to the second VDU includes:
  • VNF corresponding to the VNF in the VNFD file is expanded according to the VNFD file, and a new VDU is created in the VNFD file by the VNFD manager.
  • the performing, according to the VM infrastructure resource information in each VDU in the VNFD file, includes:
  • the VDU corresponding to the second vector with the largest degree of matching is used as the second VDU.
  • the creating, by the VNFD manager, a new VDU in the VNFD file includes:
  • VDU creation request Sending a VDU creation request to the network function virtualization orchestrator NFVO; wherein the VDU creation request carries VM infrastructure resource information required by the VNF runtime, for requesting the NFVO to determine that a new VDU needs to be created,
  • the NFVO instructs the VNFD manager to create the new VDU in the VNFD file based on VM infrastructure resource information required by the VNF runtime.
  • the performing, by the second VDU, the VNF is expanded, specifically:
  • the capacity expansion request includes the number of VMs required for capacity expansion and infrastructure resource information of the VM required for capacity expansion;
  • the expansion instruction carries the resource information allocated by the NFVO according to the expansion request for the expansion of the VNF;
  • the embodiment of the present invention provides an apparatus for expanding a virtual network function VNF, including:
  • a determining module configured to determine, according to a resource load of a VM performing a service in the VNF and VM infrastructure resource information in a first VDU in a virtual network descriptor VNFD file, a VM infrastructure resource required by the VNF runtime;
  • the first VDU is a VDU currently corresponding to the VNF;
  • a matching module configured to determine, according to VM infrastructure resource information in each VDU in the VNFD file and VM infrastructure resources required by the VNF runtime, from all VDUs of the VNFD file to run with the VNF The second VDU with the largest matching degree of VM infrastructure resources required;
  • a capacity expansion module configured to expand the VNF according to the second VDU.
  • the expansion module is specifically configured to determine a VM infrastructure resource in the second VDU and a VM infrastructure resource required by the VNF runtime Whether the matching degree is greater than or equal to the preset threshold; if yes, the expansion module expands the VNF according to the second VDU; if not, the expansion module When the VNFD file is initialized, the VDU corresponding to the VNF in the VNFD file expands the VNF, and a new VDU is created in the VNFD file by the VNFD manager.
  • the matching module is specifically configured to perform, according to a resource load and a location of a VM that performs a service in the VNF Obtaining a first vector of VM infrastructure resource information in the first VDU; acquiring a second vector according to VM infrastructure resource information in each VDU in the VNFD file; acquiring the first vector and each of the second The degree of matching between the vectors; the VDU corresponding to the second vector having the largest matching degree is taken as the second VDU.
  • the expansion module is further configured to send a VDU creation request to the network function virtualization orchestrator NFVO; wherein the VDU Creating a request to carry VM infrastructure resource information required by the VNF runtime for requesting the NFVO to determine, after determining that a new VDU needs to be created, the NFVO indicating that the VNFD manager is required to operate according to the VNF
  • the VM infrastructure resource information creates the new VDU in the VNFD file.
  • the expansion module is further configured to send a expansion request to the NFVO according to the second VDU;
  • the expansion request includes the number of VMs required for the capacity expansion and the infrastructure resource information of the VMs required for the expansion;
  • the expansion module is further configured to receive the expansion command sent by the NFVO, and create and start the expansion according to the expansion instruction.
  • the VM is configured to carry the resource information allocated by the NFVO according to the expansion request for the expansion of the VNF.
  • the VNF expansion method and apparatus determine the VM infrastructure resources required for the VNF operation according to the resource load of the VM performing the service in the VNF and the VM infrastructure resource information in the first VDU in the VNFD file, and According to the VM infrastructure resource information in each VDU in the VNFD file and the VM infrastructure resources required by the VNF runtime, the matching degree of the VM infrastructure resources required by the VNF runtime is determined from among all the VDUs of the VNFD file.
  • the VNF is expanded according to the second VDU.
  • the VDUs configured for the VNF service are not used for capacity expansion, and the VM infrastructure resources required for the VNF operation are selected from all the VDUs.
  • the most matching second VDU is expanded, so the configured amount of infrastructure resources of the VM in the second VDU and the amount of VM infrastructure resources required for the VNF runtime The most similar, the expansion of the VNF according to the second VDU can not only meet the resource requirements of the VNF service, but also not waste the infrastructure resources of the VM.
  • FIG. 1 is a schematic diagram of an application scenario of a method for expanding a VNF according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a method for expanding a VNF according to Embodiment 1 of the present invention
  • FIG. 3 is a flowchart of a method for expanding a VNF according to Embodiment 2 of the present invention.
  • FIG. 4 is a flowchart of a method for expanding a VNF according to Embodiment 3 of the present invention.
  • FIG. 5 is a schematic structural diagram of an apparatus for expanding a VNF according to Embodiment 4 of the present invention.
  • FIG. 6 is a schematic structural diagram of a device for expanding a VNF according to Embodiment 7 of the present invention.
  • FIG. 1 is a schematic diagram of an application scenario of a method for expanding a VNF according to an embodiment of the present invention.
  • the scenario is implemented on a cloud platform, where the scenario includes multiple VM1, monitor 2, Virtual Network Function Descriptor (VNFD) manager 3, and network function virtualization orchestrator (Network).
  • the monitor 2 is responsible for monitoring and collecting the resource load and service load of each VM constituting the VNF.
  • the VNFD manager 3 is used to create and manage VNFD files, the VNFD file includes VUD, and the NFVO4 is responsible for managing virtual infrastructure resources through VIM5.
  • Resource scheduling function, VIM5 is responsible for calculation Management and control of virtual infrastructure resources such as resources, storage resources, and network resources.
  • VNFM6 is responsible for lifecycle management of VNF instances.
  • the method according to the embodiment of the present invention is to solve the problem that when the VNF service is used to expand the VNFC instance when the VNF service is used to expand the VNF service, the technology of the VM is wasted. problem.
  • FIG. 2 is a flowchart of a method for expanding a VNF according to Embodiment 1 of the present invention.
  • the execution body of this embodiment is a VNFM. As shown in FIG. 2, the method includes the following steps:
  • Step 101 Determine, according to a resource load of a VM performing a service in the VNF and VM infrastructure resource information in the first VDU in the VNFD file, a VM infrastructure resource required for the VNF runtime.
  • the first VDU is a VDU currently corresponding to the VNF.
  • the VNFM can obtain the resource load of the VM that performs the service in the VNF through the monitor, and the resource load of the VM may specifically include indicators related to the computing resource, the storage resource, the network resource, and the like in the basic setting resource of the VM, for example, , Central Processing Unit (CPU) utilization, memory utilization, bandwidth utilization, disk utilization, and so on.
  • the VNFM can also obtain the Key Performance Indicator (KPI) of the VM executing the service in the VNF through the monitor, and obtain the resource load of the VM executing the service in the VNF from the KPI, where the KPI includes the VM executing the service in the VNF.
  • KPI Key Performance Indicator
  • the service load includes indicators related to the VNF service, for example, the number of users, the number of sessions, and the number of Packet Data Protocol (PDP) contexts in the current system. , database read and write queue length, access delay, and so on.
  • the value of each indicator in the KPI may be an instantaneous value, or may be an average value, a maximum value, a minimum value, an intermediate value, and the like in a certain time window.
  • the VNFD file includes configuration information describing the VNF deployment and management behavior, and the configuration information used to support the VNF to go online and manage the VNF instance life cycle, and also includes other specific instance information and constraint information of the VNF runtime.
  • the VDU involved in this implementation is also included in the VNFD file and is an important part of the VNFD file.
  • VNFM from the VNFD file Obtaining a first VDU, where the first VDU is a VDU currently being used by the VNF service, where the first VDU includes VM infrastructure resource information and operating system information allocated for the VNF service, and the VM infrastructure resource information allocated for the VNF service is specific.
  • a set of parameters of the infrastructure resources of the VM executing the service in the VNF such as CPU, memory, bandwidth, hard disk, and the like. Based on the resource load of the VM performing the service in the VNF and the VM infrastructure resource information allocated for the VNF service in the first VDU, the amount of resources of the VM actually used when the VNF service is run may be calculated.
  • Step 102 Determine, according to VM infrastructure resource information in each VDU in the VNFD file and VM infrastructure resources required by the VNF runtime, from all VDUs of the VNFD file, determine matching with VM infrastructure resources required by the VNF runtime. The second largest VDU.
  • the VNFM obtains the VM infrastructure resource information in each VDU in the VNFD file, and calculates the matching degree between the VM infrastructure resources required by the VNF runtime and the VM infrastructure resources in each VDU, and The VDU corresponding to the VM infrastructure resource with the highest matching degree is selected as the second VDU.
  • Step 103 Expand the VNF according to the second VDU.
  • the VNFM expands the VNF according to the second VDU.
  • the specific capacity expansion process may use the VNF expansion method in the prior art, and details are not described herein again.
  • the VDU corresponding to the VNF service is used to expand the VNFC instance, and the resource allocation amount of the VM specified in the VDU is greater than the VNF resource when the service is actually running.
  • the usage amount for example, the memory size specified in the VDU corresponding to the VNF service is 10G, and when the VNF service is actually executed, when other resources are fully utilized, the 6G memory has satisfied the demand, and the remaining 4G memory is idle. , thereby causing waste of the infrastructure resources of the VM.
  • the VNFM determines the VM infrastructure resources required for the VNF operation according to the resource load of the VM performing the service in the VNF and the VM infrastructure resource information in the first VDU in the VNFD file, and according to each of the VNFD files.
  • the VM infrastructure resource information in the VDU and the VM infrastructure resources required by the VNF runtime determine the second VDU with the greatest matching degree with the VM infrastructure resources required by the VNF runtime from all VDUs of the VNFD file, according to the The VDU is expanded by the VDU.
  • the VDUs configured for the VNF service are not used for capacity expansion. Instead, the VDUs that match the VM infrastructure resources required for the VNF operation are selected from all the VDUs.
  • the first The configuration of the infrastructure resources of the VMs in the two VDUs is the most similar to the VM infrastructure resources required by the VNF. Therefore, the VNF is expanded according to the second VDU, which not only satisfies the resource requirements of the VNF service, but also does not A waste of infrastructure resources for the VM.
  • the VNFM determines the VM infrastructure resource required for the VNF operation according to the resource load of the VM performing the service in the VNF and the VM infrastructure resource information in the first VDU in the VNFD file, and according to The VM infrastructure resource information in each VDU in the VNFD file and the VM infrastructure resources required by the VNF runtime determine the most matching degree of the VM infrastructure resources required by the VNF runtime from all VDUs of the VNFD file.
  • the VNF is expanded according to the second VDU.
  • the VDUs configured for the VNF service are not used for capacity expansion, and the VM infrastructure resources required for the VNF operation are selected from all the VDUs.
  • the matching second VDU is expanded. Therefore, the configuration amount of the infrastructure resources of the VM in the second VDU is the most similar to the VM infrastructure resource required for the VNF operation. Therefore, the VNF is expanded according to the second VDU. It can meet the resource requirements of the VNF service and will not waste the VM's infrastructure resources.
  • FIG. 3 is a flowchart of a method for expanding a VNF according to Embodiment 2 of the present invention.
  • the execution body of this embodiment is a VNFM. As shown in FIG. 3, the method includes the following steps:
  • Step 201 Determine, according to a resource load of a VM performing a service in the VNF and VM infrastructure resource information in the first VDU in the VNFD file, a VM infrastructure resource required for the VNF runtime.
  • the first VDU is a VDU currently corresponding to the VNF.
  • determining the second VDU with the greatest matching degree with the VM infrastructure resources required by the VNF runtime from all VDUs of the VNFD file according to the VM infrastructure resource information in each VDU in the VNFD file includes steps 202 to 205.
  • Step 202 Acquire a first vector according to a resource load of a VM performing a service in the VNF and VM infrastructure resource information in the first VDU.
  • the first vector is a vector corresponding to the VM infrastructure resource required for the VNF operation
  • the VNFM obtains the first vector according to the resource load of the VM performing the service in the VNF and the VM infrastructure resource information in the first VDU.
  • R represents the usage amount of the infrastructure resource of the VM, for example, R 1 represents the CPU of the VM.
  • the amount of use, R 2 represents the amount of memory used by the VM, and the like.
  • Step 203 Acquire a second vector according to VM infrastructure resource information in each VDU in the VNFD file.
  • T 1 represents the configured amount of the CPU of the VM
  • T 2 represents the configured amount of the memory of the VM.
  • R 1 represents the usage of the CPU of the VM
  • T 1 must represent the configuration amount of the CPU of the VM
  • R 2 represents the memory of the VM.
  • the amount of usage, T 2 must represent the amount of memory configured by the VM.
  • Step 204 Acquire a matching degree between the first vector and each second vector.
  • the degree of matching between R and T vectors can be calculated and recorded by a similarity algorithm to obtain a matching degree, which is usually between 0 and 1.
  • a similarity algorithm to obtain a matching degree, which is usually between 0 and 1.
  • One common measure of similarity is cosine similarity, and other similar similarity measures can be used, which are not limited in the present invention.
  • Step 205 The VDU corresponding to the second vector with the largest matching degree is used as the second VDU.
  • the VDU corresponding to the second vector with the largest matching degree is used as the second VDU.
  • the specific implementation method of the step of “expanding the VNF according to the second VDU” includes steps 206 to 208.
  • Step 206 Determine whether the matching degree between the VM infrastructure resource in the second VDU and the VM infrastructure resource required by the VNF is greater than or equal to a preset threshold; if yes, execute step 207; if not, perform the step 208.
  • a preset threshold may be preset to compare the matching between the VM infrastructure resources in the second VDU and the VM infrastructure resources required by the VNF runtime.
  • the size of the preset threshold in order to ensure that the VM infrastructure resources in the second VDU match the VM infrastructure resources required for the VNF running, the preset threshold is usually not less than 0.8.
  • the preset threshold may be equal to 0.85, 0.9, etc., and a person skilled in the art may set a preset threshold according to actual needs.
  • Step 207 Expand the VNF according to the second VDU.
  • the VNF is expanded according to the second VDU.
  • Step 208 According to the VNFD file initialization, the VNF corresponding to the VNF in the VNFD file expands the VNF, and creates a new VDU in the VNFD file through the VNFD manager.
  • the VNFM corresponds to the VNF in the VNFD file according to the VNFD file initialization.
  • the VDU expands the VNF and creates a new VDU in the VNFD file through the VNFD Manager. Because there is a waiting time for establishing a new VDU, the VNF service may be delayed. Therefore, when the VNFD file is initialized, the corresponding VDU is configured for each VNF service.
  • VNFM can also create a new VDU in the VNFD file through the VNFD Manager based on the VM infrastructure resources required by the VNF runtime.
  • creating a new VDU in the VNFD file by using the VNFD manager includes: sending a VDU creation request to the NFVO; wherein the VDU creation request carries the VM infrastructure resource information required by the VNF runtime. After requesting NFVO to determine that a new VDU needs to be created, the NFVO instructs the VNFD Manager to create a new VDU in the VNFD file based on the VM infrastructure resource information required by the VNF runtime.
  • the VNFM when a new VDU needs to be created, the VNFM sends a VDU creation request to the NFVO, and the NFVO determines whether it is necessary to establish a new VDU according to the VM infrastructure resource information required by the VNF runtime carried in the VDU creation request. If it is determined that a new VDU needs to be created, the NFVO instructs the VNFD manager to create a new VDU in the VNFD file according to the VM infrastructure resource information required by the VNF runtime. When the VNF is expanded next time, the newly created VDU can be used to The VNF is expanded.
  • the VNFD manager is a logical entity that manages the VNFD file.
  • a function module needs to be established as a VNFD manager, and the function module Can be integrated in NFVO or deployed in other modules.
  • the role of the VNFD manager includes querying, modifying, and creating, updating, and deleting VNFD files. It is the ultimate implementer of VNFD file management.
  • the VNFD manager is mainly involved in the process of creating a VDU. .
  • Table 1 shows the functional description of the VNFD Manager.
  • This operation allows access to some or all of the contents of the VNFD file. modify This operation allows modification of some or all of the contents of the VNFD file. create This operation allows the creation of a new VNFD file Update This operation allows updates to the contents of the VNFD file. delete This operation allows deletion of VNFD files
  • the management of the VNFD file may be initiated by the VNFM or the Office of Strategic Services (OSS), or may be initiated by an operation and maintenance personnel with advanced rights, for example,
  • One mode is: the operation and maintenance personnel with advanced authority can directly instruct the VNFD manager to perform VNFD file management through the VNF file management interface.
  • the operation and maintenance personnel need to specify the specific content of the VNFD file management; the second way is: VNFM or OSS requests VNFD file management from NFVO.
  • VNFV permits VNFD file management operation
  • NFVO initiates an instruction to VNFD manager to instruct VNFD manager to manage VNFD file.
  • the VNFM vectorizes the VM infrastructure resources required by the VNF runtime and the VM infrastructure resources in all the VDUs, and selects the similarity between the first vector and the second vector to select A second VDU that best matches the VM infrastructure resources required for the VNF runtime, and further compares the degree and match between the VM infrastructure resources in the second VDU and the VM infrastructure resources required by the VNF runtime
  • the size of the threshold is set.
  • the VNF is expanded according to the second VDU, which not only satisfies the requirement of the VNF service, but also does not waste the VM infrastructure resources; suitability
  • the VNFD file is initialized, the VNF corresponding to the VNF in the VNFD file is expanded to the VNF, and a new VDU is created in the VNFD file through the VNFD manager. This not only enables the VNF expansion to be completed in time, but also ensures that the VNF expansion can be completed in time.
  • the newly created VDU and the VNF service need to match the VM infrastructure resources at the time of operation.
  • the new VDU is used to expand the VNF, further reducing the waste of VM infrastructure resources.
  • FIG. 4 is a flowchart of a method for expanding a VNF according to Embodiment 3 of the present invention.
  • the method implementation principle of the step of “expanding the VNF according to the second VDU” specifically includes the following steps:
  • Step 301 Send a content expansion request to the NFVO according to the second VDU.
  • the capacity expansion request includes the number of VMs required for capacity expansion and infrastructure resource information of VMs required for capacity expansion.
  • the VNFM determines the number of VMs required for capacity expansion and the infrastructure resource information of the VMs required for capacity expansion according to the second VDU, and then generates the VM resources required for the capacity expansion and the VM infrastructure resource information required for the capacity expansion. Expansion request. After receiving the expansion request, the NFVO queries the resource database to determine whether the expansion request is feasible. If the resource in the resource database can satisfy the VNF service, it is determined that the expansion request is feasible, and the NFVO creates a reservation through the virtual resource management VRM (Virtual Resource Management) interface. The resource is not preempted by the VNFM. any news.
  • VRM Virtual Resource Management
  • Step 302 Receive an expansion instruction sent by the NFVO.
  • the capacity expansion command carries the resource information allocated by the NFVO according to the expansion request for the expansion of the VNF.
  • the resource information allocated by the NFVO for the expansion of the VNF is specifically the reserved resource information created by the NFVO through the VRM interface.
  • Step 303 Create and start a VM required for the expansion according to the expansion instruction.
  • a matching module may be established in the VNFM, and a communication interface is established between the matching module and the NFVO, and the matching module is used according to the VNFD file.
  • the VM infrastructure resource information in each VDU and the VM infrastructure resources required by the VNF runtime determine the second VDU that has the greatest matching degree with the VM infrastructure resources required by the VNF runtime from all VDUs of the VNFD file.
  • the communication interface is used to implement communication between the matching module and the NFVO. For example, after the matching module selects the second VDU, the matching request is sent to the VNFO through the communication interface, or when the new VDU needs to be created, the matching module passes the communication interface. Send a VDU creation request to the VNFO.
  • the VNFM receives the expansion command sent by the NFVO, and the VNFM creates and starts the VM required for the expansion according to the reserved resource information in the expansion instruction.
  • the specific process is as follows: The VNFM requests the VIM to create the VM required for the expansion. The VIM creates and starts the VM required for the expansion and allocates the network resources accordingly, and then sends the creation success information to the VNFM.
  • the VNFM sets the basic resource information of the VM of the VNF and The parameters of the operating system and the like, and the number of VMs added by the VNF service and the infrastructure resource information of the added VM are sent to the element management device (Element Management, EM for short), so that the EM performs related parameters of the VNF service.
  • the NFVO associates the VNF service with the appropriate VIM and resource pool.
  • the VNF after the VNFM determines the second VDU, the VNF sends a capacity expansion request to the NFVO according to the second VDU, and receives the expansion command of the resource information that is transmitted by the NFVO and carries the NFVO according to the expansion request as the VNF expansion. Create and start the VMs needed for capacity expansion according to the expansion command, complete the VNF expansion process, meet the requirements of the VNF service, ensure the service quality, and reduce the waste of VM infrastructure resources.
  • FIG. 5 is a schematic structural diagram of an apparatus for expanding a VNF according to Embodiment 4 of the present invention.
  • the device includes a determining module 11, a matching module 12, and a expansion module 13.
  • the determining module 11 is configured to determine, according to a resource load of the VM performing the service in the VNF and the VM infrastructure resource information in the first VDU in the VNFD file, the VM infrastructure resource required for the VNF running; wherein, the first VDU is current and The VDU corresponding to the VNF.
  • the matching module 12 is configured to determine VM infrastructure resources required for the VNF runtime from all VDUs of the VNFD file according to VM infrastructure resource information in each VDU in the VNFD file and VM infrastructure resources required by the VNF runtime.
  • the expansion module 13 is configured to expand the VNF according to the second VDU.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the expansion module 13 is specifically configured to determine the VM infrastructure resource and the VNF runtime in the second VDU. Whether the matching degree between the required VM infrastructure resources is greater than or equal to a preset threshold; if yes, the expansion module 13 expands the VNF according to the second VDU; if not, the expansion module 13 initializes the VNFD file according to the VNFD file.
  • the VDU corresponding to the VNF expands the VNF and creates a new VDU in the VNFD file through the VNFD manager.
  • the matching module 12 is specifically configured to acquire the first vector according to the resource load of the VM performing the service in the VNF and the VM infrastructure resource information in the first VDU; according to the VM infrastructure in each VDU in the VNFD file.
  • the resource information acquires a second vector; obtains a matching degree between the first vector and each second vector; and uses a VDU corresponding to the second vector with the largest matching degree as the second VDU.
  • the expansion module 13 is further configured to send a VDU creation request to the network function virtualization orchestrator NFVO; wherein the VDU creation request carries the VM infrastructure resource information required by the VNF runtime, for requesting the NFVO to determine the need
  • NFVO instructs the VNFD Manager to create a new VDU in the VNFD file based on the VM infrastructure resource information required by the VNF runtime.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 3, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the expansion module 13 is further configured to send a capacity expansion request to the NFVO according to the second VDU; wherein the expansion request includes expansion The number of VMs and the infrastructure resource information of the VMs required for the expansion; the expansion module 13 is specifically configured to receive the expansion command sent by the NFVO, and create and start the VM required for the expansion according to the expansion instruction; wherein the expansion command carries the NFVO The resource information allocated for the expansion of the VNF according to the capacity expansion request.
  • a communication interface may be established between the matching module and the NFVO, where the communication interface is used to implement communication between the matching module and the NFVO, for example, after the matching module selects the second VDU, The communication interface sends a capacity expansion request to the VNFO, or when a new VDU needs to be created, the matching module sends a VDU creation request to the VNFO through the communication interface.
  • the device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 4, and the implementation principle and technical effects are similar, and details are not described herein again.
  • FIG. 6 is a schematic structural diagram of a device for expanding a VNF according to Embodiment 7 of the present invention.
  • the device includes a processor 21, a receiver 22, and a transmitter 23.
  • the processor 21 is configured to determine, according to a resource load of a VM that performs a service in the VNF and VM infrastructure resource information in the first VDU in the VNFD file, a VM infrastructure resource required for the VNF operation; where the first VDU is current and The VDU corresponding to the VNF.
  • the processor 21 is configured to determine VM infrastructure resources required for the VNF runtime from all VDUs of the VNFD file according to VM infrastructure resource information in each VDU in the VNFD file and VM infrastructure resources required by the VNF runtime.
  • the processor 21 is further configured to expand the VNF according to the second VDU.
  • the receiver 22 is configured to receive the resource load of the VM performing the service in the VNF sent by the monitoring device, or the information sent by the other device to the device expanded by the VNF.
  • Transmitter 23 is used to transmit information to other devices that communicate with the VNF-expanded device.
  • the processor 21 is configured to determine whether a matching degree between the VM infrastructure resource in the second VDU and the VM infrastructure resource required by the VNF runtime is greater than or equal to a preset threshold; if yes, The processor 21 expands the VNF according to the second VDU; if not, the processor 21 expands the VNF according to the VNF corresponding to the VNF in the VNFD file according to the VNFD file initialization, and creates a new VNFD file in the VNFD file. VDU.
  • the processor 21 is further configured to acquire the first vector according to the resource load of the VM performing the service in the VNF and the VM infrastructure resource information in the first VDU; according to the VM infrastructure resource information in each VDU in the VNFD file. Obtaining a second vector; acquiring a matching degree between the first vector and each second vector; and using the VDU corresponding to the second vector with the largest matching degree as the second VDU.
  • the transmitter 23 is further configured to send a VDU creation request to the NFVO; wherein the VDU creation request carries VM infrastructure resource information required by the VNF runtime, for requesting the NFVO to determine the NFVO indication after the new VDU needs to be created.
  • the VNFD Manager creates a new VDU in the VNFD file based on the VM infrastructure resource information required by the VNF runtime.
  • the transmitter 23 is further configured to send a capacity expansion request to the NFVO according to the second VDU, where the capacity expansion request includes the number of VMs required for capacity expansion and infrastructure resource information of the VM required for capacity expansion; and the receiver 22 is configured to receive the NFVO.
  • the expansion command sent by the NFVO carries the resource information allocated for the expansion of the VNF according to the expansion request.
  • the processor 21 is further configured to create and start the VM required for the expansion according to the expansion instruction.
  • the VNF expansion device provided in this embodiment may be used to perform any of the above VNF expansion.
  • the technical solution of the method embodiment has similar implementation principles and technical effects, and details are not described herein again.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the steps of the foregoing method embodiments are performed; and the foregoing storage medium includes: Read-Only Memory (ROM), Random Access Memory (RAM), and Magnetic A variety of media that can store program code, such as a disc or a disc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a virtual network function capacity expansion method and apparatus. The method comprises: determining VM infrastructure resources needed during operation of a VNF according to a resource load of a VM executing a service in the VNF and VM infrastructure resource information in a first VDU in a virtual network function descriptor (VNFD) file, wherein the first VDU is a current VDU corresponding to the VNF; determining a second VDU maximally matching the VM infrastructure resources needed during operation of the VNF from all VDUs of the VNFD file according to the VM infrastructure resource information in each VDU in the VNFD file and the VM infrastructure resources needed during operation of the VNF; and expanding the capacity of the VNF according to the second VDU. The VNF capacity expansion method and apparatus provided by the present embodiment can reduce waste of VM infrastructure resources during capacity expansion of a VNF.

Description

虚拟网络功能扩容的方法和装置Method and device for expanding virtual network function 技术领域Technical field
本发明实施例涉及网络功能虚拟化技术,尤其涉及一种虚拟网络功能扩容的方法和装置。The embodiments of the present invention relate to a network function virtualization technology, and in particular, to a method and an apparatus for expanding a virtual network function.
背景技术Background technique
网络功能虚拟化(Network Functions Virtualization,NFV)是指利用通用硬件及虚拟化技术来承载多种功能的软件处理技术。在NFV技术框架下,一个NFV业务网络可以分解为一组虚拟网络功能(Virtual Network Function,简称VNF)和虚拟网络功能链接(Virtual Network Function Link,简称VNFL),其中,VNF是具有网络功能的虚拟化实体,例如:具有移动管理实体(Mobile Management Entity,简称MME)功能的VNF,其就是一个虚拟的MME。一个VNF可以分解为一组网络虚拟化功能组件(Virtual Network Function Component,简称VNFC),这些VNFC都承载于相应的虚拟机(Virtual Machine,简称VM)上。Network Functions Virtualization (NFV) refers to software processing technology that utilizes common hardware and virtualization technologies to carry multiple functions. In the NFV technology framework, an NFV service network can be decomposed into a set of virtual network functions (VNFs) and virtual network function links (VNFLs), where VNFs are virtual functions with network functions. The entity is, for example, a VNF with the Mobile Management Entity (MME) function, which is a virtual MME. A VNF can be decomposed into a set of virtual network function components (VNFCs), which are carried on the corresponding virtual machines (VMs).
VNFC实例化过程中(这里将VNFC部署在VM上并且使其在VM上运行起来,称为VNFC实例,即就是对VNFC进行实例化的过程),VM的基础设施资源、操作系统等信息由虚拟化部署单元(Virtualization Deployment Unit,简称VDU)来规定,其中,VM的基础设施资源具体可以包括中央处理器(Central Processing Unit,简称CPU)、内存、网络等资源。VNF对业务量的变化比较敏感,当VNF业务的业务量发生变化时,需要及时地对VNFC实例进行扩容,以保证服务质量。现有技术中,每一个VNF业务都对应一个固定的VDU,并且,VDU中VM的基础设施资源分配事先由人工确定,当VNF业务的业务量发生变化时,需要根据与该VNF业务对应的VDU对VNFC实例进行扩容,以满足业务需求。During the VNFC instantiation process (where VNFC is deployed on the VM and run on the VM, it is called VNFC instance, which is the process of instantiating VNFC), and the VM's infrastructure resources, operating system and other information are virtualized. The Virtualization Deployment Unit (VDU) is defined, wherein the infrastructure resources of the VM may specifically include resources such as a central processing unit (CPU), a memory, and a network. The VNF is sensitive to the change of the traffic. When the traffic of the VNF service changes, the VNFC instance needs to be expanded in time to ensure the service quality. In the prior art, each VNF service corresponds to a fixed VDU, and the infrastructure resource allocation of the VM in the VDU is manually determined in advance. When the traffic of the VNF service changes, the VDU corresponding to the VNF service needs to be used. The VNFC instance is expanded to meet business requirements.
但是,当VNF业务发生变化,需要使用与该VNF业务对应的VDU对VNFC实例进行扩容时,容易出现VDU中所规定的VM的基础设施资源配置量远大于业务实际运行时的VNF的资源使用量,从而造成VM的基础设施资 源的浪费。However, when the VNF service is changed and the VDU corresponding to the VNF service needs to be used to expand the VNFC instance, the infrastructure resource allocation amount of the VM specified in the VDU is much larger than the VNF resource usage during the actual operation of the service. , thereby causing VM infrastructure resources The waste of the source.
发明内容Summary of the invention
本发明实施例提供一种虚拟网络功能扩容的方法和装置,不仅可以满足VNF业务的资源需求,而且不会造成VM的基础设施资源的浪费。The embodiments of the present invention provide a method and an apparatus for expanding a virtual network function, which can not only meet the resource requirements of the VNF service, but also not waste the infrastructure resources of the VM.
第一方面,本发明实施例提供一种虚拟网络功能VNF扩容的方法,包括:In a first aspect, the embodiment of the present invention provides a method for expanding a virtual network function VNF, including:
根据所述VNF中执行业务的VM的资源负载和虚拟网络描述符VNFD文件中第一VDU中的VM基础设施资源信息,确定所述VNF运行时所需的VM基础设施资源;其中,所述第一VDU为当前与所述VNF对应的VDU;Determining, according to a resource load of a VM performing the service in the VNF and VM infrastructure resource information in the first VDU in the virtual network descriptor VNFD file, the VM infrastructure resource required by the VNF runtime; a VDU is a VDU currently corresponding to the VNF;
根据所述VNFD文件中每个VDU中的VM基础设施资源信息和所述VNF运行时所需的VM基础设施资源,从所述VNFD文件的所有VDU中确定与所述VNF运行时所需的VM基础设施资源的匹配度最大的第二VDU;Determining a VM required for the VNF runtime from all VDUs of the VNFD file according to VM infrastructure resource information in each VDU in the VNFD file and VM infrastructure resources required by the VNF runtime a second VDU with the greatest matching of infrastructure resources;
根据所述第二VDU对所述VNF进行扩容。The VNF is expanded according to the second VDU.
结合第一方面,在第一方面的第一种可能实现方式中,根据所述第二VDU对所述VNF进行扩容,具体包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, the expanding the VNF according to the second VDU includes:
判断所述第二VDU中的VM基础设施资源与所述VNF运行时所需的VM基础设施资源之间的匹配度是否大于或者等于预设阈值;Determining whether a matching degree between the VM infrastructure resource in the second VDU and the VM infrastructure resource required by the VNF runtime is greater than or equal to a preset threshold;
若是,则根据所述第二VDU对所述VNF进行扩容;If yes, expanding the VNF according to the second VDU;
若否,则根据所述VNFD文件初始化时,所述VNFD文件中与所述VNF对应的VDU对所述VNF进行扩容,并通过所述VNFD管理器在所述VNFD文件中创建新的VDU。If not, the VNF corresponding to the VNF in the VNFD file is expanded according to the VNFD file, and a new VDU is created in the VNFD file by the VNFD manager.
结合第一方面或第一方面的第一种可能实现方式,在第一方面的第二种可能实现方式中,所述根据所述VNFD文件中每个VDU中的VM基础设施资源信息,从所述VNFD文件的所有VDU中确定与所述VNF运行时所需的VM基础设施资源的匹配度最大的第二VDU,具体包括:With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the performing, according to the VM infrastructure resource information in each VDU in the VNFD file, The second VDU that has the largest matching degree with the VM infrastructure resources required by the VNF running, among the VDUs of the VNFD file, includes:
根据所述VNF中执行业务的VM的资源负载和所述第一VDU中的VM基础设施资源信息获取第一向量;Obtaining a first vector according to a resource load of a VM performing a service in the VNF and VM infrastructure resource information in the first VDU;
根据所述VNFD文件中每个VDU中的VM基础设施资源信息获取第二向量;Obtaining a second vector according to VM infrastructure resource information in each VDU in the VNFD file;
获取所述第一向量和每个所述第二向量之间的匹配度; Obtaining a degree of matching between the first vector and each of the second vectors;
将所述匹配度最大的所述第二向量对应的VDU作为第二VDU。The VDU corresponding to the second vector with the largest degree of matching is used as the second VDU.
结合第一方面的第一种可能实现方式,在第一方面的第三种可能实现方式中,所述通过所述VNFD管理器在所述VNFD文件中创建新的VDU,具体包括:With the first possible implementation of the first aspect, in a third possible implementation manner of the first aspect, the creating, by the VNFD manager, a new VDU in the VNFD file includes:
向网络功能虚拟化编排器NFVO发送VDU创建请求;其中,所述VDU创建请求携带所述VNF运行时所需的VM基础设施资源信息,用于请求所述NFVO在确定需要创建新的VDU之后,所述NFVO指示所述VNFD管理器根据所述VNF运行时所需的VM基础设施资源信息在所述VNFD文件中创建所述新的VDU。Sending a VDU creation request to the network function virtualization orchestrator NFVO; wherein the VDU creation request carries VM infrastructure resource information required by the VNF runtime, for requesting the NFVO to determine that a new VDU needs to be created, The NFVO instructs the VNFD manager to create the new VDU in the VNFD file based on VM infrastructure resource information required by the VNF runtime.
结合第一方面的第三种可能实现方式,在第一方面的第四种可能实现方式中,所述根据所述第二VDU对所述VNF进行扩容,具体包括:With the third possible implementation of the first aspect, in a fourth possible implementation manner of the foregoing aspect, the performing, by the second VDU, the VNF is expanded, specifically:
根据所述第二VDU向所述NFVO发送扩容请求;其中,所述扩容请求包括扩容所需的VM数量和扩容所需的VM的基础设施资源信息;Sending a capacity expansion request to the NFVO according to the second VDU, where the capacity expansion request includes the number of VMs required for capacity expansion and infrastructure resource information of the VM required for capacity expansion;
接收所述NFVO发送的扩容指令;其中,所述扩容指令携带所述NFVO根据所述扩容请求为所述VNF的扩容所分配的资源信息;Receiving the expansion command sent by the NFVO; wherein the expansion instruction carries the resource information allocated by the NFVO according to the expansion request for the expansion of the VNF;
根据所述扩容指令创建并启动扩容所需的VM。Create and start the VM required for capacity expansion according to the expansion command.
第二方面,本发明实施例提供一种虚拟网络功能VNF扩容的装置,包括:In a second aspect, the embodiment of the present invention provides an apparatus for expanding a virtual network function VNF, including:
确定模块,用于根据所述VNF中执行业务的VM的资源负载和虚拟网络描述符VNFD文件中第一VDU中的VM基础设施资源信息,确定所述VNF运行时所需的VM基础设施资源;其中,所述第一VDU为当前与所述VNF对应的VDU;a determining module, configured to determine, according to a resource load of a VM performing a service in the VNF and VM infrastructure resource information in a first VDU in a virtual network descriptor VNFD file, a VM infrastructure resource required by the VNF runtime; The first VDU is a VDU currently corresponding to the VNF;
匹配模块,用于根据所述VNFD文件中每个VDU中的VM基础设施资源信息和所述VNF运行时所需的VM基础设施资源,从所述VNFD文件的所有VDU中确定与所述VNF运行时所需的VM基础设施资源的匹配度最大的第二VDU;a matching module, configured to determine, according to VM infrastructure resource information in each VDU in the VNFD file and VM infrastructure resources required by the VNF runtime, from all VDUs of the VNFD file to run with the VNF The second VDU with the largest matching degree of VM infrastructure resources required;
扩容模块,用于根据所述第二VDU对所述VNF进行扩容。And a capacity expansion module, configured to expand the VNF according to the second VDU.
结合第二方面,在第二方面的第一种可能实现方式中,所述扩容模块具体用于判断所述第二VDU中的VM基础设施资源与所述VNF运行时所需的VM基础设施资源之间的匹配度是否大于或者等于预设阈值;若是,则所述扩容模块根据所述第二VDU对所述VNF进行扩容;若否,则所述扩容模块 根据所述VNFD文件初始化时,所述VNFD文件中与所述VNF对应的VDU对所述VNF进行扩容,并通过所述VNFD管理器在所述VNFD文件中创建新的VDU。With reference to the second aspect, in a first possible implementation manner of the second aspect, the expansion module is specifically configured to determine a VM infrastructure resource in the second VDU and a VM infrastructure resource required by the VNF runtime Whether the matching degree is greater than or equal to the preset threshold; if yes, the expansion module expands the VNF according to the second VDU; if not, the expansion module When the VNFD file is initialized, the VDU corresponding to the VNF in the VNFD file expands the VNF, and a new VDU is created in the VNFD file by the VNFD manager.
结合第二方面或第二方面的第一种可能实现方式,在第二方面的第二种可能实现方式中,所述匹配模块具体用于根据所述VNF中执行业务的VM的资源负载和所述第一VDU中的VM基础设施资源信息获取第一向量;根据所述VNFD文件中每个VDU中的VM基础设施资源信息获取第二向量;获取所述第一向量和每个所述第二向量之间的匹配度;将所述匹配度最大的所述第二向量对应的VDU作为第二VDU。With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the matching module is specifically configured to perform, according to a resource load and a location of a VM that performs a service in the VNF Obtaining a first vector of VM infrastructure resource information in the first VDU; acquiring a second vector according to VM infrastructure resource information in each VDU in the VNFD file; acquiring the first vector and each of the second The degree of matching between the vectors; the VDU corresponding to the second vector having the largest matching degree is taken as the second VDU.
结合第二方面的第一种可能实现方式,在第二方面的第三种可能实现方式中,所述扩容模块还用于向网络功能虚拟化编排器NFVO发送VDU创建请求;其中,所述VDU创建请求携带所述VNF运行时所需的VM基础设施资源信息,用于请求所述NFVO在确定需要创建新的VDU之后,所述NFVO指示所述VNFD管理器根据所述VNF运行时所需的VM基础设施资源信息在所述VNFD文件中创建所述新的VDU。In conjunction with the first possible implementation of the second aspect, in a third possible implementation manner of the second aspect, the expansion module is further configured to send a VDU creation request to the network function virtualization orchestrator NFVO; wherein the VDU Creating a request to carry VM infrastructure resource information required by the VNF runtime for requesting the NFVO to determine, after determining that a new VDU needs to be created, the NFVO indicating that the VNFD manager is required to operate according to the VNF The VM infrastructure resource information creates the new VDU in the VNFD file.
结合第二方面的第三种可能实现方式,在第二方面的第四种可能实现方式中,所述扩容模块具体还用于根据所述第二VDU向所述NFVO发送扩容请求;其中,所述扩容请求包括扩容所需的VM数量和扩容所需的VM的基础设施资源信息;所述扩容模块具体还用于接收所述NFVO发送的扩容指令,并根据所述扩容指令创建并启动扩容所需的VM;其中,所述扩容指令携带所述NFVO根据所述扩容请求为所述VNF的扩容所分配的资源信息。With the third possible implementation of the second aspect, in a fourth possible implementation manner of the second aspect, the expansion module is further configured to send a expansion request to the NFVO according to the second VDU; The expansion request includes the number of VMs required for the capacity expansion and the infrastructure resource information of the VMs required for the expansion; the expansion module is further configured to receive the expansion command sent by the NFVO, and create and start the expansion according to the expansion instruction. The VM is configured to carry the resource information allocated by the NFVO according to the expansion request for the expansion of the VNF.
本实施例提供的VNF扩容的方法和装置,根据VNF中执行业务的VM的资源负载和VNFD文件中第一VDU中的VM基础设施资源信息,确定VNF运行时所需的VM基础设施资源,并根据VNFD文件中每个VDU中的VM基础设施资源信息和VNF运行时所需的VM基础设施资源,从VNFD文件的所有VDU中确定与VNF运行时所需的VM基础设施资源的匹配度最大的第二VDU,根据第二VDU对VNF进行扩容,本实施例中,不再使用预先为VNF业务配置的VDU进行扩容,而是从所有的VDU中选择与VNF运行时所需的VM基础设施资源最匹配的第二VDU进行扩容,因此,第二VDU中的VM的基础设施资源的配置量与VNF运行时所需的VM基础设施资源量 最为相似,故采用根据第二VDU对VNF进行扩容,不仅可以满足VNF业务的资源需求,而且不会造成VM的基础设施资源的浪费。The VNF expansion method and apparatus provided by this embodiment determine the VM infrastructure resources required for the VNF operation according to the resource load of the VM performing the service in the VNF and the VM infrastructure resource information in the first VDU in the VNFD file, and According to the VM infrastructure resource information in each VDU in the VNFD file and the VM infrastructure resources required by the VNF runtime, the matching degree of the VM infrastructure resources required by the VNF runtime is determined from among all the VDUs of the VNFD file. In the second VDU, the VNF is expanded according to the second VDU. In this embodiment, the VDUs configured for the VNF service are not used for capacity expansion, and the VM infrastructure resources required for the VNF operation are selected from all the VDUs. The most matching second VDU is expanded, so the configured amount of infrastructure resources of the VM in the second VDU and the amount of VM infrastructure resources required for the VNF runtime The most similar, the expansion of the VNF according to the second VDU can not only meet the resource requirements of the VNF service, but also not waste the infrastructure resources of the VM.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图1为本发明实施例提供的VNF扩容的方法的应用场景示意图;FIG. 1 is a schematic diagram of an application scenario of a method for expanding a VNF according to an embodiment of the present disclosure;
图2为本发明实施例一提供的VNF扩容的方法流程图;2 is a flowchart of a method for expanding a VNF according to Embodiment 1 of the present invention;
图3为本发明实施例二提供的VNF扩容的方法流程图;3 is a flowchart of a method for expanding a VNF according to Embodiment 2 of the present invention;
图4为本发明实施例三提供的VNF扩容的方法流程图;4 is a flowchart of a method for expanding a VNF according to Embodiment 3 of the present invention;
图5为本发明实施例四提供的VNF扩容的装置结构示意图;FIG. 5 is a schematic structural diagram of an apparatus for expanding a VNF according to Embodiment 4 of the present invention; FIG.
图6为本发明实施例七提供的VNF扩容的设备结构示意图。FIG. 6 is a schematic structural diagram of a device for expanding a VNF according to Embodiment 7 of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图1为本发明实施例提供的VNF扩容的方法的应用场景示意图。如图1所示,该场景基于云平台来实现,该场景包括多个VM1、监控器2、虚拟网络描述符(Virtual Network Function Descriptor,简称VNFD)管理器3、网络功能虚拟化编排器(Network Functions Virtualization Orchestrator,简称NFVO)4、虚拟基础设施管理器(Virtual Infrastructure Manager,简称VIM)5和虚拟网络功能管理器(Virtual Network Function Manager,简称VNFM)。其中,监控器2负责监控与收集组成VNF的各个VM的资源负载和业务负载,VNFD管理器3用于创建和管理VNFD文件,VNFD文件中包括VUD,NFVO4负责通过VIM5管理虚拟基础设施资源,实现资源编排功能,VIM5负责计算 资源、存储资源、网络资源等虚拟基础设置资源的管理与控制,VNFM6负责VNF实例的生命周期管理。FIG. 1 is a schematic diagram of an application scenario of a method for expanding a VNF according to an embodiment of the present invention. As shown in FIG. 1 , the scenario is implemented on a cloud platform, where the scenario includes multiple VM1, monitor 2, Virtual Network Function Descriptor (VNFD) manager 3, and network function virtualization orchestrator (Network). Functions Virtualization Orchestrator (NFVO) 4, Virtual Infrastructure Manager (VIM) 5 and Virtual Network Function Manager (VNFM). The monitor 2 is responsible for monitoring and collecting the resource load and service load of each VM constituting the VNF. The VNFD manager 3 is used to create and manage VNFD files, the VNFD file includes VUD, and the NFVO4 is responsible for managing virtual infrastructure resources through VIM5. Resource scheduling function, VIM5 is responsible for calculation Management and control of virtual infrastructure resources such as resources, storage resources, and network resources. VNFM6 is responsible for lifecycle management of VNF instances.
本发明实施例涉及的方法,旨在解决现有技术中,当VNF业务发生变化时,使用与该VNF业务对应的VDU对VNFC实例进行扩容时,容易造成VM的基础设施资源的浪费这一技术问题。The method according to the embodiment of the present invention is to solve the problem that when the VNF service is used to expand the VNFC instance when the VNF service is used to expand the VNF service, the technology of the VM is wasted. problem.
下面以具体地实施例对本发明的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solutions of the present invention will be described in detail below with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in some embodiments.
图2为本发明实施例一提供的VNF扩容的方法流程图。本实施例的执行主体为VNFM,如图2所示,该方法包括以下步骤:FIG. 2 is a flowchart of a method for expanding a VNF according to Embodiment 1 of the present invention. The execution body of this embodiment is a VNFM. As shown in FIG. 2, the method includes the following steps:
步骤101、根据VNF中执行业务的VM的资源负载和VNFD文件中第一VDU中的VM基础设施资源信息,确定VNF运行时所需的VM基础设施资源。Step 101: Determine, according to a resource load of a VM performing a service in the VNF and VM infrastructure resource information in the first VDU in the VNFD file, a VM infrastructure resource required for the VNF runtime.
其中,第一VDU为当前与VNF对应的VDU。The first VDU is a VDU currently corresponding to the VNF.
在本实施例中,VNFM可以通过监控器获取VNF中执行业务的VM的资源负载,VM的资源负载具体可以包括VM的基础设置资源中与计算资源、存储资源、网络资源等相关的指标,例如,中央处理器(Central Processing Unit,简称CPU)的利用率、内存利用率、带宽利用率、磁盘利用率等。VNFM也可以通过监控器获取VNF中执行业务的VM的关键性能指标(Key Performance Indicator,简称KPI),从KPI中获取VNF中执行业务的VM的资源负载,其中,KPI包括VNF中执行业务的VM的资源负载和VNF中执行业务的各个VM的业务负载,业务负载包括与VNF业务相关的指标,例如,当前系统中的用户数、会话数、分组数据协议(Packet Data Protocol,简称PDP)上下文数、数据库读写队列长度、访问时延等。KPI中的每一种指标的取值可以是瞬时值,也可以是一定时窗内的平均值、最大值、最小值、中间值等。In this embodiment, the VNFM can obtain the resource load of the VM that performs the service in the VNF through the monitor, and the resource load of the VM may specifically include indicators related to the computing resource, the storage resource, the network resource, and the like in the basic setting resource of the VM, for example, , Central Processing Unit (CPU) utilization, memory utilization, bandwidth utilization, disk utilization, and so on. The VNFM can also obtain the Key Performance Indicator (KPI) of the VM executing the service in the VNF through the monitor, and obtain the resource load of the VM executing the service in the VNF from the KPI, where the KPI includes the VM executing the service in the VNF. The resource load and the traffic load of each VM executing the service in the VNF. The service load includes indicators related to the VNF service, for example, the number of users, the number of sessions, and the number of Packet Data Protocol (PDP) contexts in the current system. , database read and write queue length, access delay, and so on. The value of each indicator in the KPI may be an instantaneous value, or may be an average value, a maximum value, a minimum value, an intermediate value, and the like in a certain time window.
在本实施例中,VNFD文件中包括描述VNF部署和管理行为、以及用来支持VNF上线和管理VNF实例生命周期的配置信息,同时还包含了VNF运行时的其他特定的实例信息和约束信息,本实施中所涉及的VDU也包含在VNFD文件中,并且是VNFD文件的重要组成部分。VNFM从VNFD文件中 获取第一VDU,第一VDU为当前执行VNF业务正在使用的VDU,第一VDU中包括为VNF业务分配的VM基础设施资源信息以及操作系统等信息,为VNF业务分配的VM基础设施资源信息具体可以为VNF中执行业务的VM的基础设施资源的一组参数,例如CPU、内存、带宽,硬盘等参数。根据VNF中执行业务的VM的资源负载和第一VDU中为VNF业务分配的VM基础设施资源信息,可以计算出运行该VNF业务时实际使用的VM的资源量。In this embodiment, the VNFD file includes configuration information describing the VNF deployment and management behavior, and the configuration information used to support the VNF to go online and manage the VNF instance life cycle, and also includes other specific instance information and constraint information of the VNF runtime. The VDU involved in this implementation is also included in the VNFD file and is an important part of the VNFD file. VNFM from the VNFD file Obtaining a first VDU, where the first VDU is a VDU currently being used by the VNF service, where the first VDU includes VM infrastructure resource information and operating system information allocated for the VNF service, and the VM infrastructure resource information allocated for the VNF service is specific. A set of parameters of the infrastructure resources of the VM executing the service in the VNF, such as CPU, memory, bandwidth, hard disk, and the like. Based on the resource load of the VM performing the service in the VNF and the VM infrastructure resource information allocated for the VNF service in the first VDU, the amount of resources of the VM actually used when the VNF service is run may be calculated.
步骤102、根据VNFD文件中每个VDU中的VM基础设施资源信息和VNF运行时所需的VM基础设施资源,从VNFD文件的所有VDU中确定与VNF运行时所需的VM基础设施资源的匹配度最大的第二VDU。Step 102: Determine, according to VM infrastructure resource information in each VDU in the VNFD file and VM infrastructure resources required by the VNF runtime, from all VDUs of the VNFD file, determine matching with VM infrastructure resources required by the VNF runtime. The second largest VDU.
在本实施例中,VNFM获取VNFD文件中每个VDU中的VM基础设施资源信息,计算VNF运行时所需的VM基础设施资源与每个VDU中的VM基础设施资源之间的匹配度,并选择匹配度最大的VM基础设施资源对应的VDU为第二VDU。In this embodiment, the VNFM obtains the VM infrastructure resource information in each VDU in the VNFD file, and calculates the matching degree between the VM infrastructure resources required by the VNF runtime and the VM infrastructure resources in each VDU, and The VDU corresponding to the VM infrastructure resource with the highest matching degree is selected as the second VDU.
步骤103、根据第二VDU对VNF进行扩容。Step 103: Expand the VNF according to the second VDU.
在本实施例中,当确定第二VDU之后,VNFM根据第二VDU对VNF进行扩容,具体的扩容过程可以采用现有技术中的VNF的扩容方法,此处不再赘述。In this embodiment, after the second VDU is determined, the VNFM expands the VNF according to the second VDU. The specific capacity expansion process may use the VNF expansion method in the prior art, and details are not described herein again.
现有技术中,当VNF业务发生变化时,使用与该VNF业务对应的VDU对VNFC实例进行扩容时,容易出现VDU中所规定的VM的基础设施资源配置量大于业务实际运行时的VNF的资源使用量,例如,与该VNF业务对应的VDU中规定的内存大小为10G,而实际执行VNF业务时,在其他资源充分利用的情况下,6G内存已满足需求,有剩余4G的内存处于闲置状态,从而造成VM的基础设施资源的浪费。本实施例中,VNFM根据VNF中执行业务的VM的资源负载和VNFD文件中第一VDU中的VM基础设施资源信息,确定VNF运行时所需的VM基础设施资源,并根据VNFD文件中每个VDU中的VM基础设施资源信息和VNF运行时所需的VM基础设施资源,从VNFD文件的所有VDU中确定与VNF运行时所需的VM基础设施资源的匹配度最大的第二VDU,根据第二VDU对VNF进行扩容,本实施例中,不再使用预先为VNF业务配置的VDU进行扩容,而是从所有的VDU中选择与VNF运行时所需的VM基础设施资源最匹配的VDU进行扩容,因此,第 二VDU中的VM的基础设施资源的配置量与VNF运行时所需的VM基础设施资源量最为相似,故采用根据第二VDU对VNF进行扩容,不仅可以满足VNF业务的资源需求,而且不会造成VM的基础设施资源的浪费。In the prior art, when the VNF service is changed, the VDU corresponding to the VNF service is used to expand the VNFC instance, and the resource allocation amount of the VM specified in the VDU is greater than the VNF resource when the service is actually running. The usage amount, for example, the memory size specified in the VDU corresponding to the VNF service is 10G, and when the VNF service is actually executed, when other resources are fully utilized, the 6G memory has satisfied the demand, and the remaining 4G memory is idle. , thereby causing waste of the infrastructure resources of the VM. In this embodiment, the VNFM determines the VM infrastructure resources required for the VNF operation according to the resource load of the VM performing the service in the VNF and the VM infrastructure resource information in the first VDU in the VNFD file, and according to each of the VNFD files. The VM infrastructure resource information in the VDU and the VM infrastructure resources required by the VNF runtime determine the second VDU with the greatest matching degree with the VM infrastructure resources required by the VNF runtime from all VDUs of the VNFD file, according to the The VDU is expanded by the VDU. In this embodiment, the VDUs configured for the VNF service are not used for capacity expansion. Instead, the VDUs that match the VM infrastructure resources required for the VNF operation are selected from all the VDUs. , therefore, the first The configuration of the infrastructure resources of the VMs in the two VDUs is the most similar to the VM infrastructure resources required by the VNF. Therefore, the VNF is expanded according to the second VDU, which not only satisfies the resource requirements of the VNF service, but also does not A waste of infrastructure resources for the VM.
本实施例提供的VNF扩容的方法,VNFM根据VNF中执行业务的VM的资源负载和VNFD文件中第一VDU中的VM基础设施资源信息,确定VNF运行时所需的VM基础设施资源,并根据VNFD文件中每个VDU中的VM基础设施资源信息和VNF运行时所需的VM基础设施资源,从VNFD文件的所有VDU中确定与VNF运行时所需的VM基础设施资源的匹配度最大的第二VDU,根据第二VDU对VNF进行扩容,本实施例中,不再使用预先为VNF业务配置的VDU进行扩容,而是从所有的VDU中选择与VNF运行时所需的VM基础设施资源最匹配的第二VDU进行扩容,因此,第二VDU中的VM的基础设施资源的配置量与VNF运行时所需的VM基础设施资源量最为相似,故采用根据第二VDU对VNF进行扩容,不仅可以满足VNF业务的资源需求,而且不会造成VM的基础设施资源的浪费。In the VNF expansion method provided by this embodiment, the VNFM determines the VM infrastructure resource required for the VNF operation according to the resource load of the VM performing the service in the VNF and the VM infrastructure resource information in the first VDU in the VNFD file, and according to The VM infrastructure resource information in each VDU in the VNFD file and the VM infrastructure resources required by the VNF runtime determine the most matching degree of the VM infrastructure resources required by the VNF runtime from all VDUs of the VNFD file. In the second VDU, the VNF is expanded according to the second VDU. In this embodiment, the VDUs configured for the VNF service are not used for capacity expansion, and the VM infrastructure resources required for the VNF operation are selected from all the VDUs. The matching second VDU is expanded. Therefore, the configuration amount of the infrastructure resources of the VM in the second VDU is the most similar to the VM infrastructure resource required for the VNF operation. Therefore, the VNF is expanded according to the second VDU. It can meet the resource requirements of the VNF service and will not waste the VM's infrastructure resources.
图3为本发明实施例二提供的VNF扩容的方法流程图。本实施例的执行主体为VNFM,如图3所示,该方法包括以下步骤:FIG. 3 is a flowchart of a method for expanding a VNF according to Embodiment 2 of the present invention. The execution body of this embodiment is a VNFM. As shown in FIG. 3, the method includes the following steps:
步骤201、根据VNF中执行业务的VM的资源负载和VNFD文件中第一VDU中的VM基础设施资源信息,确定VNF运行时所需的VM基础设施资源。Step 201: Determine, according to a resource load of a VM performing a service in the VNF and VM infrastructure resource information in the first VDU in the VNFD file, a VM infrastructure resource required for the VNF runtime.
其中,第一VDU为当前与VNF对应的VDU。The first VDU is a VDU currently corresponding to the VNF.
在本实施例中,“根据VNFD文件中每个VDU中的VM基础设施资源信息,从VNFD文件的所有VDU中确定与VNF运行时所需的VM基础设施资源的匹配度最大的第二VDU”这一步骤的具体实现方法包括步骤202至步骤205。In this embodiment, "determining the second VDU with the greatest matching degree with the VM infrastructure resources required by the VNF runtime from all VDUs of the VNFD file according to the VM infrastructure resource information in each VDU in the VNFD file" The specific implementation method of this step includes steps 202 to 205.
步骤202、根据VNF中执行业务的VM的资源负载和第一VDU中的VM基础设施资源信息获取第一向量。Step 202: Acquire a first vector according to a resource load of a VM performing a service in the VNF and VM infrastructure resource information in the first VDU.
在本实施例中,第一向量为VNF运行时所需的VM基础设施资源对应的向量,VNFM根据VNF中执行业务的VM的资源负载和第一VDU中的VM基础设施资源信息获取第一向量,将第一向量表示为R=(R1,R2,…,Ri,…,Rn),其中,Ri表示VM的基础设施资源的使用量,例如,R1表示VM的CPU 的使用量,R2表示VM的内存的使用量等。In this embodiment, the first vector is a vector corresponding to the VM infrastructure resource required for the VNF operation, and the VNFM obtains the first vector according to the resource load of the VM performing the service in the VNF and the VM infrastructure resource information in the first VDU. Representing the first vector as R=(R 1 , R 2 , . . . , R i , . . . , R n ), where R i represents the usage amount of the infrastructure resource of the VM, for example, R 1 represents the CPU of the VM. The amount of use, R 2 represents the amount of memory used by the VM, and the like.
步骤203、根据VNFD文件中每个VDU中的VM基础设施资源信息获取第二向量。Step 203: Acquire a second vector according to VM infrastructure resource information in each VDU in the VNFD file.
在本实施例中,第二向量为每个VDU中的VM基础设施资源对应的向量,将第二向量表示为T=(T1,T2,…,Ti,…,Tn),其中,Ti表示VDU中VM的基础设施资源的使用量,例如,T1表示VM的CPU的配置量,T2表示VM的内存的配置量等。In this embodiment, the second vector is a vector corresponding to the VM infrastructure resource in each VDU, and the second vector is represented as T=(T 1 , T 2 , . . . , T i , . . . , T n ), where T i represents the usage amount of the infrastructure resource of the VM in the VDU. For example, T 1 represents the configured amount of the CPU of the VM, and T 2 represents the configured amount of the memory of the VM.
需要说明的是,第二向量中的元素的排序必须和第一向量一致,例如,R1表示VM的CPU的使用量,则T1必须表示VM的CPU的配置量;R2表示VM的内存的使用量,则T2必须表示VM的内存的配置量。It should be noted that the order of the elements in the second vector must be consistent with the first vector. For example, R 1 represents the usage of the CPU of the VM, and T 1 must represent the configuration amount of the CPU of the VM; R 2 represents the memory of the VM. The amount of usage, T 2 must represent the amount of memory configured by the VM.
步骤204、获取第一向量和每个第二向量之间的匹配度。Step 204: Acquire a matching degree between the first vector and each second vector.
在本实施例中,可以通过相似性算法来计算并记录R与T中各向量之间的匹配程度,获取匹配度,该匹配度通常介于0和1之间。一种常见的相似性度量为余弦相似性,也可以使用其他类似的相似性度量方法,本发明中不加以限制。In this embodiment, the degree of matching between R and T vectors can be calculated and recorded by a similarity algorithm to obtain a matching degree, which is usually between 0 and 1. One common measure of similarity is cosine similarity, and other similar similarity measures can be used, which are not limited in the present invention.
步骤205、将匹配度最大的第二向量对应的VDU作为第二VDU。Step 205: The VDU corresponding to the second vector with the largest matching degree is used as the second VDU.
在本实施例中,获取到所有的第二向量与第一向量之间的匹配度之后,将匹配度最大的第二向量对应的VDU作为第二VDU。In this embodiment, after obtaining the matching degree between all the second vectors and the first vector, the VDU corresponding to the second vector with the largest matching degree is used as the second VDU.
在本实施例中,“根据第二VDU对VNF进行扩容”这一步骤的具体实现方法包括步骤206至步骤208。In this embodiment, the specific implementation method of the step of “expanding the VNF according to the second VDU” includes steps 206 to 208.
步骤206、判断第二VDU中的VM基础设施资源与VNF运行时所需的VM基础设施资源之间的匹配度是否大于或者等于预设阈值;若是,则执行步骤207;若否,则执行步骤208。Step 206: Determine whether the matching degree between the VM infrastructure resource in the second VDU and the VM infrastructure resource required by the VNF is greater than or equal to a preset threshold; if yes, execute step 207; if not, perform the step 208.
在本实施例中,匹配度大于等于0,且小于等于1,可以预先设置一个预设阈值,比较第二VDU中的VM基础设施资源与VNF运行时所需的VM基础设施资源之间的匹配度与预设阈值的大小,为了保证第二VDU中的VM基础设施资源与VNF运行时所需的VM基础设施资源最匹配,通常情况下,预设阈值的取值不小于0.8,具体的,预设阈值可以等于0.85、0.9等,本领域技术人员可以根据实际需要来设置预设阈值。In this embodiment, if the matching degree is greater than or equal to 0 and less than or equal to 1, a preset threshold may be preset to compare the matching between the VM infrastructure resources in the second VDU and the VM infrastructure resources required by the VNF runtime. And the size of the preset threshold, in order to ensure that the VM infrastructure resources in the second VDU match the VM infrastructure resources required for the VNF running, the preset threshold is usually not less than 0.8. Specifically, The preset threshold may be equal to 0.85, 0.9, etc., and a person skilled in the art may set a preset threshold according to actual needs.
步骤207、根据第二VDU对VNF进行扩容。 Step 207: Expand the VNF according to the second VDU.
在本实施例中,当第二VDU中的VM基础设施资源与VNF运行时所需的VM基础设施资源之间的匹配度大于或者等于预设阈值时,根据第二VDU对VNF进行扩容。In this embodiment, when the matching degree between the VM infrastructure resource in the second VDU and the VM infrastructure resource required for the VNF operation is greater than or equal to a preset threshold, the VNF is expanded according to the second VDU.
步骤208、根据VNFD文件初始化时,VNFD文件中与VNF对应的VDU对VNF进行扩容,并通过VNFD管理器在VNFD文件中创建新的VDU。Step 208: According to the VNFD file initialization, the VNF corresponding to the VNF in the VNFD file expands the VNF, and creates a new VDU in the VNFD file through the VNFD manager.
在本实施中,当第二VDU中的VM基础设施资源与VNF运行时所需的VM基础设施资源之间的匹配度小于预设阈值时,VNFM根据VNFD文件初始化时,VNFD文件中与VNF对应的VDU对VNF进行扩容,并通过VNFD管理器在VNFD文件中创建新的VDU。由于建立新的VDU有等待时间,可能造成VNF业务的延迟,因此,在VNFD文件初始化时,为每个VNF业务配置相应的VDU,当第一次对该VNF业务进行扩容,或者,从所有的VDU中没有找到与VNF运行时所需的VM基础设施资源相匹配的VDU时,使用该初始化时配置的VDU对VNF进行扩容。从而避免了建立新的VDU造成的VNF业务的延迟,保证了VNF业务的服务质量。并且,若第二VDU中的VM基础设施资源与VNF运行时所需的VM基础设施资源之间的匹配度小于预设阈值,使用VNFD文件初始化过程中,为该VNF设置的VDU对VNF进行扩容的同时,VNFM还可以根据VNF运行时所需的VM基础设施资源,通过VNFD管理器在VNFD文件中创建新的VDU。In this implementation, when the matching degree between the VM infrastructure resource in the second VDU and the VM infrastructure resource required by the VNF running is less than a preset threshold, the VNFM corresponds to the VNF in the VNFD file according to the VNFD file initialization. The VDU expands the VNF and creates a new VDU in the VNFD file through the VNFD Manager. Because there is a waiting time for establishing a new VDU, the VNF service may be delayed. Therefore, when the VNFD file is initialized, the corresponding VDU is configured for each VNF service. When the VNF service is expanded for the first time, or from all the When a VDU that matches the VM infrastructure resources required for the VNF runtime is not found in the VDU, the VDU configured during the initialization is used to expand the VNF. Therefore, the delay of the VNF service caused by the establishment of a new VDU is avoided, and the service quality of the VNF service is guaranteed. And, if the matching degree between the VM infrastructure resource in the second VDU and the VM infrastructure resource required by the VNF is less than a preset threshold, the VNF set for the VNF is used to expand the VNF during the VNFD file initialization process. At the same time, VNFM can also create a new VDU in the VNFD file through the VNFD Manager based on the VM infrastructure resources required by the VNF runtime.
可选地,在本实施例中,通过VNFD管理器在VNFD文件中创建新的VDU,具体包括:向NFVO发送VDU创建请求;其中,VDU创建请求携带VNF运行时所需的VM基础设施资源信息,用于请求NFVO在确定需要创建新的VDU之后,NFVO指示VNFD管理器根据VNF运行时所需的VM基础设施资源信息在VNFD文件中创建新的VDU。Optionally, in this embodiment, creating a new VDU in the VNFD file by using the VNFD manager includes: sending a VDU creation request to the NFVO; wherein the VDU creation request carries the VM infrastructure resource information required by the VNF runtime. After requesting NFVO to determine that a new VDU needs to be created, the NFVO instructs the VNFD Manager to create a new VDU in the VNFD file based on the VM infrastructure resource information required by the VNF runtime.
在本实施例中,当需要创建新的VDU时,VNFM向NFVO发送VDU创建请求,NFVO根据VDU创建请求中携带的VNF运行时所需的VM基础设施资源信息判断是否需要建立新的VDU,如果确定需要创建新的VDU,则NFVO指示VNFD管理器根据VNF运行时所需的VM基础设施资源信息在VNFD文件中创建新的VDU,当下一次对该VNF扩容时,可以使用该新建的VDU对该VNF进行扩容。具体的,VNFD管理器是管理VNFD文件的逻辑实体,实际实现时需要建立一个功能模块作为VNFD管理器,该功能模块 可以集成在NFVO中,也可以部署在其他模块中。VNFD管理器的作用包括对VNFD文件的查询、修改、以及VNFD文件的创建、更新和删除等,是VNFD文件管理的最终实现者,在实施例中,主要涉及的是VNFD管理器创建VDU的过程。表1为VNFD管理器的功能描述。In this embodiment, when a new VDU needs to be created, the VNFM sends a VDU creation request to the NFVO, and the NFVO determines whether it is necessary to establish a new VDU according to the VM infrastructure resource information required by the VNF runtime carried in the VDU creation request. If it is determined that a new VDU needs to be created, the NFVO instructs the VNFD manager to create a new VDU in the VNFD file according to the VM infrastructure resource information required by the VNF runtime. When the VNF is expanded next time, the newly created VDU can be used to The VNF is expanded. Specifically, the VNFD manager is a logical entity that manages the VNFD file. In actual implementation, a function module needs to be established as a VNFD manager, and the function module Can be integrated in NFVO or deployed in other modules. The role of the VNFD manager includes querying, modifying, and creating, updating, and deleting VNFD files. It is the ultimate implementer of VNFD file management. In the embodiment, the VNFD manager is mainly involved in the process of creating a VDU. . Table 1 shows the functional description of the VNFD Manager.
表1Table 1
操作operating 描述description
查询Inquire 该操作容许获取VNFD文件的部分或全部内容This operation allows access to some or all of the contents of the VNFD file.
修改modify 该操作容许修改VNFD文件的部分或全部内容This operation allows modification of some or all of the contents of the VNFD file.
创建create 该操作容许创建新的VNFD文件This operation allows the creation of a new VNFD file
更新Update 该操作容许对VNFD文件内容的更新This operation allows updates to the contents of the VNFD file.
删除delete 该操作容许删除VNFD文件This operation allows deletion of VNFD files
需要说明的是,在本实施例中,对于VNFD文件的管理可以由VNFM或运营支撑系统(The Office of Strategic Services,简称OSS)发起,也可以由具有高级权限的运营维护人员发起,例如,第一种方式为:具有高级权限的运营维护人员可以通过VNF文件管理(package management)接口直接指示VNFD管理器进行VNFD文件管理,运营维护人员需要指定VNFD文件管理的具体内容;第二种方式为:VNFM或OSS向NFVO请求进行VNFD文件管理,NFVO许可VNFD文件管理操作后,NFVO向VNFD管理器发起指令,指示VNFD管理器对VNFD文件进行管理。It should be noted that, in this embodiment, the management of the VNFD file may be initiated by the VNFM or the Office of Strategic Services (OSS), or may be initiated by an operation and maintenance personnel with advanced rights, for example, One mode is: the operation and maintenance personnel with advanced authority can directly instruct the VNFD manager to perform VNFD file management through the VNF file management interface. The operation and maintenance personnel need to specify the specific content of the VNFD file management; the second way is: VNFM or OSS requests VNFD file management from NFVO. After NFVO permits VNFD file management operation, NFVO initiates an instruction to VNFD manager to instruct VNFD manager to manage VNFD file.
本实施例提供的VNF扩容的方法,VNFM将VNF运行时所需的VM基础设施资源和所有VDU中的VM基础设施资源向量化,通过计算第一向量和第二向量之间的相似性,选择出与VNF运行时所需的VM基础设施资源最匹配的第二VDU,并进一步的比较第二VDU中的VM基础设施资源与VNF运行时所需的VM基础设施资源之间的匹配度与预设阈值之间的大小,当该匹配度大于或等于预设阈值时,根据第二VDU对VNF进行扩容,不仅满足了VNF业务的需求,而且,不会造成VM基础设施资源的浪费;当该匹配度 小于预设阈值时,根据VNFD文件初始化时,VNFD文件中与VNF对应的VDU对VNF进行扩容,并通过VNFD管理器在VNFD文件中创建新的VDU,不仅使得本次VNF扩容可以及时完成,保证了VNF业务的服务质量,而且,由于新的VDU为根据VNF业务运行时所需的VM基础设施资源新建的VDU,因此,该新建的VDU与VNF业务运行时所需的VM基础设施资源最匹配,下次对该VNF扩容时,采用新建的VDU对该VNF扩容,进一步减少VM基础设施资源的浪费。In the VNF expansion method provided by this embodiment, the VNFM vectorizes the VM infrastructure resources required by the VNF runtime and the VM infrastructure resources in all the VDUs, and selects the similarity between the first vector and the second vector to select A second VDU that best matches the VM infrastructure resources required for the VNF runtime, and further compares the degree and match between the VM infrastructure resources in the second VDU and the VM infrastructure resources required by the VNF runtime The size of the threshold is set. When the matching degree is greater than or equal to the preset threshold, the VNF is expanded according to the second VDU, which not only satisfies the requirement of the VNF service, but also does not waste the VM infrastructure resources; suitability When the VNFD file is initialized, the VNF corresponding to the VNF in the VNFD file is expanded to the VNF, and a new VDU is created in the VNFD file through the VNFD manager. This not only enables the VNF expansion to be completed in time, but also ensures that the VNF expansion can be completed in time. The quality of service of the VNF service, and since the new VDU is a newly created VDU based on the VM infrastructure resources required for the VNF service to operate, the newly created VDU and the VNF service need to match the VM infrastructure resources at the time of operation. The next time the VNF is expanded, the new VDU is used to expand the VNF, further reducing the waste of VM infrastructure resources.
图4为本发明实施例三提供的VNF扩容的方法流程图。在上述图2或图3所示实施例的基础上,“根据所述第二VDU对所述VNF进行扩容”这一步骤的方法实现原理具体包括以下步骤:FIG. 4 is a flowchart of a method for expanding a VNF according to Embodiment 3 of the present invention. On the basis of the foregoing embodiment shown in FIG. 2 or FIG. 3, the method implementation principle of the step of “expanding the VNF according to the second VDU” specifically includes the following steps:
步骤301、根据第二VDU向NFVO发送扩容请求。Step 301: Send a content expansion request to the NFVO according to the second VDU.
其中,扩容请求包括扩容所需的VM数量和扩容所需的VM的基础设施资源信息。The capacity expansion request includes the number of VMs required for capacity expansion and infrastructure resource information of VMs required for capacity expansion.
在本实施例中,VNFM根据第二VDU确定扩容所需的VM数量和扩容所需的VM的基础设施资源信息,再根据扩容所需的VM数量和扩容所需的VM的基础设施资源信息生成扩容请求。NFVO接收到扩容请求之后,查询资源数据库判断扩容请求是否可行,若资源数据库中的资源可以满足该VNF业务,则确定该扩容请求可行,NFVO通过虚拟资源管理VRM(Virtual Resource Management)接口创建预留资源,避免扩容VNF业务所需的资源被抢占,并向VNFM发送扩容指令;若资源数据库中的资源不能满足该VNF业务,则确定该扩容请求不可行,NFVO向VNFM发送资源不足消息或者不返回任何消息。In this embodiment, the VNFM determines the number of VMs required for capacity expansion and the infrastructure resource information of the VMs required for capacity expansion according to the second VDU, and then generates the VM resources required for the capacity expansion and the VM infrastructure resource information required for the capacity expansion. Expansion request. After receiving the expansion request, the NFVO queries the resource database to determine whether the expansion request is feasible. If the resource in the resource database can satisfy the VNF service, it is determined that the expansion request is feasible, and the NFVO creates a reservation through the virtual resource management VRM (Virtual Resource Management) interface. The resource is not preempted by the VNFM. any news.
步骤302、接收NFVO发送的扩容指令。Step 302: Receive an expansion instruction sent by the NFVO.
其中,扩容指令携带NFVO根据扩容请求为VNF的扩容所分配的资源信息。The capacity expansion command carries the resource information allocated by the NFVO according to the expansion request for the expansion of the VNF.
在本实施例中,NFVO为VNF的扩容所分配的资源信息具体为NFVO通过VRM接口创建的预留资源信息。In this embodiment, the resource information allocated by the NFVO for the expansion of the VNF is specifically the reserved resource information created by the NFVO through the VRM interface.
步骤303、根据扩容指令创建并启动扩容所需的VM。Step 303: Create and start a VM required for the expansion according to the expansion instruction.
可选地,在本实施例中,可以在VNFM中建立一个匹配模块,并在该匹配模块和NFVO之间建立一个通信接口,该匹配模块用于根据VNFD文件中 每个VDU中的VM基础设施资源信息和VNF运行时所需的VM基础设施资源,从VNFD文件的所有VDU中确定与VNF运行时所需的VM基础设施资源的匹配度最大的第二VDU,该通信接口用于实现匹配模块与NFVO之间的通信,例如,匹配模块选择出第二VDU之后,通过通信接口向VNFO发送扩容请求,或者,当需要创建新的VDU时,匹配模块通过通信接口向VNFO发送VDU创建请求。Optionally, in this embodiment, a matching module may be established in the VNFM, and a communication interface is established between the matching module and the NFVO, and the matching module is used according to the VNFD file. The VM infrastructure resource information in each VDU and the VM infrastructure resources required by the VNF runtime determine the second VDU that has the greatest matching degree with the VM infrastructure resources required by the VNF runtime from all VDUs of the VNFD file. The communication interface is used to implement communication between the matching module and the NFVO. For example, after the matching module selects the second VDU, the matching request is sent to the VNFO through the communication interface, or when the new VDU needs to be created, the matching module passes the communication interface. Send a VDU creation request to the VNFO.
在本实施例中,VNFM接收NFVO发送的扩容指令,VNFM根据扩容指令中的预留资源信息创建并启动扩容所需的VM。具体过程如下:VNFM向VIM请求创建扩容所需的VM,VIM创建、启动扩容所需的VM并相应分配网络资源,然后向VNFM发送创建成功信息,VNFM设置该VNF的VM的基础设置资源信息和操作系统等参数,并将扩容该VNF业务所增加的VM的数量以及增加的VM的基础设施资源信息发送给单元管理设备(Element Management,简称EM),以使EM对该VNF业务的相关参数进行设置,然后,VNFM将VNF成功扩容的消息上报给NFVO,由NFVO将该VNF业务关联到合适的VIM和资源池。In this embodiment, the VNFM receives the expansion command sent by the NFVO, and the VNFM creates and starts the VM required for the expansion according to the reserved resource information in the expansion instruction. The specific process is as follows: The VNFM requests the VIM to create the VM required for the expansion. The VIM creates and starts the VM required for the expansion and allocates the network resources accordingly, and then sends the creation success information to the VNFM. The VNFM sets the basic resource information of the VM of the VNF and The parameters of the operating system and the like, and the number of VMs added by the VNF service and the infrastructure resource information of the added VM are sent to the element management device (Element Management, EM for short), so that the EM performs related parameters of the VNF service. After the VNFM reports the successful expansion of the VNF to the NFVO, the NFVO associates the VNF service with the appropriate VIM and resource pool.
本实施例提供的VNF扩容的方法,VNFM确定了第二VDU之后,根据第二VDU向NFVO发送扩容请求,并接收NFVO发送的携带NFVO根据扩容请求为VNF的扩容所分配的资源信息的扩容指令,根据扩容指令创建并启动扩容所需的VM,完成整个VNF扩容的过程,满足VNF业务的需求,保证了服务质量,并减少了VM基础设施资源的浪费。In the VNF expansion method provided by the embodiment, after the VNFM determines the second VDU, the VNF sends a capacity expansion request to the NFVO according to the second VDU, and receives the expansion command of the resource information that is transmitted by the NFVO and carries the NFVO according to the expansion request as the VNF expansion. Create and start the VMs needed for capacity expansion according to the expansion command, complete the VNF expansion process, meet the requirements of the VNF service, ensure the service quality, and reduce the waste of VM infrastructure resources.
图5为本发明实施例四提供的VNF扩容的装置结构示意图。如图5所示,该装置包括确定模块11、匹配模块12和扩容模块13。确定模块11用于根据VNF中执行业务的VM的资源负载和VNFD文件中第一VDU中的VM基础设施资源信息,确定VNF运行时所需的VM基础设施资源;其中,第一VDU为当前与VNF对应的VDU。匹配模块12用于根据VNFD文件中每个VDU中的VM基础设施资源信息和VNF运行时所需的VM基础设施资源,从VNFD文件的所有VDU中确定与VNF运行时所需的VM基础设施资源的匹配度最大的第二VDU。扩容模块13用于根据第二VDU对VNF进行扩容。FIG. 5 is a schematic structural diagram of an apparatus for expanding a VNF according to Embodiment 4 of the present invention. As shown in FIG. 5, the device includes a determining module 11, a matching module 12, and a expansion module 13. The determining module 11 is configured to determine, according to a resource load of the VM performing the service in the VNF and the VM infrastructure resource information in the first VDU in the VNFD file, the VM infrastructure resource required for the VNF running; wherein, the first VDU is current and The VDU corresponding to the VNF. The matching module 12 is configured to determine VM infrastructure resources required for the VNF runtime from all VDUs of the VNFD file according to VM infrastructure resource information in each VDU in the VNFD file and VM infrastructure resources required by the VNF runtime. The second VDU with the highest matching degree. The expansion module 13 is configured to expand the VNF according to the second VDU.
本实施例的装置,可以用于执行图2所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。 The device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 2, and the implementation principle and technical effects are similar, and details are not described herein again.
进一步地,在上述图5所示实施例的基础上,在本发明实施例五提供的VNF扩容的装置中,扩容模块13具体用于判断第二VDU中的VM基础设施资源与VNF运行时所需的VM基础设施资源之间的匹配度是否大于或者等于预设阈值;若是,则扩容模块13根据第二VDU对VNF进行扩容;若否,则扩容模块13根据VNFD文件初始化时,VNFD文件中与VNF对应的VDU对VNF进行扩容,并通过VNFD管理器在VNFD文件中创建新的VDU。Further, on the basis of the foregoing embodiment shown in FIG. 5, in the VNF expansion device provided in the fifth embodiment of the present invention, the expansion module 13 is specifically configured to determine the VM infrastructure resource and the VNF runtime in the second VDU. Whether the matching degree between the required VM infrastructure resources is greater than or equal to a preset threshold; if yes, the expansion module 13 expands the VNF according to the second VDU; if not, the expansion module 13 initializes the VNFD file according to the VNFD file. The VDU corresponding to the VNF expands the VNF and creates a new VDU in the VNFD file through the VNFD manager.
在本实施例中,匹配模块12具体用于根据VNF中执行业务的VM的资源负载和第一VDU中的VM基础设施资源信息获取第一向量;根据VNFD文件中每个VDU中的VM基础设施资源信息获取第二向量;获取第一向量和每个第二向量之间的匹配度;将匹配度最大的第二向量对应的VDU作为第二VDU。In this embodiment, the matching module 12 is specifically configured to acquire the first vector according to the resource load of the VM performing the service in the VNF and the VM infrastructure resource information in the first VDU; according to the VM infrastructure in each VDU in the VNFD file. The resource information acquires a second vector; obtains a matching degree between the first vector and each second vector; and uses a VDU corresponding to the second vector with the largest matching degree as the second VDU.
在本实施例中,扩容模块13还用于向网络功能虚拟化编排器NFVO发送VDU创建请求;其中,VDU创建请求携带VNF运行时所需的VM基础设施资源信息,用于请求NFVO在确定需要创建新的VDU之后,NFVO指示VNFD管理器根据VNF运行时所需的VM基础设施资源信息在VNFD文件中创建新的VDU。In this embodiment, the expansion module 13 is further configured to send a VDU creation request to the network function virtualization orchestrator NFVO; wherein the VDU creation request carries the VM infrastructure resource information required by the VNF runtime, for requesting the NFVO to determine the need After creating a new VDU, NFVO instructs the VNFD Manager to create a new VDU in the VNFD file based on the VM infrastructure resource information required by the VNF runtime.
本实施例的装置,可以用于执行图3所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 3, and the implementation principle and technical effects are similar, and details are not described herein again.
更进一步地,在上述实施例五的基础上,在本发明实施例六提供的VNF扩容的装置中,扩容模块13具体还用于根据第二VDU向NFVO发送扩容请求;其中,扩容请求包括扩容所需的VM数量和扩容所需的VM的基础设施资源信息;扩容模块13具体还用于接收NFVO发送的扩容指令,并根据扩容指令创建并启动扩容所需的VM;其中,扩容指令携带NFVO根据扩容请求为VNF的扩容所分配的资源信息。Further, on the basis of the foregoing fifth embodiment, in the device for expanding the VNF provided by the sixth embodiment of the present invention, the expansion module 13 is further configured to send a capacity expansion request to the NFVO according to the second VDU; wherein the expansion request includes expansion The number of VMs and the infrastructure resource information of the VMs required for the expansion; the expansion module 13 is specifically configured to receive the expansion command sent by the NFVO, and create and start the VM required for the expansion according to the expansion instruction; wherein the expansion command carries the NFVO The resource information allocated for the expansion of the VNF according to the capacity expansion request.
可选地,在本实施例中,可以在该匹配模块和NFVO之间建立一个通信接口,通信接口用于实现匹配模块与NFVO之间的通信,例如,匹配模块选择出第二VDU之后,通过通信接口向VNFO发送扩容请求,或者,当需要创建新的VDU时,匹配模块通过通信接口向VNFO发送VDU创建请求。Optionally, in this embodiment, a communication interface may be established between the matching module and the NFVO, where the communication interface is used to implement communication between the matching module and the NFVO, for example, after the matching module selects the second VDU, The communication interface sends a capacity expansion request to the VNFO, or when a new VDU needs to be created, the matching module sends a VDU creation request to the VNFO through the communication interface.
本实施例的装置,可以用于执行图4所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。 The device in this embodiment may be used to implement the technical solution of the method embodiment shown in FIG. 4, and the implementation principle and technical effects are similar, and details are not described herein again.
图6为本发明实施例七提供的VNF扩容的设备结构示意图。如图6所示,该设备包括处理器21、接收器22和发射器23。处理器21用于根据VNF中执行业务的VM的资源负载和VNFD文件中第一VDU中的VM基础设施资源信息,确定VNF运行时所需的VM基础设施资源;其中,第一VDU为当前与VNF对应的VDU。处理器21用于根据VNFD文件中每个VDU中的VM基础设施资源信息和VNF运行时所需的VM基础设施资源,从VNFD文件的所有VDU中确定与VNF运行时所需的VM基础设施资源的匹配度最大的第二VDU。处理器21还用于根据第二VDU对VNF进行扩容。接收器22用于接收监控设备发送的VNF中执行业务的VM的资源负载,或者,其它设备向VNF扩容的设备发送的信息。发射器23用于向与VNF扩容的设备通信的其它设备发送信息。FIG. 6 is a schematic structural diagram of a device for expanding a VNF according to Embodiment 7 of the present invention. As shown in FIG. 6, the device includes a processor 21, a receiver 22, and a transmitter 23. The processor 21 is configured to determine, according to a resource load of a VM that performs a service in the VNF and VM infrastructure resource information in the first VDU in the VNFD file, a VM infrastructure resource required for the VNF operation; where the first VDU is current and The VDU corresponding to the VNF. The processor 21 is configured to determine VM infrastructure resources required for the VNF runtime from all VDUs of the VNFD file according to VM infrastructure resource information in each VDU in the VNFD file and VM infrastructure resources required by the VNF runtime. The second VDU with the highest matching degree. The processor 21 is further configured to expand the VNF according to the second VDU. The receiver 22 is configured to receive the resource load of the VM performing the service in the VNF sent by the monitoring device, or the information sent by the other device to the device expanded by the VNF. Transmitter 23 is used to transmit information to other devices that communicate with the VNF-expanded device.
可选地,处理器21用于判断所述第二VDU中的VM基础设施资源与所述VNF运行时所需的VM基础设施资源之间的匹配度是否大于或者等于预设阈值;若是,则处理器21根据第二VDU对VNF进行扩容;若否,则处理器21根据VNFD文件初始化时,VNFD文件中与VNF对应的VDU对VNF进行扩容,并通过VNFD管理器在VNFD文件中创建新的VDU。Optionally, the processor 21 is configured to determine whether a matching degree between the VM infrastructure resource in the second VDU and the VM infrastructure resource required by the VNF runtime is greater than or equal to a preset threshold; if yes, The processor 21 expands the VNF according to the second VDU; if not, the processor 21 expands the VNF according to the VNF corresponding to the VNF in the VNFD file according to the VNFD file initialization, and creates a new VNFD file in the VNFD file. VDU.
可选地,处理器21还用于根据VNF中执行业务的VM的资源负载和第一VDU中的VM基础设施资源信息获取第一向量;根据VNFD文件中每个VDU中的VM基础设施资源信息获取第二向量;获取第一向量和每个第二向量之间的匹配度;将匹配度最大的第二向量对应的VDU作为第二VDU。Optionally, the processor 21 is further configured to acquire the first vector according to the resource load of the VM performing the service in the VNF and the VM infrastructure resource information in the first VDU; according to the VM infrastructure resource information in each VDU in the VNFD file. Obtaining a second vector; acquiring a matching degree between the first vector and each second vector; and using the VDU corresponding to the second vector with the largest matching degree as the second VDU.
可选地,发射器23还用于向NFVO发送VDU创建请求;其中,VDU创建请求携带VNF运行时所需的VM基础设施资源信息,用于请求NFVO在确定需要创建新的VDU之后,NFVO指示VNFD管理器根据VNF运行时所需的VM基础设施资源信息在VNFD文件中创建新的VDU。Optionally, the transmitter 23 is further configured to send a VDU creation request to the NFVO; wherein the VDU creation request carries VM infrastructure resource information required by the VNF runtime, for requesting the NFVO to determine the NFVO indication after the new VDU needs to be created. The VNFD Manager creates a new VDU in the VNFD file based on the VM infrastructure resource information required by the VNF runtime.
可选地,发射器23还用于根据第二VDU向NFVO发送扩容请求;其中,扩容请求包括扩容所需的VM数量和扩容所需的VM的基础设施资源信息;接收器22用于接收NFVO发送的扩容指令;其中,扩容指令携带NFVO根据扩容请求为VNF的扩容所分配的资源信息;处理器21还用于根据扩容指令创建并启动扩容所需的VM。Optionally, the transmitter 23 is further configured to send a capacity expansion request to the NFVO according to the second VDU, where the capacity expansion request includes the number of VMs required for capacity expansion and infrastructure resource information of the VM required for capacity expansion; and the receiver 22 is configured to receive the NFVO. The expansion command sent by the NFVO carries the resource information allocated for the expansion of the VNF according to the expansion request. The processor 21 is further configured to create and start the VM required for the expansion according to the expansion instruction.
本实施例提供的VNF扩容的设备,可以用于执行上述任一VNF扩容的 方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The VNF expansion device provided in this embodiment may be used to perform any of the above VNF expansion. The technical solution of the method embodiment has similar implementation principles and technical effects, and details are not described herein again.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(random access memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。One of ordinary skill in the art will appreciate that all or part of the steps to implement the various method embodiments described above may be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. When the program is executed, the steps of the foregoing method embodiments are performed; and the foregoing storage medium includes: Read-Only Memory (ROM), Random Access Memory (RAM), and Magnetic A variety of media that can store program code, such as a disc or a disc.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims (10)

  1. 一种虚拟网络功能VNF扩容的方法,其特征在于,包括:A method for expanding a VNF of a virtual network function, comprising:
    根据所述VNF中执行业务的VM的资源负载和虚拟网络描述符VNFD文件中第一VDU中的VM基础设施资源信息,确定所述VNF运行时所需的VM基础设施资源;其中,所述第一VDU为当前与所述VNF对应的VDU;Determining, according to a resource load of a VM performing the service in the VNF and VM infrastructure resource information in the first VDU in the virtual network descriptor VNFD file, the VM infrastructure resource required by the VNF runtime; a VDU is a VDU currently corresponding to the VNF;
    根据所述VNFD文件中每个VDU中的VM基础设施资源信息和所述VNF运行时所需的VM基础设施资源,从所述VNFD文件的所有VDU中确定与所述VNF运行时所需的VM基础设施资源的匹配度最大的第二VDU;Determining a VM required for the VNF runtime from all VDUs of the VNFD file according to VM infrastructure resource information in each VDU in the VNFD file and VM infrastructure resources required by the VNF runtime a second VDU with the greatest matching of infrastructure resources;
    根据所述第二VDU对所述VNF进行扩容。The VNF is expanded according to the second VDU.
  2. 根据权利要求1所述的方法,其特征在于,根据所述第二VDU对所述VNF进行扩容,具体包括:The method according to claim 1, wherein the expanding the VNF according to the second VDU comprises:
    判断所述第二VDU中的VM基础设施资源与所述VNF运行时所需的VM基础设施资源之间的匹配度是否大于或者等于预设阈值;Determining whether a matching degree between the VM infrastructure resource in the second VDU and the VM infrastructure resource required by the VNF runtime is greater than or equal to a preset threshold;
    若是,则根据所述第二VDU对所述VNF进行扩容;If yes, expanding the VNF according to the second VDU;
    若否,则根据所述VNFD文件初始化时,所述VNFD文件中与所述VNF对应的VDU对所述VNF进行扩容,并通过VNFD管理器在所述VNFD文件中创建新的VDU。If not, the VNF corresponding to the VNF in the VNFD file is expanded according to the VNFD file, and a new VDU is created in the VNFD file by the VNFD manager.
  3. 根据权利要求1或2所述的方法,其特征在于,所述根据所述VNFD文件中每个VDU中的VM基础设施资源信息,从所述VNFD文件的所有VDU中确定与所述VNF运行时所需的VM基础设施资源的匹配度最大的第二VDU,具体包括:The method according to claim 1 or 2, wherein said determining and running said VNF from all VDUs of said VNFD file based on VM infrastructure resource information in each VDU in said VNFD file The second VDU with the largest matching degree of the required VM infrastructure resources includes:
    根据所述VNF中执行业务的VM的资源负载和所述第一VDU中的VM基础设施资源信息获取第一向量;Obtaining a first vector according to a resource load of a VM performing a service in the VNF and VM infrastructure resource information in the first VDU;
    根据所述VNFD文件中每个VDU中的VM基础设施资源信息获取第二向量;Obtaining a second vector according to VM infrastructure resource information in each VDU in the VNFD file;
    获取所述第一向量和每个所述第二向量之间的匹配度;Obtaining a degree of matching between the first vector and each of the second vectors;
    将所述匹配度最大的所述第二向量对应的VDU作为第二VDU。The VDU corresponding to the second vector with the largest degree of matching is used as the second VDU.
  4. 根据权利要求2所述的方法,其特征在于,所述通过VNFD管理器在所述VNFD文件中创建新的VDU,具体包括:The method according to claim 2, wherein the creating a new VDU in the VNFD file by using the VNFD manager includes:
    向网络功能虚拟化编排器NFVO发送VDU创建请求;其中,所述VDU创建请求携带所述VNF运行时所需的VM基础设施资源信息,用于请求所述 NFVO在确定需要创建新的VDU之后,所述NFVO指示所述VNFD管理器根据所述VNF运行时所需的VM基础设施资源信息在所述VNFD文件中创建所述新的VDU。Transmitting a VDU creation request to the network function virtualization orchestrator NFVO; wherein the VDU creation request carries VM infrastructure resource information required by the VNF runtime for requesting the After determining that a new VDU needs to be created, the NFVO instructs the VNFD manager to create the new VDU in the VNFD file based on VM infrastructure resource information required by the VNF runtime.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述第二VDU对所述VNF进行扩容,具体包括:The method according to claim 4, wherein the expanding the VNF according to the second VDU comprises:
    根据所述第二VDU向所述NFVO发送扩容请求;其中,所述扩容请求包括扩容所需的VM数量和扩容所需的VM的基础设施资源信息;Sending a capacity expansion request to the NFVO according to the second VDU, where the capacity expansion request includes the number of VMs required for capacity expansion and infrastructure resource information of the VM required for capacity expansion;
    接收所述NFVO发送的扩容指令;其中,所述扩容指令携带所述NFVO根据所述扩容请求为所述VNF的扩容所分配的资源信息;Receiving the expansion command sent by the NFVO; wherein the expansion instruction carries the resource information allocated by the NFVO according to the expansion request for the expansion of the VNF;
    根据所述扩容指令创建并启动扩容所需的VM。Create and start the VM required for capacity expansion according to the expansion command.
  6. 一种虚拟网络功能VNF扩容的装置,其特征在于,包括:A device for expanding a virtual network function VNF, comprising:
    确定模块,用于根据所述VNF中执行业务的VM的资源负载和虚拟网络描述符VNFD文件中第一VDU中的VM基础设施资源信息,确定所述VNF运行时所需的VM基础设施资源;其中,所述第一VDU为当前与所述VNF对应的VDU;a determining module, configured to determine, according to a resource load of a VM performing a service in the VNF and VM infrastructure resource information in a first VDU in a virtual network descriptor VNFD file, a VM infrastructure resource required by the VNF runtime; The first VDU is a VDU currently corresponding to the VNF;
    匹配模块,用于根据所述VNFD文件中每个VDU中的VM基础设施资源信息和所述VNF运行时所需的VM基础设施资源,从所述VNFD文件的所有VDU中确定与所述VNF运行时所需的VM基础设施资源的匹配度最大的第二VDU;a matching module, configured to determine, according to VM infrastructure resource information in each VDU in the VNFD file and VM infrastructure resources required by the VNF runtime, from all VDUs of the VNFD file to run with the VNF The second VDU with the largest matching degree of VM infrastructure resources required;
    扩容模块,用于根据所述第二VDU对所述VNF进行扩容。And a capacity expansion module, configured to expand the VNF according to the second VDU.
  7. 根据权利要求6所述的装置,其特征在于,所述扩容模块具体用于判断所述第二VDU中的VM基础设施资源与所述VNF运行时所需的VM基础设施资源之间的匹配度是否大于或者等于预设阈值;若是,则所述扩容模块根据所述第二VDU对所述VNF进行扩容;若否,则所述扩容模块根据所述VNFD文件初始化时,所述VNFD文件中与所述VNF对应的VDU对所述VNF进行扩容,并通过所述VNFD管理器在所述VNFD文件中创建新的VDU。The device according to claim 6, wherein the expansion module is specifically configured to determine a matching degree between a VM infrastructure resource in the second VDU and a VM infrastructure resource required by the VNF runtime. Whether the value is greater than or equal to the preset threshold; if yes, the expansion module expands the VNF according to the second VDU; if not, the expansion module initializes the VNFD file according to the VNFD file The VDU corresponding to the VNF expands the VNF, and creates a new VDU in the VNFD file by using the VNFD manager.
  8. 根据权利要求6或7所述的装置,其特征在于,所述匹配模块具体用于根据所述VNF中执行业务的VM的资源负载和所述第一VDU中的VM基础设施资源信息获取第一向量;根据所述VNFD文件中每个VDU中的VM 基础设施资源信息获取第二向量;获取所述第一向量和每个所述第二向量之间的匹配度;将所述匹配度最大的所述第二向量对应的VDU作为第二VDU。The device according to claim 6 or 7, wherein the matching module is specifically configured to acquire a first according to a resource load of a VM performing a service in the VNF and VM infrastructure resource information in the first VDU. Vector; according to the VM in each VDU in the VNFD file Obtaining a second vector of the infrastructure resource information; acquiring a matching degree between the first vector and each of the second vectors; and using the VDU corresponding to the second vector with the largest matching degree as the second VDU.
  9. 根据权利要求7所述的装置,其特征在于,所述扩容模块还用于向网络功能虚拟化编排器NFVO发送VDU创建请求;其中,所述VDU创建请求携带所述VNF运行时所需的VM基础设施资源信息,用于请求所述NFVO在确定需要创建新的VDU之后,所述NFVO指示所述VNFD管理器根据所述VNF运行时所需的VM基础设施资源信息在所述VNFD文件中创建所述新的VDU。The apparatus according to claim 7, wherein the expansion module is further configured to send a VDU creation request to the network function virtualization orchestrator NFVO; wherein the VDU creation request carries a VM required by the VNF runtime Infrastructure resource information for requesting the NFVO, after determining that a new VDU needs to be created, the NFVO instructing the VNFD manager to create in the VNFD file according to VM infrastructure resource information required by the VNF runtime The new VDU.
  10. 根据权利要求9所述的装置,其特征在于,所述扩容模块具体还用于根据所述第二VDU向所述NFVO发送扩容请求;其中,所述扩容请求包括扩容所需的VM数量和扩容所需的VM的基础设施资源信息;所述扩容模块具体还用于接收所述NFVO发送的扩容指令,并根据所述扩容指令创建并启动扩容所需的VM;其中,所述扩容指令携带所述NFVO根据所述扩容请求为所述VNF的扩容所分配的资源信息。 The device according to claim 9, wherein the expansion module is further configured to send a capacity expansion request to the NFVO according to the second VDU, where the capacity expansion request includes a quantity and capacity expansion of a VM required for capacity expansion. The required resource information of the VM; the expansion module is further configured to receive the expansion command sent by the NFVO, and create and start a VM required for the expansion according to the expansion instruction; wherein the expansion instruction carries the The NFVO allocates resource information allocated for the expansion of the VNF according to the expansion request.
PCT/CN2015/084315 2015-07-17 2015-07-17 Virtual network function capacity expansion method and apparatus WO2017011938A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2015/084315 WO2017011938A1 (en) 2015-07-17 2015-07-17 Virtual network function capacity expansion method and apparatus
CN201580041914.5A CN106664259B (en) 2015-07-17 2015-07-17 Method and device for expanding virtual network function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/084315 WO2017011938A1 (en) 2015-07-17 2015-07-17 Virtual network function capacity expansion method and apparatus

Publications (1)

Publication Number Publication Date
WO2017011938A1 true WO2017011938A1 (en) 2017-01-26

Family

ID=57833632

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/084315 WO2017011938A1 (en) 2015-07-17 2015-07-17 Virtual network function capacity expansion method and apparatus

Country Status (2)

Country Link
CN (1) CN106664259B (en)
WO (1) WO2017011938A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107368351A (en) * 2017-07-25 2017-11-21 郑州云海信息技术有限公司 A kind of automatic upgrade expanding method of virtual machine configuration and device
CN109286494A (en) * 2017-07-20 2019-01-29 华为技术有限公司 A kind of the initialization authority generation method and equipment of virtual network function VNF
CN111211998A (en) * 2019-12-12 2020-05-29 北京淇瑀信息科技有限公司 Resource allocation method and device capable of elastically expanding capacity and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111698112B (en) * 2019-03-15 2021-09-14 华为技术有限公司 Resource management method and device for VNF (virtual network function)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104050045A (en) * 2014-06-27 2014-09-17 华为技术有限公司 Method and device for distributing virtual resources based on disk IO
WO2014155292A1 (en) * 2013-03-27 2014-10-02 Ericsson Ab A method and system to allocate bandwidth for heterogeneous bandwidth request in cloud computing networks
US20150082308A1 (en) * 2013-09-13 2015-03-19 Ntt Docomo, Inc. Method and apparatus for network virtualization
CN104601492A (en) * 2014-12-29 2015-05-06 上海华为技术有限公司 Method and device for controlling business flow under NFV framework
CN104601680A (en) * 2014-12-31 2015-05-06 华为技术有限公司 Resource management method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014155292A1 (en) * 2013-03-27 2014-10-02 Ericsson Ab A method and system to allocate bandwidth for heterogeneous bandwidth request in cloud computing networks
US20150082308A1 (en) * 2013-09-13 2015-03-19 Ntt Docomo, Inc. Method and apparatus for network virtualization
CN104050045A (en) * 2014-06-27 2014-09-17 华为技术有限公司 Method and device for distributing virtual resources based on disk IO
CN104601492A (en) * 2014-12-29 2015-05-06 上海华为技术有限公司 Method and device for controlling business flow under NFV framework
CN104601680A (en) * 2014-12-31 2015-05-06 华为技术有限公司 Resource management method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"3GPP TR 32.842 V1.0.0 (2015-03", 3RD GENERATION PARTNERSHIP PROJECT; TECHNICAL SPECIFICATION GROUP SERVICES AND SYSTEM ASPECTS; TELECOMMUNICATION MANAGEMENT; STUDY ON NETWORK MANAGEMENT OF VIRTUALIZED NETWORKS (RELEASE 13);, 31 March 2015 (2015-03-31), XP055349679 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109286494A (en) * 2017-07-20 2019-01-29 华为技术有限公司 A kind of the initialization authority generation method and equipment of virtual network function VNF
CN109286494B (en) * 2017-07-20 2020-10-23 华为技术有限公司 Method and device for generating initialization credential of virtual network function VNF
CN107368351A (en) * 2017-07-25 2017-11-21 郑州云海信息技术有限公司 A kind of automatic upgrade expanding method of virtual machine configuration and device
CN111211998A (en) * 2019-12-12 2020-05-29 北京淇瑀信息科技有限公司 Resource allocation method and device capable of elastically expanding capacity and electronic equipment

Also Published As

Publication number Publication date
CN106664259B (en) 2020-01-10
CN106664259A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
US11429408B2 (en) System and method for network function virtualization resource management
US10701139B2 (en) Life cycle management method and apparatus
WO2018024059A1 (en) Method and device for service deployment in virtualized network
WO2020135799A1 (en) Vnf service instantiation method and device
US10241835B2 (en) Scheduling storage and computing resources based on task types and service levels
US20210058338A1 (en) Method and system for managing applications
US10924966B2 (en) Management method, management unit, and system
WO2018006676A1 (en) Acceleration resource processing method and apparatus and network function virtualization system
WO2016070729A1 (en) Instantiating vnf method and network element management device
US20170373931A1 (en) Method for updating network service descriptor nsd and apparatus
US10620986B2 (en) Hardware acceleration method and related device
WO2017011938A1 (en) Virtual network function capacity expansion method and apparatus
US9342369B2 (en) System and method for increasing throughput of a PaaS system
WO2016155291A1 (en) Method and apparatus for managing virtualized network function scaling
US20230221997A1 (en) System and method for subscription management using composed systems
CN109960579B (en) Method and device for adjusting service container
WO2018153354A1 (en) Resource application and vnf instance creation method and apparatus
WO2017041650A1 (en) Method and device for extending distributed consistency service
WO2019109948A1 (en) Paas management method and device, and storage medium
US11614957B1 (en) Native-hypervisor based on-demand code execution system
CN110727511B (en) Control method for application program, network side device and computer readable storage medium
US20220229689A1 (en) Virtualization platform control device, virtualization platform control method, and virtualization platform control program
EP4009167A1 (en) Instantiated request generation method, interface virtual machine configuration method, nfvo, and vim
WO2020098352A1 (en) Workflow scheduling method, apparatus, and system
WO2016192011A1 (en) Congestion control method and network element device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15898494

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15898494

Country of ref document: EP

Kind code of ref document: A1