WO2017219287A1 - License activation method and device under virtual scene - Google Patents

License activation method and device under virtual scene Download PDF

Info

Publication number
WO2017219287A1
WO2017219287A1 PCT/CN2016/086754 CN2016086754W WO2017219287A1 WO 2017219287 A1 WO2017219287 A1 WO 2017219287A1 CN 2016086754 W CN2016086754 W CN 2016086754W WO 2017219287 A1 WO2017219287 A1 WO 2017219287A1
Authority
WO
WIPO (PCT)
Prior art keywords
serial number
electronic serial
virtual
license file
virtual machine
Prior art date
Application number
PCT/CN2016/086754
Other languages
French (fr)
Chinese (zh)
Inventor
刘锡明
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2016/086754 priority Critical patent/WO2017219287A1/en
Publication of WO2017219287A1 publication Critical patent/WO2017219287A1/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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a license activation method and apparatus in a virtual scenario.
  • Network Function Virtualization reduces the expensive equipment cost of the network by using general-purpose hardware such as x86 and virtualization technology to carry software processing of many functions. Through software and hardware decoupling and functional abstraction, network device functions are no longer dependent on dedicated hardware. Resources can be fully and flexibly shared, enabling rapid development and deployment of new services, and automatic deployment, elastic scaling, and fault isolation based on actual business requirements. And self-healing.
  • ATCA Telecom Computing Architecture
  • ESN electronic serial number
  • the license file can only be successfully matched. Activated on the device, the application software can be run normally after activation.
  • the ESN of the application software is generated by reading the serial number of the dedicated hardware; however, in the NFV scenario, the Virtual Network Function (VNF) runs on commercial off-the-shelf or technology (Commercial-off) -the-shelf, COTS) on common hardware, and the VM will migrate across physical devices and even migrate to different kinds of general-purpose hardware; the virtual network function running on the virtual machine (VM) cannot be obtained.
  • the ESN of the VM cannot activate the license, so the VNF cannot run normally.
  • the present invention provides a method for activating a license in a virtual scenario.
  • the method can read the ESN of the VM and then record it with the license file when the VNF license file is activated.
  • the ESN is matched to complete the activation of the VNF license in the virtual environment.
  • a first aspect of the present application provides a license activation method in a virtual scenario, where the method includes: a virtual network function acquires an electronic serial number of a virtual machine; the virtual network function acquires a license file; and if the virtual machine is electronic The serial number matches an electronic serial number in the license file, the virtual network function activates the license file; the virtual network function runs on the virtual machine, and the electronic serial number is generated by MANO And injected into the virtual machine.
  • the generating, by the MANO, the electronic serial number is generated by the MANO according to a universal unique identifier algorithm.
  • the virtual network function is used to execute an instruction for activating a license file; the instruction is: acquiring an electronic serial number of the virtual machine; and using an electronic serial number of the virtual machine Matches the electronic serial number in the license file. If the match is successful, the license file is activated.
  • a second aspect of the present application provides a license activation method in a virtual scenario, where the method includes: MANO generates an electronic serial number; MANO injects the electronic serial number into a virtual machine; and uses an electronic serial number in the virtual machine Matching the electronic serial number in the license file to facilitate activation of the license file by the virtual network function.
  • the third aspect of the present application provides a license activation apparatus in a virtual scenario, where the apparatus includes an obtaining unit and a matching unit, where the acquiring unit is configured to acquire an electronic serial number of the virtual machine and acquire the same a matching unit, configured to match an electronic serial number of the virtual machine with an electronic serial number in the license file, so that the virtual network function activates the license file.
  • the fourth aspect of the present application provides a license activation apparatus in a virtual scenario, where the apparatus includes an electronic serial number generation unit and an injection unit, wherein the electronic serial number generation unit is configured to generate an electronic serial number.
  • the injection unit is configured to inject the electronic serial number into the virtual machine, so that the electronic serial number of the virtual machine matches the electronic serial number in the license file, thereby performing activation of the license file.
  • This application enables the VNF license file to be read to the ESN of the VM when it is activated, and then matches the ESN recorded in the license file to complete the activation of the VNF license in the virtual environment.
  • FIG. 1 is a schematic flowchart of a license activation method in a virtual scenario according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a license activation method in a virtual scenario according to another embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a framework of a license activation apparatus in a virtual scenario according to an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of a framework of a license activation apparatus in a virtual scenario according to another embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a physical device implementing a virtual network function according to an embodiment of the present disclosure
  • FIG. 6 is a schematic diagram of a physical device for implementing a management and orchestrator structure according to an embodiment of the present invention.
  • the license activation method in the virtual scenario provided by the embodiment of the present invention is applied to a Network Function Virtualization (NFV) system.
  • NFV Network Function Virtualization
  • the NFV system architecture includes two parts, one is a functional module, and the functional module is an infrastructure. (Network Function Virtualization Infrastruction, NFVI), Virtualized Network Functions (VNFS) and NFV Manager and Orchestration (MANO); the second is the interface between modules.
  • NFVI Network Function Virtualization Infrastruction
  • VNFS Virtualized Network Functions
  • MANO NFV Manager and Orchestration
  • NFVI includes hardware resources, virtualization layer and virtual machine (VM); MANO includes resource scheduling (Orchestration), virtual network function management (VNF Manager) and virtual infrastructure management (Virtualized Infrastructure) Manager, VIM), in which VNF Managr focuses on the management of VNF, responsible for VNF startup, update, query, expansion and contraction, etc., and also accepts the command of the upper Orchestration to VNF execution, and also downgrades VIM according to the state of VNF. Give instructions.
  • VNF Manager virtual network function management
  • VIM Virtualized Infrastructure Manager
  • the existing license activation process includes: one, application software registration; the second is application software activation.
  • the application software sends the hardware information of the device to the license file generation device during the registration process, and the license file generation device generates a license file containing the hardware information, and saves the license file in the application software.
  • the application software obtains the hardware information of the device where the application software is currently located in the activation process of the hardware device, and compares the hardware information recorded in the license file with the currently obtained hardware information to determine the license. Activation succeeded or license activation failed. If the application software is successfully activated on the hardware device, the application software starts normally.
  • the method includes steps S101-S103:
  • the virtual network function acquires an electronic serial number of the virtual machine.
  • the virtual network function runs on the virtual machine, and the electronic serial number is generated by MANO and injected into the virtual machine.
  • the above electronic serial number ESN is generated by MANO according to the universal unique identification code UUID algorithm.
  • the universal unique identifier UUID algorithm generates a string and uses the string as an electronic serial number.
  • the UUID algorithm allows all elements in a distributed system to have unique identification information. Generating a unique string as an ESN is to ensure that each serial number is unique so that the electronic serial number can uniquely identify a network device. In the NFV scenario, when a new VNF is launched, the ESN is used to identify that the ESN of each VNF is different.
  • the algorithm for generating a unique character string and ensuring that all the strings in the same time space are unique is not limited.
  • the virtual network function acquires a license file.
  • a virtual network function VNF runs on one or more virtual machine VMs having the same electronic serial number ESN.
  • the VNF running on one or more VMs sends the ESN of the VM to the license file generating device, and the license file generating device generates a license file containing the ESN number.
  • the VNF activates the license file; the ESN in the VM is not successfully matched with the ESN recorded in the license file.
  • the VNF fails to activate the license file.
  • the VNF is used to execute an instruction for activating a license file; the instruction is: acquiring an electronic serial number of the virtual machine; and matching an electronic serial number of the virtual machine with an electronic serial number in the license file, if If the match is successful, the license file is activated.
  • the command to activate the license file is an ACT LICENSE command, which is not limited in the embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a physical device that implements a virtual network function according to an embodiment of the present invention.
  • the physical device can be used to run one or more virtual machines, each of which runs one or more virtual network functions, including a bus, memory 502, and processor 501.
  • the processor 501 and the memory 502 are connected by a bus and complete communication with each other;
  • the memory 502 is configured to store executable program code and corresponding data, the program code includes computer operation instructions, and the memory 502 may include a high speed RAM memory, and may also include A non-volatile memory;
  • the processor 501 is configured to execute the following instructions:
  • the virtual network function activates the license file
  • the virtual network function runs on the virtual machine, and the electronic serial number is generated by MANO and injected into the virtual machine.
  • FIG. 2 is a schematic flowchart of a method for activating a license in a virtual scenario according to another embodiment of the present invention.
  • the license activation method in a virtual scenario includes steps S201-S202, as follows:
  • management and orchestration MANO manages the entire NFV system and quickly and efficiently uses the resources of the entire NFV system to provide a manageable, controllable, and operational service platform, enabling basic resources to be easily provided to applications.
  • the essence is to realize deployment, scheduling, operation and maintenance, and management.
  • Management and orchestration running on one or more VMs MANO generates a string by algorithm, using the string as the electronic serial number ESN, which ensures that each string generated is unique.
  • MANO generates a character string as an ESN according to the UUID algorithm.
  • the MANO injects the electronic serial number into the virtual machine.
  • the MANO saves the ESN in the VM in an injection manner, and the ESN serves as the identification identifier of the VM.
  • the electronic serial number in the virtual machine is used to match the electronic serial number in the license file to facilitate activation of the license file by the virtual network function.
  • the VNF running on the VM executes the LICENSE command, for example, the ACT LICENSE command; the VNF obtains the ESN of the VM and matches the ESN recorded in the license file.
  • the LICENSE command for example, the ACT LICENSE command
  • the VNF fails to activate the license file.
  • the VNF function cannot be used normally.
  • the license file in the VNF can also be activated.
  • FIG. 6 is a schematic diagram of a physical device for implementing a management and orchestrator structure according to an embodiment of the present invention.
  • the physical device includes a bus, a memory 602, and a processor 601.
  • the processor 601 and the memory 602 are connected by a bus and complete communication with each other;
  • the memory 602 is configured to store executable program code and corresponding data, the program code includes computer operation instructions, and the memory 602 may include a high speed RAM memory, and may also include A non-volatile memory;
  • the processor 601 is configured to execute the following instructions:
  • the electronic serial number in the virtual machine is used to match the electronic serial number in the license file to facilitate activation of the license file by the virtual network function.
  • FIG. 3 is a schematic structural diagram of a license activation apparatus in a virtual scenario according to an embodiment of the present invention.
  • the device includes an acquisition unit 301 and a matching unit 302.
  • the obtaining unit 301 acquires an electronic serial number of the virtual machine and acquires a license file.
  • the ESN is generated by MANO and injected into the VM.
  • the matching unit 302 the VNF matches the electronic serial number of the virtual machine with the electronic serial number in the license file, so that the virtual network function activates the license file.
  • the VNF activates the license file; the ESN in the VM is not successfully matched with the ESN recorded in the license file.
  • the VNF fails to activate the license file.
  • FIG. 4 is a schematic structural diagram of a license activation apparatus in a virtual scenario according to another embodiment of the present invention.
  • the apparatus includes an electronic serial number generating unit 401 and an injection unit 402.
  • the electronic serial number generating unit 401 generates an ESN.
  • MANO generates a character string as an ESN according to the UUID algorithm.
  • the injection unit 402 injects the electronic serial number into the virtual machine, so that the electronic serial number of the virtual machine matches the electronic serial number in the license file, thereby performing activation of the license file.
  • the MANN injects the ESN into the VM, and when the ESN in the VM is successfully matched with the ESN recorded in the license file, the VNF activates the license file; when the ESN in the VM and the license are When the ESN matching in the file is unsuccessful, the VNF fails to activate the license file.
  • the ESN of the VM running on the VNF is read, and then the ESN in the license file saved in the VNF is matched, thereby completing the activation of the VNF in the NVF environment.
  • the steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both.
  • the software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.

