Handover processing method and device

The method addresses handover failures in 5G networks by maintaining consistent security contexts and keys between user equipment and the AMF, ensuring uninterrupted network connectivity.

JP7555962B2Active Publication Date: 2024-09-25HUAWEI TECH CO LTD

Patent Information

Application Number
JP2021564354
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-04-29
Filing Date
2020-03-27
Publication Date
2024-09-25
Estimated Expiration
2040-03-27

AI Technical Summary

Technical Problem

In 5G communication scenarios, access network device handovers can fail due to changes in user equipment location, leading to discrepancies between the security context and keys on the user equipment and the first Access and Mobility Management Function (AMF), resulting in failed re-establishment of connections.

Method used

A method and apparatus that ensures the security context and keys on the user equipment match those on the first AMF by storing and resuming the first NAS security context, including key derivation and negotiation to maintain consistency during handover failures.

Benefits of technology

Ensures seamless handover by maintaining consistent security contexts and keys between user equipment and the AMF, preventing failed connections and ensuring continued network access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007555962000002
    Figure 0007555962000002
  • Figure 0007555962000003
    Figure 0007555962000003
  • Figure 0007555962000004
    Figure 0007555962000004
Patent Text Reader

Abstract

An embodiment of the present application provides a handover processing method and apparatus. The method includes the steps of: receiving, by a first access and mobility management function (AMF), a handover request message sent by a first access network device; storing, by the first AMF, a first non-access stratum NAS security context when determining that key derivation needs to be performed, the first AMF, where the first NAS security context is a NAS security context generated through negotiation between the first AMF and a user equipment (UE); and resuming, by the first AMF, use of the first NAS security context. The technical solution provided by the present invention can ensure that, when an access network device handover fails, the security context on the user equipment is the same as the security context on the first AMF, and can further ensure that the key on the user equipment is the same as the key on the first AMF.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to Chinese Patent Application No. 201910356843.8, entitled “Handover Processing Method and Apparatus,” filed with the China Patent Office on April 29, 2019, which is incorporated herein by reference in its entirety.

[0002] The present invention relates to the field of communications, and more particularly to a handover processing method and apparatus. [Background technology]

[0003] In a fifth generation (5G) communication scenario, there may be an access network device handover scenario due to the movement of a user equipment. For example, a change in the location of a user equipment causes a change in the access network device serving the user equipment. In the current communication protocol, two types of access network device handovers are specified, namely, Xn handover and N2 handover. Xn handover means that an Xn interface exists between the access network devices before and after the access network device handover occurs, and the access network device handover is performed based on the interface. N2 handover means that the access network device handover is performed based on the N2 interface between the access network device and a core network element, i.e., the access and mobility management function (AMF).

[0004] In the existing N2 handover scenario, when the access network device handover fails, the key on the user equipment may be different from the key on the first AMF during the handover procedure, so that the user equipment cannot re-establish a connection to the first AMF after the access network device handover fails. Summary of the Invention [Means for solving the problem]

[0005] This application discloses a handover processing method and apparatus, when an access network device handover fails, the first AMF stores a first NAS security context and resumes using the first NAS security context, to ensure that a security context on a user equipment is the same as a security context on a first AMF, and further ensure that a key on the user equipment is the same as a key on the first AMF.

[0006] According to a first aspect, there is provided a handover processing method including: receiving, by a first access and mobility management function AMF, a handover request message sent by a first access network device; when determining that key derivation needs to be performed, storing, by the first AMF, a first non-access stratum NAS security context, where the first NAS security context is a NAS security context generated through negotiation between the first AMF and a user equipment UE; and resuming use of the first NAS security context by the first AMF.

[0007] According to the handover processing method provided in this embodiment of the present application, when key derivation needs to be performed, the first AMF stores the first NAS security context and resumes using the first NAS security context after key derivation, so that when the access network device handover fails, the key on the user equipment is the same as the key on the first AMF.

[0008] It should be understood that the first NAS security context in this embodiment of the present application may also be referred to as the NAS security context currently used by the UE.

[0009] Referring to the first aspect, in some implementations of the first aspect, the first NAS security context includes a first NAS security algorithm, a first AMF key Kamf1, a first non-access stratum NAS key, and a first non-access stratum count NAS COUNT.

[0010] According to the handover processing method provided in this embodiment of the present application, the first NAS security context includes an AMF key Kamf1 negotiated for use between the first AMF and the user equipment UE, a NAS key generated through negotiation between the first AMF and the user equipment UE, and a non-access stratum count NAS COUNT.

[0011] With reference to the first aspect, in some implementations of the first aspect, the step of resuming use of the first NAS security context by the first AMF includes a step of resuming use of the first NAS security context by the first AMF after the first AMF initiates a user context creation service request to the second AMF.

[0012] According to the handover processing method provided in this embodiment of the present application, the first AMF can resume using the first NAS security context after, before, or when the first AMF initiates a user context creation service request to the second AMF.

[0013] According to a second aspect, there is provided a handover processing method including the steps of: receiving, by a user equipment UE, a handover command message sent by a first access network device, where the handover command message carries a second NAS security algorithm selected by a second access and mobility management function AMF and an AMF key change instruction; when the second NAS security algorithm is different from a first NAS security algorithm currently used by the UE and / or the AMF key change instruction is a default value, storing, by the UE, a first non-access stratum NAS security context, where the first NAS security context is a NAS security context generated through negotiation between the UE and the first AMF; and when a handover of the UE user equipment fails, using the first NAS security context to perform non-access stratum NAS protection between the UE and the first AMF or when an integrity check performed by the UE on a non-access stratum container NASC fails, where the NASC is carried in the handover command message, continuing to use the first NAS security context by the UE.

[0014] According to the handover processing method provided in this embodiment of the present application, when the handover command message received by the UE carries a second NAS security algorithm and / or the AMF key change indication is 1, the UE stores the first NAS security context, and when the handover of the UE user equipment fails, the UE uses the first NAS security context to perform non-access stratum NAS protection between the UE and the first AMF, or when the NASC integrity check performed by the UE fails, the UE continues to use the current first NAS security context, so that the key on the user equipment is the same as the key on the first AMF.

[0015] Referring to the second aspect, in some implementations of the second aspect, the first NAS security context includes a first NAS security algorithm, a first AMF key Kamf1, a first non-access stratum NAS key, and a first non-access stratum count NAS COUNT.

[0016] According to the handover processing method provided in this embodiment of the present application, the first NAS security context includes an AMF key Kamf1 negotiated for use between the first AMF and the user equipment UE, a NAS key generated through negotiation between the first AMF and the user equipment UE, and a non-access stratum count NAS COUNT.

[0017] With reference to the second aspect, in some implementations of the second aspect, the AMF key change instruction being a default value includes the AMF key change instruction being 1.

[0018] According to the handover processing method provided in this embodiment of the present application, if the value of the AMF key change instruction is 1, this means that key derivation is performed.

[0019] According to a third aspect, there is provided a handover processing method including: receiving, by a first access and mobility management function AMF, a handover request message sent by a first access network device; performing key derivation by the first AMF according to a local policy to obtain a second AMF key; generating, by the first AMF, a second NAS security context based on the second AMF key and a first NAS security algorithm, where the first NAS security algorithm is a NAS security algorithm negotiated between the first AMF and a user equipment UE; and using, by the first AMF, the second NAS security context to perform non-access stratum NAS protection between the first AMF and the UE.

[0020] According to the handover processing method provided in this embodiment of the present application, when the first AMF generates a second AMF key by performing key derivation, the first AMF can generate a second NAS security context based on the second AMF key and a first NAS security algorithm negotiated between the first AMF and the user equipment UE.

[0021] Referring to the third aspect, in some implementations of the third aspect, the second NAS security context includes a first NAS security algorithm, a second AMF key, a second non-access stratum NAS key, and a second non-access stratum count NAS COUNT.

[0022] According to a fourth aspect, there is provided a handover processing method including the steps of: receiving, by a user equipment UE, a handover command message sent by a first access network device, where the handover command message carries a second NAS security algorithm selected by a second access and mobility management function AMF and an AMF key change instruction; and, when the second NAS security algorithm is different from the first NAS security algorithm and the AMF key change instruction is a default value, storing, by the UE, the first NAS security algorithm and performing key derivation to obtain a second AMF key, where the first NAS security algorithm is a NAS security algorithm negotiated between the UE and the first access and mobility management function AMF.

[0023] According to the handover processing method provided in this embodiment of the present application, when the handover command message received by the UE carries a second NAS security algorithm and the AMF key change indication is 1, the UE stores the first NAS security algorithm and performs key derivation based on the AMF key change indication to obtain a second AMF key. Referring to the fourth aspect, in some implementations of the fourth aspect, the UE generates a second NAS security context based on the second AMF key and the first NAS security algorithm.

[0024] According to the handover processing method provided in this embodiment of the present application, the UE can generate a second NAS security context based on the newly generated second AMF key and the stored first NAS security algorithm.

[0025] Referring to the fourth aspect, in some implementations of the fourth aspect, when a handover of the UE fails, the UE uses the second NAS security context to perform non-access stratum NAS security protection between the UE and the first AMF.

[0026] According to the handover processing method provided in this embodiment of the present application, when the handover of the UE fails, the UE uses the second NAS security context to perform non-access stratum NAS security protection between the UE and the first AMF.

[0027] Referring to the fourth aspect, in some implementations of the fourth aspect, when a handover of the UE fails, the UE generates a second NAS security context based on a second AMF key and a first NAS security algorithm, and uses the second NAS security context to perform non-access stratum NAS security protection between the UE and the first AMF.

[0028] According to the handover processing method provided in this embodiment of the present application, when the handover of the UE fails, the UE first generates a second NAS security context based on the newly generated second AMF key and the stored first NAS security algorithm, and then uses the second NAS security context to perform non-access stratum NAS security protection between the UE and the first AMF.

[0029] With reference to the fourth aspect, in some implementations of the fourth aspect, the AMF key change instruction being a default value includes the AMF key change instruction being 1.

