Communication method and communication apparatus

By including identifiers in the security mode command and completion message, the core network equipment and terminal equipment are ensured to use the same parameters for key deduction, which solves the problem of access layer security verification failure caused by retransmission of security mode command message and improves the success rate of access layer security verification.

WO2024255695A1PCT designated stage expired Publication Date: 2024-12-19HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/097954
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-06-14
Filing Date
2024-06-07
Publication Date
2024-12-19

AI Technical Summary

Technical Problem

In the security mode control process between network devices and terminal devices, the retransmission of security mode command messages may cause the network side and the terminal side to use different parameters for key deduction, resulting in access layer security verification failure.

Method used

By including identifiers in the security mode command and completion message, it is ensured that core network devices and terminal devices use the same parameters for key deduction. The core network device determines the message response based on the identifier carried in the received security mode completion message, thereby accurately judging and deducing the key, ensuring that access network devices and terminal devices use the same key for subsequent access layer security verification.

Benefits of technology

It improves the success rate of access layer security verification, reduces security verification failures due to key inconsistencies, and enhances the security between network devices and terminal devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024097954_19122024_PF_FP_ABST
    Figure CN2024097954_19122024_PF_FP_ABST
Patent Text Reader

Abstract

A communication method, comprising: a core network device sends, to a terminal device, a security mode command message comprising a first value of a first identifier, and receives, from the terminal device, a security mode complete message comprising a first value of a second identifier; and when the first value of the first identifier is same as the first value of the second identifier, the core network device deduces a key on the basis of a parameter comprised in the security mode complete message, and provides the deduced key to an access network device. The security mode command message and the security mode complete message carry the identifiers, and on the basis of the identifiers, the core network device can determine that the received security mode complete message is a response of a certain security mode command message, so that the core network device and the terminal device can deduce a key on the basis of the same parameter, and a terminal side and an access network device side can perform subsequent security verification on an access layer on the basis of the same key, thereby improving the possibility of security verification success of the access layer.
Need to check novelty before this filing date? Find Prior Art

Description

Communication method and communication device

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on June 14, 2023, with application number 202310706745.9 and application name “Communication Method and Communication Device”, 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 communication method and a communication device. Background Art

[0003] When the network device starts the security mode control procedure, the network side sends a security mode command message to the terminal side, and the terminal device responds to the security mode command message and replies a security mode complete message to the network side.

[0004] Specifically, the terminal device and the network side may deduce the key based on the parameters in the Security mode complete message. If there is a retransmission of the Security mode command message, some parameters such as NAS count may be misaligned, which in turn causes the network side to use different parameters from the terminal side for key deduction. The key deduced by the network side will be provided to the access network device side so that the access network device can perform subsequent access layer security verification based on the key. If the network side uses different parameters from the terminal side for key deduction, resulting in the terminal side and the access network device side using different keys for subsequent access layer security verification, the access layer security verification will fail. How to improve the possibility of successful access layer security verification has become an urgent problem to be solved.

[0005] Summary of the Invention

[0006] The present application provides a communication method that helps to enable the terminal side and the access network device side to perform subsequent access layer security verification based on the same key, thereby increasing the possibility of successful access layer security verification.

[0007] In a first aspect, a communication method is provided. This method may be executed by a core network device or by a component of the core network device (e.g., a chip or circuit), and this application does not limit this. For ease of description, the following description uses execution by a core network device as an example.

[0008] The communication method includes: a core network device sends a first security mode command message to a terminal device, wherein the first security mode command message includes a first value of a first identifier, and the first value of the first identifier is used to identify the first security mode command message; the core network device receives a first security mode completion message from the terminal device, wherein the first security mode completion message includes a first value of a second identifier, and the first value of the second identifier is used to identify the first security mode completion message; when the first value of the first identifier and the first value of the second identifier are the same, the core network device derives a key according to the parameters included in the first security mode completion message; and the core network device sends the key to an access network device.

[0009] Based on the above scheme, the security mode command message sent by the core network device carries the value of the first identifier to identify the security mode command message. In addition, the security mode completion message sent by the terminal device also carries the value of the second identifier to identify which security mode command message the security mode completion message is a response message to. Therefore, the core network device can determine whether the security mode completion message is a response to the security mode command message based on the value of the second identifier carried in the received security mode completion message, that is, the core network device can determine the current message process, and then the core network device can more accurately determine which security mode completion message carries the parameters to deduce the key, so that the parameters of the key deduced by the core network device can be the same as the parameters of the key deduced by the terminal, and the core network device can provide the deduced key to the access network device, so that the terminal side and the access network device side can perform subsequent access layer security verification based on the same key, thereby increasing the possibility of successful access layer security verification.

[0010] Exemplarily, the key is used to generate a key required for access layer security verification.

[0011] In combination with the first aspect, in certain implementations of the first aspect, before the core network device sends a first security mode command message to the terminal device, the method also includes: the core network device sends a second security mode command message to the terminal device, the second security mode command message including the second value of the first identifier, the second value of the first identifier being used to identify the second security mode command message, wherein the first value of the first identifier and the second value of the first identifier are different.

[0012] Based on the above scheme, when the core network device retransmits the security mode command message, the value of the first identifier carried in the retransmitted security mode command message is different from that carried in the initially transmitted security mode command message, so that the core network device can determine whether the security mode command message is a response to the retransmitted security mode command message or a response to the initially transmitted security mode command message based on the value of the first identifier carried in the received security mode command message.

[0013] Furthermore, the core network device can deduce the key based on the parameters carried in the response message of the retransmitted security mode command message, so that in the event of message retransmission, the parameters used by the core network device to deduce the key can still be the same as the parameters used by the terminal to deduce the key.

[0014] In combination with the first aspect, in certain implementations of the first aspect, before the core network device receives a first security mode completion message from the terminal device, the method also includes: the core network device receives a second security mode completion message from the terminal device, the second security mode completion message includes a second value of the second identifier, and the second value of the second identifier is used to identify the second security mode completion message; wherein, the second value of the second identifier is the same as the second value of the first identifier.

[0015] In this way, the core network device can determine that the second security mode completion message is a response message to the initially transmitted second security mode command message, rather than a response message to the retransmitted first security mode command message, based on the second value of the first identifier carried in the second security mode command message being the same as the second value of the second identifier carried in the second security mode completion message. Thus, the core network device can deduce the key based on the parameters of the first security mode completion message after receiving the first security mode completion message, rather than based on the parameters included in the second security mode completion message. Alternatively, the core network device can deduce the key based on the parameters included in the second security mode completion message, but temporarily not send the key to the access network device.

[0016] In combination with the first aspect, in certain implementations of the first aspect, before the core network device sends a first security mode command message to the terminal device, the method also includes: the core network device sends a third security mode command message to the terminal device, the third security mode command message includes the third value of the first identifier, and the third value of the first identifier is used to identify the third security mode command message; the core network device sends a fourth security mode command message to the terminal device, the fourth security mode command message includes the fourth value of the first identifier, the fourth value of the first identifier is used to identify the fourth security mode command message, the fourth security mode command message is a retransmission message of the third security mode command message, and the fourth value of the first identifier is different from the third value of the first identifier; the core network device receives a fourth security mode completion message from the terminal device, the fourth security mode completion message includes the fourth value of the second identifier, and the fourth value of the second identifier is used to identify the fourth security mode completion message.

[0017] The core network device sends a first security mode command message to the terminal device, including: when the fourth value of the second identifier is the same as the fourth value of the first identifier, and the fourth security mode completion message is used to indicate that the terminal device supports Long Term Evolution LTE communication, the core network device sends the first security mode command message to the terminal device.

[0018] Based on the above solution, the core network device may have retransmitted a certain security mode command message before sending the above-mentioned first security mode command message. For example, the core network device sends a third security mode command message to the terminal device, and sends a fourth security mode command message to the terminal device after the timer expires. The fourth security mode command message is a retransmission message of the third security mode command message. In this case, the core network device can send the first security mode command message to the terminal device after receiving a response message to the retransmitted security mode command message (such as the above-mentioned fourth security mode completion message), so that the core network device clearly learns the capabilities of the terminal device based on the response message to the retransmitted security mode command message, and thus sends parameters that match the capabilities of the terminal device to the terminal device. For example, when this technical solution is applied to a scenario where a core network device activates a security key and an encryption algorithm through a security mode command message, and configures the encryption algorithm through another security mode command message, the core network device needs to determine whether the terminal device has received a response to the security mode command message for activating the security key and the encryption algorithm before sending the security mode command message for configuring the encryption algorithm, so as to avoid key deduction when the security key activation and encryption algorithm activation process fails.

[0019] In combination with the first aspect, in certain implementations of the first aspect, before the core network device receives the fourth security mode completion message from the terminal device, the method also includes: the core network device receives a third security mode completion message from the terminal device, and the third security mode completion message includes the third value of the second identifier, and the third value of the second identifier is used to identify the third security mode completion message; when the third value of the second identifier is different from the fourth value of the first identifier, the core network device discards the third security mode completion message.

[0020] Based on the above scheme, if the core network device retransmits a security mode completion message, the core network device receives a response to the initial transmission of the security mode completion message. It can determine that the response message is not a response to the retransmitted security mode completion message based on the value of the second identifier carried in the response message of the initial transmission of the security mode completion message, and thus the response message can be discarded without processing, saving resources.

[0021] In conjunction with the first aspect, in certain implementations of the first aspect, the parameter included in the first security mode completion message is uplink count value information, specifically a non-access stratum (NAS) uplink count value.

[0022] In combination with the first aspect, in some implementations of the first aspect, the core network device is an access mobility management network element.

[0023] In combination with the first aspect, in some implementations of the first aspect, the first identifier is carried in a message header of the first security mode command message.

[0024] In combination with the first aspect, in some implementations of the first aspect, the method further includes: the core network device saving a first value of the first identifier.

[0025] In a second aspect, a communication method is provided, which can be executed by a terminal device, or by a chip or circuit configured in the terminal device, which is not limited in this application. For convenience, the following description is based on the example of execution by a terminal device.

[0026] The communication method includes: a terminal device receives a first security mode command message from a core network device, the first security mode command message includes a first value of a first identifier, and the first value of the first identifier is used to identify the first security mode command message; the terminal device sends a first security mode completion message to the core network device in response to the first security mode command message, the first security mode completion message includes a first value of a second identifier, and the first value of the second identifier is used to identify the first security mode completion message; wherein the first value of the first identifier and the first value of the second identifier are the same, and the terminal device deduces a key based on the parameters included in the first security mode completion message.

[0027] Exemplarily, the key is used to generate a key required for access layer security verification.

[0028] In combination with the second aspect, in certain implementations of the second aspect, before the terminal device receives the first security mode command message from the core network device, the method also includes: the terminal device receives a second security mode command message from the core network device, the second security mode command message includes the second value of the first identifier, and the second value of the first identifier is used to identify the second security mode command message; the terminal device sends a second security mode completion message to the core network device in response to the second security mode command message, the second security mode completion message includes the second value of the second identifier, and the second value of the second identifier is used to identify the second security mode completion message; wherein, the second value of the second identifier is the same as the second value of the first identifier, and the first value of the first identifier is different from the second value of the first identifier.

[0029] In combination with the second aspect, in some implementations of the second aspect, before the terminal device receives the first security mode command message from the core network device, the method further includes: the terminal device receives a third security mode command message from the core network device, the third security mode command message includes the third value of the first identifier, and the third value of the first identifier is used to identify the third security mode command message; the terminal device sends a third security mode completion message to the core network device in response to the third security mode command message, the third security mode completion message includes the third value of the second identifier, and the third value of the second identifier is used to identify the third security mode completion message; the terminal device receives the third security mode command message from the core network device The fourth security mode command message of the core network device includes the fourth value of the first identifier, the fourth value of the first identifier is used to identify the fourth security mode command message, and the fourth value of the first identifier is different from the third value of the first identifier; the terminal device sends a fourth security mode completion message to the core network device in response to the fourth security mode command message, the fourth security mode completion message includes the fourth value of the second identifier, the fourth value of the second identifier is used to identify the fourth security mode completion message, and the fourth security mode completion message is used to indicate that the terminal device supports long-term evolution LTE communication, triggering the core network device to send the first security mode command message.

[0030] The technical effects of the method shown in the above second aspect and its possible design can refer to the technical effects in the first aspect and its possible design.

[0031] In a third aspect, a communication device is provided for implementing the method described in the first aspect. The device includes a transceiver unit and a processing unit, wherein the transceiver unit is used to send and receive information, and the processing unit is used to perform internal processing actions.

[0032] In a fourth aspect, a communication device is provided for implementing the method described in the second aspect. The device includes a transceiver unit and a processing unit, wherein the transceiver unit is used to send and receive information, and the processing unit is used to perform internal processing actions.

[0033] In a fifth aspect, a communication method is provided, which can be executed by a terminal device, or by a chip or circuit configured in the terminal device, which is not limited in this application. For convenience, the following description is based on the example of execution by a terminal device.

[0034] The communication method includes: a terminal device receives a fifth security mode command message from an access network device; the terminal device performs integrity protection verification and / or decryption on the fifth security mode command message based on a first key; if the integrity protection verification and / or decryption fails, the terminal device performs integrity protection verification and / or decryption on the fifth security mode command message based on a second key, wherein the first key is derived based on a first parameter in a seventh security mode completion message, the second key is derived based on a second parameter in a sixth security mode completion message, the seventh security mode completion message and the sixth security mode completion message are sent in a non-access layer security mode control process, and the sixth security mode completion message is sent before the seventh security mode completion message.

[0035] Based on the above scheme, after receiving the security mode command message from the access network device, the terminal device performs integrity protection verification and / or decryption on the security mode command message. If the integrity protection verification and / or decryption fails, the key can be rolled back to perform integrity protection verification and / or decryption again. The key used by the terminal device is derived based on different parameters, and the different parameters are carried in different security mode completion messages. The different security mode completion messages are security mode completion messages sent by the terminal device to the core network device in the non-access layer security mode control process. The core network device can also perform key deduction based on the parameters in the different security mode completion messages to obtain the corresponding key, and provide the deduced key to the access network device, so that the access network device can perform subsequent access layer security verification based on the corresponding key.

[0036] In this technical solution, the key on the access network device side is provided by the core network device, and the core network device receives multiple security mode completion messages from the terminal device. The parameter used by the core network device to deduce the key may be the parameter carried in one of the multiple security mode completion messages. The parameter may be different from the parameter used by the terminal device to deduce the key. Therefore, if the terminal device fails to verify and the key is rolled back for re-verification, the key used may be exactly the same as the key provided by the core network device to the access network device, so that the terminal side and the access network device side can perform subsequent access layer security verification based on the same key, thereby increasing the possibility of successful access layer security verification.

[0037] In combination with the fifth aspect, in some implementations of the fifth aspect, the method also includes: in the non-access layer security mode control process, the terminal device receives a sixth security mode command message from the core network device; in response to the sixth security mode command message, the terminal device sends the sixth security mode completion message to the core network device, and derives the second key based on the second parameter; the terminal device receives a seventh security mode command message from the core network device, and after sending the sixth security mode completion message, the terminal device sends the seventh security mode completion message to the core network device in response to the seventh security mode command message, and derives the first key based on the first parameter.

[0038] In combination with the fifth aspect, in certain implementations of the fifth aspect, the method further includes: the terminal device saves the second key, wherein the terminal device derives the second key after the terminal device generates the sixth security mode completion message or after the terminal device sends the sixth security mode completion message, or after the terminal device determines the second parameter in the sixth security mode completion message.

[0039] Based on the above solution, the terminal device can save the deduced key so that when the key needs to be used to perform integrity protection verification on the security mode command message received from the access network device in the future, the key can be directly used for verification, thereby improving the verification processing speed.

[0040] In combination with the fifth aspect, in certain implementations of the fifth aspect, after the terminal device generates the sixth security mode completion message or after the terminal device sends the sixth security mode completion message, or after the terminal device determines the second parameter in the sixth security mode completion message, the method further includes: the terminal device saves the second parameter; and the terminal device derives the second key based on the second parameter after the verification fails.

[0041] Based on the above scheme, the terminal device can save the parameters in the security mode completion message. When it is necessary to use the parameters to deduce the key and perform integrity protection verification on the security mode command message received from the access network device based on the key, the parameter can be used to deduce the key and use it. Compared with saving the key derived from the parameter, a certain amount of storage space can be saved.

[0042] In combination with the fifth aspect, in certain implementations of the fifth aspect, before the terminal device performs integrity protection verification on the fifth security mode command message based on the second key, the method also includes: the terminal device determines that the number of times integrity protection verification is performed on the fifth security mode command message is less than a first threshold.

[0043] Based on the above solution, the terminal device can determine the number of multiple verifications according to the first threshold value to avoid continuous attempts to complete the security test, which may bring security risks.

[0044] In combination with the fifth aspect, in certain implementations of the fifth aspect, if the terminal device fails to perform integrity protection verification on the fifth security mode command message based on the second key, the method further includes: the terminal device determines that the verification has failed; or, the terminal device performs integrity protection verification on the fifth security mode command message based on a third key, wherein the third key is deduced based on the third parameter in the fifth security mode completion message, and the fifth security mode completion message is sent in the non-access layer security mode control process and is sent earlier than the sixth security mode completion message.

[0045] In combination with the fifth aspect, in certain implementations of the fifth aspect, the first parameter is first uplink count value information, the second parameter is second uplink count value information, and the third parameter is third uplink count value information.

[0046] In combination with the fifth aspect, in certain implementations of the fifth aspect, the core network device is an access mobility management network element.

[0047] In a sixth aspect, a communication device is provided for implementing the method described in the sixth aspect. The device includes a transceiver unit and a processing unit, wherein the transceiver unit is used to send and receive information, and the processing unit is used to perform internal processing actions.

[0048] In a seventh aspect, a communication method is provided. This method can be executed by a core network device or by a component of the core network device (e.g., a chip or circuit), and this application does not limit this. For ease of description, the following description is based on the core network device as an example.

[0049] The communication method includes: a core network device receiving an eighth security mode completion message from a terminal device, the eighth security mode completion message including a fourth parameter; if a security mode command message has been retransmitted due to a first timer expiring before receiving the eighth security mode completion message, the core network device starting a second timer;

[0050] When the second timer times out and no other security mode completion message is received from the terminal device, the core network device sends a fourth key to the access network device, where the fourth key is derived based on the fourth parameter; or

[0051] Before the second timer expires, the core network device receives a ninth security mode completion message from the terminal device, and the core network device derives a fifth key based on the fifth parameter in the ninth security mode completion message and sends the fifth key to the access network device.

[0052] Based on the above solution, before the core network device receives the security mode completion message from the terminal device to derive the key, if it determines that the security mode command message has been retransmitted due to the expiration of the first timer, it will temporarily not send the key to the access network device. The core network device starts the second timer, and waits for the second timer to time out before sending the key to the access network device or receives the security mode completion message again before deriving a new key and sending the new key to the access network device. This prevents the core network from prematurely sending the key derived based on the parameters in the received eighth security mode completion message to the access network device. After the terminal device sends the ninth security mode completion message, it also sends the ninth security mode completion message. The terminal device will derive the key based on the parameters carried in the ninth security mode completion message. If the core network device delays sending the key, it can make the core network device more likely to derive the key based on the parameters carried in the ninth security mode completion message after receiving the ninth security mode completion message, so that the key sent by the core network device to the access network device can be the same as the key used by the terminal, so that the terminal side and the access network device side can perform subsequent access layer security verification based on the same key, thereby increasing the possibility of successful access layer security verification.

[0053] In conjunction with the seventh aspect, in certain implementations of the seventh aspect, the method further includes: the core network device deriving the fourth key based on the fourth parameter. Optionally, the derivation of the fourth key is performed after the second timer expires. Optionally, the derivation of the fourth key is not limited to being performed after the second timer expires, for example, the derivation is performed after receiving the eighth security mode completion message.

[0054] In combination with the seventh aspect, in certain implementations of the seventh aspect, before the core network device receives the eighth security mode completion message from the terminal device, the method also includes: the core network device sends an eighth security mode command message to the terminal device and starts the first timer; after the first timer expires, the core network device sends a ninth security mode command message to the terminal device, wherein the ninth security mode command message is a retransmission message of the eighth security mode command message.

[0055] In combination with the seventh aspect, in certain implementations of the seventh aspect, the fourth parameter is fourth uplink count value information, and the fifth parameter is fifth uplink count value information.

[0056] In combination with the seventh aspect, in some implementations of the seventh aspect, the core network device is an access mobility management network element.

[0057] In an eighth aspect, a communication device is provided for implementing the method described in the seventh aspect. The device includes a transceiver unit and a processing unit, wherein the transceiver unit is used to send and receive information, and the processing unit is used to perform internal processing actions.

[0058] In a ninth aspect, a communication method is provided. This method can be executed by a core network device or by a component of the core network device (e.g., a chip or circuit), and this application does not limit this. For ease of description, the following description is based on the core network device as an example.

[0059] The communication method includes: a core network device receives an eighth security mode completion message from a terminal device; if, before receiving the eighth security mode completion message, a security mode command message has been retransmitted due to a first timer timing out, the core network device starts a third timer; if no other security mode completion message is received from the terminal device after the third timer times out, the core network device sends a tenth security mode command message to the terminal device and restarts the first timer; or,

[0060] Before the third timer times out, the core network device receives a ninth security mode completion message from the terminal device. After receiving the ninth security mode completion message, the core network device sends a tenth security mode command message to the terminal device and restarts the first timer.

[0061] Based on the above scheme, when the security mode command messages sent by the core network device to the terminal device in sequence include the eighth security mode command message and the ninth security mode command message, and the ninth security mode command message is a retransmission message of the eighth security mode command message, the time for sending subsequent security mode command messages is postponed, so that the core network device can send subsequent security mode command messages after receiving the response message of the retransmitted security mode command message (such as the ninth security mode command message), so as to avoid the core network device mistakenly believing that the response message of the received ninth security mode command message is the response message of the subsequently sent security mode command message, and using parameters different from those on the terminal device side to deduce the key, resulting in failure of the access layer security verification.

[0062] In combination with the ninth aspect, in certain implementations of the ninth aspect, before the core network device receives the eighth security mode completion message from the terminal device, the method also includes: the core network device sends an eighth security mode command message to the terminal device and starts the first timer; after the first timer expires, the core network device sends a ninth security mode command message to the terminal device, wherein the ninth security mode command message is a retransmission message of the eighth security mode command message.

[0063] In combination with the ninth aspect, in certain implementations of the ninth aspect, the core network device is an access mobility management network element.

[0064] In a tenth aspect, a communication device is provided for implementing the method described in the ninth aspect. The device includes a transceiver unit and a processing unit, wherein the transceiver unit is used to send and receive information, and the processing unit is used to perform internal processing actions.

[0065] In an eleventh aspect, a communication method is provided. This method can be executed by an access network device or by a component of the access network device (e.g., a chip or circuit), and this application does not limit this. For ease of description, the following description uses execution by an access network device as an example.

[0066] The communication method includes: an access network device receives a fourth key from a core network device; the access network device performs integrity protection on an access layer security mode command message based on the fourth key, and then sends the access layer security mode command message to a terminal device; the access network device receives an access layer security mode failure message from the terminal device; the access network device sends a first request message to the core network device, wherein the first request message is used to request a key; the access network device receives a fifth key from the core network device; and the access network device performs an access layer security mode control process again based on the fifth key.

[0067] Based on the above scheme, when the access network device receives a security mode failure message from the terminal device, it will not directly send a release connection message to the UE, but can re-request the core network device to provide a key, and re-initiate the access layer security mode control process based on the key regained from the core network device, wherein the key used by the access network device to initiate the access layer security mode control process twice is derived based on different parameters, and the different parameters are carried in different security mode completion messages, and the different security mode completion messages are security mode completion messages sent by the terminal device to the core network device in the non-access layer security mode control process. Specifically, the core network device performs key deduction based on the parameters in the different security mode completion messages to obtain the corresponding key, and provides the deduced key to the access network device, so that the access network device can perform subsequent access layer security verification based on the corresponding key.

[0068] In combination with the eleventh aspect, in certain implementations of the eleventh aspect, the fourth key is derived based on the fourth parameter in the eighth security mode completion message, the fifth key is derived based on the fifth parameter in the ninth security mode completion message, the eighth security mode completion message and the ninth security mode completion message are sent in the non-access layer security mode control process, and the eighth security mode completion message is sent before the ninth security mode completion message.

[0069] In this technical solution, the key on the access network device side is provided by the core network device, and the core network device receives multiple security mode completion messages from the terminal device. The parameter used by the core network device to deduce the key may be the parameter carried in one of the multiple security mode completion messages. The parameter may be different from the parameter used by the terminal device to deduce the key. Therefore, if the access network device obtains the key from the core network device again after receiving the access layer security mode failure message, and initiates the access layer security mode control process again based on the obtained key, the key used may be exactly the same as the key based on which the terminal device verifies the access layer security mode command message, so that the terminal side and the access network device side can perform subsequent access layer security verification based on the same key, thereby increasing the possibility of successful access layer security verification.

[0070] In combination with the eleventh aspect, in certain implementations of the eleventh aspect, the access network device sending a first request message to the core network device includes: when the access layer security mode failure message indicates that the integrity protection check of the access layer security mode command message has failed, the access network device sending a first request message to the core network device.

[0071] In combination with the eleventh aspect, in certain implementations of the eleventh aspect, the core network device is an access mobility management network element.

[0072] In a twelfth aspect, a communication method is provided. This method can be executed by a core network device or by a component of the core network device (e.g., a chip or circuit), and this application does not limit this. For ease of description, the following description uses the core network device as an example.

[0073] The communication method includes: a core network device receives an eighth security mode completion message from a terminal device, wherein the eighth security mode completion message includes a fourth parameter; the core network device derives a fourth key based on the fourth parameter, and sends the fourth key to an access network device; the core network device receives a ninth security mode completion message from the terminal device, wherein the ninth security mode completion message includes a fifth parameter; the core network device receives a first request message from the access network device, wherein the first request message is used to request a key; the core network device sends a fifth key to the access network device, wherein the fifth key is derived based on the fifth parameter.

[0074] In combination with the twelfth aspect, in certain implementations of the twelfth aspect, before the core network device receives the eighth security mode completion message from the terminal device, the method also includes: the core network device sends an eighth security mode command message to the terminal device and starts the first timer; after the first timer expires, the core network device sends a ninth security mode command message to the terminal device, wherein the ninth security mode command message is a retransmission message of the eighth security mode command message.

[0075] In conjunction with the twelfth aspect, in certain implementations of the twelfth aspect, the method further includes: the core network device deriving the fifth key based on the fifth parameter. Optionally, the derivation of the fifth key is performed after receiving the first request message. Optionally, the derivation of the fifth key is not limited to being performed after receiving the first request message, for example, the derivation is performed after receiving the ninth security mode completion message.

[0076] In combination with the twelfth aspect, in some implementations of the twelfth aspect, the method further includes: the core network device storing the fifth key and / or the fifth parameter.

[0077] In combination with the twelfth aspect, in certain implementations of the twelfth aspect, the core network device is an access mobility management network element.

[0078] In a thirteenth aspect, a communication device is provided for implementing the method shown in the eleventh aspect. The device includes a transceiver unit and a processing unit, wherein the transceiver unit is used to send and receive information, and the processing unit is used to perform internal processing actions.

[0079] In a fourteenth aspect, a communication device is provided for implementing the method shown in the twelfth aspect. The device includes a transceiver unit and a processing unit, wherein the transceiver unit is used to send and receive information, and the processing unit is used to perform internal processing actions.

[0080] In a fifteenth aspect, a communication method is provided. This method may be executed by an access network device or by a component of the access network device (e.g., a chip or circuit), and this application does not limit this. For ease of description, the following description uses execution by an access network device as an example.

[0081] The communication method includes: an access network device receiving a fourth key from a core network device; after the access network device performs integrity protection on an access layer security mode command message based on the fourth key, the access network device sends the access layer security mode command message to a terminal device; the access network device receives an access layer security mode failure message from the terminal device; and the access network device starts a fourth timer;

[0082] If the fifth key is not received from the core network device when the fourth timer times out, the access network device sends a radio resource control release message to the terminal device; or

[0083] Before the fourth timer times out, the access network device receives the fifth key from the core network device, and the access network device performs the access layer security mode control process again based on the fifth key.

[0084] Based on the above solution, when the access network device receives a security mode failure message from the terminal device, it may temporarily not send back a connection release message, but instead start a fourth timer, wait until the fourth timer expires, and then send a connection release message to the terminal device to release the connection between the terminal device and the access network device. Alternatively, if another key provided by the core network is received before the fourth timer expires, the access network device may retry initiating the access layer security mode control process based on the received key, thereby increasing the likelihood of successful access layer security verification.

[0085] In conjunction with the fifteenth aspect, in certain implementations of the fifteenth aspect, the fourth key is derived based on the fourth parameter in the eighth security mode complete message, the fifth key is derived based on the fifth parameter in the ninth security mode complete message, the eighth security mode complete message and the ninth security mode complete message are sent in the non-access stratum security mode control process, and the eighth security mode complete message is sent before the ninth security mode complete message. In this technical solution, the keys used by the access network device to initiate the access stratum security mode control process twice are derived based on different parameters, and the different parameters are carried in different security mode complete messages. The different security mode complete messages are security mode complete messages sent by the terminal device to the core network device in the security mode control process. Specifically, the core network device derives the corresponding key based on the parameters in the different security mode complete messages, and provides the derived key to the access network device, so that the access network device can perform subsequent access stratum security verification based on the corresponding key.

[0086] That is, the key on the access network device side is provided by the core network device, and the core network device receives multiple security mode completion messages from the terminal device. The parameter used by the core network device to deduce the key may be the parameter carried in one of the multiple security mode completion messages. The parameter may be different from the parameter used by the terminal device to deduce the key. Therefore, if the access network device obtains the key from the core network device again after receiving the access layer security mode failure message, and initiates the access layer security mode control process again based on the obtained key, the key used may be exactly the same as the key based on which the terminal device verifies the access layer security mode command message, so that the terminal side and the access network device side can perform subsequent access layer security verification based on the same key, thereby increasing the possibility of successful access layer security verification.

[0087] In combination with the fifteenth aspect, in certain implementations of the fifteenth aspect, after the access network device receives the fifth key, the fourth timer is stopped.

[0088] In a fifteenth aspect, a communication device is provided for implementing the method shown in the fourteenth aspect. The device includes a transceiver unit and a processing unit, wherein the transceiver unit is used to send and receive information, and the processing unit is used to perform internal processing actions.

[0089] In the sixteenth aspect, a communication system is provided, comprising a core network device and a terminal device, wherein the core network device is used to execute the method shown in the above-mentioned first aspect, and the terminal device executes the method shown in the above-mentioned second aspect.

[0090] In the seventeenth aspect, a communication device is provided, which includes: a memory for storing programs; a processor for executing the programs stored in the memory, and when the programs stored in the memory are executed, the processor is used to execute the methods provided in the above aspects.

[0091] In the eighteenth aspect, the present application provides a processor for executing the methods provided in the above aspects. In the process of executing these methods, the process of sending the above information and obtaining / receiving the above information in the above methods can be understood as the process of the processor outputting the above information, and the process of the processor receiving the input above information. When outputting the above information, the processor outputs the above information to the transceiver so that the transceiver can transmit it. After being output by the processor, the above information may also need to undergo other processing before reaching the transceiver. Similarly, when the processor receives the input above information, the transceiver obtains / receives the above information and inputs it into the processor. Furthermore, after the transceiver receives the above information, the above information may need to undergo other processing before being input into the processor.

[0092] Based on the above principles, for example, the receiving request message mentioned in the above method can be understood as the processor receiving input information.

[0093] For the operations such as transmission, sending and acquisition / reception involved in the processor, unless otherwise specified, or if they do not conflict with their actual functions or internal logic in the relevant descriptions, they can be more generally understood as processor output, reception, input and other operations, rather than the transmission, sending and receiving operations directly performed by the RF circuit and antenna.

[0094] During implementation, the processor may be a processor specifically configured to execute these methods, or may be a processor that executes computer instructions in a memory to execute these methods, such as a general-purpose processor. The memory may be a non-transitory memory, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed on separate chips. The embodiments of the present application do not limit the type of memory or the configuration of the memory and the processor.

[0095] In a nineteenth aspect, a computer-readable storage medium is provided, which stores a program code for execution by a device, and the program code includes a method for executing the methods provided in the above aspects.

[0096] In the twentieth aspect, a computer program product comprising instructions is provided, which, when run on a computer, enables the computer to execute the methods provided in the above aspects.

[0097] In the twenty-first aspect, a chip is provided, which includes a processor and a communication interface. The processor reads instructions stored in a memory through the communication interface to execute the methods provided in the above aspects.

[0098] Optionally, as an implementation method, the chip may further include a memory storing instructions, and the processor is used to execute the instructions stored in the memory. When the instructions are executed, the processor is used to execute the methods provided in the above aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0099] FIG1 is a schematic diagram of a network architecture 100 provided in this application.

[0100] FIG2 is a schematic diagram of a specific flow of a security mode command procedure provided by the present application when a bottom layer abnormality occurs in a UE.

[0101] FIG3 is a schematic flow chart of a communication method provided in this application.

[0102] FIG4 is a schematic flow chart of another communication method provided in the present application.

[0103] FIG5 is a schematic flowchart of another communication method provided in the present application.

[0104] FIG6 is a schematic flowchart of another communication method provided in the present application.

[0105] FIG7 is a schematic flowchart of another communication method provided in this application.

[0106] FIG8 is a schematic flowchart of another communication method provided in the present application.

[0107] FIG9 is a schematic flowchart of another communication method provided in this application.

[0108] FIG10 is a schematic flowchart of another communication method provided in the present application.

[0109] FIG11 is a schematic flowchart of another communication method provided in the present application.

[0110] FIG12 is a schematic flowchart of another communication method provided in the present application.

[0111] FIG13 is a schematic block diagram of a communication device 10 provided in an embodiment of the present application.

[0112] FIG14 is a schematic diagram of another communication device 20 provided in an embodiment of the present application.

[0113] FIG15 is a schematic diagram of a chip system 30 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0114] The technical solution in this application will be described below with reference to the accompanying drawings.

[0115] The technical solutions provided in this application can be applied to various communication systems, such as new radio (NR) systems, long term evolution (LTE) systems, LTE frequency division duplex (FDD) systems, LTE time division duplex (TDD) systems, etc. The technical solutions provided in this application can also be applied to device-to-device (D2D) communication, vehicle-to-everything (V2X) communication, machine-to-machine (M2M) communication, machine type communication (MTC), and Internet of Things (IoT) communication systems or other communication systems.

[0116] In the communication system, the part operated by the operator can be called a public land mobile network (PLMN), or an operator network, etc. PLMN is a network established and operated by the government or an operator approved by it for the purpose of providing land mobile communication services to the public. It is mainly a public network in which mobile network operators (MNOs) provide mobile broadband access services to users. The PLMN described in the embodiment of the present application may specifically be a network that meets the requirements of the 3GPP standard, referred to as a 3GPP network. 3GPP networks generally include but are not limited to 5G networks, fourth-generation mobile communications (4th-generation, 4G) networks, and other future communication systems, such as (6th-generation, 6G) networks, etc. This technical solution is also applicable to SNPN (Stand-alone Non-Public Network).

[0117] For the convenience of description, the embodiments of the present application will be described using PLMN or 5G network as an example.

[0118] Figure 1 is a schematic diagram of a network architecture 100 provided in this application, taking the 5G network architecture based on a service-oriented architecture for non-roaming scenarios defined during the 3GPP standardization process as an example. As shown in the figure, the network architecture can be comprised of three components: the terminal device component, the DN, and the operator network PLMN component. The following briefly describes the functions of the network elements in each component.

[0119] The terminal device part may include a terminal device 110, which may also be referred to as user equipment (UE). The terminal device 110 in this application is a device with wireless transceiver functions, which can communicate with one or more core network (CN) devices via an access network device (or also referred to as an access device) in a radio access network (RAN) 140. The terminal device 110 may also be referred to as an access terminal, terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, user agent or user device, etc. The terminal device 110 may be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; it may also be deployed on water (such as ships, etc.); it may also be deployed in the air (such as airplanes, balloons and satellites, etc.). The terminal device 110 may be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a smart phone, a mobile phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), etc. Alternatively, the terminal device 110 may be a handheld device with wireless communication capabilities, a computing device, or other device connected to a wireless modem, an in-vehicle device, a wearable device, an unmanned aerial vehicle (UAV), or a terminal in the Internet of Things (IoT), the Internet of Vehicles (IoV), any terminal in a 5G network or future networks, a relay user device, or a terminal in a future evolving 6G network, etc. The relay user device may be, for example, a 5G residential gateway (RG). For example, the terminal device 110 can be a virtual reality (VR) terminal, an augmented reality (AR) terminal, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc. The terminal device here refers to a 3GPP terminal. The embodiments of the present application do not limit the type or category of the terminal device. For ease of explanation, this application will be described later using UE as an example to refer to the terminal device.

[0120] The operator network PLMN part may include but is not limited to the (radio) access network (R)AN) 120 and the core network (CN) part.

[0121] (R)AN 120 can be considered a subnetwork of the operator network, serving as the implementation system between service nodes in the operator network and terminal device 110. To access the operator network, terminal device 110 first passes through (R)AN 120, which then connects to service nodes in the operator network. The access network device (RAN device) in the embodiment of the present application is a device that provides wireless communication functions for the terminal device 110, and can also be called a network device. The RAN device includes but is not limited to: the next generation node base station (gNB) in the 5G system, the evolved node B (eNB) in the long term evolution (LTE), the radio network controller (RNC), the node B (NB), the base station controller (BSC), the base transceiver station (BTS), the home base station (for example, home evolved node B, or home node B, HNB), the base band unit (BBU), the transmission point (TRP), the transmitting point (TP), the small base station device (pico), the mobile switching center, or the network device in the future network. In systems using different wireless access technologies, the name of the device with the access network device function may be different. For the convenience of description, in all embodiments of the present application, the above-mentioned device that provides wireless communication functions for the terminal device 110 is collectively referred to as the access network device or simply referred to as RAN or AN. It should be understood that this document does not limit the specific type of access network equipment.

[0122] The CN part may include but is not limited to the following NFs: user plane function (UPF) 130, network exposure function (NEF) 131, network function repository function (NRF) 132, policy control function (PCF) 133, unified data management function (UDM) 134, unified data repository function (UDR) 135, network data analytics function (NWDAF) 136, authentication server function (AUSF) 137, access and mobility management function (AMF) 138, and session management function (SMF) 139.

[0123] Data network DN 140, also known as a packet data network (PDN), is typically located outside of a carrier network, such as a third-party network. Of course, in some implementations, the DN may also be deployed by the carrier, meaning that the DN is part of a PLMN. This application does not restrict whether the DN is a PLMN. A carrier network PLMN can access multiple data network DNs 140, and various services can be deployed on the data network DN 140, providing data and / or voice services to the terminal device 110. For example, data network DN 140 may be the private network of a smart factory, where sensors installed in the workshop may be terminal devices 110. A control server for the sensors is deployed within data network DN 140, and the control server can provide services to the sensors. The sensors can communicate with the control server, obtain instructions from the control server, and transmit collected sensor data to the control server according to the instructions. For another example, data network DN 140 may be a company's internal office network, where the company's employees' mobile phones or computers may be terminal devices 110, allowing the employees' mobile phones or computers to access information and data resources on the company's internal office network. Terminal device 110 can establish a connection with the operator network through an interface provided by the operator network (e.g., N1) and use data and / or voice services provided by the operator network. Terminal device 110 can also access data network DN 140 through the operator network and use operator services deployed on data network DN 140 and / or services provided by third parties.

[0124] The following is a brief description of the NF functions included in CN.

[0125] 1. UPF 130 is a gateway provided by the operator, serving as the gateway for communication between the operator network and the data network DN 140. UPF 130 includes user-plane-related functions such as packet routing and transmission, packet inspection, service usage reporting, Quality of Service (QoS) processing, lawful interception, uplink packet inspection, and downlink packet storage.

[0126] 2. NEF 131 is a control plane function provided by the operator. It mainly enables third parties to use the services provided by the network, supports the network to open its capabilities, event and data analysis, provides PLMN security configuration information from external applications, and converts interactive information inside and outside the PLMN. It provides an API interface open to the operator network and provides interaction between external servers and internal operator networks.

[0127] 3. NRF 132 is a control plane function provided by the operator. It is used to maintain real-time information about network functions and services in the network. For example, it supports network service discovery, maintains the services supported by the NF profile of the NF instance, supports service discovery of the service communication proxy (SCP), maintains the SCP profile of the SCP instance, sends notifications about newly registered, deregistered, and updated NFs and SCPs, and maintains the health status of NF and SCP operations.

[0128] 4. PCF 133 is the control plane function provided by the operator. It supports a unified policy framework to govern network behavior, provide policy rules to other control functions, and provide contract information related to policy decisions.

[0129] 5. UDM 134 is a control plane function provided by the operator, responsible for storing information such as the subscriber permanent identifier (SUPI) of the subscriber in the operator network, the generic public subscription identifier (GPSI) of the subscriber, and credentials. The SUPI will be encrypted during transmission, and the encrypted SUPI is called a hidden subscriber subscription identifier (SUCI). The information stored in UDM 134 can be used for authentication and authorization of the terminal device 110 to access the operator network. The subscribers of the above-mentioned operator network can specifically be users who use the services provided by the operator network, such as users who use China Telecom's mobile phone SIM card (Subscriber Identity Module, SIM card) or users who use China Mobile's mobile phone SIM card. The credentials of the above-mentioned subscribers can be a small file storing long-term keys stored in the mobile phone SIM card or information related to the encryption of the mobile phone SIM card, which is used for authentication and / or authorization. It should be noted that permanent identifiers, credentials, security contexts, authentication data (cookies), and tokens are equivalent to verification / authentication and authorization-related information. In the embodiments of this application, no distinction or restriction is made for the sake of convenience of description.