Abstract

The present invention provides a license activation method and device under a virtual scene. The method comprises: a virtual network function obtains an electronic serial number of a virtual machine; the virtual network function obtains a license file; the virtual network function activates the license file if the electronic serial number of the virtual machine matches an electronic serial number in the license file; the virtual network function operates on the virtual machine, and the electronic serial number is generated by an MANO and injected into the virtual machine. The present invention can achieve license activation of a virtual network function under a network virtual function environment.

Description

一种虚拟场景下的许可证激活方法及装置License activation method and device in virtual scene 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种虚拟场景下的许可证激活方法及装置。The present invention relates to the field of communications technologies, and in particular, to a license activation method and apparatus in a virtual scenario.
背景技术Background technique
网络功能虚拟化(Network Function Virtualization,NFV)通过使用x86等通用性硬件以及虚拟化技术,来承载很多功能的软件处理,从而降低网络昂贵的设备成本。可以通过软硬件解耦及功能抽象,使网络设备功能不再依赖于专用硬件,资源可以充分灵活共享,实现新业务的快速开发和部署,并基于实际业务需求进行自动部署、弹性伸缩、故障隔离和自愈等。Network Function Virtualization (NFV) reduces the expensive equipment cost of the network by using general-purpose hardware such as x86 and virtualization technology to carry software processing of many functions. Through software and hardware decoupling and functional abstraction, network device functions are no longer dependent on dedicated hardware. Resources can be fully and flexibly shared, enabling rapid development and deployment of new services, and automatic deployment, elastic scaling, and fault isolation based on actual business requirements. And self-healing.
传统的应用软件运行在先进的电信计算平台(Advanced Telecom Computing Architecture,ATCA)设备上,软件功能与硬件紧密耦合以提供高性能的网络功能。应用软件的使用受许可证(License)控制,应用软件在激活License时,需要读取ATCA的电子序列号(Electronic Serial Number,ESN)与License文件中的ESN匹配,License文件只能在匹配成功的设备上激活,激活后应用软件才能正常的运行。Traditional applications run on advanced Telecom Computing Architecture (ATCA) devices, and software functions are tightly coupled to the hardware to provide high-performance networking capabilities. The application software is controlled by a license. The application software needs to read the ATCA's electronic serial number (ESN) to match the ESN in the license file. The license file can only be successfully matched. Activated on the device, the application software can be run normally after activation.
在专用硬件场景下,应用软件的ESN是通过读取专用硬件的序列号生成的;然而,在NFV场景下,虚拟网络功能(Virtual Network Function,VNF)运行在商用现成品或技术(Commercial-off-the-shelf,COTS)的通用硬件上,且VM会跨物理设备迁移,甚至会迁移到不同种类的通用硬件上;导致运行在虚拟机(Virtual Machine,VM)上的虚拟网络功能无法获取到VM的ESN,进而不能激活License,因此VNF不能正常的运行。In a dedicated hardware scenario, the ESN of the application software is generated by reading the serial number of the dedicated hardware; however, in the NFV scenario, the Virtual Network Function (VNF) runs on commercial off-the-shelf or technology (Commercial-off) -the-shelf, COTS) on common hardware, and the VM will migrate across physical devices and even migrate to different kinds of general-purpose hardware; the virtual network function running on the virtual machine (VM) cannot be obtained. The ESN of the VM cannot activate the license, so the VNF cannot run normally.
发明内容Summary of the invention
本申请为解决现有技术的不足,提供一种虚拟场景下的许可证激活方法,该方法能够使得VNF的License文件在激活时,读取到VM的ESN,然后与License文件中记录 的ESN进行匹配,从而完成虚拟环境下VNF的License激活。The present invention provides a method for activating a license in a virtual scenario. The method can read the ESN of the VM and then record it with the license file when the VNF license file is activated. The ESN is matched to complete the activation of the VNF license in the virtual environment.
本申请第一方面提供一种虚拟场景下的许可证激活方法,所述方法包括:虚拟网络功能获取虚拟机的电子序列号;所述虚拟网络功能获取许可证文件;若所述虚拟机的电子序列号与所述许可证文件中的电子序列号匹配,所述虚拟网络功对所述许可证文件进行激活;所述虚拟网络功能运行于所述虚拟机上,所述电子序列号由MANO生成并注入到所述虚拟机。A first aspect of the present application provides a license activation method in a virtual scenario, where the method includes: a virtual network function acquires an electronic serial number of a virtual machine; the virtual network function acquires a license file; and if the virtual machine is electronic The serial number matches an electronic serial number in the license file, the virtual network function activates the license file; the virtual network function runs on the virtual machine, and the electronic serial number is generated by MANO And injected into the virtual machine.
在第一方面第一种可能实现方式中,所述电子序列号由MANO生成包括:所述电子序列号由MANO根据通用唯一识别码算法生成。In a first possible implementation manner of the first aspect, the generating, by the MANO, the electronic serial number is generated by the MANO according to a universal unique identifier algorithm.
在第一方面第二种可能的实现方式中,所述虚拟网络功能用于执行激活许可证文件的指令;所述指令为:获取虚拟机的电子序列号;将所述虚拟机的电子序列号与许可证文件中的电子序列号进行匹配,若匹配成功,则许可证文件激活。In a second possible implementation manner of the first aspect, the virtual network function is used to execute an instruction for activating a license file; the instruction is: acquiring an electronic serial number of the virtual machine; and using an electronic serial number of the virtual machine Matches the electronic serial number in the license file. If the match is successful, the license file is activated.
本申请第二方面提供一种虚拟场景下的许可证激活方法,所述方法包括:MANO生成电子序列号;MANO将所述电子序列号注入到虚拟机中;所述虚拟机中电子序列号用于和许可证文件中的电子序列号匹配,以便于虚拟网络功能对所述许可证文件进行激活。A second aspect of the present application provides a license activation method in a virtual scenario, where the method includes: MANO generates an electronic serial number; MANO injects the electronic serial number into a virtual machine; and uses an electronic serial number in the virtual machine Matching the electronic serial number in the license file to facilitate activation of the license file by the virtual network function.
本申请第三方面提供一种虚拟场景下的许可证激活装置,其特征在于,所述装置包括获取单元以及匹配单元;其中,所述获取单元,用于获取虚拟机的电子序列号,同时获取许可证文件;所述匹配单元,用于将所述虚拟机的电子序列号与所述许可证文件中的电子序列号进行匹配,以便于所述虚拟网络功能对所述许可证文件进行激活。The third aspect of the present application provides a license activation apparatus in a virtual scenario, where the apparatus includes an obtaining unit and a matching unit, where the acquiring unit is configured to acquire an electronic serial number of the virtual machine and acquire the same a matching unit, configured to match an electronic serial number of the virtual machine with an electronic serial number in the license file, so that the virtual network function activates the license file.
本申请第四方面提供一种虚拟场景下的许可证激活装置,其特征在于,所述装置包括电子序列号生成单元以及注入单元;其中,所述电子序列号生成单元,用于生成电子序列号;所述注入单元,用于将所述电子序列号注入到虚拟机中,以便于所述虚拟机的电子序列号与许可证文件中的电子序列号匹配,从而进行许可证文件的激活。The fourth aspect of the present application provides a license activation apparatus in a virtual scenario, where the apparatus includes an electronic serial number generation unit and an injection unit, wherein the electronic serial number generation unit is configured to generate an electronic serial number. The injection unit is configured to inject the electronic serial number into the virtual machine, so that the electronic serial number of the virtual machine matches the electronic serial number in the license file, thereby performing activation of the license file.
本申请能够使得VNF的License文件在激活时,读取到VM的ESN,然后与License文件中记录的ESN进行匹配,从而完成虚拟环境下VNF的License激活。This application enables the VNF license file to be read to the ESN of the VM when it is activated, and then matches the ESN recorded in the license file to complete the activation of the VNF license in the virtual environment.
附图说明 DRAWINGS
图1为本发明实施例提供的一种虚拟场景下的许可证激活方法流程示意图;FIG. 1 is a schematic flowchart of a license activation method in a virtual scenario according to an embodiment of the present disclosure;
图2为本发明又一实施例提供的一种虚拟场景下的许可证激活方法流程示意图;2 is a schematic flowchart of a license activation method in a virtual scenario according to another embodiment of the present invention;
图3为本发明实施例提供的一种虚拟场景下的许可证激活装置框架示意图;FIG. 3 is a schematic diagram of a framework of a license activation apparatus in a virtual scenario according to an embodiment of the present disclosure;
图4为本发明又一实施例提供的一种虚拟场景下的许可证激活装置框架示意图;FIG. 4 is a schematic diagram of a framework of a license activation apparatus in a virtual scenario according to another embodiment of the present invention; FIG.
图5为本发明实施例提供的一种实现虚拟网络功能的物理设备的结构示意图;FIG. 5 is a schematic structural diagram of a physical device implementing a virtual network function according to an embodiment of the present disclosure;
图6为本发明实施例提供的一种实现管理与编排器结构的物理设备示意图。FIG. 6 is a schematic diagram of a physical device for implementing a management and orchestrator structure according to an embodiment of the present invention.
具体实施方式detailed description
下面通过附图和实施例,对本发明的技术方案做进一步的详细描述。The technical solution of the present invention will be further described in detail below through the accompanying drawings and embodiments.
本发明实施例提供的一种虚拟场景下的许可证激活方法,应用于网络功能虚拟化系统(Network Function Virtualization,NFV)中,NFV系统架构包括两部分,一是功能模块,功能模块由基础设施(Network Function Virtualization Infrastruction,NFVI)、虚拟网络功能(Virtualized Network Functions,VNFS)和编排与管理(NFV Manager and Orchestration,MANO)三部分组成;二是模块间的接口。The license activation method in the virtual scenario provided by the embodiment of the present invention is applied to a Network Function Virtualization (NFV) system. The NFV system architecture includes two parts, one is a functional module, and the functional module is an infrastructure. (Network Function Virtualization Infrastruction, NFVI), Virtualized Network Functions (VNFS) and NFV Manager and Orchestration (MANO); the second is the interface between modules.
NFVI包括硬件资源(Hardware resources)、虚拟化层(Virtualization Layer)和虚拟机(Virtual Machine,VM);MANO包括资源编排(Orchestration)、虚拟网络功能管理(VNF Manager)和虚拟基础设施管理(Virtualized Infrastructure Manager,VIM),其中VNF Managr着重于VNF的管理,负责VNF的启动、更新、查询、扩缩容等工作,同时也接受上层Orchestration的命令转达给VNF执行,也会根据VNF的状态向下层VIM下达指示。NFVI includes hardware resources, virtualization layer and virtual machine (VM); MANO includes resource scheduling (Orchestration), virtual network function management (VNF Manager) and virtual infrastructure management (Virtualized Infrastructure) Manager, VIM), in which VNF Managr focuses on the management of VNF, responsible for VNF startup, update, query, expansion and contraction, etc., and also accepts the command of the upper Orchestration to VNF execution, and also downgrades VIM according to the state of VNF. Give instructions.
现有的许可证License激活过程包括:一,应用软件的注册;二是应用软件的激活。具体来说,应用软件在注册的过程中,将所处设备的硬件信息发送给License文件生成设备,由License文件生成设备生成包含有该硬件信息的License文件,并将该License文件保存在应用软件中;在注册过程结束后,应用软件在该硬件设备上激活过程中,首先获取应用软件当前所处设备的硬件信息,并通过比较License文件中记录的硬件信息与当前获得的硬件信息,确定License激活成功或License激活失败。应用软件在该硬件设备上激活成功,则应用软件正常启动。The existing license activation process includes: one, application software registration; the second is application software activation. Specifically, the application software sends the hardware information of the device to the license file generation device during the registration process, and the license file generation device generates a license file containing the hardware information, and saves the license file in the application software. After the registration process is completed, the application software obtains the hardware information of the device where the application software is currently located in the activation process of the hardware device, and compares the hardware information recorded in the license file with the currently obtained hardware information to determine the license. Activation succeeded or license activation failed. If the application software is successfully activated on the hardware device, the application software starts normally.
下面以图1为例对本发明实施例提供的一种虚拟场景下的许可证激活方法进行说明。 如图1所示,该方法包括步骤S101-S103:The following describes a license activation method in a virtual scenario according to an embodiment of the present invention. As shown in FIG. 1, the method includes steps S101-S103:
S101,虚拟网络功能获取虚拟机的电子序列号。S101. The virtual network function acquires an electronic serial number of the virtual machine.
所述虚拟网络功能运行于所述虚拟机上,所述电子序列号由MANO生成并注入到所述虚拟机。The virtual network function runs on the virtual machine, and the electronic serial number is generated by MANO and injected into the virtual machine.
具体地,上述电子序列号ESN由MANO根据通用唯一识别码UUID算法生成。Specifically, the above electronic serial number ESN is generated by MANO according to the universal unique identification code UUID algorithm.
通用唯一识别码UUID算法生成一个字符串,并将该字符串作为电子序列号。UUID算法可以让分布式系统中的所有元素,都能有唯一的辨识资讯。生成唯一的字符串作为ESN,是在保证每一个序列号都是唯一的,以便于电子序列号可以唯一的标识一个网络设备。在NFV的场景下,上线一个新的VNF时,用所述ESN来标识,能够保证每一个VNF的ESN都不相同。The universal unique identifier UUID algorithm generates a string and uses the string as an electronic serial number. The UUID algorithm allows all elements in a distributed system to have unique identification information. Generating a unique string as an ESN is to ensure that each serial number is unique so that the electronic serial number can uniquely identify a network device. In the NFV scenario, when a new VNF is launched, the ESN is used to identify that the ESN of each VNF is different.
需要说明的是,本发明实施例对于能生成唯一的字符串,保证同一时空中的所有的字符串都是唯一的算法并不作限定。It should be noted that, in the embodiment of the present invention, the algorithm for generating a unique character string and ensuring that all the strings in the same time space are unique is not limited.
S102,所述虚拟网络功能获取许可证文件。S102. The virtual network function acquires a license file.
一个虚拟网络功能VNF在一个或多个虚拟机VM上运行,所述一个或多个虚拟机VM的电子序列号ESN相同。A virtual network function VNF runs on one or more virtual machine VMs having the same electronic serial number ESN.
VNF注册时,运行在一个或多个VM上的VNF将该VM的ESN发送给License文件生成设备,license文件生成设备生成包含该ESN号的license文件。When the VNF is registered, the VNF running on one or more VMs sends the ESN of the VM to the license file generating device, and the license file generating device generates a license file containing the ESN number.
S103,若所述虚拟机的电子序列号与所述许可证文件中的电子序列号匹配,所述虚拟网络功能对所述许可证文件进行激活。S103. If the electronic serial number of the virtual machine matches an electronic serial number in the license file, the virtual network function activates the license file.
当所述VM中的ESN与所述License文件中记录的ESN匹配成功时,所述VNF对所述License文件进行激活;当所述VM中的ESN与所述License文件中记录的ESN匹配不成功时,所述VNF对License文件激活失败。When the ESN in the VM is successfully matched with the ESN recorded in the license file, the VNF activates the license file; the ESN in the VM is not successfully matched with the ESN recorded in the license file. The VNF fails to activate the license file.
具体地,所述VNF用于执行激活License文件的指令;所述指令为:获取虚拟机的电子序列号;将所述虚拟机的电子序列号与许可证文件中的电子序列号进行匹配,若匹配成功,则许可证文件激活。激活License文件的指令为ACT LICENSE命令,本发明实施例对该命令不作限定。Specifically, the VNF is used to execute an instruction for activating a license file; the instruction is: acquiring an electronic serial number of the virtual machine; and matching an electronic serial number of the virtual machine with an electronic serial number in the license file, if If the match is successful, the license file is activated. The command to activate the license file is an ACT LICENSE command, which is not limited in the embodiment of the present invention.
图5为本发明实施例提供的一种实现虚拟网络功能的物理设备的结构示意图。 FIG. 5 is a schematic structural diagram of a physical device that implements a virtual network function according to an embodiment of the present invention.
如图5所示,该物理设备可用于运行一个或多个虚拟机,每个虚拟机上运行一个或多个虚拟网络功能,该物理设备包括总线、存储器502、处理器501。处理器501和存储器502通过总线连接并完成相互间的通信;存储器502用于存储可执行程序代码及相应的数据,该程序代码包括计算机操作指令,存储器,502可能包括高速RAM存储器,也可能包括非易失性存储器;处理器501用于执行以下指令:As shown in FIG. 5, the physical device can be used to run one or more virtual machines, each of which runs one or more virtual network functions, including a bus, memory 502, and processor 501. The processor 501 and the memory 502 are connected by a bus and complete communication with each other; the memory 502 is configured to store executable program code and corresponding data, the program code includes computer operation instructions, and the memory 502 may include a high speed RAM memory, and may also include A non-volatile memory; the processor 501 is configured to execute the following instructions:
获取虚拟机的电子序列号;Obtain the electronic serial number of the virtual machine;
获取许可证文件;Obtain a license file;
若所述虚拟机的电子序列号与所述许可证文件中的电子序列号匹配,所述虚拟网络功能对所述许可证文件进行激活;If the electronic serial number of the virtual machine matches the electronic serial number in the license file, the virtual network function activates the license file;
所述虚拟网络功能运行于所述虚拟机上,所述电子序列号由MANO生成并注入到所述虚拟机。The virtual network function runs on the virtual machine, and the electronic serial number is generated by MANO and injected into the virtual machine.
下面以图2为例,对本发明实施例提供的又一方法进行说明。图2为本发明又一实施例提供的一种虚拟场景下的许可证激活方法流程示意图。A further method provided by the embodiment of the present invention will be described below by taking FIG. 2 as an example. FIG. 2 is a schematic flowchart of a method for activating a license in a virtual scenario according to another embodiment of the present invention.
如图2所示,一种虚拟场景下的License激活方法包括步骤S201-S202,如下:As shown in FIG. 2, the license activation method in a virtual scenario includes steps S201-S202, as follows:
S201,MANO生成电子序列号。S201, MANO generates an electronic serial number.
NFV系统中,管理与编排MANO是管理整套NFV系统,并且快速高效的使用整套NFV系统的资源,提供一个可管、可控、可运营的服务平台,使得基础资源可以便捷地提供给应用,其实质是实现部署、调度、运维、管理。In the NFV system, management and orchestration MANO manages the entire NFV system and quickly and efficiently uses the resources of the entire NFV system to provide a manageable, controllable, and operational service platform, enabling basic resources to be easily provided to applications. The essence is to realize deployment, scheduling, operation and maintenance, and management.
一个或多个VM上运行的管理与编排MANO通过算法生成一个字符串,用该字符串作为电子序列号ESN,该算法能够保证生成的每一个字符串都是唯一的。Management and orchestration running on one or more VMs MANO generates a string by algorithm, using the string as the electronic serial number ESN, which ensures that each string generated is unique.
具体地,MANO根据UUID算法生成一个字符串作为ESN。Specifically, MANO generates a character string as an ESN according to the UUID algorithm.
S202,MANO将所述电子序列号注入到虚拟机中。S202. The MANO injects the electronic serial number into the virtual machine.
MANO将所述ESN以注入的方式保存在VM中,ESN作为该VM的辨别标识。所述虚拟机中电子序列号用于和许可证文件中的电子序列号匹配,以便于虚拟网络功能对所述许可证文件进行激活。The MANO saves the ESN in the VM in an injection manner, and the ESN serves as the identification identifier of the VM. The electronic serial number in the virtual machine is used to match the electronic serial number in the license file to facilitate activation of the license file by the virtual network function.
在VM上运行的VNF执行激活LICENSE命令时,如,ACT LICENSE命令;VNF获取虚拟机VM的ESN与License文件中记录的ESN进行匹配。 When the VNF running on the VM executes the LICENSE command, for example, the ACT LICENSE command; the VNF obtains the ESN of the VM and matches the ESN recorded in the license file.
若VM中的ESN与License文件中记录的ESN匹配不成功,则VNF激活license文件失败,VNF的功能不能正常使用。If the ESN of the VM does not match the ESN recorded in the license file, the VNF fails to activate the license file. The VNF function cannot be used normally.
需要说明的是,即使虚拟机发生迁移,但是虚拟机的ESN并不发生变化,因此VNF中的License文件同样可以进行License激活。It should be noted that even if the virtual machine is migrated, the ESN of the virtual machine does not change. Therefore, the license file in the VNF can also be activated.
图6为本发明实施例提供的一种实现管理与编排器结构的物理设备示意图。FIG. 6 is a schematic diagram of a physical device for implementing a management and orchestrator structure according to an embodiment of the present invention.
如图6所示,该物理设备包括总线、存储器602、处理器601。处理器601和存储器602通过总线连接并完成相互间的通信;存储器602用于存储可执行程序代码及相应的数据,该程序代码包括计算机操作指令,存储器,602可能包括高速RAM存储器,也可能包括非易失性存储器;处理器601用于执行以下指令:As shown in FIG. 6, the physical device includes a bus, a memory 602, and a processor 601. The processor 601 and the memory 602 are connected by a bus and complete communication with each other; the memory 602 is configured to store executable program code and corresponding data, the program code includes computer operation instructions, and the memory 602 may include a high speed RAM memory, and may also include A non-volatile memory; the processor 601 is configured to execute the following instructions:
生成电子序列号;Generating an electronic serial number;
将所述电子序列号注入到虚拟机中;Injecting the electronic serial number into a virtual machine;
所述虚拟机中电子序列号用于和许可证文件中的电子序列号匹配,以便于虚拟网络功能对所述许可证文件进行激活。The electronic serial number in the virtual machine is used to match the electronic serial number in the license file to facilitate activation of the license file by the virtual network function.
下面以图3为例,对本发明实施例提供的激活装置进行说明。图3为本发明实施例提供的一种虚拟场景下的许可证激活装置结构示意图。The activation device provided by the embodiment of the present invention will be described below by taking FIG. 3 as an example. FIG. 3 is a schematic structural diagram of a license activation apparatus in a virtual scenario according to an embodiment of the present invention.
如图3所示,该装置包括获取单元301、匹配单元302。As shown in FIG. 3, the device includes an acquisition unit 301 and a matching unit 302.
所述获取单元301,VNF获取虚拟机的电子序列号,同时获取许可证文件。所述ESN由MANO生成并注入VM中。The obtaining unit 301 acquires an electronic serial number of the virtual machine and acquires a license file. The ESN is generated by MANO and injected into the VM.
所述匹配单元302,VNF将所述虚拟机的电子序列号与所述许可证文件中的电子序列号进行匹配,以便于所述虚拟网络功能对所述许可证文件进行激活。The matching unit 302, the VNF matches the electronic serial number of the virtual machine with the electronic serial number in the license file, so that the virtual network function activates the license file.
当所述VM中的ESN与所述License文件中记录的ESN匹配成功时,所述VNF对所述License文件进行激活;当所述VM中的ESN与所述License文件中记录的ESN匹配不成功时,所述VNF对License文件激活失败。When the ESN in the VM is successfully matched with the ESN recorded in the license file, the VNF activates the license file; the ESN in the VM is not successfully matched with the ESN recorded in the license file. The VNF fails to activate the license file.
下面以图4为例,对本发明又一实施例提供的激活装置进行说明。图4为本发明又一实施例提供的一种虚拟场景下的许可证激活装置结构示意图。Next, an activation device according to still another embodiment of the present invention will be described with reference to FIG. 4 as an example. FIG. 4 is a schematic structural diagram of a license activation apparatus in a virtual scenario according to another embodiment of the present invention.
如图4所示,该装置包括电子序列号生成单元401、注入单元402。As shown in FIG. 4, the apparatus includes an electronic serial number generating unit 401 and an injection unit 402.
所述电子序列号生成单元401,生成ESN。 The electronic serial number generating unit 401 generates an ESN.
具体地,MANO根据UUID算法生成一个字符串作为ESN。Specifically, MANO generates a character string as an ESN according to the UUID algorithm.
所述注入单元402,将所述电子序列号注入到虚拟机中,以便于所述虚拟机的电子序列号与许可证文件中的电子序列号匹配,从而进行许可证文件的激活。The injection unit 402 injects the electronic serial number into the virtual machine, so that the electronic serial number of the virtual machine matches the electronic serial number in the license file, thereby performing activation of the license file.
MANO将ESN注入到VM中,当所述VM中的ESN与所述License文件中记录的ESN匹配成功时,所述VNF对所述License文件进行激活;当所述VM中的ESN与所述License文件中记录的ESN匹配不成功时,所述VNF对License文件激活失败。The MANN injects the ESN into the VM, and when the ESN in the VM is successfully matched with the ESN recorded in the license file, the VNF activates the license file; when the ESN in the VM and the license are When the ESN matching in the file is unsuccessful, the VNF fails to activate the license file.
本发明实施例使得VNF软件的License文件在激活时,读取到VNF运行的VM上的ESN,然后与该VNF上保存的License文件中的ESN进行匹配,从而完成NVF环境下VNF的License激活。In the embodiment of the present invention, when the license file of the VNF software is activated, the ESN of the VM running on the VNF is read, and then the ESN in the license file saved in the VNF is matched, thereby completing the activation of the VNF in the NVF environment.
专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。A person skilled in the art should further appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, in order to clearly illustrate hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The specific embodiments of the present invention have been described in detail with reference to the preferred embodiments of the present invention. All modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims (10)

  1. 一种虚拟场景下的许可证激活方法,其特征在于,所述方法包括:A license activation method in a virtual scenario, the method comprising:
    虚拟网络功能获取虚拟机的电子序列号;The virtual network function obtains the electronic serial number of the virtual machine;
    所述虚拟网络功能获取许可证文件;The virtual network function acquires a license file;
    若所述虚拟机的电子序列号与所述许可证文件中的电子序列号匹配,所述虚拟网络功能对所述许可证文件进行激活;If the electronic serial number of the virtual machine matches the electronic serial number in the license file, the virtual network function activates the license file;
    所述虚拟网络功能运行于所述虚拟机上,所述电子序列号由MANO生成并注入到所述虚拟机。The virtual network function runs on the virtual machine, and the electronic serial number is generated by MANO and injected into the virtual machine.
  2. 根据权利要求1所述的方法,其特征在于,所述电子序列号由MANO生成包括:The method of claim 1 wherein said generating an electronic serial number by MANO comprises:
    所述电子序列号由MANO根据通用唯一识别码算法生成。The electronic serial number is generated by MANO according to a universally unique identification code algorithm.
  3. 根据权利要求1所述的方法,其特征在于,所述虚拟网络功能用于执行激活许可证文件的指令;所述指令为:The method of claim 1 wherein said virtual network function is for executing an instruction to activate a license file; said instruction is:
    获取虚拟机的电子序列号;Obtain the electronic serial number of the virtual machine;
    将所述虚拟机的电子序列号与许可证文件中的电子序列号进行匹配,若匹配成功,则许可证文件激活。The electronic serial number of the virtual machine is matched with the electronic serial number in the license file, and if the matching is successful, the license file is activated.
  4. 一种虚拟场景下的许可证激活方法,其特征在于,所述方法包括:A license activation method in a virtual scenario, the method comprising:
    MANO生成电子序列号;MANO generates an electronic serial number;
    MANO将所述电子序列号注入到虚拟机中;MANO injects the electronic serial number into the virtual machine;
    所述虚拟机中电子序列号用于和许可证文件中的电子序列号匹配,以便于虚拟网络功能对所述许可证文件进行激活。The electronic serial number in the virtual machine is used to match the electronic serial number in the license file to facilitate activation of the license file by the virtual network function.
  5. 根据权利要求4所述的方法,其特征在于,所述MANO生成电子序列号包括:The method of claim 4 wherein said generating an electronic serial number by said MANO comprises:
    所述MANO根据通用唯一识别码算法生成电子序列号。The MANO generates an electronic serial number based on a universally unique identification code algorithm.
  6. 一种虚拟场景下的许可证激活装置,其特征在于,所述装置包括获取单元以及匹配单元;其中,A license activation device in a virtual scenario, wherein the device includes an acquisition unit and a matching unit;
    所述获取单元,用于获取虚拟机的电子序列号,同时获取许可证文件;The obtaining unit is configured to acquire an electronic serial number of the virtual machine and obtain a license file at the same time;
    所述匹配单元,用于将所述虚拟机的电子序列号与所述许可证文件中的电子序列 号进行匹配,以便于所述虚拟网络功能对所述许可证文件进行激活。The matching unit is configured to use an electronic serial number of the virtual machine and an electronic sequence in the license file The number is matched to facilitate activation of the license file by the virtual network function.
  7. 根据权利要求6所述的虚拟网络功能,其特征在于,所述电子序列号由MANO生成并注入到虚拟机。The virtual network function of claim 6 wherein said electronic serial number is generated by MANO and injected into a virtual machine.
  8. 根据权利要求7所述的虚拟网络功能,其特征在于,电子序列号由MANO根据通用唯一识别码算法生成。The virtual network function of claim 7 wherein the electronic serial number is generated by MANO in accordance with a universally unique identification code algorithm.
  9. 一种虚拟场景下的许可证激活装置,其特征在于,所述装置包括电子序列号生成单元以及注入单元;其中,A license activation device in a virtual scenario, the device comprising an electronic serial number generating unit and an injection unit; wherein
    所述电子序列号生成单元,用于生成电子序列号;The electronic serial number generating unit is configured to generate an electronic serial number;
    所述注入单元,用于将所述电子序列号注入到虚拟机中,以便于所述虚拟机的电子序列号与许可证文件中的电子序列号匹配,从而进行许可证文件的激活。The injection unit is configured to inject the electronic serial number into the virtual machine, so that the electronic serial number of the virtual machine matches the electronic serial number in the license file, thereby performing activation of the license file.
  10. 根据权利要求9所述的MANO,其特征在于,所述MANO根据通用唯一识别码算法生成电子序列号。 The MANO of claim 9 wherein said MANO generates an electronic serial number based on a universally unique identification code algorithm.
