Wireless communication method, terminal device, and network device

By introducing the first type of network element as the NAS security endpoint, responsible for signaling message routing, the latency problem caused by the strong dependence of core network elements on AMF is solved, and efficient support for NAS routing function and NAS security context synchronization of terminal devices are realized.

WO2026241925A1PCT designated stage Publication Date: 2026-11-26GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/096145
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

In existing technologies, core network elements such as SMFs are highly dependent on AMFs, resulting in long interaction delays between terminal devices and SMFs, especially in areas where AMFs are deployed in a concentrated manner, where signaling interaction paths are too long.

Method used

The first type of network element is introduced as the NAS security endpoint, which is responsible for routing signaling messages. This decouples the routing function of the mobility management network element, so that the terminal device only needs to maintain one set of NAS security context and obtain NAS security context related information through the first network element, thus ensuring the synchronization of the NAS security context between the terminal device and the network element.

Benefits of technology

Without increasing the complexity of terminal devices, it shortens signaling interaction latency, improves the support efficiency of NAS routing function, decouples the routing function of AMF, and reduces storage pressure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025096145_26112026_PF_FP_ABST
    Figure CN2025096145_26112026_PF_FP_ABST
Patent Text Reader

Abstract

Provided are a wireless communication method, a terminal device, and a network device. The method comprises: a first network element receives first information, wherein the first information is related to an NAS security context of a terminal device, the first network element is a first-type network element, and the first-type network element is used for routing a signaling message. On the basis of the first information, the first network element (i.e. the first-type network element) can obtain information related to the NAS security context of the terminal device, thereby helping maintain synchronization between the NAS security contexts of the first network element and the terminal device.
Need to check novelty before this filing date? Find Prior Art

Description

Wireless communication methods, terminal devices, and network devices Technical Field

[0001] This application relates to the field of communication technology, and more specifically, to a wireless communication method, terminal device, and network device. Background Technology

[0002] In related technologies, core network elements, such as session management functions (SMF), policy control functions (PCF), and location management functions (LMF), are highly dependent on network elements used for mobility management (such as core access and mobility management functions (AMF)). Taking AMF as an example, signaling interactions between core network elements and terminal devices rely on AMF forwarding and routing. If AMF is deployed in a relatively concentrated area, such as an operator's equipment room, then even if core network elements such as SMF are distributed and deployed near the access network, the interaction between the terminal device and the SMF still requires passing through the access network, then to the AMF centrally deployed in the core network, and finally to the SMF distributed near the access network, resulting in a long latency. Summary of the Invention

[0003] This application provides a wireless communication method, a terminal device, and a network device. The various aspects covered by this application are described below.

[0004] In a first aspect, a wireless communication method is provided, the method comprising: a first network element receiving first information; wherein the first information is related to the non-access stratum (NAS) security context of a terminal device, the first network element being a first type of network element, and the first type of network element being used for routing signaling messages.

[0005] Secondly, a wireless communication method is provided, the method comprising: a second network element sending first information to a first network element; wherein the first information is related to the NAS security context of a terminal device, the first network element is a first type network element, and the first type network element is used for routing signaling messages.

[0006] Thirdly, a wireless communication method is provided, the method comprising: a third network element sending first information to a first network element; and / or the third network element sending second information to a second network element; wherein the first information includes the second information, the second information is related to the NAS security context of the terminal device on the third network element, and both the first network element and the third network element are first type network elements.

[0007] Fourthly, a wireless communication method is provided, the method comprising: the terminal device receiving third information sent by a first network element; wherein the first network element is a first type network element, the first type network element is used for routing signaling messages, and the third information includes one or more of the following information generated by a second network element: the security key information, the security algorithm, and the security capabilities of the terminal device.

[0008] Fifthly, a network device is provided, which is a first network element. The network element device includes: a first receiving unit for receiving first information; wherein the first information is related to the NAS security context of a terminal device, the first network element is a first type of network element, and the first type of network element is used for routing signaling messages.

[0009] In a sixth aspect, a network device is provided, which is a second network element. The network device includes: a first sending unit for sending first information to the first network element; wherein the first information is related to the NAS security context of a terminal device, and the first network element is a first type of network element, which is used for routing signaling messages.

[0010] In a seventh aspect, a network device is provided, which is a third network element. The network device includes: a second sending unit for sending first information to a first network element; and / or a third sending unit for sending second information to a second network element; wherein the first information includes the second information, the second information is related to the NAS security context of the terminal device on the third network element, and both the first network element and the third network element are first type network elements.

[0011] Eighthly, a terminal device is provided, comprising: a second receiving unit for receiving third information sent by a first network element; wherein the first network element is a first type network element used for routing signaling messages, and the third information includes one or more of the following information generated by the second network element: the security key information, the security algorithm, and the security capabilities of the terminal device.

[0012] In a ninth aspect, a terminal device is provided, including a transceiver, a memory, and a processor, wherein the memory is used to store a program, the processor is used to invoke the program in the memory, and to control the transceiver to receive or transmit signals so that the terminal device performs some or all of the steps in the method of the fourth aspect.

[0013] In a tenth aspect, a network device is provided, including a transceiver, a memory, and a processor, wherein the memory is used to store a program, the processor is used to invoke the program in the memory, and to control the transceiver to receive or transmit signals, so that the network device performs some or all of the steps of the methods of the first to third aspects.

[0014] Eleventhly, a communication system is provided, which includes the aforementioned terminal device and / or network device. In another possible design, the system may further include other devices that interact with the terminal device or network device as described in the embodiments of this application.

[0015] In a twelfth aspect, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program that causes a terminal device and / or a network device to perform some or all of the steps in the methods of the above aspects.

[0016] In a thirteenth aspect, embodiments of this application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program operable to cause a terminal device and / or a network device to perform some or all of the steps of the methods described in the foregoing aspects. In some implementations, the computer program product may be a software installation package.

[0017] In a fourteenth aspect, embodiments of this application provide a chip including a memory and a processor, the processor being able to call and run a computer program from the memory to implement some or all of the steps described in the methods of the foregoing aspects.

[0018] Based on this application, the first type of network element is selected as the NAS security endpoint for the terminal device. This ensures that the terminal device only needs to maintain one set of NAS security contexts, without needing to maintain multiple sets of NAS security contexts for multiple core network elements. This allows for support of NAS routing functions without increasing the complexity of the terminal device, decoupling the routing functions of the network elements used for mobility management. Furthermore, based on the first information, the first network element (i.e., the first type of network element) can obtain information related to the NAS security context of the terminal device, thereby helping to keep the NAS security contexts of the first network element and the terminal device synchronized. Attached Figure Description

[0019] Figure 1 is a schematic diagram of the wireless communication system used in the embodiments of this application.

[0020] Figure 2A is an example diagram of a communication system architecture.

[0021] Figure 2B is an example diagram of another communication system architecture.

[0022] Figure 3 is a schematic flowchart of a wireless communication method provided in an embodiment of this application.

[0023] Figure 4 is a key deduction example diagram provided in an embodiment of this application.

[0024] Figure 5 is a schematic flowchart of a wireless communication method provided in Embodiment 1.

[0025] Figure 6 is a schematic flowchart of a wireless communication method provided in Embodiment 2.

[0026] Figure 7 is a schematic flowchart of a wireless communication method provided in Embodiment 3.

[0027] Figure 8 is a schematic flowchart of a wireless communication method provided in Embodiment 4.

[0028] Figure 9 is a schematic structural diagram of a network device 900 provided in an embodiment of this application.

[0029] Figure 10 is a schematic structural diagram of a network device 1000 provided in an embodiment of this application.

[0030] Figure 11 is a schematic structural diagram of a network device 1100 provided in an embodiment of this application.

[0031] Figure 12 is a schematic structural diagram of a terminal device 1200 provided in an embodiment of this application.

[0032] Figure 13 is a schematic structural diagram of a communication device provided in an embodiment of this application. Detailed Implementation

[0033] The technical solutions in this application will now be described with reference to the accompanying drawings.

[0034] Communication system

[0035] Figure 1 illustrates a wireless communication system 100 according to an embodiment of this application. The wireless communication system 100 may include communication devices. These communication devices may include a network device 110 and a terminal device 120. The network device 110 may be a device that communicates with the terminal device 120.

[0036] Figure 1 illustrates an exemplary network device and two terminals. Optionally, the wireless communication system 100 may include multiple network devices, and each network device may include other terminal devices within its coverage area. This application embodiment does not limit this.

[0037] Optionally, the wireless communication system 100 may also include other network entities such as a network controller and a mobility management entity, which is not limited in this embodiment.

[0038] It should be understood that the technical solutions of the embodiments of this application can be applied to various communication systems, such as: 5th generation (5G) systems or new radio (NR), long term evolution (LTE) systems, LTE frequency division duplex (FDD) systems, LTE time division duplex (TDD) systems, etc. The technical solutions provided in this application can also be applied to future communication systems, such as 6th generation mobile communication systems, satellite communication systems, and so on.

[0039] The terminal device in this application embodiment can also be referred to as user equipment (UE), access terminal, user unit, user station, mobile station, mobile station (MS), mobile terminal (MT), remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent, or user device. The terminal device in this application embodiment can be a device that provides voice and / or data connectivity to a user, and can be used to connect people, objects, and machines, such as a handheld device with wireless connectivity, vehicle-mounted device, etc. The terminal device in the embodiments of this application can be a mobile phone, tablet computer, laptop computer, PDA, mobile internet device (MID), wearable device, virtual reality (VR) device, augmented reality (AR) device, wireless terminal in industrial control, wireless terminal in self-driving, wireless terminal in remote medical surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home, etc. Optionally, the UE can be used to act as a base station. For example, the UE can act as a scheduling entity, providing sidelink signals between UEs in vehicle-to-everything (V2X) or device-to-device (D2D) communications. For example, cellular phones and cars communicate with each other using sidelink signals. Cellular phones and smart home devices communicate without relaying communication signals through a base station.

