Method and apparatus for registration

By protecting the authentication request message in the AMF redirection scenario of the 5G communication protocol, the problem of user equipment discarding the authentication request message causing registration failure is solved, and the registration success rate is improved.

CN112654046BActive Publication Date: 2024-08-27HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN201911089396.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-09-29
Filing Date
2019-11-08
Publication Date
2024-08-27
Estimated Expiration
2039-11-08

AI Technical Summary

Technical Problem

In the 5G communication protocol, during the AMF redirection process, the user equipment may discard the authentication request message, causing registration failure.

Method used

In the AMF redirection scenario, after receiving the instruction, the first AMF protects the authentication request message and sends the protected authentication request message to the user equipment, or skips the main authentication process and uses the received NAS security context to protect the N1 message. .

Benefits of technology

It improves the probability of successful registration of user equipment and avoids registration failures caused by discarding authentication request messages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112654046B_ABST
    Figure CN112654046B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a method and apparatus for registration, which is applied in a scenario where an access and mobility management function AMF redirection occurs, and the method includes: a first AMF selected to serve a UE during AMF redirection determines to protect a first message, and sends the protected first message to the UE, where the first message includes an authentication request message. This prevents the user equipment from discarding the authentication request message, and improves the probability of successful registration of the user equipment.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of the Chinese patent application filed with the China Patent Office on September 29, 2019, with application number 201910932460.0 and application name “Method and Device for Registration”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communications, and more particularly, to a method and device for registration. Background Art

[0003] The fifth generation (5G) communication protocol defines a process in which the access and mobility management function (AMF) redirection occurs during the registration process of the user equipment. In the registration process, the user equipment first sends a registration request message carrying the 5G globally unique temporary user equipment identity (5G-GUTI) or the subscriber concealed identifier (SUCI) of the user equipment to the (radio) access network (R)AN. Secondly, after receiving the registration request message of the user equipment, the (R)AN chooses to send the registration request message to the initial AMF (initial AMF). The initial AMF finds the second AMF (old AMF) that served the user equipment last time according to the 5G-GUTI, and obtains the context of the user equipment from the second AMF, and the context of the user equipment includes the NAS security context of the user equipment. Finally, the initial AMF initiates AMF redirection based on certain trigger conditions and redirects to the first AMF. The first AMF (target AMF) can obtain the context of the user equipment from the initial AMF.

[0004] In an AMF redirection process specified in the current protocol, the initial AMF can forward the complete registration request message directly to the first AMF. In this case, if the first AMF sends an authentication request message to the user equipment, the user equipment may discard the authentication request message, resulting in registration failure of the user equipment. Summary of the invention

[0005] The present application provides a method and apparatus for registration. The method for registration is applied in a scenario where AMF redirection occurs. When a first AMF receives first indication information indicating protection of an authentication request message from an initial AMF, a protected authentication request message is sent to a user device, thereby preventing the user device from discarding the authentication request message and improving the probability of successful registration of the user device.

[0006] In a first aspect, a method for registration is provided, comprising: a first access and mobility management function AMF receives first indication information from an initial AMF; the first AMF protects a first message according to the first indication information; the first AMF sends the protected first message to a user equipment UE, wherein the first AMF is a target AMF selected to serve the UE when the AMF redirects, and the first message is one of the following messages: an authentication request message, an N1 message, or an N1 message other than an access layer security mode command message NAS SMC. Or,

[0007] The first access and mobility management function AMF receives the first indication information from the initial AMF; the first AMF does not perform the main authentication according to the first indication information, or skips the main authentication process to perform other processes in the registration process, or uses the received K AMF The first AMF uses the received NAS security context or K AMF Protecting N1 messages

[0008] The registration method provided in the embodiment of the present application can send a first indication message to the first AMF through the initial AMF, so that the first AMF sends a protected authentication request message to the UE, thereby avoiding the user equipment from discarding the authentication request message and improving the success rate of user equipment registration. Alternatively, the registration method provided in the embodiment of the present application can send a first indication message to the first AMF through the initial AMF to indicate that the first AMF does not perform the main authentication process, so that the first AMF sends a protected N1 message to the UE.

[0009] The "protected first message" involved in the embodiments of the present application includes a first message with integrity protection, or a first message with integrity and encryption protection, wherein, when the first message is a NAS SMC message, the protected first message is the first message with integrity protection, and when the first message is an N1 message other than a NAS SMC message, the protected first message is the first message with integrity and encryption protection, which are referred to as the protected first message hereinafter for the sake of convenience of description.

[0010] In combination with the first aspect, in certain implementations of the first aspect, the first AMF receiving the first indication information from the initial AMF includes: the first AMF receiving a first service operation from the initial AMF, and the first service operation includes the first indication information.

[0011] In the registration method provided in the embodiment of the present application, the initial AMF sends the first indication information to the first AMF by sending a first service operation to the first AMF, and carrying the first indication information in the first service operation. As a possible implementation, the first service operation is a Namf_Communication_N1MessageNotify service operation.

[0012] It should be understood that the present application does not limit the first indication information to be carried in the first service operation, and provides a flexible and optional solution for the initial AMF to send the first indication information to the first AMF.

[0013] When the above-mentioned first indication information is carried in the signaling of the existing initial AMF and the first AMF, the signaling overhead can be saved from the perspective of signaling overhead.

[0014] In combination with the first aspect, in certain implementations of the first aspect, the first service operation also includes a non-access layer NAS security context; the first AMF protecting the first message includes: the first AMF uses the NAS security context to protect the first message.

[0015] In the method for registration provided in an embodiment of the present application, the first service operation sent by the initial AMF to the first AMF may also include a NAS security context, so that the first AMF can use the received NAS security context to protect the first message, providing a feasible solution for the first AMF to protect the first message.

[0016] In combination with the first aspect, in some implementations of the first aspect, the first indication information is used to indicate at least one of the following situations: a secure interaction of NAS messages is performed between the UE and the initial AMF, the first AMF should use the received NAS security context to protect the first message, a security context is established between the UE and the initial AMF, a security association is established between the UE and the initial AMF, security protection is activated between the UE and the initial AMF, a NAS SMC is successfully performed between the UE and the initial AMF, and the first AMF should use the received K AMF , the first AMF does not perform the main authentication process, the first AMF skips the main authentication process and performs other processes in the registration, or the first AMF should use the received K AMF .

[0017] In the registration method provided in the embodiment of the present application, the first indication information indicates that the first AMF protects the first message, which can be used to indicate that a secure interaction of NAS messages is performed between the UE and the initial AMF, and / or the first message can be used by the first AMF to protect the first message using the received NAS security context, providing a flexible and optional solution for the specific indication form of the first indication information. Or,

[0018] The first indication information may also indicate to the first AMF not to perform primary authentication in different ways.

[0019] In a second aspect, a method for registration is provided, including: an initial access and mobility management function AMF determines to send a first indication message to a first AMF, the first indication message is used to instruct the first AMF to protect a first message; the initial AMF sends the first indication message to the first AMF, wherein the first AMF is the target AMF selected to serve the UE when the AMF redirects, and the first message is one of the following messages: an authentication request message, an N1 message, or an N1 message other than an access layer security mode command message NAS SMC. Or,

[0020] The initial access and mobility management function AMF determines to send a first indication message to the first AMF, where the first indication message is used to instruct the first AMF not to perform the main authentication, or to skip the main authentication process to perform other processes in the registration process, or to use the received K AMF The initial AMF sends the first indication information to the first AMF, wherein the first AMF is the target AMF selected to serve the UE when the AMF redirection is performed.

[0021] In the registration method provided in the embodiment of the present application, the initial AMF can send a first indication message to the first AMF, so that the first AMF sends a protected authentication request message to the UE, thereby preventing the user equipment from discarding the authentication request message and improving the success rate of user equipment registration. Or,

[0022] The initial AMF can send a first indication message to the first AMF so that the first AMF does not perform the main authentication process, providing a visible solution for the first AMF not to perform the main authentication.

[0023] In combination with the second aspect, in some implementations of the second aspect, the initial AMF determines to send the first indication information to the first AMF, including: the initial AMF determines to send the first indication information to the first AMF based on a first preset condition, wherein the first preset condition includes at least one of the following conditions: a secure interaction of NAS messages is performed between the UE and the initial AMF, a security context is established between the UE and the initial AMF, NASSMC is successfully performed between the UE and the initial AMF, a security association is activated between the UE and the initial AMF, security protection is activated between the UE and the initial AMF, a primary authentication is performed between the UE and the initial AMF, the initial AMF selects a security algorithm different from the security algorithm selected by the second AMF, and the initial AMF uses a security algorithm received from the second AMF by a horizontal K AMF K produced after deduction AMF ; The second AMF is the AMF that last served the UE.

[0024] In the method for registration provided in the embodiment of the present application, the initial AMF determines that the first indication information is sent to the first AMF. The initial AMF determines that a certain first preset condition is met before deciding to send the first indication information to an AMF, thereby providing a feasible solution for how the initial AMF determines to send the first indication information.

[0025] In combination with the second aspect, in certain implementations of the second aspect, the initial AMF sending the first indication information to the first AMF includes: the initial AMF sending a first service operation to the first AMF, and the first service operation includes the first indication information.

[0026] In the registration method provided in the embodiment of the present application, the initial AMF sends the first indication information to the first AMF by sending a first service operation to the first AMF, and carrying the first indication information in the first service operation. A flexible and optional solution is provided for the initial AMF to send the first indication information to the first AMF. As a possible implementation method, the first service operation is the Namf_Communication_N1MessageNotify service operation.

[0027] In combination with the second aspect, in some implementations of the second aspect, the first service operation also includes a NAS security context.

[0028] In the method for registration provided in an embodiment of the present application, the first service operation sent by the initial AMF to the first AMF may also include a NAS security context, so that the first AMF can use the received NAS security context to protect the first message, providing a feasible solution for the first AMF to protect the first message.

[0029] In combination with the second aspect, in some implementations of the second aspect, the first indication information is used to indicate at least one of the following situations: a secure interaction of NAS messages is performed between the UE and the initial AMF, the first AMF should use the NAS security context to protect the first message, a security context is established between the UE and the initial AMF, a security association is established between the UE and the initial AMF, security protection is activated between the UE and the initial AMF, a NAS SMC is successfully performed between the UE and the initial AMF, and the first AMF should use the received K AMF , the first AMF does not perform the main authentication process, the first AMF skips the main authentication process and performs other processes in the registration, or the first AMF should use the received K AMF .

[0030] In the registration method provided in the embodiment of the present application, the first indication information indicates that the first AMF protects the first message by indicating that a secure interaction of NAS messages is performed between the UE and the initial AMF and / or the first AMF uses the received NAS security context to protect the first message, providing a flexible and optional solution for the specific indication form of the first indication information. Or,

[0031] The first indication information may also indicate to the first AMF not to perform primary authentication in different ways.

[0032] According to a third aspect, a method for registration is provided, comprising: a user equipment UE accepts a first protected message from a first AMF, wherein the first AMF is a target AMF selected to serve the UE when the AMF is redirected, and the first message is one of the following messages: an authentication request message, an N1 message, or an N1 message other than an access layer security mode command message NASSMC.

[0033] In the registration method provided in the embodiment of the present application, the UE receives a protected authentication request message, thereby preventing the user equipment from discarding the authentication request message and improving the success rate of user equipment registration.

[0034] In a fourth aspect, a method for registration is provided, including: a user equipment UE receives second indication information from an initial access and mobility management function AMF, the second indication information being used to instruct the UE to accept an unprotected first message; the UE accepts the unprotected first message from a first AMF according to the second indication information, wherein the first AMF is a target AMF selected to serve the UE when performing the AMF redirection, and the first message is one of the following messages: an authentication request message, an N1 message, or an N1 message other than an access layer security mode command message NAS SMC.

[0035] The method for registration provided in an embodiment of the present application can send a second indication message to the UE through the initial AMF, so that the UE accepts an unprotected authentication request message, thereby avoiding the user equipment from discarding the authentication request message and improving the success rate of user equipment registration.

[0036] In a fifth aspect, a method for registration is provided, including: the initial access and mobility management function AMF determines to send a second indication information to the user equipment UE based on a second preset condition, the second indication information is used to indicate that the UE accepts an unprotected first message, and the first message is one of the following messages: an authentication request message, an N1 message, or an N1 message other than an access layer security mode command message NAS SMC; the initial AMF sends the second indication information to the UE.

[0037] The method for registration provided in an embodiment of the present application can send a second indication message to the UE through the initial AMF, so that the UE accepts an unprotected authentication request message, thereby avoiding the user equipment from discarding the authentication request message and improving the success rate of user equipment registration.

[0038] In combination with the fifth aspect, in certain implementations of the fifth aspect, the initial AMF determines to send a second indication information to the UE based on a second preset condition, wherein the preset condition includes at least one of the following conditions: a secure interaction of NAS messages between the initial AMF and the UE, the initial AMF determines to perform AMF redirection, a security context is established between the UE and the initial AMF, a NAS SMC is successfully performed between the UE and the initial AMF, a security association is activated between the UE and the initial AMF, security protection is activated between the UE and the initial AMF, a primary authentication is performed between the UE and the initial AMF, the initial AMF selects a security algorithm different from the security algorithm selected by the second AMF, and the initial AMF uses a security algorithm received from the second AMF by a horizontal K AMF K produced after deduction AMF ; The second AMF is the AMF that last served the UE.

[0039] In a sixth aspect, a method for registration is provided, including: a first access and mobility management function AMF receives a first service operation sent by an initial AMF; the first AMF protects a first message; the first AMF sends the protected first message to a user equipment UE, wherein the first AMF is a target AMF selected to serve the UE when the AMF is redirected, and the first message is one of the following messages: an authentication request message, an N1 message, or an N1 message other than an access layer security mode command message NAS SMC. Or,

[0040] The first access and mobility management function AMF receives the first service operation sent by the initial AMF; the first AMF skips the main authentication process; the first AMF sends a protected N1 message to the user equipment UE, wherein the first AMF is the target AMF selected to serve the UE when the AMF is redirected.

[0041] The method for registration provided in the embodiment of the present application can send a protected authentication request message to the UE after the first AMF determines that an AMF redirection has occurred, thereby avoiding the user equipment from discarding the authentication request message and improving the success rate of user equipment registration. Alternatively, the method for registration provided in the embodiment of the present application can send a first service operation to the first AMF through the initial AMF to indicate that the first AMF does not perform the main authentication process. Then, after determining that an AMF redirection has occurred, the first AMF can skip the main authentication process and perform other processes in the registration, or the first AMF can not perform the main authentication after determining that an AMF redirection has occurred, and the first AMF uses the received NAS security context to protect the N1 message.

[0042] In combination with the sixth aspect, in certain implementations of the sixth aspect, after the first AMF receives the first service operation sent by the initial AMF, the method for registration also includes: the first AMF determines that AMF redirection occurs based on the above-mentioned first service operation.

[0043] In the registration method provided in the embodiment of the present application, the first AMF can determine whether AMF redirection has occurred based on the IE(s) carried in the first service operation. For example, if the message type carrying N1 in the first service operation includes 5GMM, it is determined that AMF redirection has occurred; for another example, if the first service operation carries a registration context container (registrationContext Container) type IE, it is determined that AMF redirection has occurred.

[0044] In combination with the sixth aspect, in certain implementations of the sixth aspect, the first AMF protecting the first message includes: the first AMF using the received NAS security context to protect the first message.

