Communication method and communication device

By using random numbers instead of SQN in the 5G non-terrestrial communication network, the problem of prolonged synchronization and registration processes caused by the power outage of the satellite base station is solved, and the delay of user equipment access to the network is reduced.

CN118540697APending Publication Date: 2024-08-23HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310186568.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-21
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In the 5G non-terrestrial communication network scenario, the satellite base station is powered off after flying out of the service area, resulting in the loss of SQN status, resulting in a prolonged connection time between the gateway station and the satellite base station, and additional synchronization and registration processes causing signaling waste and affecting user equipment access. The delay in entering the network.

Method used

By carrying the first random number when the communication device sends the registration request message to the network device, the network device generates authentication parameters, avoids desynchronization of the authentication parameters, directly determines whether to continue the registration process, and reduces the delay for user equipment to access the network.

Benefits of technology

It effectively avoids additional synchronization and registration processes, reduces signaling waste, reduces the delay for user equipment to access the network, and improves communication efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540697A
    Figure CN118540697A
Patent Text Reader

Abstract

The embodiment of the invention provides a communication method and a communication device. The communication method and the communication device are used for reducing time delay when user equipment accesses a network. The method comprises the following steps: user equipment generates a first random number and sends the first random number to network equipment, the network equipment generates an authentication parameter based on the first random number, and the network equipment sends an authentication request message to the user equipment and carries the authentication parameter. Therefore, after the user equipment receives the authentication parameter from the network equipment, the network equipment can be verified according to the authentication parameter and the first random number, and if the verification is passed, the subsequent registration process is continued.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] 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

[0002] 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 the security of communications. The 5G AKA mechanism requires the sequence number (SQN) status of the UE side and the network side to be synchronized. If the SQN is out of sync, the UE needs to perform SQN synchronization and re-registration process.

[0003] In the 5G non-terrestrial network (NTN) scenario, the gateway connects to the satellite base station for communication. At this time, the gateway is functionally equivalent to the UE, the satellite base station is equivalent to the network, and the authentication-related network-side logical network elements are implemented by the satellite base station. For communication security, the gateway also needs to use access authentication to register with the satellite base station, so the 5G AKA mechanism can also be used in the 5G NTN scenario to protect communication security. According to the prior art, the satellite base station will fly out of the service area during its flight around the earth, and 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. When the satellite base station flies into the service area, the gateway needs to connect to the satellite base station. Additional SQN synchronization and re-registration process, resulting in signaling waste, and because the link between the gateway and the satellite base station is very long, the additional synchronization and registration process will cause the gateway to register with the satellite base station. Longer delay.

[0004] 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. Summary of the invention

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

[0006] In order to achieve the above objectives, this application adopts the following technical solutions:

[0007] In a first aspect, a communication method is provided, which is applied to a communication device, and the method comprises: the communication device sends a registration request message to a network device, and 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.

[0008] It can be understood that in the present application, the communication device described in the first aspect and the following aspects can be a terminal device (such as UE, a gateway, a mobile phone, etc.), or a chip (system) that can be set in the terminal device. In other words, the communication method described in the first aspect can be executed by the terminal device, or by the chip (system) in the terminal device.

[0009] In the communication method provided in the first aspect, a registration request message carrying a first random number is sent to a network device by a communication device, so that the network device can use the first random number to generate an authentication parameter. Subsequently, the authentication request message sent by the network device to the communication device carries the authentication parameter, so that the communication device can verify the network device according to the authentication parameter and the first random number. This avoids the asynchronization of the authentication parameters between the communication device and the network device, causing the communication device to trigger additional synchronization and registration processes, thereby reducing the delay of the communication device accessing the network.

[0010] In a possible implementation, the authentication parameter further includes a third random number. The 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 be: obtaining a second MAC based on the key, the second random number, and the third random number. If the first MAC is the same as the second MAC, and the first random number is the same as the third random number, continue the subsequent registration process.