[0040] The network device in this application embodiment can be a device for communicating with terminal devices. The network device may also include an access network device. The access network device can provide communication coverage for a specific geographical area and can communicate with the terminal device 120 located within that coverage area. The access network device can also be called a wireless access network device or a base station, etc. In this application embodiment, the access network device can refer to a radio access network (RAN) node (or device) that connects the terminal device to the wireless network. Access network equipment can broadly encompass various names listed below, or be replaced by names such as: NodeB, Evolved NodeB (eNB), Next Generation NodeB (gNB), Relay Station, Transmitting and Receiving Point (TRP), Transmitting Point (TP), Master eNB (MeNB), Secondary eNB (SeNB), Multi-Standard Radio (MSR) Node, Home Base Station, Network Controller, Access Node, Wireless Node, Access Point (AP), Transmitter Node, Transceiver Node, Baseband Unit (BBU), Remote Radio Unit (RRU), Active Antenna Unit (AAU), Remote Radio Head (RRH), Central Unit (CU), Distributed Unit (DU), Location Node, Centralized Unit-Control Plane (CU-CP), Centralized Unit-User Plane (CU-User) Base stations can be macro base stations, micro base stations, relay nodes, donor nodes, or similar entities, or combinations thereof. A base station can also refer to a communication module, modem, or chip installed within the aforementioned equipment or apparatus. A base station can also be a mobile switching center, equipment performing base station functions in D2D, V2X, and machine-to-machine (M2M) communications, network-side equipment in 6G networks, and equipment performing base station functions in future communication systems. Base stations can support networks using the same or different access technologies. The embodiments of this application do not limit the specific technologies or equipment forms used in the access network equipment.

[0041] Base stations can be fixed or mobile. For example, a helicopter or drone can be configured to act as a mobile base station, and one or more cells can move depending on the location of the mobile base station. In other examples, a helicopter or drone can be configured as a device to communicate with another base station.

[0042] Wireless communication systems involve communication equipment that can include not only access network equipment and terminal equipment, but also core network elements. Core network elements can be implemented through devices; that is, core network elements are core network devices. It can be understood that core network devices can also be a type of network device.

[0043] The core network elements in this application embodiment may include network elements that process and forward user signaling and data. For example, core network equipment may include core access and mobility management function (AMF), session management function (SMF), location management function (LMF), network slice selection function (NSSF), authentication server function (AUSF), unified data management (UDM), policy control function (PCF), user plane function (UPF), sensing function (SF), network data analytics function (NWDAF), and artificial intelligence (AI) function management entity, etc. Of course, the core network may also include other network elements, which are not listed here.

[0044] It should be noted that a network element can also be called a network function (NF).

[0045] In some deployments, the network device in this application embodiment may refer to a CU or a DU, or the network device may include both a CU and a DU. The gNB may also include an AAU.

[0046] Network devices and terminal devices can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; they can also be deployed on water; and they can also be deployed in the air on airplanes, balloons, and satellites. This application does not limit the scenario in which the network devices and terminal devices are located.

[0047] It should be understood that all or part of the functions of the communication device in this application can also be implemented by software functions running on hardware, or by virtualization functions instantiated on a platform (e.g., a cloud platform).

[0048] Communication system architecture

[0049] The following examples of communication system architectures, using Figures 2A and 2B, illustrate this concept. It should be noted that Figures 2A and 2B are merely examples, and this application can be applied to other system architectures as well.

[0050] The architecture shown in Figure 2A draws on the successful experiences of service-oriented and microservice architectures in information technology (IT) systems. It achieves decoupling and integration between network functions through modularization. The decoupled network functions can be independently expanded, evolved, and deployed on demand. In Figure 2A, all interactions between control plane network functions (NFs) use service-oriented interfaces. The same service can be called by multiple NFs, reducing the coupling between NF interface definitions and ultimately enabling on-demand customization of the entire network's functions, flexibly supporting different business scenarios and requirements.

[0051] 5G networks can support the system architecture shown in Figure 2A.

[0052] In Figure 2A, the terminal device connects to the access network (AN) via the Uu port to establish an access layer connection, exchanging access layer messages and radio data. The terminal device also connects to the AMF via the N1 port to establish a NAS connection, exchanging NAS messages. The AMF is the mobility management function in the core network. The SMF is the session management function in the core network. In addition to managing the mobility of the terminal device, the AMF is also responsible for forwarding session management-related messages between the terminal device and the SMF. The PCF is the policy management function in the core network, responsible for formulating policies related to mobility management, session management, and charging for the terminal device. The UPF is the user plane function in the core network, transmitting data with the external data network via the N6 interface and with the AN via the N3 interface. After the terminal device accesses the network via the Uu port, it establishes a Protocol Data Unit (PDU) session under the control of the SMF to transmit data.

[0053] It should be noted that AN and RAN are interchangeable and can be represented by (R)AN.

[0054] In the architecture shown in Figure 2A, NAS messages sent by the terminal device to the access network device are uniformly forwarded by the access network device to the AMF serving the terminal device through the N2 interface. Therefore, the AMF does not only have mobility management functions but also performs message routing, such as sending session management-related messages to the SMF and policy-related messages to the PCF. The UE and the AMF (i.e., the mobility management network element) can directly exchange mobility management messages. Specifically, the UE sends the mobility management NAS message in an RRC message to the access network device, and the access network device sends the NAS message in an N2 interface message to the mobility management network element. When the terminal device interacts with a network element (NF) in the core network, such as the SMF, LMF, SMSF, or PCF, messages sent by the terminal device to the NF are forwarded to the NF via the AMF. All NAS message encryption / decryption and NAS count verification are performed on the AMF.

[0055] Therefore, in the architecture shown in Figure 2A, core network elements such as SMF, PCF, and LMF are highly dependent on AMF. Signaling interactions between core network elements and terminal devices rely on AMF forwarding and routing. If the AMF is deployed in a relatively concentrated area, such as an operator's equipment room, then even if core network elements such as SMF are distributed near the access network, the interaction between the terminal device and the SMF still requires passing through the access network to the AMF centrally deployed in the core network and then to the distributed SMF near the access network, resulting in a long latency.

[0056] To address the aforementioned issues, the network architecture shown in Figure 2B will be considered for use in the subsequent network (6G network) design.

[0057] As shown in Figure 2B, the architecture may include one or more of the following network elements: access management and control function (AMCF), session management and control function (SMCF), location management and control function (LMCF), and core network portal function (CPF).

[0058] CPF is used for message routing between terminal devices and core network elements. CPF can be deployed close to the access network. Signaling interaction between core network elements and terminal devices no longer needs to go through AMF (or AMCF). Therefore, if AMF is deployed in a centralized area within the core network and SMF (or SMCF) is distributed and deployed near the access network, the terminal device can reach the distributed CPF and SMF near the access network through the access network with shorter latency.

[0059] Figure 3 is a schematic flowchart of a wireless communication method provided in an embodiment of this application, which solves the security problem caused by introducing a network element (referred to as a first type of network element in this application) for routing signaling messages.

[0060] The method shown in Figure 3 includes step S310. In step S310, the first network element receives first information. The first information is related to the NAS security context (hereinafter referred to as security context) of the terminal device. For example, the first information may include the UE context.

[0061] The first network element is a first-type network element. This first-type network element is used for routing signaling messages. In other words, the first network element can be used for routing signaling messages. When the first-type network element serves the terminal device, the network element used for mobility management may not perform the function of routing signaling messages. That is, messages between the terminal device and the NF can be exchanged via the first-type network element instead of the network element used for mobility management. The first-type network element can be, for example, a Core Network Portal Function (CPF), a NAS message routing network element, a NAS message distribution network element, or a NAS routing function. For example, the first network element can be a first CPF. The first CPF can be the CPF currently serving the terminal device, or the CPF to which the terminal device is currently connected.

[0062] The endpoint of NAS security on the network can be a type 1 network element, which is responsible for encrypting, protecting the integrity of downlink NAS messages, and adding one or more of the NAS count values ​​to the downlink NAS messages, as well as decrypting, verifying the integrity protection (referred to as integrity protection) of received uplink NAS messages, and verifying the NAS count values.

[0063] The first type of network element is selected as the NAS security endpoint for the terminal device. This ensures that the terminal device only needs to maintain one set of NAS security contexts, without having to maintain multiple sets of NAS security contexts for multiple core network elements. This enables support for NAS routing functions without increasing the complexity of the terminal device, thus decoupling the routing function of AMF.

[0064] Based on the first information, the first network element can obtain information related to the NAS security context of the terminal device, which helps the first network element and the terminal device keep their NAS security contexts synchronized.

[0065] In some embodiments, the connection between the terminal device and the first type of network element can be released. For example, when the terminal device switches to an idle state, the connection between the terminal device and the first type of network element can be released. In this case, the first type of network element can release the NAS security context of the terminal device stored locally, thereby avoiding excessive storage pressure caused by storing too many NAS security contexts of terminal devices.

[0066] This application can be executed by a third network element. The third network element is a first-type network element. That is, the third network element can be used for routing signaling messages. For example, the third network element can be a first-type network element that served the terminal device when the terminal device was in a connected state last time. The first network element can be a first-type network element that served the terminal device when the terminal device is currently in a connected state. Taking the first-type network element as a CPF as an example, the third network element can be called the old CPF, and the first network element can be called the new CPF. Exemplarily, the new CPF can be a new CPF selected by the access network device after the terminal device moves to the coverage area of ​​the new access network device, or a CPF reselected after the terminal device leaves the service range of the old CPF, or a new CPF switched by the network for the terminal device based on load balancing.