[0030] According to the handover processing method provided in this embodiment of the present application, if the value of the AMF key change instruction is 1, this means that key derivation is performed.

[0031] According to a fifth aspect, a handover processing device is provided. The device may be configured to perform the operation of the user equipment in the first aspect, or any one of the possible implementations of the first aspect, or the operation of the user equipment in the third aspect, or any one of the possible implementations of the third aspect. Specifically, the handover processing device may include corresponding means configured to realize the steps or functions described in the first aspect, or any one of the possible implementations of the first aspect, or the steps or functions described in the third aspect, or any one of the possible implementations of the third aspect. The corresponding means may be the user equipment in the first aspect or the third aspect, or may be a chip or a functional module in the user equipment in the first aspect or the third aspect. The steps or functions may be implemented by software, hardware, or a combination of hardware and software.

[0032] According to a sixth aspect, a handover processing device is provided. The device may be configured to perform the operation of the first AMF in the second aspect, or any one of the possible implementations of the second aspect, or the operation of the first AMF in the fourth aspect, or any one of the possible implementations of the fourth aspect. Specifically, the handover processing device may include corresponding means configured to realize the steps or functions described in the second aspect, or any one of the possible implementations of the second aspect, or the steps or functions described in the fourth aspect, or any one of the possible implementations of the fourth aspect. The corresponding means may be the first AMF in the second aspect or the fourth aspect, or may be a chip or a functional module in the first AMF in the second aspect or the fourth aspect. The steps or functions may be implemented by software, hardware, or a combination of hardware and software.

[0033] According to a seventh aspect, a communication device is provided, comprising a processor, a transceiver and a memory. The memory is configured to store a computer program. The transceiver is configured to perform the steps of transmitting and receiving in the handover processing method of any one of the first to fourth aspects or possible implementations of the first to fourth aspects. The processor is configured to call the computer program from the memory and execute the computer program to enable the communication device to perform the handover processing method of any one of the first to fourth aspects or possible implementations of the first to fourth aspects.

[0034] Optionally, there is one or more processors and one or more memories.

[0035] Optionally, the memory may be integrated with the processor, or the memory and the processor may be located separately.

[0036] Optionally, a transceiver may include a transmitter (transmitter) and a receiver (receiver).

[0037] According to an eighth aspect, there is provided a system, the system including the handover processing device provided in the fifth aspect and the sixth aspect.

[0038] According to a ninth aspect, a computer program product is provided. The computer program product includes a computer program (sometimes called code or instructions). When the computer program is executed, the computer is enabled to perform the method of any one of the first to fourth aspects or possible implementations of the first to fourth aspects.

[0039] According to a tenth aspect, a computer readable medium is provided. The computer readable medium stores a computer program (sometimes called code or instructions). When the computer program is executed on a computer, the computer is enabled to execute the method of any one of the first to fourth aspects or possible implementations of the first to fourth aspects.

[0040] According to an eleventh aspect, there is provided a chip system, the chip system including a memory and a processor. The memory is configured to store a computer program. The processor is configured to call the computer program from the memory and execute the computer program to enable a communication device to which the chip system is attached to perform a method of any one of the first to fourth aspects or possible implementations of the first to fourth aspects. [Brief description of the drawings]

[0041] [Figure 1] 1 illustrates a network architecture applicable to an embodiment of the present application. [Diagram 2] FIG. 2 is a schematic diagram of a handover failure procedure. [Diagram 3]FIG. 13 is a schematic diagram of another handover failure procedure. [Figure 4] 4 is a schematic flowchart of a handover processing method according to an embodiment of the present application; [Diagram 5] 4 is a schematic flowchart of another handover processing method according to an embodiment of the present application; [Figure 6] FIG. 1 is a schematic diagram of a handover processing device 10 according to an embodiment of the present application. [Figure 7] FIG. 2 is a schematic structural diagram of a user equipment 20 applicable to an embodiment of the present application. [Figure 8] 2 is a schematic diagram of a handover processing device 30 according to an embodiment of the present application. [Figure 9] FIG. 2 is a schematic structural diagram of a first AMF 40 applicable to one embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0042] Hereinafter, the technical solutions of the present application will be described with reference to the accompanying drawings.

[0043] 1 shows a network architecture applicable to the embodiments of the present application. As shown in FIG. 1, the following describes the components of the network architecture individually.

[0044] 1. User Equipment 110: User equipment 110 may include various handheld devices, vehicle-mounted devices, wearable devices, or computing devices with wireless communication capabilities or other processing devices connected to wireless modems, as well as various forms of terminals, mobile stations (MS), terminals, user equipment (UE), soft clients, etc. For example, user equipment 110 may be a water meter, an electric meter, or a sensor.

[0045] 2. (radio access network, (R)AN) network element 120: The (R)AN network element 120 is configured to provide network access functionality for authorized user equipment within a particular area and can use different quality transmission tunnels depending on the user equipment type and service requirements, etc.

[0046] The (R)AN network element can manage radio resources and transfer control signals and user equipment data between the user equipment and the core network, and therefore can provide access services for user equipment. The (R)AN network element can also be understood as a base station in a conventional network.

[0047] 3. User Plane Network Element 130: The user plane network element 130 is configured to perform packet routing and forwarding, quality of service (QoS) processing for user plane data, and the like.

[0048] In a 5G communication system, the user plane network element may be a user plane function (UPF) network element. In future communication systems, the user plane network element may still be a UPF network element, or may have another name, which is not limited in this application.

[0049] 4. Data Network Network Element 140: The data network network element 140 is configured to provide a network for transmitting data.

[0050] In the 5G communication system, the data network element may be a data network (DN) network element. In future communication systems, the data network element may still be a DN network element, or may have another name. This is not limited in this application.

[0051] 5. Access Management Network Element 150: The Access Management Network Element 150 is primarily configured to perform mobility management, access management, etc., and may be configured to perform functions among the functions of a mobility management entity (MME) other than session management, e.g. lawful interception and access authorization / authentication.

[0052] In a 5G communication system, the access management network element may be an access and mobility management function (AMF) network element. In future communication systems, the access management network element may still be an AMF or may have another name, which is not limited in this application.

[0053] 6. Session Management Network Element 160: The session management network element 160 is configured, for example, mainly to manage sessions, assign and manage internet protocol (IP) addresses for user equipment, select endpoints that can manage user plane function interfaces and policy control and charging function interfaces, and perform downlink data notification.

[0054] In a 5G communication system, the session management network element may be a session management function (SMF) network element. In future communication systems, the session management network element may still be an SMF network element, or may have another name, which is not limited in this application.

[0055] 7. Policy control network element 170: The policy control network element 170 is configured, for example, to guide a unified policy mechanism for network behavior and provide policy rule information for a control plane function network element (such as an AMF or SMF).

[0056] In a 4G communication system, the policy control network element may be a policy and charging rules function (PCRF) network element. In a 5G communication system, the policy control network element may be a policy control function (PCF) network element. In future communication systems, the policy control network element may still be a PCF network element or may have another name, which is not limited in this application.

[0057] 8. Authentication Server 180: The authentication server 180 is configured to authenticate services and generate keys to perform mutual authentication between the authentication server 180 and user equipment and to support a unified authentication mechanism.

[0058] In the 5G communication system, the authentication server may be an authentication server function (AUSF) network element. In future communication systems, the authentication server function network element may still be an AUSF network element, or may have another name, which is not limited in this application.

[0059] 9. Data Management Network Element 190: The Data Management Network Element 190 is configured to handle, for example, user equipment identifiers, access authentication, and perform registration management and mobility management.

[0060] In a 5G communication system, the data management network element may be a unified data management (UDM) network element. In a 4G communication system, the data management network element may be a home subscriber server (HSS) network element. In future communication systems, the unified data management may still be a UDM network element or may have another name. This is not limited in this application.

[0061] 10. Application Network Element 1100: The application network element is configured to, for example, route application sensitive traffic, access network exposure function network elements, and interact with policy mechanisms to perform policy control.

[0062] In a 5G communication system, the application network element may be an application function (AF) network element. In future communication systems, the application network element may still be an AF network element, or may have another name, which is not limited in this application.

[0063] 11. Network Storage Network Element: The network storage network element is configured to maintain real-time information of all network function services on the network.

[0064] In the 5G communication system, the network storage network element may be a network repository function (NRF) network element. In future communication systems, the network storage network element may still be an NRF network element, or may have another name, which is not limited in this application.

[0065] It will be understood that the aforementioned network elements and functions may be network elements on a hardware device, software functions running on dedicated hardware, or virtual functions instantiated on a platform (e.g., a cloud platform). For ease of explanation, the access management network element is an AMF, the data management network element is a UDM network element, the session management network element is an SMF network element, and the user plane network element is a UPF network element are used as an example in the following description of this application.

[0066] Furthermore, the AMF network element is abbreviated as AMF, the UDM network element is abbreviated as UDM, the SMF network element is abbreviated as SMF, and the UPF network element is abbreviated as UPF. Specifically, in the following description of the present application, the AMF may be replaced by an access management network element, the UDM may be replaced by a data management network element, the SMF may be replaced by a session management network element, and the UPF may be replaced by a user plane network element.

[0067] For ease of description, in the embodiment of the present application, the device is used as an example to describe the session establishment method, which is an AMF entity and a UDM entity. For the implementation method in which the device is a chip in the AMF entity and a chip in the UDM entity, please refer to the specific description of the device is an AMF entity and a UDM entity. Details will not be repeated.

[0068] In the network architecture shown in Figure 1, the user equipment is connected to the AMF through the N1 interface, the (R)AN is connected to the AMF through the N2 interface, the (R)AN is connected to the UPF through the N3 interface, the UPFs are connected to each other through the N9 interface, the UPFs are connected to the DN through the N6 interface, the SMF controls the UPF through the N4 interface, the AMF is connected to the SMF through the N11 interface, the AMF obtains subscription data of the user equipment from the UDM unit through the N8 interface, and the SMF obtains subscription data of the user equipment from the UDM unit through the N10 interface.