[0011] In a possible implementation, the specific implementation of determining whether to continue the subsequent registration process according to the key, the second random number and the first random number may be: obtaining the second MAC according to 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.

[0012] In a possible implementation, the authentication parameter also includes a third random number. The 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 be: 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. In the case where the first MAC is the same as the second MAC and the first random number is the same as the fourth random number, 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.

[0013] 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 possibility low enough, a longer random number bit 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 existing authentication parameter format with minor changes to the existing format, which can be consistent with the existing SQN length of 48 bits.

[0014] In a possible implementation, the specific implementation of generating the key may be: the communication device generates the key according to input parameters. The input parameters include a root key preconfigured locally 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 according to the input parameters, thereby saving storage space of the communication device.

[0015] In a possible implementation, the input parameter also includes a batch number, and a specific implementation method of generating the key may be: the communication device generates the key according to the root key, the identifier associated with the network device, and the batch number. The batch number comes from the network device and is used to indicate the batch information of the key used by the network device. By updating the key by batch number, the key can be updated without changing the root key, and only needs to be configured once, thereby reducing the cost of pre-configuring the root key in the communication device.

[0016] In a possible implementation, the communication device 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.

[0017] In a 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 an authentication server function (AUSF) key K according to the key and the third random number. AUSF , the K AUSF A shared key between the communication device and the AUSF.

[0018] In a second aspect, a communication method is provided, which is applied to a network device, and the communication method includes: the network device receives a registration request message from a communication device. The registration request message includes a first random number. The network device generates a first MAC according to 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 an authentication parameter. The authentication parameter includes the first MAC. 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 communication method 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, and then the AMF 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 an authentication parameter, and the authentication parameter includes 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 a second random number and an authentication parameter. The AMF sends an authentication request message to the communication device, wherein the authentication request message includes the second random number and the authentication parameter.

[0019] Based on the communication method provided in the second aspect, the registration request message sent by the communication device to the network device carries a first random number, so that the network device can use the first random number to generate an authentication parameter, and then the network device sends the authentication parameter to the communication device. Thus, the communication device can verify the network device according to the authentication parameter and the first random number. This avoids the asynchronization of the authentication parameters between the communication device and the network device, causing the communication device to trigger additional synchronization and registration processes, thereby reducing the delay of the communication device accessing the network.

[0020] In a possible implementation, the network device generates the third random number according to the first random number. The authentication parameter also includes the third random number.

[0021] In a possible implementation, the network device may obtain the third random number in the following specific implementation: the network device obtains the third random number according to the first random number and the key, and anonymizes the first random number into a third random number and transmits the anonymized first random number, thereby ensuring the security of the first random number during transmission.

[0022] In a possible implementation, before the network device sends an authentication request to the communication device, the UDM in the network device sends an authentication vector response message to the AUSF, and 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 .

[0023] In a possible implementation, the network device generates the key according to 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 N communication devices according to the root key, which helps save storage space of the network device.

[0024] In a possible implementation, the network device generates the key according to the root key, the identifier associated with the communication device, and the batch number. The batch number is used to indicate the batch information of the key used by the communication device. By using the batch number to update the key, the key update on the network device side can be performed without changing the root key, and only needs to be configured once, thereby reducing the cost of multiple pre-configuration of the root key on the network device.

[0025] In a 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 according to a preconfigured root key and the identifier of the communication device. The network device authenticates the communication device based on the authentication key.

[0026] In a 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.

[0027] In a third aspect, a communication system is provided, which is applied to a communication device and a network device, and the communication system includes: the communication device sends a registration request message to the network device, wherein the registration request message includes a first random number. Receive 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. Determine whether to continue the subsequent registration process based on a key, the second random number, and the first random number. The network device is used to receive the registration request message. Generate a first MAC based on the key, the second random number, and the first random number. Send the authentication request, and the authentication request is used to respond to the registration request message.

[0028] 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, a gateway, a 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.

