COMMUNICATION METHOD, COMMUNICATION DEVICE, AND COMMUNICATION SYSTEM

The communication method addresses the issue of incorrect API calls during network switching by exchanging identification and network type information, ensuring successful API calls and improved user experience.

JP7556915B2Active Publication Date: 2024-09-26HUAWEI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2022085931
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2018-04-09
Filing Date
2022-05-26
Publication Date
2024-09-26
Estimated Expiration
2039-03-19

AI Technical Summary

Technical Problem

When a terminal switches between 4G and 5G networks, third-party applications cannot determine the current network, leading to low API call success rates and poor user experience due to incorrect API calls.

Method used

A communication method that involves network elements exchanging identification information and serving network type information to ensure accurate selection of available APIs, thereby avoiding errors and improving success rates.

Benefits of technology

Ensures successful API calls by determining the appropriate APIs based on the terminal's current network, enhancing user experience and reducing errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007556915000013
    Figure 0007556915000013
  • Figure 0007556915000018
    Figure 0007556915000018
  • Figure 0007556915000011
    Figure 0007556915000011
Patent Text Reader

Abstract

A communication method, a communication device, and a communication system are provided that avoid API call errors and guarantee the success rate of API calls when switching the network to be connected. The method includes a step of a first network element receiving identification information of a terminal from a second network element. The identification information includes an identification of the terminal or an identification of a group of terminals. The method also includes a step of the first network element acquiring type information of a serving network corresponding to the identification information based on the identification information, and a step of the first network element transmitting application programming interface (API) information of the first network element based on the type information. After receiving the identification information of the terminal transmitted by the second network element, the first network element acquires the type information of the serving network corresponding to the identification information.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present application relates to communication technologies, and in particular to a communication method, a communication device, and a communication system. [Background technology]

[0002] This application claims priority to Chinese Patent Application No. 201810313229.9, entitled “COMMUNICATION METHOD, COMMUNICATIONS APPARATUS, AND COMMUNICATIONS SYSTEM”, filed with the State Intellectual Property Office of the People's Republic of China on April 9, 2018, which is incorporated herein by reference in its entirety.

[0003] The explosive development of new services, such as the Internet of Cars, the Mobile Office, and the Internet of Things, imposes higher requirements on communication networks in terms of access speed, traffic density, and other factors. Driven by various types of new services, networks using different access technologies, such as 4G networks and 5G networks, are emerging. All of the networks using different access technologies can expose network functions to third-party applications through an Application Programming Interface (API), and the third-party applications use the API to obtain terminal-related services.

[0004] Since the terminal can support all different access technologies, such as 4G access technology and 5G access technology, the terminal can flexibly switch between 4G networks and 5G networks. However, when the terminal switches between 4G networks and 5G networks, the third-party application cannot know the network in which the terminal is currently located, and therefore cannot know the APIs that can be currently called. As a result, the API call success rate is low and the user experience is poor. Summary of the Invention

[0005] The present application provides a communication method, a communication device, and a communication system for avoiding API calling errors, ensuring an API calling success rate, and improving user experience.

[0006] A first aspect of the present application provides a communication method applied to a first network element, the method comprising: receiving, by the first network element, an identification of the terminal from the second network element, the identification information including an identification of the terminal or an identification of a group of terminals; obtaining, by a first network element, type information of a serving network corresponding to the identification information according to the identification information; sending, by the first network element, application programming interface API information of the first network element based on the type information; Includes.

[0007] In this method, after receiving the identification information of the terminal sent by the second network element, the first network element obtains serving network type information corresponding to the identification information, and sends API information or the serving network type information to the second network element based on the serving network type information, so that the second network element can select an available API based on the API information or the serving network type information, and call the available API, thereby avoiding API calling errors, ensuring the API calling success rate, and improving user experience.

[0008] In a possible design, the type information includes indication information used to indicate the type of the serving network or that the type of the serving network has changed.

[0009] In a possible design, the identification information is included in a first message and the API information is included in a second message.

[0010] In a possible design, a first message is used to subscribe to an API support capability and a second message is used to announce the API support capability; or The first message is used to inquire about the API support capabilities, and the second message is used to respond to the first message.

[0011] In a possible design, the API information includes API status information or API call results; The API status information includes at least one of the following information: indication information used to indicate that an API support capability has changed; a list of available APIs; a list of unavailable APIs; and a list of API statuses; The list of API states includes an identification of the API and the state of the API.

[0012] In a possible design, the first message is an API support capabilities subscription message.

[0013] In a possible design, the type information is included in a second message, and the second message is used to advertise the API support capabilities.

[0014] In a possible design, the second message is an API support capability notification message, and the API support capability notification message includes an identification of the terminal or an identification of the group.

[0015] In a possible design, the first message is a first event subscription message or a first monitor request message, and the first event subscription message or the first monitor request message includes an identification of an API supported capabilities change event.

[0016] In a possible design, the second message is a first event notification message or a first monitoring response message, and the first event notification message or the first monitoring response message includes an identification of the terminal or an identification of the group.

[0017] In a possible design, the first message is an API supported capabilities query message and the second message is an API supported capabilities response message.

[0018] In a possible design, the step of acquiring, by the first network element, type information of a serving network corresponding to the identification information based on the identification information, includes: sending, by the first network element, a third message to a third network element, the third message being used to request type information; receiving, by the first network element, type information from a third network element; Includes.

[0019] In a possible design, the first message is an API call message, and the API call message includes an identification of a terminal or an identification of a group.

[0020] In a possible design, the first message is a second event subscription message or a second monitor request message, and the second event subscription message or the second monitor request message includes an identification of the serving network type change event.

[0021] In a possible design, the first message is a terminal registration request message to the network.

[0022] In a possible design, the method further comprises: transmitting, by the first network element, the type information; Includes.

[0023] A second aspect of the present application provides a communication method applied to a second network element, the method comprising: transmitting, by the second network element, an identification information of the terminal to the first network element, the identification information including an identification of the terminal or an identification of a group of terminals; receiving, by the second network element, application programming interface API information of the first network element from the first network element; calling, by the second network element, the API based on the API information; Includes.

[0024] In a possible design, the identification information is included in a first message and the API information is included in a second message.

[0025] In a possible design, a first message is used to subscribe to an API support capability and a second message is used to announce the API support capability; or The first message is used to inquire about the API support capabilities, and the second message is used to respond to the first message.

[0026] In a possible design, the API information includes API status information or API call results; The API status information includes at least one of the following information: indication information used to indicate that an API support capability has changed; a list of available APIs; a list of unavailable APIs; and a list of API statuses; The list of API states includes an identification of the API and the state of the API.

[0027] In a possible design, the step of transmitting, by the second network element, an identification of the terminal to the first network element, comprises: When the second network element triggers calling the API according to the service requirement, sending identification information of the terminal to the first network element; transmitting an identity of the terminal to the first network element when the preset timer expires; or When the second network element receives, from the first network element, indication information used to indicate that the API support capability has changed, sending identification information of the terminal to the first network element. Includes.

[0028] A third aspect of the present application provides a communication method applied to a first network element, the method comprising: sending, by the first network element, a third message to a third network element, the third message being used to request type information of a serving network for the terminal or a group of terminals; receiving, by the first network element, type information from a third network element; sending, by the first network element, application programming interface API information of the first network element based on the type information; Includes.

[0029] In this method, the first network element sends a third message to the third network element to request type information of a serving network of the terminal or the group of terminals, and the third network element obtains the type information of the serving network of the terminal or the group of terminals based on the third message and sends the type information to the first network element, so that the first network element can obtain the type information of the serving network and send API information of the first network element or the type information of the serving network to the second network element, and then the second network element can call an available API based on the API information or the type information of the serving network, thereby avoiding API calling errors, ensuring an API calling success rate, and improving user experience.

[0030] In a possible design, the type information includes indication information used to indicate the type of the serving network or that the type of the serving network has changed.

[0031] In a possible design, the type information is included in a fourth message, The third message is a subscription message, which is used to subscribe to a type of serving network; and the fourth message is a notification message; or The third message is an inquiry message, which is used to inquire about the type of the serving network, and the fourth message is a response message to the third message.

[0032] In a possible design, when the third message is used to request type information of the serving network of the terminal, the third message includes an identification of the terminal, or When the third message is used to request type information of a serving network for a group of terminals, the third message includes an identification of the group of terminals.

[0033] In a possible design, the third message is a third event subscription message or a third monitor request message, and the third event subscription message or the third monitor request message includes an identification of the serving network type change event.

[0034] In a possible design, the fourth message is a third event notification message or a third monitoring response message, which includes a serving network type change indication or a type of serving network, and further includes a terminal identification or a group identification.

[0035] In a possible design, the third message is a terminal registration request message to the network.

[0036] In a possible design, the fourth message is a terminal registration response message to the network, which includes the type of serving network and further includes a terminal identity or a group identity.

[0037] In a possible design, the API information includes API status information or API call results; The API status information includes at least one of the following information: indication information used to indicate that an API support capability has changed; a list of available APIs; a list of unavailable APIs; and a list of API statuses; The list of API states includes an identification of the API and the state of the API.

[0038] In a possible design, the third network element is a network element that integrates a Home Subscriber Server (HSS) and a Uniform Data Management (UDM), or the third network element is a network element that integrates a Policy Control Function (PCF) and a Policy and Charging Rules Function (PCRF), or The third network element is a mobility management entity MME, or the third network element is an access and mobility management function AMF.

[0039] A fourth aspect of the present application provides a communication method applied to a third network element, the method comprising: receiving, by a third network element, a third message from the first network element, the third message being used to request type information of a serving network for the terminal or a group of terminals; transmitting, by the third network element, type information based on the third message; Includes.

[0040] In a possible design, the type information includes indication information used to indicate the type of the serving network or that the type of the serving network has changed.

[0041] In a possible design, the type information is included in a fourth message, The third message is a subscription message, which is used to subscribe to a type of serving network; and the fourth message is a notification message; or The third message is an inquiry message, which is used to inquire about the type of the serving network, and the fourth message is a response message to the third message.

[0042] In a possible design, the step of transmitting, by the third network element, the type information based on the third message, comprises: transmitting information used to indicate the type of the serving network when detecting that the type of the serving network has changed. Includes.

[0043] In a possible design, the step of transmitting, by the third network element, the type information based on the third message, comprises: querying, by a third network element, a type of a serving network based on the third message; transmitting, by the third network element, a type of serving network; Includes.

[0044] In a possible design, the third network element is a network element that integrates a Home Subscriber Server (HSS) and a Uniform Data Management (UDM), or the third network element is a network element that integrates a Policy Control Function (PCF) and a Policy and Charging Rules Function (PCRF), or The third network element is a mobility management entity MME, or the third network element is an access and mobility management function AMF.

[0045] In a possible design, when the third message is used to request type information of the serving network of the terminal, the third message includes an identification of the terminal, or When the third message is used to request type information of a serving network for a group of terminals, the third message includes an identification of the group of terminals.

[0046] A fifth aspect of the present application provides a communication device. The communication device is configured to implement the functions of the first network element in the first aspect. These functions may be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions.

[0047] In a possible design, the communication device may include a receiving module, a processing module, and a transmitting module. The receiving module, the processing module, and the transmitting module may perform corresponding functions in the above-mentioned method. For example, the receiving module is configured to receive identification information of a terminal from a second network element, the identification information including identification information of the terminal or identification information of a group of terminals, the processing module is configured to obtain type information of a serving network corresponding to the identification information based on the identification information, and the transmitting module is configured to transmit API information of the first network element based on the type information.

[0048] A sixth aspect of the present application provides a communication device. The communication device is configured to implement the functions of the second network element in the second aspect. These functions may be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions.

[0049] In a possible design, the communication device may include a receiving module, a processing module, and a transmitting module. The receiving module, the processing module, and the transmitting module may perform corresponding functions in the above-mentioned method. For example, the transmitting module is configured to transmit identification information of a terminal to a first network element, the identification information including an identification of the terminal or an identification of a group of terminals, the receiving module is configured to receive API information of the first network element from the first network element, and the processing module is configured to invoke the API based on the API information.

[0050] A seventh aspect of the present application provides a communication device. The communication device is configured to implement the functions of the first network element in the third aspect. These functions may be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions.

[0051] In a possible design, the communication device may include a receiving module, a processing module, and a transmitting module. The receiving module, the processing module, and the transmitting module may perform corresponding functions in the above-mentioned method. For example, the transmitting module is configured to transmit a third message to a third network element, where the third message is used to request type information of a serving network of the terminal or a group of terminals, the receiving module is configured to receive the type information from the third network element, and the processing module is configured to transmit application programming interface API information of the first network element based on the type information by using the transmitting module.

[0052] An eighth aspect of the present application provides a communication device. The communication device is configured to implement the functions of the third network element in the fourth aspect. These functions may be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions.

[0053] In a possible design, the communication device may include a receiving module, a processing module, and a transmitting module. The receiving module, the processing module, and the transmitting module may perform corresponding functions in the above-mentioned method. For example, the receiving module is configured to receive a third message from a first network element, the third message being used to request type information of a serving network for a terminal or a group of terminals, and the processing module is configured to transmit the type information based on the third message by using the transmitting module.

[0054] A ninth aspect of the present application provides a communications device, the communications device including a memory and a processor, the memory configured to store program instructions, and the processor configured to execute the program instructions in the memory to implement the method of the first aspect.

[0055] A tenth aspect of the present application provides a communications device, the communications device including a memory and a processor, the memory configured to store program instructions, the processor configured to execute the program instructions in the memory to implement the method of the second aspect.

[0056] An eleventh aspect of the present application provides a communications device, the communications device including a memory and a processor, the memory configured to store program instructions, the processor configured to execute the program instructions in the memory to implement the method of the third aspect.

[0057] A twelfth aspect of the present application provides a communications device, the communications device including a memory and a processor, the memory configured to store program instructions, and the processor configured to execute the program instructions in the memory to implement the method of the fourth aspect.

[0058] A thirteenth aspect of the present application provides a communication system, the communication system including a communication device according to the ninth aspect, a communication device according to the tenth aspect, a communication device according to the eleventh aspect, and a communication device according to the twelfth aspect.

[0059] A fourteenth aspect of the present application provides a computer-readable storage medium storing a computer program, the computer program including instructions used to perform the method according to the first aspect.

[0060] A fifteenth aspect of the present application provides a computer-readable storage medium storing a computer program comprising instructions for use in performing the method according to the second aspect.

[0061] A sixteenth aspect of the present application provides a computer-readable storage medium storing a computer program, the computer program comprising instructions used to perform the method according to the third aspect.

[0062] A seventeenth aspect of the present application provides a computer readable storage medium storing a computer program, the computer program comprising instructions used to perform the method according to the fourth aspect.

[0063] An eighteenth aspect of the present application provides a computer product comprising computer program code which, when executed, performs a method according to the first aspect.

[0064] A nineteenth aspect of the present application provides a computer product comprising computer program code which, when executed, performs a method according to the second aspect.

[0065] A twentieth aspect of the present application provides a computer product comprising computer program code which, when executed, performs a method according to the third aspect.

[0066] A twenty-first aspect of the present application provides a computer product comprising computer program code which, when executed, performs a method according to the fourth aspect. [Brief description of the drawings]

[0067] [Figure 1] FIG. 1 is a schematic diagram of the network architecture of an EPS. [Diagram 2] 1 is a schematic architecture diagram of a 5G network. [Diagram 3] 1 is a schematic diagram of the function support of a capability disclosure network element. [Figure 4] 2 is an interaction flow chart of a communication method according to the present application; [Diagram 5] 4 is an interaction flow chart of another communication method according to the present application; [Figure 6] 2 is a flowchart of a communication method according to the first embodiment. [Figure 7] 11 is a flowchart of a communication method according to the second embodiment. [Figure 8] 11 is a flowchart of a communication method according to a third embodiment. [Figure 9] 13 is a flowchart of a communication method according to a fourth embodiment. [Figure 10] 13 is a flowchart of a communication method according to embodiment 5. [Figure 11] 13 is a flowchart of a communication method according to a sixth embodiment. [Figure 12] 13 is a flowchart of a communication method according to embodiment 7. [Figure 13] 13 is a flowchart of a communication method according to an eighth embodiment. [Figure 14] 13 is a flowchart of a communication method according to embodiment 9. [Figure 15] FIG. 2 is a structural diagram of a module in a first communication device according to the present application; [Figure 16] FIG. 2 is a structural diagram of a module in a second communication device according to the present application; [Figure 17] FIG. 11 is a structural diagram of a module in a third communication device according to the present application. [Figure 18] FIG. 11 is a structural diagram of a module in a fourth communication device according to the present application. [Figure 19] 2 is a physical block diagram of a first communication device according to the present application. [Figure 20] 4 is a physical block diagram of a second communication device according to the present application. [Figure 21] FIG. 4 is a physical block diagram of a third communication device according to the present application. [Figure 22] FIG. 11 is a physical block diagram of a fourth communication device according to the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0068] In order to allow those skilled in the art to better understand the technical solution of the present application, the following first describes the architecture of a network using different access technologies. Specifically, the Evolved Packet System (EPS), i.e., 4G network and 5G network architecture are used as examples for explanation.

[0069] Figure 1 is a schematic diagram of the network architecture of EPS. As shown in Figure 1, EPS mainly includes network entities such as Evolved UTRAN (EUTRAN), Mobility Management Entity (MME), Serving Gateway (SGW), Packet Data Network Gateway (PDN Gateway, P-GW), Serving GPRS Supporting Node (SGSN), Home Subscriber Server (HSS), and Policy and Charging Rules Function (PCRF). The functions of the network entities are as follows:

[0070] EUTRAN is a network including multiple Evolved NodeBs (eNodeBs), which implement radio physical layer functions, resource scheduling and radio resource management, radio access control, and mobility management. The eNodeBs are connected to the SGWs through a user plane interface S1-U, and to the MMEs through a control plane interface S1-MME, and implement functions such as radio access bearer control by using the S1-AP protocol.

[0071] The MME is primarily responsible for all control plane functions of user session management, including Non-Access-Stratum (NAS) signaling and security, Tracking Area List management, and P-GW and SGW selection.

[0072] The SGW is mainly responsible for data transmission and forwarding for terminals, as well as route switching, and is used as a local mobility anchor when the terminal switches between eNodeBs (each terminal is served by only one SGW at a time).

[0073] The P-GW is used as an anchor for connecting to a packet data network (PDN) and is responsible for terminal IP address allocation, data packet filtering, rate control, and billing information generation.

[0074] The SGSN is an access point in a 2G access network, i.e. a GSM or EDGE Radio Access Network (GERAN), an access point in a 3G access network, i.e. a Universal Terrestrial Radio Access Network (UTRAN), or an access point in an EPS core network, i.e. an Evolved Packet Core (EPC), and is responsible for bearer establishment and data transfer from GERAN to EPC and from UTRAN to EPC.

[0075] The HSS stores subscription data for mobile subscribers.

[0076] The PCRF is responsible for charging management and policy control, including Policy and Charging Control (PCC) rules, and Quality of Service (QoS) rules.

[0077] The SCEF is responsible for providing network capabilities to third parties, for example receiving terminal-related parameters from third-party applications or subscribing to terminal-related events.

[0078] Figure 2 is a schematic architecture diagram of a 5G network. As shown in Figure 2, the 5G network includes a terminal, an access network (AN), a core network, and a data network (DN). The functions of the network entities are as follows:

[0079] The terminal is the gateway for interaction between the mobile subscriber and the network, providing basic computing and storage capabilities, displaying service windows to the user, and receiving inputs operated by the user. The terminal in the 5G network establishes signal and data connections to the AN using next-generation air interface technologies to transmit control signals and service data to the mobile network.

[0080] The AN, like a base station in a conventional network, is deployed in a position close to the terminal, provides network access function to authorized users in a certain area, and can use transport tunnels with different qualities to transmit user data based on user level and service requirements, etc. The AN can manage the resources of the AN, use the resources appropriately, provide access services to terminals according to requirements, and transfer control signals and user data between the terminals and the core network.

[0081] A DN is a data network that authenticates business services to a user. Typically, a client is located in a terminal and a server is located in a data network. A data network can be a private network such as a local area network, an external network that is not managed and controlled by an operator such as the Internet, or a dedicated network deployed by any operator.

[0082] The core network is responsible for maintaining subscription data of the mobile network, managing network elements in the mobile network, and providing functions such as session management, mobility management, policy management, and security authentication to the terminal. When the terminal needs to connect to the core network, the core network provides network access authentication to the terminal, when the terminal has a service request, the core network allocates network resources to the terminal, when the terminal moves, the core network updates network resources for the terminal, when the terminal is idle, the core network provides a fast recovery mechanism for the terminal, when the network is detached from the core network, the core network releases network resources for the terminal, or when the terminal has service data, the core network provides a data routing function for the terminal, for example, forwarding uplink data to the DN or receiving downlink data of the terminal from the DN, forwarding the downlink data to the AN, and sending the downlink data to the terminal.

[0083] The core network may be divided into a user plane and a control plane. The user plane includes a user plane function (UPF, User Plane Function), and the control plane may include an authentication server function (AUSF, Authentication Server Function), an access and mobility management function (AMF, Access and Mobility Management Function), a session management function (SMF, Session Management Function), a network slice selection function (NSSF, Network Slice Selection Function), a network exposure function (NEF, Network Exposure Function), a network function repository function (NRF, NF Repository Function), a unified data management (UDM, Unified Data Management), a policy control function (PCF, Policy Control function), and an application function (AF, Application Function), etc. The functions of the network entities are as follows:

[0084] The UPF forwards user data packets according to the routing rules of the SMF.

[0085] The AUSF performs security authentication of the terminal.

[0086] The AMF performs terminal access management and mobility management.

[0087] The SMF performs session management for terminals.

[0088] The NSSF selects a network slice for a terminal.

[0089] NEF exposes network functionality to third parties through APIs.

[0090] The NRF stores and selects network function entity information for different network elements.

[0091] The UDM performs user subscription context management.

[0092] The PCF performs user policy management.

[0093] The AF performs user application management.

[0094] It can be seen from the network architectures of 4G networks and 5G networks that the SCEF and NEF are capability exposing network elements in 4G networks and 5G networks, respectively, and are responsible for exposing network capabilities to third parties.

[0095] FIG. 3 is a schematic diagram of the capability disclosure network element's function support. As shown in FIG. 3, a third-party application interacts with the SCEF through the T8 interface to invoke an EPS network service, and interacts with the NEF through the Nnef interface to invoke a 5G network service. Some of the functions supported by the T8 interface and the Nnef interface are the same, and some of the functions are different. For example, the T8 interface and the Nnef interface can support the same function with different interface names, which are called equivalent functions. For example, the device trigger module and the trigger service module in FIG. 3 implement the same function in the 4G network and the 5G network. The T8 interface and the Nnef interface can also provide feature functions, which are called SCEF feature functions (e.g., an unlimited SMS module implemented only in the 4G network) and NEF feature functions (e.g., a third-party request module implemented only in the 5G network). These feature functions are not supported by other systems.

[0096] When network capability advertisement is implemented in an existing network, the following problems exist.

[0097] When the terminal supports access to both 4G and 5G networks, the terminal may switch between the 4G and 5G networks, or may register with the 4G or 5G network. It can be seen from FIG. 3 that when the terminal registers with different networks, the networks may expose different capabilities to the terminal. For example, when the terminal currently registers with the EPS network, the third-party application can only call APIs related to equivalent functions and SCEF feature functions, and has an error when calling another API, or when the terminal registers with the 5G network, the third-party application can only call APIs related to equivalent functions and NEF feature functions, and has an error when calling another API.

[0098] However, in the prior art, when a terminal switches between a 4G network and a 5G network, or registers with a 4G network or a 5G network, the third-party application cannot know the network in which the terminal is currently located, and in this case, cannot know the APIs that can be currently called. As a result, an API call error may be caused.

[0099] The technical solutions provided in this application aim to solve the above problems.

[0100] 4 is an interaction flow chart of a communication method according to the present application. As shown in FIG. 4, the interaction process of the method is as follows.

[0101] S401, a second network element sends an identification information of a terminal to a first network element.

[0102] The identification information may include an identification of a terminal, or an identification of a group of terminals. The terminal identification may identify a terminal. For example, the identification may be a terminal identity (e.g., IMSI, GPSI, MSISDN, or external ID). The group identification may identify a group of terminals. For example, the group identification may be a group identity of a terminal (e.g., IMSI group ID, or external group ID).

[0103] The group of a terminal may be a group to which the terminal belongs or a group in which the terminal is located, and the group may include one or more terminals. The group of a terminal may be determined by or obtained from subscription data of the terminal.

[0104] Optionally, the second network element may be an AF (i.e., a third-party application), a Services Capability Server (SCS), or an Application Server (AS). The first network element may be a capability publishing network element. For example, the first network element may be an SCEF, a NEF, or an integrated SCEF-NEF network element.

[0105] The SCEF-NEF integrated network element means that the physical deployment location of the SCEF and the NEF is on the same product or server. The interface between the SCEF and the NEF is a proprietary interface, and the interaction between the SCEF and the NEF does not need to be standardized.

[0106] Optionally, the second network element transmits identification information of the terminal by using a first message, and the first message may be used to request obtaining type information of a serving network corresponding to the identification information.

[0107] In an optional implementation, the first message is a subscription message. For example, the first message may be used to subscribe to an API support capability. By using the first message, after the API support capability is subscribed, when the API support capability of the first network element changes, the first network element may proactively notify the second network element that the API support capability of the first network element has changed.

[0108] The API support capability of a first network element is the available APIs (or services) provided by the first network element to a particular terminal or a particular group of terminals. The relationship between "API" and "service" is that a "service" is a function that can be provided by the first network element, and an "API" is a means of implementing these functions.

[0109] In an example, the first message is an API support capability subscription message, and the API support capability subscription message includes the identification information of the terminal. In addition, the API support capability subscription message may include an AF API capability, a callback uniform resource identifier (callback URI), etc.

[0110] The AF API capabilities are used to indicate the APIs supported by the AF. The uniform resource identifier is used by the first network element to address the callback address. When the API support capabilities of the first network element change, the first network element may proactively notify the callback address.

[0111] In another example, the first message is a first event subscription message or a first monitoring request message. The first message includes an identification of an API support capability change event and an identification information of a terminal. The first network element supports the API support capability change event, and the API support capability change event can be identified by APISupportCapability Change. After receiving the identification of the API support capability change event, the first network element can start to detect the API support capability change event. A specific process is described in the following embodiment 5.

[0112] Optionally, the first message further includes AF API capabilities, a callback URI, and the like.

[0113] It should be noted that if the first message includes a callback URI, when sending a second message corresponding to the first message, the first network element may send the second message to an address identified by the callback URI. In the following embodiments, the same process is performed when a callback URI is used. No further explanation is provided.

[0114] In another optional implementation, the first message is an inquiry message, for example, the first message is used to inquire about API support capabilities.

[0115] For example, the first message is an API support capability inquiry message, and the API support capability inquiry message includes the identification information of the terminal. Further, the API support capability inquiry message may further include an AF API capability.

[0116] Optionally, the second network element may perform step S401 in any one of the following cases, that is, the second network element is triggered to send the identification information of the terminal to the first network element.

[0117] Case 1: A second network element triggers invoking an API according to a service requirement.

[0118] For example, according to a service requirement, when calling an API, the second network element may send the terminal's identification information to the first network element before calling the API to obtain API information of the first network element.

[0119] For example, the third network element is a server of the Internet of Cars and needs to obtain the location information of the terminal. In this case, the third network element triggers the calling of the location API, sends the identification of the terminal to the first network element, and then determines the specific location API to be called based on the API information returned by the first network element.

[0120] Case 2: A preset timer expires.

[0121] Case 3: A second network element receives indication information from a first network element, which is used to indicate that an API support capability has changed.

[0122] When the second network element receives, from the first network element, the indication information used to indicate that the API support capability has changed, which indicates that the API support capability of the first network element has changed, the second network element may then send a first message to the first network element to obtain the latest API supported by the first network element.

[0123] S402. The first network element obtains, according to the identification information of the terminal, type information of a serving network corresponding to the identification information.

[0124] A serving network may be a network that serves a terminal or a group of terminals. Specifically, a serving network may be a network to which a terminal or a terminal in a group of terminals is currently registered. For example, for a terminal in dual registration mode, two networks serve the terminal simultaneously, and both of the two networks are networks that serve the terminal. When some terminals in a group of terminals are registered in a network and other terminals are registered in another network, both of the two networks are networks that serve the group of terminals. When all registered terminals in a group of terminals are registered in one network, the network to which the terminal is registered is the serving network for the group of terminals.

[0125] Furthermore, a serving network corresponding to the identity information may be a network that serves a terminal or a group of terminals identified by the identity information.

[0126] The serving network type information may include indication information used to indicate the type of the serving network or that the type of the serving network has changed.

[0127] For example, the type of the serving network may be a type of 3GPP core network, such as EPC, 5G Core Network (5GC), EPC / 5GC, both, non-5GC, 5G, 4G, 3G, or non-5G, or a combination thereof, or may be a 3GPP Radio Access Technology (RAT), such as UTRAN, CDMA2000, GERAN, LTE, NR, E-UTRAN, or NG-RAN. EPC / 5GC means that in some cases (e.g., in a dual registration mode, or when some terminals in a group of terminals are located in the EPC and some terminals are located in the 5GC), both EPC and 5GC serve a terminal or a group of terminals. The indication information used to indicate that the type of the serving network has changed may be indication information obtained when the type of the serving network corresponding to the identification information has changed. When obtaining the indication information, the first network element may determine that the type of the serving network corresponding to the identification information has changed.

[0128] In implementation, the first network element selects a corresponding manner for acquiring type information according to the received first message. For example, if the first message is a subscription message, the first network element subscribes to an event from the third network element, or if the first message is an inquiry message, the first network element sends an inquiry message to the third network element to inquire about the network type. For specific processing, please refer to the following embodiment of the interaction between the first network element and the third network element. Details will not be described.

[0129] S403. The first network element sends API information of the first network element based on the type information.

[0130] In response, the second network element receives the API information from the first network element.

[0131] The API information of the first network element is used to indicate the API support capability of the first network element. The second network element may determine the API support capability of the first network element based on the API information. The API information may be an API indication.

[0132] For example, when acquiring the type information, the first network element may determine a serving network of the terminal or group of terminals identified by the identification information, and the first network element may further send API information corresponding to the serving network to the second network element. For example, if the terminal is currently located in the EPC network, the 4G API is used as the available API, and the first network element sends information about the available API to the second network element. Furthermore, when the first message includes the AF API capability, the first network element selects an API supported by the AF from the available APIs based on the AF API capability, and sends information about the selected API to the second network element.

[0133] Optionally, the first network element transmits API information of the first network element by using the second message, The API information of the first network element may be used to indicate an API state of the first network element.

[0134] In an optional implementation, the API information of the first network element may be API status information, which may include at least one of the following information: indication information used to indicate that an API support capability has changed, a list of available APIs, a list of unavailable APIs, and a list of API statuses.

[0135] The indication information used to indicate that the API support capability has changed is used to indicate that the API support capability of the first network element has changed. Further, after receiving the indication information, the second network element may send a request message to the first network element to obtain the change content of the API support capability of the first network element.

[0136] The list of available APIs includes APIs currently supported by the first network element.

[0137] The list of unavailable APIs includes APIs that are not currently supported by the first network element.

[0138] The list of API states includes all APIs of the first network element. For example, the list of API states includes an identification of all APIs and a state corresponding to all APIs. The state corresponding to an API may be available or unavailable, or may be a suspended or running state, or may be a level of support. The identification of an API may identify the API.

[0139] For example, the list of API states includes two records, the first record being that API1 is available and the second record being that API2 is unavailable. In this case, after receiving the list of API states, the second network element may determine that currently API1 can be invoked but API2 cannot be invoked.

[0140] The suspended state means that the function corresponding to the API cannot be provided to the terminal, and the running state means that the function corresponding to the API can be provided normally.

[0141] For example, the list of API states includes two records, the first record being that API1 is in a suspended state, and the second record being that API2 is in a running state. In this case, after receiving the list of API states, the second network element may determine that currently API2 can be invoked, but API1 cannot be invoked.

[0142] There may be multiple levels of support, one level corresponding to one network type.

[0143] For example, it is assumed that level 1 corresponds to a 5G network and level 2 corresponds to a 4G network. If the list of API states includes level 1, when the second network element invokes an API from the first network element, information about level 1 is carried, and the first network element selects an API in the 5G network for the second network element based on level 1.

[0144] For example, each API identification in the list of API states corresponds to one API state, and the API state is used to indicate the state of the identified API. For example, the list of API states includes API identification API1, and the API corresponding to API1 is in an available state. In this case, it indicates that the API identified by API1 is currently available. After receiving the information, the second network element may call API1 according to the requirement.

[0145] Corresponding to the first message, the second message can be in the following two ways:

[0146] Method 1. When a first message is used to subscribe to an API support capability, a second message is used to announce the API support capability.

[0147] In an example, the second message is an API support capability notification message, where the API support capability notification message includes API information and further includes identification information of the terminal.

[0148] In another example, the second message is a first event notification message or a first monitoring response message, and the first event notification message or the first monitoring response message includes identification information of the terminal.

[0149] Method 2. When a first message is used to inquire about API support capabilities, a second message is used to respond to the first message.

[0150] For example, the second message is an API support capability response message, and the API support capability response message includes API information.

[0151] In another optional implementation, the API information of the first network element may alternatively be an API call result.

[0152] In this implementation, the first message may be an API call message and, correspondingly, the second message may be an API call response message.

[0153] Specifically, the second network element sends an API invocation message to the first network element, and the API invocation message is used to call a specific API. After receiving the API invocation message, the first network element obtains type information of a serving network, and determines whether the API requested by the second network element to be invoked is available based on the type information of the serving network, and sends a second message to the second network element, and the second message includes a result of the invocation of the API.

[0154] The API call result may be a call failure. If the call result is a call failure, the second message includes an error code. The error code may indicate that the cause of the API call failure is that the network never supports the API call, or that the network does not temporarily support the API call. If the error code indicates that the network does not temporarily support the API call, the second message may additionally include a timer value, and the second network element may set a timer based on the timer value and send the first message again after the timer expires.

[0155] S404. The second network element invokes the API based on the API information.

[0156] Optionally, the second network element selects an available API based on the API information, and invokes the selected API.

[0157] For example, it is assumed that the API information is a list of available APIs, and the list includes the identification of API1, API2, and API3. When receiving the API information, the second network element may know that API1, API2, and API3 are available. Then, the second network element selects API2 and API3 according to the service requirements, and invokes API2 and API3. Assuming that API1 is a location API, and an application in the second network element needs to use the location information of the terminal, the second network element may select API1 from the available API1, API2, and API3, and send an API1 invocation request to the first network element. It should be noted that in an alternative implementation, the API information sent by the first network element to the second network element in step S403 may be replaced with the type information of the serving network.

[0158] Further, in step S404, the second network element calls an API based on the serving network type information.

[0159] In this implementation, the first message sent by the second network element to the first network element in step S401 may be in the following two ways:

[0160] Method 1: Subscription messages

[0161] In an example, the first message may be a second event subscription message or a second monitoring request message. The first message includes an identification of a serving network type change event, and further includes identification information of the terminal. The first network element supports the serving network type change event, and the serving network type change event may be identified by a CN type change. After receiving the identification of the serving network type change event, the first network element may start to detect the serving network type change event. A specific process is described in the following embodiment 8.

[0162] Optionally, the first message may further include AF API capabilities, a callback URI, and the like.

[0163] After receiving the first message, the first network element detects a serving network type change event of the terminal. If the event is triggered, the first network element sends a second message. The second message is a second event notification message or a second monitoring response message, and the second message includes a serving network type change indication or a type of the serving network, and the second message further includes an identification of the terminal or group of the group. The serving network type change indication can be a CN type change indication.

[0164] After receiving the second message, the second network element selects an available API based on the serving network type change indication or the type of the serving network, and invokes the available API.

[0165] For example, if the second message received by the second network element includes a serving network type change indication, the second network element may determine that the serving network of the terminal has changed. Considering that the second network element remembers that the network in which the terminal was located before the serving network changed was a 4G network, the second network element may determine that the terminal has switched to a 5G network, and the second network element may select and call an API in the 5G network.

[0166] Method 2: Inquiry message

[0167] Optionally, the first message may be a terminal registration request message to the network, and the terminal registration request message to the network includes an identification of the terminal or an identification of the group. The second message is a terminal registration response message to the network.

[0168] After receiving the first message, the first network element inquires of the third network element about the type of the serving network.

[0169] After acquiring the network type, the first network element sends a terminal registration response message to the network to the second network element, where the terminal registration response message to the network includes the type of the serving network.

[0170] Further, the second network element selects an available API based on the type of the serving network, and invokes the available API.

[0171] For example, the type of serving network in the second message received by the second network element is EPC, i.e., a 4G network. In this case, the second network element may select and invoke a 4G API.

[0172] In this embodiment, after receiving the identification information of the terminal sent by the second network element, the first network element obtains the type information of the serving network corresponding to the identification information, and sends the API information or the type information of the serving network to the second network element based on the serving network type information, so that the second network element can select an available API based on the API information or the type information of the serving network, and call the available API, thereby avoiding API calling errors.

[0173] 5 is an interaction flow chart of another communication method according to the present application. As shown in FIG. 5, the interaction process of this method is as follows.

[0174] S501. A first network element sends a third message to a third network element, where the third message is used to request type information of a serving network of a terminal or a group of terminals.

[0175] When the third message is used to request type information of a serving network for a terminal, the third message may include an identification of the terminal, or when the third message is used to request type information of a serving network for a group of terminals, the third message may include an identification of the group of terminals.

[0176] The third network element may be an HSS-UDM integrated network element, a PCF-PCRF integrated network element, an MME, or an AMF, which is not limited.

[0177] In an example, when the third network element is an MME or an AMF, the first network element may first send the third message to an HSS-UDM integrated network element or a PCF-PCRF integrated network element, and then the HSS-UDM integrated network element or the PCF-PCRF integrated network element sends the third message to the MME or the AMF.

[0178] In another example, when the first network element receives a first message from the second network element, the first network element performs this step. Specifically, when the second network element requests to obtain the API information of the first network element or the type information of the serving network of the terminal, the first network element may send a third message to the third network element to obtain the type information of the serving network.

[0179] For nouns such as the serving network of a terminal or a group of terminals, type information, group identification, and terminal identification, please refer to the relevant descriptions in the embodiment shown in Figure 4. The details will not be described again in this specification.

[0180] In an optional implementation, the third message is a subscription message, which is used to subscribe to a type of serving network.

[0181] For example, the first message is a third event subscription message or a third monitoring request message. The third event subscription message or the third monitoring request message includes an identification of a serving network type change event. In addition, the third event subscription message or the third monitoring request message further includes an identification of a terminal or an identification of a group. The third network element supports a serving network type change event, and the serving network type change event may be identified by a CN type change. After receiving the identification of the serving network type change event, the third network element may start to detect the serving network type change event. A specific process is described in the following embodiment 1.

[0182] In another optional implementation, the third message is an inquiry message, which is used to inquire about the type of the serving network.

[0183] For example, the third message is a terminal registration request message to the network, and the terminal registration request message to the network includes an identification of the terminal or an identification of the group.

[0184] For example, the third message may specifically be a terminal context request message, in which the third network element supports a new context type, called a serving network type. The terminal context request message includes a serving network type context type identification, a terminal identification, or a group identification.

[0185] S502, a third network element sends type information based on a third message.

[0186] In an example, when the third message is a subscription message, the third network element may store information about a serving network type change event in the subscription message and detect whether the type of the serving network has changed. When detecting that the type of the serving network has changed, the third network element sends the serving network type information to the first network element.

[0187] In another example, when the third message is an inquiry message, the third network element inquires about the type of the serving network based on the third message and sends the type of the serving network to the first network element. Specifically, the third network element stores the type of the network serving the terminal or the group of terminals, and after receiving the third message, the third network element recognizes the identification of the terminal or the group of terminals in the third message, and then queries the stored information about the network type corresponding to the terminal or the group of terminals.

[0188] Optionally, the third network element transmits the type information by using a fourth message.

[0189] Corresponding to the third message, the fourth message has the following two forms:

[0190] Mode 1: When the third message is a subscription message, the fourth message is a notification message.

[0191] For example, the fourth message is a third event notification message or a third monitoring response message, and the third event notification message or the third monitoring response message includes a serving network type change indication or a type of the serving network, and further includes a terminal identification or a group identification. The serving network type change indication may be a CN type change indication.

[0192] Mode 2: When the third message is an inquiry message, the fourth message is a response message to the third message.

[0193] For example, the fourth message is a terminal registration response message to the network, and the terminal registration response message to the network includes type information of the serving network.

[0194] For example, the fourth message may specifically be a terminal context response message, where the terminal context response message includes the type of the serving network.

[0195] S503. The first network element sends API information of the first network element based on the type information.

[0196] The process for performing S503 is the same as the process for performing step S403, and reference may be made to step S403. Details will not be described again in this specification.

[0197] In this embodiment, the first network element sends a third message to the third network element to request type information of the serving network of the terminal or the group of terminals, and the third network element acquires the type information of the serving network of the terminal or the group of terminals based on the third message and sends the type information to the first network element, so that the first network element can acquire the type information of the serving network and send the API information of the first network element or the type information of the serving network to the second network element, and then the second network element can call an available API based on the API information or the type information of the serving network, thereby avoiding API call errors.

[0198] The following further illustrates the solution of the present application by using a specific processing example. Related embodiments are described below.

[0199] Embodiment 1 relates to a communication method between a first network element and a third network element, in which a subscription message is used to obtain type information of a serving network of a terminal or a group of terminals.

[0200] Embodiment 2 relates to a communication method between a first network element and a third network element, in which a subscription message is used to obtain type information of a serving network of a terminal or a group of terminals.

[0201] Embodiment 3 relates to a communication method between a first network element and a third network element, in which an inquiry message is used to obtain type information of a serving network of a terminal or a group of terminals.

[0202] Embodiment 4 relates to a communication method between a first network element and a third network element, in which an inquiry message is used to obtain type information of a serving network of a terminal or a group of terminals.

[0203] Embodiment 5 relates to a communication method between a first network element and a second network element, in which a subscription message is used, and the first network element returns API status information.

[0204] Embodiment 6 relates to a communication method between a first network element and a second network element, in which an inquiry message is used, and the first network element returns API status information.

[0205] Embodiment 7 relates to a communication method between a first network element and a second network element, in which an API calling method is used, and the first network element returns an API calling result.

[0206] Embodiment 8 relates to a communication method between a first network element and a second network element, in which a subscription message is used, and the first network element returns serving network type information.

[0207] Embodiment 9 relates to a communication method between a first network element and a second network element, in which an inquiry message is used, and the first network element returns serving network type information.

[0208] In the following embodiments 1 to 9, a SCEF-NEF integrated network element is used as an example of a first network element. In addition, in the following embodiments, a message including an identification of a terminal is used as an example. However, a message including an identification of a group of terminals is also applicable to the present application, and details will not be further described.

[0209] EMBODIMENT 1 Figure 6 is a flowchart of a communication method according to embodiment 1. As shown in Figure 6, the third network element is an HSS-UDM integrated network element or a PCF-PCRF integrated network element. The method is described below.

[0210] S601. A first network element sends a third event subscription message to a third network element.

[0211] The third event subscription message may include an identification of a serving network type change (CN type change) event and an identification of the terminal.

[0212] The identification of the CN type change event may be an event name, or the like.

[0213] After receiving the third event subscription message, the third network element may store related information about the CN type change event, where the related information about the CN type change event includes an identification of the terminal and an identification of the CN type change event.

[0214] Specifically, after receiving the third event subscription message, the third network element stores the identification of the terminal and the identification of the CN type change event carried in the third message.

[0215] When the terminal switches between the 4G network and the 5G network or registers in the 4G network or the 5G network, the following steps S604 to S605 is triggered and executed.

[0216] For example, when the location of the terminal changes, the terminal can switch between the 4G network and the 5G network, and the subsequent steps S602 to S605 are triggered and executed.

[0217] S602. The MME sends an Update Location Request message to a third network element.

[0218] S603. The AMF sends a Nudm_UECM_Registration, a Nudm_UECM_Deregistration, an Npcf_AMPolicyControl_Get, or an Npcf_AMPolicyControl_Delete message to the third network element.

[0219] Specifically, the Nudm_UECM_Registration message is used to register information about the network element serving the terminal in the UDM, the Nudm_UECM_Deregistration message is used to request that information about the network element serving the terminal stored in the UDM be deleted, the Npcf_AMPolicyControl_Get message is used to register information about the network element serving the network in the PCF, and the Npcf_AMPolicyControl_Delete message is used to request that information about the network element serving the terminal stored in the PCF be deleted.

[0220] In an example, when a terminal registers or switches to a 4G network, the MME may send a location update request message to a third network element, and the AMF may send a Nudm_UECM_Deregistration message and an Npcf_AMPolicyControl_Delete message to the third network.

[0221] In another example, when a terminal registers or switches to a 5G network, the AMF may send a Nudm_UECM_Registration message and an Npcf_AMPolicyControl_Get message to a third network element.

[0222] S604. The third network element detects a serving network type change event of the terminal.

[0223] In an example, when an HSS-UDM integrated network element receives a Location Update Request, Nudm_UECM_Registration, or Nudm_UECM_Deregistration message, the network element may detect that the type of serving network has changed.

[0224] In another example, when an integrated PCF-PCRF network element receives an Npcf_AMPolicyControl_Get or Npcf_AMPolicyControl_Delete message, the network element may detect that the type of serving network has changed.

[0225] The location update request, Nudm_UECM_Registration, Nudm_UECM_Deregistration, Npcf_AMPolicyControl_Get, and Npcf_AMPolicyControl_Delete messages include the identification of the terminal, and the HSS-UDM integrated network element, or the PCF-PCRF integrated network element may detect whether the type of serving network has changed based on the previously stored type of serving network, network element identification, terminal identification included in the message, and sender of the message.

[0226] For example, before the HSS-UDM integration network element receives the update location request message sent by the MME and the Nudm_UECM_Deregistration message sent by the AMF, the type of the serving network of the terminal stored by the HSS-UDM integration network element is 5GC, and the network element identification is the AMF name or AMF identifier. Based on the identification of the terminal in the received message, the location update request message is sent by the MME, and the network element identification of the AMF that sent the Nudm_UECM_Deregistration message is the stored AMF name or AMF identifier. In this case, the HSS-UDM integration network element may determine that the type of the serving network has changed and the terminal is now served by the EPC.

[0227] S605. The third network element sends a third event notification message to the first network element.

[0228] The third event notification message includes the identification of the terminal.

[0229] In addition, the third event notification message further includes a network type change indication (CN type change indication), or the type of the serving network.

[0230] In this embodiment, the first network element sends a third event subscription message to the third network element to request type information of the serving network of the terminal or the group of terminals, and the third network element acquires the type information of the serving network of the terminal or the group of terminals and sends the type information to the first network element, so that the first network element can acquire the type information of the serving network and send the API information of the first network element or the type information of the serving network to the second network element, and then the second network element can call an available API based on the API information or the type information of the serving network, thereby avoiding API call errors.

[0231] Based on embodiment 1, the present application further provides another communication method, which includes the above-mentioned steps S601 to S605, but has the following differences:

[0232] The third event subscription message in step S601 is replaced with a third monitoring request message, and the third event notification message in step S605 is replaced with a third monitoring response message. The third monitoring request message may include an identification of a serving network type change event (CN type change) and an identification of a terminal. The third monitoring response message includes an identification of a terminal and a network type change indication (CN type change indication) or a type of serving network.

[0233] EMBODIMENT 2 7 is a flowchart of a communication method according to embodiment 2. As shown in FIG. 7, the third network element is an MME or an AMF. The following steps are described by using an example in which the third network element is an AMF. The process related to the MME is described after step S705.

[0234] S701. A first network element sends a third event subscription message to an intermediate network element.

[0235] The intermediary network element may be an HSS-UDM integrated network element or a PCF-PCRF integrated network element. The intermediary network element in the following embodiments has the same meaning as the intermediary network element in this specification. Details are not repeated.

[0236] The third event subscription message may include an identification of a serving network type change event (CN type change) and an identification of the terminal.

[0237] The identification of the CN type change may be an event name or the like.

[0238] S702. The intermediary network element sends an event subscription message to a third network element.

[0239] The event subscription message may include an identification of a serving network type change event (CN type change) and an identification of the terminal.

[0240] It should be noted that this step is an optional step, i.e., the first network element may send the event subscription message to the third network element through an intermediate network element. Alternatively, instead of performing this step, the first network element sends the third event subscription message directly to the third network element.

[0241] After receiving the event subscription message sent by the intermediary network element, the third network element may store related information about the CN type change event, where the related information about the CN type change event includes an identification of the terminal and an identification of the CN type change event.

[0242] Specifically, after receiving the event subscription message sent by the intermediary network element, the third network element stores the identification of the terminal and the identification of the CN type change event carried in the event subscription message.

[0243] When the terminal switches between the 4G network and the 5G network, or registers on the 4G network or the 5G network, the subsequent steps S703 to S705 are triggered and executed.

[0244] For example, when the location of the terminal changes, the terminal may switch between the 4G network and the 5G network, and the subsequent steps S703 to S705 are triggered and executed.

[0245] S703. The third network element detects a serving network type change event of the terminal.

[0246] In an example, the third network element is an AMF. When the AMF receives a switching request from the MME, the switching request is used to request the terminal to switch from a 4G network to a 5G network, or when the AMF receives a registration request from the terminal, the AMF determines that the type of the serving network of the terminal has changed.

[0247] S704: The third network element sends an event notification message to the intermediate network element.

[0248] The event notification message may include an identification of the terminal. In addition, the event notification message may further include a serving network type change indication (CN type change indication), or a type of the serving network.

[0249] S705. The intermediary network element sends a third event notification message to the first network element.

[0250] The third event notification message may include an identification of the terminal, and further includes a serving network type change indication (CN type change indication), or a type of the serving network.

[0251] Please note that this step may also be an optional step, i.e., the third network element may also send the third event notification message or the third monitoring response message directly to the first network element.

[0252] If the third network element is an MME, the first network element sends a third monitoring request message to the intermediate network element in step S701, where the third monitoring request message may include an identification of a serving network type change event (CN type change) and an identification of a terminal. Then, in step S702, the intermediate network element sends a monitoring request message to the third network element, where the monitoring request message includes an identification of a serving network type change event (CN type change) and an identification of a terminal. Then, the third network element stores related information about the CN type change event. Then, the third network element detects a serving network type change event of the terminal. Specifically, after the MME receives a terminal switching request from the AMF, or after the MME receives a connection request from the terminal, the MME detects that the type of the serving network has changed, and then performs the subsequent steps. Then, the third network element sends a monitoring response message to the intermediate network element. The monitoring response message may include an identification of the terminal. In addition, the message further includes a serving network type change indication (CN type change indication), or the type of the serving network. Then, the intermediary network element sends a third monitoring response message to the first network element. The third monitoring response message may include the identification of the terminal. In addition, the third monitoring response message further includes a serving network type change indication (CN type change indication), or the type of the serving network.

[0253] It is noted that the specific process for performing step S702 may be as follows:

[0254] When the terminal is a terminal in dual registration mode, the intermediary network element may send the event subscription message to both the MME and the AMF. When the terminal is not a terminal in dual registration mode, if the network element serving the terminal is an MME, the intermediary network element sends the event subscription message to the MME, or if the network element serving the terminal is an AMF, the intermediary network element sends the event subscription message to the AMF.

[0255] In this embodiment, the first network element sends a third event subscription message or a third monitoring request message to a third network element to request type information of a serving network of a terminal or a group of terminals, and the third network element acquires the type information of the serving network of the terminal or the group of terminals and sends the type information to the first network element, so that the first network element can acquire the type information of the serving network and send the API information of the first network element or the type information of the serving network to the second network element, and then the second network element can call an available API based on the API information or the type information of the serving network, thereby avoiding API call errors.

[0256] EMBODIMENT 3 Figure 8 is an interaction flowchart according to embodiment 3. As shown in Figure 8, the third network element is an HSS-UDM integrated network element or a PCF-PCRF integrated network element. The trigger condition of this embodiment is that the terminal switches between a 4G network and a 5G network, or registers on a 4G network or a 5G network.

[0257] Specifically, when a terminal registers with a 4G network or a 5G network, or when the terminal switches between 4G and 5G, the AMF or MME serving the terminal changes, and the following steps S801 to S805 are triggered and executed.

[0258] For example, when the location of the terminal changes, the terminal may switch between the 4G network and the 5G network.

[0259] S801. The MME sends a location update request message to a third network element.

[0260] S802. The AMF sends a Nudm_UECM_Registration, Nudm_UECM_Deregistration, Npcf_AMPolicyControl_Get, or Npcf_AMPolicyControl_Delete message to the third network element.

[0261] Specifically, the Nudm_UECM_Registration message is used to register information about the network element serving the terminal in the UDM, the Nudm_UECM_Deregistration message is used to request that information about the network element serving the terminal stored in the UDM be deleted, the Npcf_AMPolicyControl_Get message is used to register information about the network element serving the network in the PCF, and the Npcf_AMPolicyControl_Delete message is used to request that information about the network element serving the terminal stored in the PCF be deleted.

[0262] Specifically, when a terminal registers or switches to a 4G network, the MME may send a location update request message to a third network element, and the AMF may send a Nudm_UECM_Deregistration message and an Npcf_AMPolicyControl_Delete message to the third network element.

[0263] When the terminal registers to or switches to a 5G network, the AMF may send a Nudm_UECM_Registration message and an Npcf_AMPolicyControl_Get message to a third network element.

[0264] The third network element stores an identification of the network element serving the terminal based on the received message.

[0265] S803. The first network element sends a terminal registration request message to a third network element, where the message includes an identification of the terminal.

[0266] The first network element may periodically send a terminal registration request message to the network to the third network element, or may send a terminal registration request message to the network after receiving a request from the AF.

[0267] S804. The third network element determines a type of a serving network based on the identification of the terminal in the message.

[0268] Specifically, the third network element determines the type of serving network based on a stored identity of the network element serving the terminal.

[0269] S805. The third network element sends a network terminal registration response message to the first network element, where the message includes a type of the serving network.

[0270] In this embodiment, the first network element sends a terminal registration request message to a network to a third network element to request a type of serving network for a terminal or a group of terminals, and the third network element acquires the type of serving network for the terminal or group of terminals and sends the type of serving network to the first network element, so that the first network element can acquire the type of serving network and send API information or serving network type information of the first network element to the second network element, and then the second network element can call an available API based on the API information or serving network type information, thereby avoiding API call errors.

[0271] EMBODIMENT 4 Figure 9 is an interaction flowchart according to embodiment 4. As shown in Figure 9, the third network element is an MME or an AMF. The trigger condition of this embodiment is that the terminal switches between a 4G network and a 5G network, or registers in a 4G network or a 5G network.

[0272] Specifically, when a terminal registers with a 4G network or a 5G network, or when the terminal switches between a 4G network and a 5G network, the AMF or MME serving the terminal changes, and the following steps S901 to S905 are triggered and executed.

[0273] For example, when the location of the terminal changes, the terminal may switch between the 4G network and the 5G network.

[0274] S901. A first network element sends a terminal registration request message to an intermediate network element, where the message includes an identification of the terminal.

[0275] The first network element may periodically send a terminal registration request message to the network to the intermediate network element, or may send a terminal registration request message to the network after receiving a request from the AF.

[0276] S902. The intermediary network element sends a terminal registration request message to a third network element.

[0277] Please note that this step is an optional step, ie, the first network element may alternatively send the terminal registration to network request message directly to the third network element.

[0278] S903, the third network element determines a type of a serving network for the terminal.

[0279] For example, if the third network element is an MME, the third network element immediately determines that the type of the serving network is EPC, or if the third network element is an AMF, the third network element immediately determines that the type of the serving network is 5GC.

[0280] S904. The third network element sends a terminal registration response message to the network to the intermediate network element.

[0281] The terminal registration response message to the network includes the type of the serving network.

[0282] S905. The intermediary network element sends a terminal registration response message to the first network element, where the message includes a type of the serving network.

[0283] Please note that this step is also an optional step, ie the third network element may alternatively send a terminal registration response message to the network directly to the first network element.

[0284] In this embodiment, the first network element sends a terminal registration request message to a network to a third network element to request a type of serving network for a terminal or a group of terminals, and the third network element acquires the type of serving network for the terminal or group of terminals and sends the type of serving network to the first network element, so that the first network element can acquire the type of serving network and send API information or type information of the first network element to the second network element, and then the second network element can call an available API based on the API information or type information of the serving network, thereby avoiding API call errors.

[0285] EMBODIMENT 5 Figure 10 is an interaction flowchart according to embodiment 5. As shown in Figure 10, the first network element and the second network element interact as follows.

[0286] S1001. A second network element sends an API support capability subscription message to a first network element.

[0287] The API support capabilities subscription message may be used to subscribe to API support capabilities.

[0288] The message includes the identification of the terminal, and reference may be made to the relevant descriptions in the above embodiments. Details will not be described further.

[0289] S1002. A first network element detects a serving network type change event of a terminal.

[0290] Step S1002 may be implemented with reference to the method according to embodiment 1 or embodiment 2, and details will not be further described.

[0291] S1003. The first network element obtains type information of a serving network, and obtains API information based on the type information.

[0292] The API information may be an API indication. In addition, for the serving network and type information, please refer to the relevant description in the above embodiment. Details will not be further described.

[0293] The first network element acquiring the type information of the serving network in S1003 may be implemented with reference to the method according to embodiment 1 or 2. Details will not be further described.

[0294] In an example, when the type of the serving network of the terminal recorded by the first network element is EPC, after the first network element receives a serving network type change indication sent by the third network element, the first network element determines that the serving network of the terminal has changed, and then detects that an API support capability change event has occurred. The first network element generates API information based on the type information, for example, generates a list of available APIs. Assuming that the terminal moves from a 4G network to a 5G network, after the first network element detects that an API support capability change event has occurred, the first network element may determine that the EPC API is unavailable and the 5G API is available.

[0295] S1004. The first network element sends an API support capability notification message to the second network element.

[0296] Optionally, the API support capability notification message includes API status information and an identification of the terminal.

[0297] S1005. The second network element selects an available API based on the API state information, and invokes the available API.

[0298] For example, the API status information is a list of available APIs. After receiving the list of available APIs, the second network element may select an API in the list of available APIs and invoke the API. For example, the list of available APIs includes two records, the first record is API1 and the second record is API2. API1 is a location API. When an application in the second network element needs to use the location information of the terminal, the second network element may send an API1 invocation request to the first network element.

[0299] In this embodiment, after receiving the API support capability subscription message, the first event subscription message, or the first monitoring request message sent by the second network element, the first network element obtains type information of a serving network corresponding to the terminal, and sends API information to the second network element based on the type information of the serving network, so that the second network element can select an available API based on the API information and call the available API, thereby avoiding API calling errors.

[0300] Based on embodiment 5, the present application further provides another communication method. The method includes the above-mentioned steps S1001 to S1005, but has the following differences: the API support capability subscription message in step S1001 is replaced with an event subscription message, and the API support capability notification message in step S1004 is replaced with an event notification message.

[0301] According to embodiment 5, the present application further provides another communication method. The method includes the above-mentioned steps S1001 to S1005, but has the following differences: the API support capability subscription message in step S1001 is replaced with a monitoring request message, and the API support capability notification message in step S1004 is replaced with a monitoring response message.

[0302] The event subscription message or monitor request message may be used to subscribe to the API support capabilities, and the event subscription message or monitor request message may include an identification of an API Support Capability Change event.

[0303] Optionally, the event notification message or the monitor response message includes API status information and an identification of the terminal.

[0304] EMBODIMENT 6 Figure 11 is an interaction flowchart according to embodiment 6. As shown in Figure 11, the first network element and the second network element interact as follows:

[0305] S1101. A second network element sends an API support capability inquiry message to a first network element.

[0306] The message includes the identity of the terminal.

[0307] S1102. The first network element obtains a type of a serving network of the terminal based on the API support capability inquiry message.

[0308] For example, after receiving the API support capability inquiry message, the first network element may send an inquiry message to the third network element to obtain the type of the serving network of the terminal. For details, please refer to the methods according to embodiments 3 and 4. Details will not be further described.

[0309] S1103. The first network element determines API information based on a type of a serving network of the terminal.

[0310] For API information, please refer to the relevant descriptions in the above embodiments, and details will not be further described.

[0311] For example, when the type of the serving network of the terminal is EPC, the first network element may determine that the EPC API is available and the 5GC API is unavailable, and then generate API information, e.g., a list of available APIs.

[0312] S1104. The first network element sends an API support capability response message to the second network element.

[0313] The message includes API information.

[0314] S1105. The second network element selects, based on the API information, an available API, and invokes the available API.

[0315] For the implementation of step S1105, please refer to the relevant descriptions in the above embodiments, and details will not be further described.

[0316] In this embodiment, after receiving the API support capability inquiry message sent by the second network element, the first network element obtains type information of the serving network corresponding to the terminal, and sends API information to the second network element based on the type information of the serving network, so that the second network element can select an available API based on the API information and call the available API, thereby avoiding API calling errors.

[0317] EMBODIMENT 7 Figure 12 is an interaction flowchart according to embodiment 7. As shown in Figure 12, the first network element and the second network element interact as follows.

[0318] S1201. A first network element subscribes to a type of a serving network of a terminal from a third network element.

[0319] In response, the third network element may transmit the type of the serving network of the terminal to the first network element, for example, by using a notification message for the subscription event.

[0320] S1202. A second network element sends an API call request to a first network element.

[0321] The API call request is used to call a specific API.

[0322] Optionally, when the first network element receives the API call request and the first network element does not store the type of the serving network of the terminal, step S1203 is executed.

[0323] S1203. The first network element acquires a type of a serving network of the terminal by interacting with a third network element.

[0324] Step S1203 may be implemented by using the method according to embodiment 3 or 4. Details will not be further described.

[0325] S1204. The first network element returns an API call result to the second network element based on a type of a serving network of the terminal.

[0326] For example, if the type of the serving network of the terminal is EPC and the API that the second network element requests to call is a 4G API, the first network element normally feeds back the API call response to the second network element.

[0327] If the type of the serving network of the terminal is EPC and the API that the second network element requests to call is a 5G API, the first network element feeds back an API call response including an error code and a timer to the second network element.

