WO2018077115A1 - Plug-in implementation method, apparatus, and computer storage medium - Google Patents

Plug-in implementation method, apparatus, and computer storage medium Download PDF

Info

Publication number
WO2018077115A1
WO2018077115A1 PCT/CN2017/106968 CN2017106968W WO2018077115A1 WO 2018077115 A1 WO2018077115 A1 WO 2018077115A1 CN 2017106968 W CN2017106968 W CN 2017106968W WO 2018077115 A1 WO2018077115 A1 WO 2018077115A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
plug
implementing
terminated
module
Prior art date
Application number
PCT/CN2017/106968
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 上海中兴软件有限责任公司
Publication of WO2018077115A1 publication Critical patent/WO2018077115A1/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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • 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

Definitions

  • the present disclosure relates to the field of communications, and in particular, to a method, an apparatus, and a computer storage medium for implementing the plug-in.
  • VNFM-G General Virtualised Network Function Managent
  • VNFM-S VNFM plug-in
  • VNFM-G The commonly used script mode plug-in is an abstract interface defined by VNFM-G.
  • the specific implementation is provided in VNFM-S.
  • the interface between VNFM-G and VNFM-S is one-way, and VNFM-S can only be called by VNFM-G.
  • VNFM-S The scripted VNFM-S is deployed inside the VNFM-G and shares the VNFM-G process. Resources are limited by the VNFM-G process. The reliability of VNFM-S directly affects the process safety and stability of VNFM-G. For example: VNFM-S failure may cause VNFM-G to be unavailable. In addition, the VNFM-S developed by script mode has a single development form and is limited by the system framework of VNFM-G.
  • VNFM-G As an example to illustrate that existing plug-ins exist in the entire system by script.
  • the process of sharing the system needs to be shared, so the resources are limited by the system process, and the reliability of the plug-in directly affects the system.
  • the security and stability of the process pose a greater threat to system security and stability.
  • the embodiment of the invention provides a method and a device for implementing the plug-in, which solves the problems existing in the prior art and makes the system more secure and stable.
  • an embodiment of the present invention provides a method for implementing a plug-in, including: a first system receiving operation request information from a second system, wherein the first system is a plug-in that is separated from the second system. a system corresponding to the first plug-in service formed by the micro-service technology; the first system invokes a predetermined basic service according to the operation request information; the first system sends an operation result obtained after calling the predetermined basic service to the The second system.
  • the first system invokes a predetermined basic service according to the operation request information, including: the first system installs and registers the predetermined basic service, so that the predetermined basic service is in Available status.
  • an embodiment of the present invention further provides an apparatus for implementing a plug-in, including: a receiving module, configured to receive operation request information from a second system, where the first system is separated from the second system a plug-in module corresponding to the first plug-in service formed by the micro-service technology; a calling module, configured to invoke a predetermined basic service according to the operation request information; and a return module, configured to: obtain an operation result obtained after the predetermined basic service is invoked Sent to the second system.
  • the implementation device of the plug-in further includes: a determining module, configured to determine whether the second plug-in service corresponding to the operation request information exists in the plug-in service set; and a service setting module, configured to In the case of the second plugin service, the second plugin service is installed and registered to make the second plugin service available.
  • the calling module is configured to install and register the predetermined base service to put the predetermined base service in a usable state.
  • the plug-in exists in the form of a service through the micro-service technology, and the plug-in exists in the form of a service, and has a complete system environment, so that the plug-in can interact with the second system, and does not exist in the second system in an embedded manner.
  • the interaction process does not need to occupy the second system process, and does not pose any threat to the security and reliability of the second system, and the second system process is more secure and stable.
  • FIG. 1 is a flow chart showing a method for implementing a plug-in in a first embodiment of the present invention
  • FIG. 2 is a schematic structural view of an apparatus for implementing an insert in a second embodiment of the present invention
  • FIG. 3 is a schematic diagram showing a preferred structure of an apparatus for implementing an insert in a second embodiment of the present invention
  • FIG. 4 is a schematic diagram of a plug-in system based on a microservice technology in a third embodiment of the present invention.
  • FIG. 5 is a flow chart of instantiation of a VNF in a third embodiment of the present invention.
  • FIG. 6 is a flowchart of termination of a VNF in a fourth embodiment of the present invention.
  • FIG. 7 is a flow chart of a value-added service service usage in an embodiment of the present invention.
  • the following embodiments of the present invention can operate on devices embedded in plug-ins in various operating systems, for example, can be run on devices such as PCs or servers, but are not limited to the specific devices described above.
  • a first embodiment of the present invention provides a method for implementing a plug-in.
  • the process of the method is as shown in FIG. 1 and includes steps S102 to S106:
  • the first system receives operation request information from the second system, where the first system is a system corresponding to the first plug-in service formed by the micro-service technology by the plug-in separated from the second system.
  • the first system of this embodiment is configured to include a system corresponding to the plug-in service and a system corresponding to the system corresponding to the predetermined basic service.
  • the setting of the first system may be different from the first embodiment of the present invention, and may be The system corresponding to the plug-in service is set up in a manner corresponding to the system corresponding to the basic service.
  • the plug-ins can be separated. Therefore, as long as the plug-in separation system can be used as the second system.
  • the first system invokes a predetermined basic service according to the operation request information.
  • a predetermined basic service it can be a general service corresponding to any basic function, and the service can be called by the plug-in service, and the plug-in service completes the function corresponding to the plug-in service by calling one or more predetermined basic services.
  • the first system sends an operation result obtained after the predetermined basic service is called to the second system.
  • the operation result corresponds to the operation request information.
  • the plug-in service requested by the second system is different, the predetermined basic service called by the plug-in service is different, and the first system finally returns to the second system is an execution result of the plug-in service, for example,
  • the original system operation of the client is a plug-in form.
  • the ticketing system client is divided into a first system and a second system, and the first system is from the original ticketing system client.
  • a system in which each plug-in separated in the end exists in the form of a plug-in service. When the user operates in the second system, it will trigger some plug-in service work of the first system, and call some predetermined basic services to complete the function of the entire plug-in.
  • the function of purchasing a soft seat ticket exists in the form of a plug-in service, and when the plug-in service works, it is required to call a predetermined basic service such as a purchaser ID card information, a purchaser user name, etc., according to the predetermined basic services called.
  • a predetermined basic service such as a purchaser ID card information, a purchaser user name, etc.
  • the final purchase of a soft seat ticket is an operation result.
  • the plug-in exists in the form of a service through the micro-service technology, and the plug-in exists in the form of the service, and has a complete system environment, so that the plug-in can interact with the second system, and does not exist in the second system in an embedded manner.
  • the interaction process does not need to occupy the second system process, and does not pose any threat to the security and reliability of the second system, and solves the following problems in the prior art: the existing plug-ins are all present in a script mode. In the system, however, the process of sharing the system is required, so the resources are limited by the system process, and the reliability of the plug-in directly affects the security and stability of the system process, posing a greater threat to system security and stability.
  • the first system After the first system receives the operation request information from the second system, it is also required to determine whether there is a corresponding second plug-in service, so the first system determines whether there is a second plug-in service corresponding to the operation request in the plug-in service set; In the absence of the second plug-in service, the first system installs and registers the second plug-in service to make the second plug-in service available, so that the plug-in service exists in the first system; In the case of the plugin service, the first system directly triggers the second plugin service call according to the operation request information. Book the basic service. In the specific implementation, the predetermined basic service needs to be installed and registered to make the predetermined basic service in a usable state.
  • the second system After the first system sends an operation result obtained after the predetermined basic service is called to the second system, if it is desired to stop the corresponding operation, the second system transmits the operation termination information to the first system.
  • the first system determines whether there is an unsubscribed predetermined basic service; if there is a predetermined basic service that is not terminated, the first system terminates all the predetermined basic services, and then, The scheduled basic service that has been terminated is deregistered; if it is directly detected that there is no unsubscribed predetermined basic service, the first system directly cancels all the terminated basic services that have been terminated. Finally, the corresponding plug-in service is terminated and logged off according to the operation termination information.
  • the foregoing second system may be a VNFM-G, and may of course be other systems.
  • a second embodiment of the present invention provides an apparatus for implementing a plug-in.
  • the structure of the apparatus is as shown in FIG. 2, and includes: a receiving module 10, configured to receive operation request information from a second system, where the first system is a slave
  • the plug-in separated by the second system is a system corresponding to the first plug-in service formed by the micro-service technology;
  • the calling module 20 is coupled with the receiving module 10, and is configured to invoke a predetermined basic service according to the operation request information; returning the module 30, and calling the module 20 coupling for transmitting an operation result obtained after invoking a predetermined basic service to the second system.
  • FIG. 3 is a schematic diagram of a preferred structure of the implementation device of the plug-in, which may further include: a determining module 40, coupled to the receiving module 10, for determining whether there is a second plug-in service corresponding to the operation request in the plug-in service set; the service setting module 50 And coupled to the determining module 40 and the calling module 20, for installing and registering the second plug-in service in the absence of the second plug-in service, so that the second plug-in service is in a usable state.
  • a determining module 40 coupled to the receiving module 10, for determining whether there is a second plug-in service corresponding to the operation request in the plug-in service set
  • the service setting module 50 And coupled to the determining module 40 and the calling module 20, for installing and registering the second plug-in service in the absence of the second plug-in service, so that the second plug-in service is in a usable state.
  • the calling module can also be used to install and register a predetermined underlying service to make the intended underlying service available.
  • the function modules of the above-mentioned plug-in implementation device also have other functions, for example, if the user wants to stop the corresponding operation, the receiving module is further configured to receive operation termination information from the second system; the determining module is further configured to determine whether there is an The terminated basic service; the calling module is further configured to terminate all the predetermined basic services in the case where there is a predetermined basic service that is not terminated; and to cancel all the terminated predetermined bases in the case where there is no unscheduled predetermined basic service
  • the service setting module is further configured to terminate and cancel the first plug-in service and the second plug-in service according to the operation termination information after canceling all the terminated scheduled basic services.
  • the third embodiment of the present invention takes VNFM-G (equivalent to the second system) as an example, and provides a plug-in based on micro-service technology, which can use the orchestration system according to requirements (one aspect of the first system in the second embodiment, Equivalent to the service setting module), the deployment is flexible, and it can be released in association with the main system or as a stand-alone system.
  • VNFM-S VNFM plug-in
  • the VNFM-S of this embodiment exists in the form of a plug-in service. In addition to the VNFM-G service, it runs in a separate process and interacts with the VNFM-G based on an interface scheme, such as an HTTP RESTful interface.
  • Each plug-in service defines explicit boundaries, can be written in different programming languages, can be deployed independently through automated deployment, and can be dynamically scaled.
  • the plug-in service (not written in the first system, actually calling the module is the function of the plug-in service) is equivalent to the adapter of VNFM-G and VNF/EM. After the successful programming of the VNF, the VNF lifecycle change notification is sent. , adapt to VNF / EM interface.
  • a VNF consists of a number of predetermined base services, and the plug-in service is reserved for the underlying service (ie, the plug-in service exists before the scheduled basic service) to assist the VNFM-G in completing the VNF lifecycle management.
  • Plug-in services exist in the form of shared services, that is, multiple VNF instances can share a plug-in service instance.
  • the service discovery system (one aspect of the first system in the second embodiment, corresponding to the judgment module) manages the plug-in service and the predetermined basic service instance information, and discovers to the service through an interface scheme (for example, HTTP Restful) when the service is started.
  • the system registers the service; when the service is stopped, the service is logged out of the service discovery system.
  • the installation of the plugin service is part of the VNF instantiation process.
  • the uninstallation of the plugin service is part of the termination of the VNF instance.
  • the plug-in service instance is first created according to the plug-in service description information, and registered in the service discovery system, and the scheduled basic service relies on the plug-in service to complete its deployment.
  • the plug-in service is decoupled from VNFM-G.
  • the management of the plug-in service is independent of VNFM-G, and the management is more flexible.
  • the installation and uninstallation of a plug-in service does not affect the normal operation of VNFM-G and other plug-in services. Plug-in service exceptions will not affect VNFM-G and other plug-in service functions, and the security is better.
  • the orchestration process needs to instantiate 2000 VNFs (that is, there are 2000 processes). If the plug-in memory and CPU exceed the load limit, multiple plug-in services can be popped up to achieve load balancing.
  • FIG. 4 is a schematic diagram of a function of a plug-in system (corresponding to the first system of the second embodiment) based on a micro-service technology, including a service deployment module (equivalent to a service setting module), a service discovery module (corresponding to a judgment module), and a plug-in service ( Equivalent to calling the module), interacting with VNFM-G (equivalent to the second system) throughout the process to achieve VNF/EM (equivalent to the result of the operation).
  • a service deployment module equivalent to a service setting module
  • a service discovery module corresponding to a judgment module
  • plug-in service Equivalent to calling the module
  • VNFM-G is a universal VNFM, which is a virtual network function management system that completes the life cycle management of the VNF.
  • the service deployment module describes the life cycle of the package management service according to the service information, and the service discovery module registers and manages the service instance information. And provide external access interface; plug-in service, provided by the equipment manufacturer, is a special type of VNF special adapter, used to assist VNFM-G to complete VNF lifecycle management, to achieve VNF / EM management interface adaptation.
  • FIG. 5 is a VNF instantiation flow diagram (including plug-in installation) including steps 1 through 9.
  • Step 1 Parse the VNF package information.
  • step 2 the VNFM-G initiates an instantiation process.
  • Step 3 The VNFM-G queries the service discovery module for the registration information of the plug-in service.
  • Step 4 Query the registration information of the plugin service.
  • Step 5 If the plugin service does not exist, install the plugin service through the service deployment module; if the plugin service exists, continue with steps 7, 8, and 9.
  • Step 6 Register the plugin service with the service discovery.
  • Step 7. Install the scheduled basic service through the service deployment module.
  • Step 8 Register a predetermined basic service with the service discovery module.
  • Step 9 Inform the VNF to instantiate the result, and the instantiation ends.
  • FIG. 6 is a VNF termination flow diagram (including plug-in uninstallation).
  • the plug-in is uninstalled when the VNF is terminated. If the scheduled basic services of all VNFs associated with the plug-in service have been terminated, the plug-in will be uninstalled and the relevant information is deleted from the service registration module. information. Includes steps 1 through 6.
  • Step 1 The VNFM-G initiates a VNF termination operation.
  • step 2 the service deployment module terminates the predetermined basic service.
  • Step 3 The notification service discovery module logs out the predetermined basic service information.
  • VNFM-G checks if the plugin service is dependent on other predetermined base services, and if so, terminates the operation; if not, proceeds to the next step.
  • step 5 the service deployment module terminates the plugin service.
  • step 6 the service discovery module is notified to cancel the plug-in service information, and the termination operation ends.
  • the VNFM-S is equivalent to a slave system of the VNFM-G, and a slave system is established by the microservice technology.
  • the VNFM-S based on micro-service technology can be arranged and arranged according to the requirements, and can be deployed flexibly. It can be released in association with VNFM-G, published in association with VNF, or released as a stand-alone system.
  • the micro-service-based VNFM-S is independent of the VNFM-G process and has no impact on each other, and has better security and stability.
  • the interface between VNFM-S and VNFM-G can realize bidirectional interconnection.
  • VNFM-G can notify VNFM-S to perform adaptation processing, and VNFM-S can also report processing progress to VNFM-G.
  • the development language and system framework of VNFM-S can be determined by the plug-in provider, and has nothing to do with VNFM-G, thus achieving independent development.
  • the VNFM-S service can be dynamically scaled by monitoring service performance.
  • the fourth embodiment of the present invention uses big data analysis as an example to describe the working process of the plug-in service.
  • Big data analysis software (equivalent to the second system) can analyze the user's big data and generate an analysis report. If the user purchases the corresponding value-added service (equivalent to the plug-in service), the value-added service can be used to obtain a more detailed analysis. result. Value-added services can be deployed and deployed using the plug-in services of micro-service technology.
  • Figure 7 shows the value-added service service usage process, including steps 1 through 7.
  • Step 1 The user initiates a big data processing request.
  • step 2 the basic analysis service generates a processing report.
  • step 3 the basic analysis service requests the value-added service A to process. In this process, you need to call some services that you need to use.
  • step 4 the value-added service A generates a high-value report for the basic analysis service.
  • step 5 the basic analysis service requests the value added service B to process.
  • step 6 the value-added service B generates a high-value report for the basic analysis service.
  • Step 7 The basic analysis service summarizes the report and presents it to the user.
  • the present invention can be applied to various fields. As long as it is a script form or a plug-in embedded in the main system, it can be implemented by a plug-in service of the micro service technology.
  • modules in the client in the embodiment can be adaptively changed and placed in one or more clients different from the embodiment.
  • the modules in the embodiments can be combined into one module, and further they can be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the client are combined.
  • Each feature disclosed in this specification may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components loaded with the ordered web address in accordance with an embodiment of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • the technical solution provided by the embodiment of the present invention can be applied to the field of communications.
  • the plug-in provided by the technical solution of the embodiment of the present invention exists in the form of a service through a micro-service technology, and the plug-in existing through the service form has a complete system environment, and thus can interact with the second system without being embedded.
  • Exist in the second system the interaction process does not need to occupy the second system process, and does not pose any threat to the security and reliability of the second system, and the second system process is more secure and stable.