PCT/CN2016/086754 2016-06-22 2016-06-22 License activation method and device under virtual scene WO2017219287A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/086754 WO2017219287A1 (en) 2016-06-22 2016-06-22 License activation method and device under virtual scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/086754 WO2017219287A1 (en) 2016-06-22 2016-06-22 License activation method and device under virtual scene

Publications (1)

Publication Number Publication Date
WO2017219287A1 true WO2017219287A1 (en) 2017-12-28

Family

ID=60783166

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/086754 WO2017219287A1 (en) 2016-06-22 2016-06-22 License activation method and device under virtual scene

Country Status (1)

Country Link
WO (1) WO2017219287A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020057119A1 (en) * 2018-09-21 2020-03-26 中兴通讯股份有限公司 Authentication method, apparatus, and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150020069A1 (en) * 2013-07-11 2015-01-15 Ritesh Patani Systems and methods of licensing and identification of virtual network appliances
WO2015197025A1 (en) * 2014-06-26 2015-12-30 Huawei Technologies Co., Ltd. System and method for virtual network function policy management
CN103258151B (en) * 2012-10-30 2016-01-20 中国科学院沈阳自动化研究所 A kind of software License control method of real-time authorization

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103258151B (en) * 2012-10-30 2016-01-20 中国科学院沈阳自动化研究所 A kind of software License control method of real-time authorization
US20150020069A1 (en) * 2013-07-11 2015-01-15 Ritesh Patani Systems and methods of licensing and identification of virtual network appliances
WO2015197025A1 (en) * 2014-06-26 2015-12-30 Huawei Technologies Co., Ltd. System and method for virtual network function policy management

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020057119A1 (en) * 2018-09-21 2020-03-26 中兴通讯股份有限公司 Authentication method, apparatus, and system

