Methods, apparatus and systems for accessing closed access groups

By encrypting the CAG ID of the closed access group and carrying the encrypted information in the registration request message, the security problem caused by carrying the CAG ID in plain text is solved and higher access security is achieved.

CN110536293BActive Publication Date: 2024-10-18ZTE CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN201910754388.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-15
Publication Date
2024-10-18
Estimated Expiration
2039-08-15

AI Technical Summary

Technical Problem

In the existing technology, the CAG ID of the closed access group is carried in clear text in the registration request message, which is easily intercepted and affects the security of the private network.

Method used

Encrypt the CAG ID requesting access, and carry the encrypted CAG ID and the terminal's SUCI or 5G-GUTI in the registration request message, and ensure access rights through decryption and matching verification.

Benefits of technology

It effectively avoids the leakage of CAG ID, improves the security of closed access groups, and ensures access control of private networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110536293B_ABST
    Figure CN110536293B_ABST
Patent Text Reader

Abstract

The present application proposes a method, device and system for accessing a closed access group. A method for accessing a closed access group includes: encrypting a CAG ID for requesting access to obtain an encrypted CAG ID for requesting access; sending a registration request message, wherein the registration request message includes the encrypted CAG ID for requesting access and the SUCI of the terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to a wireless communication network, for example, to a method, device and system for accessing a closed access group. Background Art

[0002] The 3rd Generation Partnership Project (3GPP) has formulated specifications for various mobile networks. In order to support private networks through public networks, 3GPP has defined a Closed Access Group (CAG) mechanism.

[0003] A closed access group includes a group of users that can access one or more CAG cells. A closed access group has a closed access group identity (CAG ID). Using the closed access group mechanism, access control can be performed on terminals accessing a private network.

[0004] The current solution for access control of private networks is to configure the CAG ID that is allowed to be accessed in the mobile terminal. The network carries the list of CAG IDs supported by the cell in the broadcast system message. After the terminal receives the broadcast message, it selects the matching CAG ID as the CAG ID to request access. The terminal carries the CAG ID to request access in the registration request message sent to the network to complete the registration process.

[0005] However, the CAG ID in the registration request message is carried in plain text and sent over the air interface, which can be easily intercepted and leaked, thereby potentially affecting the security of the private network. Summary of the invention

[0006] The present application provides a method, device and system for accessing a closed access group, which are used to improve the security of the closed access group.

[0007] The embodiment of the present application provides a method for accessing a closed access group, including:

[0008] Encrypt the CAG ID requested for access to obtain the encrypted CAG ID requested for access;

[0009] Send a registration request message, which includes the encrypted CAG ID requested for access and the SUCI of the terminal.

[0010] The embodiment of the present application provides a method for accessing a closed access group, including:

[0011] Receiving a registration request message sent by the terminal, the registration request message including the encrypted CAG ID requested for access and the SUCI of the terminal;

[0012] Parse the SUCI of the terminal into the SUPI of the terminal, and decrypt the encrypted CAG ID of the requested access into the CAG ID of the requested access;

[0013] Obtaining a first CAG ID list from a home network of the terminal according to the SUPI of the terminal;

[0014] Determine whether the CAG ID requested to access matches the first CAG ID list, and if so, send a registration acceptance message to the terminal.

[0015] The embodiment of the present application provides a method for accessing a closed access group, including:

[0016] Encrypting the CAG ID requested for access to obtain a first encrypted CAG ID requested for access;

[0017] Send a registration request message, which includes the first encrypted CAG ID requested to access and the 5G-GUTI of the terminal.

[0018] The embodiment of the present application provides a method for accessing a closed access group, including:

[0019] Receive a registration request message sent by the terminal, where the registration request message includes the first encrypted CAGID requested for access and the 5G-GUTI of the terminal;

[0020] Determine whether the current AMF is a historical AMF that has served the terminal according to the 5G-GUTI of the terminal;

[0021] If the current AMF is a historical AMF that has served the terminal, and the current AMF stores the SUPI of the terminal, obtain the first CAG ID list from the home network of the terminal according to the SUPI of the terminal, and decrypt the first encrypted CAG ID requested for access into the CAG ID requested for access;

[0022] Determine whether the CAG ID requested to access matches the first CAG ID list, and if so, send a registration acceptance message to the terminal.

[0023] An embodiment of the present application provides a device for accessing a closed access group, including:

[0024] An encryption module, configured to encrypt the CAG ID requested for access, and obtain an encrypted CAG ID requested for access;

[0025] The sending module is configured to send a registration request message, wherein the registration request message includes the encrypted CAGID requested for access and the SUCI of the terminal.

[0026] An embodiment of the present application provides a device for accessing a closed access group, including:

[0027] A receiving module, configured to receive a registration request message sent by a terminal, wherein the registration request message includes an encrypted CAG ID for requesting access and a SUCI of the terminal;

[0028] a decryption module configured to resolve the SUCI of the terminal into the SUPI of the terminal, and decrypt the encrypted CAGID of the requested access into the CAG ID of the requested access;

[0029] an acquisition module, configured to acquire a first CAG ID list from a home network of the terminal according to a SUPI of the terminal;

[0030] The judgment module is configured to judge whether the CAG ID requested for access matches the first CAG ID list, and if so, send a registration acceptance message to the terminal.

[0031] An embodiment of the present application provides a device for accessing a closed access group, including:

[0032] An encryption module, configured to encrypt the CAG ID requested for access to obtain a first encrypted CAGID requested for access;

[0033] A sending module is configured to send a registration request message, wherein the registration request message includes a first encrypted CAG ID requested for access and a 5G-GUTI of the terminal.

[0034] An embodiment of the present application provides a device for accessing a closed access group, including:

[0035] A receiving module, configured to receive a registration request message sent by a terminal, where the registration request message includes a first encrypted CAG ID requested for access and a 5G-GUTI of the terminal;

[0036] A decryption module is configured to determine whether the current AMF is a historical AMF that has served the terminal according to the 5G-GUTI of the terminal;

[0037] an acquisition module, configured to, if the current AMF is a historical AMF that has served the terminal and the current AMF stores the SUPI of the terminal, acquire a first CAG ID list from the home network of the terminal according to the SUPI of the terminal, and decrypt the first encrypted CAG ID requested for access into the CAG ID requested for access;

[0038] The judgment module is configured to judge whether the CAG ID requested for access matches the first CAG ID list, and if so, send a registration acceptance message to the terminal.

[0039] The embodiment of the present application provides a system for accessing a closed access group, including a terminal and a network device;

[0040] Terminals include Fig.11 The means for accessing a closed access group shown in the embodiment;

[0041] Network equipment includes Fig.12 The embodiment shown is a means for accessing a closed access group.

[0042] The embodiment of the present application provides a system for accessing a closed access group, including a terminal and a network device;

[0043] Terminals include Fig.13 The means for accessing a closed access group shown in the embodiment;

[0044] Network equipment includes Fig.14 The embodiment shown is a means for accessing a closed access group. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 A schematic diagram of a private network access control process provided in an embodiment of the present application;

[0046] Figure 2 A flowchart of a method for accessing a closed access group provided by an embodiment;

[0047] Figure 3 A flowchart of another method for accessing a closed access group provided by an embodiment;

[0048] Figure 4 A flowchart of another method for accessing a closed access group provided by an embodiment;

[0049] Figure 5 A flowchart of another method for accessing a closed access group provided by an embodiment;

[0050] Figure 6 A flowchart of another method for accessing a closed access group provided by an embodiment;

[0051] Figure 7 A flowchart of another method for accessing a closed access group provided by an embodiment;

[0052] Figure 8 A flowchart of another method for accessing a closed access group provided by an embodiment;

[0053] Fig. 9 An interactive flow chart of a method for accessing a closed access group provided by an embodiment;

[0054] Fig.10An interactive flow chart of another method for accessing a closed access group provided by an embodiment;

[0055] Fig.11 A schematic diagram of the structure of a device for accessing a closed access group provided by an embodiment;

[0056] Fig.12 A schematic diagram of the structure of another device for accessing a closed access group provided by an embodiment;

[0057] Fig.13 A schematic diagram of the structure of another device for accessing a closed access group provided by an embodiment;

[0058] Fig.14 A schematic diagram of the structure of another device for accessing a closed access group provided by an embodiment;

[0059] Fig.15 A schematic diagram of the structure of a terminal provided by an embodiment. DETAILED DESCRIPTION

[0060] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0061] Figure 1 A private network access control flow diagram provided in an embodiment of the present application is as follows: Figure 1 As shown, traditional private network access is mainly completed by the Access and Mobility Management Function (AMF), Unified Data Management (UDM) or Subscription Identifier De-concealing Function (SIDF), and Authentication Server Function (AUSF) in the network to complete the authentication and security verification of the mobile terminal (terminal for short). Among them, AMF, UDM or SIDF, AUSF are network elements that implement authentication and security verification in the network, which can be physical devices deployed in the network, or functional modules deployed in any one or more physical network elements in the network.