Abstract

The present disclosure relates to a plug-in implementation method, apparatus, and computer storage medium, said method comprising: a first system receiving operation request information from a second system, said first system being a system corresponding to a first plug-in service formed by means of a micro-service by a plug-in separated from the second system; the first system calling a predetermined basic service according to the operation request information; the first system sending to the second system the operation result obtained after calling the predetermined basic service. The plug-in of the present disclosure exists in the form of a micro-service by means of micro-service technology; the plug-in existing in the form of a service has a complete system environment, and therefore can interact with a second system without existing in embedded form in the second system; the process of interaction does not need to occupy a process of the second system and does not present any threat to the security and reliability of the second system, thus solving the problems of the prior art. (FIG. 1)

Description

一种插件的实现方法、装置和计算机存储介质Method, device and computer storage medium for implementing plug-in 技术领域Technical field
本公开涉及通讯领域,特别是涉及一种插件的实现方法、装置和计算机存储介质。The present disclosure relates to the field of communications, and in particular, to a method, an apparatus, and a computer storage medium for implementing the plug-in.
背景技术Background technique
随着NFV(网络功能虚拟化,Network Function Virtualization)标准的发展,以及NFV商用化的实践,通用VNFM架构(通用虚拟网络管理系统,General Virtualised Network Function Managent,简称VNFM-G),被越来越多的运营商运用于他们的虚拟化架构之中。VNFM-G需要管理不同产品线,甚至异厂商网元,这就需要专用VNFM插件(简称VNFM-S)来实现。VNFM-G在管理VNF(虚拟网络功能,Virtualised Network Function)以及向EM(网管,Element Managent)发送通知时,需要一些专用适配器才能保障工作的正常进行,适配工作就是由VNFM-S完成的。With the development of NFV (Network Function Virtualization) standards and the practice of NFV commercialization, the general VNFM architecture (General Virtualised Network Function Managent, VNFM-G) is becoming more and more Many operators are used in their virtualization architecture. VNFM-G needs to manage different product lines, even different vendor network elements, which requires a dedicated VNFM plug-in (referred to as VNFM-S). When VNFM-G manages VNF (Virtualised Network Function) and sends notifications to EM (Element Managent), it needs some special adapters to ensure the normal operation. The adaptation work is done by VNFM-S.
常用的脚本方式插件是由VNFM-G定义抽象接口,在VNFM-S中提供具体实现,VNFM-G与VNFM-S之间的接口是单向的,只能由VNFM-G调用VNFM-S。The commonly used script mode plug-in is an abstract interface defined by VNFM-G. The specific implementation is provided in VNFM-S. The interface between VNFM-G and VNFM-S is one-way, and VNFM-S can only be called by VNFM-G.
脚本方式的VNFM-S部署在VNFM-G内部,共用VNFM-G的进程,资源受VNFM-G进程的限制。VNFM-S的可靠性直接影响VNFM-G的进程安全性和稳定性。例如:VNFM-S故障可能导致VNFM-G不可用。此外,脚本方式开发的VNFM-S,开发形式单一,受限于VNFM-G的系统框架,实施改造困难。The scripted VNFM-S is deployed inside the VNFM-G and shares the VNFM-G process. Resources are limited by the VNFM-G process. The reliability of VNFM-S directly affects the process safety and stability of VNFM-G. For example: VNFM-S failure may cause VNFM-G to be unavailable. In addition, the VNFM-S developed by script mode has a single development form and is limited by the system framework of VNFM-G.
上面只是以VNFM-G为例来说明,现有插件都是以脚本方式存在于整个系统内,然而,需要共用系统的进程,所以资源受系统进程的限制,且插件的可靠性会直接影响系统进程的安全和稳定,对系统安全和稳定构成较大威胁。The above just uses VNFM-G as an example to illustrate that existing plug-ins exist in the entire system by script. However, the process of sharing the system needs to be shared, so the resources are limited by the system process, and the reliability of the plug-in directly affects the system. The security and stability of the process pose a greater threat to system security and stability.
发明内容Summary of the invention
本发明实施例提供一种插件的实现方法和装置,用以解决现有技术存在的问题,使系统更加安全和稳定。The embodiment of the invention provides a method and a device for implementing the plug-in, which solves the problems existing in the prior art and makes the system more secure and stable.
一方面,本发明实施例提供一种插件的实现方法,包括:第一系统接收来自第二系统的操作请求信息,其中,所述第一系统为从所述第二系统中分离出的插件通过微服务技术形成的第一插件服务对应的系统;所述第一系统根据所述操作请求信息调用预定基础服务;所述第一系统将调用所述预定基础服务后得到的操作结果发送至所述第二系统。In one aspect, an embodiment of the present invention provides a method for implementing a plug-in, including: a first system receiving operation request information from a second system, wherein the first system is a plug-in that is separated from the second system. a system corresponding to the first plug-in service formed by the micro-service technology; the first system invokes a predetermined basic service according to the operation request information; the first system sends an operation result obtained after calling the predetermined basic service to the The second system.
根据一个示例性实施例,所述第一系统根据所述操作请求信息调用预定基础服务,包括:所述第一系统安装并注册所述预定基础服务,以使所述预定基础服务处于 可使用状态。According to an exemplary embodiment, the first system invokes a predetermined basic service according to the operation request information, including: the first system installs and registers the predetermined basic service, so that the predetermined basic service is in Available status.
另一方面,本发明实施例还提供一种插件的实现装置,包括:接收模块,用于接收来自第二系统的操作请求信息,其中,所述第一系统为从所述第二系统中分离出的插件通过微服务技术形成的第一插件服务对应的系统;调用模块,用于根据所述操作请求信息调用预定基础服务;返回模块,用于将调用所述预定基础服务后得到的操作结果发送至所述第二系统。In another aspect, an embodiment of the present invention further provides an apparatus for implementing a plug-in, including: a receiving module, configured to receive operation request information from a second system, where the first system is separated from the second system a plug-in module corresponding to the first plug-in service formed by the micro-service technology; a calling module, configured to invoke a predetermined basic service according to the operation request information; and a return module, configured to: obtain an operation result obtained after the predetermined basic service is invoked Sent to the second system.
根据一个示例性实施例,所述插件的实现装置还包括:判断模块,用于判断插件服务集中是否存在所述操作请求信息对应的第二插件服务;服务设置模块,用于在不存在所述第二插件服务的情况下,安装并注册所述第二插件服务,以使所述第二插件服务处于可使用状态。According to an exemplary embodiment, the implementation device of the plug-in further includes: a determining module, configured to determine whether the second plug-in service corresponding to the operation request information exists in the plug-in service set; and a service setting module, configured to In the case of the second plugin service, the second plugin service is installed and registered to make the second plugin service available.
根据一个示例性实施例,所述调用模块用于安装并注册所述预定基础服务,以使所述预定基础服务处于可使用状态。According to an exemplary embodiment, the calling module is configured to install and register the predetermined base service to put the predetermined base service in a usable state.
本发明实施例中插件是通过微服务技术以服务的形式存在,通过服务形式存在的插件,具有完备的系统环境,因此可以与第二系统交互,又不以嵌入的方式存在于第二系统之中,交互过程不需要占用第二系统进程,且不会对第二系统的安全和可靠性带来任何威胁,第二系统进程的安全和稳定性更高。In the embodiment of the present invention, the plug-in exists in the form of a service through the micro-service technology, and the plug-in exists in the form of a service, and has a complete system environment, so that the plug-in can interact with the second system, and does not exist in the second system in an embedded manner. The interaction process does not need to occupy the second system process, and does not pose any threat to the security and reliability of the second system, and the second system process is more secure and stable.
附图说明DRAWINGS
图1是本发明第一实施例中插件的实现方法的流程图;1 is a flow chart showing a method for implementing a plug-in in a first embodiment of the present invention;
图2是本发明第二实施例中插件的实现装置的结构示意图;2 is a schematic structural view of an apparatus for implementing an insert in a second embodiment of the present invention;
图3是本发明第二实施例中插件的实现装置的优选结构示意图;3 is a schematic diagram showing a preferred structure of an apparatus for implementing an insert in a second embodiment of the present invention;
图4是本发明第三实施例中基于微服务技术的插件系统的示意图;4 is a schematic diagram of a plug-in system based on a microservice technology in a third embodiment of the present invention;
图5是本发明第三实施例中VNF实例化流程图;5 is a flow chart of instantiation of a VNF in a third embodiment of the present invention;
图6是本发明第四实施例中VNF终止流程图;6 is a flowchart of termination of a VNF in a fourth embodiment of the present invention;
图7是本发明实施例中增值业务服务使用流程。FIG. 7 is a flow chart of a value-added service service usage in an embodiment of the present invention.
具体实施方式detailed description
为了解决现有技术的如下问题:现有插件都是以脚本方式存在于整个系统内,然而,需要共用系统的进程,所以资源受系统进程的限制,且插件的可靠性会直接影响系统进程的安全和稳定,对系统安全和稳定构成较大威胁;本发明提供了一种插件的实现方法和装置,以下结合附图以及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不限定本发明。In order to solve the following problems in the prior art: existing plug-ins exist in the entire system in a script mode. However, processes that share the system are required, so resources are limited by system processes, and the reliability of the plug-ins directly affects system processes. The invention is safe and stable, and poses a great threat to system security and stability. The present invention provides a method and an apparatus for implementing the plug-in. The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明下述实施例可以运行于各种运行系统中嵌入插件的设备,例如,可以在PC机或服务器等设备上运行,但实现时并不限定于上述特定设备。 The following embodiments of the present invention can operate on devices embedded in plug-ins in various operating systems, for example, can be run on devices such as PCs or servers, but are not limited to the specific devices described above.
第一实施例First embodiment
本发明第一实施例提供了一种插件的实现方法,该方法的流程如图1所示,包括步骤S102至S106:A first embodiment of the present invention provides a method for implementing a plug-in. The process of the method is as shown in FIG. 1 and includes steps S102 to S106:
S102,第一系统接收来自第二系统的操作请求信息,其中,第一系统为从第二系统中分离出的插件通过微服务技术形成的第一插件服务对应的系统。本实施例的第一系统设置为包括插件服务对应的系统和预定基础服务对应的系统的一个大系统,当然,在实现时,第一系统的设置可以和本发明第一实施例不同,可以以单独的插件服务对应的系统和单独预定基础服务对应的系统的方式来设置。S102. The first system receives operation request information from the second system, where the first system is a system corresponding to the first plug-in service formed by the micro-service technology by the plug-in separated from the second system. The first system of this embodiment is configured to include a system corresponding to the plug-in service and a system corresponding to the system corresponding to the predetermined basic service. Of course, when implemented, the setting of the first system may be different from the first embodiment of the present invention, and may be The system corresponding to the plug-in service is set up in a manner corresponding to the system corresponding to the basic service.
只要是现有插件嵌入在系统内部来运行的,都可以进行插件分离,因此,只要能进行插件分离的系统都可以作为第二系统。As long as the existing plug-ins are embedded in the system to run, the plug-ins can be separated. Therefore, as long as the plug-in separation system can be used as the second system.
S104,第一系统根据操作请求信息调用预定基础服务。对于预定基础服务,其可以是任何基础功能对应的普通服务,该服务是可以被插件服务调用的,插件服务通过调用一个或多个预定基础服务来完成插件服务对应的功能。S104. The first system invokes a predetermined basic service according to the operation request information. For a predetermined basic service, it can be a general service corresponding to any basic function, and the service can be called by the plug-in service, and the plug-in service completes the function corresponding to the plug-in service by calling one or more predetermined basic services.
S106,第一系统将调用预定基础服务后得到的操作结果发送至第二系统。S106. The first system sends an operation result obtained after the predetermined basic service is called to the second system.
上述操作结果对应着操作请求信息,由于第二系统请求的插件服务不同,因此插件服务调用的预定基础服务不同,第一系统最后返回给第二系统的就是插件服务调用完的一个执行结果,例如,有一个购票系统客户端,该客户端原本的系统运行是插件形式,现在,该购票系统客户端分为第一系统和第二系统,则第一系统就是从原来的购票系统客户端中分离出的各个插件以插件服务形式存在而形成的系统。当用户在第二系统中进行操作时,则会触发第一系统的某些插件服务工作,去调用一些预定基础服务,以完成整个插件的功能。例如,购买软座票的功能是以插件服务的形式存在的,则在该插件服务工作时,需要调用购买者身份证信息、购买者用户名等预定基础服务,根据调用的这些预定基础服务来实现购买软座票的这个功能,则最后购买到软座票就是一个操作结果。The operation result corresponds to the operation request information. Because the plug-in service requested by the second system is different, the predetermined basic service called by the plug-in service is different, and the first system finally returns to the second system is an execution result of the plug-in service, for example, There is a ticketing system client. The original system operation of the client is a plug-in form. Now, the ticketing system client is divided into a first system and a second system, and the first system is from the original ticketing system client. A system in which each plug-in separated in the end exists in the form of a plug-in service. When the user operates in the second system, it will trigger some plug-in service work of the first system, and call some predetermined basic services to complete the function of the entire plug-in. For example, the function of purchasing a soft seat ticket exists in the form of a plug-in service, and when the plug-in service works, it is required to call a predetermined basic service such as a purchaser ID card information, a purchaser user name, etc., according to the predetermined basic services called. To achieve this function of purchasing a soft seat ticket, the final purchase of a soft seat ticket is an operation result.
本发明实施例中,插件是通过微服务技术以服务的形式存在,通过服务形式存在的插件,具有完备的系统环境,因此可以与第二系统交互,又不以嵌入的方式存在于第二系统之中,交互过程不需要占用第二系统进程,且不会对第二系统的安全和可靠性带来任何威胁,解决了现有技术的如下问题:现有插件都是以脚本方式存在于整个系统内,然而,需要共用系统的进程,所以资源受系统进程的限制,且插件的可靠性会直接影响系统进程的安全和稳定,对系统安全和稳定构成较大威胁。In the embodiment of the present invention, the plug-in exists in the form of a service through the micro-service technology, and the plug-in exists in the form of the service, and has a complete system environment, so that the plug-in can interact with the second system, and does not exist in the second system in an embedded manner. The interaction process does not need to occupy the second system process, and does not pose any threat to the security and reliability of the second system, and solves the following problems in the prior art: the existing plug-ins are all present in a script mode. In the system, however, the process of sharing the system is required, so the resources are limited by the system process, and the reliability of the plug-in directly affects the security and stability of the system process, posing a greater threat to system security and stability.
实现的过程中,第一系统接收来自第二系统的操作请求信息之后,还需要判断是否存在对应的第二插件服务,因此第一系统判断插件服务集中是否存在操作请求对应的第二插件服务;在不存在第二插件服务的情况下,第一系统安装并注册第二插件服务,以使第二插件服务处于可使用状态,这样,插件服务就存在于第一系统中了;在存在第二插件服务的情况下,第一系统根据操作请求信息直接触发第二插件服务调用 预定基础服务。具体实现时,需要对预定基础服务安装和注册,以使预定基础服务处于可使用状态。In the process of the implementation, after the first system receives the operation request information from the second system, it is also required to determine whether there is a corresponding second plug-in service, so the first system determines whether there is a second plug-in service corresponding to the operation request in the plug-in service set; In the absence of the second plug-in service, the first system installs and registers the second plug-in service to make the second plug-in service available, so that the plug-in service exists in the first system; In the case of the plugin service, the first system directly triggers the second plugin service call according to the operation request information. Book the basic service. In the specific implementation, the predetermined basic service needs to be installed and registered to make the predetermined basic service in a usable state.
在第一系统将调用预定基础服务后得到的操作结果发送至第二系统之后,如果想要停止对应的操作,则第二系统向第一系统发送操作终止信息。第一系统接收到来自第二系统的操作终止信息后,第一系统判断是否存在未终止的预定基础服务;如果存在未终止的预定基础服务,则第一系统终止所有预定基础服务,随后,再对已终止的预定基础服务进行注销;如果直接就检测到不存在未终止的预定基础服务,则第一系统直接注销所有已终止的预定基础服务。最后,再根据操作终止信息终止并注销对应的插件服务。After the first system sends an operation result obtained after the predetermined basic service is called to the second system, if it is desired to stop the corresponding operation, the second system transmits the operation termination information to the first system. After the first system receives the operation termination information from the second system, the first system determines whether there is an unsubscribed predetermined basic service; if there is a predetermined basic service that is not terminated, the first system terminates all the predetermined basic services, and then, The scheduled basic service that has been terminated is deregistered; if it is directly detected that there is no unsubscribed predetermined basic service, the first system directly cancels all the terminated basic services that have been terminated. Finally, the corresponding plug-in service is terminated and logged off according to the operation termination information.
具体实现时,上述第二系统可以为VNFM-G,当然也可以是其他系统。In a specific implementation, the foregoing second system may be a VNFM-G, and may of course be other systems.
第二实施例Second embodiment
本发明第二实施例提供一种插件的实现装置,该装置的结构示意如图2所示,包括:接收模块10,用于接收来自第二系统的操作请求信息,其中,第一系统为从第二系统中分离出的插件通过微服务技术形成的第一插件服务对应的系统;调用模块20,与接收模块10耦合,用于根据操作请求信息调用预定基础服务;返回模块30,与调用模块20耦合,用于将调用预定基础服务后得到的操作结果发送至第二系统。A second embodiment of the present invention provides an apparatus for implementing a plug-in. The structure of the apparatus is as shown in FIG. 2, and includes: a receiving module 10, configured to receive operation request information from a second system, where the first system is a slave The plug-in separated by the second system is a system corresponding to the first plug-in service formed by the micro-service technology; the calling module 20 is coupled with the receiving module 10, and is configured to invoke a predetermined basic service according to the operation request information; returning the module 30, and calling the module 20 coupling for transmitting an operation result obtained after invoking a predetermined basic service to the second system.
图3示出了插件的实现装置的优选结构示意图,其还可以包括:判断模块40,与接收模块10耦合,用于判断插件服务集中是否存在操作请求对应的第二插件服务;服务设置模块50,与判断模块40和调用模块20耦合,用于在不存在第二插件服务的情况下,安装并注册第二插件服务,以使第二插件服务处于可使用状态。FIG. 3 is a schematic diagram of a preferred structure of the implementation device of the plug-in, which may further include: a determining module 40, coupled to the receiving module 10, for determining whether there is a second plug-in service corresponding to the operation request in the plug-in service set; the service setting module 50 And coupled to the determining module 40 and the calling module 20, for installing and registering the second plug-in service in the absence of the second plug-in service, so that the second plug-in service is in a usable state.
实现时,调用模块还可以用于安装并注册预定基础服务,以使预定基础服务处于可使用状态。In implementation, the calling module can also be used to install and register a predetermined underlying service to make the intended underlying service available.
上述插件的实现装置各个功能模块还具有其他的功能,例如,如果想要停止对应的操作,则接收模块还用于接收来自第二系统的操作终止信息;判断模块,还用于判断是否存在未终止的预定基础服务;调用模块,还用于在存在未终止的预定基础服务的情况下,终止所有预定基础服务;在不存在未终止的预定基础服务的情况下,注销所有已终止的预定基础服务;服务设置模块,还用于在注销所有已终止的预定基础服务之后,根据操作终止信息终止并注销第一插件服务和第二插件服务。The function modules of the above-mentioned plug-in implementation device also have other functions, for example, if the user wants to stop the corresponding operation, the receiving module is further configured to receive operation termination information from the second system; the determining module is further configured to determine whether there is an The terminated basic service; the calling module is further configured to terminate all the predetermined basic services in the case where there is a predetermined basic service that is not terminated; and to cancel all the terminated predetermined bases in the case where there is no unscheduled predetermined basic service The service setting module is further configured to terminate and cancel the first plug-in service and the second plug-in service according to the operation termination information after canceling all the terminated scheduled basic services.
第三实施例Third embodiment
本发明第三实施例以VNFM-G(相当于第二系统)为例,提供一种基于微服务技术的插件,可以根据需求,使用编排系统(第二实施例中第一系统的一个方面,相当于服务设置模块)进行编排,部署灵活,既可以跟主系统关联发布,也可以作为独立系统发布。下面偏重于通信网络的VNFM插件(VNFM-S)来进行说明。 The third embodiment of the present invention takes VNFM-G (equivalent to the second system) as an example, and provides a plug-in based on micro-service technology, which can use the orchestration system according to requirements (one aspect of the first system in the second embodiment, Equivalent to the service setting module), the deployment is flexible, and it can be released in association with the main system or as a stand-alone system. The following is a description of the VNFM plug-in (VNFM-S) of the communication network.
本实施例的VNFM-S以插件服务的形式存在,于VNFM-G服务之外,在独立进程中运行,基于某种接口方案与VNFM-G交互,例如HTTP RESTful接口。The VNFM-S of this embodiment exists in the form of a plug-in service. In addition to the VNFM-G service, it runs in a separate process and interacts with the VNFM-G based on an interface scheme, such as an HTTP RESTful interface.
每个插件服务都定义了明确的边界,可以使用不同编程语言编写,能够通过自动化部署方式独立部署,可动态伸缩。Each plug-in service defines explicit boundaries, can be written in different programming languages, can be deployed independently through automated deployment, and can be dynamically scaled.
插件服务(在第一系统中并未写出,实际上是调用模块就是插件服务执行的功能)相当于是VNFM-G与VNF/EM的适配器,编排系统编排VNF成功后,发送VNF生命周期变更通知,适配VNF/EM接口等。一个VNF由多个预定基础服务组成,插件服务被预定基础服务依赖(即插件服务是在预定基础服务之前存在的),协助VNFM-G完成VNF生命周期管理。插件服务以共享服务的方式存在,即多VNF实例可以共用一个插件服务实例。The plug-in service (not written in the first system, actually calling the module is the function of the plug-in service) is equivalent to the adapter of VNFM-G and VNF/EM. After the successful programming of the VNF, the VNF lifecycle change notification is sent. , adapt to VNF / EM interface. A VNF consists of a number of predetermined base services, and the plug-in service is reserved for the underlying service (ie, the plug-in service exists before the scheduled basic service) to assist the VNFM-G in completing the VNF lifecycle management. Plug-in services exist in the form of shared services, that is, multiple VNF instances can share a plug-in service instance.
服务发现系统(第二实施例中第一系统的一个方面,相当于判断模块)对插件服务和预定基础服务实例信息进行管理,当服务启动时通过某种接口方案(例如HTTP Restful)向服务发现系统注册服务;当服务停止时,向服务发现系统注销服务。The service discovery system (one aspect of the first system in the second embodiment, corresponding to the judgment module) manages the plug-in service and the predetermined basic service instance information, and discovers to the service through an interface scheme (for example, HTTP Restful) when the service is started. The system registers the service; when the service is stopped, the service is logged out of the service discovery system.
插件服务的安装属于VNF实例化过程的一部分。插件服务的卸载,是VNF实例终止的一部分。在VNF实例化过程中,首先根据插件服务描述信息,创建插件服务实例,并在服务发现系统中注册,预定基础服务会依赖插件服务来完成自身的部署。The installation of the plugin service is part of the VNF instantiation process. The uninstallation of the plugin service is part of the termination of the VNF instance. In the VNF instantiation process, the plug-in service instance is first created according to the plug-in service description information, and registered in the service discovery system, and the scheduled basic service relies on the plug-in service to complete its deployment.
插件服务与VNFM-G解耦,插件服务的管理独立于VNFM-G之外,管理更灵活。某种插件服务的安装和卸载都不影响VNFM-G和其他插件服务的正常运转,插件服务异常不会对VNFM-G和其他插件服务功能造成影响,安全性更好。The plug-in service is decoupled from VNFM-G. The management of the plug-in service is independent of VNFM-G, and the management is more flexible. The installation and uninstallation of a plug-in service does not affect the normal operation of VNFM-G and other plug-in services. Plug-in service exceptions will not affect VNFM-G and other plug-in service functions, and the security is better.
基于服务的可弹缩特性,可以监控插件服务的负载情况,对其进行动态伸缩。例如,编排过程要实例化2000个VNF(即存在2000个进程),如果插件内存和CPU超过负荷上限,可以通过弹出多个插件服务,以达到负载均衡的目的。Based on the service-based scalability feature, you can monitor the load of the plug-in service and dynamically scale it. For example, the orchestration process needs to instantiate 2000 VNFs (that is, there are 2000 processes). If the plug-in memory and CPU exceed the load limit, multiple plug-in services can be popped up to achieve load balancing.
下面结合附图对上述技术方案的实施作进一步的详细描述。The implementation of the above technical solution will be further described in detail below with reference to the accompanying drawings.
图4是基于微服务技术的插件系统(相当于第二实施例的第一系统)功能示意图,包含服务部署模块(相当于服务设置模块)、服务发现模块(相当于判断模块)、插件服务(相当于调用模块),整个过程中与VNFM-G(相当于第二系统)交互,实现VNF/EM(相当于操作结果)。4 is a schematic diagram of a function of a plug-in system (corresponding to the first system of the second embodiment) based on a micro-service technology, including a service deployment module (equivalent to a service setting module), a service discovery module (corresponding to a judgment module), and a plug-in service ( Equivalent to calling the module), interacting with VNFM-G (equivalent to the second system) throughout the process to achieve VNF/EM (equivalent to the result of the operation).
VNFM-G是通用VNFM,是虚拟网络功能管理系统,完成对VNF的生命周期等管理;服务部署模块,根据服务信息描述包管理服务的生命周期等,服务发现模块对服务实例信息进行注册管理,并提供对外访问接口;插件服务,由设备厂商提供,是特定类型VNF的专用适配器,用于辅助VNFM-G完成VNF生命周期管理,实现VNF/EM管理接口的适配。VNFM-G is a universal VNFM, which is a virtual network function management system that completes the life cycle management of the VNF. The service deployment module describes the life cycle of the package management service according to the service information, and the service discovery module registers and manages the service instance information. And provide external access interface; plug-in service, provided by the equipment manufacturer, is a special type of VNF special adapter, used to assist VNFM-G to complete VNF lifecycle management, to achieve VNF / EM management interface adaptation.
图5是VNF实例化流程图(包含插件安装),其包括步骤1至9。Figure 5 is a VNF instantiation flow diagram (including plug-in installation) including steps 1 through 9.
步骤1,解析VNF软件包信息。 Step 1. Parse the VNF package information.
步骤2,VNFM-G发起实例化流程。 In step 2, the VNFM-G initiates an instantiation process.
步骤3,VNFM-G向服务发现模块查询插件服务的注册信息。Step 3: The VNFM-G queries the service discovery module for the registration information of the plug-in service.
步骤4,查询插件服务的注册信息。Step 4: Query the registration information of the plugin service.
步骤5,如果插件服务不存在,通过服务部署模块安装插件服务;如果插件服务存在,则继续执行步骤7,8,9。Step 5. If the plugin service does not exist, install the plugin service through the service deployment module; if the plugin service exists, continue with steps 7, 8, and 9.
步骤6,向服务发现注册插件服务。Step 6. Register the plugin service with the service discovery.
步骤7,通过服务部署模块安装预定基础服务。Step 7. Install the scheduled basic service through the service deployment module.
步骤8,向服务发现模块注册预定基础服务。Step 8. Register a predetermined basic service with the service discovery module.
步骤9,通知VNF实例化结果,实例化结束。Step 9. Inform the VNF to instantiate the result, and the instantiation ends.
图6是VNF终止流程图(包含插件卸载),插件在发起VNF终止时卸载,如果该插件服务关联的所有VNF的预定基础服务都已经终止,则插件会被卸载,从服务注册模块中删除相关信息。包括步骤1至6。Figure 6 is a VNF termination flow diagram (including plug-in uninstallation). The plug-in is uninstalled when the VNF is terminated. If the scheduled basic services of all VNFs associated with the plug-in service have been terminated, the plug-in will be uninstalled and the relevant information is deleted from the service registration module. information. Includes steps 1 through 6.
步骤1,VNFM-G发起VNF终止操作。 Step 1. The VNFM-G initiates a VNF termination operation.
步骤2,服务部署模块终止预定基础服务。In step 2, the service deployment module terminates the predetermined basic service.
步骤3,通知服务发现模块注销预定基础服务信息。Step 3: The notification service discovery module logs out the predetermined basic service information.
步骤4,VNFM-G检查插件服务是否被其他预定基础服务依赖,如果是,终止操作结束;如果否,进入后续步骤。In step 4, VNFM-G checks if the plugin service is dependent on other predetermined base services, and if so, terminates the operation; if not, proceeds to the next step.
步骤5,服务部署模块终止插件服务。In step 5, the service deployment module terminates the plugin service.
步骤6,通知服务发现模块注销插件服务信息,终止操作结束。In step 6, the service discovery module is notified to cancel the plug-in service information, and the termination operation ends.
在本实施例中,VNFM-S相当于是VNFM-G的一个从系统,是通过微服务技术建立一个从系统。基于微服务技术的VNFM-S,可以根据需求,使用编排系统进行编排,部署灵活,既可以跟VNFM-G关联发布,也可以跟VNF关联发布,也可以作为独立系统发布。基于微服务的VNFM-S与VNFM-G进程独立,互不影响,安全性和稳定性更好。VNFM-S和VNFM-G之间的接口可以实现双向互联,VNFM-G可以通知VNFM-S做适配处理,VNFM-S也可以上报处理进度给VNFM-G。此外,VNFM-S的开发语言和系统框架可以由插件提供方确定,跟VNFM-G没有关系,从而实现自主开发。通过监控服务性能可以对VNFM-S服务进行动态弹缩。In this embodiment, the VNFM-S is equivalent to a slave system of the VNFM-G, and a slave system is established by the microservice technology. The VNFM-S based on micro-service technology can be arranged and arranged according to the requirements, and can be deployed flexibly. It can be released in association with VNFM-G, published in association with VNF, or released as a stand-alone system. The micro-service-based VNFM-S is independent of the VNFM-G process and has no impact on each other, and has better security and stability. The interface between VNFM-S and VNFM-G can realize bidirectional interconnection. VNFM-G can notify VNFM-S to perform adaptation processing, and VNFM-S can also report processing progress to VNFM-G. In addition, the development language and system framework of VNFM-S can be determined by the plug-in provider, and has nothing to do with VNFM-G, thus achieving independent development. The VNFM-S service can be dynamically scaled by monitoring service performance.
第四实施例Fourth embodiment
本发明第四实施例以大数据分析为例,对插件服务的工作过程进行说明。The fourth embodiment of the present invention uses big data analysis as an example to describe the working process of the plug-in service.
大数据分析软件(相当于第二系统)可以对用户的大数据进行分析,生成分析报告,如果用户购买了相应的增值业务(相当于插件服务),则可以使用增值业务,得到更详实的分析结果。增值业务就可以用微服务技术的插件服务的方式来部署使用。图7是增值业务服务使用流程,包括步骤1至7。Big data analysis software (equivalent to the second system) can analyze the user's big data and generate an analysis report. If the user purchases the corresponding value-added service (equivalent to the plug-in service), the value-added service can be used to obtain a more detailed analysis. result. Value-added services can be deployed and deployed using the plug-in services of micro-service technology. Figure 7 shows the value-added service service usage process, including steps 1 through 7.
步骤1,用户发起大数据处理请求。 Step 1. The user initiates a big data processing request.
步骤2,基础分析服务生成处理报告。 In step 2, the basic analysis service generates a processing report.
步骤3,基础分析服务请求增值服务A进行处理。此过程中需要调用一些需要用到的服务。In step 3, the basic analysis service requests the value-added service A to process. In this process, you need to call some services that you need to use.
步骤4,增值服务A生成高价值报表,给基础分析服务。In step 4, the value-added service A generates a high-value report for the basic analysis service.
步骤5,基础分析服务请求增值服务B进行处理。In step 5, the basic analysis service requests the value added service B to process.
步骤6,增值服务B生成高价值报表,给基础分析服务。In step 6, the value-added service B generates a high-value report for the basic analysis service.
步骤7,基础分析服务汇总报表并呈现给用户。Step 7. The basic analysis service summarizes the report and presents it to the user.
通过本发明第四实施例可以看出,本发明可以应用在多个领域,只要是脚本形式或嵌入在主系统中的插件,都可以以微服务技术的插件服务来实现。As can be seen from the fourth embodiment of the present invention, the present invention can be applied to various fields. As long as it is a script form or a plug-in embedded in the main system, it can be implemented by a plug-in service of the micro service technology.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the invention
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general purpose systems can also be used with the teaching based on the teachings herein. The structure required to construct such a system is apparent from the above description. Moreover, the invention is not directed to any particular programming language. It is to be understood that the invention may be embodied in a variety of programming language, and the description of the specific language has been described above in order to disclose the preferred embodiments of the invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, the various features of the invention are sometimes grouped together into a single embodiment, in the above description of the exemplary embodiments of the invention, Figure, or a description of it. However, the method disclosed is not to be interpreted as reflecting the intention that the claimed invention requires more features than those recited in the claims. Rather, as the following claims reflect, inventive aspects reside in less than all features of the single embodiments disclosed herein. Therefore, the claims following the specific embodiments are hereby explicitly incorporated into the embodiments, and each of the claims as a separate embodiment of the invention.
本领域那些技术人员可以理解,可以对实施例中的客户端中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个客户端中。可以把实施例中的模块组合成一个模块,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者客户端的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will appreciate that the modules in the client in the embodiment can be adaptively changed and placed in one or more clients different from the embodiment. The modules in the embodiments can be combined into one module, and further they can be divided into a plurality of sub-modules or sub-units or sub-components. In addition to such features and/or at least some of the processes or units being mutually exclusive, any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the client are combined. Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例 中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Moreover, those skilled in the art will appreciate that while some embodiments described herein include other embodiments Some of the features are included in the description, but not in other features, but combinations of features of the different embodiments are intended to be within the scope of the invention. For example, in the following claims, any one of the claimed embodiments can be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的加载有排序网址的客户端中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components loaded with the ordered web address in accordance with an embodiment of the present invention. . The invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It is to be noted that the above-described embodiments are illustrative of the invention and are not intended to be limiting, and that the invention may be devised without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as a limitation. The word "comprising" does not exclude the presence of the elements or steps that are not recited in the claims. The word "a" or "an" The invention can be implemented by means of hardware comprising several distinct elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means can be embodied by the same hardware item. The use of the words first, second, and third does not indicate any order. These words can be interpreted as names.
工业实用性Industrial applicability
本发明实施例提供的技术方案可以应用于通讯领域。本发明实施例的技术方案所提供的插件是通过微服务技术以服务的形式存在,该通过服务形式存在的插件,具有完备的系统环境,因此可以与第二系统交互,又不以嵌入的方式存在于第二系统之中,交互过程不需要占用第二系统进程,且不会对第二系统的安全和可靠性带来任何威胁,第二系统进程的安全和稳定性更高。 The technical solution provided by the embodiment of the present invention can be applied to the field of communications. The plug-in provided by the technical solution of the embodiment of the present invention exists in the form of a service through a micro-service technology, and the plug-in existing through the service form has a complete system environment, and thus can interact with the second system without being embedded. Exist in the second system, the interaction process does not need to occupy the second system process, and does not pose any threat to the security and reliability of the second system, and the second system process is more secure and stable.