[0067] It should be noted that the third network element can be either a different network element from the first network element or the same network element as the first network element. If the first network element and the third network element are the same, the first type of network element that the terminal device reconnects to is still the first type of network element that previously served the terminal device. If the first network element and the third network element are different, the first type of network element that the terminal device reconnects to is not the first type of network element that previously served the terminal device.

[0068] In some implementations, after the connection between the terminal device and the first network element is released, the terminal device and the first network element re-establish a connection, meaning the first network element and the third network element are the same network element. In this case, the terminal device may send NAS messages to the first network element using the previous NAS security context, while the first network element has already released the NAS security context. In this situation, the first network element can re-obtain the NAS security context of the terminal device based on the first information, thereby ensuring that the NAS messages exchanged between the first network element and the terminal device are correctly decrypted and verified, thus preventing the NAS messages from being erroneously discarded. For example, after the connection between the terminal device and the first network element is released, if the first network element resets the NAS count value to 0, and the first network element does not obtain the first information based on this application, the DL NAS count value in the sent DL NAS message will be less than the UE's local NAS count value, leading to the problem of the DL NAS message being discarded by the terminal device. This problem can be avoided through the exchange of the first information.

[0069] In some implementations, after the connection between the terminal device and the third network element is released, the terminal device can establish a connection with the first network element. This means the terminal device has switched to a first-type network element, and the first and third network elements are not the same. In this case, the terminal device sends NAS messages to the first network element using the NAS security context. The first network element can obtain the NAS security context of the terminal device based on the first information (e.g., the NAS security context of the terminal device stored on the third network element), thereby ensuring that the NAS messages exchanged between the first network element and the terminal device are correctly decrypted and verified, thus preventing the NAS messages from being erroneously discarded.

[0070] In some embodiments, step S310 includes step S302. In step S302, the first network element receives first information sent by the second network element. That is, the first information may be sent by the second network element. The second network element is of a different type from the first network element. In other words, the second network element is not a first type network element. For example, the second network element may include a mobility management network element serving the terminal device. For instance, the second network element may include an AMF, AMCF, or mobility management (MM). Alternatively, the second network element may include any NF.

[0071] In some embodiments, step S310 includes step S305. In step S305, the first network element receives first information sent by the third network element, that is, the first information may be sent by the third network element. The third network element is a first type of network element.

[0072] Therefore, the sender of the first message can be a network element of type 1 or a network element of a different type. Detailed examples will follow.

[0073] Example 1: The first message is sent by the second network element.

[0074] Example 1.1: The first information sent by the second network element is determined based on the second information sent by the third network element.

[0075] In Example 1.1, the first information sent by the second network element is determined based on the second information. The second information is sent from the third network element to the second network element. The second information may be related to the NAS security context of the terminal device on the third network element. For example, the second information may include the UE context on the third network element. Exemplarily, the second information includes some or all of the information in the NAS security context of the terminal device on the third network element.

[0076] For example, the first information may include some or all of the information in the second information. Exemplarily, the first information may be the same as the second information.

[0077] In some embodiments, the second information is sent upon the fulfillment of the first condition or the occurrence of the first event. That is, if the first condition is met, the third network element can send the second information to the second network element. It is understood that in some cases, "the first condition is met" and "the first event occurs" can be equivalent, that is, the first condition and the first event can be the same. The following explanation uses the first condition as an example. In the following text, "first condition" can be replaced with "first event".

[0078] In some embodiments, the first condition may include: the terminal device entering an idle state, or the connection between the terminal device and the third network element being released.

[0079] The third network element can independently detect whether the first condition is met. Alternatively, other devices can send first indication information to the third network element, which can be used to indicate whether the first condition is met. Taking the third network element as a CPF as an example, other devices may include one or more of the following: access network devices, core network elements (such as AMCF), and terminal devices. For example, the third network element can detect whether the terminal device has entered an idle state. For example, the access network device or AMCF can notify the third network element whether the terminal device has entered an idle state.

[0080] In some embodiments, after receiving the second information sent by the third network element, the second network element may store the second information. Alternatively, the second network element may determine the first information based on the second information and store the first information.

[0081] In some embodiments, the second network element may send subscription information to the third network element. This subscription information can be used to request that, if a first condition is met, the third network element send second information to the second network element.

[0082] Subscription information may include one or more of the following: terminal device identification information, first condition information, and target network element information.

[0083] The terminal device identification information is used to indicate which terminal device(s)'s NAS security context the subscription information is subscribed to.

[0084] First condition information can be used to indicate a first condition. First condition information can also be called first event information, used to indicate a first event. For example, first event information may include an event ID. The event ID can indicate the identifier of the first event.

[0085] The target network element information can be used to indicate the information of the second network element subscribing to the second information. When the second network element subscribes to the second information, the second network element can also be called the target network element. As mentioned above, the second network element can be any network element; that is, any network element can subscribe to the second information.

[0086] The target network element information can be used to indicate the type and / or identifier of the second network element, so that the third network element can clearly determine which network element the second information needs to be sent to.

[0087] Example 1.2, the first piece of information is generated by the second network element.

[0088] In Example 1.2, the second network element can generate the NAS security context for the terminal device. The first information may include one or more of the following information generated by the second network element: security key information, the terminal device's security capabilities, and the security algorithm. The security key information, the terminal device's security capabilities, and the security algorithm will be described in detail later.

[0089] In some embodiments, the method shown in FIG3 may include step S320.

[0090] In step S320, the first network element may send third information to the terminal device. The third information may include some or all of the information in the NAS security context of the terminal device generated by the second network element. For example, the third information may include one or more of the following information generated by the second network element: security key information, security algorithm, and the security capabilities of the terminal device.

[0091] Since the NAS security context is regenerated by the second network element, the terminal device can obtain the regenerated NAS security context through the third information, thereby synchronizing the NAS security context between the first network element and the terminal device.

[0092] In some embodiments, in response to receiving third information, the terminal device can set the NAS count value to a start value. For example, the start value can be 0. For instance, the terminal device can set the uplink NAS count value and / or the downlink NAS count value to 0.

[0093] In some embodiments, the first network element may receive first feedback information sent by the terminal device. The first feedback information may be feedback in response to third information. For example, after receiving the third information, the terminal device sets the NAS count value to a starting value and sends the first feedback information. The first feedback information may be encrypted and / or protected for integrity using security key information indicated by the third information.

[0094] In response to the first network element receiving the first feedback information, the first network element can set the NAS count value to a starting value. For example, the starting value can be 0. For instance, the first network element can decrypt and perform integrity protection verification on the message carrying the first feedback information; if the decryption and integrity protection verification are successful, the uplink NAS count value and / or downlink NAS count value can be set to 0.

[0095] For example, when a terminal device sends a NAS message to a first network element, if the first network element does not store the terminal device's NAS security context, it can send a request message to a second network element. Upon receiving the request message, the second network element can regenerate the NAS security context and send it to the first network element via a first message. The first network element can then send the regenerated NAS security context to the terminal device via a third message. Both the first network element and the terminal device set their NAS counter value to the initial value. Subsequently, the first network element and the terminal device can use this updated NAS security context for integrity protection and / or encryption, thereby enabling normal NAS signaling interaction.

[0096] In Example 1.2, the first information and / or the third information may not include the NAS count value. The first network element and the terminal device can reset the NAS count value by exchanging the third information and the first feedback information, thereby synchronizing the NAS count values ​​on both sides of the first network element and the terminal device.

[0097] Understandably, in Example 1.2, when the first network element cannot obtain the NAS security context of the terminal device, the second network element can be triggered to generate a new security context between the first network element and the terminal device, and reset the NAS count value on the terminal device and the first network element to the initial value, thereby ensuring the synchronization of the NAS security context such as the NAS count value and NAS security key between the terminal device side and the first network element side.

[0098] It should be noted that in this application, the NAS security context can be generated by a mobility management network element (i.e., the second network element may include a mobility management network element). This scheme mainly considers that the security authentication function is still retained in the mobility management network element. When the terminal device and the network authenticate and complete the AKA process, a K will be generated on the mobility management network element. AMF (or K) AMCF K AMF (or K) AMCF This key can be used to generate NAS security keys. Therefore, the key used on the first network element in this scheme can be generated by the mobility management network element. However, this application does not limit this. For example, if the communication system (e.g., a future communication system) uses other core network elements to perform two-way authentication with the terminal device, then the security key corresponding to the first network element can also be generated based on the network element used to perform 5GAKA for two-way authentication, or the NAS security key can be generated by the network element performing two-way authentication and sent to the first network element and the terminal device.

[0099] Example 2: The first message is sent by the third network element.

[0100] In some embodiments, the first information is sent by a third network element. In other words, after the terminal device connects to a new first-type network element, the new first-type network element can obtain the first information from the old first-type network element.

[0101] In some embodiments, the first information may include second information. The second information is as described in Example 1, and will not be repeated here.

[0102] Therefore, it can be seen that both Example 1 and Example 2 may involve second information. The following provides detailed examples illustrating the second information.

[0103] In some embodiments, the second information may include one or more of the following: identification information, serving NF information, NAS security context of the terminal device on the third NF, and third NF information. These will be described separately below.

[0104] Identification information can be used to indicate the identifier of a terminal device. Identification information can also be called UE identification information. For example, identification information may include one or more of the following: globally unique temporary identity (GUTI), subscription permanent identifier (SUPI), etc.

[0105] Serving element information can be used to indicate information about the core network element serving the terminal device. For example, serving element information may include one or more of the following information about the core network element serving the terminal device: address, fully qualified domain name (FQDN), identifier, etc. Based on the serving element information, the first type of network element can route the signaling of the terminal device to the core network element serving the terminal device.

[0106] The NAS security context of the terminal device on the third network element is the NAS security context of the terminal device indicated by the identification information used on the third network element.

