Termination call processing method and device, terminal equipment and network equipment

By retaining the secure channel context between network functions in the user terminal device, the problem that the public land mobile network cannot be finalized after the user equipment is connected to an independent non-public network is solved, and the system communication efficiency is improved.

CN113676995BActive Publication Date: 2024-11-19VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010408799.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-14
Publication Date
2024-11-19
Estimated Expiration
2040-05-14

AI Technical Summary

Technical Problem

When the user equipment is connected to an independent non-public network, the public land mobile network cannot call the device in the end, resulting in a decrease in system communication efficiency.

Method used

When the secure channel between the user terminal device and the network function is released, the context of the secure channel is retained and processed according to the context when the object sent by the network is received to ensure the accurate processing of subsequent objects and the improvement of system communication efficiency.

Benefits of technology

By retaining the context of the secure channel, the network final call and system communication efficiency are improved, ensuring that the user terminal equipment can still process the received messages or data after the secure channel is released.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113676995B_ABST
    Figure CN113676995B_ABST
Patent Text Reader

Abstract

The present application discloses a method and apparatus for processing a terminated call, a terminal device, and a network device, and belongs to the field of communications. The method for processing a terminated call includes: when a first secure channel with a first network function is released, retaining the context of the first secure channel; when receiving a first object from a first network sent by the first network function, processing the first object according to the context of the first secure channel; wherein the first object includes a message or data. The embodiment of the present application can realize network termination and improve communication efficiency at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a method and device for processing a terminated call, a terminal device, and a network device. Background Art

[0002] At present, when a user equipment (UE, also called terminal equipment or user terminal equipment) accesses a standalone non-public network (SNPN) and needs to access services of a public land mobile network (PLMN), it needs to connect to a non-3GPP interworking function (N3IWF) of the PLMN network through a user plane function (UPF) of the SNPN network. Figure 1 As shown, to achieve access to the PLMN network; and vice versa.

[0003] However, in the process of implementing the present application, the inventors found that there are at least the following problems in the prior art: when the UE accesses the SNPN network, the PLMN network cannot terminate the call to the UE, and vice versa. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method and apparatus for terminating a call, a terminal device and a network device, so as to solve the problem that when a UE accesses one of two networks, the other of the two networks cannot terminate the call to the UE, thereby reducing the communication efficiency of the system.

[0005] In a first aspect, an embodiment of the present application provides a method for processing a terminated call, which is applied to a user terminal device, and the method includes:

[0006] When a first security channel with a first network function is released, retain the context of the first security channel; when a first object from a first network sent via the first network function is received, process the first object according to the context of the first security channel; wherein the first object includes a message or data.

[0007] In a second aspect, an embodiment of the present application provides a terminal call processing device, wherein the terminal call processing device is in a user terminal device and includes:

[0008] A storage module, used to retain the context of the first security channel when the first security channel with the first network function is released; a first processing module, used to process the first object according to the context of the first security channel when receiving the first object sent by the first network function; wherein the first object includes a message or data.

[0009] In a third aspect, an embodiment of the present application provides a terminal device, comprising: a memory, a processor, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0010] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0011] In a fifth aspect, an embodiment of the present application provides a method for processing a terminated call, the method comprising:

[0012] When the first security channel between the first network function and the user terminal device is released, the context of the first security channel is retained, or the context of the first security channel is sent to the second network function; when a third object is received from the first network, the third object is processed according to the context of the second security channel corresponding to the third object, wherein the third object includes a message or data, and the context of the second security channel is the context of the first security channel or the context of a security channel received from the second network function.

[0013] In a sixth aspect, an embodiment of the present application provides a terminal call processing device, wherein the terminal call processing device is in a first network device and includes:

[0014] The first processing module is used to retain the context of the first security channel between the first network function and the user terminal device, or send the context of the first security channel to the second network function when the first security channel is released; the second processing module is used to process the third object according to the context of the second security channel corresponding to the third object when a third object is received from the first network, wherein the third object includes a message or data, and the context of the second security channel is the context of the first security channel or the context of a security channel received from the second network function.

[0015] In the seventh aspect, an embodiment of the present application provides a network device, comprising: a memory, a processor, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the fifth aspect.

[0016] In an eighth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the fifth aspect are implemented.

[0017] In a ninth aspect, an embodiment of the present application provides a method for processing a terminated call, the method comprising:

[0018] Sending a second message to a user terminal device, wherein the second message carries second indication information, and the second indication information is used to instruct the user terminal device to retain the context of the first security channel after releasing the first security channel between the user terminal device and the first network function; or, sending release auxiliary information to the first network function, wherein the release auxiliary information is used to indicate that the context of the first security channel between the first network function and the user terminal device is retained, or the release auxiliary information is used to indicate that the context of the first security channel between the first network function and the user terminal device is sent to the second network function.

[0019] In the tenth aspect, an embodiment of the present application provides a terminal call processing device, which is in a second network device and includes: a sending module; wherein the sending module is used to: send a second message to a user terminal device, the second message carries second indication information, and the second indication information is used to instruct the user terminal device to retain the context of the first security channel after releasing the first security channel between the first network function and the user terminal device; or, send release auxiliary information to the first network function, the release auxiliary information is used to indicate that the context of the first security channel between the first network function and the user terminal device is retained, or the release auxiliary information is used to indicate that the context of the first security channel between the first network function and the user terminal device is sent to the second network function.

[0020] In the eleventh aspect, an embodiment of the present application provides a network device, comprising: a memory, a processor, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the ninth aspect.

[0021] In the twelfth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the fifth aspect are implemented.

[0022] In an embodiment of the present application, the user terminal device can support retaining the context of the first security channel when the first security channel between the user terminal device and the first network function is released; further, after the first security channel is released, and when the first object (i.e., the termination message or termination data) sent by the first network function is received, the processing of the first object can still be completed according to the context of the first security channel. In this way, by retaining the context of the first security channel released between the user terminal device and the first network function, and after the first security channel is released, continuing to use the retained context of the first security channel to accurately process subsequent objects sent by the first network function, not only can the network termination be ensured, but also the system communication efficiency can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0024] Figure 1 This is a schematic diagram of a system in which a UE accesses a SNPN to access a PLMN in this application;

[0025] Figure 2 It is a flowchart of a method for processing a terminated call in an embodiment of the present application;

[0026] Figure 3 It is a schematic diagram of a call termination processing process in which a UE accesses an SNPN to access a PLMN in an embodiment of the present application;

[0027] Figure 4 This is a schematic diagram of the second type of call termination processing process of UE accessing SNPN to access PLMN in the embodiment of the present application;

[0028] Figure 5 This is a schematic diagram of a third type of call termination processing process in which a UE accesses an SNPN to access a PLMN in an embodiment of the present application;

[0029] Figure 6 It is a flowchart of a second method for processing a terminated call in an embodiment of the present application;

[0030] Figure 7 It is a flowchart of a third method for processing terminated calls in an embodiment of the present application;

[0031] Figure 8 is a structural schematic diagram of a terminal call processing device in an embodiment of the present application;

[0032] Fig. 9 is a structural schematic diagram of a second terminal call processing device in an embodiment of the present application;

[0033] Fig.10 is a structural schematic diagram of a third terminal call processing device in an embodiment of the present application;