[0062] Among them, Figure 1 As shown, first, in step S1010, a CAG ID list allowed to be accessed is configured on the terminal. The CAG ID list allowed to be accessed indicates that the terminal can only access the private network corresponding to the CAG ID in the list. For example, the CAG ID list allowed to be accessed here is {2, 3, 4, 5}.

[0063] Next, in step S1020, the base station in the network carries the CAG ID list supported by the cell in the broadcast system message, and the CAG ID list supported by the cell indicates the private network that the terminal in the cell is allowed to access. The terminal accessing the network through the base station can receive the broadcast system message, thereby obtaining the CAG ID list supported by the cell. The CAG ID list supported by the cell is, for example, {1, 2, 3}.

[0064] In step S1030, when the terminal receives the broadcast system message, it compares the CAG ID list of allowed access configured by itself with the CAG ID list supported by the received cell, and selects one of the matching CAG IDs as the CAG ID requested for access. For example, after the comparison here, the matching CAG IDs are {2,3}, and {2} is selected as the CAG ID requested for access.

[0065] In step S1040, after determining the CAG ID requested for access, the terminal can start the access process in the private network corresponding to the CAG ID requested for access. The terminal sends a registration request message to the network. The inscription in the registration request message carries the CAG ID requested for access. The registration request message also carries the terminal's user hidden identifier (SUbscriptionConcealed Identifier, SUCI). After receiving the registration request message sent by the terminal, the base station sends the registration request message to the AMF to implement authentication and security verification of the terminal's access to the private network.

[0066] In step S1050, each network element AMF, AUSF, UDM or SIDF that implements authentication and security verification of the terminal in the network performs an authentication and security verification process for the terminal, wherein the UDM or SIDF parses the SUCI of the terminal into a user permanent identifier (SUbscription Permanent Identifier, SUPI) of the terminal and returns the SUPI of the terminal to the AMF.

[0067] In step S1060, the AMF sends a request message to the home network of the terminal to obtain a list of CAG IDs allowed to be accessed in the home network, and the request message includes the SUPI of the terminal. The home network returns a list of CAG IDs allowed to be accessed to the AMF, which is, for example, {2, 3, 4, 5}.

[0068] Step S1070, AFM determines whether the terminal is allowed to access the requested CAG, that is, AMF determines whether the CAG ID requested to access in the registration request message is included in the list of CAG IDs allowed to access obtained from the home network. If so, it can be accessed, otherwise it cannot be accessed. Here, the CAG ID requested to access is {2}, which is included in the list of CAG IDs allowed to access obtained from the home network {2,3,4,5}, so the terminal is allowed to access the private network.

[0069] In step S1080, the AMF sends a registration acceptance message to the terminal, which means that the terminal is allowed to access the private network.

[0070] If in step S1070, the AMF determines that the terminal is not allowed to access the CAG requested to access, then in step S1090, the AMF sends a registration rejection message to the terminal.

[0071] from Figure 1 It can be seen from the illustrated embodiment that when the terminal requests access to a private network, the CAG ID requested for access is carried in plain text in a registration request message, and the registration request message is sent over the air interface, which may cause the CAGID to be leaked, and may further affect the security of the private network.

[0072] Figure 2 A flowchart of a method for accessing a closed access group is provided in an embodiment. Figure 2 As shown, the method provided in this embodiment includes the following steps.

[0073] Step S2010: encrypt the CAG ID requested for access to obtain an encrypted CAG ID requested for access.

[0074] The method for accessing a closed access group provided in this embodiment is applied to a terminal device in a mobile communication system, referred to as a terminal. When the terminal needs to access a private network, that is, a closed access group, it is necessary to send a CAG ID requesting access to an authentication and security verification device in the network. Since the CAG ID is sent in plain text and the registration request message carrying the CAG ID is sent over the air interface, the CAG ID is easily leaked, thereby affecting the security of the closed access group.

[0075] In order to solve the above problem, in this embodiment, when the terminal needs to access the closed access group, after determining the CAG ID for which access is requested, the CAG ID for which access is requested is first encrypted to obtain the encrypted CAG ID for which access is requested. The encryption method used to encrypt the CAG ID can adopt any existing encryption method, and corresponds to the decryption method in the network element for authenticating and securely verifying the terminal. The key used to encrypt the CAG ID can also be one or more possible methods, and corresponds to the key in the network element for authenticating and securely verifying the terminal.

[0076] Step S2020: Send a registration request message, where the registration request message includes the encrypted CAG ID requested for access and the SUCI of the terminal.

[0077] After obtaining the encrypted CAG ID for requesting access, the terminal can send a registration request message, which includes the encrypted CAG ID for requesting access and the terminal's SUCI. The terminal sends the registration request message through the air interface, and the base station accessed by the terminal or the service base station of the cell where the terminal is located will receive the registration request message. The base station that receives the registration request message will send the registration request message to the network elements that authenticate and verify the security of the terminal, including AMF, AUSF, UDM / SIDF, etc. The above network elements can determine the terminal's home network based on the terminal's SUCI, and decrypt the encrypted CAGID for requesting access to obtain the terminal's CAG ID, and then can determine the terminal's home network based on the terminal's SUCI. Figure 1 Steps S1050 to S1090 in the illustrated embodiment perform authentication and security verification on the terminal, thereby determining whether the terminal can access the CAG corresponding to the CAG ID requested for access. When the terminal is allowed to access the CAG corresponding to the CAG ID requested for access, the terminal will receive a registration acceptance message, and when the terminal is not allowed to access the CAG corresponding to the CAG ID requested for access, the terminal will receive a registration rejection message.

[0078] The method for accessing a closed access group provided in this embodiment encrypts the CAG ID for which access is requested, obtains the encrypted CAG ID for which access is requested, and then sends a registration request message, wherein the registration request message includes the encrypted CAG ID for which access is requested and the SUCI of the terminal, thereby providing a closed access group access method for protecting the closed access group. Since the CAG ID for which access is requested is encrypted, leakage of the CAG ID caused by the registration request message sent through the air interface is avoided, thereby improving the security of accessing the CAG.

[0079] In one embodiment, the method for encrypting the CAG ID for which access is requested may be to encrypt the CAG ID for which access is requested using the public key of the network to which the terminal belongs, so as to obtain the encrypted CAG ID for which access is requested. Then, when the terminal sends a registration request message, since the registration request message includes both the encrypted CAG ID for which access is requested and the SUCI of the terminal, the network element that performs authentication and security verification on the terminal after receiving the registration request message can obtain the home network of the terminal according to the SUCI of the terminal, and then the network element that performs authentication and security verification on the terminal can obtain the public key of the home network of the terminal, and thus the encrypted CAG ID for which access is requested can be decrypted using the obtained public key to obtain the CAG ID for which access is requested.

[0080] In one embodiment, the method for encrypting the CAG ID for which access is requested may be to use the public key of the home network to encrypt the CAG ID for which access is requested and the SUCI of the terminal together to obtain the extended SUCI of the terminal. Then, when the terminal sends a registration request message, the network element that performs authentication and security verification on the terminal after receiving the registration request message may learn the home network of the terminal according to the relevant information of the terminal, and then the network element that performs authentication and security verification on the terminal may obtain the public key of the home network of the terminal, and thus the obtained public key may be used to decrypt the extended SUCI to obtain the CAG ID for which access is requested and the SUCI of the terminal.

[0081] Figure 3 A flowchart of another method for accessing a closed access group provided by an embodiment, such as Figure 3 As shown, the method provided in this embodiment includes the following steps.

[0082] Step S3010: receiving a system broadcast message carrying a first CAG ID list.

[0083] When a terminal needs to access a CAG, it first needs to confirm the CAG that the terminal is allowed to access. The base station broadcasts a system broadcast message carrying a first CAG ID list, and terminals accessing the base station or within the coverage of the base station will receive the system broadcast message. The first CAG ID list includes at least one CAG ID that the terminal is allowed to access.

[0084] Step S3020: Match the second CAG ID list configured by itself with the first CAG ID list to determine the CAG ID that the terminal requests to access.

[0085] A CAG ID list is also configured on the terminal, called the second CAG ID list, which includes the ID of at least one CAG that the terminal is allowed to access. The second CAG ID list is pre-set on the terminal, and can be pre-configured in the terminal or configured for the terminal by the network device when the terminal registers in the network. The terminal matches the first CAG ID list with the second CAG ID list to determine the CAG ID that the terminal requests to access.

