Method and apparatus for selecting destination address in sidelink, and storage medium
A method for selecting a destination address in a sidelink includes: determining, by a terminal, a discontinuous reception (DRX) parameter and a DRX state of a destination address corresponding to a logical channel on which there is data to be transmitted; and selecting, on the basis of the DRX parameter, the DRX state and a logical channel priority of the logical channel, a destination address configured to transmit the data to be transmitted.
1 . A method for selecting a destination address in a sidelink, the method comprising:
determining, by a terminal with data to be transmitted on the sidelink, a discontinuous reception (DRX) parameter and a DRX state of a destination address corresponding to a logical channel, wherein the data to be transmitted is configured to transmit on the logical channel, and the DRX state is one of a wakeup state or a sleeping state; and
selecting, by the terminal, a destination address configured to transmit the data to be transmitted based on the DRX parameter, the DRX state and a logical channel priority of the logical channel;
wherein the logical channel priority is determined based on a sum of an original logical channel priority and a logical channel priority offset, wherein the logical channel priority offset is determined based on the destination address.
2 . The method of claim 1 , wherein selecting the destination address configured to transmit the data to be transmitted based on the DRX parameter, the DRX state and the logical channel priority comprises:
determining logical channels each with a bucket size greater than zero among logical channels corresponding to one or more destination addresses; and
selecting a destination address corresponding to a logical channel with a highest logical channel priority among the logical channels each with the bucket size greater than zero;
wherein the one or more destination addresses are configured with the DRX parameter and the DRX state is the wakeup state.
3 . The method of claim 1 , further comprising:
transmitting the data to be transmitted in respective logical channels corresponding to the destination address on a sidelink grant resource.
4 . The method of claim 3 , wherein the sidelink grant resource is determined based on downlink control information, or is autonomously selected by the terminal.
5 . The method of claim 1 , further comprising:
ignoring a destination address configured with the DRX parameter and being in the sleeping state;
wherein the destination address is configured with the DRX parameter and the DRX state is the sleeping state.
6 . The method of claim 1 , wherein selecting the destination address configured to transmit the data to be transmitted based on the DRX parameter, the DRX state and the logical channel priority comprises:
determining a logical channel with a bucket size greater than zero among logical channels on which there are data to be transmitted; and
selecting a destination address corresponding to a logical channel with a highest logical channel priority among the logical channels with the bucket size greater than zero;
wherein the destination address is configured with the DRX parameter and the DRX state is the wakeup state.
7 . A device for selecting a destination address in a sidelink, comprising:
a processor; and
a memory for storing instructions executable by the processor;
wherein, the processor is configured to:
determine a discontinuous reception (DRX) parameter and a DRX state of a destination address corresponding to a logical channel, wherein data to be transmitted is configured to transmit on the logical channel, and the DRX state is one of a wakeup state or a sleeping state; and
select a destination address configured to transmit the data to be transmitted based on the DRX parameter, the DRX state and a logical channel priority of the logical channel;
wherein the logical channel priority is determined based on a sum of an original logical channel priority and a logical channel priority offset, wherein the logical channel priority offset is determined based on the destination address.
8 . The device of claim 7 , wherein the processor is configured to:
determine logical channels each with a bucket size greater than zero among logical channels corresponding to one or more destination addresses; and
select a destination address corresponding to a logical channel with a highest logical channel priority among the logical channels each with the bucket size greater than zero;
wherein the one or more destination addresses are configured with the DRX parameter and the DRX state is the wakeup state.
9 . The device of claim 7 , wherein the processor is further configured to:
transmit the data to be transmitted in respective logical channels corresponding to the destination address on a sidelink grant resource.
10 . The device of claim 9 , wherein the designated sidelink grant resource is determined based on downlink control information, or is autonomously selected by the terminal.
11 . The device of claim 7 , wherein the processor is configured to:
determine a logical channel with a bucket size greater than zero among logical channels on which there are data to be transmitted; and
select a destination address corresponding to a logical channel with a highest logical channel priority among the logical channels with the bucket size greater than zero;
wherein the destination address is configured with the DRX parameter and the DRX state is the wakeup state.
12 . A non-transitory computer-readable storage medium, wherein when instructions in the storage medium are executed by a processor of a mobile terminal, the mobile terminal is caused to perform the method for selecting a destination address in a sidelink, the method comprising:
determining, by a terminal with data to be transmitted on the sidelink, a discontinuous reception (DRX) parameter and a DRX state of a destination address corresponding to a logical channel, wherein the data to be transmitted is configured to transmit on the logical channel, and the DRX state is one of a wakeup state or a sleeping state; and
selecting, by the terminal, a destination address configured to transmit the data to be transmitted based on the DRX parameter, the DRX state and a logical channel priority of the logical channel;
wherein the logical channel priority is determined based on a sum of an original logical channel priority and a logical channel priority offset, wherein the logical channel priority offset is determined based on the destination address.
13 . The non-transitory computer-readable storage medium of claim 12 , wherein selecting the destination address configured to transmit the data to be transmitted based on the DRX parameter, the DRX state and the logical channel priority of the logical channel comprises:
determining logical channels each with a bucket size greater than zero among logical channels corresponding to one or more destination addresses; and
selecting a destination address corresponding to a logical channel with a highest logical channel priority among the logical channels each with the bucket size greater than zero;
wherein the one or more destination addresses are configured with the DRX parameter and the DRX state is the wakeup state.
14 . The non-transitory computer-readable storage medium of claim 12 , wherein the method further comprises:
transmitting the data to be transmitted in respective logical channels corresponding to the destination address on a sidelink grant resource.
15 . The non-transitory computer-readable storage medium of claim 12 , wherein the sidelink grant resource is determined based on downlink control information, or is autonomously selected by the terminal.
16 . The non-transitory computer-readable storage medium of claim 12 , wherein the method further comprises:
determining a logical channel with a bucket size greater than zero among logical channels on which there are data to be transmitted; and
selecting a destination address corresponding to a logical channel with a highest logical channel priority among the logical channels with the bucket size greater than zero;
wherein the destination address is configured with the DRX parameter and the DRX state is the wakeup state.