[0045] As a possible implementation manner, the received NAS security context is the NAS security context carried in the first operation service sent by the initial AMF received by the first AMF.

[0046] In the registration method provided in the embodiment of the present application, the first AMF can use the received NAS security context to protect the first message, providing a feasible solution for the first AMF to protect the first message.

[0047] In a seventh aspect, a method for registration is provided, comprising: a user equipment UE accepts a first protected message from a first AMF, wherein the first AMF is a target AMF selected to serve the UE when the AMF is redirected, and the first message is one of the following messages: an authentication request message, an N1 message, or an N1 message other than an access layer security mode command message NASSMC.

[0048] In the registration method provided in the embodiment of the present application, the UE receives a protected authentication request message, thereby preventing the user equipment from discarding the authentication request message and improving the success rate of user equipment registration.

[0049] In an eighth aspect, a device for registration is provided, wherein the device for registration includes a processor for implementing the function of the first AMF in the method described in the first and seventh aspects above.

[0050] Optionally, the device for registration may further include a memory, the memory is coupled to the processor, and the processor is used to implement the function of the first AMF in the method described in the first aspect and the seventh aspect. In a possible implementation, the memory is used to store program instructions and data. The memory is coupled to the processor, and the processor can call and execute the program instructions stored in the memory to implement the function of the first AMF in the method described in the first aspect and the seventh aspect.

[0051] Optionally, the apparatus for registering may further include a communication interface, wherein the communication interface is used for the apparatus for registering to communicate with other devices. When the apparatus for registering is a user equipment, the communication interface may be a transceiver, an input / output interface, or a circuit.

[0052] In one possible design, the apparatus for registering includes: a processor and a communication interface,

[0053] The processor is used to run a computer program so that the apparatus for registration implements any one of the methods described in the first aspect and the seventh aspect above;

[0054] The processor communicates with the outside by using the communication interface.

[0055] It can be understood that the external part may be an object other than the processor, or an object other than the device.

[0056] In another possible design, the device for registration is a chip or a chip system. The communication interface may be an input / output interface, an interface circuit, an output circuit, an input circuit, a pin or a related circuit on the chip or the chip system. The processor may also be embodied as a processing circuit or a logic circuit.

[0057] In a ninth aspect, a device for registration is provided, wherein the device for registration includes a processor for implementing the function of the initial AMF in the method described in the second and fifth aspects above.

[0058] Optionally, the device for registering may further include a memory, the memory is coupled to the processor, and the processor is used to implement the function of the initial AMF in the method described in the second aspect and the fifth aspect. In a possible implementation, the memory is used to store program instructions and data. The memory is coupled to the processor, and the processor can call and execute the program instructions stored in the memory to implement the function of the initial AMF in the method described in the second aspect and the fifth aspect.

[0059] Optionally, the apparatus for registering may further include a communication interface, wherein the communication interface is used for the apparatus for registering to communicate with other devices. When the apparatus for registering is an initial AMF, the communication interface may be a transceiver, an input / output interface, or a circuit.

[0060] In one possible design, the apparatus for registering includes: a processor and a communication interface,

[0061] The processor communicates with the outside world using the communication interface;

[0062] The processor is used to run a computer program so that the apparatus for registration implements any one of the methods described in the second aspect and the fifth aspect.

[0063] It can be understood that the external part may be an object other than the processor, or an object other than the device.

[0064] In another possible design, the device for registration is a chip or a chip system. The communication interface may be an input / output interface, an interface circuit, an output circuit, an input circuit, a pin or a related circuit on the chip or the chip system. The processor may also be embodied as a processing circuit or a logic circuit.

[0065] In a tenth aspect, a device for registration is provided, wherein the device for registration includes a processor for implementing the functions of the user equipment in the methods described in the third aspect, the fourth aspect and the eighth aspect above.

[0066] Optionally, the apparatus for registering may further include a memory, the memory is coupled to the processor, and the processor is used to implement the functions of the user equipment in the methods described in the third aspect, the fourth aspect, and the eighth aspect. In a possible implementation, the memory is used to store program instructions and data. The memory is coupled to the processor, and the processor can call and execute program instructions stored in the memory to implement the functions of the user equipment in the methods described in the third aspect, the fourth aspect, and the eighth aspect.

[0067] Optionally, the apparatus for registering may further include a communication interface, wherein the communication interface is used for the apparatus for registering to communicate with other devices. When the apparatus for registering is a user equipment, the communication interface may be a transceiver, an input / output interface, or a circuit.

[0068] In one possible design, the apparatus for registering includes: a processor and a communication interface,

[0069] The processor communicates with the outside world using the communication interface;

[0070] The processor is used to run a computer program so that the apparatus for registration implements any one of the methods described in the third aspect, the fourth aspect and the eighth aspect.

[0071] It can be understood that the external part may be an object other than the processor, or an object other than the device.

[0072] In another possible design, the device for registration is a chip or a chip system. The communication interface may be an input / output interface, an interface circuit, an output circuit, an input circuit, a pin or a related circuit on the chip or the chip system. The processor may also be embodied as a processing circuit or a logic circuit.

[0073] In an eleventh aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the computer-readable storage medium is run on a computer, the computer executes the methods described in the above aspects.

[0074] In a twelfth aspect, the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the methods described in the above aspects.

[0075] In a thirteenth aspect, a communication system is provided, comprising the apparatus for registration shown in the eighth aspect, the apparatus for registration shown in the ninth aspect, and the apparatus for registration shown in the tenth aspect.

[0076] In the fourteenth aspect, a chip system is provided, comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a communication device equipped with the chip system executes a method in any possible implementation of the first to seventh aspects above. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] Figure 1 It is a network architecture suitable for the embodiments of the present application.

[0078] Figure 2 A schematic diagram of a registration process with AMF redirection.

[0079] Figure 3 It is a schematic flow chart of a method for registration provided in an embodiment of the present application.

[0080] Figure 4 It is a schematic flow chart of another method for registration provided in an embodiment of the present application.

[0081] Figure 5 is a schematic diagram of a device 10 for registration proposed in the present application.

[0082] Figure 6 It is a structural diagram of a user equipment 20 applicable to an embodiment of the present application.

[0083] Figure 7 is a schematic diagram of a device 30 for registration proposed in the present application.

[0084] Figure 8 4 is a schematic diagram of the structure of the initial AMF 40 applicable to the embodiment of the present application.

[0085] Fig. 9 is a schematic diagram of a device 50 for registration proposed in the present application.

[0086] Fig.10 Schematic diagram of the structure of the first AMF 60 applicable to the embodiment of the present application.

[0087] Fig.11 It is a schematic flow chart of another method for registration provided in an embodiment of the present application. DETAILED DESCRIPTION

[0088] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0089] Figure 1 This is a network architecture suitable for the embodiments of the present application. Figure 1 As shown, each part involved in the network architecture is described below.

[0090] 1. User equipment 110: may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, as well as various forms of terminals, mobile stations (MS), terminals, user equipment (UE), soft terminals, etc. For example, water meters, electric meters, sensors, etc.

[0091] Exemplarily, the user equipment in the embodiments of the present application may refer to an access terminal, a user unit, a user station, a mobile station, a mobile station, a relay station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal equipment, a wireless communication device, a user agent or a user device. The user equipment may also be a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a user equipment in a future 5G network or a user equipment in a future evolved public land mobile network (PLMN) or a user equipment in a future Internet of Vehicles, etc., and the embodiments of the present application are not limited to this.

[0092] As an example and not a limitation, in the embodiments of the present application, wearable devices may also be referred to as wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed by applying wearable technology to daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and independent of smartphones to achieve complete or partial functions, such as smart watches or smart glasses, as well as devices that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various types of smart bracelets and smart jewelry for vital sign monitoring.

[0093] In addition, in the embodiment of the present application, the user device may also be a user device in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network of human-machine interconnection and object-to-object interconnection. In the embodiment of the present application, IOT technology can achieve massive connections, deep coverage, and terminal power saving through narrowband (NB) technology, for example. In addition, in the embodiment of the present application, the user device may also include sensors such as smart printers, train detectors, and gas stations. The main functions include collecting data (part of the user device), receiving control information and downlink data of the access network device, and sending electromagnetic waves to transmit uplink data to the access network device.

[0094] 2. (Radio) access network (R)AN) 120: used to provide network access for authorized user devices in a specific area, and can use transmission tunnels of different qualities according to the level of user devices, business requirements, etc.

[0095] (R)AN can manage wireless 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 can also be understood as a base station in a traditional network.

[0096] Exemplarily, the access network device in the embodiment of the present application may be any communication device with wireless transceiver function for communicating with user equipment. The access network equipment includes but is not limited to: evolved NodeB (eNB), radio network controller (RNC), Node B (NB), base station controller (BSC), base transceiver station (BTS), home evolved NodeB (HeNB, or home Node B, HNB), baseband unit (BBU), access point (AP) in wireless fidelity (WIFI) system, wireless relay node, wireless backhaul node, transmission point (TP) or transmission and reception point (TRP), etc., and can also be a gNB in ​​5G, such as NR, system, or a transmission point (TRP or TP), one or a group of (including multiple antenna panels) antenna panels of a base station in a 5G system, or it can also be a network node constituting a gNB or a transmission point, such as a baseband unit (BBU), or a distributed unit (DU), etc.

[0097] In some deployments, the gNB may include a centralized unit (CU) and a DU. The gNB may also include an active antenna unit (AAU). The CU implements some functions of the gNB, and the DU implements some functions of the gNB. For example, the CU is responsible for processing non-real-time protocols and services, and implementing the functions of the radio resource control (RRC) and packet data convergence protocol (PDCP) layers. The DU is responsible for processing physical layer protocols and real-time services, and implementing the functions of the radio link control (RLC) layer, the media access control (MAC) layer, and the physical (PHY) layer. The AAU implements some physical layer processing functions, radio frequency processing, and related functions of active antennas. Since the information of the RRC layer will eventually become the information of the PHY layer, or be converted from the information of the PHY layer, under this architecture, high-level signaling, such as RRC layer signaling, can also be considered to be sent by the DU, or by the DU+AAU. It can be understood that the access network device can be a device including one or more of a CU node, a DU node, and an AAU node. In addition, the CU may be classified as an access network device in a radio access network (RAN), or may be classified as an access network device in a core network (CN), which is not limited in the present application.

[0098] 3. User plane network element 130: used for packet routing and forwarding and quality of service (QoS) processing of user plane data.

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

[0100] 4. Data network element 140: used to provide a network for transmitting data.

[0101] In a 5G communication system, the data network element may be a data network (DN) element. In future communication systems, the data network element may still be a DN element, or may have other names, which are not limited in this application.

[0102] 5. Access management network element 150: mainly used for mobility management and access management, etc., and can be used to implement other functions of the mobility management entity (MME) except session management, such as lawful interception and access authorization / authentication.

[0103] In the 5G communication system, the access management network element may be an access management function (AMF). In future communication systems, the access management network element may still be AMF, or may have other names, which are not limited in this application.

[0104] 6. Session management network element 160: mainly used for session management, allocation and management of Internet protocol (IP) addresses of user equipment, selection of endpoints of manageable user plane functions, policy control and charging function interfaces, and downlink data notification.

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

[0106] 7. Policy control network element 170: A unified policy framework used to guide network behavior and provide policy rule information to control plane functional network elements (such as AMF, SMF network elements, etc.).

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

[0108] 8. Authentication server 180: used for authentication services, generating keys to implement two-way authentication of user devices, and supporting a unified authentication framework.

[0109] In a 5G communication system, the authentication server may be an authentication server function (AUSF) network element. In future communication systems, the authentication server function network element may still be an AUSF network element, or may have other names, which are not limited in this application.

[0110] 9. Data management network element 190: used to process user equipment identification, access authentication, registration and mobility management, etc.

[0111] In a 5G communication system, the data management network element may be a unified data management (UDM) network element; in a 4G communication system, the data management network element may be a home subscriber server (HSS) network element. In future communication systems, the unified data management may still be a UDM network element, or it may have other names, which are not limited in this application.

[0112] 10. Application network element 1100: used for data routing affected by applications, accessing network open function network elements, interacting with the policy framework for policy control, etc.

[0113] In a 5G communication system, the application network element may be an application function (AF) network element. In future communication systems, the application network element may still be an AF network element, or may have other names, which are not limited in this application.

[0114] 11. Network slice selection network element 1200: used to implement access mapping between user equipment and network slices, and provide appropriate network slice access for user equipment.

[0115] In a 5G communication system, the application network element may be a network slice selection function (NSSF) network element. In future communication systems, the application network element may still be an NSSF network element, or may have other names, which are not limited in this application.

[0116] It should also be understood that Figure 1 This is just an example and does not constitute any limitation on the protection scope of this application. Figure 1 For example, the method for registration provided in an embodiment of the present application also involves a network storage network element not shown in the figure, wherein the network storage network element is used to maintain real-time information of all network function services in the network.

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

[0118] It is understandable that the above network elements or functions can be network elements in hardware devices, software functions running on dedicated hardware, or virtualized functions instantiated on a platform (e.g., a cloud platform). For the convenience of explanation, this application will be described later by taking the access management network element 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.

[0119] Furthermore, the AMF network element is referred to as AMF, the UDM network element is referred to as UDM, the SMF network element is referred to as SMF, and the UPF network element is referred to as UPF. That is, the AMF described later in this application can be replaced by an access management network element, the UDM can be replaced by a data management network element, the SMF can be replaced by a session management network element, and the UPF can be replaced by a user plane network element.

[0120] For the convenience of explanation, in the embodiments of the present application, the method for registration is described by taking the device as an AMF entity and a UDM entity as an example. For the implementation method of the device being a chip in an AMF entity and a chip in a UDM entity, please refer to the specific description of the device being an AMF entity and a UDM entity, and no repetition will be given.

[0121] exist Figure 1 In the network architecture shown, the user equipment is connected to the AMF through the N1 interface, the RAN is connected to the AMF through the N2 interface, and the RAN is connected to the UPF through the N3 interface. The UPFs are connected through the N9 interface, and the UPFs are interconnected through the N6 interface DN. The SMF controls the UPF through the N4 interface. The AMF interfaces with the SMF through the N11 interface. The AMF obtains the user equipment subscription data from the UDM unit through the N8 interface, and the SMF obtains the user equipment subscription data from the UDM unit through the N10 interface.

[0122] It should be understood that the above-mentioned network architecture applied to the embodiment of the present application is only an example, and the network architecture applicable to the embodiment of the present application is not limited to this. Any network architecture that can realize the functions of the above-mentioned network elements is applicable to the embodiment of the present application.

[0123] For example, in some network architectures, network function network element entities such as AMF, SMF network elements, PCF network elements, BSF network elements and UDM network elements are all called network function (NF) network elements; or, in other network architectures, the collection of AMF, SMF network elements, PCF network elements, BSF network elements, UDM network elements and other network elements can be called control plane function network elements.

[0124] The technical solution of the embodiment of the present application can be applied to various communication systems, such as: 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, fifth generation (5G) system, new radio (NR) or future network, etc. The 5G mobile communication system described in the present application includes a non-first AMFndalone (NSA) 5G mobile communication system or an independent network (first AMFndalone, SA) 5G mobile communication system. The technical solution provided in the present application can also be applied to future communication systems, such as the sixth generation mobile communication system. The communication system may also be a public land mobile network (PLMN) network, a device-to-device (D2D) communication system, a machine-to-machine (M2M) communication system, an Internet of Things (IoT) communication system or other communication systems.