[0069] It should be understood that the above-mentioned network architecture applied to the embodiments of the present application is only an example for illustration purposes, and the network architecture applicable to the embodiments of the present application is not limited thereto. Any network architecture capable of performing the functions of the above-mentioned network elements is applicable to the embodiments of the present application.

[0070] For example, in some network architectures, network function network element entities such as AMF, SMF network element, PCF network element, BSF network element, and UDM network element are all referred to as network function (NF) network elements, or in some other network architectures, a set of network elements such as AMF, SMF network element, PCF network element, BSF network element, and UDM network element may be referred to as control plane function network elements.

[0071] The technical solutions of the embodiments of the present application may be applied to various communication systems, such as a global system for mobile communications (GSM) system, a code division multiple access (CDMA) system, a wideband code division multiple access (WCDMA) system, a general packet radio service (GPRS) system, a long term evolution (LTE) system, an LTE frequency division duplex (FDD) system, an LTE time division duplex (TDD), a universal mobile telecommunications system (UMTS), a worldwide interoperability for microwave access (WiMAX) communication system, a future 5th generation (5G) system, or a new radio (NR) system.

[0072] The user equipment in the embodiments of the present application may be referred to as user equipment, access terminal, subscriber unit, subscriber station, mobile station, mobile console, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent, user equipment, etc. The user device may be a mobile phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device with wireless communication capability, a computing device, other processing device connected to a wireless modem, an in-vehicle device, a wearable device, a user equipment in a future 5G network, or a user equipment in a future evolved public land mobile network (PLMN). This is not limited in the embodiments of the present application.

[0073] The network device in the embodiment of the present application may be a device configured to communicate with a user equipment. The network device may be a base transceiver station (BTS) in a global system for mobile communications (GSM) system or a code division multiple access (CDMA) system, or a Node B (NB) in a wideband code division multiple access (WCDMA) system, or an evolved Node B (eNB or eNodeB) in an LTE system, or a radio controller in a cloud radio access network (C(R)AN) scenario. Alternatively, the network device may be a relay station, an access point, an in-vehicle device, a wearable device, a network device in a future 5G network, or a network device in a future evolved PLMN network, etc. This is not limited in the embodiment of the present application.

[0074] In an embodiment of the present application, a user equipment or network device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory (also called a main memory). The operating system may be any one or more computer operating systems that process services through processes, such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a windows operating system. The application layer includes applications such as a browser, contacts, word processing software, and instant messaging software. In addition, the specific structure of the execution entity of the method provided in the embodiment of the present application is not particularly limited in the embodiment of the present application, as long as a program recording the code of the method provided in the embodiment of the present application can be executed to communicate according to the method provided in the embodiment of the present application. For example, the execution entity of the method provided in the embodiment of the present application may be a user equipment or a network device, or may be a functional module in the user equipment or network device that can call and execute a program.

