| CPC H04W 40/246 (2013.01) [H04L 45/02 (2013.01); H04L 45/44 (2013.01); H04W 40/28 (2013.01)] | 20 Claims |

|
1. A communication apparatus, comprises:
a processor; and
a memory, configured to store a computer program, the processor is configured to execute the computer program stored in the memory, to cause the processor to:
receive a first data packet sent by a previous-hop forwarding node or a first sending node, wherein:
the first data packet includes a first initial identifier, a first next-hop identifier, and an identifier of a first receiving node;
the first initial identifier includes an identifier of the previous-hop forwarding node or an identifier of the first sending node;
the first next-hop identifier includes a first identifier; and
the identifier of the first receiving node is usable to detect whether a forwarding node stores the identifier of the first receiving node, wherein the forwarding node:
is configured to forward data between at least one sending node and at least one receiving node;
stores the first identifier and a second identifier;
the first identifier and the second identifier are useable to establish sidelink (SL) communication for the first sending node and the first receiving node; and
there is a mapping relationship between the first identifier and the second identifier;
determine, at a backhaul adaptation protocol (BAP) layer, an identifier of a next-hop node obtained by the forwarding node by searching for, based on an identifier to which the first next-hop identifier is mapped, a routing table that is associated with the identifier to which the first next-hop identifier is mapped;
obtain the identifier of the next-hop node from the routing table; and
forward the first data packet to a node corresponding to the identifier of the next-hop node, wherein at a media access control (MAC) layer in the forwarding node;
the first initial identifier in the first data packet is set to the second identifier; and
the first next-hop identifier in the first data packet is set to the identifier of the next-hop node.
|