[0034] Fig.11 It is a schematic diagram of the structure of a terminal device in an embodiment of the present application;

[0035] Fig.12 It is a structural diagram of a network device in an embodiment of the present application. DETAILED DESCRIPTION

[0036] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0037] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.

[0038] The technical solution of the present application can be applied to various communication systems, such as: Global System of Mobile communication (GSM), Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA), General Packet Radio Service (GPRS), Long Term Evolution / Enhanced Long Term Evolution (LTE-A), NR, etc.

[0039] The user end UE can also be called terminal equipment (Mobile Terminal), mobile user equipment, user terminal equipment, etc., and can communicate with one or more core networks via the Radio Access Network (RAN). The user equipment can be a terminal device, such as a mobile phone (or called a "cellular" phone) and a computer with a terminal device, for example, a portable, pocket-sized, handheld, computer-built-in or vehicle-mounted mobile device, which exchanges language and / or data with the radio access network.

[0040] Network equipment, also known as base stations, can be base stations (Base TransceiverStation, BTS) in GSM or CDMA, base stations (NodeB) in WCDMA, evolutionary Node B (eNB or e-NodeB) in LTE, and 5G base stations (gNB).

[0041] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0042] See also Figure 2 As shown, the embodiment of the present application provides a method for processing a terminated call. Optionally, the method can be executed by a user terminal device. Specifically, the method can include the following process steps:

[0043] Step 101: When a first secure channel with a first network function is released, retain the context of the first secure channel.

[0044] Optionally, the situation in which the first secure channel between the user terminal device and the first network function is released may include an active release or a passive release; may be released through message interaction or simply due to signal loss; etc. No specific limitation is given here.

[0045] Optionally, the context of the first security channel includes: at least one of first security information and first network protocol (Internet Protocol, IP) information.

[0046] Further optionally, in the case where the context of the first security channel includes the first security information, the first security information includes at least one of the following: an encryption key, a security key, a security calculation parameter, an encryption activation indication, a security activation indication, and a security algorithm. In this way, the security information can be used to ensure the security of the message or data transmission process.

[0047] Optionally, in the call termination processing method in the embodiment of the present application, when the context of the first security channel includes the first security information, the step 103 may be performed as follows:

[0048] At least one of decrypting and integrity checking is performed on the first object according to the first security information.

[0049] It can be understood that, through the first security information, at least one of accurate decryption and integrity verification of the first object can be achieved, ensuring the security and integrity of the message or data received by the user terminal device. It can be seen that the first object is the result of at least encrypting and / or integrity processing the object to be sent to the user terminal device before being sent via the first network function.

[0050] Further optionally, in the case where the context of the first secure channel includes the first IP information, the first IP information includes: a first IP address or a first IP port number. The first IP address or the first IP port number can be understood as the target IP address or the target IP port number corresponding to the receiving end of the first object sent via the first network function, or can also be understood as the peer IP address or the peer IP port number of the sending end of the first object.

[0051] Optionally, in the terminated call processing method in the embodiment of the present application, when the context of the first secure channel includes the first IP information, before the step 103, the terminated call processing method may further perform the following:

[0052] Determine that the source IP information corresponding to the first object matches the first IP information.

[0053] It can be understood that in order to correctly parse or understand the first object received from the first network function, it is necessary to use the context of the first secure channel that matches the first object to process the first object. Specifically, the source IP information corresponding to the first object and the first IP information contained in the currently retained context of the first secure channel can be used to achieve adaptation between the first object and the context of the corresponding secure channel.

[0054] As can be seen from the above, in the embodiment of the present application, the user terminal device can support retaining the context of the first security channel when the first security channel between the user terminal device and the first network function is released; further, after the first security channel is released, and when the first object (i.e., the termination message or termination data) sent by the first network function is received, the processing of the first object can still be completed according to the context of the first security channel. In this way, by retaining the context of the first security channel released between the user terminal device and the first network function, and after the first security channel is released, continuing to use the retained context of the first security channel to accurately process subsequent objects sent by the first network function, not only can the network termination be ensured, but also the system communication efficiency can be improved.

[0055] Optionally, in an example of the call termination processing method of an embodiment of the present application, the user terminal device may, before the first secure channel between the user terminal device and the first network function is released, send a first message to the first network, such as a registration request message, to inform the first network that it supports actively retaining the context of the first secure channel after the first secure channel is released, so as to implement the network termination. That is, before the secure channel is released, the method may further include the following contents:

[0056] A first message is sent to the first network through the first security channel; wherein the first message carries first indication information, and the first indication information is used to indicate that the user terminal device supports retaining the context of the first security channel after the first security channel is released.

[0057] Among them, the above-mentioned first network function corresponds to the first network.

[0058] In some examples, such as Figure 3 , Figure 4 and Figure 5 As shown in step 2, the registration request message (i.e., the first message) can pass through the base station, UPF and N3IWF of the PLMN in the SNPN to reach the AMF of the PLMN (i.e., the second network function), and the message can carry the first indication information to indicate that the UE supports retaining the context of the security channel for interacting with the N3IWF.

[0059] Optionally, in another example of the call termination processing method in the embodiment of the present application, the user terminal device may receive a second message sent by the first network, such as a Registration Accept message, before the first secure channel between the user terminal device and the first network function is released, to learn that it needs to retain the context of the first secure channel according to the instruction after the first secure channel is released, so as to implement the network call termination. That is, before the secure channel is released, the method may further include the following contents:

[0060] A second message is received from the first network through the first security channel; wherein the second message carries second indication information, and the second indication information is used to instruct the user terminal device to retain the context of the first security channel after the security channel is released.

[0061] In some of the above examples, such as Figures 3 to 5 As shown in steps 4 and 5, further, the AMF of the PLMN network sends a registration acceptance message to the UE through the N3IWF of the PLMN network, and the message may carry second indication information to indicate that the UE retains the context of the secure channel interacting with the N3IWF. Further, the N3IWF of the PLMN network forwards the registration acceptance message to the UE through the UPF and base station of the SNPN network.

[0062] Further optionally, the second indication information includes one or more IP addresses, and the context of the first secure channel includes one or more IP addresses in the second indication information. In this way, the user terminal device can retain the context of the secure channel required to implement the network termination call based on the second indication information.

[0063] Optionally, in the terminated call processing method of the embodiment of the present application, the first secure channel between the first network function and the user terminal device may be established in the second network after the user terminal device accesses the second network. Then, the step of receiving the first object sent by the first network function may be specifically performed as follows:

[0064] In the case of receiving a third message from the second network, a protocol data unit (PDU) session connection with the second network is established or activated; and the first object sent by the first network function is received through the PDU session connection. In other words, the first object sent by the first network function can be received through the PDU session established with the second network; wherein the third message may include a paging message, etc.

[0065] In some examples, such as Figure 3 , Figure 4 and Figure 5 As shown, after the user terminal device UE accesses the SNPN network (i.e., the second network), a secure channel is established between the SNPN network and the N3IWF (first network function) of the PLMN (i.e., the first network) as an example for explanation, which can of course be interchangeable. As shown in step 1 of each figure, the UE can establish a PDU session in the SNPN network, and can establish a secure channel with the N3IWF of the PLMN through the UPF corresponding to the PDU session, and the secure channel can be an IPSec channel.

