CN111435924A - Method and device for calling application program interface - Google Patents
Method and device for calling application program interface Download PDFInfo
- Publication number
- CN111435924A CN111435924A CN201910033239.1A CN201910033239A CN111435924A CN 111435924 A CN111435924 A CN 111435924A CN 201910033239 A CN201910033239 A CN 201910033239A CN 111435924 A CN111435924 A CN 111435924A
- Authority
- CN
- China
- Prior art keywords
- network element
- api
- function network
- information
- open function
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/547—Remote procedure calls [RPC]; Web services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/541—Client-server
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/549—Remote execution
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Telephonic Communication Services (AREA)
Abstract
Description
技术领域technical field
本申请涉及通信领域,特别涉及通信领域中的调用应用程序接口(applicationprogrammers interface API,API)的方法和装置。The present application relates to the field of communications, and in particular, to a method and apparatus for calling an application program interface (application programmers interface API, API) in the field of communications.
背景技术Background technique
在通用API框架(common API framework,CAPIF)中,一般包括API调用实体(APIinvoker)、CAPIF核心功能(CAPIF core function,CCF)网元、API开放功能(API exposingfunction,AEF)网元、API发布功能(API publishing function,APF)网元以及API管理功能(API management function,APIMF)网元。其中,API调用实体一般为与运营商签订了服务协议的第三方应用,具有调用API的能力。AEF提供API,同时也作为API调用实体调用API的入口。APF提供发布API的功能,将API发布在CCF中。CCF保存APF所发布的API,以便API调用实体可以发现API,从而调用API。APIMF提供管理API的功能。The common API framework (CAPIF) generally includes an API invoker (API invoker), a CAPIF core function (CCF) network element, an API exposing function (AEF) network element, and an API publishing function. (API publishing function, APF) network element and API management function (API management function, APIMF) network element. Among them, the API calling entity is generally a third-party application that has signed a service agreement with the operator, and has the ability to call the API. AEF provides APIs, and also serves as the entry point for API calling entities to call APIs. APF provides the function of publishing API and publishes the API in CCF. The CCF saves the APIs published by the APF, so that the API calling entity can discover the API and call the API. APIMF provides functionality to manage APIs.
在部署CAPIF时,CCF可以确定对API使用拓扑隐藏策略,即为该API选择一个拓扑隐藏的入口点AEF(一般称为边界AEF)。那么,在API调用实体调用该API时,该边界AEF可以确定真正提供该API的AEF,向该AEF发送API调用请求。对于一个API仅由一个AEF提供的场景,边界AEF可以根据API的标识确定真正提供该API的AEF,直接向真正提供该API的AEF发送API调用请求。而对于一个API可以由多个AEF提供的场景,当该API提供给API调用实体时CCF对其应用了拓扑隐藏策略,边界AEF无法确定出应该向提供该API的多个AEF中的具体哪一个AEF发送API调用请求,导致API调用失败。When deploying CAPIF, the CCF can determine to use a topology hiding strategy for the API, that is, select a topology hiding entry point AEF (generally referred to as a boundary AEF) for the API. Then, when the API calling entity calls the API, the boundary AEF can determine the AEF that actually provides the API, and send an API calling request to the AEF. For a scenario in which an API is provided by only one AEF, the boundary AEF can determine the AEF that actually provides the API according to the identifier of the API, and directly sends an API call request to the AEF that actually provides the API. For a scenario where an API can be provided by multiple AEFs, when the API is provided to the API calling entity, the CCF applies a topology hiding strategy to it, and the boundary AEF cannot determine which of the multiple AEFs that should provide the API. AEF sends an API call request, which causes the API call to fail.
发明内容SUMMARY OF THE INVENTION
本申请提供一种调用应用程序接口的方法和装置,能够在一个API由多个开放功能网元提供的场景中,确定出用于调用该API的目标开放功能网元,从而成功调用API。The present application provides a method and apparatus for calling an application program interface, which can determine a target open function network element for calling the API in a scenario where an API is provided by multiple open function network elements, thereby successfully calling the API.
第一方面,提供了一种调用应用程序接口的方法,包括:第一网元获取API的路由信息,所述路由信息用于指示调用所述API的路由,所述API由第一开放功能网元和第二开放功能网元提供;所述第一网元获取所述API的调用参数信息,所述调用参数信息用于操作所述API;所述第一网元根据所述路由信息和所述调用参数信息,从所述第一开放功能网元和所述第二开放功能网元中确定目标开放功能网元。In a first aspect, a method for invoking an application program interface is provided, including: a first network element obtains routing information of an API, where the routing information is used to indicate a route for invoking the API, and the API is provided by the first open function network element and a second open function network element; the first network element obtains the calling parameter information of the API, and the calling parameter information is used to operate the API; the first network element The invocation parameter information is used, and the target open function network element is determined from the first open function network element and the second open function network element.
本申请实施例的调用应用程序接口的方法,在一个API由多个开放功能网元提供的场景中,通过结合API的路由信息以及该API的调用参数信息,能够确定出用于调用该API的目标开放功能网元,从而由边界开放功能网元向该目标开放功能网元转发API调用请求,实现API调用成功。In the method for invoking an application program interface according to the embodiment of the present application, in a scenario where an API is provided by multiple open function network elements, by combining the routing information of the API and the invocation parameter information of the API, the method for invoking the API can be determined. The target open function network element, so that the border open function network element forwards the API call request to the target open function network element, so that the API call is successful.
在本实施例中,第一网元可以是核心功能网元、发布功能网元、或者开放功能网元(即为能够接收到API调用实体的API调用请求的边界开放功能网元)。In this embodiment, the first network element may be a core function network element, a publishing function network element, or an open function network element (ie, a border open function network element that can receive an API call request from an API calling entity).
结合第一方面,在第一方面的某些实现方式中,所述调用参数信息包括终端设备的标识信息和/或所述终端设备的位置信息;和/或,所述路由信息包括所述第一开放功能网元的信息和所述第二开放功能网元的信息、以及所述API对应的第一服务区域的信息和第二服务区域的信息,其中,所述第一开放功能网元提供的所述API对应所述第一服务区域,所述第二开放功能网元提供的所述API对应所述第二服务区域。With reference to the first aspect, in some implementations of the first aspect, the invocation parameter information includes identification information of a terminal device and/or location information of the terminal device; and/or the routing information includes the first Information of an open function network element, information of the second open function network element, and information of the first service area and information of the second service area corresponding to the API, wherein the first open function network element provides The API provided by the second open function network element corresponds to the first service area, and the API provided by the second open function network element corresponds to the second service area.
结合第一方面,在第一方面的某些实现方式中,所述第一网元为核心功能网元,所述第一网元获取所述API的调用参数信息,包括:所述第一网元从边界开放功能网元接收所述API的调用参数信息;所述方法还包括:所述第一网元向所述边界开放功能网元发送所述目标开放功能网元的信息。With reference to the first aspect, in some implementations of the first aspect, the first network element is a core function network element, and the first network element obtains the calling parameter information of the API, including: the first network element The element receives the calling parameter information of the API from the boundary opening function network element; the method further includes: the first network element sends the information of the target opening function network element to the boundary opening function network element.
具体地,上述第一网元为核心功能网元,该核心功能网元可以从边界开放功能网元接收该API的调用参数信息。进一步地,在根据API的路由信息和调用参数信息确定出目标开放功能网元之后,该核心功能网元可以向边界开放功能网元发送该目标开放功能网元的信息,以便该目标开放功能网元将来自API调用实体的API调用请求发送给该目标开放功能网元。Specifically, the above-mentioned first network element is a core function network element, and the core function network element can receive the calling parameter information of the API from the border opening function network element. Further, after determining the target open function network element according to the routing information and calling parameter information of the API, the core function network element can send the information of the target open function network element to the border open function network element, so that the target open function network element can be The element sends the API calling request from the API calling entity to the target open function network element.
结合第一方面,在第一方面的某些实现方式中,所述第一网元为核心功能网元,所述第一网元获取API的路由信息,包括:所述第一网元从发布功能网元接收所述API的路由信息。With reference to the first aspect, in some implementations of the first aspect, the first network element is a core function network element, and the first network element obtains the routing information of the API, including: the first network element is published from The functional network element receives the routing information of the API.
作为一个可选的实施例,所述第一网元为核心功能网元,所述第一网元获取API的路由信息,可以是该第一网元从本地预配置的AEF信息中确定上述API的路由信息。As an optional embodiment, the first network element is a core function network element, and the first network element obtains the routing information of the API, which may be determined by the first network element from locally preconfigured AEF information. routing information.
结合第一方面,在第一方面的某些实现方式中,上述第一网元为发布功能网元,该发布功能网元可以从本地获取该API信息。With reference to the first aspect, in some implementations of the first aspect, the above-mentioned first network element is a publishing function network element, and the publishing function network element can obtain the API information locally.
结合第一方面,在第一方面的某些实现方式中,所述第一网元为核心功能网元,所述方法还包括:所述第一网元从发布功能网元接收所述第一开放功能网元的信息和所述第二开放功能网元的信息、以及所述第一服务区域的信息和所述第二服务区域的信息,其中,所述第一开放功能网元提供的所述API对应所述第一服务区域,所述第二开放功能网元提供的所述API对应所述第二服务区域;所述第一网元获取API的路由信息,包括:所述第一网元根据所述第一开放功能网元的信息和所述第二开放功能网元的信息、以及所述第一服务区域的信息和所述第二服务区域的信息,生成所述API的路由信息。With reference to the first aspect, in some implementations of the first aspect, the first network element is a core function network element, and the method further includes: the first network element receives the first network element from a publishing function network element The information of the open function network element and the information of the second open function network element, and the information of the first service area and the information of the second service area, wherein all the information provided by the first open function network element The API corresponds to the first service area, and the API provided by the second open function network element corresponds to the second service area; the first network element obtains the routing information of the API, including: the first network element The element generates the routing information of the API according to the information of the first open function network element and the information of the second open function network element, as well as the information of the first service area and the information of the second service area .
具体地,上述第一网元为核心功能网元,该第一网元可以根据接收到的第一开放功能网元的信息、第二开放功能网元的信息、第一服务区域的信息、以及第二服务区域的信息,生成上述API的路由信息。可选地,该路由信息可以表示第一服务区域与第一开放功能网元之间的对应关系,以及第二服务区域与第二开放功能网元之间的对应关系。Specifically, the above-mentioned first network element is a core function network element, and the first network element can be based on the received information of the first open function network element, information of the second open function network element, information of the first service area, and The information of the second service area is used to generate the routing information of the above-mentioned API. Optionally, the routing information may indicate the correspondence between the first service area and the first open function network element, and the correspondence between the second service area and the second open function network element.
结合第一方面,在第一方面的某些实现方式中,所述第一网元为边界开放功能网元,所述第一网元获取API的路由信息,包括:所述第一网元从核心功能网元或发布功能网元接收所述API的路由信息。With reference to the first aspect, in some implementations of the first aspect, the first network element is a border opening function network element, and the first network element obtains the routing information of the API, including: the first network element from the The core function network element or the publishing function network element receives the routing information of the API.
具体地,上述第一网元为边界开放功能网元,那么该边界开放功能网元可以从核心功能网元或者发布功能网元接收上述API的路由信息。示例性地,若边界开放功能网元与发布功能网元之间有接口,那么该发布功能网元可以直接将API的路由信息通过该接口发送给边界开放功能网元。示例性地,若边界开放功能网元与发布功能网元之间没有接口,那么该发布功能网元可以将API的路由信息发送给核心功能网元,再由核心功能网元将API信息发送给边界开放功能网元。Specifically, if the first network element is a border opening function network element, the border opening function network element may receive the routing information of the API from the core function network element or the publishing function network element. Exemplarily, if there is an interface between the border opening function network element and the publishing function network element, the publishing function network element can directly send the routing information of the API to the border opening function network element through the interface. Exemplarily, if there is no interface between the border opening function network element and the publishing function network element, the publishing function network element can send the API routing information to the core function network element, and the core function network element sends the API information to the core function network element. Border opening function network element.
结合第一方面,在第一方面的某些实现方式中,所述方法还包括:所述第一网元发送请求消息,所述请求消息用于请求所述API的路由信息,所述请求消息包括所述API的标识信息。With reference to the first aspect, in some implementations of the first aspect, the method further includes: the first network element sends a request message, where the request message is used to request routing information of the API, and the request message Including the identification information of the API.
具体地,上述第一网元为边界开放功能网元,该边界开放功能网元还可以向核心功能网元或发布功能网元发送请求消息,用于请求上述API的路由信息。由于路由信息是针对特定API的,因此该请求消息中还可以包括所请求的API的标识信息。一般情况下,边界开放功能网元是在接收到来自API调用实体的API调用请求之后,向核心功能网元或发布功能网元发送上述请求消息,该请求消息所请求的路由信息对应的API即为该API调用请求所请求调用的API。Specifically, the first network element is a border opening function network element, and the border opening function network element may also send a request message to the core function network element or the publishing function network element for requesting the routing information of the API. Since the routing information is for a specific API, the request message may also include identification information of the requested API. In general, after receiving the API call request from the API calling entity, the network element with the open border function sends the above request message to the core function network element or the publishing function network element. The API corresponding to the routing information requested by the request message is the The API that was requested to be called for this API call request.
在本申请实施例中,只有在边界开放功能网元接收到API调用请求时,该边界开放功能网元才向核心功能网元请求路由信息,而不是核心功能网元主动向边界开放功能网元发送该路由信息,避免了边界开放功能网元获取了路由信息,但是并没有使用,导致推送信令和相关信息的浪费。In the embodiment of the present application, only when the border opening function network element receives the API call request, the border opening function network element requests routing information from the core function network element, instead of the core function network element actively requesting the border opening function network element Sending the routing information avoids that the network element with the border opening function obtains the routing information but does not use it, resulting in waste of push signaling and related information.
第二方面,提供了另一种调用应用程序接口的方法,包括:第二网元获取API的路由信息,所述路由信息用于指示调用所述API的路由,所述API由第一开放功能网元和第二开放功能网元提供;所述第二网元向边界开放功能网元发送所述路由信息,所述路由信息用于所述边界开放功能网元对目标开放功能网元的确定,所述目标开放功能网元是从所述第一开放功能网元和所述第二开放功能网元中确定的。In a second aspect, another method for invoking an application program interface is provided, including: a second network element obtains routing information of an API, where the routing information is used to indicate a route for invoking the API, and the API is opened by the first open function provided by the network element and the second open function network element; the second network element sends the routing information to the border open function network element, where the routing information is used for the border open function network element to determine the target open function network element , the target open function network element is determined from the first open function network element and the second open function network element.
结合第二方面,在第二方面的某些实现方式中,所述路由信息包括提供所述API的第一开放功能网元的信息和第二开放功能网元的信息、以及所述API对应的第一服务区域的信息和第二服务区域的信息,其中,所述第一开放功能网元提供的所述API对应所述第一服务区域,所述第二开放功能网元提供的所述API对应所述第二服务区域。With reference to the second aspect, in some implementations of the second aspect, the routing information includes information of a first open function network element that provides the API, information of a second open function network element, and information corresponding to the API. The information of the first service area and the information of the second service area, wherein the API provided by the first open function network element corresponds to the first service area, and the API provided by the second open function network element corresponding to the second service area.
结合第二方面,在第二方面的某些实现方式中,所述第二网元为核心功能网元,所述方法还包括:所述第二网元从发布功能网元接收所述第一开放功能网元的信息和所述第二开放功能网元的信息、以及所述API对应的第一服务区域的信息和所述第二服务区域的信息,其中,所述第一开放功能网元提供的所述API对应所述第一服务区域,所述第二开放功能网元提供的所述API对应所述第二服务区域;所述第二网元获取API的路由信息,包括:所述第二网元根据所述第一开放功能网元的信息和所述第二开放功能网元的信息、以及所述第一服务区域的信息和所述第二服务区域的信息,生成所述API的路由信息。With reference to the second aspect, in some implementations of the second aspect, the second network element is a core function network element, and the method further includes: the second network element receives the first network element from a publishing function network element The information of the open function network element and the information of the second open function network element, and the information of the first service area and the second service area corresponding to the API, wherein the first open function network element The provided API corresponds to the first service area, and the API provided by the second open function network element corresponds to the second service area; the second network element obtains the routing information of the API, including: the The second network element generates the API according to the information of the first open function network element and the information of the second open function network element, as well as the information of the first service area and the information of the second service area routing information.
结合第二方面,在第二方面的某些实现方式中,在所述第二网元向所述边界开放功能网元发送所述路由信息之前,所述方法还包括:所述第二网元从所述边界开放功能网元接收请求消息,所述请求消息用于请求所述路由信息,所述请求消息包括所述API的标识信息;所述第二网元向所述边界开放功能网元发送所述路由信息,包括:所述第二网元根据所述请求消息,向所述边界开放功能网元发送所述路由信息。With reference to the second aspect, in some implementations of the second aspect, before the second network element sends the routing information to the border opening function network element, the method further includes: the second network element Receive a request message from the border opening function network element, where the request message is used to request the routing information, and the request message includes the identification information of the API; the second network element reports to the border opening function network element Sending the routing information includes: the second network element sending the routing information to the border opening function network element according to the request message.
第三方面,提供了一种调用应用程序接口的方法,包括:第一网元获取API信息,所述API信息包括提供所述API的第一开放功能网元的信息和第二开放功能网元的信息、以及所述API对应的第一服务区域的信息和第二服务区域的信息,其中,所述第一开放功能网元提供的所述API对应所述第一服务区域,所述第二开放功能网元提供的所述API对应所述第二服务区域;所述第一网元获取所述API的调用参数信息,所述调用参数信息包括终端设备的标识信息和/或所述终端设备的位置信息;所述第一网元根据所述API信息以及所述调用参数信息,从所述第一开放功能网元和所述第二开放功能网元中确定目标开放功能网元。A third aspect provides a method for invoking an application program interface, including: a first network element acquiring API information, the API information including information of a first open function network element that provides the API and a second open function network element information, and the information of the first service area and the information of the second service area corresponding to the API, wherein the API provided by the first open function network element corresponds to the first service area, the second service area The API provided by the open function network element corresponds to the second service area; the first network element obtains call parameter information of the API, where the call parameter information includes the identification information of the terminal device and/or the terminal device location information; the first network element determines a target open function network element from the first open function network element and the second open function network element according to the API information and the invocation parameter information.
本申请实施例的调用应用程序接口的方法,在一个API由多个开放功能网元提供的场景中,通过结合API对应的服务区域的信息、提供该API的多个开放功能网元以及该API的调用参数信息,能够确定出用于调用该API的目标开放功能网元,从而由边界开放功能网元向该目标开放功能网元转发API调用请求,实现API调用成功。In the method for invoking an application program interface according to the embodiment of the present application, in a scenario where an API is provided by multiple open function network elements, by combining the information of the service area corresponding to the API, the multiple open function network elements that provide the API, and the API The call parameter information can determine the target open function network element used to call the API, so that the border open function network element forwards the API call request to the target open function network element, so that the API call is successful.
在本实施例中,第一网元可以是核心功能网元、发布功能网元、或者开放功能网元(即为能够接收到API调用实体的API调用请求的边界开放功能网元)。In this embodiment, the first network element may be a core function network element, a publishing function network element, or an open function network element (ie, a border open function network element that can receive an API call request from an API calling entity).
结合第三方面,在第三方面的某些实现方式中,所述第一网元为核心功能网元,所述第一网元获取所述API的调用参数信息,包括:所述第一网元从边界开放功能网元接收所述API的调用参数信息;所述方法还包括:所述第一网元向所述边界开放功能网元发送所述目标开放功能网元的信息。With reference to the third aspect, in some implementations of the third aspect, the first network element is a core function network element, and the first network element obtains the calling parameter information of the API, including: the first network element The element receives the calling parameter information of the API from the boundary opening function network element; the method further includes: the first network element sends the information of the target opening function network element to the boundary opening function network element.
具体地,上述第一网元为核心功能网元,该核心功能网元可以从边界开放功能网元接收该API的调用参数信息。进一步地,在根据API信息和调用参数信息确定出目标开放功能网元之后,该核心功能网元可以向边界开放功能网元发送该目标开放功能网元的信息,以便该目标开放功能网元将来自API调用实体的API调用请求发送给该目标开放功能网元。Specifically, the above-mentioned first network element is a core function network element, and the core function network element can receive the calling parameter information of the API from the border opening function network element. Further, after determining the target open function network element according to the API information and the calling parameter information, the core function network element may send the information of the target open function network element to the border open function network element, so that the target open function network element will The API call request from the API call entity is sent to the target open function network element.
结合第三方面,在第三方面的某些实现方式中,所述第一网元为核心功能网元,所述第一网元获取API信息,包括:所述第一网元从发布功能网元接收所述API信息。With reference to the third aspect, in some implementations of the third aspect, the first network element is a core function network element, and the first network element acquiring the API information includes: the first network element obtains API information from the publishing function network element. Meta receives the API information.
结合第三方面,在第三方面的某些实现方式中,上述第一网元为发布功能网元,该发布功能网元可以从本地获取该API信息。本申请实施例对此不作限定。With reference to the third aspect, in some implementations of the third aspect, the above-mentioned first network element is a publishing function network element, and the publishing function network element can obtain the API information locally. This embodiment of the present application does not limit this.
结合第三方面,在第三方面的某些实现方式中,所述第一网元为边界开放功能网元,所述第一网元获取API信息,包括:所述第一网元从核心功能网元或发布功能网元接收所述API信息。With reference to the third aspect, in some implementations of the third aspect, the first network element is a border opening function network element, and the first network element obtains API information, including: the first network element obtains the API information from the core function The network element or the publishing function network element receives the API information.
具体地,上述第一网元为边界开放功能网元,那么该边界开放功能网元可以从核心功能网元或者发布功能网元接收上述API信息。示例性地,若边界开放功能网元与发布功能网元之间有接口,那么该发布功能网元可以直接将API信息通过该接口发送给边界开放功能网元。示例性地,若边界开放功能网元与发布功能网元之间没有接口,那么该发布功能网元可以将API信息发送给核心功能网元,再由核心功能网元将API信息发送给边界开放功能网元。Specifically, if the above-mentioned first network element is a boundary opening function network element, the boundary opening function network element may receive the above-mentioned API information from the core function network element or the publishing function network element. Exemplarily, if there is an interface between the border opening function network element and the publishing function network element, the publishing function network element can directly send the API information to the border opening function network element through the interface. Exemplarily, if there is no interface between the border opening function network element and the publishing function network element, the publishing function network element can send the API information to the core function network element, and then the core function network element sends the API information to the border opening function network element. functional network element.
结合第三方面,在第三方面的某些实现方式中,所述方法还包括:所述第一网元根据所述API信息生成所述API的调用路由规则,所述调用路由规则用于指示调用所述API的路由;所述第一网元根据所述API信息以及所述调用参数信息,从所述至少两个开放功能网元中确定目标开放功能网元,包括:所述第一网元根据所述调用路由规则以及所调用参数信息,从所述第一开放功能网元和所述第二开放功能网元中确定目标开放功能网元。With reference to the third aspect, in some implementations of the third aspect, the method further includes: the first network element generates, according to the API information, a routing rule for calling the API, where the routing rule for calling is used to indicate A route for calling the API; the first network element determines a target open function network element from the at least two open function network elements according to the API information and the calling parameter information, including: the first network element The element determines a target open function network element from the first open function network element and the second open function network element according to the calling routing rule and the called parameter information.
应理解,这里的调用路由规则可以包括在上述第一方面和第二方面中的路由信息中,但本申请对此不作限定。具体地,上述第一网元(核心功能网元、或者边界开放功能网元、或者发布功能网元等)可以根据API信息,生成该API的调用路由规则,在这种情况下,该第一网元可以根据生成的调用路由规则和调用参数信息,确定目标开放功能网元。可选地,该调用路由规则可以表示第一服务区域与第一开放功能网元之间的对应关系,以及第二服务区域与第二开放功能网元之间的对应关系。It should be understood that the invocation routing rule here may be included in the routing information in the first aspect and the second aspect, but this application does not limit it. Specifically, the above-mentioned first network element (core function network element, or border opening function network element, or publishing function network element, etc.) can generate a routing rule for calling the API according to the API information. In this case, the first network element The network element may determine the target open function network element according to the generated call routing rule and call parameter information. Optionally, the invocation routing rule may represent the correspondence between the first service area and the first open function network element, and the correspondence between the second service area and the second open function network element.
结合第三方面,在第三方面的某些实现方式中,所述第一网元为边界开放功能网元,所述方法还包括:所述第一网元发送请求消息,所述请求消息用于请求所述API的调用路由规则,所述请求消息包括所述API的标识信息。With reference to the third aspect, in some implementations of the third aspect, the first network element is a border opening function network element, and the method further includes: the first network element sends a request message, and the request message uses In order to request the call routing rule of the API, the request message includes the identification information of the API.
具体地,上述第一网元为边界开放功能网元,该边界开放功能网元还可以向核心功能网元或发布功能网元发送请求消息,用于请求上述API的调用路由规则。由于调用路由规则是针对特定API的,因此该请求消息中还可以包括所请求的API的标识信息。一般情况下,边界开放功能网元是在接收到来自API调用实体的API调用请求之后,向核心功能网元或发布功能网元发送上述请求消息,该请求消息所请求的调用路由规则对应的API即为该API调用请求所请求调用的API。Specifically, the above-mentioned first network element is a border opening function network element, and the border opening function network element may also send a request message to the core function network element or the publishing function network element for requesting the calling routing rule of the API. Since the calling routing rule is for a specific API, the request message may also include identification information of the requested API. In general, after receiving the API call request from the API calling entity, the network element of the border opening function sends the above-mentioned request message to the core function network element or the publishing function network element. The request message requests the API corresponding to the routing rule. That is, the API requested to be called by the API call request.
在本申请实施例中,只有在边界开放功能网元接收到API调用请求时,该边界开放功能网元才向核心功能网元请求路由调用规则,而不是核心功能网元主动向边界开放功能网元发送该调用路由规则,避免了边界开放功能网元获取了调用路由规则,但是并没有使用,导致推送信令和相关信息的浪费。In the embodiment of the present application, only when the border opening function network element receives the API call request, the border opening function network element requests the routing call rule from the core function network element, rather than the core function network element actively opening the border function network element to the border function network element. The element sends the call routing rule, which avoids that the border opening function network element obtains the call routing rule, but does not use it, resulting in waste of push signaling and related information.
第四方面,提供了另一种调用应用程序接口的方法,包括:第二网元获取API信息,所述API信息包括提供所述API的第一开放功能网元的信息和第二开放功能网元的信息、以及所述API对应的第一服务区域的信息和第二服务区域的信息,其中,所述第一开放功能网元提供的所述API对应所述第一服务区域,所述第二开放功能网元提供的所述API对应所述第二服务区域;所述第二网元向边界开放功能网元发送所述API信息,所述API信息用于所述边界开放功能网元对目标开放功能网元的确定,所述目标开放功能网元是从所述第一开放功能网元和所述第二开放功能网元中确定的。In a fourth aspect, another method for invoking an application program interface is provided, including: acquiring API information by a second network element, where the API information includes information of a first open function network element that provides the API and a second open function network element element information, and the information of the first service area and the second service area corresponding to the API, wherein the API provided by the first open function network element corresponds to the first service area, and the first open function network element corresponds to the first service area. The API provided by the second open function network element corresponds to the second service area; the second network element sends the API information to the border open function network element, and the API information is used for the border open function network element to pair Determination of a target open function network element, the target open function network element is determined from the first open function network element and the second open function network element.
结合第四方面,在第四方面的某些实现方式中,所述方法还包括:所述第二网元根据所述API信息生成所述API的调用路由规则,所述调用路由规则用于指示调用所述API的路由;所述第二网元向所述边界开放功能网元发送所述调用路由规则。With reference to the fourth aspect, in some implementations of the fourth aspect, the method further includes: the second network element generates, according to the API information, a routing rule for calling the API, where the routing rule for calling is used to indicate The route for invoking the API; the second network element sends the invocation routing rule to the border opening function network element.
结合第四方面,在第四方面的某些实现方式中,在所述第二网元向所述边界开放功能网元发送所述调用路由规则之前,所述方法还包括:所述第二网元从所述边界开放功能网元接收请求消息,所述请求消息用于请求所述调用路由规则,所述请求消息包括所述API的标识信息;所述第二网元向所述边界开放功能网元发送所述调用路由规则,包括:所述第二网元根据所述请求消息,向所述边界开放功能网元发送所述调用路由规则。With reference to the fourth aspect, in some implementations of the fourth aspect, before the second network element sends the call routing rule to the border opening function network element, the method further includes: the second network element element receives a request message from the border opening function network element, the request message is used to request the call routing rule, and the request message includes the identification information of the API; the second network element reports to the border opening function The network element sending the calling routing rule includes: the second network element sending the calling routing rule to the border opening function network element according to the request message.
第五方面,提供了一种装置,用于执行上述各个方面或各个方面任一种可能的实现方式中的方法。具体地,该装置包括用于执行上述各个方面或各个方面的任一种可能的实现方式中的方法的单元。In a fifth aspect, an apparatus is provided for performing the method in each of the above aspects or any possible implementation manner of each aspect. Specifically, the apparatus includes a unit for performing the method in each of the above-mentioned aspects or any possible implementation manner of the various aspects.
第六方面,提供了一种装置,该装置包括:收发器、存储器和处理器。其中,该收发器、该存储器和该处理器通过内部连接通路互相通信,该存储器用于存储指令,该处理器用于执行该存储器存储的指令,以控制接收器接收信号,并控制发送器发送信号,并且当该处理器执行该存储器存储的指令时,该执行使得该处理器执行上述各个方面或各个方面的任一种可能的实现方式中的方法。In a sixth aspect, an apparatus is provided, the apparatus comprising: a transceiver, a memory, and a processor. The transceiver, the memory and the processor communicate with each other through an internal connection path, the memory is used for storing instructions, and the processor is used for executing the instructions stored in the memory to control the receiver to receive signals and control the transmitter to send signals , and when the processor executes the instructions stored in the memory, the execution causes the processor to perform the above-described various aspects or the methods in any possible implementation manner of the various aspects.
第七方面,提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序代码,当所述计算机程序代码被计算设备运行时,使得所述计算设备执行上述各个方面或各个方面的任一种可能实现方式中的方法。In a seventh aspect, there is provided a computer program product, the computer program product comprising: computer program code, when the computer program code is executed by a computing device, the computing device is made to perform each of the above aspects or any one of the various aspects method in one possible implementation.
第八方面,提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行上述各个方面或各个方面的任一种可能的实现方式中的方法的指令。In an eighth aspect, a computer-readable medium is provided for storing a computer program, the computer program comprising instructions for performing the method in each of the above-mentioned aspects or any possible implementation manner of the various aspects.
第九方面,提供了一种芯片,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的装置执行上述各个方面或各个方面的任一种可能的实现方式中的方法。In a ninth aspect, a chip is provided, including: a processor for invoking and running a computer program from a memory, so that a device installed with the chip executes each of the above aspects or any of the possible implementations of the various aspects Methods.
附图说明Description of drawings
图1示出了本申请实施例的系统架构的示意图。FIG. 1 shows a schematic diagram of a system architecture of an embodiment of the present application.
图2示出了本申请实施例的另一系统架构的示意图。FIG. 2 shows a schematic diagram of another system architecture of an embodiment of the present application.
图3示出了本申请实施例的调用应用程序接口的方法的示意性流程图。FIG. 3 shows a schematic flowchart of a method for invoking an application program interface according to an embodiment of the present application.
图4示出了本申请实施例的另一调用应用程序接口的方法的示意性流程图。FIG. 4 shows a schematic flowchart of another method for invoking an application program interface according to an embodiment of the present application.
图5示出了本申请实施例的另一调用应用程序接口的方法的示意性流程图。FIG. 5 shows a schematic flowchart of another method for invoking an application program interface according to an embodiment of the present application.
图6示出了本申请实施例的另一调用应用程序接口的方法的示意性流程图。FIG. 6 shows a schematic flowchart of another method for invoking an application program interface according to an embodiment of the present application.
图7示出了本申请实施例的另一调用应用程序接口的方法的示意性流程图。FIG. 7 shows a schematic flowchart of another method for invoking an application program interface according to an embodiment of the present application.
图8示出了本申请实施例的调用应用程序接口的装置的示意性框图。FIG. 8 shows a schematic block diagram of an apparatus for invoking an application program interface according to an embodiment of the present application.
图9示出了本申请实施例的另一调用应用程序接口的装置的示意性框图。FIG. 9 shows a schematic block diagram of another apparatus for invoking an application program interface according to an embodiment of the present application.
图10示出了本申请实施例的另一调用应用程序接口的装置的示意性框图。FIG. 10 shows a schematic block diagram of another apparatus for invoking an application program interface according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请中的技术方案进行描述。The technical solutions in the present application will be described below with reference to the accompanying drawings.
本申请实施例的技术方案可以应用于各种通信系统,例如:全球移动通信(globalsystem for mobile communications,GSM)系统、码分多址(code division multipleaccess,CDMA)系统、宽带码分多址(wideband code division multiple access,WCDMA)系统、通用分组无线业务(general packet radio service,GPRS)、长期演进(long termevolution,LTE)系统、LTE频分双工(frequency division duplex,FDD)系统、LTE时分双工(time division duplex,TDD)、通用移动通信系统(universal mobiletelecommunication system,UMTS)、全球互联微波接入(worldwide interoperabilityfor microwave access,WiMAX)通信系统、未来的第五代(5th generation,5G)系统或新无线(new radio,NR)等。The technical solutions of the embodiments of the present application can be applied to various communication systems, for example, a global system for mobile communications (GSM) system, a code division multiple access (CDMA) system, a wideband code division multiple access (wideband) system code division multiple access (WCDMA) system, general packet radio service (GPRS), long term evolution (long termevolution, LTE) system, LTE frequency division duplex (FDD) system, LTE time division duplex (time division duplex, TDD), universal mobile telecommunication system (UMTS), worldwide interoperability for microwave access (WiMAX) communication system, future fifth generation (5th generation, 5G) system or new Wireless (new radio, NR) and so on.
本申请实施例中的终端设备可以指用户设备、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置。终端设备还可以是蜂窝电话、无绳电话、会话启动协议(session initiationprotocol,SIP)电话、无线本地环路(wireless local loop,WLL)站、个人数字助理(personal digital assistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备,未来5G网络中的终端设备或者未来演进的公用陆地移动通信网络(public land mobile network,PLMN)中的终端设备等,本申请实施例对此并不限定。The terminal device in this embodiment of the present application may refer to a user equipment, an access terminal, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent or user device. The terminal device may also be a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a wireless communication function handheld devices, computing devices or other processing devices connected to wireless modems, in-vehicle devices, wearable devices, terminal devices in future 5G networks or terminals in future evolved public land mobile networks (PLMN) equipment, etc., which are not limited in this embodiment of the present application.
本申请实施例中的网络设备可以是用于与终端设备通信的设备,该网络设备可以是全球移动通信(global system for mobile communications,GSM)系统或码分多址(code division multiple access,CDMA)中的基站(base transceiver station,BTS),也可以是宽带码分多址(wideband code division multiple access,WCDMA)系统中的基站(NodeB,NB),还可以是LTE系统中的演进型基站(evolved NodeB,eNB或eNodeB),还可以是云无线接入网络(cloud radio access network,CRAN)场景下的无线控制器,或者该网络设备可以为中继站、接入点、车载设备、可穿戴设备以及未来5G网络中的网络设备或者未来演进的PLMN网络中的网络设备等,本申请实施例并不限定。The network device in this embodiment of the present application may be a device for communicating with a terminal device, and the network device may be a global system for mobile communications (GSM) system or code division multiple access (CDMA) The base transceiver station (BTS) in the LTE system can also be the base station (NodeB, NB) in the wideband code division multiple access (WCDMA) system, or the evolved base station (evolved) in the LTE system. NodeB, eNB or eNodeB), it can also be a wireless controller in the cloud radio access network (cloud radio access network, CRAN) scenario, or the network device can be a relay station, an access point, an in-vehicle device, a wearable device, and future The network equipment in the 5G network or the network equipment in the future evolved PLMN network, etc., are not limited in the embodiments of the present application.
在本申请实施例中,终端设备或网络设备包括硬件层、运行在硬件层之上的操作系统层,以及运行在操作系统层上的应用层。该硬件层包括中央处理器(centralprocessing unit,CPU)、内存管理单元(memory management unit,MMU)和内存(也称为主存)等硬件。该操作系统可以是任意一种或多种通过进程(process)实现业务处理的计算机操作系统,例如,Linux操作系统、Unix操作系统、Android操作系统、iOS操作系统或windows操作系统等。该应用层包含浏览器、通讯录、文字处理软件、即时通信软件等应用。并且,本申请实施例并未对本申请实施例提供的方法的执行主体的具体结构特别限定,只要能够通过运行记录有本申请实施例的提供的方法的代码的程序,以根据本申请实施例提供的方法进行通信即可,例如,本申请实施例提供的方法的执行主体可以是终端设备或网络设备,或者,是终端设备或网络设备中能够调用程序并执行程序的功能模块。In this embodiment of the present application, the terminal device or the network device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and memory (also called main memory). The operating system may be any one or more computer operating systems that implement business processing through processes, such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a Windows operating system. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software. In addition, the embodiments of the present application do not specifically limit the specific structure of the execution body of the methods provided by the embodiments of the present application, as long as the program that records the codes of the methods provided by the embodiments of the present application can be executed to provide the methods provided by the embodiments of the present application. For example, the execution subject of the method provided by the embodiment of the present application may be a terminal device or a network device, or a functional module in the terminal device or network device that can call and execute a program.
另外,本申请的各个方面或特征可以实现成方法、装置或使用标准编程和/或工程技术的制品。本申请中使用的术语“制品”涵盖可从任何计算机可读器件、载体或介质访问的计算机程序。例如,计算机可读介质可以包括,但不限于:磁存储器件(例如,硬盘、软盘或磁带等),光盘(例如,压缩盘(compact disc,CD)、数字通用盘(digital versatile disc,DVD)等),智能卡和闪存器件(例如,可擦写可编程只读存储器(erasable programmableread-only memory,EPROM)、卡、棒或钥匙驱动器等)。另外,本文描述的各种存储介质可代表用于存储信息的一个或多个设备和/或其它机器可读介质。术语“机器可读介质”可包括但不限于,无线信道和能够存储、包含和/或承载指令和/或数据的各种其它介质。Additionally, various aspects or features of the present application may be implemented as a method, apparatus, or article of manufacture using standard programming and/or engineering techniques. The term "article of manufacture" as used in this application encompasses a computer program accessible from any computer readable device, carrier or medium. For example, computer-readable media may include, but are not limited to, magnetic storage devices (eg, hard disks, floppy disks, or magnetic tapes, etc.), optical disks (eg, compact discs (CDs), digital versatile discs (DVDs) etc.), smart cards and flash memory devices (eg, erasable programmable read-only memory (EPROM), cards, stick or key drives, etc.). Additionally, various storage media described herein can represent one or more devices and/or other machine-readable media for storing information. The term "machine-readable medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing, and/or carrying instructions and/or data.
在本申请实施例中,service API或API指的是由AEF实体提供的API,可以被API调用实体发现并调用。API主要包括一些特定服务类型的API,可以用于API调用实体使用运营商提供的资源及服务,例如,服务质量(quality of service,QoS)控制类的API、广播类型的API、物联网(internet of things,IoT)类型的API等。In this embodiment of the present application, the service API or API refers to the API provided by the AEF entity, which can be discovered and called by the API calling entity. APIs mainly include APIs of some specific service types, which can be used by API calling entities to use resources and services provided by operators, such as APIs for quality of service (QoS) control, APIs for broadcast, and Internet of Things (Internet of Things) of things, IoT) type API, etc.
图1示出了应用本申请实施例的系统架构100的示意图。如图1所示,该系统架构100包括:API调用实体110、开放功能网元120。其中,API调用实体110具有调用API的能力,开放功能网元120提供API,同时也作为API调用实体调用API的入口。FIG. 1 shows a schematic diagram of a
可选地,上述系统架构100还可以包括核心功能网元130、管理功能网元140、发布功能网元150中的至少一个。示例性地,发布功能网元150提供发布API的功能,将API发布在核心功能网元130中。核心功能网元130保存发布功能网元150所发布的API,以便API调用实体110可以发现API,从而调用该API。管理功能网元140提供管理API的功能。Optionally, the foregoing
可选地,上述系统架构100中的各个网元可以由一个设备实现,也可以由多个设备共同实现,还可以是一个设备内的一个功能模块,本申请实施例对此不作具体限定。可以理解的是,上述功能既可以是硬件设备中的网络元件,也可以是在专用硬件上运行的软件功能,或者是平台(例如,云平台)上实例化的虚拟化功能。Optionally, each network element in the foregoing
图2是本申请实施例的另一系统架构200。如图2所示,该系统架构200具体可以包括下列网元:FIG. 2 is another
1、API调用实体(API invoker)1. API invoker
API调用实体,也可以称为API调用者,一般为与运营商签订了服务协议的第三方应用,例如,机器对机器(machine to machine,M2M)应用、物联网(internet of things,IoT)应用、车联网(vehicle to everything,V2X)应用等,还可以以是运营商自己的应用。这些应用既可以运行在终端设备中,也可以运行在网络设备中。The API calling entity, also known as the API caller, is generally a third-party application that has signed a service agreement with the operator, such as machine to machine (M2M) applications, Internet of things (IoT) applications , vehicle to everything (V2X) applications, etc., and can also be operators' own applications. These applications can run on both terminal equipment and network equipment.
此外,API调用实体也可以是PLMN网络中的设备,例如,LTE通信系统中的移动管理实体(mobile management entity,MME)、无线接入网(radio access network,RAN)、策略和计费规则功能(policy and charging rules function,PCRF)、应用网元(ApplicationFunction,AF)、归属签约用户服务器(home subscriber server,HSS)等。又例如,5G通信系统中的认证管理功能(authentication management function,APIMF)网元、会话管理功能(session management function,SMF)网元、用户平面功能(user plane function,UPF)网元、用户数据管理(unified data management,UDM)、策略控制功能(Policy ControlFunction,PCF)网元、网元仓库功能(network repository function,NRF)、网络能力开放功能(network exposure function,NEF)、应用网元(Application Function,AF)等。API调用实体可以和PLMN运营商处于同一个信任域,也可以和PLMN运营商不处于同一个信任域,本申请实施例对此不作限定。In addition, the API calling entity may also be a device in the PLMN network, for example, a mobile management entity (MME), a radio access network (RAN), a policy and a charging rule function in an LTE communication system (policy and charging rules function, PCRF), application network element (Application Function, AF), home subscriber server (home subscriber server, HSS) and the like. For another example, the authentication management function (APIMF) network element, the session management function (SMF) network element, the user plane function (UPF) network element, and user data management in the 5G communication system (unified data management, UDM), policy control function (Policy Control Function, PCF) network element, network element repository function (network repository function, NRF), network capability exposure function (network exposure function, NEF), application network element (Application Function) , AF) etc. The API calling entity may be in the same trust domain as the PLMN operator, or may not be in the same trust domain as the PLMN operator, which is not limited in this embodiment of the present application.
2、CAPIF核心功能(CAPIF core function,CCF)网元2. CAPIF core function (CAPIF core function, CCF) network element
CCF主要包含以下功能:(1)基于API调用实体的标识和其他信息认证API调用实体;(2)支持CCF和API调用实体之间的相互鉴权;(3)在API调用实体调用API之前向API调用实体提供授权;(4)支持API发布、API存储和API的发现;(5)基于PLMN运营商的策略负责API的访问控制;(6)存储API调用的日志,并提供给授权实体;(7)基于API日志进行计费;(8)监测API的调用;(9)API调用实体的注册;(10)存储配置策略;(11)支持对调用和日志的审计。CCF mainly includes the following functions: (1) Authenticate the API calling entity based on the identity and other information of the API calling entity; (2) Support mutual authentication between the CCF and the API calling entity; (3) Before the API calling entity calls the API The API calling entity provides authorization; (4) supports API publishing, API storage and API discovery; (5) is responsible for API access control based on the PLMN operator's policy; (6) stores API call logs and provides them to the authorized entity; (7) Billing based on API logs; (8) Monitoring API calls; (9) Registration of API calling entities; (10) Storage configuration policies; (11) Support for auditing calls and logs.
在LTE通信系统中,CCF可以独立部署在一个物理设备中,也可以其他实体一起部署,例如部署在服务能力开放功能(service capability exposure function,SCEF)中。在5G通信系统中,CCF可以独立部署在一个物理设备中,也可以其他实体一起部署,力图部署在NEF中。In an LTE communication system, the CCF may be deployed independently in a physical device, or may be deployed together with other entities, for example, in a service capability exposure function (service capability exposure function, SCEF). In the 5G communication system, CCF can be deployed independently in a physical device, or it can be deployed together with other entities, trying to be deployed in the NEF.
3、API开放功能(API exposing function,AEF)网元3. API exposing function (AEF) network element
AEF提供API,同时也是API调用实体调用API的入口。AEF主要包含以下功能:(1)基于API调用实体的标识和CCF提供的其他信息认证API调用实体;(2)确认CCF提供的授权;(3)将API日志同步到CCF上。AEF provides APIs and is also the entry point for API calling entities to call APIs. AEF mainly includes the following functions: (1) authenticate the API calling entity based on the identity of the API calling entity and other information provided by the CCF; (2) confirm the authorization provided by the CCF; (3) synchronize the API log to the CCF.
AEF可以部署在NEF中,或者,AEF也可以是APIMF、SMF、UDM、PCF、NRF、NEF等,AEF还可以部署在SCEF中,或者AEF也可以是MME、PCRF等,用于PLMN内部网络能力开放。AEF can be deployed in NEF, or AEF can also be APIMF, SMF, UDM, PCF, NRF, NEF, etc. AEF can also be deployed in SCEF, or AEF can also be MME, PCRF, etc., used for PLMN internal network capabilities open.
4、API发布功能网元(API publishing function,APF)4. API publishing function (API publishing function, APF)
APF提供API发布的功能,以便API调用实体可以发现API。APF provides API publishing functionality so that API calling entities can discover the API.
5、API管理功能网元(API management function,APIMF)。5. API management function network element (API management function, APIMF).
APIMF提供对API的管理,主要包括以下功能:(1)执行CCF提供的API调用日志的审计;(2)监控CCF报告的事件;(3)向API配置API提供者的策略;(4)监测API的状态;(5)注册API调用实体。APIMF provides management of APIs, mainly including the following functions: (1) perform auditing of API call logs provided by CCF; (2) monitor events reported by CCF; (3) configure API provider policies to the API; (4) monitor The status of the API; (5) Register the API calling entity.
应理解,在上述系统架构100中,API调用实体110具体可以对应图2中的API调用实体,开放功能网元120具体可以对应图2中的AEF,核心功能网元130具体可以对应图2中的CCF,管理功能网元140具体可以对应图2中的APIMF,发布功能网元150具体可以对应图2中的APF。It should be understood that, in the
应理解,上述应用于本申请实施例的应用场景200仅是举例说明的从服务化架构的角度描述的网络架构,适用本申请实施例的网络架构并不局限于此,任何能够实现上述各个网元的功能的网络架构都适用于本申请实施例。It should be understood that the above-mentioned
需要说明的是,图2中的各个网元之间的接口名称只是一个示例,具体实现中接口的名称可能为其他的名称,本申请实施例对此不作具体限定。例如,API调用实体与CCF网元之间通过CAPIF-1或CAPIF-1e接口相连。API调用实体与AEF网元之间通过CAPIF-2或CAPIF-2e接口相连。CCF网元与AEF网元之间通过CAPIF-3接口相连。CCF网元与APF网元之间通过CAPIF-4接口相连。CCF网元与APIMF网元之间通过CAPIF-5接口相连。其中,AEF网元之间可以通过CAPIF-2或CAPIF-2i接口相连(此处的“i”代表内部internal的含义),图2中未示出。It should be noted that the name of the interface between each network element in FIG. 2 is just an example, and the name of the interface in specific implementation may be other names, which are not specifically limited in this embodiment of the present application. For example, the API calling entity and the CCF network element are connected through the CAPIF-1 or CAPIF-1e interface. The API calling entity and the AEF network element are connected through the CAPIF-2 or CAPIF-2e interface. The CCF network element and the AEF network element are connected through the CAPIF-3 interface. The CCF network element and the APF network element are connected through the CAPIF-4 interface. The CCF network element and the APIMF network element are connected through the CAPIF-5 interface. Wherein, AEF network elements can be connected through CAPIF-2 or CAPIF-2i interfaces (“i” here represents the meaning of internal), which is not shown in FIG. 2 .
需要说明的是,图2中包括的各个网元(比如CCF、APF、AEF等)的名称也仅是一个示例,对网元本身的功能不构成限定。在5G网络以及未来其它的网络中,上述各个网元也可以是其他的名称,本申请实施例对此不作具体限定。例如,在6G网络中,上述各个网元中的部分或全部可以沿用5G中的术语,也可能采用其他名称,等等,在此进行统一说明,以下不再赘述。此外,应理解,上述各个网元之间的所传输的消息(或信令)的名称也仅仅是一个示例,对消息本身的功能不构成任何限定。It should be noted that the name of each network element (such as CCF, APF, AEF, etc.) included in FIG. 2 is only an example, and does not limit the function of the network element itself. In the 5G network and other future networks, the above-mentioned network elements may also have other names, which are not specifically limited in this embodiment of the present application. For example, in a 6G network, some or all of the above-mentioned network elements may use the terminology in 5G, and may also use other names, etc., which will be uniformly described here, and will not be repeated below. In addition, it should be understood that the names of the messages (or signaling) transmitted between the above network elements are only an example, and do not constitute any limitation on the functions of the messages themselves.
下面先结合上述系统架构200介绍一下与调用API相关的三个流程。In the following, three processes related to calling an API are first introduced in conjunction with the above-mentioned
1、API发布流程1. API release process
步骤一、APF向CCF发送API发布请求消息,该API发布请求消息中包括API的信息,具体可以包括API名称、提供该API的AEF信息(例如AEF标识、版本号、API所使用的协议、数据格式、接口描述(IP地址、端口号、安全方法)、API描述信息、API所支持的特性等。Step 1: APF sends an API release request message to CCF, and the API release request message includes API information, which may specifically include API name, AEF information that provides the API (such as AEF ID, version number, protocol used by the API, data Format, interface description (IP address, port number, security method), API description information, features supported by the API, etc.
步骤二、CCF从APF接收API发布请求消息,检查APF是否被授权发布API。若检查通过,CCF保存从APF接收到的上述API的信息。Step 2: The CCF receives the API publishing request message from the APF, and checks whether the APF is authorized to publish the API. If the check passes, the CCF saves the above API information received from the APF.
步骤三、CCF向APF返回API发布响应消息,该API发布响应消息用于指示API发布成功或者API发布失败。此外,CCF还可以向订阅的API调用实体发送通知消息,通知该API调用实体有新的API或者有该API调用实体感兴趣的API。Step 3: The CCF returns an API publishing response message to the APF, where the API publishing response message is used to indicate that the API publishing is successful or that the API publishing fails. In addition, the CCF can also send a notification message to the subscribed API calling entity to notify the API calling entity that there is a new API or an API that the API calling entity is interested in.
2、API发现流程2. API discovery process
在API调用实体已经登录并有了API调用实体的标识,且CCF已经配置了该API调用实体的发现策略的情况下,可以执行下列步骤:When the API calling entity has logged in and has the identity of the API calling entity, and the CCF has configured the discovery policy of the API calling entity, the following steps can be performed:
步骤一、API调用实体向CCF发送API发现请求消息,该API发现请求消息中包括了该API调用实体的标识以及发现过滤条件。Step 1: The API calling entity sends an API discovery request message to the CCF, where the API discovery request message includes the identifier of the API calling entity and the discovery filter condition.
步骤二、CCF从API调用实体接收API发现请求消息,并根据该API调用实体的标识认证该API调用实体的身份。若该API调用实体通过认证,则CCF根据上述发现过滤条件以及该API调用实体的策略信息,检索已经发布的API的信息。Step 2: The CCF receives the API discovery request message from the API calling entity, and authenticates the identity of the API calling entity according to the identity of the API calling entity. If the API calling entity passes the authentication, the CCF retrieves the published API information according to the above-mentioned discovery filter conditions and the policy information of the API calling entity.
步骤三、CCF向API调用实体发送API发现响应消息,该API响应消息中包括允许该API调用实体使用的API的信息。应理解,该API的信息可以是一个API的信息,或者,多个API的信息。Step 3: The CCF sends an API discovery response message to the API calling entity, where the API response message includes information about the API that the API calling entity is allowed to use. It should be understood that the information of the API may be information of one API, or information of multiple APIs.
3、API调用流程3. API call process
步骤一、API调用实体向AEF发送API调用请求消息,该API调用请求消息中包括API调用实体的标识和API的信息(例如API的标识)。Step 1: The API calling entity sends an API calling request message to the AEF, where the API calling request message includes the identifier of the API calling entity and the information of the API (for example, the identifier of the API).
步骤二、AEF从API调用实体接收API调用请求消息,并根据该API调用实体的标识认证该API调用实体的身份。若该API调用实体通过认证,则AEF执行相应的API逻辑。Step 2: The AEF receives the API calling request message from the API calling entity, and authenticates the identity of the API calling entity according to the identity of the API calling entity. If the API calling entity passes the authentication, AEF executes the corresponding API logic.
步骤三、AEF向API调用实体发送API调用响应消息。Step 3: AEF sends an API call response message to the API call entity.
应理解,若上述AEF即为真正提供上述API的AEF(可以理解为操作(handle)上述API的目的(destination)AEF),那么上述AEF对于上述API调用的逻辑即为:该AEF为该API调用实体提供该API。若上述AEF不是真正提供上述API的AEF,那么上述AEF对于上述API调用的逻辑即为:该AEF将API调用请求消息发送给真正提供上述API的AEF。这是由于在部署CAPIF时,CCF可以确定对API使用拓扑隐藏策略,即为该API选择一个拓扑隐藏的入口点AEF(一般称为边界AEF)。那么,在API调用实体调用该API时,该边界AEF可以确定真正提供该API的AEF,向该AEF发送API调用请求。It should be understood that if the above-mentioned AEF is the AEF that actually provides the above-mentioned API (which can be understood as the destination AEF for handling the above-mentioned API), then the logic of the above-mentioned AEF for the above-mentioned API call is: the AEF is the API call Entity provides this API. If the above-mentioned AEF is not an AEF that actually provides the above-mentioned API, the logic of the above-mentioned AEF for the above-mentioned API call is: the AEF sends an API call request message to the AEF that actually provides the above-mentioned API. This is because when CAPIF is deployed, the CCF can determine to use a topology hiding strategy for the API, that is, select a topology hiding entry point AEF (generally referred to as a boundary AEF) for the API. Then, when the API calling entity calls the API, the boundary AEF can determine the AEF that actually provides the API, and send an API calling request to the AEF.
具体地,在上述API发布流程中,APF向CCF发送API发布请求消息,CCF存储该API发布请求消息中包括的API的信息,并决定对该APF所请求发布的API应用拓扑隐藏策略。在这种情况下,CCF可以选择一个AEF作为该API的边界AEF。CCF向该边界AEF发送API拓扑隐藏通知消息,该API拓扑隐藏通知消息用于稍后可能存在的API调用请求的转发。API拓扑隐藏通知消息包括API的信息以及提供该API的AEF的信息。边界AEF从CCF接收上述拓扑隐藏通知消息,并保存其中的信息。CCF向APF发送API发布响应消息。应理解,该拓扑隐藏策略可以是对所有API调用实体均应用拓扑隐藏,也可以对部分API调用实体应用拓扑隐藏。Specifically, in the above API publishing process, the APF sends an API publishing request message to the CCF, and the CCF stores the API information included in the API publishing request message, and decides to apply the topology hiding policy to the API requested by the APF to publish. In this case, the CCF may select an AEF as the boundary AEF for this API. The CCF sends an API topology hiding notification message to the border AEF, where the API topology hiding notification message is used for forwarding the API call request that may exist later. The API topology hiding notification message includes the information of the API and the information of the AEF that provides the API. The border AEF receives the above topology concealment notification message from the CCF, and saves the information therein. The CCF sends an API publish response message to the APF. It should be understood that the topology hiding strategy may be applying topology hiding to all API calling entities, or applying topology hiding to some API calling entities.
由于应用了拓扑隐藏策略,CCF要将真正提供该API的AEF的信息改变为边界AEF的信息,并且,将对应修改其接口信息,在API发现流程中提供给API调用实体。此时,API调用实体得到的是边界AEF及其接口信息。该API调用实体只能向该边界AEF发送API调用请求。对于一个API仅由一个AEF提供的场景,边界AEF可以根据API的标识确定真正提供该API的AEF,直接向真正提供该API的AEF发送API调用请求。Due to the application of the topology hiding strategy, the CCF should change the information of the AEF that actually provides the API to the information of the boundary AEF, and correspondingly modify its interface information, and provide it to the API calling entity in the API discovery process. At this point, what the API calling entity gets is the boundary AEF and its interface information. The API calling entity can only send API calling requests to the boundary AEF. For a scenario in which an API is provided by only one AEF, the boundary AEF can determine the AEF that actually provides the API according to the identifier of the API, and directly sends an API call request to the AEF that actually provides the API.
而对于一个API可以由多个AEF提供(即多个AEF可以提供相同的API)的场景,边界AEF在API发布流程之后可以得到提供该API的多个AEF的信息。应理解,本申请所涉及的一个API或相同API是指API名称和/API功能相同的API。如果CCF对上述API不应用拓扑隐藏策略,那么API调用实体就可以获得提供该API的多个AEF的信息,那么该API调用实体自己可以决定要使用哪一个AEF及其接口信息。如果CCF对上述API应用了拓扑隐藏策略,那么API调用实体只能向该边界AEF发送API调用请求,但是边界AEF无法确定出应该向提供该API的多个AEF中的具体哪一个AEF发送API调用请求,导致API调用失败。For a scenario where an API can be provided by multiple AEFs (that is, multiple AEFs can provide the same API), the boundary AEF can obtain the information of multiple AEFs that provide the API after the API publishing process. It should be understood that an API or the same API referred to in this application refers to an API with the same API name and /API function. If the CCF does not apply the topology hiding policy to the above API, the API calling entity can obtain the information of multiple AEFs that provide the API, and the API calling entity can decide which AEF to use and its interface information. If the CCF applies the topology hiding policy to the above API, the API calling entity can only send the API call request to the border AEF, but the border AEF cannot determine which AEF should send the API call to among the multiple AEFs that provide the API. request, causing the API call to fail.
有鉴于此,本申请实施例提出了一种新的调用API的方法,在一个API由多个开放功能网元提供的场景中,通过结合API的路由信息以及该API的调用参数信息(例如,终端设备的标识和/或位置),能够确定出用于调用该API的目标AEF,从而由边界AEF向该目标AEF转发API调用请求,实现API调用。In view of this, an embodiment of the present application proposes a new method for invoking an API. In a scenario where an API is provided by multiple open function network elements, by combining the routing information of the API and the invocation parameter information of the API (for example, The identification and/or location of the terminal device) can determine the target AEF for calling the API, so that the border AEF forwards the API call request to the target AEF to implement the API call.
图3示出了本申请实施例的调用应用程序接口的方法300的示意性流程图。该方法300可以应用于图1所示的通信系统100,也可以应用于图2所示的通信系统200,但本申请实施例不限于此。FIG. 3 shows a schematic flowchart of a
S310,第一网元获取API的路由信息,所述路由信息用于指示调用所述API的路由,所述API由第一开放功能网元和第二开放功能网元提供。S310: The first network element obtains routing information of the API, where the routing information is used to indicate a route for calling the API, and the API is provided by the first open function network element and the second open function network element.
例如,所述API由多个开放功能网元提供。其中,多个开放功能网元包括第一开放功能网元和第二开放功能网元。For example, the API is provided by multiple open function network elements. The multiple open function network elements include a first open function network element and a second open function network element.
可选地,所述API的路由信息包括提供所述API的第一开放功能网元的信息和第二开放功能网元的信息、以及所述API对应的第一服务区域的信息和第二服务区域的信息,其中,所述第一开放功能网元提供的所述API对应所述第一服务区域,所述第二开放功能网元提供的所述API对应所述第二服务区域。Optionally, the routing information of the API includes the information of the first open function network element and the information of the second open function network element that provide the API, and the information of the first service area and the second service corresponding to the API. area information, wherein the API provided by the first open function network element corresponds to the first service area, and the API provided by the second open function network element corresponds to the second service area.
S320,所述第一网元获取所述API的调用参数信息(应用用户或应用客户端),所述调用参数信息用于操作所述API。S320, the first network element acquires call parameter information (application user or application client) of the API, where the call parameter information is used to operate the API.
上述操作(handle)API可以理解为根据API调用请求的详细信息对API对应的资源(resource)执行操作(operation)。下面以协议数据单元(protocol data unit,PDU)会话服务API为例进行说明。该API允许执行的操作(operation)包括创建(create)、更新(update)、释放(release)等,该API包含一个资源(resource),由统一资源定位符标识,例如可以为{cmcc.smfapi.com}/{PDU Session}/{v1}。调用参数信息可以包含该资源对应的对象,可以作为该API的所需的输入参数,如终端装备的标识,表示为上述标识的终端设备提供PDU会话服务。操作所述API的示例,例如为用户1创建PDU会话,则可以理解提供该API的AEF在该API的资源目录下为用户1新建一个会话,操作之后的resource目录被更新,可以为{cmcc.smfapi.com}/{PDU Session}/{v1}/{用户1}。The above-mentioned operation (handle) API can be understood as performing an operation (operation) on a resource (resource) corresponding to the API according to the detailed information of the API call request. The following description takes a protocol data unit (protocol data unit, PDU) session service API as an example for description. The operations allowed by this API include create, update, release, etc. The API contains a resource, which is identified by a uniform resource locator, such as {cmcc.smfapi. com}/{PDU Session}/{v1}. The calling parameter information may include the object corresponding to the resource, which may be used as a required input parameter of the API, such as the identifier of the terminal equipment, indicating that the terminal equipment identified above provides PDU session services. An example of operating the API, such as creating a PDU session for
可选地,所述调用参数信息包括终端设备的标识信息和/或所述终端设备的位置信息。Optionally, the invocation parameter information includes identification information of the terminal device and/or location information of the terminal device.
S330,所述第一网元根据所述路由信息以及所述调用参数信息,从所述第一开放功能网元和所述第二开放功能网元中确定目标开放功能网元。S330, the first network element determines a target open function network element from the first open function network element and the second open function network element according to the routing information and the invocation parameter information.
本申请实施例的调用应用程序接口的方法,在一个API由多个开放功能网元提供的场景中,通过结合API的路由信息以及该API的调用参数信息,能够从该多个开放功能网元中确定出用于调用该API的一个目标开放功能网元,从而由边界开放功能网元向该目标开放功能网元转发API调用请求,实现API调用成功。In the method for calling an application program interface according to the embodiment of the present application, in a scenario where an API is provided by multiple open function network elements, by combining the routing information of the API and the calling parameter information of the API, the multiple open function network elements can be accessed from the multiple open function network elements. A target open function network element for invoking the API is determined in the process, so that the border open function network element forwards the API call request to the target open function network element, so that the API call is successful.
在本实施例中,第一网元可以是核心功能网元、发布功能网元、或者开放功能网元(即为能够接收到API调用实体的API调用请求的边界开放功能网元),本申请实施例对此不作限定。In this embodiment, the first network element may be a core function network element, a publishing function network element, or an open function network element (that is, a border open function network element that can receive an API call request from an API calling entity). The embodiment does not limit this.
上述从第一开放功能网元和第二开放功能网元中确定目标开放功能网元,是指所确定的目标开放功能网元为第一开放功能网元和第二开放功能网元中的一个。换句话说,该目标开放功能网元为第一开放功能网元或第二开放功能网元。The above determination of the target open function network element from the first open function network element and the second open function network element means that the determined target open function network element is one of the first open function network element and the second open function network element . In other words, the target open function network element is the first open function network element or the second open function network element.
具体而言,一个API由多个开放功能网元提供,在该多个开放功能网元中,不同的开放功能网元提供的API可以对应不同的服务区域。换句话说,该API对应的多个服务区域与该多个开放功能网元之间存在对应关系。为便于理解和描述,本实施例以提供API的多个开放功能网元包括第一开放功能网元和第二开放功能网元,该API对应的多个服务区域包括第一服务区域和第二服务区域为例进行说明。可以理解的是,本申请所提及的API均指同一个API,后续不再赘述。其中,第一开放功能网元提供的API对应第一服务区域,第二开放功能网元提供的API对应第二服务区域。Specifically, one API is provided by multiple open function network elements, and among the multiple open function network elements, APIs provided by different open function network elements may correspond to different service areas. In other words, there is a correspondence between the multiple service areas corresponding to the API and the multiple open function network elements. For ease of understanding and description, in this embodiment, the multiple open function network elements that provide the API include a first open function network element and a second open function network element, and the multiple service areas corresponding to the API include the first service area and the second open function network element. The service area is used as an example. It can be understood that the APIs mentioned in this application all refer to the same API, which will not be repeated in the following. The API provided by the first open function network element corresponds to the first service area, and the API provided by the second open function network element corresponds to the second service area.
其中,服务区域表示该开放功能网上提供的该API的服务范围。示例性地,若服务区域使用域名表示,如cmcc.beijing.com,则表示该API可以为该区域范围内的用户(终端设备或应用客户端)提供服务。示例性地,若服务区域使用IP地址段表示,如10.11.1.0~10.11.1.255,则表示API可以为IP地址在该地址范围内的用户(终端设备或应用客户端)提供服务。示例性地,若服务区域使用IP地址前缀表示,则表示API可以为具有该IP地址前缀的用户(终端设备或应用客户端)提供服务。示例性地,若服务区域使用位置区域(area)信息表示,则表示API可以为当前位置在该区域内的用户(终端设备或应用客户端)提供服务。The service area represents the service scope of the API provided on the open function network. Exemplarily, if the service area is represented by a domain name, such as cmcc.beijing.com, it means that the API can provide services for users (terminal devices or application clients) within the area. Exemplarily, if the service area is represented by an IP address segment, such as 10.11.1.0 to 10.11.1.255, it means that the API can provide services for users (terminal devices or application clients) whose IP addresses are within this address range. Exemplarily, if the service area is represented by an IP address prefix, it means that the API can provide services for users (terminal devices or application clients) with the IP address prefix. Exemplarily, if the service area is represented by location area (area) information, it means that the API can provide services for users (terminal devices or application clients) whose current location is in the area.
此外,开放功能网元提供该API可以理解为该开放功能网元操作(handle)该API,例如,该开放功能网元具体可以对对该API对应的资源(resource)进行创建、修改、删除、查询等操作。提供该API的开放功能网元的信息可以为该API的接口(interface)信息,该API的接口信息具有可以包含该开放功能网元的IP地址和/或端口号信息、API资源的统一资源标识符(unified resource identifier,URI)等。In addition, the provision of the API by the open function network element can be understood as the open function network element handling the API, for example, the open function network element can specifically create, modify, delete, query, etc. The information of the open function network element that provides the API can be the interface information of the API, and the interface information of the API has the IP address and/or port number information of the open function network element, and the uniform resource identifier of the API resource. identifier (unified resource identifier, URI), etc.
那么,第一网元可以获取到提供该API的开放功能网元的信息及其对应的API的服务区域的信息,再结合该API的调用参数信息(例如,终端设备(签约用户、应用用户、应用客户端)的标识信息和/或位置信息),即可从第一开放功能网元和第二开放功能网元中,确定出在该终端设备对应的区域中能够真正提供该API的目标开放功能网元。Then, the first network element can obtain the information of the open function network element that provides the API and the information about the service area of the corresponding API, and then combine the call parameter information of the API (for example, terminal equipment (subscriber, application user, application client) identification information and/or location information), you can determine from the first open function network element and the second open function network element the target openness that can truly provide the API in the area corresponding to the terminal device functional network element.
示例性地,以终端设备为例进行说明,该终端设备的标识信息可以是终端设备的ID,如3GPP签约用户标识或设备标识,或者该终端设备的IP地址;该终端设备的位置信息可以是该终端设备的IP地址,或者该终端设备所在的区域(area)信息,或者该终端设备的当前位置信息。应理解,上述终端设备为该API对应的终端设备,即API调用实体调用该API就是为了该终端设备服务,或者说,该API是API调用实体为了这个终端设备调用的,或者说,该终端设备是该API调用的操作的对象,例如,API调用实体调用该API获取该终端设备的信息。Exemplarily, taking a terminal device as an example, the identification information of the terminal device may be the ID of the terminal device, such as a 3GPP subscriber identification or device identification, or the IP address of the terminal device; the location information of the terminal device may be The IP address of the terminal device, or the area information where the terminal device is located, or the current location information of the terminal device. It should be understood that the above-mentioned terminal device is the terminal device corresponding to the API, that is, the API calling entity calls the API to serve the terminal device, or the API is called by the API calling entity for the terminal device, or the terminal device It is the object of the operation of the API call, for example, the API calling entity calls the API to obtain the information of the terminal device.
作为一个可选的实施例,所述第一网元为核心功能网元,所述第一网元获取所述API的调用参数信息,包括:所述第一网元从边界开放功能网元接收所述API的调用参数信息;所述方法还包括:所述第一网元向所述边界开放功能网元发送所述目标开放功能网元的信息。As an optional embodiment, the first network element is a core function network element, and acquiring the calling parameter information of the API by the first network element includes: the first network element receives from the border opening function network element Call parameter information of the API; and the method further includes: the first network element sending the information of the target open function network element to the border open function network element.
具体地,上述第一网元为核心功能网元,该核心功能网元可以从边界开放功能网元接收该API的调用参数信息。进一步地,在根据API的路由信息和调用参数信息确定出目标开放功能网元之后,该核心功能网元可以向边界开放功能网元发送该目标开放功能网元的信息,以便该目标开放功能网元将来自API调用实体的API调用请求发送给该目标开放功能网元。Specifically, the above-mentioned first network element is a core function network element, and the core function network element can receive the calling parameter information of the API from the border opening function network element. Further, after determining the target open function network element according to the routing information and calling parameter information of the API, the core function network element can send the information of the target open function network element to the border open function network element, so that the target open function network element can be The element sends the API calling request from the API calling entity to the target open function network element.
示例性地,上述边界开放功能网元可以通过API调用路由请求消息(service APIinvocation routing request),或获取拓扑隐藏策略请求消息(obtain topology hidingpolicy request),或其他边界AEF向CCF发送的消息,将上述调用参数信息发送给核心功能网元,本申请实施例对具体消息名称不做限定。示例性地,上述核心功能网元可以通过API调用路由响应消息(service API invocation routing response)、或获取拓扑隐藏策略响应消息(obtain topology hiding policy response)、或API拓扑隐藏通知消息(APItopology hiding notify)、或其他CCF向边界AEF发送的消息,将上述目标开放功能网元的信息反馈给边界开放功能网元,本申请实施例对具体消息名称不做限定。Exemplarily, the above-mentioned border opening function network element may call a routing request message (service API invocation routing request) through an API, or obtain a topology hiding policy request message (obtain topology hiding policy request), or other messages sent by the border AEF to the CCF. The calling parameter information is sent to the core function network element, and the specific message name is not limited in this embodiment of the present application. Exemplarily, the above-mentioned core function network element may call a routing response message (service API invocation routing response), or obtain a topology hiding policy response message (obtain topology hiding policy response), or an API topology hiding notification message (APItopology hiding notify) through an API. , or other messages sent by the CCF to the border AEF, to feed back the information of the above-mentioned target open function network element to the border open function network element, and the specific message name is not limited in this embodiment of the present application.
作为一个可选的实施例,所述第一网元为核心功能网元,所述第一网元获取API的路由信息,包括:所述第一网元从发布功能网元接收所述API的路由信息。即核心功能网元可以从发布功能网元接收上述API的路由信息。As an optional embodiment, the first network element is a core function network element, and the first network element acquiring the routing information of the API includes: the first network element receiving the API's routing information from the publishing function network element routing information. That is, the core function network element may receive the routing information of the above API from the publishing function network element.
作为一个可选的实施例,所述第一网元为核心功能网元,所述第一网元获取API的路由信息,可以是该第一网元从本地预配置的AEF信息中确定上述API的路由信息。As an optional embodiment, the first network element is a core function network element, and the first network element obtains the routing information of the API, which may be determined by the first network element from locally preconfigured AEF information. routing information.
作为另一个可选的实施例,上述第一网元为发布功能网元,该发布功能网元可以从发布功能网元本地获取该API的路由信息。本申请实施例对此不作限定。As another optional embodiment, the above-mentioned first network element is a publishing function network element, and the publishing function network element can locally obtain the routing information of the API from the publishing function network element. This embodiment of the present application does not limit this.
作为一个可选的实施例,所述第一网元为核心功能网元,所述方法还包括:所述第一网元从发布功能网元接收所述第一开放功能网元的信息和所述第二开放功能网元的信息、以及所述API对应的第一服务区域的信息和所述第二服务区域的信息,其中,所述第一开放功能网元提供的所述API对应所述第一服务区域,所述第二开放功能网元提供的所述API对应所述第二服务区域;所述第一网元获取API的路由信息,包括:所述第一网元根据所述第一开放功能网元的信息和所述第二开放功能网元的信息、以及所述第一服务区域的信息和所述第二服务区域的信息,生成所述API的路由信息。As an optional embodiment, the first network element is a core function network element, and the method further includes: receiving, by the first network element, the information of the first open function network element and the information of the first open function network element from the publishing function network element. the information of the second open function network element, the information of the first service area corresponding to the API, and the information of the second service area, wherein the API provided by the first open function network element corresponds to the The first service area, the API provided by the second open function network element corresponds to the second service area; the first network element acquiring the routing information of the API includes: the first network element according to the first network element. The routing information of the API is generated by the information of an open function network element and the information of the second open function network element, as well as the information of the first service area and the information of the second service area.
具体地,上述第一网元为核心功能网元,该第一网元可以根据接收到的第一开放功能网元的信息、第二开放功能网元的信息、第一服务区域的信息、以及第二服务区域的信息(本文统称为API信息),生成上述API的路由信息。Specifically, the above-mentioned first network element is a core function network element, and the first network element can be based on the received information of the first open function network element, information of the second open function network element, information of the first service area, and The information of the second service area (herein collectively referred to as API information) generates the routing information of the above-mentioned API.
可选地,该路由信息可以表示第一服务区域与第一开放功能网元之间的对应关系,以及第二服务区域与第二开放功能网元之间的对应关系。Optionally, the routing information may indicate the correspondence between the first service area and the first open function network element, and the correspondence between the second service area and the second open function network element.
上述API的路由信息在本申请实施例中还可以被称为“API的调用路由规则”,本申请对其名称不作限定。应理解,该调用路由规则具体可以通过表格或公式等形式体现,本申请对其具体表现形式不作限定。The routing information of the above API may also be referred to as "API calling routing rules" in this embodiment of the present application, and the present application does not limit its name. It should be understood that the invocation routing rule can be specifically embodied in the form of a table or a formula, and the specific expression form thereof is not limited in this application.
作为一个可选的实施例,所述第一网元为边界开放功能网元,所述第一网元获取API的路由信息,包括:所述第一网元从核心功能网元或发布功能网元接收所述API的路由信息。As an optional embodiment, the first network element is a border opening function network element, and the first network element obtains the routing information of the API, including: the first network element obtains the API from the core function network element or the publishing function network element. Meta receives routing information for the API.
具体地,上述第一网元为边界开放功能网元,那么该边界开放功能网元可以从核心功能网元或者发布功能网元接收上述API的路由信息。示例性地,若边界开放功能网元与发布功能网元之间有接口,那么该发布功能网元可以直接将API的路由信息通过该接口发送给边界开放功能网元。示例性地,若边界开放功能网元与发布功能网元之间没有接口,那么该发布功能网元可以将API的路由信息发送给核心功能网元,再由核心功能网元将API的路由信息发送给边界开放功能网元。Specifically, if the first network element is a border opening function network element, the border opening function network element may receive the routing information of the API from the core function network element or the publishing function network element. Exemplarily, if there is an interface between the border opening function network element and the publishing function network element, the publishing function network element can directly send the routing information of the API to the border opening function network element through the interface. Exemplarily, if there is no interface between the border opening function network element and the publishing function network element, the publishing function network element can send the API routing information to the core function network element, and then the core function network element sends the API routing information. It is sent to the network element of the border opening function.
作为一个可选的实施例,所述第一网元为边界开放功能网元,所述方法还包括:所述第一网元发送请求消息,所述请求消息用于请求所述API的路由信息,所述请求消息包括所述API的标识信息。As an optional embodiment, the first network element is a border opening function network element, and the method further includes: sending, by the first network element, a request message, where the request message is used to request routing information of the API , the request message includes the identification information of the API.
具体地,上述第一网元为边界开放功能网元,该边界开放功能网元还可以向核心功能网元或发布功能网元发送请求消息,用于请求上述API的路由信息。由于路由信息是针对特定API的,因此该请求消息中还可以包括所请求的API的标识信息。例如,边界开放功能网元是在接收到来自API调用实体的API调用请求之后,向核心功能网元或发布功能网元发送上述请求消息,该请求消息所请求的路由信息对应的API即为该API调用请求所请求调用的API。其中,该请求消息可以是API调用路由请求消息(service API invocation routingrequest),或获取拓扑隐藏策略请求消息(obtain topology hiding policy request),或其他边界AEF向CCF发送的消息,本申请实施例不做限定。Specifically, the first network element is a border opening function network element, and the border opening function network element may also send a request message to the core function network element or the publishing function network element for requesting the routing information of the API. Since the routing information is for a specific API, the request message may also include identification information of the requested API. For example, after receiving the API call request from the API calling entity, the border opening function network element sends the above request message to the core function network element or the publishing function network element, and the API corresponding to the routing information requested by the request message is the API. The API call requests the API to be called. Wherein, the request message may be an API invocation routing request message (service API invocation routing request), or an obtain topology hiding policy request message (obtain topology hiding policy request), or other messages sent by the border AEF to the CCF, which is not done in the embodiment of the present application. limited.
在本申请实施例中,边界开放功能网元接收到API调用请求,并向核心功能网元请求路由信息,避免了在边界开放功能网元不需要使用该路由信息时核心功能网元主动向边界开放功能网元发送该路由信息,从而节省了信令。In the embodiment of the present application, the network element with the open border function receives the API call request, and requests routing information from the network element with the core function, which prevents the network element with the open border function from actively sending the routing information to the border when the network element with the open border function does not need to use the routing information. The open-function network element sends the routing information, thereby saving signaling.
图4示出了本申请实施例的调用应用程序接口的方法400的示意性流程图。该方法400可以应用于图1所示的系统架构100,也可以应用于图2所示的应用场景200,本申请实施例不限于此。FIG. 4 shows a schematic flowchart of a method 400 for invoking an application program interface according to an embodiment of the present application. The method 400 may be applied to the
S410,第二网元获取API的路由信息,所述路由信息用于指示调用所述API的路由,所述API由第一开放功能网元和第二开放功能网元提供。S410: The second network element obtains routing information of the API, where the routing information is used to indicate a route for calling the API, and the API is provided by the first open function network element and the second open function network element.
例如,所述API由多个开放功能网元提供。其中,多个开放功能网元包括第一开放功能网元和第二开放功能网元。For example, the API is provided by multiple open function network elements. The multiple open function network elements include a first open function network element and a second open function network element.
可选地,所述路由信息包括所述第一开放功能网元的信息和所述第二开放功能网元的信息、以及所述API对应的第一服务区域的信息和第二服务区域的信息,其中,所述第一开放功能网元提供的所述API对应所述第一服务区域,所述第二开放功能网元提供的所述API对应所述第二服务区域。Optionally, the routing information includes information of the first open function network element and information of the second open function network element, and information of the first service area and information of the second service area corresponding to the API , wherein the API provided by the first open function network element corresponds to the first service area, and the API provided by the second open function network element corresponds to the second service area.
S420,所述第二网元向边界开放功能网元发送所述路由信息,所述路由信息用于所述边界开放功能网元确定目标开放功能网元,所述目标开放功能网元是从所述第一开放功能网元和所述第二开放功能网元中确定的。S420, the second network element sends the routing information to the border opening function network element, where the routing information is used by the border opening function network element to determine a target open function network element, and the target open function network element is obtained from the determined from the first open function network element and the second open function network element.
对应地,边界开放功能网元从第二网元接收上述API的路由信息,根据该路由信息以及调用参数信息,从第一开放功能网元和第二开放功能网元中确定目标开放功能网元。Correspondingly, the border open function network element receives the routing information of the API from the second network element, and determines the target open function network element from the first open function network element and the second open function network element according to the routing information and the calling parameter information. .
S430,边界开放功能网元获取所述API的调用参数信息,所述调用参数信息用于操作所述API。S430, the network element of the border opening function acquires the calling parameter information of the API, where the calling parameter information is used to operate the API.
上述操作(handle)API可以理解为根据API调用请求的详细信息对API对应的资源(resource)执行操作(operation)。下面以协议数据单元(protocol data unit,PDU)会话服务API为例进行说明。该API允许执行的操作(operation)包括创建(create)、更新(update)、释放(release)等,该API包含一个资源(resource),由统一资源定位符标识,例如可以为{cmcc.smfapi.com}/{PDU Session}/{v1}。调用参数信息可以包含该资源对应的对象,可以作为该API的所需的输入参数,如终端装备的标识,表示为上述标识的终端设备提供PDU会话服务。操作所述API的示例,例如为用户1创建PDU会话,则可以理解提供该API的AEF在该API的资源目录下为用户1新建一个会话,操作之后的resource目录被更新,可以为{cmcc.smfapi.com}/{PDU Session}/{v1}/{用户1}。The above-mentioned operation (handle) API can be understood as performing an operation (operation) on a resource (resource) corresponding to the API according to the detailed information of the API call request. The following description takes a protocol data unit (protocol data unit, PDU) session service API as an example for description. The operations allowed by this API include create, update, release, etc. The API contains a resource, which is identified by a uniform resource locator, such as {cmcc.smfapi. com}/{PDU Session}/{v1}. The calling parameter information may include the object corresponding to the resource, which may be used as a required input parameter of the API, such as the identification of the terminal equipment, indicating that the terminal equipment with the above identification provides a PDU session service. An example of operating the API, such as creating a PDU session for
可选地,所述调用参数信息包括终端设备(或签约用户、或应用用户、或应用客户端)的标识信息和/或所述终端设备(或签约用户、或应用用户、或应用客户端)的位置信息。Optionally, the invocation parameter information includes identification information of the terminal device (or subscriber, or application user, or application client) and/or the terminal device (or subscriber, or application user, or application client) location information.
S440,所述边界开放功能网元根据所述路由信息以及所述调用参数信息,从所述第一开放功能网元和所述第二开放功能网元中确定目标开放功能网元。S440, the border opening function network element determines a target open function network element from the first open function network element and the second open function network element according to the routing information and the invocation parameter information.
本申请实施例的调用应用程序接口的方法,在一个API由多个开放功能网元提供的场景中,通过向边界开放功能网元发送API的路由信息,使得边界开放功能网元可以结合该API的调用参数信息,从上述多个开放功能网元中确定出用于调用该API的目标AEF,从而由边界AEF向该目标AEF转发API调用请求,实现API调用。In the method for invoking an application program interface according to the embodiment of the present application, in a scenario where an API is provided by multiple open function network elements, by sending the routing information of the API to the border open function network element, the border open function network element can combine the API The calling parameter information, the target AEF for calling the API is determined from the above-mentioned multiple open function network elements, so that the border AEF forwards the API calling request to the target AEF to implement the API calling.
在本实施例中,第二网元可以是核心功能网元、或者发布功能网元。In this embodiment, the second network element may be a core function network element or a release function network element.
上述从第一开放功能网元和第二开放功能网元中确定目标开放功能网元,是指所确定的目标开放功能网元为第一开放功能网元和第二开放功能网元中的一个。换句话说,该目标开放功能网元为第一开放功能网元或第二开放功能网元。The above determination of the target open function network element from the first open function network element and the second open function network element means that the determined target open function network element is one of the first open function network element and the second open function network element . In other words, the target open function network element is the first open function network element or the second open function network element.
具体而言,一个API由多个开放功能网元提供,在该多个开放功能网元中,不同的开放功能网元提供的API对应不同的服务区域。换句话说,该API对应的多个服务区域与该多个开放功能网元之间存在对应关系。为便于理解和描述,本实施例以提供API的多个开放功能网元包括第一开放功能网元和第二开放功能网元,该API对应的多个服务区域包括第一服务区域和第二服务区域为例进行说明。可以理解的是,本申请所提及的API均指同一个API,后续不再赘述。其中,第一开放功能网元提供的API对应第一服务区域,第二开放功能网元提供的API对应第二服务区域。Specifically, one API is provided by multiple open function network elements, and among the multiple open function network elements, APIs provided by different open function network elements correspond to different service areas. In other words, there is a correspondence between the multiple service areas corresponding to the API and the multiple open function network elements. For ease of understanding and description, the multiple open function network elements that provide the API in this embodiment include a first open function network element and a second open function network element, and the multiple service areas corresponding to the API include a first service area and a second open function network element. The service area is used as an example. It can be understood that the APIs mentioned in this application all refer to the same API, which will not be repeated in the following. The API provided by the first open function network element corresponds to the first service area, and the API provided by the second open function network element corresponds to the second service area.
其中,服务区域表示该开放功能网上提供的该API的服务范围。示例性地,若服务区域使用域名表示,如cmcc.beijing.com,则表示该API可以为该区域范围内的用户(终端设备或应用客户端)提供服务。示例性地,若服务区域使用IP地址段表示,如10.11.1.0~10.11.1.255,则表示API可以为IP地址在该地址范围内的用户(终端设备或应用客户端)提供服务。示例性地,若服务区域使用IP地址前缀表示,则表示API可以为具有该IP地址前缀的用户(终端设备或应用客户端)提供服务。示例性地,若服务区域使用位置区域(area)信息表示,则表示API可以为当前位置在该区域内的用户(终端设备或应用客户端)提供服务。The service area represents the service scope of the API provided on the open function network. Exemplarily, if the service area is represented by a domain name, such as cmcc.beijing.com, it means that the API can provide services for users (terminal devices or application clients) within the area. Exemplarily, if the service area is represented by an IP address segment, such as 10.11.1.0 to 10.11.1.255, it means that the API can provide services for users (terminal devices or application clients) whose IP addresses are within this address range. Exemplarily, if the service area is represented by an IP address prefix, it means that the API can provide services for users (terminal devices or application clients) with the IP address prefix. Exemplarily, if the service area is represented by location area (area) information, it means that the API can provide services for users (terminal devices or application clients) whose current location is in the area.
此外,开放功能网元提供该API可以理解为该开放功能网元操作(handle)该API,例如,该开放功能网元具体可以对对该API对应的资源(resource)进行创建、修改、删除、查询等操作。提供该API的开放功能网元的信息可以为该API的接口(interface)信息,该API的接口信息具有可以包含该开放功能网元的IP地址和/或端口号信息、API资源的统一资源标识符(unified resource identifier,URI)等。In addition, the provision of the API by the open function network element can be understood as the open function network element handling the API, for example, the open function network element can specifically create, modify, delete, query, etc. The information of the open function network element that provides the API can be the interface information of the API, and the interface information of the API has the IP address and/or port number information of the open function network element, and the uniform resource identifier of the API resource. identifier (unified resource identifier, URI), etc.
那么,第二网元可以获取API的路由信息,示例性地,该路由信息可以包括提供该API的开放功能网元的信息及其对应的API的服务区域的信息。第二网元将该API的路由信息发送给边界开放功能网元,由该边界开放功能网元根据该API的路由信息,再结合该API的调用参数信息(例如,终端设备(签约用户、应用用户、应用客户端)的标识信息和/或位置信息),从第一边界开放功能网元和第二边界开放功能网元中确定出在该终端设备对应的区域中能够真正提供该API的目标开放功能网元。边界开放功能网元对目标开放功能网元的具体确定方法可参见方法300,此处不再赘述。Then, the second network element may obtain the routing information of the API, for example, the routing information may include the information of the network element providing the open function of the API and the information of the corresponding service area of the API. The second network element sends the API's routing information to the border opening function network element, and the border opening function network element combines the API's routing information and the API's calling parameter information (for example, terminal equipment (subscriber, application) according to the API's routing information. User, application client) identification information and/or location information), determine from the first border opening function network element and the second border opening function network element the target that can actually provide the API in the area corresponding to the terminal device Open functional network elements. For a specific method for determining the target open function network element by the border opening function network element, reference may be made to the
示例性地,以终端设备为例进行说明,该终端设备的标识信息可以是终端设备的ID,或者该终端设备的IP地址;该终端设备的位置信息可以是该终端设备的IP地址,或者该终端设备所在的区域(area)信息,或者该终端设备的当前位置信息。应理解,上述终端设备为该API对应的终端设备,即API调用实体调用该API就是为了该终端设备服务,或者说,该API是API调用实体为了这个终端设备调用的,例如,API调用实体调用该API获取该终端设备的信息。Exemplarily, taking a terminal device as an example, the identification information of the terminal device may be the ID of the terminal device, or the IP address of the terminal device; the location information of the terminal device may be the IP address of the terminal device, or the terminal device. Information about the area where the terminal device is located, or the current location information of the terminal device. It should be understood that the above-mentioned terminal device is the terminal device corresponding to the API, that is, the API calling entity calls the API to serve the terminal device, or in other words, the API is called by the API calling entity for the terminal device, for example, the API calling entity calls This API obtains the information of the terminal device.
作为一个可选的实施例,所述第二网元为核心功能网元,所述方法还包括:所述第二网元从发布功能网元接收所述第一开放功能网元的信息和所述第二开放功能网元的信息、以及所述第一服务区域的信息和所述第二服务区域的信息,其中,所述第一开放功能网元提供的所述API对应所述第一服务区域,所述第二开放功能网元提供的所述API对应所述第二服务区域;所述第二网元获取API的路由信息,包括:所述第二网元根据所述第一开放功能网元的信息和所述第二开放功能网元的信息、以及所述第一服务区域的信息和所述第二服务区域的信息,生成所述API的路由信息。As an optional embodiment, the second network element is a core function network element, and the method further includes: the second network element receiving the information of the first open function network element and the information of the first open function network element from the publishing function network element. information of the second open function network element, information of the first service area and information of the second service area, wherein the API provided by the first open function network element corresponds to the first service area, the API provided by the second open function network element corresponds to the second service area; the second network element obtaining the routing information of the API includes: the second network element according to the first open function The routing information of the API is generated from the information of the network element and the information of the second open function network element, as well as the information of the first service area and the information of the second service area.
可选地,所述路由信息具体可以表示所述第一服务区域与所述第一开放功能网元之间的对应关系,以及所述第二服务区域与所述第二开放功能网元之间的对应关系。Optionally, the routing information may specifically represent the correspondence between the first service area and the first open function network element, and the relationship between the second service area and the second open function network element. corresponding relationship.
具体地,上述第二网元(核心功能网元)可以根据接收到的第一开放功能网元的信息、第二开放功能网元的信息、第一服务区域的信息、以及第二服务区域的信息(本文统称为API信息),生成该API的路由信息。在这种情况下,该第二网元可以向边界开放功能网元发送该API的路由信息,使得边界开放功能网元可以根据API的路由信息和调用参数信息,确定目标开放功能网元。Specifically, the above-mentioned second network element (core function network element) may be based on the received information of the first open function network element, information of the second open function network element, information of the first service area, and information of the second service area. information (herein collectively referred to as API information) to generate routing information for the API. In this case, the second network element can send the API routing information to the border opening function network element, so that the border opening function network element can determine the target open function network element according to the API routing information and calling parameter information.
作为一个可选的实施例,在所述第二网元向所述边界开放功能网元发送所述路由信息之前,所述方法还包括:所述第二网元从所述边界开放功能网元接收请求消息,所述请求消息用于请求所述路由信息,所述请求消息包括所述API的标识信息;所述第二网元向所述边界开放功能网元发送所述路由信息,包括:所述第二网元根据所述请求消息,向所述边界开放功能网元发送所述路由信息。As an optional embodiment, before the second network element sends the routing information to the border opening function network element, the method further includes: the second network element opens the border opening function network element from the border opening function network element. Receive a request message, where the request message is used to request the routing information, and the request message includes the identification information of the API; the second network element sends the routing information to the border opening function network element, including: The second network element sends the routing information to the border opening function network element according to the request message.
具体地,上述边界开放功能网元还可以向第二网元(即核心功能网元或者发布功能网元)发送请求消息,用于请求上述API的路由信息。由于路由信息是针对特定API的,因此该请求消息中还可以包括所请求的API的标识信息。一般情况下,边界开放功能网元是在接收到来自API调用实体的API调用请求之后,向核心功能网元或发布功能网元发送上述请求消息,该请求消息所请求的路由信息对应的API即为该API调用请求所请求调用的API。其中,该请求消息可以是API调用路由请求消息(service API invocation routingrequest),或获取拓扑隐藏策略请求消息(obtain topology hiding policy request),或其他边界AEF向CCF发送的消息,本申请实施例不做限定。Specifically, the above-mentioned boundary opening function network element may also send a request message to the second network element (ie, the core function network element or the publishing function network element), for requesting the routing information of the above-mentioned API. Since the routing information is for a specific API, the request message may also include identification information of the requested API. In general, after receiving the API call request from the API calling entity, the network element with the open border function sends the above request message to the core function network element or the publishing function network element. The API corresponding to the routing information requested by the request message is the The API that was requested to be called for this API call request. Wherein, the request message may be an API invocation routing request message (service API invocation routing request), or an obtain topology hiding policy request message (obtain topology hiding policy request), or other messages sent by the border AEF to the CCF, which is not done in the embodiment of the present application. limited.
上述方法的具体实施例可参见图5至图10以及相应的文字描述,此处不再赘述。For specific embodiments of the above method, reference may be made to FIG. 5 to FIG. 10 and the corresponding text descriptions, which will not be repeated here.
为便于理解,下面以核心功能网元为CCF、发布功能网元为APF、开放功能网元为AEF为例,结合图5至图10对本申请实施例进行详细说明。For ease of understanding, the embodiments of the present application are described in detail below with reference to FIGS. 5 to 10 , taking the core function network element as the CCF, the publishing function network element as the APF, and the open function network element as the AEF as an example.
图5示出了本申请实施例的调用应用程序接口的方法500的示意性流程图。该方法500可以应用于图1所示的系统架构100,也可以应用于图2所示的应用场景200,本申请实施例不限于此。在本实施例中,API信息相当于上述API的路由信息。FIG. 5 shows a schematic flowchart of a method 500 for invoking an application program interface according to an embodiment of the present application. The method 500 may be applied to the
在S501中,APF与CCF执行API发布流程。In S501, the APF and the CCF execute the API publishing process.
具体地,APF向CCF发送API发布请求,该API发布请求中包括API信息。该API信息包括API名称和提供该API的AEF信息,AEF信息中包含该API的接口信息,例如,IP地址、端口号、或者统一资源标识符(uniform resource identifier,URI)等,该AEF信息还包括该API对应的服务区域(API serving area)信息,服务区域信息可以是IP地址段、IP地址前缀、地理或行政区域、或者域名等信息。CCF接收APF发送的API发布请求,根据接收到的API信息,确定对该API信息对应的API应用拓扑隐藏策略。应理解,该拓扑隐藏策略可以是对所有API调用实体均应用拓扑隐藏,也可以对部分API调用实体应用拓扑隐藏。CCF确定边界AEF。Specifically, the APF sends an API release request to the CCF, where the API release request includes API information. The API information includes the API name and the AEF information that provides the API. The AEF information includes interface information of the API, such as IP address, port number, or uniform resource identifier (URI), etc. The AEF information also includes Including the API serving area (API serving area) information corresponding to the API, the serving area information may be information such as an IP address segment, an IP address prefix, a geographic or administrative area, or a domain name. The CCF receives the API release request sent by the APF, and according to the received API information, determines the API application topology hiding policy corresponding to the API information. It should be understood that the topology hiding strategy may be applying topology hiding to all API calling entities, or applying topology hiding to some API calling entities. The CCF determines the boundary AEF.
在S502中,CCF确定API的调用路由规则,该API为应用了上述拓扑隐藏策略的API。In S502, the CCF determines the calling routing rule of the API, where the API is an API to which the above topology hiding policy is applied.
具体地,CCF可以根据API信息,生成用于边界AEF确定目标AEF的调用路由规则。例如,CCF可以根据API信息中的对应的服务区域信息(如IP地址段、地理或行政区域、或者域名),确定该API的调用路由规则。进一步地,该调用路由规则可以表示多个服务区域和多个AEF之间的映射关系,也可以直接表示多个IP地址段或域名与多个AEF之间的映射关系。Specifically, the CCF may generate a call routing rule for the border AEF to determine the target AEF according to the API information. For example, the CCF may determine the calling routing rule of the API according to the corresponding service area information (such as IP address segment, geographic or administrative area, or domain name) in the API information. Further, the call routing rule may represent the mapping relationship between multiple service areas and multiple AEFs, or may directly represent the mapping relationship between multiple IP address segments or domain names and multiple AEFs.
在S503中,CCF向边界AEF发送该API的调用路由规则;则对应地,该边界AEF从CCF接收API的调用路由规则。In S503, the CCF sends the call routing rule of the API to the border AEF; correspondingly, the border AEF receives the call routing rule of the API from the CCF.
在S504中,API调用实体与CCF执行API发现流程。In S504, the API calling entity and the CCF execute the API discovery process.
在S505中,API调用实体向边界AEF发送API调用请求,该API调用请求中可以包括API的信息(如该API对应的资源(resource)的地址(URI)、或API的标识信息)以及调用参数信息。该调用参数信息具体可以为终端设备IP、区域信息、位置信息等。其中,终端设备IP表示终端设备的IP地址,可以是IPv4或IPv6;区域信息表示该API应用的区域信息,该区域信息可以是网络区域描述信息,例如小区标识、追踪区(tracing area,TA)标识、兴趣区域标识等,也可以是物理区域描述信息。位置信息可以表示该API应用的位置的信息,具体的可以是该终端设备的位置信息。In S505, the API calling entity sends an API calling request to the border AEF, and the API calling request may include API information (such as the address (URI) of the resource (resource) corresponding to the API, or the identification information of the API) and calling parameters information. The invocation parameter information may specifically be terminal device IP, area information, location information, and the like. Wherein, the terminal device IP represents the IP address of the terminal device, which can be IPv4 or IPv6; the area information represents the area information of the API application, and the area information can be network area description information, such as cell identification, tracking area (TA) The identifier, the area of interest identifier, etc., may also be physical area description information. The location information may indicate location information of the API application, and specifically may be location information of the terminal device.
在S506中,边界AEF根据从CCF接收到的API的调用路由规则和调用参数信息,确定目标AEF。In S506, the border AEF determines the target AEF according to the call routing rules and call parameter information of the API received from the CCF.
示例性地,提供上述API的多个AEF包括第一AEF和第二AEF,上述API对应的服务区域包括第一服务区域和第二服务区域。上述调用路由规则可以表示该第一服务区域与第一AEF之间的对应关系,以及该第二服务区域与第二AEF之间的对应关系。上述调用参数信息可以包括终端设备(签约用户、应用用户、应用客户端)的标识信息和/或位置信息,进而指示终端设备所在的服务区域,例如,该调用参数信息指示终端设备位于第二服务区域。那么,边界AEF就可以根据该调用参数信息所指示的第二服务区域,再结合上述调用路由规则所表示的对应关系,将从第一AEF和第二AEF中与第二服务区域对应的第二AEF确定为目标AEF。Exemplarily, the multiple AEFs that provide the above API include a first AEF and a second AEF, and a service area corresponding to the above API includes a first service area and a second service area. The above-mentioned invocation routing rule may represent the correspondence between the first service area and the first AEF, and the correspondence between the second service area and the second AEF. The above-mentioned invocation parameter information may include identification information and/or location information of the terminal device (subscriber, application user, application client), and further indicates the service area where the terminal device is located. For example, the invocation parameter information indicates that the terminal device is located in the second service area. area. Then, the border AEF can select the second service area corresponding to the second service area from the first AEF and the second AEF according to the second service area indicated by the invocation parameter information and the corresponding relationship indicated by the above invocation routing rule. The AEF is identified as the target AEF.
在S507中,边界AEF向目标AEF发送API调用请求,该API调用请求中包括API的信息(如该API对应的资源(resource)的地址(URI)、或API的标识信息)。In S507, the boundary AEF sends an API call request to the target AEF, where the API call request includes API information (such as the address (URI) of the resource (resource) corresponding to the API, or the identification information of the API).
在S508中,目标AEF向边界AEF发送API调用响应。In S508, the target AEF sends an API call response to the boundary AEF.
在S509中,边界AEF向API调用实体发送该API调用响应。In S509, the border AEF sends the API call response to the API call entity.
本申请实施例的调用应用程序接口的方法,CCF在接收到来自APF的API发布请求后,获取API信息并对该API应用拓扑隐藏策略后,将该API的调用路由规则发送给边界AEF,使得边界AEF根据API的调用路由规则确定目标AEF,实现对API调用请求的转发,从而实现API的调用完成。在本实施例中,CCF在调用之前推送调用路由规则到边界AEF,可以减小在API调用流程中边界AEF获取该调用路由规则造成的调用时延,有利于提高API的调用效率。In the method for invoking an application program interface according to the embodiment of the present application, after receiving the API publishing request from the APF, the CCF obtains the API information and applies the topology hiding policy to the API, and sends the calling routing rule of the API to the border AEF, so that The boundary AEF determines the target AEF according to the call routing rules of the API, and realizes the forwarding of the API call request, thereby realizing the completion of the API call. In this embodiment, the CCF pushes the call routing rules to the border AEF before the call, which can reduce the call delay caused by the border AEF acquiring the call routing rules in the API call process, which is beneficial to improve the API call efficiency.
在本申请的另一种可能的实现方式中,CCF可以根据本地预配置AEF信息,确定上述调用路由规则。在这种情况下,该AEF提供的API的服务范围是即为该AEF的服务区域。In another possible implementation manner of the present application, the CCF may determine the above-mentioned invocation routing rule according to locally pre-configured AEF information. In this case, the service scope of the API provided by the AEF is the service area of the AEF.
图6示出了本申请实施例的另一调用应用程序接口的方法600的示意性流程图。该方法600可以应用于图1所示的系统架构100,也可以应用于图2所示的应用场景200,本申请实施例不限于此。在本实施例中,API信息相当于上述API的路由信息。FIG. 6 shows a schematic flowchart of another method 600 for invoking an application program interface according to an embodiment of the present application. The method 600 may be applied to the
在S601中,APF与CCF执行API发布流程。In S601, the APF and the CCF execute the API publishing process.
具体地,APF向CCF发送API发布请求,该API发布请求中包括API信息。该API信息包括API名称和提供该API的AEF信息,AEF信息中包含该API的接口信息,例如,IP地址、端口号、或者统一资源标识符(uniform resource identifier,URI)等,该AEF信息还包括该API对应的服务区域(API serving area)信息,服务区域信息可以是IP地址段、IP地址前缀、地理或行政区域、或者域名等信息。CCF接收APF发送的API发布请求,根据接收到的API信息,确定对该API信息对应的API应用拓扑隐藏策略。应理解,该拓扑隐藏策略可以是对所有API调用实体均应用拓扑隐藏,也可以对部分API调用实体应用拓扑隐藏。CCF确定边界AEF。Specifically, the APF sends an API release request to the CCF, where the API release request includes API information. The API information includes the API name and the AEF information that provides the API. The AEF information includes interface information of the API, such as IP address, port number, or uniform resource identifier (URI), etc. The AEF information also includes Including the API serving area (API serving area) information corresponding to the API, the serving area information may be information such as an IP address segment, an IP address prefix, a geographic or administrative area, or a domain name. The CCF receives the API release request sent by the APF, and according to the received API information, determines the API application topology hiding policy corresponding to the API information. It should be understood that the topology hiding strategy may be applying topology hiding to all API calling entities, or applying topology hiding to some API calling entities. The CCF determines the boundary AEF.
在S602中,API调用实体与CCF执行API发现流程。In S602, the API calling entity and the CCF perform an API discovery process.
在S603中,API调用实体向边界AEF发送API调用请求,该API调用请求中包括API的信息(如该API对应的资源(resource)的地址(URI)、或API的标识信息)以及调用参数信息。该调用参数信息具体可以为终端设备IP、区域信息、位置信息等。其中,终端设备IP表示终端设备的IP地址,可以是IPv4或IPv6;区域信息表示该API应用的区域信息,该区域信息可以是网络区域描述信息,例如小区标识、追踪区(tracing area,TA)标识、兴趣区域标识等,也可以是物理区域描述信息。位置信息可以表示该API应用的位置的信息,具体的可以是该终端设备的位置信息。In S603, the API calling entity sends an API calling request to the border AEF, where the API calling request includes API information (such as the address (URI) of the resource (resource) corresponding to the API, or the identification information of the API) and calling parameter information . The invocation parameter information may specifically be terminal device IP, area information, location information, and the like. Wherein, the terminal device IP represents the IP address of the terminal device, which can be IPv4 or IPv6; the area information represents the area information of the API application, and the area information can be network area description information, such as cell identification, tracking area (TA) The identifier, the area of interest identifier, etc., may also be physical area description information. The location information may indicate location information of the API application, and specifically may be location information of the terminal device.
在S604中,边界AEF接收到API调用实体的API调用请求,向CCF发送API调用路由请求。In S604, the border AEF receives the API call request from the API call entity, and sends the API call routing request to the CCF.
在S605中,CCF接收边界AEF发送的API调用路由请求,确定该API的调用路由规则,该API为应用了上述拓扑隐藏策略的API。In S605, the CCF receives the API call routing request sent by the border AEF, and determines the call routing rule of the API, where the API is an API to which the above topology hiding policy is applied.
具体地,CCF可以根据API信息,生成用于边界AEF确定目标AEF的调用路由规则。例如,CCF可以根据API信息中的对应的IP地址段、服务区域、或者域名,确定该API的调用路由规则。进一步地,该调用路由规则可以表示多个服务区域和多个AEF之间的映射关系,也可以直接表示多个IP地址段或域名与多个AEF之间的映射关系。Specifically, the CCF may generate a call routing rule for the border AEF to determine the target AEF according to the API information. For example, the CCF may determine the calling routing rule of the API according to the corresponding IP address segment, service area, or domain name in the API information. Further, the call routing rule may represent the mapping relationship between multiple service areas and multiple AEFs, or may directly represent the mapping relationship between multiple IP address segments or domain names and multiple AEFs.
应理解,上述CCF确定API的调用路由规则也可以在S602中执行,即在API发现流程中,CCF可以先生成API的调用路由规则并保存,在接收到来自边界AEF的API调用路由请求之后,再将该API的调用路由规则发送给该边界AEF,本申请实施例对此不作限定。It should be understood that the above-mentioned CCF determines that the API call routing rule can also be executed in S602, that is, in the API discovery process, the CCF can first generate the API call routing rule and save it, and after receiving the API call routing request from the border AEF, Then, the calling routing rule of the API is sent to the border AEF, which is not limited in this embodiment of the present application.
在S606中,CCF向边界AEF发送API调用路由响应,该API调用路由响应中包括上述API的调用路由规则。In S606, the CCF sends an API call routing response to the border AEF, where the API call routing response includes the above-mentioned API call routing rules.
在S607中,边界AEF根据从CCF接收到的API的调用路由规则和API调用请求中包括的调用参数信息,确定目标AEF。In S607, the boundary AEF determines the target AEF according to the call routing rule of the API received from the CCF and the call parameter information included in the API call request.
例如,边界AEF确定目标AEF可参考图5中步骤S506的描述,此处不再赘述。For example, for the boundary AEF to determine the target AEF, reference may be made to the description of step S506 in FIG. 5 , which will not be repeated here.
在S608中,边界AEF向目标AEF发送API调用请求,该API调用请求中包括API的信息(如该API对应的资源(resource)的地址(URI)、或API的标识信息)。In S608, the border AEF sends an API call request to the target AEF, where the API call request includes API information (such as an address (URI) of a resource (resource) corresponding to the API, or API identification information).
在S609中,目标AEF向边界AEF发送API调用响应。In S609, the target AEF sends an API call response to the boundary AEF.
在S610中,边界AEF向API调用实体发送该API调用响应。In S610, the border AEF sends the API call response to the API call entity.
本申请实施例的调用应用程序接口的方法,在接收到API调用请求之后,边界AEF向CCF请求API的调用路由规则,从而根据接收到的API的调用路由规则和调用参数信息,确定目标AEF,实现对API调用请求的转发,从而实现API的调用完成。进一步地,在本申请实施例中,边界AEF接收到API调用请求,并向CCF请求路由调用规则,避免了在边界开放功能网元不需要使用该路由信息时CCF主动向边界AEF发送该调用路由规则,从而节省了信令。In the method for invoking an application program interface according to the embodiment of the present application, after receiving the API invocation request, the border AEF requests the CCF for the invocation routing rules of the API, so as to determine the target AEF according to the received invocation routing rules and invocation parameter information of the API, Realize the forwarding of the API call request, so as to realize the completion of the API call. Further, in this embodiment of the present application, the border AEF receives the API call request, and requests the CCF for a routing call rule, which prevents the CCF from actively sending the call route to the border AEF when the border open function network element does not need to use the routing information. rules, thus saving signaling.
图7示出了本申请实施例的另一调用应用程序接口的方法700的示意性流程图。该方法700可以应用于图1所示的系统架构100,也可以应用于图2所示的应用场景200,本申请实施例不限于此。在本实施例中,API信息相当于上述API的路由信息。FIG. 7 shows a schematic flowchart of another method 700 for invoking an application program interface according to an embodiment of the present application. The method 700 may be applied to the
S701-S703与S601-S603相同,本实施例不再赘述。S701-S703 are the same as S601-S603, and are not repeated in this embodiment.
在S704中,边界AEF接收到API调用实体的API调用请求,向CCF发送API调用路由请求。与上述方法600不同,该API调用路由请求中包括边界AEF从API调用实体获取的调用参数信息。该调用参数信息具体可以为终端设备IP、区域信息、位置信息等。其中,终端设备IP表示终端设备的IP地址,可以是IPv4或IPv6;区域信息表示该API应用的区域信息,该区域信息可以是网络区域描述信息,例如小区标识、追踪区(tracing area,TA)标识、兴趣区域标识等,也可以是物理区域描述信息。位置信息可以表示该API应用的位置的信息,具体的可以是该终端设备的位置信息。In S704, the border AEF receives the API call request from the API call entity, and sends the API call routing request to the CCF. Different from the above method 600, the API call routing request includes the call parameter information obtained by the border AEF from the API call entity. The invocation parameter information may specifically be terminal device IP, area information, location information, and the like. Wherein, the terminal device IP represents the IP address of the terminal device, which can be IPv4 or IPv6; the area information represents the area information of the API application, and the area information can be network area description information, such as cell identification, tracking area (TA) The identifier, the area of interest identifier, etc., may also be physical area description information. The location information may indicate location information of the API application, and specifically may be location information of the terminal device.
在S705中,CCF接收边界AEF发送的API调用路由请求,根据API信息和调用参数信息,确定目标AEF。In S705, the CCF receives the API call routing request sent by the border AEF, and determines the target AEF according to the API information and the call parameter information.
示例性地,提供上述API的多个AEF包括第一AEF和第二AEF,上述API对应的服务区域包括第一服务区域和第二服务区域。上述调用路由规则可以表示该第一服务区域与第一AEF之间的对应关系,以及该第二服务区域与第二AEF之间的对应关系。上述调用参数信息可以包括终端设备(签约用户、应用用户、应用客户端)的标识信息和/或位置信息,进而指示终端设备所在的服务区域,例如,该调用参数信息指示终端设备位于第二服务区域。那么,CCF就可以根据该调用参数信息所指示的第二服务区域,再结合上述调用路由规则所表示的对应关系,将从第一AEF和第二AEF中与第二服务区域对应的第二AEF确定为目标AEF。Exemplarily, the multiple AEFs that provide the above API include a first AEF and a second AEF, and a service area corresponding to the above API includes a first service area and a second service area. The above-mentioned invocation routing rule may represent the correspondence between the first service area and the first AEF, and the correspondence between the second service area and the second AEF. The above-mentioned invocation parameter information may include identification information and/or location information of the terminal device (subscriber, application user, application client), and further indicates the service area where the terminal device is located. For example, the invocation parameter information indicates that the terminal device is located in the second service area. area. Then, the CCF can, according to the second service area indicated by the invocation parameter information, combined with the corresponding relationship indicated by the above invocation routing rule, select the second AEF corresponding to the second service area from the first AEF and the second AEF. identified as the target AEF.
在S706中,CCF向边界AEF发送API调用路由响应,该API调用路由响应中包括上述目标AEF的信息,例如,该目标AEF的标识。In S706, the CCF sends an API call routing response to the border AEF, where the API call routing response includes the information of the target AEF, for example, the identifier of the target AEF.
S707-S709与S608-S610相同,本实施例不再赘述。S707-S709 are the same as S608-S610, and are not repeated in this embodiment.
本申请实施例的调用应用程序接口的方法,在接收到API调用请求之后,边界AEF向CCF请求目标AEF,从而实现对API调用请求的转发,从而实现API的调用完成。进一步地,在本申请实施例中,由CCF确定目标AEF,边界AEF仅仅根据CCF的指示进行消息的转发,能够降低边界AEF的负担。In the method for invoking an application program interface in the embodiment of the present application, after receiving the API invocation request, the boundary AEF requests the CCF for the target AEF, so as to realize the forwarding of the API invocation request, thereby realizing the completion of the API invocation. Further, in the embodiment of the present application, the CCF determines the target AEF, and the border AEF only forwards the message according to the instruction of the CCF, which can reduce the burden of the border AEF.
应理解,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the above processes does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
上文中结合图1至图7,详细描述了根据本申请实施例的调用应用程序接口的方法,下面将结合图8至图10,详细描述根据本申请实施例的调用应用程序接口的装置。The method for invoking an application program interface according to an embodiment of the present application is described in detail above with reference to FIGS. 1 to 7 , and the apparatus for invoking an application program interface according to an embodiment of the present application will be described in detail below with reference to FIGS. 8 to 10 .
图8示出了本申请实施例提供的调用应用程序接口的装置800。该装置800包括:获取单元810和处理单元820。具体地,装置800用于执行上述方法200中第一网元对应的各个流程和步骤。FIG. 8 shows an apparatus 800 for invoking an application program interface provided by an embodiment of the present application. The apparatus 800 includes: an acquisition unit 810 and a processing unit 820 . Specifically, the apparatus 800 is configured to execute each process and step corresponding to the first network element in the foregoing
该获取单元810用于:用于获取API的路由信息,所述路由信息用于指示调用所述API的路由,所述API由第一开放功能网元和第二开放功能网元提供;以及获取所述API的调用参数信息,所述调用参数信息用于操作所述API;The obtaining unit 810 is configured to: obtain routing information of an API, where the routing information is used to indicate a route for calling the API, the API is provided by the first open function network element and the second open function network element; and obtain Call parameter information of the API, where the call parameter information is used to operate the API;
该处理单元820用于:用于根据所述路由信息和所述调用参数信息,从所述第一开放功能网元和所述第二开放功能网元中确定目标开放功能网元。The processing unit 820 is configured to: determine a target open function network element from the first open function network element and the second open function network element according to the routing information and the invocation parameter information.
可选地,所述调用参数信息包括终端设备的标识信息和/或所述终端设备的位置信息;和/或,所述路由信息包括所述第一开放功能网元的信息和所述第二开放功能网元的信息、以及所述API对应的第一服务区域的信息和第二服务区域的信息,其中,所述第一开放功能网元提供的所述API对应所述第一服务区域,所述第二开放功能网元提供的所述API对应所述第二服务区域。Optionally, the invocation parameter information includes the identification information of the terminal device and/or the location information of the terminal device; and/or the routing information includes the information of the first open function network element and the second open function network element. the information of the open function network element, and the information of the first service area and the second service area corresponding to the API, wherein the API provided by the first open function network element corresponds to the first service area, The API provided by the second open function network element corresponds to the second service area.
可选地,所述装置为核心功能网元,所述装置还包括:第一接收单元,用于从边界开放功能网元接收所述API的调用参数信息;第一发送单元,用于向所述边界开放功能网元发送所述目标开放功能网元的信息。Optionally, the apparatus is a core function network element, and the apparatus further includes: a first receiving unit, configured to receive call parameter information of the API from the border opening function network element; a first sending unit, configured to send the The border opening function network element sends the information of the target open function network element.
可选地,所述装置为核心功能网元,所述装置还包括:第二接收单元,用于从发布功能网元接收所述API的路由信息。Optionally, the apparatus is a core function network element, and the apparatus further includes: a second receiving unit configured to receive the routing information of the API from the publishing function network element.
可选地,所述装置为核心功能网元,所述装置还包括:第三接收单元,用于从发布功能网元接收所述第一开放功能网元的信息和所述第二开放功能网元的信息、以及所述API对应的第一服务区域的信息和所述第二服务区域的信息,其中,所述第一开放功能网元提供的所述API对应所述第一服务区域,所述第二开放功能网元提供的所述API对应所述第二服务区域;所述处理单元还用于:根据所述第一开放功能网元的信息和所述第二开放功能网元的信息、以及所述第一服务区域的信息和所述第二服务区域的信息,生成所述API的路由信息。Optionally, the apparatus is a core function network element, and the apparatus further includes: a third receiving unit, configured to receive the information of the first open function network element and the second open function network element from the publishing function network element. element information, and the information of the first service area and the second service area corresponding to the API, wherein the API provided by the first open function network element corresponds to the first service area, so The API provided by the second open function network element corresponds to the second service area; the processing unit is further configured to: according to the information of the first open function network element and the information of the second open function network element , and the information of the first service area and the information of the second service area, to generate routing information of the API.
可选地,所述装置为边界开放功能网元,所述装置还包括:第四接收单元,用于所述第一网元从核心功能网元或发布功能网元接收所述API的路由信息。Optionally, the apparatus is a border opening function network element, and the apparatus further includes: a fourth receiving unit, configured for the first network element to receive the routing information of the API from a core function network element or a publishing function network element .
可选地,所述装置还包括:第二发送单元,用于发送请求消息,所述请求消息用于请求所述API的路由信息,所述请求消息包括所述API的标识信息。Optionally, the apparatus further includes: a second sending unit, configured to send a request message, where the request message is used to request routing information of the API, and the request message includes identification information of the API.
应理解,这里的装置800以功能单元的形式体现。这里的术语“单元”可以指应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。在一个可选例子中,本领域技术人员可以理解,装置800可以具体为上述实施例中的第一网元,装置800可以用于执行上述方法实施例中与第一网元对应的各个流程和/或步骤,为避免重复,在此不再赘述。It should be understood that the apparatus 800 here is embodied in the form of functional units. The term "unit" herein may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor for executing one or more software or firmware programs (eg, a shared processor, a proprietary processor, or a group of processors, etc.) and memory, merge logic, and/or other suitable components to support the described functions. In an optional example, those skilled in the art can understand that the apparatus 800 may be specifically the first network element in the foregoing embodiment, and the apparatus 800 may be configured to execute various processes and processes corresponding to the first network element in the foregoing method embodiments. /or steps, in order to avoid repetition, details are not repeated here.
图9示出了本申请实施例提供的另一调用应用程序接口的装置900。该装置900包括:获取单元910和发送单元920。具体地,装置900用于执行上述方法300中第二网元对应的各个流程和步骤。FIG. 9 shows another apparatus 900 for invoking an application program interface provided by an embodiment of the present application. The apparatus 900 includes: an obtaining unit 910 and a sending unit 920 . Specifically, the apparatus 900 is configured to execute each process and step corresponding to the second network element in the foregoing
该获取单元910用于:获取API的路由信息,所述路由信息用于指示调用所述API的路由,所述API由第一开放功能网元和第二开放功能网元提供;The obtaining unit 910 is configured to: obtain routing information of an API, where the routing information is used to indicate a route for calling the API, and the API is provided by the first open function network element and the second open function network element;
该发送单元920用于:向边界开放功能网元发送所述路由信息,所述路由信息用于所述边界开放功能网元对目标开放功能网元的确定,所述目标开放功能网元是从所述第一开放功能网元和所述第二开放功能网元中确定的。The sending unit 920 is configured to: send the routing information to the border opening function network element, where the routing information is used for the border opening function network element to determine the target opening function network element, the target opening function network element is from It is determined from the first open function network element and the second open function network element.
可选地,所述路由信息包括所述第一开放功能网元的信息和所述第二开放功能网元的信息、以及所述API对应的第一服务区域的信息和第二服务区域的信息,其中,所述第一开放功能网元提供的所述API对应所述第一服务区域,所述第二开放功能网元提供的所述API对应所述第二服务区域。Optionally, the routing information includes information of the first open function network element and information of the second open function network element, and information of the first service area and information of the second service area corresponding to the API , wherein the API provided by the first open function network element corresponds to the first service area, and the API provided by the second open function network element corresponds to the second service area.
可选地,所述装置为核心功能网元,所述装置还包括:第一接收单元,用于从发布功能网元接收所述第一开放功能网元的信息和所述第二开放功能网元的信息、以及所述API对应的第一服务区域的信息和所述第二服务区域的信息,其中,所述第一开放功能网元提供的所述API对应所述第一服务区域,所述第二开放功能网元提供的所述API对应所述第二服务区域;所述装置还包括:处理单元,用于根据所述第一开放功能网元的信息和所述第二开放功能网元的信息、以及所述第一服务区域的信息和所述第二服务区域的信息,生成所述API的路由信息。Optionally, the apparatus is a core function network element, and the apparatus further includes: a first receiving unit configured to receive the information of the first open function network element and the second open function network element from the publishing function network element. element information, and the information of the first service area and the second service area corresponding to the API, wherein the API provided by the first open function network element corresponds to the first service area, so The API provided by the second open function network element corresponds to the second service area; the apparatus further includes: a processing unit configured to, according to the information of the first open function network element and the second open function network element Meta information, as well as information about the first service area and information about the second service area, generate routing information for the API.
可选地,所述装置还包括:第二接收单元,用于在向所述边界开放功能网元发送所述路由信息之前,从所述边界开放功能网元接收请求消息,所述请求消息用于请求所述路由信息,所述请求消息包括所述API的标识信息;所述发送单元920具体用于:根据所述请求消息,向所述边界开放功能网元发送所述路由信息。Optionally, the apparatus further includes: a second receiving unit, configured to receive a request message from the border opening function network element before sending the routing information to the border opening function network element, the request message using For requesting the routing information, the request message includes the identification information of the API; the sending unit 920 is specifically configured to: send the routing information to the border opening function network element according to the request message.
应理解,这里的装置900以功能单元的形式体现。这里的术语“单元”可以指应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。在一个可选例子中,本领域技术人员可以理解,装置900可以具体为上述实施例中的第二网元,装置900可以用于执行上述方法实施例中与第二网元对应的各个流程和/或步骤,为避免重复,在此不再赘述。It should be understood that the apparatus 900 here is embodied in the form of functional units. The term "unit" herein may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor for executing one or more software or firmware programs (eg, a shared processor, a proprietary processor, or a group of processors, etc.) and memory, merge logic, and/or other suitable components to support the described functions. In an optional example, those skilled in the art can understand that the apparatus 900 may be specifically the second network element in the foregoing embodiment, and the apparatus 900 may be configured to execute various processes and processes corresponding to the second network element in the foregoing method embodiments. /or steps, in order to avoid repetition, details are not repeated here.
上述各个方案的装置800和装置900具有实现上述方法中第一网元或第二网元执行的相应步骤的功能;所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块;例如发送单元可以由发射机替代,接收单元可以由接收机替代,其它单元,如确定单元等可以由处理器替代,分别执行各个方法实施例中的收发操作以及相关的处理操作。The apparatuses 800 and 900 of the above solutions have the function of implementing the corresponding steps performed by the first network element or the second network element in the above method; the functions may be implemented by hardware or by executing corresponding software in hardware. The hardware or software includes one or more modules corresponding to the above functions; for example, the sending unit can be replaced by a transmitter, the receiving unit can be replaced by a receiver, and other units, such as the determining unit, can be replaced by a processor, which can be executed separately. Transceiver operations and related processing operations in each method embodiment.
在本申请的实施例,图8和图9中的装置也可以是芯片或者芯片系统,例如:片上系统(system on chip,SoC)。对应的,接收单元和发送单元可以是该芯片的收发电路,在此不做限定。In the embodiments of the present application, the devices in FIG. 8 and FIG. 9 may also be a chip or a system of chips, such as a system on chip (system on chip, SoC). Correspondingly, the receiving unit and the transmitting unit may be the transceiver circuits of the chip, which are not limited herein.
图10示出了本申请实施例提供的另一调用应用程序接口的装置1000。该装置1000包括处理器1010、收发器1020和存储器1030。其中,处理器1010、收发器1020和存储器1030通过内部连接通路互相通信,该存储器1030用于存储指令,该处理器1010用于执行该存储器1030存储的指令,以控制该收发器1020发送信号和/或接收信号。FIG. 10 shows another apparatus 1000 for invoking an application program interface provided by an embodiment of the present application. The apparatus 1000 includes a processor 1010 , a transceiver 1020 and a memory 1030 . The processor 1010, the transceiver 1020 and the memory 1030 communicate with each other through an internal connection path, the memory 1030 is used to store instructions, and the processor 1010 is used to execute the instructions stored in the memory 1030 to control the transceiver 1020 to send signals and / or receive signals.
在一种可能的实现方式中,装置1000用于执行上述方法200中第一网元对应的各个流程和步骤。In a possible implementation manner, the apparatus 1000 is configured to execute each process and step corresponding to the first network element in the foregoing
其中,该处理器1010用于:获取API的路由信息,所述路由信息用于指示调用所述API的路由,所述API由第一开放功能网元和第二开放功能网元提供;以及获取所述API的调用参数信息,所述调用参数信息用于操作所述API;根据所述路由信息和所述调用参数信息,从所述第一开放功能网元和所述第二开放功能网元中确定目标开放功能网元。The processor 1010 is configured to: acquire routing information of an API, where the routing information is used to indicate a route for calling the API, the API is provided by the first open function network element and the second open function network element; and obtain Call parameter information of the API, the call parameter information is used to operate the API; according to the routing information and the call parameter information, from the first open function network element and the second open function network element Determine the target open function network element.
在一种可能的实现方式中,装置1000用于执行上述方法300中第二网元对应的各个流程和步骤。In a possible implementation manner, the apparatus 1000 is configured to execute each process and step corresponding to the second network element in the foregoing
其中,该处理器1010用于:获取API的路由信息,所述路由信息用于指示调用所述API的路由,所述API由第一开放功能网元和第二开放功能网元提供;通过该收发器1020向边界开放功能网元发送所述路由信息,所述路由信息用于所述边界开放功能网元对目标开放功能网元的确定,所述目标开放功能网元是从所述第一开放功能网元和所述第二开放功能网元中确定的。The processor 1010 is configured to: obtain routing information of an API, where the routing information is used to indicate a route for calling the API, and the API is provided by the first open function network element and the second open function network element; The transceiver 1020 sends the routing information to the border opening function network element, where the routing information is used for the border opening function network element to determine the target opening function network element, and the target opening function network element is obtained from the first network element. The open function network element and the second open function network element are determined.
应理解,装置1000可以具体为上述实施例中的第一网元或第二网元,并且可以用于执行上述方法实施例中与第一网元或第二网元对应的各个步骤和/或流程。可选地,该存储器1030可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器。例如,存储器还可以存储设备类型的信息。该处理器1010可以用于执行存储器中存储的指令,并且当该处理器1010执行存储器中存储的指令时,该处理器1010用于执行上述与该第一网元或第二网元对应的方法实施例的各个步骤和/或流程。It should be understood that the apparatus 1000 may be specifically the first network element or the second network element in the foregoing embodiments, and may be configured to perform various steps and/or steps corresponding to the first network element or the second network element in the foregoing method embodiments process. Optionally, the memory 1030 may include read only memory and random access memory and provide instructions and data to the processor. A portion of the memory may also include non-volatile random access memory. For example, the memory may also store device type information. The processor 1010 can be configured to execute the instructions stored in the memory, and when the processor 1010 executes the instructions stored in the memory, the processor 1010 is configured to execute the above method corresponding to the first network element or the second network element Various steps and/or processes of an embodiment.
应理解,在本申请实施例中,上述装置的处理器可以是中央处理单元(centralprocessing unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in this embodiment of the present application, the processor of the above device may be a central processing unit (central processing unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits ( ASIC), Field Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件单元组合执行完成。软件单元可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器执行存储器中的指令,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above-mentioned method can be completed by a hardware integrated logic circuit in a processor or an instruction in the form of software. The steps of the method disclosed in combination with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software units in the processor. The software unit may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the memory, and the processor executes the instructions in the memory, and completes the steps of the above method in combination with its hardware. To avoid repetition, detailed description is omitted here.
在本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a、b或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c或a-b-c,其中a,b,c可以是单个,也可以是多个。In this application, "at least one" means one or more, and "plurality" means two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the associated objects are an "or" relationship. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (a) of a, b or c may represent: a, b, c, a-b, a-c, b-c or a-b-c, where a, b, c may be single or multiple.
本领域普通技术人员可以意识到,结合本文中所公开的实施例中描述的各方法步骤和单元,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各实施例的步骤及组成。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。本领域普通技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that, in combination with the method steps and units described in the embodiments disclosed herein, they can be implemented in electronic hardware, computer software, or a combination of the two. Interchangeability, the steps and components of the various embodiments have been generally described in terms of functions in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Persons of ordinary skill in the art may use different methods of implementing the described functionality for each particular application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above may refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may also be electrical, mechanical or other forms of connection.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本申请实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solutions of the embodiments of the present application.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。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 alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application are essentially or part of contributions to the prior art, or all or part of the technical solutions can be embodied in the form of software products, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, removable hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalents within the technical scope disclosed in the present application. Modifications or substitutions shall be covered by the protection scope of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (26)
Priority Applications (7)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110991039.4A CN113867980A (en) | 2019-01-14 | 2019-01-14 | Method and apparatus for calling application program interface |
| CN201910033239.1A CN111435924B (en) | 2019-01-14 | 2019-01-14 | Method and apparatus for calling application program interface |
| CA3126566A CA3126566C (en) | 2019-01-14 | 2019-12-30 | Method and apparatus for invoking application programming interface |
| EP19910775.6A EP3905612A4 (en) | 2019-01-14 | 2019-12-30 | Method and device for calling application program interface |
| AU2019422391A AU2019422391B2 (en) | 2019-01-14 | 2019-12-30 | Method and apparatus for invoking application programming interface |
| PCT/CN2019/129786 WO2020147565A1 (en) | 2019-01-14 | 2019-12-30 | Method and device for calling application program interface |
| US17/374,732 US11516310B2 (en) | 2019-01-14 | 2021-07-13 | Method and apparatus for invoking application programming interface |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910033239.1A CN111435924B (en) | 2019-01-14 | 2019-01-14 | Method and apparatus for calling application program interface |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110991039.4A Division CN113867980A (en) | 2019-01-14 | 2019-01-14 | Method and apparatus for calling application program interface |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111435924A true CN111435924A (en) | 2020-07-21 |
| CN111435924B CN111435924B (en) | 2021-08-31 |
Family
ID=71579901
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110991039.4A Pending CN113867980A (en) | 2019-01-14 | 2019-01-14 | Method and apparatus for calling application program interface |
| CN201910033239.1A Active CN111435924B (en) | 2019-01-14 | 2019-01-14 | Method and apparatus for calling application program interface |
Family Applications Before (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110991039.4A Pending CN113867980A (en) | 2019-01-14 | 2019-01-14 | Method and apparatus for calling application program interface |
Country Status (6)
| Country | Link |
|---|---|
| US (1) | US11516310B2 (en) |
| EP (1) | EP3905612A4 (en) |
| CN (2) | CN113867980A (en) |
| AU (1) | AU2019422391B2 (en) |
| CA (1) | CA3126566C (en) |
| WO (1) | WO2020147565A1 (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113986592A (en) * | 2021-10-27 | 2022-01-28 | 深圳市元征科技股份有限公司 | Log recording method, apparatus, terminal device and readable storage medium |
| WO2022027528A1 (en) * | 2020-08-06 | 2022-02-10 | 华为技术有限公司 | Application programming interface invoking method, and device and system thereof |
| WO2022067736A1 (en) * | 2020-09-30 | 2022-04-07 | 华为技术有限公司 | Communication method and apparatus |
| CN114844945A (en) * | 2021-02-01 | 2022-08-02 | 中国移动通信有限公司研究院 | Network capacity management method, capacity open platform and network capacity management system |
| WO2025030450A1 (en) * | 2023-08-09 | 2025-02-13 | 北京小米移动软件有限公司 | User plane connection establishment method and apparatus, and communication device, communication system and storage medium |
| CN119996513A (en) * | 2025-04-11 | 2025-05-13 | 深圳市智慧城市科技发展集团有限公司 | Gateway interface calling method, device, multiple gateway and storage medium |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20220014545A1 (en) * | 2020-07-09 | 2022-01-13 | Jpmorgan Chase Bank, N.A. | Systems and methods for automated cyber security and control monitoring |
| US12236360B2 (en) * | 2020-09-17 | 2025-02-25 | International Business Machines Corporation | Shiftleft topology construction and information augmentation using machine learning |
| WO2022068811A1 (en) * | 2020-09-30 | 2022-04-07 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and apparatus for application programming interface management |
| CN115714720B (en) * | 2021-08-20 | 2024-12-31 | 中移物联网有限公司 | Embedded network frame and method for supporting multiple communication modes thereof |
| US11785102B1 (en) * | 2022-05-31 | 2023-10-10 | Oracle International Corporation | Methods, systems, and computer readable media for application programming interface (API) related groupings involving common application programming interface framework |
| CN117857548A (en) * | 2022-09-30 | 2024-04-09 | 华为技术有限公司 | Communication method and device |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110289518A1 (en) * | 2007-06-25 | 2011-11-24 | Microsoft Corporation | Aggregate personal computer system |
| CN103699367A (en) * | 2012-09-27 | 2014-04-02 | 中国电信股份有限公司 | HTTP (hyper text transport protocol) API (application program interface) invoking method and device |
| CN104468832A (en) * | 2014-12-25 | 2015-03-25 | 广东电子工业研究院有限公司 | Portable distributed architecture based on http protocol |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10169110B2 (en) * | 2016-03-25 | 2019-01-01 | Google Llc | Navigation application programming interface |
| US11303676B2 (en) * | 2017-11-16 | 2022-04-12 | Samsung Electronics Co., Ltd. | Method and system for authenticating application program interface (API) invokers |
-
2019
- 2019-01-14 CN CN202110991039.4A patent/CN113867980A/en active Pending
- 2019-01-14 CN CN201910033239.1A patent/CN111435924B/en active Active
- 2019-12-30 EP EP19910775.6A patent/EP3905612A4/en active Pending
- 2019-12-30 WO PCT/CN2019/129786 patent/WO2020147565A1/en not_active Ceased
- 2019-12-30 CA CA3126566A patent/CA3126566C/en active Active
- 2019-12-30 AU AU2019422391A patent/AU2019422391B2/en active Active
-
2021
- 2021-07-13 US US17/374,732 patent/US11516310B2/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110289518A1 (en) * | 2007-06-25 | 2011-11-24 | Microsoft Corporation | Aggregate personal computer system |
| CN103699367A (en) * | 2012-09-27 | 2014-04-02 | 中国电信股份有限公司 | HTTP (hyper text transport protocol) API (application program interface) invoking method and device |
| CN104468832A (en) * | 2014-12-25 | 2015-03-25 | 广东电子工业研究院有限公司 | Portable distributed architecture based on http protocol |
Non-Patent Citations (3)
| Title |
|---|
| 3GPP: "《Common API Framework for 3GPP Northbound APIS》", 《3GPP TS 23.222 V15》 * |
| 3GPP: "《Security aspects of Common API Framework (CAPIF) for 3GPP northbound APIs》", 《3GPP TS 33.122 V15.2.0》 * |
| SAMSUNG: "《Pseudo-CR on TS 23.222 CAPIF access control cascaded AEFs》", 《3GPP TSG-SA WG6 MEETING #19》 * |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2022027528A1 (en) * | 2020-08-06 | 2022-02-10 | 华为技术有限公司 | Application programming interface invoking method, and device and system thereof |
| WO2022067736A1 (en) * | 2020-09-30 | 2022-04-07 | 华为技术有限公司 | Communication method and apparatus |
| CN114844945A (en) * | 2021-02-01 | 2022-08-02 | 中国移动通信有限公司研究院 | Network capacity management method, capacity open platform and network capacity management system |
| CN114844945B (en) * | 2021-02-01 | 2025-03-21 | 中国移动通信有限公司研究院 | Network capability management method, capability opening platform and network capability management system |
| CN113986592A (en) * | 2021-10-27 | 2022-01-28 | 深圳市元征科技股份有限公司 | Log recording method, apparatus, terminal device and readable storage medium |
| WO2025030450A1 (en) * | 2023-08-09 | 2025-02-13 | 北京小米移动软件有限公司 | User plane connection establishment method and apparatus, and communication device, communication system and storage medium |
| CN119996513A (en) * | 2025-04-11 | 2025-05-13 | 深圳市智慧城市科技发展集团有限公司 | Gateway interface calling method, device, multiple gateway and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111435924B (en) | 2021-08-31 |
| US20210344774A1 (en) | 2021-11-04 |
| CN113867980A (en) | 2021-12-31 |
| US11516310B2 (en) | 2022-11-29 |
| CA3126566C (en) | 2023-12-12 |
| CA3126566A1 (en) | 2020-07-23 |
| AU2019422391A1 (en) | 2021-08-12 |
| EP3905612A4 (en) | 2022-03-09 |
| EP3905612A1 (en) | 2021-11-03 |
| AU2019422391B2 (en) | 2022-12-08 |
| WO2020147565A1 (en) | 2020-07-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111435924B (en) | Method and apparatus for calling application program interface | |
| CN116057924B (en) | Method, system and computer readable medium for providing network function discovery service enhancement | |
| US20250112996A1 (en) | System and method to enable charging and policies for a ue with one or more user identities | |
| KR20210069105A (en) | Methods supporting the service of subscription and reporting of monitoring of events in a telecommunications network as well as related network functions | |
| US20220131911A1 (en) | Apparatus, methods, and computer programs | |
| WO2018161802A1 (en) | Traffic flow control method and device | |
| CN113543165B (en) | Communication method, device and system | |
| CN118160285A (en) | Method and apparatus for network function discovery | |
| US12167310B2 (en) | Roaming device location determination for emergency communications | |
| US20240396863A1 (en) | Apparatus, method, and computer program | |
| WO2022237857A1 (en) | Method for determining security protection enabling mode, communication method, and communication apparatus | |
| EP4462850A1 (en) | Method, device and system for requesting application function | |
| JP7675852B2 (en) | Data acquisition method and system, and device therefor | |
| WO2023284990A1 (en) | First core network node, second node and third node, communications system and methods performed, thereby for handling performance of an action by a device | |
| WO2022100197A1 (en) | Method and apparatus for obtaining edge service | |
| EP4322002A1 (en) | Method and apparatus for processing information of edge configuration server, and communication device | |
| US12124437B2 (en) | Systems and methods for off-chain action orchestration using blockchain events | |
| CN119404530A (en) | Feature discovery in non-direct subscription scenarios | |
| WO2024061205A1 (en) | Parameter acquisition method and apparatus, first network function, and second network function | |
| WO2025098343A1 (en) | Communication method and apparatus, and computer-readable storage medium | |
| CN115209522A (en) | Network function registration method, discovery method, device, equipment and medium | |
| WO2025037264A1 (en) | Network slice based northbound service api exposure | |
| WO2024119292A1 (en) | Network service method, communication apparatus, and communication system | |
| WO2024195282A1 (en) | Core network node, data generation method, program, and communication system | |
| CN118633262A (en) | Methods and devices related to lawful interception |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |