Communication method and device
Abstract
The present disclosure discloses example communication methods, apparatuses, and mediums. One example method includes selecting a target side identifier corresponding to a communication type by a media access control (MAC) entity of a first terminal device, where the communication type includes unicast communication, multicast communication, or broadcast communication, and the target side identifier includes a destination layer 2 identifier or a destination layer 1 identifier. A first sidelink logical channel (LCH) is obtained by the MAC entity of the first terminal device, where the first sidelink LCH is an LCH having a highest priority among LCHs that correspond to the target side identifier and the communication type and that have data. A transmission resource to data on the first sidelink LCH is allocated by the MAC entity of the first terminal device.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1. A communication method, comprising:
selecting, by a media access control (MAC) entity of a first terminal device, a target side identifier corresponding to a communication type, wherein the communication type comprises unicast communication, multicast communication, or broadcast communication, and wherein the target side identifier comprises a destination layer 2 identifier or a destination layer 1 identifier;
obtaining, by the MAC entity of the first terminal device, a first sidelink logical channel (LCH), wherein the first sidelink LCH is an LCH having a relatively highest priority among LCHs that correspond to the target side identifier and the communication type and that have data;
allocating, by the MAC entity of the first terminal device, a transmission resource to data on the first sidelink LCH; and
encapsulating, by the MAC entity of the first terminal device, LCHs whose target side identifiers and communication types are the same into one transport block (TB) for sending.
2. The method according to claim 1 , wherein, if there is a remaining transmission resource after the MAC entity of the first terminal device allocates the transmission resource to the first sidelink LCH, the method further comprises:
sorting, by the first terminal device, the LCHs whose target side identifiers and communication types are the same in descending order of logical channel priorities; and
allocating the remaining transmission resource to a data packet on a remaining LCH in the LCHs according to the descending order.
3. The method according to claim 1 , wherein the selecting, by a MAC entity of a first terminal device, a target side identifier corresponding to a communication type comprises:
determining, by the MAC entity of the first terminal device, a communication type and a target side identifier corresponding to an LCH that has data and that has a relatively highest priority; and
using, by the MAC entity of the first terminal device, the determined target side identifier as the target side identifier corresponding to the communication type.
4. The method according to claim 1 , wherein the method further comprises:
sending, by the first terminal device, assistance information to a network device, wherein the assistance information indicates traffic model information and the communication type; and
receiving, by the first terminal device, a scheduling resource from the network device, wherein the scheduling resource comprises a transmission resource of a sidelink used to send traffic data.
5. The method according to claim 1 , wherein the method further comprises:
sending, by the first terminal device, sidelink control information and traffic data to a second terminal device, wherein the sidelink control information comprises (1) a first target side identifier and the communication type or (2) the communication type, and wherein the traffic data comprises the data on the first sidelink LCH.
6. The method according to claim 5 , wherein the method further comprises:
determining, by the first terminal device, the traffic data based on a second target side identifier and the communication type, where the second target side identifier is used to identify the traffic data.
7. The method according to claim 1 , wherein the method further comprises:
sending, by the first terminal device, traffic information to a network device, wherein the traffic information indicates the communication type.
8. A communication apparatus, comprising:
at least one processor, and
one or more memories coupled to the at least one processor and storing programming instructions for execution by the at least one processor to perform operations comprising:
selecting a target side identifier corresponding to a communication type, wherein the communication type comprises unicast communication, multicast communication, or broadcast communication, and wherein the target side identifier comprises a destination layer 2 identifier or a destination layer 1 identifier;
obtaining a first sidelink logical channel (LCH), wherein the first sidelink LCH is an LCH having a relatively highest priority among LCHs that correspond to the target side identifier and the communication type and that have data;
allocating a transmission resource to data on the first sidelink LCH; and
encapsulating LCHs whose target side identifiers and communication types are the same into one transport block TB for sending.
9. The communication apparatus according to claim 8 , wherein, if there is a remaining transmission resource after the transmission resource is allocated to the first sidelink LCH, the operations further comprises:
sorting the LCHs whose target side identifiers and communication types are the same in descending order of logical channel priorities, and
allocating the remaining transmission resource to a data packet on a remaining LCH in the LCHs according to the descending order.
10. The communication apparatus according to claim 8 , wherein the operations further comprises:
determining a communication type and a target side identifier corresponding to an LCH that has data and that has a relatively highest priority; and
using the determined target side identifier as the target side identifier corresponding to the communication type.
11. The communication apparatus according to claim 8 , wherein the operations further comprises:
sending assistance information to a network device, wherein the assistance information indicates traffic model information and the communication type; and
receiving a scheduling resource from the network device, wherein the scheduling resource comprises a transmission resource of a sidelink used to send traffic data.
12. The communication apparatus according to claim 8 , wherein the operations further comprises:
sending sidelink control information and traffic data to a second terminal device, wherein the sidelink control information comprises (1) a first target side identifier and the communication type or (2) the communication type, and wherein the traffic data comprises the data on the first sidelink LCH.
13. The communication apparatus according to claim 8 , wherein the operations further comprise:
sending traffic information to a network device, wherein the traffic information indicates the communication type.
14. The communication apparatus according to claim 12 , wherein the operations further comprise:
determining the traffic data based on a second target side identifier and the communication type, where the second target side identifier is used to identify the traffic data.
15. A non-transitory computer-readable storage medium having stored computer programs, the computer programs being executable by one or more processors, and when executed, cause the one or more processors to:
select a target side identifier corresponding to a communication type, wherein the communication type comprises unicast communication, multicast communication, or broadcast communication, and wherein the target side identifier comprises a destination layer 2 identifier or a destination layer 1 identifier;
obtain a first sidelink logical channel (LCH), wherein the first sidelink LCH is an LCH having a relatively highest priority among LCHs that correspond to the target side identifier and the communication type and that have data;
allocate a transmission resource to data on the first sidelink LCH; and
encapsulate LCHs whose target side identifiers and communication types are the same into one transport block TB for sending.
16. The non-transitory computer-readable storage medium according to claim 15 , the computer programs being executable by the one or more processors, and, if there is a remaining transmission resource after the transmission resource is allocated to the first sidelink LCH, the computer programs, when executed, further cause the one or more processors to:
sort the LCHs whose target side identifiers and communication types are the same in descending order of logical channel priorities; and
allocate the remaining transmission resource to a data packet on a remaining LCH in the LCHs according to the descending order.
17. The non-transitory computer-readable storage medium according to claim 15 , the computer programs being executable by the one or more processors, and when executed, further cause the one or more processors to:
determine a communication type and a target side identifier corresponding to an LCH that has data and that has a relatively highest priority; and
use the determined target side identifier as the target side identifier corresponding to the communication type.
18. The non-transitory computer-readable storage medium according to claim 15 , the computer programs being executable by the one or more processors, and when executed, further cause the one or more processors to:
send assistance information to a network device, wherein the assistance information indicates traffic model information and the communication type; and
receive a scheduling resource from the network device, wherein the scheduling resource comprises a transmission resource of a sidelink used to send traffic data.
19. The non-transitory computer-readable storage medium according to claim 15 , the computer programs being executable by the one or more processors, and when executed, further cause the one or more processors to:
send sidelink control information and traffic data to a second terminal device, wherein the sidelink control information comprises (1) a first target side identifier and the communication type or (2) the communication type, and wherein the traffic data comprises the data on the first sidelink LCH.
20. The non-transitory computer-readable storage medium according to claim 15 , the computer programs being executable by the one or more processors, and when executed, further cause the one or more processors to:
sending traffic information to a network device, wherein the traffic information indicates the communication type.Join the waitlist — get patent alerts
Track US12058648B2 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.