Claims (11)

  1. 一种插件的实现方法,包括:A method for implementing a plugin, comprising:
    第一系统接收来自第二系统的操作请求信息,其中,所述第一系统为从所述第二系统中分离出的插件通过微服务技术形成的第一插件服务对应的系统;The first system receives operation request information from the second system, wherein the first system is a system corresponding to the first plug-in service formed by the micro-service technology by the plug-in separated from the second system;
    所述第一系统根据所述操作请求信息调用预定基础服务;The first system invokes a predetermined basic service according to the operation request information;
    所述第一系统将调用所述预定基础服务后得到的操作结果发送至所述第二系统。The first system sends an operation result obtained after invoking the predetermined basic service to the second system.
  2. 如权利要求1所述的插件的实现方法,其中,第一系统接收来自第二系统的操作请求信息之后,所述方法还包括:The method of implementing the plug-in according to claim 1, wherein after the first system receives the operation request information from the second system, the method further includes:
    所述第一系统判断插件服务集中是否存在所述操作请求信息对应的第二插件服务;Determining, by the first system, whether the second plug-in service corresponding to the operation request information exists in the plug-in service set;
    在不存在所述第二插件服务的情况下,所述第一系统安装并注册所述第二插件服务,以使所述第二插件服务处于可使用状态。In the case where the second plug-in service does not exist, the first system installs and registers the second plug-in service to make the second plug-in service in a usable state.
  3. 如权利要求1或2所述的插件的实现方法,其中,所述第一系统根据所述操作请求信息调用预定基础服务,包括:The method for implementing the plug-in according to claim 1 or 2, wherein the first system invokes a predetermined basic service according to the operation request information, including:
    所述第一系统安装并注册所述预定基础服务,以使所述预定基础服务处于可使用状态。The first system installs and registers the predetermined base service to place the predetermined base service in a usable state.
  4. 如权利要求1所述的插件的实现方法,其中,所述第一系统将调用所述预定基础服务后得到的操作结果发送至所述第二系统之后,所述方法还包括:The method for implementing the plug-in according to claim 1, wherein after the first system sends the operation result obtained after the calling the predetermined basic service to the second system, the method further includes:
    所述第一系统接收来自所述第二系统的操作终止信息;The first system receives operation termination information from the second system;
    所述第一系统根据所述操作终止信息终止并注销所述第一插件服务和所述第二插件服务。The first system terminates and deregisters the first plug-in service and the second plug-in service according to the operation termination information.
  5. 如权利要求4所述的插件的实现方法,其中,所述第一系统根据所述操作终止信息终止并注销所述第一插件服务和所述第二插件服务之前,所述方法还包括:The method of implementing the plug-in according to claim 4, wherein the method further comprises: before the first system terminates and deregisters the first plug-in service and the second plug-in service according to the operation termination information, the method further comprising:
    所述第一系统判断是否存在未终止的预定基础服务;Determining, by the first system, whether there is a predetermined basic service that is not terminated;
    在存在未终止的预定基础服务的情况下,所述第一系统终止所有预定基础服务,并注销所有已终止的预定基础服务;In the case where there is a predetermined basic service that is not terminated, the first system terminates all scheduled basic services and cancels all terminated scheduled basic services;
    在不存在未终止的预定基础服务的情况下,所述第一系统注销所有已终止的预定基础服务。In the absence of a predetermined base service that is not terminated, the first system logs out all of the terminated base services that have been terminated.
  6. 如权利要求1所述的插件的实现方法,其中,所述第二系统为通用虚拟网络管理系统VNFM-G。The method of implementing the plug-in of claim 1, wherein the second system is a general virtual network management system VNFM-G.
  7. 一种插件的实现装置,包括:A device for implementing a plug-in, comprising:
    接收模块,设置为接收来自第二系统的操作请求信息,其中,所述第一系统为从所述第二系统中分离出的插件通过微服务技术形成的第一插件服务对应的系统; a receiving module, configured to receive operation request information from the second system, wherein the first system is a system corresponding to the first plug-in service formed by the micro-service technology by the plug-in separated from the second system;
    调用模块,设置为根据所述操作请求信息调用预定基础服务;Calling a module, configured to invoke a predetermined basic service according to the operation request information;
    返回模块,设置为将调用所述预定基础服务后得到的操作结果发送至所述第二系统。And returning to the module, configured to send an operation result obtained after invoking the predetermined basic service to the second system.
  8. 如权利要求7所述的插件的实现装置,还包括:The device for implementing the plug-in according to claim 7, further comprising:
    判断模块,设置为判断插件服务集中是否存在所述操作请求信息对应的第二插件服务;a determining module, configured to determine whether the second plug-in service corresponding to the operation request information exists in the plug-in service set;
    服务设置模块,设置为在不存在所述第二插件服务的情况下,安装并注册所述第二插件服务,以使所述第二插件服务处于可使用状态。The service setting module is configured to install and register the second plug-in service in the absence of the second plug-in service, so that the second plug-in service is in a usable state.
  9. 如权利要求7或8所述的插件的实现装置,其中,An apparatus for implementing an insert according to claim 7 or 8, wherein
    所述调用模块设置为安装并注册所述预定基础服务,以使所述预定基础服务处于可使用状态。The calling module is configured to install and register the predetermined base service to place the predetermined base service in a usable state.
  10. 如权利要求8所述的插件的实现装置,其中,An apparatus for implementing an insert according to claim 8, wherein
    所述接收模块,还设置为接收来自所述第二系统的操作终止信息;The receiving module is further configured to receive operation termination information from the second system;
    所述服务设置模块,还设置为根据所述操作终止信息终止并注销所述第一插件服务和所述第二插件服务。The service setting module is further configured to terminate and deregister the first plug-in service and the second plug-in service according to the operation termination information.
  11. 如权利要求10所述的插件的实现装置,还包括:The device for implementing the plug-in according to claim 10, further comprising:
    所述判断模块,还设置为判断是否存在未终止的预定基础服务;The determining module is further configured to determine whether there is a predetermined basic service that is not terminated;
    所述调用模块,还设置为在存在未终止的预定基础服务的情况下,终止所有预定基础服务;在不存在未终止的预定基础服务的情况下,注销所有已终止的预定基础服务。 The calling module is further configured to terminate all predetermined basic services in the case where there is a predetermined basic service that is not terminated; and to cancel all the terminated basic services that are terminated in the absence of the unscheduled predetermined basic service.
