Communication method and communication apparatus

By using random numbers instead of SQN in the 5G NTN scenario, the delay problem caused by power outage of the satellite base station is solved, faster user equipment access to the network is achieved, and signaling waste and delay are reduced.

WO2024174801A1PCT designated stage expired Publication Date: 2024-08-29HUAWEI TECH CO LTD

Patent Information

Application Number
PCT/CN2024/073965
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-02-21
Filing Date
2024-01-25
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

In the 5G non-terrestrial communication network (NTN) scenario, the satellite base station is powered off after flying out of the service area, resulting in the loss of the serial number (SQN) status, resulting in a prolonged connection between the gateway station and the satellite base station, requiring additional synchronization and registration processes, resulting in Signaling waste and delay increase.

Method used

By carrying the first random number in the registration request message, the network device generates authentication parameters, avoids desynchronization of the authentication parameters, directly determines whether to continue the registration process, and reduces additional synchronization and registration processes.

Benefits of technology

It effectively reduces the delay for user equipment to access the network, avoids additional synchronization and registration processes caused by SQN desynchronization, and improves communication efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024073965_29082024_PF_FP_ABST
    Figure CN2024073965_29082024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a communication method and a communication apparatus, used for reducing a delay of a user equipment accessing a network. The method comprises: a user equipment generates a first random number and sends same to a network device; the network device generates an authentication parameter on the basis of the first random number; and the network device sends, to the user equipment, an authentication request message carrying the authentication parameter. In this way, after the user equipment receives the authentication parameter from the network device, the network device can be verified according to the authentication parameter and the first random number, and if the verification is successful, a subsequent registration process is performed.
Need to check novelty before this filing date? Find Prior Art

Description

Communication method and communication device

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on February 21, 2023, with application number 202310186568.6 and application name “A Communication Method and Communication Device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The embodiments of the present application relate to the field of communication technology, and in particular, to a communication method and a communication device. Background Art

[0004] User equipment (UE) can register with the core network through the 3rd Generation Partnership Project (3GPP) access network. The air interface access authentication during the UE registration process uses the fifth-generation (5G) Authentication and Key Agreement (AKA) mechanism to protect communication security. The 5G AKA mechanism requires the sequence number (SQN) status on the UE and network sides to be synchronized. If the SQN is out of sync, the UE needs to perform SQN synchronization and re-register.

[0005] In the 5G non-terrestrial network (NTN) scenario, a gateway connects to a satellite base station for communication. In this case, the gateway is functionally equivalent to a UE, and the satellite base station is equivalent to a network. Authentication-related network-side logical elements are implemented by the satellite base station. For communication security, the gateway also needs to use access authentication when registering with the satellite base station. Therefore, the 5G AKA mechanism can also be used in the 5G NTN scenario to protect communication security. According to existing technologies, a satellite base station will fly out of its service area while orbiting the Earth. The service area refers to the area serving the gateway. When flying out of the service area, the satellite base station will be powered off to save energy, resulting in the loss of the SQN state and non-access stratum (NAS) context on the network side. Consequently, when the satellite base station enters the service area, the gateway requires additional SQN synchronization and re-registration processes to connect to the satellite base station, resulting in signaling waste. Furthermore, since the link between the gateway and the satellite base station is long, the additional synchronization and registration processes will result in a longer delay in the gateway registering with the satellite base station.

[0006] Therefore, in scenarios like 5G NTN, how to reduce the latency of user devices accessing the network becomes a technical problem that needs to be solved urgently.

[0007] Summary of the Invention

[0008] The present application provides a communication method, system and communication device for reducing the delay of user equipment accessing the network.

[0009] To achieve the above objectives, this application adopts the following technical solutions:

[0010] In a first aspect, a communication method is provided, which is applied to a communication device, the method comprising: the communication device sending a registration request message to a network device, wherein the registration request message includes a first random number. The communication device receives an authentication request from the network device, wherein the authentication request includes a second random number and an authentication parameter. The authentication parameter includes a first message authentication code (MAC). The second random number is a random number generated by the network device. The communication device determines whether to continue a subsequent registration process based on a key, the second random number, the first random number, and the first MAC. The key is a key shared between the communication device and the network device.

[0011] It is understood that in the present application, the communication device described in the first aspect and the following aspects may be a terminal device (e.g., UE, gateway, mobile phone, etc.), or a chip (system) that can be provided in the terminal device. In other words, the communication method described in the first aspect may be executed by the terminal device, or by the chip (system) in the terminal device.

[0012] In the communication method provided in the first aspect, a communication device sends a registration request message carrying a first random number to a network device, allowing the network device to use the first random number to generate authentication parameters. Subsequently, the network device sends an authentication request message carrying the authentication parameters to the communication device. In this way, the communication device can verify the network device based on the authentication parameters and the first random number. This avoids asynchrony of authentication parameters between the communication device and the network device, which could cause the communication device to trigger additional synchronization and registration processes, thereby reducing the latency of the communication device accessing the network.

[0013] In one possible implementation, the authentication parameter further includes a third random number. Determining whether to continue the subsequent registration process based on the key, the second random number, the first random number, and the first MAC may be performed by obtaining a second MAC based on the key, the second random number, and the third random number. If the first MAC and the second MAC are identical, and the first random number and the third random number are identical, continuing the subsequent registration process.

[0014] In one possible implementation, determining whether to continue the subsequent registration process based on the key, the second random number, and the first random number may be performed by obtaining a second MAC based on the key, the first random number, and the second random number. If the first MAC and the second MAC are the same, continuing the subsequent registration process.

[0015] In one possible implementation, the authentication parameters also include a third random number. A specific implementation of determining whether to continue the subsequent registration process based on the key, the second random number, the first random number, and the first MAC may include: obtaining a fourth random number based on the key and the third random number. Obtaining a second MAC based on the key, the second random number, and the fourth random number. If the first MAC and the second MAC are identical, and the first random number and the fourth random number are identical, continuing the subsequent registration process. By anonymizing the first random number into a third random number and transmitting the anonymized first random number, the security of the first random number is ensured.

[0016] In one possible implementation, the first random number is a random number generated by a communication device. For each registration request message sent by the communication device, the communication device will randomly generate a first random number, that is, the first random number in each registration request message is randomly generated and different. It should be noted that there is a certain probability of collision between the random numbers generated by the communication device, that is, the random numbers generated by different communication devices may be the same. In order to make the collision probability sufficiently low, a longer random number length can be agreed upon in the standard, such as 128 bits, which is consistent with the length of the random number generated by the network side. It is also possible to consider reusing the format of the existing authentication parameters, with minor changes to the existing format, and the length can be consistent with the existing SQN length of 48 bits.

