Path selection method, device, and system
AssigneeHuawei Technologies Co., Ltd.
InventorsDa Wang, Jian Wang
Life of this patent
Estimating the term…
Abstract
The present invention relates to the communications field, and discloses a path selection method, a device, and a system, to resolve a problem in the prior art that if a distance between two terminal devices performing direct communication is relatively long or channel quality changes relatively greatly, the two terminal devices cannot perform D2D communication. A specific solution is: A first device receives first discovery information sent by a second device, adds an ID of the first device to the first discovery information, and sends the first discovery information to which the ID of the first device is added, so that a destination device can determine a transmission path after receiving the first discovery information. The present invention is used for path selection.
Claims14
A path selection method, comprising:
- receiving, by a third device, M pieces of discovery information, wherein an mth discovery information of the M pieces of discovery information comprises an identifier (ID) of the third device, an ID of a second device, and IDs of Nm relay devices, or the mth discovery information of the M pieces of discovery information comprises the ID of the second device and the IDs of the Nm relay devices, wherein M and Nm are positive integers, and m is an integer within [1, M];
- determining, by the third device, one piece of discovery information of the M pieces of discovery information as first discovery information, and generating first path information according to the first discovery information, wherein the first path information comprises an ID of a relay device, the ID of the third device, and the ID of the second device in the first discovery information, or the first path information comprises the IDs of the relay devices and the ID of the second device in the first discovery information;
- and
- sending, by the third device, the first path information.
A device configured to perform path selection, the device comprising:
- a processor;
- and
- memory coupled to the processor, the memory comprising instructions that, when executed by the processor, cause the device to:
- receive M pieces of discovery information, wherein an Mth discovery information of the M pieces of discovery information comprises an identifier (ID) of the device, an ID of a second device, and IDs of Nm relay devices, or the Mth discovery information of the M pieces of discovery information comprises the ID of the second device and the IDs of the Nm relay devices, wherein M and Nm are positive integers, and m is an integer within [1, M],
- determine one piece of discovery information of the M pieces of discovery information as first discovery information, and generate first path information according to the first discovery information, wherein the first path information comprises an ID of a relay device, the ID of the device, and the ID of the second device in the first discovery information, or the first path information comprises the IDs of the relay devices and the ID of the second device in the first discovery information, and
- send the first path information.
Dependencies are inferred from the claim text.