Methods and systems for receiving security context, and communication devices.
Patent Information
- Application Number
- VN1202401319
- Authority / Receiving Office
- VN · VN
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-05-31
- Filing Date
- 2020-05-11
- Publication Date
- 2026-10-28
- Estimated Expiration
- 2040-05-11
AI Technical Summary
In the 5G communication system, when the user equipment switches from the 4G communication system to the 5G communication system, how the first AMF obtains the security context of the user equipment from the second AMF becomes a challenge, because the existing technology is difficult to effectively verify and obtain the security context. .
By establishing a local security context between the user equipment and the second AMF, the first AMF performs integrity protection on the second registration request message and sends it to the second AMF for verification, thereby improving the probability of successfully obtaining the security context of the user equipment. possibility.
This method improves the possibility that the first AMF successfully obtains the user equipment security context from the second AMF, ensures the integrity and reliability of the security context, and solves the possible verification failure problem in the existing technology.
Smart Images

Figure VN1202401319_0
Abstract
Description
Methods, apparatus and communication systems for obtaining security context
[0001] This application claims priority to Chinese Patent Application No. 201910470895.8, filed on May 31, 2019, entitled “Method, Apparatus and Communication System for Obtaining Security Context”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] This invention relates to the field of communications, and more specifically, to a method, apparatus, and communication system for obtaining a security context. Background Technology
[0003] In 5G communication scenarios, due to the movement of user equipment (UE), the network equipment providing services to UE may change. One possible handover scenario is when a UE switches from a 4G communication system to a 5G communication system. In this scenario, for the UE, the access network equipment switches from 4G access network equipment to 5G access network equipment, while the core network equipment switches from 4G core network equipment to 5G core network equipment. The core network equipment handover includes the switching between core network elements providing mobility management services to the UE, specifically from the Mobility Management Entity (MME) in the 4G communication system to the Access and Mobility Management Function (AMF) in the 5G communication system.
[0004] In scenarios where existing user equipment switches from 4G communication systems to 5G communication systems, in addition to the AMF (first AMF) selected by the MME, the 5G communication system also includes an AMF (second AMF) that stores the security context of the user equipment. At this time, how the first AMF obtains the security context of the user equipment from the second AMF becomes an urgent problem to be solved.
[0005] Summary of the Invention
[0006] This application provides a method, apparatus, and communication system for obtaining a security context. By protecting the integrity of a second registration request message sent by a first AMF to a second AMF based on the local security context between the user equipment and the second AMF, the second AMF can verify the integrity of the second registration request message based on the local security context between the user equipment and the second AMF. This increases the likelihood that the second AMF will successfully verify the second registration request message. If the verification is successful, the first AMF can successfully obtain the security context of the user equipment from the second AMF.
[0007] In a first aspect, a method for obtaining a security context is provided, comprising: a first access and mobility management function (AMF) receiving a first registration request message sent by a user equipment (UE), the first registration request message carrying a second registration request message, the second registration request message being integrity-protected by a first security context, the first security context being a local security context between the UE and a second AMF, wherein the first AMF is an AMF that provides access and mobility management services to the UE after the UE switches from a 4G communication system to a 5G communication system; the first AMF sending the second registration request message to the second AMF; the second AMF verifying the integrity of the second registration request message; if the second AMF successfully verifies the integrity of the second registration request message, the second AMF sending the security context of the UE to the first AMF.
[0008] The method for obtaining security context provided in this application embodiment involves the following steps: When a user equipment switches from a 4G communication system to a 5G communication system, the user equipment's security context is stored between the user equipment and the second AMF before the switch. After the user equipment switches from the 4G communication system to the 5G communication system, the first AMF provides access and mobility management services to the user equipment. The first AMF needs to obtain the aforementioned security context of the user equipment from the second AMF. Specifically, after receiving the handover command, the user equipment can perform integrity protection on the fourth registration request message based on the locally stored security context between itself and the second AMF, generate a second registration request message, send a first registration request message to the first AMF, and include the second registration request message in the first registration request message. This allows the first AMF to forward the second registration request message to the second AMF, and the second AMF can verify the integrity of the second registration request message. After the second AMF successfully verifies the integrity of the second registration request message, it can return the aforementioned security context of the user equipment to the first AMF, thereby increasing the probability that the first AMF can successfully obtain the security context of the user equipment from the second AMF.
[0009] In conjunction with the first aspect, in some implementations of the first aspect, the security context of the user equipment includes: the first security context, or a second security context obtained based on the first security context.
[0010] The method for obtaining a security context provided in this application embodiment may be a local security context between the user equipment and the second AMF, or, when the second AMF generates a new key after key deduction, the security context of the user equipment may be a second security context generated by key deduction based on the first security context.
[0011] In conjunction with the first aspect, in some implementations of the first aspect, the first AMF sending the second registration request message to the second AMF includes: the first AMF sending a User Equipment Context Transport Service Invocation Request to the second AMF, wherein the User Equipment Context Transport Service Invocation Request carries the second registration request message.
[0012] The method for obtaining security context provided in this application embodiment can be implemented by sending the second registration request message from the first AMF to the second AMF in the form of a user equipment context transport service call request sent by the first AMF to the second AMF.
[0013] In conjunction with the first aspect, in some implementations of the first aspect, the second AMF sending the security context of the user equipment to the first AMF includes: the second AMF sending a first response message to the first AMF, the first response message carrying the security context of the user equipment.
[0014] The method for obtaining security context provided in this application embodiment, when the second AMF returns the security context of the user equipment to the first AMF, may send a first response message to the first AMF, and carry the security context of the user equipment in the first response message.
[0015] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes: when the first AMF receives a message that the second AMF has failed to verify the integrity of the second registration request message, the first AMF continues to use the mapped security context or initiates initial authentication to the user equipment.
[0016] The method for obtaining a security context provided in this application embodiment allows the first AMF to continue using the security context mapped between itself and the user equipment when the first AMF fails to obtain the user equipment's security context from the second AMF. Alternatively, the first AMF can initiate initial authentication with the user equipment to generate a security context between the first AMF and the user equipment.
[0017] In conjunction with the first aspect, in some implementations of the first aspect, the security context of the mapping is obtained based on the security context between the Mobility Management Entity (MME) and the User Equipment (UE); wherein the MME is a network element of the 4G communication system.
[0018] The security context involved in the method for obtaining security context provided in this application embodiment refers to the security context generated by the user equipment and the first AMF based on the security context between the user equipment and the MME, respectively.
[0019] In conjunction with the first aspect, in some implementations of the first aspect, the second AMF verifies the integrity of the second registration request message by: the second AMF verifying the integrity of the second registration request message based on the local security context between the second AMF and the user equipment.
[0020] Secondly, a method for obtaining a security context is provided, comprising: a second access and mobility management function (AMF) receiving a second registration request message sent by a first AMF, the second registration request message being integrity-protected by a first security context, the first security context being a local security context between the user equipment and the second AMF, the first AMF being an AMF that provides access and mobility management services to the user equipment after the user equipment switches from a 4G communication system to a 5G communication system; the second AMF verifying the integrity of the second registration request message; if the second AMF successfully verifies the integrity of the second registration request message, the second AMF sending the security context of the user equipment to the first AMF.
[0021] The method for obtaining security context provided in this application embodiment involves the following steps: When a user equipment (UE) switches from a 4G communication system to a 5G communication system, the UE and the second AMF (Access Management Provider) store the UE's security context before the switch. After the UE switches from the 4G to the 5G communication system, the first AMF provides access and mobility management services to the UE. The first AMF needs to obtain the aforementioned UE security context from the second AMF. Specifically, after receiving the handover command, the UE can perform integrity protection on the fourth registration request message based on the locally stored security context with the second AMF, and then generate a second registration request message. The UE carries the second registration request message in the first registration request message sent to the first AMF, enabling the first AMF to forward the second registration request message to the second AMF. The second AMF can verify the integrity of the second registration request message, and if the integrity verification of the second registration request message is successful, it sends the UE's security context to the first AMF. This increases the likelihood that the first AMF can successfully obtain the UE's security context from the second AMF.
[0022] In conjunction with the second aspect, in some implementations of the second aspect, the security context of the user equipment includes: the first security context, or a second security context generated by key deduction based on the first security context.
[0023] The method for obtaining a security context provided in this application embodiment may be a local security context between the user equipment and the second AMF, or, when the second AMF generates a new key after key deduction, the security context of the user equipment may be a second security context generated by key deduction based on the first security context.
[0024] In conjunction with the second aspect, in some implementations of the second aspect, the second AMF receiving the second registration request message sent by the first AMF includes: the second AMF receiving a user equipment context transport service invocation request sent by the first AMF, wherein the user equipment context transport service invocation request carries the second registration request message.
[0025] The method for obtaining security context provided in this application embodiment can be implemented by sending the second registration request message from the first AMF to the second AMF in the form of a user equipment context transport service call request sent by the first AMF to the second AMF.
[0026] In conjunction with the second aspect, in some implementations of the second aspect, the second AMF sending the security context of the user equipment to the first AMF includes: the second AMF sending a first response message to the first AMF, the first response message carrying the security context of the user equipment.
[0027] The method for obtaining security context provided in this application embodiment, when the second AMF returns the security context of the user equipment to the first AMF, may send a first response message to the first AMF, and carry the security context of the user equipment in the first response message.
[0028] In conjunction with the second aspect, in some implementations of the second aspect, the second AMF verifies the integrity of the second registration request message by: the second AMF verifies the integrity of the second registration request message based on the first security context.
[0029] Thirdly, a method for obtaining a security context is provided, comprising: a user equipment determining that a second registration request message is subjected to integrity protection, the second registration request message being subjected to integrity protection by a first security context, wherein the first security context is a local security context between the user equipment and a second access and mobility management function (AMF); the user equipment sending a first registration request message to the first access and mobility management function (AMF), the first registration request message carrying a second registration request message, wherein the first AMF is an AMF that provides access and mobility management services to the user equipment after the user equipment switches from a 4G communication system to a 5G communication system.
[0030] The method for obtaining security context provided in this application embodiment involves the following steps: When a user equipment (UE) switches from a 4G communication system to a 5G communication system, the UE stores its security context with a second AMF before the switch. After the switch, the first AMF provides access and mobility management services to the UE. The first AMF needs to obtain the aforementioned security context from the second AMF. Specifically, after receiving the handover command, the UE can perform integrity protection on the fourth registration request message based on the locally stored security context with the second AMF, and then generate a second registration request message. The UE carries the second registration request message in the first registration request message sent to the first AMF, allowing the first AMF to forward the second registration request message to the second AMF. The second AMF can then verify the integrity of the second registration request message. After successfully verifying the integrity of the second registration request message, the second AMF can return the aforementioned security context of the UE to the first AMF, thereby increasing the likelihood that the first AMF can successfully obtain the security context of the UE from the second AMF.
[0031] In conjunction with the third aspect, in some implementations of the third aspect, the method further includes: if a Non-Access Stratum Security Mode (NAS SMC) command message sent by the first AMF is received, then a full verification of the NAS SMC is performed; if the verification is successful, then a Non-Access Stratum Security Mode completion message is sent to the first AMF.
[0032] The method for obtaining security context provided in this application embodiment, if the user equipment receives a NAS SMC message sent by the first AMF and the user equipment successfully verifies the NAS SMC message, then the user equipment sends a non-access stratum security mode completion message to the first AMF.
[0033] Fourthly, a method for obtaining a security context is provided, comprising: a first access and mobility management function (AMF) receiving a first registration request message sent by a user equipment (UE), the first registration request message carrying a second registration request message, the second registration request message being integrity-protected by a first security context, the first security context being a local security context between the UE and a second AMF, wherein the first AMF is the AMF that provides access and mobility management services to the UE after the UE switches from a 4G communication system to a 5G communication system; the first AMF sending the second registration request message to the second AMF; if the second AMF successfully verifies the integrity of the second registration request message, the first AMF receiving the security context of the UE sent by the second AMF.
[0034] The method for obtaining security context provided in this application embodiment involves the following steps: When a user equipment (UE) switches from a 4G communication system to a 5G communication system, the UE and the second AMF (Access Management Provider) store the UE's security context before the switch. After the UE switches from the 4G to the 5G communication system, the first AMF provides access and mobility management services to the UE. The first AMF needs to obtain the UE's security context from the second AMF. Specifically, after receiving the handover command, the UE can perform integrity protection on the fourth registration request message based on the locally stored security context with the second AMF, and then generate a second registration request message. The UE carries the second registration request message in the first registration request message sent to the first AMF, allowing the first AMF to forward the second registration request message to the second AMF. The second AMF can then verify the integrity of the second registration request message. After successfully verifying the integrity of the second registration request message, the second AMF can return the UE's security context to the first AMF, thereby increasing the likelihood that the first AMF can successfully obtain the UE's security context from the second AMF.
[0035] In conjunction with the fourth aspect, in some implementations of the fourth aspect, the security context of the user equipment includes: the first security context, or a second security context generated by key deduction based on the first security context.
[0036] The method for obtaining a security context provided in this application embodiment may be a local security context between the user equipment and the second AMF, or, when the second AMF generates a new key after key deduction, the security context of the user equipment may be a second security context generated by key deduction based on the first security context.
[0037] In conjunction with the fourth aspect, in some implementations of the fourth aspect, the first AMF sending the second registration request message to the second AMF includes: the first AMF sending a User Equipment Context Transport Service Invocation Request to the second AMF, wherein the User Equipment Context Transport Service Invocation Request carries the second registration request message.
[0038] The method for obtaining security context provided in this application embodiment can be implemented by sending the second registration request message from the first AMF to the second AMF in the form of a user equipment context transport service call request sent by the first AMF to the second AMF.
[0039] In conjunction with the fourth aspect, in some implementations of the fourth aspect, the first AMF receiving the security context of the user equipment sent by the second AMF includes: the first AMF receiving a first response message sent by the second AMF, wherein the first response message carries the security context of the user equipment.
[0040] The method for obtaining security context provided in this application embodiment, when the second AMF returns the security context of the user equipment to the first AMF, may send a first response message to the first AMF, and carry the security context of the user equipment in the first response message.
[0041] In conjunction with the fourth aspect, in some implementations of the fourth aspect, the method further includes: when the first AMF receives a message that the second AMF has failed to verify the integrity of the second registration request message, the first AMF continues to use the mapped security context or initiates initial authentication to the user equipment.
[0042] The method for obtaining a security context provided in this application embodiment allows the first AMF to continue using the security context mapped between itself and the user equipment when the first AMF fails to obtain the user equipment's security context from the second AMF. Alternatively, the first AMF can initiate initial authentication with the user equipment to generate a security context between the first AMF and the user equipment.
[0043] In conjunction with the fourth aspect, in some implementations of the fourth aspect, the security context of the mapping is obtained based on the security context between the Mobility Management Entity (MME) and the User Equipment, wherein the MME is a network element in the 4G communication system.
[0044] The security context involved in the method for obtaining security context provided in this application embodiment refers to the security context generated by the user equipment and the first AMF based on the security context between the user equipment and the MME, respectively.
[0045] Fifthly, a method for obtaining a security context is provided, comprising: a first Access and Mobility Management Function (AMF) sending a User Equipment Context Transport Service Invocation Request to a second AMF, the User Equipment Context Transport Service Invocation Request being used to obtain the security context of a user equipment, the User Equipment Context Transport Service Invocation Request carrying indication information, the indication information being used to indicate that the user equipment is a legitimate user equipment, wherein the first AMF is the AMF that provides access and mobility management services to the user equipment after the user equipment switches from a 4G communication system to a 5G communication system; the first AMF receiving a second response message sent by the second AMF, the second response message carrying the security context of the user equipment.
[0046] The method for obtaining security context provided in this application embodiment, by having the first AMF carry UE indication information indicating that the UE is legitimate in the user equipment context transfer service call request sent to the second AMF, can avoid the second AMF failing to verify the UE and thus not sending the UE's security context to the first AMF, thereby increasing the probability that the first AMF can successfully obtain the user equipment's security context from the second AMF.
[0047] In conjunction with the fifth aspect, in some implementations of the fifth aspect, the indication information used to indicate that the user equipment is a legitimate user equipment includes: the indication information used to indicate that the integrity verification of the registration request message has passed, wherein the registration request message is received by the first AMF from the user equipment.
[0048] The method for obtaining security context provided in this application embodiment allows the indication information sent by the first AMF to the second AMF indicating that the UE is a legitimate UE. This information can be a notification from the first AMF to the second AMF that the integrity verification of the registration request message sent by the UE has passed, providing a flexible and optional solution for indicating that the UE is a legitimate UE.
[0049] In conjunction with the fifth aspect, in some implementations of the fifth aspect, before the first AMF sends a User Equipment Context Transport Service Invocation Request to the second AMF, the method further includes: the first AMF successfully verifying the integrity protection of the registration request message, wherein the registration request message is received by the first AMF from the user equipment; and / or, the first AMF determines that the registration request message is a registration request message sent by the user equipment after switching from a 4G communication system to a 5G communication system.
[0050] The method for obtaining security context provided in this application embodiment involves the first AMF determining, based on the successful verification result of the registration request message and / or the received registration request message being a registration request message sent by the user equipment after switching from a 4G communication system to a 5G communication system, that a user equipment context transport service call request can be sent to the second AMF.
[0051] In conjunction with the fifth aspect, in some implementations of the fifth aspect, the user equipment context transport service invocation request carries the identifier of the user equipment.
[0052] The method for obtaining a security context provided in this application embodiment involves a first AMF carrying the identifier of a user device in the context transport service call request so that the second AMF knows that the first AMF needs to obtain the security context of a user device.
[0053] In conjunction with the fifth aspect, in some implementations of the fifth aspect, the user equipment context transport service invocation request carries the user equipment's uplink non-access stratum counter UL NAS COUNT.
[0054] The method for obtaining a security context provided in this application embodiment allows the first AMF to include the UL NAS COUNT in the context transport service call request so that the second AMF can be aware of the UL NAS COUNT.
[0055] In conjunction with the fifth aspect, in some implementations of the fifth aspect, the inclusion of the UL NAS COUNT in the user equipment context transport service invocation request includes: the user equipment context transport service invocation request includes a plaintext registration request message, the plaintext registration request message including the UL NAS COUNT, wherein the registration request message is received by the first AMF from the user equipment.
[0056] The method for obtaining security context provided in this application embodiment can carry the UL NAS COUNT in the user equipment context transport service call request by carrying a plaintext registration request message in the user equipment context transport service call request. The plaintext registration request message includes the UL NAS COUNT, providing a flexible and optional scheme for the first AMF to send the UL NAS COUNT to the second AMF.
[0057] A sixth aspect provides a method for obtaining a security context, comprising: a second Access and Mobility Management Function (AMF) receiving a User Equipment Context Transport Service Invocation Request (MAS) sent by a first AMF, the MAS request being used to obtain the security context of a user equipment, the MAS request carrying indication information indicating that the user equipment is a legitimate user equipment, wherein the first AMF is the AMF that provides access and mobility management services to the user equipment after the user equipment switches from a 4G communication system to a 5G communication system; and the second AMF sending a second response message to the first AMF, the second response message carrying the security context of the user equipment.
[0058] The method for obtaining security context provided in this application embodiment carries UE indication information indicating that the UE is legitimate in the UE context transport service call request sent by the first AMF when the second AMF receives the UE context transport service call request sent by the first AMF. Based on this indication information, the second AMF does not need to verify the UE, which can avoid the second AMF failing to verify the UE and thus not sending the UE's security context to the first AMF, thereby increasing the possibility that the first AMF can successfully obtain the UE's security context from the second AMF.
[0059] In conjunction with the sixth aspect, in some implementations of the sixth aspect, the indication information used to indicate that the user equipment is a legitimate user equipment includes: the indication information used to indicate that the integrity verification of the registration request message has passed, wherein the registration request message is received by the first AMF from the user equipment.
[0060] The method for obtaining security context provided in this application embodiment allows the second AMF to receive indication information from the first AMF indicating that the UE is a legitimate UE. This information can be a notification from the first AMF to the second AMF that the integrity verification of the registration request message sent by the UE has passed, providing a flexible and optional solution for indicating that the UE is a legitimate UE.
[0061] In conjunction with the sixth aspect, in some implementations of the sixth aspect, the user equipment context transport service invocation request carries the identifier of the user equipment.
[0062] The method for obtaining security context provided in this application embodiment allows the second AMF to determine, based on the identifier of the user equipment carried in the context transport service call request, that the first AMF needs to obtain the security context of the user equipment.
[0063] In conjunction with the sixth aspect, in some implementations of the sixth aspect, the user equipment context transport service invocation request carries the user equipment's uplink non-access stratum counter UL NAS COUNT.
[0064] The method for obtaining a security context provided in this application embodiment allows the second AMF to obtain the UL NAS COUNT based on the UL NAS COUNT carried in the context transport service call request.
[0065] In conjunction with the sixth aspect, in some implementations of the sixth aspect, the inclusion of the UL NAS COUNT in the user equipment context transport service invocation request includes: the user equipment context transport service invocation request including a plaintext registration request message, wherein the plaintext registration request message includes the UL NAS COUNT, and wherein the registration request message is received by the first AMF from the user equipment.
[0066] The method for obtaining security context provided in this application embodiment can carry the UL NAS COUNT in the user equipment context transport service call request by carrying a plaintext registration request message in the user equipment context transport service call request. The plaintext registration request message includes the UL NAS COUNT, providing a flexible and optional scheme for the first AMF to send the UL NAS COUNT to the second AMF.
[0067] In conjunction with the sixth aspect, in some implementations of the sixth aspect, the method further includes: the second AMF performing key deduction based on the UL NAS COUNT.
[0068] The method for obtaining security context provided in this application embodiment allows the second AMF to perform key deduction based on the received UL NAS COUNT.
[0069] In a seventh aspect, a communication system is provided, comprising the aforementioned first AMF and second AMF, which can be used to perform the operations of the first AMF and second AMF in the first aspect and any possible implementation thereof. Specifically, the communication system may include components (means) corresponding to the steps or functions described in the first aspect and any possible implementation thereof, which may be the first AMF and second AMF of the first aspect, or chips or functional modules within the first AMF and second AMF. The steps or functions may be implemented by software, hardware, or a combination of hardware and software.
[0070] Eighthly, an apparatus for obtaining a security context is provided, which can be used to perform operations of a first AMF in the fifth and fourth aspects and any possible implementations of the fifth and fourth aspects. Specifically, the apparatus for obtaining a security context may include components (means) corresponding to the steps or functions described in the fifth and fourth aspects and any possible implementations of the first and fourth aspects, which may be the first AMF of the fifth and fourth aspects or chips or functional modules within the first AMF. The steps or functions may be implemented in software, hardware, or a combination of hardware and software.
[0071] A ninth aspect provides an apparatus for acquiring a security context, which can be used to perform operations of a second AMF in the second and sixth aspects and any possible implementations of the second and sixth aspects. Specifically, the apparatus for acquiring the security context may include components (means) corresponding to the steps or functions described in the second and sixth aspects and any possible implementations of the second and sixth aspects, which may be the second AMF of the second and sixth aspects or chips or functional modules within the second AMF. The steps or functions may be implemented in software, in hardware, or in a combination of hardware and software.
[0072] In a tenth aspect, an apparatus for obtaining a security context is provided, which can be used to perform operations of a user equipment as described in the third aspect. Specifically, the apparatus for obtaining the security context may include components (means) corresponding to performing the steps or functions described in the third aspect, which may be the user equipment in the third aspect or a chip or functional module within the user equipment. The steps or functions may be implemented in software, hardware, or a combination of hardware and software.
[0073] Eleventhly, a communication device is provided, comprising a processor, a transceiver, and a memory for storing a computer program, the transceiver for performing a transmit / receive step in the means method for obtaining a security context in any of the possible implementations of the first to fifth aspects, and the processor for calling and running the computer program from the memory, such that the communication device performs the means method for obtaining a security context in any of the possible implementations of the first to sixth aspects.
[0074] Optionally, there may be one or more processors and one or more memories.
[0075] Alternatively, the memory can be integrated with the processor, or the memory can be set up separately from the processor.
[0076] Optionally, the transceiver includes a transmitter and a receiver.
[0077] In the twelfth aspect, a system is provided, which includes the means for obtaining a security context provided in the eighth and ninth aspects.
[0078] In a thirteenth aspect, a computer program product is provided, comprising: a computer program (also referred to as code or instructions) that, when run, causes a computer to perform the methods in any of the possible implementations of the first to sixth aspects described above.
[0079] In a fourteenth aspect, a computer-readable medium is provided that stores a computer program (also referred to as code or instructions) that, when run on a computer, causes the computer to perform the methods of any of the possible implementations of the first to sixth aspects described above.
[0080] In a fifteenth aspect, a chip system is provided, including a memory and a processor, the memory for storing a computer program and the processor for calling and running the computer program from the memory, such that a communication device equipped with the chip system performs the method in any of the possible implementations of the first to sixth aspects described above. Attached Figure Description
[0081] Figure 1 is a network architecture applicable to embodiments of this application.
[0082] Figure 2 is a schematic flowchart of a communication system handover.
[0083] Figure 3 is a schematic diagram of a method for obtaining a security context provided in an embodiment of this application.
[0084] Figure 4 is a schematic diagram of another method for obtaining security context provided in an embodiment of this application.
[0085] Figure 5 is a schematic diagram of the apparatus 50 for obtaining security context provided in an embodiment of this application.
[0086] Figure 6 is a schematic diagram of the structure of a user equipment 60 applicable to an embodiment of this application.
[0087] Figure 7 is a schematic diagram of the apparatus 70 for obtaining security context provided in an embodiment of this application.
[0088] Figure 8 is a structural schematic diagram of the first AMF 80 applicable to an embodiment of this application.
[0089] Figure 9 is a schematic diagram of a device 90 for obtaining security context provided in an embodiment of this application.
[0090] Figure 10 is a schematic diagram of the structure of the second AMF 100 applicable to an embodiment of this application. Detailed Implementation
[0091] The technical solutions in this application will now be described with reference to the accompanying drawings.
[0092] The technical solutions of this application embodiment can be applied to various communication systems, such as: Global System for Mobile Communications (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) system, LTE Frequency Division Duplex (FDD) system, LTE Time Division Duplex (TDD) system, Universal Mobile Telecommunication System (UMTS), Worldwide Interoperability for Microwave Access (WiMAX) communication system, future 5th generation (5G) systems, or new radio (NR), etc.
[0093] Figure 1 is a network architecture applicable to an embodiment of this application. As shown in Figure 1, the various parts involved in this network architecture will be described below.
[0094] 1. User equipment (UE) 110: This may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem with wireless communication capabilities, as well as various forms of terminals, mobile stations (MS), terminals, soft terminals, etc. For example, water meters, electricity meters, sensors, etc.
[0095] 2. Radio access network (RAN) element 120: Used to provide network access functionality for authorized user equipment in a specific area, and can use transmission tunnels of different quality according to the user equipment level, service requirements, etc.
[0096] (R)AN network elements can manage radio resources, provide access services for user equipment, and then complete the forwarding of control signals and user equipment data between user equipment and the core network. (R)AN network elements can also be understood as base stations in traditional networks.
[0097] 3. User plane network element 130: Used for packet routing and forwarding, as well as quality of service (QoS) processing of user plane data.
[0098] In 5G communication systems, this user plane network element can be a user plane function (UPF) network element. In future communication systems, the user plane network element can still be a UPF network element, or it can have other names; this application does not limit this.
[0099] 4. Data network element 140: Used to provide a network for transmitting data.
[0100] In 5G communication systems, this data network element can be a data network (DN) element. In future communication systems, the data network element can still be a DN element, or it can have other names; this application does not limit this.
[0101] 5. Access and Mobility Management Network Element 150: Mainly used for mobility management and access management, it can be used to implement other functions of the mobility management entity (MME) besides session management, such as lawful monitoring and access authorization / authentication.
[0102] In 5G communication systems, the access and mobility management network element can be an access and mobility management function (AMF). In future communication systems, the access and mobility management device can still be an AMF, or it can have other names; this application does not limit this.
[0103] 6. Session Management Element 160: Primarily used for session management, allocation and management of Internet Protocol (IP) addresses for user equipment, selection of endpoints for manageable user plane functions, policy control and charging function interfaces, and downlink data notification, etc.
[0104] In 5G communication systems, this session management network element can be a session management function (SMF) network element. In future communication systems, the session management network element can still be an SMF network element, or it can have other names; this application does not limit this.
[0105] 7. Policy Control Element 170: A unified policy framework used to guide network behavior, providing policy rule information to control plane functional elements (such as AMF, SMF, etc.).
[0106] In 4G communication systems, this policy control network element can be a policy and charging rules function (PCRF) network element. In 5G communication systems, this policy control network element can be a policy control function (PCF) network element. In future communication systems, the policy control network element can still be a PCF network element, or it can have other names; this application does not limit this.
[0107] 8. Authentication Server 180: Used for authentication services, generating keys to achieve two-way authentication of user devices, and supporting a unified authentication framework.
[0108] In 5G communication systems, the authentication server can be an authentication server function (AUSF) network element. In future communication systems, the authentication server function network element can still be an AUSF network element, or it can have other names; this application does not limit this.
[0109] 9. Data Management Network Element 190: Used to handle user equipment identification, access authentication, registration, and mobility management, etc.
[0110] In 5G communication systems, the data management network element can be a unified data management (UDM) network element; in 4G communication systems, the data management network element can be a home subscriber server (HSS) network element. In future communication systems, the unified data management network element can still be a UDM network element, or it can have other names, which are not limited in this application.
[0111] 10. Application Network Element 1100: Used for data routing affected by applications, accessing network open function network elements, and interacting with the policy framework for policy control, etc.
[0112] In 5G communication systems, this application network element can be an application function (AF) network element. In future communication systems, the application network element can still be an AF network element, or it can have other names; this application does not limit this.
[0113] 11. Network storage element: Used to maintain real-time information of all network function services in the network.
[0114] In 5G communication systems, this network storage element can be a network repository function (NRF) element. In future communication systems, the network storage element can still be an NRF element, or it can have other names; this application does not limit its scope.
[0115] It is understood that the aforementioned network elements or functions can be network components in hardware devices, software functions running on dedicated hardware, or virtualized functions instantiated on a platform (e.g., a cloud platform). For ease of explanation, this application will subsequently use the access and mobility management device as AMF, the data management network element as UDM, the session management network element as SMF, and the user plane network element as UPF as an example for illustration.
[0116] For ease of explanation, this application uses AMF entities and UDM entities as examples to describe the method for session establishment. For the implementation method of chips within AMF entities and UDM entities, please refer to the specific descriptions of AMF entities and UDM entities respectively, which will not be repeated here.
[0117] In the network architecture shown in Figure 1, User Equipment (UE) connects to the AMF via interface N1, (R)AN connects to the AMF via interface N2, and (R)AN connects to the UPF via interface N3. UPFs are connected to each other via interface N9, and UPFs are interconnected via interface N6 (DN). The SMF controls the UPF via interface N4. The AMF connects to the SMF via interface N11. The AMF obtains UE subscription data from the UDM unit via interface N8, and the SMF obtains UE subscription data from the UDM unit via interface N10.
[0118] It should be understood that the network architecture described above for the embodiments of this application is merely an example, and the network architecture applicable to the embodiments of this application is not limited thereto. Any network architecture capable of realizing the functions of the above-described network elements is applicable to the embodiments of this application.
[0119] For example, in some network architectures, network function elements such as AMF, SMF, PCF, BSF, and UDM are all called network function (NF) elements; or, in other network architectures, a collection of elements such as AMF, SMF, PCF, BSF, and UDM can be called control plane function elements.
[0120] In this application embodiment, the user equipment can refer to an access terminal, user unit, user station, mobile station, mobile station, relay station, remote station, remote terminal, mobile device, user terminal, terminal equipment, terminal, wireless communication equipment, user agent, or user device. The user equipment can also be a cellular phone, cordless phone, session initiation protocol (SIP) phone, wireless local loop (WLL) station, personal digital assistant (PDA), handheld device with wireless communication capabilities, computing device or other processing device connected to a wireless modem, vehicle-mounted device, wearable device, user equipment in future 5G networks, or user equipment in future evolved public land mobile networks (PLMNs), etc. This application embodiment does not limit this to any particular type.
[0121] The network device in this application embodiment can be any device with wireless transceiver function used for communicating with user equipment. This equipment includes, but is not limited to: evolved Node B (eNB), radio network controller (RNC), Node B (NB), base station controller (BSC), base transceiver station (BTS), home evolved Node B (or home Node B (HNB), baseband unit (BBU), access point (AP), wireless relay node, wireless backhaul node, transmission point (TP), or transmission and reception point (TRP) in a wireless fidelity (WIFI) system. It can also be a gNB in a 5G system, such as NR, or a transmission point (TRP or TP), one or a group of antenna panels (including multiple antenna panels) of a base station in a 5G system, or a network node constituting a gNB or transmission point, such as a baseband unit (BBU) or a distributed unit (DU).
[0122] In some deployments, a gNB may include a centralized unit (CU) and a distribution unit (DU). A gNB may also include an active antenna unit (AAU). The CU implements some of the gNB's functions, and the DU implements others. For example, the CU handles non-real-time protocols and services, implementing radio resource control (RRC) and packet data convergence protocol (PDCP) layer functions. The DU handles physical layer protocols and real-time services, implementing radio link control (RLC), media access control (MAC), and physical (PHY) layer functions. The AAU implements some physical layer processing functions, radio frequency processing, and active antenna-related functions. Since RRC layer information ultimately becomes PHY layer information, or is derived from PHY layer information, in this architecture, higher-layer signaling, such as RRC layer signaling, can be considered to be sent by the DU, or by the DU+AAU. It is understood that network devices can be devices that include one or more of the following: CU nodes, DU nodes, and AAU nodes. In addition, the CU can be classified as a network device in the radio access network (RAN) or as a network device in the core network (CN), and this application does not limit this.
[0123] In this embodiment, the user equipment or network device includes a hardware layer, an operating system layer running on top of the hardware layer, and an application layer running on top of the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and memory (also called main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as Linux, Unix, Android, iOS, or Windows. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software. Furthermore, this embodiment does not specifically limit the specific structure of the execution entity of the method provided in this embodiment, as long as it can communicate according to the method provided in this embodiment by running a program that records the code of the method provided in this embodiment. For example, the execution entity of the method provided in this embodiment can be a user equipment or a network device, or a functional module in the user equipment or network device that can call and execute a program.
[0124] Furthermore, various aspects or features of this application can be implemented as methods, apparatus, or articles of manufacture using standard programming and / or engineering techniques. The term "article of manufacture" as used herein encompasses a computer program accessible from any computer-readable device, carrier, or medium. For example, computer-readable media may include, but are not limited to: magnetic storage devices (e.g., hard disks, floppy disks, or magnetic tapes), optical discs (e.g., compact discs (CDs), digital versatile discs (DVDs), etc.), smart cards, and flash memory devices (e.g., erasable programmable read-only memory (EPROMs), cards, sticks, or key drives, etc.). Additionally, the various storage media described herein may represent one or more devices and / or other machine-readable media for storing information. The term "machine-readable storage medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing, and / or carrying instructions and / or data.
[0125] This application primarily involves the Mobility Management Entity (MME) when the network architecture shown in Figure 1 is a 4G network architecture, and the Access and Mobility Management Function (AMF) and UE when the network architecture shown in Figure 1 is a 5G network architecture. Specifically, this application involves a first AMF and a second AMF. The first AMF in this application refers to the AMF selected by the UE in the 5G communication system from the MME in the 4G communication system to provide core network services during the user equipment's switch from a 4G communication system to a 5G communication system. The second AMF in this application refers to the AMF in the 5G communication system that stores the UE's security context, in addition to the first AMF, during the user equipment's switch from a 4G communication system to a 5G communication system.
[0126] It should be understood that the terms "first" and "second" in this application are used for distinction only and should not constitute any limitation on this application. For example, the first AMF and the second AMF mentioned above are simply distinguishing different AMFs.
[0127] To facilitate understanding of the method for obtaining security context provided in the embodiments of this application, the process of a user equipment switching from a 4G communication system to a 5G communication system is briefly described below with reference to Figure 2. Figure 2 is a schematic flowchart of a communication system handover, including the UE, MME, first AMF, and second AMF.
[0128] The communication system switch includes the following steps:
[0129] S210, the MME sends a forward relocation request message to the first AMF.
[0130] Specifically, when the MME in a 4G communication system learns of a user equipment (UE) handover from a 4G to a 5G communication system, it needs to select a first AMF (Access Management Function) to continue providing access and mobility management services to the UE in the 5G communication system. When the UE accesses the 4G communication system, the UE and the MME will receive the same key K. ASME When a UE switches from a 4G communication system to a 5G communication system, the MME selects the first AMF and sets the K... ASME The next hop parameter (NH) is sent to the first AMF, meaning the aforementioned forwarding and reallocation request message carries K. ASME And parameters such as NH.
[0131] This application does not limit how the MME learns of the system handover; it can refer to the provisions in existing protocols regarding the handover process from a 4G communication system to a 5G communication system. For example, the base station in the 4G communication system may send a handover request to the MME, enabling the MME to learn that the user equipment needs to switch from the 4G communication system to the 5G communication system.
[0132] Furthermore, the method by which the MME selects the first AMF is not limited in the embodiments of this application, and can be referred to the provisions in existing protocols. For example, the MME stores at least one AMF configured by the operator. When the MME learns that the user equipment needs to switch from the 4G communication system to the 5G communication system, the MME selects the aforementioned first AMF from the at least one AMF.
[0133] S220, the first AMF determines the mapped security context.
[0134] Specifically, the first AMF determines the K value carried in the received reallocation request message. ASME The security context of the mapping is derived using parameters such as NH, and this security context is included in the UE's mapping context. It should be understood that the mapping context involved in this application refers to the UE's security context derived by the first AMF and the UE based on the context negotiated between the UE and MME in the 4G communication system. For how to derive this context based on the 4G context, reference can be made to the provisions of existing protocols; this application does not limit this process. The mapping security context refers to the security context obtained by the first AMF and the UE based on the security context between the MME and the user equipment. Furthermore, the context negotiated between the UE and MME in the 4G communication system involved in this application includes the security context between the UE and MME, which can also be referred to as the UE's 4G context for distinction. Similarly, the UE's security context stored in the UE and the second AMF before the UE switches from the 4G communication system to the 5G communication system involved in this application refers to the context negotiated between the UE and the second AMF in the 5G communication system, including the security context between the UE and the AMF, which can also be referred to as the UE's 5G context for distinction.
[0135] For ease of description, the security contexts derived by the first AMF and the UE from the security context between the MME and the user equipment are referred to as the mapped security contexts, and the security context between the second AMF and the UE is referred to as the native security context.
[0136] It should also be understood that the embodiments of this application mainly involve the second AMF sending the UE's security context to the first AMF. As the UE's security context is part of the UE's context, it can be transmitted along with the UE's context. Therefore, for ease of description, the embodiments of this application may describe sending the UE's context, or the embodiments of this application may describe sending the UE's security context. This is merely a matter of descriptive simplicity and does not constitute any limitation on the protection scope of the embodiments of this application.
[0137] The aforementioned first AMF, based on the K carried in the received reallocation request message... ASME And parameters such as NH, derive the security context of the UE's mapping, including the first AMF based on K. ASME Derivation of the key K from NH AMF1 .
[0138] For example, the first AMF receives the aforementioned K. ASME After NH, the key K can be calculated using a preset derivation formula. AMF1 The derivation formula includes: K AMF1 =HMAC-SHA-256(Key, FC||P0||L0), where FC = 0x76, P0 = NH value, L0 = length of NH value (i.e., 0x00 0x20), KEY = K ASME The first AMF is based on this key K. AMF1 The integrity protection key K is calculated using a security algorithm negotiated with the UE. NASint1 and confidentiality protection key K NASenc1 , where K AMF1 K NASint1 and K NASenc1 Included in the UE's security context, and K AMF1 K NASint1 and K NASenc1 Based on K ASME K is derived from NH. ASME And NH is the security context between the UE and the MME, so K AMF1 K NASint1 and K NASenc1 The security context is called the mapping of the UE.
[0139] S230, the first AMF sends a forward relocation response message to the MME.
[0140] Specifically, after the first AMF determines the security context of the mapping, it sends a forwarding reassignment response message to the MME. This forwarding reassignment response message is used to notify the MME that the first AMF can serve as an AMF that provides access and mobility management services to the UE in the 5G communication system when the UE switches from the 4G communication system to the 5G communication system.
[0141] S240, the MME sends a handover command message to the UE.
[0142] After receiving the forwarding reallocation response message from the first AMF, the MME learns that the first AMF can provide access and mobility management services to the UE. The MME then sends a handover command message to the UE, so that the UE knows that it can switch from the 4G communication system to the 5G communication system.
[0143] S250, the UE determines the security context of the mapping.
[0144] After receiving the handover command message, the UE checks the key K stored in the UE. ASME Based on a preset derivation formula, NH calculates the key K. AMF1 The specific derivation process is shown in S220 above, and will not be repeated here.
[0145] After S250, the UE and the first AMF obtain the same key K. AMF1 The key K AMF1 It can be used to derive other keys in the future.
[0146] For example, the UE and the first AMF obtain the same key K. AMF1 Then based on K AMF1 The UE and the first AMF negotiate the non-access stratum (NAS) integrity protection algorithm and confidentiality protection algorithm, and generate an integrity protection key K for protecting NAS messages (such as registration request messages). NASint1 and confidentiality protection key K NASenc1 Specifically, calculate K. NASint1 and K NASenc1 As shown below:
[0147] K NASint1=HMAC-SHA-256(KEY, S), where S = FC||P01||L01||P11||L11, FC = 0x69, P01 = algorithm type distinguisher, L01 = length of algorithm type distinguisher (i.e., 0x00 0x01), P11 = algorithm identity, L11 = length of algorithm identity (i.e., 0x00 0x01), KEY = K AMF1 ;
[0148] K NASenc1 =HMAC-SHA-256 (KEY, S), where, S=FC||P0||L0||P1||L1, FC=0x69, P0=algorithm type distinguisher, L0=length of algorithm type distinguisher (ie0x00 0x01), P1=algorithm identity, L1=length of algorithm identity (ie0x00 0x01), KEY=K AMF1 .
[0149] Wherein, calculate K NASint1 K NASenc1 The algorithm types and algorithm identifiers are different.
[0150] After the handover is complete, the UE will initiate mobility registration, i.e., execute S260, whereby the UE sends a registration request message to the first AMF, and the UE will use the K generated above. AMF1 The security context of the derived mapping provides security protection for the registration request message, including encryption protection and / or integrity protection.
[0151] It should be understood that the UE can send messages to the core network equipment through the access network equipment. Since the function of the access equipment is not limited in this application embodiment, the access network equipment can forward messages between the UE and the first AMF. For simplicity, this application describes the communication as the UE sending a registration request message to the first AMF and the MME sending a message to the UE. The registration request message sent by the UE also includes a globally unique temporary user equipment identity (GUTI) in the mapped context. This GUTI is used by the access network equipment to determine whether to forward the registration request message to the first AMF. Since this GUTI is included in the mapped context, it can be called the mapped GUTI.
[0152] Optionally, when the UE sends a registration request message to the first AMF, if the UE stores the security context of the UE and the 5G globally unique temporary user equipment identity (5G-GUTI) of the user equipment with other AMFs (second AMF), then the UE carries the 5G-GUTI in the aforementioned registration request message.
[0153] It should be understood that the embodiments of this application mainly involve the process of how the first AMF successfully obtains the security context of the UE from the second AMF. Therefore, this application mainly considers the situation where the UE stores the security context and 5G-GUTI of the UE negotiated with the second AMF when the UE sends a registration request message to the first AMF.
[0154] It should also be understood that the reasons for storing the UE's security context and 5G-GUTI between the UE and the second AMF in the embodiments of this application are not limited, and can be the situations specified in existing protocols. For example, it could be that the UE switched from a 5G network communication system to a 4G communication system before switching from a 4G communication system to a 5G communication system; or, a UE supporting dual connectivity accesses a 5G communication system through a non-3GPP access and simultaneously accesses a 4G communication system through a 3GPP access, resulting in a connection state switch from a 4G communication system to a 5G communication system.
[0155] It should be understood that when a UE security context exists between the first AMF and the UE, the first AMF needs to obtain the UE's security context from the second AMF. Specifically, the first AMF obtains the UE's security context from the second AMF based on the 5G-GUTI carried in the registration request message received from the UE. This 5G-GUTI is configured by the second AMF for the UE and can be used to identify the UE and the second AMF. The protocol stipulates that when a UE security context exists in the 5G communication system, the UE's security context is used preferentially, rather than the security context mapped between the first AMF and the UE, because the mapped security context is obtained based on the UE security context mapping between the UE and the MME in the 4G communication system. That is, the process shown in Figure 2 also includes S270, where the first AMF initiates a User Equipment Context Transfer Service Invocation Request (Namf_Communication_UEContextTransfer).
[0156] Specifically, the first AMF receives the registration request message sent by the UE and initiates a user equipment context transport service call request to the second AMF based on the 5G-GUTI carried in the registration request message. The user equipment context transport service call request carries the aforementioned registration request message.
[0157] It should be understood that the aforementioned registration request message is protected by the security context mapped between the UE and the first AMF. The second AMF determines whether to return the UE's security context to the first AMF based on the verification result of the registration request message. That is, S290 is executed, and the second AMF verifies the registration request message.
[0158] One possible implementation is that if the second AMF fails to verify the registration request message, it will not return the UE's security context to the first AMF. This will ultimately cause the first AMF to fail to obtain the UE's security context from the second AMF, thus preventing the first AMF from making priority use of the UE's security context, which does not comply with the protocol.
[0159] Another possible implementation is that if the second AMF successfully verifies the integrity of the registration request message, then the second AMF passes the UE's security context to the first AMF, executing S291, whereby the second AMF sends the UE's security context to the first AMF. Optionally, this can be described as the second AMF sending the UE's context to the first AMF, the UE's context including the security context of the UE negotiated and determined between the second AMF and the UE, and this security context including the key K. AMF2 And non-access stratum count (NAS COUNT), etc.
[0160] Optionally, the second AMF may check the key K according to a local policy before transmitting the UE's security context. AMF2 Perform key deduction. If the second AMF is related to K... AMF2 If key deduction has been performed, the deduced key K is sent to the first AMF. AMF2 It will also carry deduction instructions to instruct the second AMF on K. AMF2 Key derivation was performed.
[0161] As one possible implementation, the key deduction described in this application can be horizontal key deduction;
[0162] For example, K AMF2 K is generated through horizontal key derivation. AMF2 The method is:
[0163] K AMF2 = HMAC-SHA-256(Key, S);
[0164] FC = 0x72;
[0165] P0 = 0x01;
[0166] L0=length of P0(ie0x00 0x01);
[0167] P1 = uplink NAS COUNT;
[0168] L1=length of P1(ie0x00 0x04);
[0169] KEY=K AMF2 ;
[0170] S=FC||P0||L0||P1||L1.
[0171] As another possible implementation, the key deduction described in this application can be a key deduction method agreed upon between different network elements. For example, the first AMF and the second AMF agree on a preset key deduction method. As long as the security context of the UE sent by the second AMF to the first AMF includes deduction instruction information, the first AMF can determine that the key in the received security context of the UE was obtained by the second AMF through key deduction using the preset key deduction method.
[0172] Similarly, after receiving the deduction instruction information, the first AMF will also send deduction instruction information to the UE, instructing the UE to perform deduction on key K. AMF2 Key K is obtained by key deduction. AMF2This allows the UE and the network side to reach an agreement on the key. It should be understood that the UE can determine that it is using key K. AMF2 Perform key deduction instead of K AMF Key deduction is performed because the UE receives the instruction key K. AMF2 The key identifier is not described in detail here because this application does not involve any improvement to the key identifier.
[0173] As shown in Figure 2, during the user equipment's switch from a 4G to a 5G communication system, if the second AMF fails to verify the UE, the first AMF cannot obtain the UE's security context from the second AMF. To avoid this failure, this application provides a method for obtaining the security context. When the first AMF obtains the UE's security context from the second AMF, it carries indication information indicating that the UE has passed verification. Based on this indication, the second AMF does not need to verify the UE and can directly return the UE's security context, thus avoiding the possibility of failure to obtain the UE's security context.
[0174] It should be understood that the UE verification involved in this application refers to the integrity verification of the registration request message sent by the UE, such as decrypting the registration request message and / or verifying the integrity of the registration request message. Since the premise for the successful integrity verification of the registration request message is the successful decryption of the registration request message, the UE passing the verification in the embodiments of this application is described as the integrity verification of the registration request message passing.
[0175] The method for obtaining a security context provided in this application embodiment will be described in detail below with reference to Figure 3. Figure 3 is a schematic diagram of a method for obtaining a security context provided in this application embodiment. The schematic diagram includes a UE, an MME, a first AMF, and a second AMF.
[0176] The method for obtaining the security context includes the following steps:
[0177] S310, the first AMF sends a second request message to the second AMF.
[0178] The second request message is used to request the security context of the UE. The second request message carries indication information, which is used to indicate that the UE is a legitimate UE.
[0179] Alternatively, the indication information may be referred to as a cause value.
[0180] Specifically, the first AMF determines that the UE is a legitimate UE mainly by judging whether the registration request message received from the UE meets the preset conditions. It should be understood that before the first AMF sends the second request message to the second AMF, the method flow shown in Figure 3 also includes S311-S316:
[0181] S311, the MME sends a forwarding reallocation request message to the first AMF, which is similar to S210 in Figure 2, and will not be described in detail here;
[0182] S312, the first AMF determines the security context of the mapping, which is similar to S220 in Figure 2, and will not be described again here;
[0183] S313, the first AMF sends a forwarding reallocation response message to the MME, which is similar to S230 in Figure 2, and will not be described in detail here;
[0184] S314, the MME sends a handover command message to the UE, which is similar to S240 in Figure 2, and will not be described in detail here;
[0185] In step S315, the UE determines the mapped security context, which is similar to step S250 in Figure 2 and will not be described in detail here.
[0186] In step S316, the UE sends a registration request message to the first AMF, which is similar to step S260 in Figure 2, and will not be described again here.
[0187] Furthermore, the first AMF determines that the registration request message meets preset conditions, including:
[0188] The first AMF successfully verified the integrity protection of the registration request message; or,
[0189] The first AMF determines that the registration request message is sent by the UE after switching from a 4G communication system to a 5G communication system. For example, if the first AMF receives a forwarding reallocation request message from the MME before receiving the registration request message sent by the UE, then the first AMF can know that the currently received registration request message is a registration request message received from the UE during the handover process.
[0190] Specifically, the first AMF successfully verifies the integrity protection of the registration request message, which can also be called the first AMF verifying the UE successfully. That is, the method flow shown in Figure 3 also includes S317, the first AMF verifies the UE.
[0191] As one possible implementation, the second request message is the first AMF-initiated User Equipment Context Transfer Service Invocation Request (Namf_Communication_UEContextTransfer) shown in Figure 2. Unlike the User Equipment Context Transfer Service Invocation Request shown in Figure 2, the User Equipment Context Transfer Service Invocation Request in this embodiment adds an information element (IE) - indication information.
[0192] As another possible implementation, the second request message is another possible second request message sent by the first AMF to the second AMF to obtain the security context of the UE.
[0193] It should be understood that the specific form of the second request message is not limited in this application. It can be an additional instruction information added to the existing signaling between the first AMF and the second AMF, or it can be a new signaling between the first AMF and the second AMF.
[0194] As another possible implementation, in this embodiment of the application, it is only required that the first AMF sends the above-mentioned indication information to the second AMF before sending the user equipment context transport service call request to the second AMF. That is to say, the first AMF can directly send the indication information to the second AMF without carrying the indication information in the second request message. This possible implementation is not shown in Figure 3.
[0195] It should also be understood that this application does not limit how the aforementioned indication information specifically indicates that the UE is a legitimate UE. One possible implementation is that the indication information can reuse the UE's 5G-GUTI. In this case, the 5G-GUTI can identify the UE and also indicate that the UE is a legitimate UE. In this implementation, a new indication function is added to the existing IE, and the second AMF can be notified of the new function of the 5G-GUTI through a predefined method. Another possible implementation is that the indication information can be at least one newly added bit, with a value set to 1, indicating that the UE is a legitimate UE. The above possible implementations are merely illustrative and do not constitute any limitation on the scope of protection of this application.
[0196] As one possible implementation, the above-mentioned indication information explicitly indicates that the UE is a legitimate UE; or, as another possible implementation, the above-mentioned indication information implicitly indicates that the UE is a legitimate UE, for example, the indication information indicates that the integrity verification of the registration request message received by the first AMF from the UE has passed.
[0197] Furthermore, in order for the second AMF to determine whether the first AMF needs to obtain the UE's security context, the second request message mentioned above also needs to carry the UE's identifier.
[0198] As one possible implementation, the UE identifier can be the aforementioned 5G-GUTI;
[0199] As another possible implementation, the UE's identifier can be a subscriber permanent identity (SUPI).
[0200] It should be understood that after the first AMF receives the UE's 5G-GUTI from the UE, it determines that it needs to obtain the UE's security context from the second AMF. It can then choose to continue to carry the UE's 5G-GUTI in the second request message, or carry the UE's SUPI, or carry both the UE's 5G-GUTI and the UE's SUPI.
[0201] Optionally, in order for the second AMF to obtain the UE's uplink non-access stratum count (UL NAS COUNT), one possible implementation is that the second request message carries a plaintext registration request message, which includes the UL NAS COUNT; or, another possible implementation is that the second request message carries the UL NAS COUNT.
[0202] Furthermore, after receiving the second request message sent by the first AMF, the second AMF learns from the indication information that the UE is a legitimate UE, and the second AMF does not need to perform UE verification, that is, it executes S320, and the second AMF determines that no verification is required.
[0203] S330, the second AMF sends a second response message to the first AMF.
[0204] The second response message carries the UE's security context.
[0205] In this embodiment, the second AMF does not need to verify the UE. After receiving the second request message sent by the first AMF, it directly returns the UE's security context to the first AMF. Therefore, there is no failure of the first AMF to obtain the UE's security context due to the second AMF's failure to verify the UE.
[0206] Optionally, when the second request message carries a plaintext registration request message, or when the second request message carries a UL NAS COUNT, the second AMF can obtain the UL NAS COUNT. For example, since the plaintext registration request message is an unsecured registration request message, the second AMF does not need to verify the plaintext registration request message and can directly obtain the UL NAS COUNT from the plaintext registration request message.
[0207] Furthermore, the second AMF can perform key deduction on the first key in the UE's security context based on the UL NAS COUNT. In this case, the key in the UE's security context returned by the second AMF to the first AMF is the second key obtained by key deduction on the first key.
[0208] Specifically, when the key in the security context of the UE sent by the second AMF to the first AMF is the aforementioned second key, the second AMF also needs to send key deduction indication information to the first AMF to indicate that the second key is the key obtained by key deduction.
[0209] It should be understood that the process after the first AMF obtains the UE's security context is similar to the process after the first AMF obtains the UE's security context in the existing process of UE switching from a 4G communication system to a 5G communication system. The existing process can be referred to, and it will not be repeated here.
[0210] The method for obtaining the security context shown in Figure 3 mainly involves carrying indication information in the second request message sent by the first AMF to the second AMF. This indication information indicates that the UE is a legitimate UE. Therefore, the second AMF can determine that the UE is legitimate based on this indication information. The second AMF does not need to verify the UE; after receiving the second request message carrying the indication information, the second AMF directly returns the UE's security context to the first AMF, thus avoiding the failure of the second AMF to verify the UE, which would cause the first AMF to fail to obtain the UE's security context. This application also provides another method for obtaining the security context, in which the second AMF verifies the UE. However, this method increases the probability of the second AMF successfully verifying the UE, thereby increasing the probability of the first AMF successfully obtaining the user equipment's security context from the second AMF.
[0211] The method for obtaining a security context will now be described in detail with reference to Figure 4. Figure 4 is a schematic diagram of another method for obtaining a security context provided in an embodiment of this application. The schematic diagram includes a UE, an MME, a first AMF, and a second AMF.
[0212] The method for obtaining the security context includes the following steps:
[0213] S410, the UE confirms the first registration request message.
[0214] The first registration request message carries a second registration request message, wherein the second registration request message is protected for integrity by a first security context, which is the native security context between the UE and the second AMF.
[0215] Specifically, the UE determines the first registration request message, which mainly involves the UE determining the second registration request message. The second registration request message is the message after the UE protects the fourth registration request message with native security context integrity. The fourth registration request message includes the GUTI, key identifier (ngKSI) information, and UL NAS COUNT in the UE context between the UE and the second AMF. For easy distinction, the GUTI can be called the local GUTI and the key identifier can be called the local key identifier.
[0216] Alternatively, the fourth registration request message can be one of the following possible scenarios:
[0217] Scenario 1:
[0218] The fourth registration request message is a message generated by the UE based on the aforementioned local GUTI, local key identifier, and UL NAS COUNT. In this case, the fourth registration request message may also be called the fourth message or other possible names. In this embodiment of the application, the name of the message is not limited.
[0219] It should be understood that the fourth registration request message generated by the UE based on the UE context between the UE and the second AMF can also take other forms. For example, in addition to the local GUTI, local key identifier and UL NAS COUNT mentioned above, the fourth registration request message generated by the UE may also include other information elements (IEs).
[0220] In one scenario, the UE's integrity protection of the fourth registration request message based on the first security context includes: the UE generating a first MAC address based on the first security context for the integrity protection of the fourth registration request message. Therefore, carrying the second registration request message in the first registration request message can also be understood as carrying the first MAC address and the fourth registration request message in the first registration request message.
[0221] Furthermore, in the following case, the UE determines that the first registration request message includes the following steps:
[0222] Step 1:
[0223] The fourth registration request message constructed by the UE;
[0224] Step Two:
[0225] The UE performs integrity protection on the fourth registration request message based on the security context between the UE and the second AMF, and generates a first MAC.
[0226] Step 3:
[0227] The UE performs integrity protection on the third registration request message and the second registration request message (RR2) based on the security context of the mapping between the UE and the first AMF, and generates a fifth MAC. The third registration request message is the registration request message sent by the UE to the first AMF in the method flow S260 shown in Figure 2. Specifically, the third registration request message includes the GUTI and key identifier information in the context of the mapping between the UE and the first AMF. For easy distinction, the GUTI can be called the mapped GUTI and the key identifier can be called the mapped key identifier.
[0228] In this case, the first registration request message includes a fourth registration request message (RR4), a third registration request message (RR3), a fifth MAC (MAC5), and a first MAC (MAC1). MAC1 is the MAC value obtained by performing integrity protection on RR4 using the local security context, and MAC5 is the MAC value obtained by performing integrity protection on RR3 and RR2 using the mapped security context (or, MAC5 is the MAC value obtained by performing integrity protection on RR3, RR4, and MAC1 using the mapped security context). It can also be understood that the first registration request message is a message that performs integrity protection based on the native security context and the mapped security context in sequence.
[0229] Scenario 2:
[0230] The fourth registration request message is a registration request message after the UE performs integrity protection on the third registration request message based on the mapped security context.
[0231] In scenario two, the UE's integrity protection of the fourth registration request message based on the first security context includes: the UE generating a first MAC address based on the first security context for the integrity protection of the fourth registration request message. Therefore, carrying the second registration request message in the first registration request message can also be understood as carrying the first MAC address and the fourth registration request message in the first registration request message.
[0232] Furthermore, in scenario two, the UE determines that the first registration request message includes the following steps:
[0233] Step 1:
[0234] The UE performs integrity protection on the third registration request message based on the security context of the mapping between the UE and the first AMF, and generates a third MAC.
[0235] Step Two:
[0236] Based on the native security context between the UE and the second AMF, the UE performs integrity protection again on the third registration request message after performing integrity protection on the security context based on mapping in step one, and generates the first MAC.
[0237] In this case, the first registration request message includes a third registration request message (RR3), a third MAC (MAC3), and a first MAC (MAC1). MAC3 is the MAC value obtained by performing integrity protection on RR3 using the mapped security context, and MAC1 is the MAC value obtained by performing integrity protection on RR3 and MAC3 using the local security context. Alternatively, the first registration request message can be understood as a message that performs integrity protection based on the mapped security context and the native security context in sequence.
[0238] Scenario 3:
[0239] The fourth registration request message is the third registration request message, which is the registration request message sent by the UE to the first AMF in the method flow S260 shown in Figure 2.
[0240] In scenario two, the UE's integrity protection of the fourth registration request message based on the first security context includes: the UE generating a first MAC address based on the first security context for the integrity protection of the fourth registration request message. Therefore, carrying the second registration request message in the first registration request message can also be understood as carrying the first MAC address and the fourth registration request message in the first registration request message.
[0241] Furthermore, in scenario three, the UE determines that the first registration request message includes the following steps:
[0242] Step 1:
[0243] The UE performs integrity protection on the third registration request message based on the native security context between the UE and the second AMF, and generates the first MAC.
[0244] Step Two:
[0245] Based on the security context of the mapping between the UE and the first AMF, the UE performs integrity protection again on the third registration request message after the integrity protection based on the native security context in step one, and generates a fourth MAC.
[0246] In this case, the first registration request message includes a third registration request message (RR3), a first MAC (MAC1), and a fourth MAC (MAC4). MAC1 is the MAC value obtained by performing integrity protection on RR3 using the local security context, and MAC4 is the MAC value obtained by performing integrity protection on RR3 and MAC1 using the mapped security context. It can also be understood that the first registration request message is a message that performs integrity protection based on the native security context and the mapped security context in sequence.
[0247] It should be understood that, under certain circumstances, the first AMF can determine, based on the first registration request message sent by the UE carrying both the mapped GUITI and the local GUTI, to send a second registration request message protected by native security context integrity to the second AMF.
[0248] It should also be understood that the above-described scenarios one through three are merely examples illustrating the possible scenarios of the second registration request message and how the UE determines the above-described first registration request message. Other possible forms of the second registration request not listed are also within the scope of protection of this application. For example, the above-described fourth registration request message is another possible message that the UE constructs based on the native context.
[0249] S420, the UE sends a first registration request message to the first AMF.
[0250] Specifically, the UE sends the first registration request message determined in S410 to the first AMF.
[0251] It should be understood that the UE can send the first registration request message to the first AMF via the forwarding of the access network device. The function of the access network device is not limited in this application, so it can be directly described as the UE sending the first registration request message to the first AMF.
[0252] It should also be understood that before the UE sends the first registration request message to the first AMF, the UE needs to determine the mapped security context. Therefore, before the UE sends the first registration request message to the first AMF, the method flow shown in Figure 4 also includes S411-S414:
[0253] S411, the MME sends a forwarding reallocation request message to the first AMF, which is similar to S210 in Figure 2, and will not be described in detail here;
[0254] S412, the first AMF determines the security context of the mapping, which is similar to S220 in Figure 2, and will not be described again here;
[0255] S413, the first AMF sends a forwarding reallocation response message to the MME, which is similar to S230 in Figure 2, and will not be described in detail here;
[0256] S414, the MME sends a handover command message to the UE, which is similar to S240 in Figure 2, and will not be described in detail here;
[0257] Specifically, after receiving the handover command message, the UE derives the mapped security context. Then, the UE uses the native security context and the mapped security context to provide security protection for the aforementioned first registration request message.
[0258] S430, the first AMF-verified UE.
[0259] Specifically, the first AMF determines that the UE is a legitimate UE mainly by judging whether the first registration request message received from the UE meets preset conditions. The first AMF determines that the first registration request message meets preset conditions including:
[0260] The first AMF successfully verifies the integrity protection of the first registration request message based on the mapped security context; or,
[0261] The first AMF determines that the first registration request message is a registration request message sent by the UE after switching from the 4G communication system to the 5G communication system. For example, if the first AMF receives a forwarding reallocation request message sent by the MME before receiving the first registration request message sent by the UE, then the first AMF can know that the first registration request message it is currently receiving is a registration request message received from the UE during the handover process.
[0262] After the first AMF verifies that the UE is a legitimate UE, the first AMF sends a second registration request message to the second AMF. This second registration request message is used by the second AMF to verify the UE. That is, the method flow shown in Figure 4 also includes S440, where the first AMF sends the second registration request message to the second AMF.
[0263] Optionally, the second registration request message is carried in the first request message and sent by the first AMF to the second AMF.
[0264] As one possible implementation, the first request message is the first AMF-initiated User Equipment Context Transmission Service Invocation Request (Namf_Communication_UEContextTransfer) shown in Figure 2. Unlike the User Equipment Context Transmission Service Invocation Request shown in Figure 2, the User Equipment Context Transmission Service Invocation Request in this embodiment adds a new information element - the first MAC.
[0265] As another possible implementation, the first request message is another possible first request message sent by the first AMF to the second AMF to obtain the security context of the UE.
[0266] It should be understood that the specific form of the first request message is not limited in this application. It can be the first MAC added to the existing signaling between the first AMF and the second AMF, or it can be newly added signaling between the first AMF and the second AMF.
[0267] Furthermore, in order for the second AMF to determine that the first AMF needs to obtain the UE's security context, the aforementioned first request message also carries the UE's identifier. Specifically, the UE's identifier is included in the second registration request message sent by the first AMF to the second AMF.
[0268] As one possible implementation, the UE's identifier can be the GUTI mapped as described above;
[0269] As one possible implementation, the UE's identifier can be the aforementioned local GUTI;
[0270] As another possible implementation, the UE identifier could be SUPI.
[0271] It should be understood that after the first AMF receives the mapped GUTI of the UE from the UE, it determines that it needs to obtain the security context of the UE from the second AMF. It can then choose to continue to carry the mapped GUTI of the UE in the first request message, or carry the SUPI of the UE, or carry both the mapped GUTI of the UE and the SUPI of the UE.
[0272] It should also be understood that when the first registration request message received by the first AMF is as shown in Case 1 of S410, the first registration request message carries a second registration request message, and the second registration request message includes the local GUTI. In this case, the first AMF may choose to carry the UE's local GUTI in the first request message.
[0273] Furthermore, the aforementioned second registration request message also includes the UE's UL NAS COUNT, enabling the second AMF to obtain the UE's UL NAS COUNT.
[0274] Furthermore, after receiving the first request message sent by the first AMF, the second AMF determines whether the UE is a legitimate UE based on the integrity verification result of the second registration request message, that is, it executes S450, the second AMF verifies the integrity of the second registration request message.
[0275] The second AMF performs integrity verification on the second registration request message based on the security context between the second AMF and the user equipment. For example, the second AMF generates a second MAC based on the locally stored security context, compares it with the first MAC and the second MAC, and if the first MAC and the second MAC are equal, the second AMF successfully verifies the UE, determines that the UE is a legitimate UE, and then sends the UE's security context to the first AMF.
[0276] It should be understood that the first MAC address mentioned above is the MAC address generated by the UE based on the security context of the UE negotiated between the UE and the second AMF, and the second MAC address is the MAC address generated by the second AMF based on the security context of the UE negotiated between the UE and the second AMF. Therefore, in most cases, the first MAC address and the second MAC address are equal, and the second AMF can successfully verify the UE and return the UE's security context to the first AMF, unless a low-probability event of a transmission error occurs, causing the second AMF to fail to verify. Compared with the method flow shown in Figure 2, the method for obtaining the security context shown in Figure 4 increases the probability that the first AMF can successfully obtain the security context of the user equipment from the second AMF.
[0277] After the second AMF successfully verifies the integrity of the second registration request message, it executes S460, in which the second AMF sends the UE's security context to the first AMF.
[0278] Optionally, the security context of the UE is carried in the first response message.
[0279] Furthermore, if the security context of the UE is included in the UE's context, then the second AMF can send the UE's context to the first AMF.
[0280] Optionally, the second AMF can perform key deduction on the first key in the UE's security context according to the UL NAS COUNT. In this case, the key in the UE's security context returned by the second AMF to the first AMF is the second key obtained by key deduction on the first key. In this embodiment, the UE's security context including the second key generated by key deduction can be referred to as the second security context. That is, the UE's security context sent by the second AMF to the first AMF can be the UE's security context between the second AMF and the UE that has not undergone key deduction, stored locally in the second AMF. Alternatively, if the second AMF has performed key deduction on the key in the UE's security context between the second AMF and the UE stored locally according to a local policy to generate a deduced key, the UE's security context sent by the second AMF to the first AMF can be the aforementioned second security context.
[0281] Specifically, when the key in the security context of the UE sent by the second AMF to the first AMF is the aforementioned second key, the second AMF also needs to send key deduction indication information to the first AMF to indicate that the second key is the key obtained by key deduction.
[0282] It should be understood that the process after the first AMF obtains the UE's security context is similar to the process after the first AMF obtains the UE's security context in the existing process of UE switching from a 4G communication system to a 5G communication system. The existing process can be referred to, and it will not be repeated here.
[0283] For example, the UE and the first AMF subsequently negotiate to use the aforementioned native security context. Specifically, the first AMF sends a non-access layer secure mode command (NAS SMC) message to the UE. The UE performs integrity verification on the NAS SMC message. After the UE successfully verifies the NAS SMC, the UE sends a non-access layer security mode complete message to the first AMF.
[0284] As one possible implementation, if the second AMF fails to verify the integrity of the second registration request message, the second AMF sends a failure indication message to the first AMF to notify the first AMF that the second AMF has failed to verify the integrity of the second registration request message.
[0285] Furthermore, after receiving a failure indication message indicating that the second AMF failed to verify the integrity of the second registration request message, the first AMF determines, based on its local policy, that it can continue to use the security context mapped above, or the first AMF initiates initial authentication to the UE based on its local policy, generating a new security context between the first AMF and the UE.
[0286] It should be understood that in the above method embodiments, the order of the process numbers does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0287] The method for obtaining security context provided by the embodiments of this application has been described in detail above with reference to Figures 3 and 4. The apparatus for obtaining security context provided by the embodiments of this application will be described in detail below with reference to Figures 5-10.
[0288] Referring to Figure 5, which is a schematic diagram of the apparatus 50 for obtaining security context proposed in this application, the apparatus 50 includes a transmitting unit 510, a processing unit 520, and a receiving unit 530.
[0289] Sending unit 510 is used to send a first registration request message to the first AMF;
[0290] Processing unit 520 is used to determine the first registration request message;
[0291] The receiving unit 530 is used to receive the handover command message sent by the MME.
[0292] The device 50 corresponds completely to the user equipment in the method embodiments. The device 50 can be the user equipment in the method embodiments, or a chip or functional module inside the user equipment in the method embodiments. The corresponding unit of the device 50 is used to perform the corresponding steps performed by the user equipment in the method embodiments shown in FIG3 and FIG4.
[0293] In this embodiment, the sending unit 510 in device 50 executes the steps of the user equipment sending in the method embodiment. For example, it executes step S316 in FIG3, which sends a registration request message to the first AMF, and step S420 in FIG4, which sends a first registration request message to the first AMF.
[0294] The processing unit 520 executes the steps implemented or processed internally by the user equipment in the method embodiment. For example, it executes step S315 in FIG3 to determine the mapped security context and step S410 in FIG4 to determine the first registration request message;
[0295] The receiving unit 530 executes the steps of receiving by the user equipment in the method embodiment. For example, it executes step S314 of receiving the handover command message sent by the MME in FIG3 and step S414 of receiving the handover command message sent by the MME in FIG4.
[0296] The transmitting unit 510 and receiving unit 530 shown in device 50 can form a transceiver unit, simultaneously possessing both receiving and transmitting functions. The processing unit 520 can be a processor. The transmitting unit 510 can be a transmitter, and the receiving unit 530 can be a receiver. The receiver and transmitter can be integrated together to form a transceiver unit.
[0297] Referring to Figure 6, Figure 6 is a schematic diagram of the structure of a user equipment 60 applicable to an embodiment of this application. This user equipment 60 can be applied to the system shown in Figure 1. For ease of explanation, Figure 6 only shows the main components of the user equipment. As shown in Figure 6, the user equipment 60 includes a processor (corresponding to the processing unit 520 shown in Figure 5), a memory, a control circuit, an antenna, and input / output devices (corresponding to the transmitting unit 510 and the receiving unit 530 shown in Figure 5). The processor controls the antenna and the input / output devices to transmit and receive signals. The memory stores a computer program, and the processor calls and runs the computer program from the memory to execute the corresponding processes and / or operations performed by the user equipment in the method for obtaining a security context proposed in this application. Further details are omitted here.
[0298] Those skilled in the art will understand that, for ease of explanation, Figure 6 only shows one memory and one processor. In actual user equipment, multiple processors and memories may exist. Memory may also be referred to as storage medium or storage device, etc., and the embodiments of this application do not impose such limitations.
[0299] Referring to Figure 7, which is a schematic diagram of the apparatus 70 for obtaining security context proposed in this application. As shown in Figure 7, the apparatus 70 includes a receiving unit 710, a processing unit 720, and a transmitting unit 730.
[0300] The receiving unit 710 is configured to receive a first registration request message sent by a user equipment, wherein the first registration request message carries a second registration request message, wherein the second registration request message is protected for integrity by a first security context, the first security context being the local security context between the user equipment and the second AMF, and the first AMF being the AMF that provides access and mobility management services to the user equipment after the user equipment switches from a 4G communication system to a 5G communication system;
[0301] Processing unit 720 is used to determine the security context of the mapping;
[0302] The sending unit 730 is used to send a second registration request message to the second AMF.
[0303] The device 70 corresponds completely to the first AMF in the method embodiment. The device 70 can be the first AMF in the method embodiment, or a chip or functional module inside the first AMF in the method embodiment. The corresponding unit of the device 70 is used to perform the corresponding steps performed by the first AMF in the method embodiment shown in FIG3 and FIG4.
[0304] In this embodiment, the receiving unit 710 in device 70 performs the steps of receiving the first AMF in the method embodiment. For example, it performs step S311 of receiving the forwarding redistribution request message sent by the MME in FIG3, step S411 of receiving the forwarding redistribution request message sent by the MME in FIG4, step S316 of receiving the registration request message sent by the UE in FIG3, step S420 of receiving the first registration request message sent by the UE in FIG3, step S330 of receiving the second response message sent by the second AMF in FIG3, and step S460 of receiving the security context of the UE sent by the second AMF in FIG4.
[0305] The processing unit 720 executes the steps implemented or processed internally by the first AMF in the method embodiment. For example, it executes step S312 of determining the security context of the mapping in FIG3, step S412 of determining the security context of the mapping in FIG4, step S317 of verifying the UE in FIG3, and step S430 of verifying the UE in FIG4.
[0306] The sending unit 730 executes the steps of sending the first AMF in the method embodiment. For example, it executes step S313 of sending a forwarding reallocation response message to the MME in FIG3, step S413 of sending a forwarding reallocation response message to the MME in FIG4, step S310 of sending a second request message to the second AMF in FIG3, and step S440 of sending a second registration request message to the second AMF in FIG4.
[0307] The receiving unit 710 and the transmitting unit 730 can form a transceiver unit, which has both receiving and transmitting functions. The processing unit 720 can be a processor. The transmitting unit 730 can be a transmitter. The receiving unit 710 can be a receiver. The receiver and transmitter can be integrated together to form a transceiver unit.
[0308] As shown in Figure 8, this application embodiment also provides a first AMF 80, which includes a processor 810, a memory 820, and a transceiver 830. The memory 820 stores instructions or programs, and the processor 830 executes the instructions or programs stored in the memory 820. When the instructions or programs stored in the memory 820 are executed, the transceiver 830 performs the operations performed by the receiving unit 710 and the transmitting unit 730 in the device 70 shown in Figure 7.
[0309] Referring to Figure 9, which is a schematic diagram of the apparatus 90 for obtaining security context proposed in this application. As shown in Figure 9, the apparatus 90 includes a receiving unit 910, a processing unit 920, and a transmitting unit 930.
[0310] The receiving unit 910 is configured to receive a second registration request message sent by the first AMF, wherein the second registration request message is protected for integrity by a first security context, and the first security context is the local security context between the user equipment and the second AMF;
[0311] Processing unit 920 is used to verify the integrity of the second registration request message;
[0312] When the processing unit 920 successfully verifies the integrity of the second registration request message, the sending unit 930 sends the security context of the user equipment to the first AMF.
[0313] The device 90 corresponds completely to the second AMF in the method embodiment. The device 90 can be the second AMF in the method embodiment, or a chip or functional module inside the second AMF in the method embodiment. The corresponding unit of the device 80 is used to perform the corresponding steps performed by the second AMF in the method embodiments shown in FIG3 and FIG4.
[0314] In this embodiment, the receiving unit 910 in device 90 performs the steps of receiving the second AMF in the method embodiment. For example, it performs step S310 in FIG3, which receives the second request message sent by the first AMF, and step S440 in FIG4, which receives the second registration request message sent by the first AMF.
[0315] Processing unit 920 executes the steps implemented or processed internally by the second AMF in the method embodiment. For example, it executes step S320 in FIG3, which determines that UE verification is not required, and step S450 in FIG4, which verifies the integrity of the second registration request message.
[0316] The sending unit 930 executes the steps of sending the second AMF in the method embodiment. For example, it executes step S330 in FIG3, which sends the second response message to the first AMF, and step S460 in FIG4, which sends the UE's security context to the first AMF.
[0317] The receiving unit 910 and the transmitting unit 930 can form a transceiver unit, which has both receiving and transmitting functions. The processing unit 920 can be a processor. The transmitting unit 930 can be a transmitter, and the receiving unit 910 can be a receiver. The receiver and transmitter can be integrated together to form a transceiver unit.
[0318] As shown in Figure 10, this embodiment of the application also provides a second AMF 100, which includes a processor 1010, a memory 1020, and a transceiver 1030. The memory 1020 stores instructions or programs, and the processor 1030 executes the instructions or programs stored in the memory 1020. When the instructions or programs stored in the memory 1020 are executed, the transceiver 1030 performs the operations performed by the receiving unit 910 and the transmitting unit 930 in the device 90 shown in Figure 9.
[0319] This application also provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the steps of the first AMF in the methods shown in Figures 3 and 4.
[0320] This application also provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the steps of the second AMF in the methods shown in Figures 3 and 4.
[0321] This application also provides a computer program product containing instructions that, when run on a computer, cause the computer to perform the steps of the first AMF in the method shown in Figures 3 and 4.
[0322] This application also provides a computer program product containing instructions that, when run on a computer, cause the computer to perform the steps of the second AMF in the method shown in Figures 3 and 4.
[0323] This application also provides a chip including a processor. The processor is used to read and run a computer program stored in a memory to execute corresponding operations and / or processes performed by a second AMF in the method for obtaining a security context provided in this application. Optionally, the chip also includes a memory, which is connected to the processor via a circuit or wire. The processor is used to read and execute the computer program in the memory. Further optionally, the chip also includes a communication interface, to which the processor is connected. The communication interface is used 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.
[0324] This application also provides a chip including a processor. The processor is used to invoke and run a computer program stored in a memory to execute corresponding operations and / or processes performed by a first AMF in the method for obtaining a security context provided in this application. Optionally, the chip also includes a memory connected to the processor via a circuit or wire, the processor being used to read and execute the computer program in the memory. Further optionally, the chip also includes a communication interface to which the processor is connected. The communication interface is used to receive data and / or information that needs to be processed, the processor obtaining the data and / or information from the communication interface and processing the data and / or information. The communication interface may be an input / output interface.
[0325] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0326] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0327] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0328] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0329] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0330] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0331] Furthermore, the term "and / or" in this application is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship. The term "at least one" in this application can represent "one" and "two or more." For example, at least one of A, B, and C can represent: A existing alone, B existing alone, C existing alone, A and B existing simultaneously, A and C existing simultaneously, C and B existing simultaneously, and A, B, and C existing simultaneously.
[0332] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for obtaining a security context, characterized in that, include: The first Access and Mobility Management Function (AMF) receives a first registration request message from a user equipment, the first registration request message carrying a second registration request message. The second registration request message is protected for integrity by a first security context. The first security context is the local security context between the user equipment and the second AMF. The first AMF is the AMF that provides access and mobility management services to the user equipment after it switches from a 4G communication system to a 5G communication system. The first AMF sends the second registration request message to the second AMF; The second AMF verifies the integrity of the second registration request message; If the second AMF successfully verifies the integrity of the second registration request message, then the second AMF sends the security context of the user equipment to the first AMF.
2. The method according to claim 1, characterized in that, The security context of the user equipment includes: The first security context, or the second security context obtained based on the first security context.
3. The method according to claim 1 or 2, characterized in that, The first AMF sends the second registration request message to the second AMF, including: The first AMF sends a User Equipment Context Transport Service Invocation Request to the second AMF, and the User Equipment Context Transport Service Invocation Request carries the second registration request message.
4. The method according to any one of claims 1 to 3, characterized in that, The second AMF sends the security context of the user equipment to the first AMF, including: The second AMF sends a first response message to the first AMF, the first response message carrying the security context of the user equipment.
5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: When the first AMF receives a message from the second AMF indicating that the integrity of the second registration request message has failed to be verified, the first AMF continues to use the mapped security context or initiates initial authentication with the user equipment.
6. The method according to claim 5, characterized in that, The security context of the mapping is obtained based on the security context between the Mobility Management Entity (MME) and the User Equipment, wherein the MME is a network element in the 4G communication system.
7. The method according to any one of claims 1 to 6, characterized in that, The second AMF verifies the integrity of the second registration request message, including: The second AMF verifies the integrity of the second registration request message based on the first security context.
8. A method for obtaining a security context, characterized in that, include: The user equipment determines a second registration request message, which has been protected for integrity by a first security context, wherein the first security context is the local security context between the user equipment and the second access and mobility management function (AMF). The user equipment sends a first registration request message to the first AMF, the first registration request message carrying the second registration request message. Wherein, the first AMF is the AMF that provides access and mobility management services to the user equipment after the user equipment switches from the 4G communication system to the 5G communication system.
9. The method according to claim 8, characterized in that, The method further includes: If a Non-Access Stratum Security Mode (NAS SMC) command message sent by the first AMF is received, then a complete verification of the NAS SMC is performed. If the verification is successful, a non-access stratum security mode completion message is sent to the first AMF.
10. A communication system, characterized in that, The communication system includes a first access and mobility management function (AMF) and a first AMF. The first AMF is used to receive a first registration request message sent by the user equipment. The first registration request message carries a second registration request message. The second registration request message is protected for integrity by a first security context. The first security context is the local security context between the user equipment and the second AMF. The first AMF is the AMF that provides access and mobility management services to the user equipment after the user equipment switches from a 4G communication system to a 5G communication system. The first AMF is also used to send the second registration request message to the second AMF; The second AMF is used to verify the integrity of the second registration request message; The second AMF is further configured to send the security context of the user equipment to the first AMF if the integrity of the second registration request message is successfully verified.
11. The communication system according to claim 10, characterized in that, The security context of the user equipment includes: The first security context, or the second security context obtained based on the first security context.
12. The communication system according to claim 10 or 11, characterized in that, The first AMF is specifically used to send a User Equipment Context Transport Service Invocation Request to the second AMF, wherein the User Equipment Context Transport Service Invocation Request carries the second registration request message.
13. The communication system according to any one of claims 10 to 12, characterized in that, The second AMF is specifically used to send a first response message to the first AMF, the first response message carrying the security context of the user equipment.
14. The communication system according to any one of claims 10 to 13, characterized in that, The first AMF is also configured to continue using the mapped security context or initiate initial authentication to the user equipment when it receives a message that the second AMF has failed to verify the integrity of the second registration request message.
15. The communication system according to claim 14, characterized in that, The security context of the mapping is obtained based on the security context between the Mobility Management Entity (MME) and the User Equipment, wherein the MME is a network element in the 4G communication system.
16. The communication system according to any one of claims 10 to 15, characterized in that, The second AMF is specifically used to perform integrity verification on the second registration request message based on the first security context.
17. An apparatus for obtaining a security context, characterized in that, include: The processing unit is configured to determine a second registration request message, wherein the second registration request message has been integrity protected by a first security context, wherein the first security context is the local security context between the user equipment and the second access and mobility management function (AMF). The sending unit is configured to send a first registration request message to a first AMF, the first registration request message carrying a second registration request message, wherein the first AMF is the AMF that provides access and mobility management services to the user equipment after the user equipment switches from a 4G communication system to a 5G communication system.
18. The apparatus according to claim 17, characterized in that, The device also includes a receiving unit; The processing unit is configured to perform a full verification of the NAS SMC if the receiving unit receives a Non-Access Stratum Security Mode Command (NAS SMC) message sent by the first AMF. The sending unit is further configured to send a non-access stratum security mode completion message to the first AMF if the verification is successful.
19. A computer-readable storage medium, characterized in that, include: The computer-readable medium stores a computer program; when the computer program is run on a computer, it causes the computer to perform the method described in any one of claims 1-9.
20. A method for obtaining a security context, characterized in that, The method includes: The first access and mobility management function (AMF) receives a first registration request message sent by the user equipment (UE); The first AMF performs integrity protection verification on the first registration request message; If the first AMF successfully verifies the integrity protection of the first registration request message, then the first AMF sends a second request message to the second AMF. The second AMF receives the second request message; If the second request message carries indication information and the indication information is used to indicate that the UE is a legitimate UE, the second AMF sends the security context of the UE to the first AMF.
21. The method according to claim 20, characterized in that, The method further includes: The Mobility Management Element (MME) sends a forwarding reallocation request message to the first AMF, the forwarding reallocation request message including the security context between the UE and the MME; The first AMF determines the mapped security context based on the security context between the user equipment and the MME; The first AMF performs integrity protection verification on the first registration request message, including: The first AMF uses the mapped security context to perform integrity protection verification on the first registration request message.
22. The method according to claim 20 or 21, characterized in that, The first registration request message also includes the identifier of the user equipment, 5G-GUTI.
23. The method according to claim 22, characterized in that, The indication information is the 5G-GUTI.
24. The method according to any one of claims 20 to 22, characterized in that, The indication information is a cause value.
25. A system for obtaining a security context, characterized in that, The system includes a first access and mobility management function (AMF) and a second AMF; The first AMF is used to receive a first registration request message sent by the user equipment (UE); and to perform integrity protection verification on the first registration request message. If the integrity protection of the first registration request message is successfully verified, a second request message is sent to the second AMF. The second AMF is used to receive the second request message; If the second request message carries indication information and the indication information is used to indicate that the UE is a legitimate UE, then the security context of the UE is sent to the first AMF.
26. The system according to claim 25, characterized in that, The system also includes a mobility management network element (MME); The MME is used to send a forwarding reassignment request message to the first AMF, the forwarding reassignment request message including the security context between the UE and the MME; The first AMF is further configured to determine the security context of the mapping based on the security context between the user equipment and the MME; The step of performing integrity protection verification on the first registration request message includes: The security context of the mapping is used to perform integrity protection verification on the first registration request message.
27. The system according to claim 25 or 26, characterized in that, The first registration request message also includes the identifier of the user equipment, 5G-GUTI.
28. The system according to claim 27, characterized in that, The indication information is the 5G-GUTI.
29. The system according to any one of claims 25 to 27, characterized in that, The indication information is a cause value.
30. A method for obtaining a security context, characterized in that, The method includes: The first access and mobility management function (AMF) receives a first registration request message sent by the user equipment (UE); The first AMF performs integrity protection verification on the first registration request message; If the first AMF successfully verifies the integrity protection of the first registration request message, the first AMF sends a second request message to the second AMF; the second request message carries indication information and the indication information is used to indicate that the UE is a legitimate UE.
31. The method according to claim 30, characterized in that, The method further includes: The first AMF receives a forwarding reallocation request message sent by the mobility management network element MME, the forwarding reallocation request message including the security context between the user equipment and the MME; The first AMF determines the mapped security context based on the security context between the UE and the MME; The first AMF performs integrity protection verification on the first registration request message, including: The first AMF uses the mapped security context to perform integrity protection verification on the first registration request message.
32. The method according to claim 30 or 31, characterized in that, The first registration request message also includes the identifier of the user equipment, 5G-GUTI.
33. The method according to claim 32, characterized in that, The indication information is the 5G-GUTI.
34. The method according to any one of claims 30 to 32, characterized in that, The indication information is a cause value.
35. A method for obtaining a security context, characterized in that, The method includes: The second access and mobility management function (AMF) receives a request message sent by the first AMF; If the request message carries indication information and the indication information is used to indicate that the user equipment (UE) is a legitimate UE, the second AMF sends the security context of the UE to the first AMF.
36. The method according to claim 35, characterized in that, Before the second AMF sends the security context of the UE to the first AMF, the method further includes: The second AMF skips the authentication of the UE.
37. The method according to claim 35 or 36, characterized in that, The indication information is the 5G-GUTI.
38. The method according to claim 35 or 36, characterized in that, The indication information is a cause value.
39. A communication device, characterized in that, The device includes a processor, a memory, and a transceiver; the memory stores instructions, and the processor is coupled to the transceiver; when an instruction stored in the memory is executed, the processor performs the following operations: Receive the first registration request message sent by the user equipment (UE); Perform integrity protection verification on the first registration request message; If the integrity protection of the first registration request message is successfully verified, a second request message is sent to the second AMF. The second request message carries indication information, which is used to indicate that the UE is a legitimate UE.
40. The communication device according to claim 39, characterized in that, The processor also performs the following operations: The system receives a forwarding reallocation request message sent by a mobility management element (MME), the forwarding reallocation request message including the security context between the user equipment and the MME; The security context of the mapping is determined based on the security context between the UE and the MME; The step of performing integrity protection verification on the first registration request message includes: performing integrity protection verification on the first registration request message using the mapped security context.
41. The communication device according to claim 39 or 40, characterized in that, The first registration request message also includes the identifier of the user equipment, 5G-GUTI.
42. The communication device according to claim 41, characterized in that, The indication information is the 5G-GUTI.
43. The communication device according to any one of claims 39 to 41, characterized in that, The indication information is a cause value.
44. A communication device, characterized in that, The device includes a processor, a memory, and a transceiver; the memory stores instructions, and the processor is coupled to the transceiver; when an instruction stored in the memory is executed, the processor performs the following operations: Receive the request message sent by the first AMF; If the request message carries indication information and the indication information is used to indicate that the user equipment (UE) is a legitimate UE, the security context of the UE is sent to the first AMF.
45. The communication device according to claim 44, characterized in that, The processor also performs the following operations; Authentication of the UE is skipped.
46. The communication device according to claim 44 or 45, characterized in that, The indication information is the 5G-GUTI.
47. The communication device according to claim 44 or 45, characterized in that, The indication information is a cause value.
