Communication method and apparatus

By selecting the appropriate auxiliary node in the communication system, ensuring the consistency of the security algorithm key length between the primary node and the secondary node and the terminal device, the problem of insufficient security of the 128-bit algorithm under the threat of quantum computing in the prior art is solved, and data redundant transmission security in dual-connection mode is achieved.

WO2025167843A1PCT designated stage Publication Date: 2025-08-14HUAWEI TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/075515
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-02-08
Filing Date
2025-01-27
Publication Date
2025-08-14

AI Technical Summary

Technical Problem

In communication systems, it is difficult for the prior art to achieve security while supporting 128-bit and 256-bit algorithms at the same time. Especially when facing a quantum computing threat, the security of the 128-bit algorithm is insufficient, resulting in the security of the communication system at risk.

Method used

Through the primary node selects the appropriate auxiliary node according to the security algorithm key length of the primary node and the terminal device, ensures that the security algorithm key length between the primary node and the terminal device and between the secondary node and the terminal device is consistent, and the security assumption of data redundant transmission is met. The node request and response mechanism are used to select the appropriate auxiliary node.

Benefits of technology

In dual-connection mode, the data transmission security between the primary node and the secondary node and the terminal device is achieved consistently, meeting the security requirements of data redundant transmission, and improving the overall security of the communication system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025075515_14082025_PF_FP_ABST
    Figure CN2025075515_14082025_PF_FP_ABST
Patent Text Reader

Abstract

A communication method and apparatus, which are used for realizing the security of a communication system in a scenario where the communication system needs to simultaneously support a 128-bit algorithm and a 256-bit algorithm. The method in the present application comprises: a primary node determining a secondary node on the basis of a key length of a first security algorithm (or a key length of a security algorithm supported by the primary node) and key lengths of security algorithms supported by alternative nodes, wherein the first security algorithm is a security algorithm for protecting data transmitted between the primary node and a terminal device, and the alternative nodes comprise the secondary node; the primary node sending a node request to the secondary node, wherein the node request is used for requesting the addition of the secondary node; furthermore, the secondary node determining a second security algorithm, wherein the second security algorithm is used for protecting data transmitted between the secondary node and the terminal device, for example, the key length of the second security algorithm is equal to the key length of the first security algorithm.
Need to check novelty before this filing date? Find Prior Art

Description

Communication method and 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 the People's Republic of China on February 8, 2024, with application number 202410178204.8 and invention name "A Communication Method and 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 wireless communications, and in particular to a communication method and apparatus. Background Art

[0004] In communication systems, symmetric security algorithms are commonly used to protect data transmitted between terminal devices and the network. These algorithms use a 128-bit key length (collectively, these algorithms are referred to as 128-bit algorithms). However, with the increasing computing power of computers, especially the threat of quantum computers, 128-bit algorithms face the risk of being cracked by quantum computers. Therefore, industry experts recommend upgrading symmetric security algorithms from 128-bit to 256-bit. In other words, using a symmetric security algorithm with a 256-bit key length to protect data.

[0005] When 256-bit algorithms are introduced, the communication system needs to support both 128-bit and 256-bit algorithms. In this scenario, how to ensure the security of the communication system is a technical problem that needs to be solved urgently. Summary of the Invention

[0006] The present application provides a communication method and apparatus for achieving the security of a communication system in a scenario where the communication system needs to support both 128-bit algorithms and 256-bit algorithms.

[0007] In a first aspect, the present application provides a communication method that can be performed by a first communication device, which can serve as a master node of a terminal device in dual connectivity (DC) mode. The first communication device can be a wireless access node or a component (such as a chip) in a wireless access node. For ease of description, the following description uses the master node execution as an example.

[0008] The method includes: a primary node determining a secondary node based on a key length of a security algorithm supported by the primary node and a key length of a security algorithm supported by a candidate node, or the primary node determining a secondary node based on a key length of a first security algorithm and a key length of a security algorithm supported by the candidate node, wherein the first security algorithm is a security algorithm used to protect data transmitted between the primary node and a terminal device. The candidate node includes the secondary node. The primary node sends a node request to the secondary node, wherein the node request is used to request the addition of the secondary node.

[0009] In the above technical solution, when the main node selects a secondary node from the alternative nodes, it considers the key length of the first security algorithm (or the key length of the security algorithm supported by the main node) and the key length of the security algorithm supported by the alternative node, and requests to add the selected secondary node. This can make the selection of the secondary node more reasonable, and facilitates the subsequent secondary nodes to select a suitable security algorithm. Specifically, the selected secondary node can meet the following conditions: the main node and the secondary node can each determine a suitable security algorithm, so that the security strength of the data transmitted between the main node and the terminal device is consistent with the security strength of the data transmitted between the secondary node and the terminal device, so as to meet the requirements of secure communication. For example, the secondary node selected according to the solution of the present application can make the key lengths of the security algorithms selected by the main node and the secondary node the same.

[0010] Furthermore, when the terminal device uses data redundancy transmission (such as ultra reliable and low latency communications (URLLC)) services in dual connection mode, the two redundant protocol data unit (PDU) sessions of the terminal device are used to transmit service data. The data corresponding to the two PDU sessions are protected by the primary node and the secondary node respectively using the selected security algorithms. The key lengths of the two security algorithms are the same, which meets the security assumption of data redundancy transmission.

[0011] In one possible implementation, the key length of the security algorithm supported by the secondary node is not less than the key length of the first security algorithm. Exemplarily, the maximum key length of the security algorithm supported by the secondary node is not less than the key length of the first security algorithm. Alternatively, the key length of the security algorithm supported by the secondary node is not less than the maximum key length of the security algorithm supported by the primary node. Exemplarily, the maximum key length of the security algorithm supported by the secondary node is not less than the maximum key length of the security algorithm supported by the primary node.

[0012] In the above technical solution, the key length of the security algorithm supported by the secondary node is not less than the key length of the first security algorithm or the key length of the security algorithm supported by the primary node, so that the secondary node is able to select an appropriate security algorithm to protect the data transmitted between the secondary node and the terminal device. In other words, it avoids the secondary node being arbitrarily determined by the primary node and unable to select an appropriate security algorithm. For example, if the primary node determines a 256-bit algorithm to protect the data transmitted between the primary node and the terminal device, in this case, if the secondary node does not support the 256-bit algorithm and only supports the 128-bit algorithm, the secondary node cannot select the 256-bit algorithm to meet the security requirements.

[0013] In a possible implementation, the node request includes information about the key length of the first security algorithm. Specifically, the information about the key length of the first security algorithm is used to determine the security algorithm for data transmitted between the secondary node and the terminal device.

[0014] In the above technical solution, the secondary node can obtain information about the key length of the first security algorithm from the node request and select a security algorithm based on this information. The primary and secondary nodes can each select an appropriate security algorithm and, based on their respective selected security algorithms, protect data transmitted between them and the terminal device, thereby achieving security for the communication system. For example, if the security algorithms selected by the primary and secondary nodes each have the same key length, this meets the security assumptions of data redundancy transmission in scenarios where the terminal device uses data redundancy transmission services.

[0015] In a possible implementation, when the key length of the first security algorithm is a preset key length, the node request includes information about the key length of the first security algorithm. The preset key length is, for example, 256 bits.

[0016] In the above technical solution, a triggering condition is provided where the node request includes information about the key length of the first security algorithm, namely, the key length of the first security algorithm is a preset key length. It will be appreciated that when the key length of the first security algorithm is less than the preset key length, it is not necessary to include the key length information of the first security algorithm in the node request, thereby reducing the number of bits occupied during signaling exchanges.

[0017] In a possible implementation, the master node is preconfigured with information about the key length of the security algorithm supported by the candidate node; or the master node obtains information about the key length of the security algorithm supported by the candidate node from the candidate node.

[0018] Among them, the information on the key length of the security algorithm supported by the alternative node can be an identifier of multiple key lengths of multiple security algorithms supported by the alternative node, or an identifier of the maximum key length among multiple key lengths supported by the alternative node, or an indication of whether the alternative node supports a preset key length, and the preset key length can be 256 bits.

[0019] In the above technical solution, a method is provided for the master node to obtain information about the key length of the security algorithm supported by the candidate node, so that the master node can select a secondary node from the candidate node based on the key length of the security algorithm supported by the candidate node.

[0020] In one possible implementation, upon determining that a redundancy condition is met, the primary node determines a secondary node based on the key length of the first security algorithm and the key length of the security algorithm supported by the backup node; or, the primary node determines the secondary node based on the key length of the security algorithm supported by the primary node and the key length of the security algorithm supported by the backup node. The redundancy condition includes one or more of the following conditions 1 to 4: condition 1, the terminal device uses a data redundancy transmission (such as URLLC) service; condition 2, a redundant user plane path is established for the terminal device; condition 3, a redundant PDU session is established for the terminal device; or condition 4, redundant transmission is implemented for the terminal device.

[0021] In the above technical solution, the main node considers the trigger conditions of the key length of the first security algorithm (or the key length of the security algorithm supported by the main node) and the key length of the security algorithm supported by the alternative node when determining the secondary node. That is, the above method is executed when it is determined that the redundancy condition is met to avoid unnecessary actions of the main node.

[0022] In a second aspect, the present application provides a communication method that can be performed by a first communication device, which can serve as a master node of a terminal device in dual connectivity mode. The first communication device can be a wireless access node or a component (such as a chip) in a wireless access node. For ease of description, the following description uses the master node as an example.

[0023] The method includes: a primary node obtaining information about security algorithms supported by a secondary node. The primary node determines a first security algorithm based on the information about the security algorithms supported by the secondary node. The first security algorithm is a security algorithm used to protect data transmitted between the primary node and a terminal device. Exemplarily, the primary node may first select a secondary node from candidate nodes, and then obtain information about the security algorithms supported by the secondary node.

[0024] In the above technical solution, when determining the first security algorithm, the master node considers information about the security algorithms supported by the secondary node. In this way, the master node and the secondary node can each determine an appropriate security algorithm, thereby ensuring that the security strength of data transmitted between the master node and the terminal device is consistent with the security strength of data transmitted between the secondary node and the terminal device, thereby meeting the requirements of secure communication. For example, according to the solution of this application, it is possible to achieve that the key length of the first security algorithm selected by the master node and the security algorithm selected by the secondary node are the same.

[0025] Furthermore, when the terminal device uses the data redundancy transmission service in the dual connection mode, the two redundant PDU sessions of the terminal device are used to transmit the service data. The data corresponding to the two PDU sessions are protected by the primary node and the secondary node respectively using their own selected security algorithms. The key lengths of the two security algorithms are the same, which meets the security assumption of data redundancy transmission.

[0026] In one possible implementation, the information about security algorithms supported by the secondary node includes information about key lengths of the security algorithms supported by the secondary node and / or identifiers of the security algorithms supported by the secondary node. The information about key lengths of the security algorithms supported by the secondary node may specifically include identifiers of multiple key lengths supported by the secondary node, or identifiers of the maximum key length supported by the secondary node, or an indication of whether the secondary node supports a preset key length, where the preset key length is, for example, 256 bits.

[0027] In one possible implementation, the primary node further sends a node request to the secondary node, requesting the addition of the secondary node. Exemplarily, the node request includes information about the key length of the first security algorithm. Specifically, the key length information of the first security algorithm is used to determine the security algorithm for data transmitted between the secondary node and the terminal device. For example, the key length information of the first security algorithm is used by the secondary node to determine the security algorithm for data transmitted between the secondary node and the terminal device.

[0028] In the above technical solution, the secondary node can obtain information about the key length of the first security algorithm from the node request and select a security algorithm based on the information about the key length of the first security algorithm. In this way, the secondary node can select a security algorithm whose key length matches (or is consistent with) the key length of the first security algorithm. Furthermore, when the primary node and the secondary node protect the data transmitted between the terminal device and the secondary node based on their respective selected security algorithms, the security of the communication system is achieved. Furthermore, the key length of the security algorithm selected by the secondary node can be the same as the key length of the first security algorithm. In the scenario where the terminal device uses a data redundancy transmission service, this meets the security assumption of data redundancy transmission.

[0029] In a possible implementation manner, when the key length of the first security algorithm is a preset key length, the node request includes information about the key length of the first security algorithm.

[0030] In the above technical solution, a triggering condition is provided where the node request includes information about the key length of the first security algorithm, namely, the key length of the first security algorithm is a preset key length. It will be appreciated that when the key length of the first security algorithm is less than the preset key length, it is not necessary to include the key length information of the first security algorithm in the node request, thereby reducing the number of bits occupied during signaling exchanges.

[0031] In one possible implementation, when the primary node obtains information about security algorithms supported by the secondary node, the primary node may be pre-configured with information about security algorithms supported by the secondary node; or the primary node may obtain information about security algorithms supported by the secondary node from the secondary node.

[0032] In the above technical solution, a method is provided for the primary node to obtain information about security algorithms supported by the secondary nodes, so that the primary node can determine the first security algorithm based on the information about security algorithms supported by the secondary nodes.

[0033] In one possible implementation, the primary node determines a first security algorithm based on information about security algorithms supported by the secondary node when determining that a redundancy condition is met. The redundancy condition includes one or more of the following conditions 1 to 4: condition 1, the terminal device uses a data redundancy transmission (such as URLLC) service; condition 2, a redundant user plane path is established for the terminal device; condition 3, a redundant PDU session is established for the terminal device; or condition 4, redundant transmission is implemented for the terminal device.

[0034] In the above technical solution, the master node is provided with a trigger condition for considering the information of the security algorithm supported by the secondary node when determining the first security algorithm. That is, the above method is executed when it is determined that the redundancy condition is met to avoid unnecessary actions of the master node.

[0035] In one possible implementation, the security algorithm information includes information about the key length of the security algorithm. When the primary node determines the first security algorithm based on the information about the security algorithms supported by the secondary node, the primary node may specifically determine the first security algorithm based on the information about the key length of the security algorithm supported by the secondary node and the information about the security algorithms supported by the primary node.

[0036] Exemplarily, the primary node determines the maximum key length supported by the secondary node based on information about the key length of the security algorithm supported by the secondary node, and determines the first security algorithm based on information about the maximum key length supported by the secondary node and the security algorithm supported by the primary node.

[0037] The key length of the security algorithm supported by the secondary node includes the key length of the first security algorithm.

[0038] In the above technical solution, when determining the first security algorithm, the primary node considers the key length of the security algorithm supported by the secondary node. This allows each primary and secondary node to determine an appropriate security algorithm, ensuring that the security strength of data transmitted between the primary node and the terminal device matches that of data transmitted between the secondary node and the terminal device, thus meeting the requirements for secure communication. Furthermore, in scenarios where the terminal device uses data redundancy transmission services, the security assumption of data redundancy transmission is met.

[0039] In one possible implementation, the security algorithm information includes a security algorithm identifier. When the primary node determines the first security algorithm based on the security algorithm information supported by the secondary node, the primary node may specifically determine the first security algorithm and the second security algorithm based on the security algorithm identifier supported by the secondary node and the security algorithm information supported by the primary node, where the second security algorithm is a security algorithm used to protect data transmitted between the secondary node and the terminal device. Furthermore, the primary node sends the identifier of the second security algorithm to the secondary node.

[0040] In the above technical solution, the master node not only independently determines the first security algorithm but also selects the second security algorithm for the slave node. This ensures that the security strength of data transmitted between the master node and the terminal device is consistent with the security strength of data transmitted between the slave node and the terminal device. For example, the master node can ensure that the key length of the first security algorithm is the same as the key length of the second security algorithm, thereby ensuring the security of the communication system. In scenarios where terminal devices use data redundancy transmission services, this meets the security assumptions of data redundancy transmission.

[0041] In a third aspect, the present application provides a communication method that can be performed by a first communication device, which can serve as a master node of a terminal device in dual connectivity mode. The first communication device can be a wireless access node or a component (such as a chip) in a wireless access node. For ease of description, the following description uses the master node as an example.

[0042] The method includes: the master node determines a first security algorithm, wherein the first security algorithm is a security algorithm for protecting data transmitted between the master node and the terminal device. The master node sends a node request to the slave node, the node request is used to request the addition of the slave node, and the node request includes information on the key length of the first security algorithm. Exemplarily, the information on the key length of the first security algorithm may have one or more of the following functions: used by the slave node to determine whether the key length of the first security algorithm is supported, used by the slave node to determine the second security algorithm, used by the slave node to determine whether the key length of the second security algorithm matches the key length of the first security algorithm, or used by the slave node to determine what type of node response to send to the master node. The second security algorithm is a security algorithm determined by the slave node to protect data transmitted between the slave node and the terminal device; the node response is used to indicate a failure to add the slave node, or the node response is used to indicate a success in adding the slave node.

[0043] In one possible implementation, the primary node may also receive a node response from the secondary node, where the node response indicates that adding the secondary node failed. Furthermore, the primary node reselects a secondary node and sends a node request to the reselected secondary node. Optionally, the primary node also receives a node response from the reselected secondary node, where the node response indicates that adding the secondary node was successful.