[0328] The error code may indicate that it is permanently available or that it is temporarily unavailable. A timer is included only when the error code is temporarily unavailable.

[0329] S1205. The second network element determines a calling method based on the API calling result.

[0330] The calling scheme may include whether the API is called again when the timer expires or whether another API with similar functionality as the API is called is called.

[0331] Specifically, if the first network element normally feeds back the API call response to the second network element, the second network element may continue to execute the API call processing according to the existing procedure. If the first network element normally feeds back the API call response including the error code and the timer to the second network element, after the timer expires, the second network element selects to continue to call the original API or select and call another API having a similar function to the API based on the error code and the timer.

[0332] EMBODIMENT 8 Figure 13 is an interaction flowchart according to embodiment 8. As shown in Figure 13, the first network element and the second network element interact as follows.

[0333] S1301. A second network element sends a second event subscription message to a first network element.

[0334] The second event subscription message includes an identification of the serving network type change event and an identification of the terminal.

[0335] The serving network type change event may be a CN type change.

[0336] S1302. A first network element detects a serving network type change event of a terminal by interacting with a third network element.

[0337] For specific examples, please refer to embodiment 1 and embodiment 2.

[0338] S1303. The first network element sends a second event notification message to the second network element, where the second event notification message includes a serving network type change indication, or a type of the serving network, and further includes an identification of the terminal.

[0339] The serving network type change indication may be a CN type change indication.

[0340] S1304. The second network element selects an available API based on the serving network type change indication or the type of the serving network, and invokes the available API.

[0341] In this embodiment, after receiving the second event subscription message or the second monitoring request message sent by the second network element, the first network element sends a serving network type change indication or the type of the serving network to the second network element, so that the second network element can select an available API and call the available API based on the serving network type change indication or the type of the serving network, thereby avoiding API calling errors.

[0342] Based on embodiment 8, the present application further provides another communication method. The method includes the above-mentioned steps S1301 to S1304, but has the following differences: the second event subscription message in step S1301 is replaced with a second monitor request message, and the second event notification message in step S1303 is replaced with a second monitor response message.

[0343] The second monitoring request message includes an identification of a serving network type change event and an identification of the terminal. The second monitoring response message includes a serving network type change indication, or a type of the serving network, and further includes an identification of the terminal.

[0344] EMBODIMENT 9 Figure 14 is an interaction flowchart according to embodiment 9. As shown in Figure 14, the first network element and the second network element interact as follows.

[0345] S1401. A second network element sends a terminal registration request message to a first network element, where the message includes an identification of the terminal.

[0346] S1402. A second network element acquires a type of a serving network of a terminal by interacting with a third network element.

[0347] S1403. The first network element sends a terminal registration response message to a network to the second network element, where the message includes a type of a serving network of the terminal.

[0348] S1404. The second network element selects an available API based on a type of a serving network of the terminal, and invokes the available API.

[0349] For example, the AF supports 4G-related API capabilities and 5G-related API capabilities, and if the type of the serving network of the terminal received by the AF is EPC, the AF determines that the 4G-related API is an available API.

[0350] As another example, if the type of the serving network of the terminal received by the AF is EPC, the AF determines that an API related to an equivalent function or a SCEF feature function is an available API.

[0351] In this embodiment, after receiving a terminal registration request message to a network sent by the second network element, the first network element sends the type of the serving network to the second network element, so that the second network element can select an available API and call the available API based on the type of the serving network, thereby avoiding API calling errors.

[0352] It should be pointed out that for the nouns and terms used in the above embodiments, reference may be made to the relevant descriptions in the embodiment shown in Figure 4. Details will not be further described.

[0353] Figure 15 is a structural diagram of a module in a first communication device according to the present application. The device is applied to a first network element and configured to implement the functions of the first network element in Figure 4 and Figures 10 to 14. As shown in Figure 15, the device includes: A receiving module 1501 configured to receive identification information of a terminal from a second network element, the identification information including an identification of the terminal or an identification of a group of terminals; A processing module 1502 configured to obtain type information of a serving network corresponding to the identification information based on the identification information; a sending module 1503 configured to send application programming interface API information of the first network element based on the type information; Includes.

[0354] Additionally, the type information includes indication information used to indicate the type of serving network or that the type of serving network has changed.

[0355] Furthermore, the identification information is included in the first message and the API information is included in the second message.

[0356] Further, the first message is used to subscribe to an API support capability, and the second message is used to announce the API support capability; or The first message is used to inquire about the API support capabilities, and the second message is used to respond to the first message.

[0357] Further, the API information includes API status information or API invocation results, and the API status information includes at least one of the following information: indication information used to indicate that an API support capability has changed, a list of available APIs, a list of unavailable APIs, and a list of API status; The list of API states includes an identification of the API and the state of the API.

[0358] Further, the processing module 1502 may, inter alia: sending a third message to a third network element, the third message being used to request type information; receiving type information from a third network element; The present invention is configured to:

[0359] Figure 16 is a structural diagram of a module in a second communication device according to the present application. The device is applied to a second network element and configured to implement the functions of the second network element in Figure 4 and Figures 10 to 14. As shown in Figure 16, the device includes: A sending module 1601 configured to send identification information of a terminal to a first network element, the identification information including an identification of the terminal or an identification of a group of terminals; A receiving module 1602 configured to receive application programming interface API information of the first network element from the first network element; a processing module 1603 configured to call the API based on the API information; Includes.

[0360] Furthermore, the identification information is included in the first message and the API information is included in the second message.

[0361] Further, the first message is used to subscribe to an API support capability, and the second message is used to announce the API support capability; or The first message is used to inquire about the API support capabilities, and the second message is used to respond to the first message.

[0362] Further, the API information includes API status information or API invocation results, The API status information includes at least one of the following information: indication information used to indicate that an API support capability has changed; a list of available APIs; a list of unavailable APIs; and a list of API statuses; The list of API states includes an identification of the API and the state of the API.

[0363] Further, the processing module 1601 may, inter alia: When the second network element triggers calling the API according to the service requirements, sending identification information of the terminal to the first network element; sending an identification of the terminal to the first network element when the preset timer expires; or When the second network element receives, from the first network element, indication information used to indicate that the API support capability has changed, the second network element sends identification information of the terminal to the first network element. It is configured as follows.

[0364] Further, the processing module 1603 may, inter alia: Based on the API information, select the available APIs, Call the selected API It is configured as follows.

[0365] Figure 17 is a structural diagram of a module in a third communication device according to the present application. The device is applied to a first network element and configured to implement the functions of the first network element in Figures 5 and 6 to 9. As shown in Figure 17, the device includes: A sending module 1701 configured to send a third message to a third network element, the third message being used to request type information of a serving network for a terminal or a group of terminals; a receiving module 1702 configured to receive type information from a third network element; A processing module 1703 configured to send application programming interface API information of the first network element based on the type information by using the sending module 1701; Includes.

[0366] Additionally, the type information includes indication information used to indicate the type of serving network or that the type of serving network has changed.

[0367] Further, type information is included in the fourth message, The third message is a subscription message, which is used to subscribe to a type of serving network; and the fourth message is a notification message; or The third message is an inquiry message, which is used to inquire about the type of the serving network, and the fourth message is a response message to the third message.

[0368] Furthermore, when the third message is used to request the type information of the serving network of the terminal, the third message includes an identification of the terminal; or When the third message is used to request type information of a serving network for a group of terminals, the third message includes an identification of the group of terminals.

[0369] Further, the API information includes API status information or API invocation results, The API status information includes at least one of the following information: indication information used to indicate that an API support capability has changed; a list of available APIs; a list of unavailable APIs; and a list of API statuses; The list of API states includes an identification of the API and the state of the API.

[0370] moreover, the third network element is an integrated HSS-UDM network element, or the third network element is an integrated PCF-PCRF network element, or The third network element is an MME, or the third network element is an AMF.

[0371] 18 is a structural diagram of a module in a fourth communication device according to the present application. The device is applied to a third network element and configured to implement the functions of the third network element in FIG. 5 and FIG. 6 to FIG. 9. As shown in FIG. 18, the device includes a receiving module 1801, a sending module 1802 and a processing module 1803.

[0372] The receiving module 1801 is configured to receive a third message from the first network element, where the third message is used to request type information of a serving network for a terminal or a group of terminals.

[0373] The processing module 1803 is configured to transmit, by using the transmitting module 1802, the type information based on the third message.

[0374] Additionally, the type information includes indication information used to indicate the type of serving network or that the type of serving network has changed.

[0375] Further, type information is included in the fourth message, The third message is a subscription message, which is used to subscribe to a type of serving network; and the fourth message is a notification message; or The third message is an inquiry message, which is used to inquire about the type of the serving network, and the fourth message is a response message to the third message.

[0376] Further, the processing module 1803 may, inter alia: When detecting that the type of the serving network has changed, by using the transmitting module 1802, transmitting information used to indicate the type of the serving network. It is configured as follows.

[0377] Further, the processing module 1803 may, inter alia: Querying a type of a serving network based on the third message; Transmitting the type of serving network by using the transmitting module 1802 It is configured as follows.

[0378] Furthermore, the third network element is an integrated HSS-UDM network element, or the third network element is an integrated PCF-PCRF network element, or The third network element is an MME, or the third network element is an AMF.

[0379] Figure 19 is a physical block diagram of a first communication device. The device may be a first network element or a device disposed on the first network element, and is configured to implement the functions of the first network element in Figures 4 and 10 to 14. As shown in Figure 19, the device includes a memory and a processor.

[0380] The memory 1901 is configured to store program instructions.

[0381] The processor 1902 is configured to execute the following method: receiving, from a second network element, an identification information of the terminal, the identification information including an identification of the terminal or an identification of a group of terminals; Obtaining type information of a serving network corresponding to the identification information according to the identification information; Sending application programming interface API information of the first network element based on the type information; The device is configured to execute program instructions in memory 1901 to perform the following:

[0382] Additionally, the type information includes indication information used to indicate the type of serving network or that the type of serving network has changed.

[0383] Furthermore, the identification information is included in the first message and the API information is included in the second message.

[0384] Further, the first message is used to subscribe to an API support capability, and the second message is used to announce the API support capability; or The first message is used to inquire about the API support capabilities, and the second message is used to respond to the first message.

[0385] Further, the API information includes API status information or API invocation results, The API status information includes at least one of the following information: indication information used to indicate that an API support capability has changed; a list of available APIs; a list of unavailable APIs; and a list of API statuses; The list of API states includes an identification of the API and the state of the API.

[0386] Further, the processor 1902 may, inter alia: sending a third message to a third network element, the third message being used to request type information; receiving type information from a third network element; The present invention is configured to:

[0387] Figure 20 is a physical block diagram of a second communication device. The device may be a second network element or a device disposed on the second network element, and is configured to implement the functions of the second network element in Figures 4 and 10 to 14. As shown in Figure 20, the device includes a memory and a processor.

[0388] The memory 2001 is configured to store program instructions.

[0389] The processor 2002 is configured to execute the following method: transmitting an identification information of the terminal to the first network element, the identification information including an identification of the terminal or an identification of a group of terminals; receiving application programming interface API information of the first network element from the first network element; Based on the API information, call the API The device is configured to execute program instructions in memory 2001 to perform the following:

[0390] Furthermore, the identification information is included in the first message and the API information is included in the second message.

[0391] Further, the first message is used to subscribe to an API support capability, and the second message is used to announce the API support capability; or The first message is used to inquire about the API support capabilities, and the second message is used to respond to the first message.

[0392] Further, the API information includes API status information or API invocation results, The API status information includes at least one of the following information: indication information used to indicate that an API support capability has changed; a list of available APIs; a list of unavailable APIs; and a list of API statuses; The list of API states includes an identification of the API and the state of the API.

[0393] In addition, the processor 2002 may, inter alia: When the second network element triggers calling the API according to the service requirements, sending identification information of the terminal to the first network element; sending an identification of the terminal to the first network element when the preset timer expires; or When the second network element receives, from the first network element, indication information used to indicate that the API support capability has changed, the second network element sends identification information of the terminal to the first network element. It is configured as follows.

[0394] In addition, the processor 2002 may, inter alia: Based on the API information, select the available APIs, Call the selected API It is configured as follows.

[0395] Figure 21 is a physical block diagram of a third communication device. The device may be a first network element or a device disposed on the first network element, and is configured to implement the functions of the first network element in Figures 5 and 6 to 9. As shown in Figure 21, the device includes a memory and a processor.

[0396] The memory 2101 is configured to store program instructions.

[0397] The processor 2102 is configured to execute the following method: sending a third message to a third network element, the third message being used to request type information of a serving network for the terminal or group of terminals; receiving type information from a third network element; Sending application programming interface API information of the first network element based on the type information; The device is configured to execute program instructions in memory 2101 to perform the following:

[0398] Additionally, the type information includes indication information used to indicate the type of serving network or that the type of serving network has changed.

[0399] Further, type information is included in the fourth message, The third message is a subscription message, which is used to subscribe to a type of serving network; and the fourth message is a notification message; or The third message is an inquiry message, which is used to inquire about the type of the serving network, and the fourth message is a response message to the third message.

[0400] Furthermore, when the third message is used to request the type information of the serving network of the terminal, the third message includes an identification of the terminal; or When the third message is used to request type information of a serving network for a group of terminals, the third message includes an identification of the group of terminals.

[0401] Further, the API information includes API status information or API call results, The API status information includes at least one of the following information: indication information used to indicate that an API support capability has changed; a list of available APIs; a list of unavailable APIs; and a list of API statuses; The list of API states includes an identification of the API and the state of the API.

[0402] Furthermore, the third network element is an integrated HSS-UDM network element, or the third network element is an integrated PCF-PCRF network element, or The third network element is an MME, or the third network element is an AMF.

[0403] Figure 22 is a physical block diagram of a fourth communication device. The device may be a third network element or a device disposed on the third network element, and is configured to implement the functions of the third network element in Figures 5 and 6 to 9. As shown in Figure 22, the device includes a memory and a processor.

[0404] The memory 2201 is configured to store program instructions.

[0405] The processor 2202 is configured to execute the following method: receiving a third message from the first network element, the third message being used to request type information of a serving network for the terminal or group of terminals; transmitting type information based on the third message; The device is configured to execute program instructions in memory 2201 to perform the following:

[0406] Additionally, the type information includes indication information used to indicate the type of serving network or that the type of serving network has changed.

[0407] Further, type information is included in the fourth message, The third message is a subscription message, which is used to subscribe to a type of serving network; and the fourth message is a notification message; or The third message is an inquiry message, which is used to inquire about the type of the serving network, and the fourth message is a response message to the third message.

[0408] In addition, the processor 2202 may, inter alia: Transmitting information used to indicate the type of serving network when it detects that the type of serving network has changed It is configured as follows.

[0409] In addition, the processor 2202 may, inter alia: Querying a type of a serving network based on the third message; Sends the serving network type It is configured as follows.

[0410] Furthermore, the third network element is an integrated HSS-UDM network element, or the third network element is an integrated PCF-PCRF network element, or The third network element is an MME, or the third network element is an AMF.

[0411] The present application further provides a communication system, which includes the above-mentioned first communication device, a second communication device, a third communication device and a fourth communication device.

[0412] All or some of the above-described embodiments may be implemented by using software, hardware, firmware, or any combination thereof. When software is used to implement the embodiments, the embodiments may be fully or partially implemented in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the present invention applicationThe procedures or functions according to the embodiments of the present invention are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired manner (e.g., through coaxial cable, optical fiber, or digital subscriber line (DSL)) or in a wireless manner (e.g., through infrared, radio, or microwave). The computer-readable storage medium may be any available medium accessible by a computer, or a data storage device, such as a server or data center, that incorporates one or more available media. The available medium may be a magnetic medium (e.g., a soft disk, a hard disk, or a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

[0413] Those skilled in the art should understand that the embodiments of the present application may be provided as a method, a system, or a computer program product. Thus, the present application may use the form of a hardware-only embodiment, a software-only embodiment, or an embodiment using a combination of software and hardware. Furthermore, the present application may use the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk memory, CD-ROM, and optical memory) that includes computer-usable program code.

[0414] The present application has been described with reference to flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present application. It should be understood that computer program instructions can be used to implement each process and / or each block in the flowcharts and / or block diagrams, and combinations of processes and / or blocks in the flowcharts and / or block diagrams. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or any other programmable data processing device to generate a machine, such that the instructions executed by the processor of the computer or any other programmable data processing device generate an apparatus for implementing a particular function in one or more processes in the flowcharts and / or in one or more blocks in the block diagrams.

[0415] These computer program instructions, which can instruct a computer or any other programmable data processing device to operate in a particular manner, can be stored in a computer readable memory such that the instructions stored in the computer readable memory generate an artefact that includes an instruction apparatus that implements a specified function in one or more processes in the flowcharts and / or in one or more blocks in the block diagrams.

[0416] These computer program instructions may be loaded onto a computer or another programmable data processing device such that a sequence of operations and steps are executed on the computer or another programmable device to generate a computer-implemented process. Thus, the instructions executed on the computer or another programmable device provide steps for implementing a particular function in one or more processes in the flowcharts and / or in one or more blocks in the block diagrams.

[0417] Some of the present applications Fruit Although embodiments have been described, those skilled in the art can make changes and modifications to these embodiments once they learn the basic concept of the present invention. ,fruit It is intended that the present application be construed as covering the embodiments, as well as all variations and modifications that fall within the scope of the present application.

[0418] Obviously, those skilled in the art will appreciate that Example Various modifications and variations can be made to this application without departing from the scope of the present invention. This application is intended to cover these modifications and variations of this application, provided that they fall within the scope of protection defined by the following claims and their equivalent technologies.

Claims

1. A method for providing a method for a wireless LAN system comprising: receiving, by a first network element, a first message from a second network element, the first message including identification information, the identification information including an identification of a terminal or an identification of a group of terminals; sending, by the first network element, a third message to a third network element, the third message being used to request type information of a serving network for the terminal or the group, and the third message including the identification information; transmitting, by the third network element, the type information to the first network element based on the third message; receiving, by the first network element, the type information from the third network element; sending, by the first network element, to the second network element based on the type information, a second message corresponding to the first message, the second message including application programming interface (API) information of the first network element; Including, the type of the serving network includes a Third Generation Partnership Project (3GPP) core network type of the serving network; The first network element is a Service Capability Exposure Function (SCEF), or a Network Exposure Function (NEF), or an SCEF-NEF integration network element; the second network element is a Third Party Application (AF), a Services Capability Server (SCS), or an Application Server (AS); the third network element is a Home Subscriber Server (HSS) and Unified Data Management (UDM) integration network element; and The first message is used to subscribe to an API support capability and the second message is used to notify the API support capability, or the first message is used to inquire about an API support capability and the second message is used to respond to the first message. Communication methods.

2. 2. The method of claim 1, wherein the type of the 3GPP core network includes an Evolved Packet Core (EPC), a 5G Core Network (5GC), or an EPC / 5GC.

3. the type information being included in a fourth message; the third message is a subscription message, the subscription message being used to subscribe to the type of serving network, and the fourth message is a notification message; or The third message is an inquiry message, the inquiry message is used to inquire about the type of the serving network, and the fourth message is a response message to the third message. The method according to claim 1 or 2.

4. receiving, by a third network element, a third message from the first network element, the third message being used to request type information of a serving network for a terminal or a group of terminals, and the third message including an identification information including an identification of the terminal or an identification of the group; transmitting, by the third network element, the type information based on the third message; Including, the type of the serving network includes a Third Generation Partnership Project (3GPP) core network type of the serving network; The first network element is a Service Capability Exposure Function (SCEF), or a Network Exposure Function (NEF), or an SCEF-NEF integration network element; the second network element is a Third Party Application (AF), a Services Capability Server (SCS), or an Application Server (AS); the third network element is a Home Subscriber Server (HSS) and Unified Data Management (UDM) integration network element; and A first message including the identification information of the terminal is used to subscribe to an API support capability, and a second message is used to notify the API support capability, or the first message is used to inquire about an API support capability, and the second message is used to respond to the first message. Network type information transmission method.

5. 5. The method of claim 4, wherein the type of the 3GPP core network includes an Evolved Packet Core, an EPC, a 5G Core Network (5GC), or an EPC / 5GC.

6. the type information being included in a fourth message; the third message is a subscription message, the subscription message being used to subscribe to the type of serving network, and the fourth message is a notification message; or The third message is an inquiry message, the inquiry message is used to inquire about the type of the serving network, and the fourth message is a response message to the third message. The method according to claim 4 or 5.

7. 7. An apparatus comprising at least one processor and a memory, the memory configured to store a program for execution by the at least one processor, the program being a program for executing a method according to any one of claims 4 to 6, the program instructing the at least one processor to execute a method according to any one of claims 4 to 6.

8. A non-transitory computer-readable storage medium comprising instructions that, when executed by one or more processors, cause the one or more processors to perform the method of any one of claims 4 to 6.

Citation Information

Patent Citations

  • Communication system

    US20180084402A1

  • Location-based context delivery

    WO2017004158A1

  • User device and data transmission method

    WO2018062499A1