# US 2024/0179524 A1 · Security context update method and communication apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0179524 A1
- Document ID: US20240179524A1
- Status: Published application
- Kind: A1
- Application number: 18/428,527
- Filed: 2024-01-31
- Published: 2024-05-30
- Earliest claimed: 2021-08-02
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Linping YANG; Juan DENG; Wen HU; Xiange HU; Xiao WEN; Li QIANG; Lin SHU
- Web page: https://patentgrep.com/patent/US20240179524A1

## CPC

- H04W 12/08: Access security
- H04W 60/005: {Multiple registrations, e.g. multihoming}
- H04W 12/40: Security arrangements using identity modules
- H04W 12/72: Subscriber identity
- H04W 8/183: {Processing at user equipment or user record carrier}
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

A security context update method and a communication apparatus are provided. The method is performed by a terminal, and includes: storing a security context of first access and a security context of second access when the first access of the terminal and the second access of the terminal enter a deregistered state. The first access is one of 3GPP access and non-3GPP access, the second access is the other of the 3GPP access and the non-3GPP access, and the first access and the second access are different. According to the method, when the terminal supports multiple records for multiple registration, storage occasions of NAS security contexts corresponding to the 3GPP access and the non-3GPP access are provided.

## Claims

### Claim 1

A security context update method, performed by a terminal, and comprising:
in a condition that the terminal has first access and second access,
storing a security context of the first access and a security context of the second access only when both the first access of the terminal and the second access of the terminal enter a deregistered state, wherein
the first access is that the terminal accesses a network by using a 3rd generation partnership project 3GPP access network, and the second access is that the terminal accesses a network by using a non-3GPP access network; or the first access is that the terminal accesses a network by using a non-3GPP access network, and the second access is that the terminal accesses a network by using a 3GPP access network.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the storing a security context of the first access and a security context of the second access comprises:
storing the security context of the first access and the security context of the second access in a storage unit, wherein the storage unit is a universal subscriber identity module USIM or a non-volatile memory.

### Claim 3 (depends on 1)

The method according to claim 1, wherein a first file of the terminal is used to store the security context of the first access, a second file of the terminal is used to store the security context of the second access, the first file comprises a first record and a second record, and the second file comprises a third record and a fourth record.

### Claim 4 (depends on 3)

The method according to claim 3, wherein a first security context in the first record corresponds to a first public land mobile network PLMN, a fourth security context in the fourth record corresponds to the first PLMN, and the first access has been registered with the first PLMN.

### Claim 5 (depends on 4)

The method according to claim 4, wherein a second security context in the second record corresponds to a second PLMN, a third security context in the third record corresponds to the second PLMN, and the second access has been registered with the second PLMN.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the storing a security context of the first access and a security context of the second access comprises:
storing the first security context in the first record, and storing the fourth security context in the fourth record, wherein the first PLMN is a PLMN with which the first access is registered and is successfully registered last time before the first access enters the deregistered state.

### Claim 7 (depends on 5)

The method according to claim 5, wherein the storing a security context of the first access and a security context of the second access comprises:
when last registration of the first access before the first access enters the deregistered state fails, and a security context in which the first access is most recently successfully registered exists, storing the first security context in the first record, and storing the fourth security context in the fourth record based on the security context in which the first access is most recently successfully registered, wherein the first PLMN is a PLMN with which the first access is most recently successfully registered.

### Claim 8 (depends on 5)

The method according to claim 5, wherein the storing a security context of the first access and a security context of the second access comprises:
when last registration of the first access before the first access enters the deregistered state fails, and a security context in which the first access is most recently successfully registered does not exist, setting the security context in the first record and the security context in the fourth record to be invalid.

### Claim 9 (depends on 2)

The method according to claim 2, wherein when the first access leaves the deregistered state, and the second access is in the deregistered state, the terminal reads the security context of the first access and the security context of the second access from the storage unit, and identifies the security context of the first access and the security context of the second access stored in the storage unit as invalid.

### Claim 10 (depends on 3)

The method according to claim 3, wherein the terminal determines whether an identifier of a PLMN on which the first access camps is the same as an identifier of a PLMN comprised in the first record; if the identifier of the PLMN on which the first access camps is the same as the identifier of the PLMN comprised in the first record, before sending a third registration request to the camped PLMN, the terminal sets the security context in the first record to a current security context of the first access, wherein the third registration request comprises a terminal identifier of the first access and an LVR TAI of the first access; or if the identifier of the PLMN on which the first access camps is different from the identifier of the PLMN comprised in the first record, the terminal determines whether the identifier of the PLMN on which the first access camps is the same as an identifier of a PLMN comprised in the second record; and if the identifier of the PLMN on which the first access camps is the same as the identifier of the PLMN comprised in the second record, before sending a fourth registration request to the camped PLMN, the terminal sets the security context in the second record to the current security context of the first access, wherein the fourth registration request comprises a terminal identifier of the second access and/or an LVR TAI of the second access; or if the identifier of the PLMN on which the first access camps is different from the identifier of the PLMN comprised in the second record, before sending a fifth registration request to the camped PLMN, the terminal sets the security context in the first record to the current security context of the first access, wherein the fifth registration request comprises the terminal identifier of the first access and the LVR TAI of the first access.