[0107] Third-party network element information may include information describing the third-party network element. When the third-party network element is a CPF (Content Processing Function), the third-party network element information may also be called CPF information. For example, the information of a third-party network element may include one or more of the following: address, ID, FQDN (Final Quality DN), etc.

[0108] In some embodiments, the first information determined based on the second information may include one or more of the following: identification information, service network element information, third network element information, and NAS security context of the terminal device.

[0109] The following explains the NAS security context of the terminal device.

[0110] For example, the NAS security context of a terminal device may include one or more of the following: security key information; the security capabilities of the terminal device; a security algorithm; and a NAS count value for the terminal device.

[0111] In some embodiments, the NAS count value may include an uplink NAS count value and / or a downlink NAS count value. The NAS count value in the first information may be the NAS count value on a third network element.

[0112] If the first information includes the NAS count value for the terminal device, the first network element, i.e. the first type of network element currently serving the terminal device, can obtain the NAS count value previously used by the network for the terminal device, thereby avoiding the problem of NAS count value verification failure caused by the inconsistency between the NAS count values ​​of the first network element and the terminal device.

[0113] For example, the UL NAS count value included in the NAS message sent by the terminal device received by the first network element is a first count value, and the UL NAS count value obtained by the first network element based on the first information is a second count value (i.e., the local NAS count value of the first network element). If the first count value is greater than the second count value, the first network element can continue to process the NAS message, for example, by forwarding the information in the NAS message to the corresponding core network element.

[0114] Security capabilities can be used to indicate the security algorithms and / or other security features supported by a terminal device.

[0115] Security algorithms may include encryption algorithms and / or integrity protection algorithms.

[0116] Security key information may include one or more keys. For example, security key information may include one or more of the following: a first key, a second key, a third key, and a fourth key. These will be explained below.

[0117] The first key includes the security key corresponding to the first network element. The security key corresponding to the first network element can be used to generate NAS encryption keys and / or integrity protection keys. The security key corresponding to the first network element can be generated based on the security key corresponding to the second network element or the security key corresponding to the third network element.

[0118] As one implementation, the security key corresponding to the first network element can be generated based on the security key corresponding to the second network element. The second network element may include a mobility management network element serving the terminal device. Taking the AMCF (Advanced Mobility Management CF) serving the terminal device as an example, the security key corresponding to the AMCF is K. AMCF The security key corresponding to the first network element can be based on K. AMCF This method of generating the security key corresponding to the first network element has minimal impact on the key generation architecture of related technologies, does not affect the AS key generation logic, and ensures backward compatibility with the communication system defined by related technologies.

[0119] When the first type of network element is CPF, the security key corresponding to the first type of network element (i.e., the security key corresponding to CPF) can be represented as K. CPF Figure 4 shows K CPF Example of deduction. As shown in Figure 4, K CPF It can be based on K AMCF Generation. Based on K AMCF It can generate NAS encryption keys (via K) NASint (representation) and NAS integrity protection key (via K) NASenc (Indicated). As can be seen, K shown in Figure 4 CPF The deduction method has little impact on the AS key generation logic of related technologies.

[0120] As one implementation, the security key corresponding to the first network element can be generated based on the security key corresponding to the third network element. For example, the third network element can be the old CPF, and the first network element can be the new CPF, that is, the security key corresponding to the new CPF can be generated from the security key corresponding to the old CPF.

[0121] For example, in Example 1.2, the first information sent by the second network element to the first network element may include a first key. This first key may be generated based on the security key corresponding to the second network element. In Example 1.3, the first information sent by the third network element to the first network element may include a first key. This first key may be generated based on the security key corresponding to the third network element.

[0122] In some embodiments, the first network element can generate a NAS encryption key and / or an integrity protection key based on the security key corresponding to the first network element. For example, in Example 1.2 or Example 1.3, the first information includes the security key corresponding to the first network element, and the first network element can generate a NAS encryption key and / or an integrity protection key based on the security key corresponding to the first network element.

[0123] The second key includes a NAS encryption key and / or an integrity protection key generated based on the security key corresponding to the second network element.

[0124] For example, in Example 1.2, the first information sent by the second network element to the first network element may include a second key.

[0125] The third key includes the security key corresponding to the third network element. The first information and / or the second information may include the third key.

[0126] For example, in Example 1.1, the first information sent by the second network element to the first network element may include a third key. The second information sent by the third network element to the second network element may include the third key. In Example 2, the first information sent by the third network element to the first network element may include the third key.

[0127] In some embodiments, the first network element may generate one or more of the following: a security key, a NAS encryption key, and an integrity protection key, based on the security key received from the third network element. Alternatively, the first network element may directly use the security key corresponding to the third network element.

[0128] The fourth key includes the NAS encryption key and / or integrity protection key used by the third network element. The first information and / or the second information may include the fourth key.

[0129] For example, in Example 1.1, the first information sent by the second network element to the first network element may include a fourth key. The second information sent by the third network element to the second network element may include a fourth key. In Example 2, the first information sent by the third network element to the first network element may include a fourth key.

[0130] If the first information includes a NAS encryption key and / or an integrity protection key (including those used by a third network element or generated by a second network element), the first network element can directly use the NAS encryption key and / or integrity protection key to perform encryption and / or integrity protection related operations.

[0131] In some embodiments, a first network element may send a first request message. The first request message can be used to request the other side to send first information. For example, the first network element may send the first request message to a second network element. In response to the second network element receiving the first request message, the second network element may send first information back to the first network element. The first information may be stored or generated by the second network element. As another example, the first network element may send the first request message to a third network element. In response to the third network element receiving the first request message, the third network element may send first information back to the first network element.

[0132] The first request information may include the identifier of the terminal device (UE ID). The terminal device identifier may, for example, include an identifier assigned to the terminal device by the network for paging purposes, or an identifier assigned to the terminal device by a first-type network element. Through the terminal device identifier, the recipient of the first request information can clearly identify which terminal device's corresponding first information needs to be sent.

[0133] For example, when the first network element receives a NAS message from a terminal device, if the first network element does not have a NAS security context corresponding to the terminal device, it can send a first request message. Exemplarily, the first network element can receive an uplink message sent by the terminal device. This uplink message may include the identifier of the terminal device and the NAS message. The identifier of the terminal device in the uplink message can be sent in plaintext, thereby enabling the first network element to determine which terminal device sent the NAS message and request the first information corresponding to that terminal device through the first request message.

[0134] In some embodiments, the first network element can determine the second network element based on the identifier of the terminal device allocated by the second network element. In other words, the first network element can determine the second network element serving the terminal device based on the identifier of the terminal device allocated by the second network element. Based on the determined second network element, the first network element can know from which second network element it should obtain the first information. For example, the first network element can send a first request message to the determined second network element to request the second network element to send the first information.

[0135] In some embodiments, the first network element can determine the third network element based on information related to the first type of network element (e.g., CPF information) in the uplink message sent by the terminal device. The first network element can send a first request message to the determined third network element to request the third network element to send first information.

[0136] Information related to the first type of network element can be used to indicate information about the third network element. For example, information related to the first type of network element may include one or more of the following information about the third network element: IP address, FQDN, and identifier (ID).

[0137] Information related to the first type of network element in the uplink message can be transmitted in plaintext. Based on the plaintext-transmitted information related to the first type of network element, the first network element can determine the third network element.

[0138] In some embodiments, after a third network element sends the first information, the third network element can release the stored first information and / or the NAS security context of the terminal device. For example, after the third network element sends the first information to a second network element, the third network element can release the first information. Similarly, after the third network element sends the first information to a first network element, the third network element can release the first information.

[0139] For ease of understanding, this application will be described in detail below through Examples 1 to 4.

[0140] Example 1

[0141] Figure 5 is a schematic flowchart of a wireless communication method provided in Embodiment 1. In Figure 5, the first network element and the third network element are both CPF, the second network element is AMCF, and the terminal device is represented by UE. It should be noted that Figure 5 is only an example; the first network element and the third network element can also be NAS message routing / distribution network elements; the second network element can be AMF or MM.

[0142] As shown in Figure 5, after the UE enters the IDLE state, the CPF can send the UE context to the AMCF and then release the local UE context. When the UE re-enters the connected state, the AMCF can provide the UE context to the CPF. When the UE re-enters the connected state, it may connect to a different CPF (i.e., a new CPF) because the UE has left the service area of ​​the previous CPF, or it may still be connected to the CPF that served the UE in the previous connected state (i.e., the old CPF). Figure 5 illustrates this using the example of the UE still being connected to the CPF that served the UE in the previous connected state.

[0143] The steps shown in Figure 5 are explained below.

[0144] In step S510, the CPF detects that the UE has entered the IDLE state, or the access network equipment or AMCF notifies the CPF that the UE has entered the IDLE state.

[0145] In step S520, if step S510 occurs, the CPF will report the UE context (i.e., the second information) to the AMCF. For example, the UE context can be reported via a security context report. For instance, the AMCF may have subscribed to notifications about the UE context from the CPF; that is, when the CPF needs to release the UE context, it provides the currently locally stored UE context to the AMCF in a notification message (the specific process can be found in Embodiment 2).

[0146] The UE context may contain one or more of the following: a, b, c.

[0147] a. UE identification information, such as GUTI, SUPI, etc.;

[0148] b. Serving element information, including the address, FQDN, ID, and other information of the core network element serving the UE. This serving element information is used by the CPF to route the UE's NAS signaling to different core network elements.

[0149] c. Security context includes security keys used on the CPF, security algorithms, uplink and downlink NAS counts (i.e., NAS count pairs), UE security capabilities, etc.

[0150] In step S530, the CPF releases the locally stored UE context.

[0151] In step S540, the UE may send UL messages such as a registration request (RR) or service request (SR) to re-enter the connected state. This message may include a NAS message. This message is encrypted and protected for integrity using the key used between the CPF and the UE, and the UE continues to use the sequence number (SQN) obtained from the previous UL NAS count to add to the NAS message.