[0066] Furthermore, if Figure 3 and Figure 5 Step 19 in Figure 4 As shown in step 15, after the UE establishes the user plane resources of the session in the SNPN network, the UPF of the SNPN network forwards the data received from the N3IWF of the PLMN network to the UE.

[0067] Optionally, the terminated call processing method in the embodiment of the present application may further include the following contents:

[0068] A fourth message from the first network forwarded by the first network function is received, and a PDU session connection with the first network is activated.

[0069] It can be understood that in order to ensure smooth transmission of the first object that needs to be sent to the user terminal device via the first network function, the PDU session connection between the user terminal device and the first network can be activated according to the triggering of the first network function.

[0070] In some of the above examples, such as Figures 3 to 5 As shown in step 6, when the UE releases the secure channel between the N3IWF and the PLMN at some point, it can also release the session user plane resources used to carry the interaction with the PLMN. Then, at this time, based on receiving the above fourth message, the PDU session connection with the PLMN network is activated.

[0071] Furthermore, in some of the above examples, it may also include Figures 3 to 5 The following content:

[0072] The UPF of the SNPN network receives data with the IP address of the UE as the target, and sends a data arrival notification to the SMF of the SNPN network. The SMF of the SNPN network requests the AMF to send a call termination message, such as calling the Namf_Communication_N1N2MessageTransfer operation, carrying the N1 message. The AMF of the SNPN network pages the UE. The UE initiates a process to enter the connected state in the SNPN network, such as initiating a Service Request process or a Registration Request process. Figure 3 and Figure 5 Steps 15 to 18 shown in Figure 4 Steps 11 to 14 shown in FIG.

[0073] Optionally, the terminated call processing method in the embodiment of the present application may further include one of the following contents:

[0074] (1) Activate the first security channel.

[0075] (2) Updating the first security channel.

[0076] Optionally, after the duration of the first safety channel reaches or exceeds a preset effective duration, the first safety channel is updated.

[0077] (3) Establish new safe channels.

[0078] Optionally, after the duration of the first safety channel reaches or exceeds a preset effective duration, the new safety channel is established. Figure 3 and Figure 5 After step 19 in the above, the UE may update the security channel, such as initiating a new security channel establishment process and releasing the old security channel. Figure 4 After step 15 in , the UE may interact with the N3IWF of the PLMN to update the security channel.

[0079] It should be noted that the above-mentioned preset duration is a configurable parameter, for example, it can be valid periodically or permanently.

[0080] Further optionally, the terminated call processing method in the embodiment of the present application may also include the following contents:

[0081] A second object is sent to the first network through the activated first security channel, the updated first security channel, or the new security channel, where the second object includes a message or data.

[0082] In some of the above examples, such as Figure 3 and Figure 5 Step 20 in Figure 4As shown in step 15, the UE receives the data and uses the context of the reserved security channel to process the data, such as completing security verification, decryption and other operations; the UE learns that the data is packaged with a terminated call message from the PLMN network, so it initiates a process of entering the connected state to the AMF of the PLMN network through the base station, UPF of the SNPN network and the N3IWF of the PLMN network, such as initiating a Service Request process or a Registration Request process. Among them, the terminated call message can be an N1 message, which can be carried in the call of the Namf_Communication_N1 N2 Message Transfer operation.

[0083] See also Figure 6 As shown, the embodiment of the present application provides a method for processing a terminated call, which may include the following process steps:

[0084] Step 201: When a first security channel between a first network function and a user terminal device is released, a context of the first security channel is retained, or the context of the first security channel is sent to a second network function.

[0085] In some examples, such as Figure 3 and Figure 4 and Figure 5 As shown, the first network is PLMN, the first network function is N3IWF in PLMN, and the second network function is AMF in PLMN. Specifically, Figure 3 and Figure 4 As shown in steps 8 to 10 in the PLMN network, the N3IWF of the PLMN network retains the user context for the secure channel. The N3IWF of the PLMN network notifies the AMF to release the user plane resources for the user with the UPF of the PLMN. The AMF of the PLMN network triggers the SMF to perform the resource release process.

[0086] Specifically, Figure 5 As shown in steps 8 to 10 in the PLMN network, the N3IWF of the PLMN network notifies the AMF to release the user plane resources for the user with the UPF of the PLMN, and the N3IWF also sends the user context of the secure channel to the AMF. The AMF of the PLMN network triggers the SMF to execute the resource release process. The AMF of the PLMN network retains the received user context.

[0087] Step 203: When a third object is received from the first network, the third object is processed according to the context of the second security channel corresponding to the third object, wherein the third object includes a message or data, and the context of the second security channel is the context of the first security channel or the context of a security channel received from the second network function.

[0088] In an embodiment of the present application, when the first secure channel between the first network function and any user terminal device is released, it is possible to support retaining the context of the first secure channel, or to send the context of the first secure channel to the second network function for retention. Further, after the established secure channel is released, and when a third object (i.e., a call termination message or call termination data) that needs to be sent to any user terminal device is received from the first network, the third object can be processed as the object that needs to be sent in the end according to the context of the second secure channel corresponding to the reserved third object, wherein the second secure channel is the secure channel established between the user terminal device corresponding to the third object and the first network function, and the context of the second secure channel can be the context of the first secure channel that is reserved by itself, or one of the contexts of multiple secure channels reserved by the second network function. In this way, by retaining the context of the released secure channel between the first network function and the user terminal device, and continuing to use the context of the secure channel that has been reserved and matches the third object after the secure channel is released, the third object can be accurately processed, which can not only ensure the realization of network termination, but also improve the communication efficiency of the system.

[0089] Optionally, in the above step 203, the third object is processed according to the context of the second secure channel corresponding to the third object to obtain a first object sent to the user terminal device, specifically, the first object can be sent via the first network function. Figure 2 The relevant contents in the embodiment of the terminated call processing method shown are not repeated here.

[0090] Optionally, in the terminated call processing method of the embodiment of the present application, the context of the second security channel includes: at least one of the second security information and the second network protocol IP information.

[0091] Further optionally, in the case where the context of the second security channel includes the second security information, the second security information includes at least one of the following: an encryption key, a security key, a security calculation parameter, an encryption activation indication, a security activation indication, and a security algorithm. In this way, the security information can be used to ensure the security of the message or data transmission process.

[0092] Further optionally, in the case where the context of the second security channel includes the second security information, the step 203 may be performed as at least one of the following operations:

[0093] (1) Encrypting the third object according to the second security information.

[0094] (2) Completely protecting the third object according to the second security information.

[0095] It can be understood that the second security information can at least achieve at least one of accurate encryption and complete security processing of the third object to ensure the security and integrity of the message or data to be sent.

[0096] Optionally, the first object may be obtained after the third object is processed and / or secured according to the context of the second secure channel corresponding to the third object.

[0097] In some of the above examples, such as Figure 3 and Figure 5 In steps 11 to 14, the UPF of the PLMN network receives the downlink message data of the user and notifies the SMF of the arrival of the data. The SMF of the PLMN network requests the AMF to send a termination message, such as calling the Namf_Communication_N1N2MessageTransfer operation, carrying the N1 message. The AMF of the PLMN network forwards the termination message to the N3IWF, such as sending an N1 message. The AMF also sends the user context of the secure channel of the user to the N3IWF. The N3IWF of the PLMN network packages the termination message according to the user's secure channel context, such as encrypting it, setting the target address to the IP address of the UE in the user context, and then forwarding the packaged termination message. And as Figure 4 As shown in steps 9 and 10 in FIG, the UPF of the PLMN network receives the downlink message data of the user and forwards the downlink message data to the N3IWF. The N3IWF of the PLMN network packages the downlink message data according to the reserved user's secure channel context, such as encrypting it, setting the target address to the IP address of the UE in the user context, and then forwarding the packaged downlink message data.