[0017] In one possible implementation, the key generation method may include: the communication device generating the key based on input parameters. The input parameters include a locally preconfigured root key and an identifier associated with the network device. In a scenario where a communication device is connected to N (N>=1) network devices, the communication device generates keys corresponding to the N network devices based on the input parameters, thereby saving storage space on the communication device.

[0018] In one possible implementation, the input parameter also includes a batch number. A specific implementation of generating the key may include: the communication device generates the key based on the root key, the identifier associated with the network device, and the batch number. The batch number is from the network device and indicates the batch information of the key used by the network device. Updating the key by batch number allows for key updates without replacing the root key, requiring only a single configuration, thereby reducing the cost of pre-configuring the root key on the communication device.

[0019] In a possible implementation, the communication apparatus receives a broadcast message sent by a network device, wherein the broadcast message includes an identifier associated with the network device. The identifier of the network device may be the identifier of the network device.

[0020] In one possible implementation, the specific implementation of continuing the subsequent registration process may be: sending an authentication response message to the network device, the authentication response message including RES*, and the network device authenticating the communication device according to the RES*. The communication device calculates the authentication server function (AUSF) key K based on the key and the third random number. AUSF , the K AUSF is the shared key between the communication device and the AUSF.

[0021] In a second aspect, a communication method is provided for use with a network device. The communication method includes: the network device receiving a registration request message from a communication device. The registration request message includes a first random number. The network device generates a first MAC address based on a key, a second random number, and the first random number. The second random number is generated by the network device. The key is a key shared between the communication device and the network device. The network device sends an authentication request to the communication device, wherein the authentication request includes the second random number and authentication parameters. The authentication parameters include the first MAC address. The network device is a network-side device, which can be a single network element, such as a satellite base station, or a network composed of multiple network elements. When the network device is a network composed of multiple network elements, the communication method described above can be performed by different network elements in the network. For example, the network device may include an access and mobility management function (AMF) network element, an AUSF network element, and a unified data management (UDM) network element. For example, the AMF network element receives a registration request message from a communication device, wherein the registration request message includes the first random number. The AMF then sends an initial authentication request to the AUSF network element, wherein the initial authentication request includes the first random number. The AUSF sends an authentication vector request to the UDM, wherein the authentication vector request message includes the first random number. The UDM generates a first MAC based on a key, a second random number, and the first random number. The second random number is generated by the UDM. The key is a key shared between the communication device and the network device. The UDM sends an authentication vector response to the AUSF, wherein the authentication vector response includes a second random number and authentication parameters, and the authentication parameters include the first MAC. The second random number is a random number generated by the UDM. The AUSF sends an authentication response message to the AMF, wherein the authentication response message includes the second random number and authentication parameters. The AMF sends an authentication request message to the communication device, wherein the authentication request message includes the second random number and authentication parameters.

[0022] Based on the communication method provided in the second aspect, a registration request message sent by a communication device to a network device carries a first random number, allowing the network device to use the first random number to generate authentication parameters, which the network device then sends to the communication device. The communication device can then verify the network device based on the authentication parameters and the first random number. This avoids asynchrony of authentication parameters between the communication device and the network device, which could cause the communication device to trigger additional synchronization and registration processes, thereby reducing the latency for the communication device to access the network.

[0023] In a possible implementation, the network device generates the third random number based on the first random number. The authentication parameter also includes the third random number.

[0024] In one possible implementation, the network device may obtain the third random number by: obtaining the third random number based on the first random number and the key. The first random number may be anonymized into the third random number and then transmitted, thereby ensuring the security of the first random number during transmission.

[0025] In one possible implementation, before the network device sends an authentication request to the communication apparatus, the UDM in the network device sends an authentication vector response message to the AUSF, wherein the authentication vector response message also includes the AUSF key K AUSF , the K AUSF The UDM obtains the K according to the key and the third random number. AUSF .

[0026] In one possible implementation, the network device generates the key based on the root key corresponding to the communication device and the identifier associated with the communication device. The root key is preconfigured in the communication device. The key is a key shared between the network device and the communication device, and the shared key can be used for access authentication of the communication device. In a scenario where a network device is connected to N (N>=1) communication devices, the network device generates keys corresponding to the N communication devices based on the root key, thereby saving storage space on the network device.

[0027] In one possible implementation, the network device generates the key based on the root key, an identifier associated with the communication device, and a batch number. The batch number indicates the batch information of the key used by the communication device. By using the batch number to update the key, the network device can update the key without replacing the root key. This only requires a single configuration, thus reducing the cost of multiple pre-configurations of the root key on the network device.

[0028] In one possible implementation, the network device receives a connection request from a communication device, the connection request including an identifier of the communication device. The network device generates an authentication key for the communication device based on a preconfigured root key and the identifier of the communication device. The network device authenticates the communication device based on the authentication key.

[0029] In one possible implementation, the communication device identifier may be a combination of one or more of a hidden user identifier SUCI, a permanent user identifier SUPI, and a 5G globally unique temporary identifier 5G-GUTI.

[0030] According to a third aspect, a communication system is provided, which is applied to a communication device and a network device. The communication system includes: the communication device, which sends a registration request message to the network device, wherein the registration request message includes a first random number. The communication device receives an authentication request from the network device, wherein the authentication request includes a second random number and an authentication parameter. The authentication parameter includes a first MAC. The network device determines whether to continue the subsequent registration process based on a key, the second random number, and the first random number. The network device is configured to receive the registration request message. The network device generates a first MAC based on the key, the second random number, and the first random number. The authentication request is sent, and the authentication request is used to respond to the registration request message.

[0031] It can be understood that in the present application, the communication device described in the third aspect and the following aspects can be a terminal device (such as UE, gateway, mobile phone, etc.), or a chip (system) that can be set in the terminal device. That is to say, the communication method described in the third aspect can be executed by the terminal device, or by the chip (system) in the terminal device. The network device described in the third aspect and the following aspects can also be a network composed of one or more network elements, and the multiple network elements can include network elements such as UDM, AUSF and AMF, and the network device can be a satellite base station.

[0032] In the communication method provided in the third aspect, a communication device sends a registration request message carrying a first random number to a network device, allowing the network device to use the first random number to generate authentication parameters. Subsequently, the network device sends an authentication request message carrying the authentication parameters to the communication device. In this way, the communication device can verify the network device based on the authentication parameters and the first random number. This avoids asynchronous authentication parameters between the communication device and the network device, which could cause the communication device to trigger additional synchronization and registration processes, thereby reducing the latency of the communication device accessing the network.

[0033] In a possible implementation manner, the related description of determining whether to continue the subsequent registration process refers to the content of the first aspect above and will not be repeated here.

[0034] In a possible implementation, the network device generates authentication parameters, as described in the second aspect above, and will not be repeated here.