[0152] In step S550, the CPF locates the AMCF serving the UE based on the UE identifier used for paging in the received message (generally in the plaintext portion). The AMCF then sends the UE context (i.e., the first information) reported to the AMCF in step S520 to the CPF, thus performing a security context retrieval. Through step S550, the CPF can obtain one or more of the following information 1) to 4): 1) NAS count; 2) K CPFOr it could be a NAS encryption key, integrity protection key; 3) UE security capabilities; 4) security algorithms such as encryption algorithms and integrity protection algorithms. If the CPF obtains K in step S550... CPF CPF also needs to be based on K CPF Generate NAS encryption keys and integrity protection keys.

[0153] Based on the UE context CPF received in step S550, the UL NAS message received in step S540 is decrypted, its integrity is verified, and its UL NAS count is verified. If decryption and integrity verification are successful, and the NAS count in the received UL NAS message is greater than the UL NAS count value in the CPF's local UE security context, the CPF forwards the received UL NAS count to the corresponding core network element (NF), for example, by executing step S560. In step S560, the registration request and service request are forwarded to the AMCF via NAS message forwarding.

[0154] Example 2

[0155] Figure 6 is a schematic flowchart of a wireless communication method provided in Embodiment 2. In Figure 6, the third network element is CPF. The second network element is any type of network element, also called the target network element, and is represented by NF. The terminal device is represented by UE.

[0156] In Example 2, the NF can subscribe to the UE context from the CPF. When the CPF detects that a first event requiring notification has occurred or a first condition has been met, the CPF will notify the target network element specified in the subscription request message of the latest UE context.

[0157] The steps shown in Figure 6 are explained below.

[0158] In step S610, the NF initiates a notification subscription request message (containing subscription information) to the CPF. This notification subscription request message can also be called a UE context subscription message.

[0159] The notification subscription request message can contain one or more of the parameters a, b, and c.

[0160] a. UE identification information.

[0161] b. Event ID, used to indicate the event (i.e. the first event) that needs to be notified to the target NF, which is the UE entering the IDLE state.

[0162] c. Target network element information, used to indicate the target network element to which the notification message is sent, such as AMCF, UDM, etc.

[0163] In step S620, when the CPF detects that the event corresponding to the event ID has occurred (i.e., the UE enters the IDLE state), the CPF sends a UE context notification message (containing the second information) to the target network element. The second information includes one or more of d, e, and f.

[0164] d.UE identification information.

[0165] e. The context of the UE. The context of the UE may include one or more of the following i and ii.

[0166] i. Includes the UE's serving network element information, namely the address, FQDN, ID, and other information of the network element currently providing services to the UE;

[0167] ii. UE security context: including encryption key, integrity protection key, encryption algorithm, integrity protection algorithm, NAS counts, etc.;

[0168] f. CPF information (i.e., third-party network element information) includes the CPF's address, ID, FQDN, and other information.

[0169] Example 3

[0170] Figure 7 is a schematic flowchart of a wireless communication method provided in Embodiment 3. In Figure 7, the first network element is the new CPF, the second network element is the AMCF, and the third network element is the old CPF. The terminal device is represented by UE.

[0171] As shown in Figure 7, when the UE switches to a new CPF, the network can establish a new security context between the CPF and the UE for the security protection of NAS messages between the UE and the CPF. The AMCF derives a new key for the CPF, and the NAS counts on the UE and the CPF are set to an initial value, typically 0.

[0172] The steps shown in Figure 7 are explained below.

[0173] In step S710, the old CPF detects whether the UE has entered the IDLE state, or the old CPF receives a message from the UE, AMCF, and RAN indicating whether the UE has entered the IDLE state.

[0174] Step S720: When the UE enters the IDLE state, the CPF releases the locally stored UE context.

[0175] In step S730, when the UE has uplink service requirements, it sends an uplink NAS message (registration request or service request) to the CPF. This NAS message is encrypted and protected for integrity by the UE's local NAS security context.

[0176] Since the new CPF lacks a UE security context, it cannot decrypt and authenticate the NAS message received in step S730. Therefore, the new CPF executes step S740.

[0177] In step S740, the new CPF sends the plaintext portion of the UL NAS message to the AMCF and instructs the AMCF to establish a new security context for the UE and the CPF.

[0178] In step S750, the AMCF sends the generated security context (i.e., the first information) to the CPF via a security mode command (SMC). This SMC message contains one or more of a, b, and c.

[0179] a. Security key information.

[0180] For example, security key information may include the security key corresponding to the CPF generated from the security key corresponding to the AMCF. In other words, the AMCF can use the security key (K) corresponding to the AMCF. AMCF ) Derive the security key corresponding to CPF (i.e., the new K) CPF The information is then sent to the CPF and UE. The CPF and UE generate the NAS encryption key and integrity protection key using the security key corresponding to the CPF.

[0181] For example, security key information may include the NAS encryption key and integrity protection key generated from the security key corresponding to the AMCF. In other words, the AMCF derives the NAS encryption and integrity protection keys from the security key corresponding to the AMCF and sends the NAS encryption and integrity protection keys to the CPF and UE.

[0182] b. UE's security capabilities.

[0183] c. Security algorithms such as encryption and integrity protection.

[0184] In step S760, the new CPF sends the received security context (i.e., third-party information) to the UE via the SMC. If the key received by the CPF is the security key K corresponding to the CPF... CPF CPF needs to be based on K CPF Generate NAS encryption and integrity protection keys.

[0185] In step S770, after receiving the SMC, the UE sets the NAS count to the initial value, for example, 0.

[0186] In step S780, the UE sends a security mode complete message (including first feedback information) to the CPF to confirm the establishment of the NAS security context. The security mode complete message is encrypted and protected for integrity by the security context in the SMC message. If the key received by the UE is the security key K corresponding to the CPF... CPF UE needs to be based on K CPF Generate a NAS encryption and integrity protection key. The UE then uses the NAS encryption and integrity protection key to perform integrity protection and encryption on the secure mode completion message.

[0187] In step S790, the new CPF receives a security mode completion message, uses the security context in the SMC message to perform decryption and integrity protection verification, and if the decryption and integrity protection verification is successful, sets the NAS count on the new CPF to the initial value, such as 0.

[0188] In step S795, the CPF sends a safe mode completion message to the AMCF.

[0189] Example 4

[0190] Figure 8 is a schematic flowchart of a wireless communication method provided in Embodiment 4. In Figure 8, the first network element is the new CPF, the third network element is the old CPF, the second network element is the AMCF, and the terminal device is represented by UE.

[0191] In Figure 8, if the message sent by the UE to the new CPF also contains relevant information about the old CPF, the new CPF can obtain the UE's context from the old CPF, including network element information serving the UE, NAS security context, etc.

[0192] The steps shown in Figure 8 are explained below.

[0193] In step S810, the UE sends an uplink message to the new CPF. The new CPF may be a new CPF selected by the access network device after the UE moves to the coverage area of ​​the new access network device, or a CPF reselected after the UE leaves the service range of the old CPF, or a new CPF switched by the network for the UE based on load balancing.

[0194] The uplink message in step S810 contains one or more of the following: UE ID, CPF related information, and NAS message.

[0195] UE ID is UE identification information that can be transmitted in plaintext, such as the identifier assigned by the network to the UE for paging.

[0196] CPF-related information may include: the CPF's IP address, FQDN, CPF ID, and other information that identifies a CPF. CPF-related information can be transmitted in plaintext. The CPF indicated by this CPF-related information can be an older CPF.

[0197] NAS messages are NAS messages that the UE needs to send to the core network. These NAS messages need to be encrypted and protected for integrity.

[0198] In step S820, the new CPF determines the old CPF based on the relevant information of the old CPF and sends a UE context acquisition request to the old CPF. The UE context acquisition request mainly contains the UE's identification information, such as the identification information assigned to the UE by the mobility management network element for paging, or the identification information assigned to the UE by the CPF, etc.

[0199] In step S830, the old CPF sends its local UE context (i.e., the first information) to the new CPF. The UE context may contain one or more of the following: a, b, c.

[0200] a. UE identification information.

[0201] b. Serving network element information, indicating the ID, address, FQDN, etc. of the network element that provides services to the UE.

[0202] c. NAS Security Context. NAS security context includes one or more of the following: i, ii, iii, and iv.

[0203] i. Security Key. The key used on the CPF for NAS encryption and integrity protection, which can be the security key K corresponding to the CPF. CPF Alternatively, it can be a NAS encryption and integrity protection key generated based on the security key corresponding to the mobility management network element. The old CPF can either deduce a new security key from its local security key and send it to the new CPF, or it can directly send its local security key to the new CPF, which will then deduce its own security key based on the old CPF's security key, or the new CPF can directly use the old CPF's security key.

[0204] ii. NAS count. The latest NAS count value on the old CPF, including UL NAS count and DL NAS count.

[0205] iii. Security Algorithms. Security algorithms include encryption algorithms and integrity protection algorithms.

[0206] iv. Security capabilities of the terminal device. The security capabilities of the UE are used to indicate the security algorithms and other security features supported by the UE.

[0207] In step S840, after the new CPF obtains the NAS security context, it can decrypt the NAS message in step S810, verify its integrity protection, and verify the processing of the NAS count. After the security verification is successful, the new CPF will forward the received NAS message to the target network element.

[0208] It should be noted that if the new CPF uses a key that has been derived once from the security key corresponding to the old CPF, then the key used by the UE when sending the NAS message in step S810 is also the NAS key that has been derived once.

[0209] It should be noted that some embodiments of this application use CPF as an example of the first type of network element. CPF is only an example name of a network element used for routing signaling messages, and this network element may also be called by other names, which is not limited in this application.