[0029] In the communication method provided in the third aspect, a registration request message carrying a first random number is sent to a network device by a communication device, so that the network device can use the first random number to generate an authentication parameter. Subsequently, the authentication request message sent by the network device to the communication device carries the authentication parameter, so that the communication device can verify the network device according to the authentication parameter and the first random number. This avoids the asynchronization of the authentication parameters between the communication device and the network device, causing the communication device to trigger additional synchronization and registration processes, thereby reducing the delay of the communication device accessing the network.

[0030] 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, which will not be repeated here.

[0031] In a possible implementation manner, the related description of the network device generating the authentication parameters refers to the content of the second aspect above, which will not be repeated here.

[0032] In a fourth aspect, a communication method is provided, which is applied to a network device, the method comprising: the network device receives a connection request from a communication device, the connection request includes 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.

[0033] In the communication method provided in the fourth aspect, the network device generates an authentication key for the communication device according to a preconfigured root key and the identification of the communication device, and the communication device preconfigures the authentication key corresponding to the network device, so that the network device and the communication device use the same authentication key for authentication. Therefore, the network device only needs to save one root key, which is conducive to saving storage space of the network device.

[0034] In a fifth aspect, a communication method is provided, which is applied to a communication device, and the method comprises: the communication device receives a broadcast message from a network device, and the broadcast message includes an identification of the network device. The communication device generates an authentication key for the network device based on a preconfigured root key and the identification 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 the corresponding communication device identification, and the network device determines the authentication key corresponding to the communication device based on the network identification.

[0035] In the communication method provided in the fifth aspect, the communication device generates an authentication key corresponding to the network device according to a preconfigured root key and the identifier of the network device, and the network device preconfigures the authentication key corresponding to the communication device, so that the network device and the communication device use the same authentication key for authentication. Therefore, the communication device only needs to save one root key, which is conducive to saving the storage space of the communication device.

[0036] 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.

[0037] In a sixth aspect, a communication device is provided. The communication device includes: a module for executing any communication method executed by the communication device described above, such as a transceiver module and a processing module. The transceiver module is used to execute corresponding message sending and receiving actions, and the processing module can be used to execute all actions except sending and receiving information.

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

[0039] In a seventh aspect, a network device is provided. The functions of the network device include: a module for executing any communication method executed by the network device described above, such as a transceiver module and a processing module. The transceiver module is used to execute corresponding message sending and receiving actions, and the processing module can be used to execute all actions except sending and receiving information.

[0040] 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.

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

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

[0043] In a ninth aspect, a network device is provided, comprising: a processor, the processor being configured to execute instructions stored in a memory, so that the communication device performs any communication method performed by the network device described above.

[0044] In a tenth aspect, a computer-readable storage medium is provided, comprising: a computer program or instructions; when the computer program or instructions are executed on a computer, the computer executes the communication method described in any one of the possible implementations above.

[0045] 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

[0046] Figure 1 A flow chart of a communication method provided in an embodiment of the present application;

[0047] Figure 2 A schematic diagram of a 1:N connection scenario provided in an embodiment of the present application;

[0048] Figure 3 A flowchart of another communication method provided in an embodiment of the present application;

[0049] Figure 4 A schematic diagram of another 1:N connection scenario provided in an embodiment of the present application;

[0050] Figure 5 A flowchart of another communication method provided in an embodiment of the present application;

[0051] Figure 6 A schematic diagram of the structure of a device provided in an embodiment of the present application;

[0052] Figure 7 A schematic diagram of the structure of another device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] 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.