[0044] In the above technical solution, the primary node determines a secondary node that can be successfully added by sending a node request to the secondary node and receiving a node response from the secondary node. The successfully added secondary node can meet the following conditions: the primary node and the secondary node can each determine an appropriate security algorithm, so that the security strength of the data transmitted between the primary node and the terminal device is consistent with the security strength of the data transmitted between the secondary node and the terminal device, thereby meeting the requirements of secure communication. For example, the secondary node added according to the solution of this application can ensure that the key length of the security algorithm selected by the primary node and the secondary node is the same.

[0045] Furthermore, when the terminal device uses the data redundancy transmission service in the dual connection mode, the two redundant PDU sessions of the terminal device are used to transmit the service data. The data corresponding to the two PDU sessions are protected by the primary node and the secondary node respectively using the selected security algorithms. The key lengths of the two security algorithms are the same, which meets the security assumption of data redundant transmission.

[0046] In one possible implementation, the primary node sends a node request including information about the key length of the first security algorithm to the secondary node when determining that a redundancy condition is met. The redundancy condition includes one or more of the following conditions 1 to 4: condition 1, the terminal device uses a data redundancy transmission (such as URLLC) service; condition 2, a redundant user plane path is established for the terminal device; condition 3, a redundant PDU session is established for the terminal device; or condition 4, redundant transmission is implemented for the terminal device.

[0047] In the above technical solution, a trigger condition is provided in which the node request includes information on the key length of the first security algorithm. That is, the above method is executed when it is determined that the redundancy condition is met, thereby avoiding unnecessary actions of the master node.

[0048] In a possible implementation, when the key length of the first security algorithm is a preset key length, the node request includes information about the key length of the first security algorithm. The preset key length is, for example, 256 bits.

[0049] In the above technical solution, a further triggering condition for providing the node request with information about the key length of the first security algorithm is that the key length of the first security algorithm is a preset key length. It will be appreciated that when the key length of the first security algorithm is less than the preset key length, it is not necessary to include the key length information of the first security algorithm in the node request, thereby reducing the number of bits occupied during signaling exchanges.

[0050] In a fourth aspect, the present application provides a communication method that can be performed by a second communication device, which can serve as a secondary node of a terminal device in dual connectivity mode. The second communication device can be a wireless access node or a component (such as a chip) in a wireless access node. For ease of description, the following description uses the secondary node as an example.

[0051] The method includes: a secondary node receiving a node request from a primary node, the node request being used to request adding the secondary node, the node request including information about a key length of a first security algorithm, the first security algorithm being a security algorithm used to protect data transmitted between the primary node and a terminal device. The secondary node determining, based on the information about the key length of the first security algorithm, a second security algorithm, the second security algorithm being a security algorithm used to protect data transmitted between the secondary node and the terminal device.

[0052] In a possible implementation, the key length of the second security algorithm is the same as the key length of the first security algorithm.

[0053] In a fifth aspect, the present application provides a communication method that can be performed by a second communication device, which can serve as a secondary node of a terminal device in dual connectivity mode. The second communication device can be a wireless access node or a component (such as a chip) in a wireless access node. For ease of description, the following description uses the secondary node as an example.

[0054] The method includes: the secondary node receives a node request from the primary node, the node request is used to request adding the secondary node, and the node request includes an identifier of the second security algorithm; and the secondary node transmits data with the terminal device according to the second security algorithm.

[0055] In one possible implementation, before transmitting data with the terminal device based on the second security algorithm, the secondary node may further determine whether the secondary node and / or the terminal device supports the second security algorithm. Exemplarily, the secondary node further obtains the security algorithms supported by the terminal device from the node request, and further determines that the security algorithms supported by the terminal device include the second security algorithm.

[0056] In a possible implementation, the secondary node may further send a node response to the primary node. The node response is used to indicate that the secondary node is successfully added. The node response does not carry an identifier of the second security algorithm.

[0057] In a sixth aspect, the present application provides a communication method that can be performed by a second communication device, which can serve as a secondary node of a terminal device in dual connectivity mode. The second communication device can be a wireless access node or a component (such as a chip) in a wireless access node. For ease of description, the following description uses the secondary node execution as an example.

[0058] The method includes: the secondary node receives a node request, the node request is used to request to add a secondary node, the node request includes information on the key length of a first security algorithm, and the first security algorithm is a security algorithm used to protect data transmitted between the primary node and the terminal device.

[0059] When the secondary node determines that it does not support the key length of the first security algorithm, it sends a node response to the primary node, where the node response is used to indicate that adding the secondary node fails; or

[0060] The secondary node selects the second security algorithm, and when the key length of the first security algorithm is different from the key length of the second security algorithm, sends a node response to the primary node, where the node response is used to indicate that adding the secondary node has failed; or

[0061] The secondary node selects the second security algorithm, and when the key length of the first security algorithm is the same as the key length of the second security algorithm, sends a node response to the primary node, where the node response is used to indicate that the secondary node is successfully added; or,

[0062] The secondary node selects a second security algorithm based on the key length of the first security algorithm and sends a node response to the primary node. The node response is used to indicate that the secondary node is added successfully, wherein the key length of the first security algorithm is the same as the key length of the second security algorithm.

[0063] In the seventh aspect, an embodiment of the present application provides a communication device, which has the function of implementing the first aspect or any possible implementation of the first aspect, or the function of the first communication device in the second aspect or any possible implementation of the second aspect, or the function of the first communication device in the third aspect or any possible implementation of the third aspect, or the function of the second communication device in the fourth aspect or any possible implementation of the fourth aspect, or the function of the second communication device in the fifth aspect or any possible implementation of the fifth aspect, or the function of the second communication device in the sixth aspect or any possible implementation of the sixth aspect.

[0064] The first communication device may serve as a primary node for a terminal device in dual connectivity mode. The first communication device may be a wireless access node or a component (such as a chip) in a wireless access node. The second communication device may serve as a secondary node for a terminal device in dual connectivity mode. The second communication device may be a wireless access node or a component (such as a chip) in a wireless access node.

[0065] The functions of the above-mentioned communication device can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules, units or means corresponding to the above-mentioned functions.

[0066] In a possible implementation, the structure of the device includes a processing module and a transceiver module.

[0067] In which, the processing module is configured to support the device to implement the method of the first communication device in the above-mentioned first aspect or any possible implementation of the first aspect, or the method of the first communication device in the above-mentioned second aspect or any possible implementation of the second aspect, or the method of the first communication device in the above-mentioned third aspect or any possible implementation of the third aspect, or the method of the second communication device in the above-mentioned fourth aspect or any possible implementation of the fourth aspect, or the method of the second communication device in the above-mentioned fifth aspect or any possible implementation of the fifth aspect, or the method of the second communication device in the above-mentioned sixth aspect or any possible implementation of the sixth aspect.

[0068] The transceiver module is used to support communication between the device and other communication devices. For example, if the device is a first communication device, it can send a node request to a second communication device. The communication device may also include a storage module, which is coupled to the processing module and stores the necessary program instructions and data for the device. As an example, the processing module may be a processor, the communication module may be a transceiver, and the storage module may be a memory. The memory may be integrated with the processor or provided separately.

[0069] In another possible implementation, the device structure includes a processor and may also include a memory. The processor is coupled to the memory and is configured to execute computer program instructions stored in the memory to cause the device to implement the method of the first communication device described in the first aspect or any possible implementation of the first aspect, or the method of the first communication device described in the second aspect or any possible implementation of the second aspect, or the method of the first communication device described in the third aspect or any possible implementation of the third aspect, or the method of the second communication device described in the fourth aspect or any possible implementation of the fourth aspect, or the method of the second communication device described in the fifth aspect or any possible implementation of the fifth aspect, or the method of the second communication device described in the sixth aspect or any possible implementation of the sixth aspect. Optionally, the device also includes a communication interface, and the processor is coupled to the communication interface. When the device is a wireless access node, the communication interface may be a transceiver or an input / output interface; when the device is a chip included in the wireless access node, the communication interface may be the chip's input / output interface. Optionally, the transceiver may be a transceiver circuit, and the input / output interface may be an input / output circuit.

[0070] In an eighth aspect, an embodiment of the present application provides a chip system, including:

[0071] A processor and a memory, the processor is coupled to the memory, the memory is used to store programs or instructions, and when the programs or instructions are executed by the processor, the chip system implements the method of the first communication device in the above-mentioned first aspect or any possible implementation of the first aspect, or, the method of the first communication device in the above-mentioned second aspect or any possible implementation of the second aspect, or, the method of the first communication device in the above-mentioned third aspect or any possible implementation of the third aspect, or, the method of the second communication device in the above-mentioned fourth aspect or any possible implementation of the fourth aspect, or, the method of the second communication device in the above-mentioned fifth aspect or any possible implementation of the fifth aspect, or, the method of the second communication device in the above-mentioned sixth aspect or any possible implementation of the sixth aspect.

[0072] Optionally, the chip system further includes an interface circuit for transmitting interactive code instructions to the processor.

[0073] Optionally, there may be one or more processors in the chip system, and the processor may be implemented in hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.

[0074] Optionally, the memory in the chip system may be one or more. The memory may be integrated with the processor or provided separately from the processor. Exemplarily, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or provided on different chips.

[0075] In the ninth aspect, the present application provides a computer-readable storage medium, which stores a computer program or instruction. When the computer program or instruction is executed by a communication device, the communication device implements the method of the first communication device in the above-mentioned first aspect or any possible implementation of the first aspect, or the method of the first communication device in the above-mentioned second aspect or any possible implementation of the second aspect, or the method of the first communication device in the above-mentioned third aspect or any possible implementation of the third aspect, or the method of the second communication device in the above-mentioned fourth aspect or any possible implementation of the fourth aspect, or the method of the second communication device in the above-mentioned fifth aspect or any possible implementation of the fifth aspect, or the method of the second communication device in the above-mentioned sixth aspect or any possible implementation of the sixth aspect.

[0076] In a tenth aspect, the present application provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are executed by a communication device, it implements the method of the first communication device in the above-mentioned first aspect or any possible implementation of the first aspect, or the method of the first communication device in the above-mentioned second aspect or any possible implementation of the second aspect, or the method of the first communication device in the above-mentioned third aspect or any possible implementation of the third aspect, or the method of the second communication device in the above-mentioned fourth aspect or any possible implementation of the fourth aspect, or the method of the second communication device in the above-mentioned fifth aspect or any possible implementation of the fifth aspect, or the method of the second communication device in the above-mentioned sixth aspect or any possible implementation of the sixth aspect.

[0077] In an eleventh aspect, an embodiment of the present application provides a communication system, the communication system comprising:

[0078] The first communication device in the first aspect or any possible implementation of the first aspect, and the second communication device in the fourth aspect or any possible implementation of the fourth aspect; or

[0079] The first communication device in the second aspect or any possible implementation of the second aspect, and the second communication device in the fourth aspect or any possible implementation of the fourth aspect; or

[0080] The first communication device in the second aspect or any possible implementation of the second aspect, and the second communication device in the fifth aspect or any possible implementation of the fifth aspect; or

[0081] The first communication device in the third aspect or any possible implementation of the third aspect, and the second communication device in the sixth aspect or any possible implementation of the sixth aspect.

[0082] The technical effects that can be achieved in any of the above-mentioned aspects 4 to 11 can refer to the description of the beneficial effects in the above-mentioned aspects 1 to 3, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0083] Figure 1 is a schematic diagram of a 5G network architecture;

[0084] FIG2 is a schematic diagram of a key derivation architecture in a 5G system;

[0085] FIG3 is a schematic diagram of a user plane path of a URLLC service;

[0086] FIG4 is a flow chart of the first communication method provided by this application;

[0087] FIG5 is a flow chart of a second communication method provided in this application;

[0088] FIG6 is a flow chart of a third communication method provided by the present application;

[0089] FIG7 is a flow chart of a fourth communication method provided by the present application;

[0090] FIG8 is a schematic diagram of a flow chart of a fifth communication method provided in this application;

[0091] FIG9 is a schematic flow chart of a first determination method for a secondary node in the fifth communication method provided by this application;

[0092] FIG10 is a schematic flow chart of a second determination method for a secondary node in the fifth communication method provided by this application;

[0093] FIG11 is a flow chart of a third method for determining a secondary node in the fifth communication method provided by this application;

[0094] FIG12 is a schematic diagram of a process for a master node to determine whether a redundancy condition is satisfied, provided by the present application;

[0095] FIG13 is a schematic structural diagram of a communication device provided by the present application;

[0096] FIG14 is a schematic structural diagram of another communication device provided in this application. DETAILED DESCRIPTION

[0097] The following first explains the relevant technical features involved in the embodiments of the present application. It should be noted that these explanations are intended to make the embodiments of the present application easier to understand and should not be regarded as limiting the scope of protection claimed by the present application.

[0098] 1. 5G Network Architecture

[0099] Figure 1 is a schematic diagram of a 5G network architecture. The 5G network architecture shown in Figure 1 includes three components: the terminal device component, the data network (DN), and the operator network component. The following briefly describes the functions of some of these network elements.

[0100] Among them, the operator network may include one or more of the following network elements (or devices, functions, nodes): radio access node (RAN), authentication server function (AUSF), network exposure function (NEF), policy control function (PCF), unified data management (UDM), unified data repository (UDR), network repository function (NRF), access and mobility management function (AMF), session management function (SMF), user plane function (UPF), application function (AF), etc.

[0101] A terminal device, also known as user equipment (UE), is a device with wireless transceiver capabilities. It can be deployed on land, indoors or outdoors, handheld or vehicle-mounted; on water (such as ships); or in the air (such as on airplanes, balloons, and satellites). Terminal devices can be mobile phones, tablets, computers with wireless transceiver capabilities, virtual reality (VR) terminals, augmented reality (AR) terminals, wireless terminals used in industrial control, wireless terminals used in self-driving, wireless terminals used in remote medical care, wireless terminals used in smart grids, wireless terminals used in transportation safety, wireless terminals used in smart cities, and wireless terminals used in smart homes.

[0102] The above-mentioned terminal device can establish a connection with the operator network through the interface provided by the operator network (such as N1, etc.), and use the data and / or voice services provided by the operator network. The terminal device can also access the DN through the operator network, use the operator services deployed on the DN, and / or services provided by a third party. Among them, the above-mentioned third party may be a service provider other than the operator network and the terminal device, and can provide data and / or voice services to the terminal device. Among them, the specific form of the above-mentioned third party can be determined according to the actual application scenario and is not limited here.

[0103] A wireless access node is used to provide network access for authorized terminal devices in a specific area and can use transmission tunnels with different service qualities based on the level of the terminal device, business requirements, etc. The wireless access node can manage wireless resources, provide access services for terminal devices, and then complete the forwarding of control signals and data between the terminal device and the core network. The wireless access node can also be understood as a base station in a traditional network. Exemplarily, the wireless access node can be any communication device with wireless transceiver functions for communicating with terminal devices. The wireless access node includes but is not limited to an evolved Node B (eNB), a gNB in ​​a 5G system, or a transmission point (TRP or TP), or one or a group of antenna panels (including multiple antenna panels) of a base station in a 5G system, or can also be a network node constituting a gNB or a transmission point, such as a baseband unit (BBU) or a distributed unit (DU), or can also be a pole site, a micro base station, a macro site, an integrated access and backhaul (IAB) node, etc.

[0104] The core network part includes user plane functions and control plane functions.

[0105] User plane functions include UPF. As the interface with the data network, UPF performs functions such as user plane data (such as packet data) forwarding, quality of service (QoS) control, session / flow-level billing and statistics, and bandwidth limiting.

[0106] The control plane functions mainly carry out user registration and authentication, mobility management, and delivery of data packet forwarding policies and QoS control policies to the user plane functions. The control plane functions can be further refined to include other network elements besides the UPF, such as the AMF and SMF.

[0107] The AMF primarily handles user registration, location management, and access authentication / authorization during user mobility. It is also responsible for communicating user policies between terminal devices and the PCF.

[0108] SMF is mainly responsible for establishing corresponding session connections when users initiate services and providing specific services to users, such as sending data packet forwarding strategies and QoS strategies to UPF based on the NG4 interface between SMF and UPF.

[0109] AUSF is mainly responsible for authenticating users and determining the legitimacy of terminal devices to determine whether the terminal devices are allowed to access the network.

[0110] UDM is mainly responsible for storing the contract data of terminal devices, user access authorization and other functions.

[0111] UDR is mainly responsible for the storage and access of contract data, policy data, application data and other types of data.

[0112] PCF is mainly responsible for issuing business-related policies to AMF or SMF.

[0113] NEF is mainly used to support the opening of capabilities and events.

[0114] The AF primarily communicates application-side requirements for the network to the PCF, enabling the PCF to generate corresponding policies. The AF can be a third-party functional entity or an application service deployed by an operator, such as the Internet Protocol (IP) Multimedia Subsystem (IMS) voice call service.

[0115] NRF can be used to provide network element discovery capabilities, providing network element information corresponding to the network element type based on requests from other network elements. NRF also provides network element management services such as network element registration, update, and deregistration, as well as network element status subscription and push.