[0130] 6. UDR 135 is a control plane function provided by the operator. It provides the UDM with the functions of storing and retrieving subscription data, the PCF with the functions of storing and retrieving policy data, and the user's NF group ID information.

[0131] 7. NWDAF 136 is a control plane function provided by the operator. Its primary function is to collect data from the NF, external application function (AF), and operations, administration, and maintenance (OAM) systems, and to provide NWDAF service registration, data exposure, and data analysis to the NF and AF. In this application, NWDAF is primarily responsible for security-related data analysis. Therefore, NWDAF can also be understood as a network element with security analysis capabilities. The term "NWDAF" is merely an example, and other network element names may be used in the future. This application does not limit this.

[0132] 8. AUSF 137 is a control plane function provided by the operator and is typically used for level 1 authentication, that is, authentication between the terminal device 110 (subscriber) and the operator's network. After receiving an authentication request initiated by the subscriber, AUSF 137 can authenticate and / or authorize the subscriber using the authentication information and / or authorization information stored in UDM 134, or generate authentication and / or authorization information for the subscriber through UDM 134. AUSF 137 can also provide the subscriber with feedback on the authentication and / or authorization information.

[0133] 9. AMF 138 is a control plane network function provided by the operator network, responsible for access control and mobility management of the terminal device 110 accessing the operator network, such as mobility status management, allocation of user temporary identity, authentication and authorization of users, etc.

[0134] The AMF 138 is used to establish a NAS connection with the UE and has the same 5G NAS security context as the UE. The 5G NAS security context includes the KAMF, key identification information with the same NAS layer key, UE security capabilities, and uplink and downlink NAS count values. NAS layer keys include NAS encryption keys and NAS integrity protection keys, which are used for confidentiality protection and integrity protection of NAS messages, respectively.

[0135] 10. SMF 139 is a control plane network function provided by the operator network and is responsible for managing the PDU session of the terminal device 110. A PDU session is a channel for transmitting PDUs. The terminal device needs to transmit PDUs to and from the data network DN 140 through a PDU session. The SMF 139 is responsible for establishing, maintaining, and deleting PDU sessions. SMF 139 includes session management (such as session establishment, modification, and release, including tunnel maintenance between the user plane function UPF 130 and (R)AN 120), selection and control of the UPF 130, service and session continuity (SSC) mode selection, roaming, and other session-related functions.

[0136] 11. AF 141 is a control plane network function provided by the operator network. It is used to provide application layer information and can interact with the policy framework through network open function elements or directly interact with the policy framework to make policy decision requests. It can be located inside or outside the operator network.

[0137] It is understood that the above network elements or functions can be physical entities in hardware devices, software instances running on dedicated hardware, or virtualized functions instantiated on a shared platform (e.g., a cloud platform). Simply put, an NF can be implemented by hardware or software.

[0138] In Figure 1, Nnef, Nnrf, Npcf, Nudm, Nudr, Nnwdaf, Nausf, Namf, Nsmf, N1, N2, N3, N4, and N6 are interface serial numbers. For example, the meaning of the above interface serial numbers can be found in the meaning defined in the 3GPP standard protocol, and this application does not limit the meaning of the above interface serial numbers. It should be noted that the interface name between the various network functions in the figure is only an example. In a specific implementation, the interface name of the system architecture may also be other names, which is not limited by this application. In addition, the name of the message (or signaling) transmitted between the above network elements is only an example and does not constitute any limitation on the function of the message itself.

[0139] For ease of explanation, in the embodiments of this application, network functions (such as NEF 131…SMF 139) are collectively referred to as NFs. That is, the NFs described later in the embodiments of this application can be replaced with any network function. Furthermore, FIG1 schematically illustrates only some network functions, and the NFs described later are not limited to those shown in FIG1.

[0140] It should be understood that the above-mentioned network architecture applied to the embodiment of the present application is only a network architecture described from the perspective of service-oriented architecture. 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.

[0141] It should also be understood that the AMF, SMF, UPF, NEF, AUSF, NRF, PCF, and UDM shown in the figure can be understood as network elements used to implement different functions in the core network, for example, they can be combined into network slices as needed. These core network network elements can be independent devices or integrated into the same device to implement different functions. This application does not limit the specific form of the above network elements.

[0142] It should also be understood that the above naming is defined only to facilitate the distinction between different functions and should not constitute any limitation to this application. This application does not exclude the possibility of adopting other naming in 5G networks and other future networks. For example, in a 6G network, some or all of the above network elements may continue to use the terminology used in 5G, or may adopt other names.

[0143] To facilitate understanding of the embodiments of the present application, some basic concepts involved in the present application are briefly explained.

[0144] 1. Network Non-Access Stratum (NAS) Security Mode Control Procedure: This procedure includes the round-trip messaging between the AMF and the UE. The AMF sends a Security Mode Command message to the UE, and the UE responds with a Security Mode Complete message. This application does not provide a detailed description of the Security Mode Command Procedure. For details, refer to the relevant section in the current protocol (TS33.501, 6.7.2). This description will not be repeated here.

[0145] 2. Base station key (KgNB): The key KgNB can be derived from the KAMF and uplink count values ​​in the UE and AMF. This application does not provide a detailed description of how KgNB is generated. Please refer to the relevant section in the current protocol (A.9 in TS33.501) for an introduction.

[0146] Specifically, the uplink count value required for the KgNB can be determined through negotiation through the above-mentioned Security mode control procedure.

[0147] This application mainly involves the impact on the deduction of KgNB when the uplink count values ​​negotiated between the UE and the AMF are inconsistent when an abnormal situation occurs in the security mode command procedure and the UE is unable to promptly feedback the Security mode complete.

[0148] 3. Security mode command procedure when UE is abnormal: As shown in Figure 2, if the UE encounters underlying abnormalities (such as poor signal, high bit error rate, etc.) during the security mode command procedure, the uplink count values ​​negotiated by the UE and AMF may be inconsistent.

[0149] The security mode command procedure shown in Figure 2 includes the following steps:

[0150] S210, AMF sends Security mode command1. After receiving the message, the UE processes it normally and replies Security mode complete1 (uplink count is 0). However, due to UE underlying abnormality (such as small uplink authorization, poor signal, high bit error, etc.), Security mode complete1 is not sent to the AMF in time.

[0151] S220, the AMF protection timer T3560 times out, and the Security mode command2 is resent again (the downlink count value is different from that in the Security mode command1, and the rest of the content is the same), that is, the Security mode command2 is a retransmission message of the Security mode command1; after normal processing, the UE replies to the network Security mode complete2 (the uplink count is 1).

[0152] S230: The UE bottom layer returns to normal, the Security mode complete 1 in step S210 is sent successfully, and the AMF is successfully received, and the AMF refreshes the uplink count value to 0.

[0153] S240: The UE successfully sends Security mode complete 1 and performs the first key derivation based on the uplink count value 0 to obtain KgNB#1.

[0154] S250, AMF sends Security mode command3, carrying information such as security algorithm. After receiving the message, UE processes it normally and replies to AMF Security mode complete3 (uplink count is 2).

[0155] S260: AMF receives Security mode complete 2 sent by the UE in step S220 and refreshes the count value to 1.

[0156] S270: The UE successfully sends Security mode complete 2 and performs a second key derivation based on the uplink count value 1 to obtain KgNB#2.

[0157] S271, AMF receives Security mode complete2 successfully, performs key derivation based on the uplink count value 1, obtains KgNB#2, and provides it to the base station.

[0158] S280: The AMF receives the Security Mode Complete 3 sent by the UE in step S250 and discards the Security Mode Complete 3.

[0159] S290: The UE successfully sends Security mode complete 3 and performs a third key derivation based on the uplink count value 2 to obtain KgNB#3.

[0160] In the process shown in Figure 2, the UE side sends three Security mode complete3s, and the uplink count value maintained by the UE side is 2; but the AMF receives the first two Security mode complete2s and maintains an uplink count value of 1; the uplink count value 2 in the discarded Security mode complete3 is discarded. The uplink count values ​​maintained by the UE side and the network side are not consistent, resulting in different uplink count values ​​used by the UE and AMF to deduce the KgNB. The final deduced KgNB is different, resulting in the failure of the RRC side security process. In addition, it should be noted that the scenario of the AMF retransmitting the Security mode command shown in Figure 2 is only an example and does not constitute any limitation on the scope of protection of this application. The AMF retransmitting the Security mode command may occur in other situations, such as poor communication quality, abnormal communication link, etc. The AMF may also retransmit the Security mode command. This application does not limit the reasons for the AMF retransmitting the Security mode command.

[0161] In addition, in order to facilitate understanding of the embodiments of the present application, the following explanations are made.

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

[0163] The information indicated by the indication information is referred to as the information to be indicated. During the specific implementation process, there are many ways to indicate the information to be indicated. The information to be indicated can be sent as a whole or divided into multiple sub-information and sent separately. The transmission period and / or transmission timing of these sub-information can be the same or different. The specific transmission method is not limited in this application. The transmission period and / or transmission timing of these sub-information can be predefined, for example, according to a protocol, or can be configured by the transmitting device through sending configuration information to the receiving device.

[0164] Second, "at least one" shown in the present application refers to one or more, and "a plurality of" refers to two or more. In addition, in the embodiments of the present application, "first", "second" and various digital numbers (for example, "#1", "#2", etc.) are only for the convenience of description and are not used to limit the scope of the embodiments of the present application. The size of the sequence number of each process below does not mean the order of execution. The execution order of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. It should be understood that the objects described in this way can be interchanged where appropriate, so that the schemes other than the embodiments of the present application can be described. In addition, in the embodiments of the present application, words such as "310", "320" are only for the convenience of description and are not used to limit the order of execution of steps.

[0165] Third, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0166] Fourth, the term "storage" used in the embodiments of this application may refer to storage in one or more memories. The one or more memories may be provided separately or integrated into an encoder or decoder, a processor, or a communication device. The one or more memories may also be provided in part separately and in part integrated into a decoder, a processor, or a communication device. The memory may be any type of storage medium, and this application is not limited thereto.

[0167] 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, an NR protocol, and related protocols used in future communication systems. This application does not limit this.

[0168] Sixth, in the embodiments of the present application, "under the circumstances", "when", and "if" can sometimes be used interchangeably. It should be pointed out that when the distinction between them is not emphasized, the meanings they intend to express are consistent.

[0169] Seventh, in the embodiments of this application, various terms and English abbreviations, such as radio resource control (RRC), are provided for ease of description and should not constitute any limitation on this application. This application does not exclude the possibility of defining other terms in existing or future protocols that can achieve the same or similar functions.

[0170] Eighth, the term "and / or" in this document simply describes a relationship between related objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document generally indicates that the related objects are in an "or" relationship.

[0171] The above, in combination with Figure 1, briefly introduces the scenarios in which the communication method provided in the embodiment of the present application can be applied, as well as the basic concepts that may be involved in the embodiment of the present application. In the basic concepts, Figure 2 is combined to introduce the security mode control procedure process when the UE is abnormal. According to the above Figure 2 process, if the uplink count values ​​maintained by the UE side and the network side are not unified, the uplink count values ​​used by the UE and the AMF to deduce the KgNB will be different, and the KgNB generated will be different, resulting in the failure of the RRC side security process.

[0172] The present application provides a communication method that can be applied in the communication system shown in FIG1 to reduce the possibility of access layer security verification failure caused by inconsistent keys on the UE side and the network side.

[0173] It should 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 network element, or a functional module in the network element that can call and execute the program.

[0174] Figure 3 is a schematic flow chart of a communication method provided by the present application. In the communication method shown in Figure 3, the security mode command message sent by the core network device carries the value of the first identifier to identify the security mode command message. In addition, the response message (such as a security mode completion message or a security mode failure message) to the security mode command message sent by the terminal device carries the value of the second identifier to identify the response message. In addition, the value of the second identifier carried in the response message in response to a certain security mode command message is the same as the value of the first identifier carried in the security mode command message. For ease of description, the embodiment shown in Figure 3 is explained by taking the response message of the security mode command message as a security mode completion message as an example. When the response message of the security mode command message is a security mode failure message, you can refer to the description of the security mode completion message and will not repeat it.

[0175] Among them, the values ​​of the first identifier carried in different security mode command messages sent by the core network device are different; the values ​​of the second identifier carried in different security mode completion messages sent by the terminal device are different.

[0176] Exemplarily, the first identifier can be understood as field #1 in the security mode command message, and the second identifier can be understood as field #2 in the security mode complete message, where field #1 and field #2 can be fields representing the same physical meaning or fields with different physical meanings. For example, field #1 can be the procedure transaction identity (PTI) field in the security mode command message, and field #2 can be the PTI field in the security mode complete message. The embodiment shown in FIG3 does not limit whether field #1 and field #2 have the same meaning.

[0177] Specifically, the communication method shown in FIG3 includes the following steps:

[0178] S310, the core network device sends a first security mode command message to the terminal device, or the terminal device receives the first security mode command message from the core network device.

[0179] The core network device may be the AMF shown in Figure 1 above. It should be understood that the name of the core network device is not limited in this embodiment, and any network element that can be responsible for access control and mobility management of terminal devices accessing the operator network can be considered as the core network device involved in this embodiment. For ease of description, the following description uses the AMF as an example of a core network device.

[0180] Exemplarily, the security mode command message sent by the core network device to the terminal device is specifically a non-access layer security mode command message.

[0181] The Security Mode Command process activates security mechanisms between terminal devices and core network equipment. For details, refer to section 6.7.2 of TS 33.501 version 18.1.0. The Security Mode Command process consists of a pair of messages: a Security Mode Command message and a Security Mode Complete / Failure message. A network device triggers the Security Mode Command process by sending a Security Mode Command message to a terminal device.

[0182] Specifically, the first security mode command message includes a first value of a first identifier. The first value of the first identifier is used to identify the first security mode command message. The first security mode command message is an integrity-protected security mode command message.

[0183] Exemplarily, the first value of the first identifier is used to identify the first security mode command message. It can be understood that the first value of the first identifier and the first security mode command message have a one-to-one correspondence.

[0184] The AMF may generate the first value of the first identifier in various ways, including but not limited to the following two possible implementations:

[0185] As a possible implementation method, if the first security mode command message is the first security mode command message sent by the AMF, the first value of the first identifier can be set to an initial value, such as the first value of the first identifier is 0, 1 or k.

[0186] As another possible implementation method, if the first security mode command message is the Nth security mode command message sent by the AMF, the first value of the first identifier is added by one based on the value of the first identifier of the N-1th security mode command message. For example, if the value of the first identifier of the N-1th security mode command message is N-1, then the first value of the first identifier is N.

[0187] Exemplarily, the first value of the first identifier carried in the first security mode command message can be understood as follows: the first security mode command message carries the first identifier, and the value of the first identifier is the first value. Therefore, in this embodiment, the manner in which the first value of the first identifier is carried in the first security mode command message can be understood as the manner in which the first security mode command message carries the first identifier.

[0188] The first security mode command message carries the first identifier in the following possible implementations:

[0189] As a possible implementation, the first identifier is field #1 in the first security mode command message. A mandatory information element (IE) already in the first security mode command message can be used as the first identifier. For the content of the first security mode command message, reference can be made to Table 8.2.25.1.1 of the current protocol TS 24.501. The first value of the first identifier is the value of field #1.

[0190] Exemplarily, the mandatory spare half octet field defined in the first security mode command message is modified to serve as the first identifier. Specifically, a field carrying the first identifier is placed in the place of the original mandatory spare half octet field. For ease of understanding, Table 1 illustrates how to modify the mandatory IE defined in the first security mode command message so that the mandatory IE can serve as the first identifier.

[0191] Table 1

[0192] As another possible implementation, the first identifier is field #1 in the first security mode command message, and the field #1 may be a mandatory IE newly added to the first security mode command message. The first value of the first identifier is the value of field #1.

[0193] For example, a 1-byte mandatory IE is added to the first security mode command message as the first identifier. For ease of understanding, Table 2 is used to illustrate how to add a mandatory IE to the first security mode command message so that the added mandatory IE can be used as the first identifier.

[0194] Table 2

[0195] As another possible implementation, the first identifier is field #1 in the first security mode command message. Field #1 can be carried in the first security mode command message as an optional IE of the first security mode command message. The first value of the first identifier is the value of field #1.

[0196] For example, a 1-byte optional IE is added to the first security mode command message as the first identifier. For ease of understanding, Table 3 is used to illustrate how to add an optional IE to the first security mode command message so that the optional IE can be used as the first identifier.

[0197] Table 3

[0198] The above combined Tables 1 to 3 illustrate how to carry the first identifier in the first security mode command message. Exemplarily, the first identifier may be the procedure transaction identity (PTI) field in the first security mode command message, i.e., 9.X in Tables 1 to 3 above represents the PTI field. Specifically, when the first identifier is the PTI field, the value of the first identifier includes, but is not limited to, the following two possible implementations:

[0199] As a possible implementation, the PTI field in the first security mode command message occupies 8 bits, each bit can take a value of 0 or 1, so that the PTI field can have 256 different values.

[0200] As another possible implementation, the PTI field in the first security mode command message occupies 4 bits, each bit can take a value of 0 or 1, so that the PTI field can have 8 different values.

[0201] It should be understood that in this embodiment, after the AMF sends the first security mode command message, the AMF can save the first value of the first identifier so as to subsequently determine whether the received security mode completion message is a response to the first security mode command message based on the first value of the first identifier.

[0202] After receiving the first security mode command message, the terminal device verifies the first security mode command message. If the verification is successful, the terminal device generates a first security mode completion message. The first security mode completion message is a response message to the first security mode command message.

[0203] The terminal device verifies the first security mode command message, including checking whether the terminal device security capability information carried in the first security mode complete message is correct, and verifying whether the integrity protection of the first security mode command message is correct. It should be understood that this embodiment does not limit how the terminal device verifies the received first security mode command message. Reference may be made to the description of the terminal device verifying the security mode command message in existing protocols, which will not be repeated in this application.

[0204] Specifically, the first security mode completion message includes the first value of the second identifier. Since the first security mode completion message is a security mode completion message generated in response to the first security mode command message, the first value of the second identifier is equal to the first value of the first identifier.

[0205] For example, the first value of the second identifier carried in the first security mode complete message can be understood as follows: the first security mode complete message carries the second identifier, and the value of the second identifier is the first value. Therefore, in this embodiment, the method of carrying the first value of the second identifier in the first security mode complete message can be understood as the method of carrying the second identifier in the first security mode command message.

[0206] The manner in which the second identifier is carried in the first security mode completion message includes but is not limited to the following possible implementations:

[0207] As a possible implementation, the second identifier is field #2 in the first security mode complete message. The mandatory IE in the first security mode complete message can be used as the second identifier. For the content of the first security mode complete message, refer to Table 8.2.26.1.1 in the current protocol TS 24.501. The first value of the second identifier is the value of field #2.

[0208] Exemplarily, the SPARE bit in the first security mode complete message is modified to serve as the second identifier, that is, a field carrying the second identifier is placed in the position of the original mandatory SPARE field. For ease of understanding, Table 4 illustrates how to modify the mandatory IE in the first security mode complete message so that the mandatory IE can serve as the second identifier.

[0209] Table 4

[0210] It should be understood that when the first identifier carried in the first security mode command message received by the terminal device is as described in Table 1 above, the terminal device can carry the second identifier as shown in Table 4 in the first security mode completion message in response to the first security mode command message.

[0211] As another possible implementation, the second identifier is field #2 in the first security mode complete message, and the field #2 may be a mandatory IE newly added in the first security mode complete message.

[0212] For example, a 1-byte mandatory IE is added to the first security mode complete message as the second identifier. For ease of understanding, Table 5 illustrates how to add a mandatory IE to the first security mode complete message so that the added mandatory IE can be used as the second identifier.

[0213] Table 5

[0214] It should be understood that when the first identifier carried in the first security mode command message received by the terminal device is as described in Table 2 above, the terminal device can carry the second identifier as shown in Table 5 in the first security mode completion message in response to the first security mode command message.

[0215] As another possible implementation, the second identifier is field #2 in the first security mode security message, and the field #2 can be used as an optional IE of the first security mode completion message.

[0216] For example, a 1-byte optional IE is added to the first security mode completion message as the second identifier. For ease of understanding, Table 6 is used to illustrate how to add a new optional IE to the first security mode completion message so that the optional IE can be used as the second identifier.

[0217] Table 6

[0218] It should be understood that when the first identifier carried in the first security mode command message received by the terminal device is as described in Table 3 above, the terminal device can carry the second identifier as shown in Table 6 in the first security mode completion message in response to the first security mode command message.

[0219] The above combined Tables 4 to 6 illustrate how to carry the second identifier in the first security mode completion message. Exemplarily, the second identifier may be the procedure transaction identity (PTI) field in the first security mode completion message, i.e., 9.X in the above Tables 4 to 6 represents the PTI field. Specifically, when the second identifier is the PTI field, the value of the second identifier includes, but is not limited to, the following two possible implementations:

[0220] As a possible implementation manner, the PTI field in the first security mode completion message occupies 8 bits, each bit can take a value of 0 or 1, so that the PTI field can have 256 different values.