[0054] 1. A communication device (UE) can be a terminal with transceiver functions, or a chip or chip system that can be set in the terminal. The terminal can also be called user equipment, terminal equipment, access terminal, subscriber unit (subscriberunit), user station, vehicle-mounted terminal, industrial control terminal, UE unit, UE station, mobile station (mobilestation, 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 the 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 smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, a vehicle-mounted terminal, a roadside unit (RSU) with terminal function, etc. The terminal of the present application can also be a vehicle-mounted module, a vehicle-mounted module, a vehicle-mounted component, a vehicle-mounted chip or a vehicle-mounted unit built into a vehicle as one or more components or units.

[0055] 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 communication method can be executed by different network elements in the network. For example, the network device can include: AMF network element (abbreviated as mobile management network element), AUSF network element, UDM network element (abbreviated as data management network element), etc.

[0056] It should be noted that only some examples of network elements in satellite base stations are given here by way of example. The satellite base station may also include a session management function (SMF) network element (referred to as 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 policy control network element), an application function (AF) network element or a service communication proxy (SCP) network element, a unified data storage (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.

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

[0058] 1) Mobile management network element, which is mainly responsible for the signaling processing part, such as access control, mobility management, attachment and detachment, and gateway selection. When the mobile 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 mobile management network element can be an AMF network element. In future communication systems, the mobile management network element can still be an AMF network element, or a mobile management network element, and can also have other names, which are not limited in this application.

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

[0060] 3) Authentication server function network element, mainly provides authentication function, supports authentication of 3rd generation partnership project (3GPP) access and Non-3GPP access, for details, please refer to 3GPP TS33.501. In the 5G communication system, the authentication server function network element can be an authentication server function (AUSF) network element. In the future communication system, the authentication server function network element can still be an AUSF network element, or the authentication server function network element has other names, which is not limited in the embodiments of the present application.

[0061] 4) Data management network element, which is used to process user identification, access authentication, registration, or mobility management. In the 5G communication system, the network element or entity corresponding to the data management network element can 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, and the UDM network element can communicate with other network functions through Nudm. In future communication systems, the data management network element can still be a UDM network element, or the data management network element has other names, which is not limited in the embodiments of the present application.

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

[0063] 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 the communication devices UE are described as gateways, which will not be repeated later.

[0064] 3. 5G AKA authentication process between UE and network: SQN is used to prevent replay during the 5G AKA authentication process, that is, 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 length of the SQN is 48 bits, and the SQN consists of a sequence number SEQ and an index value IND, that is, SQN = SEQ||IND. Among them, the length of IND is 5 bits, and the value of SEQ starts from 0 and increases sequentially.

[0065] The USIM on the terminal side stores the last successfully received sequence number SQN MS , the SQN MS By SEQ MS And index value, namely SQN MS =SEQ MS ||IND MS , among which, IND MS is the index value, and 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:

[0066] 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.

[0067] 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.

[0068] Therefore, the 5G AKA authentication process between the UE and the network requires the UE side and the base station side to maintain SQN synchronization. In the existing network scenario, the UDM generally does not lose power, and the UDM will save the SQN status information. Therefore, under normal circumstances, the UE and the network will not lose synchronization. For the 5G NTN scenario, the satellite base station will fly out of the service area of ​​the gateway station while flying around the earth. In order 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 the SQN loss of synchronization between the satellite base station and the gateway station. At this time, the gateway station needs to re-perform the above synchronization process and re-registration process, 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 in the gateway station connecting to the satellite base station.

[0069] In a possible implementation, the embodiment of the present application proposes the following technical solution, using 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, when the communication device initiates a registration request to the network device, it carries the first random number. 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 if it is the first random number carried in the registration request sent by itself.

[0070] The implementation of the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.

[0071] 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 6G and other future communication systems, 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.

[0072] The present application will present various aspects, embodiments or features around a system 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. In addition, combinations of these schemes may also be used.

[0073] In addition, in the embodiments of the present application, words such as "exemplary" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present concepts in a concrete way.

[0074] 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. A person of ordinary skill in the art can appreciate that with the evolution of the 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.

[0075] (1) Figure 1 A flow chart of a communication method provided in an embodiment of the present application, specifically, the flow includes the following steps:

[0076] Step 101: The communication device sends a registration request message to a network device. The registration request message carries a first random number (URAND). Correspondingly, the network device receives the registration request message from the communication device.