[0035] In a fourth aspect, a communication method is provided, applied to a network device, the method comprising: the network device receiving a connection request from a communication device, the connection request including an identifier of the communication device. The network device generates an authentication key for the communication device based on a preconfigured root key and the identifier of the communication device. The network device authenticates the communication device based on the authentication key. The communication device preconfigures an authentication key group for the network device, wherein the authentication key group includes the authentication key and a corresponding network identifier, and the communication device determines the authentication key corresponding to the network device based on the network identifier.

[0036] In the communication method provided in the fourth aspect, the network device generates an authentication key for the communication device based on a preconfigured root key and the identification of the communication device, and the communication device preconfigures the authentication key corresponding to the network device, thereby enabling the network device and the communication device to use the same authentication key for authentication. Therefore, the network device only needs to store one root key, which helps save storage space on the network device.

[0037] In a fifth aspect, a communication method is provided, which is applied to a communication device, the method comprising: the communication device receiving a broadcast message from a network device, the broadcast message including an identifier of the network device. The communication device generates an authentication key for the network device based on a preconfigured root key and the identifier of the network device. The communication device authenticates the network device based on the authentication key. The network device preconfigures an authentication key group for the communication device, wherein the authentication key group includes the authentication key and a corresponding communication device identifier, and the network device determines the authentication key corresponding to the communication device based on the network identifier.

[0038] In the communication method provided in the fifth aspect, the communication device generates an authentication key corresponding to the network device based on a preconfigured root key and the identifier of the network device, and the network device preconfigures the authentication key corresponding to the communication device, thereby enabling the network device and the communication device to use the same authentication key for authentication. Therefore, the communication device only needs to store one root key, which helps save storage space of the communication device.

[0039] In one possible implementation, before the communication device authenticates the network device based on the authentication key, the method further includes: sending a connection request to the network device, the connection request including an identifier of the communication device, and the identifier of the communication device is used by the network device to obtain the authentication key.

[0040] In a sixth aspect, a communication device is provided. The communication device includes: a module for executing any of the communication methods described above, such as a transceiver module and a processing module. The transceiver module is configured to execute corresponding message sending and receiving actions, and the processing module can be configured to execute all actions except sending and receiving messages.

[0041] Optionally, the communication device described in the sixth aspect may further include a storage module, wherein the storage module stores a program or instruction. When the processing module executes the program or instruction, the communication device can execute any communication method executed by the terminal device described above.

[0042] In a seventh aspect, a network device is provided. The network device includes a module for executing any of the communication methods described above, such as a transceiver module and a processing module. The transceiver module is configured to execute corresponding message sending and receiving actions, and the processing module can be configured to execute all actions except sending and receiving messages.

[0043] Optionally, the network device described in the seventh aspect may further include a storage module, wherein the storage module stores a program or instruction. When the processing module executes the program or instruction, the communication device can execute any communication method executed by the network device described above.

[0044] In an eighth aspect, a communication device is provided, comprising: a processor configured to execute instructions stored in a memory, so that the communication device performs any communication method described above by the terminal device.

[0045] In a possible design solution, the communication device may further include the memory. The memory may be integrated with the processor or provided separately.

[0046] In a ninth aspect, a network device is provided, comprising: a processor configured to execute instructions stored in a memory, so as to enable the communication apparatus to perform any communication method described above.

[0047] In a tenth aspect, a computer-readable storage medium is provided, comprising: a computer program or instructions; when the computer program or instructions are run on a computer, the computer is caused to execute the communication method described in any one of the possible implementation methods mentioned above.

[0048] In an eleventh aspect, a computer program product is provided, comprising a computer program or instructions, which, when executed on a computer, enables the computer to execute the communication method described in any one of the possible implementations described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] FIG1 is a flow chart of a communication method provided in an embodiment of the present application;

[0050] FIG2 is a schematic diagram of a 1:N connection scenario provided in an embodiment of the present application;

[0051] FIG3 is a flow chart of another communication method provided in an embodiment of the present application;

[0052] FIG4 is a schematic diagram of another 1:N connection scenario provided in an embodiment of the present application;

[0053] FIG5 is a flow chart of another communication method provided in an embodiment of the present application;

[0054] FIG6 is a schematic structural diagram of a device provided in an embodiment of the present application;

[0055] FIG7 is a schematic structural diagram of another device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] In order to better understand the technical solutions provided by the embodiments of the present application, the technical terms involved in the embodiments of the present application are first introduced.

[0057] 1. A communication device (UE) may be a terminal with transceiver functions, or a chip or chip system that can be set in the terminal. The terminal may also be called user equipment, terminal equipment, access terminal, subscriber unit, user station, vehicle-mounted terminal, industrial control terminal, UE unit, UE station, mobile station (MS), mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent or user device. UE is a device with wireless transceiver functions. UE can be fixed or mobile and can be deployed on land, including indoors or outdoors, handheld, wearable or vehicle-mounted; it can also be deployed on water (such as ships, etc.); it can also be deployed in the air (such as airplanes, balloons and satellites, etc.). UE can be a gateway, a mobile phone, a tablet computer, a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a vehicle-mounted terminal device, a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, a vehicle-mounted terminal, a roadside unit (RSU) with terminal function, etc. The terminal of the present application can also be an on-board module, an on-board module, an on-board component, an on-board chip or an on-board unit built into a vehicle as one or more components or units.

[0058] 2. The network device is a device on the network side, which can be a single network element, such as a satellite base station, or a network composed of multiple network elements. When the network device is a network composed of multiple network elements, the above-mentioned communication method can be performed by different network elements in the network. For example, the network device may include: AMF network element (abbreviated as mobility management network element), AUSF network element, UDM network element (abbreviated as data management network element), etc.

[0059] It should be noted that only some examples of network elements in satellite base stations are given here. The satellite base station may also include a session management function (SMF) network element (referred to as a session management network element), a network exposure function (NEF) network element, a network function storage function (NRF) network element, a policy control function (PCF) network element (referred to as a policy control network element), an application function (AF) network element or a service communication proxy (SCP) network element, a unified data repository (UDR) network element, a network slice selection function (NSSF) network element, a charging function (CHF) network element, etc. The embodiment of the present application does not make specific limitations on this.

[0060] The following is an exemplary description of the functions of the network elements involved in the above-mentioned satellite base station in 5G NTN.

[0061] 1) Mobility management network element, which is mainly responsible for signaling processing, such as access control, mobility management, attachment and detachment, and gateway selection. When the mobility management network element provides services for the terminal session, it will provide control plane storage resources for the session to store the session identifier, the SMF network element identifier associated with the session identifier, etc. In the 5G communication system, the mobility management network element can be an AMF network element. In future communication systems, the mobility management network element can still be an AMF network element, or a mobility management network element, and can also have other names, which are not limited in this application.