[0221] As another possible implementation, the PTI field in the first security mode completion message occupies 4 bits, and each bit can take the value of 0 or 1, so that the PTI field can have 8 different values. In addition, the encrypted message of the first security mode completion message also carries uplink parameters, wherein the uplink parameters can be uplink count value information. For example, the security mode completion message contains a sequence number, which is the lower 8 bits of the NAS counter value. For the convenience of description, the uplink count value information carried in the security mode completion message is abbreviated as uplink count below, such as the first security mode completion message carries uplink count#1. It should be noted that the specific form of the uplink parameters carried in the security mode completion message is not described in detail in this embodiment, and reference can be made to the description of the uplink parameters carried by the security mode completion message in the existing protocol TS24.501.

[0222] S320: The terminal device sends a first security mode completion message to the AMF, or the AMF receives a first security mode completion message from the terminal device.

[0223] S330: The terminal device derives a key according to the parameters included in the first security mode completion message.

[0224] Specifically, the terminal device performs a key (eg, K based on the uplink parameter (eg, uplink count#1) corresponding to the first security mode completion message. gNB ) deduced, we get K gNB #1. It should be understood that there is no time limit for the terminal device to derive the key and send the first security mode completion message. The terminal device can perform key deduction after determining the uplink parameters corresponding to the first security mode completion message, or perform key deduction after sending the first security mode completion message. This application does not impose any restrictions on this.

[0225] In this embodiment, after the terminal device derives the key, it can perform integrity protection verification and / or decryption on the access layer security mode command message subsequently received from the access network device based on the key. Among them, performing integrity protection verification and / or decryption on the access layer security mode command message subsequently received based on the key includes: the terminal device can further generate an access layer signaling plane integrity protection key and / or an access layer signaling plane confidentiality protection key based on the key, and use the access layer signaling plane integrity protection key and / or the access layer signaling plane confidentiality protection key to perform integrity protection verification and / or decryption on the access layer security mode command message subsequently received from the access network device. This embodiment does not limit the specific integrity protection verification and / or decryption method.

[0226] S340: The AMF derives a key based on the parameters included in the first security mode completion message.

[0227] Specifically, when the first value of the first identifier and the first value of the second identifier are the same, the AMF derives the key according to the parameters included in the first security mode completion message.

[0228] Exemplarily, after receiving the first security mode complete message, the AMF obtains the first value of the second identifier carried in the first security mode complete message, and obtains the first value of the locally stored first identifier. The AMF determines that the first value of the second identifier included in the first security mode complete message is the same as the first value of the locally stored first identifier, thereby determining that the first security mode complete message is a response message to the first security mode command message.

[0229] Furthermore, AMF performs key (e.g., K gNB ) deduction, wherein the AMF deduces the key for the base station, such as AMF deduces K based on the uplink parameters gNB #1. After the AMF derives the key, it can provide the derived key to the access network device. The method shown in Figure 3 also includes:

[0230] S350, AMF sends the key to the access network device.

[0231] In this embodiment, after the access network device receives the key from the AMF, it can perform integrity protection and / or encryption protection on the access layer security mode command message subsequently sent to the terminal device based on the key. Among them, performing integrity protection and / or encryption protection on the access layer security mode command message subsequently sent to the terminal device based on the key includes: the access network device can further generate an access layer signaling plane integrity protection key and / or an access layer signaling plane confidentiality protection key based on the key, and use the access layer signaling plane integrity protection key and / or the access layer signaling plane confidentiality protection key to perform integrity protection and / or encryption protection on the access layer security mode command message subsequently sent to the terminal device. This embodiment does not limit the specific integrity protection and / or encryption method.

[0232] In the following, for the convenience of description, we deduce K gNB Other scenarios that require the use of uplink parameters for key deduction are similar to those based on uplink parameter deduction of K gNB Similarly, no further details will be given in this application.

[0233] In the embodiment shown in Figure 3, the AMF can determine whether the received first security mode completion message is a response message to the sent first security mode command message based on the first value of the first identifier of the sent first security mode command message and the first value of the second identifier of the received first security mode completion message, and deduce the key and send it to the access network device when the first value of the first identifier and the first value of the second identifier are the same, so that the terminal side and the access network device side can perform subsequent access layer security verification based on the same key, thereby increasing the possibility of successful access layer security verification.

[0234] The above-mentioned case where the first value of the saved first identifier and the first value of the received second identifier are the same, the AMF derives the key according to the parameters included in the first security mode completion message. It can also be understood that: when the AMF determines that the first security mode completion message is a response message to the first security mode command message based on the first value of the first identifier and the first value of the second identifier, the AMF derives the key according to the parameters included in the first security mode completion message.

[0235] In addition, if the first value of the stored first identifier is different from the first value of the received second identifier, the AMF determines that the first security mode complete message is not a response message to the first security mode command message and may discard the first security mode complete message. Specifically, if the AMF determines that the first security mode complete message is discarded, the AMF may continue to wait for receiving other security mode complete messages other than the first security mode complete message, and after receiving the other security mode complete messages, continue to determine whether to execute the above steps S340 and S350; or the AMF may determine that the current security mode command process has failed and no longer execute the above steps S340 and S350.

[0236] It should be noted that the above embodiment is mainly described by taking the terminal device sending the first security mode completion message as an example, which does not constitute any limitation on the scope of protection of this application. After receiving the first security mode command message and verification fails, the terminal device may also send a first security mode rejection message, and carry a third identifier in the first security mode rejection message. The value of the third identifier indicates whether the first security mode rejection message is a message in response to the first security mode command message. After receiving the first security mode rejection message, the AMF determines that the security mode process has failed.

[0237] Specifically, the communication method shown in Figure 3 can be applied to the scenario where the AMF retransmits the security mode command message, so that the AMF and the terminal device can deduce the key based on the same parameters, thereby improving the accuracy of key deduction. Exemplarily, the AMF retransmits the security mode command message including but not limited to the following two implementations:

[0238] Implementation method #1: The first security mode command message is the security mode command message retransmitted by AMF.

[0239] The retransmitted security mode command message by the AMF means that the AMF has sent one or more security mode command messages to the terminal device before sending the first security mode command message. In addition, the content contained in the one or more security mode command messages sent differs from that of the first security mode command message only in the downlink NAS COUNT value.

[0240] This implementation #1 is explained using the example of a previously sent security mode command message. That is, in the case shown in implementation #1, before the AMF sends the first security mode command message to the terminal device, the AMF has already sent a second security mode command message to the terminal device. The second security mode command message includes the second value of the first identifier, and the second value of the first identifier is used to identify the second security mode command message. The first value of the first identifier carried by the first security mode command message and the second value of the first identifier carried by the second security mode command message are different. For example, the first value of the first identifier carried by the first security mode command message is greater than the second value of the first identifier carried by the second security mode command message.

[0241] Optionally, before receiving the above-mentioned first security mode completion message, the AMF also receives a second security mode completion message from the terminal device, and the second security mode completion message includes a second value of the second identifier. If the second value of the second identifier is the same as the second value of the first identifier contained in the second security mode command message, the AMF can determine that the second security mode completion message is a response to the second security mode command message. And / or because the second value of the second identifier carried by the second security mode completion message is different from the first value of the first identifier of the first security mode command message (stored by the AMF), the AMF determines that the second security mode completion message is not a response to the first security mode command message, so the AMF discards the second security mode completion message and does not perform key deduction based on the parameters in the second security mode completion message.

[0242] For ease of understanding, the following specific example illustrates how the AMF and the terminal device use the same parameters to derive the key in the case shown in implementation #1.

[0243] Example 1:

[0244] As shown in Figure 4, the following steps are included:

[0245] S410, AMF sends a security mode command message #1 to the terminal device.

[0246] The security mode command message #1 is equivalent to the second security mode command message involved in the situation shown in the above implementation method #1.

[0247] Optionally, when the AMF sends the security mode command message #1, it can also start a timer (e.g., T3560).

[0248] Optionally, Security Mode Command Message #1 carries the terminal device's security capability information, the selected encryption algorithm, and the selected integrity protection algorithm. The terminal device's security capability information is used by the terminal device to ensure that the terminal device's security capability information has not been tampered with during transmission. The selected encryption algorithm and integrity protection algorithm are used to secure specific non-access stratum messages.

[0249] In this example, the security mode command message #1 carries the second value of the first identifier, such as PTI#2, and the security mode command message #1 also carries a downlink parameter, such as downlink count#0. Optionally, the security mode command message #1 may be encrypted.

[0250] It should be understood that in this embodiment, after the AMF sends the security mode command message #1, the AMF can save the second value of the first identifier (e.g., PTI#2) carried in the security mode command message #1, so as to subsequently determine whether the received security mode completion message is a response to the security mode command message #1 based on the second value of the first identifier.

[0251] S420, the terminal device verifies the security mode command message #1, and if the verification is successful, generates a security mode completion message #1 in reply to the security mode command message #1.

[0252] The security mode completion message #1 is equivalent to the second security mode completion message involved in the situation shown in the above implementation method #1.

[0253] Specifically, the security mode completion message #1 includes a second value of the second identifier (eg, PTI#2), and the second value of the second identifier is equal to the second value of the first identifier.

[0254] In addition, the encrypted message of the security mode completion message #1 also carries uplink parameters, such as uplink count #0.

[0255] In this embodiment, after receiving the Security Mode Command Message #1, the terminal device processes it normally and replies with a Security Mode Complete Message #1. However, the Security Mode Complete Message #1 may not reach the AMF in a timely manner due to certain abnormal conditions. Abnormal conditions may include abnormalities in the terminal device underlying layer (e.g., small uplink grant, poor signal, high bit error rate, etc.), unstable air interface quality between the terminal device and the base station, or confusion in the base station's own processing.

[0256] If the AMF fails to receive the security mode completion message #1 from the terminal device in response to the security mode command message #1 in a timely manner, for example, if the AMF protection timer (e.g., T3560) times out and the security mode completion message #1 is not received, the AMF will resend the security mode command message to the terminal device. The method shown in FIG4 further includes:

[0257] S430, AMF sends a security mode command message #2 to the terminal device.

[0258] The security mode command message #2 is equivalent to the first security mode command message involved in the situation shown in the above implementation #1. The security mode command message #2 is a retransmission message of the security mode command message #1.

[0259] Optionally, the security mode command message #2 carries an activation key, an encryption algorithm, and an integrity protection algorithm.

[0260] In this example, the security mode command message #2 carries the first value of the first identifier, such as PTI#1, and the encrypted security mode command message #2 also carries a downlink parameter, such as downlink count#1.

[0261] It should be understood that in this embodiment, after the AMF sends the security mode command message #2, the AMF will locally save the first value of the first identifier (e.g., PTI#1) carried in the security mode command message #2, so as to subsequently determine whether the received security mode completion message is a response to the security mode command message #2 based on the first value of the first identifier.

[0262] As an optional implementation method, when the AMF locally saves the first value of the first identifier of the security mode command message #2, the AMF discards the second value of the first identifier carried by the locally saved security mode command message #1. Alternatively, the AMF updates the second value of the first identifier carried by the locally saved security mode command message #1 to the first value of the first identifier of the security mode command message #2. That is to say, the AMF locally saves the value of the first identifier carried in the last sent security mode command message. For example, after the timer (such as T3560) times out, the AMF deletes the second value of the locally saved first identifier; for another example, after the AMF locally saves the first value of the first identifier, the locally saved second value of the first identifier is set to invalid or directly deleted.

[0263] S440, the terminal device verifies the security mode command message #2, and if the verification is successful, generates a security mode completion message #2 in reply to the security mode command message #2.

[0264] The security mode completion message #2 is equivalent to the first security mode completion message involved in the situation shown in the above implementation method #1.

[0265] Specifically, the security mode complete message #2 includes the first value of the second identifier, which is used to identify the security mode complete message #2. The first value of the second identifier (e.g., PTI#1) is the same as the first value of the first identifier (e.g., PTI#1) carried in the replied security mode command message #2.

[0266] In addition, the encrypted message of the security mode completion message #2 also carries uplink parameters, such as uplink count #1.

[0267] For example, if the bottom layer of the terminal device returns to normal, the security mode completion message #1 generated for the security mode command message #1 in step S420 may be sent to the AMF before the security mode completion message #2. The method shown in FIG4 further includes:

[0268] S450: The terminal device sends a security mode completion message #1 to the AMF, or the AMF receives a security mode completion message #1 from the terminal device.

[0269] S451, the terminal device deduces the key according to the parameters included in the security mode completion message #1.

[0270] The terminal device performs the first key deduction based on the uplink count#0 and obtains K gNB #0. It should be understood that there is no time limit for the terminal device to deduce the key and send the security mode completion message #1. After the terminal device determines the uplink parameters corresponding to the security mode completion message #1, it can perform key deduction, or perform key deduction after sending the security mode completion message #1. This application does not impose any restrictions on this.

[0271] From the description of the security mode completion message #1 generated and replied by the terminal device in response to the security mode command message #1 in the above step S420, it can be seen that the security mode completion message #1 carries the second value of the second identifier (such as PTI#2).

[0272] S460: The AMF determines to discard the security mode completion message #1 based on the first value of the locally stored first identifier and the second value of the second identifier of the received security mode completion message #1.

[0273] In this embodiment, after the AMF sends the security mode command message #2, the value of the locally stored first identifier is refreshed to the first value of the first identifier carried by the security mode command message #2. When the AMF receives the security mode completion message #1 carrying the second value of the second identifier (such as PTI#2), it is determined that the second value of the second identifier is different from the first value of the locally stored first identifier. It can be determined that the security mode completion message #1 is not a response to the security mode command message #2 that the AMF last sent to the UE, and thus the security mode completion message #1 can be discarded, that is, the AMF does not perform key derivation based on the uplink parameters in the security mode completion message #1.

[0274] S470, the terminal device sends a security mode completion message #2 to the AMF, or the AMF receives a security mode completion message #2 from the terminal device.

[0275] S471, the terminal device deduces the key according to the parameters included in the security mode completion message #2. The terminal device performs a second key deduction based on the uplink count #1 and obtains K gNB #1. It should be understood that there is no time limit for the terminal device to deduce the key and send the security mode completion message #1. The terminal device can perform key deduction after determining the uplink parameters corresponding to the security mode completion message #2, or perform key deduction after sending the security mode completion message #1. This application does not impose any restrictions on this.

[0276] From the description of the security mode completion message #2 generated and replied by the terminal device in response to the security mode command message #2 in the above step S440, it can be seen that the security mode completion message #2 carries the first value of the second identifier (such as PTI#1).

[0277] S480: AMF derives the key based on the parameters included in the security mode completion message #2.

[0278] Specifically, when the first value of the first identifier and the first value of the second identifier are the same, the AMF derives the key according to the parameters included in the security mode completion message #2.

[0279] For example, after receiving Security Mode Complete Message #2, the AMF obtains the first value of the second identifier carried in Security Mode Complete Message #2 and the first value of the locally stored first identifier. The AMF determines that the first value of the second identifier included in Security Mode Complete Message #2 is the same as the first value of the locally stored first identifier, thereby determining that Security Mode Complete Message #2 is a response message to Security Mode Command Message #2.

[0280] In this embodiment, after the AMF sends the security mode command message #2, the value of the locally stored first identifier is refreshed to the first value of the first identifier of the security mode command message #2. When the AMF receives the security mode completion message #2 carrying the first value of the second identifier (such as PTI#1), it is determined that the first value of the second identifier is the same as the first value of the locally stored first identifier. It can be determined that the security mode completion message #2 is a reply to the security mode command message #2, and the key can be deduced based on the parameters included in the security mode completion message #2.

[0281] S490, AMF sends the key to the access network device.

[0282] AMF performs key calculation (e.g., K gNB ) deduced, we get K gNB #1. And K gNB #1 is provided to the base station. For detailed description, please refer to the description of step S350 in the embodiment shown in FIG3 , which will not be repeated here.

[0283] In the communication method shown in FIG4 , by carrying identification information in the security mode command message and the security mode completion message, the network side determines whether the security mode completion message is a reply to the last sent security mode command message according to the value of the second identification carried in the security mode completion message, thereby avoiding the network side discarding error, thereby making the uplink count value maintained by the terminal device and the network side unified (for example, both are uplink count#1), so that the terminal device and the network generate the same K gNB (For example, both are K gNB #1).

[0284] It should be understood that the above-mentioned AMF sending Security Mode Command Message #1 and Security Mode Command Message #2 is only an example and does not constitute any limitation on the scope of protection of this application. The AMF may also send more than two Security Mode Command Messages. For example, the AMF may retransmit Security Mode Command Message #1 multiple times; for another example, the AMF may send other Security Mode Command messages to the terminal device before sending Security Mode Command Message #1 (for example, the AMF first sends a Security Mode Command Message to activate the security key, encryption algorithm, and integrity protection algorithm, and then configures the EPS encryption algorithm and integrity protection algorithm through Security Mode Command Message #1).

[0285] Implementation #2: The AMF retransmits a security mode command message before sending the first security mode command message. For example, the first security mode command message is used to configure the EPS encryption and integrity protection algorithms.

[0286] In the case shown in implementation method #2, before the AMF sends the first security mode command message to the terminal device, the AMF sends a third security mode command message to the terminal device, the third security mode command message includes the third value of the first identifier, the third value of the first identifier (such as PTI#3) is used to identify the third security mode command message, and the third security mode command message is used to activate the security mode command process; the AMF sends a fourth security mode command message to the terminal device, the fourth security mode command message includes the fourth value of the first identifier, the fourth value of the first identifier (such as PTI#4), the fourth security mode command message is a retransmission message of the third security mode command message, and the third value of the first identifier of the fourth security mode command message is different from the fourth value of the first identifier of the third security mode command message.

[0287] Furthermore, in the case shown in implementation method #2, the AMF receives a fourth security mode completion message from the terminal device, the fourth security mode completion message includes the fourth value of the second identifier, and the AMF sends a first security mode command message to the terminal device, including: the fourth value of the second identifier is the same as the fourth value of the first identifier, and the fourth security mode completion message is used to indicate that the terminal device supports long-term evolution LTE communication, and the AMF sends the first security mode command message to the terminal device.

[0288] In addition, before the AMF receives the fourth security mode completion message from the terminal device, the method also includes: the AMF receives a third security mode completion message from the terminal device, the third security mode completion message includes a third value of the second identifier, and the third value of the second identifier is used to identify the third security mode completion message; if the third value of the second identifier is different from the fourth value of the first identifier, the AMF discards the third security mode completion message.

[0289] For ease of understanding, the following specific example illustrates how the AMF and the terminal device use the same parameters to derive the key in the case shown in implementation #2.

[0290] Example 2:

[0291] As shown in Figure 5, the following steps are included:

[0292] S510: The terminal device sends an initial NAS message to the AMF.

[0293] The initial NAS message is the initial message sent by the terminal device to the AMF. The initial NAS message contains the capabilities currently supported by the terminal device, such as whether the terminal device supports S1 (i.e., LTE communication capabilities). The IE indicating whether the terminal device supports S1 cannot be carried in plain text.

[0294] S520: The AMF sends an authentication request message to the terminal device. The authentication request message is used to request the generation of security key parameters.

[0295] S530: The terminal device sends an authentication response message to the AMF. The authentication response message indicates that the security key parameter generation is complete.

[0296] S540, AMF sends a security mode command message #3 to the terminal device.

[0297] The security mode command message #3 is equivalent to the third security mode command message involved in the situation shown in the above implementation method #2.

[0298] Optionally, Security Mode Command Message #3 carries the terminal device's security capability information, the selected encryption algorithm, and the selected integrity protection algorithm. The terminal device's security capability information is used by the terminal device to ensure that the terminal device's security capability information has not been tampered with during transmission. The selected encryption algorithm and integrity protection algorithm are used to secure specific non-access stratum messages.

[0299] In this example, the security mode command message #3 carries the third value of the first identifier (e.g., PTI#3), and the security mode command message #3 also carries a downlink parameter, such as downlink count#2. Optionally, the security mode command message #3 may be encrypted. It should be understood that in this embodiment, after the AMF sends the security mode command message #3, the AMF may save the third value of the first identifier (e.g., PTI#3) carried in the security mode command message #3, so as to subsequently determine whether the received security mode complete message is a response to the security mode command message #3 based on the third value of the first identifier.

[0300] S550, the terminal device verifies the security mode command message #3, and if the verification is successful, generates a security mode completion message #3 in reply to the security mode command message #3.

[0301] Optionally, when the AMF sends the security mode command message #3, it can also start a timer (e.g., T3560).

[0302] The security mode completion message #3 is equivalent to the third security mode completion message involved in the situation shown in the above implementation method #2.

[0303] Specifically, the security mode completion message #3 includes a third value of the second identifier (eg, PTI#3), and the third value of the second identifier is equal to the third value of the first identifier.

[0304] In addition, the encrypted message of the security mode completion message #3 also carries uplink parameters, such as uplink count #2.

[0305] In this embodiment, after receiving the security mode command message #3, the terminal device processes it normally and replies with the security mode command message #3. However, the security mode completion message #3 may not reach the AMF in time due to some abnormal conditions. Abnormal conditions may include abnormalities in the terminal device layer (such as small uplink grant, poor signal, high bit error rate, etc.), unstable air interface quality between the terminal device and the base station, or confusion in the base station's own processing.

[0306] If the AMF fails to receive the security mode completion message #3 from the terminal device in response to the security mode command message #3 in a timely manner. For example, if the AMF protection timer (e.g., T3560) times out and the security mode completion message #3 is not received, the AMF will resend the security mode command message to the terminal device. The method shown in FIG5 further includes:

[0307] S560, AMF sends a security mode command message #4 to the terminal device.

[0308] The security mode command message #4 is equivalent to the fourth security mode command message involved in the situation shown in the above implementation #2. The security mode command message #4 is a retransmission message of the security mode command message #3.

[0309] In this example, the security mode command message #4 carries the fourth value of the first identifier (eg, PTI#4), and the encrypted security mode command message #4 also carries a downlink parameter, such as downlink count#2.

[0310] It should be understood that in this embodiment, after the AMF sends the security mode command message #4, the AMF locally saves the fourth value of the first identifier (e.g., PTI#4) carried in the security mode command message #4, so as to facilitate the subsequent judgment based on the fourth value of the first identifier whether the received security mode completion message is a response to the security mode command message #4.

[0311] As an optional implementation, when the AMF locally stores the fourth value of the first identifier, the AMF discards the locally stored third value of the first identifier. Alternatively, the AMF updates the locally stored third value of the first identifier to the fourth value of the first identifier. That is, the AMF locally stores the value of the first identifier carried in the last security mode command message sent. For example, after the timer (such as T3560) times out, the AMF deletes the locally stored third value of the first identifier; for another example, after the AMF locally stores the fourth value of the first identifier, the locally stored third value of the first identifier is set to invalid or directly deleted.

[0312] S570, the terminal device verifies the security mode command message #4, and if the verification is successful, generates a security mode completion message #4 in reply to the security mode command message #4.

[0313] The security mode completion message #4 is equivalent to the fourth security mode completion message involved in the situation shown in the above implementation method #2.

[0314] Specifically, the security mode complete message #4 includes the fourth value of the second identifier, which is used to identify the security mode complete message #4. The fourth value of the second identifier (e.g., PTI#4) is the same as the fourth value of the first identifier (e.g., PTI#4) carried in the replied security mode command message #4.

[0315] In addition, the encrypted message of the security mode completion message #4 also carries uplink parameters, such as uplink count #3.

[0316] For example, if the bottom layer of the terminal device returns to normal, the security mode completion message #3 generated in step S550 for the security mode command message #3 may be sent to the AMF before the security mode completion message #4. The method shown in FIG5 further includes:

[0317] S580: The terminal device sends a security mode completion message #3 to the AMF, or the AMF receives a security mode completion message #3 from the terminal device.

[0318] S581, the terminal device deduces the key according to the parameters included in the security mode completion message #3.

[0319] The terminal device performs the first key deduction based on the uplink count#2 and obtains K gNB #2. It should be understood that there is no time limit for the terminal device to derive the key and send the security mode completion message #3. The terminal device can perform key deduction after determining the uplink parameters corresponding to the security mode completion message #3, or perform key deduction after sending the security mode completion message #3. This application does not impose any restrictions on this.

[0320] From the description of the security mode completion message #3 generated and replied by the terminal device in response to the security mode command message #3 in the above step S550, it can be seen that the security mode completion message #3 carries the third value of the second identifier (such as PTI#3).

[0321] S590: AMF determines to discard security mode completion message #3 based on the fourth value of the locally stored first identifier and the third value of the received second identifier.

[0322] In this embodiment, after the AMF sends the security mode command message #4, the value of the locally stored first identifier is refreshed to the fourth value of the first identifier carried in the security mode command message #4 (e.g., PTI#4). When the AMF receives the security mode completion message #3 carrying the third value of the second identifier (e.g., PTI#3), it is determined that the third value of the second identifier is different from the fourth value of the locally stored first identifier. It can be determined that the security mode completion message #3 is not a reply to the security mode command message #4 that the AMF last sent to the UE, and thus the security mode completion message #3 can be discarded, that is, the AMF does not perform key derivation based on the uplink parameters in the security mode completion message #3.

[0323] S591, the terminal device sends a security mode completion message #4 to the AMF, or the AMF receives a security mode completion message #4 from the terminal device.

[0324] S592, the terminal device deduces the key according to the parameters included in the security mode completion message #4.

[0325] The terminal device performs a second key deduction based on the uplink count#3 and obtains K gNB #3. It should be understood that there is no time limit for the terminal device to derive the key and send the security mode completion message #4. The terminal device can perform key deduction after determining the uplink parameters corresponding to the security mode completion message #4, or perform key deduction after sending the security mode completion message #4. This application does not impose any restrictions on this.

[0326] From the description of the security mode completion message #4 generated and replied by the terminal device in response to the security mode command message #4 in the above step S570, it can be seen that the security mode completion message #4 carries the fourth value of the second identifier (such as PTI#4).

[0327] S593, AMF determines to send security mode command message #2.

[0328] In this embodiment, after the AMF sends the security mode command message #4, the value of the locally stored first identifier is refreshed to the fourth value of the first identifier carried in the security mode command message #4 (e.g., PTI#4). When the AMF receives the security mode completion message #4 carrying the fourth value of the second identifier (e.g., PTI#4), it is determined that the fourth value of the second identifier is the same as the fourth value of the locally stored first identifier, and it can be determined that the security mode completion message #4 is a reply to the security mode command message #4.

[0329] Furthermore, after the AMF receives the security mode completion message #4, the AMF parses the complete initial NAS message carried in the security mode completion message #4, and finds that the terminal device supports the S1 capability. If the current N26 interface exists, the AMF sends an SMC message to configure the EPS encryption algorithm. The method flow shown in Figure 5 also includes:

[0330] S594, AMF sends a security mode command message #2 to the terminal device.

[0331] The security mode command message #2 is equivalent to the first security mode command message involved in the case shown in the above implementation #2. Referring to the description of step S310 in Figure 3, it will not be repeated here.

[0332] Specifically, the terminal device verifies the security mode command message #2, and if the verification is successful, generates a security mode completion message #2 in reply to the security mode command message #2.

[0333] The security mode completion message #2 is equivalent to the first security mode completion message involved in the situation shown in the above implementation method #2.

[0334] In addition, it should be noted that, in this embodiment, if the terminal device receives a security mode command message #2 carrying a first value of a first identifier (e.g., PTI#1), and determines that the first value of the first identifier is greater than the third value of the first identifier carried in the above-mentioned security mode command message #3 (e.g., PTI#1 is 3, and PTI#3 is 1), the terminal device immediately sends a security mode completion message #2 to the AMF, so that the terminal device may not receive the above-mentioned security mode command message #4 (e.g., due to channel quality issues, security mode command message #4 is delayed and arrives later than security mode command message #2), or, based on the fourth value of the first identifier carried in security mode command message #4 (e.g., PTI#2, PTI#2 is 2), the security mode command message #4 may be discarded and not processed, thereby saving the verification overhead of the terminal device.

[0335] S595: The terminal device sends a security mode completion message #2 to the AMF, or the AMF receives a security mode completion message #2 from the terminal device.

[0336] Please refer to the description of step S320 in FIG3 , which will not be repeated here.

[0337] S596, the terminal device deduces the key according to the parameters included in the security mode completion message #2.

[0338] Please refer to the description of step S330 in FIG3 , which will not be repeated here.

[0339] S597: AMF derives the key based on the parameters included in the security mode completion message #2.

[0340] Please refer to the description of step S340 in FIG3 , which will not be repeated here.

[0341] S598, AMF sends the key to the access network device.

[0342] Please refer to the description of step S350 in FIG3 , which will not be repeated here.

[0343] S599, AMF sends a registration success message to the terminal device.

[0344] In the communication method shown in Figures 3 to 5, different security mode command messages can be identified by carrying identification information in the security mode command message sent by the network side, and the security mode completion message replied by the terminal device carries an identifier in the security mode command message to identify that the security mode completion message is a reply to a certain security mode command message, so that the network side can judge whether the received security mode completion message is a response to the latest security mode command message based on the value of the second identifier carried in the received security mode completion message and the value of the first identifier carried in the latest security mode command message sent, so that the parameters of the key deduced by the core network device can be the same as the parameters of the terminal deduced key, and the core network device can provide the deduced key to the access network device, so that the terminal side and the access network device side can perform subsequent access layer security verification based on the same key, thereby increasing the possibility of successful access layer security verification.

[0345] This application also provides another communication method by redefining the terminal device to deduce the key K gNB The logic (e.g., the terminal device deduces the key K based on the latest uplink count value) gNB If the AS layer security process fails, the terminal device can use the key K obtained in the previous deduction. gNB Try to re-execute the AS layer security process) to make the AS layer security process execute successfully. The communication method will be described in detail below with reference to FIG6.

[0346] FIG6 is a schematic flow chart of another communication method provided by the present application, which includes the following steps:

[0347] S601: The access network device receives a key from the AMF.

[0348] In this embodiment, after the access network device receives the key from the AMF, it may perform integrity protection and / or encryption protection on the access layer security mode command message subsequently sent to the terminal device based on the key. The performing integrity protection and / or encryption protection on the access layer security mode command message subsequently sent to the terminal device based on the key includes: the access network device may further generate an access layer signaling plane integrity protection key and / or an access layer signaling plane confidentiality protection key based on the key, and use the access layer signaling plane integrity protection key and / or the access layer signaling plane confidentiality protection key to perform integrity protection and / or encryption protection on the access layer security mode command message subsequently sent to the terminal device.

[0349] For example, the access network device receives the second key from the AMF.

[0350] S610, the access network device sends a fifth security mode command message to the terminal device.

[0351] Optionally, the fifth security mode command message is integrity protected and / or encrypted based on the second key. The fifth security mode command message is integrity protected and / or encrypted based on the second key, including: the access network device further generates an access layer signaling plane integrity protection key and / or an access layer signaling plane confidentiality protection key based on the second key, and uses the access layer signaling plane integrity protection key and / or the access layer signaling plane confidentiality protection key to perform integrity protection and / or encryption protection on the fifth security mode command message. It should be understood that in this embodiment, there is no limitation on the timing for the access network device to further generate the access layer signaling plane integrity protection key and / or the access layer signaling plane confidentiality protection key based on the first key, which can be after sending the fifth security mode command message, or it can be generated immediately after receiving the first key.

[0352] Exemplarily, the security mode command message sent by the access network device to the terminal device is specifically an access layer security mode command message.

[0353] S620: The terminal device performs integrity protection verification and / or decryption on the fifth security mode command message based on the first key.

[0354] Specifically, the terminal device performs integrity protection verification and / or decryption on the fifth security mode command message based on the first key, including:

[0355] The terminal device can further generate an access layer signaling plane integrity protection key and / or an access layer signaling plane confidentiality protection key based on the first key, and use the access layer signaling plane integrity protection key and / or the access layer signaling plane confidentiality protection key to perform integrity protection verification and / or decryption on the fifth security mode command message received from the access network device. It should be understood that in this embodiment, there is no limitation on the timing for the terminal device to further generate the access layer signaling plane integrity protection key and / or the access layer signaling plane confidentiality protection key based on the first key. It can be generated after receiving the fifth security mode command message, or after the first key is deduced.

[0356] Specifically, in this embodiment, if the terminal device fails to perform integrity protection check and / or decryption on the fifth security mode command message based on the first key, the terminal device may re-perform integrity protection check and / or decryption on the fifth security mode command message based on at least one key other than the first key. The method flow shown in FIG3 further includes:

[0357] S630: The terminal device performs integrity protection verification and / or decryption on the fifth security mode command message based on the second key.

[0358] Specifically, the terminal device performs integrity protection verification and / or decryption on the fifth security mode command message based on the second key, including:

[0359] The terminal device can further generate an access layer signaling plane integrity protection key and / or an access layer signaling plane confidentiality protection key based on the second key, and use the access layer signaling plane integrity protection key and / or the access layer signaling plane confidentiality protection key to perform integrity protection verification and / or decryption on the fifth security mode command message received from the access network device. It should be understood that in this embodiment, there is no limitation on the timing for the terminal device to further generate the access layer signaling plane integrity protection key and / or the access layer signaling plane confidentiality protection key based on the second key. It can be after the integrity protection verification and / or decryption of the fifth security mode command message based on the first key fails, or it can be generated immediately after the second key is derived.

[0360] The first key based on which the integrity protection check and / or decryption of the fifth security mode command message on the above-mentioned terminal device side is derived by the terminal device based on the first parameter in the seventh security mode completion message, and the second key is derived by the terminal device based on the second parameter in the sixth security mode completion message.

[0361] For ease of understanding, the following describes the sending of the sixth security mode completion message and the seventh security mode completion message. Before the access network device sends the fifth security mode command message to the terminal device, the method flow shown in FIG6 further includes:

[0362] S611, AMF sends a sixth security mode command message to the terminal device.

[0363] The sixth security mode command message carries a first parameter, and the first parameter is used to deduce the first key.

[0364] S612: The terminal device sends a sixth security mode completion message to the AMF.

[0365] After receiving the sixth security mode command message, the terminal device verifies the sixth security mode command message, and generates a sixth security mode completion message in reply to the sixth security mode command message if the verification is successful.

[0366] S613: The terminal device derives a key according to the parameters included in the sixth security mode completion message.

[0367] Specifically, the terminal device performs a key (eg, K based on the uplink parameter (eg, uplink count) corresponding to the sixth security mode completion message. gNB ) to derive the second key. It should be understood that there is no time limit for the terminal device to derive the second key and send the sixth security mode completion message. The terminal device can perform key derivation after determining the uplink parameters corresponding to the sixth security mode completion message, or perform key derivation after sending the sixth security mode completion message. This application does not impose any restrictions on this.

[0368] S614: The AMF derives the key based on the parameters included in the sixth security mode completion message.

[0369] Specifically, AMF performs key (e.g., K) based on the uplink parameter (e.g., uplink count) corresponding to the sixth security mode completion message. gNB ) to derive a second key. The derived second key is provided to the access network device.

[0370] S615, AMF sends a seventh security mode command message to the terminal device.

[0371] Optionally, the seventh security mode command message is a retransmission message of the sixth security mode completion message.

[0372] S616: The terminal device sends a seventh security mode completion message to the AMF.

[0373] After receiving the seventh security mode command message, the terminal device verifies the seventh security mode command message, and generates a seventh security mode completion message in reply to the sixth security mode command message if the verification is successful.

[0374] S617: The terminal device derives a key based on the parameters included in the seventh security mode completion message.

[0375] Specifically, the terminal device performs a key (eg, K) based on the uplink parameter (eg, uplink count) corresponding to the seventh security mode completion message. gNB ) to obtain the first key. It should be understood that there is no time limit for the terminal device to derive the first key and send the seventh security mode completion message. The terminal device can perform key derivation after determining the uplink parameters corresponding to the seventh security mode completion message, or perform key derivation after sending the seventh security mode completion message. This application does not impose any restrictions on this.

