Network arrangement method and device and computer readable storage medium
By obtaining the API knowledge base and creating business API requests, we generate and select API orchestration chains with high similarity and historical correlation frequency, which solves the problems of high orchestration cost and low efficiency for network service operators, and achieves flexible and efficient network business orchestration. .
Patent Information
- Application Number
- CN202310363611.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When network service operators orchestrate network services, they rely on network equipment manufacturers or orchestration platforms, resulting in high orchestration costs and low efficiency, and they are unable to quickly launch new services according to their own business requirements.
By obtaining the API knowledge base and creating business API requests, API orchestration chains are generated, and API orchestration chains with high similarity and historical correlation frequency are selected as business APIs to reduce technical personnel dependence and improve orchestration efficiency.
It reduces the orchestration costs of network service operators, improves the efficiency of launching new services, provides flexible and accurate business APIs through data analysis and semantic similarity calculation, and improves the achievability and reliability of orchestration.
Smart Images

Figure CN118733701A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of networks, and in particular, to a method, device, and computer-readable storage medium for network orchestration. Background Art
[0002] While providing network equipment to network service operators, network equipment manufacturers also provide atomic application programming interfaces (APIs) for network service operators so that network service operators can flexibly orchestrate services based on the atomic APIs to obtain a variety of service APIs according to their needs, thereby achieving diversity in network services.
[0003] The orchestration of network services requires technical personnel to have a deep understanding of the functions and parameters of the API, and requires a large amount of knowledge accumulation. Since a single network service operator does not have a stable demand for the orchestration of network services, network service operators usually make network service orchestration requests to network equipment manufacturers, entrust network equipment manufacturers to orchestrate the atomic API, and directly provide network service operators with business APIs that meet the orchestration requirements.
[0004] In this cooperation model, network service operators are unable to swiftly orchestrate and launch new services based on their own business demands, and can only rely on network equipment manufacturers or other network orchestration platforms to perform customized service orchestration, which is time-consuming, inefficient, and costly. How to reduce the orchestration cost of network service operators to obtain network services while improving the efficiency of network service operators in launching new services has become a problem that current technical personnel need to solve. Summary of the invention
[0005] Embodiments of the present application provide a network orchestration method, apparatus, and computer-readable storage medium, which are used to reduce the orchestration cost of network service operators for obtaining network services while improving the efficiency of network service operators in launching new services.
[0006] In a first aspect, the present application provides a network orchestration method, comprising: obtaining an API knowledge base, the API knowledge base including a first API and a second API; obtaining a request to create a business API; generating a first API orchestration chain according to the API knowledge base and the request to create a business API, the first API orchestration chain including the first API and the second API, a first similarity greater than a first threshold, a second similarity greater than the first threshold, the first similarity being the similarity between the first API and the business API, and the second similarity being the similarity between the second API and the business API; selecting a second API orchestration chain as the business API, the second API orchestration chain being included in the first API orchestration chain.
[0007] In the embodiment of the present application, by acquiring an API knowledge base and creating a business API request, a first orchestration chain is generated according to the API knowledge base and the business API request, wherein the API knowledge base includes a first API and a second API, the first orchestration chain includes the first API and the second API, the similarity between the first API and the business API and the similarity between the second API and the business API are both greater than a first threshold, that is, the first API and the second API are similar to the business API, and any API orchestration chain is selected from the first API orchestration chain as the business API. The method of obtaining a business API for use by using the existing knowledge in the API knowledge base through data analysis reduces the dependence of network orchestration on technical personnel, reduces the orchestration cost of network service operators to obtain network services, and improves the efficiency of network service operators in launching new services.
[0008] In a possible implementation of the first aspect, the API knowledge base includes the name of the first API, the description of the first API, the name of the second API, and the description of the second API, the create business API request includes the business name and the business description, and the first API orchestration chain includes the association between the first API and the second API; generating the first API orchestration chain according to the API knowledge base and the create business API request includes: calculating a first similarity and a second similarity according to the name of the first API, the description of the first API, the name of the second API, the description of the second API, the business name, and the business description; when the first similarity is greater than a first threshold and the second similarity is greater than the first threshold, generating the first API orchestration chain.
[0009] In an embodiment of the present application, the API knowledge base includes the name of the first API, the description of the first API, the name of the second API, and the description of the second API; the request to create a business API includes the business name and the business description; the first API orchestration chain includes the association from the first API to the second API; the first similarity and the second similarity are calculated using the name of the first API, the description of the first API, the name of the second API, the description of the second API, the business name, and the business description; when the first similarity is greater than the first threshold and the second similarity is greater than the first threshold, the first API orchestration chain is generated. While calculating the similarity between the first API and the business API using the business name, business description, and the name of the first API, the description of the first API, the similarity between the second API and the business API is calculated using the business name, business description, and the name of the second API, the description of the second API. Calculating the similarity of the API using the description of the API and the name of the API provides a specific means for calculating API similarity, which improves the feasibility of the solution while helping to improve the accuracy of calculating the similarity of the APIs.
[0010] In any possible implementation of the first aspect, the API knowledge base also includes a historical association frequency of the first API and the second API; when the first similarity is greater than a first threshold and the second similarity is greater than the first threshold, generating a first API orchestration chain includes: when the first similarity is greater than a first threshold, the second similarity is greater than the first threshold and the historical association frequency is greater than a second threshold, generating a first API orchestration chain.
[0011] In the embodiment of the present application, the API knowledge base also includes the historical association frequency of the first API and the second API; when the first similarity is greater than the first threshold and the second similarity is greater than the first threshold, the first API orchestration chain is generated, including: when the first similarity is greater than the first threshold, the second similarity is greater than the first threshold and the historical association frequency is greater than the second threshold, the first API orchestration chain is generated. By selecting an API whose historical association frequency is greater than the second threshold, it is ensured that the generated first API orchestration chain has a certain reference value, thereby improving the reliability of the solution.
[0012] In any possible implementation manner of the first aspect, the first API orchestration chain includes N API orchestration chains, where N is an integer greater than 1, the second API orchestration chain includes M API orchestration chains, a recommendation degree of any API orchestration chain in the second API orchestration chain is greater than a third API orchestration chain, the third API orchestration chain is any orchestration chain in the first API orchestration chain except the second API orchestration chain, and M is a positive integer less than N; before selecting the second API orchestration chain as the business API, the method further includes: calculating a recommendation degree of the first API orchestration chain, where the recommendation degree is a sum of a semantic similarity between the first API orchestration chain and the business API and a historical association frequency of the first API orchestration chain.
[0013] In an embodiment of the present application, the first API orchestration chain includes N API orchestration chains, N is an integer greater than 1, the second API orchestration chain includes M API orchestration chains, the recommendation degree of any API orchestration chain in the second API orchestration chain is greater than the third API orchestration chain, the third API orchestration chain is any orchestration chain in the first API orchestration chain except the second API orchestration chain, and M is a positive integer less than N; before selecting the second API orchestration chain as the business API, the method also includes: calculating the recommendation degree of the first API orchestration chain, the recommendation degree is the sum of the semantic similarity between the first API orchestration chain and the business API and the historical association frequency of the first API orchestration chain. By selecting the first M API orchestration chains with the highest to lowest recommendation degrees as the business API, it is ensured that the obtained business API is closer to the API orchestration chain expectation of the business API.
[0014] In any possible implementation of the first aspect, selecting the second API orchestration chain as the business API includes: obtaining a second API orchestration chain entered by a user based on the first API orchestration chain displayed on an interface, the second API orchestration chain being included in the first API orchestration chain; and generating a correspondence between the second API orchestration chain and the business API.
[0015] In the embodiment of the present application, by obtaining the second API orchestration chain entered by the user based on the first API orchestration chain displayed on the interface, the second API orchestration chain is included in the first API orchestration chain; and a corresponding relationship between the second API orchestration chain and the business API is generated. An interface for intervening in the creation of business APIs is provided for users, thereby improving the flexibility of creating business APIs.
[0016] In any possible implementation of the first aspect, the API knowledge base also includes a parameter name of a third API and a parameter description of the third API, and the request to create a business API also includes a parameter description of the business API and a parameter name of the business API; the method also includes: calculating a third similarity based on the parameter name of the third API, the parameter description of the third API, the parameter description of the business API and the parameter name of the business API, the third similarity being the similarity between the parameters of the third API and the parameters of the business API, and the third API is included in the at least two APIs; when the third similarity is greater than a third threshold, generating a parameter semantic mapping relationship between the third API and the business API.
[0017] In the embodiment of the present application, the API knowledge base also includes the parameter name of the third API and the parameter description of the third API, and the creation of the business API request also includes the parameter description of the business API and the parameter name of the business API; the method also includes: calculating the third similarity based on the parameter name of the third API, the parameter description of the third API, the parameter description of the business API and the parameter name of the business API, the third similarity is the similarity between the parameters of the third API and the parameters of the business API, and the third API is included in at least two APIs; generating a first parameter semantic mapping relationship between the third API and the business API. By calculating the similarity between the parameters of the API in the API knowledge base and the parameters of the business API, the first parameter semantic mapping relationship between the business API and the third parameter is obtained, thereby improving the data integrity of the business API.
[0018] In any possible implementation of the first aspect, the method further comprises: writing the first parameter semantic mapping relationship between the third API and the target API into the API knowledge base. In the embodiment of the present application, by updating the parameter semantic mapping relationship into the API knowledge base, the recyclability of data is improved.
[0019] A second aspect of the present application provides a network orchestration device, including:
[0020] An acquisition unit, configured to acquire an API knowledge base, wherein the API knowledge base includes a first API and a second API;
[0021] The acquisition unit is also used to acquire a create service API request;
[0022] a generating unit, configured to generate a first API orchestration chain according to the API knowledge base and the create service API request, wherein the first API orchestration chain includes the first API and the second API, a first similarity is greater than a first threshold, a second similarity is greater than the first threshold, the first similarity is a similarity between the first API and the service API, and the second similarity is a similarity between the second API and the service API;
[0023] The selection unit is configured to select a second API orchestration chain as the business API, wherein the second API orchestration chain is included in the first API orchestration chain.
[0024] In any possible implementation manner of the second aspect, the API knowledge base includes a name of the first API, a description of the first API, a name of the second API, and a description of the second API, the create service API request includes a service name and a service description, and the first API orchestration chain includes an association from the first API to the second API;
[0025] The generating unit is specifically used for:
[0026] Calculate a first similarity and a second similarity according to the name of the first API, the description of the first API, the name of the second API, the description of the second API, the service name, and the service description;
[0027] When the first similarity is greater than a first threshold and the second similarity is greater than the first threshold, a first API orchestration chain is generated.
[0028] In any possible implementation manner of the second aspect, the API knowledge base further includes a historical association frequency between the first API and the second API;
[0029] The generating unit is specifically configured to generate a first API orchestration chain when the first similarity is greater than a first threshold, the second similarity is greater than the first threshold, and the historical association frequency is greater than a second threshold.
[0030] In any possible implementation manner of the second aspect, the first API orchestration chain includes N API orchestration chains, where N is an integer greater than 1, the second API orchestration chain includes M API orchestration chains, a recommendation degree of any API orchestration chain in the second API orchestration chain is greater than a third API orchestration chain, the third API orchestration chain is any orchestration chain in the first API orchestration chain except the second API orchestration chain, and M is a positive integer less than N;
[0031] The device also includes a calculation unit, configured to calculate a recommendation degree of the first API orchestration chain, wherein the recommendation degree is a sum of a semantic similarity between the first API orchestration chain and the business API and a historical association frequency of the first API orchestration chain.
[0032] In any possible implementation manner of the second aspect, the selection unit is specifically configured to:
[0033] Acquire a second API orchestration chain entered by a user based on the first API orchestration chain displayed on the interface, where the second API orchestration chain is included in the first API orchestration chain;
[0034] Generate a correspondence between the second API orchestration chain and the business API.
[0035] In any possible implementation manner of the second aspect, the API knowledge base further includes a parameter name of a third API and a parameter description of the third API, and the create business API request further includes a parameter description of the business API and a parameter name of the business API;
[0036] The device also includes a calculation unit, which is used to calculate a third similarity based on the parameter name of the third API, the parameter description of the third API, the parameter description of the business API and the parameter name of the business API, wherein the third similarity is the similarity between the parameters of the third API and the parameters of the business API, and the third API is included in the at least two APIs;
[0037] The generating unit is further configured to generate a first parameter semantic mapping relationship between the third API and the business API when the third similarity is greater than a third threshold.
[0038] In any possible implementation manner of the second aspect, the device further includes a writing unit configured to write a first parameter semantic mapping relationship into the API knowledge base.
[0039] A third aspect of the present application provides a network orchestration device, including: a processor and a memory, the memory is used to store instructions, the processor is used to execute the instructions, and when the processor executes the instructions, it executes the method described in the first aspect or any possible implementation method of the first aspect.
[0040] A fourth aspect of the present application provides a computer-readable storage medium, comprising a program, which, when executed on a computer, enables the computer to execute the method described in the first aspect or any possible implementation manner of the first aspect.
[0041] A fifth aspect of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method described in the first aspect or any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A schematic diagram of a network orchestration method provided in an embodiment of the present application;
[0043] Figure 2 A schematic diagram of the API similarity correspondence provided in the embodiment of the present application;
[0044] Figure 3 A schematic diagram of an API subgraph provided in an embodiment of the present application;
[0045] Figure 4 A schematic diagram of a first parameter semantic mapping relationship provided in an embodiment of the present application;
[0046] Figure 5 A schematic diagram of an application scenario of network orchestration provided in an embodiment of the present application;
[0047] Figure 6 A schematic diagram of a structure of a network orchestration device provided in an embodiment of the present application;
[0048] Figure 7 Another structural schematic diagram of the network orchestration device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation mode of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application. It is known to those skilled in the art that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0050] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0051] While providing network equipment to network service operators, network equipment manufacturers also provide atomic application programming interfaces (APIs) for network service operators so that network service operators can flexibly orchestrate services based on the atomic APIs to obtain a variety of service APIs according to their needs, thereby achieving diversity in network services.
[0052] The orchestration of network services requires technical personnel to have a deep understanding of the functions and parameters of the API, and requires a large amount of knowledge accumulation. Since a single network service operator does not have a stable demand for the orchestration of network services, network service operators usually make network service orchestration requests to network equipment manufacturers, entrust network equipment manufacturers to orchestrate the atomic API, and directly provide network service operators with business APIs that meet the orchestration requirements.
[0053] For example, when network service operator A needs upper limit service A, it is necessary to customize service A to issue the required service API to the network equipment manufacturer and to modify the interface.
[0054] In this cooperation model, network service operators need to pay high service customization and subscription fees to network equipment manufacturers, and are unable to swiftly orchestrate and launch new services based on their own business demands. They can only rely on network equipment manufacturers or other network orchestration platforms for customized service orchestration, which is time-consuming, inefficient, and costly. How to reduce the orchestration cost of network service operators to obtain network services while improving the efficiency of network service operators in launching new services has become a problem that current technical personnel need to solve.
[0055] Based on the above problems, the present application proposes that, by presetting the historical association information of multiple APIs, the semantic association information of multiple APIs and the parameter semantic mapping of multiple APIs in the orchestration platform, the network service operator inputs the name of the business API defined by it, the description of the business API, the parameter name of the business API and the parameter description of the business API to the orchestration platform, and the network service operator performs similarity analysis on the semantic association information of multiple APIs, the name of the business API and the description of the business API, and obtains the first API and the second API similar to the business API. If the similarity between the first API and the second API and the business API is greater than the threshold, it can be considered that the first API is similar to the business API. The orchestration platform generates a first API orchestration chain according to the historical association information related to the first API and the second API, and the first API orchestration chain includes the first API and the second API. And select any API orchestration chain from the first API orchestration chain as the business API. The orchestration platform provides the business API as a reference to the network service operator, so that the network service operator does not need to understand the functions and parameters of all atomic APIs, and only needs to analyze and adjust the business API provided by the orchestration platform to obtain a satisfactory business API.
[0056] The following is an introduction to the network arrangement method proposed in this application in combination with the above scheme and the accompanying drawings. Figure 1 , Figure 1 A schematic diagram of a network orchestration method provided in an embodiment of the present application.
[0057] 101. Get the API knowledge base;
[0058] An API knowledge base imported by a user is obtained, wherein the API knowledge base includes a first API and a second API. The user may be a network service operator or a network equipment manufacturer, and no limitation is made here.
[0059] Optionally, the API knowledge base may also include historical association information of the first API and the second API, and the historical association information of the first API and the second API includes: the association relationship between the first API and the second API and the historical association times of the first API to the second API or the historical association times of the second API to the first API. For example, when the output parameter of the first API is the input parameter of the second API, there is an association relationship between the first API and the second API, or it can be said that the association relationship is the association between the first API and the second API, and the historical association information also includes the association times of the first API to the second API.
[0060] Optionally, the API knowledge base may further include semantic association information between the first API and the second API. When the description information of the first API and the second API are semantically similar, there is a semantic association between the first API and the second API.
[0061] Optionally, the API knowledge base may also include parameter semantic mapping information of the first API and the third API. When two parameters with different names of the first API and the third API are used to describe the same variable, the first API and the third API may be associated through parameter semantic mapping. Here, the third API and the aforementioned second API may be the same API or different APIs, which is not limited here.
[0062] It is understandable that the API knowledge base contains multiple associations between the first API and the second API. The description here of the relationship between the first API and the second API in the API knowledge base is only an example. In actual applications, it should be set in combination with specific application scenarios and is not limited here.
[0063] It should be noted that there is no clear order between step 101 and step 102. The description here is only an example. In actual application, the settings should be made in combination with specific application scenarios, and no limitation is made here.
[0064] 102. Get the API request for creating a business;
[0065] Get the service creation API request entered by the user through the interactive interface, or the service creation API request imported by the user through the hardware interface. The service creation API request carries the service name and service description. The description of the source of the service creation API request here is only an example and is not limited in actual application.
[0066] Exemplary: the service name carried in the create service API request may be: GetOnuStatus, and the service description may be: query ONU status.
[0067] Optionally, the service creation API request may also carry a parameter name and a parameter description, wherein the parameter name may be: sn, and the parameter description may be: ONU identity.
[0068] Optionally, the create business API request may also carry a parameter default value and a parameter value range, wherein the parameter default value may be xxx0, and the parameter value range may be xxx0 to xxx9.
[0069] It is understandable that the description of the information included in the creation service request and the specific content of the information here is only an example, and in actual application, it should be set in combination with specific application scenarios, and is not limited here.
[0070] 103. Generate a first API orchestration chain according to the API knowledge base and the creation business API request;
[0071] After acquiring the API knowledge base and creating a service API request, a first orchestration chain is generated according to the API knowledge base and creating a service API request.
[0072] First, according to the name of the first API and the description of the first API in the API knowledge base, the similarity between the first API and the business API is calculated. When the similarity between the first API and the business API is greater than the first threshold, it is considered that the first API and the business API are similar APIs, that is, the first API and the business API are semantically similar. Similarly, for the second API, the similarity between the second API and the business API is calculated according to the name of the second API and the description of the second API in the API knowledge base. When the similarity between the second API and the business API is greater than the first threshold, it is considered that the second API and the business API are similar APIs. Among them, the first threshold can be 0.4. The description of the size of the first threshold here is only an example. In actual application, it should be set in combination with specific scenarios and models, and there is no limitation here.
[0073] Here, the name of the service API is GetOnuStatus, and the service description is: querying the ONU status.
[0074] Use cosine similarity to calculate the similarity between the business API and the API in the API knowledge base Figure 2 The following is a schematic diagram of the API similarity correspondence relationship. Figure 2 A schematic diagram of the API similarity correspondence provided in an embodiment of the present application.
[0075] Depend on Figure 2It can be seen that the name of the first API can be QueryOnu, and the description of the first API can be to query a single ONU, and the first similarity is 0.7783. The name of the second API can be QueryOntRunningStatus, and the description of the second API can be to query the ONT running status, and the second similarity is 0.7341. Among them, the first similarity is the similarity between the first API and the business API, and the second similarity is the similarity between the second API and the business API. In addition, when the API name is QueryOnuOpticalPower and the API description is real-time query of the transmit and receive optical power of the specified ONU, the similarity between the API and the service API is 0.5659; when the API name is QueryOntDetails and the API description is querying ONT detailed information, the similarity between the API and the service API is 0.5614; when the API name is QueryFailedOnus and the API description is searching for ONU records that failed to go online, the similarity between the API and the service API is 0.5486; when the API name is QueryOntPortDetails and the API description is querying ONT port detailed information, the similarity between the API and the service API is 0.4989.
[0076] It is understandable that the description of using cosine similarity to calculate similarity here is only an example. In actual applications, similarity can also be calculated using multiple methods such as Euclidean distance, Manhattan distance, and Minkowski distance, which are not limited here.
[0077] In the embodiment of the present application, the similarity between the first API and the business API is calculated by using the business name, business description, the name of the first API, and the description of the first API, while the similarity between the second API and the business API is calculated by using the business name, business description, the name of the second API, and the description of the second API. Using the description of the API and the name of the API to calculate the similarity of the API provides a specific means for API similarity calculation, which improves the feasibility of the solution and helps to improve the accuracy of calculating the similarity of the API.
[0078] Secondly, after completing the API similarity calculation in the API knowledge base, similar APIs where the first API and the second API are business APIs are obtained according to the similarity calculation results, and an API subgraph for describing the association relationship between the first API and the second API is obtained according to the relationship between the first API and the second API stored in the API knowledge base. For details of the API subgraph and content, see Figure 3 , Figure 3 A schematic diagram of an API subgraph provided for an embodiment of the present application.
[0079] Depend on Figure 3 It can be seen that there is a historical association relationship between the first API and the second API, and the historical association relationship between the first API and the second API is an association from the first API to the second API. In addition, the API subgraph also includes: an association from QueryOnu to QueryNe, an association from QueryOnu to QueryPort, an association from QueryNe to QueryOntRunningStatus, an association from QueryNe to QueryOntDetails, an association from QueryNe to QueryOntPortDetails, an association from QueryNe to QueryOnuOpticalPower, an association from QueryNe to QueryFailedOnus, an association from QueryPort to QueryOntRunningStatus, an association from QueryPort to QueryOntDetails, an association from QueryPort to QueryOntPortDetails, an association from QueryPort to QueryOnuOpticalPower and an association from QueryPort to QueryFailedOnus.
[0080] It is understandable that the description of the API subgraph here is only an example. In actual applications, the names and associations of the APIs contained in the API subgraph can be set according to the actual application scenarios, and there is no limitation here.
[0081] After the extraction of the API subgraph is completed, a first API orchestration chain is generated according to the historical association relationship involved in the API subgraph. The first API orchestration chain includes an association from the first API to the second API. The first API orchestration chain includes multiple different API orchestration chains. The specific features of the multiple API orchestration chains are not limited here.
[0082] In the embodiment of the present application, by selecting an API whose historical association frequency is greater than a second threshold, it is ensured that the generated first API orchestration chain has a certain reference value, thereby improving the reliability of the solution, wherein the second threshold is 1.
[0083] It is understandable that the description of generating the first API orchestration chain after completing the API subgraph extraction is only an example. In actual applications, it should be set in combination with specific application scenarios, and no limitation is made here.
[0084] 104. Selecting an API orchestration chain in the first API orchestration chain as the business API;
[0085] After the first API orchestration chain is generated according to the API knowledge base and the request to create a service API, a second API orchestration chain may be selected from the first API orchestration chain as the service API.
[0086] Exemplarily, when the user sets to randomly select the second API orchestration chain from the first API orchestration chain as the business API, after the first API orchestration chain is generated, the second API orchestration chain is randomly selected from the first API orchestration chain as the business API. The second API orchestration chain is included in the first API orchestration chain, and the second API orchestration chain can be any API orchestration chain in the generated first API orchestration chain, which is not limited here.
[0087] Optionally, when the user sets to select M API orchestration chains from the first API orchestration chain as the second API orchestration chain and the second API orchestration chain as the business API, and the recommendation degree of any API orchestration chain in the second API orchestration chain is greater than the third API orchestration chain, wherein the third API orchestration chain is any orchestration chain in the first API orchestration chain except the second API orchestration chain. The first API orchestration chain includes N API orchestration chains, N is an integer greater than 1, and M is a positive integer less than N.
[0088] Specifically, the recommendation degree of the API orchestration chain is the sum of the semantic similarity between the API orchestration chain and the business API and the historical association frequency of the API orchestration chain. When N is 8 and M is 5, the second API orchestration chain may include the top 5 API orchestration chains ranked in descending order of recommendation degree in the first API orchestration chain.
[0089] It is understandable that the selection rule of the second API orchestration chain and the description of the values of N and M are examples. In actual applications, they should be set in combination with specific application scenarios and are not limited here.
[0090] Optionally, when the user sets the option to be provided to the user through the interactive interface after the first API orchestration chain is generated, the second API orchestration chain typed by the user based on the first API orchestration chain displayed on the interface can be obtained, and the corresponding relationship between the second API orchestration chain and the business API is generated. It should be understood that the first API orchestration chain here can be the generated full API orchestration chain, or it can be the first M API orchestration chains in the first API orchestration chain after the recommendation degree of the API orchestration chains is sorted from high to low, and there is no limitation here.
[0091] In the embodiment of the present application, by obtaining the second API orchestration chain entered by the user based on the first API orchestration chain displayed on the interface, the second API orchestration chain is included in the first API orchestration chain; and a corresponding relationship between the second API orchestration chain and the business API is generated. An interface for intervening in the creation of business APIs is provided for users, thereby improving the flexibility of creating business APIs.
[0092] It can be understood that the description here of selecting an API orchestration chain in the first API orchestration chain as the business API after calculating the first API orchestration chain is only an example. In actual applications, there are many methods for obtaining the business API according to the value of the first API orchestration chain, which are not limited here.
[0093] In the embodiment of the present application, by calculating the recommendation degree of the first API orchestration chain, the recommendation degree is the sum of the semantic similarity between the first API orchestration chain and the business API and the historical association frequency of the first API orchestration chain, and selecting the top M API orchestration chains from high to low recommendation degrees as the business API, it is ensured that the obtained business API is closer to the API orchestration chain expectation of the business API.
[0094] 105. Generate a first parameter semantic mapping relationship according to the API knowledge base and the business API;
[0095] After the specific content of the business API is determined, a first parameter semantic mapping relationship is generated according to the API knowledge base and the business API. The first parameter semantic mapping relationship is a parameter semantic mapping relationship between the business API and the third API.
[0096] Exemplarily, a first parameter semantic mapping relationship is generated according to the API knowledge base and the business API, and the parameters of the third API are obtained by calculating the similar parameters of the parameters of the business API. The third API is included in the API knowledge base, and the similarity between the parameters of the third API and the parameters of the business API is the third similarity. Here, the third threshold is 0.6, and the parameter name of the business API is: sn. For example, please refer to Figure 4 , Figure 4 A schematic diagram of the first parameter semantic mapping relationship provided in an embodiment of the present application.
[0097] Depend on Figure 4It can be seen that the parameter name of the business API is sn, which is used to describe the identity of the optical network unit (ONU). The name of the business API is GetONUstatus. The API used to describe the identity of the ONU in the API knowledge base also includes: when the API name is huawei-nce-resource-inventory:onus / onu / , the parameter name is res-id; when the API name is resource-activation-configuration / access / query-ontdetail, the parameter name is ontid; when the API name is resource-activation-configuration / access / query-ontruninfo, the parameter name is ontid.
[0098] That is, when the service API is GetONUstatus, the third API is any one of the aforementioned huawei-nce-resource-inventory:onus / onu / , resource-activation-configuration / access / query-ontdetail or resource-activation-configuration / access / query-ontruninfo.
[0099] In the embodiment of the present application, by calculating the similarity between the parameters of the API in the API knowledge base and the parameters of the business API, a semantic mapping relationship between the first parameter of the business API and the third parameter is obtained, thereby improving the data integrity of the business API.
[0100] It is understandable that the description of the first parameter semantic mapping relationship and the third API here is only an example, and should be set in combination with specific scenarios in actual applications, and is not limited here.
[0101] 106. Write the first parameter semantic mapping relationship and the business API into the API knowledge base.
[0102] After the first parameter semantic mapping relationship is generated, the first parameter semantic mapping relationship and the business API are written into the API knowledge base, and no limitation is imposed here.
[0103] Optionally, the semantic association relationship between the business API and the first API and the second API may also be written into the API knowledge base, which is not limited here.
[0104] In the embodiment of the present application, the recyclability of data is improved by updating the parameter semantic mapping relationship to the API knowledge base.
[0105] In the embodiment of the present application, by acquiring an API knowledge base and creating a business API request, a first orchestration chain is generated according to the API knowledge base and the business API request, wherein the API knowledge base includes a first API and a second API, the first orchestration chain includes the first API and the second API, the similarity between the first API and the business API and the similarity between the second API and the business API are both greater than a first threshold, that is, the first API and the second API are similar to the business API, and any API orchestration chain is selected from the first API orchestration chain as the business API. The method of obtaining a business API for use by using the existing knowledge in the API knowledge base through data analysis reduces the dependence of network orchestration on technical personnel, reduces the orchestration cost of network service operators to obtain network services, and improves the efficiency of network service operators in launching new services.
[0106] The foregoing Figure 1 The method described in is applicable to the scenario of adding new network service orchestration. For specific usage scenarios, please refer to Figure 5 , Figure 5 A schematic diagram of an application scenario of network orchestration provided in an embodiment of the present application.
[0107] When a network service operator has a new service orchestration requirement, the network service operator inputs a service API creation request to the orchestration platform provided by the present application, and uses the semantic module provided by the orchestration platform for semantic similarity analysis, the recommendation module for generating the first API orchestration chain according to the API knowledge base, and the update module for updating the determined service API information to the API knowledge base to implement the above Figure 1 The method introduced in the paper realizes the intelligent orchestration of network services.
[0108] The above is an introduction to the network orchestration method provided by the present application. The following is an introduction to the network orchestration device provided by the present application in conjunction with the accompanying drawings. Figure 6 , Figure 6 A schematic diagram of the structure of a network orchestration device provided in an embodiment of the present application.
[0109] The network orchestration device 600 includes:
[0110] An acquisition unit 601 is used to acquire an API knowledge base, where the API knowledge base includes a first API and a second API;
[0111] The acquisition unit 601 is also used to acquire a create service API request;
[0112] A generating unit 602 is configured to generate a first API orchestration chain according to the API knowledge base and the create service API request, wherein the first API orchestration chain includes the first API and the second API, a first similarity is greater than a first threshold, a second similarity is greater than the first threshold, the first similarity is a similarity between the first API and the service API, and the second similarity is a similarity between the second API and the service API;
[0113] The selection unit 603 is configured to select a second API orchestration chain as the business API, where the second API orchestration chain is included in the first API orchestration chain.
[0114] Optionally, the API knowledge base includes the name of the first API, the description of the first API, the name of the second API, and the description of the second API, the create service API request includes the service name and the service description, and the first API orchestration chain includes an association from the first API to the second API;
[0115] The generating unit 602 is specifically configured to:
[0116] Calculate a first similarity and a second similarity according to the name of the first API, the description of the first API, the name of the second API, the description of the second API, the service name, and the service description;
[0117] When the first similarity is greater than a first threshold and the second similarity is greater than the first threshold, a first API orchestration chain is generated.
[0118] Optionally, the API knowledge base further includes historical association frequencies between the first API and the second API;
[0119] The generating unit 602 is specifically configured to generate a first API orchestration chain when the first similarity is greater than a first threshold, the second similarity is greater than the first threshold, and the historical association frequency is greater than a second threshold.
[0120] Optionally, the first API orchestration chain includes N API orchestration chains, where N is an integer greater than 1, the second API orchestration chain includes M API orchestration chains, the recommendation degree of any API orchestration chain in the second API orchestration chain is greater than that of a third API orchestration chain, the third API orchestration chain is any orchestration chain in the first API orchestration chain except the second API orchestration chain, and M is a positive integer less than N;
[0121] The device further includes a calculation unit 604, configured to calculate a recommendation degree of the first API orchestration chain, wherein the recommendation degree is the sum of the semantic similarity between the first API orchestration chain and the business API and the historical association frequency of the first API orchestration chain.
[0122] Optionally, the selection unit 603 is specifically configured to:
[0123] Acquire a second API orchestration chain entered by a user based on the first API orchestration chain displayed on the interface, where the second API orchestration chain is included in the first API orchestration chain;
[0124] Generate a correspondence between the second API orchestration chain and the business API.
[0125] Optionally, the API knowledge base further includes a parameter name of a third API and a parameter description of the third API, and the request to create a business API further includes a parameter description of the business API and a parameter name of the business API;
[0126] The apparatus further includes a calculating unit 604, configured to calculate a third similarity based on a parameter name of the third API, a parameter description of the third API, a parameter description of the business API, and a parameter name of the business API, wherein the third similarity is a similarity between a parameter of the third API and a parameter of the business API, and the third API is included in the at least two APIs;
[0127] The generating unit is further configured to generate a first parameter semantic mapping relationship between the third API and the business API when the third similarity is greater than a third threshold.
[0128] Optionally, the device further includes a writing unit 605, configured to write the first parameter semantic mapping relationship into the API knowledge base.
[0129] See also Figure 7 , Figure 7 Another structural diagram of a network orchestration device provided in an embodiment of the present application, the network orchestration device 700 includes: a processor 710, a communication interface 720 and a memory 730. Among them, the processor 710, the communication interface 720 and the memory 730 can be interconnected through an internal bus 740, and can also communicate through other means such as wireless transmission. The embodiment of the present application takes the connection through bus 740 as an example. Bus 740 can be a peripheral component interconnect (PCI) bus or an extended industrial standard architecture (EISA) bus, etc. Bus 740 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0130] The processor 710 may be composed of at least one general-purpose processor, such as a central processing unit (CPU), or a combination of a CPU and a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field programmable gate array (FPGA), a general array logic (GAL), or any combination thereof. The processor 710 executes various types of digital storage instructions, such as software or firmware programs stored in the memory 730, which enables the network orchestration device 700 to provide a variety of services.
[0131] The memory 730 is used to store program codes, and is controlled by the processor 710 to execute the processing steps of the data processing method in the above embodiment. The program code may include one or more software modules, which may be Figure 6 The software modules provided in the invention include an acquisition unit, a generation unit or a selection unit, wherein the acquisition unit is used to acquire an API knowledge base, the API knowledge base includes a first API and a second API; the acquisition unit is also used to acquire a request to create a business API; the generation unit is used to generate a first API orchestration chain according to the API knowledge base and the request to create a business API, the first API orchestration chain includes a first API and a second API, the first similarity is greater than a first threshold, the second similarity is greater than the first threshold, the first similarity is the similarity between the first API and the business API, and the second similarity is the similarity between the second API and the business API; the selection unit is used to select the second API orchestration chain as the business API, the second API orchestration chain is included in the first API orchestration chain.
[0132] It should be noted that this embodiment can be implemented by a general physical server, for example, an ARM server or an X86 server, or it can be implemented by a virtual machine based on a general physical server combined with NFV technology. A virtual machine refers to a complete computer system with complete hardware system functions simulated by software and running in a completely isolated environment. This application does not make any specific limitations.
[0133] The memory 730 may include a volatile memory, such as a random access memory (RAM); the memory 730 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); the memory 730 may also include a combination of the above. The memory 730 may store program codes, execute Figure 1 Steps 101 to 106 and optional steps thereof will not be described in detail here.
[0134] The communication interface 720 can be a wired interface (such as an Ethernet interface), an internal interface (such as a high-speed serial computer expansion bus (PCIe) bus interface), a wired interface (such as an Ethernet interface) or a wireless interface (such as a cellular network interface or a wireless local area network interface) for communicating with other devices or modules.
[0135] Need to explain, Figure 7 This is only a possible implementation of the embodiment of the present application. In practical applications, the computing device 700 may also include more or fewer components, which is not limited here. For the contents not shown or described in the embodiment of the present application, please refer to the aforementioned Figure 1 The relevant explanations in the article will not be repeated here.
[0136] It should be understood that Figure 7 The computing device shown may also be a computer cluster consisting of at least one server, which is not specifically limited in this application.
[0137] The present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a processor, Figure 1 The method shown is implemented.
[0138] The present application also provides a computer program product. When the computer program product is run on a processor, Figure 1 The method shown is implemented.
[0139] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0140] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0141] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0142] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0143] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.
Claims
1. A network orchestration method, characterized in that: include: Acquire an API knowledge base, wherein the API knowledge base includes a first API and a second API; Get the create business API request; Generate a first API orchestration chain according to the API knowledge base and the create business API request, the first API orchestration chain including the first API and the second API, a first similarity greater than a first threshold, a second similarity greater than the first threshold, the first similarity being a similarity between the first API and the business API, and the second similarity being a similarity between the second API and the business API; A second API orchestration chain is selected as the business API, and the second API orchestration chain is included in the first API orchestration chain.
2. The method according to claim 1, characterized in that: The API knowledge base includes the name of the first API, the description of the first API, the name of the second API, and the description of the second API, the create service API request includes the service name and the service description, and the first API orchestration chain includes an association from the first API to the second API; The step of generating a first API orchestration chain according to the API knowledge base and the service creation API request includes: Calculate a first similarity and a second similarity according to the name of the first API, the description of the first API, the name of the second API, the description of the second API, the service name, and the service description; When the first similarity is greater than a first threshold and the second similarity is greater than the first threshold, a first API orchestration chain is generated.
3. The method according to claim 2, characterized in that The API knowledge base also includes the historical association frequency between the first API and the second API; When the first similarity is greater than a first threshold and the second similarity is greater than the first threshold, generating a first API orchestration chain includes: When the first similarity is greater than a first threshold, the second similarity is greater than the first threshold, and the historical association frequency is greater than a second threshold, a first API orchestration chain is generated.
4. The method according to claim 2, characterized in that: The first API orchestration chain includes N API orchestration chains, where N is an integer greater than 1, the second API orchestration chain includes M API orchestration chains, the recommendation degree of any API orchestration chain in the second API orchestration chain is greater than that of a third API orchestration chain, the third API orchestration chain is any orchestration chain in the first API orchestration chain except the second API orchestration chain, and M is a positive integer less than N; Before selecting the second API orchestration chain as the business API, the method further includes: The recommendation degree of the first API orchestration chain is calculated, where the recommendation degree is the sum of the semantic similarity between the first API orchestration chain and the business API and the historical association frequency of the first API orchestration chain.
5. The method according to any one of claims 1 to 3, characterized in that: The selecting the second API orchestration chain as the business API includes: Acquire a second API orchestration chain entered by a user based on the first API orchestration chain displayed on the interface, where the second API orchestration chain is included in the first API orchestration chain; Generate a correspondence between the second API orchestration chain and the business API.
6. The method according to claim 5, characterized in that The API knowledge base further includes a parameter name of a third API and a parameter description of the third API, and the create service API request further includes a parameter description of the service API and a parameter name of the service API; The method further comprises: Calculating a third similarity according to a parameter name of the third API, a parameter description of the third API, a parameter description of the business API, and a parameter name of the business API, wherein the third similarity is a similarity between a parameter of the third API and a parameter of the business API, and the third API is included in the at least two APIs; When the third similarity is greater than a third threshold, a first parameter semantic mapping relationship between the third API and the business API is generated.
7. The method according to claim 6, characterized in that The method further comprises: The first parameter semantic mapping relationship is written into the API knowledge base.
8. A network arrangement device, characterized in that: include: An acquisition unit, configured to acquire an API knowledge base, wherein the API knowledge base includes a first API and a second API; The acquisition unit is also used to acquire a create service API request; a generating unit, configured to generate a first API orchestration chain according to the API knowledge base and the create service API request, wherein the first API orchestration chain includes the first API and the second API, a first similarity is greater than a first threshold, a second similarity is greater than the first threshold, the first similarity is a similarity between the first API and the service API, and the second similarity is a similarity between the second API and the service API; The selection unit is configured to select a second API orchestration chain as the business API, wherein the second API orchestration chain is included in the first API orchestration chain.
9. The device according to claim 8, characterized in that The API knowledge base includes the name of the first API, the description of the first API, the name of the second API, and the description of the second API, the create service API request includes the service name and the service description, and the first API orchestration chain includes an association from the first API to the second API; The generating unit is specifically used for: Calculate a first similarity and a second similarity according to the name of the first API, the description of the first API, the name of the second API, the description of the second API, the service name, and the service description; When the first similarity is greater than a first threshold and the second similarity is greater than the first threshold, a first API orchestration chain is generated.
10. The device according to claim 9, characterized in that The API knowledge base also includes the historical association frequency between the first API and the second API; The generating unit is specifically configured to generate a first API orchestration chain when the first similarity is greater than a first threshold, the second similarity is greater than the first threshold, and the historical association frequency is greater than a second threshold.
11. The device according to claim 9, characterized in that The first API orchestration chain includes N API orchestration chains, where N is an integer greater than 1, the second API orchestration chain includes M API orchestration chains, the recommendation degree of any API orchestration chain in the second API orchestration chain is greater than that of a third API orchestration chain, the third API orchestration chain is any orchestration chain in the first API orchestration chain except the second API orchestration chain, and M is a positive integer less than N; The device also includes a calculation unit, configured to calculate a recommendation degree of the first API orchestration chain, wherein the recommendation degree is a sum of a semantic similarity between the first API orchestration chain and the business API and a historical association frequency of the first API orchestration chain.
12. The device according to any one of claims 8 to 10, characterized in that: The selection unit is specifically used for: Acquire a second API orchestration chain entered by a user based on the first API orchestration chain displayed on the interface, where the second API orchestration chain is included in the first API orchestration chain; Generate a correspondence between the second API orchestration chain and the business API.
13. The device according to claim 12, characterized in that The API knowledge base further includes a parameter name of a third API and a parameter description of the third API, and the create service API request further includes a parameter description of the service API and a parameter name of the service API; The device also includes a calculation unit, which is used to calculate a third similarity based on the parameter name of the third API, the parameter description of the third API, the parameter description of the business API and the parameter name of the business API, wherein the third similarity is the similarity between the parameters of the third API and the parameters of the business API, and the third API is included in the at least two APIs; The generating unit is further configured to generate a first parameter semantic mapping relationship between the third API and the business API when the third similarity is greater than a third threshold.
14. The device according to claim 13, characterized in that The device also includes a writing unit, which is used to write the first parameter semantic mapping relationship into the API knowledge base.
15. A network arrangement device, characterized in that: include: A processor and a memory, wherein the memory is used to store instructions, and the processor is used to execute the instructions. When the processor executes the instructions, the method according to any one of claims 1 to 7 is performed.
16. A computer-readable storage medium, characterized in that: The invention comprises a program which, when being run on a computer, causes the computer to execute the method according to any one of claims 1 to 7.
17. A computer program product comprising instructions, which, when executed on a computer, causes the computer to perform the method according to any one of claims 1 to 7.