[0062] 2) Security Anchor Function (SEAF). SEAF can be deployed within the AMF or independently. Its main functions are key derivation and authentication. The authentication process, for example, calls the AUSF authentication service, is responsible for service network authentication in the 5G AKA authentication process, or is a security anchor function element. It can also have other names, which are not limited in this application.

[0063] 3) Authentication server function network element, which mainly provides authentication functions and supports authentication of 3rd Generation Partnership Project (3GPP) access and Non-3GPP access. For details, please refer to 3GPP TS 33.501. In the 5G communication system, the authentication server function network element can be an authentication server function (AUSF) network element. In future communication systems, the authentication server function network element can still be an AUSF network element, or the authentication server function network element can have other names, which is not limited in the embodiments of the present application.

[0064] 4) Data management network element, which is used to process user identification, access authentication, registration, or mobility management. In a 5G communication system, the network element or entity corresponding to the data management network element may be a unified data management (UDM) network element in the 5G network architecture, where Nudm is a service-based interface provided by the UDM network element. The UDM network element can communicate with other network functions through Nudm. In future communication systems, the data management network element may still be a UDM network element, or the data management network element may have other names, which is not limited in the embodiments of the present application.

[0065] 5) Authentication Credential Repository and Processing Function (ARPF), ARPF can be deployed within the UDM or independently. Its main function is to store and process user data. The authentication credential storage and processing function network element may have other names, which are not limited in this embodiment of the present application.

[0066] It should be noted that in the following embodiments, AMF network elements are referred to as AMF, AUSF network elements are referred to as AUSF, UDM network elements are referred to as UDM, and communication devices UE are described as gateway stations, which will not be repeated later.

[0067] 3. 5G AKA authentication process between UE and network: During the 5G AKA authentication process, the SQN is used to prevent replay, i.e., to prevent attackers from replaying the network-side Authentication Request message to deceive the UE. Specifically, the Universal Subscriber Identity Module (USIM) on the UE side and the UDM on the network side synchronously maintain the same SQN. The SQN is 48 bits long and consists of a sequence number SEQ and an index value IND, i.e., SQN = SEQ||IND. The length of IND is 5 bits, and the value of SEQ starts at 0 and increases sequentially.

[0068] The USIM on the terminal side stores the last successfully received serial number SQN MS , the SQN MS By SEQ MS And index value, namely SQN MS =SEQ MS ||IND MS IND MS is the index value, the actual continuously increasing part is SEQ MS When the UE receives the SQN from the network, it first parses out the IND and SEQ parts, and then finds the SEQ corresponding to the same IND stored locally through the IND. MS , then SEQ and SEQ MS For comparison:

[0069] 1. If SEQ>SEQ MS , the terminal determines that the SQN on the network side is fresh, and then refreshes the local SQN on the terminal side MS For SQN.

[0070] 2. If SEQ≤SEQ MS , the terminal determines that it is out of sync with the network (or is replayed by an attacker), and then the UE triggers the SQN synchronization process to transfer the local SQN of the terminal to the MS After the network verification is passed, the network updates the SQN on the UDM side to SQN MS At this point, the SQN between the UE and the network is synchronized again, and then the UE initiates the registration process again, thus completing the 5G AKA authentication process between the UE and the network.

[0071] Therefore, the 5G AKA authentication process between the UE and the network requires SQN synchronization between the UE and the base station. In existing network scenarios, the UDM generally does not lose power and stores SQN status information. Therefore, under normal circumstances, the UE and the network will not experience desynchronization. However, in 5G NTN scenarios, the satellite base station may fly out of the service area of ​​the gateway station while orbiting the earth. To save power, the satellite base station will be powered off. At this time, the SQN status on the network side and the NAS context of the UE will be lost, resulting in SQN desynchronization between the satellite base station and the gateway station. At this time, the gateway station needs to re-perform the synchronization and re-registration processes mentioned above, resulting in signaling waste. In addition, the link between the gateway station and the satellite base station is very long, resulting in a long delay when the gateway station connects to the satellite base station.

[0072] In one possible implementation, the embodiment of the present application proposes the following technical solution, which uses a first random number instead of SQN to avoid the problem of SQN synchronization failure between the gateway and the satellite base station, thereby reducing the delay in accessing the network. The following briefly introduces the solution of the embodiment of the present application. In the embodiment of the present application, the communication device carries the first random number when initiating a registration request to the network device. The network device generates an authentication parameter based on the first random number from the communication device side, and the network device sends an authentication request message to the communication device and carries the authentication parameter. In this way, when the communication device receives the authentication parameter from the network device, it can restore the first random number based on the authentication parameter. The communication device determines whether it is a replay message and whether to continue the subsequent registration process by comparing the restored random number to see whether it is the first random number carried in the registration request sent by itself.

[0073] The following describes in detail the implementation of the embodiments of the present application in conjunction with the accompanying drawings.

[0074] The communication method provided in the embodiment of the present application can be used in any communication system, which can be a third generation partnership project (3GPP) communication system, for example, a non-terrestrial network (NTN) system, or an LTE communication system, and can also be a 5G mobile communication system, an NR communication system, a new air interface vehicle network (vehicle to everything, NR V2X) system, and can also be applied to a system of LTE and 5G hybrid networking, a device-to-device (D2D) communication system, a machine-to-machine (M2M) communication system, an Internet of Things (IoT), and other next-generation communication systems, such as future communication systems such as 6G, and can also be a non-3GPP communication system, without limitation. It should be noted that the scheme in the embodiment of the present application can also be applied to other communication systems, and the corresponding names can also be replaced by the names of corresponding functions in other communication systems.

[0075] This application will present various aspects, embodiments, or features in the context of systems that may include multiple devices, components, modules, etc. It should be understood and appreciated that each system may include additional devices, components, modules, etc., and / or may not include all of the devices, components, modules, etc. discussed in conjunction with the figures. Furthermore, combinations of these aspects may also be used.

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

[0077] The network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field will know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0078] (1) FIG1 is a flow chart of a communication method provided in an embodiment of the present application. Specifically, the flow chart includes the following steps:

[0079] In step 101, a communication device sends a registration request message to a network device. The registration request message carries a first random number (URAND). In response, the network device receives the registration request message from the communication device.

[0080] The communication device here can be a gateway station, and the network equipment can be a satellite base station. The network equipment may include multiple network elements, for example, one or more of AMF / SEAF, AUSF, and UDM / ARPF. SEAF can be deployed within the AMF or independently; ARPF can be deployed within the UDM or independently. For ease of expression, AMF will be used instead of AMF / SEAF, and UDM will be used instead of UDM / ARPF to describe the relevant solutions in this application.

[0081] The URAND is a random number generated by the communication device. The length of the URAND can be the same as the random number generated by the network, which is 128 bits, or the same as the length of the SQN, which is 48 bits. This embodiment does not limit the length or unit of the URAND. The communication device randomly generates the URAND for each registration request message sent by the communication device, so the URAND carried in each registration request message varies randomly.

[0082] In step 102, the AMF / SEAF sends an initial authentication request (Nausf_UEAuthentication_Authenticate Request) message to the AUSF, where the URAND is carried in the initial authentication request message. Accordingly, the AUSF receives the initial authentication request message from the AMF / SEAF.

[0083] Optionally, the initial authentication request message also includes a serving network name (SNN).

[0084] In step 103, the AUSF sends a Nudm_Authenticate_Get Request message to the UDM, wherein the Nudm_Authenticate_Get Request message carries the URAND. Accordingly, the UDM receives the Nudm_Authenticate_Get Request message from the AUSF.

[0085] Optionally, before the AUSF sends the AV request to the UDM, the AUSF first performs an authorization check on the SEAF to determine whether the SEAF is authorized to use the serving network based on the SNN in the initial authentication request. If the SEAF is authorized to use the serving network, the authorization check passes and the AUSF sends the AV request to the UDM. Otherwise, the AUSF sends a "Serving Network Not Authorized" message to the UDM.

[0086] Step 104: UDM generates an authentication vector. The authentication vector includes a second random number, an authentication parameter AUTN, and an AUSF key K. AUSF and one or more of the desired responses XRES*.

[0087] The second random number is a random number generated by the UDM, and the length of the second random number is 128 bits.

[0088] The AUTN can be generated based on one or more of a key, URAND, AMF, a first message authentication code (MAC), and a second random number. Exemplarily, AUTN = URAND||AMF||MAC. The value of the first MAC can be calculated based on one or more of the key, URAND, the second random number, and AMF. Exemplarily, the first MAC = F1k(URAND||second random number||AMF). F1 is a message authentication function, k is the key, and the key is a shared key between the gateway and the satellite base station.

[0089] Optionally, when generating AUTN, the URAND may be anonymized with an anonymity key (AK). For example, the AUTN after the URAND is anonymized with AK can be calculated by AUTN = (URAND⊕AK)||AMF||MAC, where AK = F5k (second random number). F5 is a key generation function.

[0090] Optionally, AUTN may not directly carry the value of URAND. For example, AUTN=AMF||MAC.

[0091] UDM generates K based on the key and the URAND AUSF , for example, can be obtained by K AUSF =KDF(CK||IK,0x6a||SNN||len(SNN)||URAND⊕AK||Len) is calculated, the K AUSFUsed to derive keys for the next level, which can be SEAF, AMF, gNB (UE), etc. ⊕ represents a bitwise exclusive OR operation, and || represents a concatenation operation.

[0092] The UDM generates the XRES* according to the key and the second random number.

[0093] In step 105, the UDM sends an authentication vector response message to the AUSF, wherein the authentication vector is carried in the authentication vector response message. Accordingly, the AUSF receives the authentication vector response message from the UDM.

[0094] In step 106, the AUSF sends an authentication response message to the AMF, where the authentication response message includes the second random number and the AUTN. Accordingly, the AMF receives the authentication response message from the AUSF.

[0095] Optionally, before AUSF sends the authentication response message to AMF, AUSF AUSF Generate K SEAF .

[0096] Optionally, the authentication response message also includes the XRES*.

[0097] In step 107, the AMF sends an authentication request message to the communication device. The authentication request message includes the second random number, the AUTN. Accordingly, the communication device receives the authentication request message from the AMF.

[0098] wherein the AUTN includes the first MAC;

[0099] Optionally, AUTN may further include a third random number, wherein the third random number may be URAND or URAND after AK anonymization.

[0100] Optionally, before the AMF sends the authentication request message to the communication device, the AMF stores the XRES*.

[0101] In step 108, the communication device verifies the network side device and determines whether to continue the subsequent registration process based on the verification result. Specifically, step 108 is divided into 108a and 108b, as shown below:

[0102] In step 108a, the communication device verifies the first MAC in the AUTN in the authentication request message. Specifically, the communication device calculates the second MAC and determines whether the first MAC and the second MAC are the same. Optionally, the communication device verifies whether the first random number and the third random number are the same. Specifically, the USIM on the communication device side can perform the verification. In the embodiment of the present application, the communication device can perform the verification in any of the following ways:

[0103] 1) The communication device uses the locally stored URAND to calculate the second MAC, and only determines whether the first MAC and the second MAC are the same: the communication device obtains the second MAC based on the key, the URAND and the second random number. Exemplarily, the second MAC = F1k(URAND||second random number||AMF). Among them, URAND is the first random number generated locally by the communication device, that is, the URAND carried by the registration request message in step 101. The second random number is the random number carried in the authentication request message received by the communication device, and AMF and the first MAC are the parameters in AUTN carried in the received authentication request message. When the communication device determines that the first MAC and the second MAC are the same, the anti-replay check passes and step 109 is performed; otherwise, the anti-replay check fails, and the communication device returns a synchronization failure (Synchronisation Failure) to AMF.

[0104] 2) The communication device calculates the second MAC using the third random number in the AUTN, first determining whether the first MAC and the second MAC are the same, and then determining whether the first random number and the third random number are the same: the communication device obtains the second MAC based on the key, the second random number, and the third random number. Exemplarily, the second MAC = F1k(third random number || second random number || AMF). The second random number is the random number in the authentication request message received by the communication device, and the third random number, AMF, and the first MAC are the parameters in the AUTN carried in the received authentication request message. When the communication device determines that the calculated second MAC is the same as the first MAC in the received AUTN, the anti-replay check passes and step 108b is performed; otherwise, the anti-replay check fails, and the communication device returns a synchronization failure to the AMF.

[0105] 3) The communication device calculates a second MAC using the third random number in the AUTN, first determining whether the first MAC and the second MAC are identical, and then determining whether the first random number is identical to the fourth random number. Unlike step 2, the third random number here is the URAND anonymized by the AK, and the fourth random URAND is obtained using the key and the third random number. A second MAC is obtained based on the key, the second random number, and the fourth random number. Exemplarily, second MAC = F1k(fourth random number || second random number || AMF). If the communication device determines that the calculated second MAC is identical to the received first MAC in the AUTN, the anti-replay check passes, and the process proceeds to step 108b. Otherwise, the anti-replay check fails, and the communication device returns a synchronization failure to the AMF / SEAF.

[0106] Step 108b (optional): For verification methods 2 or 3 above, after the communication device verifies the value of the network-side MAC, the communication device further verifies the value of the third random number or the fourth random number in the first MAC. Specifically, the verification can be performed by the USIM on the communication device side. The USIM uses the key and the first MAC to restore the random number and compares the restored random number with the URAND carried in the registration request message in step 101. If the restored random number and the URAND are the same, the anti-replay check passes and the process proceeds to step 109. Otherwise, the anti-replay check fails and the communication device returns a synchronization failure to the AMF.

[0107] The restored random number may be the third random number in verification method 2 or the fourth random number in verification method 3.

[0108] In step 109, the communication device continues the subsequent registration process, and the subsequent registration process includes the communication device sending an authentication response message to the AMF.

[0109] The authentication response message carries the user response RES*, and the communication device obtains the RES* based on the key and the third random number. Exemplarily, it can be calculated by RES*=KDF(CK||IK,0x6B||SNN||len(SNN)||second random number||len(second random number)||RES||len(RES)), and the value of RES* can be taken as the lower 128 bits of the KDF output, where RES=f2k(second random number), and the RES* is used by the network side device to authenticate the communication device. Specifically, the SEAF on the AMF side calculates XRES* based on the RES*, and then compares it with the value of XRES* stored by the AMF in step 107. If the values ​​of XRES* are the same, the authentication is passed. Otherwise, the authentication fails, and the AMF replies to the AUSF with an authentication failure (Authentication Failure).

[0110] The communication device calculates K based on the key and the third random number AUSF , exemplary, K AUSF =KDF(CK||IK,0x6a||SNN||len(SNN)||URAND⊕AK||Len), the K AUSF A shared key between the communication device and the AUSF in the network equipment.

[0111] KDF is a key derivation algorithm in the 3GPP standard, used to derive different keys. Detailed descriptions of KDF, F1, F2, and F5 can be found in TS 33.102.

[0112] Based on the communication method provided in the embodiment of the present application, a communication device generates a random number instead of SQN for anti-replay verification, which not only achieves the anti-replay effect, but also does not require the communication device and network equipment to maintain the SQN status. Therefore, there will be no SQN desynchronization problem, and no synchronization process is required, thereby reducing the delay of the communication device accessing the network.

[0113] A possible example is that the communication device is a gateway station and the network device is a satellite base station. During the authentication process between the gateway station and the satellite base station, the key in the above embodiment is required. The key is the authentication key Kr between the gateway station and the satellite base station. The authentication key is a key shared between the gateway station and the satellite base station. The shared key can be used for access authentication of the communication device. For a 1-to-N (N>=1) connection scenario between a satellite base station and a gateway station, that is, for a certain satellite base station, there are N gateway stations that have the opportunity to access the satellite base station, then the satellite base station needs to store the keys corresponding to these N gateway stations separately. Due to the limited storage resources of the satellite base station, if the satellite base station stores the keys corresponding to the N gateway stations independently, it will cause the storage space of the satellite base station to be consumed too much. Therefore, in order to save the storage space of the satellite base station, an embodiment of the present application provides a root key distribution method. In this method, the satellite base station only needs to store one root key, and the satellite base station can derive Kr corresponding to the N gateway stations based on the root key.

[0114] (2) FIG2 is a schematic diagram of a satellite base station provided by an embodiment of the present application being connected to N gateway stations during flight. Here, N=5 is taken as an example. As shown in FIG2, during the flight of satellite base station #1 around the earth, it is assumed that the satellite base station is connected to gateway station #1 at time t0, and the authentication key between satellite base station #1 and gateway station #1 is Kr1. Satellite base station #1 is connected to gateway station #2 at time t1, and the authentication key between satellite base station #1 and gateway station #2 is Kr2. Similarly, satellite base station #1 needs to connect to gateway stations #1, #2, #3, #4, and #5 at different times t0, t1, t2, t3, and t4, respectively, and the corresponding authentication keys are Kr1, Kr2, Kr3, Kr4, and Kr5, respectively. At this time, when the satellite base station is connected to these five gateway stations, the satellite base station needs to store the authentication keys Kr1, Kr2, Kr3, Kr4, and Kr5 corresponding to each gateway station.

[0115] (3) FIG3 is a flow chart of a communication method for connecting a satellite base station and N (N>=1) gateway stations according to an embodiment of the present application. Specifically, the flow includes the following steps:

[0116] Step 301: The satellite base station side deploys the root key Ks, and the gateway side deploys Kr.

[0117] Specifically, the Ks may be preset in a satellite service function chain (SFC) unit, wherein the Kr is the corresponding authentication key between the gateway and the satellite base station.

[0118] Optionally, when a gateway station also needs to connect to multiple satellite base stations, the gateway station side deploys a Kr group, where the Kr group is the authentication key Kr group corresponding to the gateway station and multiple satellite base stations. Different Krs in the Kr group and the corresponding satellite base station IDs can be stored in association. The associated storage can be understood as the subsequent gateway station can determine the Kr corresponding to the satellite base station through the satellite base station ID.

[0119] The Ks is a root key pre-configured on the satellite base station. For example, before the satellite base station is launched into space, the root key and the associated ID of the corresponding gateway are stored in the satellite base station, possibly in a subscriber identity module (SIM).

[0120] In step 302, the gateway sends a first request message to the satellite base station. The first request message carries the gateway association ID. In response, the satellite base station receives the first request message from the gateway. The first request message is used by the gateway to request a connection with the satellite base station. Exemplarily, the first request message may be a connection request message or a registration request message. The gateway association ID is used to identify different gateways. Exemplarily, the gateway association ID may be one or more of SUCI, SUPI, and 5G-GUTI.

[0121] Optionally, the first request message may also carry the batch number of the key, and the batch number is used to indicate the batch information of the key used by the satellite base station. For example, the batch number of the first batch of keys is 1 or 0. When the key is subsequently updated, the batch number is +1 each time it is updated.

[0122] Step 303: The satellite base station generates Kr according to Ks and the ID associated with the gateway.

[0123] Exemplarily, the ID associated with the gateway station can be the gateway station ID; it can also be an identifier generated using the gateway station ID, for example, a new identifier is generated using part or all of the gateway station ID; it can also be a custom identifier associated with the gateway station, for example, different gateway stations are numbered starting from 1 or 0 and +1 each time.

[0124] Exemplarily, Kr can be generated using the following method: Kr = KDF (Ks, gateway association ID), where Ks is the root key deployed at the satellite base station in step 301, and the Kr generated by the satellite base station based on the gateway association ID is the same as the Kr corresponding to the satellite base station stored on the gateway.

[0125] Optionally, considering a key update scenario, when the first request message carries the batch number of the key, the satellite generates Kr based on the gateway station association ID and the batch number. Exemplarily, Kr=KDF(Ks, batch number||gateway station association ID).

[0126] In step 304, the satellite and the gateway may complete authentication using a pre-shared key (PSK) authentication method, wherein the authentication key used in the authentication process is the Kr.

[0127] Based on the communication method provided in the embodiments of the present application, when a satellite base station needs to connect to N (N>=1) gateway stations, only one root key needs to be stored on the satellite base station, and a unique authentication key for connecting to each gateway station is derived based on the root key, thereby saving storage space of the satellite base station.

[0128] (4) FIG4 is a schematic diagram of a connection between a gateway station and N (N>=1) flying satellite base stations provided by an embodiment of the present application. Unlike FIG2, this is for a certain gateway station, which will access N (N>=1) different satellites. Similarly, the gateway station needs to store the authentication key corresponding to each satellite base station. The authentication key is a key shared between the gateway station and the satellite base station. The shared key can be used for access authentication of the communication device. Here, N=5 is taken as an example. As shown in FIG4, during the process of #1, #2, #3, #4, and #5 satellite base stations flying around the earth, it is assumed that the #1 satellite base station is connected to the #1 gateway station at time t0, and the authentication key between the #1 satellite base station and the #1 gateway station is Kr1. Similarly, the #2 satellite base station is connected to the #1 gateway station at time t1, and the authentication key between the #2 satellite base station and the #1 gateway station is Kr2. Similarly, satellite base stations #1, #2, #3, #4, and #5 need to connect to gateway #1 at different times t0, t1, t2, t3, and t4, respectively. The corresponding authentication keys are Kr1, Kr2, Kr3, Kr4, and Kr5, respectively. Therefore, when a gateway connects to multiple satellite base stations, it needs to store the authentication key corresponding to each satellite base station. In this case, when the gateway connects to these five satellite base stations, it needs to store the authentication keys Kr1, Kr2, Kr3, Kr4, and Kr5 for each satellite base station.

[0129] Similarly, since the storage resources of the gateway station are limited, if the gateway station independently stores the keys corresponding to N (N>=1) satellite base stations, it will cause the storage space of the gateway station to be consumed too much. Therefore, in order to save the storage space of the gateway station, an embodiment of the present application provides a root key distribution method. In this method, the gateway station only needs to store one root key, and the gateway station can derive Kr corresponding to N (N>=1) satellite base stations based on the root key.

[0130] (5) FIG. 5 is a flow chart of a communication method for connecting a gateway station and N (N>=1) satellites according to an embodiment of the present application. Specifically, the flow includes the following steps:

[0131] Step 501: The satellite base station side deploys the Kr group, and the gateway side deploys the root key Ks.

[0132] The Kr group is the authentication key Kr group corresponding to the satellite base station and N gateway stations. Different Krs in the Kr group and the corresponding gateway station IDs can be stored in association. The associated storage can be understood as that the subsequent satellite base station can determine the Kr corresponding to the gateway station through the gateway station ID.

[0133] The Kr group can be pre-set in the satellite SFC unit. The Ks is a root key pre-configured locally at the gateway. Exemplarily, Ks and the associated ID of the corresponding satellite base station are stored at the gateway, possibly in a subscriber identity module (SIM).

[0134] In step 502, the satellite base station sends a broadcast message that carries the ID associated with the network device. In response, the gateway receives the broadcast message from the satellite base station. For example, the ID associated with the network device can be the ID of the network device, such as a base station ID.

[0135] Optionally, the broadcast message carries a batch number, which may be the batch number of the key, and the batch number is used to indicate the batch information of the key used. For example, the batch number of the first batch of keys is 1 or 0. When the key is subsequently updated, the batch number is increased by 1 each time it is updated.

[0136] Step 503: The gateway generates Kr according to Ks and the ID associated with the network device.

[0137] The ID associated with the network device may be a network device ID, where the network device may be a satellite base station. For example, the ID associated with the satellite base station may be a satellite base station ID; it may also be an identifier generated using the satellite base station ID, for example, a new identifier generated using part or all of the satellite base station ID; or it may be a custom identifier associated with the satellite base station, for example, different satellite base stations are numbered starting with a specific number, such as starting at 1 and incrementing by 1 each time.

[0138] Exemplarily, Kr can be generated using the following method: Kr = KDF (Ks, satellite base station association ID), where Ks is the root key deployed by the gateway in step 501, and the Kr generated by the gateway based on the satellite base station association ID is the same as the Kr corresponding to the gateway stored on the satellite base station.

[0139] Optionally, considering a key update scenario, when the broadcast message carries the batch number of the key, the gateway generates Kr based on the satellite base station association ID and the batch number. Exemplarily, Kr = KDF(Ks, batch number || satellite base station association ID).

[0140] In step 504, the gateway sends a first request message to the satellite base station. The first request message carries the gateway's ID. In response, the satellite base station receives the first request message from the gateway. Exemplarily, the first request message can be a connection request message or a registration request message.

[0141] Step 505: The satellite base station determines the Kr corresponding to the gateway station according to the gateway station association ID and the Kr group.

[0142] In step 506, the satellite base station and the gateway may complete authentication using a PSK authentication method, wherein the authentication key used in the authentication process is the Kr.

[0143] Based on the same inventive concept as the method embodiment, the embodiment of the present application also provides a device 600 and 700 for executing the method executed by the communication device or network device in the method embodiment shown in Figures 1 to 5 above. The relevant features can be found in the above method embodiment and will not be repeated here.

[0144] As an example, as shown in Figure 6, the apparatus 600 includes a processing module 601 and a transceiver module 602. The processing module 601 can be used to perform all actions except sending and receiving information, and the transceiver module 602 is used to perform corresponding message sending and receiving actions. The specific functions of the processing module 601 and the transceiver module 602 can be found in the description of the above-mentioned method embodiment and will not be repeated here.

[0145] For example, FIG7 is a second structural diagram of a communication device provided in an embodiment of the present application. The communication device may be a communication device or a network device. As shown in FIG7 , the communication device 700 may include a processor 701. Optionally, the communication device 700 may further include a memory 702 and / or a transceiver 703. The processor 701 is coupled to the memory 702 and the transceiver 703, for example, via a communication bus.

[0146] The following is a detailed introduction to the various components of the communication device 700 with reference to FIG7 :

[0147] The processor 701 is the control center of the communication device 700 and can be a single processor or a collective term for multiple processing elements. For example, the processor 701 can be one or more central processing units (CPUs), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application, such as one or more digital signal processors (DSPs) or one or more field programmable gate arrays (FPGAs).

[0148] Optionally, the processor 701 may execute various functions of the communication device 700 by running or executing a software program stored in the memory 702 and calling data stored in the memory 702 .

[0149] In a specific implementation, as an embodiment, the processor 701 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG. 7 .

[0150] In a specific implementation, as an embodiment, the communication device 700 may also include multiple processors, such as the processor 701 and the processor 704 shown in FIG7 . Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0151] Among them, the memory 702 is used to store the software program for executing the solution of this application, and the execution is controlled by the processor 701. The specific implementation method can refer to the above method embodiment and will not be repeated here.

[0152] Alternatively, the memory 702 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including a compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 702 may be integrated with the processor 701 or exist independently and be coupled to the processor 701 via an interface circuit (not shown in FIG. 7 ) of the communication device 700. This embodiment of the present application does not specifically limit this.

[0153] Transceiver 703 is used for communication with other communication devices. For example, if communication device 700 is a terminal device, transceiver 703 can be used to communicate with a network device or another terminal device. For another example, if communication device 700 is a network device, transceiver 703 can be used to communicate with a terminal device or another network device.

[0154] Optionally, the transceiver 703 may include a receiver and a transmitter (not shown separately in FIG7 ), wherein the receiver is used to implement a receiving function, and the transmitter is used to implement a sending function.

[0155] Optionally, the transceiver 703 may be integrated with the processor 701 or exist independently and be coupled to the processor 701 through an interface circuit (not shown in FIG. 7 ) of the communication device 700 . This embodiment of the present application does not specifically limit this.

[0156] It should be noted that the structure of the communication device 700 shown in FIG7 does not constitute a limitation on the communication device. An actual communication device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0157] In addition, the technical effects of the communication device 700 can refer to the technical effects of the communication method described in the above method embodiment, and will not be repeated here.

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

[0159] It should also be understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0160] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (such as infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state drive.

[0161] It should be understood that the term "and / or" as used herein simply describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A alone, A and B together, or B alone. A and B can be singular or plural. Furthermore, the character " / " as used herein generally indicates an "or" relationship between the associated objects, but it may also indicate an "and / or" relationship. For specific understanding, please refer to the context.

[0162] In this application, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or plural.

[0163] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0164] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

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

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

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

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

[0169] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

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

Claims

1. A communication method, characterized in that: The method comprises: The communication device sends a registration request message to the network device, wherein the registration request message includes a first random number; The communication device receives an authentication request from the network device, wherein the authentication request includes a second random number and an authentication parameter; the authentication parameter includes a first MAC; The communication device determines whether to continue the subsequent registration process based on the key, the second random number, the first random number and the first MAC; the key is a key shared between the communication device and the network device.

2. The method according to claim 1, characterized in that The authentication parameter also includes a third random number; and determining whether to continue a subsequent registration process based on the key, the second random number, the first random number, and the first MAC includes: Obtain a second MAC according to the key, the second random number and the third random number; When the first MAC is the same as the second MAC, and the first random number is the same as the third random number, the subsequent registration process continues.

3. The method according to claim 2, characterized in that The method further comprises: Determine whether the first MAC and the second MAC are the same, and whether the first random number and the third random number are the same.

4. The method according to claim 1, characterized in that The determining whether to continue a subsequent registration process according to the key, the second random number, the first random number, and the first MAC includes: Obtain a second MAC according to the key, the first random number, and the second random number; When the first MAC and the second MAC are the same, continue the subsequent registration process.

5. The method according to claim 4, characterized in that The method further comprises: Determine whether the first MAC and the second MAC are the same.

6. The method according to claim 1, characterized in that The authentication parameter also includes a third random number; and determining whether to continue a subsequent registration process based on the key, the second random number, the first random number, and the first MAC includes: Obtaining a fourth random number according to the key and the third random number; Obtain a second MAC according to the key, the second random number and the fourth random number; When the first MAC is the same as the second MAC, and the first random number is the same as the fourth random number, the subsequent registration process continues.

7. The method according to claim 6, characterized in that The method further comprises: Determine whether the first MAC and the second MAC are the same, and whether the first random number and the fourth random number are the same.

8. The method according to any one of claims 1 to 7, characterized in that: The first random number is a random number generated by the communication device.

9. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: The key is generated according to input parameters, wherein the input parameters include a root key pre-configured locally and an identifier associated with the network device.

10. The method according to claim 9, characterized in that The input parameter further includes a batch number; wherein the batch number comes from the network device and is used to indicate batch information of a key used by the network device.

11. The method according to claim 9 or 10, characterized in that: The method further comprises: A broadcast message sent by the network device is received, wherein the broadcast message includes an identifier associated with the network device.

12. The method according to any one of claims 1 to 11, characterized in that: The identifier associated with the network device is the identifier of the network device.

13. A communication method, characterized in that: The method comprises: Receiving a registration request message from a communication device; wherein the registration request message includes a first random number; Generate a first MAC according to a key, a second random number and the first random number; the key is a key shared between the communication device and the network device; An authentication request is sent to the communication device, wherein the authentication request includes the second random number and an authentication parameter; wherein the authentication parameter includes the first MAC.

14. The method according to claim 13, characterized in that The method further comprises: The third random number is generated according to the first random number; wherein the authentication parameter also includes the third random number.

15. The method according to claim 14, characterized in that The generating the third random number according to the first random number further includes: The third random number is generated according to the first random number and the key.

16. The method according to any one of claims 13 to 15, characterized in that: The method further comprises: The key is generated according to input parameters; wherein the input parameters include a root key pre-configured locally and an identifier associated with the communication device.

17. The method according to claim 16, characterized in that The input parameter further includes a batch number; wherein the batch number comes from the network device and is used to indicate batch information of a key used by the network device.

18. A communication method, characterized in that: include: receiving a connection request from a communication device, the connection request including an identification of the communication device; generating an authentication key for the communication device according to a preconfigured root key and an identification of the communication device; The communication device is authenticated based on the authentication key.

19. A communication method, characterized in that: include: receiving a broadcast message from a network device, wherein the broadcast message includes an identification of the network device; Generate an authentication key for the network device according to a preconfigured root key and an identification of the network device; The network device is authenticated based on the authentication key.

20. The method according to claim 19, characterized in that Before authenticating the network device based on the authentication key, the method further includes: A connection request is sent to the network device, wherein the connection request includes an identifier of a communication device, and the identifier of the communication device is used by the network device to obtain the authentication key.

21. A communication device, characterized in that: Comprises a module for executing the communication method as described in any one of claims 1-12, or 19-20.

22. A network device, characterized in that: The invention comprises a module for implementing the communication method as claimed in any one of claims 13 to 17 or 18.

23. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a computer program or an instruction. When the computer program or the instruction is executed on a computer, the computer is caused to execute the communication method according to any one of claims 1 to 20.

Citation Information

Patent Citations

  • Communication method and device

    CN103152733A

  • Network verification method, device and system

    CN111669276A

  • 5G-AKA authentication method, unified data management network element and user equipment

    CN111770496A

  • Authentication method and device for terminal equipment

    CN114025352A

  • User equipment authentication preventing sequence number leakage

    US20220038896A1

Cited By

  • Communication method and apparatus, storage medium, program product, chip, and system

    WO2026227761A1