[0077] The communication device here can be a gateway station, and the network equipment can be a satellite base station. Among them, the network equipment may include multiple network elements, for example, one or more of AMF / SEAF, AUSF and UDM / ARPF. Among them, SEAF can be deployed in AMF or independently; ARPF can be deployed in UDM or independently. For the sake of convenience in subsequent expression, AMF replaces AMF / SEAF in this application, and UDM replaces UDM / ARPF to describe the relevant solutions.

[0078] The URAND is a random number generated by the communication device side. The length of the URAND may be consistent with the length of the random number generated by the network side, which is 128 bits; or may be consistent with the length of the SQN, which is 48 bits. This embodiment does not limit the generation length and generation unit of the URAND. For each registration request message sent by the communication device, the communication device will randomly generate the URAND, so the URAND carried in each registration request message changes randomly.

[0079] Step 102, AMF / SEAF sends an initial authentication request (Nausf_UEAuthentication_AuthenticateRequest) message to AUSF, wherein the initial authentication request message carries the URAND. Correspondingly, AUSF receives the initial authentication request message from AMF / SEAF.

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

[0081] Step 103, AUSF sends an authentication vector request (Nudm_Authenticate_Get Request) message to UDM, wherein the authentication vector request message carries the URAND. Correspondingly, UDM receives the authentication vector request message from AUSF.

[0082] Optionally, before AUSF sends an authentication vector request to UDM, the AUSF first performs an authorization check on SEAF to determine whether SEAF is authorized to use the serving network based on the SNN in the initial authentication request. If SEAF authorizes the serving network, the authorization check passes and AUSF sends an authentication vector request to UDM; otherwise, AUSF sends a serving network not authorized message to UDM.

[0083] 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*.

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

[0085] The AUTN can be generated according to 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 according to one or more of a key, URAND, a 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.

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

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

[0088] UDM generates K according to the key and URAND AUSF , for example, can be achieved by It is calculated that the K AUSF Used to derive keys for the next level, which may be SEAF, AMF, gNB (UE), etc. represents a bitwise exclusive OR operation, and || represents a concatenation operation.

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

[0090] Step 105: UDM sends an authentication vector response message to AUSF, wherein the authentication vector response message carries the authentication vector. Correspondingly, AUSF receives the authentication vector response message from UDM.

[0091] Step 106: AUSF sends an authentication response message to AMF, wherein the authentication response message includes the second random number and the AUTN. Correspondingly, AMF receives the authentication response message from AUSF.

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

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

[0094] Step 107: AMF sends an authentication request message to the communication device, wherein the authentication request message includes the second random number, the AUTN. Correspondingly, the communication device receives the authentication request message from AMF.

[0095] wherein the AUTN includes the first MAC;

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

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

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

[0099] 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 is the same as the third random number. 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:

[0100] 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.

[0101] 2) The communication device calculates the second MAC using the third random number in AUTN, first determines whether the first MAC and the second MAC are the same, and then determines whether the first random number and the third random number are the same: the communication device obtains the second MAC according to the key, the second random number and the third random number. Exemplarily, the second MAC

[0102] =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 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 synchronization failure to AMF.

[0103] 3) The communication device uses the third random number in AUTN to calculate the second MAC, first determine whether the first MAC and the second MAC are the same, and then determine whether the first random number is the same as the fourth random number: the difference from 2 is that the third random number here is the URAND after AK anonymization, and the fourth random URAND is obtained by the key and the third random number. According to the key, the second random number and the fourth random number, the second MAC is obtained; illustratively, the second MAC = F1k (fourth random number || second random number || AMF). When the communication device determines that the calculated second MAC is the same as the received first MAC in 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 AMF / SEAF.

[0104] Step 108b (optional), for the above verification method 2 or 3, after the communication device verifies the value of the MAC on the network side, the communication device further verifies the value of the third random number or the fourth random number in the first MAC. Specifically, the USIM on the communication device side can perform the verification, and 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 have the same value, the anti-replay check passes, and step 109 is performed; otherwise, the anti-replay check fails, and the communication device returns a synchronization failure to the AMF.

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