[0098] Further optionally, in the case where the context of the second secure channel includes the second IP information, the second IP information includes: a second IP address or a second IP port number. The second IP address or the second IP port number can be understood as the target IP address or the target IP port number corresponding to the receiving end corresponding to the third object, or can also be understood as the opposite end IP address or the opposite end IP port number of the end sending the third object.

[0099] Further optionally, in the case where the context of the second secure channel includes the second IP information, the step 203 may be performed as follows:

[0100] The second IP information is determined as the target address of the processed third object. In this way, the processed third object can be accurately sent to a receiving end corresponding to the target address, such as a user terminal device.

[0101] Optionally, in the terminated call processing method of the embodiment of the present application, before the above step 203, the method may further include the following contents:

[0102] The context of the second secure channel is determined according to the target identifier corresponding to the third object, wherein the target identifier includes a user identifier in the message or a target address of the data. In this way, based on the correspondence between the target identifier of the third object and the context of the secure channel, the context of the adapted secure channel for processing the third object can be determined quickly and accurately.

[0103] Optionally, in the terminated call processing method of the embodiment of the present application, before the above step 201, the method may further include the following contents:

[0104] Receive release assistance information from the second network function, where the release assistance information is used to indicate retaining the context of the first security channel, or sending the context of the first security channel to the second network function.

[0105] In some examples, such as Figure 3 , Figure 4 and Figure 5 As shown, the first network is PLMN, the first network function is N3IWF in PLMN, and the second network function is AMF in PLMN. Specifically, as shown in step 4, the AMF of the PLMN network sends release auxiliary information to the N3IWF of the PLMN, which is used to instruct the N3IWF to retain the user context after releasing the secure channel with the UE.

[0106] Optionally, the terminated call processing method in the embodiment of the present application may further include one of the following contents:

[0107] (1) Activate the first security channel.

[0108] (2) Updating the first security channel.

[0109] Optionally, after the duration of the first safety channel reaches or exceeds a preset effective duration, the first safety channel is updated.

[0110] (3) Establish new safe channels.

[0111] Optionally, after the duration of the first safety channel reaches or exceeds a preset effective duration, the new safety channel is established. Figure 3 and Figure 5 After step 19 in the above, N3IWF can update the security channel, such as initiating a new security channel establishment process and releasing the old security channel. Figure 4 After step 15 in , the N3IWF of the PLMN may interact with the UE to update the security channel.

[0112] It should be noted that the above-mentioned preset duration is a configurable parameter, for example, it can be valid periodically or permanently.

[0113] See also Figure 7 As shown, the embodiment of the present application provides a method for processing a terminated call, which may include the following process steps:

[0114] Step 301: Send a second message to a user terminal device, wherein the second message carries second indication information, and the second indication information is used to instruct the user terminal device to retain the context of the first security channel between the first network function and the first network function after releasing the first security channel; or, send release auxiliary information to the first network function, wherein the release auxiliary information is used to indicate that the context of the first security channel between the first network function and the user terminal device is retained, or the release auxiliary information is used to indicate that the context of the first security channel between the first network function and the user terminal device is sent to the second network function.

[0115] In an embodiment of the present application, by sending an indication message to a terminal device that establishes a first security channel with a first network function, the user terminal device can support retaining the context of the first security channel when the first security channel is released, so that the user terminal device can still process the message or data according to the context of the first security channel after receiving the message or data sent by the first network function later. Alternatively, by sending a release auxiliary message to the first network function that establishes a first security channel with the user terminal device, the first network function can support retaining the context of the first security channel when the first security channel is released or support sending the context of the first security channel to the second network function for retention, so that the first network function can still process the message or data according to the context of the security channel corresponding to the message or data that has been retained by itself or received from the second network function when it needs to send a message or data to the user terminal device later. In this way, not only can the network termination be ensured, but also the system communication efficiency can be improved.

[0116] In some examples, such as Figure 3 , Figure 4 and Figure 5 As shown, the first network is PLMN, the first network function is N3IWF in PLMN, and the second network function is AMF in PLMN for example. Specifically, as shown in step 4, the AMF of the PLMN network sends a registration acceptance message to the UE through the N3IWF of the PLMN network, such as sending a Registration Accept message. The message may carry a second indication information, used to instruct the UE to retain the user context for interacting with the N3IWF. The AMF of the PLMN network sends release assistance information to the N3IWF of the PLMN, used to instruct the N3IWF to retain the user context after releasing the secure channel with the UE. Further, as shown in step 5, the N3IWF of the PLMN network forwards the registration acceptance message to the UE through the UPF and base station of the SNPN network.

[0117] Optionally, in the terminated call processing method of the embodiment of the present application, the second indication information includes one or more network protocol IP addresses.

[0118] Optionally, in an example of the terminated call processing method of the embodiment of the present application, before the above step 301, the method may further include:

[0119] Based on the user's subscription information, the information of the PDU session established by the user terminal device and at least one of the capabilities of the first network function, it is determined to send the second message or the release auxiliary information.

[0120] In some examples, such as Figures 3 to 5 In step 3 shown, the AMF of the PLMN network can query the subscription information of the user of the UE and determine whether the user needs to retain the user context for interacting with the N3IWF through the subscription.

[0121] Optionally, in another example of the method for processing a terminated call in the embodiment of the present application, before the above step 301, the method may further include:

[0122] Receive first indication information sent by the user terminal device, where the first indication information is used to indicate that the user terminal device supports retaining the context of the first security channel after releasing the security channel; based on the first indication information, determine to send the second message or the release auxiliary information.

[0123] Further optionally, in the call termination processing method in the embodiment of the present application, when the release assistance information is sent to the first network function, and the release assistance information is used to indicate that the context of the first secure channel between the second network function and the user terminal device is sent to the second network function, the method further includes one of the following operations:

[0124] (1) Preserve the context of the first secure channel.

[0125] (2) Send the context of the second security channel to the first network function.

[0126] See also Figure 8 As shown, an embodiment of the present application provides a terminal call processing device 400 , which is in a user terminal device. The device 400 includes: a storage module 401 and a first processing module 403 .

[0127] Among them, the storage module 401 is used to retain the context of the first security channel when the first security channel with the first network function is released; the first processing module 403 is used to process the first object according to the context of the first security channel when receiving the first object sent by the first network function; wherein the first object includes a message or data.

[0128] Optionally, in the terminal call processing device 400 of the embodiment of the present application, the context of the above-mentioned first security channel includes: at least one of: first security information and first network protocol IP information.

[0129] Optionally, the terminal call processing device 400 of the embodiment of the present application may further include: a first determination module.

[0130] Among them, the first determination module is used to determine that the source IP information corresponding to the first object matches the first IP information before processing the first object according to the context of the first security channel when the context of the first security channel includes the first IP information and when a first object forwarded by the first network function is received.