[0376] It should be noted that in this embodiment, the terminal device performs integrity protection verification on the security mode command message received from the access network device based on the first key and the second key in succession. This is only an example and does not constitute any limitation on the scope of protection of this application. The terminal device may also perform integrity protection verification on the security mode command message received from the access network device based on keys other than the first key and the second key.

[0377] For example, if the terminal device fails to perform integrity protection verification on the fifth security mode command message based on the second key, the terminal device may also perform integrity protection verification on the fifth security mode command message based on the third key, wherein the third key is derived based on the third parameter in the fifth security mode completion message, and the fifth security mode completion message is a security mode completion message sent by the terminal device to the AMF in the non-access layer security mode control process, and the fifth security mode completion message is sent earlier than the sixth security mode completion message.

[0378] As can be seen from the above-mentioned process of performing integrity protection verification on the security mode command message received from the access network device by the terminal device, the terminal device can perform integrity protection verification on the security mode command message received from the access network device based on different keys. In this embodiment, the terminal device obtains different keys in ways including but not limited to the following two implementation methods:

[0379] As a possible implementation, after the terminal device sends a security mode complete message to the AMF, the terminal device locally derives and stores a key based on the parameters in the security mode complete message. This key is used to generate the key required for access layer security verification.

[0380] For example, after the terminal device sends a seventh security mode completion message to the AMF in response to the seventh security mode command message, the terminal device derives the first key based on the first parameter and saves the first key; for another example, after the terminal device sends a sixth security mode completion message to the AMF in response to the sixth security mode command message, the terminal device derives the second key based on the second parameter and saves the second key.

[0381] In addition, it should be noted that the embodiment shown in Figure 6 mainly takes the scenario in which the AMF sends multiple security mode command messages (such as the scenario in which the AMF retransmits the security mode command message) as an example to illustrate that the terminal device performs integrity protection verification on the security mode command message received from the access network device based on different key verifications. This does not constitute any limitation on the protection scope of this application. The integrity protection verification of the security mode command message received from the access network device by the terminal device based on different keys can also be applied to other scenarios, including but not limited to: the terminal device locally stores multiple keys, or the terminal device locally stores multiple parameters for deducing the key, and there is no limitation on the method of obtaining the key and the parameters required for deducing the key.

[0382] Under this implementation, when the subsequent terminal device performs integrity protection verification on the security mode command message received from the access network device according to the method shown in Figure 6, it can directly perform integrity protection verification based on the saved key, which is time-consuming, but the memory space required to store the key is large. Moreover, if the previous key is continuously used for integrity protection verification, a large number of keys need to be saved, which takes up a large amount of memory and may pose certain security risks. Therefore, in order to save memory overhead and ensure security, under this implementation, the terminal device can save the key obtained by the previous deduction. If the integrity protection verification fails, the previously saved key is used to perform the integrity protection verification again. If it fails again, the access network device is replied with a message indicating that the integrity protection verification failed; if it succeeds, the access network device is replied with a message indicating that the integrity protection verification succeeded.

[0383] As another possible implementation, after the terminal device sends the security mode completion message to the AMF, the terminal device locally saves the parameters in the security mode completion message.

[0384] For example, after the terminal device sends a seventh security mode completion message to the AMF in response to the seventh security mode command message, the terminal device saves the first parameter; for another example, after the terminal device sends a sixth security mode completion message to the AMF in response to the sixth security mode command message, the terminal device saves the second parameter.

[0385] Under this implementation, when the subsequent terminal device performs integrity protection verification on the security mode command message received from the access network device according to the method shown in Figure 6, it is necessary to perform key deduction based on different parameters and perform integrity protection verification based on the deduced key. Saving parameters takes up little memory, but key deduction is required, and the processing time is long. Moreover, if the previous parameters are continuously used for key deduction and the integrity protection verification is performed based on the deduced key, a large number of parameters need to be saved, which takes up a large amount of memory, and the processing time is long, which may pose certain security risks. Therefore, in order to save memory overhead and ensure security, under this implementation, the terminal device can save the last parameter. If the integrity protection verification fails, the previously saved parameters are used to deduce the key again for integrity protection verification. If it fails again, the access network device is replied with a message indicating that the integrity protection verification failed; if successful, the access network device is replied with a message indicating that the integrity protection verification succeeded.

[0386] For example, in this embodiment, in order to avoid the large memory overhead and security risk problems caused by repeatedly attempting to perform integrity protection checks on the security mode command message received from the access network device, the terminal device can determine whether the number of repeated attempts has reached a threshold before re-performing integrity protection checks on the security mode command message.

[0387] For example, before the terminal device performs integrity protection verification on the fifth security mode command message based on the second key, the terminal device determines that the number of times integrity protection verification is performed on the fifth security mode command message is less than a first threshold.

[0388] Optionally, the value of the first threshold is N (e.g., N=5), which can be understood as when the RRC on the terminal device side receives the security mode command message from the access network device, it performs an integrity protection check. If the check fails, the previously deduced key (or the key deduced based on the previous parameters) is used to perform the integrity protection check again. N attempts may be made, or all locally stored keys (or parameters) have been tried and all have failed, then a reply is given to the access network device that the verification has failed; if one attempt succeeds, then a reply may be given to the access network device that the verification has succeeded, and the RRC on the terminal device side starts the set of keys that successfully completed the verification.

[0389] In the communication method shown in Figure 6, after the terminal device fails to perform integrity protection verification on the security mode command message sent by the access network device, it can also use the previously derived and saved key (or the previous uplink count value to re-derive the key) for verification, supporting the terminal device to perform multiple integrity protection verifications, thereby increasing the probability of success of the terminal device integrity protection verification.

[0390] The present application also provides a communication method, in which the network side delays the deduction of the key so that the terminal device and the network side can generate the same key. The communication method will be described in detail below in conjunction with Figure 7.

[0391] FIG7 is a schematic flow chart of another communication method provided by the present application, which includes the following steps:

[0392] S710, the terminal device sends an eighth security mode completion message to the AMF.

[0393] Specifically, the eighth security mode completion message includes a fourth parameter (eg, a fourth uplink count).

[0394] S720, AMF delays deducing the key and / or delays sending the key to the access network device.

[0395] The AMF receives the eighth security mode complete message. Further, if the AMF has retransmitted the security mode command message due to the expiration of the first timer (e.g., T3560 timer) before receiving the eighth security mode complete message, the AMF may delay deducing the key and / or delay sending the key to the access network device after receiving the eighth security mode complete message, thereby waiting to receive another security mode complete message.