PCT/CN2017/106968 2016-10-27 2017-10-20 Plug-in implementation method, apparatus, and computer storage medium WO2018077115A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610950931.7 2016-10-27
CN201610950931.7A CN108011733B (en) 2016-10-27 2016-10-27 Plug-in implementation method and device

Publications (1)

Publication Number Publication Date
WO2018077115A1 true WO2018077115A1 (en) 2018-05-03

Family

ID=62023107

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/106968 WO2018077115A1 (en) 2016-10-27 2017-10-20 Plug-in implementation method, apparatus, and computer storage medium

Country Status (2)

Country Link
CN (1) CN108011733B (en)
WO (1) WO2018077115A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5903728A (en) * 1997-05-05 1999-05-11 Microsoft Corporation Plug-in control including an independent plug-in process
CN103942044A (en) * 2014-03-18 2014-07-23 北京领通科技有限公司 Remote assistance method and system in application of mobile terminal
US20140372845A1 (en) * 2013-06-12 2014-12-18 International Business Machines Corporation Partial data report generation with data costing notification
CN105634778A (en) * 2014-11-04 2016-06-01 中兴通讯股份有限公司 Method and system to achieve VNF instantiation, NFVO and VNFM
CN105791333A (en) * 2014-12-17 2016-07-20 深圳云之家网络有限公司 Business processing method and client

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105515759B (en) * 2015-11-27 2018-11-09 国网信息通信产业集团有限公司 A kind of micro services register method and system
CN105577780B (en) * 2015-12-21 2018-12-04 武汉理工大学 A kind of college teaching cloud platform based on micro services
CN105959138B (en) * 2016-04-29 2019-05-17 深圳大数点科技有限公司 The system and method for micro services Dynamical Deployment based on cloud computing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5903728A (en) * 1997-05-05 1999-05-11 Microsoft Corporation Plug-in control including an independent plug-in process
US20140372845A1 (en) * 2013-06-12 2014-12-18 International Business Machines Corporation Partial data report generation with data costing notification
CN103942044A (en) * 2014-03-18 2014-07-23 北京领通科技有限公司 Remote assistance method and system in application of mobile terminal
CN105634778A (en) * 2014-11-04 2016-06-01 中兴通讯股份有限公司 Method and system to achieve VNF instantiation, NFVO and VNFM
CN105791333A (en) * 2014-12-17 2016-07-20 深圳云之家网络有限公司 Business processing method and client