[0131] Optionally, in the terminated call processing device 400 in the embodiment of the present application, the first processing module 403, when the context of the first security channel includes the first security information, may be specifically used to:

[0132] At least one of decrypting and integrity checking is performed on the first object according to the first security information.

[0133] Optionally, in the terminal call processing device 400 of an embodiment of the present application, when the context of the above-mentioned first security channel includes the first security information, the first security information includes at least one of the following: an encryption key, a security key, a security calculation parameter, an encryption activation indication, a security activation indication and a security algorithm; when the context of the first security channel includes the first IP information, the first IP information includes: a first IP address or a first IP port number.

[0134] Optionally, the terminal call processing device 400 of the embodiment of the present application may further include: a first sending module.

[0135] The first sending module is used to send a first message to the first network through the first security channel before the security channel is released; the first message carries first indication information, and the first indication information is used to indicate that the user terminal device supports retaining the context of the first security channel after the first security channel is released.

[0136] Optionally, the terminal call processing device 400 of the embodiment of the present application may further include: a first receiving module.

[0137] The first receiving module is used to receive a second message from the first network through the first security channel before the security channel is released; the second message carries second indication information, and the second indication information is used to instruct the user terminal device to retain the context of the first security channel after the security channel is released.

[0138] Optionally, in the terminal call processing device 400 of the embodiment of the present application, the second indication information includes one or more IP addresses, and the context of the first secure channel includes one or more IP addresses in the second indication information.

[0139] Optionally, the terminal call processing device 400 of the embodiment of the present application may further include: a second receiving module.

[0140] In which, when the first security channel is established by the user terminal device in the second network, the above-mentioned first processing module 403 can also be used to: establish or activate a protocol data unit PDU session connection with the second network when a third message from the second network is received; the above-mentioned second receiving module is used to receive the first object sent by the first network function through the PDU session connection.

[0141] Optionally, in the terminated call processing device 400 of the embodiment of the present application, the second receiving module may also be used to:

[0142] A fourth message from the first network forwarded by the first network function is received, and a PDU session connection with the first network is activated.

[0143] Optionally, the terminal call processing device 400 of the embodiment of the present application may further include: a second processing module.

[0144] The second processing module is used to perform one of the following operations: activating the first security channel; updating the first security channel; and establishing a new security channel.

[0145] Optionally, in the terminal call processing device 400 of the embodiment of the present application, the above-mentioned first sending module can also be used to: send a second object to the first network through the activated first security channel, the updated first security channel, or the new security channel, wherein the second object includes a message or data.

[0146] Optionally, in the terminated call processing device 400 of the embodiment of the present application, the second processing module may be specifically used for:

[0147] After the duration of the first safety channel reaches or exceeds a preset effective duration, the first safety channel is updated or the new safety channel is established.

[0148] It can be understood that the terminal call processing device 400 provided in the embodiment of the present application can implement the aforementioned Figures 2 to 5 Each process of any embodiment of the terminal call processing method shown and the related description of the terminal call processing method are applicable to the terminal call processing device 400 and will not be repeated here.

[0149] In an embodiment of the present application, the user terminal device can support retaining the context of the first security channel when the first security channel between the user terminal device and the first network function is released; further, after the first security channel is released, and when the first object (i.e., the termination message or termination data) sent by the first network function is received, the processing of the first object can still be completed according to the context of the first security channel. In this way, by retaining the context of the first security channel released between the user terminal device and the first network function, and after the first security channel is released, continuing to use the retained context of the first security channel to accurately process subsequent objects sent by the first network function, not only can the network termination be ensured, but also the system communication efficiency can be improved.

[0150] See also Fig. 9 As shown, an embodiment of the present application provides a terminal call processing device 500, which is in a first network device, wherein the first network device includes a first network function, and the device 500 includes: a first processing module 501 and a second processing module 503.

[0151] Among them, the first processing module 501 is used to retain the context of the first security channel or send the context of the first security channel to the second network function when the first security channel between the first network function and the user terminal device is released; the second processing module 503 is used to process the third object according to the context of the second security channel corresponding to the third object when a third object is received from the first network, wherein the third object includes a message or data, and the context of the second security channel is the context of the first security channel or the context of a security channel received from the second network function.

[0152] Optionally, the terminated call processing device 500 of the embodiment of the present application may further include: a determination module.

[0153] Wherein, the determination module is used to determine the context of the second security channel according to the target identifier corresponding to the third object before processing the third object according to the context of the second security channel corresponding to the third object; wherein the target identifier includes the user identifier in the message or the target address of the data.

[0154] Optionally, in the terminal call processing device 500 of the embodiment of the present application, the context of the second security channel includes: at least one of the second security information and the second network protocol IP information.

[0155] Optionally, in the terminated call processing device 500 in the embodiment of the present application, the second processing module 503, when the context of the second security channel includes the second security information, may be specifically used to perform at least one of the following operations:

[0156] The third object is encrypted according to the second security information; and the third object is completely protected according to the second security information.

[0157] Optionally, in the terminal call processing device 500 of the embodiment of the present application, the above-mentioned second processing module 503, when the context of the second secure channel includes the second IP information, determines the second IP information as the target address of the processed third object.

[0158] Optionally, in the terminal call processing device 500 of an embodiment of the present application, when the context of the above-mentioned second security channel includes the second security information, the second security information includes at least one of the following: an encryption key, a security key, a security calculation parameter, an encryption activation indication, a security activation indication and a security algorithm; when the context of the above-mentioned second security channel includes the second IP information, the second IP information includes: a second IP address or a second IP port number.

[0159] Optionally, the terminal call processing device 500 of the embodiment of the present application may further include: a receiving module.

[0160] The receiving module is used to receive release auxiliary information from the second network function before retaining the context of the first security channel or sending the context of the first security channel to the second network function when the first security channel between the user terminal device is released, and the release auxiliary information is used to indicate retaining the context of the first security channel or sending the context of the first security channel to the second network function.

[0161] Optionally, the terminal call processing device 500 of the embodiment of the present application may further include: a third processing module.

[0162] The third processing module is used to perform one of the following operations: activating the first security channel; updating the first security channel; and establishing a new security channel.

[0163] Optionally, in the terminated call processing device 500 of the embodiment of the present application, the third processing module may be specifically used for:

[0164] After the duration of the first safety channel reaches or exceeds a preset effective duration, the first safety channel is updated or the new safety channel is established.

[0165] It can be understood that the terminal call processing device 500 provided in the embodiment of the present application can achieve the above Figures 3 to 6 Each process of any embodiment of the terminal call processing method shown and the related description of the terminal call processing method are applicable to the terminal call processing device 500 and will not be repeated here.

[0166] In an embodiment of the present application, when the first secure channel between the first network function and any user terminal device is released, it is possible to support retaining the context of the first secure channel, or to send the context of the first secure channel to the second network function for retention. Further, after the established secure channel is released, and when a third object (i.e., a call termination message or call termination data) that needs to be sent to any user terminal device is received from the first network, the third object can be processed as the object that needs to be sent in the end according to the context of the second secure channel corresponding to the reserved third object, wherein the second secure channel is the secure channel established between the user terminal device corresponding to the third object and the first network function, and the context of the second secure channel can be the context of the first secure channel that is reserved by itself, or one of the contexts of multiple secure channels reserved by the second network function. In this way, by retaining the context of the released secure channel between the first network function and the user terminal device, and continuing to use the context of the secure channel that has been reserved and matches the third object after the secure channel is released, the third object can be accurately processed, which can not only ensure the realization of network termination, but also improve the communication efficiency of the system.