[0075] In addition, aspects or features of the present application may be implemented as a method, apparatus, or article of manufacture using standard programming and / or engineering techniques. The term "article of manufacture" as used herein includes a computer program that may be accessed from any computer-readable component, carrier, or medium. For example, a computer-readable medium may include, but is not limited to, a magnetic storage component (e.g., a hard disk, a floppy disk, or a magnetic tape), an optical disk (e.g., a compact disc (CD), a digital versatile disc (DVD), a smart card, and a flash memory component (e.g., an erasable programmable read-only memory (EPROM), a card, a stick, or a key drive). In addition, various storage media described herein may refer to one or more devices and / or other machine-readable media configured to store information. The term "machine-readable medium" may include, but is not limited to, wireless channels, as well as various other media that can store, contain, and / or carry instructions and / or data.

[0076] The embodiment of the present application mainly involves the AMF, UE and (R)AN in the network architecture shown in Figure 1. The AMF in the present application includes a first AMF (also called source AMF) and a second AMF (also called target AMF). The (R)AN network element in the present application includes a first (R)AN (also called source(R)AN) network element and a second (R)AN (also called target(R)AN) network element.

[0077] Specifically, the first AMF in this application is the AMF that provides core network services for the UE before handover. The second AMF in this application is the AMF that is selected to provide core network services for the UE after handover. The first (R)AN network element in this application is the (R)AN network element that provides access network services for the UE before handover from the first AMF. The second (R)AN network element in this application is the (R)AN network element that is selected to provide access network services for the UE after handover to the second AMF. In addition, this application may involve AUSF / UDM, which is mainly configured to perform authentication, for example, to perform authentication between the UE and the network device. It should be understood that this application mainly discusses handover procedures, and authentication procedures are not limited in this application, and authentication between the UE and the network device is not described below.

[0078] Specifically, in the embodiment of the present application, for ease of description, the first (R)AN network element may be referred to as the first (R)AN for short, and the second (R)AN network element may be referred to as the second (R)AN for short. Handover in the embodiment of the present application means that the (R)AN network element providing the access network service for the UE changes from the first (R)AN to the second (R)AN. The first (R)AN cannot directly establish a connection to the second (R)AN for signaling exchange. If the first (R)AN is managed by the first AMF and the second (R)AN is managed by the second AMF, in the process of the (R)AN network element providing the access network service for the UE changing from the first (R)AN to the second (R)AN, related signaling needs to be transferred through the first AMF and the second AMF. If the (R)AN network element providing the access network service for the UE fails to change from the first (R)AN to the second (R)AN, the first (R)AN usually continues to provide the access network service for the UE. In this application, the change of the (R)AN network element providing the access network service for the UE from the first (R)AN to the second (R)AN is called handover for short, and the failure of the (R)AN network element providing the access network service for the UE from the first (R)AN to the second (R)AN is called handover failure for short.

[0079] Furthermore, before the handover, after the authentication between the UE and the network device is completed, the UE and the first AMF obtain the same AMF key. In the embodiment of the present application, for ease of description, the AMF key obtained by the UE and the first AMF is denoted as Kamf, and Kamf may also be referred to as the first AMF key or Kamf 1. Then, the UE and the first AMF respectively generate an integrity protection key used for NAS message protection based on Kamf and a non-access stratum (NAS) integrity protection algorithm negotiated between the UE and the first AMF, and the UE and the first AMF respectively generate a confidentiality protection key used for NAS message protection based on Kamf and a non-access stratum (NAS) confidentiality protection algorithm negotiated between the UE and the first AMF, and the integrity protection key used for NAS message protection and the confidentiality protection key used for NAS message protection may be collectively referred to as NAS Key. In an embodiment of the present application, for ease of explanation, the integrity protection key generated by the UE and the first AMF and used for NAS message protection is collectively referred to as Knasint, the confidentiality protection key generated by the UE and the first AMF and used for NAS message protection is collectively referred to as Knasenc, the integrity protection key generated by the UE and the first AMF based on Kamf and the NAS integrity protection algorithm negotiated between the UE and the first AMF and used for NAS message protection, and the confidentiality protection key generated by the UE and the first AMF based on Kamf and the NAS confidentiality protection algorithm negotiated between the UE and the first AMF and used for NAS message protection may be collectively referred to as the first NAS Key, and the NAS integrity protection algorithm and the NAS confidentiality protection algorithm negotiated between the UE and the first AMF may be collectively referred to as the first NAS security algorithm.

[0080] It should be understood that the method used by the UE and the first AMF to negotiate the NAS integrity protection algorithm and the NAS confidentiality protection algorithm is not limited in this application, and negotiation solutions specified in existing protocols may be used.

[0081] In order to ensure service continuity during handover, when handover occurs, the first AMF transfers the UE security context used between the first AMF and the UE to the second AMF. The UE security context includes Kamf, or Kamf' (also called Kamf 2 or second AMF key) obtained after key derivation is performed on Kamf, a first NAS security algorithm negotiated between the first AMF and the UE, a downlink non-access stratum count (DL NAS COUNT), a NAS security algorithm list supported by the UE, etc. It should be understood that the transfer of the UE security context used between the first AMF and the UE by the first AMF to the second AMF is a step specified in the handover procedure of the existing protocol. No improvement is made to this step in the present application. In other words, for the contents included in the step of sending the UE security context to the second AMF by the first AMF, reference should be made to the contents specified in the existing protocol, and only a brief description is provided here.

[0082] The second AMF generates a third NAS security context based on the AMF key included in the UE security context transferred by the first AMF and the second NAS security algorithm negotiated between the second AMF and the UE. The third NAS security context includes Kamf2, Knasint2, Knasenc2, DL NAS COUNT2, etc. Specifically, the second AMF negotiating the second NAS security algorithm with the UE includes the second AMF selecting a second NAS security algorithm from a NAS security algorithm list supported by the UE and included in the UE security context received from the first AMF, and generating a new NAS security context based on the selected second NAS security algorithm and the key Kamf or Kamf' included in the received UE security context. Unless otherwise specified, the second NAS security algorithm in this application is different from the first NAS security algorithm.

[0083] It should be understood that, similar to the first NAS security algorithm, the second NAS security algorithm includes a second NAS integrity protection algorithm and a second NAS confidentiality protection algorithm. The NAS integrity protection algorithm is used to generate a second integrity protection key, and the NAS confidentiality protection algorithm is used to generate a second confidentiality protection key.

[0084] Specifically, it can be seen from the above description that the UE security context sent by the first AMF to the second AMF includes two possible forms:

[0085] Format 1: The first AMF does not derive Kamf. The UE security context includes Kamf, DL NAS COUNT, a first NAS security algorithm negotiated between the first AMF and the UE, and a NAS security algorithm list supported by the UE.

[0086] Format 2: The first AMF performs key derivation on Kamf to generate a second AMF key Kamf'. The UE security context includes Kamf', DL NAS COUNT, a first NAS security algorithm negotiated between the first AMF and the UE, a NAS security algorithm list supported by the UE, and derivation indication information. The derivation indication information is used to indicate that the first AMF performs horizontal derivation on the AMF key.

[0087] In format 2, before the first AMF transfers the security context used between the first AMF and the UE to the second AMF, the first AMF performs key derivation on Kamf according to the local policy of the first AMF, and generates a key Kamf' after the key derivation. It should be understood that in the embodiment of the present application, the key derivation mechanism and parameters used to perform key derivation on the key to generate the second key are not limited, and only that the key on which the derivation is performed is not obtained by performing key derivation on the generated second key. In other words, the second key is separated from the key on which the derivation is performed.

[0088] In one possible implementation, the key derivation in this application may be horizontal key derivation as specified in existing protocols.

[0089] For example, the scheme for performing horizontal key derivation on Kamf to generate Kamf' is as follows:

[0090]

number

[0091] In another possible implementation, the key derivation in this application may be a key derivation scheme agreed upon between various network elements. For example, the first AMF and the second AMF agree on a default key derivation scheme. If the UE security context sent by the first AMF to the second AMF includes derivation indication information, the second AMF can determine that the key in the received UE security context is obtained by the first AMF by performing key derivation in the default key derivation scheme.

[0092] Specifically, it can be seen from the above description that the new NAS security context generated by the second AMF based on the UE security context transferred by the first AMF and the second NAS security algorithm negotiated between the second AMF and the UE includes two possible forms:

[0093] Format 1: This format corresponds to the above format 1 in which the first AMF does not perform derivation for Kamf. The new NAS security context includes Kamf2, Knasint2, Knasenc2, and DL NAS COUNT2, where Kamf2 is Kamf.

[0094] In one possible implementation, if the NAS integrity protection algorithm and NAS confidentiality protection algorithm negotiated between the second AMF and the UE are the same as the NAS integrity protection algorithm and NAS confidentiality protection algorithm negotiated between the first AMF and the UE, the second AMF generates an integrity protection key Knasint2 used for NAS message protection and a confidentiality protection key Knasenc2 used for NAS message protection based on Kamf and the NAS integrity protection algorithm and NAS confidentiality protection algorithm negotiated between the UE and the second AMF, where Knasint2 and Knasenc2 are the aforementioned Knasint and Knasenc.

[0095] In another possible implementation, if the NAS integrity protection algorithm and the NAS confidentiality protection algorithm negotiated between the second AMF and the UE are different from the NAS integrity protection algorithm and the NAS confidentiality protection algorithm negotiated between the first AMF and the UE, the second AMF generates an integrity protection key Knasint2 used for NAS message protection and a confidentiality protection key Knasenc2 used for NAS message protection based on Kamf and the NAS integrity protection algorithm and the NAS confidentiality protection algorithm negotiated between the UE and the second AMF, where Knasint2 and Knasenc2 are different from the aforementioned Knasint and Knasenc.

[0096] Format 2: This format corresponds to the above Format 2 where the first AMF derives Kamf. The new NAS security context includes Kamf', Knasint2, Knasenc2, DL NAS count, and derivation indication information. The derivation indication information is used to indicate that Kamf' is a derived AMF key.

[0097] Knasint2 and Knasenc2 are, respectively, an integrity protection key used for NAS message protection and a confidentiality protection key used for NAS message protection generated by the second AMF based on Kamf' and the NAS integrity protection algorithm and the NAS confidentiality protection algorithm negotiated between the UE and the second AMF.

[0098] In format 2, the second AMF receives the derivation indication information and further sends the derivation indication information to the UE. The derivation indication information is used to instruct the UE to perform derivation for Kamf, so that Kamf' on the UE side is the same as that on the network side.

[0099] It should be understood that after the second AMF receives the Kamf or Kamf' sent by the first AMF, it generates a NAS key (Knasenc2 and Knasint) used between the second AMF and the UE based on the NAS security algorithm (including the integrity protection algorithm and the confidentiality protection algorithm) selected by the second AMF and the received Kamf or Kamf', and in combination with the algorithm negotiation between the second AMF and the UE. The UE side also performs the same calculation. Finally, the AMF key and NAS key on the UE side are the same as those on the second AMF side.

[0100] Although it can be guaranteed that the AMF key and the NAS key on the UE are the same as those on the second AMF when the handover fails, it cannot be guaranteed that the NAS key on the UE is the same as those on the first AMF when the handover fails. Hereinafter, the case where the AMF key and the NAS key on the UE are different from those on the first AMF when the first AMF performs derivation for Kamf in the handover failure process and when the NAS security algorithm supported by the first AMF is different from the NAS security algorithm supported by the second AMF, and the case where the AMF key and the NAS key on the UE are different from those on the first AMF when the first AMF does not perform derivation for Kamf in the handover failure process and when the NAS security algorithm supported by the first AMF is different from the NAS security algorithm supported by the second AMF, will be briefly described separately with reference to Figures 2 and 3.

[0101] Figure 2 is a schematic diagram of a handover failure procedure, which includes a UE, a first AMF, a second AMF, a first (R)AN, a second (R)AN, and S1 to S11. The method steps shown in Figure 2 are described in detail below.

[0102] Before handover occurs, the AMF keys and NAS keys on the UE and the first AMF are Kamf, Knasenc, and Knasint, and DL NAS COUNT=X.

[0103] S1: The first (R)AN sends a handover request message to the first AMF.

[0104] The handover request message is used to indicate that an access network device handover is required. The handover request message may be referred to as handover required. It should be understood that in this application, no improvement is made to the handover request message sent by the first (R)AN to the first AMF. For details, please refer to the handover request message specified in the existing protocol.

[0105] S2: The first AMF performs key derivation.

[0106] In the handover failure procedure shown in Figure 2, the first AMF determines that an access network device handover is required after receiving a handover request message sent by the first (R)AN, and performs key derivation on the local first AMF key Kamf to obtain a second AMF key Kamf'.

[0107] It should be understood that after the first AMF executes S2, the AMF key and NAS key on the first AMF are Kamf', Knasenc, and Knasint.

[0108] S3: The first AMF sends the UE security context to the second AMF.

[0109] The UE security context includes Kamf', Knasenc, Knasint, and DL NAS COUNT (DL NAS COUNT=X+1). The step of sending the UE security context by the first AMF to the second AMF may be a step of initiating a create UE context service request by the first AMF to the second AMF, and the create UE context service request may be referred to as a create UE context request. It should be understood that in this application, no improvement is made to the step of sending the UE security context by the first AMF to the second AMF. For details, please refer to the step of sending the UE security context by the first AMF to the second AMF specified in the existing protocol.

[0110] S4: The second AMF creates a new NAS security context.

[0111] The new NAS security context includes NAS keys (Knasenc2 and Knasint2) generated by the second AMF based on Kamf' received by the second AMF and a second NAS security algorithm negotiated between the second AMF and the UE and used between the second AMF and the UE, and a DL NAS COUNT (DL NAS COUNT=0), where Knasenc2 and Knasint2 are different from Knasenc and Knasint.

[0112] S5: The second AMF sends a handover request to the second (R)AN.

[0113] The handover request is used to obtain related information of the second (R)AN. The handover request may be referred to as a handover request. It should be understood that in this application, no improvement is made to the step of sending a handover request by the second AMF to the second (R)AN. For details, please refer to the step of sending a handover request by the second AMF to the second (R)AN specified in the existing protocol.

[0114] S6: The second (R)AN sends a handover request response to the second AMF.

[0115] The handover request response is used to inform the second AMF of related information of the second (R)AN. The handover request response may be referred to as handover request acknowledge. It should be understood that in this application, no improvement is made to the step of sending a handover request response by the second (R)AN to the second AMF. For details, please refer to the step of sending a handover request response by the second (R)AN to the second AMF specified in the existing protocol.

[0116] S7: The second AMF sends a UE context creation service request response to the first AMF.

[0117] The create UE context service request response is used to inform the first AMF of related information of the second (R)AN. The create UE context service request response may be referred to as a create UE context response. It should be understood that in this application, no improvement is made to the step of sending a create UE context service request response by the second AMF to the first AMF. For details, please refer to the step of sending a create UE context service request response by the second AMF to the first AMF specified in the existing protocol.

[0118] S8: The first AMF sends a handover command message to the first (R)AN.

[0119] The handover command message is used to inform the first (R)AN of the relevant information of the second (R)AN. The handover command message may be referred to as a handover command. It should be understood that in this application, no improvement is made to the step of sending the handover command message by the first AMF to the first (R)AN. For details, please refer to the step of sending the handover command message by the first AMF to the first (R)AN specified in the existing protocol.

[0120] S9: The first (R)AN sends a handover command message to the UE.

[0121] The handover command message is used to inform the UE of the relevant information of the second (R)AN. The handover command message may be referred to as a handover command. It should be understood that in this application, no improvement is made to the step of sending the handover command message by the first (R)AN to the UE. For details, please refer to the step of sending the handover command message by the first (R)AN to the UE specified in the existing protocol.

[0122] S10: The UE creates a new NAS security context.

[0123] The new NAS security context includes NAS keys (Knasenc2 and Knasint2) generated by the UE based on Kamf' and a second NAS security algorithm negotiated between the second AMF and the UE and used between the second AMF and the UE, and a DL NAS COUNT (DL NAS COUNT=0).

[0124] After the UE executes S10, the AMF key and NAS key on the UE are Kamf', Knasenc2, and Knasint2.

[0125] If the UE fails the handover for some reason (e.g. because the signal of the second (R)AN is degraded or because the integrity check performed by the UE on the received NASC fails), S11 occurs, i.e. the handover fails. In this case, the UE continues to be served by the first AMF. However, the UE and the first AMF cannot perform NAS message security protection later, because the NAS Key on the UE is different from the NAS Key on the first AMF when the first AMF performs derivation for Kamf during handover.

[0126] Figure 3 is a schematic diagram of another handover failure procedure, which includes a UE, a first AMF, a second AMF, a first (R)AN, a second (R)AN, and S20 to S29. The method steps shown in Figure 3 are described in detail below.

[0127] Before handover occurs, the AMF keys and NAS keys on the UE and the first AMF are Kamf, Knasenc, and Knasint, and DL NAS COUNT=X.

[0128] S20: The first (R)AN sends a handover request message to the first AMF.

[0129] The handover request message is used to indicate that handover is required. This step is similar to the step of sending a handover request message by the first (R)AN to the first AMF shown in Figure 2. Therefore, the details are not described again here.

[0130] S21: The first AMF sends the UE security context to the second AMF.

[0131] The UE security context includes Kamf, Knasenc, Knasint, and DL NAS COUNT (DL NAS COUNT=X+1).

[0132] S22: The second AMF determines a new NAS security context.

[0133] The new NAS security context includes a NAS Key (Knasenc2 and Knasint2) and a DL NAS COUNT (DL NAS COUNT=X+1) generated by the second AMF based on the Kamf received by the second AMF and the second NAS security algorithm negotiated between the second AMF and the UE and used between the second AMF and the UE, where Knasenc2 and Knasint2 are different from Knasenc and Knasint.

[0134] S23: The second AMF sends a handover request to the second (R)AN.

[0135] The handover request is used to obtain relevant information of the second (R)AN.

[0136] S24: The second (R)AN sends a handover request response to the second AMF.

[0137] The handover request response is used to inform the second AMF of related information of the second (R)AN.

[0138] S25: The second AMF sends a UE context creation service request response to the first AMF.

[0139] The UE context creation service request response is used to notify the first AMF of related information of the second (R)AN.

[0140] S26: The first AMF sends a handover command message to the first (R)AN.

[0141] The handover command message is used to inform the first (R)AN of the relevant information of the second (R)AN.

[0142] S27: The first (R)AN sends a handover command message to the UE.

[0143] The handover command message is used to inform the UE of the relevant information of the second (R)AN.

[0144] S28: The UE creates a new NAS security context.

[0145] The new NAS security context is generated by the UE based on Kamf and a second NAS security algorithm negotiated between the second AMF and the UE, and includes a NAS Key (Knasenc2 and Knasint2) and a DL NAS COUNT (DL NAS COUNT=X+1) used between the second AMF and the UE.

[0146] After the UE executes S28, the AMF key and NAS key on the UE are Kamf, Knasenc2, and Knasint2.

[0147] If the UE fails the handover for some reason (e.g., due to the signal degradation of the second (R)AN), S29 occurs, i.e., the handover fails. In this case, the UE continues to be served by the first AMF. However, if the second (R)AN selects a second NAS security algorithm different from the aforementioned first NAS security algorithm during the handover, the Knasenc2 and Knasint2 generated by the UE based on Kamf and the second NAS security algorithm will be different from Knasenc and Knasint. In this case, the NAS Key on the UE is different from the NAS Key on the first AMF, so the UE and the first AMF cannot perform NAS message security protection later.

[0148] In order to avoid the situation where the NAS Key on the UE is different from the NAS Key on the first AMF in the method steps shown in Figures 2 and 3, the present application proposes a handover processing method that ensures that the NAS security context used by the UE is the same as the NAS security context used by the first AMF, so that the NAS Key on the UE is the same as the NAS Key on the first AMF. Hereinafter, the handover processing method provided in the embodiment of the present application will be described in detail with reference to Figures 4 and 5.

[0149] 4 is a schematic flowchart of a handover processing method according to an embodiment of the present application. The schematic flowchart includes a UE, a first AMF, a second AMF, a first (R)AN, a second (R)AN, and S110 to S140. The method steps shown in FIG. 4 are described in detail below.

[0150] Before handover, the NAS security context on the UE and the NAS security context on the first AMF respectively include Kamf (first AMF key Kamf1), Knasenc, Knasint (Knasenc and Knasint are collectively referred to as the first non-access stratum NAS key), DL NAS COUNT (first non-access stratum NAS count, where DL NAS COUNT=X), a NAS security algorithm (first NAS security algorithm) negotiated between the UE and the first AMF, etc. In the embodiment shown in Figure 4, the NAS security contexts on the UE and the first AMF before handover are collectively referred to as the first NAS security context.

[0151] S110: The first AMF determines that key derivation needs to be performed and stores the first NAS security context.

[0152] In one possible implementation, the first AMF stores the first NAS security context before performing key derivation.

[0153] In one possible implementation, the first AMF stores the first NAS security context after performing key derivation.

[0154] In this application, the order of performing key derivation by the first AMF and storing the first NAS security context by the first AMF is not strictly limited. Specifically, before the first AMF executes S110, the embodiment shown in Figure 4 further includes S111, that is, the first (R)AN sending a handover request message to the first AMF. In the embodiment shown in Figure 4, the step of sending a handover request message to the first AMF by the first (R)AN is similar to S1 in Figure 2. Therefore, the details will not be described again here.

[0155] Specifically, in the embodiment shown in FIG. 4, the first AMF stores the first NAS security context after receiving the handover request message, including the following two possible cases:

[0156] In possible case 1, the first AMF decides to store the first NAS security context if it does not perform key derivation for the key Kamf contained in the first NAS security context, which is consistent with the existing procedure shown in Figure 2.

[0157] In possible case 2, the first AMF determines that a key derivation needs to be performed on the key Kamf included in the first NAS security context according to a local policy. The embodiment shown in Figure 4 further includes S112, i.e., the first AMF performs key derivation.

[0158] Specifically, after storing the first NAS security context, the first AMF performs key derivation on the first key Kamf to obtain a second key Kamf'. It should be understood that the process of performing key derivation by the first AMF is not limited in this embodiment of the present application, and may be a process of performing key derivation by the first AMF specified in an existing protocol. The first AMF performs key derivation to generate a derived Kamf', which is called the first key in the embodiment shown in FIG. 4. In the embodiment shown in FIG. 4, possible case 2 in which the procedure does not match the existing procedure is mainly described, and possible case 1 in which the procedure matches the existing procedure is briefly described.

[0159] S113: The first AMF sends the UE security context to the second AMF.

[0160] Specifically, the step of sending the UE security context by the first AMF to the second AMF may be a step of initiating a UE context creation service request by the first AMF to the second AMF. Based on possible case 1 and possible case 2 of S110, the first AMF sending the UE security context to the second AMF also includes the following two possible cases:

[0161] In possible case 1, when the first AMF does not perform key derivation for the first key Kamf included in the first NAS security context, the UE security context sent by the first AMF to the second AMF includes Kamf, DL NAS COUNT (DL NAS COUNT = X + 1), a NAS security algorithm negotiated between the UE and the first AMF, and a NAS security algorithm list supported by the UE.

[0162] In possible case 2, when the first AMF performs key derivation on the first key Kamf included in the first NAS security context, the UE security context sent by the first AMF to the second AMF includes Kamf', DL NAS COUNT (DL NAS COUNT=X+1), a NAS security algorithm negotiated between the UE and the first AMF, a NAS security algorithm list supported by the UE, and a key derivation indication. The key derivation indication is used to indicate that the key in the UE security context sent by the first AMF to the second AMF is obtained by key derivation by the first AMF. The key derivation indication may be referred to as K_AMF_change_flag. Specifically, if the value of K_AMF_change_flag is 1, this means that the key in the UE security context sent by the first AMF to the second AMF is obtained by key derivation by the first AMF.

[0163] In the embodiment shown in Figure 4, after the second AMF receives the UE security context sent by the first AMF, the second AMF executes S114, that is, the second AMF generates a third NAS security context. Based on possible case 1 and possible case 2 of S113, the second AMF generating a third NAS security context also includes the following two possible cases:

[0164] In possible case 1, the key included in the UE security context sent by the first AMF to the second AMF is Kamf.

[0165] The second AMF generates an integrity protection key Knasint2 and a confidentiality protection key Knasenc2 used for NAS message protection based on the key Kamf in the UE security context sent by the first AMF and a NAS security algorithm selected from the NAS security algorithm list supported by the UE. A third NAS security context generated by the second AMF includes Kamf, Knasint2, Knasenc2, DL NAS COUNT (DL NAS COUNT=X+1), and the NAS security algorithm negotiated between the UE and the second AMF.

[0166] In one possible implementation, if the NAS security algorithm selected by the second AMF from the NAS security algorithm list supported by the UE is the same as the NAS security algorithm negotiated between the UE and the first AMF, Knasint2 and Knasenc2 are the same as Knasint and Knasenc. In this implementation, the AMF key and NAS key on the UE are not different from those on the first AMF when the handover fails.

[0167] In another possible implementation, if the NAS security algorithm selected by the second AMF from the NAS security algorithm list supported by the UE is different from the NAS security algorithm negotiated between the UE and the first AMF, Knasint2 and Knasenc2 are different from Knasint and Knasenc. In this implementation, the situation shown in Figure 3 occurs where the NAS key on the UE is different from the NAS Key on the first AMF.

[0168] In possible case 2, the key included in the UE security context sent by the first AMF to the second AMF is Kamf'.

[0169] The second AMF generates an integrity protection key Knasint2 and a confidentiality protection key Knasenc2 used for NAS message protection based on the key Kamf' in the UE security context sent by the first AMF and a NAS security algorithm selected from the NAS security algorithm list supported by the UE. The third NAS security context generated by the second AMF includes Kamf', Knasint2, Knasenc2, DL NAS COUNT (DL NAS COUNT = X + 1) or DL ​​NAS COUNT (DL NAS COUNT = 0), the NAS security algorithm negotiated between the UE and the second AMF, and a key derivation instruction.

[0170] In one possible implementation, if the NAS security algorithm selected by the second AMF from the list of NAS security algorithms supported by the UE is the same as the NAS security algorithm negotiated between the UE and the first AMF, Knasint2 and Knasenc2 are different from Knasint and Knasenc because the keys are different. In this implementation, the situation shown in Figure 2 occurs where the AMF key and NAS key on the UE are different from those on the first AMF.

[0171] In another possible implementation, if the NAS security algorithm selected by the second AMF from the list of NAS security algorithms supported by the UE is different from the NAS security algorithm negotiated between the UE and the first AMF, then Knasint2 and Knasenc2 are different from Knasint and Knasenc because both the key and the NAS security algorithm are different. In this implementation, the situation shown in Figure 2 occurs where the AMF key and NAS Key on the UE are different from those on the first AMF.

[0172] Furthermore, after generating the third NAS security context, the second AMF determines a non-access stratum container (NASC) based on the third NAS security context. In other words, the embodiment shown in Figure 4 further includes S115, that is, the second AMF determines the NASC. Based on possible case 1 and possible case 2 of S114, the second AMF determines the NASC also includes the following two possible cases:

[0173] In possible case 1, the third NAS security context includes Kamf', Knasint2, Knasenc2, DL NAS COUNT (DL NAS COUNT=X+1), and NAS security algorithms negotiated between the UE and the second AMF. In this case, NASC includes COUNT (COUNT=X+1), and NAS security algorithms negotiated between the UE and the second AMF.

[0174] In possible case 2, the third NAS security context includes Kamf', Knasint2, Knasenc2, DL NAS COUNT(DL NAS COUNT=X+1) or DL ​​NAS COUNT(DL NAS COUNT=0), NAS security algorithms negotiated between the UE and the second AMF, and key derivation instructions. In this case, the NASC includes DL NAS COUNT(DL NAS COUNT=X+1) or DL ​​NAS COUNT(DL NAS COUNT=0), NAS security algorithms negotiated between the UE and the second AMF, and key derivation instructions.

[0175] It should be understood that the second AMF needs to send the NASC to the UE. Specifically, the NASC needs to be sent to the UE by the second (R)AN, the first AMF, and forwarding by the first (R)AN. The manner of sending the NASC to the UE is not limited in this embodiment of the present application. For details, please refer to the manner specified in the existing protocol. For example, the embodiment shown in Figure 4 further includes the following steps:

[0176] S116: The second AMF sends a handover request to the second (R)AN.

[0177] The handover request is used to obtain relevant information of the second (R)AN.

[0178] S117: The second (R)AN sends a handover request response to the second AMF.

[0179] The handover request response is used to inform the second AMF of related information of the second (R)AN.

[0180] S118: The second AMF sends a UE context creation service request response to the first AMF.

[0181] The UE context creation service request response carries the NASC.

[0182] S119: The first AMF sends a handover command message to the first (R)AN.

[0183] The handover command message carries the NASC.

[0184] S1191: The first (R)AN sends a handover command message to the UE.

[0185] The handover command message carries the NASC.

[0186] Optionally, the embodiment shown in FIG. 4 further includes S120, i.e., the first AMF resumes using the first NAS security context.

[0187] In one possible implementation, after receiving the handover request message shown in S110, the first AMF performs key derivation based on possible case 2 of S110. The first AMF deletes the second Kamf' at any time after the first AMF sends the UE context including the horizontally derived Kamf' to the second AMF and resumes using the first NAS security context.

[0188] In another possible implementation, the first AMF sets a flag bit to distinguish the first NAS security context from the fourth NAS security context after performing S110, i.e., after storing the first NAS security context and performing key derivation to generate the fourth NAS security context. In other words, the first AMF can resume using the first NAS security context before or when sending the UE context to the second AMF.

[0189] S130: The UE stores a first NAS security context.

[0190] After the UE receives the handover command message sent by the first (R)AN and obtains the NASC, the UE performs an integrity verification on the NASC. After the integrity verification on the NASC is successful, if the NAS security algorithm negotiated between the UE and the second AMF and included in the NASC is different from the NAS security algorithm negotiated between the UE and the first AMF and / or the NASC carries a K_AMF_change_flag with a value of 1, the UE stores the first NAS security context. The K_AMF_change_flag may be referred to as an AMF key change indication or a key derivation indication.

[0191] After storing the first NAS security context, the UE obtains a third NAS security context by updating the first NAS security context based on the information in the NASC, i.e., executes S131.

[0192] S140: The UE resumes using the first NAS security context.

[0193] When the UE finds that the handover has failed, the UE resumes using the first NAS security context stored at S130.

[0194] Optionally, the UE deletes the third NAS security context.

[0195] In another possible implementation, the UE does not perform S130, S131, and S140. Instead, the UE performs S132, i.e., the UE continues to use the first NAS security context.

[0196] After the UE receives the handover command message sent by the first (R)AN and obtains the NASC, the UE performs an integrity verification on the NASC. After the integrity verification on the NASC fails, the UE continues to use the first NAS security context currently used.

[0197] The NAS security context in this embodiment of the present application mainly includes a key identifier ngKSI, an AMF key, a NAS Key, a DL NAS count, a UL NAS count, a NAS security algorithm, etc. The key identifier is used to indicate the AMF key, and the DL NAS count and the UL NAS count are the downlink NAS count and the uplink NAS count, respectively. The contents included in the above-mentioned NAS security context are merely briefly described and do not limit the scope of protection of the present application.

[0198] In short, in the embodiment shown in FIG. 4, when handover fails, both the UE and the first AMF resume using the first NAS security context to perform NAS security protection, so that the AMF key and NAS key used by the UE become the same as the AMF key and NAS key used by the first AMF.

[0199] 5 is a schematic flowchart of another handover processing method according to an embodiment of the present application. The schematic flowchart includes a UE, a first AMF, a second AMF, a first (R)AN, a second (R)AN, and S210 to S240. The method steps shown in FIG. 5 are described in detail below.

[0200] Before handover, the NAS security context on the UE and the NAS security context on the first AMF respectively include Kamf, Knasenc, Knasint, DL NAS COUNT (DL NAS COUNT=X), NAS security algorithms negotiated between the UE and the first AMF, etc. In the embodiment shown in Figure 4, the NAS security contexts on the UE and the first AMF before handover are collectively referred to as the first NAS security context.

[0201] S211: The first (R)AN sends a handover request message to the first AMF.

[0202] In the embodiment shown in Figure 5, the step of sending a handover request message by the first (R)AN to the first AMF is similar to S1 in Figure 2. Therefore, the details are not described again here.

[0203] S212: The first AMF sends the UE security context to the second AMF.

[0204] Specifically, the step of sending the UE security context by the first AMF to the second AMF may be a step of initiating a UE context creation service request by the first AMF to the second AMF. The following two possible cases are included:

[0205] In possible case 1, when the first AMF does not perform key derivation for the key Kamf included in the first NAS security context, the UE security context sent by the first AMF to the second AMF includes Kamf, DL NAS COUNT (DL NAS COUNT = X + 1), a NAS security algorithm negotiated between the UE and the first AMF, and a NAS security algorithm list supported by the UE.

[0206] In possible case 2, when the first AMF performs key derivation on the key Kamf included in the first NAS security context, the UE security context sent by the first AMF to the second AMF includes Kamf', DL NAS COUNT (DL NAS COUNT=X+1), a NAS security algorithm negotiated between the UE and the first AMF, a NAS security algorithm list supported by the UE, and a key derivation indication. The key derivation indication is used to indicate that the key in the UE security context sent by the first AMF to the second AMF is obtained by key derivation by the first AMF. The key derivation indication may be referred to as K_AMF_change_flag. Specifically, if the value of K_AMF_change_flag is 1, this means that the key in the UE security context sent by the first AMF to the second AMF is obtained by key derivation by the first AMF.

[0207] In the embodiment shown in Figure 5, the second AMF performs S213 after receiving the UE security context sent by the first AMF, that is, the second AMF generates a third NAS security context. Specifically, in the embodiment shown in Figure 5, the step of generating a third NAS security context by the second AMF is similar to the step of generating a third NAS security context by the second AMF in the embodiment shown in Figure 4. Therefore, the details will not be described again here.

[0208] Furthermore, after generating the third NAS security context, the second AMF determines the NASC based on the new NAS security context. In other words, the embodiment shown in Figure 5 further includes S214, that is, the second AMF determines the NASC. Specifically, in the embodiment shown in Figure 5, the step of determining the NASC by the second AMF is similar to the step of determining the NASC by the second AMF in the embodiment shown in Figure 4. Therefore, the details will not be described again here.

[0209] It should be understood that the second AMF needs to send the NASC to the UE. Specifically, the NASC needs to be sent to the UE by the second (R)AN, the first AMF, and forwarding by the first (R)AN. The manner of sending the NASC to the UE is not limited in this embodiment of the application. For details, please refer to the manner specified in the existing protocol. This manner is similar to the manner of sending the NASC to the UE by the second AMF in the embodiment shown in Figure 4. Therefore, the details will not be described again here.

[0210] S210: The UE stores a first NAS security context.

[0211] After the UE receives the handover command message sent by the first (R)AN and acquires the NASC, the UE first stores the first NAS security context, and then acquires the third NAS security context by updating the first NAS security context based on the information in the NASC, i.e., executes S211.

[0212] S220: The UE creates a second NAS security context.

[0213] If the UE finds that the handover has failed, then the UE may generate a third NAS security context in several possible cases, including:

[0214] In possible case 1, the NAS security algorithm negotiated between the UE and the second AMF and included in the NASC is different from the NAS security algorithm negotiated between the UE and the first AMF, and the NASC carries a K_AMF_change_flag with value 1. The K_AMF_change_flag with value 1 carried in the NASC means that the UE needs to perform key derivation to obtain Kamf'.

[0215] The UE performs key derivation on Kamf to obtain Kamf'. Furthermore, the UE generates a second NAS security context based on the second key Kamf' and the NAS security algorithm negotiated between the UE and the first AMF and included in the stored first NAS security context. The UE then deletes the first NAS security context and the third NAS security context generated in S211, and the UE starts using the second NAS security context to provide NAS protection between the UE and the first AMF.

[0216] In possible case 2, the NAS security algorithm negotiated between the UE and the second AMF and included in the NASC is different from the NAS security algorithm negotiated between the UE and the first AMF.

[0217] The UE uses the first NAS security context to perform NAS protection between the UE and the first AMF, which is similar to the steps of the embodiment shown in FIG.

[0218] In possible case 3, the NASC carries a K_AMF_change_flag with value 1.

[0219] The UE performs key derivation on Kamf to obtain Kamf'. Furthermore, the UE generates a second NAS security context based on the second key Kamf' and the NAS security algorithm negotiated between the UE and the first AMF and included in the stored first NAS security context. The UE then deletes the first NAS security context and the third NAS security context generated in S211, and the UE starts using the second NAS security context to provide NAS protection between the UE and the first AMF.

[0220] In addition, after the UE finds that the handover has failed, it needs to notify the first AMF through the first (R)AN to cancel the handover. In this case, the method steps shown in Figure 5 further include S221, that is, the first (R)AN sends a handover cancellation request to the first AMF.

[0221] S230: The first AMF creates a second NAS security context.

[0222] The first AMF side generating a second NAS security context after receiving a handover cancellation request includes the following two possible cases:

[0223] In possible case 1, the first AMF performs key derivation on Kamf before executing S212 to obtain a second key Kamf'. In this case, the first AMF side generates a second NAS security context based on Kamf' and the NAS security algorithm negotiated between the UE and the first AMF and included in the first NAS security context after receiving the handover cancellation request. Then, the first AMF side performs NAS security protection between the first AMF and the UE using the second NAS security context. In the embodiment shown in FIG. 5, possible case 1 in which the first AMF generates a second NAS security context is mainly considered.

[0224] In possible case 2, the first AMF does not perform key derivation to Kamf before executing S212. In this case, the first AMF side performs NAS protection between the UE and the first AMF using the first NAS security context after receiving the handover cancellation request, which is similar to the steps of the embodiment shown in Figure 4.

[0225] In short, in the embodiment shown in Figure 5, when handover fails, both the UE and the first AMF perform NAS security protection using the second NAS security context, so that the NAS key used by the UE is the same as the NAS key used by the first AMF.

[0226] It should be understood that the sequence numbers of the above processes do not refer to the execution order in the above method embodiments. The execution order of the processes should be determined based on the functions and internal logic of the processes, and should not be construed as a restriction on the implementation process of the embodiments of the present application.

[0227] It should be further understood that the terms "first" and "second" in this application are used merely for distinction and should not be construed as a limitation on this application. The terms "first NAS security context" and "second NAS security context" are used merely to distinguish different NAS security contexts.

[0228] The above describes in detail the handover processing method provided in the embodiment of the present application with reference to Figures 4 and 5. Hereinafter, the handover processing device provided in the embodiment of the present application will be described in detail with reference to Figures 6 to 9.

[0229] 6 is a schematic diagram of a handover processing device 10 according to the present application. As shown in FIG. 6, the device 10 includes a receiving unit 110 and a processing unit 120.

[0230] The receiving unit 110 is configured to receive a handover command message sent by the first access network device, where the handover command message carries a second NAS security algorithm selected by the second access and mobility management function AMF, and an AMF key change instruction.

[0231] The processing unit 120 is configured to store a first non-access stratum NAS security context when the second NAS security algorithm is different from the first NAS security algorithm currently used by the UE and / or the AMF key change indication is 1, where the first NAS security context is a NAS security context generated through negotiation between the UE and the first AMF.

[0232] The processing unit 120 is further configured to use the first NAS security context to provide non-access stratum NAS protection between the UE and the first AMF when the handover fails.

[0233] The device 10 corresponds exactly to the user equipment in the method embodiment. The device 10 may be the user equipment in the method embodiment, or may be a chip or a functional module in the user equipment in the method embodiment. The corresponding units in the device 10 are configured to perform the corresponding steps performed by the user equipment in the method embodiments shown in Fig. 4 and Fig. 5.

[0234] The receiving unit 110 in the device 10 performs the receiving steps performed by the user equipment in the embodiment of the method, for example, the receiving unit 110 performs step 1191 of receiving a handover command message sent by the first (R)AN in Fig. 4 and step 219 of receiving a handover command message sent by the first (R)AN in Fig. 5.

[0235] The processing unit 120 performs internal execution or processing steps performed by the user equipment in the method embodiments, for example, the processing unit 120 performs step 130 of storing the first NAS security context in Figure 4, step 131 of generating a third NAS security context in Figure 4, step 140 of resuming using the first NAS security context in Figure 4 or step 132 of continuing to use the first NAS security context in Figure 4, step 210 of storing the first NAS security context in Figure 5, step 211 of generating a third NAS security context in Figure 5, and step 220 of generating a second NAS security context in Figure 5.

[0236] The handover processing device 10 shown in FIG. 6 may further include a sending unit (not shown in FIG. 6). The sending unit is configured to perform a function of sending a message to another device. The receiving unit 110 and the sending unit may form a transceiver unit and may have both receiving and transmitting capabilities. The processing unit 120 may be a processor, the sending unit may be a receiver, the receiving unit 110 may be a transmitter, and the receiver and the transmitter may be integrated to form a transceiver.

[0237] FIG. 7 is a schematic structural diagram of a user equipment 20 applicable to an embodiment of the present application. The user equipment 20 can be applied to the system shown in FIG. 1. For ease of description, FIG. 7 only shows the main components in the user equipment. As shown in FIG. 7, the user equipment 20 includes a processor, a memory, a control circuit, an antenna, and an input / output device. The processor is configured to control the antenna and the input / output device to transmit and receive signals. The memory is configured to store a computer program. The processor is configured to call the computer program from the memory and execute the computer program to perform the corresponding procedures and / or operations performed by the user equipment in the handover processing method provided in the present application. Details will not be described here.

[0238] Those skilled in the art will understand that for ease of explanation, FIG. 7 shows only one memory and only one processor. In reality, the user equipment may have multiple processors and memories. The memory may also be referred to as a storage medium, a storage device, etc. This is not limited to the embodiments of the present application.

[0239] 8 is a schematic diagram of a handover processing device 30 according to the present application. As shown in FIG. 8, the device 30 includes a receiving unit 310, a processing unit 320 and a sending unit 330.

[0240] The receiving unit 310 is configured to receive a handover request message sent by the first access network device.

[0241] The processing unit 320 is configured to determine that key derivation needs to take place according to a local policy.

[0242] The processing unit 320 is further configured to store a first non-access stratum NAS security context, where the first NAS security context is a NAS security context generated through negotiation between the first AMF and the user equipment UE.

[0243] The sending unit 330 is configured to send the user equipment UE security context to the second AMF.

[0244] The processing unit 320 is further configured to resume using the first NAS security context.

[0245] The device 30 corresponds exactly to the first AMF in the method embodiment. The device 30 may be the first AMF in the method embodiment, or may be a chip or a functional module in the first AMF in the method embodiment. The corresponding units in the device 30 are configured to perform the corresponding steps performed by the first AMF in the method embodiment shown in Figures 4 and 5.

[0246] The receiving unit 310 in the device 30 performs the receiving steps performed by the first AMF in the embodiment of the method. For example, the receiving unit 310 performs step 111 of receiving a handover request message sent by the first (R)AN in Fig. 4, step 118 of receiving a UE context creation service request response sent by the second AMF in Fig. 4, step 211 of receiving a handover request message sent by the first (R)AN in Fig. 5, and step 217 of receiving a UE context creation service request response sent by the second AMF in Fig. 5.

[0247] The processing unit 320 performs the internal execution or processing steps performed by the first AMF in the embodiment of the method, for example, the processing unit 320 performs step 110 of storing the first NAS security context in Figure 4, step 112 of performing key derivation in Figure 4, step 120 of resuming using the first NAS security context in Figure 4, and step 230 of generating a second NAS security context in Figure 5.

[0248] The sending unit 330 performs the sending steps performed by the first AMF in the embodiment of the method, for example, the sending unit 330 performs step 113 of sending a UE security context to the second AMF in Fig. 4, step 119 of sending a handover command message to the first (R)AN in Fig. 4, step 212 of sending a UE security context to the second AMF in Fig. 5, and step 218 of sending a handover command message to the first (R)AN in Fig. 5.

[0249] The receiving unit 310 and the transmitting unit 330 may form a transceiver unit, and may have both receiving and transmitting capabilities. The processing unit 320 may be a processor, the transmitting unit 330 may be a receiver, the receiving unit 310 may be a transmitter, and the receiver and the transmitter may be integrated to form a transceiver.

[0250] As shown in Fig. 9, an embodiment of the present application further provides a first AMF 40. The first AMF 40 includes a processor 410, a memory 420, and a transceiver 430. The memory 420 stores instructions or programs. The processor 430 is configured to execute the instructions or programs stored in the memory 420. When the instructions or programs stored in the memory 420 are executed, the transceiver 430 is configured to perform the operations performed by the receiving unit 310 and the transmitting unit 330 in the device 30 shown in Fig. 8.

[0251] An embodiment of the present application further provides a computer-readable storage medium, which stores instructions that, when executed by a computer, cause the computer to execute the steps performed by the first AMF in the methods illustrated in Figures 4 and 5.

[0252] An embodiment of the present application further provides a computer-readable storage medium, which stores instructions that, when executed by a computer, cause the computer to execute the steps performed by the user equipment in the methods illustrated in Figures 4 and 5.

[0253] An embodiment of the present application further provides a computer program product including instructions, which when executed on a computer, cause the computer to execute the steps performed by the first AMF in the methods illustrated in Figures 4 and 5.

[0254] An embodiment of the present application further provides a computer program product including instructions, which when executed on a computer, cause the computer to execute the steps performed by the user equipment in the methods illustrated in Figures 4 and 5.

[0255] An embodiment of the present application further provides a chip including a processor. The processor is configured to read and execute a computer program stored in the memory to perform corresponding operations and / or procedures performed by the user equipment in the handover processing method provided in the present application. Optionally, the chip further includes a memory. The memory is connected to the processor through a circuit or cable. The processor is configured to read and execute the computer program in the memory. Optionally, the chip further includes a communication interface, and the processor is connected to the communication interface. The communication interface is configured to receive data and / or information that needs to be processed. The processor obtains the data and / or information from the communication interface and processes the data and / or information. The communication interface may be an input / output interface.

[0256] The present application further provides a chip including a processor. The processor is configured to call and execute a computer program stored in the memory to perform corresponding operations and / or procedures performed by the first AMF in the handover processing method provided in the present application. Optionally, the chip further includes a memory. The memory is connected to the processor through a circuit or cable. The processor is configured to read and execute the computer program in the memory. Optionally, the chip further includes a communication interface, and the processor is connected to the communication interface. The communication interface is configured to receive data and / or information that needs to be processed. The processor obtains the data and / or information from the communication interface and processes the data and / or information. The communication interface may be an input / output interface.

[0257] Those skilled in the art will realize that, in combination with the examples described in the embodiments disclosed herein, the units and algorithm steps can be implemented by electronic hardware, or by a combination of computer software and electronic hardware. Whether a function is implemented by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use various methods to implement the functions described for each specific application, but the implementation should not be considered to go beyond the scope of this application.

[0258] Those skilled in the art will clearly understand that, for the sake of convenient and concise description, the detailed operation processes of the aforementioned systems, devices, and units can be referred to the corresponding processes in the aforementioned method embodiments, and the details will not be described again here.

[0259] In some embodiments provided in the present application, it should be understood that the disclosed system, device, and method may be implemented in other ways. For example, the described device embodiment is only an example. For example, the division into units is only a logical division of functions, and may be a different division in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some functions may be ignored or not performed. In addition, the shown or discussed mutual couplings or direct couplings or communication connections may be implemented using some interfaces. Indirect couplings or communication connections between devices or units may be implemented in electronic, mechanical, or other forms.

[0260] The units described as separate parts may or may not be physically separated, and the parts shown as units may or may not be physical units, and may be located in one place or distributed among multiple network units. Some or all of the units may be selected based on actual requirements to achieve the objectives of the solutions of the embodiments.

[0261] In addition, the functional units of the embodiments of the present application may be integrated into one processing unit, or each of the units may exist physically alone, or two or more units may be integrated into one unit.

[0262] When the function is implemented in the form of a software functional unit and sold or used as an independent product, the function may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be essentially implemented in the form of a software product, or the part that contributes to the prior art, or some of the technical solutions. The computer software product is stored in a storage medium and includes some instructions that instruct a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. The aforementioned storage medium includes any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0263] The above description is merely a specific implementation of the present application, and is not intended to limit the scope of protection of the present application. Any variations or replacements that can be easily thought up by those skilled in the art within the technical scope disclosed in this application shall fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the scope of protection of the claims. [Explanation of symbols]