[0086] The method for matching the second CAG ID list configured by itself with the first CAG ID list may be to determine that an identical CAG ID in the second CAG ID list and the first CAG ID list is the CAG ID requested for access. The identical CAG IDs in the first CAG ID list and the second CAG ID list may be one or more, or there may be no identical CAG IDs in the first CAG ID list and the second CAG ID list. If there are no identical CAG IDs in the first CAG ID list and the second CAG ID list, the terminal will not be allowed to access the CAG, so the terminal will not be able to determine the CAG ID requested for access, so the terminal will not proceed with the subsequent process. If there is only one identical CAG ID in the first CAG ID list and the second CAG ID list, then this identical CAG ID can be used as the CAG ID requested for access. If there are two or more identical CAG IDs in the first CAG ID list and the second CAG ID list, then one of the two or more identical CAG IDs can be selected as the CAG ID requested for access, or one of the two or more identical CAG IDs can be selected as the CAG ID requested for access according to a preset rule.

[0087] In addition, before receiving the system broadcast message carrying the first CAG ID list, a second CAG ID list may be configured in the terminal, where the second CAG ID list includes at least one CAG ID that is allowed to be accessed.

[0088] Step S3030: encrypt the CAG ID requested for access to obtain an encrypted CAG ID requested for access.

[0089] Step S3040: Send a registration request message, where the registration request message includes the encrypted CAG ID requested for access and the SUCI of the terminal.

[0090] Step S3030 and step S3040 are similar to step S2010 and step S2020, and will not be repeated here.

[0091] Figure 4A flowchart of another method for accessing a closed access group provided by an embodiment, such as Figure 4 As shown, the method provided in this embodiment includes the following steps.

[0092] Step S4010: receiving a registration request message sent by a terminal, where the registration request message includes an encrypted CAG ID for which access is requested and a SUCI of the terminal.

[0093] The method for accessing a closed access group provided in this embodiment is applied to network devices in a mobile communication system, which are network elements that perform authentication and security verification on terminals, including but not limited to one or more of AMF, AUSF, and UDM / SIDF. When a terminal needs to access a private network, i.e., a closed access group, it is necessary to send a CAG ID requesting access to the authentication and security verification device in the network. However, since the CAG ID is sent in plain text and the registration request message carrying the CAG ID is sent over the air interface, the CAG ID is easily leaked, thereby affecting the security of the closed access group.

[0094] In order to solve the above problem, in this embodiment, the network element that performs authentication and security verification on the terminal receives a registration request message sent by the terminal, and the registration request message includes an encrypted CAG ID requested for access and the SUCI of the terminal. Among them, the SUPI of the terminal can be obtained after parsing through the SUCI of the terminal, so as to know the home network of the terminal, and the encrypted CAG ID requested for access can be obtained after decryption. The CAG ID requested for access, then the network element that performs authentication and security verification on the terminal can authenticate and securely verify the terminal through the SUPI of the terminal and the CAG ID requested for access, and determine whether the terminal can access the CAG corresponding to the CAG ID requested for access. Among them, the encryption method used by the terminal for the encrypted CAG ID requested for access can adopt any existing encryption method, and corresponds to the decryption method in the network element that performs authentication and security verification on the terminal. The key used by the terminal to encrypt the CAG ID can also be one or more possible methods, and corresponds to the key in the network element that performs authentication and security verification on the terminal.

[0095] Step S4020: Parse the SUCI of the terminal into the SUPI of the terminal, and decrypt the encrypted CAG ID for requesting access into the CAG ID for requesting access.

[0096] After receiving the SUCI and encrypted CAG ID of the terminal, the network element that performs authentication and security verification on the terminal can decrypt the encrypted CAG ID for access request into the CAG ID for access request and parse the SUCI of the terminal. For example, UDM / SIDF parses the SUCI of the terminal into the SUPI of the terminal, and the UDM / SIDF decrypts the encrypted CAG ID for access request into the CAG ID for access request, and then the UDM / SIDF sends the SUPI of the terminal and the CAG ID for access request to the AMF.

[0097] In one embodiment, the method for the terminal to encrypt the CAG ID for access request may be to encrypt the CAG ID for access request using the public key of the terminal's home network to obtain the encrypted CAG ID for access request. Then the UDM or SIDF that receives the registration request message resolves the SUCI of the terminal into the SUPI of the terminal, and after obtaining the SUPI of the terminal, the home network can be determined, so that the encrypted CAG ID for access request can be decrypted into the CAG ID for access request using the public key of the terminal's home network.

[0098] Step S4030: Acquire a first CAG ID list from the home network of the terminal according to the SUPI of the terminal.

[0099] After obtaining the SUPI of the terminal, the network element that performs authentication and security verification on the terminal can determine the home network of the terminal according to the SUPI of the terminal, and then can obtain the first CAG ID list from the home network of the terminal according to the SUPI of the terminal. The first CAG ID list includes at least one ID of a CAG that the terminal is allowed to access. For example, the AMF that receives the SUPI of the terminal and the CAG ID requested to be accessed from the UDM / SIDF obtains the first CAG ID list from the home network of the terminal according to the SUPI of the terminal.

[0100] In one embodiment, acquiring a first CAG ID list from a home network of the terminal according to a SUPI of the terminal includes: sending a CAG ID list request message to the home network of the terminal, wherein the CAG ID list request message includes the SUPI; and receiving the first CAG ID list sent by the home network of the terminal.

[0101] Step S4040: determine whether the CAG ID requested to access matches the first CAG ID list, and if so, send a registration acceptance message to the terminal.

[0102] Then, the network element that performs authentication and security verification on the terminal determines whether the CAG ID requested for access matches the first CAG ID list. If they match, it is determined that the terminal can access the CAG corresponding to the CAG ID requested for access, so a registration acceptance message can be sent to the terminal. For example, the AMF determines whether the CAG ID requested for access matches the first CAG ID list, and if they match, a registration acceptance message is sent to the terminal.

[0103] In one embodiment, determining whether the CAG ID requested for access matches the first CAG ID list may be determining whether the CAG ID requested for access is the same as any CAG ID in the first CAG ID list, and if so, determining that the CAG ID requested for access matches the first CAG ID list. If the CAG ID requested for access is not the same as any CAG ID in the first CAG ID list, determining that the CAG ID requested for access does not match the first CAG ID list.

[0104] In one embodiment, if it is determined that the CAG ID requested for access does not match the first CAG ID list, a registration rejection message is sent to the terminal.

[0105] Figure 5 A flowchart of another method for accessing a closed access group provided by an embodiment, such as Figure 5 As shown, the method provided in this embodiment includes the following steps.

[0106] Step S5010: receiving a registration request message sent by a terminal, where the registration request message includes an extended SUCI of the terminal, where the extended SUCI of the terminal is obtained by encrypting a CAG ID requested for access and the SUCI of the terminal using a public key of a home network of the terminal.

[0107] Figure 4 In the illustrated embodiment, the received registration request message sent by the terminal includes the encrypted CAG ID for access request and the SUCI of the terminal, while in this embodiment, the received registration request message sent by the terminal includes the extended SUCI of the terminal. The extended SUCI of the terminal is obtained by encrypting the CAG ID for access request and the SUCI of the terminal using the public key of the network to which the terminal belongs.

[0108] Step S5020: UDM or SIDF uses the public key of the home network of the terminal to decrypt the extended SUCI of the terminal into the CAG ID for requesting access and the SUCI of the terminal, and resolves the SUCI of the terminal into the SUPI of the terminal.

[0109] After receiving the extended SUCI, UDM or SIDF can obtain the home network of the terminal based on the relevant information of the terminal, so UDM or SIDF can obtain the public key of the home network of the terminal, so UDM or SIDF can use the obtained public key to decrypt the extended SUCI and obtain the CAG ID requested for access and the SUCI of the terminal. Then UDM or SIDF can also resolve the SUCI of the terminal into the SUPI of the terminal.

[0110] Step S5030: UDM or SIDF sends the SUPI of the terminal and the CAG ID requested for access to AMF.

[0111] Step S5040: AMF obtains a first CAG ID list from the home network of the terminal according to the SUPI of the terminal.

[0112] Step S5050: AMF determines whether the CAG ID requested for access matches the first CAG ID list. If so, a registration acceptance message is sent to the terminal.

[0113] Steps S5030-S5050 and Figure 1 The authentication and security verification processes in the illustrated embodiment are similar and will not be described in detail here.

[0114] Figure 6 A flowchart of another method for accessing a closed access group provided by an embodiment, such as Figure 6 As shown, the method provided in this embodiment includes the following steps.

[0115] Step S6010: encrypt the CAG ID requested for access to obtain a first encrypted CAG ID requested for access.

[0116] The method for accessing a closed access group provided in this embodiment is applied to a terminal device in a mobile communication system, referred to as a terminal. When the terminal needs to access a private network, that is, a closed access group, it is necessary to send a CAG ID requesting access to an authentication and security verification device in the network. Since the CAG ID is sent in plain text and the registration request message carrying the CAG ID is sent over the air interface, the CAG ID is easily leaked, thereby affecting the security of the closed access group.

[0117] In order to solve the above problem, in this embodiment, when the terminal needs to access the closed access group, after determining the CAG ID for which access is requested, the CAG ID for which access is requested is first encrypted to obtain the first encrypted CAG ID for which access is requested. The encryption method used to encrypt the CAG ID can adopt any existing encryption method, and corresponds to the decryption method in the network element for authenticating and securely verifying the terminal. The key used to encrypt the CAG ID can also be one or more possible methods, and corresponds to the key in the network element for authenticating and securely verifying the terminal.