[0106] Step 109: The communication device continues a subsequent registration process, and the subsequent registration process includes the communication device sending an authentication response message to the AMF.

[0107] The authentication response message carries a 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 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).

[0108] The communication device calculates K according to the key and the third random number AUSF , exemplary, The K AUSF A shared key between the communication device and the AUSF in the network equipment.

[0109] Wherein, KDF is a key derivation algorithm of the 3GPP standard, which is used to derive different keys. For a detailed introduction of the KDF, the F1, the F2 and the F5, please refer to TS 33.102.

[0110] 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 can achieve the anti-replay effect, but also does not require the communication device and network equipment to maintain the state of SQN. Therefore, there will be no problem of SQN desynchronization, and no synchronization process is required, thereby reducing the delay of the communication device accessing the network.

[0111] A possible example is that the communication device is a gateway station and the network device is a satellite base station. In the authentication process between the gateway station and the satellite base station, the key in the above embodiment is needed. 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 the 1-to-N (N>=1) connection scenario between the satellite base station and the 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 consume too much. Therefore, in order to save the storage space of the satellite base station, the embodiment of the present application provides a root key distribution method, in which 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 respectively according to the root key.

[0112] (2) Figure 2 A schematic diagram of a satellite base station connected to N gateways during flight provided in an embodiment of the present application, where N=5 is taken as an example. Figure 2 As shown, 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 be connected 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, respectively.

[0113] (3) Figure 3 A flow chart of a communication method when a satellite base station and N (N>=1) gateway stations are connected is provided in an embodiment of the present application. Specifically, the flow includes the following steps:

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

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

[0116] Optionally, when a gateway station also needs to connect to multiple satellite base stations, the gateway station side deploys a Kr group, wherein the Kr group is the authentication key Kr group corresponding to the gateway station and the multiple satellite base stations, and the different Krs in the Kr group and the corresponding satellite base station IDs can be stored in association, and 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.

[0117] The Ks is a root key pre-configured on the satellite base station. Exemplarily, 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, one possibility being to store them in a subscriber identity module (SIM).

[0118] Step 302: The gateway sends a first request message to the satellite base station, wherein the first request message carries the gateway association ID. Accordingly, the satellite base station receives the first request message from the gateway, wherein 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.

[0119] Optionally, the first request message may also carry a 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.

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

[0121] Exemplarily, the ID associated with the gateway may be the gateway ID; it may also be an identifier generated using the gateway ID, for example, a new identifier is generated using part or all of the gateway ID; it may also be a custom identifier associated with the gateway, for example, different gateways are numbered starting from 1 or 0 and increasing by 1 each time.

[0122] Exemplarily, the following method can be used to generate Kr, 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 according to the gateway association ID is the same as the Kr corresponding to the satellite base station stored on the gateway.

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

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

[0125] Based on the communication method provided in the embodiment 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 that is connected to each gateway station is derived based on the root key, thereby saving the storage space of the satellite base station.

[0126] (4) Figure 4 A schematic diagram of a connection between a gateway station and N (N>=1) flying satellite base stations provided in an embodiment of the present application. Figure 2 The difference is that here it 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. Figure 4 As shown, during the flight of satellite base stations #1, #2, #3, #4, and #5 around the earth, it is assumed that satellite base station #1 is connected to gateway station #1 at time t0, and the authentication key between satellite base station #1 and gateway station #1 is Kr1. Similarly, satellite base station #2 is connected to gateway station #1 at time t1, and the authentication key between satellite base station #2 and gateway station #1 is Kr2. Similarly, satellite base stations #1, #2, #3, #4, and #5 need to be connected to gateway station #1 at different times t0, t1, t2, t3, and t4, respectively, and the corresponding authentication keys are Kr1, Kr2, Kr3, Kr4, and Kr5, respectively. Therefore, when the gateway is connected to multiple satellite base stations, the gateway needs to store the authentication key corresponding to each satellite base station. At this time, when the gateway is connected to these five satellite base stations, the gateway needs to store the authentication keys Kr1, Kr2, Kr3, Kr4, and Kr5 corresponding to each satellite base station, respectively.

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