### Claim 11

A communication apparatus, which is a terminal or is implemented in a terminal, comprising: at least one processor; and
one or more memories coupled to the at least one processor and storing programming instructions for execution by the at least one processor to cause the communication apparatus to:
in a condition that the terminal has first access and second access,
store a security context of the first access and a security context of the second access only when both the first access of the terminal and the second access of the terminal enter a deregistered state, wherein
the first access is that the terminal accesses a network by using a 3rd generation partnership project 3GPP access network, and the second access is that the terminal accesses a network by using a non-3GPP access network; or the first access is that the terminal accesses a network by using a non-3GPP access network, and the second access is that the terminal accesses a network by using a 3GPP access network.

### Claim 12 (depends on 11)

The communication apparatus according to claim 11, wherein the programming instructions, when executed by the at least one processor, cause the communication apparatus to:
store the security context of the first access and the security context of the second access in a storage unit, wherein the storage unit is a universal subscriber identity module USIM or a non-volatile memory.

### Claim 13 (depends on 11)

The communication apparatus according to claim 11, wherein a first file of the terminal is used to store the security context of the first access, a second file of the terminal is used to store the security context of the second access, the first file comprises a first record and a second record, and the second file comprises a third record and a fourth record.

### Claim 14 (depends on 13)

The communication apparatus according to claim 13, wherein a first security context in the first record corresponds to a first public land mobile network PLMN, a fourth security context in the fourth record corresponds to the first PLMN, and the first access has been registered with the first PLMN.

### Claim 15 (depends on 13)

The communication apparatus according to claim 13, wherein a second security context in the second record corresponds to a second PLMN, a third security context in the third record corresponds to the second PLMN, and the second access has been registered with the second PLMN.

### Claim 16 (depends on 13)

The communication apparatus according to claim 13, wherein the programming instructions, when executed by the at least one processor, cause the communication apparatus to:
store the first security context in the first record, and storing the fourth security context in the fourth record, wherein the first PLMN is a PLMN with which the first access is registered and is successfully registered last time before the first access enters the deregistered state.

### Claim 17 (depends on 16)

The communication apparatus according to claim 16, wherein the programming instructions, when executed by the at least one processor, cause the communication apparatus to:
when last registration of the first access before the first access enters the deregistered state fails, and a security context in which the first access is most recently successfully registered exists, store the first security context in the first record, and store the fourth security context in the fourth record based on the security context in which the first access is most recently successfully registered, wherein the first PLMN is a PLMN with which the first access is most recently successfully registered.

### Claim 18 (depends on 16)

The communication apparatus according to claim 16, wherein the programming instructions, when executed by the at least one processor, cause the communication apparatus to:
when last registration of the first access before the first access enters the deregistered state fails, and a security context in which the first access is most recently successfully registered does not exist, set the security context in the first record and the security context in the fourth record to be invalid.

### Claim 19 (depends on 12)

The communication apparatus according to claim 12, wherein the programming instructions, when executed by the at least one processor, cause the communication apparatus to:
when the first access leaves the deregistered state, and the second access is in the deregistered state, read the security context of the first access and the security context of the second access from the storage unit, and identify the security context of the first access and the security context of the second access stored in the storage unit as invalid.

### Claim 20 (depends on 13)

The communication apparatus according to claim 13, wherein the programming instructions, when executed by the at least one processor, cause the communication apparatus to:
determine whether an identifier of a PLMN on which the first access camps is the same as an identifier of a PLMN comprised in the first record; if the identifier of the PLMN on which the first access camps is the same as the identifier of the PLMN comprised in the first record, before sending a third registration request to the camped PLMN, set the security context in the first record to a current security context of the first access, wherein the third registration request comprises a terminal identifier of the first access and an LVR TAI of the first access; or if the identifier of the PLMN on which the first access camps is different from the identifier of the PLMN comprised in the first record, determine whether the identifier of the PLMN on which the first access camps is the same as an identifier of a PLMN comprised in the second record; and if the identifier of the PLMN on which the first access camps is the same as the identifier of the PLMN comprised in the second record, before sending a fourth registration request to the camped PLMN, set the security context in the second record to the current security context of the first access, wherein the fourth registration request comprises a terminal identifier of the second access and/or an LVR TAI of the second access; or if the identifier of the PLMN on which the first access camps is different from the identifier of the PLMN comprised in the second record, before sending a fifth registration request to the camped PLMN, set the security context in the first record to the current security context of the first access, wherein the fifth registration request comprises the terminal identifier of the first access and the LVR TAI of the first access.