[0396] Before AMF receives the eighth security mode completion message, the retransmission of the security mode command message can be specifically: before AMF receives the eighth security mode completion message from the terminal device, AMF sends the eighth security mode command message to the terminal device and starts the first timer; after the first timer expires, AMF sends the ninth security mode command message to the terminal device, wherein the ninth security mode command message is a retransmission message of the eighth security mode command message.

[0397] In the event that a retransmission of the Security Mode Command message has occurred, the AMF may delay derivation of the key and / or delay sending the key to the access network device after receiving the Security Mode Complete message from the terminal device, including but not limited to the following two implementations:

[0398] As a possible implementation method, when no other security mode completion message is received from the terminal device when the second timer expires, the AMF derives the fourth key and sends the fourth key to the access network device. The fourth key is deduced based on the fourth parameter.

[0399] As another possible implementation, if no other security mode completion message is received from the terminal device before the second timer expires, the AMF sends the fourth key to the access network device. The fourth key is derived based on the fourth parameter. In this implementation, there is no limit on when the AMF derives the fourth key; it can be when the second timer expires or after receiving the fourth parameter.

[0400] As another possible implementation method, before the second timer expires, a ninth security mode completion message is received from the terminal device, and the AMF derives the fifth key based on the fifth parameter (e.g., the fifth uplink count) in the ninth security mode completion message and sends the fifth key to the access network device.

[0401] For ease of understanding, the following describes how AMF delays key derivation, combined with specific implementation methods:

[0402] Implementation method #3: The security mode command message sent by the AMF to the terminal device includes the eighth security mode command message and the ninth security mode command message, and the ninth security mode command message is a retransmission message of the eighth security mode command message.

[0403] The following describes in detail how the AMF derives the key in the case of implementation #3, using Figure 8. As shown in Figure 8, the following steps are involved:

[0404] S811, AMF sends the eighth security mode command message to the terminal device and starts the first timer.

[0405] S812, the first timer of AMF (such as T3560) times out, sends a ninth security mode command message to the terminal device, and restarts the first timer.

[0406] In this embodiment, when the first timer (e.g., T3560) expires and no response message to the eighth security mode command message is received, the AMF can retransmit the security mode command message to the terminal device, that is, the ninth security mode command message is a retransmission message of the eighth security mode command message.

[0407] S813: The terminal device sends an eighth security mode complete message to the AMF. The eighth security mode complete message is a message sent by the terminal device in response to the eighth security mode command message. As a possible implementation, the AMF may start a second timer upon receiving the eighth security mode complete message, and the AMF derives a key and / or sends a key based on the expiration of the second timer. In this implementation, the AMF starts the second timer upon receiving the eighth security mode complete message. How the AMF derives a key and / or sends a key based on the expiration of the second timer will be described in detail below and is not detailed here.

[0408] As another possible implementation, the AMF may start a second timer when sending the ninth security mode command message to the terminal device, and the AMF derives and / or sends a key based on the expiration of the second timer. In this implementation, the AMF starts the second timer when sending the ninth security mode command message to the terminal device. How the AMF derives and / or sends a key based on the expiration of the second timer will be described in detail below and is not detailed here.

[0409] As an example and not a limitation, the second timer may be the first timer, e.g., the second timer is T3560. Alternatively, the second timer may be a timer different from T3560, e.g., the second timer has a shorter duration than the first timer; or, for example, the second timer has a longer duration than the first timer. In this embodiment, the second timer has no limitation on the duration and may be set with reference to historical communication data.

[0410] The AMF derives a key and / or sends a key based on the expiration of the second timer, including the following possible implementation methods:

[0411] As a possible implementation method, when the second timer expires and the ninth security mode completion message in response to the ninth security mode command message is not received from the terminal device, the AMF derives the fourth key and sends the fourth key to the access network device, where the fourth key is derived based on the fourth parameter.

[0412] As another possible implementation, if the AMF has not received the ninth security mode complete message in response to the ninth security mode command message before the second timer expires, the AMF sends the fourth key to the access network device. The fourth key is derived based on the fourth parameter. In this implementation, there is no limit on when the AMF derives the fourth key; it can be when the second timer expires or after receiving the fourth parameter.

[0413] As another possible implementation method, before the second timer expires, a ninth security mode completion message is received from the terminal device in response to the ninth security mode command message, and the AMF derives the fifth key based on the fifth parameter (e.g., the fifth uplink count) in the ninth security mode completion message and sends the fifth key to the access network device.

[0414] If, before the second timer expires, the AMF receives a ninth security mode complete message in response to the ninth security mode command message from the terminal device, the AMF derives the fifth key based on the fifth parameter in the ninth security mode complete message and sends the fifth key to the access network device. The method shown in FIG8 may further include:

[0415] S814: The terminal device sends a ninth security mode complete message to the AMF. The ninth security mode complete message is a message sent by the terminal device in response to the ninth security mode command message, and the ninth security mode complete message includes the fifth parameter.

[0416] S815: AMF derives the key based on the fifth parameter.

[0417] Before the second timer expires, the AMF receives the ninth security mode completion message. Then, the AMF further derives a key based on the fifth parameter and sends the derived key to the access network device.

[0418] S816: AMF sends the key to the access network device.

[0419] If the second timer times out and the AMF has not received any other security mode completion message other than the eighth security mode completion message, the AMF may send the fourth key derived based on the fourth parameter included in the eighth security mode completion message to the access network device. The timing for the AMF to derive the fourth key is not limited, and may be when the second timer times out or after receiving the fourth parameter; or, the AMF may perform multiple key derivations in succession to obtain multiple keys (for example, the AMF performs key derivation after receiving the eighth security mode completion message to obtain the fourth key, and also performs key derivation after receiving the ninth security mode completion message to obtain the fifth key), but provides the latest deduced key to the access network device.

[0420] In addition, it should be noted that if the AMF determines that it is not necessary to send a key to the access network device based on the received eighth security mode complete message, the AMF may not start the above-mentioned second timer. For example, the AMF determines that security protection is not required for subsequent access layer message transmission between the terminal device and the access network device based on the terminal device information carried in the eighth security mode complete message.

[0421] Implementation method #4: The security mode command messages sent by the AMF to the terminal device in sequence include the eighth security mode command message, the ninth security mode command message and the tenth security mode command message, and the ninth security mode command message is a retransmission message of the eighth security mode command message.

[0422] The following describes in detail how the AMF derives the key in the case of implementation #4, using Figure 9. As shown in Figure 9, the following steps are involved:

[0423] S911, AMF sends the eighth security mode command message to the terminal device and starts the first timer.

[0424] S912, the first timer of AMF (such as T3560) times out, sends a ninth security mode command message to the terminal device, and restarts the first timer.

[0425] In this embodiment, when the first timer (e.g., T3560) expires and no response message to the eighth security mode command message is received, the AMF can retransmit the security mode command message to the terminal device, that is, the ninth security mode command message is a retransmission message of the eighth security mode command message.

[0426] S913: The terminal device sends a security mode completion message #A to the AMF. The security mode completion message #A is a message in which the terminal device responds to the eighth security mode command message, and the AMF stops the first timer.

[0427] S914, AMF sends the tenth security mode command message to the terminal device and restarts the first timer.

[0428] S915: The terminal device sends a security mode complete message #B to the AMF. The security mode complete message #B is a message sent by the terminal device in response to the ninth security mode command message. The security mode complete message #B is equivalent to the eighth security mode complete message shown in FIG7.

[0429] As a possible implementation, the AMF may start the second timer upon receiving the security mode completion message #B.

[0430] As another possible implementation, the AMF may start the second timer at the moment of sending the tenth security mode command message to the terminal device.

[0431] For the description related to the first timer and the second timer, please refer to the description in the above example three, which will not be repeated here.

[0432] Furthermore, if the AMF receives a security mode complete message #C from the terminal device in response to the tenth security mode command message before the second timer expires, the AMF derives the fifth key based on the fifth parameter in the security mode complete message #C and sends the fifth key to the access network device. The method flow shown in FIG9 may further include:

[0433] S916: The terminal device sends a security mode complete message #C to the AMF. The security mode complete message #C is a message sent by the terminal device in response to the tenth security mode command message.

[0434] S917: AMF derives the key based on the fifth parameter.

[0435] Before the second timer expires, the AMF receives the security mode completion message #C. Further, the AMF derives a key based on the fifth parameter and sends the derived key to the access network device.

[0436] S918: AMF provides the key to the access network device.

[0437] It should be noted that if after the second timer expires, the AMF does not receive any other security mode completion message other than the security mode completion message #B, the AMF can deduce the fourth key based on the fourth parameter included in the security mode completion message #B and send the fourth key to the access network device.

[0438] In addition, the communication methods shown in Figures 6 and 7 can be used in combination. For example, if the AMF side does not derive the same key as the terminal device side (for example, the T3560 timer times out again and the AMF side has not received the security mode completion message), the terminal device can use the method shown in Figure 6 to perform integrity protection verification.

[0439] In the communication method shown in Figure 7, after the AMF receives the security mode completion message from the terminal device, it can postpone providing the key to the access network device and start the second timer. When the second timer times out, if the AMF has not received other security mode completion messages, the AMF provides the key to the access network device; or, when other security mode completion messages are received before the second timer times out, the AMF performs key deduction based on the parameters in the most recently received security mode completion message and provides the deduced key to the access network device. This allows the parameters of the key deduced by the core network device to be the same as the parameters of the terminal key deduction, and the core network device can provide the deduced key to the access network device, so that the terminal side and the access network device side can perform subsequent access layer security verification based on the same key, thereby increasing the possibility of successful access layer security verification.

[0440] The present application also provides a communication method, in which, when the security mode command messages sent by the AMF to the terminal device in sequence include an eighth security mode command message, a ninth security mode command message, and a tenth security mode command message, and the ninth security mode command message is a retransmission message of the eighth security mode command message, the time of sending the tenth security mode command message is postponed, so that the AMF can send subsequent security mode command messages after receiving a response message to the retransmitted security mode command message (such as the ninth security mode command message), thereby avoiding the AMF mistakenly believing that the response message received to the ninth security mode command message is a response message to the tenth security mode command message, and using parameters different from those on the terminal device side to deduce a key, resulting in a failure of the access layer security check. The communication method will be described in detail below with reference to FIG10.

[0441] FIG10 is a schematic flow chart of another communication method provided by the present application, which includes the following steps:

[0442] S1011, AMF sends the eighth security mode command message to the terminal device and starts the first timer.

[0443] S1012, the first timer of AMF (such as T3560) times out, sends a ninth security mode command message to the terminal device, and restarts the first timer.

[0444] In this embodiment, when the first timer (e.g., T3560) expires and no response message to the eighth security mode command message is received, the AMF can retransmit the security mode command message to the terminal device, that is, the ninth security mode command message is a retransmission message of the eighth security mode command message.

[0445] S1013: The terminal device sends an eighth security mode completion message to the AMF. The eighth security mode completion message is a message sent by the terminal device in response to the eighth security mode command message.

[0446] In this embodiment, the AMF may stop the first timer and start the third timer when receiving the eighth security mode completion message.

[0447] As an example and not a limitation, the third timer may be the first timer, e.g., the third timer is T3560. Alternatively, the third timer may be a timer different from T3560, e.g., the timing duration of the third timer is less than the timing duration of the first timer; or, for example, the timing duration of the third timer is greater than the timing duration of the first timer. In this embodiment, the timing duration of the third timer is not limited and may be set with reference to historical communication data.

[0448] S1014: The terminal device sends a ninth security mode completion message to the AMF. The ninth security mode completion message is a message sent by the terminal device in response to the ninth security mode command message.

[0449] As a possible implementation method, if the AMF receives a ninth security mode completion message sent by the UE before the third timer expires, the AMF sends a tenth security mode command message to the terminal device based on the ninth security mode completion message and restarts the first timer.

[0450] As another possible implementation method, if the AMF does not receive the ninth security mode completion message before the third timer expires, after the third timer expires, the AMF sends a tenth security mode command message to the terminal device.

[0451] S1015, AMF sends the tenth security mode command message to the terminal device and restarts the first timer.

[0452] S1016: The terminal device sends a tenth security mode complete message to the AMF. The tenth security mode complete message is a message sent by the terminal device in response to the tenth security mode command message.

[0453] S1017: AMF derives the key based on the parameters in the tenth security mode command message.

[0454] S1018: AMF provides the key to the access network device.

[0455] The present application also provides a communication method. When the access network device receives a security mode failure message from the terminal device, it can re-request the AMF to provide a key and re-initiate the access layer security mode control process based on the re-obtained key, so as to increase the possibility of successful access layer security verification. The communication method will be described in detail below in conjunction with Figure 11.

[0456] FIG11 is a schematic flow chart of another communication method provided by the present application, which includes the following steps:

[0457] S1111, AMF sends the eighth security mode command message to the terminal device and starts the first timer.

[0458] S1112, the first timer of AMF (such as T3560) times out, sends a ninth security mode command message to the terminal device, and restarts the first timer.

[0459] In this embodiment, when the first timer (e.g., T3560) expires and no response message to the eighth security mode command message is received, the AMF can retransmit the security mode command message to the terminal device, that is, the ninth security mode command message is a retransmission message of the eighth security mode command message.

[0460] S1113: The terminal device sends an eighth security mode completion message to the AMF. The eighth security mode completion message is a message sent by the terminal device in response to the eighth security mode command message.

[0461] S1114, the terminal device derives a key according to the parameters included in the eighth security mode completion message.

[0462] Specifically, the terminal device performs a key (eg, K based on the uplink parameter (eg, uplink count) corresponding to the eighth security mode completion message. gNB ) to derive the fourth key. It should be understood that there is no time limit for the terminal device to derive the fourth key and send the eighth security mode completion message. The terminal device can perform key deduction after determining the uplink parameters corresponding to the eighth security mode completion message, or perform key deduction after sending the eighth security mode completion message. This application does not impose any restrictions on this.

[0463] In this embodiment, the AMF may stop the first timer when receiving the eighth security mode completion message, generate a fourth key, and provide it to the access network device.

[0464] In this embodiment, after receiving the fourth key, the access network device may send an access layer security mode command message to the terminal device. For details, see S1117.

[0465] S1115: The terminal device sends a ninth security mode completion message to the AMF. The ninth security mode completion message is a message sent by the terminal device in response to the ninth security mode command message.

[0466] S1116, the terminal device derives the key according to the parameters included in the ninth security mode completion message.

[0467] Specifically, the terminal device performs a key (eg, K based on the uplink parameter (eg, uplink count) corresponding to the ninth security mode completion message. gNB ) to derive the fifth key. It should be understood that there is no time limit for the terminal device to derive the fifth key and send the ninth security mode complete message. The terminal device can perform key derivation after determining the uplink parameters corresponding to the ninth security mode complete message, or perform key derivation after sending the ninth security mode complete message. This application does not limit this. As a possible implementation, after receiving the ninth security mode complete message, the AMF saves the uplink parameters in the ninth security mode command message.

[0468] As another possible implementation method, after receiving the ninth security mode completion message, the AMF derives the fifth key based on the uplink parameters in the ninth security mode command message, but does not need to provide the fifth key to the access network device.

[0469] S1117, the access network device sends an access layer security mode command message to the terminal device.

[0470] In this embodiment, after the access network device receives the fourth key from the AMF, it may perform integrity protection and / or encryption protection on the access layer security mode command message subsequently sent to the terminal device according to the fourth key. The performing integrity protection and / or encryption protection on the access layer security mode command message subsequently sent to the terminal device according to the fourth key includes: the access network device may further generate an access layer signaling plane integrity protection key and / or an access layer signaling plane confidentiality protection key according to the fourth key, and use the access layer signaling plane integrity protection key and / or the access layer signaling plane confidentiality protection key to perform integrity protection and / or encryption protection on the access layer security mode command message subsequently sent to the terminal device.

[0471] Since the access network device performs integrity protection and / or encryption protection on the access layer security mode command message based on the fourth key, and the fifth key is derived from the uplink parameters in the ninth security mode command message stored on the terminal device side, the terminal device fails to perform integrity verification on the access layer security mode command message based on the fifth key.

[0472] S1118, the terminal device sends an access layer security mode failure message to the access network device.

[0473] Optionally, the access layer security mode failure message includes a cause value, and the cause value is used to indicate that the terminal device fails to verify the integrity protection of the access layer security mode command message.

[0474] In this embodiment, when the access network device receives the access layer security mode failure message, it can request the key from the AMF again instead of directly sending a connection failure message to the terminal device.

[0475] Optionally, the access network device may determine whether to request a key from the AMF. For example, if the access layer security mode failure message carries a cause value, the access network device may determine whether to request a key from the AMF based on the cause value (e.g., if the cause value indicates a key error, the AMF may be requested; or if the cause value indicates a terminal device abnormality, the AMF may not be requested). Alternatively, the access network device may determine whether to request a key from the AMF based on local policy.

[0476] Exemplarily, when the access network device decides to request a key from the AMF, the method flow shown in FIG1 further includes:

[0477] S1119: The access network device sends a first request message to the AMF. The first request message is used to request a key.

[0478] S1101: The AMF sends a first response message to the access network device. The first response message includes a fifth key.

[0479] Specifically, the time when the access network device sends the access layer security mode command message is later than the time when the AMF receives the above-mentioned ninth security mode completion message, that is, when the AMF receives the first request message, the fifth key or the uplink parameters required to deduce the fifth key have been locally saved.

[0480] The AMF regenerates the fifth key based on the locally stored uplink parameter values ​​or sends the generated fifth key to the access network device. For example, if the AMF locally stores the uplink parameters, the fifth key is derived based on the uplink parameters. For another example, if the AMF locally stores the fifth key, the fifth key is used directly.

[0481] In this embodiment, after the access network device obtains the fifth key, it can re-initiate the access layer security mode control process based on the fifth key. For example, the access network device can perform integrity protection and / or encryption protection on the access layer security mode command message subsequently sent to the terminal device based on the fifth key. Among them, performing integrity protection and / or encryption protection on the access layer security mode command message subsequently sent to the terminal device based on the fifth key includes: the access network device can further generate an access layer signaling plane integrity protection key and / or an access layer signaling plane confidentiality protection key based on the key, and use the access layer signaling plane integrity protection key and / or the access layer signaling plane confidentiality protection key to perform integrity protection and / or encryption protection on the access layer security mode command message subsequently sent to the terminal device.

[0482] In this embodiment, the key used by the access network device to initiate the access layer security mode control process twice is derived based on different parameters, and the different parameters are carried in different security mode completion messages. The different security mode completion messages are security mode completion messages sent by the terminal device to the core network device in the security mode control process. Specifically, the core network device derives a key based on the parameters in the different security mode completion messages to obtain a corresponding key, and provides the derived key to the access network device, so that the access network device can perform subsequent access layer security verification based on the corresponding key. The key on the access network device side is provided by the core network device, and the core network device receives multiple security mode completion messages from the terminal device. The parameter used by the core network device to deduce the key may be a parameter carried in one of the multiple security mode completion messages. The parameter may be different from the parameter used by the terminal device to derive the key. Therefore, if the access network device obtains the key from the core network device again after receiving the access layer security mode failure message, and initiates the access layer security mode control process again based on the obtained key, the key used may be exactly the same as the key based on which the terminal device verifies the access layer security mode command message, so that the terminal side and the access network device side can perform subsequent access layer security verification based on the same key, thereby increasing the possibility of successful access layer security verification.

[0483] It should be understood that the method flow shown in Figure 11 shows that the access network device can re-acquire the key from the AMF through the first request message after receiving the access layer security mode failure message, and re-initiate the access layer security mode control process based on the acquired key. This application does not limit the process after re-initiating the access layer security mode control process. For example, if the access network device receives the access layer security mode failure message again, the access network device can send an RRC release message to the terminal device, or the access network device can also re-acquire the key from the AMF and re-initiate the access layer security mode control process based on the acquired key. In this embodiment, there is no limit on the number of times the access network device re-initiates the access layer security mode control process, which can be one or more times. In addition, this application does not limit the number of times the security mode command message is retransmitted in the non-access layer security mode control process.

[0484] The present application also provides a communication method. When the access network device receives a security mode failure message from the terminal device, it can start a timer and send an RRC release message after the timer expires. If a key is received from the AMF before the timer expires, the access layer security mode control process can be re-initiated based on the received key, so as to increase the possibility of successful access layer security verification. The communication method will be described in detail below in conjunction with Figure 12.

[0485] FIG12 is a schematic flow chart of another communication method provided by the present application, which includes the following steps:

[0486] S1211, AMF sends the eighth security mode command message to the terminal device and starts the first timer.

[0487] S1212, the first timer of AMF (such as T3560) times out, sends a ninth security mode command message to the terminal device, and restarts the first timer.

[0488] In this embodiment, when the first timer (e.g., T3560) expires and no response message to the eighth security mode command message is received, the AMF can retransmit the security mode command message to the terminal device, that is, the ninth security mode command message is a retransmission message of the eighth security mode command message.

[0489] S1213: The terminal device sends an eighth security mode completion message to the AMF. The eighth security mode completion message is a message sent by the terminal device in response to the eighth security mode command message.

[0490] S1214: The terminal device derives a key based on the parameters included in the eighth security mode completion message.