[0125] In an embodiment of the present application, a user device or access network device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory (also called main memory). The operating system can be any one or more computer operating systems that implement business processing through a process, such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a windows operating system. The application layer includes applications such as a browser, an address book, a word processing software, and an instant messaging software. In addition, the embodiment of the present application does not specifically limit the specific structure of the execution subject of the method provided in the embodiment of the present application, as long as it can communicate according to the method provided in the embodiment of the present application by running a program that records the code of the method provided in the embodiment of the present application, for example, the execution subject of the method provided in the embodiment of the present application can be a user device or an access network device, or a functional module in a user device or an access network device that can call and execute a program.

[0126] In addition, various aspects or features of the present application can be implemented as methods, devices or products using standard programming and / or engineering techniques. The term "product" used in this application covers computer programs that can be accessed 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 tapes, etc.), optical disks (e.g., compact discs (CDs), digital versatile discs (DVDs), etc.), smart cards and flash memory devices (e.g., erasable programmable read-only memory (EPROM), cards, sticks or key drives, etc.). In addition, 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.

[0127] The embodiments of this application mainly involve Figure 1 The AMF, UE, (R)AN, AUSF, UDM, and NSSF in the network architecture shown also involve Figure 1 NRF not shown in the figure. Among them, the AMF in this application involves the initial AMF (initial AMF), the second AMF (old AMF) and the first AMF (target AMF).

[0128] Specifically, the second AMF involved in this application refers to the AMF that served the UE last, that is, the AMF that provided services to the UE before the current registration time, and can also be called the AMF last visited by the UE; the initial AMF involved in this application refers to the AMF selected by the (R)AN when the current UE initiates a registration request; the first AMF involved in this application refers to another AMF other than the initial AMF selected to provide services to the UE after the initial AMF decides to perform AMF redirection.

[0129] The AUSF involved in this application is mainly used for primary authentication; the UDM involved in this application is mainly used to provide subscription information of the user equipment, which subscription information includes the network slice selection subscription data of the user equipment; the NSSF involved in this application is mainly used to provide an AMF set or an address list of AMFs that can serve the requested network slice selection assistance information (NSSAI) of the user equipment; the NRF involved in this application is mainly used to provide the address of the first AMF.

[0130] For ease of description, in an embodiment of the present application, the AMF key included in the NAS security context established between the UE and the second AMF is recorded as Kamf, which may also be referred to as the first key, or the old key; the identifier corresponding to the Kamf is recorded as ngKSI, which is also referred to as the first key identifier, or the old key identifier; the NAS security context may also be referred to as the old NAS security context.

[0131] After the initial AMF and UE perform primary authentication, the key generated by the primary authentication activated and used is recorded as Kamf_new and the key identifier is recorded as ngKSI_new. The Kamf_new may also be called the second key, and the ngKSI_new may also be called the second key identifier;

[0132] The key generated after the key derivation of Kamf_new is recorded as Kamf_new′, and the Kamf_new′ can also be called the third key. Specifically, the key generated after the key derivation is consistent with the key identifier corresponding to the deduced key, then the key identifier corresponding to Kamf_new′ is also ngKSI_new, which is called the second key identifier;

[0133] The key generated after the key derivation of Kamf is recorded as Kamf′, which can also be called the fourth key. Specifically, if the key generated after the key derivation is consistent with the key identifier corresponding to the deduced key, the key identifier corresponding to Kamf′ is also ngKSI;

[0134] The key generated after the key derivation of Kamf′ is recorded as Kamf″, and the Kamf″ can also be called the fifth key. Specifically, the key generated after the key derivation is consistent with the key identifier corresponding to the deduced key, then the key identifier corresponding to the Kamf″ is also ngKSI;

[0135] The key generated after the key derivation of Kamf″ is recorded as Kamf″′, and the Kamf″′ can also be called the sixth key. Specifically, the key generated after the key derivation is consistent with the key identifier corresponding to the deduced key, then the key identifier corresponding to the Kamf″′ is also ngKSI;

[0136] The key generated after key deduction of Kamf_new′ is recorded as Kamf_new″, and the Kamf_new″ can also be called the seventh key. Specifically, the key generated after key deduction is consistent with the key identifier corresponding to the deduced key, then the key identifier corresponding to Kamf_new″ is also ngKSI_new.

[0137] It should be understood that the embodiments of the present application involve no restrictions on the deduction mechanism and parameters used for key deduction to generate a new key. The only restriction is that the new key generated by key deduction cannot be used to derive the deduced key; alternatively, it can be said that the new key and the deduced key are isolated.

[0138] As a possible implementation, the key derivation described in this application may be a horizontal key derivation defined in an existing protocol;

[0139] As another possible implementation method, the key derivation described in the present application may be a key derivation method agreed upon between different network elements.

[0140] It should be understood that the embodiments of the present application do not involve changes in the network element structure, but only achieve the purpose required in the registration process for AMF redirection provided in the embodiments of the present application by adding other signaling between network elements and / or adding information elements (IE) in the interactive signaling between existing network elements.

[0141] First, in order to facilitate understanding of the method in the registration process for AMF redirection provided in the embodiment of the present application, the following is combined with Figure 2This section briefly introduces the scenarios in which registration failure may occur during the registration process when AMF redirection occurs, as defined in the existing protocol. Figure 2 The diagram is a diagram of a registration process in which AMF redirection occurs. The execution entities include UE, initial AMF, second AMF, first AMF, UDM, NSSF and NRF.

[0142] The AMF redirected registration process includes the following steps.

[0143] S1, the UE sends a registration request (RR) message to the initial AMF, and the RR message carries the 5G-GUTI or SUCI of the UE;

[0144] It should be understood that the UE sending the RR message to the initial AMF involved in the embodiment of the present application means that the UE sends the RR message to the (R)AN, and the (R)AN then sends the RR message to the initial AMF. Since the (R)AN plays a role of transparent transmission in this step, for the sake of simplicity of description, it is directly described in the embodiments of the present application and the accompanying drawings that the UE sends the RR message to the initial AMF.

[0145] In one possible implementation, if the UE does not have a non-access stratum (NAS) security context, the UE shall include a plaintext IE(s) in the RR message, and the plaintext IE(s) shall not include the UE's requested NSSAI.

[0146] In another possible implementation, if the UE has a NAS security context, the UE shall include the plaintext IE(s) and NAS container in the RR message. The NAS container includes the complete RR message, and the complete RR message includes the UE's requested NSSAI.

[0147] Optionally, if the RR message received by the initial AMF carries the UE's 5G-GUTI, the initial AMF requests the UE context from the second AMF. Figure 2The registration process shown also includes S2: the initial AMF calls the sixth service operation of the second AMF. Specifically, after the initial AMF receives the RR message sent by the UE, the initial AMF determines the second AMF that last provided services to the UE according to the 5G-GUTI in the RR message, and calls the sixth service operation to the second AMF, which can be called Namf_Communication_UEContextTransfer, for requesting to obtain the UE context from the second AMF; wherein the UE context includes the UE's NAS security context, and the UE's NAS security context includes the AMF key established between the UE and the second AMF and the identifier corresponding to the AMF key.

[0148] S3. The second AMF sends a sixth service operation response to the initial AMF, where the sixth service operation response includes the context of the UE.

[0149] Specifically, the second AMF sends a sixth service operation response to the initial AMF after successfully authenticating the UE. The second AMF authentication of the UE refers to the integrity protection of the RR message by verification. The sixth service operation response can be called Namf_Communication_UEContextTransfer Response. Specifically, the sixth service operation response includes Kamf or Kamf′, and the key identifier ngKSI corresponding to Kamf or Kamf′.

[0150] It should be understood that the integrity protection of verifying a message involved in the embodiments of the present application includes: the message recipient uses an agreed algorithm (and key) to calculate a message verification code for the received message, and then compares it with the received message verification code.

[0151] The UE context included in the sixth service operation response includes the following security-related context:

[0152] 1) The sixth service operation response includes Kamf and ngKSI.

[0153] Specifically, when Kamf is included in the sixth service operation response, it means that the second AMF directly carries the AMF key used between the UE and the second AMF in the sixth service operation response to notify the initial AMF.

[0154] The key identifier corresponding to the above Kamf is recorded as ngKSI. The key and the key identifier can be collectively referred to as key information. The sixth service operation response message can also carry the ngKSI.

[0155] 2) The sixth service operation response includes Kamf′ and ngKSI.

[0156] When Kamf′ is included in the sixth service operation response, it means that the second AMF performs horizontal K according to the key Kamf used by the UE and the second AMF. AMF It should be understood that the embodiment of the present application does not limit how the second AMF obtains the above Kamf′, which can be the level K specified in the existing protocol. AMF The deduction method, or the above-mentioned Kamf′ can also be obtained through other agreed deduction algorithms and parameters, which will not be described in detail in this application.

[0157] The key identifier corresponding to the above Kamf′ is recorded as ngKSI. The sixth service operation response message may also carry the ngKSI.

[0158] Specifically, in this case, the sixth service operation response also includes a key derivation indication, which is used to indicate that the key Kamf′ included in the sixth service operation response is deduced via the second AMF. The key derivation indication can be called keyAMFHDerivationInd.

[0159] 3) When the context of the UE locally stored by the second AMF includes an uplink NAS COUNT value and / or a downlink NAS COUNT value, the sixth service operation response may also include the uplink NAS COUNT value and / or the downlink NAS COUNT value.

[0160] 4) When the second AMF locally stores the security and / or encryption algorithm used by the UE and the second AMF, the sixth service operation response may also include the security and / or encryption algorithm.

[0161] 5) When the second AMF locally stores the UE security capabilities, the sixth service operation response may also include the UE security capabilities. The UE security capabilities include the security and / or encryption algorithms implemented on the UE.

[0162] Optionally, if the RR message received by the initial AMF carries the SUCI of the UE, the initial AMF initiates a primary authentication process, and / or,

[0163] If the RR message received by the initial AMF carries the UE's 5G-GUTI, but the initial AMF fails to obtain the context on the UE from the second AMF, the primary authentication process is initially initiated, and / or,

[0164] If the RR message received by the initial AMF carries the UE's 5G-GUTI, and the initial AMF successfully obtains the UE's context from the second AMF, but the initial AMF decides to initiate the main authentication process based on local policy. Figure 2 The registration process shown also includes S4: the initial AMF initiates the main authentication process, and both the UE and the initial AMF obtain Kamf_new and its corresponding identifier ngKSI_new.

[0165] Specifically, when the initial AMF initiates the main authentication process, in order to enable the AMF key on the UE side to start using Kamf_new generated by the main authentication, the initial AMF initiates a non-access stratum security mode command message (non-access stratum security mode command, NAS SMC), and / or,

[0166] If the second AMF performs key derivation, the sixth service operation response includes keyAMFHDerivationInd, Kamf′ and ngKSI, and the initial AMF needs to initiate the above NAS SMC process, and / or,

[0167] If the second AMF does not perform key derivation, the above-mentioned sixth service operation response includes Kamf, or Kamf and ngKSI, the initial AMF decides to use Kamf and ngKSI, but the initial AMF selects a new security algorithm, and the initial AMF needs to initiate the above-mentioned NAS SMC process.

[0168] Right now Figure 2 The registration process shown may also include S5: the initial AMF sends a non-access stratum security mode command (NAS SMC) message to the UE. Unless otherwise specified, the NAS SMC message below refers to the non-access stratum security mode command NAS SMC message, and special instructions are required when NAS SMC refers to the non-access stratum security mode control.

[0169] Optionally, the NAS SMC message carries an indication of requesting a complete initial NAS message. Since the present application mainly relates to the registration process of the UE, the indication of requesting a complete initial NAS message refers to an indication of requesting a complete registration request message. When no special explanation is given below, the indication of requesting a complete initial NAS message refers to an indication of requesting a complete registration request message.

[0170] S6, UE sends a NAS security mode complete (non-access stratum security mode complete, NAS SMP) message to the initial AMF.

[0171] Optionally, according to the indication of requesting a complete initial NAS message in the NAS SMC message, the UE carries a complete initial NAS message in the NAS security mode completion message. In the embodiment of the present application, the complete initial NAS message mainly refers to a complete registration request message.

[0172] The complete initial NAS message carries the requested NSSAI mentioned above.

[0173] Optionally, if the initial AMF needs the UE's subscription information to decide whether to perform AMF redirection, and the second AMF does not provide the UE's slice selection subscription information, then the initial AMF needs to obtain the UE's slice selection subscription information from the UDM, that is, Figure 2 The registration process shown also includes S7: the initial AMF calls the second service operation of UDM, which can be called Nudm_SDM_Get service operation, used to request the UE's slice selection subscription information from UDM.

[0174] S8, UDM sends a second service operation response to the initial AMF, and the second service operation response includes the slice selection subscription information of the UE.

[0175] Optionally, if the initial AMF needs to perform slice selection (for example, the initial AMF cannot serve part or all of the single network slice selection auxiliary information (single-NSSAI, S-NSSAI) in the requested NSSAI of the UE), then the initial AMF needs to obtain information about the AMF that can serve the requested NSSAI of the above-mentioned UE from the NSSF.

[0176] Right now Figure 2 The registration process shown may also include S9: the initial AMF calls the third service operation of the NSSF, which may be called the Nnssf_NSSelection_Get service, and is used to request information about the AMF that serves the requested NSSAI of the UE mentioned above from the NSSF.

[0177] S10, NSSF sends a third service operation response to the initial AMF, and the third service operation response includes the slice selection subscription information of the UE.

[0178] After the initial AMF determines that AMF redirection is required, the initial AMF decides to retransmit the RR message to the first AMF, i.e. Figure 2 The registration process shown also includes S11: the initial AMF calls the fourth service operation of the second AMF. The fourth service operation indicates that the UE's registration at the initial AMF fails.

[0179] Specifically, the fourth service operation can be called Namf_Communication_RegistrationStatusUpdate, and the registration status of the UE carried in the fourth service operation is "NOT_TRANSFERRED". After the second AMF receives the call of the second service operation of the initial AMF, it is as if it has never received the Namf_Communication_UEContextTransfer call sent by the initial AMF in the above S2.

[0180] Optionally, if the initial AMF decides to perform NAS reroute (direct NAS reroute or reroute NAS via RAN), and the initial AMF does not have the address of the first AMF, then the initial AMF needs to obtain the address of the first AMF from the NRF, that is, Figure 2 The registration process shown also includes S12: the initial AMF calls the fifth service operation of NRF, which can be called Nnrf_NFDiscovery_Request service operation, for obtaining the address of the first AMF.

[0181] S13, NRF sends a fifth service operation response to the initial AMF, and the fifth service operation response includes the address of the first AMF.

[0182] Optionally, if the initial AMF decides to forward the NAS message (ie, RR message) directly to the first AMF (ie, direct non-access layer rerouting, direct NAS reroute) based on the local policy and the UE's subscription information, then the initial AMF needs to send the complete registration request message and UE context to the first AMF.

[0183] Right now Figure 2 The registration process shown may also include S14: the initial AMF calls the first service operation of the first AMF, which may be called the Namf_Communication_N1MessgeNotify service operation, for sending the complete registration request message and / or the UE context to the first AMF. The UE context includes the UE's NAS security-related context. For ease of description, the UE's security-related context is referred to as the UE's NAS security context below.

[0184] Before the initial AMF calls the first service operation of the first AMF, the initial AMF decides whether to perform horizontal K according to the local policy. AMF If the initial AMF does not perform level K according to the local strategy AMF If the initial AMF performs horizontal K according to the local policy, the initial AMF sends the current security context to the first AMF. AMF Derived, the initial AMF is based on the current K AMF Generate a new K AMF Or a new security context or a new NAS security context, the initial AMF sends a new K to the first AMF AMF or a new security context or a new NAS security context, and the initial AMF sends a horizontal K to the first AMF AMF The level K AMF The derivation indication may be referred to as keyAmfHDerivationInd.

[0185] The initial AMF sends the current security context in the first service operation, or a new K AMF , or a new security context or level K AMF Deduction instructions.

[0186] In this application, the current security context includes the current NAS security context. The current NAS security context includes the current K AMF The initial AMF is based on the current K AMF Generate a new K AMF , also called the derived K AMF The initial AMF is based on the current K AMF Generate a new security context, also called a deduced security context. The initial AMF generates a new security context based on the current K AMF Generate a new NAS security context, also called the derived NAS security context, including the derived K AMF The initial AMF is based on the current K AMF The generated new security context includes the initial AMF based on the current K AMF Generate a new NAS security context. Level K AMF The derivation instruction is also called K AMF Horizontal deduction instructions, used to indicate the generation of new K AMF , or level K AMF Deduction.

[0187] Specifically, Figure 2 As shown in the registration process, it can be seen from the description of step S14 above that after the first AMF receives the first service operation, the first N1 message sent by the first AMF to the UE includes the following possibilities:

[0188] Possible 1: If the first AMF decides to initiate primary authentication (for example, the first AMF does not receive the NAS security context of the UE, or the first AMF receives the NAS security context of the UE but decides not to use the received K AMF ), the first AMF sends an authentication request message to the UE;

[0189] Possibility 2: If the first service operation carries the UE context and the first AMF decides to use the received K AMF , the first AMF selects a new encryption and / or security algorithm or the first AMF receives a level K AMF If the UE sends an indication, the first AMF sends a NAS SMC message to the UE.

[0190] Possibility three: if the first service operation carries the context of the UE, and the first AMF decides to use the received key and the received encryption and / or security algorithm (the security algorithm used between the UE and the second AMF), the first AMF sends another N1 message to the UE.

[0191] In the case shown in the above-mentioned possibility 1, the authentication request message sent by the first AMF to the UE may be discarded by the UE. For example, before the initial AMF sends the above-mentioned first service operation to the first AMF, a new NAS security context is established between the initial AMF and the UE, or the initial AMF and the UE successfully perform NAS SMC, or the initial AMF and the UE activate NAS security protection, or the initial AMF and the UE perform a secure interaction of NAS messages, then the authentication request message sent by the first AMF to the UE may be discarded by the UE without being processed, because a new NAS security context has been established between the UE and the initial AMF through the NAS SMC process, and the UE can only process the N1 message or NAS SMC message protected by the new NAS security context. When the first AMF decides to perform the primary authentication, when the first AMF sends the authentication request message to the UE, the current protocol does not define that the message is to be protected, then the UE receives the unprotected authentication request message and discards the authentication request message, which ultimately leads to registration failure.

[0192] In addition, in order to facilitate understanding of the embodiments of the present application, the following points are explained.

[0193] First, in this application, "used for indication" may include being used for direct indication and being used for indirect indication. When describing that a certain indication information is used for indicating A, it may include that the indication information directly indicates A or indirectly indicates A, but it does not mean that the indication information must carry A.

[0194] The information indicated by the indication information is called the information to be indicated. In the specific implementation process, there are many ways to indicate the information to be indicated, such as but not limited to, the information to be indicated can be directly indicated, such as the information to be indicated itself or the index of the information to be indicated. The information to be indicated can also be indirectly indicated by indicating other information, wherein there is an association between the other information and the information to be indicated. It is also possible to indicate only a part of the information to be indicated, while the other parts of the information to be indicated are known or agreed in advance. For example, the indication of specific information can also be achieved with the help of the arrangement order of each piece of information agreed in advance (for example, stipulated by the protocol), thereby reducing the indication overhead to a certain extent. At the same time, the common parts of each piece of information can also be identified and indicated uniformly to reduce the indication overhead caused by indicating the same information separately.

[0195] Second, the first, second and various numerical numbers (e.g., "#1", "#2", etc.) shown in the present application are only for convenience of description and are used to distinguish objects, and are not used to limit the scope of the embodiments of the present application. For example, the second AMF is distinguished from the first AMF, etc. It is not used to describe a specific order or sequence. It should be understood that the objects described in this way can be interchanged where appropriate so as to be able to describe solutions other than the embodiments of the present application.

[0196] Third, in this application, "pre-set" may include pre-definition, such as protocol definition. Among them, "pre-definition" can be implemented by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in devices (for example, including user equipment and access network equipment), and this application does not limit its specific implementation method.

[0197] Fourth, the "storage" involved in the embodiments of the present application may refer to storage in one or more memories. The one or more memories may be separately set or integrated in an encoder or decoder, a processor, or a communication device. The one or more memories may also be partially separately set and partially integrated in a decoder, a processor, or a communication device. The type of memory may be any form of storage medium, which is not limited by the present application.

[0198] Fifth, the “protocol” involved in the embodiments of the present application may refer to a standard protocol in the communication field, for example, it may include an LTE protocol, a new radio (NR) protocol, and related protocols used in future communication systems, which is not limited in the present application.

[0199] Sixth, for ease of understanding, the following are some brief descriptions of the main parameters involved in the implementation of the application:

[0200] Kamf: AMF key included in the NAS security context established between the UE and the second AMF;

[0201] Kamf′: AMF key generated after key derivation of Kamf;

[0202] K AMF : AMF key, which may refer to the above-mentioned Kamf or Kamf′ or other AMF keys.

[0203] To solve Figure 2 There may be a problem of registration failure in the registration process shown in , and the present application provides a method for registration, which enables the first AMF to send a protected authentication request message, thereby preventing the UE from discarding the authentication request message and improving the probability of successful registration. The method for registration provided by the embodiment of the present application will be described in detail below with reference to the accompanying drawings.

[0204] It should be understood that the method provided in the embodiments of the present application can be applied to Figure 1 In the network architecture shown, it can be specifically applied in the scenario where AMF redirection occurs.

[0205] It should also be understood that the embodiments shown below do not particularly limit the specific structure of the execution subject of the method provided in the embodiments of the present application. As long as it is possible to communicate according to the method provided in the embodiments of the present application by running a program that records the code of the method provided in the embodiments of the present application, for example, the execution subject of the method provided in the embodiments of the present application may be a user device or an access network device, or a functional module in the user device or the access network device that can call and execute the program.

[0206] In the following, without loss of generality, the registration method provided by the embodiment of the present application is described in detail by taking the interaction between the user equipment and the network equipment as an example. The network equipment includes an access network equipment and a core network equipment.

[0207] Figure 3 It is a schematic flow chart of a method for registration provided in an embodiment of the present application. The execution subjects include UE, initial AMF, second AMF, first AMF, UDM, NSSF and NRF.

[0208] The method for registration includes some or all of the following steps.

[0209] S310, UE sends RR message to initial AMF Figure 2 S1 in is similar and will not be repeated here.

[0210] Optionally, if the RR message received by the initial AMF carries the UE's 5G-GUTI, the initial AMF requests the UE context from the second AMF.

[0211] Right now Figure 3 The registration process shown may also include S320: the initial AMF calls the sixth service operation of the second AMF, and Figure 2 S2 in is similar and will not be described here.

[0212] S330, the second AMF sends a sixth service operation response to the initial AMF Figure 2 The S3 in is similar and will not be repeated here.

[0213] Optionally, in case the initial AMF decides to initiate the primary authentication process, Figure 3 The registration process shown also includes S340: initial AMF initiates the main authentication process, and Figure 2 The S4 in is similar and will not be repeated here.

[0214] S350, the initial AMF sends a NAS SMC message to the UE. Figure 2 The S5 in is similar and will not be repeated here.

[0215] S360, UE sends NAS SMP message to the initial AMF Figure 2 The S6 in the example is similar and will not be described here.

[0216] S370, the initial AMF calls the second service operation of the UDM Figure 2 The S7 is similar and will not be repeated here.

[0217] S380, UDM sends a second service operation response to the initial AMF Figure 2 The S8 is similar and will not be repeated here.

[0218] S390, the initial AMF calls the third service operation of NSSF, and Figure 2 The S9 is similar and will not be repeated here.

[0219] S391, NSSF sends a third service operation response to the initial AMF Figure 2 The S10 is similar and will not be repeated here.

[0220] S392, the initial AMF calls the fourth service operation of the second AMF, and Figure 2 The S11 in the example is similar and will not be described here.

[0221] S393, the initial AMF calls the fifth service operation of NRF, and Figure 2 The S12 in is similar and will not be repeated here.

[0222] S394, NRF sends a fifth service operation response to the initial AMF Figure 2 The S13 in is similar and will not be repeated here.

[0223] S395: The initial AMF calls the first service operation of the first AMF, where the first service operation is used to indicate that an AMF redirection occurs.

[0224] and Figure 2 The registration process shown is different in that, in this embodiment, after the first AMF receives the above-mentioned first service operation, the first AMF protects the first message, or the first AMF does not perform primary authentication.

[0225] Specifically, the first AMF protects the first message, or the first AMF does not perform primary authentication, including the following two situations:

[0226] Case 1: The first AMF receives the first indication information.

[0227] As a possible implementation manner: the first indication information is used to instruct the first AMF to protect the first message. In this implementation manner, the first AMF determines that the first message should be protected according to the first indication information.

[0228] As a possible implementation manner, the first indication information is used to instruct the first AMF to use the received K AMF , or instruct the first AMF to use the received security context, or instruct the first AMF not to perform primary authentication or the first AMF skips the primary authentication process to perform other processes in the registration. In this implementation, the first AMF does not perform primary authentication, or the first AMF uses the received K AMF , or the first AMF skips the primary authentication and performs other processes in the registration process. In this implementation, the first AMF still uses the received NAS security context to protect the N1 message.

[0229] The first message is an authentication request message, or the first message is an N1 message, or the first message is an N1 message other than a NAS SMC message.

[0230] It should be understood that the method for registration provided in the embodiment of the present application is mainly to prevent the UE from discarding the unprotected authentication request message sent by the first AMF, resulting in registration failure, when AMF redirection occurs. Therefore, it can be understood that the above-mentioned first message only includes the authentication request message, and other messages can also be within the scope of the first message, and the other messages are not necessarily limited to N1 messages. The first message involved in the embodiment of the present application includes an authentication request message, which can be understood as the first message can be an authentication request message.

[0231] As a possible implementation, the first indication information is carried in the above-mentioned first service operation. Figure 2A new IE is added in the first service operation shown, and the new IE is the first indication information mentioned above;

[0232] As another possible implementation method, the first indication information is signaling between the newly added initial AMF and the first AMF, and is sent to the first AMF before the first AMF sends the above-mentioned first message.

[0233] From the perspective of saving signaling overhead, the first indication information can be carried in the above-mentioned first service operation and sent to the first AMF, which is equivalent to adding IE to the original signaling between the initial AMF and the first AMF without adding a new signaling.

[0234] In this case, before the initial AMF sends the first indication information to the first AMF, the initial AMF determines that the first indication information needs to be sent to the first AMF, that is, Figure 3 The method flow shown also includes S396: the initial AMF determines to send a first indication message to the first AMF.

[0235] Specifically, when the first preset condition is met, the initial AMF sends the first indication information to the first AMF. Correspondingly, the first AMF receives the first indication information.

[0236] The first preset condition is any one or more of the following conditions:

[0237] The initial AMF and the UE have performed a secure interaction of NAS messages, the initial AMF and the UE have successfully performed NASSMC, a security association has been established between the UE and the initial AMF, security protection has been activated between the UE and the initial AMF, or a new NAS security context has been established between the UE and the initial AMF, and the initial AMF has performed horizontal K AMF deduction; the UE and the initial AMF perform a primary authentication, the initial AMF selects a security algorithm different from the security algorithm selected by the second AMF, and the initial AMF uses the security algorithm received from the second AMF by the horizontal K AMF K produced after deduction AMF .

[0238] When the first preset condition is not met, the initial AMF does not send the first indication information to the first AMF. Then the first AMF does not receive the first information indication.

[0239] As a possible implementation method, if the first AMF does not receive the first indication information, the first AMF decides whether to perform primary authentication according to the local policy. If the first AMF decides to perform primary authentication, the first AMF sends an unprotected authentication request message, or the first AMF uses the received security context to protect the authentication request message and sends a protected authentication request message.

[0240] Furthermore, the first indication information may be used to indicate at least one of the following situations:

[0241] The initial AMF and the UE have performed a secure exchange of NAS messages, a security association has been established between the UE and the initial AMF, security protection has been activated between the UE and the initial AMF, a new NAS security context has been established between the UE and the initial AMF, the NAS SMC process has been successfully performed between the initial AMF and the UE, the first AMF shall use the received NAS security context to protect the first message, the first AMF does not perform the main authentication process, the first AMF skips the main authentication process and performs other processes in the registration, or the first AMF uses the received K AMF .

[0242] Specifically, the UE context in the first service operation includes a NAS security context. The NAS security context may be a NAS security context after horizontal deduction.

[0243] After the first AMF receives the first indication information, Figure 3 The method flow shown also includes S397: the first AMF protects the first message according to the first indication information. And sends the protected first message to the UE, Figure 3 The method flow shown also includes S301: the first AMF sends a first protected message to the UE.

[0244] Optionally, the first indication information is used to instruct the first AMF to use the received K AMF , or the first AMF does not perform the main authentication process, or the first AMF skips the main authentication process and performs other processes in the registration, Figure 3 The method flow shown may also include, S302: the first AMF does not perform the primary authentication according to the first indication information, or it can be described as the first AMF skipping the primary authentication according to the first indication information to perform other processes in the registration, or the first AMF uses the received K AMF The first AMF still uses the received NAS security context to protect the N1 message.

[0245] Specifically, the first AMF protects the first message according to the first indication information, including any one of the following possibilities:

[0246] When the first AMF decides to initiate primary authentication according to the local policy, the first AMF uses the received NAS security context to protect the authentication request message, the first AMF uses the received K AMF and security algorithm to protect the authentication request message, or the first AMF uses the received K AMFand the received security algorithm, calculate the NAS key, and use the calculated NAS key and the received algorithm to protect the authentication request message.

[0247] When the first AMF decides not to perform primary authentication or skip primary authentication according to the first indication information, the first AMF uses the received NAS security context or K AMF Protect N1 messages.

[0248] When the first AMF decides to use the received K AMF The first AMF shall use the received NAS security context to protect the N1 message, the first AMF shall use the received NAS security context to protect the N1 message except the NASSMC message, and the first AMF shall use the received K AMF and security algorithm to protect the N1 message, the first AMF uses the received K AMF and security algorithms to protect N1 messages except NAS SMC messages. The first AMF uses the received K AMF and the received security algorithm, calculate the NAS key, and use the calculated NAS key and the received algorithm to protect the N1 message, or the first AMF uses the received K AMF and the received security algorithm, calculate the NAS key, and use the calculated NAS key and the received algorithm to protect the N1 message except the NAS SMC message.