Also Published As

Publication number Publication date
CN108011733B (en) 2021-04-16
CN108011733A (en) 2018-05-08

Similar Documents

Publication Publication Date Title
CN112119374B (en) Selectively providing mutual transport layer security using alternate server names
US11461125B2 (en) Methods and apparatus to publish internal commands as an application programming interface in a cloud infrastructure
US8874640B2 (en) Method and system for reducing service overhead in service oriented architectures
US8655757B1 (en) System and method for assigning a unique asset identity
US8904388B2 (en) Scripting language executor service for applications
US20080288622A1 (en) Managing Server Farms
US20170364844A1 (en) Automated-application-release-management subsystem that supports insertion of advice-based crosscutting functionality into pipelines
US10235189B2 (en) Isolating a redirected smart card reader to a remote session
US10795646B2 (en) Methods and systems that generate proxy objects that provide an interface to third-party executables
US10581823B2 (en) Web client plugin manager in vCenter managed object browser
US20170161057A1 (en) Plug-in-based artifact-management subsystem
US20170161101A1 (en) Modularized automated-application-release-management subsystem
US20170286652A1 (en) Security model for network information service
CN113821335A (en) Data processing method, device and storage medium
CN108475220B (en) System and method for integrating a transactional middleware platform with a centralized audit framework
CN114205342A (en) Routing method, electronic device, medium, and program product for service debugging
US8990286B2 (en) Integration of web services with a clustered actor based model
US8577761B1 (en) System and method for dynamic offering topologies
US9946585B1 (en) System and method for asset module isolation
WO2018077115A1 (en) Plug-in implementation method, apparatus, and computer storage medium
US20180109599A1 (en) Distributed test system architecture
KR101943936B1 (en) Integrated external interconnection system and method for web standard application development
US10346149B1 (en) System and method for managing asset-side offering modules
US10339573B1 (en) System and method for providing web service interfaces
US11943124B2 (en) Data center asset remote workload execution via a connectivity management workload orchestration operation

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: 17864178

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 1.10.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17864178

Country of ref document: EP

Kind code of ref document: A1