Similar Documents

Publication Publication Date Title
US10705880B2 (en) Cluster updating using temporary update-monitor pod
US11416342B2 (en) Automatically configuring boot sequence of container systems for disaster recovery
US20210314223A1 (en) Managing Virtual Network Functions
AU2012242758B2 (en) Deployment system for multi-node applications
CN107608757B (en) Container-based isolation processing method and related equipment
US20190394093A1 (en) Cluster creation using self-aware, self-joining cluster nodes
US9542174B2 (en) Deployment of software images with distinct configuration logic
US20180219877A1 (en) Security-based container scheduling
KR101931007B1 (en) Initialization trace of a computing device
US9348646B1 (en) Reboot-initiated virtual machine instance migration
US9635098B2 (en) Open platform, open platform access system, storage medium, and method for allowing third party application to access open platform
US20150178118A1 (en) Guest customization
US9747438B2 (en) Enabling resource access for secure application containers
US10922123B2 (en) Container migration in computing systems
US10133646B1 (en) Fault tolerance in a distributed file system
US10635819B2 (en) Persistent enrollment of a computing device based on a temporary user
US20140013327A1 (en) Trusted Boot of a Virtual Machine
CN109165079B (en) Cloud data center trusted platform based on virtualization and method for building trust chain
US20190266011A1 (en) Task processing method, apparatus, and system based on distributed system
US10402216B1 (en) Live support integration in a virtual machine based development environment
CN103902878A (en) License authentication method and device under virtual environment
US9959157B1 (en) Computing instance migration
US20120130702A1 (en) Verification of a computer program in respect to an unexpected response to an access request
WO2017121153A1 (en) Software upgrading method and device
US9983988B1 (en) Resuming testing after a destructive event

Legal Events

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

Ref document number: 16905829

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16905829

Country of ref document: EP

Kind code of ref document: A1