CN-121984727-A - Network function opening method, device, equipment, storage medium and product
Abstract
The application discloses a network function opening method, a device, equipment, a storage medium and a product, which are applied to an intention processor and comprise the steps of receiving a network function opening request comprising a declaration service target sent by a network function calling party, analyzing the network function opening request to obtain determined API call strategy information, sending an API call request to a CAPIF core function based on the API call strategy information, receiving an API call response message returned by the CAPIF core function, wherein the API call response message comprises an API call execution result, and sending a network function call notification message to the network function calling party based on the API call execution result. The application can convert the abstract intention of the user into a series of network actions and application program interface calling combination, so that the user does not need to understand a complex network architecture, and can directly call the application program interface based on natural language to complete the business target.
Inventors
- LI YANG
- ZHENG JIANHUA
Assignees
- 鹏城实验室
Dates
- Publication Date
- 20260505
- Application Date
- 20260119
Claims (16)
- 1. A network function opening method, wherein the network function opening method is applied to an intention processor, the network function opening method comprising the steps of: receiving a network function opening request sent by a network function calling party, and analyzing the network function opening request to obtain a network function opening target, wherein the network function opening request comprises a declarative business target; Determining API calling strategy information according to the network function opening target; Sending an API call request to CAPIF core functions based on the API call policy information, wherein the API call policy information comprises at least one of an API call sequence, a dependency relationship, a trigger threshold setting and a call condition; Receiving an API call response message returned by the CAPIF core function, wherein the API call response message comprises an API call execution result; and sending a network function call notification message to the network function caller based on the API call execution result.
- 2. The method of claim 1, wherein the intent processor includes an intent analysis unit and an intent execution unit; The intention analysis unit is used for analyzing the network function opening request, and arranging network function opening requirements in the network function opening request based on an available API list to obtain API calling strategy information; The intention execution unit is used for interacting with the CAPIF core functions according to the API call policy information.
- 3. The method according to claim 1, further comprising, after determining API call policy information according to the network function open target: determining a network function open response message based on the API call policy information; and sending the network function opening response message to the network function calling party, wherein the network function opening response message comprises the API calling strategy information.
- 4. A method according to any one of claims 1-3, wherein before determining API call policy information from the network function opening target, further comprising: Sending an available API list acquisition request message to the CAPIF core function, wherein the API list acquisition request message comprises at least one of an identity of the intention processor, an identity of the network function caller, a declarative service target of the network function opening request, a network capacity requirement corresponding to the network function opening request and an API screening condition; And receiving an API list acquisition response message sent by the CAPIF core function, wherein the API list acquisition response message comprises at least one of an API list which is successful or unsuccessful in request state and meets the conditions, an API name, an API strategy, API provider information, API related service key performance index KPI information and API state information.
- 5. The method of claim 4, wherein after receiving the API list fetch response message sent by the CAPIF core function, further comprising: An available API list update request message is sent to the CAPIF core function, wherein the API list update request message comprises at least one of an identity of the intention processor, an identity of the network function caller, a declarative service target of the network function opening request, a network capacity requirement corresponding to the network function opening request and an API screening condition; And receiving an API list update response message sent by the CAPIF core function, wherein the API list update response message comprises at least one of a successful request state, an updated complete API list, an updated increment API list, an API name, an API strategy, API provider information, API related service key performance index KPI information and API state information.
- 6. A method according to any one of claims 1-3, wherein before determining API call policy information from the network function opening target, further comprising: Sending an available API list synchronous subscription request message to the CAPIF core function, wherein the API list synchronous subscription request message comprises at least one of an identity of the intention processor, an identity of the network function calling party, a declaration service target of the network function opening request, a network capacity requirement corresponding to the network function opening request and an API screening condition; and receiving an API list synchronous subscription response message sent by the CAPIF core function, wherein the API list synchronous subscription response message comprises at least one of subscription state, subscription identification, an API list meeting the conditions, an API name, an API strategy, API provider information, API related service key performance index KPI information and API state information.
- 7. The method of claim 6, wherein if the API resource information changes, the method comprises: And receiving an API list synchronous subscription notification message sent by the CAPIF core function, wherein the API list synchronous subscription notification message comprises at least one of an identity mark of the intention processor, a subscription mark, an updated complete API list, an updated incremental API list, an API name, an API strategy, API provider information, API related service key performance index KPI information and API state information.
- 8. The method according to claim 1, wherein the parsing the network function opening request to obtain a network function opening target includes: Sending a network function calling party identity verification request to CAPIF core functions so that the CAPIF core functions verify identity information in the network function calling party identity verification request and feed back an identity verification result, wherein the network function calling party identity verification request comprises at least one of identity identification of the network function calling party, network function information requested by the network function calling party and security credential information of the network function calling party; And receiving the identity verification result, and analyzing the network function opening request to obtain a network function opening target under the condition that the identity verification result is verification passing.
- 9. The method according to claim 1, further comprising, before receiving the network function open request message sent by the network function caller: Sending an intent processing function registration request to CAPIF core functions, wherein the intent processing function registration request comprises an identity of an intent processor and registration information; And receiving an intention processing function response message sent by the CAPIF core function, wherein the intention processing function response message comprises at least one of a success or failure of registration, an identity file of the intention processor, security credential information and a reason of registration failure.
- 10. A method according to claim 3, wherein the network function open response message comprises at least one of: unique session identification, response status of the request.
- 11. The method of claim 1, wherein if the network function opening requirement of the network function caller changes, the method comprises: Receiving a network function opening update request message of the network function calling party, wherein the network function opening update request message comprises at least one of an identity of the network function calling party, an updated declarative service target and a session identifier; Determining a network function open update response message according to the network function open update request message; and sending the network function opening update response message to the network function calling party, wherein the network function opening update response message comprises at least one of session identification and updated API call strategy information.
- 12. The method according to claim 2, characterized in that the method comprises: The intention analysis unit sends an API call strategy notification message to the intention execution unit and is used for transmitting the generated API call strategy information, wherein the API call strategy information comprises at least one of an API call sequence, a dependency relationship, a trigger threshold setting and a call condition; The intention execution unit sends the API call policy information to the CAPIF core function so that the CAPIF core function executes the call of the bottom network capability API based on the API call policy information and feeds back an API call response message; the intention execution unit sends an API call result notification message to the intention analysis unit based on the API call response message, and the intention analysis unit is used for reporting an API execution result; the intention analysis unit converts the API execution result into a user-friendly natural language description and forwards the user-friendly natural language description to a network function caller.
- 13. A network function opening device, characterized in that the network function opening device comprises: The network function opening request receiving module is used for receiving a network function opening request sent by a network function calling party, analyzing the network function opening request to obtain a network function opening target, wherein the network function opening request comprises a declarative service target; the determining module is used for determining API call strategy information according to the network function opening target; an API call request sending module, configured to send an API call request to CAPIF core functions based on the API call policy information, where the API call policy information includes at least one of an API call sequence, a dependency relationship, a trigger threshold setting, and a call condition; an API call response message receiving module, configured to receive an API call response message returned by the CAPIF core functions, where the API call response message includes an API call execution result; And the network function call notification message sending module is used for sending a network function call notification message to the network function caller based on the API call execution result.
- 14. A network function opening device, characterized in that the device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the network function opening method according to any one of claims 1 to 12.
- 15. A storage medium, characterized in that the storage medium is a computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of the network function opening method according to any one of claims 1 to 12.
- 16. A computer program product, characterized in that the computer program product comprises a computer program which, when executed by a processor, implements the steps of the network function opening method according to any of claims 1 to 12.
Description
Network function opening method, device, equipment, storage medium and product Technical Field The present application relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, a storage medium, and a product for opening a network function. Background When the current network provides capability open service to the outside, the traditional method based on north API (Northbound API) is widely adopted. The method enables a third party service caller to programmatically access network functions and resources by defining a standardized interface. However, the open mode still has significant limitations in practical application, on one hand, a caller needs to deeply understand a complex network architecture, technical parameters and interface specifications, and has high learning cost, and on the other hand, a single application program interface (Application Programming Interface, API) can generally only provide a certain specific network capability, and requirements (such as intelligent scheduling, dynamic QoS guarantee, cross-domain collaboration and the like) in a practical service scene often need a plurality of API collaborative calls to realize, which not only increases the complexity of integration and opening, but also reduces the efficiency and reliability of service call. The problems limit the full play and wide application of the 5G network capability, and especially form a use threshold for third-party openers with limited resources and technical capability. Disclosure of Invention The application mainly aims to provide a network function opening method, a device, equipment, a storage medium and a product, which aim to solve the technical problem of high learning cost in the existing network capability opening. To achieve the above object, the present application provides a network function opening method applied to an intention processor, the network function opening method comprising the steps of: receiving a network function opening request sent by a network function calling party, and analyzing the network function opening request to obtain a network function opening target, wherein the network function opening request comprises a declarative business target; Determining API calling strategy information according to the network function opening target; Sending an API call request to CAPIF core functions based on the API call policy information, wherein the API call policy information comprises at least one of an API call sequence, a dependency relationship, a trigger threshold setting and a call condition; Receiving an API call response message returned by the CAPIF core function, wherein the API call response message comprises an API call execution result; and sending a network function call notification message to the network function caller based on the API call execution result. Optionally, the intention processor comprises an intention analysis unit and an intention execution unit; The intention analysis unit is used for analyzing the network function opening request, and arranging network function opening requirements in the network function opening request based on an available API list to obtain API calling strategy information; The intention execution unit is used for interacting with the CAPIF core functions according to the API call policy information. Optionally, after determining the API call policy information according to the network function opening target, the method further includes: determining a network function open response message based on the API call policy information; and sending the network function opening response message to the network function calling party, wherein the network function opening response message comprises the API calling strategy information. Optionally, before determining the API call policy information according to the network function opening target, the method further includes: Sending an available API list acquisition request message to the CAPIF core function, wherein the API list acquisition request message comprises at least one of an identity of the intention processor, an identity of the network function caller, a declarative service target of the network function opening request, a network capacity requirement corresponding to the network function opening request and an API screening condition; And receiving an API list acquisition response message sent by the CAPIF core function, wherein the API list acquisition response message comprises at least one of an API list which is successful or unsuccessful in request state and meets the conditions, an API name, an API strategy, API provider information, API related service key performance index KPI information and API state information. Optionally, after receiving the API list obtaining response message sent by the CAPIF core function, the method further includes: An available API list update request message is sent to the CAPIF core funct