US-20260129437-A1 - COMMUNICATION METHOD AND APPARATUS
Abstract
A communication method, performed by a first communication apparatus or a chip in the first communication apparatus, includes sending a first request to a first discovery key management network element. The first request is used to request a security parameter. The first request includes an identifier of a proximity-based service. The proximity-based service is a proximity-based service provided by a second communication apparatus for the first communication apparatus. The communication method also includes receiving the security parameter and an identifier of the security parameter from the first discovery key management network element. The communication method further includes receiving a discovery message from the second communication apparatus. The discovery message carries the identifier of the proximity-based service and the identifier of the security parameter. The communication method additionally includes processing the discovery message based on the security parameter corresponding to the identifier of the security parameter.
Inventors
- Ao LEI
- Yizhuang Wu
- He Li
Assignees
- HUAWEI TECHNOLOGIES CO., LTD.
Dates
- Publication Date
- 20260507
- Application Date
- 20251106
- Priority Date
- 20230511
Claims (20)
- 1 . A communication method, performed by a first communication apparatus or a chip in the first communication apparatus, the communication method comprising: sending a first request to a first discovery key management network element, wherein the first request is used to request a security parameter, the first request comprises an identifier of a proximity-based service, and the proximity-based service is a proximity-based service provided by a second communication apparatus for the first communication apparatus; receiving the security parameter and an identifier of the security parameter from the first discovery key management network element; receiving a discovery message from the second communication apparatus, wherein the discovery message carries the identifier of the proximity-based service and the identifier of the security parameter; and processing the discovery message based on the security parameter corresponding to the identifier of the security parameter.
- 2 . The communication method according to claim 1 , wherein the discovery message is encrypted based on the security parameter, and the identifier of the security parameter in the discovery message is not encrypted.
- 3 . The communication method according to claim 1 , wherein the proximity-based service is a relay service, the second communication apparatus is used as a relay user equipment, and the first communication apparatus is used as a remote user equipment.
- 4 . The communication method according to claim 3 , wherein the identifier of the proximity-based service is a relay service code, and the identifier of the security parameter is an identifier of a home public land mobile network of the relay user equipment.
- 5 . The communication method according to claim 4 , wherein the relay service code corresponds to an identifier of one or more networks, and the identifier of the one or more networks comprises the identifier of the home public land mobile network of the relay user equipment.
- 6 . The communication method according to claim 1 , wherein the first request is a relay discovery key request.
- 7 . The communication method according to claim 1 , wherein the first discovery key management network element is a discovery key management network element in a home public land mobile network of the first communication apparatus.
- 8 . The communication method according to claim 1 , wherein the discovery message is a discovery announcing message or a discovery response message.
- 9 . A first communication apparatus, comprising: at least one processor coupled to at least one memory storing instructions that, when executed by the at least one processor, cause the first communication apparatus to: send a first request to a first discovery key management network element, wherein the first request is used to request a security parameter, the first request comprises an identifier of a proximity-based service, and the proximity-based service is a proximity-based service provided by a second communication apparatus for the first communication apparatus; receive the security parameter and an identifier of the security parameter from the first discovery key management network element; receive a discovery message from the second communication apparatus, wherein the discovery message carries the identifier of the proximity-based service and the identifier of the security parameter; and process the discovery message based on the security parameter corresponding to the identifier of the security parameter.
- 10 . The first communication apparatus according to claim 9 , wherein the discovery message is encrypted based on the security parameter, and the identifier of the security parameter in the discovery message is not encrypted.
- 11 . The first communication apparatus according to claim 9 , wherein the proximity-based service is a relay service, the second communication apparatus is used as a relay user equipment, and the first communication apparatus is used as a remote user equipment.
- 12 . The first communication apparatus according to claim 11 , wherein the identifier of the proximity-based service is a relay service code, and the identifier of the security parameter is an identifier of a home public land mobile network of the relay user equipment.
- 13 . The first communication apparatus according to claim 12 , wherein the relay service code corresponds to an identifier of one or more networks, and the identifier of the one or more networks comprises the identifier of the home public land mobile network of the relay user equipment.
- 14 . The first communication apparatus according to claim 9 , wherein the first request is a relay discovery key request.
- 15 . The first communication apparatus according to claim 9 , wherein the first discovery key management network element is a discovery key management network element in a home public land mobile network of the first communication apparatus.
- 16 . The first communication apparatus according to claim 9 , wherein the discovery message is a discovery announcing message or a discovery response message.
- 17 . A non-transitory computer-readable storage medium having instructions stored thereon that, when executed by a processor, cause a first communication apparatus to: send a first request to a first discovery key management network element, wherein the first request is used to request a security parameter, the first request comprises an identifier of a proximity-based service, and the proximity-based service is a proximity-based service provided by a second communication apparatus for the first communication apparatus; receive the security parameter and an identifier of the security parameter from the first discovery key management network element; receive a discovery message from the second communication apparatus, wherein the discovery message carries the identifier of the proximity-based service and the identifier of the security parameter; and process the discovery message based on the security parameter corresponding to the identifier of the security parameter.
- 18 . The non-transitory computer-readable storage medium according to claim 17 , wherein the discovery message is encrypted based on the security parameter, and the identifier of the security parameter in the discovery message is not encrypted.
- 19 . The non-transitory computer-readable storage medium according to claim 17 , wherein the proximity-based service is a relay service, the second communication apparatus is used as a relay user equipment, and the first communication apparatus is used as a remote user equipment.
- 20 . The non-transitory computer-readable storage medium according to claim 19 , wherein the identifier of the proximity-based service is a relay service code, and the identifier of the security parameter is an identifier of a home public land mobile network of the relay user equipment.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a continuation of International Application No. PCT/CN2024/091535, filed on May 7, 2024, which claims priority to Chinese Patent Application No. 202310532302.2, filed on May 11, 2023. The disclosures of the aforementioned applications are hereby incorporated by reference in their entireties. TECHNICAL FIELD This application relates to the field of mobile communication technologies, and in particular, to a communication method and an apparatus. BACKGROUND Device-to-device (D2D) communication allows direct communication between user equipments (UEs), and the user equipments may share spectrum resources with cell users under control of a cell network, so that utilization of the spectrum resources is effectively improved. Currently, D2D communication has been applied to a 5th generation mobile communication (4G) network system, and is collectively referred to as a proximity-based service (ProSe) communication service. Currently, due to low reliability of a device discovery process in proximity-based service communication, efficiency of the discovery process is reduced. SUMMARY This application provides a communication method and an apparatus, to improve reliability of a device discovery process in proximity-based service communication, so as to improve efficiency of the discovery process. According to a first aspect, a communication method is provided. The method may be implemented by a first discovery key management network element or a component in the first discovery key management network element. The first discovery key management network element may be a discovery name management function or a proximity-based service key management function. The component in this application may include, for example, at least one of a chip, a chip system, a processor, a transceiver, a processing unit, or a transceiver unit. For example, the communication method is performed by the first discovery key management network element. The method may be implemented in the following steps: The first discovery key management network element may receive a first request from a first communication apparatus, where the first request may be used to request a security parameter used for discovery of a terminal apparatus. The first request may include an identifier of a proximity-based service, and the proximity-based service may be a proximity-based service provided by a second communication apparatus for the first communication apparatus. Based on the first request, the first discovery key management network element may obtain, from a first network element, an identifier of a target network corresponding to the identifier of the proximity-based service, where the target network is a home network of the second communication apparatus. Then, the first discovery key management network element may further send a second request to a second discovery key management network element in the target network, to request the security parameter. The first discovery key management network element may receive the security parameter from the second discovery key management network element, and send the security parameter to the first terminal apparatus. According to the method in the first aspect, the identifier of the proximity-based service corresponds to the identifier of the target network. Therefore, the first discovery key management network element may obtain, from the first network element, the identifier of the target network corresponding to the identifier of the proximity-based service, and may send a security parameter obtaining request, namely, a second request, to the second discovery key management network element in the target network, to request a security parameter of a discovery process in the proximity-based service. Therefore, the first discovery key management network element can accurately and efficiently determine the second discovery key management network element. This reduces a waste of signaling, processing resources, and a delay in a security parameter obtaining process, and improves efficiency of the discovery process. In a possible implementation, the first discovery key management network element may send a network identifier obtaining request to the first network element, where the network identifier obtaining request is used to request the identifier of the target network, and the network identifier obtaining request includes the identifier of the proximity-based service. Therefore, the first discovery key management network element may send, to the first network element, the identifier of the proximity-based service carried in the first request, to accurately obtain the identifier of the target network. In a possible implementation, if the first discovery key management network element obtains, from the first network element, at least one first network identifier including the identifier of the target network, and the first discovery key management network ele