[0264] 10 Handover processing device 20 User Equipment 30 Handover processing device 40 First AMF 110 Receiving unit 120 Processing Units 310 Receiving unit 320 Processing Unit 330 Transmitter Unit 410 Processor 420 Memory 430 Transceiver

Claims

1. A handover processing method, the method being applied to a scenario in which a handover processing device is handed over from a first access management network element (AMF) to a second AMF, the method comprising: receiving, by the handover processing device, a handover command message from a first access network device, the handover command message carrying a Non-Access Stratum Container (NASC); performing integrity verification on the NASC by the handover processing device; If the integrity verification performed on the NASC fails, continuing to use a first non-access stratum (NAS) security context by the handover processing device, the first NAS security context being a security context used between the handover processing device and the first AMF; The method includes:

2. The method comprises: The method of claim 1, further comprising the step of: if the NASC includes a key derivation instruction and the value of the key derivation instruction is 1, obtaining, by the handover processing device, a third NAS security context based on the first NAS security context.

3. The first security context includes a first key Kamf, and the step of obtaining a third security context based on the first security context by the handover processing device includes: The method of claim 2, comprising: obtaining, by the handover processing device, a second Kamf based on the first Kamf.

4. The method comprises: The method of claim 2 or 3, further comprising the step of deleting the third security context if the integrity verification performed against the NASC fails.