[0118] Step S6020: Send a registration request message, which includes the first encrypted CAGID requested for access and the 5G-GUTI of the terminal.

[0119] After obtaining the first encrypted CAG ID for requesting access, the terminal can send a registration request message, which includes the first encrypted CAG ID for requesting access and the terminal's 5G Globally Unique Temporary UE Identity (5G-GUTI). The terminal sends a registration request message through the air interface, and the base station accessed by the terminal or the service base station of the cell where the terminal is located will receive the registration request message. The base station that receives the registration request message will send the registration request message to the network element that authenticates and securely verifies the terminal, including AMF, AUSF, UDM / SIDF, etc. The above network elements can determine whether the current network elements are network elements that have served the terminal according to the 5G-GUTI of the terminal. If so, since the network elements that have served the terminal store various information related to the terminal, each network element can directly use various information related to the terminal to determine the terminal's home network, the terminal encrypts the first encrypted CAG ID for requesting access, and other related information to decrypt the first encrypted CAG ID for requesting access to obtain the CAG ID for requesting access, and obtain the first CAG ID list allowed for terminal access. Then determine whether the terminal can access the CAG corresponding to the CAG ID requested for access. If the terminal is allowed to access the CAG corresponding to the CAG ID requested for access, the terminal will receive a registration acceptance message, and if the terminal is not allowed to access the CAG corresponding to the CAG ID requested for access, the terminal will receive a registration rejection message.

[0120] The method for accessing a closed access group provided in this embodiment encrypts the CAG ID requested for access to obtain a first encrypted CAG ID requested for access, and then sends a registration request message, wherein the registration request message includes the first encrypted CAG ID requested for access and the 5G-GUTI of the terminal, thereby providing a closed access group access method that protects the closed access group. Since the CAG ID requested for access is encrypted, the leakage of the CAG ID caused by the registration request message sent through the air interface is avoided, thereby improving the security of accessing the CAG.

[0121] In one embodiment, the CAG ID requested for access is encrypted to obtain the first encrypted CAG ID requested for access, including: using the encryption key in the security context corresponding to the 5G-GUTI of the terminal to encrypt the CAG ID requested for access to obtain the first encrypted CAG ID requested for access. Then, when the terminal sends a registration request message, since the registration request message includes both the first encrypted CAG ID requested for access and the 5G-GUTI of the terminal, the network element that receives the registration request message and performs authentication and security verification on the terminal can obtain whether the current network elements are network elements that have served the terminal according to the 5G-GUTI of the terminal. If so, since the network element that has served the terminal stores various information related to the terminal, including the encryption key in the security context corresponding to the 5G-GUTI of the terminal, the network element that performs authentication and security verification on the terminal can directly use the encryption key in the security context corresponding to the 5G-GUTI of the terminal to decrypt the first encrypted CAG ID requested for access to obtain the CAG ID requested for access.

[0122] Figure 7 A flowchart of another method for accessing a closed access group provided by an embodiment, such as Figure 7 As shown, the method provided in this embodiment includes the following steps.

[0123] Step S7010: encrypt the CAG ID requested for access to obtain a first encrypted CAG ID requested for access.

[0124] Step S7020: Send a registration request message, which includes the first encrypted CAGID requested for access and the 5G-GUTI of the terminal.

[0125] Step S7010 and step S7020 are the same as step S6010 and step S6020, and are not repeated here.

[0126] Step S7030, receiving the identification request message sent by AMF.

[0127] After the terminal sends a registration request message, if the network element that receives the registration request message is a network element that has served the terminal before, it may store information related to the terminal, so the first encrypted CAG ID requested for access can be decrypted. If the network element that receives the registration request message has never served the terminal, or the network element that receives the registration request message has served the terminal but has not saved the relevant information of the terminal, then the first encrypted CAG ID requested for access cannot be decrypted. Then the terminal will receive the identification request message sent by AMF. The identification request message is received after the first encrypted CAG ID requested for access cannot be decrypted through the terminal's 5G-GUTI.

[0128] Step S7040: Use the public key of the home network to encrypt the CAG ID for the access request to obtain a second encrypted CAG ID for the access request.

[0129] After receiving the identification request message, the terminal may use the public key of the home network to encrypt the CAG ID for which access is requested, and obtain a second encrypted CAG ID for which access is requested.

[0130] Step S7050: Send an identification response message to the AMF, where the identification response message includes the second encrypted CAG ID of the requested access and the SUCI of the terminal.

[0131] Then the terminal sends an identification response message to the AMF, and the identification response message includes the second encrypted CAG ID requested for access and the SUCI of the terminal. Since the identification response message includes both the second encrypted CAG ID requested for access and the SUCI of the terminal, the AMF that receives the identification response message can learn the home network of the terminal based on the SUCI of the terminal, and then the AMF can obtain the public key of the home network of the terminal, so the second encrypted CAG ID requested for access can be decrypted using the obtained public key to obtain the CAG ID requested for access. In addition, the AMF can also obtain the first CAG ID list allowed to be accessed by the terminal based on the SUCI of the terminal. Then determine whether the terminal can access the CAG corresponding to the CAG ID requested for access. When the terminal is allowed to access the CAG corresponding to the CAG ID requested for access, the terminal will receive a registration acceptance message, and if the terminal is not allowed to access the CAG corresponding to the CAG ID requested for access, the terminal will receive a registration rejection message.

[0132] In one embodiment, after receiving the identification request message sent by the AMF, the terminal can also use the public key of the home network to encrypt the CAG ID requested for access and the SUCI of the terminal together to obtain the extended SUCI of the terminal; then the terminal sends an identification response message to the AMF, and the identification response message includes the extended SUCI of the terminal. Then, after the terminal sends the identification request message, the AMF that receives the identification request message can learn the home network of the terminal according to the relevant information of the terminal, and then the AMF can obtain the public key of the home network of the terminal, so the extended SUCI can be decrypted using the obtained public key to obtain the CAG ID requested for access and the SUCI of the terminal. In addition, the AMF can also obtain the first CAG ID list allowed to be accessed by the terminal according to the SUCI of the terminal. Then, it is determined whether the terminal can access the CAG corresponding to the CAG ID requested for access. When the terminal is allowed to access the CAG corresponding to the CAG ID requested for access, the terminal will receive a registration acceptance message, and if the terminal is not allowed to access the CAG corresponding to the CAG ID requested for access, the terminal will receive a registration rejection message.

[0133] In one embodiment, before encrypting the CAG ID requested for access and obtaining the first encrypted CAG ID requested for access, the method further includes: receiving a system broadcast message carrying a first CAG ID list; matching the second CAG ID list configured by itself with the first CAG ID list to determine the CAG ID requested for access. The first CAG ID list includes at least one CAG ID that is allowed to be accessed by the terminal.

[0134] In one embodiment, matching the second CAG ID list configured by itself with the first CAG ID list to determine the CAG ID requested for access includes: matching the second CAG ID list configured by itself with the first CAG ID list to determine that a same CAG ID in the second CAG ID list and the first CAG ID list is the CAG ID requested for access. The method for matching the second CAG ID list configured by itself with the first CAG ID list may be to determine that a same CAG ID in the second CAG ID list and the first CAG ID list is the CAG ID requested for access. The same CAG ID in the first CAG ID list and the second CAG ID list may be one or more, or there may be no same CAG ID in the first CAG ID list and the second CAG ID list. If there is no same CAG ID in the first CAG ID list and the second CAG ID list, the terminal will not be allowed to access the CAG, so the terminal will not be able to determine the CAG ID requested for access, and the terminal will not perform subsequent procedures. If there is only one same CAG ID in the first CAG ID list and the second CAG ID list, then this same CAG ID can be used as the CAG ID requested for access. If there are two or more identical CAG IDs in the first CAG ID list and the second CAG ID list, then one of the two or more identical CAG IDs can be selected as the CAG ID for requesting access, or one of the two or more identical CAG IDs can be selected as the CAG ID for requesting access according to preset rules.

[0135] In addition, before receiving the system broadcast message carrying the first CAG ID list, a second CAG ID list may be configured in the terminal, where the second CAG ID list includes at least one CAG ID that is allowed to be accessed.

[0136] Figure 8 A flowchart of another method for accessing a closed access group provided by an embodiment, such as Figure 8 As shown, the method provided in this embodiment includes the following steps.

[0137] Step S8010, receiving a registration request message sent by the terminal, where the registration request message includes the first encrypted CAG ID requested for access and the 5G-GUTI of the terminal.

[0138] The method for accessing a closed access group provided in this embodiment is applied to network devices in a mobile communication system, which are network elements that perform authentication and security verification on terminals, including but not limited to one or more of AMF, AUSF, and UDM / SIDF. When a terminal needs to access a private network, i.e., a closed access group, it is necessary to send a CAG ID requesting access to the authentication and security verification device in the network. However, since the CAG ID is sent in plain text and the registration request message carrying the CAG ID is sent over the air interface, the CAG ID is easily leaked, thereby affecting the security of the closed access group.

[0139] In order to solve the above problems, in this embodiment, the network element that performs authentication and security verification on the terminal receives a registration request message sent by the terminal, and the registration request message includes the encrypted CAG ID requested for access and the 5G-GUTI of the terminal. Among them, the network element that performs authentication and security verification on the terminal can determine whether the current network elements are network elements that have served the terminal based on the 5G-GUTI of the terminal. The encryption method used by the terminal for the first encrypted CAG ID requested for access can adopt any existing encryption method, and correspond to the decryption method in the network element that performs authentication and security verification on the terminal. The key used by the terminal to encrypt the CAG ID can also be one or more possible methods, and correspond to the key in the network element that performs authentication and security verification on the terminal.

[0140] Step S8020: Determine whether the current AMF is a historical AMF that has served the terminal according to the 5G-GUTI of the terminal.

[0141] After receiving the 5G-GUTI and the first encrypted CAG ID of the terminal, the network element that authenticates and securely verifies the terminal first determines whether the current AMF is a historical AMF that has served the terminal based on the 5G-GUTI of the terminal. Since the historical AMF that has served the terminal will store information related to the terminal, it is possible to determine whether the current AMF is a historical AMF that has served the terminal based on the 5G-GUTI of the terminal.

[0142] Step S8030: If the current AMF is a historical AMF that has served the terminal and the SUPI of the terminal is stored in the current AMF, a first CAG ID list is obtained from the home network of the terminal according to the SUPI of the terminal, and the first encrypted CAG ID requested for access is decrypted into the CAG ID requested for access.

[0143] If the current AMF is a historical AMF that has served the terminal, the current AMF may or may not store the SUPI of the terminal. If the current AMF is a historical AMF that has served the terminal, and the current AMF stores the SUPI of the terminal, the current AMF can obtain the first CAG ID list from the home network of the terminal according to the SUPI of the terminal, and decrypt the first encrypted CAG ID requested for access into the CAG ID requested for access. The key and encryption method used by the current AMF to decrypt the first encrypted CAG ID requested for access may be preset in the terminal and AMF, or may be saved when the current AMF previously served the terminal. For example, the security context of the terminal is stored in the current AMF, and the security context includes an encryption key. Then the terminal can use the encryption key in the security context to encrypt the CAGID requested for access to obtain the first encrypted CAG ID requested for access, and the current AMF can also use the encryption key in the stored security context of the terminal to decrypt the first encrypted CAG ID requested for access to obtain the CAG ID requested for access.

[0144] Step S8040: determine whether the CAG ID requested to access matches the first CAG ID list, and if so, send a registration acceptance message to the terminal.

[0145] This step is the same as step S4040 and will not be repeated here.

[0146] Step S8050: If the current AMF is a historical AMF that once served the terminal and the SUPI of the terminal is not stored in the current AMF, the current AMF sends an identification request message to the terminal.

[0147] If the current AMF is a historical AMF that has served the terminal, and the current AMF does not store the terminal's SUPI, then the current AMF cannot decrypt the first encrypted CAG ID sent by the terminal for access request. Therefore, the current AMF sends an identification request message to the terminal, requesting the terminal to send the CAG ID for access request again.

[0148] Step S8060: receiving an identification response message sent by the terminal, where the identification response message includes the second encrypted CAG ID for access request encrypted by the terminal using the public key of the home network and the SUCI of the terminal.

[0149] After the terminal receives the identification request message, in order to ensure the security of the CAG ID, the terminal can use the public key of the home network to encrypt the CAG ID requested for access, and obtain the second encrypted CAG ID requested for access. Then the current AFM will receive the identification response message sent by the terminal, and the identification response message includes the second encrypted CAG ID requested for access encrypted by the terminal using the public key of the home network and the SUCI of the terminal.

[0150] Step S8070: UDM or SIDF resolves the SUCI of the terminal into the SUPI of the terminal, and uses the public key of the home network of the terminal to decrypt the second encrypted CAG ID for requesting access into the CAG ID for requesting access.

[0151] Step S8080: Acquire a first CAG ID list from the home network of the terminal according to the SUPI of the terminal.

[0152] Step S8090: Determine whether the CAG ID requested to access matches the first CAG ID list. If so, send a registration acceptance message to the terminal.

[0153] Steps S8070-S8090 and Figure 4 Steps S5020 to S5050 in the illustrated embodiment are similar and will not be described in detail here.

[0154] In one embodiment, the identification response message includes an extended SUCI obtained by encrypting the CAG ID requested to be accessed by the terminal and the SUCI of the terminal using the public key of the home network. The extended SUCI of the terminal is obtained by encrypting the CAG ID requested to be accessed and the SUCI of the terminal using the public key of the home network of the terminal. Then the UDM or SIDF decrypts the extended SUCI of the terminal into the CAG ID requested to be accessed and the SUCI of the terminal using the public key of the home network of the terminal, and parses the SUCI of the terminal into the SUPI of the terminal. The UDM or SIDF parses the SUCI of the terminal into the SUPI of the terminal, and obtains the first CAG ID list from the home network of the terminal according to the SUPI of the terminal. It is determined whether the CAG ID requested to be accessed matches the first CAG ID list, and if they match, a registration acceptance message is sent to the terminal.

[0155] Step S8100, if the current AMF has not served the terminal, the current AMF determines the historical AMF that has served the terminal based on the terminal's 5G-GUTI, and sends a context transfer request message of the terminal to the historical AMF. The context transfer request message of the terminal includes the terminal's 5G-GUTI.

[0156] If the current AMF has never served the terminal, then the current AMF will not store the relevant information of the terminal. Since the current AMF has also received the 5G-GUTI of the terminal, the current AMF can determine the historical AMF that has served the terminal based on the 5G-GUTI of the terminal. Then the current AMF sends a context transfer request message of the terminal to the historical AMF, and the context transfer request message of the terminal includes the 5G-GUTI of the terminal.

[0157] Step S8110: The current AMF receives a context transfer response message sent by the historical AMF, where the context transfer response message includes the security context of the terminal and the first CAG ID list.

[0158] After receiving the context transfer response message sent by the historical AMF, the current AMF can obtain the security context of the terminal and the first CAG ID list.

[0159] Step S8120: The current AMF uses the private key in the security context of the terminal to decrypt the first encrypted CAG ID requested for access into the CAG ID requested for access.

[0160] Step S8130, determine whether the CAG ID requested to access matches the first CAG ID list, and if so, send a registration acceptance message to the terminal.

[0161] If the security context corresponding to the terminal is stored in the historical AMF serving the terminal, the current AMF can receive the security context of the terminal sent by the historical AMF, and the current AMF can directly use the key in the received security context to decrypt the CAG ID of the first encrypted request for access. If the historical AMF serving the terminal does not store the relevant information of the terminal, the current AMF needs to process it in other ways.

[0162] Step S8140: If the current AMF has not received the context transfer response message of the terminal sent by the historical AMF, the current AMF sends an identification request message to the terminal.

[0163] If the current AMF has not received the context transfer response message of the terminal sent by the historical AMF, the current AMF will send an identification request message to the terminal, requesting the terminal to resend the CAG ID that the current AMF can decrypt.

[0164] Step S8150: receiving an identification response message sent by the terminal, where the identification response message includes the second encrypted CAG ID for access request encrypted by the terminal using the public key of the home network and the SUCI of the terminal.

[0165] Step S8160: The UDM or SIDF resolves the SUCI of the terminal into the SUPI of the terminal, and uses the public key of the home network of the terminal to decrypt the second encrypted CAG ID for requesting access into the CAG ID for requesting access.

[0166] Step S8170: Acquire a first CAG ID list from the home network of the terminal according to the SUPI of the terminal.

[0167] Step S8180, determine whether the CAG ID requested to access matches the first CAG ID list, and if so, send a registration acceptance message to the terminal.

[0168] Steps S8150 to S8180 are the same as steps S8060 to S8090 and will not be repeated here.

[0169] In one embodiment, the identification response message includes an extended SUCI obtained by encrypting the CAG ID requested to be accessed by the terminal and the SUCI of the terminal using the public key of the home network. The extended SUCI of the terminal is obtained by encrypting the CAG ID requested to be accessed and the SUCI of the terminal using the public key of the home network of the terminal. Then the UDM or SIDF decrypts the extended SUCI of the terminal into the CAG ID requested to be accessed and the SUCI of the terminal using the public key of the home network of the terminal, and parses the SUCI of the terminal into the SUPI of the terminal. The UDM or SIDF parses the SUCI of the terminal into the SUPI of the terminal, and obtains the first CAG ID list from the home network of the terminal according to the SUPI of the terminal. It is determined whether the CAG ID requested to be accessed matches the first CAG ID list, and if they match, a registration acceptance message is sent to the terminal.

[0170] In one embodiment, determining whether the CAG ID requested for access matches the first CAG ID list includes: determining whether the CAG ID requested for access is the same as any CAG ID in the first CAG ID list; if so, determining that the CAG ID requested for access matches the first CAG ID list.

[0171] In one embodiment, after determining whether the CAG ID requested to access matches the first CAG ID list, the method further includes: if they do not match, sending a registration rejection message to the terminal.

[0172] Fig. 9 An interactive flow chart of a method for accessing a closed access group provided by an embodiment, such as Fig. 9 As shown, the method provided in this embodiment includes the following steps.

[0173] Step S9010: Configure a CAG ID list allowed to be accessed on the mobile terminal, for example, {2, 3, 4, 5}.

[0174] Step S9020: The network carries a list of CAG IDs supported by the cell in the broadcast system message, for example, {1, 2, 3}.

[0175] Step S9030: After receiving the message, the terminal compares the two lists and selects a CAG ID from the matching CAG IDs as the CAG ID requested for access, for example, selects 2 from {2, 3}.

[0176] Step S9040: the terminal encrypts the CAG ID for which access is requested with the public key of the home network to obtain the encrypted CAG ID for which access is requested; the terminal may also encrypt the CAG ID for which access is requested and the SUPI together with the public key of the home network to obtain the extended SUCI; the terminal sends a registration request message to the network, which carries the encrypted CAG ID for which access is requested, and the request message also carries the SUCI; when the two are jointly encrypted, the request message carries the extended SUCI (2).

[0177] Step S9050: Authentication and security process, in which UDM / SIDF resolves SUCI into SUPI, and UDM / SIDF also resolves the encrypted CAG ID of the requested access into the CAG ID of the requested access; UDM / SIDF returns the SUPI and the CAG ID of the requested access to AMF.

[0178] Step S9060: AMF obtains the list of CAG IDs allowed to be accessed from the home network. The request message carries the SUPI parameter, for example, {2,3,4,5}.

[0179] Step S9070 (access control): AMF determines whether the terminal is allowed to access the CAG. Specifically, AMF determines whether the CAG ID received from the registration message is included in the list of CAG IDs allowed to be accessed obtained from the home network. If so, it is accessible. If not, it is not accessible. For example, 2 is in {2, 3, 4, 5}, so it is accessible.

[0180] Step S9080: If accessible, AMF returns a registration acceptance message to the terminal.

[0181] Step S9090: If access is not possible, AMF returns a registration rejection message to the terminal.

[0182] Fig.10 An interactive flow chart of another method for accessing a closed access group provided by an embodiment, such as Fig.10 As shown, the method provided in this embodiment includes the following steps.

[0183] Step S10010: Configure a CAG ID list allowed to be accessed on the mobile terminal, for example, {2, 3, 4, 5}.

[0184] Step S10020: The network carries a list of CAG IDs supported by the cell in the broadcast system message, for example, {1, 2, 3}.

[0185] Step S10030: After receiving the message, the terminal compares the two lists and selects a CAG ID from the matching CAG IDs as the CAG ID requested for access, for example, selects 2 from {2, 3}.

[0186] Step S10040: If the terminal has a temporary user identifier 5G-GUTI and a security context of the visited network for which registration is requested, the terminal encrypts the CAG ID for which access is requested with the encryption key in the security context to obtain the encrypted CAG ID for which access is requested; the terminal sends a registration request message to the network, which carries the encrypted CAG ID for which access is requested, and the request message also carries 5G-GUTI.

[0187] Step S10050: If the current AMF (new AMF) that receives the registration message is the historical AMF (old AMF) that served the terminal last time, and the SUPI and security context of the terminal are still stored, the encryption key in the security context is used to decrypt the encrypted CAG ID requested for access to obtain the CAG ID requested for access; if the new AMF is not the old AMF that served the terminal last time, the new AMF sends a terminal context transfer request message to the old AMF, and the message carries 5G-GUTI.

[0188] Step S10060: the old AMF returns the SUPI and security context of the terminal to the new AMF. The new AMF can use the encryption key in the security context to decrypt the encrypted CAG ID requested for access and obtain the CAG ID requested for access. The return message also includes a list of CAG IDs allowed to be accessed, such as {2, 3, 4, 5}.

[0189] Step S10070: If the old AMF does not store the SUPI and context of the terminal, the new AMF sends an identification request message to the terminal.

[0190] Step S10080: the terminal encrypts the CAG ID for which access is requested with the public key of the home network to obtain the encrypted CAG ID for which access is requested; the terminal may also encrypt the CAG ID for which access is requested and the SUPI with the public key of the home network to obtain the extended SUCI; the terminal returns an identification response message to the new AMF, which carries the encrypted CAG ID for which access is requested, and the request message also carries the SUCI; when jointly encrypted, the request message carries the extended SUCI (2).

[0191] Step S10090: Authentication and security process. If step S10060 successfully returns SUPI, SUCI resolution and CAG ID resolution are not required. If step S10060 is unsuccessful, in this step, UDM / SIDF resolves SUCI into SUPI, and UDM / SIDF also resolves the encrypted CAG ID requested for access into the CAG ID requested for access. UDM / SIDF returns SUPI and CAG ID requested for access to AMF.

[0192] Step S10100: If step S10060 is unsuccessful, the AMF obtains the list of CAG IDs allowed to be accessed from the home network, and the request message carries the SUPI parameter, for example, {2,3,4,5}.

[0193] Step S10110 (access control): AMF determines whether the terminal is allowed to access the CAG. Specifically, AMF determines whether the CAG ID received from the registration message is included in the list of CAG IDs allowed to be accessed obtained from the home network. If so, it is accessible. If not, it is not accessible. For example, 2 is in {2, 3, 4, 5}, so it is accessible.

[0194] Step S10120: If accessible, AMF returns a registration acceptance message to the terminal.

[0195] Step S10130: If access is not possible, AMF returns a registration rejection message to the terminal.

[0196] Fig.11 A schematic diagram of a structure of a device for accessing a closed access group provided by an embodiment, such as Fig.11 As shown, the device for accessing a closed access group provided in this embodiment includes: an encryption module 111, configured to encrypt the CAG ID requested for access to obtain the encrypted CAG ID requested for access; a sending module 112, configured to send a registration request message, wherein the registration request message includes the encrypted CAG ID requested for access and the SUCI of the terminal.

[0197] The device for accessing a closed access group provided in this embodiment is used to implement Figure 2The method for accessing a closed access group in the illustrated embodiment and the device for accessing a closed access group provided in this embodiment are similar in implementation principle and technical effect, and will not be described in detail here.

[0198] Fig.12 A schematic diagram of the structure of another device for accessing a closed access group provided by an embodiment, such as Fig.12 As shown, the apparatus for accessing a closed access group provided by this embodiment includes: a receiving module 121, configured to receive a registration request message sent by a terminal, wherein the registration request message includes an encrypted CAG ID for requesting access and a SUCI of the terminal; a decryption module 122, configured to resolve the SUCI of the terminal into the SUPI of the terminal, and decrypt the encrypted CAG ID for requesting access into the CAG ID for requesting access; an acquisition module 123, configured to acquire a first CAG ID list from a home network of the terminal according to the SUPI of the terminal; and a judgment module 124, configured to judge whether the CAG ID for requesting access matches the first CAG ID list, and if so, to send a registration acceptance message to the terminal.

[0199] The device for accessing a closed access group provided in this embodiment is used to implement Figure 4 The method for accessing a closed access group in the illustrated embodiment and the device for accessing a closed access group provided in this embodiment are similar in implementation principle and technical effect, and will not be described in detail here.

[0200] Fig.13 A schematic diagram of the structure of another device for accessing a closed access group provided by an embodiment, such as Fig.13 As shown, the device for accessing a closed access group provided in this embodiment includes: an encryption module 131, configured to encrypt the CAGID requested for access to obtain a first encrypted CAG ID requested for access; a sending module 132, configured to send a registration request message, the registration request message including the first encrypted CAG ID requested for access and the 5G-GUTI of the terminal.

[0201] The device for accessing a closed access group provided in this embodiment is used to implement Figure 6 The method for accessing a closed access group in the illustrated embodiment and the device for accessing a closed access group provided in this embodiment are similar in implementation principle and technical effect, and will not be described in detail here.

[0202] Fig.14 A schematic diagram of the structure of another device for accessing a closed access group provided by an embodiment, such as Fig.14As shown, the device for accessing a closed access group provided in this embodiment includes: a receiving module 141, configured to receive a registration request message sent by a terminal, the registration request message including a first encrypted CAG ID requested for access and a 5G-GUTI of the terminal; a decryption module 142, configured to determine whether the current AMF is a historical AMF that has served the terminal according to the 5G-GUTI of the terminal; an acquisition module 143, configured to obtain a first CAG ID list from the home network of the terminal according to the SUPI of the terminal if the current AMF is a historical AMF that has served the terminal and the SUPI of the terminal is stored in the current AMF, and decrypt the first encrypted CAG ID requested for access into a CAG ID requested for access; a judgment module 144, configured to determine whether the CAG ID requested for access matches the first CAG ID list, and if so, send a registration acceptance message to the terminal.

[0203] The device for accessing a closed access group provided in this embodiment is used to implement Figure 8 The method for accessing a closed access group in the illustrated embodiment and the device for accessing a closed access group provided in this embodiment are similar in implementation principle and technical effect, and will not be described in detail here.

[0204] The embodiment of the present application also provides a system for accessing a closed access group, including a terminal and a network device, wherein the terminal includes Fig.11 The apparatus for accessing a closed access group shown in the embodiment, the network device includes Fig.12 The embodiment shown is a means for accessing a closed access group.

[0205] The embodiment of the present application also provides a system for accessing a closed access group, including a terminal and a network device, wherein the terminal includes Fig.13 The apparatus for accessing a closed access group shown in the embodiment, the network device includes Fig.14 The embodiment shown is a means for accessing a closed access group.

[0206] Fig.15 A schematic diagram of a terminal structure provided by an embodiment is shown in FIG. Fig.15 As shown, the terminal includes a processor 151, a memory 152, a transmitter 153 and a receiver 154; the number of processors 151 in the terminal can be one or more. Fig.15 In the example, a processor 151 is used; the processor 151 and the memory 152, the transmitter 1543 and the receiver 154 in the terminal can be connected through a bus or other means. Fig.15 The example of connecting through bus is taken in the following.

[0207] The memory 152 is a computer-readable storage medium that can be configured to store software programs, computer executable programs, and modules, such as the present application. Figure 2-Figure 3 or Figure 6-Figure 7The program instructions / modules corresponding to the method for accessing a closed access group in the embodiment (for example, the encryption module 111 and the sending module 112 in the device for accessing a closed access group or the encryption module 131 and the sending module 132 in the device for accessing a closed access group). The processor 151 executes the software programs, instructions and modules stored in the memory 152, thereby implementing at least one functional application and data processing of the terminal, that is, realizing Figure 2-Figure 3 or Figure 6-Figure 7 Access closed access group method.

[0208] The memory 152 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 152 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.

[0209] The transmitter 153 is a module or device combination capable of transmitting radio frequency signals into space, such as a combination of a radio frequency transmitter, an antenna, and other devices. The receiver 154 is a module or device combination capable of receiving radio frequency signals from space, such as a combination of a radio frequency receiver, an antenna, and other devices.

[0210] An embodiment of the present application also provides a storage medium containing computer executable instructions. When the computer executable instructions are executed by a computer processor, they are used to execute a method for accessing a closed access group. The method includes: encrypting a CAG ID for requesting access to obtain an encrypted CAG ID for requesting access; and sending a registration request message, wherein the registration request message includes the encrypted CAG ID for requesting access and the SUCI of the terminal.

[0211] An embodiment of the present application also provides a storage medium including computer executable instructions. When the computer executable instructions are executed by a computer processor, they are used to execute a method for accessing a closed access group. The method includes: receiving a registration request message sent by a terminal, the registration request message including an encrypted CAG ID for which access is requested and a SUCI of the terminal; parsing the SUCI of the terminal into the SUPI of the terminal, and decrypting the encrypted CAG ID for which access is requested into the CAG ID for which access is requested; acquiring a first CAG ID list from a home network of the terminal according to the SUPI of the terminal; and determining whether the CAG ID for which access is requested matches the first CAG ID list, and if so, sending a registration acceptance message to the terminal.

[0212] An embodiment of the present application also provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute a method for accessing a closed access group, the method comprising: encrypting a CAG ID requested for access to obtain a first encrypted CAG ID requested for access; sending a registration request message, the registration request message including the first encrypted CAG ID requested for access and the 5G-GUTI of the terminal.

[0213] An embodiment of the present application also provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute a method for accessing a closed access group, the method comprising: receiving a registration request message sent by a terminal, the registration request message including a first encrypted CAG ID requested for access and the 5G-GUTI of the terminal; judging whether the current AMF is a historical AMF that has served the terminal according to the 5G-GUTI of the terminal; if the current AMF is a historical AMF that has served the terminal, and the current AMF stores the SUPI of the terminal, obtaining a first CAG ID list from the terminal's home network according to the SUPI of the terminal, and decrypting the first encrypted CAG ID requested for access into a CAG ID requested for access; judging whether the CAG ID requested for access matches the first CAG ID list, and if so, sending a registration acceptance message to the terminal.

[0214] It will be appreciated by those skilled in the art that the term user terminal covers any suitable type of wireless user equipment, such as a mobile phone, a portable data processing device, a portable web browser or a vehicle-mounted mobile station.

[0215] In general, various embodiments of the present application can be implemented in hardware or dedicated circuits, software, logic or any combination thereof. For example, some aspects can be implemented in hardware, while other aspects can be implemented in firmware or software that can be executed by a controller, microprocessor or other computing device, although the present application is not limited thereto.

[0216] Embodiments of the present application may be implemented by executing computer program instructions by a data processor of a mobile device, for example in a processor entity, or by hardware, or by a combination of software and hardware. The computer program instructions may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages.

[0217] The block diagram of any logic flow in the drawings of the present application may represent program steps, or may represent interconnected logic circuits, modules and functions, or may represent a combination of program steps and logic circuits, modules and functions. A computer program may be stored on a memory. The memory may have any type suitable for the local technical environment and may be implemented using any suitable data storage technology, such as but not limited to read-only memory (ROM), random access memory (RAM), optical memory devices and systems (digital versatile discs (DVD) or compact discs (CD)), etc. Computer-readable media may include non-transient storage media. A data processor may be any type suitable for the local technical environment, such as but not limited to a general-purpose computer, a special-purpose computer, a microprocessor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FGPAs) and a processor based on a multi-core processor architecture.

Claims

1. A method for accessing a closed access group, characterized in that: include: Encrypting the closed access group identifier CAGID of the access request to obtain a first encrypted CAG ID of the access request; Sending a registration request message, where the registration request message includes the first encrypted CAG ID requested for access and a 5G globally unique temporary user equipment identifier 5G-GUTI of the terminal; receiving an identification request message sent by a mobility management function AMF, where the identification request message is sent when the AMF has not served the terminal and the AMF has not received a context transfer response message of the terminal sent by a historical AMF that has served the terminal, or the identification request message is sent when the AMF has served the terminal and the AMF has not stored a user permanent identity SUPI of the terminal; Encrypting the CAG ID for the access request using a public key of the home network to obtain a second encrypted CAG ID for the access request; Send an identification response message to the AMF, where the identification response message includes the second encrypted CAG ID requested for access and the hidden user identity SUCI of the terminal, so that the UDM or SIDF resolves the SUCI of the terminal into the SUPI of the terminal.

2. The method according to claim 1, characterized in that The step of encrypting the CAG ID for the access request to obtain a first encrypted CAG ID for the access request includes: The CAG ID requested for access is encrypted using the encryption key in the security context corresponding to the 5G-GUTI of the terminal to obtain a first encrypted CAG ID requested for access.

3. The method according to claim 1, characterized in that After sending the registration request message, the method further includes: Receive the identification request message sent by AMF; Encrypting the CAG ID of the access request and the SUCI of the terminal together using a public key of the home network to obtain an extended SUCI of the terminal; Send an identification response message to the AMF, where the identification response message includes the extended SUCI of the terminal.

4. The method according to any one of claims 1 to 3, characterized in that: Before encrypting the CAG ID for requesting access to obtain the first encrypted CAG ID for requesting access, the method further includes: Receiving a system broadcast message carrying a first CAGID list; The second CAG ID list configured by itself is matched with the first CAG ID list to determine the CAGID requested to access.

5. The method according to claim 4, characterized in that The matching the second CAG ID list configured by itself with the first CAG ID list to determine the CAG ID requested for access includes: Match the second CAG ID list configured by itself with the first CAG ID list, and determine that a same CAG ID in the second CAG ID list and the first CAG ID list is the CAG ID requested to access.

6. The method according to claim 4, characterized in that Before receiving the system broadcast message carrying the first CAG ID list, the method further includes: The second CAG ID list is configured, where the second CAG ID list includes at least one CAG ID that is allowed to access.