[0249] Case 2: After the first AMF receives the first service operation, the first AMF may also protect the first message.

[0250] As a possible implementation manner, the first AMF protects the first message according to receiving the first service operation.

[0251] As a possible implementation manner, the first AMF determines whether AMF redirection occurs according to the received first service operation, and if redirection occurs, protects the first message.

[0252] As a possible implementation manner, the first AMF uses the received K according to the received first service operation. AMF , or not perform the primary authentication, or skip the primary authentication to perform other processes in the registration process. In this implementation, the first AMF still uses the received NAS security context to protect the N1 message.

[0253] As a possible implementation, the first AMF determines whether AMF redirection occurs according to the received first service operation. If AMF redirection occurs, the first AMF uses the received K AMF, or not perform the primary authentication, or skip the primary authentication to perform other processes in the registration process. In this implementation, the first AMF still uses the received NAS security context to protect the N1 message.

[0254] The first AMF determines that AMF redirection occurs according to the registration context container information element (registrationCtxtContainer IE) carried in the first service operation, and / or the first AMF determines that AMF redirection occurs according to the type of the N1 message notified in the first service operation is 5GMM.

[0255] In case 2, Figure 3 The method flow shown also includes S398: the first AMF protects the first message. And sends the protected first message to the UE, Figure 3 The method flow shown also includes S301: the first AMF sends a first protected message to the UE.

[0256] Optionally, the first AMF uses the received K according to the received first service operation. AMF , when not performing primary authentication or skipping primary authentication, Figure 3 The method flow shown may also include, S303: the first AMF does not perform the primary authentication according to the first service operation, or it can be described as the first AMF skipping the primary authentication according to the first service operation to perform other processes in the registration, or the first AMF uses the received K AMF . And the first AMF still uses the received NAS security context to protect the N1 message.

[0257] Specifically, the first AMF protects the first message, including any of the following possibilities:

[0258] When the first AMF decides to initiate primary authentication according to local policy, the first AMF uses the received K AMF Protect the authentication request message, the first AMF uses the received NAS security context to protect the authentication request message, the first AMF uses the received K AMF and security algorithm to protect the authentication request message, or the first AMF uses the received K AMF and the received security algorithm, calculate the NAS key, and use the calculated NAS key and the received algorithm to protect the authentication request message.

[0259] When the first AMF decides not to perform primary authentication or to skip primary authentication according to the first service operation, the first AMF uses the received NAS security context or K AMF Protect the sending of NAS SMC messages or other N1 messages to the UE.

[0260] When the first AMF decides not to initiate primary authentication according to the local policy, that is, when the first AMF sends a NAS SMC message or other N1 message to the UE, the first AMF uses the received NAS security context to protect the N1 message, the first AMF uses the received NAS security context to protect the N1 message other than the NAS SMC message, and the first AMF uses the received K AMF and security algorithm to protect the N1 message, the first AMF uses the received K AMF and security algorithms to protect N1 messages except NAS SMC messages. The first AMF uses the received K AMF and the received security algorithm, calculate the NAS key, and use the calculated NAS key and the received algorithm to protect the N1 message, or the first AMF uses the received K AMF and the received security algorithm, calculate the NAS key, and use the calculated NAS key and the received algorithm to protect the N1 message except the NAS SMC message.

[0261] As a possible implementation, after receiving the first service operation, the first AMF determines that AMF redirection occurs, and then the first AMF protects the first message. Figure 3 The method flow shown also includes S399: the first AMF determines that AMF redirection has occurred.

[0262] Optionally, the first AMF may determine whether AMF redirection has occurred based on the IE(s) carried in the first service operation. For example, if the message type carrying N1 in the first service operation includes 5GMM, it is determined that AMF redirection has occurred; for another example, if the first service operation carries a registration context container (registration Context Container) type IE, it is determined that AMF redirection has occurred.

[0263] As a possible implementation method, the first AMF may skip the primary authentication process after determining that AMF redirection occurs, and perform other processes in the registration, or the first AMF may not perform the primary authentication after determining that AMF redirection occurs, and the first AMF uses the received NAS security context to protect the first message, or the first AMF uses the received K AMF .

[0264] It should be understood that the above-mentioned first AMF determines that AMF redirection occurs for the purpose of example only and does not constitute any limitation on the scope of protection of the present application. The provisions on determining whether AMF redirection occurs in the current protocol or future protocol may be referred to and will not be repeated here.

[0265] Figure 3The method flow shown enables the first AMF to send a protected authentication request message, thereby preventing the UE from discarding the received unprotected authentication request message.

[0266] Figure 4 It is a schematic flow chart of another method for registration provided in an embodiment of the present application. The execution subjects include UE, (R)AN, initial AMF, second AMF, first AMF, UDM, NSSF and NRF.

[0267] The method for registration includes some or all of the following steps.

[0268] S410, UE sends RR message to initial AMF Figure 2 S1 in is similar and will not be repeated here.

[0269] Optionally, if the RR message received by the initial AMF carries the UE's 5G-GUTI, the initial AMF requests the UE context from the second AMF. Figure 3 The registration process shown also includes S420: the initial AMF calls the sixth service operation of the second AMF, and Figure 2 S2 in is similar and will not be described here.

[0270] S430, the second AMF sends a sixth service operation response to the initial AMF Figure 2 The S3 in is similar and will not be repeated here.

[0271] Optionally, in case the initial AMF decides to initiate the primary authentication process, Figure 3 The registration process shown also includes S440: initial AMF initiates the main authentication process, and Figure 2 The S4 in is similar and will not be repeated here.

[0272] S450, the initial AMF sends a NAS SMC message to the UE Figure 2 The S5 in is similar and will not be repeated here.

[0273] S460, UE sends NAS SMP message to the initial AMF Figure 2 The S6 in the example is similar and will not be described here.

[0274] S470, the initial AMF calls the second service operation of the UDM Figure 2 The S7 is similar and will not be repeated here.

[0275] S480, UDM sends a second service operation response to the initial AMF Figure 2 The S8 is similar and will not be repeated here.

[0276] and Figure 2 The registration process shown is different from Figure 4 In the method flow for registration shown in FIG. 1 , the initial AMF determines to send a second indication message to the UE to instruct the UE to accept an unprotected authentication request message, thereby avoiding Figure 2 The registration process shown summarizes that the UE discards the unprotected authentication request message sent by the first AMF, then Figure 4 The registration process shown also includes S481: the initial AMF sends a second indication message to the UE. The second indication message is used to instruct the UE to accept the unprotected authentication request message, and can also be understood as the second indication message is used to instruct the UE to process the unprotected authentication request message, and can also be understood as the second indication message is used to instruct the UE not to discard the unprotected authentication request message.

[0277] The initial AMF determines to send second indication information to the UE, including, the initial AMF determines to send the second indication information to the UE based on a second preset condition, that is, when at least one of the following second preset conditions is met, the initial AMF determines to send the second indication information to the UE:

[0278] The initial AMF decides to initiate AMF redirection, the initial AMF decides to initiate AMF redirection via RAN, a secure exchange of NAS messages is performed between the initial AMF and the UE before AMF redirection, a NAS SMC is successfully performed between the initial AMF and the UE before AMF redirection, a security association is established between the UE and the initial AMF before AMF redirection, security protection is activated between the UE and the initial AMF before AMF redirection, a new NAS security context is established between the UE and the initial AMF before AMF redirection, a primary authentication is performed between the UE and the initial AMF before AMF redirection, the initial AMF selects a security algorithm different from the security algorithm selected by the second AMF before AMF redirection, or the initial AMF uses a security algorithm received from the second AMF by horizontal K before AMF redirection. AMF K produced after deduction AMF .

[0279] It should be understood that the present application does not limit how the initial AMF sends the second indication information to the UE. The second indication information may be added to the existing message, or a new signaling may be added to transmit the second indication information.

[0280] For example, the initial AMF sends the second indication information, which may be that the initial AMF sends an N1 message to the UE, and the N1 message is used to instruct the UE to receive an unprotected authentication request message; for example, the initial AMF sends the second indication information, which may be that the initial AMF sends an N1 message to the UE (for example, a configuration update command message, a NAS SMC message, a 5GMM status message, or a downlink NAS transport message, etc.), and the N1 message carries the second indication information.

[0281] and Figure 2 The registration process is similar to that shown in Figure 4 The method flow for registration shown in the figure should also include S490, the initial AMF calls the third service operation of NSSF, and Figure 2 The S9 is similar and will not be repeated here.

[0282] S491, NSSF sends a third service operation response to the initial AMF Figure 2 The S10 is similar and will not be repeated here.

[0283] S492, the initial AMF calls the fourth service operation of the second AMF, and Figure 2 The S11 in the example is similar and will not be described here.

[0284] S493, the initial AMF calls the fifth service operation of NRF, and Figure 2 The S12 in is similar and will not be repeated here.

[0285] S494, NRF sends a fifth service operation response to the initial AMF Figure 2 The S13 in is similar and will not be repeated here.

[0286] S495, the initial AMF calls the first service operation of the first AMF Figure 2 The S14 in is similar and will not be repeated here.

[0287] It should be understood that the above-mentioned S481 can be a step that occurs at any time after the above-mentioned S460 and before S493.

[0288] Specifically, Figure 2 The registration process shown is different in that, since the UE receives the above-mentioned second indication information in advance, after S495, when the UE receives the unprotected authentication request message sent by the first AMF, the UE will not discard the authentication request message. Figure 4The method flow for registration shown should also include S496: the UE receives an unprotected first message from the first AMF, where the first message includes an authentication request message, thereby avoiding registration failure caused by the UE discarding the unprotected authentication request message.

[0289] Fig.11 It is another schematic flow chart of a method for registration provided in an embodiment of the present application. The execution subjects include UE, initial AMF, second AMF, first AMF, UDM, NSSF and NRF.

[0290] The method for registration includes some or all of the following steps.

[0291] S510, UE sends RR message to initial AMF Figure 2 S1 in is similar and will not be repeated here.

[0292] Optionally, if the RR message received by the initial AMF carries the UE's 5G-GUTI, the initial AMF requests the UE context from the second AMF.

[0293] Right now Fig.11 The registration process shown may also include S520: the initial AMF calls the sixth service operation of the second AMF, and Figure 2 S2 in is similar and will not be described here.

[0294] S530, the second AMF sends a sixth service operation response to the initial AMF Figure 2 The S3 in is similar and will not be repeated here.

[0295] Optionally, the initial AMF decides to initiate the main authentication process. Fig.11 The registration process shown also includes S540: initial AMF initiates the main authentication process, and Figure 2 The S4 in is similar and will not be repeated here.

[0296] S550, the initial AMF sends a NAS SMC message to the UE. Figure 2 The S5 in is similar and will not be repeated here.

[0297] S560, UE sends a NAS SMP message to the initial AMF Figure 2 The S6 in the example is similar and will not be described here.

[0298] S570, the initial AMF calls the second service operation of the UDM Figure 2 The S7 is similar and will not be repeated here.

[0299] S580, UDM sends a second service operation response to the initial AMF Figure 2The S8 is similar and will not be repeated here.

[0300] S590, the initial AMF calls the third service operation of NSSF, and Figure 2 The S9 is similar and will not be repeated here.

[0301] S591, NSSF sends a third service operation response to the initial AMF Figure 2 The S10 is similar and will not be repeated here.

[0302] S592, the initial AMF calls the fourth service operation of the second AMF, and Figure 2 The S11 in the example is similar and will not be described here.

[0303] S593, the initial AMF calls the fifth service operation of NRF, and Figure 2 The S12 in is similar and will not be repeated here.

[0304] S594, NRF sends a fifth service operation response to the initial AMF Figure 2 The S13 in is similar and will not be repeated here.

[0305] S595, the initial AMF calls the first service operation of the first AMF, and the first service operation is used to notify the first AMF of the received N1 message. When the initial AMF saves the complete registration request message and / or the context of the UE, the initial AMF sends the complete registration request message and / or the context of the UE to the first AMF through the first service operation.

[0306] and Figure 2 The difference between the registration process shown in the figure is that, in this embodiment, before the initial AMF calls the first service operation of the first AMF, the initial AMF decides whether to perform horizontal K AMF Deduction, that is Fig.11 The method flow shown also includes S596: the initial AMF determines whether to perform horizontal K AMF Deduction.

[0307] If the initial AMF decides not to proceed to level K AMF The initial AMF sends the current security context to the first AMF, including the current K AMF ;

[0308] If the initial AMF decides to proceed to level K AMF Derived, the initial AMF is based on the current K AMF Generate a new K AMF Or a new security context or a new NAS security context, the initial AMF sends a new K to the first AMF AMFor a new security context or a new NAS security context, and the initial AMF sends a horizontal K to the first AMF AMF The level K AMF The derivation indication may be referred to as keyAmfHDerivationInd.

[0309] Optionally, the initial AMF sends the UE's security context to the first AMF through the first service operation, including the current security context or the new K AMF or a new security context or level K AMF Optionally, the initial AMF may send the UE's security context to the first AMF through a message other than the above-mentioned first service operation, including the current security context or the new K AMF or a new security context or level K AMF The deduction indicates that the present application does not limit the specific method of how the initial AMF sends the security context of the UE to the first AMF.

[0310] The initial AMF determines whether to perform horizontal K AMF The deduction can be any of the following three methods:

[0311] Method 1: Initial AMF does not perform horizontal K AMF Derivation, that is, the initial AMF sends the current security context to the first AMF;

[0312] Method 2: The initial AMF determines whether to perform horizontal K based on the local policy AMF Derivation, that is, the initial AMF determines the level K according to the local strategy AMF Derivation, or, the initial AMF determines not to perform level K according to the local strategy AMF deduction;

[0313] Method 3: The initial AMF determines whether to perform horizontal K according to the fourth preset condition AMF If the initial AMF determines that the fourth preset condition is satisfied, the initial AMF does not perform horizontal K AMF Inference, that is, the initial AMF sends the current security context to the first AMF; if the initial AMF determines that the fourth preset condition is not met, the initial AMF determines whether to perform horizontal K according to the local policy AMF Derivation, that is, the initial AMF determines the level K according to the local strategy AMF Derivation, or the initial AMF determines not to perform horizontal K according to local strategy AMF Deduction. The fourth precondition is any one or more of the following conditions:

[0314] The initial AMF and the UE have performed a secure exchange of NAS messages; the initial AMF and the UE have successfully performed NASSMC; a security association has been established between the UE and the initial AMF; security protection has been activated between the UE and the initial AMF; a new NAS security context has been established between the UE and the initial AMF; a primary authentication has been performed between the UE and the initial AMF; the initial AMF has selected a security algorithm different from the security algorithm selected by the second AMF; the initial AMF has used the security algorithm received from the second AMF by the horizontal K AMF K generated after deduction AMF ; The initial AMF receives the level K from the second AMF AMF The initial AMF decides to use the K received from the second AMF. AMF ;

[0315] and Figure 2 The registration process shown is different in that, in this embodiment, after the first AMF receives the above-mentioned first service operation, the first AMF performs any one of the following options:

[0316] Option 1: The first AMF does not perform primary authentication, or the first AMF uses the received K AMF or security context.