5. The method comprises: The method according to claim 2 or 3, further comprising a step of using the third security context to provide security protection for information used between the handover processing device and the second AMF if the integrity verification performed on the NASC is successful.

6. The step of continuing to use a first non-access stratum (NAS) security context by the handover processing device includes: The method of claim 1, comprising using the first NAS security context by the handover processing device to provide security protection for information used between the handover processing device and the first AMF.

7. The method comprises: The method of claim 1 , further comprising the step of: if the NASC includes a key derivation instruction and the value of the key derivation instruction is one, storing, by the handover processing device, the first NAS security context.

8. The method comprises: The method of claim 1, further comprising the step of sending, by the handover processing device, a handover cancellation request to the first AMF through the first access network device if the integrity verification performed on the NASC fails.

9. a receiving unit configured to receive a handover command message from a first access network device, the handover command message carrying a Non-Access Stratum Container (NASC); A processing unit configured to perform an integrity verification on the NASC and continue to use a first non-access stratum (NAS) security context if the integrity verification on the NASC fails, the first NAS security context being a security context used between the handover processing device and the first AMF; A handover processing device comprising:

10. If the NASC includes a key derivation instruction, and if a value of the key derivation instruction is 1, the processing unit is further configured to obtain a third NAS security context based on the first NAS security context. The processing device according to claim 9.