7. A method for accessing a closed access group, characterized in that: include: Receive a registration request message sent by a terminal, where the registration request message includes a first encrypted closed access group identifier CAG ID requested for access and a 5G globally unique temporary user equipment identifier 5G-GUTI of the terminal; Determine, according to the 5G-GUTI of the terminal, whether the current mobility management function AMF is a historical AMF that has served the terminal; If the current AMF is a historical AMF that has served the terminal, and the user permanent identity SUPI of the terminal is stored in the current AMF, obtaining a first CAG ID list from the home network of the terminal according to the SUPI of the terminal, and decrypting the first encrypted CAG ID requested for access into the CAG ID requested for access; If the current AMF is a historical AMF that has served the terminal and the SUPI of the terminal is not stored in the current AMF, the current AMF sends an identification request message to the terminal; receiving an identification response message sent by the terminal, wherein the identification response message includes a second encrypted access request CAG ID encrypted by the terminal using a public key of a home network and a user hidden identity SUCI of the terminal; The UDM or SIDF resolves the SUCI of the terminal into the SUPI of the terminal, and decrypts the second encrypted CAG ID for requesting access into the CAG ID for requesting access using the public key of the home network of the terminal; Acquire a first CAG ID list from a home network of the terminal according to the SUPI of the terminal; Determine whether the CAG ID requested for access matches the first CAG ID list, and if so, send a registration acceptance message to the terminal; If the current AMF has not served the terminal, the current AMF determines the historical AMF that has served the terminal according to the 5G-GUTI of the terminal, and sends a context transfer request message of the terminal to the historical AMF, where the context transfer request message of the terminal includes the 5G-GUTI of the terminal; If the current AMF has not received the context transfer response message of the terminal sent by the historical AMF, the current AMF sends an identification request message to the terminal; receiving an identification response message sent by the terminal, wherein the identification response message includes a second encrypted CAG ID for access request encrypted by the terminal using a public key of a home network and a SUCI of the terminal; The UDM or SIDF resolves the SUCI of the terminal into the SUPI of the terminal, and decrypts the second encrypted CAG ID for requesting access into the CAG ID for requesting access using the public key of the home network of the terminal; Acquire a first CAG ID list from a home network of the terminal according to the SUPI of the terminal; Determine whether the CAG ID requested for access matches the first CAG ID list, and if so, send a registration acceptance message to the terminal.

8. The method according to claim 7, characterized in that After determining, according to the 5G-GUTI of the terminal, whether the current AMF is the AMF that has served the terminal, the method further includes: If the current AMF is a historical AMF that has served the terminal and the SUPI of the terminal is not stored in the current AMF, the current AMF sends an identification request message to the terminal; receiving an identification response message sent by the terminal, wherein the identification response message includes an extended SUCI obtained by encrypting the CAG ID requested to be accessed by the terminal and the SUCI of the terminal using a public key of a home network; The UDM or SIDF decrypts the extended SUCI of the terminal into the CAG ID for requesting access and the SUCI of the terminal using the public key of the home network of the terminal, and resolves the SUCI of the terminal into the SUPI of the terminal; The UDM or SIDF resolves the SUCI of the terminal into the SUPI of the terminal, and acquires a first CAG ID list from the home network of the terminal according to the SUPI of the terminal; Determine whether the CAG ID requested for access matches the first CAG ID list, and if so, send a registration acceptance message to the terminal.

9. The method according to claim 7, characterized in that: If the current AMF has not served the terminal, the current AMF determines the historical AMF that has served the terminal according to the 5G-GUTI of the terminal, and sends a context transfer request message of the terminal to the historical AMF. The context transfer request message of the terminal includes the 5G-GUTI of the terminal and further includes: The current AMF receives the context transfer response message sent by the historical AMF, where the context transfer response message includes the security context of the terminal and the first CAG ID list; The current AMF uses the private key in the security context of the terminal to decrypt the first encrypted CAG ID requested for access into the CAG ID requested for access; Determine whether the CAG ID requested for access matches the first CAG ID list, and if so, send a registration acceptance message to the terminal.

10. The method according to claim 7, characterized in that If the current AMF does not receive the context transfer response message of the terminal sent by the historical AMF, the current AMF sends an identification request message to the terminal, further comprising: receiving an identification response message sent by the terminal, wherein the identification response message includes an extended SUCI obtained by encrypting the CAG ID requested to be accessed by the terminal and the SUCI of the terminal using a public key of a home network; The UDM or SIDF decrypts the extended SUCI of the terminal into the CAG ID for requesting access and the SUCI of the terminal using the public key of the home network of the terminal, and resolves the SUCI of the terminal into the SUPI of the terminal; Acquire a first CAG ID list from a home network of the terminal according to the SUPI of the terminal; Determine whether the CAG ID requested for access matches the first CAG ID list, and if so, send a registration acceptance message to the terminal.

11. The method according to any one of claims 7 to 10, characterized in that: The determining whether the CAGID requested to access matches the first CAG ID list includes: Determine whether the CAG ID requested for access is the same as any CAG ID in the first CAG ID list; if so, determine that the CAG ID requested for access matches the first CAG ID list.

12. The method according to any one of claims 7 to 10, characterized in that: After determining whether the CAGID requested for access matches the first CAG ID list, the method further includes: If there is no match, a registration rejection message is sent to the terminal.

13. A device for accessing a closed access group, characterized in that: include: An encryption module, configured to encrypt the closed access group identifier CAG ID of the access request to obtain a first encrypted CAG ID of the access request; A sending module, configured to send a registration request message, wherein the registration request message includes the first encrypted CAG ID requested for access and a 5G globally unique temporary user equipment identifier 5G-GUTI of the terminal; a receiving module, configured to receive an identification request message sent by a mobility management function AMF, wherein the identification request message is sent when the AMF has not served the terminal and the AMF has not received a context transfer response message of the terminal sent by a historical AMF that has served the terminal, or the identification request message is sent when the AMF has served the terminal and the AMF has not stored a user permanent identity SUPI of the terminal; The encryption module is further configured to encrypt the CAG ID requested for access using a public key of the home network to obtain a second encrypted CAG ID requested for access; The sending module is further configured to send an identification response message to the AMF, where the identification response message includes the second encrypted CAG ID requested for access and the user hidden identity SUCI of the terminal, so that the UDM or SIDF resolves the SUCI of the terminal into the SUPI of the terminal.

14. A device for accessing a closed access group, characterized in that: include: A receiving module, configured to receive a registration request message sent by a terminal, wherein the registration request message includes a first encrypted closed access group identifier CAG ID requested for access and a 5G globally unique temporary user equipment identifier 5G-GUTI of the terminal; A decryption module, configured to determine, according to the 5G-GUTI of the terminal, whether the current mobility management function AMF is a historical AMF that has served the terminal; an acquiring module, configured to acquire a first CAG ID list from a home network of the terminal according to the SUPI of the terminal if the current AMF is a historical AMF that has served the terminal and the current AMF stores a user permanent identification SUPI of the terminal, and decrypt the first encrypted CAG ID requested for access into a CAG ID requested for access; a sending module, configured to, if the current AMF is a historical AMF that has served the terminal and the SUPI of the terminal is not stored in the current AMF, the current AMF sends an identification request message to the terminal; The receiving module is further configured to receive an identification response message sent by the terminal, wherein the identification response message includes a second encrypted access request CAG ID encrypted by the terminal using a public key of a home network and a user hidden identity SUCI of the terminal; The parsing module is also for parsing the SUCI of the terminal into the SUPI of the terminal through the UDM or SIDF, and decrypting the second encrypted CAG ID for requesting access into the CAG ID for requesting access using the public key of the home network of the terminal; acquiring the first CAG ID list from the home network of the terminal according to the SUPI of the terminal a determination module, configured to determine whether the CAG ID requested for access matches the first CAG ID list, and if so, send a registration acceptance message to the terminal; The sending module is further configured to, if the current AMF has not served the terminal, then the current AMF determines the historical AMF that has served the terminal according to the 5G-GUTI of the terminal, and sends a context transfer request message of the terminal to the historical AMF, where the context transfer request message of the terminal includes the 5G-GUTI of the terminal; if the current AMF does not receive the context transfer response message of the terminal sent by the historical AMF, then the current AMF sends an identification request message to the terminal; The receiving module is further configured to receive an identification response message sent by the terminal, wherein the identification response message includes a second encrypted access request CAGID encrypted by the terminal using a public key of a home network and a SUCI of the terminal; The parsing module is further configured to parse the SUCI of the terminal into the SUPI of the terminal by the UDM or SIDF, and decrypt the second encrypted CAG ID for requesting access into the CAG ID for requesting access by using the public key of the home network of the terminal; and obtain the first CAG ID list from the home network of the terminal according to the SUPI of the terminal; The determination module is further configured to determine whether the CAG ID requested to access matches the first CAG ID list, and if so, send a registration acceptance message to the terminal.

15. A system for accessing a closed access group, characterized in that: Including terminals and network equipment; The terminal comprises the device for accessing a closed access group as claimed in claim 13; The network device comprises the apparatus for accessing a closed access group as claimed in claim 14.

Citation Information

Patent Citations

  • Verification method and device adopting shared key, public key and private key

    CN110035433A

  • Femtocell network

    US20140018081A1

  • OMA DM Based Terminal Authentication Method, Terminal and Server

    US20160105410A1

  • Method for protecting data encrypted by home network key in wireless communication system and device therefor

    WO2019088599A1