[0317] It should be understood that the first AMF does not perform primary authentication, or the first AMF uses the received K AMF Or security context, it means that the first AMF skips the main authentication and proceeds with other processes in the registration process. Under this option, Fig.11 The method flow shown also includes S5951: the first AMF skips the primary authentication or the first AMF uses the received K AMF or security context. The first AMF receives the K AMF or a security context to protect a third message, and send the third message to the UE, Fig.11 The method flow shown also includes S5952: the first AMF sends a third message to the UE. Specifically, the first AMF receives the received K AMF Or the security context generates a NAS encryption and decryption key and a NAS integrity key, and uses the generated NAS encryption and decryption key and / or NAS integrity key to protect the third message. In this option, the third message is any N1 message that does not include an authentication request.

[0318] In this embodiment, the first AMF does not perform primary authentication, that is, the first AMF uses the received K AMF or security context.

[0319] Option 2: The first AMF protects the authentication request message, and / or, the first AMF sends a security-protected authentication request message, and / or, the first AMF sends a security-protected N1 message including an authentication request message. Fig.11 The method flow shown also includes S5953: the first AMF protects the authentication request message. S5954: the first AMF sends a security-protected authentication request message to the UE, wherein the first AMF sends a security-protected authentication request message to the UE can be understood as the first AMF sending a security-protected N1 message to the UE, and the N1 message includes the authentication request message.

[0320] It should be understood that the first AMF protects the authentication request message, that is, the first AMF receives the K AMF Or a security context protection authentication request message, and sends a security protection authentication request message, specifically, the first AMF receives the K AMF Or the security context generates a NAS encryption and decryption key and a NAS integrity key, and uses the generated NAS encryption and decryption key and / or NAS integrity key to protect the authentication request message, and sends the authentication request message with security protection.

[0321] It should be understood that the first AMF sends a security-protected authentication request message, that is, the first AMF receives the K AMF Or a security context protection authentication request message, and sends a security protection authentication request message, specifically, the first AMF receives the K AMF Or the security context generates a NAS encryption and decryption key and a NAS integrity key, and uses the generated NAS encryption and decryption key and / or NAS integrity key to protect the authentication request message, and sends the authentication request message with security protection.

[0322] It should be understood that in this embodiment, the first AMF sends a security-protected N1 message including an authentication request message, that is, the first AMF receives the K AMF Or security context protection authentication N1 message, and send a security-protected N1 message, specifically, the first AMF receives the K AMF Or the security context generates a NAS encryption and decryption key and a NAS integrity key, and uses the generated NAS encryption and decryption key and / or NAS integrity key to protect the N1 message, and sends the N1 message with security protection. The N1 message here includes an authentication request message.

[0323] Option 3: The first AMF sends an authentication request message without security protection, or the first AMF initiates a NAS SMC. Fig.11The method flow shown also includes S5955: the first AMF initiates a NAS SMC. S5956: the first AMF sends an authentication request message without security protection to the UE.

[0324] Option 4: The first AMF does not perform primary authentication; or the first AMF protects the authentication request message; or the first AMF sends a security-protected N1 message, including an authentication request message. Fig.11 The method flow shown also includes S5956: the first AMF protects the authentication request message or the first AMF does not perform primary authentication. S5957: the first AMF sends a security-protected authentication request message to the UE, wherein the first AMF sends a security-protected authentication request message to the UE can be understood as the first AMF sending a security-protected N1 message to the UE, and the N1 message includes the authentication request message.

[0325] It should be understood that in this embodiment, the first AMF does not perform primary authentication, that is, the first AMF uses the received K AMF or security context, means that the first AMF skips the primary authentication and performs other processes in the registration process. In this implementation, the first AMF receives the K AMF Or a security context protects a third message; Specifically, the first AMF receives the received K AMF Or the security context generates a NAS encryption and decryption key and a NAS integrity key, and uses the generated NAS encryption and decryption key and / or NAS integrity key to protect the third message. In this option, the third message is any N1 message that does not include an authentication request.

[0326] The first AMF protects the authentication request message, that is, the first AMF receives the K AMF Or a security context protection authentication request message, and sends a security protection authentication request message, specifically, the first AMF receives the K AMF Or the security context generates a NAS encryption and decryption key and a NAS integrity key, and uses the generated NAS encryption and decryption key and / or NAS integrity key to protect the authentication request message, and sends the authentication request message with security protection.

[0327] As a possible implementation of Option 1: After the first AMF receives the first service operation, the first AMF does not perform primary authentication, or the first AMF uses the received K AMF or security context.

[0328] As another possible implementation of Option 1: After receiving the above-mentioned first service operation, the first AMF determines whether AMF redirection or direct non-access layer rerouting (also called direct NAS reroute) occurs. If AMF redirection or direct non-access layer rerouting occurs, the first AMF does not perform primary authentication, or the first AMF uses the received K AMF The first AMF determines that AMF redirection occurs according to the registration context container IE (registrationCtxtContainer IE) carried in the first service operation, and / or the first AMF determines that AMF redirection occurs according to the type of the N1 message notified in the first service operation is 5GMM.

[0329] As another possible implementation of Option 1: If the first AMF receives the horizontal K sent by the initial AMF AMF The first AMF is based on the level K AMF Derivation instructions, no master authentication, or use the received K AMF or security context.

[0330] If the first AMF does not receive the horizontal K sent by the initial AMF AMF If the first AMF performs any of the following operations:

[0331] Operation 1: The first AMF still does not perform primary authentication, or uses the received K AMF or security context;

[0332] Operation 2: If the first AMF performs primary authentication according to the local policy, the first AMF shall AMF or security context protection authentication request message, and send a security protection authentication request message; if the first AMF does not perform primary authentication according to the local policy, the first AMF shall AMF Or the security context protects the N1 message and sends the N1 message with security protection;

[0333] Operation 3: The first AMF shall AMF Or the security context protects the N1 message, including the authentication request message, and sends the security-protected N1 message, including the security-protected authentication request message.

[0334] As a possible implementation of Option 1: If the first AMF receives the tenth indication information sent by the initial AMF, the first AMF does not perform primary authentication according to the tenth indication information, or uses the received K AMFThe tenth indication information is used to instruct the first AMF not to perform primary authentication, or the first AMF uses the received K AMF or security context.

[0335] In this implementation, the initial AMF also includes, before calling the first service operation of the first AMF in S595, the initial AMF determines to send a tenth indication information (i.e., Fig.11 The method flow shown also includes S5961: the initial AMF determines to send the tenth indication information to the first AMF). Specifically, when the initial AMF determines that the tenth preset condition is satisfied, the initial AMF sends the tenth indication information to the first AMF. Accordingly, the first AMF receives the tenth indication information. Optionally, the initial AMF sends the tenth indication information to the first AMF using the first service operation. The tenth preset condition is any one or more of the following conditions:

[0336] The initial AMF and UE have carried out a secure exchange of NAS messages; the initial AMF and UE have successfully carried out NASSMC; a security association has been established between the UE and the initial AMF; security protection has been activated between the UE and the initial AMF; a new NAS security context has been established between the UE and the initial AMF; the initial AMF has carried out horizontal K AMF deduction; a primary authentication is performed between the UE and the initial AMF; the initial AMF selects a security algorithm different from the security algorithm selected by the second AMF; the initial AMF uses the security algorithm received from the second AMF by the horizontal K AMF K generated after deduction AMF ; The initial AMF receives the level K from the second AMF AMF The initial AMF decides to use the K received from the second AMF. AMF .

[0337] When the tenth preset condition is not met, the initial AMF does not send the tenth indication information to the first AMF. Then the first AMF does not receive the tenth indication information. If the first AMF does not receive the tenth indication information, the first AMF may perform any one of the following operations:

[0338] Operation 1: If the first AMF decides to perform primary authentication, the first AMF shall send an authentication request message without security protection, or the first AMF shall AMF or a security context protecting an authentication request message and sending an authentication request message with security protection;

[0339] Operation 2: If the first AMF decides not to perform primary authentication, the first AMF sends an N1 message without security protection or the first AMF shall AMFOr the security context protects the N1 message and sends the N1 message with security protection;

[0340] Operation three: The first AMF shall send an N1 message without security protection, including an Authentication Request message.

[0341] Operation 4: The first AMF shall AMF Or the security context protects the N1 message, and sends the security-protected N1 message, including the authentication request message.

[0342] If the first AMF does not receive the tenth indication information, the first AMF may also perform any one of the following operations:

[0343] Operation 1: If the first AMF decides to perform primary authentication and the first AMF does not receive horizontal K AMF deduction indication, the first AMF shall send an authentication request message without security protection; or the first AMF shall AMF or a security context protecting an authentication request message and sending an authentication request message with security protection;

[0344] Operation 2: If the first AMF receives the horizontal K AMF If the first AMF does not perform primary authentication, the first AMF shall use the received K AMF or security context, or the first AMF shall perform a NAS SMC.

[0345] Operation three: If the first AMF decides to perform primary authentication, the first AMF shall send an authentication request message without security protection.

[0346] If the first AMF does not receive the tenth indication information, the first AMF may also perform any one of the following operations:

[0347] Operation 1: If the first AMF decides to perform primary authentication and the first AMF does not receive horizontal K AMF derivation indication, the first AMF shall AMF or a security context protecting an authentication request message and sending an authentication request message with security protection;

[0348] Operation 2: If the first AMF decides to perform primary authentication and the first AMF receives horizontal K AMF If the first AMF sends an authentication request message without security protection,

[0349] The tenth indication information may also be used to indicate any one or more of the following:

[0350] The initial AMF and UE have a secure exchange of NAS messages; a security association is established between the UE and the initial AMF; security protection is activated between the UE and the initial AMF; a new NAS security context is established between the UE and the initial AMF; the initial AMF and UE have a successful NAS SMC process; the initial AMF and UE perform primary authentication; the initial AMF receives a horizontal K from the second AMF AMF Deduces the indication and decides to use the K received from the second AMF AMF or security context; the initial AMF performs level K AMF Derivation; the initial AMF generates a new K AMF ; The initial AMF selects a security algorithm different from the security algorithm selected by the second AMF; The first AMF does not perform the main authentication process; The first AMF skips the main authentication process and performs other processes in the registration; The first AMF uses the received K AMF or security context.

[0351] As a possible implementation of Option 2: If the first AMF receives the ninth indication information sent by the initial AMF, when the first AMF decides to perform primary authentication, the first AMF shall protect the authentication request message according to the ninth indication information. Specifically, the first AMF shall protect the authentication request message based on the received K AMF Or the security context protects the authentication request message, and sends the authentication request message with security protection, or the first AMF should send the N1 message with security protection, including the authentication request message, according to the ninth indication information. The ninth indication information is used to instruct the first AMF to protect the authentication request message.

[0352] In this implementation, the initial AMF also includes, before the initial AMF calls the first service operation of the first AMF at S595, the initial AMF determines to send ninth indication information (i.e. Fig.11 The method flow shown also includes S5962: the initial AMF determines to send the ninth indication information to the first AMF). Specifically, when the initial AMF determines that the ninth preset condition is satisfied, the initial AMF sends the ninth indication information to the first AMF. Accordingly, the first AMF receives the ninth indication information. Optionally, the initial AMF sends the ninth indication information to the first AMF using the first service operation. The ninth preset condition is any one or more of the following conditions:

[0353] The initial AMF and the UE have performed a secure exchange of NAS messages; the initial AMF and the UE have successfully performed NASSMC; a security association has been established between the UE and the initial AMF; security protection has been activated between the UE and the initial AMF; a new NAS security context has been established between the UE and the initial AMF; a primary authentication has been performed between the UE and the initial AMF; the initial AMF has selected a security algorithm different from the security algorithm selected by the second AMF; the initial AMF has used the security algorithm received from the second AMF by the horizontal K AMF K generated after deduction AMF The initial AMF receives the level K from the second AMF AMF The initial AMF decides to use the K received from the second AMF. AMF .

[0354] When the ninth preset condition is not met, the initial AMF does not send the ninth indication information to the first AMF. Then the first AMF does not receive the ninth indication information. If the first AMF does not receive the ninth indication information, the first AMF may perform any one of the following operations:

[0355] Operation 1: If the first AMF decides to perform primary authentication, the first AMF shall send an authentication request message without security protection;

[0356] Operation 2: If the first AMF decides not to perform primary authentication, the first AMF sends an N1 message without security protection or the first AMF shall AMF Or the security context protects the N1 message and sends the N1 message with security protection;

[0357] Operation three: The first AMF shall send an N1 message without security protection, including an Authentication Request message.

[0358] Operation 4: If the first AMF decides to perform primary authentication and the first AMF does not receive horizontal K AMF If the first AMF sends an authentication request message without security protection, or the first AMF sends an authentication request message based on the received K AMF Or the security context protects the authentication request message and sends the authentication request message with security protection.

[0359] Operation 5: If the first AMF decides to perform primary authentication and the first AMF receives the horizontal K AMF If the QoS policy is deduced, the first AMF shall send an authentication request message without security protection.

[0360] The ninth indication information may also be used to indicate any one or more of the following:

[0361] The first AMF shall protect the authentication request message; the first AMF shall send a security-protected authentication request message; the first AMF shall protect the authentication request message; the first AMF shall send a security-protected N1 message, including an authentication request message.

[0362] The initial AMF and UE have a secure exchange of NAS messages; a security association is established between the UE and the initial AMF; security protection is activated between the UE and the initial AMF; a new NAS security context is established between the UE and the initial AMF; the initial AMF and UE have a successful NAS SMC process; the initial AMF and UE perform primary authentication; the initial AMF receives a horizontal K from the second AMF AMF Deduces the indication and decides to use the K received from the second AMF AMF or security context; the initial AMF selected a security algorithm different from the security algorithm selected by the second AMF.

[0363] As a possible implementation of Option 2: After receiving the above-mentioned first service operation, the first AMF determines whether AMF redirection or direct non-access layer rerouting (also known as direct NAS reroute) occurs. If AMF redirection or direct non-access layer rerouting occurs, when the first AMF decides to perform primary authentication, the first AMF shall protect the authentication request message. Specifically, the first AMF shall protect the authentication request message based on the received K AMF or security context protection authentication request message, and sends a security-protected authentication request message, or the first AMF shall send a security-protected N1 message, including an authentication request message. The first AMF determines that AMF redirection occurs according to the registration context container information element (registrationCtxtContainer IE) carried in the first service operation, and / or the first AMF determines that AMF redirection occurs according to the type of the N1 message notified in the first service operation is 5GMM.

[0364] As another possible implementation of Option 2: After the first AMF receives the above-mentioned first service operation, if the first AMF decides to perform primary authentication, the first AMF shall protect the authentication request message, or the first AMF shall send a security-protected N1 message including the authentication request message. The first AMF shall protect the authentication request message, that is, the first AMF shall protect the authentication request message based on the received K AMF or security context protection authentication request message, and send a security-protected authentication request message; the first AMF shall send a security-protected N1 message, that is, the first AMF shall receive the K AMF Or the security context protects the N1 message and sends the N1 message with security protection.

[0365] As a possible implementation of option three: If the first AMF receives the eighth indication information sent by the initial AMF, when the first AMF decides to perform primary authentication, the first AMF shall send an authentication request message without security protection according to the eighth indication information, or the first AMF shall initiate NAS SMC according to the eighth indication information. The eighth indication information is used to instruct the first AMF to send an authentication request message without security protection. The eighth indication information may be horizontal K AMF Deduction instructions.