11. The processing device of claim 10 , wherein the first security context includes a first key Kamf, and the processing unit is further configured to derive a second Kamf based on the first Kamf.

12. 12. The processing device according to claim 10 or 11, wherein the processing unit is further configured to delete the third security context if the integrity verification performed against the NASC fails.

13. The processing device according to claim 10 or 11, wherein the processing unit is further configured to use the third security context to provide security protection for information used between the handover processing device and the second AMF if the integrity verification performed on the NASC is successful.

14. The processing device according to claim 9, wherein the processing unit is specifically configured to use the first NAS security context to provide security protection for information used between the handover processing device and the first AMF.

15. The processing device of claim 9 , wherein the processing unit is further configured to: store the first NAS security context if the NASC includes a key derivation directive and if a value of the key derivation directive is one.

16. The processing device of claim 9, further comprising a transmitting unit, the transmitting unit configured to transmit a handover cancellation request to the first AMF through the first access network device if the integrity verification performed on the NASC fails.

17. receiving, by a handover processing device, a handover command message sent by a first access network device, the handover command message carrying a second NAS security algorithm selected by a second access and mobility management function (AMF) and an AMF key change instruction; storing, by the handover processing device, a first non-access stratum (NAS) security context when the second NAS security algorithm is different from the first NAS security algorithm and / or the AMF key change indication is a default value, the first NAS security context being a NAS security context generated through negotiation between the handover processing device and a first AMF; and using the stored first NAS security context to perform non-access stratum NAS protection between the handover processing device and the first AMF when the handover processing device fails to be handed over; or continuing to use, by the handover processing device, the first NAS security context when an integrity check performed by the handover processing device on a Non-Access Stratum Container (NASC) fails, the NASC being carried in the handover command message from the first access network device; A handover processing method comprising:

18. 20. The method of claim 17, wherein the first NAS security context includes a first NAS security algorithm, a first AMF key Kamf1, a first non-access stratum NAS key, and a first non-access stratum count NAS COUNT.

19. The AMF key change instruction is a default value, 19. The method of claim 17 or 18, comprising the AMF key change instruction being 1.

20. A handover processing device, A receiving unit configured to receive a handover command message sent by a first access network device, the handover command message carrying a second NAS security algorithm selected by a second access and mobility management function (AMF) and an AMF key change instruction; A processing unit, the processing unit is configured to store a first non-access stratum (NAS) security context when the second NAS security algorithm is different from a first NAS security algorithm and / or the AMF rekey indication is a default value, the first NAS security context being a NAS security context generated through negotiation between the processing unit and a first AMF, the processing unit being further configured to use the stored first NAS security context to perform non-access stratum (NAS) protection between the device and the first AMF when a handover fails; or The apparatus, wherein the processing unit is configured to continue using the first NAS security context when an integrity check performed on a Non-Access Stratum Container (NASC) fails, the NASC being carried by the handover command message from the first access network device.

21. 21. The apparatus of claim 20, wherein the first NAS security context includes a first NAS security algorithm, a first AMF key Kamf1, a first non-access stratum NAS key, and a first non-access stratum count NAS COUNT.

22. The AMF key change instruction is a default value, 22. The apparatus of claim 20 or 21, wherein the AMF key change instruction is 1.

23. 1. A communications device, comprising: a memory configured to store a computer program; a transceiver configured to perform the steps of transmitting and receiving; a processor configured to call the computer program from the memory and to execute the computer program to enable the communications device to perform the method of any one of claims 17 to 19; A communication device comprising:

24. 20. A computer readable storage medium, the computer readable medium storing a computer program which, when executed in a computer, enables the computer to perform the method according to any one of claims 17 to 19.

25. a memory configured to store a computer program; a transceiver configured to perform the steps of transmitting and receiving; a processor coupled to the memory and the transceiver, the processor being enabled to perform the method of any one of claims 1 to 8 when the computer program in the memory is executed by the processor; A communication device comprising:

26. 9. A computer-readable storage medium storing a computer program, the computer-readable storage medium enabling a processor to carry out the method according to any one of claims 1 to 8, when the computer program is executed in a computer.

27. A chip comprising a processor configured to read a computer program stored in a memory and to execute the computer program to perform the method of any one of claims 1 to 8.

28. 28. The chip of claim 27, further comprising the memory, the memory connected to the processor through a circuit or cable, the processor configured to read and execute the computer program in the memory.

29. The chip of claim 27 or 28, further comprising a communication interface, the processor being connected to the communication interface, the communication interface being configured to receive data and / or information that needs to be processed, and the processor obtaining the data and / or information from the communication interface and processing the data and / or information.

Citation Information

Patent Citations

  • Security procedure and apparatus for handover in a 3GPP long term evolution system

    US20100002883A1

  • Security context in a wireless communication system

    WO2019053185A1

Cited By

  • Control device, control method, and program

    JP7796193B1