WO2022188150A1 - Automatic scaling up method, automatic scaling down method, and device - Google Patents

Automatic scaling up method, automatic scaling down method, and device Download PDF

Info

Publication number
WO2022188150A1
WO2022188150A1 PCT/CN2021/080458 CN2021080458W WO2022188150A1 WO 2022188150 A1 WO2022188150 A1 WO 2022188150A1 CN 2021080458 W CN2021080458 W CN 2021080458W WO 2022188150 A1 WO2022188150 A1 WO 2022188150A1
Authority
WO
WIPO (PCT)
Prior art keywords
type
target
container group
vnf
vnfm
Prior art date
Application number
PCT/CN2021/080458
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 CN202180095296.8A priority Critical patent/CN116964999A/en
Priority to PCT/CN2021/080458 priority patent/WO2022188150A1/en
Publication of WO2022188150A1 publication Critical patent/WO2022188150A1/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]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5077Logical partitioning of resources; Management or configuration of virtualized resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • H04L41/0897Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities by horizontal or vertical scaling of resources, or by migrating entities, e.g. virtual resources or entities
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application relates to the field of virtualization technologies, and in particular, to an automatic capacity expansion method, an automatic capacity reduction method, and an apparatus.
  • Network functions virtualization provides a new way to design, deploy and manage network services, and realize the realization and deployment of network functions based on virtualization.
  • VMs virtual machines
  • VNF virtualized network function
  • the overall load of the VNFs can be increased by automatically shrinking the VM, realizing the rational use of resources, and achieving energy saving and emission reduction.
  • the overall load of the VNF can be reduced.
  • public cloud usually adopts the central processing unit (CPU), memory usage and other indicators to formulate expansion and contraction strategies, and then expand and contract by changing the number of VMs and the number of containers. Since the public cloud can approximate that virtual hardware resources are infinite, when scaling up a VM, it is not necessary to consider whether there are business containers running on the VM.
  • the public cloud sets the expansion threshold to a lower value, and expands multiple VMs in advance, which can be used directly when the subsequent service containers need to be expanded.
  • the main difference between telecom cloud and public cloud is that telecom cloud cannot deploy massive hardware resources like public cloud due to limited virtual hardware resources. When expanding or shrinking the capacity of the telecom cloud, it is necessary to fully consider the issue of resource utilization.
  • the embodiments of the present application disclose an automatic capacity expansion method, an automatic capacity reduction method and a device, which can improve resource utilization.
  • an embodiment of the present application provides an automatic capacity expansion method, which is applied to a network function virtualization NFV system including a virtualized network manager VNFM.
  • the method includes: the VNFM obtains from a virtualized network function description VNFD a target capacity expansion strategy, where the target capacity expansion strategy includes: expanding a first type of virtual machine before expanding a first type of container group, where the first type of container group is hosted on the first type of virtual machine; the VNFM According to the target expansion strategy, determine the container group of the first type to be expanded on the target virtualized network function VNF; the target VNF is a VNF that adopts the target expansion strategy; the VNFM is based on the target expansion strategy , send the first capacity expansion information to the virtualized infrastructure manager VIM, where the first capacity expansion information is used to instruct to create the virtual machine of the first type on the target VNF; the VNFM sends the second capacity expansion information, so the The second capacity expansion information is used to indicate that the container group of the first type is created in the virtual machine
  • the VNFM after determining the container group of the first type to be expanded according to the target expansion strategy, the VNFM first expands the virtual machine of the first type, so that the expanded virtual machine of the first type is used as the container running the first type. Set of vectors. Then, a container group of the first type is created in the virtual machine of the first type. The first type of virtual machine will be expanded only after the container group of the first type to be expanded is determined, and the first type of virtual machine does not need to be expanded in advance, which can improve resource utilization.
  • the target capacity expansion strategy further includes: the number of container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met; the VNFM according to the target A capacity expansion strategy, determining that the container group of the first type to be expanded on the target virtualized network function VNF includes: the VNFM determining, according to the target capacity expansion strategy, F pieces of the first type to be expanded on the target VNF
  • the VNFM sends the first capacity expansion information to the virtualization infrastructure manager VIM according to the target capacity expansion policy, including: the VNFM does not satisfy the capacity expansion of F container groups of the first type in the target VNF
  • the first expansion information is sent to the VIM; the container group of the first type is affinity, and the first expansion information is used.
  • the second expansion information is used to instruct the expansion of F virtual machines of the first type in the F virtual machines of the first type.
  • the F and the K are integers greater than 0, and the F virtual machines of the first type include the K virtual machines of the first type.
  • the container group of the first type is affinity, that is, the container group of the first type and the container group of other types can be deployed on the same virtual machine.
  • the VNFM sends the first capacity expansion information to the VIM when the VNF does not meet the virtual machine resources required for capacity expansion of F first-type container groups; the virtual machine of the first type that needs to be expanded can be accurately determined The number of machines can make full use of virtual machine resources.
  • the target capacity expansion strategy further includes: the number of container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met; the VNFM according to the target A capacity expansion strategy, determining that the container group of the first type to be expanded on the target virtualized network function VNF includes: the VNFM determining, according to the target capacity expansion strategy, F pieces of the first type to be expanded on the target VNF the container group; the VNFM sending the first capacity expansion information to the virtualization infrastructure manager VIM according to the target capacity expansion policy includes: the VNFM determines, according to the target capacity expansion policy, to expand F on the target VNF the first type of virtual machine, and send the first capacity expansion information to the VIM, the first type of container group is non-affinity; the first capacity expansion information is used to indicate that the target Create F virtual machines of the first type on the VNF, and the second capacity expansion information is used to instruct to create F container groups of the first type in the F virtual machines of the first type.
  • the F is an integer greater than 0.
  • the container group of the first type is non-affinity, that is, a virtual machine can only deploy one container group of the first type, and cannot deploy container groups of other types.
  • the VNFM determines the F virtual machines of the first type to be expanded according to the target expansion policy ;
  • the required virtual machine can be quickly expanded.
  • the target capacity expansion strategy further includes: when expanding the container group of the first type, expanding the container group of the second type; the second capacity expansion information is further used to indicate that the container group of the first type is expanded A container group of the second type is created in a virtual machine of the type.
  • the container group of the first type and the container group of the second type can support the same service and can be deployed on the same virtual machine.
  • the container group of the second type when expanding the container group of the first type, the container group of the second type can be expanded, and the resources of the virtual machine can be fully utilized.
  • the VNFM determines, according to the target capacity expansion policy, before the container group of the first type is to be expanded on the target virtualized network function VNF, the method further includes: the VNFM receives data from The resource usage status indicator of the target VNF, where the resource usage status indicator represents the resource usage of the container group of the first type in the target VNF; the VNFM determines the remaining target according to the target capacity expansion policy Expanding the container group of the first type on the virtualized network function VNF includes: the VNFM determines, according to the resource usage status indicator and the target capacity expansion policy, to expand the container of the first type on the target VNF Group.
  • the VNFM can accurately and quickly determine the type of container group to be expanded according to the resource usage status indicator and the target expansion strategy.
  • the resource usage status indicator includes two or more resource usage status sampling indicators, and the two or more resource usage status sampling indicators represent the first indicator in the target VNF.
  • the container group of the first type includes: the VNFM determines to expand the first type on the target VNF when the two or more of the resource usage status sampling indicators all exceed the expansion threshold container group.
  • the VNFM sends the first capacity expansion information to the virtualized infrastructure manager VIM according to the target capacity expansion policy, including: the VNFM determines, according to the target capacity expansion policy, whether to expand the first capacity Before a container group of one type needs to expand the capacity of the virtual machine of the first type; the VNFM sends the first capacity expansion information to the VIM.
  • the VNFM determines, according to the target capacity expansion policy, that the virtual machine of the first type needs to be expanded before expanding the container group of the first type. Then, the first capacity expansion information is sent to the VIM to expand the virtual machine of the first type; the required virtual machine can be expanded when the current virtual machine resources do not meet the requirements, which can improve resource utilization.
  • the method further includes: receiving, through a capacity expansion policy configuration interface, a user's capacity expansion policy configuration instruction for the container group of the first type; configuring and obtaining the target capacity expansion according to the capacity expansion policy configuration instruction Strategy.
  • the target expansion strategy is configured according to the expansion strategy configuration instruction; the user can configure the required expansion strategy according to actual needs, which can meet different business requirements.
  • an embodiment of the present application provides an automatic scaling method, which is applied to a network function virtualization NFV system including a virtualized network manager VNFM.
  • the method includes: the VNFM extracts data from a virtualized network function description VNFD Obtain a target scaling policy, where the target scaling policy includes: scaling down a first type of virtual machine after scaling down a first type of container group, where the first type of container group is hosted on the first type of virtual machine
  • the VNFM determines the container group of the first type on the target virtualized network function VNF to be scaled down according to the target reduction strategy; the target VNF is a VNF that adopts the target reduction strategy;
  • the VNFM sends first scaling information, where the first scaling information is used to instruct scaling down of the container group of the first type in the target VNF; the VNFM sends the virtualized
  • the infrastructure manager VIM sends second scaling information, where the second scaling information is used to instruct scaling down of the virtual machine of the first type in the target VNF.
  • the virtual machine of the first type (that is, the virtual machine that carries the container group of the first type) is reduced, which can prevent redundant virtual machines from running any container group. resulting in waste of resources.
  • the target shrinking policy further includes: shrinking the container group of the second type when shrinking the container group of the first type; the first shrinking information is further used to indicate the shrinking
  • the container group of the second type in the target VNF is accommodated, and the container group of the second type is hosted on the virtual machine of the first type.
  • the container group of the first type and the container group of the second type may support the same service.
  • the resources occupied by the container group of the second type can be released in time.
  • the target scaling strategy further includes: the number of the container groups of the first type to be scaled down when the conditions for scaling down the container group of the first type are met; the VNFM according to For the target reduction policy, determining the container group of the first type on the target virtualized network function VNF to be scaled includes: the VNFM determining, according to the target reduction policy, the container groups in the target VNF to be scaled down. K container groups of the first type, where K is an integer greater than 0.
  • the number of container groups of the first type to be scaled down can be quickly and accurately determined according to the target scale down policy.
  • the method before the VNFM sends the first capacity reduction information, the method further includes: the VNFM sends third capacity reduction information to the target VNF, where the third capacity reduction information is used for confirmation Whether the container group of the first type in the target VNF can be scaled down; the VNFM receives fourth scale down information from the target VNF, the fourth scale down information indicates that the container group in the target VNF can be scaled down; the first type of container group.
  • the VNFM sends the third scaling information to the target VNF, so as to confirm whether the container group of the first type can be scaled down, so as to avoid scaling down the container group that cannot be scaled down.
  • the method before the VNFM determines, according to the target scaling policy, the container group of the first type on the target virtualized network function VNF to be scaled down, the method further includes: the VNFM Receive a resource usage status indicator from the target VNF, where the resource usage status indicator represents the resource usage of the container group of the first type in the target VNF; the VNFM determines according to the target scaling policy
  • the container group of the first type on the target virtualized network function VNF to be scaled down includes: the VNFM determines, according to the resource usage status indicator and the target scale down policy, all the containers in the target VNF to be scaled down. The first type of container group is described.
  • the VNFM resource usage status indicator and the target scaling strategy can accurately and quickly determine the type of container group that needs to be scaled down.
  • the resource usage status indicator includes two or more resource usage status sampling indicators, and the two or more resource usage status sampling indicators represent the first indicator in the target VNF.
  • the container group of the first type includes: the VNFM determines that the VNF in the target VNF to be scaled down is under the condition that none of the two or more resource usage status sampling indicators exceeds the scaling threshold. The first type of container group.
  • the container group of the first type to be scaled down on the target VNF can be avoided.
  • the container group needs to be re-scaled in a short period of time.
  • the method further includes: receiving a user's scaling policy configuration instruction for the first type of container group through a scaling policy configuration interface; and configuring the desired scaling policy according to the scaling policy configuration instruction Describe the target scaling strategy.
  • the target shrinkage policy is generated according to the shrinkage policy configuration instruction; the user can configure the required shrinkage policy according to actual needs, which can meet different business needs.
  • the second scaling information is used to instruct scaling down of the first type of virtual machines of the first type that are not deployed in the service container group among the plurality of virtual machines of the first type deployed in the target VNF. virtual machine; or, the second scaling information is used to instruct scaling down one or more of the first type of virtual machines with the lowest CPU usage of the CPU among the plurality of virtual machines of the first type deployed in the target VNF
  • a business container group refers to a container group that provides business services.
  • the virtual machines in which the service container group is not deployed or the virtual machines with low CPU occupancy rate are preferentially scaled down, which can improve resource utilization.
  • an embodiment of the present application provides an automatic scaling method, which is applied to a network function virtualized NFV system including a virtualized network manager VNFM and a target virtualized network function VNF, and the method includes: the target VNF Receive third scaling information from the VNFM, where the third scaling information is used to confirm whether the container group of the first type in the target VNF can be scaled down; the target VNF converts the first type of container group The services executed by the container group are migrated out of the container group of the first type; the target VNF sends fourth reduction information to the VNFM, where the fourth reduction information indicates that the target VNF can be reduced in size The first type of container group.
  • the target VNF may be any VNF configured with a scaling policy.
  • the target VNF migrates the services performed by the first type of container group out of the first type of container group, it sends fourth capacity reduction information to the VNFM; this can avoid shrinking the container group that still executes services.
  • an embodiment of the present application provides an automatic capacity expansion method, which is applied to a network function virtualization NFV system including a virtualized network manager VNFM and a target virtualized network function VNF, the method comprising: the target VNF according to The target expansion strategy is to determine the container group of the first type to be expanded; the target VNF determines to expand the first type of virtual machine before expanding the container group of the first type according to the target expansion strategy; The VNFM sends third capacity expansion information, where the third capacity expansion information is used to instruct to expand the virtual machine of the first type on the target VNF; the target VNF sends fourth capacity expansion information to the VNFM, the The fourth capacity expansion information is used to indicate that the container group of the first type is created in the virtual machine of the first type.
  • the target VNF is a VNF that adopts the target capacity expansion strategy.
  • the target VNF determines to expand the capacity of the first type of virtual machine before expanding the container group of the first type according to the target capacity expansion policy.
  • the first type of virtual machine is expanded by sending the third capacity expansion information to the VNFM, and then the fourth capacity expansion information is sent to the VNFM, so as to create a first type of container group in the first type of virtual machine.
  • the first type of virtual machine can be expanded only after it is determined that the first type of virtual machine needs to be expanded, and the first type of virtual machine does not need to be expanded in advance, which can improve resource utilization.
  • the target capacity expansion strategy further includes: the number of container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met; the target VNF is based on the The target expansion strategy, determining the container group of the first type to be expanded includes: the target VNF determines F container groups of the first type to be expanded according to the target expansion strategy; the target VNF according to the target expansion strategy A capacity expansion strategy, determining to expand the first type of virtual machines before expanding the container group of the first type includes: the target VNF determines, according to the target capacity expansion strategy, to expand K before expanding the container group of the first type the virtual machine of the first type; the container group of the first type is affinity, and the third capacity expansion information is used to instruct the expansion of K virtual machines of the first type on the target VNF, The fourth capacity expansion information is used to indicate that F container groups of the first type are to be expanded in the F virtual machines of the first type. Both the F and the K are integers greater than 0, and the F The virtual machines of the first type include the
  • the target VNF can accurately determine the number of virtual machines of the first type to be expanded, and can fully utilize virtual machine resources.
  • the target capacity expansion strategy further includes: the number of container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met; the target VNF is based on the The target expansion strategy, determining the container group of the first type to be expanded includes: the target VNF determines F container groups of the first type to be expanded according to the target expansion strategy; the target VNF according to the target expansion strategy A capacity expansion strategy, determining to expand the first type of virtual machines before expanding the container group of the first type includes: the target VNF determines, according to the target capacity expansion strategy, to expand F number of virtual machines before expanding the container group of the first type For the virtual machine of the first type, the container group of the first type is non-affinity; the third capacity expansion information is used to indicate that F virtual machines of the first type are to be expanded on the target VNF , the fourth capacity expansion information is used to indicate that F container groups of the first type are to be expanded in the F virtual machines of the first type.
  • the target VNF can accurately determine the number of virtual machines of the first type to be expanded, and can fully utilize virtual machine resources.
  • the target capacity expansion strategy further includes: when expanding the container group of the first type, expanding the container group of the second type; the fourth capacity expansion information is used to indicate that the container group of the first type is expanded. Create the container group of the first type and create the container group of the second type in the virtual machine of the .
  • the second type is the container group type associated with the first type. The container group of the first type and the container group of the second type can support the same service and can be deployed on the same virtual machine.
  • the container group of the second type when expanding the container group of the first type, the container group of the second type can be expanded, and the resources of the virtual machine can be fully utilized.
  • the method before the target VNF determines the container group of the first type to be expanded according to the target capacity expansion policy, the method further includes: acquiring, by the target VNF, a resource usage status indicator, the resource usage status indicator Characterizing the resource usage of the first type of container group in the target VNF; the target VNF determining the container group of the first type to be expanded according to the target capacity expansion policy includes: the target VNF according to the resource usage status The index and the target expansion strategy determine the container group of the first type to be expanded.
  • the target VNF can accurately and quickly determine the type of container group that needs to be expanded according to the resource usage status indicator and the target capacity expansion strategy.
  • the method further includes: configuring, by the target VNF, the target capacity expansion policy through a man-machine language MML configuration command.
  • the target VNF can conveniently configure the required target capacity expansion policy through the MML configuration command.
  • an embodiment of the present application provides an automatic scaling method, which is applied to a network function virtualization NFV system including a virtualized network manager VNFM and a target virtualized network function VNF, the method comprising: the target VNF Determine the container group of the first type to be scaled down according to the target scaling policy; the target VNF determines, according to the target scaling policy, to scale down the virtual machine of the first type after scaling down the container group of the first type ; The target VNF sends fifth shrinkage information to the VNFM, and the fifth shrinkage information is used to instruct to shrink the container group of the first type in the target VNF; the target VNF reports to the The VNFM sends sixth scaling information, where the sixth scaling information is used to instruct to scale down the virtual machine of the first type in the target VNF, and the container group of the first type is hosted on the first type virtual machine.
  • the target VNF is a VNF that adopts the target shrinking policy.
  • the target scaling strategy further includes: the number of container groups of the first type to be scaled down when the conditions for scaling down the container group of the first type are met; the target VNF Determining the container group of the first type to be scaled down according to the target reduction strategy includes: the target VNF determines F container groups of the first type to be scaled down according to the target reduction strategy; the target VNF according to the target reduction strategy In the target shrinking policy, determining to shrink the virtual machine of the first type after shrinking the container group of the first type includes: the target VNF determines, according to the target shrinking policy, to shrink the first type of virtual machine after shrinking the first type of container group.
  • the fifth scaling information is used to indicate scaling down the F container groups of the first type in the target VNF
  • the The six shrinkage information is used to instruct to shrink the H virtual machines of the first type in the target VNF, the F and the H are both integers greater than 0, and the H is less than or equal to the F.
  • the target VNF can accurately determine the number of virtual machines of the first type to be scaled down, and release redundant virtual machine resources in time to achieve energy saving and emission reduction.
  • the target shrinking policy further includes: shrinking the container group of the second type when shrinking the container group of the first type; the fifth shrinking information is further used to indicate the shrinking A container group of the second type in the target VNF is accommodated, where the second type is a container group type associated with the first type, and the container group of the second type is hosted on the virtual machine of the second type.
  • the method before the target VNF determines the container group of the first type to be scaled down according to the target scaling policy, the method further includes: acquiring, by the target VNF, a resource usage status indicator, and the resource usage The state indicator represents the resource usage of the container group of the first type in the target VNF; the target VNF determining the container group of the first type to be scaled down according to the target scaling policy includes: the target VNF according to the The resource usage status indicator and the target scaling strategy are used to determine the container group of the first type to be scaled down.
  • the target VNF resource usage status indicator and the target scaling strategy can accurately and quickly determine the type of container group that needs to be scaled down.
  • the method further includes: configuring, by the target VNF, the target scaling policy through a man-machine language MML configuration command.
  • the target VNF can conveniently configure the required target scaling policy through the MML configuration command.
  • an embodiment of the present application provides a communication device, which is applied to a network function virtualization NFV system including a VNFM, including: a processing unit configured to obtain a target capacity expansion policy from a virtualized network function description VNFD, the target The capacity expansion strategy includes: expanding a first type of virtual machine before expanding a first type of container group, where the first type of container group is borne by the first type of virtual machine; the processing unit is further configured to: The target capacity expansion strategy is to determine the container group of the first type to be expanded on the target virtualized network function VNF; the target VNF is a VNF that adopts the target capacity expansion strategy; the processing unit is further configured to The target capacity expansion policy controls the transceiver unit to send first capacity expansion information to the virtualization infrastructure manager VIM, where the first capacity expansion information is used to instruct the creation of the first type of virtual machine on the target VNF; the transceiver unit, It is also used for sending second capacity expansion information, where the second capacity expansion information is used to instruct to create the container
  • the target capacity expansion strategy further includes: the number of the container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met; the processing unit, specifically using According to the target capacity expansion strategy, it is determined that F container groups of the first type are to be expanded on the target VNF; the target VNF does not meet the virtual requirements for expanding the F container groups of the first type.
  • send the first expansion information to the VIM according to the target expansion policy the first type of container group is affinity, and the first expansion information is used to indicate K virtual machines of the first type are expanded in the target VNF, and the second capacity expansion information is used to indicate that F container groups of the first type are to be expanded in the F virtual machines of the first type.
  • the F and the K are integers greater than 0, and the F virtual machines of the first type include the K virtual machines of the first type.
  • the target capacity expansion strategy further includes: the number of the container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met; the processing unit, specifically using In accordance with the target expansion strategy, it is determined that F container groups of the first type are to be expanded on the target VNF; according to the target expansion strategy, it is determined that the target VNF is to be expanded. type of virtual machine, and send the first expansion information to the VIM, the container group of the first type is non-affinity; the first expansion information is used to instruct the target VNF to create an F virtual machines of the first type, the second capacity expansion information is used to instruct to create F container groups of the first type in the F virtual machines of the first type, where F is greater than or equal to An integer of 0.
  • the target capacity expansion strategy further includes: when expanding the container group of the first type, expanding the container group of the second type; the second capacity expansion information is further used to indicate that the container group of the first type is expanded A container group of the second type is created in a virtual machine of the type.
  • the transceiver unit is further configured to receive a resource usage status indicator from the target VNF, where the resource usage status indicator represents the status of the container group of the first type in the target VNF Resource usage; the processing unit is specifically configured to determine the container group of the first type to be expanded on the target VNF according to the resource usage state indicator and the target expansion policy.
  • the resource usage status indicator includes two or more resource usage status sampling indicators, and the two or more resource usage status sampling indicators represent the first indicator in the target VNF.
  • the processing unit is specifically configured to determine, according to the target capacity expansion policy, that the virtual machine of the first type needs to be expanded before the container group of the first type needs to be expanded; The unit sends the first capacity expansion information to the VIM.
  • the communication device further includes: an input unit, configured to receive a user's capacity expansion policy configuration instruction for the container group of the first type through a capacity expansion policy configuration interface; the processing unit is further configured to According to the capacity expansion policy configuration instruction, the target capacity expansion policy is obtained by configuration.
  • the embodiments of the present application provide another communication device, which is applied to a network function virtualization NFV system including a VNFM, and includes: a processing unit configured to obtain a target capacity reduction policy from the virtualized network function description VNFD, so that the The target scaling strategy includes: scaling down a first type of virtual machine after scaling down a first type of container group, where the first type of container group is borne on the first type of virtual machine; the processing unit, is also used to determine the container group of the first type on the target virtualized network function VNF to be scaled down according to the target reduction strategy; the target VNF is a VNF that adopts the target reduction strategy; the transceiver unit, is used for sending first scaling information, where the first scaling information is used to instruct scaling down of the container group of the first type in the target VNF; the processing unit is further configured to scale down according to the target a policy, controlling the transceiver unit to send second scaling information to the virtualization infrastructure manager VIM, where the second scaling information is used to instruct scaling
  • the target shrinking policy further includes: shrinking the container group of the second type when shrinking the container group of the first type; the first shrinking information is further used to indicate the shrinking The container group of the second type in the target VNF is accommodated, and the container group of the second type is hosted on the virtual machine of the first type.
  • the target scaling strategy further includes: the number of the first type of container groups to be scaled down when the conditions for scaling down the first type of container groups are met; the processing unit , which is specifically configured to determine, according to the target scaling policy, K container groups of the first type in the target VNF to be scaled down, where K is an integer greater than 0.
  • the transceiver unit is further configured to send third scaling information to the target VNF, where the third scaling information is used to confirm whether the target VNF can be scaled down A container group of a first type; receiving fourth scaling information from the target VNF, where the fourth scaling information indicates that the container group of the first type in the target VNF can be scaled down.
  • the transceiver unit is further configured to receive a resource usage status indicator from the target VNF, where the resource usage status indicator represents the status of the container group of the first type in the target VNF Resource usage; the processing unit is specifically configured to determine the container group of the first type in the target VNF to be scaled down according to the resource usage status indicator and the target scaling policy.
  • the resource usage status indicator includes two or more resource usage status sampling indicators, and the two or more resource usage status sampling indicators represent the first indicator in the target VNF.
  • the communication device further includes: an input unit, configured to receive a user's scaling policy configuration instruction for the first type of container group in the scaling policy configuration interface; the processing unit, It is also used to configure and obtain the target capacity reduction policy according to the capacity expansion policy configuration instruction.
  • the second scaling information is used to instruct scaling down of the first type of virtual machines of the first type that are not deployed in the service container group among the plurality of virtual machines of the first type deployed in the target VNF. virtual machine; or, the second scaling information is used to instruct scaling down one or more of the first type of virtual machines with the lowest CPU usage of the CPU among the plurality of virtual machines of the first type deployed in the target VNF A type of virtual machine.
  • an embodiment of the present application provides a communication device, which is applied to a network function virtualized NFV system including a virtualized network manager VNFM and a target virtualized network function VNF, including: a transceiver unit for receiving data from the The third scaling information of the VNFM, the third scaling information is used to confirm whether the container group of the first type in the target VNF can be scaled down; the processing unit is used to execute the container group of the first type The services of the first type are migrated out of the container group of the first type; the transceiver unit is further configured to send fourth capacity reduction information to the VNFM, where the fourth capacity reduction information indicates that all the containers in the target VNF can be reduced The first type of container group is described.
  • the communication device is an entity that implements the target VNF.
  • the target VNF may be any VNF configured with a scaling policy.
  • an embodiment of the present application provides another communication device, which is applied to a network function virtualized NFV system including a virtualized network manager VNFM and a target virtualized network function VNF, including: a processing unit for expanding capacity according to the target a strategy, to determine the container group of the first type to be expanded; according to the target expansion strategy, to determine to expand the virtual machine of the first type before expanding the container group of the first type; a transceiver unit, configured to send the first type of virtual machine to the VNFM Three capacity expansion information, where the third capacity expansion information is used to indicate that the virtual machine of the first type is to be expanded on the target VNF; fourth capacity expansion information is sent to the VNFM, and the fourth capacity expansion information is used to indicate that the virtual machine of the first type is to be expanded on the target VNF.
  • the container group of the first type is created in the virtual machine of the first type.
  • the target VNF is a VNF that adopts the target capacity expansion strategy.
  • the communication device is an entity that implements the target VNF
  • the target capacity expansion strategy further includes: the number of the container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met; the processing unit, specifically using In accordance with the target expansion strategy, it is determined that F container groups of the first type are to be expanded; according to the target expansion strategy, it is determined to expand the K container groups of the first type before expanding the container group of the first type.
  • the container group of the first type is affinity
  • the third capacity expansion information is used to instruct the expansion of K virtual machines of the first type on the target VNF
  • the fourth capacity expansion information It is used to instruct F number of container groups of the first type to be expanded in the F virtual machines of the first type, the F and the K are both integers greater than 0, and the F number of the first type
  • the virtual machines include the K virtual machines of the first type.
  • the target capacity expansion strategy further includes: the number of the container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met; the processing unit, specifically using According to the target expansion strategy, it is determined that F container groups of the first type are to be expanded; according to the target expansion strategy, it is determined to expand the F container groups of the first type before expanding the container group of the first type.
  • virtual machine the container group of the first type is non-affinity;
  • the third capacity expansion information is used to instruct the expansion of F virtual machines of the first type on the target VNF, and the fourth capacity expansion The information is used to instruct F number of container groups of the first type to be expanded in the F virtual machines of the first type.
  • the target capacity expansion strategy further includes: when expanding the container group of the first type, expanding the container group of the second type; the fourth capacity expansion information is used to indicate that the container group of the first type is expanded. Create a container group of the first type and create a container group of a second type in the virtual machine of the virtual machine, where the second type is a container group type associated with the first type.
  • the communication apparatus further includes: a processing unit, configured to acquire a resource usage status indicator, where the resource usage status indicator represents resource usage of the container group of the first type in the target VNF situation; the processing unit is specifically configured to determine the container group of the first type to be expanded according to the resource usage state indicator and the target capacity expansion policy.
  • the resource usage status indicator includes two or more resource usage status sampling indicators, and the two or more resource usage status sampling indicators represent the first indicator in the target VNF.
  • the processing unit is further configured to configure the target capacity expansion strategy through a man-machine language MML configuration command.
  • an embodiment of the present application provides a communication device, which is applied to a network function virtualized NFV system including a virtualized network manager VNFM and a target virtualized network function VNF, including: a processing unit for reducing capacity according to the target strategy, determine the container group of the first type to be scaled down; according to the target scaling strategy, determine to scale down the virtual machine of the first type after scaling down the container group of the first type; the transceiver unit, to the VNFM Send fifth size reduction information, where the fifth size reduction information is used to instruct to shrink the container group of the first type in the target VNF; send sixth size reduction information to the VNFM, the sixth size reduction information
  • the capacity information is used to instruct to scale down the virtual machine of the first type in the target VNF, and the container group of the first type is hosted on the virtual machine of the first type.
  • the target VNF is a VNF that adopts the target shrinking policy.
  • the communication device is an entity that implements the target VNF.
  • the target scaling strategy further includes: the number of the first type of container groups to be scaled down when the conditions for scaling down the first type of container groups are met; the processing unit , which is specifically used to determine F container groups of the first type to be scaled down according to the target shrinking strategy; and determine, according to the target shrinking strategy, to shrink the H container groups of the first type after scaling down the first type of container groups.
  • a virtual machine of the first type; the fifth shrinkage information is used to instruct to shrink the F container groups of the first type in the target VNF, and the sixth shrinkage information is used to instruct the shrinkage of the For the H virtual machines of the first type in the target VNF, both the F and the H are integers greater than 0, and the H is less than or equal to the F.
  • the target shrinking policy further includes: shrinking the container group of the second type when shrinking the container group of the first type; the fifth shrinking information is further used to indicate the shrinking
  • the second type is the type of the container group associated with the first type, and the container group of the second type is carried on the virtual machine of the second type. machine.
  • the communication apparatus further includes: a processing unit, configured to acquire a resource usage status indicator, where the resource usage status indicator represents resource usage of the container group of the first type in the target VNF situation; the processing unit is specifically configured to determine the container group of the first type to be scaled down according to the resource usage status indicator and the target scale down policy.
  • the processing unit is further configured to configure the target scaling policy through a man-machine language MML configuration command.
  • the present application provides a communication apparatus, the communication apparatus includes a processor, and when the processor executes a computer program or an instruction in a memory, the method according to the first aspect is performed.
  • the present application provides a communication device, the communication device includes a processor, and when the processor calls a computer program or an instruction in a memory, the method according to the second aspect is executed.
  • the present application provides a communication device, the communication device includes a processor, and when the processor calls a computer program or an instruction in a memory, the method according to the third aspect is executed.
  • the present application provides a communication device, the communication device includes a processor, and when the processor calls a computer program or an instruction in a memory, the method according to the fourth aspect is executed.
  • the present application provides a communication device, the communication device includes a processor, and when the processor calls a computer program or an instruction in a memory, the method according to the fifth aspect is executed.
  • an embodiment of the present application provides a communication device, the communication device includes a processor and a memory; the memory is used for storing computer-executed instructions; the processor is used for executing computer-executed instructions stored in the memory , so that the communication apparatus executes the method according to the first aspect and any possible implementation manner described above.
  • an embodiment of the present application provides a communication device, the communication device includes a processor and a memory; the memory is used for storing computer-executed instructions; the processor is used for executing computer-executed instructions stored in the memory , so that the communication apparatus executes the method according to the second aspect and any possible implementation manner described above.
  • an embodiment of the present application provides a communication device, the communication device includes a processor and a memory; the memory is configured to store computer-executed instructions; the processor is configured to execute computer-executed instructions stored in the memory , so that the communication apparatus executes the method according to the third aspect and any possible implementation manner described above.
  • an embodiment of the present application provides a communication device, the communication device includes a processor and a memory; the memory is used for storing computer-executed instructions; the processor is used for executing computer-executed instructions stored in the memory , so that the communication apparatus executes the method according to the fourth aspect and any possible implementation manner described above.
  • an embodiment of the present application provides a communication device, the communication device includes a processor and a memory; the memory is used for storing computer-executed instructions; the processor is used for executing computer-executed instructions stored in the memory , so that the communication apparatus executes the method according to the fourth aspect and any possible implementation manner described above.
  • the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store instructions or computer programs, and when the instructions or the computer programs are executed, the first aspect makes the The described method is implemented.
  • the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store instructions or computer programs, and when the instructions or the computer programs are executed, the second aspect makes the The described method is implemented.
  • the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store instructions or computer programs, and when the instructions or the computer programs are executed, make the third aspect The described method is implemented.
  • the present application provides a computer-readable storage medium, the computer-readable storage medium is used to store instructions or computer programs, when the instructions or the computer programs are executed, the fourth aspect is The described method is implemented.
  • the present application provides a computer-readable storage medium for storing an instruction or a computer program, when the instruction or the computer program is executed, the computer-readable storage medium of the fifth aspect is executed. The described method is implemented.
  • the present application provides a computer program product, the computer program product comprising instructions or a computer program, when the instructions or the computer program are executed, the method of the first aspect is implemented.
  • the present application provides a computer program product, the computer program product comprising instructions or a computer program, when the instructions or the computer program are executed, the method of the second aspect is implemented.
  • the present application provides a computer program product, the computer program product comprising instructions or a computer program, when the instructions or the computer program are executed, the method of the third aspect is implemented.
  • the present application provides a computer program product, the computer program product comprising instructions or a computer program, when the instructions or the computer program are executed, the method of the fourth aspect is implemented.
  • the present application provides a computer program product, the computer program product comprising instructions or a computer program, when the instructions or the computer program are executed, the method of the fifth aspect is implemented.
  • FIG. 1 is a schematic diagram of an NFV reference architecture
  • FIG. 2 is a flowchart of an automatic capacity expansion method provided by an embodiment of the present application
  • FIG. 3 is a flowchart of another automatic capacity expansion method provided by an embodiment of the present application.
  • FIG. 4 is an interaction flow of an automatic capacity expansion method provided by an embodiment of the present application.
  • FIG. 5 is a flowchart of an automatic shrinking method provided by an embodiment of the present application.
  • FIG. 6 is an interaction flow of an automatic scaling method provided by an embodiment of the present application.
  • FIG. 7 is a flowchart of another automatic capacity expansion method provided by an embodiment of the present application.
  • FIG. 8 is an interaction flow of an automatic capacity expansion method provided by an embodiment of the present application.
  • FIG. 9 is a flowchart of another automatic shrinking method provided by an embodiment of the present application.
  • FIG. 10 is an interaction process of an automatic scaling method provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a communication device according to an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of another communication apparatus provided by an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of another communication apparatus provided by an embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of another communication apparatus provided by an embodiment of the present application.
  • FIG. 16 is a schematic structural diagram of another communication apparatus provided by an embodiment of the present application.
  • At least one (item) refers to one or more
  • multiple refers to two or more
  • at least two (item) refers to two or three And three or more
  • "and/or” is used to describe the association relationship of related objects, indicating that three kinds of relationships can exist, for example, “A and/or B” can mean: only A exists, only B exists, and A exists at the same time and B three cases, where A, B can be singular or plural.
  • the character “/” generally indicates that the associated objects are an "or” relationship.
  • At least one item(s) below” or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s).
  • At least one (a) of a, b or c can mean: a, b, c, "a and b", “a and c", “b and c", or "a and b and c" ", where a, b, c can be single or multiple.
  • a container group can be used as the smallest unit of business expansion and contraction, or a container can be used as the smallest unit of business expansion and contraction, and the resource usage status indicators that need to be supported are defined for each business, and Related scaling policies.
  • a Pod can contain one or more containers, and has the ability to share storage/networking, as well as specifications for running containers.
  • the automatic capacity expansion solution provided in this application can realize the linkage capacity expansion of the VM and the container group (Pod).
  • the linkage expansion of the VM and the container group refers to the automatic expansion of the VM and the automatic expansion of the container as a whole, rather than the automatic expansion of the VM and the automatic expansion of the container.
  • the virtual machine of the first type is first expanded, and then the container group of the first type is expanded from the expanded virtual machine of the first type.
  • This example can be understood as the linkage expansion of the container group of the first type and the virtual machine of the first type.
  • the virtual machine used to carry the container group to be expanded is expanded after the container group to be expanded is determined, so as to avoid resource waste caused by expanding the VM in advance and improve resource utilization.
  • the automatic scaling solution provided by this application can realize the linkage scaling of the VM and the container group.
  • the linkage expansion of the VM and the container group refers to the realization of the automatic shrinking of the VM and the automatic shrinking of the container as a whole, rather than the automatic shrinking of the VM and the automatic shrinking of the container.
  • the container group 1 of the first type is deployed in the virtual machine 1 of the first type. After the container group 1 of the first type is scaled down, the virtual machine 1 of the first type is scaled down. This example can be understood as the linkage expansion of the container group 1 of the first type and the virtual machine 1 of the first type.
  • the virtual machines without deployed service container groups are scaled down after the container groups are scaled down, so as to prevent resource waste caused by VMs without any deployed service container groups, and improve resource utilization.
  • the automatic capacity expansion solution and the automatic capacity reduction solution provided in this application are applicable to the NFV reference architecture proposed by the European Telecommunications Standards Institute (european telecommunications standards institute, ETSI).
  • ETSI European Telecommunications Standards Institute
  • the automatic capacity expansion solution provided by this application can realize the automatic capacity expansion of VMs and container groups (corresponding to the linkage expansion), so that the VNF can dynamically increase the service capacity and make full use of resources during the operation process.
  • the automatic scaling solution provided by the present application can realize the automatic scaling of VMs and container groups (corresponding to linked scaling), so that the VNF can dynamically reduce service capacity and avoid resource waste during the running process. Because both the automatic capacity expansion solution and the automatic capacity reduction solution provided in this application involve multiple network elements in the NFV reference architecture. The following is an introduction to the NFV reference architecture.
  • FIG. 1 is a schematic diagram of an NFV reference architecture.
  • the NFV reference architecture mainly includes: NFV infrastructure (NFV infrastructure, NFVI), virtualized network function (virtualized network function, VNF), NFV management and orchestration (NFV management and orchestration, MANO) 3 main core tasks
  • NFV infrastructure NFV infrastructure, NFVI
  • virtualized network function virtualized network function, VNF
  • NFV management and orchestration NFV management and orchestration
  • MANO NFV management and orchestration
  • NFVI provides virtualized resources for VNF, covering all hardware and software resources in the basic network environment.
  • NFVI is divided into two parts: hardware resources that constitute the infrastructure and virtualized instances.
  • NFVI includes virtual machine management software and hardware. It is the direct provider of virtual computing, virtual storage, and virtual network capabilities on each server. It logically divides and provides resources to VNFs, thereby decoupling hardware and software.
  • the main function of NFVI is to provide resource pools for VNF deployment, management and execution. NFVI needs to virtualize physical computing, storage, and switching resources into virtual computing, storage, and switching resource pools. NFVI can be deployed across regions.
  • VNF and network element management (Element Management, EM)
  • VNF is the virtualized network function module, which is the logical result of the NFV network function concept.
  • VNFs consist of VMs running software on top of NFVI, such as storage, general purpose hardware or infrastructure cloud infrastructure. Each physical network element is mapped to a virtual network element VNF through virtualization technology, in which each or more virtualized network function modules form a VNF component, and an instance of this component can be mapped 1:1 to a single virtualized container middle.
  • the resources required by VNF need to be decomposed into virtual computing/storage/exchange resources, which are carried by NFVI.
  • a VNF can be deployed on one or more VMs.
  • a VNF is a software-based network element, deployed on a virtual machine, and its functions are consistent with interfaces and non-virtualized ones.
  • EM mainly completes the management functions of network elements and new management functions in the virtualized environment.
  • NFV management and orchestration system management and orchestration, MANO
  • NFV MANO contains three logical component roles: NFV orchestrator (NFV orchestrator, NFVO), VNF manager (VNFmanager, VNFM) and virtual facility manager (virtualised infrastructure manager, VIM).
  • NFV orchestrator NFV orchestrator
  • VNFmanager VNFmanager
  • VIM virtual facility manager
  • the three logical components serve the three layers S layer, P layer and I layer respectively, and manage the objects seen by each layer.
  • VIM responsible for the I layer and manage basic resources (VM, network, storage). The objects it sees are VMs or containers and their images and network interfaces.
  • the implementation example of this layer is Openstack/Kubernetes.
  • OpenStack is an open source cloud computing management platform project, which is a combination of a series of software open source projects.
  • Kubernetes is a container orchestration engine open sourced by Google, which supports automated deployment, large-scale scalability, and application containerized management.
  • VIM is mainly responsible for the management, monitoring and fault reporting of hardware resources and virtualized resources at the infrastructure layer, and provides virtualized resource pools for upper-layer VNFM and NFVO. VIM can be used to manage NFVI and control the allocation of virtual resources of VNF.
  • VIM hardware resource management and monitoring
  • virtualized resource management and monitoring virtualized resource management and monitoring
  • hardware resource and virtualized resource fault management VIM is often part of the virtualization layer, not a standalone solution, providing visual management and resource management for the underlying virtualization infrastructure (virtual hosts, virtual storage, and virtual networks).
  • VNFM responsible for the P layer, VNF life cycle management (VNF deployment, expansion, reduction, offline, etc.), it sees one VNF network element, and can perceive the characteristics of each VNF, such as vRG, vRG_VM, vNAT, etc., and describe the characteristic parameters of each specific network element through a virtualised network function descriptor (VNFD) file.
  • VNFD virtualised network function descriptor
  • NFVO responsible for the S layer, treating the network as a capability to provide life cycle management of network services (deployment, expansion, reduction, and offline of network services).
  • NFVO is used to manage the life cycle of network services, coordinate the management of various resources of NFVI in the life cycle of VNF, and manage, orchestrate and automate the end-to-end network services provided by VNF and NFVI, so as to ensure that the various resources required are compatible with each other. Optimized configuration of connections.
  • an orchestrator orchestrator
  • an orchestrator orchestrator
  • OSS/BSS operations support systems and business support system
  • BSS business support system
  • This application provides an automatic capacity expansion scheme and an automatic capacity reduction scheme initiated by the VNFM, as well as an automatic capacity expansion scheme and an automatic capacity reduction scheme initiated by the VNF.
  • the VNFM obtains the capacity expansion policy from the VNFD, and implements the linked capacity expansion of the container group and the virtual machine according to the capacity expansion policy.
  • the VNFM obtains the scaling policy from the VNFD, and implements the coordinated scaling down of the container group and the virtual machine according to the scaling policy.
  • the VNF realizes the linkage expansion of the container group and the virtual machine according to the expansion strategy.
  • the VNF realizes the coordinated scaling down of the container group and the virtual machine according to the scaling policy.
  • FIG. 2 is a flowchart of an automatic capacity expansion method provided by an embodiment of the present application.
  • the method flow in Figure 2 is applied to an NFV system including VNFM and VNF, such as the NFV reference architecture.
  • the method includes:
  • the VNFM obtains the target capacity expansion policy from the VNFD.
  • One or more expansion strategies may be defined in the above VNFD, and each expansion strategy may correspond to a type of container group. If there are multiple expansion policies defined in the VNFD, it means that the VNFD supports the automatic expansion of multiple types of container groups. Any expansion strategy defined in the VNFD is the expansion strategy supported by the VNFM.
  • the user can adjust one or more capacity expansion policies defined in the initial VNFD according to business scenario requirements to obtain the required capacity expansion policy (ie, the capacity expansion policy defined in the VNFD). That is, the user can modify the pre-configured initial VNFD to obtain the required VNFD, and the capacity expansion policy defined in the VNFD can be understood as the capacity expansion policy configured by the user.
  • the above VNFD may be associated with one or more VNFs, for example, the VNFD is associated with a target VNF.
  • the target capacity expansion policy obtained by the VNFM from the VNFD may be understood as the capacity expansion policy adopted by one or more VNFs associated with the VNFD, that is, the configured capacity expansion policy of the one or more VNFs.
  • a VNFM can obtain expansion policies from one or more VNFDs, and each VNFD is associated with one or more VNFs.
  • the VNFM can obtain the expansion policy adopted by the VNF from the VNFD associated with any VNF.
  • the above-mentioned target capacity expansion policy may include: conditions that need to be satisfied for expanding the container group of the first type, and expanding the virtual machine of the first type before expanding the container group of the first type.
  • the container group of the first type is hosted on the virtual machine of the first type.
  • the above-mentioned target capacity expansion policy may be configured with an association relationship between the first container group type and the first virtual machine type.
  • the first container group type is a container group type corresponding to the first type of container group
  • the first virtual machine type is a virtual machine type corresponding to the first type of virtual machine. That is, the container group of the first type (ie, the first container group type) is associated with the virtual machine of the first type (the first virtual machine type).
  • the first type of container group can be any type of container group.
  • the VNFM determines, according to the target capacity expansion policy, the container group of the first type to be expanded on the target VNF.
  • the above target VNF is a VNF that adopts the above target capacity expansion strategy.
  • the above target VNF may be a VNF associated with the above VNFD.
  • the VNFM may determine to expand the container group of the first type on the target VNF when the target VNF meets the conditions for expanding the container group of the first type.
  • a possible implementation manner of step 202 may be: the VNFM determines the container group of the first type to be expanded on the target VNF according to the resource usage status indicator from the target VNF and the target capacity expansion policy.
  • the resource usage status indicator can represent the resource usage of the first type of container group in the target VNF.
  • the resource usage status indicator includes two or more resource usage status sampling indicators, and the two or more resource usage status sampling indicators represent that the container group of the first type in the target VNF is at the same time.
  • Resource usage at two or more moments in the segment, two or more resource usage status sampling indicators are in one-to-one correspondence with two or more moments; the above VNFM is expanded according to the above resource usage status indicators and the above target
  • the strategy to determine that the container group of the first type to be expanded on the above-mentioned target VNF may be: the above-mentioned VNFM determines that the above-mentioned two or more above-mentioned resource usage status sampling indicators exceed the expansion threshold (for example, 60%).
  • the container group of the first type is to be expanded on the target VNF.
  • the VNF for a service node where only one container is deployed in a container group, the VNF (for example, the target VNF) can directly obtain the key performance indicator (KPI) value of the container, and the VNF summarizes the data of all container groups of the same type. After the KPI values, the average value of these KPI values is taken as the resource usage status sampling indicator and reported to the VNFM. Understandably, if only one container is deployed in a container group, the KPI value of the container is the KPI value of the container group.
  • KPI key performance indicator
  • the KPI value of a container can be any parameter that characterizes the resource usage of the container, such as the CPU usage rate and memory usage rate corresponding to the container, or it can be a representation obtained by using multiple calculations in the CPU usage rate and memory usage rate. Parameters for the resource usage of this container.
  • the VNF needs to select the largest KPI value among the KPI values of each container in the container group as the KPI value of the container group, and the VNF summarizes all containers of the same type After obtaining the KPI values of the group, the average value of these KPI values is taken as the resource usage status sampling indicator of the container group of this type and reported to the VNFM.
  • the VNF can calculate the KPI value of any container group in which multiple containers are deployed in the same manner.
  • the VNF may periodically (for example, every 10s) report a resource usage status sampling indicator of each type of container group to the VNFM.
  • the conditions that need to be satisfied for expanding the container group of the first type may include: consecutive multiple (eg 30) resource usage status sampling indicators of the container group of the first type all exceed the capacity expansion threshold (eg 60%).
  • the above target capacity expansion strategy may further include: F (corresponding to the capacity expansion step) container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met. Therefore, when the conditions for expanding the container group of the first type are met, the VNFM determines that F container groups of the first type are to be expanded in the target VNF. In some embodiments, the VNFM compares two or two resource usage status sampling indicators from the target VNF with the capacity expansion threshold, and determines whether to initiate capacity expansion according to other monitoring configurations.
  • the target VNF is sampled every 10s, and a resource usage status sampling indicator obtained by sampling is reported, and the samples are continuously sampled 30 times. If the resource usage status sampling indicators of the first type container group reported by the target VNF for 30 consecutive times all exceed the capacity expansion threshold (for example, 60%), the container group of the first type in the target VNF to be expanded is determined.
  • the capacity expansion threshold for example, 60%
  • the VNFM sends the first capacity expansion information to the VIM according to the target capacity expansion policy.
  • the above-mentioned first capacity expansion information is used to instruct to create the above-mentioned first type of virtual machine in the target VNF.
  • a possible implementation manner of step 203 may be: the VNFM determines the virtual machine of the first type to be expanded on the target VNF according to the target capacity expansion policy; the VNFM sends the first capacity expansion information to the VIM.
  • the VNFM sends the second capacity expansion information.
  • the above-mentioned second capacity expansion information is used to indicate that the above-mentioned first type of container group is created in the above-mentioned first type of virtual machine.
  • a possible implementation manner of step 204 may be: the VNFM sends the second capacity expansion information to a platform as a service (platform as a service, PAAS).
  • PAAS is responsible for managing containers. PAAS is an important part of cloud computing, providing computing platforms and solution services. In a typical layer of cloud computing, the PAAS layer is between software-as-a-service and infrastructure-as-a-service. PAAS allows users to deploy and create cloud infrastructure to clients, or access programming languages, libraries and services.
  • PAAS takes the software development platform as a service and delivers it to users in a software-as-a-service model.
  • PAAS provides a software deployment platform (runtime) that abstracts hardware and operating system details and can be seamlessly extended (scaling).
  • the target capacity expansion strategy further includes: when expanding the container group of the first type, the container group of the second type is expanded; the second capacity expansion information is further used to indicate that the virtual machine of the first type is Create a container group of the second type above. That is to say, the second capacity expansion information indicates that a container group of the first type and a container group of the second type are created in the virtual machine of the first type, so that the container group can be expanded in linkage.
  • the container group of the first type and the container group of the second type can support the same service and can be deployed on the same virtual machine.
  • the container group of the second type when expanding the container group of the first type, the container group of the second type can be expanded, and the resources of the virtual machine can be fully utilized.
  • Fig. 2 describes the method flow performed by the VNFM when expanding the container group of the first type on the target VNF. It should be understood that a VNFM can perform a similar approach in order to achieve scaling of any type of container group on any VNF.
  • the VNFM after determining the container group of the first type to be expanded according to the target expansion strategy, the VNFM first expands the virtual machine of the first type, so that the expanded virtual machine of the first type is used as the container running the first type. Set of vectors. Then, a container group of the first type is created in the virtual machine of the first type. The first type of virtual machine will be expanded only after the container group of the first type to be expanded is determined, and the first type of virtual machine does not need to be expanded in advance, which can improve resource utilization.
  • FIG. 3 is a flowchart of another automatic capacity expansion method provided by an embodiment of the present application.
  • the method flow in FIG. 3 is a refinement and improvement of the method flow in FIG. 2 .
  • the method includes:
  • the VNFM obtains the target capacity expansion policy from the VNFD.
  • step 301 may be the same as that of step 201 .
  • the VNFM receives the resource usage status indicator from the target VNF.
  • the above-mentioned resource usage status indicator represents the resource usage situation of the above-mentioned container group of the above-mentioned first type in the above-mentioned target VNF.
  • the resource usage status indicators may include two or more resource usage status sampling indicators.
  • the VNFM may periodically query the target VNF for the resource usage status sampling indicator of the container group of the first type, and receive the resource usage status sampling indicator of the first type container group reported by the target VNF.
  • the target VNF may be associated with the VNFD in step 301 .
  • the VNFM determines F first type container groups to be expanded on the target VNF according to the resource usage status indicator from the target VNF and the target capacity expansion policy.
  • the above target capacity expansion strategy includes: conditions to be satisfied for expanding the container group of the first type, and the number of container groups to be expanded when the conditions for expanding the container group of the first type are satisfied.
  • the number of the container group of the first type to be expanded may be referred to as the expansion step size corresponding to the container group of the first type.
  • the above-mentioned F is an integer greater than 0.
  • the implementation of step 303 may be similar to that of step 202 .
  • the VNFM determines that K virtual machines of the first type to be expanded on the target VNF are to be expanded according to the target capacity expansion policy when the target VNF does not meet the virtual machine resources required for expanding the F first type container groups.
  • the above-mentioned K is an integer greater than 0, and the above-mentioned K is less than or equal to the above-mentioned F.
  • the first type of container group described above is affinity. Since the above-mentioned container group of the first type is affinity, the container group of the first type can be created in the existing virtual machine of the first type in the target VNF (the container group of the first type is not deployed).
  • the condition that the target VNF does not meet the virtual machine resources required for expanding the F first type container groups may be: the target VNF does not contain F virtual machines that can be used to expand the first type container groups.
  • the virtual machine in the target VNF that can be used to expand the container group of the first type refers to a virtual machine of the first type that can create the container group of the first type and does not affect the operation of the deployed container group. If the target VNF satisfies the virtual machine resources required for the expansion of F first-type container groups, F can be expanded from the existing F first-type virtual machines (where the first-type container group is not deployed).
  • the first type of container group which can make full use of virtual machine resources without having to expand the virtual machine.
  • the target VNF does not meet the virtual machine resources required to expand the F container groups of the first type, then determine the number of virtual machines of the first type that need to be expanded when deploying the F container groups of the first type to be expanded, and expand the corresponding number of virtual machines of the first type. For example, there are 5 (corresponding to F) container groups of the first type to be expanded in the target VNF, and only 2 virtual machines of the first type in the target VNF can be used to expand the container group of the first type.
  • the VNFM expands according to the target expansion policy It is determined that 3 (corresponding to K) virtual machines of the first type are to be expanded on the target VNF, and one container group of the first type can be expanded in each virtual machine of the first type.
  • Step 304 may be replaced with: the VNFM determines, according to the target capacity expansion policy, F virtual machines of the first type to be expanded on the target VNF.
  • the container group of the above-mentioned first type is non-affinity. It should be understood that since the above-mentioned container group of the first type is non-affinity, if F container groups of the first type are to be expanded, F virtual machines of the first type must be expanded first.
  • the VNFM sends the first capacity expansion information to the VIM.
  • the above-mentioned first capacity expansion information is used to indicate to expand the capacity of K (or F) virtual machines of the above-mentioned first type in the above-mentioned target VNF.
  • the VNFM sends the second capacity expansion information.
  • the foregoing second capacity expansion information is used to instruct to create F first-type container groups in F first-type virtual machines, and create one first-type virtual machine in each first-type virtual machine.
  • the VNFM determines that 5 container groups of the first type are to be expanded on the target VNF (corresponding to step 303 ) and 3 virtual machines of the first type are to be expanded (corresponding to step 304 ), and the target VNF is expanded by 3
  • the VNFM sends second capacity expansion information, the second capacity expansion information instructs to create five first type of virtual machines in five first type of container groups;
  • the virtual machine includes 3 virtual machines of the first type for expansion.
  • the VNFM determines that five container groups of the first type and five virtual machines of the first type are to be expanded on the target VNF. After the five virtual machines of the first type are expanded on the target VNF, the VNFM sends the Second capacity expansion information, where the second capacity expansion information indicates that five container groups of the first type are created in the five virtual machines of the first type.
  • the target capacity expansion strategy further includes: when expanding the container group of the first type, expanding M number of container groups of the second type; the second capacity expansion information is also used to indicate that the container group of the first type is M number of container groups of the second type are created in the virtual machine. That is to say, the foregoing second capacity expansion information is used to indicate that F first-type container groups and (F*M) second-type container groups are created in the F first-type virtual machines.
  • One container group of the first type and M container groups of the second type are created in each virtual machine of the first type, so that the container group can be linked and expanded.
  • Linkage expansion of container groups refers to the expansion of two or more different types of container groups in the same virtual machine at the same time.
  • the container group of the first type and the container group of the second type can support the same service and can be deployed on the same virtual machine.
  • the container group of the first type is expanded, the container group of the second type is expanded, and the resources of the virtual machine can be fully utilized.
  • the VNFM sends the first capacity expansion information to the VIM when the target VNF does not meet the virtual machine resources required for capacity expansion of F first-type container groups; The number of virtual machines, which can make full use of virtual machine resources.
  • FIG. 2 and FIG. 3 introduce the main flow performed by the VNFM in the automatic capacity expansion solution provided by the present application.
  • the linkage expansion of VMs and virtual machines requires not only the participation of VNFM, but also the participation of NFVO, VNF, PAAS, and VIM.
  • the interaction process of the automatic expansion method describes the operations performed by VNFM, NFVO, VNF, PAAS and VIM respectively in the process of realizing the linkage expansion of the container group and the virtual machine.
  • FIG. 4 is an interaction flow of an automatic capacity expansion method provided by an embodiment of the present application. As shown in Figure 4, the method includes:
  • the VNFM configures a capacity expansion strategy.
  • the user can configure capacity expansion policies for one or more types of container groups, for example, configure capacity expansion policies for the first type of container groups, that is, target capacity expansion policies.
  • the following describes how to configure the capacity expansion policy of any type of container group by taking the configuration of the capacity expansion policy of the first type of container group as an example.
  • a possible implementation manner of configuring the capacity expansion policy of the container group of the first type is as follows: receiving a user's capacity expansion policy configuration instruction for the container group of the first type through the capacity expansion policy configuration interface; The expansion strategy of the container group, that is, the target expansion strategy.
  • the VNFM can display the initial VNFD (corresponding to the predefined expansion strategy) on the user interface (UI) of NFVI in a graphical interface, that is, the expansion strategy configuration interface.
  • An initial VNFD can be associated with one or more VNFs.
  • a capacity expansion policy can be predefined in the initial VNFD. That is to say, the VNFM can display the predefined expansion strategy (corresponding to the initial VNFD) through the UI interface; the user can adjust (or modify) the predefined expansion strategy through the UI interface to obtain the required expansion strategy (corresponding to the initial VNFD). VNFD).
  • the operation of the user adjusting (or modifying) the predefined capacity expansion policy through the UI interface is the capacity expansion policy configuration instruction input by the user for the above-mentioned first type of container group.
  • users can configure the VNFD associated with any VNF through the expansion policy configuration command. That is to say, users can configure the expansion strategy adopted by any VNF.
  • the expansion strategy of any type of container group includes one or more of the following configuration parameters: 1), the type of the container group to be automatically expanded, such as the first container group type; 2), the KPI sampling period, such as 10s; 3), the expansion threshold, such as 60%; 4), the expansion step, such as 3, that is, 3 container groups are expanded each time; 5), the duration, such as 300s, that is, if the KPI sampled within 300s (that is, the resource usage status If the sampling indicators) exceed the expansion threshold, automatic expansion will be triggered; 6), the cooling time, such as 300s, that is, after the automatic expansion task is completed, no automatic expansion will be performed within 300s; 7), the type association of the automatically expanded container group 8), the type and quantity of the container group to be expanded in linkage.
  • the KPI sampling period refers to the period during which the VNF obtains the resource usage status sampling indicators of each type of container group, that is, the period during which the VNF reports the resource usage status sampling indicators of each type of container group to the VNFM once.
  • the above configuration parameters can be fields in the VNFD, and can be modified by users.
  • the KPI of the container group is a fixed support field of the VNF, which does not support manual modification by the user.
  • the KPIs of the container group support manual modification by the user.
  • the user can select the type of container group that needs to be automatically expanded, and configure the required expansion strategy by modifying the corresponding configuration parameters.
  • Step 401 is optional, but not necessary. Step 401 can be replaced with: the VNFM obtains the expansion policy from the VNFD.
  • the VNFM sends a first query request to the target VNF.
  • the above-mentioned first query request is used to query the resource usage status indicators of one or more types of container groups in the target VNF.
  • the VNFM periodically (for example, every 10s) sends a first query request to the target VNF, where the first query request is used to query the resource usage status indicators of each type of container group configured with a capacity expansion policy.
  • the VNFM is configured with expansion policies for 10 types of container groups, and the VNFM sends a first query request to the target VNF, where the first query request is used to query the resource usage status of each type of container group in the 10 types. index.
  • the target VNF sends the first indicator information to the VNFM.
  • the above-mentioned first indicator information is information fed back for the first query request.
  • the above-mentioned first indicator information may include resource usage status indicators of one or more types of container groups in the target VNF.
  • the VNFM is configured with expansion policies for 10 types of container groups, and the VNFM sends a first query request to the target VNF, where the first query request is used to query the resource usage status of each type of container group in the 10 types.
  • the target VNF sends first indicator information to the VNFM, where the first indicator information includes resource usage status indicators of each type of container group in the 10 types.
  • the VNFM determines the type and number of container groups to be expanded on the target VNF according to the first indicator information and the capacity expansion policy.
  • the above-mentioned first indicator information includes resource usage status indicators of one or more types of container groups.
  • the VNFM can obtain the configured expansion policy of any type of container group from the VNFD. It should be understood that the VNFM can determine whether any type of container group needs to be expanded according to the resource usage status indicator of any type of container group and the configured expansion policy of the container group of any type. For example, the VNFM determines F first-type container groups to be expanded on the target VNF according to the first indicator information and the target expansion strategy, where the target expansion strategy is the configured expansion strategy for the first-type container group.
  • the VNFM queries the virtual machine type associated with the container group to be expanded.
  • step 405 the VNFM queries the VNFD for the virtual machine type associated with the type of the container group to be expanded (also called binding).
  • the configuration parameters in the VNFD may include the virtual machine type (corresponding to the first type) associated with the container group of the first type.
  • the VNFM before expanding the container group of the first type, the VNFM first expands the virtual machine of the first type (that is, the virtual machine type associated with the container group of the first type), and then according to whether the container group of the first type is Configure a linked container group, and determine whether to expand the capacity of other container groups simultaneously with the expansion of the first type of container group.
  • the container group of the first type is not configured with a linked container group, after the virtual machine of the first type is expanded, the container group of the first type is expanded in the virtual machine of the first type to be expanded. If the container group of the first type is configured with a linked container group, after the virtual machine of the first type is expanded, the container group of the first type and the linked container group of the first type are expanded in the expanded virtual machine of the first type. container group.
  • the VNFM sends a first virtual machine creation request to the VIM.
  • the above-mentioned first virtual machine creation request (corresponding to the first capacity expansion information) is used to indicate the type and number of virtual machines that need to be expanded by the VIM.
  • the VNFM determines that five virtual machines of the first type are to be expanded; the VNFM sends a virtual machine creation request to the VIM, and the virtual machine creation request instructs the VIM to create five virtual machines of the first type.
  • the VIM creates a virtual machine according to the first virtual machine creation request, and sends a first creation success response to the VNFM.
  • the VIM may create virtual machines of a corresponding type and number according to the first virtual machine creation request.
  • the first virtual machine creation request instructs the VIM to create five virtual machines of the first type, and the VIM creates five virtual machines of the first type in the target VNF.
  • the first virtual machine creation request instructs the VIM to create 5 virtual machines of the first type and 3 virtual machines of the second type, and the VIM creates 5 virtual machines of the first type and 3 virtual machines of the second type in the target VNF.
  • the second type of virtual machine indicates that the virtual machine has been successfully created according to the first virtual machine creation request.
  • the VNFM sends the first management information to the PAAS.
  • the above-mentioned first management information is used to notify the PAAS to manage the virtual machine created by the VIM.
  • the first managed information may include the identifier of the virtual machine created by the VIM in step 407 .
  • the PAAS manages the virtual machine created by the VIM, and sends a first management response to the VNFM.
  • the above-mentioned first administration response indicates that the PAAS has already managed the virtual machine created by the VIM.
  • the first management information may include the identifiers of the virtual machines created by the VIM in step 407, and the PAAS manages the corresponding virtual machines according to these identifiers.
  • the VNFM sends a notification of the end of the first capacity expansion event to the NFVO.
  • the above-mentioned first capacity expansion event end information indicates that the capacity expansion of the virtual machine has been completed.
  • the NFVO sends a first capacity expansion event notification response to the VNFM.
  • the above-mentioned first capacity expansion event notification response indicates that the NFVO has received the first capacity expansion event end notification.
  • the VNFM sends a first capacity expansion notification to the target VNF.
  • the above-mentioned first capacity expansion notification is used to notify the target VNF of the type and number of container groups to be expanded.
  • the VNFM sends a first capacity expansion notice to the target VNF, where the first capacity expansion notice is used to notify the target VNF that F container groups of the first type are to be expanded.
  • the target VNF sends a first capacity expansion notification response to the VNFM.
  • the above-mentioned first capacity expansion notification response indicates that the target VNF has received the first capacity expansion notification.
  • the VNFM sends a first container group creation request to the PAAS.
  • the above-mentioned first container group creation request (corresponding to the second capacity expansion information) is used to indicate the type and number of container groups to be created by the PAAS.
  • the PAAS creates a container group according to the first container group creation request, and sends the first creation result to the VNFM.
  • the above-mentioned first creation result may include the identifier of the container group created by the PAAS.
  • the VNFM sends the first capacity expansion list to the target VNF.
  • the first expansion list indicates the container group successfully created by PAAS.
  • the above-mentioned first capacity expansion list may include the identifiers of the container groups successfully created by the PAAS.
  • the target VNF can obtain the container group successfully created by PAAS according to the first expansion list.
  • Step 416 can be understood as the VNFM notifying the target VNF of the identifier of the newly created container group.
  • the newly created container group refers to the container group created by the PAAS in step 415 . It should be understood that the VNFM may also notify the target VNF of the identity of the newly created container group in other ways.
  • the target VNF sends a first notification response to the VNFM, expands the container group according to the first expansion list, and reports the expansion progress to the VNFM.
  • the foregoing first notification response is used to indicate that the first capacity expansion list is received.
  • the capacity expansion progress refers to the progress of expanding the container group of the target VNF according to the first capacity expansion list. Expanding the container group according to the first capacity expansion list may be: expanding the container group in the first capacity expansion list by the target VNF.
  • the target VNF performs service load balancing.
  • VNFM displays the results of automatic capacity expansion tasks through the UI interface of NFVO.
  • the result of the automatic expansion task can include the type and number of the virtual machines to be expanded, and the type and number of the container group to be expanded.
  • Figure 4 uses the target VNF as an example to describe the linkage expansion process of container groups and virtual machines. It should be understood that any VNF in the NFV system can use a similar process to realize expansion and contraction of container groups and virtual machines.
  • the VNFM can accurately determine the type and number of container groups that need to be expanded, and the type and number of virtual machines, which can improve resource utilization.
  • FIG. 5 is a flowchart of an automatic scaling method provided by an embodiment of the present application.
  • the method flow in Figure 5 is applied to an NFV system including VNFM and VNF, such as the NFV reference architecture.
  • the method includes:
  • the VNFM obtains the target scaling policy from the VNFD.
  • the above-mentioned target shrinking strategy may include: the conditions that need to be satisfied for shrinking the container group of the first type, the number of container groups to be reduced (corresponding to the shrinkage) when the conditions for shrinking the container group of the first type are satisfied. step size), and the first type of virtual machine is scaled down after the above-mentioned first type of container group is scaled down.
  • the container group of the first type is hosted on the virtual machine of the first type.
  • One or more scaling policies may be defined in the above VNFD, and each scaling policy may correspond to a type of container group. If there are multiple scaling policies defined in the VNFD, the VNFD supports automatic scaling of multiple types of container groups. Any scaling policy defined in the VNFD is a scaling policy supported by the VNFM.
  • the user can adjust one or more scaling policies defined in the initial VNFD according to business scenario requirements to obtain the required scaling policies (that is, the scaling policies defined in the VNFD). That is, the user can modify the pre-configured initial VNFD to obtain the required VNFD, and the scaling policy defined in the VNFD can be understood as the scaling policy configured by the user.
  • the VNFM receives the resource usage status indicator from the target VNF.
  • the above-mentioned resource usage status indicator represents the resource usage situation of the above-mentioned container group of the above-mentioned first type in the above-mentioned target VNF.
  • the VNFD in step 501 may be associated with the target VNF.
  • the target reduction strategy obtained by the VNFM from the VNFD may be understood as the reduction strategy adopted by the VNF associated with the VNFD, that is, the reduction strategy configured for the VNF associated with the VNFD.
  • a VNFM can obtain a scaling policy from one or more VNFDs, and each VNFD is associated with one or more VNFs.
  • the VNFM determines F container groups of the first type in the target VNF to be scaled down according to the target scaling policy and the resource usage status indicator.
  • the above-mentioned F is an integer greater than 0.
  • the conditions that need to be met for scaling down the container group of the first type may include: none of consecutive multiple (eg 30) resource usage status sampling indicators of the container group of the first type exceeds the scaling threshold (eg 20%).
  • the scaling threshold eg 20%.
  • the number of container groups of the first type to be reduced is F. Therefore, when the conditions for shrinking the container group of the first type are met, the VNFM determines F container groups of the first type in the target VNF to be reduced.
  • the VNFM compares the resource usage status indicators (ie, two or more resource usage status sampling indicators) from the target VNF with the scaling threshold, and determines whether or not according to other monitoring configurations in the target scaling policy Scaling needs to be initiated. For example, the target VNF is sampled every 10s, and a resource usage status sampling indicator obtained by sampling is reported, and the samples are continuously sampled 30 times. If the resource usage status sampling indicators of the first type container group reported by the target VNF for 30 consecutive times do not exceed the scaling threshold (for example, 20%), the container group of the first type in the target VNF to be scaled is determined.
  • the scaling threshold for example, 20%
  • the VNFM sends the first capacity reduction information.
  • the foregoing first scaling information is used to indicate the F first type container groups in the scaling target VNF.
  • a possible implementation manner of step 504 may be: the VNFM sends the first capacity reduction information to the PAAS.
  • the first shrinking information may be a list including the type and number of container groups to be shrinked.
  • the above-mentioned target shrinking strategy further includes: shrinking N number of container groups of the second type when shrinking the container group of the first type; the first shrinking information is further used to indicate the shrinking For the container group of the second type, the container group of the second type is hosted on the virtual machine of the first type.
  • the container group of the first type and the container group of the second type may support the same service.
  • the second capacity expansion information is used to indicate F container groups of the first type and (F*N) container groups of the second type in the scale-down target VNF, where N is an integer greater than 0.
  • one container group of the first type and N container groups of the second type can be scaled down, so that the container group can be reduced in a coordinated manner.
  • Linked shrinking of container groups refers to the simultaneous shrinking of two or more different types of container groups in the same virtual machine. In this implementation manner, when shrinking a container group of a first type when shrinking a container group of a second type, the resources occupied by the container group of the second type can be released in time.
  • the VNFM may perform the following operations: the VNFM sends third shrinkage information to the target VNF, and the third shrinkage information is used to confirm whether the target VNF can be shrinked.
  • the VNFM receives fourth shrinkage information from the VNF, where the fourth shrinkage information indicates that the container group of the first type in the target VNF can be shrinkable.
  • the VNFM sends the third scaling information to the target VNF, so as to confirm whether the container group of the first type can be scaled down, so as to avoid scaling down the container group that cannot be scaled down.
  • the VNFM determines, according to the target capacity expansion policy, the virtual machine of the first type in the target VNF to be scaled down.
  • the VNFM sends the second capacity reduction information to the VIM.
  • the above-mentioned second scaling information is used to indicate the above-mentioned virtual machine of the first type in the scaling-down target VNF.
  • the above-mentioned second capacity reduction information is used to instruct to scale down the above-mentioned virtual machines of the first type in which the service container group is not deployed among the plurality of above-mentioned virtual machines of the above-mentioned first type deployed in the above-mentioned target VNF; or , the second shrinkage information is used to instruct to shrink one or more virtual machines of the first type with the lowest CPU occupancy rate of the CPU among the plurality of virtual machines of the first type deployed in the target VNF.
  • the manner in which the VNFM selects the first type of virtual machines to be scaled down is as follows: the VNFM preferentially selects the virtual machines in which the service container group is not deployed among the plurality of first type virtual machines deployed in the target VNF, and then selects the CPU One or more virtual machines of the first type with the lowest occupancy.
  • Fig. 5 describes the method flow executed by the VNFM when scaling down the container group of the first type on the target VNF. It should be understood that a VNFM can perform a similar approach to enable scaling of any type of container group on any VNF.
  • the virtual machine of the first type (that is, the virtual machine that carries the container group of the first type) is reduced, which can prevent redundant virtual machines from running any container group. waste of resources.
  • FIG. 5 introduces the main flow of VNFM execution in the automatic scaling solution provided by this application.
  • VNFM participation of VNFM
  • NFVO participation of VNF
  • PAAS participation of NFVO
  • VIM participation of NFVO
  • PAAS participation of NFVO
  • VIM participation of NFVO
  • PAAS participation of NFVO
  • VNF NFVO
  • PAAS participation of NFVO
  • VIM participation of NFVO
  • FIG. 6 is an interaction flow of an automatic scaling method provided by an embodiment of the present application. As shown in Figure 6, the method includes:
  • the VNFM configures a scaling policy.
  • a user can configure a scaling policy for one or more types of container groups, for example, configure a scaling policy for a container group of the first type.
  • the VNFM can configure the shrinking policy in the same way as the expansion policy.
  • the following describes how to configure a scaling policy for any type of container group by taking the configuration of the scaling policy of the first type of container group as an example.
  • a possible implementation manner of configuring the shrinkage policy of the container group of the first type is as follows: receiving a user's shrinkage policy configuration instruction for the container group of the first type through the shrinkage policy configuration interface; according to the shrinkage policy configuration instruction, the configuration obtains Target scaling strategy.
  • the VNFM can display the initial VNFD (corresponding to the predefined scaling policy) on the UI interface in a graphical interface, that is, the scaling policy configuration interface.
  • a scaling policy is predefined in the initial VNFD. That is to say, the VNFM can display the predefined scaling strategy (corresponding to the initial VNFD) through the UI interface; the user can adjust (or modify) the predefined scaling strategy through the UI interface to obtain the required scaling strategy ( corresponds to VNFD).
  • the operation that the user can adjust (or modify) the predefined scaling policy through the UI interface is the scaling policy configuration instruction input by the user for the above-mentioned first type of container group.
  • the scaling policy includes one or more of the following configuration parameters: 1), the type of the container group to be automatically scaled, such as the first container group type; 2), the KPI sampling period, such as 10s; 3), the scaling Capacity threshold, such as 20%; 4), scaling step, such as 3, that is, 3 container groups are scaled each time; 5), duration, such as 300s, that is, the KPI sampled within 300s exceeds the scaling threshold, it will trigger Automatic expansion; 6), cooling time, such as 300s, that is, after the completion of this automatic scaling task, no automatic scaling will be performed within 300s; 7), the type of the virtual machine associated with the type of the container group to be automatically expanded (that is, linked scaling 8), the type and number of container groups to be scaled in linkage.
  • the above configuration parameters can be fields in the VNFD, and can be modified by users.
  • the KPI of the container group is a fixed support field of the VNF, which does not support manual modification by the user.
  • the user can manually modify the KPIs of the container group.
  • the user can select the type of container group that needs to be automatically scaled, and configure the required scaling strategy by modifying the corresponding configuration parameters.
  • Step 601 is optional, but not necessary. Step 601 may be replaced with: the VNFM obtains the scaling policy from the VNFD.
  • the VNFM sends a second query request to the target VNF.
  • the above-mentioned second query request is used to query the resource usage status indicators of one or more types of container groups in the target VNF.
  • the implementation of step 602 may be similar to that of step 402 .
  • the target VNF is any VNF.
  • the target VNF sends the second indicator information to the VNFM.
  • the above-mentioned second indicator information is information fed back for the second query request.
  • the above-mentioned second indicator information may include resource usage status indicators of one or more types of container groups in the target VNF.
  • the implementation of step 603 may be the same as that of step 403 .
  • the VNFM determines the number and types of container groups to be scaled down on the target VNF according to the second indicator information and the configured scaling policies for each type of container group.
  • the above-mentioned second indicator information includes the resource usage status indicator of the container group of the first type.
  • the VNFM may determine whether any type of container group needs to be scaled down according to the resource usage status indicator of any type of container group and the configured scaling policy for the container group of any type . After judging that any type of container group needs to be scaled down, the VNFM determines the number of the container group of any type to be scaled down. For example, the VNFM determines F first-type container groups to be scaled down on the target VNF according to the second indicator information and the target scaling policy.
  • the VNFM sends the first shrinking list to the target VNF.
  • the first shrink list includes the number and type of container groups that need to be shrunk (that is, to be shrunk) on the target VNF.
  • the target VNF performs service migration for one or more types of container groups included in the first shrinking list, and generates a second shrinking list.
  • the second scale-down list indicates the container groups that can be scaled down on the target VNF.
  • the second scaling list includes identifiers of container groups that can be scaled down on the target VNF.
  • the target VNF determines whether the instance corresponding to each type of container group in the first shrinking list can be reduced in size. If the instance corresponding to a container group of a certain type can be scaled down, the service migration of the container group of this type is performed. If the instance corresponding to a certain type of container group cannot be scaled down, it returns a failure and waits for the next cycle to scale up.
  • the next period may be a preset duration, such as 300s.
  • the target VNF selects the container group to be scaled down, it can preferentially select the container group on the same VM to be scaled down to prevent the container group topology after scaling down from meeting the requirements.
  • the container group topology does not meet the requirements, the container group needs to be rescheduled, which will cause service call loss.
  • the target VNF sends the second shrinking list to the VNFM.
  • the VNFM sends the second shrinking list to the PAAS.
  • the PAAS shrinks the container group in the second shrinking list, and sends the first shrinking result to the VNFM.
  • the first scale down result indicates the container group that PAAS scaled successfully.
  • the first scaling result includes the identifier of the container group successfully scaled down by the PAAS.
  • PAAS shrinks the container groups in the second shrink list. After the PAAS completes the shrinking of the container group in the second shrinking list, it sends the first shrinking result to the VNFM.
  • the VNFM sends a third shrinking list to the target VNF.
  • the third scale-down list indicates the container groups in the target VNF that have been scaled down successfully.
  • the third scaling list includes the identifiers of the container groups in the target VNF that are successfully scaled down.
  • the target VNF sends a second notification response to the VNFM.
  • the second notification response is used to indicate that the third shrink list is received.
  • the target VNF shrinks the container group according to the third shrinking list, and reports the shrinking progress to the VNFM.
  • the target VNF shrinking the container group according to the third shrinking list may be: the target VNF shrinks the container group in the third shrinking list.
  • the VNFM sends a scaling progress response to the target VNF.
  • the shrinking progress response indicates that the VNFM receives the shrinking progress reported by the target VNF.
  • the VNFM sends the VNFO a capacity reduction authorization application.
  • the scaling-in authorization application is used to indicate the type and number of virtual machines to be scaled down.
  • the VNFM can determine the type and number of virtual machines to be deleted on the target VNF according to the scale down policy in the VNFD, and initiate a scale down authorization application to the NFVO. For example, after the container group of the first type is scaled down, the VNFM can determine the number of virtual machines that need to be scaled down and the number of virtual machines of the first type to be scaled down according to the scaling policy in the VNFD. .
  • the NFVO sends a reduction authorization response to the VNFM.
  • the above shrinkage authorization response indicates that the VNFO agrees to the VNFM's request for a shrinkage authorization.
  • the VNFM sends a notification of the start of a scaling event to NFVO.
  • the scale-in event start notification instructs the VNFM to start scaling down the virtual machine.
  • the NFVO sends a first scaling event response to the VNFM.
  • the first scale down event response indicates that the NFVO has received a scale down event start notification.
  • VNFM preferentially selects virtual machines that do not have service container groups deployed for shrinking. If there is no virtual machine of this type, it will be sorted according to the CPU usage, from low to high, and will be notified to PAAS to dismantle the VNFM to shrink. capable virtual machine.
  • the PAAS de-manages the virtual machine scaled down by the VNFM, and sends a first de-managing response to the VNFM.
  • the above-mentioned first decommissioning response instructs the PAAS to complete decommissioning of the virtual machine scaled by the VNFM.
  • the VNFM sends a first deletion request to the VIM.
  • the first deletion request is used to request to delete the virtual machine resources occupied by the virtual machine that is reduced in size by the VNF.
  • the VIM sends a first deletion response to the VNFM.
  • the first deletion response indicates that the virtual machine resources occupied by the downscaled virtual machine are successfully deleted.
  • the VNFM sends a notification of the end of the shrinking event to the NFVO.
  • the shrink event end notification instructs the VNFM to complete the shrink.
  • the NFVO sends a second scaling event response to the VNFM.
  • the second scale down event response indicates that the NFVO has received a scale down event end notification.
  • the VNFM displays the result of the automatic scaling task through the UI interface of NFVO.
  • the result of the automatic scaling task can include the type and number of the scaled virtual machines, and the type and number of the scaled container group.
  • Figure 6 uses the target VNF as an example to describe the coordinated scaling process of a container group and a virtual machine. It should be understood that any VNF in the NFV system can use a similar process to realize the linkage reduction of the container group and the virtual machine.
  • the VNFM can accurately determine the type and number of container groups that need to be scaled down, and the type and number of virtual machines, which can improve resource utilization.
  • the VNFM may determine whether the coordinated capacity reduction or the coordinated capacity reduction is required according to the resource usage status indicator from the VNF.
  • the automatic expansion method process is executed; when it is determined that linkage reduction is required, the automatic capacity reduction method process is executed.
  • the VNFM can implement both the automatic capacity expansion method flow shown in FIG. 2 and FIG. 3 , and the automatic capacity reduction method flow shown in FIG. 5 .
  • FIG. 7 is a flowchart of another automatic capacity expansion method provided by an embodiment of the present application.
  • the method flow in Figure 7 is applied to an NFV system including VNFM and VNF, such as the NFV reference architecture. As shown in Figure 7, the method includes:
  • the target VNF acquires the resource usage status indicator of the container group of the first type.
  • the resource usage status indicator of the container group of the first type represents the resource usage of the container group of the first type in the target VNF.
  • the resource usage status indicator of the container group of the first type is the CPU usage rate corresponding to the container group of the first type.
  • the target VNF determines F container groups of the first type to be expanded according to the target capacity expansion policy and the resource usage status indicator of the container group of the first type.
  • the target VNF is any VNF that adopts the target expansion strategy.
  • the above-mentioned target capacity expansion strategy includes: conditions to be satisfied for expanding the container group of the first type, and the number of container groups to be expanded (ie, F) when the conditions for expanding the container group of the first type are satisfied.
  • the above-mentioned F is an integer greater than 0, such as 3, 5, and the like.
  • the VNF may determine the type and number of container groups to be expanded according to the configured capacity expansion policies of various types of container groups and the capacity expansion indicators of various types of container groups.
  • the target VNF determines, according to the target capacity expansion policy, to expand the capacity of K virtual machines of the first type before expanding the container group of the first type.
  • the above target capacity expansion strategy further includes: expanding the first type of virtual machine before expanding the first type of container group.
  • the above-mentioned K is an integer greater than 0, and the above-mentioned K is less than or equal to the above-mentioned F.
  • the first type of container group described above is affinity. If the target VNF does not meet the virtual machine resources required to expand the F first-type container groups, determine the number of first-type virtual machines that need to be expanded when deploying the F first-type container groups to be expanded, and Expand a corresponding number of virtual machines of the first type.
  • the target VNF For example, if there are 5 (corresponding to F) container groups of the first type to be expanded in the target VNF, only 2 virtual machines of the first type in the target VNF can be used to expand the container group of the first type, and the target VNF is expanded according to the target
  • the policy determines that 3 (corresponding to K) virtual machines of the first type are to be expanded, and each virtual machine of the first type can be expanded with one container group of the first type.
  • Step 703 may be replaced by: the target VNF determines, according to the target capacity expansion policy, to expand F virtual machines of the first type before expanding the container group of the first type, and the container group of the first type is non-affinity.
  • the target VNF sends third capacity expansion information to the VNFM.
  • the above-mentioned third capacity expansion information is used to instruct to expand the capacity of K (or F) virtual machines of the above-mentioned first type on the target VNF.
  • the target VNF sends fourth capacity expansion information to the VNFM.
  • FIG. 7 depicts a flow of a method for cooperating to expand a container group of the first type and a virtual machine of the first type. It should be understood that the target VNF can expand the capacity of any type of container group and its associated virtual machine in a similar manner.
  • the target capacity expansion strategy further includes: when expanding the container group of the first type, expand L (corresponding to the capacity expansion step) container groups of the second type; the fourth capacity expansion information is used to indicate A container group of the first type is created in the virtual machine of the first type and a container group of the second type is created, where the second type is a container group type associated with the first type.
  • the container group of the first type and the container group of the second type can support the same service and can be deployed on the same virtual machine.
  • the second type (corresponding to the container group) and L are respectively the type and number of the container group that the first type of container group is linked to expand.
  • the container group of the second type when expanding the container group of the first type, the container group of the second type can be expanded, and the resources of the virtual machine can be fully utilized.
  • the first type of virtual machine will be expanded only after the first type of virtual machine to be expanded is determined, so that the expanded first type of virtual machine can be fully utilized and resource utilization can be improved.
  • FIG. 8 is an interaction flow of an automatic capacity expansion method provided by an embodiment of the present application. As shown in Figure 8, the method includes:
  • the target VNF configures a capacity expansion policy through an MML configuration command.
  • the target VNF can be any VNF in the NFV system.
  • users can configure expansion policies for any type of container group through MML configuration commands.
  • the MML configuration parameters in the MML configuration command may include one or more of the following: 1) the type of the container group that needs to be automatically expanded, such as the second container group type; 2) the type of the automatically expanded container group associated with the virtual machine type (that is, the type of virtual machine for linkage expansion); 3), select the type of KPI to monitor, such as workload; 4), KPI sampling period, such as 10s; 5), expansion threshold, such as 60%; 6), Expansion step size, such as 3, that is, 3 container groups are expanded each time; 7) Duration, such as 300s, that is, the KPI (corresponding to the resource usage status sampling indicator) sampled within 300s exceeds the expansion threshold, which will trigger the system to automatically expand the capacity 8) Cooling time, such as 300s, that is, after the automatic expansion task is completed, no automatic expansion will be performed within 300s; 9) The type and number of container groups that
  • the target VNF periodically detects resource usage status indicators of various types of container groups.
  • the target VNF can periodically detect the resource usage status sampling indicators of various types of container groups according to the sampling period configuration (that is, the KPI sampling period configured by the MML configuration command).
  • the target VNF can first obtain the KPI values of each container group of the same type; after summarizing the KPI values of all container groups of the same type, the average value of these KPI values is taken as the resource usage of the container group of this type Status sampling metrics. If only one container is deployed in a container group, the KPI value of the container is the KPI value of the container group. For a service node that deploys multiple containers in a container group, the target VNF needs to select the largest KPI value among the KPI values of each container in the container group as the KPI value of the container group.
  • the target VNF determines the type and number of container groups to be expanded according to the resource usage status indicators and capacity expansion policies of various types of container groups.
  • the VNFM can determine whether any type of container group needs to be expanded according to the resource usage status indicator of any type of container group and the configured expansion policy of the container group of any type. For example, the target VNF determines F container groups of the first type to be expanded according to the resource usage status indicator of the container group of the first type and the target expansion strategy, and the target expansion strategy is the configured capacity expansion of the container group of the first type. Strategy. In some embodiments, the target VNF compares the resource usage status indicators (that is, two or more resource usage status sampling indicators) of each type of container group with the configured expansion threshold, and determines whether it is necessary according to other monitoring configurations. Initiate expansion.
  • the resource usage status indicators that is, two or more resource usage status sampling indicators
  • the target VNF is sampled once every 10s, and the samples are continuously sampled 30 times. If the resource usage status sampling indicators of the container group of the first type obtained by sampling the target VNF for 30 consecutive times all exceed 60%, it is determined that the container group of the first type is to be expanded.
  • the target VNF can first expand the virtual machines associated with the first type of container group (for example, the first type of virtual machine) according to the expansion policy configured by the MML configuration command, and then according to whether the first type of container group is configured with linkage the container group, and determine whether it is necessary to expand the container group of other types simultaneously with the expansion of the container group of the first type.
  • the container group of the first type is not configured with a linked container group, after the expansion of the virtual machine is completed, the virtual machine of the first type is expanded in the expanded virtual machine. If the container group of the first type is configured with a linked container group, after the expansion of the virtual machine is completed, the container group of the first type and the linked container group are expanded in the expanded virtual machine.
  • the target VNF determines the type and number of virtual machines to be expanded, and sends a virtual machine expansion notification to the VNFM.
  • the virtual machine capacity expansion notification (corresponding to the third capacity expansion information) is used to indicate the type and number of virtual machines that need to be expanded on the target VNF.
  • the VNFM sends a second virtual machine creation request to the VIM.
  • the above-mentioned second virtual machine creation request is used to indicate the type and number of virtual machines that the VIM needs to expand.
  • the virtual machine expansion notification indicates that five virtual machines of the first type need to be expanded on the target VNF; the VNFM sends a second virtual machine creation request to the VIM, and the virtual machine creation request instructs the VIM to create five virtual machines of the first type. .
  • the VIM creates a virtual machine according to the second virtual machine creation request, and sends a second creation success response to the VNFM.
  • the VIM may create a corresponding virtual machine according to the second virtual machine creation request.
  • the second creation success response indicates that the virtual machine has been successfully created according to the second virtual machine creation request.
  • the VNFM sends the second management information to the PAAS.
  • the foregoing second management information is used to notify the PAAS to manage the virtual machine created by the VIM.
  • the second managed information may contain the identification of the virtual machine created by the VIM in step 806 .
  • the PAAS manages the virtual machine created by the VIM, and sends a second management response to the VNFM.
  • the above-mentioned second management response indicates that the PAAS has already managed the virtual machine created by the VIM.
  • the second virtual machine management information may include the identifiers of the virtual machines created by the VIM in step 806, and the PAAS may manage the corresponding virtual machines according to these identifiers.
  • the VNFM sends a notification of the end of the second capacity expansion event to the NFVO.
  • the above-mentioned second capacity expansion event end information indicates that the capacity expansion of the virtual machine has been completed.
  • the NFVO sends a second capacity expansion event notification response to the VNFM.
  • the above-mentioned second capacity expansion event notification response indicates that the NFVO has received the second capacity expansion event end information.
  • the VNFM sends a capacity expansion completion notification to the target VNF.
  • the resizing complete notification indicates that the resizing of the virtual machine is complete.
  • the target VNF sends a second capacity expansion notification to the VNFM.
  • the above second capacity expansion notification is used to notify the type and number of container groups that need to be expanded on the target VNF.
  • the VNFM sends a second container group creation request to the PAAS.
  • the above-mentioned second container group creation request is used to indicate the type and number of container groups to be created by the PAAS.
  • the PAAS creates a container group according to the second container group creation request, and sends the second creation result to the VNFM.
  • the above-mentioned second creation result may include the identifier of the container group created by the PAAS.
  • the VNFM sends the second capacity expansion list to the target VNF.
  • the second expansion list indicates the container group successfully created by PAAS.
  • the foregoing second capacity expansion list may include the identifiers of the container groups successfully created by the PAAS.
  • the target VNF can obtain the container group successfully created by PAAS according to the second capacity expansion list.
  • the target VNF sends a second notification response to the VNFM, expands the container group according to the second capacity expansion list, and reports the expansion progress to the VNFM.
  • the above-mentioned second notification response is used to indicate that the second capacity expansion list is received.
  • the target VNF performs service load balancing.
  • VNFM displays the result of the automatic expansion task through the UI interface of NFVO.
  • the result of the automatic expansion task can include the type and number of the virtual machines to be expanded, and the type and number of the container group to be expanded.
  • the target VNF can accurately determine the type and number of container groups that need to be expanded, and the type and number of virtual machines, which can improve resource utilization.
  • FIG. 9 is a flowchart of another automatic scaling method provided by an embodiment of the present application.
  • the method flow in Figure 9 is applied to an NFV system including VNFM and VNF, such as the NFV reference architecture.
  • the method includes:
  • the target VNF acquires the resource usage status indicator of the container group of the first type.
  • the resource usage status indicator of the container group of the first type represents the resource usage of the container group of the first type in the target VNF.
  • the target VNF may periodically detect the resource usage status sampling indicator of the container group of the first type.
  • the target VNF determines F container groups of the first type to be scaled down according to the target scaling policy and the resource usage status indicator of the container group of the first type.
  • the above-mentioned target shrinking strategy includes: the conditions that need to be satisfied for shrinking the container group of the first type, and the number of container groups to be reduced when the conditions for shrinking the container group of the first type are satisfied (corresponding to at the shrinkage step).
  • the target VNF is any VNF that adopts the target scaling policy.
  • the target VNF sends fifth capacity reduction information to the VNFM.
  • the fifth shrinkage information is used to instruct to shrink the F first type container groups in the target VNF.
  • the target VNF determines the virtual machine of the first type to be scaled down according to the target scaling policy.
  • the above-mentioned target scaling strategy further includes: scaling down the above-mentioned first type of virtual machines after the above-mentioned first type of container group is scaled down.
  • the container group of the first type is hosted on the virtual machine of the first type.
  • the above-mentioned F and the above-mentioned H are both integers greater than 0, and the above-mentioned H is less than or equal to the above-mentioned F.
  • the container group of the first type hosted by the virtual machine of the first type is scaled down, if the virtual machine of the first type needs to continue to run, the virtual machine of the first type is scaled down. For example, the container group of the first type hosted by the virtual machine of the first type provides a certain service.
  • the target VNF can Determines to scale down the first type of virtual machine.
  • the first type of container group hosted by the first type of virtual machine and other types of container groups jointly provide a certain service. If the first type of container group is scaled down, the first type of virtual machine cannot Providing this kind of service, the target VNF can determine to shrink the virtual machine of the first type.
  • five container groups of the first type are deployed in five virtual machines of the first type. After the five container groups of the first type are scaled down, the Two virtual machines no longer provide any services, and the other three continue to provide services. The target VNF can determine to shrink the two virtual machines of the first type that no longer provide any services.
  • the target VNF sends sixth scaling information to the VNFM.
  • the above-mentioned sixth scaling information is used to indicate the first type of virtual machine on the scaling target VNF.
  • the virtual machine of the first type (that is, the virtual machine that carries the container group of the first type) is reduced, which can prevent redundant virtual machines from running any container group. waste of resources.
  • FIG. 10 is an interaction flow of an automatic scaling method provided by an embodiment of the present application. As shown in Figure 10, the method includes:
  • the target VNF configures a scaling policy through an MML configuration command.
  • the MML configuration parameters in the MML configuration command may include one or more of the following: 1) the type of the container group that needs to be automatically scaled; 2) the type of the virtual machine associated with the type of the container group to be automatically scaled (that is, the linked scaling down type of virtual machine); 3), select the type of KPI to monitor, such as workload; 4), KPI sampling period, such as 10s; 5), shrink threshold, such as 20%; 6), shrink step Length, such as 3, that is, 3 container groups are scaled each time; 7), duration, such as 300s, that is, the KPI sampled within 300s exceeds the expansion threshold, which will trigger the system to automatically shrink; 8), cooling time, such as 300s , that is, after the automatic scaling task is completed, no automatic scaling will be performed within 300s; 9)
  • the target VNF can be
  • the target VNF periodically detects resource usage status indicators of various types of container groups.
  • step 1002 may be the same as that of step 802 .
  • the target VNF determines the type and number of container groups to be scaled down according to the resource usage status indicators and scaling policies of various types of container groups.
  • the target VNF can determine whether any type of container group needs to be scaled down according to the resource usage status indicator of any type of container group and the configured scaling policy for the container group of any type. For example, the target VNF determines K container groups of the first type to be scaled down according to the resource usage status indicator of the container group of the first type and the target scaling policy, and the target scaling policy is that the container group of the first type is to be scaled down. The configured scaling policy. In some embodiments, the target VNF compares the resource usage status indicators of each type of container group (that is, two or more resource usage status sampling indicators) with the configured shrinkage threshold, and determines whether or not according to other monitoring configurations Scaling needs to be initiated.
  • the resource usage status indicators of each type of container group that is, two or more resource usage status sampling indicators
  • the target VNF is sampled once every 10s, and the samples are continuously sampled 30 times. If none of the resource usage status sampling indicators of the first type container group sampled by the target VNF for 30 consecutive times does not exceed the scaling threshold (for example, 20%), it is determined that the first type container group is to be scaled down.
  • the target VNF can first scale down the first type of container group according to the scaling policy configured by the MML configuration command, and determine whether it needs to be scaled down according to whether the first type of container group is configured with a linked container group.
  • the container group of the first type is simultaneously shrinking and shrinking other types of container groups.
  • the container group of the first type is not configured with a linked container group
  • the virtual machine of the first type is scaled down.
  • the first type of container group 1 is not configured with a linked container group, and the first type of container group 1 is hosted on the virtual machine 1; after the first type of container group 1 is scaled down, the virtual machine is scaled down 1.
  • the container group of the first type is configured with a linked container group
  • the container group of the first type and the linked container group will be scaled down, and the virtual machines carrying the container group of the first type and the linked container group will be scaled down after the scaling is completed.
  • container group 1 of the first type is configured with linked container group 2, and container group 1 and container group 2 are hosted on virtual machine 1; after shrinking container group 1 and container group 2, shrink the virtual machine. 1.
  • the target VNF performs service migration and load balancing.
  • the target VNF sends a first shrinkage notification to the VNFM.
  • the first scale-down notification is used to indicate the type and number of container groups that need to be scaled down on the target VNF.
  • the VNFM sends a second capacity reduction notification to the PAAS.
  • the second scale-down notification is used to indicate the type and number of container groups that need to be scaled down on the target VNF.
  • the PAAS notifies the shrinking container group according to the second shrinking, and sends the second shrinking result to the VNFM.
  • the second scale down result indicates the container group that PAAS scaled successfully.
  • the second shrink result may include the identification of the shrinked container group.
  • the second scale-in notification is used to indicate that PAAS needs to scale down 5 first-type container groups and 3 second-type container groups on the target VNF; PAAS scales down 5 first-type container groups and 3 container groups of the second type.
  • the VNFM sends a fourth shrinking list to the target VNF.
  • the fourth shrink list may include the identifiers of the container groups in the target VNF that have been successfully shrunk.
  • the target VNF sends a third notification response to the VNFM, shrinks the container group according to the fourth shrinking list, and reports the shrinking progress to the VNFM.
  • the third notification response is used to indicate that the fourth shrink list is received.
  • the target VNF sends a fourth capacity reduction notification to the VNFM.
  • the fourth scale-down notification is used to indicate the type and number of virtual machines that need to be scaled down on the target VNF.
  • the VNFM sends a second deletion request to the PAAS.
  • the second deletion request is used for requesting deletion of virtual machine resources occupied by the downsized virtual machine.
  • the PAAS sends a second deletion response to the VNFM.
  • the second deletion response indicates that the virtual machine resources occupied by the downscaled virtual machine are successfully deleted.
  • the VNFM notifies the PAAS to de-host the scaled-down virtual machine.
  • the PAAS sends a second dismantling response to the VNFM.
  • the above-mentioned second decommissioning response instructs the PAAS to complete decommissioning of the scaled-down virtual machine.
  • the VNFM sends a reduction completion notification to the target VNF.
  • the shrink complete notification indicates that the shrink is complete.
  • the VNFM sends a first end notification to the NFVO.
  • the first end notification instructs the VNFM to complete scaling down.
  • the NFVO sends a first end response to the VNFM.
  • the second end response indicates that the NFVO received the first end notification.
  • VNFM displays the result of the automatic scaling task through the UI interface of NFVO.
  • the result of the automatic scaling task can include the type and number of the scaled virtual machines, and the type and number of the scaled container group.
  • the VNFM can accurately determine the type and number of container groups that need to be scaled down, and the type and number of virtual machines, which can improve resource utilization.
  • the VNF can determine whether it is necessary to scale down or scale down according to resource usage status indicators of various types of container groups. When it is determined that linkage expansion is required, the automatic expansion method process is executed; when it is determined that linkage reduction is required, the automatic capacity reduction method process is executed.
  • FIG. 11 is a schematic structural diagram of a communication apparatus according to an embodiment of the present application.
  • the communication device in Figure 11 is a VNFM; the communication device includes:
  • the processing unit 1101 is configured to obtain a target capacity expansion strategy from the virtualized network function description VNFD, where the above target capacity expansion strategy includes: expanding a first type of virtual machine before expanding a first type of container group, and the above-mentioned first type of container group bears in the above-mentioned first type of virtual machine;
  • the processing unit 1101 is further configured to determine the container group of the first type to be expanded on the target virtualized network function VNF according to the above-mentioned target capacity expansion strategy;
  • the above-mentioned target VNF is a VNF that adopts the above-mentioned target capacity expansion strategy;
  • the processing unit 1101 is further configured to control the transceiver unit 1102 to send first capacity expansion information to the virtualization infrastructure manager VIM according to the above-mentioned target capacity expansion policy, where the above-mentioned first capacity expansion information is used to instruct the above-mentioned target VNF to create the above-mentioned first type of virtual machine ;
  • the transceiver unit 1102 is further configured to send second capacity expansion information, where the second capacity expansion information is used to instruct to create the above-mentioned first type of container group in the above-mentioned first type of virtual machine.
  • the target capacity expansion strategy further includes: the number of the container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met;
  • the processing unit 1101 is specifically configured to determine, according to the above-mentioned target capacity expansion strategy, F number of container groups of the first type to be expanded on the above-mentioned target VNF; the above-mentioned target VNF does not meet the requirements for expanding the F number of container groups of the above-mentioned first type.
  • the container group of the first type is affinity
  • the first expansion information is used to indicate expansion in the target VNF K virtual machines of the first type
  • the second capacity expansion information is used to instruct F virtual machines of the first type to expand the capacity of F container groups of the first type
  • F and K are integers greater than 0
  • the F virtual machines of the first type include the K virtual machines of the first type.
  • the target capacity expansion strategy further includes: the number of the container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met;
  • the processing unit 1101 is specifically configured to determine, according to the target capacity expansion strategy, F number of container groups of the first type to be expanded on the target VNF; type of virtual machine, and send the above-mentioned first capacity expansion information to the above-mentioned VIM, the container group of the above-mentioned first type is non-affinity; the above-mentioned first capacity expansion information is used to instruct the above-mentioned target VNF to create F above-mentioned first type of container groups The second capacity expansion information is used to instruct to create F container groups of the first type in the F virtual machines of the first type, where the F is an integer greater than 0.
  • the transceiver unit 1102 is further configured to receive a resource usage status indicator from the VNF, where the resource usage status indicator represents the resource usage of the container group of the first type in the target VNF;
  • the processing unit 1101 is specifically configured to determine the container group of the first type to be expanded on the target VNF according to the resource usage state indicator and the target capacity expansion policy.
  • the processing unit 1101 is specifically configured to, according to the above target capacity expansion strategy, determine that the first type of virtual machine needs to be expanded before expanding the above-mentioned first type of container group; control the above-mentioned transceiver unit to send the above-mentioned VIM to the above-mentioned The above-mentioned first capacity expansion information.
  • the above communication device further includes: an input unit 1103, configured to receive a user's capacity expansion policy configuration instruction for the above-mentioned first type of container group through a capacity expansion policy configuration interface;
  • the processing unit 1101 is further configured to configure and obtain the target capacity expansion policy according to the above-mentioned capacity expansion policy configuration instruction.
  • the communication device in FIG. 11 may further include a display unit for displaying a capacity expansion policy configuration interface.
  • FIG. 12 is a schematic structural diagram of another communication apparatus provided by an embodiment of the present application.
  • the communication device in FIG. 12 is a VNFM; the communication device includes:
  • the processing unit 1201 is configured to obtain a target shrinking policy from the virtualized network function description VNFD, where the above-mentioned target shrinking policy includes: shrinking a first type of virtual machine after shrinking a container group of a first type, the above-mentioned first type The container group is hosted on the above-mentioned first type of virtual machine;
  • the processing unit 1201 is configured to determine the container group of the first type on the target virtualized network function VNF to be scaled down according to the above-mentioned target reduction strategy;
  • the above-mentioned target VNF is a VNF that adopts the above-mentioned target reduction strategy;
  • the transceiver unit 1202 is configured to send first shrinkage information, where the first shrinkage information is used to instruct to shrink the container group of the first type in the target VNF; the processing unit is further configured to reduce the size according to the target shrinkage policy , controlling the transceiver unit to send second capacity reduction information to the virtualization infrastructure manager VIM, where the second capacity reduction information is used to instruct the first type of virtual machine in the target VNF to be scaled down.
  • the transceiver unit 1202 is further configured to send third capacity reduction information to the target VNF, where the third capacity reduction information is used to confirm whether the container of the first type in the target VNF can be scaled down group; receiving fourth scaling information from the target VNF, where the fourth scaling information indicates that the container group of the first type in the target VNF can be scaled down.
  • the transceiver unit 1202 is further configured to receive a resource usage status indicator from the above-mentioned target VNF, where the above-mentioned resource usage status indicator represents the resource usage of the container group of the above-mentioned first type in the above-mentioned target VNF;
  • the processing unit 1201 is specifically configured to determine the container group of the first type in the target VNF to be scaled down according to the resource usage state indicator and the target scaling policy.
  • the above-mentioned communication apparatus further includes: an input unit 1203, configured to receive a user's scaling policy configuration instruction for the container group of the first type in the scaling policy configuration interface;
  • the processing unit 1201 is further configured to configure and obtain the target capacity reduction policy according to the above-mentioned capacity expansion policy configuration instruction.
  • the communication device in FIG. 12 may further include a display unit for displaying a scaling policy configuration interface.
  • the communication device in FIG. 11 and the communication device in FIG. 12 may be two different devices, or may be the same device. It should be understood that if the communication device in FIG. 11 and the communication device in FIG. 12 are the same device, the processing unit 1101 and the processing unit 1201 are the same unit, the transceiver unit 1102 and the transceiver unit 1202 are the same unit, and the input unit 1103 and the input unit 1203 are the same unit. for the same unit.
  • FIG. 13 is a schematic structural diagram of another communication apparatus provided by an embodiment of the present application.
  • the communication device in FIG. 13 is the entity corresponding to the VNF; the communication device includes:
  • the transceiver unit 1301 is configured to receive third shrinkage information from the VNFM, where the third shrinkage information is used to confirm whether the container group of the first type in the target VNF can be reduced;
  • the processing unit 1302 is further configured to migrate the services performed by the container group of the first type out of the container group of the first type;
  • the transceiver unit 1301 is further configured to send fourth capacity reduction information to the above-mentioned VNFM, where the above-mentioned fourth capacity reduction information indicates that the container group of the above-mentioned first type in the above-mentioned target VNF can be scaled down.
  • FIG. 14 is a schematic structural diagram of another communication apparatus provided by an embodiment of the present application.
  • the communication device in Figure 14 is the entity corresponding to the target VNF; the communication device includes:
  • the processing unit 1401 is configured to determine the container group of the first type to be expanded according to the target capacity expansion strategy; according to the target capacity expansion strategy, determine to expand the virtual machine of the first type before expanding the container group of the first type;
  • the transceiver unit 1402 is configured to send the third capacity expansion information to the above-mentioned VNFM, where the above-mentioned third capacity expansion information is used to instruct the virtual machine of the first type to be expanded on the target VNF; send the fourth capacity expansion information to the above-mentioned VNFM, the above-mentioned fourth capacity expansion information It is used to instruct to create the container group of the first type in the virtual machine of the first type.
  • the target capacity expansion strategy further includes: the number of the container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met;
  • the processing unit 1401 is specifically configured to determine F container groups of the first type to be expanded according to the target expansion strategy; and determine to expand K container groups of the first type before expanding the container group of the first type according to the target expansion strategy
  • the above-mentioned first type of container group is affinity
  • the above-mentioned third capacity expansion information is used to instruct the expansion of K virtual machines of the above-mentioned first type on the above-mentioned target VNF
  • the above-mentioned fourth capacity expansion information is used to indicate that in the The F virtual machines of the first type are expanded to F container groups of the first type, the F and K are both integers greater than 0, and the F virtual machines of the first type include the K type of virtual machine.
  • the target capacity expansion strategy further includes: the number of the container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met;
  • the processing unit 1401 is specifically configured to determine F container groups of the first type to be expanded according to the target capacity expansion strategy; and determine to expand F container groups of the first type before expanding the container group of the first type according to the target capacity expansion strategy
  • the above-mentioned first type of container group is non-affinity; the above-mentioned third capacity expansion information is used to indicate that F virtual machines of the above-mentioned first type are to be expanded on the above-mentioned target VNF, and the above-mentioned fourth capacity expansion information is used to indicate F number of container groups of the first type are expanded in the F virtual machines of the first type.
  • the above-mentioned processing unit 1401 is further configured to obtain a resource usage status indicator, where the above-mentioned resource usage status indicator represents the resource usage of the above-mentioned first type of container group in the above-mentioned target VNF;
  • the processing unit 1401 is specifically configured to determine the container group of the first type to be expanded according to the above resource usage state indicator and the above target capacity expansion strategy.
  • the processing unit 1401 is further configured to configure the above-mentioned target capacity expansion strategy through a man-machine language MML configuration command.
  • FIG. 15 is a schematic structural diagram of another communication apparatus provided by an embodiment of the present application.
  • the communication device in Figure 15 is the entity corresponding to the target VNF; the communication device includes:
  • the processing unit 1501 is configured to determine a container group of the first type to be scaled down according to the target shrinkage policy; and determine to shrink the virtual machine of the first type after shrinking the container group of the first type according to the target shrinkage policy , the above-mentioned target shrinking strategy further includes: shrinking the above-mentioned first type of virtual machine after shrinking the above-mentioned first type of container group;
  • the transceiver unit 1502 sends fifth shrinkage information to the VNFM, where the fifth shrinkage information is used to instruct to shrink the container group of the first type in the target VNF;
  • the six shrinkage information is used to indicate the virtual machine of the first type in the shrinking target NFV, and the container group of the first type is carried on the virtual machine of the first type.
  • the above-mentioned target shrinking strategy further includes: the number of the container groups of the first type to be reduced when the conditions for shrinking the container group of the first type are met;
  • the processing unit 1501 is specifically configured to determine, according to the target shrinking strategy, F first-type container groups to be shrunk; according to the foregoing target shrinking strategy, determine to shrink the H above-mentioned container groups after shrinking the first-type container group.
  • a virtual machine of the first type; the fifth shrinkage information is used to instruct to shrink the F container groups of the first type in the target VNF, and the sixth shrinkage information is used to instruct the shrinkage of H in the target VNF.
  • a virtual machine of the first type described above, the above F and the above H are both integers greater than 0, and the above H is less than or equal to the above F.
  • the processing unit 1501 is further configured to obtain a resource usage status indicator, where the resource usage status indicator represents the resource usage of the container group of the first type in the target VNF;
  • the processing unit 1501 is specifically configured to determine the container group of the first type to be scaled down according to the resource usage state indicator and the target scaling policy.
  • the processing unit 1501 is further configured to configure the above-mentioned target scaling policy through a man-machine language MML configuration command.
  • the communication device in FIG. 14 and the communication device in FIG. 15 may be two different devices, or may be the same device. It should be understood that if the communication device in FIG. 14 and the communication device in FIG. 15 are the same device, the processing unit 1401 and the processing unit 1501 are the same unit, and the transceiver unit 1402 and the transceiver unit 1502 are the same unit.
  • FIG. 16 is a schematic structural diagram of another communication apparatus provided by an embodiment of the present application.
  • the communication device in FIG. 16 may be a VNFM, or may be an entity corresponding to a VNF.
  • the communication apparatus 160 includes at least one processor 1620, configured to implement the function of the VNFM in the method provided by the embodiment of the present application; or, configured to implement the function of the target VNF in the method provided by the embodiment of the present application.
  • the communication device 160 may also include a transceiver 1610 . Transceivers are used to communicate with other devices/devices over a transmission medium.
  • the processor 1620 uses the transceiver 1610 to send and receive data and/or signaling, and is used to implement the methods in the above method embodiments.
  • the communication device 160 may further include at least one memory 1630 for storing program instructions and/or data.
  • Memory 1630 and processor 1620 are coupled.
  • the coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information exchange between devices, units or modules.
  • Processor 1620 may cooperate with memory 1630.
  • Processor 1620 may execute program instructions stored in memory 1630 . At least one of the at least one memory may be included in the processor.
  • the specific connection medium between the transceiver 1610, the processor 1620, and the memory 1630 is not limited in the embodiments of the present application.
  • the memory 1630, the processor 1620, and the transceiver 1610 are connected through a bus 1640 in FIG. 16.
  • the bus is represented by a thick line in FIG. 16, and the connection between other components is only for schematic illustration. , is not limited.
  • the bus can be divided into address bus, data bus, control bus and so on. For ease of presentation, only one thick line is shown in FIG. 16, but it does not mean that there is only one bus or one type of bus.
  • the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, which can implement or
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the transceiver 1610 implements the functions of the transceiver unit 1102 and/or the transceiver unit 1202
  • the processor 1620 implements the functions of the processing unit 1101 and/or the processing unit 1201
  • the transceiver 1610 implements the functions of the transceiver unit 1402 and/or the transceiver unit 1502
  • the processor 1620 implements the functions of the processing unit 1401 and/or the processing unit 1501 .
  • the present application also provides a computer-readable storage medium, where computer codes are stored in the computer-readable storage medium, and when the computer codes are executed on the computer, the computer is made to execute the methods of the above embodiments.
  • the present application also provides a computer program product, the computer program product includes computer code or computer program, when the computer code or computer program is run on a computer, the communication method in the above embodiment is executed.
  • the present application also provides an NFV system, including VNFM, VNF, PAAS, VIM and NFVO.

Abstract

Embodiments of the present application disclose an automatic scaling up method, an automatic scaling down method, and a device. The method is used in a network function virtualization (NFV) system having a virtual network functions manager (VNFM) and comprises: the VNFM acquires a target scaling up policy from a virtual network function descriptor (VNFD); the VNFM determines a first-type container group to be scaled up on a target virtual network function (VNF) according to the target scaling up policy; the VNFM sends first scaling up information to a virtualized infrastructure manager (VIM) according to the target scaling up policy, wherein the first scaling up information instructs a first-type virtual machine to be created at the target VNF; and the VNFM sends second scaling up information which instructs the first-type container group to be created in the first-type virtual machine. According to the embodiment of the present disclosure, the container group and the virtual machine are scaled up in a linked manner, and resource utilization can be improved.

Description

自动扩容方法、自动缩容方法及装置Automatic capacity expansion method, automatic capacity reduction method and device 技术领域technical field
本申请涉及虚拟化技术领域,尤其涉及一种自动扩容方法、自动缩容方法及装置。The present application relates to the field of virtualization technologies, and in particular, to an automatic capacity expansion method, an automatic capacity reduction method, and an apparatus.
背景技术Background technique
网络功能虚拟化(network functions virtualization,NFV)提供了一种设计、部署和管理网络服务的全新方式,实现了网络功能基于虚拟化方式的实现和部署。Network functions virtualization (NFV) provides a new way to design, deploy and manage network services, and realize the realization and deployment of network functions based on virtualization.
在NFV架构中,业务不再依赖专有硬件承载,可以在通用硬件上,通过虚拟化技术使用虚拟机(virtual machine,VM)承载业务。这样就使得自动扩缩容VM成为可能。在虚拟网络功能(virtualize network function,VNF)承载的业务不断增长,负载不断增长的情况下,通过自动扩容VM,能够降低VNF整体负载,防止VNF过载导致业务受损。在VNF承载业务不断降低,负载不断降低的情况下,通过自动缩容VM,能够升高VNF的整体负载,实现资源的合理利用,并做到节能减排。同理,通过自动扩容容器,能够降低VNF整体负载。通过自动缩容容器,能够升高VNF整体负载,实现资源的合理利用,并做到节能减排。In the NFV architecture, services no longer rely on proprietary hardware to carry services, and virtual machines (VMs) can be used to carry services on general-purpose hardware through virtualization technology. This makes it possible to automatically scale the VM. When the services carried by the virtualized network function (VNF) continue to grow and the load continues to increase, the automatic expansion of the VM can reduce the overall load of the VNF and prevent the service from being damaged due to the overload of the VNF. When the services carried by the VNFs continue to decrease and the load continues to decrease, the overall load of the VNFs can be increased by automatically shrinking the VM, realizing the rational use of resources, and achieving energy saving and emission reduction. In the same way, by automatically expanding the container, the overall load of the VNF can be reduced. By automatically shrinking the container, the overall load of the VNF can be increased, the rational use of resources can be realized, and energy saving and emission reduction can be achieved.
目前,公有云通常采用基于中央处理器(central processing unit,CPU)、内存使用率等指标制定扩缩容策略,进而通过更改VM数量和容器数量进行扩缩容。由于公有云可以近似认为虚拟硬件资源无穷大,因此在扩容VM时,无需考虑VM上是否有业务容器运行。公有云将扩容阈值设置较低,提前扩容出来多个VM,待后续业务容器需要扩容时直接使用即可。电信云与公有云主要区别在于,电信云由于虚拟硬件资源有限,不可能像公有云一样部署海量硬件资源。电信云在进行扩缩容时,需要充分考虑资源利用率问题。当业务需要扩容时,既要做到有可用VM资源,又要做到VM资源充分利用,防止资源浪费。公有云自动扩缩容方案明显不满足上述诉求。因此,需要研究适用于电信云的资源利用率较高的自动扩缩容方案。At present, public cloud usually adopts the central processing unit (CPU), memory usage and other indicators to formulate expansion and contraction strategies, and then expand and contract by changing the number of VMs and the number of containers. Since the public cloud can approximate that virtual hardware resources are infinite, when scaling up a VM, it is not necessary to consider whether there are business containers running on the VM. The public cloud sets the expansion threshold to a lower value, and expands multiple VMs in advance, which can be used directly when the subsequent service containers need to be expanded. The main difference between telecom cloud and public cloud is that telecom cloud cannot deploy massive hardware resources like public cloud due to limited virtual hardware resources. When expanding or shrinking the capacity of the telecom cloud, it is necessary to fully consider the issue of resource utilization. When the business needs to expand, it is necessary not only to have available VM resources, but also to make full use of VM resources to prevent resource waste. The public cloud automatic expansion and contraction scheme obviously does not meet the above requirements. Therefore, it is necessary to study the automatic expansion and contraction scheme with high resource utilization suitable for telecom cloud.
发明内容SUMMARY OF THE INVENTION
本申请实施例公开了自动扩容方法、自动缩容方法及装置,能够提高资源利用率。The embodiments of the present application disclose an automatic capacity expansion method, an automatic capacity reduction method and a device, which can improve resource utilization.
第一方面,本申请实施例提供了一种自动扩容方法,应用于包括虚拟化网络管理器VNFM的网络功能虚拟化NFV系统,所述方法包括:所述VNFM从虚拟化网络功能描述VNFD中获取目标扩容策略,所述目标扩容策略包括:在扩容第一类型的容器组之前扩容第一类型的虚拟机,所述第一类型的容器组承载于所述第一类型的虚拟机;所述VNFM根据所述目标扩容策略,确定待在目标虚拟化网络功能VNF上扩容所述第一类型的容器组;所述目标VNF为采用所述目标扩容策略的VNF;所述VNFM根据所述目标扩容策略,向虚拟化基础设施管理器VIM发送第一扩容信息,所述第一扩容信息用于指示在所述目标VNF上创建所述第一类型的虚拟机;所述VNFM发送第二扩容信息,所述第二扩容信息用于指示在所述第一类型的虚拟机中创建所述第一类型的容器组。In a first aspect, an embodiment of the present application provides an automatic capacity expansion method, which is applied to a network function virtualization NFV system including a virtualized network manager VNFM. The method includes: the VNFM obtains from a virtualized network function description VNFD a target capacity expansion strategy, where the target capacity expansion strategy includes: expanding a first type of virtual machine before expanding a first type of container group, where the first type of container group is hosted on the first type of virtual machine; the VNFM According to the target expansion strategy, determine the container group of the first type to be expanded on the target virtualized network function VNF; the target VNF is a VNF that adopts the target expansion strategy; the VNFM is based on the target expansion strategy , send the first capacity expansion information to the virtualized infrastructure manager VIM, where the first capacity expansion information is used to instruct to create the virtual machine of the first type on the target VNF; the VNFM sends the second capacity expansion information, so the The second capacity expansion information is used to indicate that the container group of the first type is created in the virtual machine of the first type.
本申请实施例中,VNFM在根据目标扩容策略,确定待扩容第一类型的容器组之后,先扩容第一类型的虚拟机,以便将扩容的第一类型的虚拟机作为运行第一类型的容器组的载体。然后,在第一类型的虚拟机中创建第一类型的容器组。在确定待扩容第一类型的容器组之后才会扩容第一类型的虚拟机,不需要提前扩容第一类型的虚拟机,能够提高资源利用率。In the embodiment of the present application, after determining the container group of the first type to be expanded according to the target expansion strategy, the VNFM first expands the virtual machine of the first type, so that the expanded virtual machine of the first type is used as the container running the first type. Set of vectors. Then, a container group of the first type is created in the virtual machine of the first type. The first type of virtual machine will be expanded only after the container group of the first type to be expanded is determined, and the first type of virtual machine does not need to be expanded in advance, which can improve resource utilization.
在一个可能的实现方式中,所述目标扩容策略还包括:满足扩容所述第一类型的容器组的条件时待扩容所述第一类型的容器组的个数;所述VNFM根据所述目标扩容策略,确定待在目标虚拟化网络功能VNF上扩容所述第一类型的容器组包括:所述VNFM根据所述目标扩容策略,确定待在所述目标VNF上扩容F个所述第一类型的容器组;所述VNFM根据所述目标扩容策略,向虚拟化基础设施管理器VIM发送第一扩容信息包括:所述VNFM在所述目标VNF未满足扩容F个所述第一类型的容器组所需的虚拟机资源的情况下,根据所述目标扩容策略,向所述VIM发送所述第一扩容信息;所述第一类型的容器组为亲和性的,所述第一扩容信息用于指示在所述目标VNF中扩容K个所述第一类型的虚拟机,所述第二扩容信息用于指示在F个所述第一类型的虚拟机中扩容F个所述第一类型的容器组,所述F和所述K为大于0的整数,所述F个所述第一类型的虚拟机包括所述K个所述第一类型的虚拟机。In a possible implementation manner, the target capacity expansion strategy further includes: the number of container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met; the VNFM according to the target A capacity expansion strategy, determining that the container group of the first type to be expanded on the target virtualized network function VNF includes: the VNFM determining, according to the target capacity expansion strategy, F pieces of the first type to be expanded on the target VNF The VNFM sends the first capacity expansion information to the virtualization infrastructure manager VIM according to the target capacity expansion policy, including: the VNFM does not satisfy the capacity expansion of F container groups of the first type in the target VNF In the case of the required virtual machine resources, according to the target expansion policy, the first expansion information is sent to the VIM; the container group of the first type is affinity, and the first expansion information is used. In order to instruct the expansion of K virtual machines of the first type in the target VNF, the second expansion information is used to instruct the expansion of F virtual machines of the first type in the F virtual machines of the first type. In the container group, the F and the K are integers greater than 0, and the F virtual machines of the first type include the K virtual machines of the first type.
所述第一类型的容器组为亲和性的,即第一类型的容器组和其他类型的容器组可部署于同一虚拟机。The container group of the first type is affinity, that is, the container group of the first type and the container group of other types can be deployed on the same virtual machine.
在该实现方式中,VNFM在VNF未满足扩容F个第一类型的容器组所需的虚拟机资源的情况下,向VIM发送第一扩容信息;可以准确地确定需要扩容的第一类型的虚拟机的个数,能够充分利用虚拟机资源。In this implementation manner, the VNFM sends the first capacity expansion information to the VIM when the VNF does not meet the virtual machine resources required for capacity expansion of F first-type container groups; the virtual machine of the first type that needs to be expanded can be accurately determined The number of machines can make full use of virtual machine resources.
在一个可能的实现方式中,所述目标扩容策略还包括:满足扩容所述第一类型的容器组的条件时待扩容所述第一类型的容器组的个数;所述VNFM根据所述目标扩容策略,确定待在目标虚拟化网络功能VNF上扩容所述第一类型的容器组包括:所述VNFM根据所述目标扩容策略,确定待在所述目标VNF上扩容F个所述第一类型的容器组;所述VNFM根据所述目标扩容策略,向虚拟化基础设施管理器VIM发送第一扩容信息包括:所述VNFM根据所述目标扩容策略,确定待在所述目标VNF上扩容F个所述第一类型的虚拟机,并向所述VIM发送所述第一扩容信息,所述第一类型的容器组为非亲和性的;所述第一扩容信息用于指示在所述目标VNF上创建F个所述第一类型的虚拟机,所述第二扩容信息用于指示在所述F个所述第一类型的虚拟机中创建F个所述第一类型的容器组,所述F为大于0的整数。In a possible implementation manner, the target capacity expansion strategy further includes: the number of container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met; the VNFM according to the target A capacity expansion strategy, determining that the container group of the first type to be expanded on the target virtualized network function VNF includes: the VNFM determining, according to the target capacity expansion strategy, F pieces of the first type to be expanded on the target VNF the container group; the VNFM sending the first capacity expansion information to the virtualization infrastructure manager VIM according to the target capacity expansion policy includes: the VNFM determines, according to the target capacity expansion policy, to expand F on the target VNF the first type of virtual machine, and send the first capacity expansion information to the VIM, the first type of container group is non-affinity; the first capacity expansion information is used to indicate that the target Create F virtual machines of the first type on the VNF, and the second capacity expansion information is used to instruct to create F container groups of the first type in the F virtual machines of the first type. The F is an integer greater than 0.
所述第一类型的容器组为非亲和性的,即一个虚拟机只能部署一个第一类型的容器组,不能部署其他类型的容器组。The container group of the first type is non-affinity, that is, a virtual machine can only deploy one container group of the first type, and cannot deploy container groups of other types.
在该实现方式中,当第一类型的容器组为非亲和性的时,VNFM确定待扩容F个第一类型的容器组之后,根据目标扩容策略确定待扩容F个第一类型的虚拟机;可以快速地扩容出所需的虚拟机。In this implementation, when the container group of the first type is non-affinity, after the VNFM determines the F container groups of the first type to be expanded, the VNFM determines the F virtual machines of the first type to be expanded according to the target expansion policy ; The required virtual machine can be quickly expanded.
在一个可能的实现方式中,所述目标扩容策略还包括:在扩容所述第一类型的容器组时扩容第二类型的容器组;所述第二扩容信息还用于指示在所述第一类型的虚拟机中创建 所述第二类型的容器组。所述第一类型的容器组和所述第二类型的容器组可支持同一业务且可部署于同一虚拟机。In a possible implementation manner, the target capacity expansion strategy further includes: when expanding the container group of the first type, expanding the container group of the second type; the second capacity expansion information is further used to indicate that the container group of the first type is expanded A container group of the second type is created in a virtual machine of the type. The container group of the first type and the container group of the second type can support the same service and can be deployed on the same virtual machine.
在该实现方式中,在扩容第一类型的容器组时扩容第二类型的容器组,可以充分利用虚拟机的资源。In this implementation manner, when expanding the container group of the first type, the container group of the second type can be expanded, and the resources of the virtual machine can be fully utilized.
在一个可能的实现方式中,所述VNFM根据所述目标扩容策略,确定待在目标虚拟化网络功能VNF上扩容所述第一类型的容器组之前,所述方法还包括:所述VNFM接收来自所述目标VNF的资源使用状态指标,所述资源使用状态指标表征所述目标VNF中的所述第一类型的容器组的资源使用情况;所述VNFM根据所述目标扩容策略,确定待在目标虚拟化网络功能VNF上扩容所述第一类型的容器组包括:所述VNFM根据所述资源使用状态指标和所述目标扩容策略,确定待在所述目标VNF上扩容所述第一类型的容器组。In a possible implementation manner, the VNFM determines, according to the target capacity expansion policy, before the container group of the first type is to be expanded on the target virtualized network function VNF, the method further includes: the VNFM receives data from The resource usage status indicator of the target VNF, where the resource usage status indicator represents the resource usage of the container group of the first type in the target VNF; the VNFM determines the remaining target according to the target capacity expansion policy Expanding the container group of the first type on the virtualized network function VNF includes: the VNFM determines, according to the resource usage status indicator and the target capacity expansion policy, to expand the container of the first type on the target VNF Group.
在该实现方式中,VNFM根据资源使用状态指标和目标扩容策略,可以准确、快速地确定所需扩容的容器组的类型。In this implementation manner, the VNFM can accurately and quickly determine the type of container group to be expanded according to the resource usage status indicator and the target expansion strategy.
在一个可能的实现方式中,所述资源使用状态指标包括两个或两个以上资源使用状态采样指标,所述两个或两个以上资源使用状态采样指标表征所述目标VNF中的所述第一类型的容器组在同一时间段内的两个或两个以上时刻的资源使用情况;所述VNFM根据所述资源使用状态指标和所述目标扩容策略,确定待在所述目标VNF上扩容所述第一类型的容器组包括:所述VNFM在所述两个或两个以上所述资源使用状态采样指标均超过扩容阈值的情况下,确定待在所述目标VNF上扩容所述第一类型的容器组。In a possible implementation manner, the resource usage status indicator includes two or more resource usage status sampling indicators, and the two or more resource usage status sampling indicators represent the first indicator in the target VNF. The resource usage of a type of container group at two or more moments in the same time period; the VNFM determines the location to be expanded on the target VNF according to the resource usage status indicator and the target expansion strategy The container group of the first type includes: the VNFM determines to expand the first type on the target VNF when the two or more of the resource usage status sampling indicators all exceed the expansion threshold container group.
在该实现方式中,当两个或两个以上所述资源使用状态采样指标均超过扩容阈值时,确定待在目标VNF上扩容所述第一类型的容器组,能够避免扩容出的容器组在较短的时间内被缩容。In this implementation, when two or more of the resource usage status sampling indicators exceed the capacity expansion threshold, it is determined that the container group of the first type is to be expanded on the target VNF, which can prevent the expanded container group from reduced in a short period of time.
在一个可能的实现方式中,所述VNFM根据所述目标扩容策略,向虚拟化基础设施管理器VIM发送第一扩容信息,包括:所述VNFM根据所述目标扩容策略,确定在扩容所述第一类型的容器组之前需要扩容所述第一类型的虚拟机;所述VNFM向所述VIM发送所述第一扩容信息。In a possible implementation manner, the VNFM sends the first capacity expansion information to the virtualized infrastructure manager VIM according to the target capacity expansion policy, including: the VNFM determines, according to the target capacity expansion policy, whether to expand the first capacity Before a container group of one type needs to expand the capacity of the virtual machine of the first type; the VNFM sends the first capacity expansion information to the VIM.
在该实现方式中,VNFM根据目标扩容策略,确定在扩容第一类型的容器组之前需要扩容第一类型的虚拟机。然后,向VIM发送第一扩容信息,以扩容第一类型的虚拟机;可以在当前的虚拟机资源不满足需求时扩容出所需的虚拟机,能够提高资源利用率。In this implementation manner, the VNFM determines, according to the target capacity expansion policy, that the virtual machine of the first type needs to be expanded before expanding the container group of the first type. Then, the first capacity expansion information is sent to the VIM to expand the virtual machine of the first type; the required virtual machine can be expanded when the current virtual machine resources do not meet the requirements, which can improve resource utilization.
在一个可能的实现方式中,所述方法还包括:通过扩容策略配置界面接收用户针对所述第一类型的容器组的扩容策略配置指令;根据所述扩容策略配置指令,配置得到所述目标扩容策略。In a possible implementation manner, the method further includes: receiving, through a capacity expansion policy configuration interface, a user's capacity expansion policy configuration instruction for the container group of the first type; configuring and obtaining the target capacity expansion according to the capacity expansion policy configuration instruction Strategy.
在该实现方式中,根据扩容策略配置指令,配置目标扩容策略;用户可根据实际需求配置所需的扩容策略,可满足不同的业务需求。In this implementation manner, the target expansion strategy is configured according to the expansion strategy configuration instruction; the user can configure the required expansion strategy according to actual needs, which can meet different business requirements.
第二方面,本申请实施例提供了一种自动缩容方法,应用于包括虚拟化网络管理器VNFM的网络功能虚拟化NFV系统,所述方法包括:所述VNFM从虚拟化网络功能描述VNFD中获取目标缩容策略,所述目标缩容策略包括:在缩容第一类型的容器组之后缩容第一类型的虚拟机,所述第一类型的容器组承载于所述第一类型的虚拟机;所述VNFM根据所述目标缩容策略,确定待缩容目标虚拟化网络功能VNF上的所述第一类型的容器组; 所述目标VNF为采用所述目标缩容策略的VNF;所述VNFM发送第一缩容信息,所述第一缩容信息用于指示缩容所述目标VNF中的所述第一类型的容器组;所述VNFM根据所述目标缩容策略,向虚拟化基础设施管理器VIM发送第二缩容信息,所述第二缩容信息用于指示缩容所述目标VNF中的所述第一类型的虚拟机。In a second aspect, an embodiment of the present application provides an automatic scaling method, which is applied to a network function virtualization NFV system including a virtualized network manager VNFM. The method includes: the VNFM extracts data from a virtualized network function description VNFD Obtain a target scaling policy, where the target scaling policy includes: scaling down a first type of virtual machine after scaling down a first type of container group, where the first type of container group is hosted on the first type of virtual machine The VNFM determines the container group of the first type on the target virtualized network function VNF to be scaled down according to the target reduction strategy; the target VNF is a VNF that adopts the target reduction strategy; The VNFM sends first scaling information, where the first scaling information is used to instruct scaling down of the container group of the first type in the target VNF; the VNFM sends the virtualized The infrastructure manager VIM sends second scaling information, where the second scaling information is used to instruct scaling down of the virtual machine of the first type in the target VNF.
本申请实施例中,在缩容第一类型的容器组之后缩容第一类型的虚拟机(即承载第一类型的容器组的虚拟机),可以防止存在多余的虚拟机没有运行任何容器组而产生资源浪费。In this embodiment of the present application, after shrinking the container group of the first type, the virtual machine of the first type (that is, the virtual machine that carries the container group of the first type) is reduced, which can prevent redundant virtual machines from running any container group. resulting in waste of resources.
在一个可能的实现方式中,所述目标缩容策略还包括:在缩容所述第一类型的容器组时缩容第二类型的容器组;所述第一缩容信息还用于指示缩容所述目标VNF中的所述第二类型的容器组,所述第二类型的容器组承载于所述第一类型的虚拟机。所述第一类型的容器组和所述第二类型的容器组可支持同一业务。In a possible implementation manner, the target shrinking policy further includes: shrinking the container group of the second type when shrinking the container group of the first type; the first shrinking information is further used to indicate the shrinking The container group of the second type in the target VNF is accommodated, and the container group of the second type is hosted on the virtual machine of the first type. The container group of the first type and the container group of the second type may support the same service.
在该实现方式中,在缩容第一类型的容器组时缩容第二类型的容器组,可以及时释放第二类型的容器组占用的资源。In this implementation manner, when shrinking a container group of a first type when shrinking a container group of a second type, the resources occupied by the container group of the second type can be released in time.
在一个可能的实现方式中,所述目标缩容策略还包括:满足缩容所述第一类型的容器组的条件时待缩容所述第一类型的容器组的个数;所述VNFM根据所述目标缩容策略,确定待缩容目标虚拟化网络功能VNF上的所述第一类型的容器组包括:所述VNFM根据所述目标缩容策略,确定待缩容所述目标VNF中的K个所述第一类型的容器组,所述K为大于0的整数。In a possible implementation manner, the target scaling strategy further includes: the number of the container groups of the first type to be scaled down when the conditions for scaling down the container group of the first type are met; the VNFM according to For the target reduction policy, determining the container group of the first type on the target virtualized network function VNF to be scaled includes: the VNFM determining, according to the target reduction policy, the container groups in the target VNF to be scaled down. K container groups of the first type, where K is an integer greater than 0.
在该实现方式中,根据目标缩容策略可快速、准确地确定待缩容的第一类型的容器组的个数。In this implementation manner, the number of container groups of the first type to be scaled down can be quickly and accurately determined according to the target scale down policy.
在一个可能的实现方式中,所述VNFM发送第一缩容信息之前,所述方法还包括:所述VNFM向所述目标VNF发送第三缩容信息,所述第三缩容信息用于确认是否可缩容所述目标VNF中的第一类型的容器组;所述VNFM接收来自所述目标VNF的第四缩容信息,所述第四缩容信息指示可缩容所述目标VNF中的所述第一类型的容器组。In a possible implementation manner, before the VNFM sends the first capacity reduction information, the method further includes: the VNFM sends third capacity reduction information to the target VNF, where the third capacity reduction information is used for confirmation Whether the container group of the first type in the target VNF can be scaled down; the VNFM receives fourth scale down information from the target VNF, the fourth scale down information indicates that the container group in the target VNF can be scaled down; the first type of container group.
在该实现方式中,VNFM向目标VNF发送第三缩容信息,以便于确认是否可缩容第一类型的容器组,可以避免缩容不能缩容的容器组。In this implementation manner, the VNFM sends the third scaling information to the target VNF, so as to confirm whether the container group of the first type can be scaled down, so as to avoid scaling down the container group that cannot be scaled down.
在一个可能的实现方式中,所述VNFM根据所述目标缩容策略,确定待缩容目标虚拟化网络功能VNF上的所述第一类型的容器组之前,所述方法还包括:所述VNFM接收来自所述目标VNF的资源使用状态指标,所述资源使用状态指标表征所述目标VNF中的所述第一类型的容器组的资源使用情况;所述VNFM根据所述目标缩容策略,确定待缩容目标虚拟化网络功能VNF上的所述第一类型的容器组包括:所述VNFM根据所述资源使用状态指标和所述目标缩容策略,确定待缩容所述目标VNF中的所述第一类型的容器组。In a possible implementation manner, before the VNFM determines, according to the target scaling policy, the container group of the first type on the target virtualized network function VNF to be scaled down, the method further includes: the VNFM Receive a resource usage status indicator from the target VNF, where the resource usage status indicator represents the resource usage of the container group of the first type in the target VNF; the VNFM determines according to the target scaling policy The container group of the first type on the target virtualized network function VNF to be scaled down includes: the VNFM determines, according to the resource usage status indicator and the target scale down policy, all the containers in the target VNF to be scaled down. The first type of container group is described.
在该实现方式中,VNFM资源使用状态指标和目标缩容策略,可以准确、快速地确定所需缩容的容器组的类型。In this implementation manner, the VNFM resource usage status indicator and the target scaling strategy can accurately and quickly determine the type of container group that needs to be scaled down.
在一个可能的实现方式中,所述资源使用状态指标包括两个或两个以上资源使用状态采样指标,所述两个或两个以上资源使用状态采样指标表征所述目标VNF中的所述第一类型的容器组在同一时间段内的两个或两个以上时刻的资源使用情况;所述VNFM根据所述资源使用状态指标和所述目标缩容策略,确定待缩容所述目标VNF中的所述第一类型的容 器组包括:所述VNFM在所述两个或两个以上资源使用状态采样指标均未超过缩容阈值的情况下,确定待缩容所述目标VNF中的所述第一类型的容器组。In a possible implementation manner, the resource usage status indicator includes two or more resource usage status sampling indicators, and the two or more resource usage status sampling indicators represent the first indicator in the target VNF. Resource usage of a type of container group at two or more moments in the same time period; the VNFM determines the target VNF to be scaled down according to the resource usage status indicator and the target scaling policy The container group of the first type includes: the VNFM determines that the VNF in the target VNF to be scaled down is under the condition that none of the two or more resource usage status sampling indicators exceeds the scaling threshold. The first type of container group.
在该实现方式中,当两个或两个以上所述资源使用状态采样指标均未超过缩容阈值时,确定待在目标VNF上缩容所述第一类型的容器组,能够避免缩容出的容器组在较短的时间内需要重新扩容。In this implementation manner, when two or more of the resource usage status sampling indicators do not exceed the scaling threshold, it is determined that the container group of the first type to be scaled down on the target VNF can be avoided. The container group needs to be re-scaled in a short period of time.
在一个可能的实现方式中,所述方法还包括:通过缩容策略配置界面接收用户针对所述第一类型的容器组的缩容策略配置指令;根据所述缩容策略配置指令,配置得到所述目标缩容策略。In a possible implementation manner, the method further includes: receiving a user's scaling policy configuration instruction for the first type of container group through a scaling policy configuration interface; and configuring the desired scaling policy according to the scaling policy configuration instruction Describe the target scaling strategy.
在该实现方式中,根据缩容策略配置指令,生成目标缩容策略;用户可根据实际需求配置所需的缩容策略,可满足不同的业务需求。In this implementation manner, the target shrinkage policy is generated according to the shrinkage policy configuration instruction; the user can configure the required shrinkage policy according to actual needs, which can meet different business needs.
在一个可能的实现方式中,所述第二缩容信息用于指示缩容所述目标VNF中部署的多个所述第一类型的虚拟机中未部署业务容器组的所述第一类型的虚拟机;或者,所述第二缩容信息用于指示缩容所述目标VNF中部署的多个所述第一类型的虚拟机中中央处理器CPU占用率最低的一个或多个所述第一类型的虚拟机。业务容器组是指提供业务服务的容器组。In a possible implementation manner, the second scaling information is used to instruct scaling down of the first type of virtual machines of the first type that are not deployed in the service container group among the plurality of virtual machines of the first type deployed in the target VNF. virtual machine; or, the second scaling information is used to instruct scaling down one or more of the first type of virtual machines with the lowest CPU usage of the CPU among the plurality of virtual machines of the first type deployed in the target VNF A type of virtual machine. A business container group refers to a container group that provides business services.
在该实现方式中,优先缩容未部署业务容器组的虚拟机或者CPU占用率较低的虚拟机,能够提高资源利用率。In this implementation manner, the virtual machines in which the service container group is not deployed or the virtual machines with low CPU occupancy rate are preferentially scaled down, which can improve resource utilization.
第三方面,本申请实施例提供了一种自动缩容方法,应用于包括虚拟化网络管理器VNFM和目标虚拟化网络功能VNF的网络功能虚拟化NFV系统,所述方法包括:所述目标VNF接收来自所述VNFM的第三缩容信息,所述第三缩容信息用于确认是否可缩容所述目标VNF中的第一类型的容器组;所述目标VNF将所述第一类型的容器组执行的业务迁移出所述第一类型的容器组;所述目标VNF向所述VNFM发送第四缩容信息,所述第四缩容信息指示可缩容所述目标VNF中的所述第一类型的容器组。所述目标VNF可以为任一配置有缩容策略的VNF。In a third aspect, an embodiment of the present application provides an automatic scaling method, which is applied to a network function virtualized NFV system including a virtualized network manager VNFM and a target virtualized network function VNF, and the method includes: the target VNF Receive third scaling information from the VNFM, where the third scaling information is used to confirm whether the container group of the first type in the target VNF can be scaled down; the target VNF converts the first type of container group The services executed by the container group are migrated out of the container group of the first type; the target VNF sends fourth reduction information to the VNFM, where the fourth reduction information indicates that the target VNF can be reduced in size The first type of container group. The target VNF may be any VNF configured with a scaling policy.
本申请实施例中,目标VNF将第一类型的容器组执行的业务迁移出第一类型的容器组之后,向VNFM发送第四缩容信息;可以避免缩容仍执行业务的容器组。In the embodiment of the present application, after the target VNF migrates the services performed by the first type of container group out of the first type of container group, it sends fourth capacity reduction information to the VNFM; this can avoid shrinking the container group that still executes services.
第四方面,本申请实施例提供了一种自动扩容方法,应用于包括虚拟化网络管理器VNFM和目标虚拟化网络功能VNF的网络功能虚拟化NFV系统,所述方法包括:所述目标VNF根据目标扩容策略,确定待扩容第一类型的容器组;所述目标VNF根据所述目标扩容策略,确定在扩容所述第一类型的容器组之前扩容第一类型的虚拟机;所述目标VNF向所述VNFM发送第三扩容信息,所述第三扩容信息用于指示在所述目标VNF上扩容所述第一类型的虚拟机;所述目标VNF向所述VNFM发送第四扩容信息,所述第四扩容信息用于指示在所述第一类型的虚拟机中创建所述第一类型的容器组。所述目标VNF为采用所述目标扩容策略的VNF。In a fourth aspect, an embodiment of the present application provides an automatic capacity expansion method, which is applied to a network function virtualization NFV system including a virtualized network manager VNFM and a target virtualized network function VNF, the method comprising: the target VNF according to The target expansion strategy is to determine the container group of the first type to be expanded; the target VNF determines to expand the first type of virtual machine before expanding the container group of the first type according to the target expansion strategy; The VNFM sends third capacity expansion information, where the third capacity expansion information is used to instruct to expand the virtual machine of the first type on the target VNF; the target VNF sends fourth capacity expansion information to the VNFM, the The fourth capacity expansion information is used to indicate that the container group of the first type is created in the virtual machine of the first type. The target VNF is a VNF that adopts the target capacity expansion strategy.
本申请实施例中,目标VNF根据目标扩容策略,确定在扩容第一类型的容器组之前扩容第一类型的虚拟机。先通过向VNFM发送第三扩容信息来扩容第一类型的虚拟机,再向VNFM发送第四扩容信息,以便在第一类型的虚拟机中创建第一类型的容器组。这样确定需要扩容第一类型的虚拟机之后才会扩容第一类型的虚拟机,不需要提前扩充第一类型的 虚拟机,能够提高资源利用率。In the embodiment of the present application, the target VNF determines to expand the capacity of the first type of virtual machine before expanding the container group of the first type according to the target capacity expansion policy. The first type of virtual machine is expanded by sending the third capacity expansion information to the VNFM, and then the fourth capacity expansion information is sent to the VNFM, so as to create a first type of container group in the first type of virtual machine. In this way, the first type of virtual machine can be expanded only after it is determined that the first type of virtual machine needs to be expanded, and the first type of virtual machine does not need to be expanded in advance, which can improve resource utilization.
在一个可能的实现方式中,所述目标扩容策略还包括:满足扩容所述第一类型的容器组的条件时待扩容所述第一类型的容器组的个数;所述目标VNF根据所述目标扩容策略,确定待扩容所述第一类型的容器组包括:所述目标VNF根据所述目标扩容策略,确定待扩容F个所述第一类型的容器组;所述目标VNF根据所述目标扩容策略,确定在扩容所述第一类型的容器组之前扩容第一类型的虚拟机包括:所述目标VNF根据所述目标扩容策略,确定在扩容所述第一类型的容器组之前扩容K个所述第一类型的虚拟机;所述第一类型的容器组为亲和性的,所述第三扩容信息用于指示在所述目标VNF上扩容K个所述第一类型的虚拟机,所述第四扩容信息用于指示在F个所述第一类型的虚拟机中扩容F个所述第一类型的容器组,所述F和所述K均为大于0的整数,所述F个所述第一类型的虚拟机包括所述K个所述第一类型的虚拟机。In a possible implementation manner, the target capacity expansion strategy further includes: the number of container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met; the target VNF is based on the The target expansion strategy, determining the container group of the first type to be expanded includes: the target VNF determines F container groups of the first type to be expanded according to the target expansion strategy; the target VNF according to the target expansion strategy A capacity expansion strategy, determining to expand the first type of virtual machines before expanding the container group of the first type includes: the target VNF determines, according to the target capacity expansion strategy, to expand K before expanding the container group of the first type the virtual machine of the first type; the container group of the first type is affinity, and the third capacity expansion information is used to instruct the expansion of K virtual machines of the first type on the target VNF, The fourth capacity expansion information is used to indicate that F container groups of the first type are to be expanded in the F virtual machines of the first type. Both the F and the K are integers greater than 0, and the F The virtual machines of the first type include the K virtual machines of the first type.
在该实现方式中,目标VNF可以准确地确定需要扩容的第一类型的虚拟机的个数,能够充分利用虚拟机资源。In this implementation manner, the target VNF can accurately determine the number of virtual machines of the first type to be expanded, and can fully utilize virtual machine resources.
在一个可能的实现方式中,所述目标扩容策略还包括:满足扩容所述第一类型的容器组的条件时待扩容所述第一类型的容器组的个数;所述目标VNF根据所述目标扩容策略,确定待扩容所述第一类型的容器组包括:所述目标VNF根据所述目标扩容策略,确定待扩容F个所述第一类型的容器组;所述目标VNF根据所述目标扩容策略,确定在扩容所述第一类型的容器组之前扩容第一类型的虚拟机包括:所述目标VNF根据所述目标扩容策略,确定在扩容所述第一类型的容器组之前扩容F个所述第一类型的虚拟机,所述第一类型的容器组为非亲和性的;所述第三扩容信息用于指示在所述目标VNF上扩容F个所述第一类型的虚拟机,所述第四扩容信息用于指示在所述F个所述第一类型的虚拟机中扩容F个所述第一类型的容器组。In a possible implementation manner, the target capacity expansion strategy further includes: the number of container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met; the target VNF is based on the The target expansion strategy, determining the container group of the first type to be expanded includes: the target VNF determines F container groups of the first type to be expanded according to the target expansion strategy; the target VNF according to the target expansion strategy A capacity expansion strategy, determining to expand the first type of virtual machines before expanding the container group of the first type includes: the target VNF determines, according to the target capacity expansion strategy, to expand F number of virtual machines before expanding the container group of the first type For the virtual machine of the first type, the container group of the first type is non-affinity; the third capacity expansion information is used to indicate that F virtual machines of the first type are to be expanded on the target VNF , the fourth capacity expansion information is used to indicate that F container groups of the first type are to be expanded in the F virtual machines of the first type.
在该实现方式中,目标VNF可以准确地确定需要扩容的第一类型的虚拟机的个数,能够充分利用虚拟机资源。In this implementation manner, the target VNF can accurately determine the number of virtual machines of the first type to be expanded, and can fully utilize virtual machine resources.
在一个可能的实现方式中,所述目标扩容策略还包括:在扩容所述第一类型的容器组时扩容第二类型的容器组;所述第四扩容信息用于指示在所述第一类型的虚拟机中创建所述第一类型的容器组以及创建所述第二类型的容器组,所述第二类型为与所述第一类型关联的容器组类型。所述第一类型的容器组和所述第二类型的容器组可支持同一业务且可部署于同一虚拟机。In a possible implementation manner, the target capacity expansion strategy further includes: when expanding the container group of the first type, expanding the container group of the second type; the fourth capacity expansion information is used to indicate that the container group of the first type is expanded. Create the container group of the first type and create the container group of the second type in the virtual machine of the . The second type is the container group type associated with the first type. The container group of the first type and the container group of the second type can support the same service and can be deployed on the same virtual machine.
在该实现方式中,在扩容第一类型的容器组时扩容第二类型的容器组,可以充分利用虚拟机的资源。In this implementation manner, when expanding the container group of the first type, the container group of the second type can be expanded, and the resources of the virtual machine can be fully utilized.
在一个可能的实现方式中,所述目标VNF根据目标扩容策略,确定待扩容第一类型的容器组之前,所述方法还包括:所述目标VNF获取资源使用状态指标,所述资源使用状态指标表征所述目标VNF中的所述第一类型的容器组的资源使用情况;所述目标VNF根据目标扩容策略,确定待扩容第一类型的容器组包括:所述目标VNF根据所述资源使用状态指标和所述目标扩容策略,确定待扩容所述第一类型的容器组。In a possible implementation manner, before the target VNF determines the container group of the first type to be expanded according to the target capacity expansion policy, the method further includes: acquiring, by the target VNF, a resource usage status indicator, the resource usage status indicator Characterizing the resource usage of the first type of container group in the target VNF; the target VNF determining the container group of the first type to be expanded according to the target capacity expansion policy includes: the target VNF according to the resource usage status The index and the target expansion strategy determine the container group of the first type to be expanded.
在该实现方式中,目标VNF根据资源使用状态指标和目标扩容策略,可以准确、快速地确定所需扩容的容器组的类型。In this implementation manner, the target VNF can accurately and quickly determine the type of container group that needs to be expanded according to the resource usage status indicator and the target capacity expansion strategy.
在一个可能的实现方式中,所述方法还包括:所述目标VNF通过人机语言MML配置命令配置所述目标扩容策略。In a possible implementation manner, the method further includes: configuring, by the target VNF, the target capacity expansion policy through a man-machine language MML configuration command.
在该实现方式中,目标VNF通过MML配置命令可方便地配置所需的目标扩容策略。In this implementation manner, the target VNF can conveniently configure the required target capacity expansion policy through the MML configuration command.
第五方面,本申请实施例提供了一种自动缩容方法,应用于包括虚拟化网络管理器VNFM和目标虚拟化网络功能VNF的网络功能虚拟化NFV系统,所述方法包括:所述目标VNF根据目标缩容策略,确定待缩容第一类型的容器组;所述目标VNF根据所述目标缩容策略,确定在缩容所述第一类型的容器组之后缩容第一类型的虚拟机;所述目标VNF向所述VNFM发送第五缩容信息,所述第五缩容信息用于指示缩容所述目标VNF中的所述第一类型的容器组;所述目标VNF向所述VNFM发送第六缩容信息,所述第六缩容信息用于指示缩容所述目标VNF中的所述第一类型的虚拟机,所述第一类型的容器组承载于所述第一类型的虚拟机。所述目标VNF为采用所述目标缩容策略的VNF。In a fifth aspect, an embodiment of the present application provides an automatic scaling method, which is applied to a network function virtualization NFV system including a virtualized network manager VNFM and a target virtualized network function VNF, the method comprising: the target VNF Determine the container group of the first type to be scaled down according to the target scaling policy; the target VNF determines, according to the target scaling policy, to scale down the virtual machine of the first type after scaling down the container group of the first type ; The target VNF sends fifth shrinkage information to the VNFM, and the fifth shrinkage information is used to instruct to shrink the container group of the first type in the target VNF; the target VNF reports to the The VNFM sends sixth scaling information, where the sixth scaling information is used to instruct to scale down the virtual machine of the first type in the target VNF, and the container group of the first type is hosted on the first type virtual machine. The target VNF is a VNF that adopts the target shrinking policy.
在一个可能的实现方式中,所述目标缩容策略还包括:满足缩容所述第一类型的容器组的条件时待缩容所述第一类型的容器组的个数;所述目标VNF根据目标缩容策略,确定待缩容第一类型的容器组包括:所述目标VNF根据所述目标缩容策略,确定待缩容F个所述第一类型的容器组;所述目标VNF根据所述目标缩容策略,确定在缩容所述第一类型的容器组之后缩容第一类型的虚拟机包括:所述目标VNF根据所述目标缩容策略,确定在缩容所述第一类型的容器组之后缩容H个所述第一类型的虚拟机;所述第五缩容信息用于指示缩容所述目标VNF中的F个所述第一类型的容器组,所述第六缩容信息用于指示缩容所述目标VNF中的H个所述第一类型的虚拟机,所述F和所述H均为大于0的整数,所述H小于或等于所述F。In a possible implementation manner, the target scaling strategy further includes: the number of container groups of the first type to be scaled down when the conditions for scaling down the container group of the first type are met; the target VNF Determining the container group of the first type to be scaled down according to the target reduction strategy includes: the target VNF determines F container groups of the first type to be scaled down according to the target reduction strategy; the target VNF according to the target reduction strategy In the target shrinking policy, determining to shrink the virtual machine of the first type after shrinking the container group of the first type includes: the target VNF determines, according to the target shrinking policy, to shrink the first type of virtual machine after shrinking the first type of container group. After scaling down the H virtual machines of the first type after the container group of the first type; the fifth scaling information is used to indicate scaling down the F container groups of the first type in the target VNF, and the The six shrinkage information is used to instruct to shrink the H virtual machines of the first type in the target VNF, the F and the H are both integers greater than 0, and the H is less than or equal to the F.
在该实现方式中,目标VNF可以准确地确定需要缩容的第一类型的虚拟机的个数,并及时释放多余的虚拟机资源,做到节能减排。In this implementation manner, the target VNF can accurately determine the number of virtual machines of the first type to be scaled down, and release redundant virtual machine resources in time to achieve energy saving and emission reduction.
在一个可能的实现方式中,所述目标缩容策略还包括:在缩容所述第一类型的容器组时缩容第二类型的容器组;所述第五缩容信息还用于指示缩容所述目标VNF中的第二类型的容器组,所述第二类型为所述第一类型关联的容器组类型,所述第二类型的容器组承载于所述第二类型的虚拟机。In a possible implementation manner, the target shrinking policy further includes: shrinking the container group of the second type when shrinking the container group of the first type; the fifth shrinking information is further used to indicate the shrinking A container group of the second type in the target VNF is accommodated, where the second type is a container group type associated with the first type, and the container group of the second type is hosted on the virtual machine of the second type.
在一个可能的实现方式中,所述目标VNF根据目标缩容策略,确定待缩容第一类型的容器组之前,所述方法还包括:所述目标VNF获取资源使用状态指标,所述资源使用状态指标表征所述目标VNF中的所述第一类型的容器组的资源使用情况;所述目标VNF根据目标缩容策略,确定待缩容第一类型的容器组包括:所述目标VNF根据所述资源使用状态指标和所述目标缩容策略,确定待缩容所述第一类型的容器组。In a possible implementation manner, before the target VNF determines the container group of the first type to be scaled down according to the target scaling policy, the method further includes: acquiring, by the target VNF, a resource usage status indicator, and the resource usage The state indicator represents the resource usage of the container group of the first type in the target VNF; the target VNF determining the container group of the first type to be scaled down according to the target scaling policy includes: the target VNF according to the The resource usage status indicator and the target scaling strategy are used to determine the container group of the first type to be scaled down.
在该实现方式中,目标VNF资源使用状态指标和目标缩容策略,可以准确、快速地确定所需缩容的容器组的类型。In this implementation manner, the target VNF resource usage status indicator and the target scaling strategy can accurately and quickly determine the type of container group that needs to be scaled down.
在一个可能的实现方式中,所述方法还包括:所述目标VNF通过人机语言MML配置命令配置所述目标缩容策略。In a possible implementation manner, the method further includes: configuring, by the target VNF, the target scaling policy through a man-machine language MML configuration command.
在该实现方式中,目标VNF通过MML配置命令可方便地配置所需的目标缩容策略。In this implementation manner, the target VNF can conveniently configure the required target scaling policy through the MML configuration command.
第六方面,本申请实施例提供了一种通信装置,应用于包括VNFM的网络功能虚拟化NFV系统,包括:处理单元,用于从虚拟化网络功能描述VNFD中获取目标扩容策略,所 述目标扩容策略包括:在扩容第一类型的容器组之前扩容第一类型的虚拟机,所述第一类型的容器组承载于所述第一类型的虚拟机;所述处理单元,还用于根据所述目标扩容策略,确定待在目标虚拟化网络功能VNF上扩容所述第一类型的容器组;所述目标VNF为采用所述目标扩容策略的VNF;所述处理单元,还用于根据所述目标扩容策略控制收发单元向虚拟化基础设施管理器VIM发送第一扩容信息,所述第一扩容信息用于指示在所述目标VNF上创建所述第一类型的虚拟机;所述收发单元,还用于发送第二扩容信息,所述第二扩容信息用于指示在所述第一类型的虚拟机中创建所述第一类型的容器组。In a sixth aspect, an embodiment of the present application provides a communication device, which is applied to a network function virtualization NFV system including a VNFM, including: a processing unit configured to obtain a target capacity expansion policy from a virtualized network function description VNFD, the target The capacity expansion strategy includes: expanding a first type of virtual machine before expanding a first type of container group, where the first type of container group is borne by the first type of virtual machine; the processing unit is further configured to: The target capacity expansion strategy is to determine the container group of the first type to be expanded on the target virtualized network function VNF; the target VNF is a VNF that adopts the target capacity expansion strategy; the processing unit is further configured to The target capacity expansion policy controls the transceiver unit to send first capacity expansion information to the virtualization infrastructure manager VIM, where the first capacity expansion information is used to instruct the creation of the first type of virtual machine on the target VNF; the transceiver unit, It is also used for sending second capacity expansion information, where the second capacity expansion information is used to instruct to create the container group of the first type in the virtual machine of the first type.
在一个可能的实现方式中,所述目标扩容策略还包括:满足扩容所述第一类型的容器组的条件时待扩容所述第一类型的容器组的个数;所述处理单元,具体用于根据所述目标扩容策略,确定待在所述目标VNF上扩容F个所述第一类型的容器组;在所述目标VNF未满足扩容F个所述第一类型的容器组所需的虚拟机资源的情况下,根据所述目标扩容策略,向所述VIM发送所述第一扩容信息;所述第一类型的容器组为亲和性的,所述第一扩容信息用于指示在所述目标VNF中扩容K个所述第一类型的虚拟机,所述第二扩容信息用于指示在F个所述第一类型的虚拟机中扩容F个所述第一类型的容器组,所述F和所述K为大于0的整数,所述F个所述第一类型的虚拟机包括所述K个所述第一类型的虚拟机。In a possible implementation manner, the target capacity expansion strategy further includes: the number of the container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met; the processing unit, specifically using According to the target capacity expansion strategy, it is determined that F container groups of the first type are to be expanded on the target VNF; the target VNF does not meet the virtual requirements for expanding the F container groups of the first type. In the case of host resources, send the first expansion information to the VIM according to the target expansion policy; the first type of container group is affinity, and the first expansion information is used to indicate K virtual machines of the first type are expanded in the target VNF, and the second capacity expansion information is used to indicate that F container groups of the first type are to be expanded in the F virtual machines of the first type. The F and the K are integers greater than 0, and the F virtual machines of the first type include the K virtual machines of the first type.
在一个可能的实现方式中,所述目标扩容策略还包括:满足扩容所述第一类型的容器组的条件时待扩容所述第一类型的容器组的个数;所述处理单元,具体用于根据所述目标扩容策略,确定待在所述目标VNF上扩容F个所述第一类型的容器组;根据所述目标扩容策略,确定待在所述目标VNF上扩容F个所述第一类型的虚拟机,并向所述VIM发送所述第一扩容信息,所述第一类型的容器组为非亲和性的;所述第一扩容信息用于指示在所述目标VNF上创建F个所述第一类型的虚拟机,所述第二扩容信息用于指示在所述F个所述第一类型的虚拟机中创建F个所述第一类型的容器组,所述F为大于0的整数。In a possible implementation manner, the target capacity expansion strategy further includes: the number of the container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met; the processing unit, specifically using In accordance with the target expansion strategy, it is determined that F container groups of the first type are to be expanded on the target VNF; according to the target expansion strategy, it is determined that the target VNF is to be expanded. type of virtual machine, and send the first expansion information to the VIM, the container group of the first type is non-affinity; the first expansion information is used to instruct the target VNF to create an F virtual machines of the first type, the second capacity expansion information is used to instruct to create F container groups of the first type in the F virtual machines of the first type, where F is greater than or equal to An integer of 0.
在一个可能的实现方式中,所述目标扩容策略还包括:在扩容所述第一类型的容器组时扩容第二类型的容器组;所述第二扩容信息还用于指示在所述第一类型的虚拟机中创建所述第二类型的容器组。In a possible implementation manner, the target capacity expansion strategy further includes: when expanding the container group of the first type, expanding the container group of the second type; the second capacity expansion information is further used to indicate that the container group of the first type is expanded A container group of the second type is created in a virtual machine of the type.
在一个可能的实现方式中,所述收发单元,还用于接收来自所述目标VNF的资源使用状态指标,所述资源使用状态指标表征所述目标VNF中的所述第一类型的容器组的资源使用情况;所述处理单元,具体用于根据所述资源使用状态指标和所述目标扩容策略,确定待在所述目标VNF上扩容所述第一类型的容器组。In a possible implementation manner, the transceiver unit is further configured to receive a resource usage status indicator from the target VNF, where the resource usage status indicator represents the status of the container group of the first type in the target VNF Resource usage; the processing unit is specifically configured to determine the container group of the first type to be expanded on the target VNF according to the resource usage state indicator and the target expansion policy.
在一个可能的实现方式中,所述资源使用状态指标包括两个或两个以上资源使用状态采样指标,所述两个或两个以上资源使用状态采样指标表征所述目标VNF中的所述第一类型的容器组在同一时间段内的两个或两个以上时刻的资源使用情况;所述处理单元,具体用于在所述两个或两个以上所述资源使用状态采样指标均超过扩容阈值的情况下,确定待在所述目标VNF上扩容所述第一类型的容器组。In a possible implementation manner, the resource usage status indicator includes two or more resource usage status sampling indicators, and the two or more resource usage status sampling indicators represent the first indicator in the target VNF. The resource usage of a type of container group at two or more moments in the same time period; the processing unit is specifically configured to be used when the two or more of the resource usage status sampling indicators exceed the capacity expansion In the case of the threshold, it is determined that the container group of the first type is to be expanded on the target VNF.
在一个可能的实现方式中,所述处理单元,具体用于根据所述目标扩容策略,确定在扩容所述第一类型的容器组之前需要扩容所述第一类型的虚拟机;控制所述收发单元向所述VIM发送所述第一扩容信息。In a possible implementation manner, the processing unit is specifically configured to determine, according to the target capacity expansion policy, that the virtual machine of the first type needs to be expanded before the container group of the first type needs to be expanded; The unit sends the first capacity expansion information to the VIM.
在一个可能的实现方式中,所述通信装置还包括:输入单元,用于通过扩容策略配置 界面接收用户针对所述第一类型的容器组的扩容策略配置指令;所述处理单元,还用于根据所述扩容策略配置指令,配置得到所述目标扩容策略。In a possible implementation manner, the communication device further includes: an input unit, configured to receive a user's capacity expansion policy configuration instruction for the container group of the first type through a capacity expansion policy configuration interface; the processing unit is further configured to According to the capacity expansion policy configuration instruction, the target capacity expansion policy is obtained by configuration.
关于第六方面或各种可能的实施方式所带来的技术效果,可参考对于第一方面或相应的实现方式的技术效果的介绍。Regarding the technical effects brought by the sixth aspect or various possible implementation manners, reference may be made to the introduction to the technical effects of the first aspect or corresponding implementation manners.
第七方面,本申请实施例提供了另一种通信装置,应用于包括VNFM的网络功能虚拟化NFV系统,包括:处理单元,用于从虚拟化网络功能描述VNFD中获取目标缩容策略,所述目标缩容策略包括:在缩容第一类型的容器组之后缩容第一类型的虚拟机,所述第一类型的容器组承载于所述第一类型的虚拟机;所述处理单元,还用于根据所述目标缩容策略,确定待缩容目标虚拟化网络功能VNF上的所述第一类型的容器组;所述目标VNF为采用所述目标缩容策略的VNF;收发单元,用于发送第一缩容信息,所述第一缩容信息用于指示缩容所述目标VNF中的所述第一类型的容器组;所述处理单元,还用于根据所述目标缩容策略,控制所述收发单元向虚拟化基础设施管理器VIM发送第二缩容信息,所述第二缩容信息用于指示缩容所述目标VNF中的所述第一类型的虚拟机。In a seventh aspect, the embodiments of the present application provide another communication device, which is applied to a network function virtualization NFV system including a VNFM, and includes: a processing unit configured to obtain a target capacity reduction policy from the virtualized network function description VNFD, so that the The target scaling strategy includes: scaling down a first type of virtual machine after scaling down a first type of container group, where the first type of container group is borne on the first type of virtual machine; the processing unit, is also used to determine the container group of the first type on the target virtualized network function VNF to be scaled down according to the target reduction strategy; the target VNF is a VNF that adopts the target reduction strategy; the transceiver unit, is used for sending first scaling information, where the first scaling information is used to instruct scaling down of the container group of the first type in the target VNF; the processing unit is further configured to scale down according to the target a policy, controlling the transceiver unit to send second scaling information to the virtualization infrastructure manager VIM, where the second scaling information is used to instruct scaling down of the virtual machine of the first type in the target VNF.
在一个可能的实现方式中,所述目标缩容策略还包括:在缩容所述第一类型的容器组时缩容第二类型的容器组;所述第一缩容信息还用于指示缩容所述目标VNF中的所述第二类型的容器组,所述第二类型的容器组承载于所述第一类型的虚拟机。In a possible implementation manner, the target shrinking policy further includes: shrinking the container group of the second type when shrinking the container group of the first type; the first shrinking information is further used to indicate the shrinking The container group of the second type in the target VNF is accommodated, and the container group of the second type is hosted on the virtual machine of the first type.
在一个可能的实现方式中,所述目标缩容策略还包括:满足缩容所述第一类型的容器组的条件时待缩容所述第一类型的容器组的个数;所述处理单元,具体用于根据所述目标缩容策略,确定待缩容所述目标VNF中的K个所述第一类型的容器组,所述K为大于0的整数。In a possible implementation manner, the target scaling strategy further includes: the number of the first type of container groups to be scaled down when the conditions for scaling down the first type of container groups are met; the processing unit , which is specifically configured to determine, according to the target scaling policy, K container groups of the first type in the target VNF to be scaled down, where K is an integer greater than 0.
在一个可能的实现方式中,所述收发单元,还用于向所述目标VNF发送第三缩容信息,所述第三缩容信息用于确认是否可缩容所述目标VNF中的所述第一类型的容器组;接收来自所述目标VNF的第四缩容信息,所述第四缩容信息指示可缩容所述目标VNF中的所述第一类型的容器组。In a possible implementation manner, the transceiver unit is further configured to send third scaling information to the target VNF, where the third scaling information is used to confirm whether the target VNF can be scaled down A container group of a first type; receiving fourth scaling information from the target VNF, where the fourth scaling information indicates that the container group of the first type in the target VNF can be scaled down.
在一个可能的实现方式中,所述收发单元,还用于接收来自所述目标VNF的资源使用状态指标,所述资源使用状态指标表征所述目标VNF中的所述第一类型的容器组的资源使用情况;所述处理单元,具体用于根据所述资源使用状态指标和所述目标缩容策略,确定待缩容所述目标VNF中的所述第一类型的容器组。In a possible implementation manner, the transceiver unit is further configured to receive a resource usage status indicator from the target VNF, where the resource usage status indicator represents the status of the container group of the first type in the target VNF Resource usage; the processing unit is specifically configured to determine the container group of the first type in the target VNF to be scaled down according to the resource usage status indicator and the target scaling policy.
在一个可能的实现方式中,所述资源使用状态指标包括两个或两个以上资源使用状态采样指标,所述两个或两个以上资源使用状态采样指标表征所述目标VNF中的所述第一类型的容器组在同一时间段内的两个或两个以上时刻的资源使用情况;所述处理单元,具体用于在所述两个或两个以上资源使用状态采样指标均未超过缩容阈值的情况下,确定待缩容所述目标VNF中的所述第一类型的容器组。In a possible implementation manner, the resource usage status indicator includes two or more resource usage status sampling indicators, and the two or more resource usage status sampling indicators represent the first indicator in the target VNF. Resource usage of a type of container group at two or more moments in the same time period; the processing unit is specifically configured to sample indicators of the two or more resource usage states that do not exceed the capacity reduction In the case of the threshold, it is determined that the container group of the first type in the target VNF is to be scaled down.
在一个可能的实现方式中,所述通信装置还包括:输入单元,用于接收用户针对缩容策略配置界面中的所述第一类型的容器组的缩容策略配置指令;所述处理单元,还用于根据所述扩容策略配置指令,配置得到所述目标缩容策略。In a possible implementation manner, the communication device further includes: an input unit, configured to receive a user's scaling policy configuration instruction for the first type of container group in the scaling policy configuration interface; the processing unit, It is also used to configure and obtain the target capacity reduction policy according to the capacity expansion policy configuration instruction.
在一个可能的实现方式中,所述第二缩容信息用于指示缩容所述目标VNF中部署的多个所述第一类型的虚拟机中未部署业务容器组的所述第一类型的虚拟机;或者,所述第二 缩容信息用于指示缩容所述目标VNF中部署的多个所述第一类型的虚拟机中中央处理器CPU占用率最低的一个或多个所述第一类型的虚拟机。In a possible implementation manner, the second scaling information is used to instruct scaling down of the first type of virtual machines of the first type that are not deployed in the service container group among the plurality of virtual machines of the first type deployed in the target VNF. virtual machine; or, the second scaling information is used to instruct scaling down one or more of the first type of virtual machines with the lowest CPU usage of the CPU among the plurality of virtual machines of the first type deployed in the target VNF A type of virtual machine.
关于第七方面或各种可能的实施方式所带来的技术效果,可参考对于第二方面或相应的实现方式的技术效果的介绍。Regarding the technical effects brought by the seventh aspect or various possible implementation manners, reference may be made to the introduction to the technical effects of the second aspect or corresponding implementation manners.
第八方面,本申请实施例提供了一种通信装置,应用于包括虚拟化网络管理器VNFM和目标虚拟化网络功能VNF的网络功能虚拟化NFV系统,包括:收发单元,用于接收来自所述VNFM的第三缩容信息,所述第三缩容信息用于确认是否可缩容所述目标VNF中的第一类型的容器组;处理单元,用于将所述第一类型的容器组执行的业务迁移出所述第一类型的容器组;所述收发单元,还用于向所述VNFM发送第四缩容信息,所述第四缩容信息指示可缩容所述目标VNF中的所述第一类型的容器组。所述通信装置为实现所述目标VNF的实体。所述目标VNF可以为任一配置有缩容策略的VNF。In an eighth aspect, an embodiment of the present application provides a communication device, which is applied to a network function virtualized NFV system including a virtualized network manager VNFM and a target virtualized network function VNF, including: a transceiver unit for receiving data from the The third scaling information of the VNFM, the third scaling information is used to confirm whether the container group of the first type in the target VNF can be scaled down; the processing unit is used to execute the container group of the first type The services of the first type are migrated out of the container group of the first type; the transceiver unit is further configured to send fourth capacity reduction information to the VNFM, where the fourth capacity reduction information indicates that all the containers in the target VNF can be reduced The first type of container group is described. The communication device is an entity that implements the target VNF. The target VNF may be any VNF configured with a scaling policy.
关于第八方面的技术效果,可参考对于第三方面的技术效果的介绍。Regarding the technical effect of the eighth aspect, reference may be made to the introduction to the technical effect of the third aspect.
第九方面,本申请实施例提供了另一种通信装置,应用于包括虚拟化网络管理器VNFM和目标虚拟化网络功能VNF的网络功能虚拟化NFV系统,包括:处理单元,用于根据目标扩容策略,确定待扩容第一类型的容器组;根据所述目标扩容策略,确定在扩容所述第一类型的容器组之前扩容第一类型的虚拟机;收发单元,用于向所述VNFM发送第三扩容信息,所述第三扩容信息用于指示在所述目标VNF上扩容所述第一类型的虚拟机;向所述VNFM发送第四扩容信息,所述第四扩容信息用于指示在所述第一类型的虚拟机中创建所述第一类型的容器组。所述目标VNF为采用所述目标扩容策略的VNF。所述通信装置为实现所述目标VNF的实体。In a ninth aspect, an embodiment of the present application provides another communication device, which is applied to a network function virtualized NFV system including a virtualized network manager VNFM and a target virtualized network function VNF, including: a processing unit for expanding capacity according to the target a strategy, to determine the container group of the first type to be expanded; according to the target expansion strategy, to determine to expand the virtual machine of the first type before expanding the container group of the first type; a transceiver unit, configured to send the first type of virtual machine to the VNFM Three capacity expansion information, where the third capacity expansion information is used to indicate that the virtual machine of the first type is to be expanded on the target VNF; fourth capacity expansion information is sent to the VNFM, and the fourth capacity expansion information is used to indicate that the virtual machine of the first type is to be expanded on the target VNF. The container group of the first type is created in the virtual machine of the first type. The target VNF is a VNF that adopts the target capacity expansion strategy. The communication device is an entity that implements the target VNF.
在一个可能的实现方式中,所述目标扩容策略还包括:满足扩容所述第一类型的容器组的条件时待扩容所述第一类型的容器组的个数;所述处理单元,具体用于根据所述目标扩容策略,确定待扩容F个所述第一类型的容器组;根据所述目标扩容策略,确定在扩容所述第一类型的容器组之前扩容K个所述第一类型的虚拟机;所述第一类型的容器组为亲和性的,所述第三扩容信息用于指示在所述目标VNF上扩容K个所述第一类型的虚拟机,所述第四扩容信息用于指示在F个所述第一类型的虚拟机中扩容F个所述第一类型的容器组,所述F和所述K均为大于0的整数,所述F个所述第一类型的虚拟机包括所述K个所述第一类型的虚拟机。In a possible implementation manner, the target capacity expansion strategy further includes: the number of the container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met; the processing unit, specifically using In accordance with the target expansion strategy, it is determined that F container groups of the first type are to be expanded; according to the target expansion strategy, it is determined to expand the K container groups of the first type before expanding the container group of the first type. virtual machine; the container group of the first type is affinity, the third capacity expansion information is used to instruct the expansion of K virtual machines of the first type on the target VNF, and the fourth capacity expansion information It is used to instruct F number of container groups of the first type to be expanded in the F virtual machines of the first type, the F and the K are both integers greater than 0, and the F number of the first type The virtual machines include the K virtual machines of the first type.
在一个可能的实现方式中,所述目标扩容策略还包括:满足扩容所述第一类型的容器组的条件时待扩容所述第一类型的容器组的个数;所述处理单元,具体用于根据所述目标扩容策略,确定待扩容F个所述第一类型的容器组;根据所述目标扩容策略,确定在扩容所述第一类型的容器组之前扩容F个所述第一类型的虚拟机,所述第一类型的容器组为非亲和性的;所述第三扩容信息用于指示在所述目标VNF上扩容F个所述第一类型的虚拟机,所述第四扩容信息用于指示在所述F个所述第一类型的虚拟机中扩容F个所述第一类型的容器组。In a possible implementation manner, the target capacity expansion strategy further includes: the number of the container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met; the processing unit, specifically using According to the target expansion strategy, it is determined that F container groups of the first type are to be expanded; according to the target expansion strategy, it is determined to expand the F container groups of the first type before expanding the container group of the first type. virtual machine, the container group of the first type is non-affinity; the third capacity expansion information is used to instruct the expansion of F virtual machines of the first type on the target VNF, and the fourth capacity expansion The information is used to instruct F number of container groups of the first type to be expanded in the F virtual machines of the first type.
在一个可能的实现方式中,所述目标扩容策略还包括:在扩容所述第一类型的容器组时扩容第二类型的容器组;所述第四扩容信息用于指示在所述第一类型的虚拟机中创建所述第一类型的容器组以及创建第二类型的容器组,所述第二类型为与所述第一类型关联的 容器组类型。In a possible implementation manner, the target capacity expansion strategy further includes: when expanding the container group of the first type, expanding the container group of the second type; the fourth capacity expansion information is used to indicate that the container group of the first type is expanded. Create a container group of the first type and create a container group of a second type in the virtual machine of the virtual machine, where the second type is a container group type associated with the first type.
在一个可能的实现方式中,所述通信装置还包括:处理单元,用于获取资源使用状态指标,所述资源使用状态指标表征所述目标VNF中的所述第一类型的容器组的资源使用情况;所述处理单元,具体用于根据所述资源使用状态指标和所述目标扩容策略,确定待扩容所述第一类型的容器组。In a possible implementation manner, the communication apparatus further includes: a processing unit, configured to acquire a resource usage status indicator, where the resource usage status indicator represents resource usage of the container group of the first type in the target VNF situation; the processing unit is specifically configured to determine the container group of the first type to be expanded according to the resource usage state indicator and the target capacity expansion policy.
在一个可能的实现方式中,所述资源使用状态指标包括两个或两个以上资源使用状态采样指标,所述两个或两个以上资源使用状态采样指标表征所述目标VNF中的所述第一类型的容器组在同一时间段内的两个或两个以上时刻的资源使用情况;所述处理单元,具体用于在所述两个或两个以上资源使用状态采样指标均未超过缩容阈值的情况下,确定待缩容所述目标VNF中的所述第一类型的容器组。In a possible implementation manner, the resource usage status indicator includes two or more resource usage status sampling indicators, and the two or more resource usage status sampling indicators represent the first indicator in the target VNF. Resource usage of a type of container group at two or more moments in the same time period; the processing unit is specifically configured to sample indicators of the two or more resource usage states that do not exceed the capacity reduction In the case of the threshold, it is determined that the container group of the first type in the target VNF is to be scaled down.
在一个可能的实现方式中,所述处理单元,还用于通过人机语言MML配置命令配置所述目标扩容策略。In a possible implementation manner, the processing unit is further configured to configure the target capacity expansion strategy through a man-machine language MML configuration command.
关于第九方面或各种可能的实施方式所带来的技术效果,可参考对于第四方面或相应的实现方式的技术效果的介绍。Regarding the technical effects brought by the ninth aspect or various possible implementation manners, reference may be made to the introduction to the technical effects of the fourth aspect or corresponding implementation manners.
第十方面,本申请实施例提供了一种通信装置,应用于包括虚拟化网络管理器VNFM和目标虚拟化网络功能VNF的网络功能虚拟化NFV系统,包括:处理单元,用于根据目标缩容策略,确定待缩容第一类型的容器组;根据所述目标缩容策略,确定在缩容所述第一类型的容器组之后缩容第一类型的虚拟机;收发单元,向所述VNFM发送第五缩容信息,所述第五缩容信息用于指示缩容所述目标VNF中的所述第一类型的容器组;向所述VNFM发送第六缩容信息,所述第六缩容信息用于指示缩容所述目标VNF中的所述第一类型的虚拟机,所述第一类型的容器组承载于所述第一类型的虚拟机。所述目标VNF为采用所述目标缩容策略的VNF。所述通信装置为实现所述目标VNF的实体。In a tenth aspect, an embodiment of the present application provides a communication device, which is applied to a network function virtualized NFV system including a virtualized network manager VNFM and a target virtualized network function VNF, including: a processing unit for reducing capacity according to the target strategy, determine the container group of the first type to be scaled down; according to the target scaling strategy, determine to scale down the virtual machine of the first type after scaling down the container group of the first type; the transceiver unit, to the VNFM Send fifth size reduction information, where the fifth size reduction information is used to instruct to shrink the container group of the first type in the target VNF; send sixth size reduction information to the VNFM, the sixth size reduction information The capacity information is used to instruct to scale down the virtual machine of the first type in the target VNF, and the container group of the first type is hosted on the virtual machine of the first type. The target VNF is a VNF that adopts the target shrinking policy. The communication device is an entity that implements the target VNF.
在一个可能的实现方式中,所述目标缩容策略还包括:满足缩容所述第一类型的容器组的条件时待缩容所述第一类型的容器组的个数;所述处理单元,具体用于根据目标缩容策略,确定待缩容F个第一类型的容器组;根据所述目标缩容策略,确定在缩容所述第一类型的容器组之后缩容H个所述第一类型的虚拟机;所述第五缩容信息用于指示缩容所述目标VNF中的F个所述第一类型的容器组,所述第六缩容信息用于指示缩容所述目标VNF中的H个所述第一类型的虚拟机,所述F和所述H均为大于0的整数,所述H小于或等于所述F。In a possible implementation manner, the target scaling strategy further includes: the number of the first type of container groups to be scaled down when the conditions for scaling down the first type of container groups are met; the processing unit , which is specifically used to determine F container groups of the first type to be scaled down according to the target shrinking strategy; and determine, according to the target shrinking strategy, to shrink the H container groups of the first type after scaling down the first type of container groups. A virtual machine of the first type; the fifth shrinkage information is used to instruct to shrink the F container groups of the first type in the target VNF, and the sixth shrinkage information is used to instruct the shrinkage of the For the H virtual machines of the first type in the target VNF, both the F and the H are integers greater than 0, and the H is less than or equal to the F.
在一个可能的实现方式中,所述目标缩容策略还包括:在缩容所述第一类型的容器组时缩容第二类型的容器组;所述第五缩容信息还用于指示缩容所述目标VNF中的所述第二类型的容器组,所述第二类型为所述第一类型关联的容器组类型,所述第二类型的容器组承载于所述第二类型的虚拟机。In a possible implementation manner, the target shrinking policy further includes: shrinking the container group of the second type when shrinking the container group of the first type; the fifth shrinking information is further used to indicate the shrinking To accommodate the container group of the second type in the target VNF, the second type is the type of the container group associated with the first type, and the container group of the second type is carried on the virtual machine of the second type. machine.
在一个可能的实现方式中,所述通信装置还包括:处理单元,用于获取资源使用状态指标,所述资源使用状态指标表征所述目标VNF中的所述第一类型的容器组的资源使用情况;所述处理单元,具体用于根据所述资源使用状态指标和所述目标缩容策略,确定待缩容所述第一类型的容器组。In a possible implementation manner, the communication apparatus further includes: a processing unit, configured to acquire a resource usage status indicator, where the resource usage status indicator represents resource usage of the container group of the first type in the target VNF situation; the processing unit is specifically configured to determine the container group of the first type to be scaled down according to the resource usage status indicator and the target scale down policy.
在一个可能的实现方式中,所述处理单元,还用于通过人机语言MML配置命令配置 所述目标缩容策略。In a possible implementation manner, the processing unit is further configured to configure the target scaling policy through a man-machine language MML configuration command.
关于第十方面或各种可能的实施方式所带来的技术效果,可参考对于第五方面或相应的实现方式的技术效果的介绍。Regarding the technical effects brought by the tenth aspect or various possible implementation manners, reference may be made to the introduction to the technical effects of the fifth aspect or corresponding implementation manners.
第十一方面,本申请提供一种通信装置,所述通信装置包括处理器,当所述处理器执行存储器中的计算机程序或指令时,如第一方面所述的方法被执行。In an eleventh aspect, the present application provides a communication apparatus, the communication apparatus includes a processor, and when the processor executes a computer program or an instruction in a memory, the method according to the first aspect is performed.
第十二方面,本申请提供一种通信装置,所述通信装置包括处理器,当所述处理器调用存储器中的计算机程序或指令时,如第二方面所述的方法被执行。In a twelfth aspect, the present application provides a communication device, the communication device includes a processor, and when the processor calls a computer program or an instruction in a memory, the method according to the second aspect is executed.
第十三方面,本申请提供一种通信装置,所述通信装置包括处理器,当所述处理器调用存储器中的计算机程序或指令时,如第三方面所述的方法被执行。In a thirteenth aspect, the present application provides a communication device, the communication device includes a processor, and when the processor calls a computer program or an instruction in a memory, the method according to the third aspect is executed.
第十四方面,本申请提供一种通信装置,所述通信装置包括处理器,当所述处理器调用存储器中的计算机程序或指令时,如第四方面所述的方法被执行。In a fourteenth aspect, the present application provides a communication device, the communication device includes a processor, and when the processor calls a computer program or an instruction in a memory, the method according to the fourth aspect is executed.
第十五方面,本申请提供一种通信装置,所述通信装置包括处理器,当所述处理器调用存储器中的计算机程序或指令时,如第五方面所述的方法被执行。In a fifteenth aspect, the present application provides a communication device, the communication device includes a processor, and when the processor calls a computer program or an instruction in a memory, the method according to the fifth aspect is executed.
第十六方面,本申请实施例提供一种通信装置,所述通信装置包括处理器和存储器;所述存储器用于存储计算机执行指令;所述处理器用于执行所述存储器所存储的计算机执行指令,以使所述通信装置执行如上述第一方面以及任一项可能的实现方式的方法。In a sixteenth aspect, an embodiment of the present application provides a communication device, the communication device includes a processor and a memory; the memory is used for storing computer-executed instructions; the processor is used for executing computer-executed instructions stored in the memory , so that the communication apparatus executes the method according to the first aspect and any possible implementation manner described above.
第十七方面,本申请实施例提供一种通信装置,所述通信装置包括处理器和存储器;所述存储器用于存储计算机执行指令;所述处理器用于执行所述存储器所存储的计算机执行指令,以使所述通信装置执行如上述第二方面以及任一项可能的实现方式的方法。In a seventeenth aspect, an embodiment of the present application provides a communication device, the communication device includes a processor and a memory; the memory is used for storing computer-executed instructions; the processor is used for executing computer-executed instructions stored in the memory , so that the communication apparatus executes the method according to the second aspect and any possible implementation manner described above.
第十八方面,本申请实施例提供一种通信装置,所述通信装置包括处理器和存储器;所述存储器用于存储计算机执行指令;所述处理器用于执行所述存储器所存储的计算机执行指令,以使所述通信装置执行如上述第三方面以及任一项可能的实现方式的方法。In an eighteenth aspect, an embodiment of the present application provides a communication device, the communication device includes a processor and a memory; the memory is configured to store computer-executed instructions; the processor is configured to execute computer-executed instructions stored in the memory , so that the communication apparatus executes the method according to the third aspect and any possible implementation manner described above.
第十九方面,本申请实施例提供一种通信装置,所述通信装置包括处理器和存储器;所述存储器用于存储计算机执行指令;所述处理器用于执行所述存储器所存储的计算机执行指令,以使所述通信装置执行如上述第四方面以及任一项可能的实现方式的方法。In a nineteenth aspect, an embodiment of the present application provides a communication device, the communication device includes a processor and a memory; the memory is used for storing computer-executed instructions; the processor is used for executing computer-executed instructions stored in the memory , so that the communication apparatus executes the method according to the fourth aspect and any possible implementation manner described above.
第二十方面,本申请实施例提供一种通信装置,所述通信装置包括处理器和存储器;所述存储器用于存储计算机执行指令;所述处理器用于执行所述存储器所存储的计算机执行指令,以使所述通信装置执行如上述第四方面以及任一项可能的实现方式的方法。In a twentieth aspect, an embodiment of the present application provides a communication device, the communication device includes a processor and a memory; the memory is used for storing computer-executed instructions; the processor is used for executing computer-executed instructions stored in the memory , so that the communication apparatus executes the method according to the fourth aspect and any possible implementation manner described above.
第二十一方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质用于存储指令或计算机程序,当所述指令或所述计算机程序被执行时,使得第一方面所述的方法被实现。In a twenty-first aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store instructions or computer programs, and when the instructions or the computer programs are executed, the first aspect makes the The described method is implemented.
第二十二方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质用于存储指令或计算机程序,当所述指令或所述计算机程序被执行时,使得第二方面所述的方法被实现。In a twenty-second aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store instructions or computer programs, and when the instructions or the computer programs are executed, the second aspect makes the The described method is implemented.
第二十三方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质用于存储指令或计算机程序,当所述指令或所述计算机程序被执行时,使得第三方面所述的方法被实现。In a twenty-third aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store instructions or computer programs, and when the instructions or the computer programs are executed, make the third aspect The described method is implemented.
第二十四方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质用于 存储指令或计算机程序,当所述指令或所述计算机程序被执行时,使得第四方面所述的方法被实现。In a twenty-fourth aspect, the present application provides a computer-readable storage medium, the computer-readable storage medium is used to store instructions or computer programs, when the instructions or the computer programs are executed, the fourth aspect is The described method is implemented.
第二十五方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质用于存储指令或计算机程序,当所述指令或所述计算机程序被执行时,使得第五方面所述的方法被实现。In a twenty-fifth aspect, the present application provides a computer-readable storage medium for storing an instruction or a computer program, when the instruction or the computer program is executed, the computer-readable storage medium of the fifth aspect is executed. The described method is implemented.
第二十六方面,本申请提供一种计算机程序产品,所述计算机程序产品包括指令或计算机程序,当所述指令或所述计算机程序被执行时,使得第一方面所述的方法被实现。In a twenty-sixth aspect, the present application provides a computer program product, the computer program product comprising instructions or a computer program, when the instructions or the computer program are executed, the method of the first aspect is implemented.
第二十七方面,本申请提供一种计算机程序产品,所述计算机程序产品包括指令或计算机程序,当所述指令或所述计算机程序被执行时,使得第二方面所述的方法被实现。In a twenty-seventh aspect, the present application provides a computer program product, the computer program product comprising instructions or a computer program, when the instructions or the computer program are executed, the method of the second aspect is implemented.
第二十八方面,本申请提供一种计算机程序产品,所述计算机程序产品包括指令或计算机程序,当所述指令或所述计算机程序被执行时,使得第三方面所述的方法被实现。In a twenty-eighth aspect, the present application provides a computer program product, the computer program product comprising instructions or a computer program, when the instructions or the computer program are executed, the method of the third aspect is implemented.
第二十九方面,本申请提供一种计算机程序产品,所述计算机程序产品包括指令或计算机程序,当所述指令或所述计算机程序被执行时,使得第四方面所述的方法被实现。In a twenty-ninth aspect, the present application provides a computer program product, the computer program product comprising instructions or a computer program, when the instructions or the computer program are executed, the method of the fourth aspect is implemented.
第三十方面,本申请提供一种计算机程序产品,所述计算机程序产品包括指令或计算机程序,当所述指令或所述计算机程序被执行时,使得第五方面所述的方法被实现。In a thirtieth aspect, the present application provides a computer program product, the computer program product comprising instructions or a computer program, when the instructions or the computer program are executed, the method of the fifth aspect is implemented.
附图说明Description of drawings
图1为一种NFV参考架构的示意图;FIG. 1 is a schematic diagram of an NFV reference architecture;
图2为本申请实施例提供的一种自动扩容方法流程图;FIG. 2 is a flowchart of an automatic capacity expansion method provided by an embodiment of the present application;
图3为本申请实施例提供的另一种自动扩容方法流程图;3 is a flowchart of another automatic capacity expansion method provided by an embodiment of the present application;
图4为本申请实施例提供的一种自动扩容方法交互流程;FIG. 4 is an interaction flow of an automatic capacity expansion method provided by an embodiment of the present application;
图5为本申请实施例提供的一种自动缩容方法流程图;FIG. 5 is a flowchart of an automatic shrinking method provided by an embodiment of the present application;
图6为本申请实施例提供的一种自动缩容方法交互流程;FIG. 6 is an interaction flow of an automatic scaling method provided by an embodiment of the present application;
图7为本申请实施例提供的另一种自动扩容方法流程图;FIG. 7 is a flowchart of another automatic capacity expansion method provided by an embodiment of the present application;
图8为本申请实施例提供的一种自动扩容方法交互流程;FIG. 8 is an interaction flow of an automatic capacity expansion method provided by an embodiment of the present application;
图9为本申请实施例提供的另一种自动缩容方法流程图;FIG. 9 is a flowchart of another automatic shrinking method provided by an embodiment of the present application;
图10为本申请实施例提供的一种自动缩容方法交互流程;FIG. 10 is an interaction process of an automatic scaling method provided by an embodiment of the present application;
图11为本申请实施例提供的一种通信装置的结构示意图;FIG. 11 is a schematic structural diagram of a communication device according to an embodiment of the present application;
图12为本申请实施例提供的另一种通信装置的结构示意图;FIG. 12 is a schematic structural diagram of another communication apparatus provided by an embodiment of the present application;
图13为本申请实施例提供的另一种通信装置的结构示意图;FIG. 13 is a schematic structural diagram of another communication device provided by an embodiment of the present application;
图14为本申请实施例提供的另一种通信装置的结构示意图;FIG. 14 is a schematic structural diagram of another communication apparatus provided by an embodiment of the present application;
图15为本申请实施例提供的另一种通信装置的结构示意图;FIG. 15 is a schematic structural diagram of another communication apparatus provided by an embodiment of the present application;
图16为本申请实施例提供的另一种通信装置的结构示意图。FIG. 16 is a schematic structural diagram of another communication apparatus provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图对本申请实施例进行描述。The embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
本申请的说明书、权利要求书及附图中的术语“第一”和“第二”等是用于区别不同对象, 而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first" and "second" in the description, claims and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.
应当理解,在本申请中,“至少一个(项)”是指一个或者多个,“多个”是指两个或两个以上,“至少两个(项)”是指两个或三个及三个以上,“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:只存在A,只存在B以及同时存在A和B三种情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,“a和b”,“a和c”,“b和c”,或“a和b和c”,其中a,b,c可以是单个,也可以是多个。It should be understood that in this application, "at least one (item)" refers to one or more, "multiple" refers to two or more, and "at least two (item)" refers to two or three And three or more, "and/or" is used to describe the association relationship of related objects, indicating that three kinds of relationships can exist, for example, "A and/or B" can mean: only A exists, only B exists, and A exists at the same time and B three cases, where A, B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (a) of a, b or c, can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c" ", where a, b, c can be single or multiple.
如背景技术所述,当前需要研究适用于电信云的资源利用率较高的自动扩缩容方案。本申请提供了资源利用率较高的自动扩容方案和自动缩容方案。本申请中,可将容器组(Pod)作为业务扩缩容的最小单位,也可以将容器(container)作为业务扩缩容的最小单位,为每个业务定义需要支持的资源使用状态指标,以及相关的扩缩容策略。一个Pod可包含一个或一个以上的容器,且具有共享存储/网络的能力,以及运行容器的规范。本申请提供的自动扩容方案可实现VM和容器组(Pod)的联动扩容。VM和容器组的联动扩容是指将VM的自动扩容和容器的自动扩容作为一个整体实现,而不是分开进行VM的自动扩容和容器的自动扩容。举例来说,在待扩容第一类型的容器组时,先扩容第一类型的虚拟机,再在扩容的第一类型的虚拟机中扩容出第一类型的容器组。该举例可理解为第一类型的容器组和第一类型的虚拟机的联动扩容。本申请提供的自动扩容方案中,在确定待扩容容器组之后才扩容用于承载待扩容的容器组的虚拟机,避免提前扩容VM而造成的资源浪费,能够提高资源利用率。本申请提供的自动缩容方案可实现VM和容器组的联动缩容。VM和容器组的联动扩容是指将VM的自动缩容和容器的自动缩容作为一个整体实现,而不是分开进行VM的自动缩容和容器的自动缩容。举例来说,第一类型的容器组1部署于第一类型的虚拟机1中,在缩容第一类型的容器组1之后,缩容的第一类型的虚拟机1。该举例可理解为第一类型的容器组1和第一类型的虚拟机1的联动扩容。本申请提供的自动缩容方案中,在缩容容器组之后缩容未部署业务容器组的虚拟机,防止存在未部署任何业务容器组的VM而造成的资源浪费,能够提高资源利用率。As described in the background art, it is currently necessary to research an automatic capacity expansion and contraction solution with high resource utilization suitable for telecom cloud. The present application provides an automatic capacity expansion scheme and an automatic capacity reduction scheme with high resource utilization. In this application, a container group (Pod) can be used as the smallest unit of business expansion and contraction, or a container can be used as the smallest unit of business expansion and contraction, and the resource usage status indicators that need to be supported are defined for each business, and Related scaling policies. A Pod can contain one or more containers, and has the ability to share storage/networking, as well as specifications for running containers. The automatic capacity expansion solution provided in this application can realize the linkage capacity expansion of the VM and the container group (Pod). The linkage expansion of the VM and the container group refers to the automatic expansion of the VM and the automatic expansion of the container as a whole, rather than the automatic expansion of the VM and the automatic expansion of the container. For example, when the container group of the first type is to be expanded, the virtual machine of the first type is first expanded, and then the container group of the first type is expanded from the expanded virtual machine of the first type. This example can be understood as the linkage expansion of the container group of the first type and the virtual machine of the first type. In the automatic capacity expansion solution provided by the present application, the virtual machine used to carry the container group to be expanded is expanded after the container group to be expanded is determined, so as to avoid resource waste caused by expanding the VM in advance and improve resource utilization. The automatic scaling solution provided by this application can realize the linkage scaling of the VM and the container group. The linkage expansion of the VM and the container group refers to the realization of the automatic shrinking of the VM and the automatic shrinking of the container as a whole, rather than the automatic shrinking of the VM and the automatic shrinking of the container. For example, the container group 1 of the first type is deployed in the virtual machine 1 of the first type. After the container group 1 of the first type is scaled down, the virtual machine 1 of the first type is scaled down. This example can be understood as the linkage expansion of the container group 1 of the first type and the virtual machine 1 of the first type. In the automatic scaling solution provided by the present application, the virtual machines without deployed service container groups are scaled down after the container groups are scaled down, so as to prevent resource waste caused by VMs without any deployed service container groups, and improve resource utilization.
本申请提供的自动扩容方案和自动缩容方案适用于欧洲电信标准化协会(european telecommunications standards institute,ETSI)提出的NFV参考架构。本申请提供的自动扩容方案可实现VM和容器组的自动扩容(对应于联动扩容),使得VNF在运行过程中可动态增加业务容量,充分利用资源。本申请提供的自动缩容方案可实现VM和容器组的自动缩容(对应于联动缩容),使得VNF在运行过程中可动态减少业务容量,避免资源浪费。由于本申请提供的自动扩容方案和自动缩容方案均涉及NFV参考架构中的多个网元。下面先介绍NFV参考架构。The automatic capacity expansion solution and the automatic capacity reduction solution provided in this application are applicable to the NFV reference architecture proposed by the European Telecommunications Standards Institute (european telecommunications standards institute, ETSI). The automatic capacity expansion solution provided by this application can realize the automatic capacity expansion of VMs and container groups (corresponding to the linkage expansion), so that the VNF can dynamically increase the service capacity and make full use of resources during the operation process. The automatic scaling solution provided by the present application can realize the automatic scaling of VMs and container groups (corresponding to linked scaling), so that the VNF can dynamically reduce service capacity and avoid resource waste during the running process. Because both the automatic capacity expansion solution and the automatic capacity reduction solution provided in this application involve multiple network elements in the NFV reference architecture. The following is an introduction to the NFV reference architecture.
图1为一种NFV参考架构的示意图。如图1所示,NFV参考架构主要包括:NFV基 础设施(NFV infrastructure,NFVI)、虚拟网络功能(virtualized network function,VNF)、NFV管理和编排(NFV management and orchestration,MANO)3个主要核心工作域,各主要功能模块的具体说明如下。FIG. 1 is a schematic diagram of an NFV reference architecture. As shown in Figure 1, the NFV reference architecture mainly includes: NFV infrastructure (NFV infrastructure, NFVI), virtualized network function (virtualized network function, VNF), NFV management and orchestration (NFV management and orchestration, MANO) 3 main core tasks The specific description of each main function module is as follows.
(1)NFVI(1) NFVI
NFVI为VNF提供虚拟化的资源,涵盖网络基础环境中的所有硬件和软件资源,NFVI分为两部分:构成基础设施的硬件资源及虚拟化实例。NFVI包括了虚拟机管理软件和硬件,是每个服务器上的虚拟计算、虚拟存储、虚拟网络能力的直接提供者,从逻辑上将资源划分并提供给VNF使用,从而将软硬件解耦。NFVI的主要功能是为VNF的部署、管理和执行提供资源池,NFVI需要将物理计算、存储、交换资源虚拟化成虚拟的计算、存储、交换资源池。NFVI可以跨地域部署。NFVI provides virtualized resources for VNF, covering all hardware and software resources in the basic network environment. NFVI is divided into two parts: hardware resources that constitute the infrastructure and virtualized instances. NFVI includes virtual machine management software and hardware. It is the direct provider of virtual computing, virtual storage, and virtual network capabilities on each server. It logically divides and provides resources to VNFs, thereby decoupling hardware and software. The main function of NFVI is to provide resource pools for VNF deployment, management and execution. NFVI needs to virtualize physical computing, storage, and switching resources into virtual computing, storage, and switching resource pools. NFVI can be deployed across regions.
(2)VNF和网元管理(Element Management,EM)(2) VNF and network element management (Element Management, EM)
VNF即虚拟化网络功能模块,是NFV网络功能概念在逻辑上的结果。VNF由在NFVI之上运行软件的VM组成,如存储、通用硬件或基础云设施。每个物理网元通过虚拟化技术映射为一个虚拟网元VNF,其中每一个或多个虚拟化的网络功能模块组成了VNF组件,该组件的实例可被1:1地映射到单个虚拟化容器中。VNF所需资源需要分解为虚拟的计算/存储/交换资源,由NFVI来承载。一个VNF可以部署在一个或多个VM上。VNF为软件化后的网元,部署在虚拟机上,其功能与接口和非虚拟化时保持一致。EM主要完成传网元管理功能及虚拟化环境下的新增管理功能。VNF is the virtualized network function module, which is the logical result of the NFV network function concept. VNFs consist of VMs running software on top of NFVI, such as storage, general purpose hardware or infrastructure cloud infrastructure. Each physical network element is mapped to a virtual network element VNF through virtualization technology, in which each or more virtualized network function modules form a VNF component, and an instance of this component can be mapped 1:1 to a single virtualized container middle. The resources required by VNF need to be decomposed into virtual computing/storage/exchange resources, which are carried by NFVI. A VNF can be deployed on one or more VMs. A VNF is a software-based network element, deployed on a virtual machine, and its functions are consistent with interfaces and non-virtualized ones. EM mainly completes the management functions of network elements and new management functions in the virtualized environment.
(3)NFV管理和编排系统(management and orchestration,MANO)(3) NFV management and orchestration system (management and orchestration, MANO)
NFV MANO包含三个逻辑组件角色:NFV编排器(NFV orchestrator,NFVO)、VNF管理器(VNFmanager,VNFM)和虚拟设施管理器(virtualised infrastructure manager,VIM)。三个逻辑组件分别服务于三个层次S层、P层、I层,并管理各层看到的对象。NFV MANO contains three logical component roles: NFV orchestrator (NFV orchestrator, NFVO), VNF manager (VNFmanager, VNFM) and virtual facility manager (virtualised infrastructure manager, VIM). The three logical components serve the three layers S layer, P layer and I layer respectively, and manage the objects seen by each layer.
VIM:负责I层,对基础资源(VM、网络、存储)进行管理。它看到的对象就是VM或者容器(container)及其镜像、网络接口。这一层的实现实例是Openstack/Kubernetes。OpenStack是一个开源的云计算管理平台项目,是一系列软件开源项目的组合。Kubernetes是谷歌开源的一个容器编排引擎,它支持自动化部署、大规模可伸缩、应用容器化管理。VIM主要负责基础设施层硬件资源、虚拟化资源的管理,监控和故障上报,面向上层VNFM和NFVO提供虚拟化资源池。VIM可用来管理NFVI,可控制VNF的虚拟资源的分配,功能包括了硬件资源管理与监控、虚拟化资源管理与监控以及硬件资源与虚拟化资源的故障管理。VIM常常是虚拟层的一部分,并非独立的方案,为底层虚拟化基础设施(虚拟主机、虚拟存储和虚拟网络)提供了可视化管理和资源管理。VIM: Responsible for the I layer and manage basic resources (VM, network, storage). The objects it sees are VMs or containers and their images and network interfaces. The implementation example of this layer is Openstack/Kubernetes. OpenStack is an open source cloud computing management platform project, which is a combination of a series of software open source projects. Kubernetes is a container orchestration engine open sourced by Google, which supports automated deployment, large-scale scalability, and application containerized management. VIM is mainly responsible for the management, monitoring and fault reporting of hardware resources and virtualized resources at the infrastructure layer, and provides virtualized resource pools for upper-layer VNFM and NFVO. VIM can be used to manage NFVI and control the allocation of virtual resources of VNF. The functions include hardware resource management and monitoring, virtualized resource management and monitoring, and hardware resource and virtualized resource fault management. VIM is often part of the virtualization layer, not a standalone solution, providing visual management and resource management for the underlying virtualization infrastructure (virtual hosts, virtual storage, and virtual networks).
VNFM:负责P层,VNF的生命周期管理(VNF的部署、扩容、缩容、下线等),它看到的是一个一个的VNF网元,能感知到每个VNF的特征,如vRG、vRG_VM、vNAT等,并通过虚拟网络功能描述(virtualised network function descriptor,VNFD)文件来描述每个特定网元的特征参数。VNFM: Responsible for the P layer, VNF life cycle management (VNF deployment, expansion, reduction, offline, etc.), it sees one VNF network element, and can perceive the characteristics of each VNF, such as vRG, vRG_VM, vNAT, etc., and describe the characteristic parameters of each specific network element through a virtualised network function descriptor (VNFD) file.
NFVO:负责S层,把网络当一种能力对外提供网络业务的生命周期管理(网络业务的部署、扩容、缩容、下线)。NFVO用以管理网络业务生命周期,并协调VNF生命周期NFVI各类资源的管理,对VNF和NFVI所提供的端到端网络服务进行管理、编排以及自 动化操作,以此确保所需各类资源与连接的优化配置。一般由一个编排器(orchestrator)对NFV服务实现进行总体的管理。NFVO: Responsible for the S layer, treating the network as a capability to provide life cycle management of network services (deployment, expansion, reduction, and offline of network services). NFVO is used to manage the life cycle of network services, coordinate the management of various resources of NFVI in the life cycle of VNF, and manage, orchestrate and automate the end-to-end network services provided by VNF and NFVI, so as to ensure that the various resources required are compatible with each other. Optimized configuration of connections. Generally, an orchestrator (orchestrator) generally manages the NFV service implementation.
此外,运营商运营支撑系统(operations support systemsand business support system,OSS/BSS)包括计费、结算、账务、客服、营业等功能;其中,OSS为传统的网络管理系统;BSS为传统的业务支撑系统。In addition, the operator's operation support system (operations support systems and business support system, OSS/BSS) includes billing, settlement, accounting, customer service, business and other functions; among them, OSS is the traditional network management system; BSS is the traditional business support system.
下面结合附图介绍本申请提供的自动扩容方案以及自动缩容方案。本申请提供了由VNFM发起的自动扩容方案以及自动缩容方案,以及由VNF发起的自动扩容方案以及自动缩容方案。在由VNFM发起的自动扩容方案中,VNFM从VNFD中获取扩容策略,并按照扩容策略实现容器组和虚拟机的联动扩容。同理,在由VNFM发起的自动缩容方案中,VNFM从VNFD中获取缩容策略,并按照缩容策略实现容器组和虚拟机的联动缩容。在由VNF发起的自动扩容方案中,VNF按照扩容策略实现容器组和虚拟机的联动扩容。同理,在由VNF发起的自动缩容方案中,VNF按照缩容策略实现容器组和虚拟机的联动缩容。下面先介绍由VNFM发起的自动扩容方案。The automatic capacity expansion scheme and the automatic capacity reduction scheme provided by the present application are described below with reference to the accompanying drawings. This application provides an automatic capacity expansion scheme and an automatic capacity reduction scheme initiated by the VNFM, as well as an automatic capacity expansion scheme and an automatic capacity reduction scheme initiated by the VNF. In the automatic capacity expansion scheme initiated by the VNFM, the VNFM obtains the capacity expansion policy from the VNFD, and implements the linked capacity expansion of the container group and the virtual machine according to the capacity expansion policy. Similarly, in the automatic scaling scheme initiated by the VNFM, the VNFM obtains the scaling policy from the VNFD, and implements the coordinated scaling down of the container group and the virtual machine according to the scaling policy. In the automatic expansion scheme initiated by the VNF, the VNF realizes the linkage expansion of the container group and the virtual machine according to the expansion strategy. Similarly, in the automatic scaling scheme initiated by the VNF, the VNF realizes the coordinated scaling down of the container group and the virtual machine according to the scaling policy. The following first introduces the automatic capacity expansion scheme initiated by VNFM.
图2为本申请实施例提供的一种自动扩容方法流程图。图2中的方法流程应用于包括VNFM和VNF的NFV系统,例如NFV参考架构。如图2所示,该方法包括:FIG. 2 is a flowchart of an automatic capacity expansion method provided by an embodiment of the present application. The method flow in Figure 2 is applied to an NFV system including VNFM and VNF, such as the NFV reference architecture. As shown in Figure 2, the method includes:
201、VNFM从VNFD中获取目标扩容策略。201. The VNFM obtains the target capacity expansion policy from the VNFD.
上述VNFD中可定义有一种或多种扩容策略,每种扩容策略可对应于一种类型的容器组。如果VNFD中定义有多条扩容策略,说明VNFD支持多种类型的容器组的自动扩容。VNFD中定义的任意扩容策略为VNFM可支持的扩容策略。在一些实施例中,用户可以根据业务场景需求,对初始VNFD中定义的一种或多种扩容策略进行调整,得到所需的扩容策略(即VNFD中定义的扩容策略)。也就是说,用户可对预先配置的初始VNFD进行修改以得到所需的VNFD,该VNFD中定义的扩容策略可理解为该用户配置的扩容策略。上述VNFD可以关联一个或多个VNF,例如VNFD关联有目标VNF。VNFM从VNFD中获取的目标扩容策略可理解为该VNFD关联的一个或多个VNF采用的扩容策略,即该一个或多个VNF被配置的扩容策略。举例来说,VNFM可从一个或多个VNFD中获取扩容策略,每个VNFD关联一个或多个VNF。VNFM可从任意VNF关联的VNFD获取该VNF采用的扩容策略。One or more expansion strategies may be defined in the above VNFD, and each expansion strategy may correspond to a type of container group. If there are multiple expansion policies defined in the VNFD, it means that the VNFD supports the automatic expansion of multiple types of container groups. Any expansion strategy defined in the VNFD is the expansion strategy supported by the VNFM. In some embodiments, the user can adjust one or more capacity expansion policies defined in the initial VNFD according to business scenario requirements to obtain the required capacity expansion policy (ie, the capacity expansion policy defined in the VNFD). That is, the user can modify the pre-configured initial VNFD to obtain the required VNFD, and the capacity expansion policy defined in the VNFD can be understood as the capacity expansion policy configured by the user. The above VNFD may be associated with one or more VNFs, for example, the VNFD is associated with a target VNF. The target capacity expansion policy obtained by the VNFM from the VNFD may be understood as the capacity expansion policy adopted by one or more VNFs associated with the VNFD, that is, the configured capacity expansion policy of the one or more VNFs. For example, a VNFM can obtain expansion policies from one or more VNFDs, and each VNFD is associated with one or more VNFs. The VNFM can obtain the expansion policy adopted by the VNF from the VNFD associated with any VNF.
上述目标扩容策略可包括:扩容第一类型的容器组需要满足的条件,以及在扩容第一类型的容器组之前扩容第一类型的虚拟机。上述第一类型的容器组承载于上述第一类型的虚拟机。上述目标扩容策略可配置有第一容器组类型和第一虚拟机类型的关联关系。其中,第一容器组类型为第一类型的容器组对应的容器组类型,第一虚拟机类型为第一类型的虚拟机对应的虚拟机类型。也就是说,上述第一类型(即第一容器组类型)的容器组和上述第一类型(第一虚拟机类型)的虚拟机的相关联。第一类型的容器组可以为任意类型的容器组。The above-mentioned target capacity expansion policy may include: conditions that need to be satisfied for expanding the container group of the first type, and expanding the virtual machine of the first type before expanding the container group of the first type. The container group of the first type is hosted on the virtual machine of the first type. The above-mentioned target capacity expansion policy may be configured with an association relationship between the first container group type and the first virtual machine type. The first container group type is a container group type corresponding to the first type of container group, and the first virtual machine type is a virtual machine type corresponding to the first type of virtual machine. That is, the container group of the first type (ie, the first container group type) is associated with the virtual machine of the first type (the first virtual machine type). The first type of container group can be any type of container group.
202、VNFM根据目标扩容策略,确定待在目标VNF上扩容第一类型的容器组。202. The VNFM determines, according to the target capacity expansion policy, the container group of the first type to be expanded on the target VNF.
上述目标VNF为采用上述目标扩容策略的VNF。上述目标VNF可以为上述VNFD关联的一个VNF。VNFM可在目标VNF满足扩容第一类型的容器组的条件时,确定待在目标VNF上扩容第一类型的容器组。The above target VNF is a VNF that adopts the above target capacity expansion strategy. The above target VNF may be a VNF associated with the above VNFD. The VNFM may determine to expand the container group of the first type on the target VNF when the target VNF meets the conditions for expanding the container group of the first type.
步骤202一种可能的实现方式可以是:VNFM根据来自目标VNF的资源使用状态指标以及目标扩容策略,确定待在目标VNF上扩容第一类型的容器组。资源使用状态指标可表征目标VNF中的第一类型的容器组的资源使用情况。示例性的,上述资源使用状态指标包括两个或两个以上资源使用状态采样指标,上述两个或两个以上资源使用状态采样指标表征上述目标VNF中的上述第一类型的容器组在同一时间段内的两个或两个以上时刻的资源使用情况,两个或两个以上资源使用状态采样指标与两个或两个以上时刻一一对应;上述VNFM根据上述资源使用状态指标和上述目标扩容策略,确定待在上述目标VNF上扩容上述第一类型的容器组可以是:上述VNFM在上述两个或两个以上上述资源使用状态采样指标均超过扩容阈值(例如60%)的情况下,确定待在上述目标VNF上扩容上述第一类型的容器组。A possible implementation manner of step 202 may be: the VNFM determines the container group of the first type to be expanded on the target VNF according to the resource usage status indicator from the target VNF and the target capacity expansion policy. The resource usage status indicator can represent the resource usage of the first type of container group in the target VNF. Exemplarily, the resource usage status indicator includes two or more resource usage status sampling indicators, and the two or more resource usage status sampling indicators represent that the container group of the first type in the target VNF is at the same time. Resource usage at two or more moments in the segment, two or more resource usage status sampling indicators are in one-to-one correspondence with two or more moments; the above VNFM is expanded according to the above resource usage status indicators and the above target The strategy to determine that the container group of the first type to be expanded on the above-mentioned target VNF may be: the above-mentioned VNFM determines that the above-mentioned two or more above-mentioned resource usage status sampling indicators exceed the expansion threshold (for example, 60%). The container group of the first type is to be expanded on the target VNF.
在一些实施例中,对于一个容器组只部署一个容器的业务节点,VNF(例如目标VNF)可直接获取容器的关键绩效指标(key performance indicator,KPI)值,VNF汇总所有同类型的容器组的KPI值后,取这些KPI值的平均值作为资源使用状态采样指标上报给VNFM。可理解,若一个容器组只部署一个容器,则该容器的KPI值即为该容器组的KPI值。容器的KPI值可以是容器对应的CPU使用率、内存使用率等任一项表征该容器的资源使用情况的参数,也可以是利用CPU使用率、内存使用率等中的多项计算得到的表征该容器的资源使用情况的参数。在一些实施例中,对于一个容器组部署多个容器的业务节点,VNF需要选取该容器组内各容器的KPI值中最大的KPI值作为该容器组的KPI值,VNF汇总所有同类型的容器组的KPI值后,取这些KPI值的平均值作为该类型的容器组的资源使用状态采样指标上报给VNFM。应理解,VNF可采用相同的方式计算任意部署有多个容器的容器组的KPI值。在实际应用中,VNF可周期性(例如每10s)向VNFM上报一个各类型的容器组的资源使用状态采样指标。In some embodiments, for a service node where only one container is deployed in a container group, the VNF (for example, the target VNF) can directly obtain the key performance indicator (KPI) value of the container, and the VNF summarizes the data of all container groups of the same type. After the KPI values, the average value of these KPI values is taken as the resource usage status sampling indicator and reported to the VNFM. Understandably, if only one container is deployed in a container group, the KPI value of the container is the KPI value of the container group. The KPI value of a container can be any parameter that characterizes the resource usage of the container, such as the CPU usage rate and memory usage rate corresponding to the container, or it can be a representation obtained by using multiple calculations in the CPU usage rate and memory usage rate. Parameters for the resource usage of this container. In some embodiments, for a service node where multiple containers are deployed in a container group, the VNF needs to select the largest KPI value among the KPI values of each container in the container group as the KPI value of the container group, and the VNF summarizes all containers of the same type After obtaining the KPI values of the group, the average value of these KPI values is taken as the resource usage status sampling indicator of the container group of this type and reported to the VNFM. It should be understood that the VNF can calculate the KPI value of any container group in which multiple containers are deployed in the same manner. In practical applications, the VNF may periodically (for example, every 10s) report a resource usage status sampling indicator of each type of container group to the VNFM.
扩容第一类型的容器组需要满足的条件可以包括:第一类型的容器组的连续多个(例如30)资源使用状态采样指标均超过扩容阈值(例如60%)。上述目标扩容策略还可包括:满足扩容上述第一类型的容器组的条件时待扩容F(对应于扩容步长)个第一类型的容器组。因此,在满足扩容第一类型的容器组的条件时,VNFM确定待在目标VNF中扩容F个第一类型的容器组。在一些实施例中,VNFM将来自目标VNF的两个或两个资源使用状态采样指标与扩容阈值进行对比,并根据其他监控配置判断是否需要发起扩容。举例来说,目标VNF每10s进行一次采样,并上报采样得到的一个资源使用状态采样指标,连续采样30次。若目标VNF连续30次上报的第一类型的容器组的资源使用状态采样指标均超过扩容阈值(例如60%),则确定待扩容目标VNF中的该第一类型的容器组。The conditions that need to be satisfied for expanding the container group of the first type may include: consecutive multiple (eg 30) resource usage status sampling indicators of the container group of the first type all exceed the capacity expansion threshold (eg 60%). The above target capacity expansion strategy may further include: F (corresponding to the capacity expansion step) container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met. Therefore, when the conditions for expanding the container group of the first type are met, the VNFM determines that F container groups of the first type are to be expanded in the target VNF. In some embodiments, the VNFM compares two or two resource usage status sampling indicators from the target VNF with the capacity expansion threshold, and determines whether to initiate capacity expansion according to other monitoring configurations. For example, the target VNF is sampled every 10s, and a resource usage status sampling indicator obtained by sampling is reported, and the samples are continuously sampled 30 times. If the resource usage status sampling indicators of the first type container group reported by the target VNF for 30 consecutive times all exceed the capacity expansion threshold (for example, 60%), the container group of the first type in the target VNF to be expanded is determined.
203、VNFM根据目标扩容策略,向VIM发送第一扩容信息。203. The VNFM sends the first capacity expansion information to the VIM according to the target capacity expansion policy.
上述第一扩容信息用于指示在目标VNF中创建上述第一类型的虚拟机。步骤203一种可能的实现方式可以是:VNFM根据目标扩容策略,确定待在目标VNF上扩容第一类型的虚拟机;VNFM向VIM发送第一扩容信息。The above-mentioned first capacity expansion information is used to instruct to create the above-mentioned first type of virtual machine in the target VNF. A possible implementation manner of step 203 may be: the VNFM determines the virtual machine of the first type to be expanded on the target VNF according to the target capacity expansion policy; the VNFM sends the first capacity expansion information to the VIM.
204、VNFM发送第二扩容信息。204. The VNFM sends the second capacity expansion information.
上述第二扩容信息用于指示在上述第一类型的虚拟机中创建上述第一类型的容器组。步骤204一种可能的实现方式可以是:VNFM向平台即服务(platform as a service,PAAS) 发送第二扩容信息。PAAS负责管理容器。PAAS是云计算的重要组成部分,提供运算平台与解决方案服务。在云计算的典型层级中,PAAS层介于软件即服务与基础设施即服务之间。PAAS提供用户将云端基础设施部署与创建至客户端,或者借此获得使用编程语言、程序库与服务。用户不需要管理与控制云端基础设施(包含网络、服务器、操作系统或存储),但需要控制上层的应用程序部署与应用托管的环境。PAAS将软件研发的平台作为一种服务,以软件即服务模式交付给用户。PAAS提供软件部署平台(runtime),抽象掉了硬件和操作系统细节,可以无缝地扩展(scaling)。The above-mentioned second capacity expansion information is used to indicate that the above-mentioned first type of container group is created in the above-mentioned first type of virtual machine. A possible implementation manner of step 204 may be: the VNFM sends the second capacity expansion information to a platform as a service (platform as a service, PAAS). PAAS is responsible for managing containers. PAAS is an important part of cloud computing, providing computing platforms and solution services. In a typical layer of cloud computing, the PAAS layer is between software-as-a-service and infrastructure-as-a-service. PAAS allows users to deploy and create cloud infrastructure to clients, or access programming languages, libraries and services. Users do not need to manage and control cloud infrastructure (including network, server, operating system or storage), but need to control the upper-layer application deployment and application hosting environment. PAAS takes the software development platform as a service and delivers it to users in a software-as-a-service model. PAAS provides a software deployment platform (runtime) that abstracts hardware and operating system details and can be seamlessly extended (scaling).
在一个可能的实现方式中,上述目标扩容策略还包括:在扩容上述第一类型的容器组时扩容第二类型的容器组;上述第二扩容信息还用于指示在上述第一类型的虚拟机中创建上述第二类型的容器组。也就是说,上述第二扩容信息指示在上述第一类型的虚拟机中创建第一类型的容器组和上述第二类型的容器组,这样可实现联动扩容容器组。上述第一类型的容器组和上述第二类型的容器组可支持同一业务且可部署于同一虚拟机。在该实现方式中,在扩容第一类型的容器组时扩容第二类型的容器组,可以充分利用虚拟机的资源。In a possible implementation manner, the target capacity expansion strategy further includes: when expanding the container group of the first type, the container group of the second type is expanded; the second capacity expansion information is further used to indicate that the virtual machine of the first type is Create a container group of the second type above. That is to say, the second capacity expansion information indicates that a container group of the first type and a container group of the second type are created in the virtual machine of the first type, so that the container group can be expanded in linkage. The container group of the first type and the container group of the second type can support the same service and can be deployed on the same virtual machine. In this implementation manner, when expanding the container group of the first type, the container group of the second type can be expanded, and the resources of the virtual machine can be fully utilized.
图2介绍了VNFM在目标VNF上扩容第一类型的容器组时执行的方法流程。应理解,VNFM可执行类似的方法以便实现在任意VNF上扩容任意类型的容器组。Fig. 2 describes the method flow performed by the VNFM when expanding the container group of the first type on the target VNF. It should be understood that a VNFM can perform a similar approach in order to achieve scaling of any type of container group on any VNF.
本申请实施例中,VNFM在根据目标扩容策略,确定待扩容第一类型的容器组之后,先扩容第一类型的虚拟机,以便将扩容的第一类型的虚拟机作为运行第一类型的容器组的载体。然后,在第一类型的虚拟机中创建第一类型的容器组。在确定待扩容第一类型的容器组之后才会扩容第一类型的虚拟机,不需要提前扩容第一类型的虚拟机,能够提高资源利用率。In the embodiment of the present application, after determining the container group of the first type to be expanded according to the target expansion strategy, the VNFM first expands the virtual machine of the first type, so that the expanded virtual machine of the first type is used as the container running the first type. Set of vectors. Then, a container group of the first type is created in the virtual machine of the first type. The first type of virtual machine will be expanded only after the container group of the first type to be expanded is determined, and the first type of virtual machine does not need to be expanded in advance, which can improve resource utilization.
图3为本申请实施例提供的另一种自动扩容方法流程图。图3中的方法流程是对图2中的方法流程的细化和完善。如图3所示,该方法包括:FIG. 3 is a flowchart of another automatic capacity expansion method provided by an embodiment of the present application. The method flow in FIG. 3 is a refinement and improvement of the method flow in FIG. 2 . As shown in Figure 3, the method includes:
301、VNFM从VNFD中获取目标扩容策略。301. The VNFM obtains the target capacity expansion policy from the VNFD.
步骤301的实现方式可与步骤201的实现方式相同。The implementation manner of step 301 may be the same as that of step 201 .
302、VNFM接收来自目标VNF的资源使用状态指标。302. The VNFM receives the resource usage status indicator from the target VNF.
上述资源使用状态指标表征上述目标VNF中的上述第一类型的容器组的资源使用情况。资源使用状态指标可包括两个或两个以上资源使用状态采样指标。在一些实施例中,VNFM可周期性向目标VNF查询第一类型的容器组的资源使用状态采样指标,并接收目标VNF上报的第一类型的容器组的资源使用状态采样指标。目标VNF可与步骤301中的VNFD相关联。The above-mentioned resource usage status indicator represents the resource usage situation of the above-mentioned container group of the above-mentioned first type in the above-mentioned target VNF. The resource usage status indicators may include two or more resource usage status sampling indicators. In some embodiments, the VNFM may periodically query the target VNF for the resource usage status sampling indicator of the container group of the first type, and receive the resource usage status sampling indicator of the first type container group reported by the target VNF. The target VNF may be associated with the VNFD in step 301 .
303、VNFM根据来自目标VNF的资源使用状态指标以及目标扩容策略,确定待在目标VNF上扩容F个第一类型的容器组。303. The VNFM determines F first type container groups to be expanded on the target VNF according to the resource usage status indicator from the target VNF and the target capacity expansion policy.
上述目标扩容策略包括:扩容第一类型的容器组需要满足的条件,以及满足扩容上述第一类型的容器组的条件时待扩容上述第一类型的容器组的个数。满足扩容上述第一类型的容器组的条件时待扩容上述第一类型的容器组的个数可称为第一类型的容器组对应的扩容步长。上述F为大于0的整数。步骤303的实现方式可与步骤202的实现方式类似。The above target capacity expansion strategy includes: conditions to be satisfied for expanding the container group of the first type, and the number of container groups to be expanded when the conditions for expanding the container group of the first type are satisfied. When the conditions for expanding the container group of the first type are met, the number of the container group of the first type to be expanded may be referred to as the expansion step size corresponding to the container group of the first type. The above-mentioned F is an integer greater than 0. The implementation of step 303 may be similar to that of step 202 .
304、VNFM在目标VNF未满足扩容F个第一类型的容器组所需的虚拟机资源的情况下,根据目标扩容策略确定待在目标VNF上扩容K个第一类型的虚拟机。304. The VNFM determines that K virtual machines of the first type to be expanded on the target VNF are to be expanded according to the target capacity expansion policy when the target VNF does not meet the virtual machine resources required for expanding the F first type container groups.
上述K为大于0的整数,上述K小于或等于上述F。上述第一类型的容器组为亲和性的。由于上述第一类型的容器组为亲和性的,因此可在目标VNF中已有的第一类型的虚拟机(未部署第一类型的容器组)中创建第一类型的容器组。目标VNF未满足扩容F个第一类型的容器组所需的虚拟机资源的情况可以是:目标VNF中未包含F个可用于扩容第一类型的容器组的虚拟机。目标VNF中可用于扩容第一类型的容器组的虚拟机是指可创建第一类型的容器组并且不影响其已部署的容器组的运行的第一类型的虚拟机。若目标VNF满足扩容F个上述第一类型的容器组所需的虚拟机资源,则可在已有的F个第一类型的虚拟机(未部署第一类型的容器组)中扩容出F个第一类型的容器组,这样可以充分利用虚拟机资源,不必扩容虚拟机。若目标VNF未满足扩容F个上述第一类型的容器组所需的虚拟机资源,则确定部署待扩容的F个上述第一类型的容器组需要扩容的第一类型的虚拟机的个数,并扩容相应个数的第一类型的虚拟机。举例来说,目标VNF中待扩容5(对应于F)个第一类型的容器组,目标VNF中只有2个第一类型的虚拟机可用于扩容第一类型的容器组,VNFM根据目标扩容策略确定待在该目标VNF上扩容3(对应于K)个第一类型的虚拟机,每个第一类型的虚拟机中可扩容一个第一类型的容器组。The above-mentioned K is an integer greater than 0, and the above-mentioned K is less than or equal to the above-mentioned F. The first type of container group described above is affinity. Since the above-mentioned container group of the first type is affinity, the container group of the first type can be created in the existing virtual machine of the first type in the target VNF (the container group of the first type is not deployed). The condition that the target VNF does not meet the virtual machine resources required for expanding the F first type container groups may be: the target VNF does not contain F virtual machines that can be used to expand the first type container groups. The virtual machine in the target VNF that can be used to expand the container group of the first type refers to a virtual machine of the first type that can create the container group of the first type and does not affect the operation of the deployed container group. If the target VNF satisfies the virtual machine resources required for the expansion of F first-type container groups, F can be expanded from the existing F first-type virtual machines (where the first-type container group is not deployed). The first type of container group, which can make full use of virtual machine resources without having to expand the virtual machine. If the target VNF does not meet the virtual machine resources required to expand the F container groups of the first type, then determine the number of virtual machines of the first type that need to be expanded when deploying the F container groups of the first type to be expanded, and expand the corresponding number of virtual machines of the first type. For example, there are 5 (corresponding to F) container groups of the first type to be expanded in the target VNF, and only 2 virtual machines of the first type in the target VNF can be used to expand the container group of the first type. The VNFM expands according to the target expansion policy It is determined that 3 (corresponding to K) virtual machines of the first type are to be expanded on the target VNF, and one container group of the first type can be expanded in each virtual machine of the first type.
步骤304可替换为:VNFM根据目标扩容策略确定待在目标VNF上扩容F个第一类型的虚拟机。其中,上述第一类型的容器组为非亲和性的。应理解,由于上述第一类型的容器组为非亲和性的,若扩容F个第一类型的容器组,则必须先扩容F个第一类型的虚拟机。Step 304 may be replaced with: the VNFM determines, according to the target capacity expansion policy, F virtual machines of the first type to be expanded on the target VNF. Wherein, the container group of the above-mentioned first type is non-affinity. It should be understood that since the above-mentioned container group of the first type is non-affinity, if F container groups of the first type are to be expanded, F virtual machines of the first type must be expanded first.
305、VNFM向VIM发送第一扩容信息。305. The VNFM sends the first capacity expansion information to the VIM.
上述第一扩容信息用于指示在上述目标VNF中扩容K(或者F)个上述第一类型的虚拟机。The above-mentioned first capacity expansion information is used to indicate to expand the capacity of K (or F) virtual machines of the above-mentioned first type in the above-mentioned target VNF.
306、VNFM发送第二扩容信息。306. The VNFM sends the second capacity expansion information.
上述第二扩容信息用于指示在F个第一类型的虚拟机中创建F个第一类型的容器组,每个第一类型的虚拟机中创建一个第一类型的虚拟机。举例来说,VNFM确定待在目标VNF上扩容5个第一类型的容器组(对应于步骤303)以及待扩容3个第一类型的虚拟机(对应于步骤304),目标VNF中扩容3个第一类型的虚拟机之后,VNFM发送第二扩容信息,该第二扩容信息指示在5个第一类型的虚拟机中创建5个第一类型的容器组;其中,这5个第一类型的虚拟机包括扩容的3个第一类型的虚拟机。又举例来说,VNFM确定待在目标VNF上扩容5个第一类型的容器组以及待扩容5个第一类型的虚拟机,目标VNF上扩容5个第一类型的虚拟机之后,VNFM发送第二扩容信息,该第二扩容信息指示在这5个第一类型的虚拟机中创建5个第一类型的容器组。The foregoing second capacity expansion information is used to instruct to create F first-type container groups in F first-type virtual machines, and create one first-type virtual machine in each first-type virtual machine. For example, the VNFM determines that 5 container groups of the first type are to be expanded on the target VNF (corresponding to step 303 ) and 3 virtual machines of the first type are to be expanded (corresponding to step 304 ), and the target VNF is expanded by 3 After the first type of virtual machine, the VNFM sends second capacity expansion information, the second capacity expansion information instructs to create five first type of virtual machines in five first type of container groups; The virtual machine includes 3 virtual machines of the first type for expansion. For another example, the VNFM determines that five container groups of the first type and five virtual machines of the first type are to be expanded on the target VNF. After the five virtual machines of the first type are expanded on the target VNF, the VNFM sends the Second capacity expansion information, where the second capacity expansion information indicates that five container groups of the first type are created in the five virtual machines of the first type.
在一个可能的实现方式中,上述目标扩容策略还包括:在扩容上述第一类型的容器组时扩容M个第二类型的容器组;上述第二扩容信息还用于指示在上述第一类型的虚拟机中创建M个上述第二类型的容器组。也就是说,上述第二扩容信息用于指示在F个第一类型的虚拟机中创建F个第一类型的容器组和(F*M)个上述第二类型的容器组。每个第一类型的虚拟机中创建一个第一类型的容器组和M个第二类型的容器组,这样可实现联动扩容容器组。联动扩容容器组是指在同一虚拟机中同时扩容两种或两种以上不同类型的容器组。上述第一类型的容器组和上述第二类型的容器组可支持同一业务且可部署于同一虚拟机。在该实现方式中,在扩容第一类型的容器组时扩容第二类型的容器组,可以充分利用虚拟 机的资源。In a possible implementation manner, the target capacity expansion strategy further includes: when expanding the container group of the first type, expanding M number of container groups of the second type; the second capacity expansion information is also used to indicate that the container group of the first type is M number of container groups of the second type are created in the virtual machine. That is to say, the foregoing second capacity expansion information is used to indicate that F first-type container groups and (F*M) second-type container groups are created in the F first-type virtual machines. One container group of the first type and M container groups of the second type are created in each virtual machine of the first type, so that the container group can be linked and expanded. Linkage expansion of container groups refers to the expansion of two or more different types of container groups in the same virtual machine at the same time. The container group of the first type and the container group of the second type can support the same service and can be deployed on the same virtual machine. In this implementation manner, when the container group of the first type is expanded, the container group of the second type is expanded, and the resources of the virtual machine can be fully utilized.
本申请实施例中,VNFM在目标VNF未满足扩容F个第一类型的容器组所需的虚拟机资源的情况下,向VIM发送第一扩容信息;可以准确地确定需要扩容的第一类型的虚拟机的个数,能够充分利用虚拟机资源。In the embodiment of the present application, the VNFM sends the first capacity expansion information to the VIM when the target VNF does not meet the virtual machine resources required for capacity expansion of F first-type container groups; The number of virtual machines, which can make full use of virtual machine resources.
图2和图3介绍了在本申请提供的自动扩容方案中VNFM执行的主要流程。在实际应用中,要实现VM和虚拟机的联动扩容不仅需要VNFM的参与,还需要NFVO、VNF、PAAS以及VIM的参与。下面结合附图来介绍本申请实施例提供的一种自动扩容方法交互流程。该自动扩容方法交互流程描述了在实现容器组和虚拟机的联动扩容的过程中,VNFM、NFVO、VNF、PAAS以及VIM分别执行的操作。图4为本申请实施例提供的一种自动扩容方法交互流程。如图4所示,该方法包括:FIG. 2 and FIG. 3 introduce the main flow performed by the VNFM in the automatic capacity expansion solution provided by the present application. In practical applications, the linkage expansion of VMs and virtual machines requires not only the participation of VNFM, but also the participation of NFVO, VNF, PAAS, and VIM. The following describes an interaction process of an automatic capacity expansion method provided by an embodiment of the present application with reference to the accompanying drawings. The interaction process of the automatic expansion method describes the operations performed by VNFM, NFVO, VNF, PAAS and VIM respectively in the process of realizing the linkage expansion of the container group and the virtual machine. FIG. 4 is an interaction flow of an automatic capacity expansion method provided by an embodiment of the present application. As shown in Figure 4, the method includes:
401、VNFM配置扩容策略。401. The VNFM configures a capacity expansion strategy.
用户可配置一种或多种类型的容器组的扩容策略,例如配置第一类型的容器组的扩容策略,即目标扩容策略。下面以配置第一类型的容器组的扩容策略为例,描述如何配置任意类型的容器组的扩容策略。配置第一类型的容器组的扩容策略可能的实现方式如下:通过扩容策略配置界面接收用户针对上述第一类型的容器组的扩容策略配置指令;根据上述扩容策略配置指令,配置得到第一类型的容器组的扩容策略,即目标扩容策略。VNFM可将初始VNFD(对应于预先定义的扩容策略)以图形界面方式展示在NFVI的用户界面(user interface,UI),即扩容策略配置界面。初始VNFD可关联一个或多个VNF。初始VNFD中可预先定义有扩容策略。也就是说,VNFM可将预先定义的扩容策略(对应于初始VNFD)通过UI界面展示;用户可通过该UI界面调整(或者说修改)预先定义的扩容策略以得到所需的扩容策略(对应于VNFD)。用户通过UI界面调整(或者修改)预先定义的扩容策略的操作为用户针对上述第一类型的容器组输入的扩容策略配置指令。在实际应用中,用户可通过扩容策略配置指令配置任意VNF关联的VNFD。也就是说,用户可配置任意VNF采用的扩容策略。举例来说,任意类型的容器组的扩容策略包括以下一项或多项配置参数:1)、自动扩容的容器组的类型,例如第一容器组类型;2)、KPI采样周期,例如10s;3)、扩容阈值,例如60%;4)、扩容步长,例如3,即每次扩容3个容器组;5)、持续时长,例如300s,即若300s内采样的KPI(即资源使用状态采样指标)均超过扩容阈值,会触发自动扩容;6)、冷却时间,例如300s,即本次自动扩容任务完成后,300s内不再进行自动扩容;7)、自动扩容的容器组的类型关联的虚拟机类型,例如第一虚拟机类型;8)、联动扩容的容器组的类型和个数。本申请中,KPI采样周期是指VNF得到每种类型的容器组的资源使用状态采样指标的周期,即VNF向VNFM上报一次各类型的容器组的资源使用状态采样指标的周期。以上各项配置参数可均为VNFD中的字段,并均支持用户的修改。在一些实施例中,容器组的KPI为VNF固定支持字段,不支持用户手动修改。在一些实施例中,容器组的KPI支持用户手动修改。在实际应用中,用户可选择需要自动扩容的容器组的类型,并通过修改相应的配置参数来配置所需的扩容策略。步骤401为可选的,而非必要的。步骤401可替换为:VNFM从VNFD中获取扩容策略。The user can configure capacity expansion policies for one or more types of container groups, for example, configure capacity expansion policies for the first type of container groups, that is, target capacity expansion policies. The following describes how to configure the capacity expansion policy of any type of container group by taking the configuration of the capacity expansion policy of the first type of container group as an example. A possible implementation manner of configuring the capacity expansion policy of the container group of the first type is as follows: receiving a user's capacity expansion policy configuration instruction for the container group of the first type through the capacity expansion policy configuration interface; The expansion strategy of the container group, that is, the target expansion strategy. The VNFM can display the initial VNFD (corresponding to the predefined expansion strategy) on the user interface (UI) of NFVI in a graphical interface, that is, the expansion strategy configuration interface. An initial VNFD can be associated with one or more VNFs. A capacity expansion policy can be predefined in the initial VNFD. That is to say, the VNFM can display the predefined expansion strategy (corresponding to the initial VNFD) through the UI interface; the user can adjust (or modify) the predefined expansion strategy through the UI interface to obtain the required expansion strategy (corresponding to the initial VNFD). VNFD). The operation of the user adjusting (or modifying) the predefined capacity expansion policy through the UI interface is the capacity expansion policy configuration instruction input by the user for the above-mentioned first type of container group. In practical applications, users can configure the VNFD associated with any VNF through the expansion policy configuration command. That is to say, users can configure the expansion strategy adopted by any VNF. For example, the expansion strategy of any type of container group includes one or more of the following configuration parameters: 1), the type of the container group to be automatically expanded, such as the first container group type; 2), the KPI sampling period, such as 10s; 3), the expansion threshold, such as 60%; 4), the expansion step, such as 3, that is, 3 container groups are expanded each time; 5), the duration, such as 300s, that is, if the KPI sampled within 300s (that is, the resource usage status If the sampling indicators) exceed the expansion threshold, automatic expansion will be triggered; 6), the cooling time, such as 300s, that is, after the automatic expansion task is completed, no automatic expansion will be performed within 300s; 7), the type association of the automatically expanded container group 8), the type and quantity of the container group to be expanded in linkage. In this application, the KPI sampling period refers to the period during which the VNF obtains the resource usage status sampling indicators of each type of container group, that is, the period during which the VNF reports the resource usage status sampling indicators of each type of container group to the VNFM once. The above configuration parameters can be fields in the VNFD, and can be modified by users. In some embodiments, the KPI of the container group is a fixed support field of the VNF, which does not support manual modification by the user. In some embodiments, the KPIs of the container group support manual modification by the user. In practical applications, the user can select the type of container group that needs to be automatically expanded, and configure the required expansion strategy by modifying the corresponding configuration parameters. Step 401 is optional, but not necessary. Step 401 can be replaced with: the VNFM obtains the expansion policy from the VNFD.
402、VNFM向目标VNF发送第一查询请求。402. The VNFM sends a first query request to the target VNF.
上述第一查询请求用于查询目标VNF中的一种或多种类型的容器组的资源使用状态 指标。示例性的,VNFM周期性(例如每10s)向目标VNF发送第一查询请求,该第一查询请求用于查询被配置扩容策略的每种类型的容器组的资源使用状态指标。举例来说,VNFM配置了10种类型的容器组的扩容策略,VNFM向目标VNF发送第一查询请求,该第一查询请求用于查询该10种类型中每种类型的容器组的资源使用状态指标。The above-mentioned first query request is used to query the resource usage status indicators of one or more types of container groups in the target VNF. Exemplarily, the VNFM periodically (for example, every 10s) sends a first query request to the target VNF, where the first query request is used to query the resource usage status indicators of each type of container group configured with a capacity expansion policy. For example, the VNFM is configured with expansion policies for 10 types of container groups, and the VNFM sends a first query request to the target VNF, where the first query request is used to query the resource usage status of each type of container group in the 10 types. index.
403、目标VNF向VNFM发送第一指标信息。403. The target VNF sends the first indicator information to the VNFM.
上述第一指标信息为针对第一查询请求反馈的信息。上述第一指标信息可包含目标VNF中的一种或多种类型的容器组的资源使用状态指标。举例来说,VNFM配置了10种类型的容器组的扩容策略,VNFM向目标VNF发送第一查询请求,该第一查询请求用于查询该10种类型中每种类型的容器组的资源使用状态指标;目标VNF向VNFM发送第一指标信息,该第一指标信息包括该10种类型中每种类型的容器组的资源使用状态指标。The above-mentioned first indicator information is information fed back for the first query request. The above-mentioned first indicator information may include resource usage status indicators of one or more types of container groups in the target VNF. For example, the VNFM is configured with expansion policies for 10 types of container groups, and the VNFM sends a first query request to the target VNF, where the first query request is used to query the resource usage status of each type of container group in the 10 types. Indicator; the target VNF sends first indicator information to the VNFM, where the first indicator information includes resource usage status indicators of each type of container group in the 10 types.
404、VNFM根据第一指标信息和扩容策略,确定待在目标VNF上扩容的容器组的类型和个数。404. The VNFM determines the type and number of container groups to be expanded on the target VNF according to the first indicator information and the capacity expansion policy.
上述第一指标信息包含一种或多种类型的容器组的资源使用状态指标。VNFM可从VNFD中获取任意类型的容器组被配置的扩容策略。应理解,VNFM可根据任一种类型的容器组的资源使用状态指标以及该任一种类型的容器组被配置的扩容策略,判断是否需要扩容该任一种类型的容器组。举例来说,VNFM根据第一指标信息和目标扩容策略,确定待在目标VNF上扩容F个第一类型的容器组,该目标扩容策略为第一类型的容器组被配置的扩容策略。The above-mentioned first indicator information includes resource usage status indicators of one or more types of container groups. The VNFM can obtain the configured expansion policy of any type of container group from the VNFD. It should be understood that the VNFM can determine whether any type of container group needs to be expanded according to the resource usage status indicator of any type of container group and the configured expansion policy of the container group of any type. For example, the VNFM determines F first-type container groups to be expanded on the target VNF according to the first indicator information and the target expansion strategy, where the target expansion strategy is the configured expansion strategy for the first-type container group.
405、VNFM查询待扩容的容器组关联的虚拟机类型。405. The VNFM queries the virtual machine type associated with the container group to be expanded.
步骤405一种可能的实现方式如下:VNFM从VNFD中查询待扩容的容器组的类型关联(也称绑定)的虚拟机类型。例如,VNFD中的配置参数可包括第一类型的容器组关联的虚拟机类型(对应于第一类型)。在一些实施例中,VNFM在扩容第一类型的容器组之前,先扩容第一类型(即第一类型的容器组关联的虚拟机类型)的虚拟机,然后根据该第一类型的容器组是否配置联动的容器组,判断是否在扩容第一类型的容器组的同时联动扩容其他容器组。若第一类型的容器组未配置联动的容器组,则扩容第一类型的虚拟机后,在扩容的第一类型的虚拟机中扩容第一类型的容器组。若第一类型的容器组配置联动的容器组,则扩容第一类型的虚拟机后,在扩容的第一类型的虚拟机中扩容第一类型的容器组以及该第一类型的容器组联动的容器组。A possible implementation manner of step 405 is as follows: the VNFM queries the VNFD for the virtual machine type associated with the type of the container group to be expanded (also called binding). For example, the configuration parameters in the VNFD may include the virtual machine type (corresponding to the first type) associated with the container group of the first type. In some embodiments, before expanding the container group of the first type, the VNFM first expands the virtual machine of the first type (that is, the virtual machine type associated with the container group of the first type), and then according to whether the container group of the first type is Configure a linked container group, and determine whether to expand the capacity of other container groups simultaneously with the expansion of the first type of container group. If the container group of the first type is not configured with a linked container group, after the virtual machine of the first type is expanded, the container group of the first type is expanded in the virtual machine of the first type to be expanded. If the container group of the first type is configured with a linked container group, after the virtual machine of the first type is expanded, the container group of the first type and the linked container group of the first type are expanded in the expanded virtual machine of the first type. container group.
406、VNFM向VIM发送第一虚拟机创建请求。406. The VNFM sends a first virtual machine creation request to the VIM.
上述第一虚拟机创建请求(对应于第一扩容信息)用于指示VIM需要扩容的虚拟机的类型和个数。举例来说,VNFM确定待扩容5个第一类型的虚拟机;VNFM向VIM发送虚拟机创建请求,该虚拟机创建请求指示VIM创建5个第一类型的虚拟机。The above-mentioned first virtual machine creation request (corresponding to the first capacity expansion information) is used to indicate the type and number of virtual machines that need to be expanded by the VIM. For example, the VNFM determines that five virtual machines of the first type are to be expanded; the VNFM sends a virtual machine creation request to the VIM, and the virtual machine creation request instructs the VIM to create five virtual machines of the first type.
407、VIM按照第一虚拟机创建请求创建虚拟机,并向VNFM发送第一创建成功响应。407. The VIM creates a virtual machine according to the first virtual machine creation request, and sends a first creation success response to the VNFM.
VIM可按照第一虚拟机创建请求创建相应类型和个数的虚拟机。举例来说,第一虚拟机创建请求指示VIM创建5个第一类型的虚拟机,该VIM在目标VNF中创建5个第一类型的虚拟机。又举例来说,第一虚拟机创建请求指示VIM创建5个第一类型的虚拟机和3个第二类型的虚拟机,该VIM在目标VNF中创建5个第一类型的虚拟机和3个第二类型的虚拟机。第一创建成功响应指示已按照第一虚拟机创建请求成功创建虚拟机。The VIM may create virtual machines of a corresponding type and number according to the first virtual machine creation request. For example, the first virtual machine creation request instructs the VIM to create five virtual machines of the first type, and the VIM creates five virtual machines of the first type in the target VNF. As another example, the first virtual machine creation request instructs the VIM to create 5 virtual machines of the first type and 3 virtual machines of the second type, and the VIM creates 5 virtual machines of the first type and 3 virtual machines of the second type in the target VNF. The second type of virtual machine. The first creation success response indicates that the virtual machine has been successfully created according to the first virtual machine creation request.
408、VNFM向PAAS发送第一纳管信息。408. The VNFM sends the first management information to the PAAS.
上述第一纳管信息用于通知PAAS纳管VIM创建的虚拟机。第一纳管信息可包含VIM在步骤407中创建的虚拟机的标识。The above-mentioned first management information is used to notify the PAAS to manage the virtual machine created by the VIM. The first managed information may include the identifier of the virtual machine created by the VIM in step 407 .
409、PAAS纳管VIM创建的虚拟机,并向VNFM发送第一纳管响应。409. The PAAS manages the virtual machine created by the VIM, and sends a first management response to the VNFM.
上述第一纳管响应指示PAAS已纳管VIM创建的虚拟机。在一些实施例中,第一纳管信息可包含VIM在步骤407创建的虚拟机的标识,PAAS根据这些标识纳管相应的虚拟机。The above-mentioned first administration response indicates that the PAAS has already managed the virtual machine created by the VIM. In some embodiments, the first management information may include the identifiers of the virtual machines created by the VIM in step 407, and the PAAS manages the corresponding virtual machines according to these identifiers.
410、VNFM向NFVO发送第一扩容事件结束通知。410. The VNFM sends a notification of the end of the first capacity expansion event to the NFVO.
上述第一扩容事件结束信息指示已完成虚拟机的扩容。The above-mentioned first capacity expansion event end information indicates that the capacity expansion of the virtual machine has been completed.
411、NFVO向VNFM发送第一扩容事件通知响应。411. The NFVO sends a first capacity expansion event notification response to the VNFM.
上述第一扩容事件通知响应指示NFVO已收到第一扩容事件结束通知。The above-mentioned first capacity expansion event notification response indicates that the NFVO has received the first capacity expansion event end notification.
412、VNFM向目标VNF发送第一扩容通知。412. The VNFM sends a first capacity expansion notification to the target VNF.
上述第一扩容通知用于通知目标VNF待扩容的容器组的类型和个数。举例来说,VNFM向目标VNF发送第一扩容通知,该第一扩容通知用于通知目标VNF待扩容F个第一类型的容器组。The above-mentioned first capacity expansion notification is used to notify the target VNF of the type and number of container groups to be expanded. For example, the VNFM sends a first capacity expansion notice to the target VNF, where the first capacity expansion notice is used to notify the target VNF that F container groups of the first type are to be expanded.
413、目标VNF向VNFM发送第一扩容通知响应。413. The target VNF sends a first capacity expansion notification response to the VNFM.
上述第一扩容通知响应指示目标VNF已接收到第一扩容通知。The above-mentioned first capacity expansion notification response indicates that the target VNF has received the first capacity expansion notification.
414、VNFM向PAAS发送第一容器组创建请求。414. The VNFM sends a first container group creation request to the PAAS.
上述第一容器组创建请求(对应于第二扩容信息)用于指示PAAS待创建的容器组的类型和个数。The above-mentioned first container group creation request (corresponding to the second capacity expansion information) is used to indicate the type and number of container groups to be created by the PAAS.
415、PAAS根据第一容器组创建请求创建容器组,并向VNFM发送第一创建结果。415. The PAAS creates a container group according to the first container group creation request, and sends the first creation result to the VNFM.
上述第一创建结果可包含PAAS创建的容器组的标识。The above-mentioned first creation result may include the identifier of the container group created by the PAAS.
416、VNFM向目标VNF发送第一扩容列表。416. The VNFM sends the first capacity expansion list to the target VNF.
第一扩容列表指示PAAS成功创建的容器组。上述第一扩容列表可包含PAAS成功创建的容器组的标识。目标VNF根据第一扩容列表,可得到PAAS创建成功的容器组。步骤416可理解为VNFM通知目标VNF新创建的容器组的标识。新创建的容器组是指PAAS在步骤415中创建的容器组。应理解,VNFM也可以采用其他方式通知目标VNF新创建的容器组的标识。The first expansion list indicates the container group successfully created by PAAS. The above-mentioned first capacity expansion list may include the identifiers of the container groups successfully created by the PAAS. The target VNF can obtain the container group successfully created by PAAS according to the first expansion list. Step 416 can be understood as the VNFM notifying the target VNF of the identifier of the newly created container group. The newly created container group refers to the container group created by the PAAS in step 415 . It should be understood that the VNFM may also notify the target VNF of the identity of the newly created container group in other ways.
417、目标VNF向VNFM发送第一通知响应,根据第一扩容列表扩容容器组,并向VNFM上报扩容进度。417. The target VNF sends a first notification response to the VNFM, expands the container group according to the first expansion list, and reports the expansion progress to the VNFM.
上述第一通知响应用于指示接收到第一扩容列表。扩容进度是指目标VNF根据第一扩容列表扩容容器组的进度。根据第一扩容列表扩容容器组可以是:目标VNF扩容第一扩容列表中的容器组。The foregoing first notification response is used to indicate that the first capacity expansion list is received. The capacity expansion progress refers to the progress of expanding the container group of the target VNF according to the first capacity expansion list. Expanding the container group according to the first capacity expansion list may be: expanding the container group in the first capacity expansion list by the target VNF.
418、目标VNF进行业务负载均衡。418. The target VNF performs service load balancing.
419、VNFM通过NFVO的UI界面显示自动扩容任务结果。419. VNFM displays the results of automatic capacity expansion tasks through the UI interface of NFVO.
自动扩容任务结果可包含扩容的虚拟机的类型和个数,以及扩容的容器组的类型和个数。图4以目标VNF为例,描述了容器组和虚拟机的联动扩容流程。应理解,NFV系统中任意VNF可采用类似的流程实现容器组和虚拟机的扩动缩容。The result of the automatic expansion task can include the type and number of the virtual machines to be expanded, and the type and number of the container group to be expanded. Figure 4 uses the target VNF as an example to describe the linkage expansion process of container groups and virtual machines. It should be understood that any VNF in the NFV system can use a similar process to realize expansion and contraction of container groups and virtual machines.
本申请实施例中,VNFM可以准确判断出需要扩容的容器组的类型和个数,以及虚拟 机的类型和个数,能够提高资源利用率。In the embodiment of the present application, the VNFM can accurately determine the type and number of container groups that need to be expanded, and the type and number of virtual machines, which can improve resource utilization.
下面结合附图介绍本申请提供的由VNFM发起的自动缩容方案。The following describes the automatic scaling solution initiated by the VNFM provided by the present application with reference to the accompanying drawings.
图5为本申请实施例提供的一种自动缩容方法流程图。图5中的方法流程应用于包括VNFM和VNF的NFV系统,例如NFV参考架构。如图5所示,该方法包括:FIG. 5 is a flowchart of an automatic scaling method provided by an embodiment of the present application. The method flow in Figure 5 is applied to an NFV system including VNFM and VNF, such as the NFV reference architecture. As shown in Figure 5, the method includes:
501、VNFM从VNFD中获取目标缩容策略。501. The VNFM obtains the target scaling policy from the VNFD.
上述目标缩容策略可包括:缩容第一类型的容器组需要满足的条件、满足缩容上述第一类型的容器组的条件时待缩容第一类型的容器组的个数(对应于缩容步长)、以及在缩容上述第一类型的容器组之后缩容第一类型的虚拟机。上述第一类型的容器组承载于上述第一类型的虚拟机。The above-mentioned target shrinking strategy may include: the conditions that need to be satisfied for shrinking the container group of the first type, the number of container groups to be reduced (corresponding to the shrinkage) when the conditions for shrinking the container group of the first type are satisfied. step size), and the first type of virtual machine is scaled down after the above-mentioned first type of container group is scaled down. The container group of the first type is hosted on the virtual machine of the first type.
上述VNFD中可定义有一种或多种缩容策略,每种缩容策略可对应于一种类型的容器组。如果VNFD中定义有多条缩容策略,说明VNFD支持多种类型的容器组的自动缩容。VNFD中定义的任意缩容策略为VNFM可支持的缩容策略。在一些实施例中,用户可以根据业务场景需求,对初始VNFD中定义的一种或多种缩容策略进行调整,得到所需的缩容策略(即VNFD中定义的缩容策略)。也就是说,用户可对预先配置的初始VNFD进行修改以得到所需的VNFD,该VNFD中定义的缩容策略可理解为该用户配置的缩容策略。One or more scaling policies may be defined in the above VNFD, and each scaling policy may correspond to a type of container group. If there are multiple scaling policies defined in the VNFD, the VNFD supports automatic scaling of multiple types of container groups. Any scaling policy defined in the VNFD is a scaling policy supported by the VNFM. In some embodiments, the user can adjust one or more scaling policies defined in the initial VNFD according to business scenario requirements to obtain the required scaling policies (that is, the scaling policies defined in the VNFD). That is, the user can modify the pre-configured initial VNFD to obtain the required VNFD, and the scaling policy defined in the VNFD can be understood as the scaling policy configured by the user.
502、VNFM接收来自目标VNF的资源使用状态指标。502. The VNFM receives the resource usage status indicator from the target VNF.
上述资源使用状态指标表征上述目标VNF中的上述第一类型的容器组的资源使用情况。步骤501中的VNFD可以关联目标VNF。VNFM从VNFD中获取的目标缩容策略可理解为该VNFD关联的VNF采用的缩容策略,即该该VNFD关联的VNF被配置的缩容策略。举例来说,VNFM可从一个或多个VNFD中获取缩容策略,每个VNFD关联一个或多个VNF。The above-mentioned resource usage status indicator represents the resource usage situation of the above-mentioned container group of the above-mentioned first type in the above-mentioned target VNF. The VNFD in step 501 may be associated with the target VNF. The target reduction strategy obtained by the VNFM from the VNFD may be understood as the reduction strategy adopted by the VNF associated with the VNFD, that is, the reduction strategy configured for the VNF associated with the VNFD. For example, a VNFM can obtain a scaling policy from one or more VNFDs, and each VNFD is associated with one or more VNFs.
503、VNFM根据目标缩容策略和资源使用状态指标,确定待缩容目标VNF中的F个第一类型的容器组。503. The VNFM determines F container groups of the first type in the target VNF to be scaled down according to the target scaling policy and the resource usage status indicator.
上述F为大于0的整数。缩容第一类型的容器组需要满足的条件可以包括:第一类型的容器组的连续多个(例如30)资源使用状态采样指标均未超过缩容阈值(例如20%)。满足缩容上述第一类型的容器组的条件时待缩容第一类型的容器组的个数为F。因此,在满足缩容第一类型的容器组的条件时,VNFM确定待缩容目标VNF中的F个第一类型的容器组。在一些实施例中,VNFM将来自目标VNF的资源使用状态指标(即两个或两个以上资源使用状态采样指标)与缩容阈值进行对比,并根据目标缩容策略中的其他监控配置判断是否需要发起缩容。举例来说,目标VNF每10s进行一次采样,并上报采样得到的一个资源使用状态采样指标,连续采样30次。若目标VNF连续30次上报的第一类型的容器组的资源使用状态采样指标均未超过缩容阈值(例如20%),则确定待缩容目标VNF中的该第一类型的容器组。The above-mentioned F is an integer greater than 0. The conditions that need to be met for scaling down the container group of the first type may include: none of consecutive multiple (eg 30) resource usage status sampling indicators of the container group of the first type exceeds the scaling threshold (eg 20%). When the conditions for shrinking the container group of the first type are satisfied, the number of container groups of the first type to be reduced is F. Therefore, when the conditions for shrinking the container group of the first type are met, the VNFM determines F container groups of the first type in the target VNF to be reduced. In some embodiments, the VNFM compares the resource usage status indicators (ie, two or more resource usage status sampling indicators) from the target VNF with the scaling threshold, and determines whether or not according to other monitoring configurations in the target scaling policy Scaling needs to be initiated. For example, the target VNF is sampled every 10s, and a resource usage status sampling indicator obtained by sampling is reported, and the samples are continuously sampled 30 times. If the resource usage status sampling indicators of the first type container group reported by the target VNF for 30 consecutive times do not exceed the scaling threshold (for example, 20%), the container group of the first type in the target VNF to be scaled is determined.
504、VNFM发送第一缩容信息。504. The VNFM sends the first capacity reduction information.
上述第一缩容信息用于指示缩容目标VNF中的F个第一类型的容器组。步骤504一种可能的实现方式可以是:VNFM向PAAS发送第一缩容信息。第一缩容信息可以为一个包含待缩容的容器组的类型和个数的列表。The foregoing first scaling information is used to indicate the F first type container groups in the scaling target VNF. A possible implementation manner of step 504 may be: the VNFM sends the first capacity reduction information to the PAAS. The first shrinking information may be a list including the type and number of container groups to be shrinked.
在一个可能的实现方式中,上述目标缩容策略还包括:在缩容上述第一类型的容器组 时缩容N个第二类型的容器组;上述第一缩容信息还用于指示缩容上述第二类型的容器组,上述第二类型的容器组承载于上述第一类型的虚拟机。上述第一类型的容器组和上述第二类型的容器组可支持同一业务。举例来说,第二扩容信息用于指示缩容目标VNF中的F个第一类型的容器组和(F*N)个第二类型的容器组,N为大于0的整数。每个第一类型的虚拟机中缩容一个第一类型的容器组和N个第二类型的容器组,这样可实现联动缩容容器组。联动缩容容器组是指在同一虚拟机中同时缩容两种或两种以上不同类型的容器组。在该实现方式中,在缩容第一类型的容器组时缩容第二类型的容器组,可以及时释放第二类型的容器组占用的资源。In a possible implementation manner, the above-mentioned target shrinking strategy further includes: shrinking N number of container groups of the second type when shrinking the container group of the first type; the first shrinking information is further used to indicate the shrinking For the container group of the second type, the container group of the second type is hosted on the virtual machine of the first type. The container group of the first type and the container group of the second type may support the same service. For example, the second capacity expansion information is used to indicate F container groups of the first type and (F*N) container groups of the second type in the scale-down target VNF, where N is an integer greater than 0. In each virtual machine of the first type, one container group of the first type and N container groups of the second type can be scaled down, so that the container group can be reduced in a coordinated manner. Linked shrinking of container groups refers to the simultaneous shrinking of two or more different types of container groups in the same virtual machine. In this implementation manner, when shrinking a container group of a first type when shrinking a container group of a second type, the resources occupied by the container group of the second type can be released in time.
在一个可能的实现方式中,VNFM在发送第一缩容信息之前,可执行如下操作:VNFM向目标VNF发送第三缩容信息,上述第三缩容信息用于确认是否可缩容目标VNF中的F个第一类型的容器组;上述VNFM接收来自上述VNF的第四缩容信息,上述第四缩容信息指示可缩容目标VNF中的上述第一类型的容器组。在该实现方式中,VNFM向目标VNF发送第三缩容信息,以便于确认是否可缩容第一类型的容器组,可以避免缩容不能缩容的容器组。In a possible implementation manner, before sending the first shrinkage information, the VNFM may perform the following operations: the VNFM sends third shrinkage information to the target VNF, and the third shrinkage information is used to confirm whether the target VNF can be shrinked. The VNFM receives fourth shrinkage information from the VNF, where the fourth shrinkage information indicates that the container group of the first type in the target VNF can be shrinkable. In this implementation manner, the VNFM sends the third scaling information to the target VNF, so as to confirm whether the container group of the first type can be scaled down, so as to avoid scaling down the container group that cannot be scaled down.
505、VNFM根据目标扩容策略,确定待缩容目标VNF中的第一类型的虚拟机。505. The VNFM determines, according to the target capacity expansion policy, the virtual machine of the first type in the target VNF to be scaled down.
506、VNFM向VIM发送第二缩容信息。506. The VNFM sends the second capacity reduction information to the VIM.
上述第二缩容信息用于指示缩容目标VNF中的上述第一类型的虚拟机。在一个可能的实现方式中,上述第二缩容信息用于指示缩容上述目标VNF中部署的多个上述第一类型的虚拟机中未部署业务容器组的上述第一类型的虚拟机;或者,上述第二缩容信息用于指示缩容上述目标VNF中部署的多个上述第一类型的虚拟机中中央处理器CPU占用率最低的一个或多个上述第一类型的虚拟机。举例来说,VNFM选择进行缩容的第一类型的虚拟机的方式如下:VNFM优先选择目标VNF中部署的多个第一类型的虚拟机中未部署业务容器组的虚拟机,然后,选择CPU占用率最低的一个或多个第一类型的虚拟机。The above-mentioned second scaling information is used to indicate the above-mentioned virtual machine of the first type in the scaling-down target VNF. In a possible implementation manner, the above-mentioned second capacity reduction information is used to instruct to scale down the above-mentioned virtual machines of the first type in which the service container group is not deployed among the plurality of above-mentioned virtual machines of the above-mentioned first type deployed in the above-mentioned target VNF; or , the second shrinkage information is used to instruct to shrink one or more virtual machines of the first type with the lowest CPU occupancy rate of the CPU among the plurality of virtual machines of the first type deployed in the target VNF. For example, the manner in which the VNFM selects the first type of virtual machines to be scaled down is as follows: the VNFM preferentially selects the virtual machines in which the service container group is not deployed among the plurality of first type virtual machines deployed in the target VNF, and then selects the CPU One or more virtual machines of the first type with the lowest occupancy.
图5介绍了VNFM在目标VNF上缩容第一类型的容器组时执行的方法流程。应理解,VNFM可执行类似的方法以便实现在任意VNF上缩容任意类型的容器组。Fig. 5 describes the method flow executed by the VNFM when scaling down the container group of the first type on the target VNF. It should be understood that a VNFM can perform a similar approach to enable scaling of any type of container group on any VNF.
本申请实施例中,在缩容第一类型的容器组之后缩容第一类型的虚拟机(即承载第一类型的容器组的虚拟机),可以防止存在多余的虚拟机没有运行任何容器组产生资源浪费。In this embodiment of the present application, after shrinking the container group of the first type, the virtual machine of the first type (that is, the virtual machine that carries the container group of the first type) is reduced, which can prevent redundant virtual machines from running any container group. waste of resources.
图5介绍了在本申请提供的自动缩容方案中VNFM执行的主要流程。在实际应用中,要实现VM和容器组的联动缩容不仅需要VNFM的参与,还需要NFVO、VNF、PAAS以及VIM的参与。下面结合附图来介绍本申请实施例提供的一种自动缩容方法交互流程。该自动缩容方法交互流程描述了在实现容器组和虚拟机的联动缩容的过程中,VNFM、NFVO、VNF、PAAS以及VIM分别执行的操作。图6为本申请实施例提供的一种自动缩容方法交互流程。如图6所示,该方法包括:FIG. 5 introduces the main flow of VNFM execution in the automatic scaling solution provided by this application. In practical applications, to realize the linkage reduction of VMs and container groups, not only the participation of VNFM is required, but also the participation of NFVO, VNF, PAAS, and VIM. The following describes an interaction process of an automatic scaling method provided by an embodiment of the present application with reference to the accompanying drawings. The interaction process of the automatic scaling method describes the operations performed by VNFM, NFVO, VNF, PAAS, and VIM respectively in the process of realizing the linkage scaling between the container group and the virtual machine. FIG. 6 is an interaction flow of an automatic scaling method provided by an embodiment of the present application. As shown in Figure 6, the method includes:
601、VNFM配置缩容策略。601. The VNFM configures a scaling policy.
用户可配置一种或多种类型的容器组的缩容策略,例如配置第一类型的容器组的缩容策略。VNFM配置缩容策略的方式可与配置扩容策略的方式相同。下面以配置第一类型的容器组的缩容策略为例,描述如何配置任意类型的容器组的缩容策略。配置第一类型的容器组的缩容策略可能的实现方式如下:通过缩容策略配置界面接收用户针对上述第一类型 的容器组的缩容策略配置指令;根据上述缩容策略配置指令,配置得到目标缩容策略。VNFM可将初始VNFD(对应于预先定义的缩容策略)以图形界面方式展示在UI界面,即缩容策略配置界面。初始VNFD中预先定义有缩容策略。也就是说,VNFM可将预先定义的缩容策略(对应于初始VNFD)通过UI界面展示;用户可通过该UI界面调整(或者修改)预先定义的缩容策略以得到所需的缩容策略(对应于VNFD)。用户可通过UI界面调整(或者修改)预先定义的缩容策略的操作为用户针对上述第一类型的容器组输入的缩容策略配置指令。举例来说,缩容策略包括以下一项或多项配置参数:1)、自动缩容的容器组的类型,例如第一容器组类型;2)、KPI采样周期,例如10s;3)、缩容阈值,例如20%;4)、缩容步长,例如3,即每次缩容3个容器组;5)、持续时长,例如300s,即300s内采样的KPI均超过扩容阈值,会触发自动扩容;6)、冷却时间,例如300s,即本次自动缩容任务完成后,300s内不再进行自动缩容;7)、自动扩容的容器组的类型关联的虚拟机类型(即联动缩容的虚拟机的类型);8)、联动缩容的容器组的类型和个数。以上各项配置参数可均为VNFD中的字段,并均支持用户的修改。在一些实施例中,容器组的KPI为VNF固定支持字段,不支持用户手动修改。在一些实施例中,用户可手动修改容器组的KPI。在实际应用中,用户可选择需要自动缩容的容器组的类型,并通过修改相应的配置参数来配置所需的缩容策略。步骤601为可选的,而非必要的。步骤601可替换为:VNFM从VNFD中获取缩容策略。A user can configure a scaling policy for one or more types of container groups, for example, configure a scaling policy for a container group of the first type. The VNFM can configure the shrinking policy in the same way as the expansion policy. The following describes how to configure a scaling policy for any type of container group by taking the configuration of the scaling policy of the first type of container group as an example. A possible implementation manner of configuring the shrinkage policy of the container group of the first type is as follows: receiving a user's shrinkage policy configuration instruction for the container group of the first type through the shrinkage policy configuration interface; according to the shrinkage policy configuration instruction, the configuration obtains Target scaling strategy. The VNFM can display the initial VNFD (corresponding to the predefined scaling policy) on the UI interface in a graphical interface, that is, the scaling policy configuration interface. A scaling policy is predefined in the initial VNFD. That is to say, the VNFM can display the predefined scaling strategy (corresponding to the initial VNFD) through the UI interface; the user can adjust (or modify) the predefined scaling strategy through the UI interface to obtain the required scaling strategy ( corresponds to VNFD). The operation that the user can adjust (or modify) the predefined scaling policy through the UI interface is the scaling policy configuration instruction input by the user for the above-mentioned first type of container group. For example, the scaling policy includes one or more of the following configuration parameters: 1), the type of the container group to be automatically scaled, such as the first container group type; 2), the KPI sampling period, such as 10s; 3), the scaling Capacity threshold, such as 20%; 4), scaling step, such as 3, that is, 3 container groups are scaled each time; 5), duration, such as 300s, that is, the KPI sampled within 300s exceeds the scaling threshold, it will trigger Automatic expansion; 6), cooling time, such as 300s, that is, after the completion of this automatic scaling task, no automatic scaling will be performed within 300s; 7), the type of the virtual machine associated with the type of the container group to be automatically expanded (that is, linked scaling 8), the type and number of container groups to be scaled in linkage. The above configuration parameters can be fields in the VNFD, and can be modified by users. In some embodiments, the KPI of the container group is a fixed support field of the VNF, which does not support manual modification by the user. In some embodiments, the user can manually modify the KPIs of the container group. In practical applications, the user can select the type of container group that needs to be automatically scaled, and configure the required scaling strategy by modifying the corresponding configuration parameters. Step 601 is optional, but not necessary. Step 601 may be replaced with: the VNFM obtains the scaling policy from the VNFD.
602、VNFM向目标VNF发送第二查询请求。602. The VNFM sends a second query request to the target VNF.
上述第二查询请求用于查询目标VNF中的一种或多种类型的容器组的资源使用状态指标。步骤602的实现方式可与步骤402的实现方式类似。目标VNF为任一VNF。The above-mentioned second query request is used to query the resource usage status indicators of one or more types of container groups in the target VNF. The implementation of step 602 may be similar to that of step 402 . The target VNF is any VNF.
603、目标VNF向VNFM发送第二指标信息。603. The target VNF sends the second indicator information to the VNFM.
上述第二指标信息为针对第二查询请求反馈的信息。上述第二指标信息可包含目标VNF中的一种或多种类型的容器组的资源使用状态指标。步骤603的实现方式可与步骤403的实现方式相同。The above-mentioned second indicator information is information fed back for the second query request. The above-mentioned second indicator information may include resource usage status indicators of one or more types of container groups in the target VNF. The implementation of step 603 may be the same as that of step 403 .
604、VNFM根据第二指标信息和各类型的容器组被配置的缩容策略,确定在目标VNF上待缩容的容器组的个数和类型。604. The VNFM determines the number and types of container groups to be scaled down on the target VNF according to the second indicator information and the configured scaling policies for each type of container group.
上述第二指标信息包含第一类型的容器组的资源使用状态指标。在一些实施例中,VNFM可根据任一种类型的容器组的资源使用状态指标以及该任一种类型的容器组被配置的缩容策略,判断该任一种类型的容器组是否需要缩容。VNFM在判断任一种类型的容器组需要缩容之后,确定该任一种类型的容器组待缩容的个数。举例来说,VNFM根据第二指标信息和目标缩容策略,确定在目标VNF上待缩容F个第一类型的容器组。The above-mentioned second indicator information includes the resource usage status indicator of the container group of the first type. In some embodiments, the VNFM may determine whether any type of container group needs to be scaled down according to the resource usage status indicator of any type of container group and the configured scaling policy for the container group of any type . After judging that any type of container group needs to be scaled down, the VNFM determines the number of the container group of any type to be scaled down. For example, the VNFM determines F first-type container groups to be scaled down on the target VNF according to the second indicator information and the target scaling policy.
605、VNFM向目标VNF发送第一缩容列表。605. The VNFM sends the first shrinking list to the target VNF.
该第一缩容列表中包含在目标VNF上需要缩容(即待缩容)的容器组的个数和类型。The first shrink list includes the number and type of container groups that need to be shrunk (that is, to be shrunk) on the target VNF.
606、目标VNF对第一缩容列表中包含的一种或多种类型的容器组进行业务迁移,并生成第二缩容列表。606. The target VNF performs service migration for one or more types of container groups included in the first shrinking list, and generates a second shrinking list.
第二缩容列表指示目标VNF上可缩容的容器组。示例性的,第二缩容列表包含目标VNF上可缩容的容器组的标识。在一些实施例中,目标VNF在接收到第一缩容列表之后,判断该第一缩容列表中每种类型的容器组对应的实例是否可以缩容。若某种类型的容器组 对应的实例可以缩容,则对该类型的容器组进行业务迁移。若某种类型的容器组对应的实例不可以缩容,则返回失败,等待下个周期再进行缩容。下个周期可以是预设时长,例如300s。目标VNF在选择缩容的容器组时,可优先选择同一个VM上的容器组进行缩容,防止缩容后的容器组拓扑不满足要求。容器组拓扑不满足要求时需要进行容器组的重新调度,这样会产生业务呼损。The second scale-down list indicates the container groups that can be scaled down on the target VNF. Exemplarily, the second scaling list includes identifiers of container groups that can be scaled down on the target VNF. In some embodiments, after receiving the first shrinking list, the target VNF determines whether the instance corresponding to each type of container group in the first shrinking list can be reduced in size. If the instance corresponding to a container group of a certain type can be scaled down, the service migration of the container group of this type is performed. If the instance corresponding to a certain type of container group cannot be scaled down, it returns a failure and waits for the next cycle to scale up. The next period may be a preset duration, such as 300s. When the target VNF selects the container group to be scaled down, it can preferentially select the container group on the same VM to be scaled down to prevent the container group topology after scaling down from meeting the requirements. When the container group topology does not meet the requirements, the container group needs to be rescheduled, which will cause service call loss.
607、目标VNF向VNFM发送第二缩容列表。607. The target VNF sends the second shrinking list to the VNFM.
608、VNFM向PAAS发送第二缩容列表。608. The VNFM sends the second shrinking list to the PAAS.
609、PAAS对第二缩容列表中的容器组进行缩容,并向VNFM发送第一缩容结果。609. The PAAS shrinks the container group in the second shrinking list, and sends the first shrinking result to the VNFM.
第一缩容结果指示PAAS成功缩容的容器组。示例性的,第一缩容结果包含PAAS成功缩容的容器组的标识。PAAS对第二缩容列表中的容器组进行缩容。PAAS在完成对第二缩容列表中的容器组的缩容之后,向VNFM发送第一缩容结果。The first scale down result indicates the container group that PAAS scaled successfully. Exemplarily, the first scaling result includes the identifier of the container group successfully scaled down by the PAAS. PAAS shrinks the container groups in the second shrink list. After the PAAS completes the shrinking of the container group in the second shrinking list, it sends the first shrinking result to the VNFM.
610、VNFM向目标VNF发送第三缩容列表。610. The VNFM sends a third shrinking list to the target VNF.
第三缩容列表指示目标VNF中缩容成功的容器组。示例性的,第三缩容列表包含目标VNF中缩容成功的容器组的标识。The third scale-down list indicates the container groups in the target VNF that have been scaled down successfully. Exemplarily, the third scaling list includes the identifiers of the container groups in the target VNF that are successfully scaled down.
611、目标VNF向VNFM发送第二通知响应。611. The target VNF sends a second notification response to the VNFM.
第二通知响应用于指示接收到第三缩容列表。The second notification response is used to indicate that the third shrink list is received.
612、目标VNF根据第三缩容列表缩容容器组,并向VNFM上报缩容进度。612. The target VNF shrinks the container group according to the third shrinking list, and reports the shrinking progress to the VNFM.
目标VNF根据第三缩容列表缩容容器组可以是:目标VNF缩容第三缩容列表中的容器组。The target VNF shrinking the container group according to the third shrinking list may be: the target VNF shrinks the container group in the third shrinking list.
613、VNFM向目标VNF发送缩容进度响应。613. The VNFM sends a scaling progress response to the target VNF.
缩容进度响应指示VNFM接收到目标VNF上报的缩容进度。The shrinking progress response indicates that the VNFM receives the shrinking progress reported by the target VNF.
614、VNFM向VNFO发送缩容授权申请。614. The VNFM sends the VNFO a capacity reduction authorization application.
缩容授权申请用于指示需要缩容的虚拟机的类型和个数。在一些实施例中,容器组缩容完成后,VNFM可根据VNFD中的缩容策略,判断目标VNF上需要删除的虚拟机的类型和个数,向NFVO发起缩容授权申请。举例来说,完成对第一类型的容器组的缩容之后,VNFM可根据VNFD中的缩容策略,确定需要缩容第一类型的虚拟机以及需要缩容第一类型的虚拟机的个数。The scaling-in authorization application is used to indicate the type and number of virtual machines to be scaled down. In some embodiments, after the container group is scaled down, the VNFM can determine the type and number of virtual machines to be deleted on the target VNF according to the scale down policy in the VNFD, and initiate a scale down authorization application to the NFVO. For example, after the container group of the first type is scaled down, the VNFM can determine the number of virtual machines that need to be scaled down and the number of virtual machines of the first type to be scaled down according to the scaling policy in the VNFD. .
615、NFVO向VNFM发送缩容授权响应。615. The NFVO sends a reduction authorization response to the VNFM.
上述缩容授权响应指示VNFO同意VNFM的缩容授权申请。The above shrinkage authorization response indicates that the VNFO agrees to the VNFM's request for a shrinkage authorization.
616、VNFM向NFVO发送缩容事件开始通知。616. The VNFM sends a notification of the start of a scaling event to NFVO.
缩容事件开始通知指示VNFM开始缩容虚拟机。The scale-in event start notification instructs the VNFM to start scaling down the virtual machine.
617、NFVO向VNFM发送第一缩容事件响应。617. The NFVO sends a first scaling event response to the VNFM.
第一缩容事件响应指示NFVO接收到缩容事件开始通知。The first scale down event response indicates that the NFVO has received a scale down event start notification.
618、VNFM优先挑选没有部署业务容器组的虚拟机进行缩容,如果不存在该类型的虚拟机,则再按照CPU占用率排序,从低到高依次缩容,并通知PAAS解纳管VNFM缩容的虚拟机。618. VNFM preferentially selects virtual machines that do not have service container groups deployed for shrinking. If there is no virtual machine of this type, it will be sorted according to the CPU usage, from low to high, and will be notified to PAAS to dismantle the VNFM to shrink. capable virtual machine.
619、PAAS解纳管VNFM缩容的虚拟机,并向VNFM发送第一解纳管响应。619 . The PAAS de-manages the virtual machine scaled down by the VNFM, and sends a first de-managing response to the VNFM.
上述第一解纳管响应指示PAAS完成对VNFM缩容的虚拟机的解纳管。The above-mentioned first decommissioning response instructs the PAAS to complete decommissioning of the virtual machine scaled by the VNFM.
620、VNFM向VIM发送第一删除请求。620. The VNFM sends a first deletion request to the VIM.
第一删除请求用于请求删除VNF缩容的虚拟机占用的虚拟机资源。The first deletion request is used to request to delete the virtual machine resources occupied by the virtual machine that is reduced in size by the VNF.
621、VIM向VNFM发送第一删除响应。621. The VIM sends a first deletion response to the VNFM.
第一删除响应指示成功删除缩容的虚拟机占用的虚拟机资源。The first deletion response indicates that the virtual machine resources occupied by the downscaled virtual machine are successfully deleted.
622、VNFM向NFVO发送缩容事件结束通知。622. The VNFM sends a notification of the end of the shrinking event to the NFVO.
缩容事件结束通知指示VNFM完成缩容。The shrink event end notification instructs the VNFM to complete the shrink.
623、NFVO向VNFM发送第二缩容事件响应。623. The NFVO sends a second scaling event response to the VNFM.
第二缩容事件响应指示NFVO接收到缩容事件结束通知。The second scale down event response indicates that the NFVO has received a scale down event end notification.
624、VNFM通过NFVO的UI界面显示自动缩容任务结果。624. The VNFM displays the result of the automatic scaling task through the UI interface of NFVO.
自动缩容任务结果可包含缩容的虚拟机的类型和个数,以及缩容的容器组的类型和个数。图6以目标VNF为例,描述了容器组和虚拟机的联动缩容流程。应理解,NFV系统中任意VNF可采用类似的流程实现容器组和虚拟机的联动缩容。The result of the automatic scaling task can include the type and number of the scaled virtual machines, and the type and number of the scaled container group. Figure 6 uses the target VNF as an example to describe the coordinated scaling process of a container group and a virtual machine. It should be understood that any VNF in the NFV system can use a similar process to realize the linkage reduction of the container group and the virtual machine.
本申请实施例中,VNFM可以准确判断出需要缩容的容器组的类型和个数,以及虚拟机的类型和个数,能够提高资源利用率。In the embodiment of the present application, the VNFM can accurately determine the type and number of container groups that need to be scaled down, and the type and number of virtual machines, which can improve resource utilization.
前面分别描述了由VNFM发起的自动扩容方案(对应于图2、图3以及图4中的方法流程)以及由VNFM发起的自动缩容方案(对应于图2、图3以及图4中的方法流程)。在实际应用中,本申请提供的自动扩容方案和自动缩容方案可单独实施,也可以同时实施。在一些实施例中,VNFM可根据来自VNF的资源使用状态指标,判断需要联动缩容还是联动缩容。在判断需要联动扩容时,执行自动扩容方法流程;在判断需要联动缩容时,执行自动缩容方法流程。例如,VNFM既可实现图2和图3中的自动扩容方法流程,也可实现图5中的自动缩容方法流程。The automatic capacity expansion scheme initiated by VNFM (corresponding to the method flow in Figure 2, Figure 3 and Figure 4) and the automatic capacity reduction scheme initiated by VNFM (corresponding to the methods in Figure 2, Figure 3 and Figure 4) are described above. process). In practical applications, the automatic capacity expansion solution and the automatic capacity reduction solution provided in this application can be implemented independently or simultaneously. In some embodiments, the VNFM may determine whether the coordinated capacity reduction or the coordinated capacity reduction is required according to the resource usage status indicator from the VNF. When it is determined that linkage expansion is required, the automatic expansion method process is executed; when it is determined that linkage reduction is required, the automatic capacity reduction method process is executed. For example, the VNFM can implement both the automatic capacity expansion method flow shown in FIG. 2 and FIG. 3 , and the automatic capacity reduction method flow shown in FIG. 5 .
下面结合附图介绍本申请提供的由VNF发起的自动扩容方案。The following describes the automatic capacity expansion solution initiated by the VNF provided by the present application with reference to the accompanying drawings.
图7为本申请实施例提供的另一种自动扩容方法流程图。图7中的方法流程应用于包括VNFM和VNF的NFV系统,例如NFV参考架构。如图7所示,该方法包括:FIG. 7 is a flowchart of another automatic capacity expansion method provided by an embodiment of the present application. The method flow in Figure 7 is applied to an NFV system including VNFM and VNF, such as the NFV reference architecture. As shown in Figure 7, the method includes:
701、目标VNF获取第一类型的容器组的资源使用状态指标。701. The target VNF acquires the resource usage status indicator of the container group of the first type.
第一类型的容器组的资源使用状态指标表征目标VNF中的第一类型的容器组的资源使用情况。例如,第一类型的容器组的资源使用状态指标为该第一类型的容器组对应的CPU使用率。The resource usage status indicator of the container group of the first type represents the resource usage of the container group of the first type in the target VNF. For example, the resource usage status indicator of the container group of the first type is the CPU usage rate corresponding to the container group of the first type.
702、目标VNF根据目标扩容策略和第一类型的容器组的资源使用状态指标,确定待扩容F个第一类型的容器组。702. The target VNF determines F container groups of the first type to be expanded according to the target capacity expansion policy and the resource usage status indicator of the container group of the first type.
目标VNF为任一采用目标扩容策略的VNF。上述目标扩容策略包括:扩容第一类型的容器组需要满足的条件,以及满足扩容上述第一类型的容器组的条件时待扩容上述第一类型的容器组的个数(即F个)。上述F为大于0的整数,例如3、5等。在一些实施例中,VNF可根据各类型的容器组被配置的扩容策略以及各类型的容器组的扩容指标,确定待扩容的容器组的类型和个数。The target VNF is any VNF that adopts the target expansion strategy. The above-mentioned target capacity expansion strategy includes: conditions to be satisfied for expanding the container group of the first type, and the number of container groups to be expanded (ie, F) when the conditions for expanding the container group of the first type are satisfied. The above-mentioned F is an integer greater than 0, such as 3, 5, and the like. In some embodiments, the VNF may determine the type and number of container groups to be expanded according to the configured capacity expansion policies of various types of container groups and the capacity expansion indicators of various types of container groups.
703、目标VNF根据目标扩容策略,确定在扩容第一类型的容器组之前扩容K个第一类型的虚拟机。703. The target VNF determines, according to the target capacity expansion policy, to expand the capacity of K virtual machines of the first type before expanding the container group of the first type.
上述目标扩容策略还包括:在扩容第一类型的容器组之前扩容第一类型的虚拟机。上 述K为大于0的整数,上述K小于或等于上述F。上述第一类型的容器组为亲和性的。若目标VNF未满足扩容F个上述第一类型的容器组所需的虚拟机资源,则确定部署待扩容的F个第一类型的容器组需要扩容的第一类型的虚拟机的个数,并扩容相应个数的第一类型的虚拟机。举例来说,目标VNF中待扩容5(对应于F)个第一类型的容器组,目标VNF中只有2个第一类型的虚拟机可用于扩容第一类型的容器组,目标VNF根据目标扩容策略确定待扩容3(对应于K)个第一类型的虚拟机,每个第一类型的虚拟机中可扩容一个第一类型的容器组。The above target capacity expansion strategy further includes: expanding the first type of virtual machine before expanding the first type of container group. The above-mentioned K is an integer greater than 0, and the above-mentioned K is less than or equal to the above-mentioned F. The first type of container group described above is affinity. If the target VNF does not meet the virtual machine resources required to expand the F first-type container groups, determine the number of first-type virtual machines that need to be expanded when deploying the F first-type container groups to be expanded, and Expand a corresponding number of virtual machines of the first type. For example, if there are 5 (corresponding to F) container groups of the first type to be expanded in the target VNF, only 2 virtual machines of the first type in the target VNF can be used to expand the container group of the first type, and the target VNF is expanded according to the target The policy determines that 3 (corresponding to K) virtual machines of the first type are to be expanded, and each virtual machine of the first type can be expanded with one container group of the first type.
步骤703可替换为:目标VNF根据上述目标扩容策略,确定在扩容第一类型的容器组之前扩容F个上述第一类型的虚拟机,上述第一类型的容器组为非亲和性的。Step 703 may be replaced by: the target VNF determines, according to the target capacity expansion policy, to expand F virtual machines of the first type before expanding the container group of the first type, and the container group of the first type is non-affinity.
704、目标VNF向VNFM发送第三扩容信息。704. The target VNF sends third capacity expansion information to the VNFM.
上述第三扩容信息用于指示在目标VNF上扩容K(或者F)个上述第一类型的虚拟机。The above-mentioned third capacity expansion information is used to instruct to expand the capacity of K (or F) virtual machines of the above-mentioned first type on the target VNF.
705、目标VNF向VNFM发送第四扩容信息。705. The target VNF sends fourth capacity expansion information to the VNFM.
上述第四扩容信息用于指示在F个第一类型的虚拟机中扩容F个第一类型的容器组。图7描述了联动扩容第一类型的容器组和第一类型的虚拟机的方法流程。应理解,目标VNF可采用类似的方式联动扩容任意类型的容器组和其关联的虚拟机。The foregoing fourth capacity expansion information is used to indicate that F first type container groups are to be expanded in F first type virtual machines. FIG. 7 depicts a flow of a method for cooperating to expand a container group of the first type and a virtual machine of the first type. It should be understood that the target VNF can expand the capacity of any type of container group and its associated virtual machine in a similar manner.
在一个可能的实现方式中,上述目标扩容策略还包括:在扩容上述第一类型的容器组时扩容L(对应于扩容步长)个第二类型的容器组;上述第四扩容信息用于指示在上述第一类型的虚拟机中创建上述第一类型的容器组以及创建上述第二类型的容器组,上述第二类型为与上述第一类型关联的容器组类型。上述第一类型的容器组和上述第二类型的容器组可支持同一业务且可部署于同一虚拟机。应理解,第二类型(对应于容器组)和L分别为第一类型的容器组联动扩容的容器组的类型和个数。在该实现方式中,在扩容第一类型的容器组时扩容第二类型的容器组,可以充分利用虚拟机的资源。In a possible implementation manner, the target capacity expansion strategy further includes: when expanding the container group of the first type, expand L (corresponding to the capacity expansion step) container groups of the second type; the fourth capacity expansion information is used to indicate A container group of the first type is created in the virtual machine of the first type and a container group of the second type is created, where the second type is a container group type associated with the first type. The container group of the first type and the container group of the second type can support the same service and can be deployed on the same virtual machine. It should be understood that the second type (corresponding to the container group) and L are respectively the type and number of the container group that the first type of container group is linked to expand. In this implementation manner, when expanding the container group of the first type, the container group of the second type can be expanded, and the resources of the virtual machine can be fully utilized.
本申请实施例中,在确定待扩容第一类型的虚拟机之后才会扩容第一类型的虚拟机,以便扩容出的第一类型的虚拟机被充分的利用,能够提高资源利用率。In this embodiment of the present application, the first type of virtual machine will be expanded only after the first type of virtual machine to be expanded is determined, so that the expanded first type of virtual machine can be fully utilized and resource utilization can be improved.
下面结合附图来介绍本申请实施例提供的另一种自动扩容方法交互流程。该自动扩容方法交互流程描述了在实现容器组和虚拟机的联动扩容的过程中,VNFM、NFVO、VNF、PAAS以及VIM分别执行的操作。图8为本申请实施例提供的一种自动扩容方法交互流程。如图8所示,该方法包括:The following describes an interaction process of another automatic capacity expansion method provided by an embodiment of the present application with reference to the accompanying drawings. The interaction process of the automatic expansion method describes the operations performed by VNFM, NFVO, VNF, PAAS and VIM respectively in the process of realizing the linkage expansion of the container group and the virtual machine. FIG. 8 is an interaction flow of an automatic capacity expansion method provided by an embodiment of the present application. As shown in Figure 8, the method includes:
801、目标VNF通过MML配置命令配置扩容策略。801. The target VNF configures a capacity expansion policy through an MML configuration command.
目标VNF可以是NFV系统中任一VNF。在实际应用中,用户可通过MML配置命令配置任意类型的容器组的扩容策略。MML配置命令中的MML配置参数可包括以下一项或多项:1)需要自动扩容的容器组的类型,例如第二容器组类型;2)、自动扩容的容器组的类型关联的虚拟机类型(即联动扩容的虚拟机的类型);3)、选择监控的KPI类型,例如工作负担(workload);4)、KPI采样周期,例如10s;5)、扩容阈值,例如60%;6)、扩容步长,例如3,即每次扩容3个容器组;7)、持续时长,例如300s,即300s内采样的KPI(对应于资源使用状态采样指标)均超过扩容阈值,会触发系统自动扩容;8)、冷却时间,例如300s,即本次自动扩容任务完成后,300s内不再进行自动扩容;9)、需要联动扩容的容器组的类型和个数。The target VNF can be any VNF in the NFV system. In practical applications, users can configure expansion policies for any type of container group through MML configuration commands. The MML configuration parameters in the MML configuration command may include one or more of the following: 1) the type of the container group that needs to be automatically expanded, such as the second container group type; 2) the type of the automatically expanded container group associated with the virtual machine type (that is, the type of virtual machine for linkage expansion); 3), select the type of KPI to monitor, such as workload; 4), KPI sampling period, such as 10s; 5), expansion threshold, such as 60%; 6), Expansion step size, such as 3, that is, 3 container groups are expanded each time; 7) Duration, such as 300s, that is, the KPI (corresponding to the resource usage status sampling indicator) sampled within 300s exceeds the expansion threshold, which will trigger the system to automatically expand the capacity 8) Cooling time, such as 300s, that is, after the automatic expansion task is completed, no automatic expansion will be performed within 300s; 9) The type and number of container groups that need to be linked for expansion.
802、目标VNF周期性检测各类型的容器组的资源使用状态指标。802. The target VNF periodically detects resource usage status indicators of various types of container groups.
目标VNF可根据采样周期配置(即MML配置命令配置的KPI采样周期),周期性检测各类型的容器组的资源使用状态采样指标。在一些实施例中,目标VNF可先获取同一类型的各容器组的KPI值;在汇总所有同类型的容器组的KPI值后,取这些KPI值的平均值作为该类型的容器组的资源使用状态采样指标。若一个容器组只部署一个容器,则该容器的KPI值即为该容器组的KPI值。对于一个容器组部署多个容器的业务节点,目标VNF需要选取该容器组内各容器的KPI值中最大的KPI值作为该容器组的KPI值。The target VNF can periodically detect the resource usage status sampling indicators of various types of container groups according to the sampling period configuration (that is, the KPI sampling period configured by the MML configuration command). In some embodiments, the target VNF can first obtain the KPI values of each container group of the same type; after summarizing the KPI values of all container groups of the same type, the average value of these KPI values is taken as the resource usage of the container group of this type Status sampling metrics. If only one container is deployed in a container group, the KPI value of the container is the KPI value of the container group. For a service node that deploys multiple containers in a container group, the target VNF needs to select the largest KPI value among the KPI values of each container in the container group as the KPI value of the container group.
803、目标VNF根据各类型的容器组的资源使用状态指标和扩容策略,确定待扩容的容器组的类型和个数。803. The target VNF determines the type and number of container groups to be expanded according to the resource usage status indicators and capacity expansion policies of various types of container groups.
VNFM可根据任一种类型的容器组的资源使用状态指标以及该任一种类型的容器组被配置的扩容策略,判断是否需要扩容该任一种类型的容器组。举例来说,目标VNF根据第一类型的容器组的资源使用状态指标和目标扩容策略,确定待扩容F个第一类型的容器组,该目标扩容策略为第一类型的容器组被配置的扩容策略。在一些实施例中,目标VNF根据每种类型的容器组的资源使用状态指标(即两个或两个以上资源使用状态采样指标)与配置的扩容阈值进行对比,并根据其他监控配置判断是否需要发起扩容。以步骤801中MML配置参数为例,目标VNF每10s进行一次采样,连续采样30次。若目标VNF连续30次采样得到的第一类型的容器组的资源使用状态采样指标均超过60%,则确定待扩容该第一类型的容器组。扩容时,目标VNF可根据MML配置命令配置的扩容策略,先扩容第一类型的容器组关联的虚拟机(例如第一类型的虚拟机),然后根据该第一类型的容器组是否配置有联动的容器组,判断是否需要在扩容第一类型的容器组的同时联动扩容其他类型的容器组。若第一类型的容器组未配置有联动的容器组,则完成虚拟机的扩容后,在扩容出的虚拟机中扩容第一类型的虚拟机。若第一类型的容器组配置有联动的容器组,则完成虚拟机的扩容后,在扩容出的虚拟机中扩容第一类型的容器组以及联动的容器组。The VNFM can determine whether any type of container group needs to be expanded according to the resource usage status indicator of any type of container group and the configured expansion policy of the container group of any type. For example, the target VNF determines F container groups of the first type to be expanded according to the resource usage status indicator of the container group of the first type and the target expansion strategy, and the target expansion strategy is the configured capacity expansion of the container group of the first type. Strategy. In some embodiments, the target VNF compares the resource usage status indicators (that is, two or more resource usage status sampling indicators) of each type of container group with the configured expansion threshold, and determines whether it is necessary according to other monitoring configurations. Initiate expansion. Taking the MML configuration parameters in step 801 as an example, the target VNF is sampled once every 10s, and the samples are continuously sampled 30 times. If the resource usage status sampling indicators of the container group of the first type obtained by sampling the target VNF for 30 consecutive times all exceed 60%, it is determined that the container group of the first type is to be expanded. During capacity expansion, the target VNF can first expand the virtual machines associated with the first type of container group (for example, the first type of virtual machine) according to the expansion policy configured by the MML configuration command, and then according to whether the first type of container group is configured with linkage the container group, and determine whether it is necessary to expand the container group of other types simultaneously with the expansion of the container group of the first type. If the container group of the first type is not configured with a linked container group, after the expansion of the virtual machine is completed, the virtual machine of the first type is expanded in the expanded virtual machine. If the container group of the first type is configured with a linked container group, after the expansion of the virtual machine is completed, the container group of the first type and the linked container group are expanded in the expanded virtual machine.
804、目标VNF确定待扩容的虚拟机的类型和个数,并向VNFM发送虚拟机扩容通知。804. The target VNF determines the type and number of virtual machines to be expanded, and sends a virtual machine expansion notification to the VNFM.
虚拟机扩容通知(对应于第三扩容信息)用于指示目标VNF上需要扩容的虚拟机的类型和个数。The virtual machine capacity expansion notification (corresponding to the third capacity expansion information) is used to indicate the type and number of virtual machines that need to be expanded on the target VNF.
805、VNFM向VIM发送第二虚拟机创建请求。805. The VNFM sends a second virtual machine creation request to the VIM.
上述第二虚拟机创建请求用于指示VIM需要扩容的虚拟机的类型和个数。举例来说,虚拟机扩容通知指示目标VNF上需要扩容5个第一类型的虚拟机;VNFM向VIM发送第二虚拟机创建请求,该虚拟机创建请求指示VIM创建5个第一类型的虚拟机。The above-mentioned second virtual machine creation request is used to indicate the type and number of virtual machines that the VIM needs to expand. For example, the virtual machine expansion notification indicates that five virtual machines of the first type need to be expanded on the target VNF; the VNFM sends a second virtual machine creation request to the VIM, and the virtual machine creation request instructs the VIM to create five virtual machines of the first type. .
806、VIM按照第二虚拟机创建请求创建虚拟机,并向VNFM发送第二创建成功响应。806. The VIM creates a virtual machine according to the second virtual machine creation request, and sends a second creation success response to the VNFM.
VIM可按照第二虚拟机创建请求创建相应的虚拟机。第二创建成功响应指示已按照第二虚拟机创建请求成功创建虚拟机。The VIM may create a corresponding virtual machine according to the second virtual machine creation request. The second creation success response indicates that the virtual machine has been successfully created according to the second virtual machine creation request.
807、VNFM向PAAS发送第二纳管信息。807. The VNFM sends the second management information to the PAAS.
上述第二纳管信息用于通知PAAS纳管VIM创建的虚拟机。第二纳管信息可包含VIM在步骤806中创建的虚拟机的标识。The foregoing second management information is used to notify the PAAS to manage the virtual machine created by the VIM. The second managed information may contain the identification of the virtual machine created by the VIM in step 806 .
808、PAAS纳管VIM创建的虚拟机,并向VNFM发送第二纳管响应。808. The PAAS manages the virtual machine created by the VIM, and sends a second management response to the VNFM.
上述第二纳管响应指示PAAS已纳管VIM创建的虚拟机。在一些实施例中,第二虚拟 机纳管信息可包含VIM在步骤806创建的虚拟机的标识,PAAS可根据这些标识纳管相应的虚拟机。The above-mentioned second management response indicates that the PAAS has already managed the virtual machine created by the VIM. In some embodiments, the second virtual machine management information may include the identifiers of the virtual machines created by the VIM in step 806, and the PAAS may manage the corresponding virtual machines according to these identifiers.
809、VNFM向NFVO发送第二扩容事件结束通知。809. The VNFM sends a notification of the end of the second capacity expansion event to the NFVO.
上述第二扩容事件结束信息指示已完成虚拟机的扩容。The above-mentioned second capacity expansion event end information indicates that the capacity expansion of the virtual machine has been completed.
810、NFVO向VNFM发送第二扩容事件通知响应。810. The NFVO sends a second capacity expansion event notification response to the VNFM.
上述第二扩容事件通知响应指示NFVO已收到第二扩容事件结束信息。The above-mentioned second capacity expansion event notification response indicates that the NFVO has received the second capacity expansion event end information.
811、VNFM向目标VNF发送扩容完成通知。811. The VNFM sends a capacity expansion completion notification to the target VNF.
扩容完成通知指示已完成虚拟机的扩容。The resizing complete notification indicates that the resizing of the virtual machine is complete.
812、目标VNF向VNFM发送第二扩容通知。812. The target VNF sends a second capacity expansion notification to the VNFM.
上述第二扩容通知用于通知目标VNF上需要扩容的容器组的类型和个数。The above second capacity expansion notification is used to notify the type and number of container groups that need to be expanded on the target VNF.
813、VNFM向PAAS发送第二容器组创建请求。813. The VNFM sends a second container group creation request to the PAAS.
上述第二容器组创建请求用于指示PAAS待创建的容器组的类型和个数。The above-mentioned second container group creation request is used to indicate the type and number of container groups to be created by the PAAS.
814、PAAS根据第二容器组创建请求创建容器组,并向VNFM发送第二创建结果。814. The PAAS creates a container group according to the second container group creation request, and sends the second creation result to the VNFM.
上述第二创建结果可包含PAAS创建的容器组的标识。The above-mentioned second creation result may include the identifier of the container group created by the PAAS.
815、VNFM向目标VNF发送第二扩容列表。815. The VNFM sends the second capacity expansion list to the target VNF.
第二扩容列表指示PAAS成功创建的容器组。上述第二扩容列表可包含PAAS成功创建的容器组的标识。目标VNF根据第二扩容列表,可得到PAAS创建成功的容器组。The second expansion list indicates the container group successfully created by PAAS. The foregoing second capacity expansion list may include the identifiers of the container groups successfully created by the PAAS. The target VNF can obtain the container group successfully created by PAAS according to the second capacity expansion list.
816、目标VNF向VNFM发送第二通知响应,根据第二扩容列表扩容容器组,并向VNFM上报扩容进度。816. The target VNF sends a second notification response to the VNFM, expands the container group according to the second capacity expansion list, and reports the expansion progress to the VNFM.
上述第二通知响应用于指示接收到第二扩容列表。The above-mentioned second notification response is used to indicate that the second capacity expansion list is received.
817、目标VNF进行业务负载均衡。817. The target VNF performs service load balancing.
818、VNFM通过NFVO的UI界面显示自动扩容任务结果。818. VNFM displays the result of the automatic expansion task through the UI interface of NFVO.
自动扩容任务结果可包含扩容的虚拟机的类型和个数,以及扩容的容器组的类型和个数。The result of the automatic expansion task can include the type and number of the virtual machines to be expanded, and the type and number of the container group to be expanded.
本申请实施例中,目标VNF可以准确判断出需要扩容的容器组的类型和个数,以及虚拟机的类型和个数,能够提高资源利用率。In the embodiment of the present application, the target VNF can accurately determine the type and number of container groups that need to be expanded, and the type and number of virtual machines, which can improve resource utilization.
下面结合附图介绍本申请提供的由VNF发起的自动扩容方案。The following describes the automatic capacity expansion solution initiated by the VNF provided by the present application with reference to the accompanying drawings.
图9为本申请实施例提供的另一种自动缩容方法流程图。图9中的方法流程应用于包括VNFM和VNF的NFV系统,例如NFV参考架构。如图9所示,该方法包括:FIG. 9 is a flowchart of another automatic scaling method provided by an embodiment of the present application. The method flow in Figure 9 is applied to an NFV system including VNFM and VNF, such as the NFV reference architecture. As shown in Figure 9, the method includes:
901、目标VNF获取第一类型的容器组的资源使用状态指标。901. The target VNF acquires the resource usage status indicator of the container group of the first type.
第一类型的容器组的资源使用状态指标表征目标VNF中的第一类型的容器组的资源使用情况。目标VNF可周期性检测第一类型的容器组的资源使用状态采样指标。The resource usage status indicator of the container group of the first type represents the resource usage of the container group of the first type in the target VNF. The target VNF may periodically detect the resource usage status sampling indicator of the container group of the first type.
902、目标VNF根据目标缩容策略和第一类型的容器组的资源使用状态指标,确定待缩容F个第一类型的容器组。902. The target VNF determines F container groups of the first type to be scaled down according to the target scaling policy and the resource usage status indicator of the container group of the first type.
上述目标缩容策略包括:缩容上述第一类型的容器组需要满足的条件,以及满足缩容上述第一类型的容器组的条件时待缩容上述第一类型的容器组的个数(对应于缩容步长)。目标VNF为采用目标缩容策略的任一VNF。The above-mentioned target shrinking strategy includes: the conditions that need to be satisfied for shrinking the container group of the first type, and the number of container groups to be reduced when the conditions for shrinking the container group of the first type are satisfied (corresponding to at the shrinkage step). The target VNF is any VNF that adopts the target scaling policy.
903、目标VNF向VNFM发送第五缩容信息。903. The target VNF sends fifth capacity reduction information to the VNFM.
上述第五缩容信息用于指示缩容上述目标VNF中的F个第一类型的容器组。The fifth shrinkage information is used to instruct to shrink the F first type container groups in the target VNF.
904、目标VNF根据目标缩容策略,确定待缩容第一类型的虚拟机。904. The target VNF determines the virtual machine of the first type to be scaled down according to the target scaling policy.
上述目标缩容策略还包括:在缩容上述第一类型的容器组之后缩容上述第一类型的虚拟机。上述第一类型的容器组承载于上述第一类型的虚拟机。上述F和上述H均为大于0的整数,上述H小于或等于上述F。在一些实施例中,当第一类型的虚拟机承载的第一类型的容器组被缩容之后,若该第一类型的虚拟机必要继续运行,则缩容第一类型的虚拟机。举例来说,第一类型的虚拟机承载的第一类型的容器组提供某种服务,若第一类型的容器组被缩容之后,第一类型的虚拟机不能提供该种服务,目标VNF可确定缩容第一类型的虚拟机。又举例来说,第一类型的虚拟机承载的第一类型的容器组和其他类型的容器组共同提供某种服务,若第一类型的容器组被缩容之后,第一类型的虚拟机不能提供该种服务,目标VNF可确定缩容第一类型的虚拟机。又举例来说,5个第一类型的容器组部署于5个第一类型的虚拟机中,这5个第一类型的容器组被缩容之后,这5个第一类型的虚拟机中的2个虚拟机不再提供任何服务,另外3个继续提供服务,目标VNF可确定缩容2个不再提供任何服务的第一类型的虚拟机。The above-mentioned target scaling strategy further includes: scaling down the above-mentioned first type of virtual machines after the above-mentioned first type of container group is scaled down. The container group of the first type is hosted on the virtual machine of the first type. The above-mentioned F and the above-mentioned H are both integers greater than 0, and the above-mentioned H is less than or equal to the above-mentioned F. In some embodiments, after the container group of the first type hosted by the virtual machine of the first type is scaled down, if the virtual machine of the first type needs to continue to run, the virtual machine of the first type is scaled down. For example, the container group of the first type hosted by the virtual machine of the first type provides a certain service. If the container group of the first type is scaled down, the virtual machine of the first type cannot provide the service, and the target VNF can Determines to scale down the first type of virtual machine. For another example, the first type of container group hosted by the first type of virtual machine and other types of container groups jointly provide a certain service. If the first type of container group is scaled down, the first type of virtual machine cannot Providing this kind of service, the target VNF can determine to shrink the virtual machine of the first type. For another example, five container groups of the first type are deployed in five virtual machines of the first type. After the five container groups of the first type are scaled down, the Two virtual machines no longer provide any services, and the other three continue to provide services. The target VNF can determine to shrink the two virtual machines of the first type that no longer provide any services.
905、目标VNF向VNFM发送第六缩容信息。905. The target VNF sends sixth scaling information to the VNFM.
上述第六缩容信息用于指示缩容目标VNF上的第一类型的虚拟机。The above-mentioned sixth scaling information is used to indicate the first type of virtual machine on the scaling target VNF.
本申请实施例中,在缩容第一类型的容器组之后缩容第一类型的虚拟机(即承载第一类型的容器组的虚拟机),可以防止存在多余的虚拟机没有运行任何容器组产生资源浪费。In this embodiment of the present application, after shrinking the container group of the first type, the virtual machine of the first type (that is, the virtual machine that carries the container group of the first type) is reduced, which can prevent redundant virtual machines from running any container group. waste of resources.
下面结合附图来介绍本申请实施例提供的另一种自动缩容方法交互流程。该自动缩容方法交互流程描述了在实现容器组和虚拟机的联动缩容的过程中,VNFM、NFVO、VNF、PAAS以及VIM分别执行的操作。图10为本申请实施例提供的一种自动缩容方法交互流程。如图10所示,该方法包括:The following describes an interaction process of another automatic scaling method provided by an embodiment of the present application with reference to the accompanying drawings. The interaction process of the automatic scaling method describes the operations performed by VNFM, NFVO, VNF, PAAS, and VIM respectively in the process of realizing the linkage scaling between the container group and the virtual machine. FIG. 10 is an interaction flow of an automatic scaling method provided by an embodiment of the present application. As shown in Figure 10, the method includes:
1001、目标VNF通过MML配置命令配置缩容策略。1001. The target VNF configures a scaling policy through an MML configuration command.
在实际应用中,用户可通过MML配置命令配置任意类型的容器组的缩容策略。步骤1001的实现方式可与步骤801的实现方式类似。MML配置命令中的MML配置参数可包括以下一项或多项:1)需要自动缩容的容器组的类型;2)、自动缩容的容器组的类型关联的虚拟机类型(即联动缩容的虚拟机的类型);3)、选择监控的KPI类型,例如工作负担(workload);4)、KPI采样周期,例如10s;5)、缩容阈值,例如20%;6)、缩容步长,例如3,即每次缩容3个容器组;7)、持续时长,例如300s,即300s内采样的KPI均超过扩容阈值,会触发系统自动缩容;8)、冷却时间,例如300s,即本次自动缩容任务完成后,300s内不再进行自动缩容;9)、需要联动缩容的容器组的类型和个数。目标VNF可以是NFV系统中任一VNF。In practical applications, users can configure scaling policies for any type of container group through MML configuration commands. The implementation of step 1001 may be similar to that of step 801 . The MML configuration parameters in the MML configuration command may include one or more of the following: 1) the type of the container group that needs to be automatically scaled; 2) the type of the virtual machine associated with the type of the container group to be automatically scaled (that is, the linked scaling down type of virtual machine); 3), select the type of KPI to monitor, such as workload; 4), KPI sampling period, such as 10s; 5), shrink threshold, such as 20%; 6), shrink step Length, such as 3, that is, 3 container groups are scaled each time; 7), duration, such as 300s, that is, the KPI sampled within 300s exceeds the expansion threshold, which will trigger the system to automatically shrink; 8), cooling time, such as 300s , that is, after the automatic scaling task is completed, no automatic scaling will be performed within 300s; 9) The type and number of container groups that need to be linked with scaling. The target VNF can be any VNF in the NFV system.
1002、目标VNF周期性检测各类型的容器组的资源使用状态指标。1002. The target VNF periodically detects resource usage status indicators of various types of container groups.
步骤1002的实现方式可与步骤802的实现方式相同。The implementation of step 1002 may be the same as that of step 802 .
1003、目标VNF根据各类型的容器组的资源使用状态指标和缩容策略,确定待缩容的容器组的类型和个数。1003. The target VNF determines the type and number of container groups to be scaled down according to the resource usage status indicators and scaling policies of various types of container groups.
目标VNF可根据任一种类型的容器组的资源使用状态指标以及该任一种类型的容器组被配置的缩容策略,判断是否需要缩容该任一种类型的容器组。举例来说,目标VNF根 据第一类型的容器组的资源使用状态指标和目标缩容策略,确定待缩容K个第一类型的容器组,该目标缩容策略为第一类型的容器组被配置的缩容策略。在一些实施例中,目标VNF根据每种类型的容器组的资源使用状态指标(即两个或两个以上资源使用状态采样指标)与配置的缩容阈值进行对比,并根据其他监控配置判断是否需要发起缩容。以步骤1001中MML配置参数为例,目标VNF每10s进行一次采样,连续采样30次。若目标VNF连续30次采样的第一类型的容器组的资源使用状态采样指标均未超过缩容阈值(例如20%),则确定待缩容该第一类型的容器组。缩容时,目标VNF可根据MML配置命令配置的缩容策略,先缩容第一类型的容器组,并且根据该第一类型的容器组是否配置有联动的容器组,判断是否需要在缩容第一类型的容器组的同时联动缩容其他类型的容器组。若第一类型的容器组未配置有联动的容器组,则完成对第一类型的容器组的缩容后,缩容第一类型的虚拟机。举例来说,第一类型的容器组1未配置有联动的容器组,第一类型的容器组1承载于虚拟机1;完成对第一类型的容器组1的缩容后,缩容虚拟机1。若第一类型的容器组配置有联动的容器组,则缩容第一类型的容器组以及联动的容器组,缩容完成后缩容承载第一类型的容器组以及联动的容器组的虚拟机。举例来说,第一类型的容器组1配置有联动的容器组2,容器组1和容器组2承载于虚拟机1;完成对容器组1和容器组2的缩容后,缩容虚拟机1。The target VNF can determine whether any type of container group needs to be scaled down according to the resource usage status indicator of any type of container group and the configured scaling policy for the container group of any type. For example, the target VNF determines K container groups of the first type to be scaled down according to the resource usage status indicator of the container group of the first type and the target scaling policy, and the target scaling policy is that the container group of the first type is to be scaled down. The configured scaling policy. In some embodiments, the target VNF compares the resource usage status indicators of each type of container group (that is, two or more resource usage status sampling indicators) with the configured shrinkage threshold, and determines whether or not according to other monitoring configurations Scaling needs to be initiated. Taking the MML configuration parameters in step 1001 as an example, the target VNF is sampled once every 10s, and the samples are continuously sampled 30 times. If none of the resource usage status sampling indicators of the first type container group sampled by the target VNF for 30 consecutive times does not exceed the scaling threshold (for example, 20%), it is determined that the first type container group is to be scaled down. When scaling down, the target VNF can first scale down the first type of container group according to the scaling policy configured by the MML configuration command, and determine whether it needs to be scaled down according to whether the first type of container group is configured with a linked container group. The container group of the first type is simultaneously shrinking and shrinking other types of container groups. If the container group of the first type is not configured with a linked container group, after the container group of the first type is scaled down, the virtual machine of the first type is scaled down. For example, the first type of container group 1 is not configured with a linked container group, and the first type of container group 1 is hosted on the virtual machine 1; after the first type of container group 1 is scaled down, the virtual machine is scaled down 1. If the container group of the first type is configured with a linked container group, the container group of the first type and the linked container group will be scaled down, and the virtual machines carrying the container group of the first type and the linked container group will be scaled down after the scaling is completed. . For example, container group 1 of the first type is configured with linked container group 2, and container group 1 and container group 2 are hosted on virtual machine 1; after shrinking container group 1 and container group 2, shrink the virtual machine. 1.
1004、目标VNF进行业务迁移以及负载均衡。1004. The target VNF performs service migration and load balancing.
1005、目标VNF向VNFM发送第一缩容通知。1005. The target VNF sends a first shrinkage notification to the VNFM.
第一缩容通知用于指示目标VNF上需要缩容的容器组的类型和个数。The first scale-down notification is used to indicate the type and number of container groups that need to be scaled down on the target VNF.
1006、VNFM向PAAS发送第二缩容通知。1006. The VNFM sends a second capacity reduction notification to the PAAS.
第二缩容通知用于指示目标VNF上需要缩容的容器组的类型和个数。The second scale-down notification is used to indicate the type and number of container groups that need to be scaled down on the target VNF.
1007、PAAS根据第二缩容通知缩容容器组,并向VNFM发送第二缩容结果。1007. The PAAS notifies the shrinking container group according to the second shrinking, and sends the second shrinking result to the VNFM.
第二缩容结果指示PAAS成功缩容的容器组。第二缩容结果可包括被缩容的容器组的标识。举例来说,第二缩容通知用于指示PAAS需要缩容目标VNF上的5个第一类型的容器组和3个第二类型的容器组;PAAS缩容5个第一类型的容器组和3个第二类型的容器组。The second scale down result indicates the container group that PAAS scaled successfully. The second shrink result may include the identification of the shrinked container group. For example, the second scale-in notification is used to indicate that PAAS needs to scale down 5 first-type container groups and 3 second-type container groups on the target VNF; PAAS scales down 5 first-type container groups and 3 container groups of the second type.
1008、VNFM向目标VNF发送第四缩容列表。1008. The VNFM sends a fourth shrinking list to the target VNF.
第四缩容列表可包含目标VNF中缩容成功的容器组的标识。The fourth shrink list may include the identifiers of the container groups in the target VNF that have been successfully shrunk.
1009、目标VNF向VNFM发送第三通知响应,根据第四缩容列表缩容容器组,并向VNFM上报缩容进度。1009. The target VNF sends a third notification response to the VNFM, shrinks the container group according to the fourth shrinking list, and reports the shrinking progress to the VNFM.
第三通知响应用于指示接收到第四缩容列表。The third notification response is used to indicate that the fourth shrink list is received.
1010、目标VNF向VNFM发送第四缩容通知。1010. The target VNF sends a fourth capacity reduction notification to the VNFM.
第四缩容通知用于指示目标VNF上需要缩容的虚拟机的类型和个数。The fourth scale-down notification is used to indicate the type and number of virtual machines that need to be scaled down on the target VNF.
1011、VNFM向PAAS发送第二删除请求。1011. The VNFM sends a second deletion request to the PAAS.
第二删除请求用于请求删除缩容的虚拟机占用的虚拟机资源。The second deletion request is used for requesting deletion of virtual machine resources occupied by the downsized virtual machine.
1012、PAAS向VNFM发送第二删除响应。1012. The PAAS sends a second deletion response to the VNFM.
第二删除响应指示成功删除缩容的虚拟机占用的虚拟机资源。The second deletion response indicates that the virtual machine resources occupied by the downscaled virtual machine are successfully deleted.
1013、VNFM通知PAAS解纳管缩容的虚拟机。1013. The VNFM notifies the PAAS to de-host the scaled-down virtual machine.
1014、PAAS向VNFM发送第二解纳管响应。1014. The PAAS sends a second dismantling response to the VNFM.
上述第二解纳管响应指示PAAS完成对缩容的虚拟机的解纳管。The above-mentioned second decommissioning response instructs the PAAS to complete decommissioning of the scaled-down virtual machine.
1015、VNFM向目标VNF发送缩容完成通知。1015. The VNFM sends a reduction completion notification to the target VNF.
缩容完成通知指示缩容完成。The shrink complete notification indicates that the shrink is complete.
1016、VNFM向NFVO发送第一结束通知。1016. The VNFM sends a first end notification to the NFVO.
第一结束通知指示VNFM完成缩容。The first end notification instructs the VNFM to complete scaling down.
1017、NFVO向VNFM发送第一结束响应。1017. The NFVO sends a first end response to the VNFM.
第二结束响应指示NFVO接收到第一结束通知。The second end response indicates that the NFVO received the first end notification.
1018、VNFM通过NFVO的UI界面显示自动缩容任务结果。1018. VNFM displays the result of the automatic scaling task through the UI interface of NFVO.
自动缩容任务结果可包含缩容的虚拟机的类型和个数,以及缩容的容器组的类型和个数。The result of the automatic scaling task can include the type and number of the scaled virtual machines, and the type and number of the scaled container group.
本申请实施例中,VNFM可以准确判断出需要缩容的容器组的类型和个数,以及虚拟机的类型和个数,能够提高资源利用率。In the embodiment of the present application, the VNFM can accurately determine the type and number of container groups that need to be scaled down, and the type and number of virtual machines, which can improve resource utilization.
前面分别描述了由VNF发起的自动扩容方案(对应于图7和图8中的方法流程)以及由VNFM发起的自动缩容方案(对应于图8和图10中的方法流程)。在实际应用中,本申请提供的自动扩容方案和自动缩容方案可单独实施,也可以同时实施。在一些实施例中,VNF可根据各类型的容器组的资源使用状态指标,判断需要联动缩容还是联动缩容。在判断需要联动扩容时,执行自动扩容方法流程;在判断需要联动缩容时,执行自动缩容方法流程。The automatic capacity expansion scheme initiated by the VNF (corresponding to the method flow in FIG. 7 and FIG. 8 ) and the automatic capacity reduction scheme initiated by the VNFM (corresponding to the method flow in FIG. 8 and FIG. 10 ) are described above. In practical applications, the automatic capacity expansion solution and the automatic capacity reduction solution provided in this application can be implemented independently or simultaneously. In some embodiments, the VNF can determine whether it is necessary to scale down or scale down according to resource usage status indicators of various types of container groups. When it is determined that linkage expansion is required, the automatic expansion method process is executed; when it is determined that linkage reduction is required, the automatic capacity reduction method process is executed.
图11为本申请实施例提供的一种通信装置的结构示意图。图11中的通信装置为VNFM;该通信装置包括:FIG. 11 is a schematic structural diagram of a communication apparatus according to an embodiment of the present application. The communication device in Figure 11 is a VNFM; the communication device includes:
处理单元1101,用于从虚拟化网络功能描述VNFD中获取目标扩容策略,上述目标扩容策略包括:在扩容第一类型的容器组之前扩容第一类型的虚拟机,上述第一类型的容器组承载于上述第一类型的虚拟机;The processing unit 1101 is configured to obtain a target capacity expansion strategy from the virtualized network function description VNFD, where the above target capacity expansion strategy includes: expanding a first type of virtual machine before expanding a first type of container group, and the above-mentioned first type of container group bears in the above-mentioned first type of virtual machine;
处理单元1101,还用于根据上述目标扩容策略,确定待在目标虚拟化网络功能VNF上扩容上述第一类型的容器组;上述目标VNF为采用上述目标扩容策略的VNF;The processing unit 1101 is further configured to determine the container group of the first type to be expanded on the target virtualized network function VNF according to the above-mentioned target capacity expansion strategy; the above-mentioned target VNF is a VNF that adopts the above-mentioned target capacity expansion strategy;
处理单元1101,还用于根据上述目标扩容策略控制收发单元1102向虚拟化基础设施管理器VIM发送第一扩容信息,上述第一扩容信息用于指示在上述目标VNF创建上述第一类型的虚拟机;The processing unit 1101 is further configured to control the transceiver unit 1102 to send first capacity expansion information to the virtualization infrastructure manager VIM according to the above-mentioned target capacity expansion policy, where the above-mentioned first capacity expansion information is used to instruct the above-mentioned target VNF to create the above-mentioned first type of virtual machine ;
收发单元1102,还用于发送第二扩容信息,上述第二扩容信息用于指示在上述第一类型的虚拟机中创建上述第一类型的容器组。The transceiver unit 1102 is further configured to send second capacity expansion information, where the second capacity expansion information is used to instruct to create the above-mentioned first type of container group in the above-mentioned first type of virtual machine.
在一个可能的实现方式中,上述目标扩容策略还包括:满足扩容上述第一类型的容器组的条件时待扩容上述第一类型的容器组的个数;In a possible implementation manner, the target capacity expansion strategy further includes: the number of the container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met;
处理单元1101,具体用于根据上述目标扩容策略,确定待在上述目标VNF上扩容F个上述第一类型的容器组;在上述目标VNF未满足扩容F个上述第一类型的容器组所需的虚拟机资源的情况下,根据上述目标扩容策略,向上述VIM发送上述第一扩容信息;上述第一类型的容器组为亲和性的,上述第一扩容信息用于指示在上述目标VNF中扩容K个上述第一类型的虚拟机,上述第二扩容信息用于指示在F个上述第一类型的虚拟机中扩容F个上述第一类型的容器组,上述F和上述K为大于0的整数,上述F个上述第一类型的 虚拟机包括上述K个上述第一类型的虚拟机。The processing unit 1101 is specifically configured to determine, according to the above-mentioned target capacity expansion strategy, F number of container groups of the first type to be expanded on the above-mentioned target VNF; the above-mentioned target VNF does not meet the requirements for expanding the F number of container groups of the above-mentioned first type. In the case of virtual machine resources, send the first expansion information to the VIM according to the target expansion strategy; the container group of the first type is affinity, and the first expansion information is used to indicate expansion in the target VNF K virtual machines of the first type, the second capacity expansion information is used to instruct F virtual machines of the first type to expand the capacity of F container groups of the first type, and F and K are integers greater than 0 , the F virtual machines of the first type include the K virtual machines of the first type.
在一个可能的实现方式中,上述目标扩容策略还包括:满足扩容上述第一类型的容器组的条件时待扩容上述第一类型的容器组的个数;In a possible implementation manner, the target capacity expansion strategy further includes: the number of the container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met;
处理单元1101,具体用于根据上述目标扩容策略,确定待在上述目标VNF上扩容F个上述第一类型的容器组;根据上述目标扩容策略,确定待在上述目标VNF上扩容F个上述第一类型的虚拟机,并向上述VIM发送上述第一扩容信息,上述第一类型的容器组为非亲和性的;上述第一扩容信息用于指示在上述目标VNF上创建F个上述第一类型的虚拟机,上述第二扩容信息用于指示在上述F个上述第一类型的虚拟机中创建F个上述第一类型的容器组,上述F为大于0的整数。The processing unit 1101 is specifically configured to determine, according to the target capacity expansion strategy, F number of container groups of the first type to be expanded on the target VNF; type of virtual machine, and send the above-mentioned first capacity expansion information to the above-mentioned VIM, the container group of the above-mentioned first type is non-affinity; the above-mentioned first capacity expansion information is used to instruct the above-mentioned target VNF to create F above-mentioned first type of container groups The second capacity expansion information is used to instruct to create F container groups of the first type in the F virtual machines of the first type, where the F is an integer greater than 0.
在一个可能的实现方式中,收发单元1102,还用于接收来自上述VNF的资源使用状态指标,上述资源使用状态指标表征上述目标VNF中的上述第一类型的容器组的资源使用情况;In a possible implementation manner, the transceiver unit 1102 is further configured to receive a resource usage status indicator from the VNF, where the resource usage status indicator represents the resource usage of the container group of the first type in the target VNF;
处理单元1101,具体用于根据上述资源使用状态指标和上述目标扩容策略,确定待在上述目标VNF上扩容上述第一类型的容器组。The processing unit 1101 is specifically configured to determine the container group of the first type to be expanded on the target VNF according to the resource usage state indicator and the target capacity expansion policy.
在一个可能的实现方式中,处理单元1101,具体用于根据上述目标扩容策略,确定在扩容上述第一类型的容器组之前需要扩容上述第一类型的虚拟机;控制上述收发单元向上述VIM发送上述第一扩容信息。In a possible implementation manner, the processing unit 1101 is specifically configured to, according to the above target capacity expansion strategy, determine that the first type of virtual machine needs to be expanded before expanding the above-mentioned first type of container group; control the above-mentioned transceiver unit to send the above-mentioned VIM to the above-mentioned The above-mentioned first capacity expansion information.
在一个可能的实现方式中,上述通信装置还包括:输入单元1103,用于通过扩容策略配置界面接收用户针对上述第一类型的容器组的扩容策略配置指令;In a possible implementation manner, the above communication device further includes: an input unit 1103, configured to receive a user's capacity expansion policy configuration instruction for the above-mentioned first type of container group through a capacity expansion policy configuration interface;
处理单元1101,还用于根据上述扩容策略配置指令,配置得到上述目标扩容策略。The processing unit 1101 is further configured to configure and obtain the target capacity expansion policy according to the above-mentioned capacity expansion policy configuration instruction.
在一些实施例中,图11中的通信装置还可包括显示单元,用于显示扩容策略配置界面。In some embodiments, the communication device in FIG. 11 may further include a display unit for displaying a capacity expansion policy configuration interface.
图12为本申请实施例提供的另一种通信装置的结构示意图。图12中的通信装置为VNFM;该通信装置包括:FIG. 12 is a schematic structural diagram of another communication apparatus provided by an embodiment of the present application. The communication device in FIG. 12 is a VNFM; the communication device includes:
处理单元1201,用于从虚拟化网络功能描述VNFD中获取目标缩容策略,上述目标缩容策略包括:在缩容第一类型的容器组之后缩容第一类型的虚拟机,上述第一类型的容器组承载于上述第一类型的虚拟机;The processing unit 1201 is configured to obtain a target shrinking policy from the virtualized network function description VNFD, where the above-mentioned target shrinking policy includes: shrinking a first type of virtual machine after shrinking a container group of a first type, the above-mentioned first type The container group is hosted on the above-mentioned first type of virtual machine;
处理单元1201,用于根据上述目标缩容策略,确定待缩容目标虚拟化网络功能VNF上的上述第一类型的容器组;上述目标VNF为采用上述目标缩容策略的VNF;The processing unit 1201 is configured to determine the container group of the first type on the target virtualized network function VNF to be scaled down according to the above-mentioned target reduction strategy; the above-mentioned target VNF is a VNF that adopts the above-mentioned target reduction strategy;
收发单元1202,用于发送第一缩容信息,上述第一缩容信息用于指示缩容上述目标VNF中的上述第一类型的容器组;上述处理单元,还用于根据上述目标缩容策略,控制上述收发单元向虚拟化基础设施管理器VIM发送第二缩容信息,上述第二缩容信息用于指示缩容上述目标VNF中的上述第一类型的虚拟机。The transceiver unit 1202 is configured to send first shrinkage information, where the first shrinkage information is used to instruct to shrink the container group of the first type in the target VNF; the processing unit is further configured to reduce the size according to the target shrinkage policy , controlling the transceiver unit to send second capacity reduction information to the virtualization infrastructure manager VIM, where the second capacity reduction information is used to instruct the first type of virtual machine in the target VNF to be scaled down.
在一个可能的实现方式中,收发单元1202,还用于向上述目标VNF发送第三缩容信息,上述第三缩容信息用于确认是否可缩容上述目标VNF中的上述第一类型的容器组;接收来自上述目标VNF的第四缩容信息,上述第四缩容信息指示可缩容上述目标VNF中的上述第一类型的容器组。In a possible implementation manner, the transceiver unit 1202 is further configured to send third capacity reduction information to the target VNF, where the third capacity reduction information is used to confirm whether the container of the first type in the target VNF can be scaled down group; receiving fourth scaling information from the target VNF, where the fourth scaling information indicates that the container group of the first type in the target VNF can be scaled down.
在一个可能的实现方式中,收发单元1202,还用于接收来自上述目标VNF的资源使用状态指标,上述资源使用状态指标表征上述目标VNF中的上述第一类型的容器组的资源 使用情况;In a possible implementation, the transceiver unit 1202 is further configured to receive a resource usage status indicator from the above-mentioned target VNF, where the above-mentioned resource usage status indicator represents the resource usage of the container group of the above-mentioned first type in the above-mentioned target VNF;
处理单元1201,具体用于根据上述资源使用状态指标和上述目标缩容策略,确定待缩容上述目标VNF中的上述第一类型的容器组。The processing unit 1201 is specifically configured to determine the container group of the first type in the target VNF to be scaled down according to the resource usage state indicator and the target scaling policy.
在一个可能的实现方式中,上述通信装置还包括:输入单元1203,用于接收用户针对缩容策略配置界面中的上述第一类型的容器组的缩容策略配置指令;In a possible implementation manner, the above-mentioned communication apparatus further includes: an input unit 1203, configured to receive a user's scaling policy configuration instruction for the container group of the first type in the scaling policy configuration interface;
处理单元1201,还用于根据上述扩容策略配置指令,配置得到上述目标缩容策略。The processing unit 1201 is further configured to configure and obtain the target capacity reduction policy according to the above-mentioned capacity expansion policy configuration instruction.
在一些实施例中,图12中的通信装置还可包括显示单元,用于显示缩容策略配置界面。In some embodiments, the communication device in FIG. 12 may further include a display unit for displaying a scaling policy configuration interface.
图11中的通信装置和图12中的通信装置可以是两个不同的装置,也可以是同一个装置。应理解,若图11中的通信装置和图12中的通信装置为同一装置,处理单元1101与处理单元1201为同一单元,收发单元1102和收发单元1202为同一单元,输入单元1103和输入单元1203为同一单元。The communication device in FIG. 11 and the communication device in FIG. 12 may be two different devices, or may be the same device. It should be understood that if the communication device in FIG. 11 and the communication device in FIG. 12 are the same device, the processing unit 1101 and the processing unit 1201 are the same unit, the transceiver unit 1102 and the transceiver unit 1202 are the same unit, and the input unit 1103 and the input unit 1203 are the same unit. for the same unit.
图13为本申请实施例提供的另一种通信装置的结构示意图。图13中的通信装置为VNF对应的实体;该通信装置包括:FIG. 13 is a schematic structural diagram of another communication apparatus provided by an embodiment of the present application. The communication device in FIG. 13 is the entity corresponding to the VNF; the communication device includes:
收发单元1301,用于接收来自上述VNFM的第三缩容信息,上述第三缩容信息用于确认是否可缩容上述目标VNF中的第一类型的容器组;The transceiver unit 1301 is configured to receive third shrinkage information from the VNFM, where the third shrinkage information is used to confirm whether the container group of the first type in the target VNF can be reduced;
处理单元1302,还用于将上述第一类型的容器组执行的业务迁移出上述第一类型的容器组;The processing unit 1302 is further configured to migrate the services performed by the container group of the first type out of the container group of the first type;
收发单元1301,还用于向上述VNFM发送第四缩容信息,上述第四缩容信息指示可缩容上述目标VNF中的上述第一类型的容器组。The transceiver unit 1301 is further configured to send fourth capacity reduction information to the above-mentioned VNFM, where the above-mentioned fourth capacity reduction information indicates that the container group of the above-mentioned first type in the above-mentioned target VNF can be scaled down.
图14为本申请实施例提供的另一种通信装置的结构示意图。图14中的通信装置为目标VNF对应的实体;该通信装置包括:FIG. 14 is a schematic structural diagram of another communication apparatus provided by an embodiment of the present application. The communication device in Figure 14 is the entity corresponding to the target VNF; the communication device includes:
处理单元1401,用于根据目标扩容策略,确定待扩容第一类型的容器组;根据上述目标扩容策略,确定在扩容上述第一类型的容器组之前扩容第一类型的虚拟机;The processing unit 1401 is configured to determine the container group of the first type to be expanded according to the target capacity expansion strategy; according to the target capacity expansion strategy, determine to expand the virtual machine of the first type before expanding the container group of the first type;
收发单元1402,用于向上述VNFM发送第三扩容信息,上述第三扩容信息用于指示在目标VNF上扩容上述第一类型的虚拟机;向上述VNFM发送第四扩容信息,上述第四扩容信息用于指示在上述第一类型的虚拟机中创建上述第一类型的容器组。The transceiver unit 1402 is configured to send the third capacity expansion information to the above-mentioned VNFM, where the above-mentioned third capacity expansion information is used to instruct the virtual machine of the first type to be expanded on the target VNF; send the fourth capacity expansion information to the above-mentioned VNFM, the above-mentioned fourth capacity expansion information It is used to instruct to create the container group of the first type in the virtual machine of the first type.
在一个可能的实现方式中,上述目标扩容策略还包括:满足扩容上述第一类型的容器组的条件时待扩容上述第一类型的容器组的个数;In a possible implementation manner, the target capacity expansion strategy further includes: the number of the container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met;
处理单元1401,具体用于根据上述目标扩容策略,确定待扩容F个上述第一类型的容器组;根据上述目标扩容策略,确定在扩容上述第一类型的容器组之前扩容K个上述第一类型的虚拟机;上述第一类型的容器组为亲和性的,上述第三扩容信息用于指示在上述目标VNF上扩容K个上述第一类型的虚拟机,上述第四扩容信息用于指示在F个上述第一类型的虚拟机中扩容F个上述第一类型的容器组,上述F和上述K均为大于0的整数,上述F个上述第一类型的虚拟机包括上述K个上述第一类型的虚拟机。The processing unit 1401 is specifically configured to determine F container groups of the first type to be expanded according to the target expansion strategy; and determine to expand K container groups of the first type before expanding the container group of the first type according to the target expansion strategy The above-mentioned first type of container group is affinity, the above-mentioned third capacity expansion information is used to instruct the expansion of K virtual machines of the above-mentioned first type on the above-mentioned target VNF, and the above-mentioned fourth capacity expansion information is used to indicate that in the The F virtual machines of the first type are expanded to F container groups of the first type, the F and K are both integers greater than 0, and the F virtual machines of the first type include the K type of virtual machine.
在一个可能的实现方式中,上述目标扩容策略还包括:满足扩容上述第一类型的容器组的条件时待扩容上述第一类型的容器组的个数;In a possible implementation manner, the target capacity expansion strategy further includes: the number of the container groups of the first type to be expanded when the conditions for expanding the container group of the first type are met;
处理单元1401,具体用于根据上述目标扩容策略,确定待扩容F个上述第一类型的容器组;根据上述目标扩容策略,确定在扩容上述第一类型的容器组之前扩容F个上述第一 类型的虚拟机,上述第一类型的容器组为非亲和性的;上述第三扩容信息用于指示在上述目标VNF上扩容F个上述第一类型的虚拟机,上述第四扩容信息用于指示在上述F个上述第一类型的虚拟机中扩容F个上述第一类型的容器组。The processing unit 1401 is specifically configured to determine F container groups of the first type to be expanded according to the target capacity expansion strategy; and determine to expand F container groups of the first type before expanding the container group of the first type according to the target capacity expansion strategy The above-mentioned first type of container group is non-affinity; the above-mentioned third capacity expansion information is used to indicate that F virtual machines of the above-mentioned first type are to be expanded on the above-mentioned target VNF, and the above-mentioned fourth capacity expansion information is used to indicate F number of container groups of the first type are expanded in the F virtual machines of the first type.
在一个可能的实现方式中,上述处理单元1401,还用于获取资源使用状态指标,上述资源使用状态指标表征上述目标VNF中的上述第一类型的容器组的资源使用情况;In a possible implementation manner, the above-mentioned processing unit 1401 is further configured to obtain a resource usage status indicator, where the above-mentioned resource usage status indicator represents the resource usage of the above-mentioned first type of container group in the above-mentioned target VNF;
处理单元1401,具体用于根据上述资源使用状态指标和上述目标扩容策略,确定待扩容上述第一类型的容器组。The processing unit 1401 is specifically configured to determine the container group of the first type to be expanded according to the above resource usage state indicator and the above target capacity expansion strategy.
在一个可能的实现方式中,处理单元1401,还用于通过人机语言MML配置命令配置上述目标扩容策略。In a possible implementation manner, the processing unit 1401 is further configured to configure the above-mentioned target capacity expansion strategy through a man-machine language MML configuration command.
图15为本申请实施例提供的另一种通信装置的结构示意图。图15中的通信装置为目标VNF对应的实体;该通信装置包括:FIG. 15 is a schematic structural diagram of another communication apparatus provided by an embodiment of the present application. The communication device in Figure 15 is the entity corresponding to the target VNF; the communication device includes:
处理单元1501,用于根据目标缩容策略,确定待缩容第一类型的容器组;根据上述目标缩容策略,确定在缩容上述第一类型的容器组之后缩容第一类型的虚拟机,上述目标缩容策略还包括:在缩容上述第一类型的容器组之后缩容上述第一类型的虚拟机;The processing unit 1501 is configured to determine a container group of the first type to be scaled down according to the target shrinkage policy; and determine to shrink the virtual machine of the first type after shrinking the container group of the first type according to the target shrinkage policy , the above-mentioned target shrinking strategy further includes: shrinking the above-mentioned first type of virtual machine after shrinking the above-mentioned first type of container group;
收发单元1502,向上述VNFM发送第五缩容信息,上述第五缩容信息用于指示缩容上述目标VNF中的上述第一类型的容器组;向上述VNFM发送第六缩容信息,上述第六缩容信息用于指示缩容目标NFV中的上述第一类型的虚拟机,上述第一类型的容器组承载于上述第一类型的虚拟机。The transceiver unit 1502 sends fifth shrinkage information to the VNFM, where the fifth shrinkage information is used to instruct to shrink the container group of the first type in the target VNF; The six shrinkage information is used to indicate the virtual machine of the first type in the shrinking target NFV, and the container group of the first type is carried on the virtual machine of the first type.
在一个可能的实现方式中,上述目标缩容策略还包括:满足缩容上述第一类型的容器组的条件时待缩容上述第一类型的容器组的个数;In a possible implementation manner, the above-mentioned target shrinking strategy further includes: the number of the container groups of the first type to be reduced when the conditions for shrinking the container group of the first type are met;
处理单元1501,具体用于根据目标缩容策略,确定待缩容F个第一类型的容器组;根据上述目标缩容策略,确定在缩容上述第一类型的容器组之后缩容H个上述第一类型的虚拟机;上述第五缩容信息用于指示缩容上述目标VNF中的F个上述第一类型的容器组,上述第六缩容信息用于指示缩容上述目标VNF中的H个上述第一类型的虚拟机,上述F和上述H均为大于0的整数,上述H小于或等于上述F。The processing unit 1501 is specifically configured to determine, according to the target shrinking strategy, F first-type container groups to be shrunk; according to the foregoing target shrinking strategy, determine to shrink the H above-mentioned container groups after shrinking the first-type container group. A virtual machine of the first type; the fifth shrinkage information is used to instruct to shrink the F container groups of the first type in the target VNF, and the sixth shrinkage information is used to instruct the shrinkage of H in the target VNF. A virtual machine of the first type described above, the above F and the above H are both integers greater than 0, and the above H is less than or equal to the above F.
在一个可能的实现方式中,上述处理单元1501,还用于获取资源使用状态指标,上述资源使用状态指标表征上述目标VNF中的上述第一类型的容器组的资源使用情况;In a possible implementation manner, the processing unit 1501 is further configured to obtain a resource usage status indicator, where the resource usage status indicator represents the resource usage of the container group of the first type in the target VNF;
处理单元1501,具体用于根据上述资源使用状态指标和上述目标缩容策略,确定待缩容上述第一类型的容器组。The processing unit 1501 is specifically configured to determine the container group of the first type to be scaled down according to the resource usage state indicator and the target scaling policy.
在一个可能的实现方式中,处理单元1501,还用于通过人机语言MML配置命令配置上述目标缩容策略。In a possible implementation manner, the processing unit 1501 is further configured to configure the above-mentioned target scaling policy through a man-machine language MML configuration command.
图14中的通信装置和图15中的通信装置可以是两个不同的装置,也可以是同一个装置。应理解,若图14中的通信装置和图15中的通信装置为同一装置,处理单元1401与处理单元1501为同一单元,收发单元1402和收发单元1502为同一单元。The communication device in FIG. 14 and the communication device in FIG. 15 may be two different devices, or may be the same device. It should be understood that if the communication device in FIG. 14 and the communication device in FIG. 15 are the same device, the processing unit 1401 and the processing unit 1501 are the same unit, and the transceiver unit 1402 and the transceiver unit 1502 are the same unit.
图16为本申请实施例提供的另一种通信装置的结构示意图。图16中的通信装置可以是VNFM,也可以是VNF对应的实体。FIG. 16 is a schematic structural diagram of another communication apparatus provided by an embodiment of the present application. The communication device in FIG. 16 may be a VNFM, or may be an entity corresponding to a VNF.
如图16所示。该通信装置160包括至少一个处理器1620,用于实现本申请实施例提供的方法中VNFM的功能;或者,用于实现本申请实施例提供的方法中目标VNF的功能。 该通信装置160还可以包括收发器1610。收发器用于通过传输介质和其他设备/装置进行通信。处理器1620利用收发器1610收发数据和/或信令,并用于实现上述方法实施例中的方法。As shown in Figure 16. The communication apparatus 160 includes at least one processor 1620, configured to implement the function of the VNFM in the method provided by the embodiment of the present application; or, configured to implement the function of the target VNF in the method provided by the embodiment of the present application. The communication device 160 may also include a transceiver 1610 . Transceivers are used to communicate with other devices/devices over a transmission medium. The processor 1620 uses the transceiver 1610 to send and receive data and/or signaling, and is used to implement the methods in the above method embodiments.
可选的,通信装置160还可以包括至少一个存储器1630,用于存储程序指令和/或数据。存储器1630和处理器1620耦合。本申请实施例中的耦合是装置、单元或模块之间的间接耦合或通信连接,可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。处理器1620可能和存储器1630协同操作。处理器1620可能执行存储器1630中存储的程序指令。该至少一个存储器中的至少一个可以包括于处理器中。Optionally, the communication device 160 may further include at least one memory 1630 for storing program instructions and/or data. Memory 1630 and processor 1620 are coupled. The coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, which may be in electrical, mechanical or other forms, and is used for information exchange between devices, units or modules. Processor 1620 may cooperate with memory 1630. Processor 1620 may execute program instructions stored in memory 1630 . At least one of the at least one memory may be included in the processor.
本申请实施例中不限定上述收发器1610、处理器1620以及存储器1630之间的具体连接介质。本申请实施例在图16中以存储器1630、处理器1620以及收发器1610之间通过总线1640连接,总线在图16中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图16中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The specific connection medium between the transceiver 1610, the processor 1620, and the memory 1630 is not limited in the embodiments of the present application. In the embodiment of the present application, the memory 1630, the processor 1620, and the transceiver 1610 are connected through a bus 1640 in FIG. 16. The bus is represented by a thick line in FIG. 16, and the connection between other components is only for schematic illustration. , is not limited. The bus can be divided into address bus, data bus, control bus and so on. For ease of presentation, only one thick line is shown in FIG. 16, but it does not mean that there is only one bus or one type of bus.
在本申请实施例中,处理器可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In this embodiment of the present application, the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, which can implement or The methods, steps and logic block diagrams disclosed in the embodiments of this application are executed. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
可理解,在通信装置为160为VNFM时,收发器1610实现收发单元1102和/收发单元1202的功能,处理器1620实现处理单元1101和/或处理单元1201的功能。在通信装置为160为VNF对应的实体时,收发器1610实现收发单元1402和/或收发单元1502的功能,处理器1620实现处理单元1401和/或处理单元1501的功能。It can be understood that when the communication device 160 is a VNFM, the transceiver 1610 implements the functions of the transceiver unit 1102 and/or the transceiver unit 1202 , and the processor 1620 implements the functions of the processing unit 1101 and/or the processing unit 1201 . When the communication device 160 is an entity corresponding to the VNF, the transceiver 1610 implements the functions of the transceiver unit 1402 and/or the transceiver unit 1502 , and the processor 1620 implements the functions of the processing unit 1401 and/or the processing unit 1501 .
本申请还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机代码,当计算机代码在计算机上运行时,使得计算机执行上述实施例的方法。The present application also provides a computer-readable storage medium, where computer codes are stored in the computer-readable storage medium, and when the computer codes are executed on the computer, the computer is made to execute the methods of the above embodiments.
本申请还提供一种计算机程序产品,该计算机程序产品包括计算机代码或计算机程序,当该计算机代码或计算机程序在计算机上运行时,使得上述实施例中的通信方法被执行。The present application also provides a computer program product, the computer program product includes computer code or computer program, when the computer code or computer program is run on a computer, the communication method in the above embodiment is executed.
本申请还提供一种NFV系统,包括VNFM、VNF、PAAS、VIM以及NFVO。The present application also provides an NFV system, including VNFM, VNF, PAAS, VIM and NFVO.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. should be covered within the scope of protection of this application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims (20)

  1. 一种自动扩容方法,其特征在于,应用于包括虚拟化网络管理器VNFM的网络功能虚拟化NFV系统,所述方法包括:An automatic capacity expansion method, characterized in that it is applied to a network function virtualization NFV system including a virtualized network manager VNFM, the method comprising:
    所述VNFM从虚拟化网络功能描述VNFD中获取目标扩容策略,所述目标扩容策略包括:在扩容第一类型的容器组之前扩容第一类型的虚拟机,所述第一类型的容器组承载于所述第一类型的虚拟机;The VNFM obtains a target capacity expansion policy from the virtualized network function description VNFD, where the target capacity expansion policy includes: expanding a first type of virtual machine before expanding a first type of container group, and the first type of container group is hosted on the virtual machine of the first type;
    所述VNFM根据所述目标扩容策略,确定待在目标虚拟化网络功能VNF上扩容所述第一类型的容器组;所述目标VNF为采用所述目标扩容策略的VNF;The VNFM determines, according to the target expansion strategy, the container group of the first type to be expanded on the target virtualized network function VNF; the target VNF is a VNF that adopts the target expansion strategy;
    所述VNFM根据所述目标扩容策略,向虚拟化基础设施管理器VIM发送第一扩容信息,所述第一扩容信息用于指示在所述目标VNF上创建所述第一类型的虚拟机;The VNFM sends first capacity expansion information to the virtualization infrastructure manager VIM according to the target capacity expansion policy, where the first capacity expansion information is used to instruct to create the first type of virtual machine on the target VNF;
    所述VNFM发送第二扩容信息,所述第二扩容信息用于指示在所述第一类型的虚拟机中创建所述第一类型的容器组。The VNFM sends second capacity expansion information, where the second capacity expansion information is used to instruct to create a container group of the first type in the virtual machine of the first type.
  2. 根据权利要求1所述的方法,其特征在于,所述目标扩容策略还包括:在扩容所述第一类型的容器组时扩容第二类型的容器组;所述第二扩容信息还用于指示在所述第一类型的虚拟机中创建所述第二类型的容器组。The method according to claim 1, wherein the target capacity expansion strategy further comprises: when expanding the container group of the first type, expanding the container group of the second type; the second capacity expansion information is further used to indicate The container group of the second type is created in the virtual machine of the first type.
  3. 根据权利要求1或2所述的方法,其特征在于,所述VNFM根据所述目标扩容策略,确定待在目标虚拟化网络功能VNF上扩容所述第一类型的容器组之前,所述方法还包括:The method according to claim 1 or 2, characterized in that, before the VNFM determines, according to the target capacity expansion policy, to expand the container group of the first type on the target virtualized network function VNF, the method further comprises: include:
    所述VNFM接收来自所述目标VNF的资源使用状态指标,所述资源使用状态指标表征所述目标VNF中的所述第一类型的容器组的资源使用情况;receiving, by the VNFM, a resource usage status indicator from the target VNF, where the resource usage status indicator represents the resource usage of the container group of the first type in the target VNF;
    所述VNFM根据所述目标扩容策略,确定待在目标虚拟化网络功能VNF上扩容所述第一类型的容器组包括:The VNFM determines, according to the target capacity expansion policy, that the container group of the first type to be expanded on the target virtualized network function VNF includes:
    所述VNFM根据所述资源使用状态指标和所述目标扩容策略,确定待在所述目标VNF上扩容所述第一类型的容器组。The VNFM determines, according to the resource usage status indicator and the target capacity expansion policy, the container group of the first type to be expanded on the target VNF.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述资源使用状态指标包括两个或两个以上资源使用状态采样指标,所述两个或两个以上资源使用状态采样指标表征所述目标VNF中的所述第一类型的容器组在同一时间段内的两个或两个以上时刻的资源使用情况;所述VNFM根据所述资源使用状态指标和所述目标扩容策略,确定待在所述目标VNF上扩容所述第一类型的容器组包括:The method according to any one of claims 1 to 3, wherein the resource usage status indicator comprises two or more resource usage status sampling indicators, and the two or more resource usage status sampling indicators Characterize the resource usage of the container group of the first type in the target VNF at two or more moments in the same time period; the VNFM, according to the resource usage status indicator and the target expansion strategy, Determining that the container group of the first type to be scaled on the target VNF includes:
    所述VNFM在所述两个或两个以上所述资源使用状态采样指标均超过扩容阈值的情况下,确定待在所述目标VNF上扩容所述第一类型的容器组。The VNFM determines that the container group of the first type to be expanded on the target VNF is to be expanded in the case that the two or more than two sampling indicators of the resource usage state all exceed the capacity expansion threshold.
  5. 一种自动缩容方法,其特征在于,应用于包括虚拟化网络管理器VNFM的网络功能虚拟化NFV系统,所述方法包括:An automatic scaling method, characterized in that it is applied to a network function virtualization NFV system including a virtualized network manager VNFM, the method comprising:
    所述VNFM从虚拟化网络功能描述VNFD中获取目标缩容策略,所述目标缩容策略包 括:在缩容所述第一类型的容器组之后缩容第一类型的虚拟机,所述第一类型的容器组承载于所述第一类型的虚拟机;The VNFM obtains a target scaling policy from the virtualized network function description VNFD, where the target scaling policy includes: scaling down the first type of virtual machine after scaling down the first type of container group, the first A container group of a type is hosted on the virtual machine of the first type;
    所述VNFM根据所述目标缩容策略,确定待缩容目标虚拟化网络功能VNF上的所述第一类型的容器组;所述目标VNF为采用所述目标缩容策略的VNF;The VNFM determines the container group of the first type on the target virtualized network function VNF to be scaled down according to the target capacity reduction policy; the target VNF is a VNF that adopts the target capacity reduction policy;
    所述VNFM发送第一缩容信息,所述第一缩容信息用于指示缩容所述目标VNF中的所述第一类型的容器组;sending, by the VNFM, first shrinking information, where the first shrinking information is used to instruct to shrink the container group of the first type in the target VNF;
    所述VNFM根据所述目标缩容策略,向虚拟化基础设施管理器VIM发送第二缩容信息,所述第二缩容信息用于指示缩容所述目标VNF中的所述第一类型的虚拟机。The VNFM sends second scaling information to the virtualization infrastructure manager VIM according to the target scaling policy, where the second scaling information is used to instruct scaling down of the first type in the target VNF. virtual machine.
  6. 根据权利要求5所述的方法,其特征在于,所述目标缩容策略还包括:在缩容所述第一类型的容器组时缩容第二类型的容器组;所述第一缩容信息还用于指示缩容所述目标VNF中的所述第二类型的容器组,所述第二类型的容器组承载于所述第一类型的虚拟机。The method according to claim 5, wherein the target shrinking strategy further comprises: shrinking the container group of the second type when shrinking the container group of the first type; the first shrinking information It is also used to instruct to shrink the container group of the second type in the target VNF, where the container group of the second type is hosted on the virtual machine of the first type.
  7. 根据权利要求4或5所述的方法,其特征在于,所述VNFM发送第一缩容信息之前,所述方法还包括:The method according to claim 4 or 5, wherein before the VNFM sends the first shrinkage information, the method further comprises:
    所述VNFM向所述目标VNF发送第三缩容信息,所述第三缩容信息用于确认是否可缩容所述目标VNF中的所述第一类型的容器组;The VNFM sends third scaling information to the target VNF, where the third scaling information is used to confirm whether the container group of the first type in the target VNF can be scaled down;
    所述VNFM接收来自所述目标VNF的第四缩容信息,所述第四缩容信息指示可缩容所述目标VNF中的所述第一类型的容器组。The VNFM receives fourth scaling information from the target VNF, the fourth scaling information indicating that the container group of the first type in the target VNF can be scaled down.
  8. 根据权利要求5至7任一项所述的方法,其特征在于,所述VNFM根据所述目标缩容策略,确定待缩容目标虚拟化网络功能VNF上的所述第一类型的容器组之前,所述方法还包括:The method according to any one of claims 5 to 7, wherein the VNFM determines, according to the target scaling policy, before the container group of the first type on the target virtualized network function VNF to be scaled down , the method also includes:
    所述VNFM接收来自所述目标VNF的资源使用状态指标,所述资源使用状态指标表征所述目标VNF中的所述第一类型的容器组的资源使用情况;receiving, by the VNFM, a resource usage status indicator from the target VNF, where the resource usage status indicator represents the resource usage of the container group of the first type in the target VNF;
    所述VNFM根据所述目标缩容策略,确定待缩容目标虚拟化网络功能VNF上的所述第一类型的容器组包括:The VNFM determines, according to the target capacity reduction policy, that the container group of the first type on the target virtualized network function VNF to be scaled down includes:
    所述VNFM根据所述资源使用状态指标和所述目标缩容策略,确定待缩容所述目标VNF中的所述第一类型的容器组。The VNFM determines the container group of the first type in the target VNF to be scaled down according to the resource usage status indicator and the target scaling policy.
  9. 根据权利要求8所述的方法,其特征在于,所述资源使用状态指标包括两个或两个以上资源使用状态采样指标,所述两个或两个以上资源使用状态采样指标表征所述目标VNF中的所述第一类型的容器组在同一时间段内的两个或两个以上时刻的资源使用情况;所述VNFM根据所述资源使用状态指标和所述目标缩容策略,确定待缩容所述目标VNF中的所述第一类型的容器组包括:The method according to claim 8, wherein the resource usage status indicator comprises two or more resource usage status sampling indicators, and the two or more resource usage status sampling indicators represent the target VNF The resource usage of the container group of the first type at two or more moments in the same time period; the VNFM determines the to-be-reduced capacity according to the resource usage status indicator and the target reduction strategy The container group of the first type in the target VNF includes:
    所述VNFM在所述两个或两个以上资源使用状态采样指标均未超过缩容阈值的情况下,确定待缩容所述目标VNF中的所述第一类型的容器组。The VNFM determines that the container group of the first type in the target VNF is to be scaled down when none of the two or more resource usage status sampling indicators exceeds the scaling threshold.
  10. 一种通信装置,应用于包括VNFM的网络功能虚拟化NFV系统,其特征在于,包括:A communication device, applied to a network function virtualization NFV system including VNFM, is characterized in that, comprising:
    处理单元,用于从虚拟化网络功能描述VNFD中获取目标扩容策略,所述目标扩容策略包括:在扩容所述第一类型的容器组之前扩容第一类型的虚拟机,所述第一类型的容器组承载于所述第一类型的虚拟机;A processing unit, configured to obtain a target capacity expansion policy from the virtualized network function description VNFD, where the target capacity expansion policy includes: expanding a first type of virtual machine before expanding the first type of container group, the first type of virtual machine the container group is hosted on the virtual machine of the first type;
    所述处理单元,还用于根据所述目标扩容策略,确定待在目标虚拟化网络功能VNF上扩容所述第一类型的容器组;所述目标VNF为采用所述目标扩容策略的VNF;The processing unit is further configured to determine, according to the target capacity expansion strategy, the container group of the first type to be expanded on the target virtualized network function VNF; the target VNF is a VNF that adopts the target capacity expansion strategy;
    所述处理单元,还用于根据所述目标扩容策略控制收发单元向虚拟化基础设施管理器VIM发送第一扩容信息,所述第一扩容信息用于指示在所述目标VNF上创建所述第一类型的虚拟机;The processing unit is further configured to control the transceiver unit to send first capacity expansion information to the virtualization infrastructure manager VIM according to the target capacity expansion policy, where the first capacity expansion information is used to instruct to create the first capacity expansion information on the target VNF. a type of virtual machine;
    所述收发单元,还用于发送第二扩容信息,所述第二扩容信息用于指示在所述第一类型的虚拟机中创建所述第一类型的容器组。The transceiver unit is further configured to send second capacity expansion information, where the second capacity expansion information is used to instruct to create a container group of the first type in the virtual machine of the first type.
  11. 根据权利要求10所述的通信装置,其特征在于,所述目标扩容策略还包括:在扩容所述第一类型的容器组时扩容第二类型的容器组;所述第二扩容信息还用于指示在所述第一类型的虚拟机中创建所述第二类型的容器组。The communication device according to claim 10, wherein the target capacity expansion strategy further comprises: expanding the container group of the second type when expanding the container group of the first type; the second capacity expansion information is further used for Instructs to create the container group of the second type in the virtual machine of the first type.
  12. 根据权利要求10或11所述的通信装置,其特征在于,The communication device according to claim 10 or 11, wherein:
    所述收发单元,还用于接收来自所述目标VNF的资源使用状态指标,所述资源使用状态指标表征所述目标VNF中的所述第一类型的容器组的资源使用情况;The transceiver unit is further configured to receive a resource usage status indicator from the target VNF, where the resource usage status indicator represents the resource usage of the container group of the first type in the target VNF;
    所述处理单元,具体用于根据所述资源使用状态指标和所述目标扩容策略,确定待在所述目标VNF上扩容所述第一类型的容器组。The processing unit is specifically configured to determine, according to the resource usage state indicator and the target capacity expansion policy, the container group of the first type to be expanded on the target VNF.
  13. 根据权利要求10至12任一项所述的通信装置,其特征在于,所述资源使用状态指标包括两个或两个以上资源使用状态采样指标,所述两个或两个以上资源使用状态采样指标表征所述目标VNF中的所述第一类型的容器组在同一时间段内的两个或两个以上时刻的资源使用情况;The communication device according to any one of claims 10 to 12, wherein the resource usage status indicator comprises two or more resource usage status sampling indicators, the two or more resource usage status sampling indicators The indicator represents the resource usage of the container group of the first type in the target VNF at two or more moments in the same time period;
    所述处理单元,具体用于在所述两个或两个以上所述资源使用状态采样指标均超过扩容阈值的情况下,确定待在所述目标VNF上扩容所述第一类型的容器组。The processing unit is specifically configured to determine the container group of the first type to be expanded on the target VNF when the two or more of the resource usage status sampling indicators both exceed the capacity expansion threshold.
  14. 一种通信装置,应用于包括VNFM的网络功能虚拟化NFV系统,其特征在于,包括:A communication device, applied to a network function virtualization NFV system including VNFM, is characterized in that, comprising:
    处理单元,用于从虚拟化网络功能描述VNFD中获取目标缩容策略,所述目标缩容策略包括:在缩容所述第一类型的容器组之后缩容第一类型的虚拟机,所述第一类型的容器组承载于所述第一类型的虚拟机;a processing unit, configured to obtain a target scaling policy from the virtualized network function description VNFD, where the target scaling policy includes: scaling down the first type of virtual machines after scaling down the first type of container group, the A container group of the first type is hosted on the virtual machine of the first type;
    所述处理单元,还用于根据所述目标缩容策略,确定待缩容目标虚拟化网络功能VNF上的所述第一类型的容器组;所述目标VNF为采用所述目标缩容策略的VNF;The processing unit is further configured to determine the container group of the first type on the target virtualized network function VNF to be scaled down according to the target capacity reduction strategy; the target VNF is a container group that adopts the target capacity reduction strategy. VNF;
    收发单元,用于发送第一缩容信息,所述第一缩容信息用于指示缩容所述目标VNF中 的所述第一类型的容器组;Transceiver unit, for sending the first shrinkage information, and the first shrinkage information is used for instructing to shrink the container group of the first type in the target VNF;
    所述处理单元,还用于根据所述目标缩容策略,控制所述收发单元向虚拟化基础设施管理器VIM发送第二缩容信息,所述第二缩容信息用于指示缩容所述目标VNF中的所述第一类型的虚拟机。The processing unit is further configured to, according to the target scaling policy, control the transceiver unit to send second scaling information to the virtualization infrastructure manager VIM, where the second scaling information is used to instruct scaling down the the virtual machine of the first type in the target VNF.
  15. 根据权利要求14所述的通信装置,其特征在于,所述目标缩容策略还包括:在缩容所述第一类型的容器组时缩容第二类型的容器组;所述第一缩容信息还用于指示缩容所述目标VNF中的所述第二类型的容器组,所述第二类型的容器组承载于所述第一类型的虚拟机。The communication device according to claim 14, wherein the target shrinking strategy further comprises: shrinking the container group of the second type when shrinking the container group of the first type; the first shrinking The information is further used to instruct to shrink the container group of the second type in the target VNF, where the container group of the second type is hosted on the virtual machine of the first type.
  16. 根据权利要求14或15所述的通信装置,其特征在于,The communication device according to claim 14 or 15, characterized in that:
    所述收发单元,还用于向所述目标VNF发送第三缩容信息,所述第三缩容信息用于确认是否可缩容所述目标VNF中的所述第一类型的容器组;接收来自所述VNF的第四缩容信息,所述第四缩容信息指示可缩容所述目标VNF中的所述第一类型的容器组。The transceiver unit is further configured to send third scaling information to the target VNF, where the third scaling information is used to confirm whether the container group of the first type in the target VNF can be scaled down; receiving Fourth scaling information from the VNF, where the fourth scaling information indicates that the container group of the first type in the target VNF can be scaled down.
  17. 根据权利要求14至16任一项所述的通信装置,其特征在于,The communication device according to any one of claims 14 to 16, wherein:
    所述收发单元,还用于接收来自所述目标VNF的资源使用状态指标,所述资源使用状态指标表征所述目标VNF中的所述第一类型的容器组的资源使用情况;The transceiver unit is further configured to receive a resource usage status indicator from the target VNF, where the resource usage status indicator represents the resource usage of the container group of the first type in the target VNF;
    所述处理单元,具体用于根据所述资源使用状态指标和所述目标缩容策略,确定待缩容所述目标VNF中的所述第一类型的容器组。The processing unit is specifically configured to determine the container group of the first type in the target VNF to be scaled down according to the resource usage status indicator and the target scaling policy.
  18. 根据权利要求17所述的通信装置,其特征在于,所述资源使用状态指标包括两个或两个以上资源使用状态采样指标,所述两个或两个以上资源使用状态采样指标表征所述目标VNF中的所述第一类型的容器组在同一时间段内的两个或两个以上时刻的资源使用情况;The communication device according to claim 17, wherein the resource usage status indicator comprises two or more resource usage status sampling indicators, and the two or more resource usage status sampling indicators represent the target Resource usage of the container group of the first type in the VNF at two or more moments in the same time period;
    所述处理单元,具体用于在所述两个或两个以上资源使用状态采样指标均未超过缩容阈值的情况下,确定待缩容所述目标VNF中的所述第一类型的容器组。The processing unit is specifically configured to determine the container group of the first type in the target VNF to be scaled down when none of the two or more resource usage status sampling indicators exceeds the scaling threshold .
  19. 一种通信装置,其特征在于,包括处理器,当所述处理器执行存储器中的计算机程序或指令时执行如权利要求1至9任一项所述的方法。A communication device, characterized by comprising a processor, when the processor executes a computer program or an instruction in a memory, the method according to any one of claims 1 to 9 is performed.
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时,使所述处理器执行权利要求1至9任意一项所述的方法。A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and the computer program includes program instructions, and when executed by a processor, the program instructions cause the processor to execute The method of any one of claims 1 to 9.
PCT/CN2021/080458 2021-03-12 2021-03-12 Automatic scaling up method, automatic scaling down method, and device WO2022188150A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202180095296.8A CN116964999A (en) 2021-03-12 2021-03-12 Automatic capacity expansion method, automatic capacity reduction method and device
PCT/CN2021/080458 WO2022188150A1 (en) 2021-03-12 2021-03-12 Automatic scaling up method, automatic scaling down method, and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/080458 WO2022188150A1 (en) 2021-03-12 2021-03-12 Automatic scaling up method, automatic scaling down method, and device

Publications (1)

Publication Number Publication Date
WO2022188150A1 true WO2022188150A1 (en) 2022-09-15

Family

ID=83226204

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/080458 WO2022188150A1 (en) 2021-03-12 2021-03-12 Automatic scaling up method, automatic scaling down method, and device

Country Status (2)

Country Link
CN (1) CN116964999A (en)
WO (1) WO2022188150A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180159819A1 (en) * 2014-08-19 2018-06-07 Futurewei Technologies, Inc. Methods and System for Allocating an IP Address for an Instance in a Network Function Virtualization (NFV) system
CN111092842A (en) * 2018-10-23 2020-05-01 中国移动通信集团有限公司 Information processing method, server, network element and storage medium
CN111641515A (en) * 2019-03-01 2020-09-08 华为技术有限公司 VNF life cycle management method and device
CN111698112A (en) * 2019-03-15 2020-09-22 华为技术有限公司 Resource management method and device for VNF (virtual network function)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180159819A1 (en) * 2014-08-19 2018-06-07 Futurewei Technologies, Inc. Methods and System for Allocating an IP Address for an Instance in a Network Function Virtualization (NFV) system
CN111092842A (en) * 2018-10-23 2020-05-01 中国移动通信集团有限公司 Information processing method, server, network element and storage medium
CN111641515A (en) * 2019-03-01 2020-09-08 华为技术有限公司 VNF life cycle management method and device
CN111698112A (en) * 2019-03-15 2020-09-22 华为技术有限公司 Resource management method and device for VNF (virtual network function)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"Network Functions Virtualisation (NFV); Management and Orchestration; Report on NFV-MANO software modification", ETSI DRAFT; ETSI GR NFV-REL 011, EUROPEAN TELECOMMUNICATIONS STANDARDS INSTITUTE (ETSI), 650, ROUTE DES LUCIOLES ; F-06921 SOPHIA-ANTIPOLIS ; FRANCE, vol. ISG - NFV, no. V1.1.1, 9 November 2020 (2020-11-09), 650, route des Lucioles ; F-06921 Sophia-Antipolis ; France , pages 1 - 84, XP014385207 *

Also Published As

Publication number Publication date
CN116964999A (en) 2023-10-27

Similar Documents

Publication Publication Date Title
US11146453B2 (en) Method and apparatus for creating network slice, and communications system
CN111385114B (en) VNF service instantiation method and device
EP3358806B1 (en) Method, device and server for service migration during software upgrade under nfv architecture
EP3300298B1 (en) Method and apparatus for switching vnf
CN111338774B (en) Distributed timing task scheduling system and computing device
CN106302074B (en) Migration method and device of virtual network function VNF
WO2016165292A1 (en) Method and apparatus for realizing deployment specification configuration of virtual network function
CN105760214A (en) Equipment state and resource information monitoring method, related equipment and system
CN111796908B (en) System and method for automatic elastic expansion and contraction of resources and cloud platform
WO2016206456A1 (en) Physical machine upgrading method, service migration method and apparatus
AU2014256371A1 (en) Systems And Methods For Protecting Virtualized Assets
CN109428764B (en) Virtual network function instantiation method
CN106663012B (en) Hardware acceleration method and related equipment
CN107534577B (en) Method and equipment for instantiating network service
CN107920117B (en) Resource management method, control equipment and resource management system
WO2021109750A1 (en) Node management method, device and apparatus, storage medium, and system
CN108345490B (en) Method and system for deploying virtual machine in NFV
KR20220070020A (en) Network resource management method, system, network device and readable storage medium
CN109587024B (en) Resource processing method and related device
WO2020057382A1 (en) Method, apparatus, and system for providing service, storage medium, and electronic device
WO2017000616A1 (en) Method and device for accessing cloud data, and storage medium
CN109889406A (en) For managing method, apparatus, equipment and the storage medium of network connection
WO2022188150A1 (en) Automatic scaling up method, automatic scaling down method, and device
TWI707561B (en) Management system and management method of vnf
CN115391058B (en) SDN-based resource event processing method, resource creation method and system

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 202180095296.8

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21929625

Country of ref document: EP

Kind code of ref document: A1