[0366] In this implementation, the initial AMF also includes, before the initial AMF calls the first service operation of the first AMF in S595, the initial AMF determines to send the eighth indication information (i.e. Fig.11 The method flow shown also includes S5963: the initial AMF sends the eighth indication information to the first AMF). Specifically, when the initial AMF determines that the eighth preset condition is satisfied, the initial AMF sends the eighth indication information to the first AMF. Correspondingly, the first AMF receives the eighth indication information. Optionally, the initial AMF sends the eighth indication information to the first AMF using the first service operation. The eighth preset condition is any one or more of the following conditions: the initial AMF performs horizontal K AMF Derivation, or initial AMF generates new K AMF .

[0367] When the eighth preset condition is not met, the initial AMF does not send the eighth indication information to the first AMF. Then the first AMF does not receive the eighth indication information. If the first AMF does not receive the eighth indication information, the first AMF may perform any one of the following operations:

[0368] Operation 1: If the first AMF decides to perform primary authentication, the first AMF shall AMF Or the security context protects the authentication request message and sends the authentication request message with security protection.

[0369] Operation 2: If the first AMF decides not to perform primary authentication, the first AMF shall AMF Or the security context protects the N1 message and sends the N1 message with security protection;

[0370] Operation 3: The first AMF shall AMF Or N1 message protected by security context, and send N1 message with security protection, including authentication request message.

[0371] The eighth indication information may also be used to indicate any one or more of the following:

[0372] Initial AMF level K AMFDerivation; Initial AMF generates new K AMF ; The first AMF shall send an authentication request message without security protection; The first AMF shall initiate a NAS SMC.

[0373] As a possible implementation of option 4: If the first AMF receives the horizontal K AMF If the first AMF does not perform primary authentication, the first AMF shall use the received K AMF Or security context, or the first AMF initiates NASSMC. Otherwise, if the first AMF does not receive horizontal K AMF If the seventh instruction message is received, then:

[0374] If the first AMF decides to initiate primary authentication, the first AMF shall send a security-protected authentication request message according to the seventh indication information, or,

[0375] According to the seventh indication information, the first AMF shall send a security-protected N1 message, including an authentication request message.

[0376] The seventh indication information is used to instruct the first AMF to send an authentication request message with security protection, or the first AMF to send an N1 message with security protection.

[0377] In this implementation, the initial AMF also includes, before the initial AMF calls the first service operation of the first AMF in S595, the initial AMF determines to send seventh indication information (i.e., Fig.11 The method flow shown also includes S5964: the initial AMF determines to send the seventh indication information to the first AMF). Specifically, when the initial AMF determines that the seventh preset condition is satisfied, the initial AMF sends the seventh indication information to the first AMF. Accordingly, the first AMF receives the seventh indication information. Optionally, the initial AMF sends the seventh indication information to the first AMF using the first service operation. The seventh preset condition is any one or more of the following conditions:

[0378] The initial AMF and the UE have performed a secure exchange of NAS messages; the initial AMF and the UE have successfully performed NASSMC; a security association has been established between the UE and the initial AMF; security protection has been activated between the UE and the initial AMF; a new NAS security context has been established between the UE and the initial AMF; a primary authentication has been performed between the UE and the initial AMF; the initial AMF has selected a security algorithm different from the security algorithm selected by the second AMF; the initial AMF has used the security algorithm received from the second AMF by the horizontal K AMF K generated after deduction AMF ; The initial AMF receives the level K from the second AMF AMFDeduces the instruction and decides to use the K received from the second AMF AMF or security context.

[0379] When the seventh preset condition is not met, the initial AMF does not send the seventh indication information to the first AMF. Then the first AMF does not receive the seventh indication information. If the first AM does not receive the seventh indication information, nor does it receive the horizontal K AMF If the first AMF performs any of the following operations:

[0380] Operation 1: If the first AMF decides to perform primary authentication, the first AMF shall AMF Or the security context protects the authentication request message and sends the authentication request message with security protection, or the first AMF sends the authentication request message without security protection.

[0381] Operation 2: If the first AMF decides not to perform primary authentication, the first AMF shall AMF Either the security context protects the N1 message and sends the N1 message with security protection, or the first AMF shall send the N1 message without security protection.

[0382] Operation 3: The first AMF shall AMF Or N1 message protected by security context, and send N1 message with security protection, including authentication request message.

[0383] Operation 4: The first AMF shall send an N1 message without security protection, including an Authentication Request message.

[0384] The seventh indication information may also be used to indicate any one or more of the following:

[0385] The initial AMF and UE have a secure exchange of NAS messages; a security association is established between the UE and the initial AMF; security protection is activated between the UE and the initial AMF; a new NAS security context is established between the UE and the initial AMF; the initial AMF and UE have a successful NAS SMC process; the initial AMF and UE perform primary authentication; the initial AMF receives a horizontal K from the second AMF AMF Deduces the indication and decides to use the K received from the second AMF AMF or security context; the initial AMF selects a security algorithm different from the security algorithm selected by the second AMF; the first AMF shall send an authentication request message with security protection; the first AMF shall protect the authentication request message; the first AMF shall send an N1 message with security protection, including the authentication request message.

[0386] As another possible implementation of Option 4: If the sixth indication information received by the first AMF and the level K AMF If the first AMF does not perform primary authentication, or the first AMF uses the received K AMF Otherwise, if the first AMF does not receive the level K AMF deduced indication, but receives the sixth indication information, then if the first AMF decides to initiate primary authentication, according to the sixth indication information, the first AMF shall send an authentication request message with security protection; or,

[0387] According to the sixth indication information, the first AMF should send a security-protected N1 message, where the N1 message includes an authentication request message.

[0388] The sixth indication information is used to instruct the first AMF to send a security-protected authentication request message.

[0389] In this implementation, the initial AMF also includes, before the initial AMF calls the first service operation of the first AMF at S595, the initial AMF determines to send sixth indication information (i.e. Fig.11 The method flow shown also includes S5964: the initial AMF determines to send the sixth indication information to the first AMF). Specifically, when the initial AMF determines that the sixth preset condition is satisfied, the initial AMF sends the sixth indication information to the first AMF. Accordingly, the first AMF receives the sixth indication information. Optionally, the initial AMF sends the sixth indication information to the first AMF using the first service operation. The sixth preset condition is any one or more of the following conditions:

[0390] The initial AMF and the UE have performed a secure exchange of NAS messages; the initial AMF and the UE have successfully performed NASSMC; a security association has been established between the UE and the initial AMF; security protection has been activated between the UE and the initial AMF; a new NAS security context has been established between the UE and the initial AMF; a primary authentication has been performed between the UE and the initial AMF; the initial AMF has selected a security algorithm different from the security algorithm selected by the second AMF; the initial AMF has used the security algorithm received from the second AMF by the horizontal K AMF K generated after deduction AMF ; The initial AMF receives the level K from the second AMF AMF Deduces the instruction and decides to use the K received from the second AMF AMF and security context.

[0391] When the sixth preset condition is not met, the initial AMF does not send the sixth indication information to the first AMF. Then the first AMF does not receive the sixth indication information. If the first AMF does not receive the sixth indication information, but receives the level KAMF If the first AMF performs any of the following operations:

[0392] Operation 1: If the first AMF decides to perform primary authentication, the first AMF shall send an Authentication Request message without security protection.

[0393] Operation 2: If the first AMF decides not to perform primary authentication, the first AMF shall AMF Or the security context protects the N1 message and sends the N1 message with security protection, or the first AMF shall send the N1 message without security protection, or the first AMF initiates a NAS SMC;

[0394] Operation three: The first AMF shall send an N1 message without security protection, including an Authentication Request message.

[0395] If the first AMF does not receive the sixth indication information, nor does it receive the level K AMF If the first AMF performs any of the following operations:

[0396] Operation 1: If the first AMF decides to perform primary authentication, the first AMF shall send an authentication request message without security protection, or the first AMF shall AMF Or the security context protects the authentication request message and sends the authentication message with security protection.

[0397] Operation 2: If the first AMF decides not to perform primary authentication, the first AMF shall AMF Or the security context protects the N1 message and sends the N1 message with security protection, or the first AMF shall send the N1 message without security protection;

[0398] Operation three: The first AMF shall send an N1 message without security protection, including an Authentication Request message.

[0399] Operation 4: The first AMF shall send a security-protected N1 message, including an authentication request message.

[0400] The sixth indication information may also be used to indicate any one or more of the following:

[0401] The initial AMF and UE have a secure exchange of NAS messages; a security association is established between the UE and the initial AMF; security protection is activated between the UE and the initial AMF; a new NAS security context is established between the UE and the initial AMF; the initial AMF and UE have a successful NAS SMC process; the initial AMF and UE perform primary authentication; the initial AMF receives a horizontal K from the second AMF AMF Deducing instructions and deciding to use the received KAMF or security context; the initial AMF decides to use the horizontal K received from the second AMF AMF The deduced K AMF ; The initial AMF selects a security algorithm different from the security algorithm selected by the second AMF; The first AMF shall send a security-protected authentication request message; The first AMF shall protect the authentication request message; The first AMF shall send a protected N1 message, including the authentication request message.

[0402] Fig.11 The method flow shown prevents the UE from discarding the received unprotected authentication request message by preventing the first AMF from performing the primary authentication or protecting the authentication request message.

[0403] It should also be understood that in the above method embodiment, the size of the serial number of the above processes does not mean 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 embodiment of the present application.

[0404] Combined with the above Figure 3 , Figure 4 and Fig.11 The registration method provided in the embodiment of the present application is described in detail. Figure 5-Figure 10 The device for registration provided in the embodiment of the present application is introduced in detail.

[0405] See also Figure 5 , Figure 5 is a schematic diagram of a device 10 for registration proposed in this application. Figure 5 As shown, the device 10 includes a receiving unit 110 and a processing unit 120 .

[0406] The receiving unit 110 is configured to receive a first protected message from a first AMF;

[0407] The processing unit 120 is configured to process the protected first message, wherein the first AMF is a target AMF selected to serve the UE when AMF redirection is performed, and the first message is one of the following messages:

[0408] Authentication request message, N1 message, or N1 message other than access layer security mode command message NAS SMC.

[0409] For the convenience of description, the apparatus 10 for registration receiving and processing the protected first message may be described as the apparatus 10 for registration accepting the protected first message.

[0410] In the embodiment of the present application, there is no restriction on how the processing unit of the UE processes the received protected first message. You can refer to the relevant provisions in the current protocol, for example, refer to how the UE processes the protected message specified in the current protocol to obtain the information in the message, which will not be repeated here.

[0411] The apparatus 10 completely corresponds to the user equipment in the method embodiment. The apparatus 10 may be the user equipment in the method embodiment, or a chip or functional module inside the user equipment in the method embodiment. The corresponding unit of the apparatus 10 is used to execute Figure 3 , Figure 4 and Fig.11 The corresponding steps in the method embodiment shown are performed by the user equipment.

[0412] The receiving unit 110 in the device 10 executes the step of receiving by the user equipment in the method embodiment. Figure 3 Step S350 of receiving the NAS security mode command message sent by the initial AMF, executing Figure 3 Step S301 of receiving the first protected message sent by the first AMF, executing Figure 4 Step S450 of receiving the NAS security mode command message sent by the initial AMF, executing Figure 4 Step S496 of receiving the unprotected first message sent by the first AMF, executing Figure 4 Step S481 of receiving the second indication information sent by the initial AMF, executing Fig.11 Step S550 of receiving the NAS security mode command message sent by the initial AMF, executing Fig.11 Step S5952 of receiving the third message sent by the first AMF, executing Fig.11 Steps S5954 and S5957 of receiving the authentication request message with security protection sent by the first AMF, and executing Fig.11 Step S5956 of receiving the authentication request message without security protection sent by the first AMF.

[0413] The processing unit 120 in the apparatus 10 executes the steps implemented or processed inside the user equipment in the method embodiment. For example, Figure 3 Step S340 of performing primary authentication with the initial AMF, executing Figure 4 Step S440 of performing primary authentication with the initial AMF, executing Fig.11 Step S540 of performing primary authentication with the initial AMF.