[0210] The method embodiments of this application have been described in detail above. The apparatus embodiments of this application are described in detail below. It should be understood that the descriptions of the method embodiments correspond to the descriptions of the apparatus embodiments. Therefore, any parts not described in detail can be referred to the foregoing method embodiments.

[0211] Figure 9 is a schematic structural diagram of a network device 900 provided in an embodiment of this application. The network device 900 is a first network element. The network device 900 includes a first receiving unit 910.

[0212] The first receiving unit 910 is used to receive first information; wherein, the first information is related to the NAS security context of the terminal device, the first network element is a first type of network element, and the first type of network element is used for routing signaling messages.

[0213] In some embodiments, the first information is sent by the second network element, the first information is determined based on the second information, the second information is sent to the second network element by the third network element, the second information is related to the NAS security context of the terminal device on the third network element, and the third network element is a first type of network element.

[0214] In some embodiments, the second information is sent when a first condition is met.

[0215] In some embodiments, the first condition includes: the terminal device entering an idle state or the connection between the terminal device and the third network element being released.

[0216] In some embodiments, the network device is further configured to: determine the second network element based on the identifier of the terminal device assigned by the second network element.

[0217] In some embodiments, the first information is sent by a third network element, the first information includes second information, the second information is related to the NAS security context of the terminal device on the third network element, and the third network element is a first type of network element.

[0218] In some embodiments, the second information includes one or more of the following: identification information for indicating the identifier of the terminal device; service network element information for indicating information of the core network element serving the terminal device; and the NAS security context of the terminal device on the third network element.

[0219] In some embodiments, the service network element information includes one or more of the following information of the core network element serving the terminal device: address, FQDN, and network element identifier.

[0220] In some embodiments, the NAS security context of the terminal device includes one or more of the following: security key information; the security capabilities of the terminal device; security algorithms; and NAS count values ​​for the terminal device.

[0221] In some embodiments, the first information is sent by the second network element, and the first information includes one or more of the following information generated by the second network element for the terminal device: security key information, the security capabilities of the terminal device, and security algorithm.

[0222] In some embodiments, the security key information includes one or more of the following: a first key, the first key including a security key corresponding to the first network element generated based on the security key corresponding to the second network element or the security key corresponding to the third network element; a second key, the second key including a NAS encryption key and / or integrity protection key generated based on the security key corresponding to the second network element; a third key, the third key including a security key corresponding to the third network element; and a fourth key, the fourth key including a NAS encryption key and / or integrity protection key used by the third network element.

[0223] In some embodiments, the network device is further configured to: generate a NAS encryption key and / or an integrity protection key based on the security key corresponding to the first network element; and / or generate one or more of the security key, NAS encryption key, and integrity protection key corresponding to the first network element based on the third key.

[0224] In some embodiments, where the first information includes security key information generated by the second network element for the terminal device, the network device is further configured to: send third information to the terminal device; wherein the third information includes one or more of the following information generated by the second network element: the security key information, the security algorithm, and the security capabilities of the terminal device.

[0225] In some embodiments, the network device is further configured to: receive first feedback information sent by the terminal device; wherein the first feedback information is feedback on the third information.

[0226] In some embodiments, after the first network element receives the first feedback information sent by the terminal device, the network device is further configured to: set the NAS count value to the starting value.

[0227] In some embodiments, the second network element includes a mobility management network element that serves the terminal device.

[0228] In an optional embodiment, the first receiving unit 910 may be a transceiver 1330. The network device 900 may also include a processor 1310 and a memory 1320, as shown in FIG13.

[0229] Figure 10 is a schematic structural diagram of a network device 1000 provided in an embodiment of this application. The network device 1000 is a second network element. The network device 1000 includes a first transmitting unit 1010.

[0230] In some embodiments, the network device is a second network element, and the network device includes: a first sending unit, configured to send first information to a first network element; wherein the first information is related to the NAS security context of the terminal device, the first network element is a first type network element, and the first type network element is used for routing signaling messages.

[0231] In some embodiments, the first information is determined based on the second information, which is sent from the third network element to the second network element. The second information is related to the NAS security context of the terminal device on the third network element, and the third network element is a first type of network element.

[0232] In some embodiments, the second information is sent when a first condition is met.

[0233] In some embodiments, the first condition includes: the terminal device entering an idle state or the connection between the terminal device and the third network element being released.

[0234] In some embodiments, the network device is further configured to: send subscription information to the third network element; wherein the subscription information is configured to request the third network element to send the second information to the second network element if the first condition is met.

[0235] In some embodiments, the second information includes one or more of the following: identification information for indicating the identifier of the terminal device; service network element information for indicating information of the core network element serving the terminal device; and the NAS security context of the terminal device on the third network element.

[0236] In some embodiments, the service network element information includes one or more of the following information of the core network element serving the terminal device: address, FQDN, and network element identifier.

[0237] In some embodiments, the NAS security context of the terminal device includes one or more of the following: security key information; the security capabilities of the terminal device; security algorithms; and NAS count values ​​for the terminal device.

[0238] In some embodiments, the first information includes one or more of the following information generated by the second network element for the terminal device: security key information, the security capabilities of the terminal device, and security algorithms.

[0239] In some embodiments, the security key information includes one or more of the following: a first key, the first key including a security key corresponding to the first network element generated based on the security key corresponding to the second network element or the security key corresponding to the third network element; a second key, the second key including a NAS encryption key and / or integrity protection key generated based on the security key corresponding to the second network element; a third key, the third key including a security key corresponding to the third network element; and a fourth key, the fourth key including a NAS encryption key and / or integrity protection key used by the third network element.

[0240] In some embodiments, the second network element includes one or more of the following: a mobility management network element that serves the terminal device.

[0241] In an optional embodiment, the first transmitting unit 1010 may be a transceiver 1330. The network device 1000 may also include a processor 1310 and a memory 1320, as shown in FIG13.

[0242] Figure 11 is a schematic structural diagram of a network device 1100 provided in an embodiment of this application. The network device 1100 may include a second transmitting unit 1110 and / or a third transmitting unit 1120.

[0243] The second sending unit 1110 is used to send first information to the first network element; the third sending unit 1120 is used to send second information to the second network element; wherein, the first information includes the second information, the second information is related to the NAS security context of the terminal device on the third network element, and the first network element and the third network element are both first type network elements.

[0244] In some embodiments, the second information is sent when a first condition is met.

[0245] In some embodiments, the first condition includes: the terminal device entering an idle state or the connection between the terminal device and the third network element being released.

[0246] In some embodiments, the second information includes one or more of the following: identification information for indicating the identifier of the terminal device; service network element information for indicating information of the core network element serving the terminal device; and the NAS security context of the terminal device on the third network element.

[0247] In some embodiments, the service network element information includes one or more of the following information of the core network element serving the terminal device: address, FQDN, and network element identifier.

[0248] In some embodiments, the NAS security context of the terminal device includes one or more of the following: security key information; the security capabilities of the terminal device; security algorithms; and NAS count values ​​for the terminal device.

[0249] In some embodiments, the security key information includes one or more of the following: a first key, the first key including a security key corresponding to the first network element generated based on the security key corresponding to the second network element or the security key corresponding to the third network element; a second key, the second key including a NAS encryption key and / or integrity protection key generated based on the security key corresponding to the second network element; a third key, the third key including a security key corresponding to the third network element; and a fourth key, the fourth key including a NAS encryption key and / or integrity protection key used by the third network element.

[0250] In an optional embodiment, the second transmitting unit 1110 or the third transmitting unit 1120 may be a transceiver 1330. The network device 1100 may also include a processor 1310 and a memory 1320, as shown in FIG13.

[0251] In some embodiments, the second network element includes a mobility management network element that serves the terminal device.

[0252] Figure 12 is a schematic structural diagram of a terminal device 1200 provided in an embodiment of this application. The terminal device 1200 may include a second receiving unit 1210.

[0253] The second receiving unit 1210 is used to receive third information sent by the first network element; wherein, the first network element is a first type network element, the first type network element is used for routing signaling messages, and the third information includes one or more of the following information generated by the second network element: the security key information, the security algorithm, and the security capabilities of the terminal device.

[0254] In some embodiments, the security key information includes the security key corresponding to the first network element.

[0255] In some embodiments, the terminal device is further configured to: in response to receiving third information, the terminal device sets the NAS count value to a starting value.

[0256] In some embodiments, the terminal device is further configured to: send first feedback information to the first network element; wherein the first feedback information is feedback in response to the third information.

[0257] In an optional embodiment, the second receiving unit 1210 may be a transceiver 1330. The terminal device 1200 may also include a processor 1310 and a memory 1320, as shown in FIG13.

[0258] Figure 13 is a schematic structural diagram of a communication apparatus according to an embodiment of this application. The dashed lines in Figure 13 indicate that the unit or module is optional. The apparatus 1300 can be used to implement the methods described in the above method embodiments. The apparatus 1300 can be a chip, a terminal device, or a network device.

[0259] Apparatus 1300 may include one or more processors 1310. The processor 1310 may support apparatus 1300 in implementing the methods described in the preceding method embodiments. The processor 1310 may be a general-purpose processor or a special-purpose processor. For example, the processor may be a central processing unit (CPU). Alternatively, the processor may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0260] The apparatus 1300 may further include one or more memories 1320. The memories 1320 store a program that can be executed by the processor 1310, causing the processor 1310 to perform the methods described in the preceding method embodiments. The memories 1320 may be independent of the processor 1310 or integrated within the processor 1310.

[0261] The device 1300 may also include a transceiver 1330. The processor 1310 can communicate with other devices or chips via the transceiver 1330. For example, the processor 1310 can send and receive data with other devices or chips via the transceiver 1330.