[0128] (5) Figure 5 A flow chart of a communication method when a gateway station is connected to N (N>=1) satellites provided in an embodiment of the present application. Specifically, the flow includes the following steps:

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

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

[0131] The Kr group may be preset in the satellite SFC unit. The Ks is a root key preconfigured locally in the gateway. Exemplarily, Ks and the associated ID of the corresponding satellite base station are stored in the gateway, and one possibility is to store them in a subscriber identity module (SIM).

[0132] Step 502: The satellite base station sends a broadcast message, and the broadcast message carries an ID associated with the network device. Correspondingly, the gateway receives the broadcast message from the satellite base station. Exemplarily, the ID associated with the network device may be the ID of the network device, such as a base station ID.

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

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

[0135] The ID associated with the network device may be a network device ID, where the network device may refer to a satellite base station. Exemplarily, the ID associated with the satellite base station may be a satellite base station ID; or an identifier generated using the satellite base station ID, for example, a new identifier is generated using part or all of the satellite base station ID; or a custom identifier associated with the satellite base station, for example, different satellite base stations are numbered starting from a specific number, such as starting from 1 and increasing by 1 each time.

[0136] Exemplarily, the following method can be used to generate Kr, 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 according to the satellite base station association ID is the same as the Kr corresponding to the gateway stored on the satellite base station.

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

[0138] Step 504: The gateway sends a first request message to the satellite base station, wherein the first request message carries the ID of the gateway. Accordingly, the satellite base station receives the first request message from the gateway. Exemplarily, the first request message may be a connection request message or a registration request message.

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

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

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

[0142] As an example, Figure 6 As shown, the device 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. For the specific functions of the processing module 601 and the transceiver module 602, please refer to the records in the above method embodiment, which will not be repeated here.

[0143] For example, Figure 7 A schematic diagram of the structure of the communication device provided in the embodiment of the present application Figure 2 The communication device may be a communication device or a network device. Figure 7 As shown, 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 with the memory 702 and the transceiver 703, such as being connected via a communication bus.

[0144] Combine the following Figure 7 The components of the communication device 700 are described in detail:

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

[0146] Optionally, the processor 701 may perform 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 .

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

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

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

[0150] Optionally, the memory 702 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, an optical disc storage (including a compressed optical disc, a laser disc, an optical disc, a digital versatile disc, a 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 the 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 may exist independently and be communicated to the processor 701 through the interface circuit ( Figure 7 (not shown) is coupled to the processor 701, which is not specifically limited in the embodiment of the present application.

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

[0152] Optionally, the transceiver 703 may include a receiver and a transmitter ( Figure 7 The receiver is used to implement a receiving function, and the transmitter is used to implement a sending function.

[0153] Optionally, the transceiver 703 may be integrated with the processor 701, or may exist independently and communicate with the processor 701 through the interface circuit ( Figure 7 (not shown) is coupled to the processor 701, which is not specifically limited in the embodiment of the present application.

[0154] It should be noted that Figure 7 The structure of the communication device 700 shown in the figure does not constitute a limitation on the communication device, and the actual communication device may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.

[0155] 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.

[0156] 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. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0157] 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 synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0158] 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 programs 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 site, computer, server or data center to another website site, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that 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 hard disk.

[0159] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.

[0160] In this application, "at least one" means one or more, and "more than one" 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 be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0161] 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.

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

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

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

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

[0166] 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.

[0167] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in 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.

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

Claims

1. A communication method, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is characterized in that The identifier associated with the network device is the identifier of the network device.

13. A communication method, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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

Cited By

  • Communication method and apparatus, and device and storage medium

    WO2026073511A1

  • Authentication method and apparatus, and device

    WO2026077428A1