[0414] The device for registering shown in the device 10 may also include a sending unit ( Figure 5 (not shown in the figure), the sending unit is used to execute the function of sending a message to other devices. For example, executing Figure 3Step S310 of sending an RR message to the initial AMF, executing execution Figure 3 Step S360 of sending a NAS security mode completion message to the initial AMF, executing execution Figure 4 Step S410 of sending an RR message to the initial AMF and executing Figure 4 Step S460 of sending a NAS security mode completion message to the initial AMF.

[0415] The receiving unit 110 and the sending unit may form a transceiver unit, which has both receiving and sending functions. The processing unit 120 may be a processor. The sending unit may be a receiver. The receiving unit 110 may be a transmitter. The receiver and the transmitter may be integrated together to form a transceiver.

[0416] See also Figure 6 , Figure 6 2 is a schematic diagram of the structure of a user device 20 applicable to an embodiment of the present application. The user device 20 can be applied to Figure 1 In the system shown. For ease of explanation, Figure 6 Only the main components of the user equipment are shown. Figure 6 As shown, the user equipment 20 includes a processor, a memory, a control circuit, an antenna, and an input-output device. The processor is used to control the antenna and the input-output device to send and receive signals, the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory to execute the corresponding process and / or operation performed by the user equipment in the registration method proposed in the present application. No further details are given here.

[0417] Those skilled in the art will appreciate that for ease of description, Figure 6 Only one memory and processor are shown. In an actual user device, there may be multiple processors and memories. The memory may also be referred to as a storage medium or a storage device, etc., which is not limited in the embodiments of the present application.

[0418] See also Figure 7 , Figure 7 is a schematic diagram of a device 30 for registration proposed in this application. Figure 7 As shown, the device 30 includes a processing unit 310 and a sending unit 320 .

[0419] The processing unit 310 is configured to determine to send first indication information to a first AMF, where the first indication information is used to instruct the first AMF to protect the first message;

[0420] The sending unit 320 is configured to send the first indication information to the first AMF, wherein the first AMF is a target AMF selected to serve the UE when AMF redirection is performed, and the first message is one of the following messages:

[0421] Authentication request message, N1 message, or N1 message other than access layer security mode command message NAS SMC.

[0422] The device 30 completely corresponds to the initial AMF in the method embodiment. The device 30 may be the initial AMF in the method embodiment, or a chip or functional module inside the initial AMF in the method embodiment. The corresponding units of the device 30 are used to execute Figure 3 , Figure 4 and Fig.11 The corresponding steps in the method embodiment shown are performed by the initial AMF.

[0423] The processing unit 310 in the device 30 executes the steps of initial AMF internal implementation or processing in the method embodiment. For example, Figure 3 Step S396 of determining to send the first indication information to the first AMF, executing Fig.11 Determine whether to perform level K AMF Step S596 of deduction, execution Fig.11 In step S5961, it is determined to send the tenth indication information to the first AMF, and execute Fig.11 In step S5962, it is determined to send the ninth indication information to the first AMF, and execute Fig.11 In step S5963, it is determined to send the eighth indication information to the first AMF, and execute Fig.11 Determine step S5964 of sending the sixth or seventh indication information to the first AMF.

[0424] The sending unit 320 in the device 30 performs the step of sending the initial AMF in the method embodiment. For example, Figure 3 Step S320 of sending the sixth service operation to the second AMF, executing Figure 3 Step S350 of sending a NAS security mode command message to the UE, executing Figure 3 Step S370 of sending the second service operation to the UDM, executing Figure 3 Step S390 of sending the third service operation to NSSF, executing Figure 3 Step S392 of sending the fourth service operation to the second AMF, executing Figure 3 Step S393 of sending the fifth service operation to the NRF, executing Figure 3 S395 of sending the first service operation to the first AMF, executing Figure 4 Step S420 of sending the sixth service operation to the second AMF, executing Figure 4 Step S450 of sending a NAS security mode command message to the UE, executing Figure 4Step S470 of sending the second service operation to the UDM, executing Figure 4 Step S490 of sending the third service operation to NSSF, executing Figure 4 Step S492 of sending the fourth service operation to the second AMF, executing Figure 4 Step S493 of sending the fifth service operation to the NRF, executing Figure 4 S495 of sending the first service operation to the first AMF, executing Figure 4 S481 of sending the second indication information to the UE, executing Fig.11 Step S520 of sending the sixth service operation to the second AMF, executing Fig.11 Step S550 of sending a NAS security mode command message to the UE, executing Fig.11 Step S570 of sending the second service operation to the UDM, executing Fig.11 Step S590 of sending the third service operation to NSSF, executing Fig.11 Step S592 of sending the fourth service operation to the second AMF, executing Fig.11 Step S593 of sending the fifth service operation to the NRF, executing Fig.11 S595 sends the first service operation to the first AMF.

[0425] The device for registration shown in the device 30 may also include a receiving unit ( Figure 7 (not shown in the figure), the receiving unit is used to perform the function of receiving messages sent by other devices. For example, Figure 3 Step S310 of receiving the RR message sent by the UE, executing Figure 3 Step S360 of receiving the NAS security mode completion message sent by the UE, executing Figure 3 Step S330 of receiving the sixth service operation response sent by the second AMF, executing Figure 3 Step S380 of receiving the second service operation response sent by the UDM, executing Figure 3 Step S391 of receiving the third service operation response sent by NSSF, executing Figure 3 Step S394 of receiving the fifth service operation response sent by NRF, executing Figure 4 Step S410 of receiving the RR message sent by the UE, executing Figure 4 Step S460 of receiving the NAS security mode completion message sent by the UE, executing Figure 4 Step S430 of receiving the sixth service operation response sent by the second AMF, executing Figure 4 Step S480 of receiving the second service operation response sent by the UDM, executing Figure 4 Step S491 of receiving the third service operation response sent by NSSF, executing Figure 4 Step S494 of receiving the fifth service operation response sent by NRF, executing Fig.11 Step S510 of receiving the RR message sent by the UE, executing Fig.11 Step S560 of receiving the NAS security mode completion message sent by the UE, executing Fig.11 Step S530 of receiving the sixth service operation response sent by the second AMF, executing Fig.11 Step S580 of receiving the second service operation response sent by the UDM, executing Fig.11 Step S591 of receiving the third service operation response sent by NSSF, executing Fig.11 Step S594 of receiving the fifth service operation response sent by the NRF.

[0426] The receiving unit and the sending unit 320 may form a transceiver unit, which has both receiving and sending functions. Among them, the processing unit 310 may be a processor. The sending unit 320 may be a receiver. The receiving unit may be a transmitter. The receiver and the transmitter may be integrated together to form a transceiver.

[0427] like Figure 8 As shown, the embodiment of the present application further provides an initial AMF 40, which includes a processor 410, a memory 420 and a transceiver 430, wherein the memory 420 stores instructions or programs, and the processor 430 is used to execute the instructions or programs stored in the memory 420. When the instructions or programs stored in the memory 420 are executed, the transceiver 430 is used to execute Figure 7 The operations performed by the sending unit 320 in the device 30 are shown.

[0428] See also Fig. 9 , Fig. 9 is a schematic diagram of a device 50 for registration proposed in this application. Fig. 9 As shown, the device 50 includes a receiving unit 510 , a processing unit 520 and a sending unit 530 .

[0429] A receiving unit 510 is configured to receive first indication information from an initial AMF;

[0430] The processing unit 520 is configured to protect the first message according to the first indication information;

[0431] The sending unit 530 is configured to send the protected first message to the user equipment UE, wherein the device for registering is a target AMF serving the UE selected when AMF redirection is performed, and the first message is one of the following messages:

[0432] Authentication request message, N1 message, or N1 message other than access layer security mode command message NAS SMC.

[0433] The device 50 completely corresponds to the first AMF in the method embodiment. The device 50 may be the first AMF in the method embodiment, or a chip or functional module inside the first AMF in the method embodiment. The corresponding units of the device 50 are used to execute Figure 3 , Figure 4 and Fig.11 The corresponding steps in the method embodiment shown are performed by the first AMF.

[0434] The receiving unit 510 in the device 50 performs the step of receiving the first AMF in the method embodiment. For example, Figure 3 Step S395 of receiving the initial AMF to send the first service operation, executing Figure 4 Step S495 of receiving the initial AMF to send the first service operation.

[0435] The processing unit 520 executes the steps implemented or processed within the first AMF in the method embodiment. For example, Figure 3 Step S399 of determining that AMF redirection has occurred, executing Figure 3 Step S398 of protecting the first message, executing Figure 3 Step S302 of not performing primary authentication according to the first indication information, executing Figure 3 In step S303, the primary authentication is not performed according to the first service operation, and the execution Fig.11 Skip the main authentication step S5951 and execute Fig.11 Step S5953 of protecting the authentication request message, executing Fig.11 Step S5955 of initiating primary authentication, executing Fig.11 Step S5956 of skipping the main authentication or protection authentication request message.

[0436] The sending unit 530 executes the step of sending the first AMF in the method embodiment. For example, Figure 3 Step S301 of sending a first message of protection to the UE, executing Figure 4 Step S496 of sending an unprotected first message to the UE, executing Fig.11 Step S5952 of sending a third message to the UE, executing Fig.11 Steps S5954 and S5957 of sending a security-protected authentication request message to the UE, and executing Fig.11 Step S5956 of sending an authentication request message without security protection to the UE.

[0437] The receiving unit 510 and the sending unit 530 may constitute a transceiver unit, which has both receiving and sending functions. Among them, the processing unit 520 may be a processor. The sending unit 530 may be a receiver. The receiving unit 510 may be a transmitter. The receiver and the transmitter may be integrated together to form a transceiver.

[0438] like Fig.10 As shown, the embodiment of the present application further provides a first AMF 60, the first AMF 60 includes a processor 610, a memory 620 and a transceiver 630, wherein the memory 620 stores instructions or programs, and the processor 630 is used to execute the instructions or programs stored in the memory 620. When the instructions or programs stored in the memory 620 are executed, the transceiver 630 is used to execute Fig. 9 The operations performed by the receiving unit 510 and the sending unit 530 in the device 50 are shown.

[0439] An embodiment of the present application also provides a communication system, which includes the aforementioned initial AMF, a first AMF and one or more user devices.

[0440] The present application also provides a computer-readable storage medium in which instructions are stored. When the instructions are executed on a computer, the computer executes the above-mentioned Figure 3 , Figure 4 and Fig.11 The steps performed by the initial AMF in the method shown.

[0441] The present application also provides a computer-readable storage medium in which instructions are stored. When the instructions are executed on a computer, the computer executes the above-mentioned Figure 3 , Figure 4 and Fig.11 The various steps performed by the first AMF in the method shown.

[0442] The present application also provides a computer-readable storage medium in which instructions are stored. When the instructions are executed on a computer, the computer executes the above-mentioned Figure 3 , Figure 4 and Fig.11 The method shown is a method in which a user equipment performs various steps.

[0443] The present application also provides a computer program product comprising instructions, which, when executed on a computer, causes the computer to execute the following Figure 3 , Figure 4 and Fig.11 The steps performed by the initial AMF in the method shown.

[0444] The present application also provides a computer program product comprising instructions, which, when executed on a computer, causes the computer to execute the following Figure 3 , Figure 4 and Fig.11 The various steps performed by the first AMF in the method shown.

[0445] The present application also provides a computer program product comprising instructions, which, when executed on a computer, causes the computer to execute the following Figure 3 , Figure 4 and Fig.11 The method shown is a method in which a user equipment performs various steps.

[0446] The present 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 the corresponding operations and / or processes performed by a user device in the registration method provided by the present application. Optionally, the chip also includes a memory, which is connected to the processor through a circuit or wire, and the processor is used to read and execute the computer program in the memory. Further optionally, the chip also includes a communication interface, and the processor is connected to the communication interface. The communication interface is used to receive data and / or information to be processed, and the processor obtains the data and / or information from the communication interface and processes the data and / or information. The communication interface can be an input and output interface.

[0447] The present application also provides a chip, including a processor. The processor is used to call and run a computer program stored in a memory to execute the corresponding operations and / or processes performed by the initial AMF in the registration method provided by the present application. Optionally, the chip also includes a memory, which is connected to the processor through a circuit or wire, and the processor is used to read and execute the computer program in the memory. Further optionally, the chip also includes a communication interface, and the processor is connected to the communication interface. The communication interface is used to receive data and / or information to be processed, and the processor obtains the data and / or information from the communication interface and processes the data and / or information. The communication interface can be an input and output interface.

[0448] The present application also provides a chip, including a processor. The processor is used to call and run a computer program stored in a memory to execute the corresponding operations and / or processes performed by the first AMF in the registration method provided by the present application. Optionally, the chip also includes a memory, which is connected to the processor through a circuit or wire, and the processor is used to read and execute the computer program in the memory. Further optionally, the chip also includes a communication interface, and the processor is connected to the communication interface. The communication interface is used to receive data and / or information to be processed, and the processor obtains the data and / or information from the communication interface and processes the data and / or information. The communication interface can be an input and output interface.

[0449] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example 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 performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0450] It should be understood that the above-mentioned chip can also be replaced by a chip system, which will not be described in detail here.

[0451] The terms "including" and "having" and any variations thereof in this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.

[0452] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example 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 performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0453] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0454] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

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

[0456] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0457] If the functions are implemented in the form of 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 the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.

[0458] In addition, the term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the objects associated before and after are in an "or" relationship; the term "at least one" in this application can mean "one" and "two or more". For example, at least one of A, B and C can represent seven situations: A exists alone, B exists alone, C exists alone, A and B exist at the same time, A and C exist at the same time, C and B exist at the same time, and A, B and C exist at the same time.

[0459] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for registration, characterized in that include: The first access and mobility management function AMF receives first indication information from the initial AMF, where the first indication information is used to indicate at least one of the following situations: A secure interaction of NAS messages is performed between the user equipment UE and the initial AMF, the first AMF uses the received NAS security context to protect the first message, and a security context is established between the UE and the initial AMF; The first AMF protects the first message according to the first indication information; The first AMF sends the protected first message to the UE, wherein the first AMF is a target AMF selected to serve the UE when performing AMF redirection, and the first message is one of the following messages: Authentication request message, N1 message, or N1 message other than access layer security mode command message NAS SMC.

2. The method according to claim 1, characterized in that The first AMF receiving the first indication information from the initial AMF includes: The first AMF receives a first service operation from the initial AMF, where the first service operation includes the first indication information.

3. The method according to claim 2, characterized in that The first service operation also includes a non-access stratum NAS security context; The first AMF protecting the first message includes: The first AMF protects the first message using the NAS security context.

4. A method for registration, characterized in that include: The initial access and mobility management function AMF determines to send first indication information to the first AMF, where the first indication information is used to instruct the first AMF to protect the first message, and the first indication information is used to indicate at least one of the following situations: A secure interaction of NAS messages is performed between the user equipment UE and the initial AMF, the first AMF uses the received NAS security context to protect the first message, and a security context is established between the UE and the initial AMF; The initial AMF sends the first indication information to the first AMF, wherein the first AMF is a target AMF selected to serve the UE when AMF redirection is performed, and the first message is one of the following messages: Authentication request message, N1 message, or N1 message other than access layer security mode command message NAS SMC.

5. The method according to claim 4, characterized in that The initial AMF determines to send the first indication information to the first AMF, including: The initial AMF determines to send a first indication information to the first AMF based on a first preset condition, wherein the first preset condition includes a secure interaction of NAS messages between the UE and the initial AMF or a security context established between the UE and the initial AMF.

6. The method according to claim 4 or 5, characterized in that: The initial AMF sending the first indication information to the first AMF includes: The initial AMF sends a first service operation to the first AMF, where the first service operation includes the first indication information.

7. The method according to claim 6, characterized in that The first service operation also includes a NAS security context.

8. A device for registration, characterized in that: include: A receiving unit, configured to receive first indication information from an initial access and mobility management function AMF, where the first indication information is used to indicate at least one of the following situations: A secure interaction of NAS messages is performed between the user equipment UE and the initial AMF, the first AMF uses the received NAS security context to protect the first message, and a security context is established between the UE and the initial AMF; a processing unit, configured to protect the first message according to the first indication information; A sending unit, configured to send the protected first message to the UE, wherein the device for registering is a target AMF serving the UE selected when AMF redirection is performed, and the first message is one of the following messages: Authentication request message, N1 message, or N1 message other than access layer security mode command message NAS SMC.

9. The device according to claim 8, characterized in that The receiving unit receiving the first indication information from the initial AMF includes: The receiving unit receives a first service operation from the initial AMF, where the first service operation includes the first indication information.

10. The device according to claim 9, characterized in that The first service operation also includes a non-access stratum NAS security context; The processing unit protecting the first message includes: The processing unit protects the first message using the NAS security context.

11. A device for registration, characterized in that: include: a processing unit, configured to determine to send first indication information to a first access and mobility management function AMF, where the first indication information is used to instruct the first AMF to protect the first message, where the first indication information is used to indicate at least one of the following situations: A secure interaction of NAS messages is performed between the user equipment UE and the initial AMF, the first AMF uses the received NAS security context to protect the first message, and a security context is established between the UE and the initial AMF; a sending unit, configured to send the first indication information to the first AMF, wherein the first AMF is a target AMF selected to serve the UE when AMF redirection is performed, and the first message is one of the following messages: Authentication request message, N1 message, or N1 message other than access layer security mode command message NAS SMC.

12. The device according to claim 11, characterized in that The processing unit determines to send the first indication information to the first AMF, including: The processing unit determines to send first indication information to the first AMF based on a first preset condition, wherein the first preset condition includes a secure interaction of NAS messages between the UE and the initial AMF or a security context established between the UE and the initial AMF.

13. The device according to claim 11 or 12, characterized in that The sending unit sending the first indication information to the first AMF includes: The sending unit sends a first service operation to the first AMF, where the first service operation includes the first indication information.

14. The device according to claim 13, characterized in that The first service operation also includes a NAS security context.

15. A communication device, characterized in that: include: A memory, the memory being used to store a computer program; A transceiver, the transceiver is used to perform the transceiver step; A processor, wherein the processor is configured to call and execute the computer program from the memory so that the communication device executes the method according to any one of claims 1 to 7.

16. A computer-readable storage medium, characterized in that: include: The computer-readable medium stores a computer program; when the computer program is executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 7.

17. A communication system, characterized in that: include: The device for registration according to any one of claims 8 to 10 and the device for registration according to any one of claims 11 to 14.

Citation Information

Patent Citations

  • Communication system optimizing an registration area and registration method of the communication system

    KR1020180106998A

  • Method for protocol data unit (PDU) session anchor relocation and 5g network registration

    US20190007500A1

  • Apparatuses and methods for protection of an initial non-access stratum (NAS) message

    US20190281649A1

  • Security mechanism for interworking with independent SEAF in 5g networks

    WO2019141520A1