[0167] See also Fig.10 As shown, an embodiment of the present application provides a terminal call processing device 600, which is in a second network device, wherein the second network device includes a second network function, and the device 600 includes: a sending module 601.

[0168] Among them, the sending module 601 is used to: send a second message to a user terminal device, the second message carries second indication information, and the second indication information is used to instruct the user terminal device to retain the context of the first security channel after releasing the first security channel between the first network function and the first network function; or, send release auxiliary information to the first network function, the release auxiliary information is used to indicate to retain the context of the first security channel between the first network function and the user terminal device, or the release auxiliary information is used to indicate to send the context of the first security channel between the first network function and the user terminal device to the second network function.

[0169] Optionally, in the call termination processing device 600 of the embodiment of the present application, the second indication information includes one or more Internet protocol IP addresses.

[0170] Optionally, the terminal call processing device 600 of the embodiment of the present application may further include: a first determination module.

[0171] The determination module is used to determine whether to send the second message or the release auxiliary information based on the user's subscription information, the information of the PDU session established by the user terminal device, and at least one of the capabilities of the first network function before sending the second message to the user terminal device or sending the release auxiliary information to the first network function.

[0172] Optionally, the terminated call processing device 600 of the embodiment of the present application may further include: a receiving module and a second determining module.

[0173] Among them, the receiving module is used to receive first indication information sent by the user terminal device before sending the second message to the user terminal device or sending release auxiliary information to the first network function, and the first indication information is used to indicate that the user terminal device supports retaining the context of the first security channel after releasing the security channel; the second determination module is used to determine to send the second message or the release auxiliary information based on the first indication information.

[0174] Optionally, the terminal call processing device 600 of the embodiment of the present application may further include: a processing module.

[0175] The processing module is used to perform at least one of the following operations when the release auxiliary information is sent to the first network function, and the release auxiliary information is used to indicate that the context of the first security channel between the second network function and the user terminal device is sent to the second network function: retaining the context of the first security channel; sending the context of the second security channel to the first network function.

[0176] It can be understood that the terminal call processing device 600 provided in the embodiment of the present application can implement the aforementioned Figures 3 to 5 and Figure 7 Each process of any embodiment of the terminal call processing method shown and the related description of the terminal call processing method are applicable to the terminal call processing device 600 and will not be repeated here.

[0177] In an embodiment of the present application, by sending an indication message to a terminal device that establishes a first security channel with a first network function, the user terminal device can support retaining the context of the first security channel when the first security channel is released, so that the user terminal device can still process the message or data according to the context of the first security channel after receiving the message or data sent by the first network function later. Alternatively, by sending a release auxiliary message to the first network function that establishes a first security channel with the user terminal device, the first network function can support retaining the context of the first security channel when the first security channel is released or support sending the context of the first security channel to the second network function for retention, so that the first network function can still process the message or data according to the context of the security channel corresponding to the message or data that has been retained by itself or received from the second network function when it needs to send a message or data to the user terminal device later. In this way, not only can the network termination be ensured, but also the system communication efficiency can be improved.

[0178] Fig.11 It is a block diagram of a terminal device according to another embodiment of the present application. Fig.11 The terminal device 700 shown includes: at least one processor 701, a memory 702, at least one network interface 704 and a user interface 703. The various components in the terminal device 700 are coupled together via a bus system 705. It is understood that the bus system 705 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 705 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 705 is not shown in FIG. Fig.11 Various buses are labeled as bus system 705 .

[0179] The user interface 703 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).

[0180] It can be understood that the memory 702 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 702 of the system and method described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memory.

[0181] In some implementations, the memory 702 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof: an operating system 7021 and an application 7022 .

[0182] The operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 7022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present application can be included in the application 7022.

[0183] In the embodiment of the present application, the terminal device 700 further includes: a program or instruction stored in the memory 702 and executable on the processor 701, and the program or instruction is executed by the processor 701 to implement the following steps:

[0184] When a first security channel with a first network function is released, retain the context of the first security channel; when a first object sent via the first network function is received, process the first object according to the context of the first security channel; wherein the first object includes a message or data.

[0185] In an embodiment of the present application, the user terminal device can support retaining the context of the first security channel when the first security channel between the user terminal device and the first network function is released; further, after the first security channel is released, and when the first object (i.e., the termination message or termination data) sent by the first network function is received, the processing of the first object can still be completed according to the context of the first security channel. In this way, by retaining the context of the first security channel released between the user terminal device and the first network function, and after the first security channel is released, continuing to use the retained context of the first security channel to accurately process subsequent objects sent by the first network function, not only can the network termination be ensured, but also the system communication efficiency can be improved.

[0186] The method disclosed in the above embodiment of the present application can be applied to the processor 701, or implemented by the processor 701. The processor 701 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 701. The above processor 701 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor are combined and executed. The software module can be located in a computer-readable storage medium mature in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The computer-readable storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702 and completes the steps of the above method in combination with its hardware. Specifically, the computer-readable storage medium stores a computer program, and when the computer program is executed by the processor 701, each step of the above-mentioned method for processing a terminated call is implemented.

[0187] It is to be understood that the embodiments described in the embodiments of the present application may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application or a combination thereof.

[0188] For software implementation, the technology described in the embodiments of the present application can be implemented by a module (such as a process, function, etc.) that performs the functions described in the embodiments of the present application. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0189] The terminal device 700 can implement each process implemented by the terminal device in the aforementioned embodiment, and will not be described again here to avoid repetition.

[0190] Preferably, the embodiment of the present application further provides a terminal device, including a processor, a memory, a program or instruction stored in the memory and executable on the processor, wherein the program or instruction is executed by the processor to implement the above Figures 2 to 5 The various processes of any embodiment of the terminal call processing method shown can achieve the same technical effect, and will not be described again here to avoid repetition.

[0191] The embodiment of the present application also provides a readable storage medium, wherein a program or instruction is stored on the readable storage medium, and when the program or instruction is executed by the processor, the above Figures 2 to 5 The various processes of any embodiment of the terminal call processing method shown can achieve the same technical effect, and will not be described again here to avoid repetition.

[0192] The processor is the processor in the terminal device 700 described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0193] See also Fig.12 , Fig.12 This is a structural diagram of a network device used in an embodiment of the present application, which can realize the above Figures 3 to 7 The details of any embodiment of the method for processing a terminated call shown in the figure can achieve the same effect. Fig.12 As shown, the network device 800 includes: a processor 801, a transceiver 802, a memory 803, a user interface 804 and a bus interface 805, wherein:

[0194] In the embodiment of the present application, the network device 800 further includes: a program or instruction stored in the memory 803 and executable on the processor 801 .

[0195] Optionally, when the above program or instruction is executed by the processor 801, the following steps may be implemented:

[0196] When the first security channel between the first network function and the user terminal device is released, the context of the first security channel is retained, or the context of the first security channel is sent to the second network function; when a third object is received from the first network, the third object is processed according to the context of the second security channel corresponding to the third object, wherein the third object includes a message or data, and the context of the second security channel is the context of the first security channel or the context of a security channel received from the second network function.