[0491] Specifically, the terminal device performs a key (eg, K based on the uplink parameter (eg, uplink count) corresponding to the eighth security mode completion message. gNB ) to derive the fourth key. It should be understood that there is no time limit for the terminal device to derive the fourth key and send the eighth security mode completion message. The terminal device can perform key deduction after determining the uplink parameters corresponding to the eighth security mode completion message, or perform key deduction after sending the eighth security mode completion message. This application does not impose any restrictions on this.

[0492] In this embodiment, the AMF may stop the first timer when receiving the eighth security mode completion message, generate a fourth key, and provide it to the access network device.

[0493] In this embodiment, after receiving the fourth key, the access network device may send an access layer security mode command message to the terminal device. For details, see S1215.

[0494] S1215, the access network device sends an access layer security mode command message #1 to the terminal device.

[0495] In this embodiment, after the access network device receives the fourth key from the AMF, it may perform integrity protection and / or encryption protection on the access layer security mode command message subsequently sent to the terminal device according to the fourth key. The performing integrity protection and / or encryption protection on the access layer security mode command message subsequently sent to the terminal device according to the fourth key includes: the access network device may further generate an access layer signaling plane integrity protection key and / or an access layer signaling plane confidentiality protection key according to the fourth key, and use the access layer signaling plane integrity protection key and / or the access layer signaling plane confidentiality protection key to perform integrity protection and / or encryption protection on the access layer security mode command message subsequently sent to the terminal device.

[0496] S1216, the terminal device sends an access layer security mode failure message #1 to the access network device.

[0497] Optionally, the access network device starts a fourth timer; the fourth timer is used to wait whether the AMF will send a newly generated key.

[0498] If the fifth key is not received from the AMF after the fourth timer times out, the access network device sends a radio resource control release message to the terminal device; or

[0499] Before the fourth timer expires, the access network device receives the fifth key from the AMF, and the access network device performs the access layer security mode control process again based on the fifth key.

[0500] S1217: The terminal device sends a ninth security mode completion message to the AMF. The ninth security mode completion message is a message sent by the terminal device in response to the ninth security mode command message.

[0501] S1218, the terminal device derives a key according to the parameters included in the ninth security mode completion message.

[0502] Specifically, the terminal device performs a key (eg, K based on the uplink parameter (eg, uplink count) corresponding to the ninth security mode completion message. gNB ) to derive the fifth key. It should be understood that there is no time limit for the terminal device to derive the fifth key and send the ninth security mode completion message. The terminal device can perform key deduction after determining the uplink parameters corresponding to the ninth security mode completion message, or perform key deduction after sending the ninth security mode completion message. This application does not impose any restrictions on this.

[0503] After receiving the ninth security mode completion message, the AMF derives the fifth key based on the uplink parameter in the ninth security mode command message, and provides the fifth key to the access network device.

[0504] S1219, AMF sends the fifth key to the access network device.

[0505] S1201, the access network device sends an access layer security mode command message #2 to the terminal device.

[0506] In this embodiment, after the access network device receives the fifth key from the AMF, it may perform integrity protection and / or encryption protection on the access layer security mode command message subsequently sent to the terminal device according to the fifth key. The performing integrity protection and / or encryption protection on the access layer security mode command message subsequently sent to the terminal device according to the fifth key includes: the access network device may further generate an access layer signaling plane integrity protection key and / or an access layer signaling plane confidentiality protection key according to the fourth key, and use the access layer signaling plane integrity protection key and / or the access layer signaling plane confidentiality protection key to perform integrity protection and / or encryption protection on the access layer security mode command message subsequently sent to the terminal device.

[0507] Furthermore, in the case where the fourth timer is started, if the fourth timer has not expired, step S1201 is performed, and the access network device stops the fourth timer.

[0508] S1202: The terminal device sends an access layer security mode completion message to the access network device.

[0509] The terminal device successfully verifies the access layer security mode command message #2 based on the fifth key, and sends an access layer security mode completion message to the access network device; the access network device successfully verifies the access layer security mode completion message and completes the air interface security activation process between the terminal device and the access network device.

[0510] In the embodiment shown in FIG12 , upon receiving a security mode failure message from a terminal device, the access network device may temporarily not send back an RRC release message, but may instead start a fourth timer, wait until the fourth timer expires, and then send an RRC release message to the terminal device to release the connection between the terminal device and the access network device. Alternatively, if another key provided by the core network is received before the fourth timer expires, the access network device may retry initiating the access layer security mode control process based on the received key.

[0511] It should be understood that the size of the serial numbers 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 embodiments of the present application.

[0512] It should also be understood that in the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.

[0513] It should also be understood that in some of the above embodiments, exemplary descriptions are mainly given using devices in existing network architectures (such as AMF, access network devices, and terminal devices, etc.). It should be understood that the embodiments of this application do not limit the specific form of the devices. For example, devices that can achieve the same functions in the future are applicable to the embodiments of this application.

[0514] It can be understood that in the above-mentioned method embodiments, the methods and operations implemented by devices (such as AMF, access network devices and terminal devices, etc.) can also be implemented by components of the devices (such as chips or circuits).

[0515] The communication method provided in the embodiments of the present application is described in detail above in conjunction with Figures 3 to 12. The above communication method is mainly introduced from the perspective of the interaction between the various protocol layers of the terminal device. It is understood that in order to implement the above functions, the terminal device includes the corresponding hardware structure and / or software modules for performing each function.

[0516] Those skilled in the art should be aware that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed in the form of hardware or computer software driving hardware 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.

[0517] The communication device provided in this application is described in detail below with reference to Figures 13 to 15. It should be understood that the description of the device embodiment corresponds to the description of the method embodiment. Therefore, for matters not described in detail, reference can be made to the method embodiment above. For the sake of brevity, some contents will not be repeated.

[0518] In the embodiment of the present application, the functional modules of the transmitting device or the receiving device can be divided according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation. The following is an example of dividing each functional module according to each function.

[0519] Figure 13 is a schematic block diagram of a communication device 10 provided in an embodiment of the present application. The device 10 includes a transceiver module 11 and a processing module 12. The transceiver module 11 can implement corresponding communication functions, and the processing module 12 is used to process data. In other words, the transceiver module 11 is used to perform operations related to receiving and sending, and the processing module 12 is used to perform other operations besides receiving and sending. The transceiver module 11 can also be referred to as a communication interface or a communication unit.

[0520] Optionally, the device 10 may further include a storage module 13, which may be used to store instructions and / or data. The processing module 12 may read the instructions and / or data in the storage module so that the device implements the actions of the devices in the aforementioned method embodiments.

[0521] In one design, the device 10 may correspond to the AMF in the above method embodiment, or be a component of the AMF (such as a chip).

[0522] The device 10 can implement the steps or processes corresponding to the AMF execution in the above method embodiment, wherein the transceiver module 11 can be used to perform the AMF transceiver-related operations in the above method embodiment, and the processing module 12 can be used to perform the AMF processing-related operations in the above method embodiment.

[0523] In one possible implementation, the transceiver module 11 is used to send a first security mode command message to a terminal device, wherein the first security mode command message includes a first value of a first identifier, and the first value of the first identifier is used to identify the first security mode command message. The transceiver module 11 is also used to receive a first security mode completion message from the terminal device, wherein the first security mode completion message includes a first value of a second identifier, and the first value of the second identifier is used to identify the first security completion message. The processing module 12 is used to deduce a key based on parameters included in the first security mode completion message when the first value of the first identifier and the first value of the second identifier are the same, wherein the key is used to generate a key required for access layer security verification. The transceiver module 11 is also used to send the key to an access network device.

[0524] In another possible implementation, the transceiver module 11 is configured to receive an eighth security mode completion message from the terminal device, where the eighth security mode completion message includes a fourth parameter; if the security mode command message is retransmitted due to a first timer expiration before receiving the eighth security mode completion message, the processing module 12 is configured to start a second timer; if no other security mode completion message is received from the terminal device when the second timer expires, the transceiver module 11 is configured to send a fourth key to the access network device, where the fourth key is derived based on the fourth parameter; or,

[0525] Before the second timer times out, the transceiver module 11 receives a ninth security mode completion message from the terminal device, and the processing module 12 is used to deduce the fifth key based on the fifth parameter in the ninth security mode completion message, and the transceiver module 11 is used to send the fifth key to the access network device.

[0526] In another possible implementation, the transceiver module 11 is configured to receive an eighth security mode completion message from the terminal device. If the security mode command message is retransmitted due to a first timer expiring before receiving the eighth security mode completion message, the processing module 12 is configured to start a third timer.

[0527] If no other security mode completion message is received from the terminal device when the third timer times out, the transceiver module 11 sends a tenth security mode command message to the terminal device, and the processing module 12 restarts the first timer; or

[0528] Before the third timer times out, the transceiver module 11 receives a ninth security mode completion message from the terminal device. After receiving the ninth security mode completion message, the transceiver module 11 sends a tenth security mode command message to the terminal device, and the processing module 12 restarts the first timing.

[0529] In another possible implementation, the transceiver module 11 is configured to receive an eighth security mode completion message from the terminal device, the eighth security mode completion message including the fourth parameter. The processing module 12 is configured to derive a fourth key based on the fourth parameter, and the transceiver module 11 sends the fourth key to the access network device. The transceiver module 11 receives a ninth security mode completion message from the terminal device, the ninth security mode completion message including the fifth parameter. The transceiver module 11 receives a first request message from the access network device, the first request message being for requesting a key. The transceiver module 11 sends a fifth key to the access network device, the fifth key being derived based on the fifth parameter.

[0530] When the device 10 is used to execute the method in FIG3 , the transceiver module 11 can be used to execute the steps of sending and receiving information in the method, such as steps S310 , S320 and S350 ; the processing module 12 can be used to execute the processing steps in the method, such as step S340 .

[0531] When the device 10 is used to execute the method in Figure 4, the transceiver module 11 can be used to execute the steps of sending and receiving information in the method, such as steps S410, S430, S450, S470 and S490; the processing module 12 can be used to execute the processing steps in the method, such as steps S460 and S480.

[0532] When the device 10 is used to execute the method in Figure 5, the transceiver module 11 can be used to execute the steps of sending and receiving information in the method, such as steps S510, S520, S530, S540, S560, S580, S591, S594, S595, S598 and S599; the processing module 12 can be used to execute the processing steps in the method, such as steps S590, S593 and S597.

[0533] When the device 10 is used to execute the method in Figure 6, the transceiver module 11 can be used to execute the steps of sending and receiving information in the method, such as steps S611, S612, S601, S615 and S616; the processing module 12 can be used to execute the processing steps in the method, such as step S614.

[0534] When the device 10 is used to execute the method in FIG. 7 , the transceiver module 11 may be used to execute the steps of sending and receiving information in the method, such as step S710 ; the processing module 12 may be used to execute the processing steps in the method, such as step S720 .

[0535] When the device 10 is used to execute the method in Figure 8, the transceiver module 11 can be used to execute the steps of sending and receiving information in the method, such as steps S811, S812, S813, S814 and S816; the processing module 12 can be used to execute the processing steps in the method, such as step S815.

[0536] When the device 10 is used to execute the method in Figure 9, the transceiver module 11 can be used to execute the steps of sending and receiving information in the method, such as steps S911, S912, S913, S914, S915, S916 and S918; the processing module 12 can be used to execute the processing steps in the method, such as step S917.

[0537] When the device 10 is used to execute the method in Figure 10, the transceiver module 11 can be used to execute the steps of sending and receiving information in the method, such as steps S1011, S1012, S1013, S1014, S1015, S1016 and S1018; the processing module 12 can be used to execute the processing steps in the method, such as step S1017.

[0538] When the device 10 is used to execute the method in Figure 11, the transceiver module 11 can be used to execute the steps of sending and receiving information in the method, such as steps S1111, S1112, S1113, S1114, S1115, S1117, S1118, S1101 and S1119; the processing module 12 can be used to execute the processing steps in the method.

[0539] When the device 10 is used to execute the method in Figure 12, the transceiver module 11 can be used to execute the steps of sending and receiving information in the method, such as steps S1211, S1212, S1213, S1217 and S1219; the processing module 12 can be used to execute the processing steps in the method.

[0540] It should be understood that the specific process of each unit executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.

[0541] In another design, the apparatus 10 may correspond to the terminal device in the above method embodiment, or be a component (such as a chip) of the terminal device.

[0542] The device 10 can implement the steps or processes executed by the terminal device in the above method embodiment, wherein the transceiver module 11 can be used to execute the transceiver-related operations of the terminal device in the above method embodiment, and the processing module 12 can be used to execute the processing-related operations of the terminal device in the above method embodiment.

[0543] In one possible implementation, the transceiver module 11 is used to receive a first security mode command message from a core network device, wherein the first security mode command message includes a first value of an identifier, and the first value of the first identifier is used to identify the first security mode command message; the transceiver module 11 is used to send a first security mode completion message to the core network device in response to the first security mode command message, wherein the first security mode completion message includes a first value of a second identifier, and the first value of the second identifier is used to identify the first security completion message; wherein the first value of the first identifier is the same as the first value of the second identifier; the processing module 12 is used to deduce a key based on the parameters included in the first security mode completion message, and the key is used to generate a key required for access layer security verification.

[0544] In another possible implementation, the transceiver module 11 is used to receive a fifth security mode command message from the access network device; the processing module 12 is used to perform integrity protection verification on the fifth security mode command message based on a first key; the processing module 12 is also used to perform integrity protection verification on the fifth security mode command message based on a second key if the verification fails, wherein the first key is deduced based on the first parameter in the seventh security mode completion message, and the second key is deduced based on the second parameter in the sixth security mode completion message, and the seventh security mode completion message and the sixth security mode completion message are sent in the security mode control process, and the sixth security mode completion message is sent before the seventh security mode completion message.

[0545] When the device 10 is used to execute the method in FIG3 , the transceiver module 11 can be used to execute the steps of sending and receiving information in the method, such as steps S310 and S320 ; the processing module 12 can be used to execute the processing steps in the method, such as step S330 .

[0546] When the device 10 is used to execute the method in Figure 4, the transceiver module 11 can be used to execute the steps of sending and receiving information in the method, such as steps S410, S430, S450 and S470; the processing module 12 can be used to execute the processing steps in the method, such as steps S420, S451, S471 and S440.

[0547] When the device 10 is used to execute the method in Figure 5, the transceiver module 11 can be used to execute the steps of sending and receiving information in the method, such as steps S510, S520, S530, S540, S560, S580, S591, S594, S595 and S598; the processing module 12 can be used to execute the processing steps in the method, such as steps S550, S570, S581, S592 and S596.

[0548] When the device 10 is used to execute the method in Figure 6, the transceiver module 11 can be used to execute the steps of sending and receiving information in the method, such as steps S611, S612, S613, S615 and S616; the processing module 12 can be used to execute the processing steps in the method, such as steps S613, S617, S620 and S630.

[0549] When the device 10 is used to execute the method in FIG. 7 , the transceiver module 11 may be used to execute the steps of sending and receiving information in the method, such as step S710 ; and the processing module 12 may be used to execute the processing steps in the method.

[0550] When the device 10 is used to execute the method in Figure 8, the transceiver module 11 can be used to execute the steps of sending and receiving information in the method, such as steps S811, S812, S813, and S814; the processing module 12 can be used to execute the processing steps in the method.

[0551] When the device 10 is used to execute the method in Figure 9, the transceiver module 11 can be used to execute the steps of sending and receiving information in the method, such as steps S911, S912, S913, S914, S915, and S916; the processing module 12 can be used to execute the processing steps in the method.

[0552] When the device 10 is used to execute the method in Figure 10, the transceiver module 11 can be used to execute the steps of sending and receiving information in the method, such as steps S1011, S1012, S1013, S1014, S1015, and S1016; the processing module 12 can be used to execute the processing steps in the method.

[0553] When the device 10 is used to execute the method in Figure 11, the transceiver module 11 can be used to execute the steps of sending and receiving information in the method, such as steps S1111, S1112, S1113, S1115, S1117, and S1118; the processing module 12 can be used to execute the processing steps in the method, such as steps S1114 and S1116.

[0554] When the device 10 is used to execute the method in Figure 12, the transceiver module 11 can be used to execute the steps of sending and receiving information in the method, such as steps S1211, S1212, S1213, S1215, S1216, S1217, S1201 and S1202; the processing module 12 can be used to execute the processing steps in the method, such as steps S1214 and S1218.

[0555] It should be understood that the specific process of each unit executing the above corresponding steps has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.

[0556] In yet another design, the apparatus 10 may correspond to the access network device in the above method embodiment, or a component (such as a chip) of the access network device.

[0557] The device 10 can implement the steps or processes executed by the access network device in the above method embodiment, wherein the transceiver module 11 can be used to execute the transceiver-related operations of the access network device in the above method embodiment, and the processing module 12 can be used to execute the processing-related operations of the access network device in the above method embodiment.

[0558] In one possible implementation, the transceiver module 11 is configured to receive a fourth key from a core network device; the processing module 12 is configured to perform integrity protection on an access layer security mode command message based on the fourth key; the transceiver module 11 sends the access layer security mode command message to the terminal device; the transceiver module 11 receives an access layer security mode failure message from the terminal device; the transceiver module 11 sends a first request message to the core network device, where the first request message is used to request a key; the transceiver module 11 receives a fifth key from the core network device; the processing module 12 performs the access layer security mode control process again based on the fifth key.

[0559] Among them, the fourth key is deduced based on the fourth parameter in the eighth security mode completion message, and the fifth key is deduced based on the fifth parameter in the ninth security mode completion message. The eighth security mode completion message and the ninth security mode completion message are sent in the security mode control process, and the eighth security mode completion message is sent before the ninth security mode completion message.

[0560] In another possible implementation, the transceiver module 11 is used to receive a fourth key from the core network device; the transceiver module 11 is prepared to perform integrity protection on the access layer security mode command message based on the fourth key; the transceiver module 11 sends the access layer security mode command message to the terminal device; the transceiver module 11 receives an access layer security mode failure message from the terminal device; the processing module 12 starts a fourth timer; if the fifth key is not received from the core network device when the fourth timer times out, the transceiver module 11 sends a radio resource control release message to the terminal device; or,

[0561] Before the fourth timer times out, the transceiver module 11 receives the fifth key from the core network device, and the processing module 12 performs the access layer security mode control process again based on the fifth key.

[0562] Among them, the fourth key is derived based on the fourth parameter in the eighth security mode completion message, the fifth key is derived based on the fifth parameter in the ninth security mode completion message, the eighth security mode completion message and the ninth security mode completion message are sent in the non-access layer security mode control process, and the eighth security mode completion message is sent before the ninth security mode completion message.

[0563] When the device 10 is used to execute the method in FIG. 3 , the transceiver module 11 may be used to execute the steps of sending and receiving information in the method, such as step S350 ; and the processing module 12 may be used to execute the processing steps in the method.

[0564] When the device 10 is used to execute the method in FIG. 4 , the transceiver module 11 may be used to execute the steps of sending and receiving information in the method, such as step S490 ; and the processing module 12 may be used to execute the processing steps in the method.

[0565] When the device 10 is used to execute the method in FIG. 5 , the transceiver module 11 may be used to execute the steps of sending and receiving information in the method, such as step S599 ; and the processing module 12 may be used to execute the processing steps in the method.

[0566] When the device 10 is used to execute the method in FIG6 , the transceiver module 11 may be used to execute the steps of sending and receiving information in the method, such as steps S601 and S610 ; the processing module 12 may be used to execute the processing steps in the method.

[0567] When the device 10 is used to execute the method in FIG8 , the transceiver module 11 may be used to execute the steps of sending and receiving information in the method, such as step S816 ; the processing module 12 may be used to execute the processing steps in the method.

[0568] When the device 10 is used to execute the method in FIG. 9 , the transceiver module 11 may be used to execute the steps of sending and receiving information in the method, such as step S918 ; and the processing module 12 may be used to execute the processing steps in the method.

[0569] When the device 10 is used to execute the method in FIG10 , the transceiver module 11 may be used to execute the steps of sending and receiving information in the method, such as step S1018 ; the processing module 12 may be used to execute the processing steps in the method.

[0570] When the device 10 is used to execute the method in Figure 11, the transceiver module 11 can be used to execute the steps of sending and receiving information in the method, such as steps S1117, S1118, S1119, and S1101; the processing module 12 can be used to execute the processing steps in the method.

[0571] When the device 10 is used to execute the method in Figure 12, the transceiver module 11 can be used to execute the steps of sending and receiving information in the method, such as steps S1215, S1216, S1219, S1201 and S1202; the processing module 12 can be used to execute the processing steps in the method.

[0572] It should also be understood that the device 10 here is embodied in the form of a functional module. The term "module" here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor or a group processor, etc.) and memory for executing one or more software or firmware programs, a combined logic circuit and / or other suitable components that support the described functions. In an optional example, those skilled in the art will understand that the device 10 may be specifically the mobile management network element in the above-mentioned embodiment, and may be used to execute the various processes and / or steps corresponding to the mobile management network element in the above-mentioned method embodiments; or, the device 10 may be specifically the terminal device in the above-mentioned embodiment, and may be used to execute the various processes and / or steps corresponding to the terminal device in the above-mentioned method embodiments. To avoid repetition, it will not be described here.