[0262] This application also provides a computer-readable storage medium for storing a program. This computer-readable storage medium can be applied to a terminal or network device provided in this application, and the program causes a computer to execute the methods performed by the terminal or network device in various embodiments of this application.

[0263] This application also provides a computer program product. The computer program product includes a program. The computer program product can be applied to a terminal or network device provided in this application embodiment, and the program causes a computer to execute the methods performed by the terminal or network device in various embodiments of this application.

[0264] This application also provides a computer program. This computer program can be applied to the terminal or network device provided in this application, and the computer program causes the computer to execute the methods performed by the terminal or network device in various embodiments of this application.

[0265] It should be understood that the terms "system" and "network" in this application can be used interchangeably. Furthermore, the terminology used in this application is only for explaining specific embodiments of the application and is not intended to limit the application. The terms "first," "second," "third," and "fourth," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. In addition, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion.

[0266] In the embodiments of this application, the term "instruction" can be a direct instruction, an indirect instruction, or an indication of a relationship. For example, A instructing B can mean that A directly instructs B, such as B being able to obtain information through A; it can also mean that A indirectly instructs B, such as A instructing C, so B can obtain information through C; or it can mean that there is a relationship between A and B.

[0267] In the embodiments of this application, "B corresponding to A" means that B is associated with A, and B can be determined based on A. However, it should also be understood that determining B based on A does not mean that B is determined solely based on A; B can also be determined based on A and / or other information.

[0268] In the embodiments of this application, the term "correspondence" can indicate a direct or indirect correspondence between two things, or an association between two things, or a relationship such as instruction and being instructed, configuration and being configured.

[0269] In this application embodiment, "predefined" or "preconfigured" can be implemented by pre-storing corresponding codes, tables, or other means that can be used to indicate relevant information in the device (e.g., including terminal devices and network devices). This application does not limit the specific implementation method. For example, predefined can refer to what is defined in the protocol.

[0270] In this application embodiment, the "protocol" may refer to a standard protocol in the field of communication, such as the LTE protocol, the NR protocol, and related protocols applied to future communication systems. This application does not limit this.

[0271] In the embodiments of this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.

[0272] In the embodiments of this application, "comprising" can refer to direct inclusion or indirect inclusion. Optionally, "comprising" mentioned in the embodiments of this application can be replaced with "indicating" or "used to determine". For example, "A includes B" can be replaced with "A indicates B" or "A is used to determine B".

[0273] In the various embodiments of this application, the order of the above-mentioned processes does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0274] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0275] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0276] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0277] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can read or a data storage device such as a server or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., digital video discs, DVDs) or semiconductor media (e.g., solid-state disks, SSDs), etc.

[0278] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A wireless communication method, characterized in that, include: The first network element receives the first information; The first information is related to the non-access stratum (NAS) security context of the terminal device, and the first network element is a first type of network element, which is used for routing signaling messages.

2. The method according to claim 1, characterized in that, The first information is sent by the second network element, the first information is determined based on the second information, the second information is sent to the second network element by the third network element, the second information is related to the NAS security context of the terminal device on the third network element, and the third network element is a first type of network element.

3. The method according to claim 2, characterized in that, The second information is sent when the first condition is met.

4. The method according to claim 3, characterized in that, The first condition includes: the terminal device entering an idle state or the connection between the terminal device and the third network element being released.

5. The method according to any one of claims 2-4, characterized in that, The method further includes: The first network element determines the second network element based on the identifier of the terminal device allocated by the second network element.

6. The method according to claim 1, characterized in that, The first information is sent by a third network element, and the first information includes second information. The second information is related to the NAS security context of the terminal device on the third network element, and the third network element is a first type of network element.

7. The method according to any one of claims 2-6, characterized in that, The second information includes one or more of the following: Identification information, used to indicate the identifier of the terminal device; Service element information, used to indicate information about the core network elements serving the terminal device; The NAS security context of the terminal device on the third network element.

8. The method according to claim 7, characterized in that, The service network element information includes one or more of the following information of the core network element that serves the terminal device: address, complete and qualified domain name (FQDN), and network element identifier.

9. The method according to any one of claims 1-8, characterized in that, The NAS security context of the terminal device includes one or more of the following: Security key information; The security capabilities of the terminal device; Security algorithms; The NAS count value for the terminal device.

10. The method according to claim 1, characterized in that, The first information is sent by the second network element, and the first information includes one or more of the following information generated by the second network element for the terminal device: security key information, the security capabilities of the terminal device, and security algorithm.

11. The method according to claim 9 or 10, characterized in that, The security key information includes one or more of the following: The first key includes a security key corresponding to the first network element generated based on the security key corresponding to the second network element or the security key corresponding to the third network element. The second key includes a NAS encryption key and / or an integrity protection key generated based on the security key corresponding to the second network element; The third key includes the security key corresponding to the third network element; The fourth key includes the NAS encryption key and / or integrity protection key used by the third network element.

12. The method according to claim 11, characterized in that, The method further includes: The first network element generates a NAS encryption key and / or an integrity protection key based on the security key corresponding to the first network element; and / or The first network element generates one or more of the following based on the third key: a security key, a NAS encryption key, and an integrity protection key.

13. The method according to any one of claims 10-12, characterized in that, When the first information includes security key information generated by the second network element for the terminal device, the method further includes: The first network element sends third information to the terminal device; The third information includes one or more of the following information generated by the second network element: the security key information, the security algorithm, and the security capabilities of the terminal device.

14. The method according to claim 13, characterized in that, The method further includes: The first network element receives the first feedback information sent by the terminal device; The first feedback information is feedback in response to the third information.

15. The method according to claim 14, characterized in that, After the first network element receives the first feedback information sent by the terminal device, the method further includes: The first network element sets the NAS count value to the initial value.

16. The method according to any one of claims 2-15, characterized in that, The second network element includes: a mobility management network element that serves the terminal device.

17. A wireless communication method, characterized in that, include: The second network element sends the first information to the first network element; The first information is related to the NAS security context of the terminal device, and the first network element is a first type of network element, which is used for routing signaling messages.

18. The method according to claim 17, characterized in that, The first information is determined based on the second information, which is sent from the third network element to the second network element. The second information is related to the NAS security context of the terminal device on the third network element, and the third network element is a first type of network element.

19. The method according to claim 18, characterized in that, The second information is sent when the first condition is met.

20. The method according to claim 19, characterized in that, The first condition includes: the terminal device entering an idle state or the connection between the terminal device and the third network element being released.

21. The method according to claims 18-20, characterized in that, The method further includes: The second network element sends subscription information to the third network element; The subscription information is used to request the third network element to send the second information to the second network element when the first condition is met.

22. The method according to any one of claims 18-21, characterized in that, The second information includes one or more of the following: Identification information, used to indicate the identifier of the terminal device; Service element information, used to indicate information about the core network elements serving the terminal device; The NAS security context of the terminal device on the third network element.

23. The method according to claim 22, characterized in that, The service network element information includes one or more of the following information of the core network element serving the terminal device: address, FQDN, and network element identifier.

24. The method according to any one of claims 17-23, characterized in that, The NAS security context of the terminal device includes one or more of the following: Security key information; The security capabilities of the terminal device; Security algorithms; The NAS count value for the terminal device.

25. The method according to claim 17, characterized in that, The first information includes one or more of the following information generated by the second network element for the terminal device: security key information, the security capabilities of the terminal device, and security algorithm.

26. The method according to claim 24 or 25, characterized in that, The security key information includes one or more of the following: The first key includes a security key corresponding to the first network element generated based on the security key corresponding to the second network element or the security key corresponding to the third network element. The second key includes a NAS encryption key and / or an integrity protection key generated based on the security key corresponding to the second network element; The third key includes the security key corresponding to the third network element; The fourth key includes the NAS encryption key and / or integrity protection key used by the third network element.

27. The method according to any one of claims 17-26, characterized in that, The second network element includes one or more of the following: a mobility management network element that serves the terminal device.

28. A wireless communication method, characterized in that, The method includes: The third network element sends the first information to the first network element; and / or The third network element sends the second information to the second network element; The first information includes the second information, which is related to the NAS security context of the terminal device on the third network element. Both the first network element and the third network element are first type network elements.

29. The method according to claim 28, characterized in that, The second information is sent when the first condition is met.

30. The method according to claim 29, characterized in that, The first condition includes: the terminal device entering an idle state or the connection between the terminal device and the third network element being released.

31. The method according to claim 28, characterized in that, The second information includes one or more of the following: Identification information, used to indicate the identifier of the terminal device; Service element information, used to indicate information about the core network elements serving the terminal device; The NAS security context of the terminal device on the third network element.

32. The method according to claim 31, characterized in that, The service network element information includes one or more of the following information of the core network element serving the terminal device: address, FQDN, and network element identifier.

33. The method according to any one of claims 28-32, characterized in that, The NAS security context of the terminal device includes one or more of the following: Security key information; The security capabilities of the terminal device; Security algorithms; The NAS count value for the terminal device.

34. The method according to claim 33, characterized in that, The security key information includes one or more of the following: The first key includes a security key corresponding to the first network element generated based on the security key corresponding to the second network element or the security key corresponding to the third network element. The second key includes a NAS encryption key and / or an integrity protection key generated based on the security key corresponding to the second network element; The third key includes the security key corresponding to the third network element; The fourth key includes the NAS encryption key and / or integrity protection key used by the third network element.

35. The method according to any one of claims 28-34, characterized in that, The second network element includes a mobility management network element that serves the terminal device.

36. A wireless communication method, characterized in that, include: The terminal device receives the third information sent by the first network element; Wherein, the first network element is a first type of network element, which is used for routing signaling messages, and the third information includes one or more of the following information generated by the second network element: security key information, security algorithm, and security capabilities of the terminal device.

37. The method according to claim 36, characterized in that, The security key information includes the security key corresponding to the first network element.