### Claim 21

A non-transitory computer-readable storage medium storing instructions causing at least one processor to execute:
in a condition that the terminal has first access and second access,
store a security context of the first access and a security context of the second access only when both the first access of the terminal and the second access of the terminal enter a deregistered state, wherein
the first access is that the terminal accesses a network by using a 3rd generation partnership project 3GPP access network, and the second access is that the terminal accesses a network by using a non-3GPP access network; or the first access is that the terminal accesses a network by using a non-3GPP access network, and the second access is that the terminal accesses a network by using a 3GPP access network.

### Claim 22 (depends on 21)

The non-transitory computer-readable storage medium according to claim 21, wherein the instructions further causing the processor to execute:
store the security context of the first access and the security context of the second access in a storage unit, wherein the storage unit is a universal subscriber identity module USIM or a non-volatile memory.

### Claim 23 (depends on 21)

The non-transitory computer-readable storage medium according to claim 21, wherein a first file of the terminal is used to store the security context of the first access, a second file of the terminal is used to store the security context of the second access, the first file comprises a first record and a second record, and the second file comprises a third record and a fourth record.

### Claim 24 (depends on 23)

The non-transitory computer-readable storage medium according to claim 23, wherein a first security context in the first record corresponds to a first public land mobile network PLMN, a fourth security context in the fourth record corresponds to the first PLMN, and the first access has been registered with the first PLMN.

### Claim 25 (depends on 23)

The non-transitory computer-readable storage medium according to claim 23, wherein a second security context in the second record corresponds to a second PLMN, a third security context in the third record corresponds to the second PLMN, and the second access has been registered with the second PLMN.

### Claim 26 (depends on 23)

The non-transitory computer-readable storage medium according to claim 23, wherein the instructions further causing the processor to execute:
store the first security context in the first record, and storing the fourth security context in the fourth record, wherein the first PLMN is a PLMN with which the first access is registered and is successfully registered last time before the first access enters the deregistered state.

### Claim 27 (depends on 26)

The non-transitory computer-readable storage medium according to claim 26, wherein the instructions further causing the processor to execute:
when last registration of the first access before the first access enters the deregistered state fails, and a security context in which the first access is most recently successfully registered exists, store the first security context in the first record, and store the fourth security context in the fourth record based on the security context in which the first access is most recently successfully registered, wherein the first PLMN is a PLMN with which the first access is most recently successfully registered.

### Claim 28 (depends on 26)

The non-transitory computer-readable storage medium according to claim 26, wherein the instructions further causing the processor to execute:
when last registration of the first access before the first access enters the deregistered state fails, and a security context in which the first access is most recently successfully registered does not exist, set the security context in the first record and the security context in the fourth record to be invalid.

### Claim 29 (depends on 22)

The non-transitory computer-readable storage medium according to claim 22, wherein the instructions further causing the processor to execute:
when the first access leaves the deregistered state, and the second access is in the deregistered state, read the security context of the first access and the security context of the second access from the storage unit, and identify the security context of the first access and the security context of the second access stored in the storage unit as invalid.

### Claim 30 (depends on 23)

The non-transitory computer-readable storage medium according to claim 23, wherein the instructions further causing the processor to execute:
determine whether an identifier of a PLMN on which the first access camps is the same as an identifier of a PLMN comprised in the first record; if the identifier of the PLMN on which the first access camps is the same as the identifier of the PLMN comprised in the first record, before sending a third registration request to the camped PLMN, set the security context in the first record to a current security context of the first access, wherein the third registration request comprises a terminal identifier of the first access and an LVR TAI of the first access; or if the identifier of the PLMN on which the first access camps is different from the identifier of the PLMN comprised in the first record, determine whether the identifier of the PLMN on which the first access camps is the same as an identifier of a PLMN comprised in the second record; and if the identifier of the PLMN on which the first access camps is the same as the identifier of the PLMN comprised in the second record, before sending a fourth registration request to the camped PLMN, set the security context in the second record to the current security context of the first access, wherein the fourth registration request comprises a terminal identifier of the second access and/or an LVR TAI of the second access; or if the identifier of the PLMN on which the first access camps is different from the identifier of the PLMN comprised in the second record, before sending a fifth registration request to the camped PLMN, set the security context in the first record to the current security context of the first access, wherein the fifth registration request comprises the terminal identifier of the first access and the LVR TAI of the first access.