[0197] In an embodiment of the present application, when the first secure channel between the first network function and any user terminal device is released, it is possible to support retaining the context of the first secure channel, or to send the context of the first secure channel to the second network function for retention. Further, after the established secure channel is released, and when a third object (i.e., a call termination message or call termination data) that needs to be sent to any user terminal device is received from the first network, the third object can be processed as the object that needs to be sent in the end according to the context of the second secure channel corresponding to the reserved third object, wherein the second secure channel is the secure channel established between the user terminal device corresponding to the third object and the first network function, and the context of the second secure channel can be the context of the first secure channel that is reserved by itself, or one of the contexts of multiple secure channels reserved by the second network function. In this way, by retaining the context of the released secure channel between the first network function and the user terminal device, and continuing to use the context of the secure channel that has been reserved and matches the third object after the secure channel is released, the third object can be accurately processed, which can not only ensure the realization of network termination, but also improve the communication efficiency of the system.

[0198] Optionally, when the above program or instruction is executed by the processor 801, the following steps may also be implemented:

[0199] Sending a second message to a user terminal device, wherein the second message carries second indication information, and the second indication information is used to instruct the user terminal device to retain the context of the first security channel after releasing the first security channel between the user terminal device and the first network function; or, sending release auxiliary information to the first network function, wherein the release auxiliary information is used to indicate that the context of the first security channel between the first network function and the user terminal device is retained, or the release auxiliary information is used to indicate that the context of the first security channel between the first network function and the user terminal device is sent to the second network function.

[0200] In an embodiment of the present application, by sending an indication message to a terminal device that establishes a first security channel with a first network function, the user terminal device can support retaining the context of the first security channel when the first security channel is released, so that the user terminal device can still process the message or data according to the context of the first security channel after receiving the message or data sent by the first network function later. Alternatively, by sending a release auxiliary message to the first network function that establishes a first security channel with the user terminal device, the first network function can support retaining the context of the first security channel when the first security channel is released or support sending the context of the first security channel to the second network function for retention, so that the first network function can still process the message or data according to the context of the security channel corresponding to the message or data that has been retained by itself or received from the second network function when it needs to send a message or data to the user terminal device later. In this way, not only can the network termination be ensured, but also the system communication efficiency can be improved.

[0201] exist Fig.12 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 801 and various circuits of memory represented by memory 803 are linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface 805 provides an interface. The transceiver 802 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium. For different user devices, the user interface 804 may also be an interface capable of externally and internally connecting required devices, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, and the like.

[0202] The processor 801 is responsible for managing the bus architecture and general processing, and the memory 803 can store data used by the processor 801 when performing operations.

[0203] Preferably, the embodiment of the present application further provides a network device, including a processor, a memory, a program or instruction stored in the memory and executable on the processor, wherein the program or instruction is executed by the processor to implement the above Figures 3 to 7 The various processes of any embodiment of the terminal call processing method shown can achieve the same technical effect, and will not be described again here to avoid repetition.

[0204] The embodiment of the present application also provides a readable storage medium, wherein a program or instruction is stored on the readable storage medium, and when the program or instruction is executed by the processor, the above Figures 3 to 7 The various processes of any embodiment of the terminal call processing method shown can achieve the same technical effect, and will not be described again here to avoid repetition.

[0205] The processor is the processor in the network device 800 described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0206] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0207] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0208] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for processing a terminated call, applied to a user terminal device, characterized in that: The method comprises: When a first security channel with a first network function is released, retaining a context of the first security channel, wherein the first security channel is a security channel established between the user terminal device accessing the second network and the first network, and the first network function is a network function of the first network; Upon receiving a first object sent via the first network function, the first object is processed according to the context of the first secure channel; wherein the first object includes data.

2. The method according to claim 1, characterized in that The context of the first security channel includes at least one of first security information and first network protocol IP information.

3. The method according to claim 2, characterized in that In a case where the context of the first secure channel includes the first IP information, before the first object is processed according to the context of the first secure channel upon receiving the first object forwarded by the first network function, the method further includes: Determine that the source IP information corresponding to the first object matches the first IP information.

4. The method according to claim 2, characterized in that: In a case where the context of the first security channel includes the first security information, the processing of the first object according to the context of the first security channel includes: At least one of decrypting and integrity checking is performed on the first object according to the first security information.

5. The method according to claim 2, characterized in that: In the case where the context of the first security channel includes the first security information, the first security information includes at least one of the following: an encryption key, a security key, a security calculation parameter, an encryption activation indication, a security activation indication, and a security algorithm; In the case where the context of the first secure channel includes the first IP information, the first IP information includes: a first IP address or a first IP port number.

6. The method according to claim 1, characterized in that Before the safety channel is released, the method further includes: Sending a first message to the first network through the first secure channel; The first message carries first indication information, and the first indication information is used to indicate that the user terminal device supports retaining the context of the first security channel after the first security channel is released.

7. The method according to claim 1, characterized in that Before the safety channel is released, the method further includes: receiving, through the first secure channel, a second message from the first network; The second message carries second indication information, and the second indication information is used to instruct the user terminal device to retain the context of the first security channel after the security channel is released.

8. The method according to claim 7, characterized in that The second indication information includes one or more IP addresses, and the context of the first secure channel includes the one or more IP addresses in the second indication information.

9. The method according to claim 1, characterized in that: In the case where the first security channel is established in the second network after the user terminal device accesses the second network, the method further includes: upon receipt of a third message from the second network, establishing or activating a protocol data unit (PDU) session connection with the second network; The first object sent by the first network function is received through the PDU session connection.

10. The method according to claim 1, characterized in that The method further comprises: A fourth message from the first network forwarded by the first network function is received, and a PDU session connection with the first network is activated.

11. The method according to claim 1, characterized in that: The method further comprises one of the following: activating the first safety channel; Updating the first security channel; Establish new safe passages.

12. The method according to claim 11, characterized in that The method further comprises: A second object including data is sent to the first network through the activated first security channel, the updated first security channel, or the new security channel.

13. The method according to claim 11, characterized in that The updating of the first security channel or the establishing of a new security channel includes: After the duration of the first safety channel reaches or exceeds a preset effective duration, the first safety channel is updated or the new safety channel is established.

14. A method for processing a terminated call, characterized in that: The method comprises: When a first security channel between a first network function and a user terminal device is released, retaining a context of the first security channel, or sending the context of the first security channel to a second network function, the first security channel being a security channel established between the user terminal device accessing the second network and the first network, and the first network function being a network function of the first network; When a third object is received from a first network, the third object is processed according to the context of a second security channel corresponding to the third object, wherein the third object includes data, and the context of the second security channel is a retained context of the first security channel or a context of a security channel received from the second network function.

15. The method according to claim 14, characterized in that Before processing the third object according to the context of the second secure channel corresponding to the third object, the method further includes: The context of the second secure channel is determined according to the target identifier corresponding to the third object; wherein the target identifier includes a user identifier or a target address in the third object.

16. The method according to claim 14, characterized in that The context of the second security channel includes at least one of second security information and second network protocol IP information.