[0573] The apparatus 10 of each of the above-described solutions has the function of implementing the corresponding steps performed by the devices (such as terminal devices and network devices) in the above-described methods. This function can be implemented by hardware, or by hardware executing corresponding software implementations. The hardware or software includes one or more modules corresponding to the above-described functions; for example, the transceiver module can be replaced by a transceiver (for example, the transmitting unit in the transceiver module can be replaced by a transmitter, and the receiving unit in the transceiver module can be replaced by a receiver), and other units, such as the processing module, can be replaced by a processor to respectively perform the transceiver operations and related processing operations in each method embodiment.

[0574] In addition, the transceiver module 11 may also be a transceiver circuit (for example, may include a receiving circuit and a sending circuit), and the processing module may be a processing circuit.

[0575] Figure 14 is a schematic diagram of another communication device 20 provided in an embodiment of the present application. Device 20 includes a processor 21, which is configured to execute computer programs or instructions stored in memory 22, or read data / signaling stored in memory 22, to perform the methods described in the above method embodiments. Optionally, there may be one or more processors 21.

[0576] Optionally, as shown in FIG14 , the device 20 further includes a memory 22 for storing computer programs or instructions and / or data. The memory 22 may be integrated with the processor 21 or may be separately provided. Optionally, there may be one or more memories 22.

[0577] Optionally, as shown in Figure 14, the device 20 further includes a transceiver 23, which is used to receive and / or send signals. For example, the processor 21 is used to control the transceiver 23 to receive and / or send signals.

[0578] As a solution, the device 20 is used to implement the operations performed by the AMF in the above various method embodiments.

[0579] As another solution, the apparatus 20 is used to implement the operations performed by the terminal device in the above various method embodiments.

[0580] As another solution, the apparatus 20 is used to implement the operations performed by the access network device in the above various method embodiments.

[0581] It should be understood that the processor mentioned in the embodiments of the present application may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.

[0582] It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory and / or a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM). For example, RAM can be used as an external cache. By way of example and not limitation, RAM includes the following forms: static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).

[0583] It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, the memory (storage module) can be integrated into the processor.

[0584] It should also be noted that the memory described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0585] 15 is a schematic diagram of a chip system 30 provided in an embodiment of the present application. The chip system 30 (or also referred to as a processing system) includes a logic circuit 31 and an input / output interface 32.

[0586] The logic circuit 31 may be a processing circuit in the chip system 30. The logic circuit 31 may be coupled to a storage unit and call instructions in the storage unit so that the chip system 30 can implement the methods and functions of the various embodiments of the present application. The input / output interface 32 may be an input / output circuit in the chip system 30, outputting information processed by the chip system 30 or inputting data or signaling information to be processed into the chip system 30 for processing.

[0587] As a solution, the chip system 30 is used to implement the operations performed by the AMF, terminal device or access network device in the above method embodiments.

[0588] For example, the logic circuit 31 is used to implement the processing-related operations performed by the AMF, terminal device or access network device in the above method embodiment; the input / output interface 32 is used to implement the sending and / or receiving-related operations performed by the AMF, terminal device or access network device in the above method embodiment.

[0589] An embodiment of the present application also provides a computer-readable storage medium on which computer instructions are stored for implementing the methods performed by the AMF, terminal device or access network device in the above-mentioned method embodiments.

[0590] For example, when the computer program is executed by a computer, the computer can implement the methods performed by the AMF, terminal device or access network device in each embodiment of the above method.

[0591] An embodiment of the present application also provides a computer program product comprising instructions, which, when executed by a computer, implement the methods performed by the AMF, terminal device or access network device in the above-mentioned method embodiments.

[0592] An embodiment of the present application also provides a communication system, including one or more devices such as the aforementioned AMF, terminal equipment and / or access network equipment.

[0593] The explanation of the relevant contents and beneficial effects of any of the above-mentioned devices can be referred to the corresponding method embodiments provided above, which will not be repeated here.

[0594] In the several embodiments provided in this application, it should be understood that the disclosed 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. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, 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.

[0595] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. For example, the computer can be a personal computer, a server, or a network device, etc. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)). For example, the aforementioned available medium includes, but is not limited to, various media that can store program code, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0596] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A communication method, characterized in that: include: Sending a first security mode command message to a terminal device, where the first security mode command message includes a first value of a first identifier, where the first value of the first identifier is used to identify the first security mode command message; receiving a first security mode completion message from the terminal device, where the first security mode completion message includes a first value of a second identifier, where the first value of the second identifier is used to identify the first security completion message; In a case where the first value of the first identifier is the same as the first value of the second identifier, deriving a key according to a parameter included in the first security mode completion message; The key is sent to the access network device.

2. The method according to claim 1, characterized in that Before sending the first security mode command message to the terminal device, the method further includes: Sending a second security mode command message to the terminal device, where the second security mode command message includes a second value of the first identifier, and the second value of the first identifier is used to identify the second security mode command message; The first security mode command message is a retransmission message of the second security mode command message, and the first value of the first identifier is different from the second value of the first identifier.

3. The method according to claim 2, characterized in that Before receiving the first security mode completion message from the terminal device, the method further includes: receiving a second security mode completion message from the terminal device, where the second security mode completion message includes a second value of the second identifier, where the second value of the second identifier is used to identify the second security mode completion message; The second value of the second identifier is the same as the second value of the first identifier.

4. The method according to claim 1, characterized in that Before sending the first security mode command message to the terminal device, the method further includes: Sending a third security mode command message to the terminal device, where the third security mode command message includes a third value of the first identifier, where the third value of the first identifier is used to identify the third security mode command message; sending a fourth security mode command message to the terminal device, where the fourth security mode command message includes a fourth value of the first identifier, where the fourth value of the first identifier is used to identify the fourth security mode command message, The fourth security mode command message is a retransmission message of the third security mode command message, and the fourth value of the first identifier is different from the third value of the first identifier; receiving a fourth security mode completion message from the terminal device, the fourth security mode completion message including a fourth value of the second identifier, the fourth value of the second identifier being used to identify the fourth security mode completion message, The sending a first security mode command message to the terminal device includes: The fourth value of the second identifier is the same as the fourth value of the first identifier, and the fourth security mode completion message is used to indicate that the terminal device supports Long Term Evolution LTE communication, and the first security mode command message is sent to the terminal device.

5. The method according to claim 4, characterized in that Before receiving the fourth security mode completion message from the terminal device, the method further includes: receiving a third security mode completion message from the terminal device, wherein the third security mode completion message includes a third value of the second identifier, and the third value of the second identifier is used to identify the third security mode completion message; When the third value of the second identifier is different from the fourth value of the first identifier, the third security mode completion message is discarded.

6. The method according to any one of claims 1 to 5, characterized in that The parameter included in the first security mode completion message is uplink count value information.

7. The method according to any one of claims 1 to 6, characterized in that The method is executed by an access mobility management network element, or the method is executed by a chip used for the access mobility management network element.

8. A communication method, characterized in that: include: receiving a first security mode command message from a core network device, where the first security mode command message includes a first value of a first identifier, where the first value of the first identifier is used to identify the first security mode command message; In response to the first security mode command message, a first security mode completion message is sent to the core network device, wherein the first security mode completion message includes a first value of a second identifier, and the first value of the second identifier is used to identify the first security mode completion message, wherein the first value of the first identifier and the first value of the second identifier are used to identify the first security mode completion message. One value is the same; A key is derived according to the parameters included in the first security mode completion message.

9. The method according to claim 8, characterized in that Before receiving the first security mode command message from the core network device, the method further includes: receiving a second security mode command message from the core network device, where the second security mode command message includes a second value of the first identifier, where the second value of the first identifier is used to identify the second security mode command message, sending a second security mode completion message to the core network device in response to the second security mode command message, where the second security mode completion message includes a second value of the second identifier, where the second value of the second identifier is used to identify the second security mode completion message; The first value of the first identifier is different from the second value of the first identifier, and the second value of the first identifier is the same as the second value of the second identifier.

10. The method according to claim 9, characterized in that Before receiving the first security mode command message from the core network device, the method further includes: receiving a third security mode command message from the core network device, where the third security mode command message includes a third value of the first identifier, where the third value of the first identifier is used to identify the third security mode command message; sending a third security mode completion message to the core network device in response to the third security mode command message, where the third security mode completion message includes a third value of the second identifier, and the third value of the second identifier is used to identify the third security mode completion message; receiving a fourth security mode command message from the core network device, where the fourth security mode command message includes a fourth value of the first identifier, where the fourth value of the first identifier is used to identify the fourth security mode command message, and where the fourth value of the first identifier is different from the third value of the first identifier; In response to the fourth security mode command message, a fourth security mode completion message is sent to the core network device, the fourth security mode completion message includes a fourth value of the second identifier, the fourth value of the second identifier is used to identify the fourth security mode completion message, the fourth security mode completion message is used to indicate that the terminal device supports Long Term Evolution LTE communication, and triggers the core network device to send the first security mode command message.

11. A communication method, characterized in that: include: receiving a fifth security mode command message from the access network device; Performing integrity protection verification and / or decryption on the fifth security mode command message based on the first key; If the integrity protection check and / or decryption fails, performing integrity protection check and / or decryption on the fifth security mode command message based on the second key, The first key is deduced based on the first parameter in the seventh security mode completion message, the second key is deduced based on the second parameter in the sixth security mode completion message, the seventh security mode completion message and the sixth security mode completion message are sent in the non-access layer security mode control process, and the sixth security mode completion message is sent before the seventh security mode completion message.

12. The method according to claim 11, characterized in that The method further comprises: In the non-access layer security mode control process, receiving a sixth security mode command message from a core network device; In response to the sixth security mode command message, sending the sixth security mode completion message to the core network device, and deriving the second key based on the second parameter; Receive a seventh security mode command message from a core network device, and after sending the sixth security mode completion message, send the seventh security mode completion message to the core network device in response to the seventh security mode command message, and deduce the first key based on the first parameter.

13. The method according to claim 11 or 12, characterized in that: The method further comprises: The second key is saved, wherein the second key is deduced after the sixth security mode completion message is generated or after the sixth security mode completion message is sent.

14. The method according to any one of claims 11 to 13, characterized in that After generating the sixth security mode completion message or after sending the sixth security mode completion message, the method further includes: saving the second parameter; Deducing the second key based on the second parameter is performed after the integrity protection check and / or decryption fails.

15. The method according to any one of claims 11 to 14, characterized in that Before performing integrity protection check on the fifth security mode command message based on the second key, the method further includes: It is determined that the number of times integrity protection checks are performed on the fifth security mode command message is less than a first threshold.

16. The method according to any one of claims 11 to 15, characterized in that If the integrity protection check and / or decryption of the fifth security mode command message based on the second key fails, the method further includes: Determining that integrity protection checking and / or decryption has failed; or, The fifth security mode command message is integrity checked and / or decrypted based on a third key, wherein the third key is derived based on a third parameter in a fifth security mode completion message, the fifth security mode completion message is sent in the non-access layer security mode control process, and the fifth security mode completion message is sent before the sixth security mode completion message.

17. The method according to claim 16, characterized in that The first parameter is first uplink count value information, the second parameter is second uplink count value information, and the third parameter is third uplink count value information.

18. The method according to claim 12, characterized in that: The core network device is an access mobility management network element.

19. A communication system, characterized in that: It comprises a core network device and an access network device, wherein the core network device is used to execute the method as described in any one of claims 1 to 6, and the access network device is used to execute the method as described in any one of claims 7 to 10.

20. The communication system according to claim 19, characterized in that The communication system further comprises a terminal device, wherein the terminal device is configured to execute the method according to any one of claims 11 to 18.

21. A communication method, characterized in that: include: The core network device receives an eighth security mode completion message from the terminal device, wherein the eighth security mode completion message includes the fourth parameter; if before receiving the eighth security mode completion message, the security mode command message is retransmitted due to the timeout of the first timer, the core network device starts the second timer; When the second timer times out and no other security mode completion message is received from the terminal device, the core network device sends a fourth key to the access network device, where the fourth key is derived based on the fourth parameter; or Before the second timer times out, the core network device receives a ninth security mode completion message from the terminal device, and the core network device derives a fifth key based on the fifth parameter in the ninth security mode completion message, and sends the fifth key to the access network device.

22. The method according to claim 21, characterized in that The method also includes: the core network device deriving the fourth key according to the fourth parameter.

23. The method according to claim 21 or 22, characterized in that Before the core network device receives the eighth security mode completion message from the terminal device, the method further includes: The core network device sends an eighth security mode command message to the terminal device and starts the first timer; after the first timer expires, the core network device sends a ninth security mode command message to the terminal device, wherein the ninth security mode command message is a retransmission message of the eighth security mode command message.

24. The method according to any one of claims 21 to 23, characterized in that The fourth parameter is fourth uplink count value information, and the fifth parameter is fifth uplink count value information.

25. A communication system, characterized in that: It comprises a core network device and an access network device, the core network device is used to execute the method as described in any one of claims 21 to 24, and the access network device is used to receive a fourth key or a fifth key from the core network device.

26. The communication system according to claim 25, characterized in that The communication system also includes a terminal device, and the terminal device is used to send an eighth security mode completion message or a ninth security mode completion message to the core network device.

27. A communication method, characterized in that: include: The core network device receives an eighth security mode completion message from the terminal device, and if the security mode command message has been retransmitted due to the timeout of the first timer before receiving the eighth security mode completion message, the core network device starts the third timer; When the third timer times out and no other security mode completion message is received from the terminal device, the core network device sends a tenth security mode command message to the terminal device and restarts the first timer; or, Before the third timer times out, the core network device receives a ninth security mode completion message from the terminal device. After receiving the ninth security mode completion message, the core network device sends a tenth security mode command message to the terminal device and restarts the first timer.

28. The method according to claim 27, characterized in that Before the core network device receives the eighth security mode completion message from the terminal device, the method further includes: The core network device sends an eighth security mode command message to the terminal device, and starts the first timer; After the first timer times out, the core network device sends a ninth security mode command message to the terminal device, The ninth security mode command message is a retransmission message of the eighth security mode command message.

29. A communication system, characterized in that: It includes a core network device, and the core network device is used to execute the method as claimed in claim 27 or 28.

30. The communication system according to claim 29, characterized in that The communication system also includes a terminal device, and the terminal device is used to send an eighth security mode completion message or a ninth security mode completion message to the core network device.

31. A communication method, characterized in that: include: The access network device receives the fourth key from the core network device; After the access network device performs integrity protection on the access layer security mode command message based on the fourth key, the access network device sends the access layer security mode command message to the terminal device; The access network device receives an access layer security mode failure message from the terminal device; The access network device sends a first request message to the core network device, where the first request message is used to request a key; The access network device receives a fifth key from the core network device; The access network device performs the access layer security mode control process again based on the fifth key.

32. The method according to claim 31, characterized in that The fourth key is derived based on the fourth parameter in the eighth security mode completion message, the fifth key is derived based on the fifth parameter in the ninth security mode completion message, the eighth security mode completion message and the ninth security mode completion message are sent in the non-access layer security mode control process, and the eighth security mode completion message is sent before the ninth security mode completion message.

33. The method according to claim 31 or 32, characterized in that The access network device sending a first request message to the core network device includes: When the access layer security mode failure message indicates that the integrity protection check on the access layer security mode command message fails, the access network device sends a first request message to the core network device.

34. A communication method, characterized in that: include: The core network device receives an eighth security mode completion message from the terminal device, where the eighth security mode completion message includes the fourth parameter; The core network device derives a fourth key according to the fourth parameter, and sends the fourth key to the access network device; The core network device receives a ninth security mode completion message from the terminal device, where the ninth security mode completion message includes a fifth parameter; The core network device receives a first request message from the access network device, where the first request message is used to request a key; The core network device sends a fifth key to the access network device, where the fifth key is derived based on the fifth parameter.

35. The method according to claim 34, characterized in that Before the core network device receives the eighth security mode completion message from the terminal device, the method further includes: The core network device sends an eighth security mode command message to the terminal device, and starts the first timer; After the first timer times out, the core network device sends a ninth security mode command message to the terminal device, wherein the ninth security mode command message is a retransmission message of the eighth security mode command message.

36. The method according to claim 34 or 35, characterized in that The method further comprises: The core network device derives the fifth key according to the fifth parameter.

37. The method according to any one of claims 34 to 36, characterized in that The method further comprises: The core network device stores the fifth key and / or the fifth parameter.

38. A communication system, characterized in that: It includes a core network device, including a core network device and an access network device, wherein the core network device is used to execute the method as described in any one of claims 34 to 37, and the access network device is used to execute the method as described in any one of claims 31 to 33.

39. The communication system according to claim 38, characterized in that The communication system also includes a terminal device, and the terminal device is used to send an eighth security mode completion message or a ninth security mode completion message to the core network device.

40. A communication method, characterized in that: include: The access network device receives the fourth key from the core network device; After the access network device performs integrity protection on the access layer security mode command message based on the fourth key, the access network device sends the access layer security mode command message to the terminal device; The access network device receives an access layer security mode failure message from the terminal device; The access network device starts a fourth timer; In the case where the fourth timer times out and the fifth key is still not received from the core network device, the access network device sends a radio resource control release message to the terminal device; or, Before the fourth timer times out, the access network device receives a fifth key from the core network device, and the access network device performs the access layer security mode control process again based on the fifth key.

41. The method according to claim 40, characterized in that The fourth key is derived based on the fourth parameter in the eighth security mode completion message, the fifth key is derived based on the fifth parameter in the ninth security mode completion message, the eighth security mode completion message and the ninth security mode completion message are sent in the non-access layer security mode control process, and the eighth security mode completion message is sent before the ninth security mode completion message.

42. The method according to claim 40 or 41, characterized in that After the access network device receives the fifth key, the fourth timer is stopped.

43. The method according to any one of claims 21 to 43, characterized in that The core network device is an access mobility management network element.

44. A communication system, characterized in that: It comprises a core network device and an access network device, the access network device is used to execute the method as described in any one of claims 40 to 43, and the core network device is used to send a fourth key or a fifth key to the access network device.

45. The communication system according to claim 44, characterized in that The communication system also includes a terminal device, which is used to receive an access layer security mode command message or a radio resource control release message from the access network device.

46. ​​A communication device, characterized in that: include: One or more functional modules for executing the method according to any one of claims 1 to 6, or one or more functional modules for executing the method according to any one of claims 7 to 10, or one or more functional modules for executing the method according to any one of claims 11 to 18, or one or more functional modules for executing the method according to any one of claims 21 to 24, or one or more functional modules for executing the method according to claim 27 or 28, or one or more functional modules for executing the method according to any one of claims 31 to 33, or one or more functional modules for executing the method according to any one of claims 34 to 37, or one or more functional modules for executing the method according to any one of claims 40 to 43.

47. A communication device, characterized in that: include: A processor, configured to execute a computer program stored in a memory, so that the apparatus performs the method as claimed in any one of claims 1 to 6, or so that the apparatus performs the method as claimed in any one of claims 7 to 10, or so that the apparatus performs the method as claimed in any one of claims 11 to 18, or for executing one or more functional modules of the method as claimed in any one of claims 21 to 24, or for executing one or more functional modules of the method as claimed in claim 27 or 28, or for executing one or more functional modules of the method as claimed in any one of claims 31 to 33, or for executing one or more functional modules of the method as claimed in any one of claims 34 to 37, or for executing one or more functional modules of the method as claimed in any one of claims 40 to 43.

48. A computer program product, characterized in that The computer program product comprises instructions for executing the method as claimed in any one of claims 1 to 18, or comprises instructions for executing the method as claimed in any one of claims 21 to 24, or comprises instructions for executing the method as claimed in any one of claims 27 or 28, or comprises instructions for executing the method as claimed in any one of claims 31 to 33, or comprises instructions for executing the method as claimed in any one of claims 34 to 37, or comprises instructions for executing the method as claimed in any one of claims 40 to 43.

49. A computer-readable storage medium, characterized in that include: The computer-readable storage medium stores a computer program; when the computer program is run on a computer, the computer executes the method as described in any one of claims 1 to 18, or the computer executes the method as described in any one of claims 21 to 24, or the computer executes the method as described in claim 27 or 28, or the computer executes the method as described in any one of claims 31 to 33, or the computer executes the method as described in any one of claims 34 to 37, or the computer executes the method as described in any one of claims 40 to 43.

50. A chip, characterized in that: The chip is installed in a communication device, and the chip includes a processor and a communication interface. When the processor reads instructions through the communication interface and runs, the communication device executes the method as described in any one of claims 1 to 18, or the communication device executes the method as described in any one of claims 21 to 24, or the communication device executes the method as described in any one of claims 27 or 28, or the communication device executes the method as described in any one of claims 31 to 33, or the communication device executes the method as described in any one of claims 34 to 37, or the communication device executes the method as described in any one of claims 40 to 43.

Citation Information

Patent Citations

  • Mobile communication method, apparatus and device

    CN108702624A

  • Key acquisition method and apparatus

    CN109417539A

  • Authentication Result Update Method and Communications Apparatus

    US20210400482A1

  • Safe mode configuration method, device and system, and computer-readable storage medium

    WO2022037123A1