[0116] A DN is a network located outside of a carrier network. A carrier network can connect to multiple DNs, and a variety of services can be deployed on the DN, providing data and / or voice services to terminal devices. For example, a DN is the private network of a smart factory. Sensors installed in the workshop can be terminal devices, and the DN contains a control server for the sensors, which can provide services to the sensors. The sensors can communicate with the control server, receive instructions from the control server, and transmit collected sensor data to the control server according to the instructions. Another example is a DN that is a company's internal office network. An employee's mobile phone or computer can be a terminal device, allowing them to access information and data resources on the company's internal office network.

[0117] In Figure 1, Nnssf, Nausf, Nnef, Nnrf, Npcf, Nudm, Naf, Namf, Nsmf, N1, N2, N3, N4, and N6 are interface sequence numbers. The meanings of these interface sequence numbers can be found in the definitions in the 3rd Generation Partnership Project (3GPP) protocol and are not limited here.

[0118] It is understood that the above-mentioned network element can be a network component in a hardware device, a software function running on dedicated hardware, or a virtualized function instantiated on a platform (e.g., a cloud platform). Optionally, the above-mentioned network element can be implemented by a single device, or by multiple devices, or can be a functional module within a single device, and this embodiment of the present application does not specifically limit this.

[0119] The network elements involved in the embodiments of the present application may be the AMF, AUSF, UDM, etc. in Figure 1, or they may be network elements having the functions of the above-mentioned AMF, AUSF, UDM, etc. in future communications such as the sixth generation (6G) network. The embodiments of the present application are not limited to this.

[0120] 2. 256-bit algorithm

[0121] Security algorithms (also known as cryptographic algorithms) are the security foundation of communication systems and are widely used in mobile communication network systems.

[0122] Security algorithms are generally divided into symmetric security algorithms and asymmetric security algorithms. Symmetric security algorithms may include symmetric encryption algorithms, hash algorithms, and integrity protection algorithms (such as medium access control (MAC) and hash-based message authentication code (HMAC)). Asymmetric security algorithms may include asymmetric encryption algorithms, digital signature algorithms, and key exchange algorithms. Furthermore, asymmetric security algorithms are mainly used for identity authentication, key negotiation, and key establishment of two or more interacting parties in the early stages of system establishment. After the key is established, the two or more interacting parties can use the symmetric security algorithm to securely protect the information they interact with based on the established key.

[0123] Currently, in communication systems, the symmetric security algorithms used for interactive signaling and data protection between terminal devices and the network side (for example, AMF or wireless access nodes) include Advanced Encryption Standard (AES), SNOW3G, Zu Chongzhi Algorithm (ZUC), etc. The key length currently used by these symmetric security algorithms is 128 bits (these algorithms can be collectively referred to as 128-bit algorithms). However, with the increase in computer computing power, especially the threat of quantum computers, 128-bit algorithms face the risk of being cracked by quantum computers. For example, with the help of quantum computers, Grover's algorithm can reduce the difficulty of brute force cracking from N attempts to N 1 / 2After several attempts, the security of 128-bit encryption (key space) becomes 64 bits. To resist the threat of quantum computers, industry cryptography experts recommend upgrading symmetric security algorithms from 128-bit algorithms to 256-bit algorithms, that is, using symmetric security algorithms with a key length of 256 bits to protect data.

[0124] 3. 5G Key Derivation Architecture

[0125] The key derivation architecture in the 5G system is shown in Figure 2. The terminal device's universal subscriber identity module (USIM) card and UDM (or authentication credential repository and processing function (ARPF)) side store the terminal device's long-term key K.

[0126] When a terminal device registers with the network, the main authentication process is triggered. In the main authentication process:

[0127] On the terminal device side, the terminal device derives CK and IK based on the long-term key K of the terminal device, and derives the AUSF key (K AUSF ) and SEAF key (K SEAF Then the terminal device derives the AMF key (K AMF The terminal device then derives the non-access stratum (NAS) key (K NAS ) and gNB key (K gNB ), the gNB key is used by the terminal device to generate the access stratum (AS) key, where the AS key includes the radio resource control (RRC) key (K RRC ) and user plane (UP) key (K UP ).

[0128] On the network side, the UDM derives the AUSF key based on the concatenation of the CK and the IK and provides it to the AUSF. The AUSF derives the SEAF key based on the AUSF key and provides it to the SEAF. The SEAF derives the AMF key based on the SEAF key and provides it to the AMF. The AMF derives the NAS key, the non-3GPP interworking function (N3IWF) key, and the gNB key based on the AMF key. The AMF provides the N3IWF key to the N3IWF. The N3IWF key is used to protect data traffic for subsequent non-3GPP accesses. The AMF also provides the gNB key and next hop (NH) parameters to the gNB. The gNB generates RRC keys and user plane keys based on the gNB key and NH parameters.

[0129] Furthermore, the RRC key includes the RRC encryption key (K RRCenc ) and RRC integrity protection key (K RRCint ). The user plane key includes the user plane encryption key (K UPenc ) and the user plane integrity protection key (K UPint When transmitting user data, the user plane encryption key is used by the terminal device and gNB to encrypt and protect the user data, and the user plane integrity protection key is used by the terminal device and gNB to protect the integrity of the user data.

[0130] 4. Security Capabilities of Terminal Devices

[0131] The security capabilities of a terminal device include the security algorithms supported by the terminal device. The security algorithms supported by the terminal device are used in the algorithm negotiation of the mobile communication network: the terminal device reports the security algorithms supported by the terminal device to the network side, and the network side selects a security algorithm supported by both the network side and the terminal device and with a higher priority based on the priority of the local security algorithm and the security algorithms supported by the terminal device. For example, the AMF on the network side determines the NAS security algorithm to protect the NAS messages between the terminal device and the AMF; the wireless access node on the network side determines the AS security algorithm to protect the AS messages between the terminal device and the wireless access node. Currently, the key length of the security algorithm supported by the terminal device can be 128 bits, and in future communications, it may support security algorithms with a key length of 256 bits or even 512 bits.

[0132] 5. Dual Connectivity (DC) Mode and Security Algorithm Selection in Dual Connectivity Mode

[0133] Dual connectivity is an operating mode in which a terminal device operates in the RRC connected state. In this mode, the terminal device is simultaneously connected to two different radio access nodes (RANs). These two RAPs can be of the same or different communication standards. The RAP whose control plane is connected to the core network is called a master node (MN), while the RAP whose control plane is not connected to the core network is called a secondary node (SN). The secondary node can also be called a slave node.

[0134] The advantages of dual connectivity are: (1) The wireless resources provided by a single wireless access node are relatively limited. If a terminal device can connect to two wireless access nodes at the same time, it can utilize the wireless resources of both wireless access nodes, effectively improving throughput. (2) There may be wireless access nodes of different communication standards in the network (such as a 4G wireless access node and a 5G wireless access node). If a terminal device can connect to two wireless access nodes of different communication standards, it can flexibly adapt to the networking environment.

[0135] In dual-connection mode, the primary node can obtain the security algorithms supported by the terminal device and, based on the security algorithms supported by the terminal device, the security algorithms supported by the primary node, and the priority of the security algorithms supported by the primary node, select a security algorithm (denoted as security algorithm A) and send the identifier of security algorithm A to the terminal device. Furthermore, the primary node can also send the security algorithms supported by the terminal device to the secondary node. Correspondingly, the secondary node selects a security algorithm (denoted as security algorithm B) based on the security algorithms supported by the terminal device, the security algorithms supported by the secondary node, and the priority of the security algorithms supported by the secondary node. The secondary node sends the identifier of security algorithm B to the primary node, which then sends the identifier of security algorithm B to the terminal device. In this way, when the primary node and the terminal device transmit data, they can use security algorithm A for data protection; when the secondary node and the terminal device transmit data, they can use security algorithm B for data protection.

[0136] VI. Ultra reliable and low latency communications (URLLC) and security algorithm selection in URLLC

[0137] In order to implement the URLLC service of the terminal device, the terminal device can establish two protocol data unit (PDU) sessions on the 5G network. The user plane paths corresponding to the two PDU sessions are separated. Please refer to the schematic diagram of the user plane path of a URLLC service shown in Figure 3, in which the user plane corresponding to one PDU session passes through the primary node and UPF1, while the user plane corresponding to the other PDU session passes through the secondary node and UPF2, and UPF1 and UPF2 are connected to the same DN. The data transmitted in the two PDU sessions meets the security assumption of data redundant transmission, that is, the transmitted data is the same, and the key length of the security algorithm used when transmitting the data is the same.

[0138] When 256-bit algorithms are introduced, the communication system needs to support both 128-bit and 256-bit algorithms. In this scenario, how to ensure the security of the communication system is a technical problem that needs to be solved urgently.

[0139] Furthermore, based on the above-mentioned method of selecting security algorithms in the dual-connection mode, when the key lengths of the security algorithms supported by the primary node and the secondary node are different, for example, the key lengths of the security algorithms supported by the primary node are 256 bits and 128 bits, the key lengths of the security algorithms supported by the secondary node are 128 bits, and the key lengths of the security algorithms supported by the terminal device are 256 bits and 128 bits, then, the primary node may choose to use a security algorithm with a key length of 256 bits (i.e., a 256-bit algorithm) to transmit data with the terminal device, while the secondary node may choose to use a security algorithm with a key length of 128 bits (i.e., a 128-bit algorithm) to transmit data with the terminal device, which results in the key lengths of the security algorithms corresponding to the two sessions being different, which does not meet the security assumptions of data redundancy transmission (such as URLLC) services in the dual-connection mode.

[0140] To this end, this application provides five communication methods for achieving communication system security in scenarios where the communication system needs to support both 128-bit and 256-bit algorithms. Furthermore, when a terminal device uses the data redundancy transmission service in dual-connection mode, the key lengths of the security algorithms corresponding to the two PDU sessions of the terminal device are the same, meeting the security assumption of data redundancy transmission.

[0141] The five communication methods can all be executed by the first communication device and the second communication device.

[0142] The first communication device and the second communication device may serve as the primary node and secondary node, respectively, of a terminal device in dual-connectivity mode. Furthermore, the first communication device may be a wireless access node or a component (e.g., a chip) within a wireless access node, and the second communication device may be a wireless access node or a component (e.g., a chip) within a wireless access node. For ease of description, the following descriptions use primary and secondary nodes.

[0143] In this application, the security algorithm may also be referred to as a cryptographic algorithm, a security protection algorithm, a protection algorithm, etc. Exemplarily, the security algorithm may specifically be a symmetric cryptographic algorithm. Exemplarily, the security algorithm is an integrity protection algorithm, or the security algorithm is an encryption algorithm, or the security algorithm includes an integrity protection algorithm and an encryption algorithm, or the security algorithm is an authenticated encryption with associated data (AEAD) algorithm, and the AEAD algorithm corresponds to the AEAD mode, that is, when the primary node (or secondary node) and the terminal device transmit data, the AEAD algorithm is used for both integrity protection and encryption protection of the data.

[0144] In the present application, the key length of a security algorithm can be used to indicate the protection strength of the security algorithm for data, wherein the longer the key length of the security algorithm, the stronger the protection strength of the security algorithm for data. For example, if the key length of security algorithm 1 is 256 bits and the key length of security algorithm 2 is 128 bits, then the protection strength of security algorithm 1 for data is higher (or stronger) than the protection strength of security algorithm 2 for data. The key length of a security algorithm can also be used to indicate the algorithm strength of a security algorithm, wherein the longer the key length of a security algorithm, the stronger the algorithm strength of the security algorithm. For example, if the key length of security algorithm 1 is 256 bits and the key length of security algorithm 2 is 128 bits, then the algorithm strength of security algorithm 1 is higher (or stronger) than the algorithm strength of security algorithm 2. In the present application, the key length of a security algorithm can be referred to as the protection strength of a security algorithm or the algorithm strength of a security algorithm. Furthermore, the key length of a security algorithm can be, for example, 512 bits, 256 bits, or 128 bits. Security algorithms can also be classified according to their key length, i.e., security algorithms corresponding to a 512-bit key length are classified into one category, security algorithms corresponding to a 256-bit key length are classified into another category, and security algorithms corresponding to a 128-bit key length are classified into another category. The key length of a security algorithm can also be referred to as the category or classification of the security algorithm. Furthermore, the key length of a security algorithm can also be referred to as the key length used by the security algorithm, the key length input to the security algorithm, or the key length corresponding to (or associated with) the security algorithm.

[0145] In a first communication method, a primary node selects a secondary node that supports a first security algorithm key length based on the key length of the first security algorithm, and then requests to add the secondary node. The first security algorithm is a security algorithm used to protect data transmitted between the primary node and the terminal device. The secondary node determines a second security algorithm used to protect data transmitted between the secondary node and the terminal device.

[0146] In the second communication method, the primary node selects a secondary node based on a security algorithm supported by the primary node and then requests to add the secondary node. The key length of the security algorithm supported by the secondary node must be no less than the maximum key length of the security algorithm supported by the primary node. The secondary node then determines a second security algorithm for protecting data transmitted between the secondary node and the terminal device.

[0147] In the third communication method, the primary node first identifies a secondary node and, based on information about security algorithms supported by the secondary node, determines a first security algorithm for protecting data transmitted between the primary node and the terminal device. The information about security algorithms supported by the secondary node includes information about key lengths and / or identifiers of security algorithms supported by the secondary node. The primary node then requests that the secondary node be added. The secondary node then determines a second security algorithm for protecting data transmitted between the secondary node and the terminal device.

[0148] In the fourth communication method, the primary node first identifies the secondary node and, based on the security algorithm information supported by the secondary node, determines a first security algorithm and a second security algorithm. The first security algorithm is used to protect data transmitted between the primary node and the terminal device, and the second security algorithm is used to protect data transmitted between the secondary node and the terminal device. The information about the security algorithms supported by the secondary node includes the identifiers of the security algorithms supported by the secondary node (or the identifiers of the security algorithms supported by the secondary node and the key lengths of the security algorithms supported by the secondary node). The primary node then requests to add the secondary node and sends the identifier of the second security algorithm to the secondary node.

[0149] In the fifth communication method, the master node first determines the first security algorithm, which is used to protect data transmitted between the master node and the terminal device. The master node selects a secondary node (denoted as secondary node 1) and requests to add secondary node 1. Secondary node 1 may determine that it does not support the use of a security algorithm with the same length as the first security algorithm and sends an indication to the master node that the addition of secondary node 1 failed. Furthermore, the master node selects a new secondary node (denoted as secondary node 2) and requests to add secondary node 2. Secondary node 2 may determine that it supports the use of a security algorithm with the same length as the first security algorithm and sends an indication to the master node that the addition of secondary node 2 succeeded.

[0150] The five communication methods are detailed below:

[0151] FIG4 is a flow chart of the first communication method exemplarily provided in this application.

[0152] Step 401: The primary node determines a secondary node based on the key length of the first security algorithm and the key length of the security algorithm supported by the candidate node.

[0153] Candidate nodes include secondary nodes. When there is only one candidate node, the primary node can determine whether it can serve as a secondary node. When there are multiple candidate nodes, the primary node can select a secondary node from among the multiple candidate nodes. For ease of description, the following uses the latter as an example.

[0154] The key length of the security algorithm supported by the secondary node is not less than the key length of the first security algorithm. The first security algorithm is a security algorithm used to protect data transmitted between the primary node and the terminal device.

[0155] When determining the secondary node, the primary node may select as the secondary node a candidate node whose supported security algorithm meets the following conditions 1 or 2, or it may be understood that the security algorithm supported by the secondary node may meet the following conditions 1 or 2.

[0156] Condition 1: The second key length is not less than the key length of the first security algorithm, wherein the second key length is the maximum key length of the security algorithm supported by the secondary node. Exemplarily, the second key length is equal to the key length of the first security algorithm.

[0157] It can be considered here that when the key length of the security algorithm supported by a node (primary node / secondary node) includes key length 1, the key length of the security algorithm supported by the node also includes key length 2, wherein key length 1 is higher than (or greater than) key length 2. For example, if the key length of the security algorithm supported by a node includes 256 bits, then the key length of the security algorithm supported by the node also includes 128 bits.

[0158] For example, the security algorithms supported by the master node include security algorithm 1 to security algorithm 3, the key length of security algorithm 1 is 256 bits, and the key lengths of security algorithm 2 and security algorithm 3 are both 128 bits. The multiple alternative nodes include alternative node 1 to alternative node 3, wherein the maximum key length of the security algorithm supported by alternative node 1 is 256 bits, and the maximum key length of the security algorithm supported by alternative node 2 and alternative node 3 is 128 bits. When the master node determines that the first security algorithm is security algorithm 1, the master node may select alternative node 1 as the secondary node. When the master node determines that the first security algorithm is security algorithm 2, the master node may select any one of alternative nodes 1 to alternative node 3 as the secondary node.

[0159] Condition 2: The key length of the security algorithm supported by the secondary node includes the key length of the first security algorithm.

[0160] For example, the security algorithms supported by the master node include security algorithm 1 to security algorithm 3, the key length of security algorithm 1 is 256 bits, and the key lengths of security algorithm 2 and security algorithm 3 are both 128 bits. The multiple alternative nodes include alternative node 1 to alternative node 3, wherein the key length of the security algorithm supported by alternative node 1 is 256 bits, the key length of the security algorithm supported by alternative node 2 is 128 bits, and the key lengths of the security algorithm supported by alternative node 3 are 256 bits and 128 bits. When the master node determines that the first security algorithm is security algorithm 1, the master node may select alternative node 1 or alternative node 3 as the auxiliary node. When the master node determines that the first security algorithm is security algorithm 2, the master node may select alternative node 2 or alternative node 3 as the auxiliary node.

[0161] In the above conditions 1 and 2, the logic of the primary node in selecting the secondary node is similar. The following takes condition 1 as an example.

[0162] Furthermore, before step 401, the master node may obtain information about the key length of the security algorithm supported by the candidate node.

[0163] For example, the candidate node may support multiple security algorithms, which may correspond to multiple key lengths, wherein a key length may correspond to one or more security algorithms. Alternatively, the candidate node may support the multiple key lengths.

[0164] The information about the key lengths of the security algorithms supported by the candidate node may be identifiers of multiple key lengths of multiple security algorithms supported by the candidate node (which may be referred to as identifiers of multiple key lengths supported by the candidate node). For example, the key length of security algorithm 1 is 256 bits, and the key lengths of security algorithms 2 and 3 are both 128 bits. If the candidate node supports security algorithms 1 to 3, then the information about the key lengths of the security algorithms supported by the candidate node is 256 bits and 128 bits.

[0165] Alternatively, the key length information of the security algorithm supported by the candidate node may be an identifier of the maximum key length among multiple key lengths supported by the candidate node (which may be simply referred to as the identifier of the maximum key length supported by the candidate node). For example, the key length of security algorithm 1 is 256 bits, and the key lengths of security algorithms 2 and 3 are both 128 bits. If the candidate node supports security algorithms 1 through 3, then the key length information of the security algorithms supported by the candidate node is 256 bits.

[0166] Or, the information on the key length of the security algorithm supported by the alternative node may be an indication of whether the alternative node supports a preset key length. Exemplarily, the indication may occupy one bit. When the value of the indication is 1, it indicates that the alternative node supports the preset key length. When the value of the indication is 0, it indicates that the alternative node does not support the preset key length. The preset key length may be 256 bits or 128 bits. For example, the preset key length is 256 bits, the key length of security algorithm 1 is 256 bits, and the key lengths of security algorithm 2 and security algorithm 3 are both 128 bits. If the alternative node supports security algorithms 1 to 3, then the information on the key length of the security algorithm supported by the alternative node is an indication with a value of 1; if the alternative node only supports security algorithm 3, then the information on the key length of the security algorithm supported by the alternative node is an indication with a value of 0.

[0167] It should be noted that when a candidate node supports only one security algorithm, or when multiple security algorithms supported by the candidate node correspond to the same key length, the "identification of the key length supported by the candidate node" is equivalent to the "identification of the maximum key length supported by the candidate node." In this case, the identification of the maximum key length supported by the candidate node is used as an example. This description also applies to other embodiments.

[0168] In addition, in the present application, the information on the key length of the security algorithm supported by the alternative node may also be the identifiers of multiple security algorithms supported by the alternative node, where the identifier of each security algorithm includes the identifier of the key length of the security algorithm. For example, the identifier of the security algorithm is "128-NEA2", and the key length is 128, where NEA2 refers to the SNOW3G encryption algorithm.

[0169] In this application, the identifier of the key length can be not only a specific value of the key length (such as 256 bits or 128 bits), but also other pre-agreed identifiers used to indicate the key length. For example, the identifier of the key length is identifier A or identifier B, identifier A is used to indicate 256 bits, and identifier B is used to indicate 128 bits. For another example, the identifier of the key length is the value of a preset bit. When the preset bit value is 1, it is used to indicate 256 bits, and when the preset bit value is 0, it is used to indicate 128 bits. The following examples are all given with specific values ​​of the key length.

[0170] The master node can obtain information about the key length of the security algorithm supported by the candidate node through the following acquisition method 1 or acquisition method 2.

[0171] Acquisition method 1: Information about the key lengths of security algorithms supported by pre-configured candidate nodes in the master node.

[0172] Or it is understood that the master node includes pre-configuration information, which includes the identifier of the alternative node and the information of the key length of the security algorithm supported by the alternative node. For example, the information of the key length of the security algorithm supported by the alternative node is the identifier of the maximum key length supported by the alternative node, the alternative nodes are alternative node 1 to alternative node 3, the maximum key length supported by alternative node 1 is 256 bits, the maximum key length supported by alternative node 2 is 256 bits, and the maximum key length supported by alternative node 3 is 128 bits. The pre-configuration information may include the following correspondence: (identifier of alternative node 1 and 256 bits), (identifier of alternative node 2 and 256 bits), (identifier of alternative node 3 and 128 bits).

[0173] Exemplarily, the pre-configuration information is specifically configured by a management device (such as an AMF, operation administration and maintenance (OAM) or equipment management system (EMS)) or manually. The alternative node may meet one or more of the following conditions: the primary node and the alternative node belong to the same public land mobile network (PLMN), the primary node and the alternative node are located in the same physical area, the signal coverage ranges of the primary node and the alternative node overlap, or the frequency of the primary node and the frequency of the alternative node do not interfere with each other.

[0174] Acquisition method 2: The master node obtains information about the key length of the security algorithm supported by the candidate node from the candidate node.

[0175] Exemplarily, the master node includes pre-configuration information, which includes the identifier of the alternative node. The identifier of the alternative node is specifically configured by a management device (such as AMF, OAM or EMS) or manually. The definition of the alternative node can be found in the description of acquisition method 1.

[0176] The identifier of the candidate node is, for example, a device identifier of the candidate node, an Internet protocol (IP) address of the candidate node, a port number of the candidate node, and the like.

[0177] Exemplarily, the master node sends a security capability request to each candidate node based on the identifier of the candidate node. The security capability request is used to request information about the key lengths of security algorithms supported by the candidate node. In response to the security capability request, the candidate node sends information about the key lengths of security algorithms supported by the candidate node to the master node.

[0178] It should also be noted that in the embodiment of the present application, the master node may also obtain node information of the candidate node (such as one or more of the candidate node's product serial number, the candidate node's communication standard, and the candidate node's deployment date) through the above-mentioned acquisition method 1 or acquisition method 2. Furthermore, the master node determines information about the key length of the security algorithm supported by the candidate node based on the candidate node information.

[0179] For example, the node information of the alternative node is the deployment date of the alternative node. The preset rule in the master node is "the maximum key length supported by the alternative nodes with a deployment date on or before January 1, 2024 is 128 bits; the maximum key length supported by the alternative nodes with a deployment date after January 1, 2024 is 256 bits." If the deployment date of a certain alternative node is March 1, 2024, the master node can determine that the maximum key length supported by the alternative node is 256 bits.

[0180] For another example, the node information of the alternative node is the communication standard of the alternative node. The preset rule in the main node is "the maximum key length supported by alternative nodes below the 5G communication standard is 128 bits; the maximum key length supported by alternative nodes of 5G and above communication standards is 256 bits". If the communication standard of a certain alternative node is 5.5G, the main node can determine that the maximum key length supported by the alternative node is 256 bits.

[0181] It should also be added that when the main node selects a secondary node from the alternative nodes, it can not only consider the key length of the security algorithm supported by the alternative node, but also consider at least one or more of the following: the signal strength of the alternative node received by the terminal device, the usage of the air interface resources of the alternative node, or the priority of the alternative node.

[0182] Exemplarily, the master node may also send a measurement instruction to the terminal device based on the identifier of the candidate node. The measurement instruction includes the identifier of the candidate node and is used to instruct the terminal device to measure the signal strength of the candidate node. Accordingly, the terminal device receives the measurement instruction, measures the signal strength of the candidate node based on the identifier of the candidate node in the measurement instruction, and sends the measurement result to the master node. The measurement result includes the signal strength of the candidate node. The master node selects a secondary node from the candidate nodes based on the signal strength of the candidate node, the usage of air interface resources, and information about the key length of the security algorithm supported by the candidate node.

[0183] In another exemplary embodiment, the pre-configuration information of the master node also includes the priority of the candidate node. When the master node selects a secondary node from the candidate nodes, it selects the secondary node from the candidate nodes based on the priority of the candidate node and the key length of the security algorithm supported by the candidate node.

[0184] Optionally, before the primary node determines the secondary node based on the key length of the first security algorithm and the key length of the security algorithm supported by the candidate node, step 400 may be further included, in which the primary node determines (or selects) the first security algorithm.

[0185] Specifically, the master node selects a first security algorithm from the security algorithms supported by the master node based on the priorities of the security algorithms supported by the master node and the security algorithms supported by the terminal device. Exemplarily, the master node selects a security algorithm that is supported by both the master node and the terminal device and has a higher priority as the first security algorithm. For example, the master node supports security algorithms 1 to 3, where the priority order of security algorithms 1 to 3 is: security algorithm 1, security algorithm 2, security algorithm 3. If the terminal device supports security algorithms 1 to 2, the master node may determine that the first security algorithm is security algorithm 1.

[0186] Exemplarily, the master node may also first obtain the security algorithms supported by the terminal device. Exemplarily, when the terminal device sends a registration request to the AMF, the registration request carries the security algorithms supported by the terminal device. Further, the AMF sends the security algorithms supported by the terminal device to the master node. In another exemplary embodiment, the master node is the target node in an Xn handover, and the master node receives the security algorithms supported by the terminal device from the source node. In another exemplary embodiment, the master node is the target node in an N2 handover, and the master node receives the security algorithms supported by the terminal device from the target AMF.

[0187] Step 402: The primary node sends a node request to the secondary node. Correspondingly, the secondary node receives the node request from the primary node.

[0188] Among them, the node request is used to request the addition of a secondary node. Or it can be understood that the node request is used to request the node that receives the node request to serve as a secondary node corresponding to the primary node. For example, node 1 receives a node request, and the node request is used to request node 1 to serve as a secondary node corresponding to the primary node. Or it can also be understood that the node request is used to request the node that receives the node request to serve as a secondary node for the URLLC service of the terminal device. For example, node 1 receives a node request, and the node request is used to request node 1 to serve as a secondary node for the URLLC service of the terminal device.

[0189] In one possible embodiment, the node request includes information about the key length of the first security algorithm. The information about the key length of the first security algorithm can be used by the auxiliary node to determine (or select) a second security algorithm, wherein the second security algorithm is a security algorithm for protecting data transmitted between the auxiliary node and the terminal device. For details, please refer to the description in steps 403 and 404.

[0190] Exemplarily, the information of the key length of the first security algorithm may be an identifier of the key length of the first security algorithm. For example, if the key length of the first security algorithm is 256 bits, then the information of the key length of the first security algorithm is 256 bits.

[0191] As another example, the information about the key length of the first security algorithm may be an indication of whether the key length of the first security algorithm is a preset key length, where the indication may occupy one bit. When the value of the indication is 1, it indicates that the key length of the first security algorithm is the preset key length; when the value of the indication is 0, it indicates that the key length of the first security algorithm is not the preset key length. For example, if the preset key length is 256 bits and the key length of the first security algorithm is 256 bits, then the information about the key length of the first security algorithm is an indication with a value of 1; if the key length of the first security algorithm is 128 bits, then the information about the key length of the first security algorithm is an indication with a value of 0.

[0192] Optionally, the node request may further include a security algorithm supported by the terminal device. The security algorithm supported by the terminal device is used by the secondary node to select a second security algorithm. For details, see the description in step 403. Optionally, the node request may further include a node key of the secondary node (e.g., a gNB key). The node key of the secondary node is used by the secondary node to derive the user plane key of the secondary node. For details, see the description in step 404. Exemplarily, the primary node derives the node key of the secondary node based on the node key of the primary node and carries the node key of the secondary node in the node request.

[0193] Optionally, the implementation related to FIG4 further includes the following steps 403 and 404.

[0194] Step 403: The secondary node determines a second security algorithm.

[0195] The second security algorithm is a security algorithm used to protect data transmitted between the secondary node and the terminal device.

[0196] In one possible approach, the node request includes information about the key length of the first security algorithm. After receiving the node request, the secondary node obtains the key length information of the first security algorithm from the node request and, based on the key length information of the first security algorithm, selects a second security algorithm from among the security algorithms supported by the secondary node. The key length of the second security algorithm is equal to the key length of the first security algorithm, and the identifier of the second security algorithm is the same as or different from the identifier of the first security algorithm.

[0197] In one possible example, after receiving the node request, the secondary node may also obtain the security algorithms supported by the terminal device from the node request, and determine a second security algorithm from among the security algorithms supported by the secondary node based on the key length of the first security algorithm, the security algorithms supported by the terminal device, and the priority of the security algorithms supported by the secondary node. It will be understood that not only does the key length of the second security algorithm need to be the same as the key length of the first security algorithm, but the second security algorithm also needs to be supported by the terminal device. That is, the security algorithms supported by the terminal device include the second security algorithm, and the second security algorithm is a security algorithm with a higher priority among the multiple security algorithms supported by the secondary node.

[0198] For example, the terminal device supports security algorithms 1 to 3. The key length of security algorithm 1 is 256 bits, and the key lengths of security algorithms 2 and 3 are both 128 bits. The primary node determines that the first security algorithm is security algorithm 1, and the node request sent to the secondary node includes the key length of the first security algorithm (i.e., 256 bits) and the identifiers of security algorithms 1 to 3 supported by the terminal device. Correspondingly, the secondary node supports security algorithm 1 and security algorithm 4, and the priority order of the security algorithms set in the secondary node is: security algorithm 1, security algorithm 4, security algorithm 2, security algorithm 3. The key length of security algorithm 4 is 256 bits. The secondary node obtains the key length of the first security algorithm (i.e., 256 bits) and the identifiers of security algorithms 1 to 3 supported by the terminal device from the node request, and determines that the second security algorithm is security algorithm 1.

[0199] It should be noted that when the maximum key length supported by both the primary node and the secondary node is the same, and the primary node and the secondary node pre-negotiate to select the security algorithm corresponding to the maximum key length as the security algorithm for communicating with the terminal device, the node request may not need to carry information about the key length of the first security algorithm. For example, the primary node supports security algorithms 1 to 3, the secondary node supports security algorithms 1 and 2, and the terminal device supports security algorithms 1 and 2, where the key length of security algorithm 1 is 256 bits, and the key lengths of security algorithms 2 and 3 are both 128 bits. The primary node may determine the security algorithm corresponding to the maximum key length supported by the primary node, that is, security algorithm 1, as the first security algorithm, and send a node request to the secondary node, without needing to carry information about the key length of the first security algorithm. Accordingly, the secondary node may determine the security algorithm corresponding to the maximum key length supported by the secondary node, that is, security algorithm 1, as the second security algorithm. Of course, there may be other situations in which the node request does not need to carry information about the key length of the first security algorithm, which are not listed in this application.

[0200] Step 404: The secondary node transmits data with the terminal device according to the second security algorithm.

[0201] Before step 404, the secondary node may also send a node response to the primary node, and the node response is used to indicate that the secondary node has been successfully added. Exemplarily, the node response includes a success indication (e.g., an acknowledgment (ACK)), which is used to indicate that the secondary node has been successfully added. Exemplarily, the node response also includes an identifier of the second security algorithm. After the primary node receives the node response, it obtains the identifier of the second security algorithm from the node response and sends the identifier of the second security algorithm to the terminal device. In this way, the terminal device obtains the identifier of the second security algorithm. Exemplarily, the identifier of the second security algorithm is carried in the RRC connection reconfiguration message sent by the primary node to the terminal device.

[0202] Exemplarily, the node request is specifically a secondary node addition request (SN addition request), and the node response is specifically a secondary node addition acknowledgement (SN addition acknowledge); or, the node request is specifically a secondary node modification request (SN modification request), and the node response is specifically a secondary node addition acknowledgement (SN modification acknowledge).

[0203] Before step 404, the auxiliary node may obtain the node key of the auxiliary node from the node request, and derive the user plane key of the auxiliary node based on the node key of the auxiliary node. The user plane key of the auxiliary node may be a user plane encryption key, or a user plane integrity protection key, or include a user plane encryption key and a user plane integrity protection key, or a key of the AEAD algorithm used for user plane protection, wherein the AEAD algorithm is used for both data integrity protection and data encryption protection.

[0204] When the secondary node transmits data with the terminal device according to the second security algorithm, specifically, the secondary node transmits data with the terminal device according to the second security algorithm and the user plane key of the secondary node:

[0205] When the secondary node needs to send first data to the terminal device, the secondary node inputs the secondary node's user plane key and the first data into the second security algorithm to obtain second data, and then sends the second data to the terminal device. Correspondingly, the terminal device receives the second data from the secondary node, inputs the second data and the terminal device's user plane key into the second security algorithm, and obtains the first data.

[0206] When the terminal device needs to send first data to the secondary node, the terminal device inputs the terminal device's user plane key and the first data into the second security algorithm to obtain second data, and then sends the second data to the secondary node. Correspondingly, the secondary node receives the second data from the terminal device, inputs the second data and the secondary node's user plane key into the second security algorithm, and obtains the first data.

[0207] The user plane key of the terminal device and the user plane key of the auxiliary node are symmetric keys to each other.

[0208] It should be added that, in conjunction with the 5G key derivation architecture shown in Figure 2, the length of each of CK and IK is usually 128 bits, and the concatenation of CK and IK is 256 bits. The AUSF key, SEAF key, AMF key, NAS key, gNB key, RRC key, and user plane key derived in sequence by the terminal device (or network side) are all 256 bits. When a node (such as a master node or a slave node) transmits data with a terminal device, if the key length of the security algorithm negotiated by the two is 256 bits, the two can use the 256-bit user plane key for transmission protection; if the key length of the security algorithm negotiated by the two is 128 bits, the two can each truncate the 256-bit user plane key to obtain a 128-bit user plane key, and then use the 128-bit user plane key for transmission protection.

[0209] In the embodiment related to Figure 4 above, the master node first determines a first security algorithm, where the first security algorithm is a security algorithm used to protect data transmitted between the master node and the terminal device. Subsequently, the master node selects a secondary node based on the key length of the first security algorithm and then requests to add the secondary node. This makes the selection of the secondary node more reasonable, facilitating the subsequent secondary node to select an appropriate security algorithm. Specifically, the selected secondary node can meet the following conditions: the master node and the secondary node can each determine an appropriate security algorithm, so that the security strength of the data transmitted between the master node and the terminal device is consistent with the security strength of the data transmitted between the secondary node and the terminal device, so as to meet the requirements of secure communication. For example, the secondary node selected according to the solution of the present application can ensure that the key length of the security algorithm selected by the master node and the secondary node is the same. In a scenario where the terminal device uses data redundancy transmission service, two redundant PDU sessions of the terminal device are used to transmit the same data of the service. The data corresponding to the two PDU sessions are protected by the master node and the secondary node respectively using the selected security algorithm. The key length of the two security algorithms is the same, which meets the security assumption of data redundancy transmission.

[0210] FIG5 is a flow chart of the second communication method exemplarily provided in this application.

[0211] In step 501, the primary node determines a secondary node based on the key length of the security algorithm supported by the primary node and the key length of the security algorithm supported by the candidate node.

[0212] Candidate nodes include secondary nodes. When there is only one candidate node, the primary node can determine whether it can serve as a secondary node. When there are multiple candidate nodes, the primary node can select a secondary node from among the multiple candidate nodes. For ease of description, the following uses the latter as an example.

[0213] When determining the secondary node, the primary node may select an alternative node whose supported security algorithm meets the following conditions (1) or (2) as the secondary node, or understand that the security algorithm supported by the secondary node may meet the following conditions (1) or (2).

[0214] Condition (1): The maximum key length of the security algorithm supported by the secondary node is not less than the maximum key length of the security algorithm supported by the primary node.

[0215] Exemplarily, the maximum key length of the security algorithm supported by the secondary node is equal to the maximum key length of the security algorithm supported by the primary node.

[0216] In this application, the maximum key length of the security algorithm supported by the primary node may be referred to as the first key length, and the maximum key length of the security algorithm supported by the secondary node may be referred to as the second key length.

[0217] It can be considered here that when the key length of the security algorithm supported by a node (primary node / secondary node) includes key length 1, the key length of the security algorithm supported by the node also includes key length 2, wherein key length 1 is higher than key length 2. For example, if the key length of the security algorithm supported by the node includes 256 bits, then the key length of the security algorithm supported by the node also includes 128 bits.

[0218] For example, the security algorithms supported by the master node include security algorithms 1 to 3, the key length of security algorithm 1 is 256 bits, and the key lengths of security algorithms 2 and 3 are both 128 bits. The multiple candidate nodes include candidate nodes 1 to 3, wherein the maximum key length of the security algorithm supported by candidate node 1 is 256 bits, and the maximum key length of the security algorithms supported by candidate nodes 2 and 3 is 128 bits. The master node can determine that the first key length is 256 bits based on the key lengths of security algorithms 1 to 3, and then the master node selects candidate node 1 as the secondary node from candidate nodes 1 to 3.

[0219] Condition (2): The key length of the security algorithm supported by the secondary node includes the key length of the security algorithm supported by the primary node.

[0220] For example, the security algorithms supported by the master node include security algorithms 1 through 3. The key length of security algorithm 1 is 256 bits, and the key lengths of security algorithms 2 and 3 are both 128 bits. The multiple candidate nodes include candidate nodes 1 through 3. Among them, the key length of the security algorithm supported by candidate node 1 is 256 bits, the key length of the security algorithm supported by candidate node 2 is 128 bits, and the key lengths of the security algorithms supported by candidate node 3 are 256 bits and 128 bits. The master node may select candidate node 3 as a secondary node from among candidate nodes 1 through 3 based on the key lengths of security algorithms 1 through 3.

[0221] In conditions (1) and (2), the logic of the primary node in selecting the secondary node is similar. The following takes condition (1) as an example.

[0222] Furthermore, before step 501, the master node may obtain information about the key lengths of security algorithms supported by the candidate nodes. For details about the information about the key lengths of security algorithms supported by the candidate nodes and how the master node obtains the information about the key lengths of security algorithms supported by the candidate nodes, please refer to the description of step 401.

[0223] Step 502: The primary node sends a node request to the secondary node. Correspondingly, the secondary node receives the node request from the primary node.

[0224] The node request is used to request adding a secondary node. For details, please refer to the description in step 402.

[0225] In one possible manner, the node request includes information about the key length of the first security algorithm. The function and form of the key length information of the first security algorithm can be found in the description of step 402 .

[0226] Optionally, before the master node sends the node request to the secondary node, the master node may first select a first security algorithm from among the security algorithms supported by the master node. Specifically, the master node selects the first security algorithm from among the security algorithms supported by the master node based on the priority of the security algorithms supported by the master node and the security algorithms supported by the terminal device. For details, see the description in step 400.

[0227] For details not described in step 502 , please refer to the description in step 402 .

[0228] Optionally, the implementation related to FIG5 further includes the following steps 503 and 504.

[0229] In step 503, the secondary node determines a second security algorithm. The second security algorithm is a security algorithm for protecting data transmitted between the secondary node and the terminal device. For details, see the description in step 403.

[0230] In step 504, the secondary node transmits data to the terminal device according to the second security algorithm. For details, please refer to the description in step 404.

[0231] In the embodiment related to FIG. 5 above, the primary node selects a secondary node based on the security algorithm supported by the primary node and then requests to add the secondary node. This makes the selection of the secondary node more reasonable, making it easier for the subsequent secondary node to select an appropriate security algorithm. Specifically, the selected secondary node can meet the following conditions: the primary node and the secondary node can each determine an appropriate security algorithm, so that the security strength of the data transmitted between the primary node and the terminal device is consistent with the security strength of the data transmitted between the secondary node and the terminal device, so as to meet the requirements of secure communication. For example, the secondary node selected according to the solution of the present application can ensure that the key length of the security algorithm selected by the primary node and the secondary node is the same.

[0232] Furthermore, in a scenario where the terminal device uses data redundancy transmission services, the two redundant PDU sessions of the terminal device are used to transmit the same data of the service. The data corresponding to the two PDU sessions are protected by the primary node and the secondary node respectively using the selected security algorithms. The key lengths of the two security algorithms are the same, which meets the security assumption of data redundancy transmission.

[0233] FIG6 is a flow chart of the third communication method exemplarily provided in this application.

[0234] Step 601: The primary node obtains information about security algorithms supported by the secondary node.

[0235] The security algorithm information includes information about the key length of the security algorithm and / or the identifier of the security algorithm. That is, the primary node obtains information about the key length of the security algorithm supported by the secondary node and / or obtains the identifier of the security algorithm supported by the secondary node.

[0236] The information about the key lengths of the security algorithms supported by the secondary node may include identifiers of multiple key lengths supported by the secondary node, an identifier of a maximum key length supported by the secondary node, or an indication of whether the secondary node supports a preset key length. The secondary node is one of the candidate nodes. The information about the key lengths of the security algorithms supported by the secondary node may be found in the description of step 401 above.

[0237] The identifiers of the security algorithms supported by the secondary node may specifically be the identifiers of one or more security algorithms supported by the secondary node. For example, if the secondary node supports security algorithms 1 through 3, and the identifiers of security algorithms 1 through 3 are identifiers 1 through 3, respectively, then the identifiers of the security algorithms supported by the secondary node include identifiers 1 through 3.

[0238] Optionally, before the primary node obtains information about the security algorithm supported by the secondary node, the following step 600 may be further included:

[0239] Step 600: The primary node selects a secondary node from the candidate nodes.

[0240] The definition of candidate nodes may refer to the description of acquisition method 1 in step 401 .

[0241] The master node may specifically select the secondary node from the candidate nodes based on at least one or more of the following: signal strength of the terminal device receiving the candidate node, usage of the air interface resources of the candidate node, or priority of the candidate node.

[0242] The following are two examples of a primary node selecting a secondary node from candidate nodes:

[0243] In example (1), the master node is pre-configured with the identifier of the candidate node. The master node sends a measurement instruction to the terminal device, which includes the identifier of the candidate node. The measurement instruction is used to instruct the terminal device to measure the signal strength of the candidate node. Accordingly, the terminal device receives the measurement instruction, measures the signal strength of the candidate node based on the identifier of the candidate node in the measurement instruction, and sends the measurement result to the master node, which includes the signal strength of the candidate node. The master node selects a secondary node from the candidate nodes based on the signal strength of the candidate node and the usage of air interface resources.

[0244] In example (2), the primary node is pre-configured with the identifiers and priorities of the candidate nodes. The primary node can select a secondary node from the candidate nodes based on the priorities of the candidate nodes and the usage of air interface resources.

[0245] Exemplarily, the master node includes pre-configuration information, which includes the identifier of the candidate node, or the identifier and priority of the candidate node. The pre-configuration information can be configured by a management device (such as an AMF, OAM, or EMS) or manually. The usage of the air interface resources of the candidate node can be requested by the master node to the candidate node.

[0246] Furthermore, the master node may obtain information about the security algorithms supported by the slave node through the following acquisition method (1) or acquisition method (2).

[0247] Acquisition method (1): Information about the security algorithms supported by the secondary nodes pre-configured in the primary node.

[0248] Exemplarily, the pre-configuration information also includes information about security algorithms supported by the candidate nodes (that is, the pre-configuration information includes information about security algorithms supported by the secondary nodes). Exemplarily, the master node obtains information about security algorithms supported by the secondary nodes from the pre-configuration information based on the identifier of the secondary node. For example, the candidate nodes are candidate nodes 1 to candidate nodes 5, and the pre-configuration information includes the identifiers of candidate nodes 1 to candidate nodes 5, as well as information about security algorithms 1 to information about security algorithms 5 supported by candidate nodes 1 to candidate nodes 5, respectively. When the master node selects candidate node 2 as the secondary node, it further determines that the information about security algorithms supported by the secondary node is security algorithm information 2.

[0249] In acquisition method (2), the primary node obtains information about security algorithms supported by the secondary node from the secondary node. Exemplarily, the primary node sends a security capability request to the secondary node based on the secondary node's identifier. The security capability request is used to request information about security algorithms supported by the secondary node. Accordingly, the secondary node sends information about security algorithms supported by the secondary node to the primary node in response to the security capability request.

[0250] Step 602: The primary node determines a first security algorithm based on information about security algorithms supported by the secondary node, wherein the first security algorithm is a security algorithm for protecting data transmitted between the primary node and the terminal device.

[0251] In a specific implementation, the master node selects a first security algorithm from the security algorithms supported by the master node based on information about security algorithms supported by the slave node and information about security algorithms supported by the master node.

[0252] Among them, the information of the security algorithms supported by the master node includes one or more of the following: identification of multiple key lengths supported by the master node, identification of the maximum key length supported by the master node (i.e., identification of the first key length), an indication of whether the master node supports a preset key length, identification of the security algorithms supported by the master node, or the priority of the security algorithms supported by the master node.

[0253] Exemplarily, the information about security algorithms supported by the master node is a priority list of security algorithms supported by the master node, which includes identifiers and priorities of multiple security algorithms supported by the master node. The identifiers of the security algorithms supported by the master node include the key lengths of the security algorithms. For example, if the identifier of the security algorithm is "128-NEA2," the key length is 128, where NEA2 refers to the SNOW3G encryption algorithm.

[0254] Furthermore, the following situations are explained in combination with the information contained in the security algorithms supported by the secondary nodes:

[0255] In case 1, when the information of the security algorithm supported by the secondary node includes the information of the key length of the security algorithm supported by the secondary node, the primary node determines the first security algorithm based on the information of the key length of the security algorithm supported by the secondary node and the information of the security algorithm supported by the primary node.

[0256] In Example (1), the master node determines the second key length based on the key length information of the security algorithm supported by the slave node. The smaller key length between the first and second key lengths is then determined. Based on the smaller key length and the priorities of the security algorithms supported by the terminal device and the security algorithms supported by the master node, a security algorithm with a key length lower than (or less than) or equal to the smaller key length is selected from the security algorithms supported by the master node, and the selected security algorithm is used as the first security algorithm. The first key length is the maximum key length of the security algorithm supported by the master node, and the second key length is the maximum key length of the security algorithm supported by the slave node.

[0257] Specifically, when the master node determines that the first key length is higher than the second key length, the master node may select a security algorithm with a key length lower than or equal to the second key length from the security algorithms supported by the master node based on the security algorithms supported by the terminal device and the priority of the security algorithms supported by the master node, and use the selected security algorithm as the first security algorithm.

[0258] For example, the second key length is 128 bits, the master node supports security algorithms 1 through 3, and the priority of security algorithms 1 through 3 is: security algorithm 1, security algorithm 2, security algorithm 3. The terminal device supports security algorithms 1 through 3. The key length of security algorithm 1 is 256 bits, and the key lengths of security algorithms 2 and 3 are both 128 bits. The master node determines that the first key length is 256 bits and that the first key length is longer than the second key length. Based on the second key length (i.e., 128 bits), the support of security algorithms 1 through 3 by the terminal device, and the priority of security algorithms 1 through 3, the master node selects security algorithm 2 as the first security algorithm.

[0259] When the master node determines that the first key length is less than or equal to the second key length, the master node may select a security algorithm with a key length less than or equal to the first key length from the security algorithms supported by the master node based on the security algorithms supported by the terminal device and the priority of the security algorithms supported by the master node, and use the selected security algorithm as the first security algorithm.

[0260] Continuing with the above example, the second key length is 256 bits. The master node determines that the first key length is 256 bits, and the first key length is less than or equal to the second key length. Therefore, based on the first key length (i.e., 256 bits), security algorithms 1 to 3 supported by the terminal device, and the priority of security algorithms 1 to 3, security algorithm 1 is selected as the first security algorithm.

[0261] Example (2): The master node preliminarily selects a security algorithm based on the security algorithms and priorities supported by the master node and the security algorithms supported by the terminal device. If the key length of the preliminarily selected security algorithm is less than or equal to the second key length, the preliminarily selected security algorithm is determined as the first security algorithm; if the key length of the preliminarily selected security algorithm is greater than the second key length, the security algorithm is reselected based on the security algorithms and priorities supported by the master node and the security algorithms supported by the terminal device, and it is determined whether the key length of the reselected security algorithm is less than or equal to the second key length, and so on, until the first security algorithm is determined.

[0262] For example, the second key length is 128 bits, the master node supports security algorithms 1 to 3, and the priority order of security algorithms 1 to 3 is: security algorithm 1, security algorithm 2, security algorithm 3. The terminal device supports security algorithms 1 to 3. The key length of security algorithm 1 is 256 bits, and the key lengths of security algorithms 2 and 3 are both 128 bits. The master node selects security algorithm 1 based on the security algorithms and priorities supported by the master node and the security algorithms supported by the terminal device, and determines that the key length of security algorithm 1 is greater than the second key length. Further, the master node reselects security algorithm 2 based on the security algorithms and priorities supported by the master node and the security algorithms supported by the terminal device, and determines that the key length of security algorithm 2 is equal to the second key length, then determines that security algorithm 2 is the first security algorithm.

[0263] Example (3): The master node determines the key length of a security algorithm supported by all three nodes based on the key length information of the security algorithms supported by the secondary node, the key length information of the security algorithms supported by the master node, and the key length information of the security algorithms supported by the terminal device. Furthermore, the master node selects a first security algorithm from the security algorithms supported by the master node based on the key lengths of the security algorithms supported by all three nodes, the security algorithms supported by the terminal device, and the priority of the security algorithms supported by the master node, where the key length of the first security algorithm is equal to the key length of the security algorithms supported by all three nodes.

[0264] For example, the master node supports security algorithms 1 to 3, and the priority order of security algorithms 1 to 3 is: security algorithm 1, security algorithm 2, security algorithm 3. The terminal device supports security algorithms 1 to 3. The auxiliary node supports security algorithms 1 and security algorithm 4. The key length of security algorithms 1 and 4 is 256 bits, and the key length of security algorithms 2 and 3 is 128 bits. Then, the master node determines that the key length supported by all three is 256 bits based on the key length of the security algorithm supported by the master node, the key length of the security algorithm supported by the auxiliary node, and the key length of the security algorithm supported by the terminal device. Furthermore, the master node determines that the first security algorithm is security algorithm 1 based on the key length supported by all three (i.e., 256 bits), the security algorithms 1 to 3 supported by the terminal device, and the priority order of the security algorithms supported by the master node.

[0265] In case 2, when the information of the security algorithm supported by the secondary node includes the identifier of the security algorithm supported by the secondary node, the primary node determines the information of the key length of the security algorithm supported by the secondary node based on the identifier of the security algorithm supported by the secondary node, and then determines the first security algorithm based on the information of the key length of the security algorithm supported by the secondary node and the information of the security algorithm supported by the primary node (for details, please refer to the description in the above case 1).

[0266] Optionally, the implementation related to FIG6 further includes the following steps 603 to 605:

[0267] Step 603: The primary node sends a node request to the secondary node. Correspondingly, the secondary node receives the node request from the primary node.

[0268] The node request includes information about the key length of the first security algorithm. This information can be an identifier of the key length of the first security algorithm or an indication of whether the key length of the first security algorithm is a preset key length. The node request is used to request the addition of a secondary node. For details, see the description in step 402.

[0269] In one possible approach, the node request also includes the security algorithm supported by the terminal device. Optionally, the node request may also include the node key of the secondary node, which is used by the secondary node to derive the user plane key of the secondary node. For details, see the description in step 402.

[0270] Step 604: The secondary node determines a second security algorithm based on the key length information of the first security algorithm.

[0271] Specifically, after receiving the node request, the secondary node obtains information about the key length of the first security algorithm from the node request. Based on the information about the key length of the first security algorithm, the secondary node determines a second security algorithm from among the security algorithms supported by the secondary node, where the key length of the first security algorithm is the same as the key length of the second security algorithm. For specific implementation, see the description of Case 1 in Step 403.

[0272] Step 605: The secondary node transmits data with the terminal device according to the second security algorithm.

[0273] Before step 605, the secondary node may also send a node response to the primary node, where the node response is used to indicate that the secondary node has been successfully added. For details not described in detail in step 605, please refer to the description in step 404.

[0274] In the embodiment related to Figure 6 above, the primary node first identifies the secondary node, then determines a first security algorithm based on information about the security algorithms supported by the secondary node, and then requests the addition of the secondary node based on information about the key length of the first security algorithm. The primary and secondary nodes can each determine an appropriate security algorithm, thereby ensuring that the security strength of data transmitted between the primary node and the terminal device matches the security strength of data transmitted between the secondary node and the terminal device, thereby meeting the requirements for secure communication. For example, according to the present application scheme, it is possible to achieve that the key length of the first security algorithm selected by the primary node and the second security algorithm selected by the secondary node are the same.

[0275] Furthermore, in a scenario where the terminal device uses data redundancy transmission services, the two redundant PDU sessions of the terminal device are used to transmit the same data of the service. The data corresponding to the two PDU sessions are protected by the primary node and the secondary node respectively using the selected security algorithms. The key lengths of the two security algorithms are the same, which meets the security assumption of data redundancy transmission.

[0276] FIG7 is a flow chart of the fourth communication method exemplarily provided in this application.

[0277] In step 701, the primary node obtains information about security algorithms supported by the secondary node. For details, please refer to the description of step 601.

[0278] Optionally, before the master node obtains the information about the security algorithms supported by the slave nodes, the following steps may be performed: Step 700 : The master node selects a slave node from the candidate nodes. For details, refer to the description in Step 600 .

[0279] Step 702: The primary node determines a first security algorithm and a second security algorithm based on information about security algorithms supported by the secondary node.

[0280] The first security algorithm is a security algorithm used to protect data transmitted between the primary node and the terminal device. The second security algorithm is a security algorithm used to protect data transmitted between the secondary node and the terminal device. The key length of the first security algorithm is equal to the key length of the second security algorithm.

[0281] In one example, the information about the security algorithms supported by the secondary node includes an identifier of the security algorithms supported by the secondary node. The primary node determines the key length information of the security algorithms supported by the secondary node based on the identifier of the security algorithms supported by the secondary node, and then determines the first security algorithm based on the key length information of the security algorithms supported by the secondary node and the information about the security algorithms supported by the primary node (for details, see the description in step 602). The primary node then determines the second security algorithm based on the key length of the first security algorithm and the identifier of the security algorithm supported by the secondary node.

[0282] Optionally, the information about security algorithms supported by the secondary node also includes information about the key lengths of the security algorithms supported by the secondary node. The primary node may determine the first security algorithm based on the information about the key lengths of the security algorithms supported by the secondary node and the information about the security algorithms supported by the primary node. The primary node may then determine the second security algorithm based on the key length of the first security algorithm and the identifier of the security algorithm supported by the secondary node.

[0283] In another example, the information of the security algorithms supported by the secondary node includes the identifiers of the security algorithms supported by the secondary node, and the primary node determines the first security algorithm and the second security algorithm based on the identifiers of the security algorithms supported by the secondary node and the information of the security algorithms supported by the primary node.

[0284] Exemplarily, the first security algorithm and the second security algorithm are the same, that is, the master node selects security algorithms with the same identifier as the first security algorithm and the second security algorithm based on the identifiers of the security algorithms supported by the slave node and the identifiers of the security algorithms supported by the master node.

[0285] For example, if the secondary node supports security algorithms 1 to 4, the information about the security algorithms supported by the secondary node includes the identifiers of security algorithms 1 to 4; if the primary node supports security algorithms 1 to 3, the information about the security algorithms supported by the primary node includes the identifiers of security algorithms 1 to 3. The primary node can determine, based on the identifiers of the security algorithms supported by the secondary node and the identifiers of the security algorithms supported by the primary node, that both the first security algorithm and the second security algorithm are security algorithm 1, or that both the first security algorithm and the second security algorithm are security algorithm 2, and so on.

[0286] When the secondary node supports multiple security algorithms, the information about the security algorithms supported by the secondary node may also include the priorities of the multiple security algorithms supported by the secondary node. Furthermore, the primary node may determine the first security algorithm and the second security algorithm based on the identifiers of the multiple security algorithms supported by the secondary node, the priorities of the multiple security algorithms supported by the secondary node, and the information about the security algorithms supported by the primary node.

[0287] In conjunction with the above example, the information on the security algorithms supported by the secondary node also includes the priority of the security algorithms supported by the secondary node, where the priority is security algorithm 1 to security algorithm 4. The primary node can determine that the first security algorithm and the second security algorithm are both security algorithm 1 based on the identifiers of the security algorithms supported by the secondary node and the identifiers of the security algorithms supported by the primary node, as well as the priority of the security algorithms supported by the secondary node.

[0288] In this approach, the primary node may also send the identifier of the second security algorithm to the secondary node. Optionally, the identifier of the second security algorithm is included in the node request. Alternatively, the identifier of the second security algorithm is included in another message. For example, the primary node first sends a node request to the secondary node, requesting the addition of the secondary node. The primary node then sends the other message to the secondary node, which includes the identifier of the second security algorithm.

[0289] Optionally, the implementation related to FIG. 7 further includes the following steps 703 to 704 .

[0290] Step 703: The primary node sends a node request to the secondary node. Correspondingly, the secondary node receives the node request from the primary node.

[0291] The node request is used to request adding a secondary node. For details, please refer to the description in step 402.

[0292] Optionally, the node request includes an identifier of the second security algorithm. Exemplarily, the node request is further used to instruct the secondary node to transmit data with the terminal device according to the identifier of the second security algorithm included in the node request.

[0293] Step 704: The secondary node transmits data with the terminal device according to the second security algorithm.

[0294] Specifically, after the secondary node obtains the identifier of the second security algorithm from the node request, it directly determines the second security algorithm based on the identifier of the second security algorithm. For example, if the node request includes the identifier of security algorithm 1, the secondary node may determine that the second security algorithm is security algorithm 1.

[0295] Furthermore, after determining the second security algorithm, the secondary node may verify that the secondary node and / or the terminal device supports the second security algorithm, and then transmit data to the terminal device based on the second security algorithm. Exemplarily, the secondary node obtains from the node request an identifier of the security algorithm supported by the terminal device and an identifier of the second security algorithm, and determines that the security algorithms supported by the terminal device include the second security algorithm.

[0296] Before step 704, the secondary node may also send a node response to the primary node, which indicates that the secondary node has been successfully added. Since the primary node already knows the second security algorithm, the node response may not carry the identifier of the second security algorithm, which helps reduce the amount of transmitted data.

[0297] In the embodiment related to FIG. 7 , the master node determines the first and second security algorithms based on information about the security algorithms supported by the slave node. The master node then sends the identifier of the second security algorithm to the slave node. This ensures that the security strength of data transmitted between the master node and the terminal device matches the security strength of data transmitted between the slave node and the terminal device. For example, the master node can ensure that the key length of the first and second security algorithms is the same, thereby ensuring the security of the communication system.

[0298] Furthermore, in a scenario where the terminal device uses data redundancy transmission services, two redundant PDU sessions of the terminal device are used to transmit the same data of the service. The data corresponding to the two PDU sessions are protected by a first security algorithm and a second security algorithm, respectively. The key lengths of the two security algorithms are the same, which meets the security assumption of data redundancy transmission.

[0299] FIG8 is a flow chart of the fifth communication method exemplified in the present application. For ease of description, the secondary node selected first by the primary node may be referred to as secondary node 1, and the node request sent by the primary node to secondary node 1 may be referred to as node request 1. The secondary node selected later by the primary node may be referred to as secondary node 2, and the node request sent by the primary node to secondary node 2 may be referred to as node request 2.

[0300] Step 801: The master node determines a first security algorithm.

[0301] The first security algorithm is a security algorithm for protecting data transmitted between the master node and the terminal device.

[0302] Specifically, the master node selects the first security algorithm from the security algorithms supported by the master node based on the priority of the security algorithms supported by the master node and the security algorithms supported by the terminal device. Specific examples can be found in the description of step 400.

[0303] In step 802, the primary node sends a node request 1 to the secondary node (i.e., secondary node 1). In response, secondary node 1 receives the node request 1 from the primary node. Node request 1 is used to request the addition of secondary node 1 and includes information about the key length of the first security algorithm.

[0304] Illustratively, the information of the key length of the first security algorithm may be an identifier of the key length of the first security algorithm, or an indication of whether the key length of the first security algorithm is a preset key length. For details, please refer to the description in step 402.

[0305] In one possible approach, the key length of the first security algorithm is a preset key length. Alternatively, it can be understood that, if the master node determines that the key length of the first security algorithm is the preset key length, it may include information about the key length of the first security algorithm (i.e., the preset key length) in node request 1. For example, if the preset key length is 256 bits, if the master node determines that the key length of the first security algorithm is 256 bits, the node request 1 sent to the slave node 1 may include 256 bits; if the master node determines that the key length of the first security algorithm is 128 bits, the node request 1 sent to the slave node 1 may not include 128 bits. Alternatively, it can be understood that both the master node and the slave node support key lengths lower than the preset key length by default, but not necessarily both. When the master node determines that the key length of the first security algorithm is the preset key length, the key length information of the first security algorithm needs to be included in node request 1. However, if the master node determines that the key length of the first security algorithm is lower than the preset key length, the key length information of the first security algorithm may not need to be included in node request 1. This description is also applicable to other solutions in which the node request carries information about the key length of the first security algorithm, such as step 402 , step 603 , and step 805 .

[0306] Optionally, the primary node may select the secondary node 1 from the candidate nodes. For specific implementation, please refer to the description of step 600 above.

[0307] Optionally, the implementation related to FIG8 further includes the following steps 803 to 804.

[0308] Step 803 : The secondary node 1 sends a node response 1 to the primary node. Correspondingly, the primary node receives the node response 1 from the secondary node 1 .

[0309] Among them, node response 1 is the response corresponding to node request 1.

[0310] The node response 1 is used to indicate that the addition of the secondary node 1 fails. Exemplarily, the node response 1 includes a failure indication (eg, a negative acknowledgement (NACK)), which is used to indicate that the addition of the secondary node 1 fails.

[0311] Three examples of the secondary node 1 determining to send a node response 1 to the primary node are provided as follows:

[0312] In Example a1, secondary node 1 obtains information about the key length of the first security algorithm from node request 1. Based on the information about the key length of the first security algorithm, if secondary node 1 determines that it does not support the key length of the first security algorithm, secondary node 1 sends node response 1 to the primary node. For example, if the key length supported by secondary node 1 is 128 bits, and the information about the key length of the first security algorithm included in node request 1 is 256 bits, secondary node 1 may determine that it does not support the key length of the first security algorithm and send node response 1 to the primary node.

[0313] In Example b1, secondary node 1 obtains information about the key length of a first security algorithm from node request 1. Based on the information about the key length of the first security algorithm, if secondary node 1 determines that the key length of the first security algorithm is supported, secondary node 1 then determines a second security algorithm. Furthermore, upon determining that the key lengths of the first security algorithm and the second security algorithm are different, secondary node 1 sends node response 1 to the primary node. For example, if secondary node 1 supports key lengths of 128 bits and 256 bits, and the information about the key length of the first security algorithm included in node request 1 is 256 bits, secondary node 1 may determine that it supports the key length of the first security algorithm. Furthermore, secondary node 1 determines that the key length of the second security algorithm is 128 bits (for example, secondary node 1 determines the second security algorithm based on the priority of the security algorithms supported by secondary node 1, and the key length of the second security algorithm is 128 bits). Secondary node 1 determines that the key length of the first security algorithm (i.e., 256 bits) is different from the key length of the second security algorithm (i.e., 128 bits), and sends node response 1 to the primary node.

[0314] In example c1, secondary node 1 determines the second security algorithm. Further, secondary node 1 determines that the key length of the first security algorithm differs from the key length of the second security algorithm and sends node response 1 to the primary node. For example, the key length information of the first security algorithm included in node request 1 is 256 bits. The key length of the second security algorithm is 128 bits. Secondary node 1 determines that the key length of the first security algorithm (i.e., 256 bits) differs from the key length of the second security algorithm (i.e., 128 bits) and sends node response 1 to the primary node.

[0315] Exemplarily, the node response 1 may further include a reason value corresponding to the failure indication, which is used to indicate the reason why the secondary node 1 returns the failure indication to the primary node. For example, when the reason value is 1, the reason is that the secondary node 1 does not support the key length of the first security algorithm; when the reason value is 2, the reason is that although the secondary node 1 supports the key length of the first security algorithm, the key length of the second security algorithm determined by the secondary node 1 is different from the key length of the first security algorithm; when the reason value is 3, the reason is that the key length of the second security algorithm determined by the secondary node 1 is different from the key length of the first security algorithm, but it does not indicate whether the secondary node 1 supports the key length of the first security algorithm.

[0316] Step 804: The primary node reselects a secondary node (ie, secondary node 2).

[0317] Optionally, the master node selects secondary node 2 from the candidate nodes. For details on this implementation, see the description of step 600 above. It will be appreciated that secondary node 2 is different from secondary node 1, and the master node specifically selects secondary node 2 from the candidate nodes other than secondary node 1. Furthermore, when selecting a secondary node from the candidate nodes, the master node prioritizes secondary node 1 over secondary node 2. Exemplarily, in the measurement report submitted by the terminal device to the master node, the signal strength of secondary node 1 is higher than the signal strength of secondary node 2.

[0318] In step 805, the primary node sends a node request 2 to the secondary node 2. Correspondingly, the secondary node 2 receives the node request 2 from the primary node. The node request 2 is used to request the addition of the secondary node 2. The node request 2 includes information about the key length of the first security algorithm.

[0319] Step 806 : The secondary node 2 sends a node response 2 to the primary node. Correspondingly, the primary node receives the node response 2 from the secondary node 2 .

[0320] Node response 2 is a response corresponding to node request 2. Node response 2 is used to indicate that the secondary node 2 is successfully added. Exemplarily, node response 2 includes a success indication, which is used to indicate that the secondary node 2 is successfully added.

[0321] Three examples of the secondary node 2 determining to send a node response 2 to the primary node are provided as follows:

[0322] In Example a2, secondary node 2 obtains information about the key length of the first security algorithm from node request 2. Based on the information about the key length of the first security algorithm, secondary node 2 determines that secondary node 2 supports the key length of the first security algorithm. Then, based on the key length of the first security algorithm, secondary node 2 determines a second security algorithm, where the key length of the first security algorithm is equal to the key length of the second security algorithm. Secondary node 2 sends node response 2 to the primary node. For example, the secondary node supports security algorithm 1, and the key length of security algorithm 1 is 256 bits. The information about the key length of the first security algorithm included in node request 2 is 256 bits. The secondary node determines that it supports the key length of the first security algorithm, and then, based on the key length of the first security algorithm, determines that the second security algorithm is security algorithm 1, and sends node response 2 to the primary node.

[0323] In example b2, the auxiliary node 2 obtains the information of the key length of the first security algorithm from the node request 2, and determines the second security algorithm based on the information of the key length of the first security algorithm. Further, the auxiliary node 2 determines that the key length of the first security algorithm is the same as the key length of the second security algorithm, and sends a node response 2 to the main node. For example, the auxiliary node supports security algorithm 1, the key length of security algorithm 1 is 256 bits, and the information of the key length of the first security algorithm included in the node request 2 is 256 bits. Then the auxiliary node can determine that it supports the key length of the first security algorithm. Further, the auxiliary node determines that the second security algorithm is security algorithm 1. The auxiliary node determines that the key length of the first security algorithm (i.e., 256 bits) is the same as the key length of the second security algorithm (i.e., 256), and sends a node response 2 to the main node.

[0324] In example c2, secondary node 2 determines the second security algorithm. Further, secondary node 2 determines that the key length of the first security algorithm is the same as the key length of the second security algorithm, and sends node response 2 to the primary node. For example, the secondary node supports security algorithm 1, the key length of security algorithm 1 is 256 bits, and the information about the key length of the first security algorithm included in node request 2 is 256 bits. The secondary node determines that the second security algorithm is security algorithm 1, and the secondary node determines that the key length of the first security algorithm (i.e., 256 bits) is the same as the key length of the second security algorithm (i.e., 256 bits), and sends node response 2 to the primary node.

[0325] Optionally, Node Response 2 includes an identifier of the second security algorithm. Optionally, the master node may obtain the identifier of the second security algorithm from Node Response 2 and send the identifier of the second security algorithm to the terminal device. In this way, the terminal device obtains the identifier of the second security algorithm. Exemplarily, the identifier of the second security algorithm is carried in an RRC connection reconfiguration message sent by the master node to the terminal device.

[0326] Step 807: The secondary node 2 transmits data with the terminal device according to the second security algorithm.

[0327] For details not described in step 807 , please refer to the description in step 404 .

[0328] Based on the relevant embodiment of Figure 8, the present application exemplarily provides three judgment methods for the auxiliary node (i.e., auxiliary node 1 or auxiliary node 2) to send a node response to the main node after receiving the node request. The contents not described in detail in the following three judgment methods can be found in the description of the relevant embodiment of Figure 8. It can be understood that the information of the key length of the first security algorithm may have one or more of the following functions: used for the auxiliary node to determine whether the key length of the first security algorithm is supported, used for the auxiliary node to determine the second security algorithm, used for the auxiliary node to determine whether the key length of the second security algorithm matches the key length of the first security algorithm, or used for the auxiliary node to determine what kind of node response to send to the main node. Among them, the node response is used to indicate that the addition of the auxiliary node failed, or the node response is used to indicate that the addition of the auxiliary node was successful.

[0329] Method A corresponds to the above examples a1 and a2. For the specific process, please refer to the first judgment method of the auxiliary node shown in FIG9 .

[0330] In step A1, the secondary node determines whether it supports a key length of a first security algorithm.

[0331] When the secondary node determines that it does not support the key length of the first security algorithm:

[0332] Step A2: The secondary node sends a node response to the primary node, where the node response indicates that adding the secondary node has failed.

[0333] When the secondary node determines that it supports the key length of the first security algorithm:

[0334] In step A3, the secondary node determines a second security algorithm according to the key length of the first security algorithm.

[0335] Step A4: The secondary node sends a node response to the primary node. The node response is used to indicate that the secondary node is added successfully.

[0336] Method B corresponds to the above-mentioned examples b1 and b2. For the specific process, please refer to the second judgment method of the auxiliary node shown in FIG10 .

[0337] In step B1, the secondary node determines whether it supports the key length of the first security algorithm.

[0338] When the secondary node determines that it does not support the key length of the first security algorithm:

[0339] In step B2, the secondary node sends a node response to the primary node, where the node response is used to indicate that adding the secondary node has failed.

[0340] When the secondary node determines that it supports the key length of the first security algorithm:

[0341] Step B3: The secondary node determines a second security algorithm.

[0342] In step B4, the secondary node determines whether the key length of the first security algorithm is the same as the key length of the second security algorithm.

[0343] When the secondary node determines that the key length of the first security algorithm is different from the key length of the second security algorithm:

[0344] Step B5: The secondary node sends a node response to the primary node. The node response is used to indicate that adding the secondary node fails.

[0345] When the secondary node determines that the key length of the first security algorithm is the same as the key length of the second security algorithm:

[0346] Step B6: The secondary node sends a node response to the primary node. The node response is used to indicate that the secondary node is added successfully.

[0347] Method C corresponds to the above examples c1 and c2. For the specific process, please refer to the third judgment method of the auxiliary node shown in FIG11 .

[0348] Step C1: The secondary node determines a second security algorithm.

[0349] In step C2, the secondary node determines whether the key length of the first security algorithm is the same as the key length of the second security algorithm.

[0350] When the secondary node determines that the key length of the first security algorithm is different from the key length of the second security algorithm:

[0351] In step C3, the secondary node sends a node response to the primary node, where the node response is used to indicate that adding the secondary node has failed.

[0352] When the secondary node determines that the key length of the first security algorithm is the same as the key length of the second security algorithm:

[0353] In step C4, the secondary node sends a node response to the primary node. The node response is used to indicate that the secondary node is added successfully.

[0354] In the above-mentioned embodiments related to Figures 8 to 11, the main node determines the auxiliary node that can be successfully added by sending a node request to the auxiliary node and receiving a node response from the auxiliary node. The auxiliary node that is successfully added can meet the following conditions: the main node and the auxiliary node can each determine a suitable security algorithm, so that the security strength of the data transmitted between the main node and the terminal device is consistent with the security strength of the data transmitted between the auxiliary node and the terminal device, so as to meet the requirements of secure communication. For example, the auxiliary node added according to the solution of the present application can make the key length of the security algorithm selected by the main node and the auxiliary node the same. Furthermore, in a scenario where the terminal device uses data redundancy to transmit a service, two redundant PDU sessions of the terminal device are used to transmit the same data of the service, and the data corresponding to the two PDU sessions are protected by the first security algorithm and the second security algorithm respectively, and the key length of the first security algorithm is the same as the key length of the second security algorithm, that is, the protection strength of the data corresponding to the two PDU sessions is the same, which meets the security assumption of data redundancy transmission.

[0355] It should be noted that, before the embodiments of FIG. 4 to FIG. 8 , the master node may determine that a redundancy condition is satisfied. The redundancy condition includes one or more of the following conditions 1 to 4:

[0356] Condition 1: The terminal device uses data redundancy transmission (such as URLLC) service;

[0357] Condition 2: The network establishes a redundant user plane path for the terminal device;

[0358] Condition 3: The network establishes a redundant PDU session for the terminal device; or

[0359] Condition 4: The network implements redundant transmission for terminal devices.

[0360] In one possible approach, the master node may determine that the redundancy condition is satisfied in the process as shown in FIG. 12 .

[0361] Step 1201: The terminal device sends PDU session request 1 and PDU session request 2 to the AMF.

[0362] Exemplarily, when the terminal device determines that it needs to use the data redundancy transmission service, it sends PDU session request 1 and PDU session request 2 to the AMF. PDU session request 1 carries data network name (DNN) 1 and single network slice selection assistance information (S-NSSAI) 1, and PDU session request 2 carries DNN2 and S-NSSAI2. DNN1 and DNN2 are the same, and S-NSSAI1 and S-NSSAI2 are different.

[0363] In step 1202, AMF selects SMF1 according to DNN1 and S-NSSAI1 in PDU session request 1, and forwards PDU session request 1 to SMF1; selects SMF2 according to DNN2 and S-NSSAI2 in PDU session request 2, and forwards PDU session request 2 to SMF2.

[0364] In step 1203, SMF1 determines that PDU session 1 corresponding to PDU session request 1 is a redundant session based on PDU session policy 1 corresponding to the terminal device. It then generates a redundant sequence number (RSN) 1 and a PDU session pair ID 1. SMF1 sends a redundant session indication 1 to the master node, which carries RSN 1 and PDU session pair ID 1. The PDU session policy 1 corresponding to the terminal device comes from the PCF.

[0365] Similarly, based on PDU Session Request 2 and the PDU Session Policy 2 corresponding to the terminal device, SMF2 determines that PDU Session 2 corresponding to PDU Session Request 2 is a redundant session and generates RSN2 and PDU Session Pair ID2. SMF2 sends Redundant Session Indication 2 to the master node, which carries RSN2 and PDU Session Pair ID2. The PDU Session Policy 2 corresponding to the terminal device comes from the PCF.

[0366] In step 1204, the master node determines that the RSNs carried in the redundant session indication 1 and the redundant session indication 2 are different, and the PDU session pair IDs carried are the same, and then determines that the two PDU sessions corresponding to the redundant session indication 1 and the redundant session indication 2 are redundant sessions of each other, that is, the master node determines that the redundancy condition is met.

[0367] In addition, in the embodiment related to FIG12 , when the terminal device determines that the data redundancy transmission service is required, it may determine RSN1 and PDU session pair ID1, and RSN2 and PDU session pair ID2, where RSN1 and RSN2 are different and PDU session pair ID1 and PDU session pair ID2 are the same. The terminal device sends PDU session request 1 and PDU session request 2 to the AMF. PDU session request 1 carries not only DNN1 and S-NSSAI1, but also RSN1 and PDU session pair ID1. PDU session request 2 carries not only DNN2 and S-NSSAI2, but also RSN2 and PDU session pair ID2. Accordingly, upon receiving PDU session request 1, SMF1 sends redundant session indication 1 to the master node, carrying RSN1 and PDU session pair ID1. Upon receiving PDU session request 2, SMF2 sends redundant session indication 2 to the master node, carrying RSN2 and PDU session pair ID2. Subsequently, the master node determines that the two PDU sessions corresponding to redundant session indication 1 and redundant session indication 2 are redundant sessions, that is, determines that the redundancy condition is met. For any content not described in detail in this solution, please refer to the description of the embodiment related to Figure 12.

[0368] It should also be noted that before the embodiment of Figure 12, the terminal device may not have established a PDU session with the network. Subsequently, when the terminal device determines that the data redundancy transmission service is required, it sends PDU session request 1 and PDU session request 2 to the AMF, and then establishes redundant PDU session 1 and PDU session 2 based on the embodiment of Figure 12. Alternatively, before the embodiment of Figure 12, the terminal device has already established PDU session 0 with the network, and the master node and the terminal device have negotiated a security algorithm (denoted as the third security algorithm). When the terminal device determines that the data redundancy transmission service is required, it sends PDU session request 1 and PDU session request 2 to the AMF, and then establishes redundant PDU session 1 and PDU session 2 based on the embodiment of Figure 12. It can be understood that in the latter possible approach, the master node can reuse the previous third security algorithm, that is, the first security algorithm is the third security algorithm. In this scenario, the master node can determine the secondary node based on the third security algorithm. For details, please refer to the description of the first communication method and the fifth communication method above.

[0369] The step numbers in any of the flowcharts in Figures 4 to 12 are merely examples of the execution process and do not constitute a limitation on the order in which the steps are executed. In the embodiments of the present application, there is no strict execution order between steps that have no temporal dependencies. Not all of the steps shown in the flowcharts are required to be executed. Some steps can be deleted from each flowchart based on actual needs, or other possible steps can be added to each flowchart based on actual needs.

[0370] It should be added that, in the relevant embodiments of Figures 4 to 8, when the master node selects the first security algorithm from the security algorithms supported by the master node, it is necessary to consider the security algorithms supported by the terminal device and the priority of the security algorithms supported by the master node. That is, the first security algorithm selected by the master node is a security algorithm supported by both the master node and the terminal device and has a higher priority. For specific implementation, please refer to the description of node selection security algorithm in the prior art. Similarly, when the auxiliary node selects the second security algorithm from the security algorithms supported by the auxiliary node, it is necessary to consider the security algorithms supported by the terminal device and the priority of the security algorithms supported by the auxiliary node. Furthermore, this application focuses on describing how to ensure that the key length of the first security algorithm is equal to the key length of the second security algorithm, so that the master node protects the data transmitted between the terminal device based on the first security algorithm, and the auxiliary node protects the data transmitted between the terminal device based on the second security algorithm, so as to achieve the security of the communication system. Furthermore, in a scenario where the terminal device uses a data redundant transmission service, the terminal device establishes two redundant PDU sessions, and the data corresponding to the two PDU sessions are protected by a first security algorithm and a second security algorithm, respectively, and the key length of the first security algorithm and the key length of the second security algorithm are the same, that is, the protection strength of the data corresponding to the two PDU sessions is the same, which meets the security assumption of data redundant transmission.

[0371] In addition, this application only describes the differences among the five communication methods. Except for the differences, the five communication methods can refer to each other. In addition, different implementations or different examples in the same communication method can also refer to each other.

[0372] It is understood that to implement the functions described in the above embodiments, the wireless access node includes hardware structures and / or software modules that perform the corresponding functions. Those skilled in the art will readily appreciate that, in conjunction with the various exemplary units and method steps described in the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is implemented in hardware or in a hardware-driven manner by computer software depends on the specific application scenario and design constraints of the technical solution.

[0373] Figures 13 and 14 are schematic diagrams of possible communication devices provided in embodiments of the present application. These communication devices can be used to implement the functions of the wireless access node (primary node or secondary node) in the above-described method embodiments, thereby also achieving the beneficial effects of the above-described method embodiments. The communication device can be a wireless access node as shown in Figure 1, or a module (e.g., a chip) applied to a wireless access node.

[0374] As shown in Figure 13, the communication device 1300 includes a processing module 1301 and a transceiver module 1302. The communication device 1300 is used to implement the function of the wireless access node in the method embodiment described in any one of Figures 4 to 12.

[0375] When the communication device 1300 is used to implement the function of the master node in the method embodiments related to FIG. 4 , FIG. 5 or FIG. 12 :

[0376] Processing module 1301 is configured to determine a secondary node based on the key length of a first security algorithm and the key length of a security algorithm supported by the candidate node. The first security algorithm is a security algorithm used to protect data transmitted between the primary node and the terminal device; or to determine a secondary node based on the key length of a security algorithm supported by the primary node and the key length of a security algorithm supported by the candidate node. The candidate node includes a secondary node. Transceiver module 1302 is configured to send a node request to the secondary node. The node request is used to request the addition of the secondary node.

[0377] In one possible implementation, the key length of the security algorithm supported by the secondary node is not less than the key length of the first security algorithm, or the key length of the security algorithm supported by the secondary node is not less than the maximum key length of the security algorithm supported by the primary node.

[0378] In a possible implementation manner, the node request includes information about the key length of the first security algorithm.

[0379] In one possible implementation, the communication device 1300 also includes a storage module 1303 (not shown in Figure 13), and the storage module 1303 is used to pre-configure information on the key length of the security algorithm supported by the alternative node. The processing module 1301 is also used to obtain the key length of the security algorithm supported by the alternative node from the storage module 1303; or, the control transceiver module 1302 obtains information on the key length of the security algorithm supported by the alternative node from the alternative node.

[0380] In one possible implementation, the processing module 1301 is specifically configured to: determine a secondary node based on the key length of the first security algorithm and the key length of the security algorithm supported by the candidate node when determining that a redundancy condition is satisfied; or determine a secondary node based on the key length of the security algorithm supported by the primary node and the key length of the security algorithm supported by the candidate node. The redundancy condition includes one or more of the following conditions 1 to 4: condition 1, the terminal device uses URLLC service; condition 2, a redundant user plane path is established for the terminal device; condition 3, a redundant PDU session is established for the terminal device; or condition 4, redundant transmission is implemented for the terminal device.

[0381] When the communication device 1300 is used to implement the function of the master node in the method embodiments related to FIG. 6 , FIG. 7 , or FIG. 12 :

[0382] Processing module 1301 is configured to obtain information about security algorithms supported by the secondary node and, based on the information about the security algorithms supported by the secondary node, determine a first security algorithm, where the first security algorithm is a security algorithm used to protect data transmitted between the primary node and the terminal device. Exemplarily, processing module 1301 is further configured to select a secondary node from candidate nodes.

[0383] In a possible implementation manner, the information of the security algorithm supported by the secondary node includes information of the key length of the security algorithm supported by the secondary node and / or an identifier of the security algorithm supported by the secondary node.

[0384] In a possible implementation, the transceiver module 1302 is configured to send a node request to the secondary node, where the node request is used to request adding the secondary node, and the node request includes information about the key length of the first security algorithm.

[0385] In one possible implementation, the communication device 1300 further includes a storage module 1303, which is used to pre-configure information about security algorithms supported by the secondary node. When the processing module 1301 obtains the information about security algorithms supported by the secondary node, it is specifically configured to obtain the information about security algorithms supported by the secondary node from the storage module 1303. In another possible implementation, when the processing module 1301 obtains the information about security algorithms supported by the secondary node, it is specifically configured to control the transceiver module 1302 to obtain the information about security algorithms supported by the secondary node from the secondary node.

[0386] In one possible implementation, the processing module 1301 is specifically configured to: determine a first security algorithm based on information about security algorithms supported by the secondary node when a redundancy condition is determined to be met. The redundancy condition includes one or more of the following conditions 1 to 4: condition 1: the terminal device uses URLLC services; condition 2: a redundant user plane path is established for the terminal device; condition 3: a redundant PDU session is established for the terminal device; or condition 4: redundant transmission is implemented for the terminal device.

[0387] In one possible implementation, the information of the security algorithm includes information about the key length of the security algorithm. When the processing module 1301 determines the first security algorithm based on the information about the security algorithm supported by the secondary node, it is specifically used to: determine the first security algorithm based on the information about the key length of the security algorithm supported by the secondary node and the information about the security algorithm supported by the primary node.

[0388] In one possible implementation, the security algorithm information includes an identifier of the security algorithm. When determining the first security algorithm based on the information about the security algorithms supported by the secondary node, the processing module 1301 is specifically configured to: determine the first security algorithm and a second security algorithm based on the identifier of the security algorithm supported by the secondary node and the information about the security algorithms supported by the primary node, where the second security algorithm is a security algorithm used to protect data transmitted between the secondary node and the terminal device. The transceiver module 1302 is further configured to send the identifier of the second security algorithm to the secondary node.

[0389] When the communication device 1300 is used to implement the function of the master node in the method embodiments related to FIG8 or FIG12 :

[0390] Processing module 1301 is configured to determine a first security algorithm, where the first security algorithm is a security algorithm used to protect data transmitted between the primary node and the terminal device. Transceiver module 1302 is configured to send a node request to a secondary node, requesting the addition of the secondary node. The node request includes information about the key length of the first security algorithm.

[0391] In one possible implementation, the transceiver module 1302 is specifically configured to: send a node request including information about the key length of the first security algorithm to the secondary node if the processing module 1301 determines that a redundancy condition is met. The redundancy condition includes one or more of the following conditions 1 to 4: condition 1: the terminal device uses URLLC services; condition 2: a redundant user plane path is established for the terminal device; condition 3: a redundant PDU session is established for the terminal device; or condition 4: redundant transmission is implemented for the terminal device.

[0392] In a possible implementation manner, when the key length of the first security algorithm is a preset key length, the node request includes information about the key length of the first security algorithm.

[0393] In one possible implementation, the transceiver module 1302 is further configured to receive a node response from the secondary node, the node response being used to indicate a failure to add the secondary node. The processing module 1301 is further configured to reselect a secondary node, and the transceiver module 1302 is further configured to send a node request to the reselected secondary node.

[0394] When the communication device 1300 is used to implement the functions of the secondary node in the method embodiments related to FIG. 4 or FIG. 6 :

[0395] Transceiver module 1302 is configured to receive a node request from a primary node, requesting the addition of a secondary node. The node request includes information about the key length of a first security algorithm used to protect data transmitted between the primary node and a terminal device. Processing module 1301 is configured to determine a second security algorithm based on the key length of the first security algorithm. The second security algorithm is used to protect data transmitted between the secondary node and the terminal device.

[0396] In a possible implementation, the key length of the second security algorithm is the same as the key length of the first security algorithm.

[0397] In a possible implementation, the processing module 1301 is further configured to control the transceiver module 1302 to transmit data with the terminal device according to the second security algorithm.

[0398] When the communication device 1300 is used to implement the function of the secondary node in the method embodiment related to FIG7 :

[0399] The transceiver module 1302 is used to receive a node request from the master node, the node request is used to request the addition of a secondary node, and the node request includes an identifier of the second security algorithm; the processing module 1301 is used to control the transceiver module 1302 to transmit data with the terminal device according to the second security algorithm.

[0400] In a possible implementation, the processing module 1301 is configured to control the transceiver module 1302 to transmit data with the terminal device according to the second security algorithm, and is further configured to determine whether the secondary node and / or the terminal device supports the second security algorithm.

[0401] In a possible implementation, the transceiver module 1302 is further configured to send a node response to the primary node, where the node response is used to indicate that the secondary node is successfully added, and the node response does not carry an identifier of the second security algorithm.

[0402] When the communication device 1300 is used to implement the function of the secondary node in any of the related method embodiments in FIG. 8 to FIG. 11 :

[0403] The transceiver module 1302 is used to receive a node request, which is used to request the addition of a secondary node. The node request includes information on the key length of the first security algorithm, which is a security algorithm used to protect data transmitted between the primary node and the terminal device.

[0404] The processing module 1301 is used to determine that the key length of the first security algorithm is not supported; the transceiver module 1302 is further used to send a node response to the primary node, where the node response is used to indicate that adding the secondary node fails; or,

[0405] The processing module 1301 is configured to select a second security algorithm; when the key length of the first security algorithm is different from the key length of the second security algorithm, the transceiver module 1302 is further configured to send a node response to the primary node, where the node response is used to indicate that the addition of the secondary node has failed; or

[0406] The processing module 1301 is used to select a second security algorithm based on the key length of the first security algorithm; the transceiver module 1302 is also used to send a node response to the master node, and the node response is used to indicate that the secondary node is successfully added, wherein the key length of the first security algorithm is the same as the key length of the second security algorithm.

[0407] A more detailed description of the processing module 1301 and the transceiver module 1302 can be directly obtained by referring to the relevant description in the above method embodiment, and will not be repeated here.

[0408] As shown in Figure 14, communication device 1400 includes a processor 1410 and an interface circuit 1420. Processor 1410 and interface circuit 1420 are coupled to each other. It is understood that interface circuit 1420 can be a transceiver or an input / output interface. Optionally, communication device 1400 may also include a memory 1430 for storing instructions executed by processor 1410, input data required by processor 1410 to execute instructions, or data generated after processor 1410 executes instructions.

[0409] When the communication device 1400 is used to implement the method shown in the relevant method embodiment of any one of Figures 4 to 12, the processor 1410 is used to implement the functions of the above-mentioned processing module 1301, and the interface circuit 1420 is used to implement the functions of the above-mentioned transceiver module 1302.

[0410] When the above-mentioned communication device is a module applied to a wireless access node, the module of the wireless access node implements the functions of the wireless access node in the above-mentioned method embodiment. For example, the wireless access node is a primary node, and the module of the wireless access node receives information from other modules in the wireless access node (such as a radio frequency module or antenna), and the information is sent by the secondary node to the wireless access node; or, the module of the wireless access node sends information to other modules in the wireless access node (such as a radio frequency module or antenna), and the information is sent by the wireless access node to the secondary node. The module of the wireless access node here can be the baseband chip of the wireless access node, or it can be a distributed unit (DU) or other module. The DU here can be a DU under the open radio access network (O-RAN) architecture.

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

[0412] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, which can be stored in random access memory, flash memory, read-only memory, programmable read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only memory, registers, hard disk, removable hard disk, CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and storage medium can be located in an ASIC. In addition, the ASIC can be located in a wireless access node. Of course, the processor and storage medium can also exist as discrete components in the wireless access node.

[0413] In the above embodiments, all or part of the embodiments may be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. A computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions of the embodiments of the present application are performed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, or other programmable device. The computer program or instructions may be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, the computer program or instructions may be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available media may be magnetic media, such as floppy disks, hard disks, or magnetic tapes; optical media, such as digital video disks; or semiconductor media, such as solid-state drives. The computer-readable storage medium may be a volatile or nonvolatile storage medium, or may include both volatile and nonvolatile types of storage media.

[0414] In the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.

[0415] In this application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In the textual description of this application, the character " / " generally indicates that the previous and next associated objects are in an "or" relationship; in the formula of this application, the character " / " indicates that the previous and next associated objects are in a "division" relationship. "Including at least one of A, B and C" can mean: including A; including B; including C; including A and B; including A and C; including B and C; including A, B and C.

[0416] It is understood that the various numbers used in the embodiments of this application are merely for ease of description and are not intended to limit the scope of the embodiments of this application. The order of the sequence numbers of the above-mentioned processes does not necessarily imply a specific order of execution; the order of execution of the processes should be determined by their functions and inherent logic.

Claims

1. A communication method, characterized in that: include: determining the secondary node based on a key length of a first security algorithm and a key length of a security algorithm supported by the candidate node, wherein the first security algorithm is a security algorithm for protecting data transmitted between the primary node and the terminal device, or determining the secondary node based on a key length of a security algorithm supported by the primary node and a key length of a security algorithm supported by the candidate node, wherein the candidate node includes the secondary node; A node request is sent to the secondary node, where the node request is used to request to add the secondary node.

2. The method according to claim 1, wherein The key length of the security algorithm supported by the secondary node is not less than the key length of the first security algorithm, or, The key length of the security algorithm supported by the secondary node is not less than the maximum key length of the security algorithm supported by the primary node.

3. The method according to claim 1 or 2, wherein: The node request includes information about the key length of the first security algorithm.

4. The method according to any one of claims 1 to 3, wherein Also includes: Pre-configure information on the key length of the security algorithm supported by the candidate node; or, Information about the key length of the security algorithm supported by the candidate node is obtained from the candidate node.

5. The method according to any one of claims 1 to 4, wherein The determining of the secondary node according to the key length of the first security algorithm and the key length of the security algorithm supported by the candidate node, or the determining of the secondary node according to the key length of the security algorithm supported by the primary node and the key length of the security algorithm supported by the candidate node, includes: When it is determined that one or more of the following conditions are met, the secondary node is determined based on the key length of the first security algorithm and the key length of the security algorithm supported by the candidate node, or the secondary node is determined based on the key length of the security algorithm supported by the primary node and the key length of the security algorithm supported by the candidate node: The terminal device uses ultra-reliable low-latency communication (URLLC) service; Establishing a redundant user plane path for the terminal device; establishing a redundant protocol data unit (PDU) session for the terminal device; or, Redundant transmission is implemented for the terminal device.

6. A communication method, characterized in that: include: Obtain information about security algorithms supported by secondary nodes; A first security algorithm is determined according to information about security algorithms supported by the secondary node, where the first security algorithm is a security algorithm for protecting data transmitted between the primary node and the terminal device.

7. The method according to claim 6, wherein The information of the security algorithm includes information of the key length of the security algorithm and / or an identifier of the security algorithm.

8. The method according to claim 6 or 7, wherein: Also includes: A node request is sent to the secondary node, where the node request is used to request adding the secondary node, and the node request includes information about the key length of the first security algorithm.

9. The method according to any one of claims 6 to 8, wherein The information of the security algorithm supported by the secondary node is obtained, including: Pre-configure information about security algorithms supported by the secondary node; or, Information about a security algorithm supported by the secondary node is obtained from the secondary node.

10. The method according to any one of claims 6 to 9, wherein The determining the first security algorithm according to the information of the security algorithms supported by the secondary node includes: When it is determined that one or more of the following conditions are met, a first security algorithm is determined according to information about security algorithms supported by the secondary node: The terminal device uses ultra-reliable low-latency communication (URLLC) service; Establishing a redundant user plane path for the terminal device; establishing a redundant protocol data unit (PDU) session for the terminal device; or, Redundant transmission is implemented for the terminal device.

11. The method according to any one of claims 6 to 10, wherein: The information about the security algorithm includes information about a key length of the security algorithm. The determining the first security algorithm based on the information about the security algorithm supported by the secondary node includes: The first security algorithm is determined according to information about the key length of the security algorithm supported by the secondary node and information about the security algorithm supported by the primary node.

12. The method according to any one of claims 6 to 11, wherein: The information about the security algorithm includes an identifier of the security algorithm, and determining the first security algorithm according to the information about the security algorithm supported by the secondary node includes: determining, according to the identifier of the security algorithm supported by the secondary node and the information of the security algorithm supported by the primary node, the first security algorithm and the second security algorithm, where the second security algorithm is a security algorithm for protecting data transmitted between the secondary node and the terminal device; The method further comprises: Sending an identifier of the second security algorithm to the secondary node.

13. A communication method, characterized in that: include: Determining a first security algorithm, where the first security algorithm is a security algorithm for protecting data transmitted between the master node and the terminal device; A node request is sent to the secondary node, where the node request is used to request adding the secondary node, and the node request includes information about the key length of the first security algorithm.

14. The method according to claim 13, wherein Also includes: If one or more of the following conditions are met, a node request is sent to the secondary node: The terminal device uses ultra-reliable low-latency communication (URLLC) service; Establishing a redundant user plane path for the terminal device; Establishing a redundant protocol data unit (PDU) session for the terminal device; or, Redundant transmission is implemented for the terminal device.

15. The method according to claim 13 or 14, characterized in that In a case where the key length of the first security algorithm is a preset key length, the node request includes information about the key length of the first security algorithm.

16. The method according to any one of claims 13 to 15, wherein: Also includes: receiving a node response from the secondary node, where the node response indicates a failure in adding the secondary node; Reselect a secondary node, and send the node request to the reselected secondary node.

17. A communication method, characterized in that: include: receiving a node request from a primary node, the node request being used to request adding a secondary node, the node request including information about a key length of a first security algorithm, where the first security algorithm is a security algorithm used to protect data transmitted between the primary node and a terminal device; A second security algorithm is determined according to information about the key length of the first security algorithm, where the second security algorithm is a security algorithm for protecting data transmitted between the secondary node and the terminal device.

18. The method according to claim 17, wherein The key length of the second security algorithm is the same as the key length of the first security algorithm.

19. A communication method, characterized in that: include: receiving a node request from a primary node, the node request being used to request adding a secondary node, the node request including an identifier of a second security algorithm; Data is transmitted with the terminal device according to the second security algorithm.

20. The method according to claim 19, wherein Before transmitting data with the terminal device according to the second security algorithm, the method further includes: Determine whether the secondary node and / or the terminal device supports the second security algorithm.

21. The method according to claim 19 or 20, wherein: Also includes: A node response is sent to the primary node, where the node response is used to indicate that the secondary node is successfully added, and the node response does not carry an identifier of the second security algorithm.

22. A communication method, characterized in that: include: receiving a node request for requesting to add a secondary node, the node request including information about a key length of a first security algorithm, where the first security algorithm is a security algorithm for protecting data transmitted between the primary node and the terminal device; If it is determined that the key length of the first security algorithm is not supported, sending a node response to the primary node, where the node response is used to indicate that adding the secondary node fails; or, selecting a second security algorithm, and when the key length of the first security algorithm is different from the key length of the second security algorithm, sending a node response to the primary node, the node response being used to indicate a failure to add the secondary node; or, According to the key length of the first security algorithm, a second security algorithm is selected, and a node response is sent to the primary node, where the node response is used to indicate that the secondary node is successfully added, and the key length of the first security algorithm is the same as the key length of the second security algorithm.

23. A communication device, characterized in that: include: A module for performing the method according to any one of claims 1 to 5, or A module for performing the method according to any one of claims 6 to 12, or, A module for performing the method according to any one of claims 13 to 16, or, A module for performing the method of claim 17 or 18, or, A module for performing the method according to any one of claims 19 to 21, or, Modules for performing the method of claim 22.

24. A communication device, characterized in that: The device comprises a processor and an interface circuit, wherein the interface circuit is used to receive signals from other communication devices other than the communication device and transmit them to the processor or send signals from the processor to other communication devices other than the communication device, and the processor executes code instructions through a logic circuit or executes code instructions. For implementing the method according to any one of claims 1 to 5, or For implementing the method according to any one of claims 6 to 12, or, For implementing the method according to any one of claims 13 to 16, or, For implementing the method according to claim 17 or 18, or, For implementing the method according to any one of claims 19 to 21, or, Used to implement the method as claimed in claim 22.

25. A computer-readable storage medium, characterized in that The computer readable storage medium stores a computer program or instruction. When the computer program or instruction is executed by the communication device, Implementing the method according to any one of claims 1 to 5, or, Implementing the method according to any one of claims 6 to 12, or, Implementing the method according to any one of claims 13 to 16, or, Implementing the method according to claim 17 or 18, or, Implementing the method according to any one of claims 19 to 21, or, Implement the method as claimed in claim 22.

26. A computer program product, characterized in that The computer program product includes a computer program or instructions, which, when executed by a communication device, Implementing the method according to any one of claims 1 to 5, or, Implementing the method according to any one of claims 6 to 12, or, Implementing the method according to any one of claims 13 to 16, or, Implementing the method according to claim 17 or 18, or, Implementing the method according to any one of claims 19 to 21, or, Implement the method as claimed in claim 22.

27. A communication system, characterized in that: include: a first communication device and a second communication device; Wherein, the first communication device is used to perform the method according to any one of claims 1 to 5, and the second communication device is used to perform the method according to claim 17 or 18; or The first communication device is used to perform the method according to any one of claims 6 to 12, and the second communication device is used to perform the method according to claim 17 or 18; or The first communication device is used to perform the method according to any one of claims 6 to 12, and the second communication device is used to perform the method according to any one of claims 19 to 21; or The first communication device is used to perform the method according to any one of claims 13 to 16, and the second communication device is used to perform the method according to claim 22.

Citation Information

Patent Citations

  • Security key derivation in dual connectivity

    CN110224982A

  • Key processing method and device, base station and storage medium

    CN111132157A

  • Communication method and device

    CN111194032A

  • Dual-connection communication method, device and system

    CN113068180A

  • Cryptographic algorithm negotiation method and device

    CN118488435A