17. The method according to claim 16, characterized in that In a case where the context of the second security channel includes the second security information, the processing of the third object according to the context of the second security channel corresponding to the third object includes at least one of the following: encrypting the third object according to the second security information; The third object is secured according to the second security information.

18. The method according to claim 16, characterized in that In a case where the context of the second security channel includes the second IP information, processing the third object according to the context of the second security channel corresponding to the third object includes: The second IP information is determined as the target address of the processed third object.

19. The method according to claim 16, characterized in that In the case where the context of the second security channel includes the second security information, the second security information includes at least one of the following: an encryption key, a security key, a security calculation parameter, an encryption activation indication, a security activation indication, and a security algorithm; In the case where the context of the second secure channel includes the second IP information, the second IP information includes: a second IP address or a second IP port number.

20. The method according to claim 14, characterized in that When the first security channel between the user terminal device is released, retaining the context of the first security channel, or before sending the context of the first security channel to the second network function, the method further includes: receiving release assistance information from the second network function, where the release assistance information is used to indicate retaining the context of the first security channel or sending the context of the first security channel to the second network function.

21. The method according to claim 14, characterized in that The method further comprises one of the following: activating the first safety channel; Updating the first security channel; Establish new safe passages.

22. The method according to claim 21, characterized in that The updating of the first security channel or the establishing of a new security channel includes: After the duration of the first safety channel reaches or exceeds a preset effective duration, the first safety channel is updated or the new safety channel is established.

23. A method for processing a terminated call, characterized in that: The method comprises: sending a second message to a user terminal device, wherein the second message carries second indication information, and the second indication information is used to instruct the user terminal device to retain the context of the first security channel after releasing the first security channel between the user terminal device and the first network function, so that the user terminal device processes the data from the first network function according to the retained context of the first security channel; or Sending release assistance information to the first network function, where the release assistance information is used to indicate that the context of the first security channel between the first network function and the user terminal device is retained, or the release assistance information is used to indicate that the context of the first security channel between the first network function and the user terminal device is sent to the second network function, so that the first network function processes the data according to the context of the first security channel when sending data to the user terminal device; The first security channel is a security channel established between the user terminal device accessing the second network and the first network, and the first network function is a network function of the first network.

24. The method according to claim 23, characterized in that The second indication information includes one or more Internet Protocol (IP) addresses.

25. The method according to claim 23, characterized in that Before sending the second message to the user terminal equipment or sending the release auxiliary information to the first network function, the method further includes: Based on the user's subscription information, the information of the PDU session established by the user terminal device and at least one of the capabilities of the first network function, it is determined to send the second message or the release auxiliary information.

26. The method according to claim 23, characterized in that Before sending the second message to the user terminal equipment or sending the release auxiliary information to the first network function, the method further includes: Receiving first indication information sent by the user terminal device, where the first indication information is used to indicate that the user terminal device supports retaining the context of the first security channel after releasing the security channel; Based on the first indication information, determine to send the second message or the release auxiliary information.

27. The method according to claim 23, characterized in that In a case where the release assistance information is sent to the first network function, and the release assistance information is used to indicate that a context of a first secure channel between the second network function and a user terminal device is sent to the second network function, the method further includes one of the following: retaining the context of the first secure channel; The context of the second secure channel is sent to the first network function.

28. A terminal call processing device, characterized in that: The terminal call processing device is in the user terminal equipment, and the device includes: a storage module, configured to retain a context of a first security channel when a first security channel with a first network function is released, wherein the first security channel is a security channel established between the user terminal device accessing the second network and the first network, and the first network function is a network function of the first network; A first processing module is used to process a first object sent via the first network function according to the context of the first security channel when the first object is received; wherein the first object includes data.

29. The device according to claim 28, characterized in that Also includes: A first sending module, configured to send a first message to the first network through the first security channel before the security channel is released; The first message carries first indication information, and the first indication information is used to indicate that the user terminal device supports retaining the context of the first security channel after the first security channel is released.

30. The device according to claim 28, characterized in that Also includes: The first receiving module is used to receive a second message from the first network through the first security channel before the security channel is released; wherein the second message carries second indication information, and the second indication information is used to instruct the user terminal device to retain the context of the first security channel after the security channel is released.

31. A terminal call processing device, characterized in that: The terminal call processing device is in the first network device and includes: a first processing module, configured to retain a context of a first security channel between a first network function and a user terminal device when the first security channel is released, or send the context of the first security channel to a second network function, wherein the first security channel is a security channel established between the user terminal device accessing the second network and the first network, and the first network function is a network function of the first network; A second processing module is used to process the third object according to the context of a second security channel corresponding to the third object when a third object is received from the first network, wherein the third object includes data, and the context of the second security channel is the retained context of the first security channel or the context of a security channel received from the second network function.

32. The device according to claim 31, characterized in that Also includes: A determination module is used to determine the context of the second security channel according to the target identifier corresponding to the third object before processing the third object according to the context of the second security channel corresponding to the third object; wherein the target identifier includes a user identifier or a target address in the third object.

33. The device according to claim 31, characterized in that Also includes: A receiving module is used to retain the context of the first security channel when the first security channel between the user terminal device is released, or before sending the context of the first security channel to the second network function, receive release auxiliary information from the second network function, wherein the release auxiliary information is used to indicate retaining the context of the first security channel or sending the context of the first security channel to the second network function.

34. A terminal call processing device, characterized in that: The terminal call processing device is in the second network device, and the device includes: a sending module; The sending module is used to: send a second message to a user terminal device, the second message carrying second indication information, and the second indication information is used to instruct the user terminal device to retain the context of the first security channel after releasing the first security channel between the user terminal device and the first network function, so that the user terminal device processes the data from the first network function according to the retained context of the first security channel; or Sending release assistance information to the first network function, where the release assistance information is used to indicate that the context of the first security channel between the first network function and the user terminal device is retained, or the release assistance information is used to indicate that the context of the first security channel between the first network function and the user terminal device is sent to the second network function, so that the first network function processes the data according to the context of the first security channel when sending data to the user terminal device; The first security channel is a security channel established between the user terminal device accessing the second network and the first network, and the first network function is a network function of the first network.

35. The device according to claim 34, characterized in that Also includes: The first determination module is used to determine to send the second message or the release auxiliary information based on the user's subscription information, the information of the PDU session established by the user terminal device, and at least one of the capabilities of the first network function before sending the second message to the user terminal device or sending the release auxiliary information to the first network function.

36. The device according to claim 34, characterized in that Also includes: A receiving module, configured to receive first indication information sent by the user terminal device before sending the second message to the user terminal device or sending the release auxiliary information to the first network function, wherein the first indication information is used to indicate that the user terminal device supports retaining the context of the first security channel after releasing the security channel; A second determination module is used to determine, based on the first indication information, whether to send the second message or the release auxiliary information.

37. A terminal device, characterized in that: include: A memory, a processor, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method according to any one of claims 1 to 13.

38. A network device, characterized in that: include: A memory, a processor, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method as described in any one of claims 14 to 22; or the program or instruction, when executed by the processor, implements the steps of the method as described in any one of claims 23 to 27.

39. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the method as described in any one of claims 1 to 13 are implemented, or when the program or instruction is executed by the processor, the steps of the method as described in any one of claims 14 to 22 are implemented, or when the program or instruction is executed by the processor, the steps of the method as described in any one of claims 23 to 27 are implemented.