38. The method according to claim 36 or 37, characterized in that, The method further includes: In response to receiving the third information, the terminal device sets the NAS count value to the initial value.

39. The method according to any one of claims 36-38, characterized in that, The method further includes: The terminal device sends first feedback information to the first network element; The first feedback information is feedback in response to the third information.

40. A network device, characterized in that, The network device is a first network element, and the network element device includes: The first receiving unit is used to receive the first information; The first information is related to the non-access stratum (NAS) security context of the terminal device, and the first network element is a first type of network element, which is used for routing signaling messages.

41. The network device according to claim 40, characterized in that, The first information is sent by the second network element, the first information is determined based on the second information, the second information is sent to the second network element by the third network element, the second information is related to the NAS security context of the terminal device on the third network element, and the third network element is a first type of network element.

42. The network device according to claim 41, characterized in that, The second information is sent when the first condition is met.

43. The network device according to claim 42, characterized in that, The first condition includes: the terminal device entering an idle state or the connection between the terminal device and the third network element being released.

44. The network device according to any one of claims 41-43, characterized in that, The network device is also used for: The second network element is determined based on the identifier of the terminal device assigned by the second network element.

45. The network device according to claim 40, characterized in that, The first information is sent by a third network element, and the first information includes second information. The second information is related to the NAS security context of the terminal device on the third network element, and the third network element is a first type of network element.

46. ​​The network device according to any one of claims 41-45, characterized in that, The second information includes one or more of the following: Identification information, used to indicate the identifier of the terminal device; Service element information, used to indicate information about the core network elements serving the terminal device; The NAS security context of the terminal device on the third network element.

47. The network device according to claim 46, characterized in that, The service network element information includes one or more of the following information of the core network element that serves the terminal device: address, complete and qualified domain name (FQDN), and network element identifier.

48. The network device according to any one of claims 40-47, characterized in that, The NAS security context of the terminal device includes one or more of the following: Security key information; The security capabilities of the terminal device; Security algorithms; The NAS count value for the terminal device.

49. The network device according to claim 40, characterized in that, The first information is sent by the second network element, and the first information includes one or more of the following information generated by the second network element for the terminal device: security key information, the security capabilities of the terminal device, and security algorithm.

50. The network device according to claim 48 or 49, characterized in that, The security key information includes one or more of the following: The first key includes a security key corresponding to the first network element generated based on the security key corresponding to the second network element or the security key corresponding to the third network element. The second key includes a NAS encryption key and / or an integrity protection key generated based on the security key corresponding to the second network element; The third key includes the security key corresponding to the third network element; The fourth key includes the NAS encryption key and / or integrity protection key used by the third network element.

51. The network device according to claim 50, characterized in that, The network device is also used for: Generate a NAS encryption key and / or integrity protection key based on the security key corresponding to the first network element; and / or Based on the third key, generate one or more of the following: a security key, a NAS encryption key, and an integrity protection key corresponding to the first network element.

52. The network device according to any one of claims 49-51, characterized in that, When the first information includes security key information generated by the second network element for the terminal device, the network device is further configured to: Send third information to the terminal device; The third information includes one or more of the following information generated by the second network element: the security key information, the security algorithm, and the security capabilities of the terminal device.

53. The network device according to claim 52, characterized in that, The network device is also used for: Receive the first feedback information sent by the terminal device; The first feedback information is feedback in response to the third information.

54. The network device according to claim 53, characterized in that, After the first network element receives the first feedback information sent by the terminal device, the network device is further configured to: Set the NAS count value to the initial value.

55. The network device according to any one of claims 41-54, characterized in that, The second network element includes: a mobility management network element that serves the terminal device.

56. A network device, characterized in that, The network device is a second network element, and the network device includes: The first transmitting unit is used to transmit first information to the first network element; The first information is related to the NAS security context of the terminal device, and the first network element is a first type of network element, which is used for routing signaling messages.

57. The network device according to claim 56, characterized in that, The first information is determined based on the second information, which is sent from the third network element to the second network element. The second information is related to the NAS security context of the terminal device on the third network element, and the third network element is a first type of network element.

58. The network device according to claim 57, characterized in that, The second information is sent when the first condition is met.

59. The network device according to claim 58, characterized in that, The first condition includes: the terminal device entering an idle state or the connection between the terminal device and the third network element being released.

60. The network device according to claims 57-59, characterized in that, The network device is also used for: Send subscription information to the third network element; The subscription information is used to request the third network element to send the second information to the second network element when the first condition is met.

61. The network device according to any one of claims 57-60, characterized in that, The second information includes one or more of the following: Identification information, used to indicate the identifier of the terminal device; Service element information, used to indicate information about the core network elements serving the terminal device; The NAS security context of the terminal device on the third network element.

62. The network device according to claim 61, characterized in that, The service network element information includes one or more of the following information of the core network element serving the terminal device: address, FQDN, and network element identifier.

63. The network device according to any one of claims 56-62, characterized in that, The NAS security context of the terminal device includes one or more of the following: Security key information; The security capabilities of the terminal device; Security algorithms; The NAS count value for the terminal device.

64. The network device according to claim 56, characterized in that, The first information includes one or more of the following information generated by the second network element for the terminal device: security key information, the security capabilities of the terminal device, and security algorithm.

65. The network device according to claim 63 or 64, characterized in that, The security key information includes one or more of the following: The first key includes a security key corresponding to the first network element generated based on the security key corresponding to the second network element or the security key corresponding to the third network element. The second key includes a NAS encryption key and / or an integrity protection key generated based on the security key corresponding to the second network element; The third key includes the security key corresponding to the third network element; The fourth key includes the NAS encryption key and / or integrity protection key used by the third network element.

66. The network device according to any one of claims 56-65, characterized in that, The second network element includes one or more of the following: a mobility management network element that serves the terminal device.

67. A network device, characterized in that, The network device is a third network element, and the network device includes: The second transmitting unit is used to transmit first information to the first network element; and / or The third sending unit is used to send second information to the second network element; wherein the first information includes the second information, the second information is related to the NAS security context of the terminal device on the third network element, and both the first network element and the third network element are first type network elements.

68. The network device according to claim 67, characterized in that, The second information is sent when the first condition is met.

69. The network device according to claim 68, characterized in that, The first condition includes: the terminal device entering an idle state or the connection between the terminal device and the third network element being released.

70. The network device according to claim 67, characterized in that, The second information includes one or more of the following: Identification information, used to indicate the identifier of the terminal device; Service element information, used to indicate information about the core network elements serving the terminal device; The NAS security context of the terminal device on the third network element.

71. The network device according to claim 70, characterized in that, The service network element information includes one or more of the following information of the core network element serving the terminal device: address, FQDN, and network element identifier.

72. The network device according to any one of claims 67-71, characterized in that, The NAS security context of the terminal device includes one or more of the following: Security key information; The security capabilities of the terminal device; Security algorithms; The NAS count value for the terminal device.

73. The network device according to claim 72, characterized in that, The security key information includes one or more of the following: The first key includes a security key corresponding to the first network element generated based on the security key corresponding to the second network element or the security key corresponding to the third network element. The second key includes a NAS encryption key and / or an integrity protection key generated based on the security key corresponding to the second network element; The third key includes the security key corresponding to the third network element; The fourth key includes the NAS encryption key and / or integrity protection key used by the third network element.

74. The network device according to any one of claims 67-73, characterized in that, The second network element includes a mobility management network element that serves the terminal device.

75. A terminal device, characterized in that, include: The second receiving unit is used to receive the third information sent by the first network element; Wherein, the first network element is a first type of network element, which is used for routing signaling messages, and the third information includes one or more of the following information generated by the second network element: security key information, security algorithm, and security capabilities of the terminal device.

76. The terminal device according to claim 75, characterized in that, The security key information includes the security key corresponding to the first network element.

77. The terminal device according to claim 75 or 76, characterized in that, The terminal device is also used for: In response to receiving the third information, the terminal device sets the NAS count value to the initial value.

78. The terminal device according to any one of claims 75-77, characterized in that, The terminal device is also used for: Send the first feedback information to the first network element; The first feedback information is feedback in response to the third information.

79. A terminal device, characterized in that, The device includes a transceiver, a memory, and a processor. The memory stores a program, and the processor invokes the program in the memory and controls the transceiver to receive or send signals so that the terminal device performs the method as described in any one of claims 36-39.

80. A network device, characterized in that, The device includes a transceiver, a memory, and a processor. The memory stores a program, and the processor invokes the program in the memory and controls the transceiver to receive or transmit signals so that the network device performs the method as described in any one of claims 1-35.

81. An apparatus, characterized in that, Includes a processor for calling a program from memory to cause the device to perform the method as described in any one of claims 1-35.

82. An apparatus, characterized in that, Includes a processor for calling a program from memory to cause the device to perform the method as described in any one of claims 36-39.

83. A chip, characterized in that, Includes a processor for calling a program from memory, causing a device on which the chip is mounted to perform the method as described in any one of claims 1-35.

84. A chip, characterized in that, Includes a processor for calling a program from memory, causing a device on which the chip is mounted to perform the method as described in any one of claims 36-39.

85. A computer-readable storage medium, characterized in that, It contains a program that causes a computer to perform the method as described in any one of claims 1-35.

86. A computer-readable storage medium, characterized in that, It contains a program that causes a computer to perform the method as described in any one of claims 36-39.

87. A computer program product, characterized in that, Includes a program that causes a computer to perform the method as described in any one of claims 1-35.

88. A computer program product, characterized in that, Includes a program that causes a computer to perform the method as described in any one of claims 36-39.

89. A computer program, characterized in that, The computer program causes the computer to perform the method as described in any one of claims 1-35.

90. A computer program, characterized in that, The computer program causes the computer to perform the method as described in any one of claims 36-39.