Sidelink communication method and apparatus

IN606043BActive Publication Date: 2026-10-14HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
IN202337031030
Authority / Receiving Office
IN · IN
Patent Type
Patents
Current Assignee / Owner
Filing Date
2023-05-01
Publication Date
2026-10-14
Estimated Expiration
2040-10-21

AI Technical Summary

Technical Problem

In sidelink communication, the receiving end UE often fails to receive data or signaling that supports multicast or broadcast discontinuous reception (DRX) due to mismatched transmission and reception resources, affecting communication quality.

Method used

A method where the terminal device determines if data or signaling supports multicast or broadcast DRX and obtains corresponding resources, ensuring both the transmitting and receiving ends use matching resources for successful data or signaling transmission and reception.

Benefits of technology

This approach ensures that data or signaling supporting multicast or broadcast DRX is successfully received, thereby improving the quality of sidelink communication by aligning transmission and reception resources.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

Provided in the embodiments of the present application are a sidelink communication method and apparatus. The method comprises: when a first terminal device (a sending end) has first data or first signaling to be sent, the first terminal device first determining whether the first data or first signaling supports multicast or broadcast SL DRX; and when the first data or first signaling supports multicast or broadcast SL DRX, the first terminal device acquiring SL resources corresponding to the multicast or broadcast SL DRX, and sending the first data or first signaling by using the SL resources corresponding to the multicast or broadcast SL DRX. SL resources used by a sending end for sending first data or first signaling are SL resources corresponding to multicast or broadcast SL DRX, and a terminal device as a receiving end also performs reception on the SL resources corresponding to the multicast or broadcast SL DRX, so that it can be ensured that the first data or first signaling supporting the multicast or broadcast SL DRX can be successfully received by the terminal device as the receiving end, thereby improving the quality of SL communication.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] This application relates to communication technologies, and inparticular, to a sidelink communication method and an apparatus.BACKGROUND

[0002] User equipment (user equipment, UE) may communicate with eachother through a network or may directly communicate with each other. Directcommunication between the UEs is also referred to as sidelink (sidelink, SL)communication. In the SL communication, data is transmitted between two UEsthrough a PC5 air interface. A typical application of the SL communication is avehicle to everything (vehicle to everything, V2X) scenario. In the V2X scenario,one vehicle is one UE.

[0003] In a process of the SL communication, to reduce power consumption ofthe UEs, transmitting end UE or receiving end UE may use a discontinuousreception (discontinuous reception, DRX) mechanism. The DRX mechanismmeans that when the UE has no data to be sent or received, the UE turns off atransmitter or a receiver in a period of time to reduce power consumption. A DRXcycle includes an active time (active time) and a sleep time (or referred to as aninactive time). The UE sends or receives data in the active time, and does not sendor receive data in the sleep time. In the conventional technology, the UE maysupport SL DRX based on a unicast manner, and / or support SL DRX based on abroadcast manner and a multicast manner.

[0004] However, when the transmitting end UE sends data or signaling thatsupports multicast or broadcast SL DRX, an SL transmission resource used by thetransmitting end UE may not correspond to an SL receiving resource used by thereceiving end UE in a broadcast and multicast SL DRX state. Consequently, thereceiving end UE cannot receive the data or signaling that supports multicast orbroadcast SL DRX, and quality of SL communication is affected.SUMMARY

[0005] Embodiments of this application provide a sidelink communicationmethod and an apparatus, to avoid a miss of a service or signaling that supportsmulticast or broadcast SL DRX, and improve quality of SL communication.

[0006] A first aspect of this application provides a sidelink communicationmethod, applied to a first terminal device. The method includes: determining thatfirst data or first signaling supports first DRX, where the first DRX is multicast orbroadcast SL DRX; obtaining a first SL resource, where the first SL resource is anSL resource corresponding to the first DRX; and sending the first data or the firstsignaling on the first SL resource. When sending corresponding data or signalingthat supports multicast or broadcast SL DRX, the first terminal device obtains aresource corresponding to multicast or broadcast SL DRX, and sends the data orsignaling by using a resource corresponding to multicast or broadcast SL DRX.Because both a sending resource used by a transmitting end and a receiving resourceused by a receiving end are both resources corresponding to multicast or broadcastSL DRX, it can be ensured that the corresponding data or signaling that supportsmulticast or broadcast SL DRX is successfully received by the receiving end,thereby improving quality of SL communication.

[0007] In an example manner, the determining that first data or first signalingsupports first DRX includes: An access stratum receives first indication informationfrom an upper layer, where the first indication information indicates that the firstdata or the first signaling supports multicast or broadcast SL DRX.

[0008] In an example manner, the first indication information includes: aservice or a quality of service QoS flow associated with the first data supportsmulticast or broadcast SL DRX.

[0009] In an example manner, the obtaining a first SL resource includes:sending a first request message to a network device, where the first request messageis for requesting the first SL resource; and receiving information about the first SLresource sent by the network device.

[0010] Optionally, the first request message includes second indicationinformation, and the second indication information indicates that an SL resourcerequired by data or signaling corresponding to a destination or a QoS flow is an SLresource corresponding to multicast or broadcast DRX.

[0011] Alternatively, before the first terminal device sends the first requestmessage to the network device, the first terminal device sends second indicationinformation to the network device, where the second indication informationindicates that an SL resource required by data or signaling corresponding to adestination or a QoS flow is an SL resource corresponding to multicast or broadcastDRX.

[0012] Optionally, the first request message is any one of the followingmessages: an SL scheduling request SR, an SL buffer status report BSR, and a userassistance information UAI message.

[0013] When the first request message is any one of the following messages: anSL scheduling request SR, an SL buffer status report BSR, and a user assistanceinformation UAI message, optionally, the second indication information is carriedin a sidelink user information SUI message.

[0014] In an example manner, the first request message is a dedicated SL SR,and the first SL resource is allocated by the network device to the first terminaldevice based on the dedicated SL SR.

[0015] In another example manner, when the first request message is thededicated SL SR, before the first terminal device sends the dedicated SL SR to thenetwork device, the first terminal device sends an SUI message to the networkdevice, where the SUI message includes the second indication information, and thefirst terminal device receives the dedicated SL SR configured by the network device.

[0016] In still another example manner, when the first request message is an SLSR, the SL SR includes the second indication information. The first SL resource isallocated by the network device to the first terminal device based on the secondindication information.

[0017] In an example manner, when the first request message is an SL BSR, thefirst terminal device sends the SL BSR to the network device by using a dedicatedLCG or a dedicated destination index. The first SL resource is allocated by thenetwork device to the first terminal device based on the dedicated LCG or thededicated destination index, or is predefined in a protocol.

[0018] In another example manner, when the first request message is an SL BSR,before the first terminal device sends the SL BSR to the network device by usingthe dedicated LCG or the dedicated destination index, the first terminal device sendsan SUI message to the network device, where the SUI message includes the secondindication information, the first terminal device receives configuration informationthat is of the dedicated LCG or the dedicated destination index and that is sent bythe network device, and the dedicated LCG or the dedicated destination index isconfigured by the network device based on the second indication information.

[0019] In still another example manner, when the first request message is an SLBSR, the SL BSR includes the second indication information. The first SL resourceis allocated by the network device to the first terminal device based on the secondindication information.

[0020] In still another example manner, when the first request message is an SLBSR, before sending the SL BSR to the network device, the first terminal devicesends an SUI to the network device, where the SUI includes the second indicationinformation.

[0021] In still another example manner, the first request message is an SL BSRin a specific format, and the SL BSR in the specific format is specially forrequesting an SL resource corresponding to multicast or broadcast DRX. The firstSL resource is allocated by the network device to the first terminal device based ona format of the SL BSR.

[0022] In an example manner, when the first request message is a UAI message,the UAI message includes the second indication information. The first SL resourceis allocated by the network device to the first terminal device based on the secondindication information.

[0023] In another example manner, when the first request message is a UAImessage, before sending the UAI message to the network device, the first terminaldevice sends an SUI message to the network device, where the SUI messageincludes the second indication information. The first SL resource is a semipersistentscheduling SPS resource, and the first SL resource is allocated by thenetwork device to the first terminal device based on the second indicationinformation and the UAI message.

[0024] Optionally, the first signaling includes one or more pieces of thefollowing signaling: a message in an SL unicast connection establishment process,a message in a relay UE discovery process, an SL capability related message of UE,and a first PC5 RRC reconfiguration message.

[0025] In another example manner, that the first terminal device obtains a firstsidelink SL resource includes: The first terminal device obtains the first SL resourceby measuring an idle SL resource.

[0026] In an example manner, that the first terminal device sends the first dataor the first signaling on the first SL resource includes: The first terminal device onlyselects or preferentially selects, from to-be-transmitted destinations, a destinationcorresponding to the first data or the first signaling as a destination for transmission.

[0027] Only the destination corresponding to the first data or the first signalingis selected or preferentially selected from the to-be-transmitted destinations fortransmission, so that it can be ensured that the first data or the first signaling ispreferentially transmitted, thereby avoiding delayed transmission or discarding ofthe first data or the first signaling due to LCP.

[0028] In another example manner, that the first terminal device sends the firstdata or the first signaling on the first SL resource includes: The first terminal deviceonly selects or preferentially selects, from to-be-transmitted logical channels, alogical channel corresponding to the first data or the first signaling as a logicalchannel for transmission.

[0029] Only the logical channel corresponding to the first data or the firstsignaling is selected or preferentially selected from the to-be-transmitted logicalchannels for transmission, so that it can be ensured that the first data or the firstsignaling is preferentially transmitted, thereby avoiding delayed transmission ordiscarding of the first data or the first signaling due to LCP.

[0030] A second aspect of this application provides a sidelink communicationmethod, applied to a network device. The method includes: receiving a first requestmessage sent by a first terminal device, where the first request message is forrequesting a first sidelink SL resource, the first SL resource is an SL resourcecorresponding to first discontinuous reception DRX, and the first DRX is multicastor broadcast DRX; and allocating the first SL resource to the first terminal devicebased on the first request message. A transmitting end requests, from the networkdevice by sending the first request message, a resource corresponding to multicastor broadcast SL DRX, and the network device allocates, to the transmitting endbased on the first request message, a resource corresponding to multicast orbroadcast SL DRX. Because both a sending resource used by the transmitting endand a receiving resource used by a receiving end are SL resources corresponding tomulticast or broadcast, it can be ensured that data or signaling that supportsmulticast or broadcast SL DRX is successfully received by the receiving end,thereby improving quality of SL communication.

[0031] In an example manner, the first request message includes secondindication information, and the second indication information indicates that an SLresource required by data or signaling corresponding to a destination or a QoS flowis an SL resource corresponding to multicast or broadcast DRX.

[0032] In an example manner, before that the network device receives a firstrequest message sent by a first terminal device, the method further includes: Thenetwork device receives second indication information sent by the first terminaldevice, where the second indication information indicates that an SL resourcerequired by data or signaling corresponding to a destination or a QoS flow is an SLresource corresponding to multicast or broadcast DRX.

[0033] Optionally, the first request message is any one of the followingmessages: an SL scheduling request SR, an SL buffer status report BSR, and a userassistance information UAI message.

[0034] Optionally, the first request message is any one of the followingmessages: an SL scheduling request SR, an SL buffer status report BSR, and a userassistance information UAI message, and the second indication information iscarried in a sidelink user information SUI message.

[0035] In an example manner, the first request message is a dedicated SL SR,the dedicated SL SR is for requesting an SL resource corresponding to multicast orbroadcast SL DRX, and the network device determines, based on the dedicated SLSR, that a resource requested by the SL SR is a resource corresponding to multicastor broadcast SL DRX, and allocates the first SL resource to the first terminal device.

[0036] In another example manner, before the network device receives thededicated SL SR, the network device receives an SUI message sent by the firstterminal device, where the SUI message includes the second indication information,and the network device configures the dedicated SL SR for the first terminal devicebased on the second indication information.

[0037] In still another example manner, when the first request message is an SLSR, the SL SR includes the second indication information, and the network deviceallocates the first SL resource to the first terminal device based on the secondindication information.

[0038] In an example manner, when the first request message is an SL BSR, theSL BSR is sent by the first terminal device to the network device by using adedicated LCG or a dedicated destination index. The network device determines,based on the dedicated LCG or the dedicated destination index, that the resourcerequested by the SL BSR is a resource corresponding to multicast or broadcast SLDRX, and allocates the first SL resource to the first terminal device.

[0039] In another example manner, when the first request message is an SL BSR,before the network device receives the SL BSR, the network device receives an SUImessage sent by the first terminal device, where the SUI message includes thesecond indication information, and the first terminal device configures thededicated LCG or the dedicated destination index for the SL BSR based on thesecond indication information.

[0040] In still another example manner, when the first request message is an SLBSR, the SL BSR includes the second indication information. The network deviceallocates the first SL resource to the first terminal device based on the secondindication information.

[0041] In still another example manner, when the first request message is an SLBSR, before the network device receives the SL BSR, the network device receivesan SUI message sent by the first terminal device, where the SUI includes secondindication information, and the network device allocates the first SL resource to thefirst terminal device based on the second indication information and the SL BSR.

[0042] In still another example manner, the first request message is an SL BSRin a specific format, and the SL BSR in the specific format is specially forrequesting an SL resource corresponding to multicast or broadcast DRX. Thenetwork device allocates the first SL resource to the first terminal device based onthe format of the SL BSR.

[0043] In an example manner, when the first request message is a UAI message,the UAI message includes the second indication information. The network deviceallocates the first SL resource to the first terminal device based on the secondindication information.

[0044] In another example manner, when the first request message is a UAImessage, before receiving the UAI message, the network device receives an SUImessage sent by the first terminal device, where the SUI message includes thesecond indication information. The first SL resource is the first SL resourceallocated by the network device to the first terminal device based on the secondindication information and the UAI message, where the first SL resource is a semipersistentscheduling SPS resource.

[0045] Optionally, the first signaling includes one or more pieces of thefollowing signaling: a message in an SL unicast connection establishment process,a message in a relay UE discovery process, an SL capability related message of UE,and a first PC5 radio resource control RRC reconfiguration message.

[0046] A third aspect of this application provides a sidelink communicationmethod. An access stratum receives first indication information from an upper layer,where the first indication information indicates that first data or first signalingsupports first discontinuous reception DRX, and the first DRX is multicast orbroadcast SL DRX; and activates the first DRX when it is determined, based on thefirst indication information, that currently to-be-received data or signaling supportsthe first DRX.

[0047] A fourth aspect of this application provides a sidelink communicationmethod, applied to a second terminal device, and including: deactivating firstdiscontinuous reception DRX at a first moment, where the first DRX is multicastor broadcast sidelink SL DRX, the first moment is a receiving moment of an SLunicast connection establishment message or a receiving moment of a discoveryrequest message, and activating the first DRX at a second moment, where thesecond moment is a receiving moment of an SL unicast connection establishmentaccept message, a receiving moment of a first PC5 radio resource control RRCreconfiguration message, a completion moment of unicast connection DRXconfiguration, or a timeout moment of a first timer.

[0048] In the method, a receiving end terminal device disables the first DRXbetween the first moment and the second moment. Disabling the first DRX meansthat the receiving end terminal device receives data in all time periodscorresponding to a normal SL resource, and is not limited to receiving data only onan SL resource corresponding to multicast or broadcast SL DRX. Therefore, it canbe ensured that the receiving end terminal device successfully receives signaling ordata that supports multicast or broadcast SL DRX, thereby improving quality of SLcommunication.

[0049] In an example manner, the terminal device starts the first timer at thefirst moment.

[0050] In an example manner, the terminal device deactivates first DRX at afirst moment includes:

[0051] The terminal device deactivates the first DRX after a preset time isdelayed at the first moment.

[0052] A fifth aspect of this application provides a sidelink communicationmethod, applied to a second terminal device, and including: receiving SCI sent bya first terminal device; and when the second terminal device is in a multicast orbroadcast SL DRX state and a resource corresponding to a TB indicated by the SCIdoes not belong to or partially belongs to an SL resource corresponding to multicastor broadcast SL DRX, skipping receiving the TB indicated by the SCI, or receivingthe TB indicated by the SCI, but skipping starting a HARQ RTT timer or aninactivity timer corresponding to the SCI.

[0053] In this embodiment, after the second terminal device receives the SCI,the HARQ RTT timer or the INACTIVITY timer corresponding to the TB indicatedby the SCI is not started, so that subsequent receiving of correspondingretransmitted data can be avoided, thereby reducing energy consumption of aterminal device.

[0054] A sixth aspect of this application provides a first terminal device,including:a determining module, configured to determine that first data or firstsignaling supports first discontinuous reception DRX, where the first DRX ismulticast or broadcast sidelink SL DRX;an obtaining module, configured to obtain a first SL resource, where thefirst SL resource is an SL resource corresponding to the first DRX; anda sending module, configured to send the first data or the first signalingon the first SL resource.

[0055] In an example manner, the determining module is specificallyconfigured to receive first indication information from an upper layer of the firstterminal device, where the first indication information indicates that the first dataor the first signaling supports multicast or broadcast SL DRX.

[0056] In an example manner, the first indication information includes: aservice or a quality of service QoS flow associated with the first data supportsmulticast or broadcast SL DRX.

[0057] In an example manner, the obtaining module is specifically configuredto: send a first request message to a network device, where the first request messageis for requesting the first SL resource; and receive information about the first SLresource sent by the network device.

[0058] Optionally, the first request message includes second indicationinformation, and the second indication information indicates that an SL resourcerequired by data or signaling corresponding to a destination or a QoS flow is an SLresource corresponding to multicast or broadcast DRX.

[0059] Alternatively, the obtaining module is further configured to: beforesending the first request message to the network device, send second indicationinformation to the network device, where the second indication informationindicates that an SL resource required by data or signaling corresponding to adestination or a QoS flow is an SL resource corresponding to multicast or broadcastDRX.

[0060] Optionally, the first request message is any one of the followingmessages: an SL scheduling request SR, an SL buffer status report BSR, and a userassistance information UAI message.

[0061] When the first request message is any one of the following messages: anSL scheduling request SR, an SL buffer status report BSR, and a user assistanceinformation UAI message, optionally, the second indication information is carriedin a sidelink user information SUI message.

[0062] In an example manner, the first request message is a dedicated SL SR,and the first SL resource is allocated by the network device to the first terminaldevice based on the dedicated SL SR.

[0063] In another example manner, when the first request message is thededicated SL SR, before the obtaining module sends the dedicated SL SR to thenetwork device, the obtaining module sends an SUI message to the network device,where the SUI message includes the second indication information, and theobtaining module receives the dedicated SL SR configured by the network device.

[0064] In still another example manner, when the first request message is an SLSR, the SL SR includes the second indication information. The first SL resource isallocated by the network device to the first terminal device based on the secondindication information.

[0065] In an example manner, when the first request message is an SL BSR, theobtaining module is specifically configured to send the SL BSR to the networkdevice by using a dedicated LCG or a dedicated destination index. The first SLresource is allocated by the network device to the first terminal device based on thededicated LCG or the dedicated destination index, or is predefined in a protocol.

[0066] In another example manner, when the first request message is an SL BSR,before sending the SL BSR to the network device by using the dedicated LCG orthe dedicated destination index, the obtaining module sends an SUI message to thenetwork device, where the SUI message includes the second indication information,and receives configuration information that is of the dedicated LCG or the dedicateddestination index and that is sent by the network device, and the dedicated LCG orthe dedicated destination index is configured by the network device based on thesecond indication information.

[0067] In still another example manner, when the first request message is an SLBSR, the SL BSR includes the second indication information. The first SL resourceis allocated by the network device to the first terminal device based on the secondindication information.

[0068] In still another example manner, when the first request message is an SLBSR, before sending the SL BSR to the network device, the obtaining module sendsan SUI to the network device, where the SUI includes the second indicationinformation.

[0069] In still another example manner, when the first request message is an SLBSR in a specific format, the SL BSR in the specific format is specially forrequesting an SL resource corresponding to multicast or broadcast DRX. The firstSL resource is allocated by the network device to the first terminal device based ona format of the SL BSR.

[0070] In an example manner, when the first request message is a UAI message,the UAI message includes the second indication information. The first SL resourceis allocated by the network device to the first terminal device based on the secondindication information.

[0071] In another example manner, when the first request message is a UAImessage, before sending the UAI message to the network device, the obtainingmodule sends an SUI message to the network device, where the SUI messageincludes the second indication information. The first SL resource is a semipersistentscheduling SPS resource, and the first SL resource is allocated by thenetwork device to the first terminal device based on the second indicationinformation and the UAI message.

[0072] Optionally, the first signaling includes one or more pieces of thefollowing signaling: a message in an SL unicast connection establishment process,a message in a relay UE discovery process, an SL capability related message of UE,and a first PC5 radio resource control RRC reconfiguration message.

[0073] In another example manner, the obtaining module is specificallyconfigured to obtain the first SL resource by measuring an idle SL resource.

[0074] In an example manner, the sending module is specifically configured toonly select or preferentially select, from to-be-transmitted destinations, adestination corresponding to the first data or the first signaling as a destination fortransmission.

[0075] In another example manner, the sending module is specificallyconfigured to only select or preferentially select, from to-be-transmitted logicalchannels, a logical channel corresponding to the first data or the first signaling as alogical channel for transmission.

[0076] The first terminal device provided in the sixth aspect and theimplementations of this application may be configured to perform the methodprovided in the first aspect and the implementations of this application. Technicaleffects are similar, and details are not described herein again.

[0077] A seventh aspect of this application provides a network device,including:a receiving module, configured to receive a first request message sentby a first terminal device, where the first request message is for requesting a firstsidelink SL resource, the first SL resource is an SL resource corresponding to firstdiscontinuous reception DRX, and the first DRX is multicast or broadcast DRX;andan allocation module, configured to allocate the first SL resource to thefirst terminal device based on the first request message.

[0078] In an example manner, the first request message includes secondindication information, and the second indication information indicates that an SLresource required by data or signaling corresponding to a destination or a QoS flowis an SL resource corresponding to multicast or broadcast DRX.

[0079] In another example manner, the receiving module is further configuredto: before receiving the first request message, receive second indication informationsent by the first terminal device, where the second indication information indicatesthat an SL resource required by data or signaling corresponding to a destination ora QoS flow is an SL resource corresponding to multicast or broadcast DRX.

[0080] Optionally, the first request message is any one of the followingmessages: an SL scheduling request SR, an SL buffer status report BSR, and a userassistance information UAI message.

[0081] When the first request message is any one of the following messages: anSL scheduling request SR, an SL buffer status report BSR, and a user assistanceinformation UAI message, optionally, the second indication information is carriedin a sidelink user information SUI message.

[0082] In an example manner, the first request message is a dedicated SL SR,the dedicated SL SR is for requesting an SL resource corresponding to multicast orbroadcast SL DRX, and the allocation module is specifically configured to:determine, based on the dedicated SL SR, that a resource requested by the SL SR isa resource corresponding to multicast or broadcast SL DRX, and allocate the firstSL resource to the first terminal device.

[0083] In another example manner, before receiving the dedicated SL SR, thereceiving module further receives an SUI message sent by the first terminal device,where the SUI message includes the second indication information, and the networkdevice further includes a configuration module, configured to configure thededicated SL SR for the first terminal device based on the second indicationinformation.

[0084] In still another example manner, when the first request message is an SLSR, the SL SR includes the second indication information, and the allocationmodule is specifically configured to allocate the first SL resource to the firstterminal device based on the second indication information.

[0085] In an example manner, when the first request message is an SL BSR, theSL BSR is sent by the first terminal device to the network device by using adedicated LCG or a dedicated destination index. The allocation module isspecifically configured to: determine, based on the dedicated LCG or the dedicateddestination index, that the resource requested by the SL BSR is a resourcecorresponding to multicast or broadcast SL DRX, and allocate the first SL resourceto the first terminal device.

[0086] In another example manner, when the first request message is an SL BSR,before receiving the SL BSR, the receiving module further receives an SUI messagesent by the first terminal device, where the SUI message includes the secondindication information, and the allocation module is specifically configured toconfigure the dedicated LCG or the dedicated destination index for the SL BSRbased on the second indication information and the SL BSR.

[0087] In still another example manner, when the first request message is an SLBSR, the SL BSR includes the second indication information. The network deviceallocates the first SL resource to the first terminal device based on the secondindication information.

[0088] In still another example manner, when the first request message is an SLBSR, before the network device receives the SL BSR, the network device receivesan SUI message sent by the first terminal device. The SUI includes secondindication information. The network device further includes a configuration module,configured to allocate the first SL resource to the first terminal device based on thesecond indication information.

[0089] In still another example manner, the first request message is an SL BSRin a specific format, and the SL BSR in the specific format is specially forrequesting an SL resource corresponding to multicast or broadcast DRX. Theallocation module is specifically configured to allocate the first SL resource to thefirst terminal device based on the format of the SL BSR.

[0090] In an example manner, when the first request message is a UAI message,the UAI message includes the second indication information. The allocation moduleis specifically configured to allocate the first SL resource to the first terminal devicebased on the second indication information.

[0091] In another example manner, when the first request message is a UAImessage, before receiving the UAI message, the receiving module receives an SUImessage sent by a first network device, where the SUI message includes the secondindication information. The allocation module is specifically configured to allocatethe first SL resource to the first terminal device based on the second indicationinformation and the UAI message, where the first SL resource is a semi-persistentscheduling SPS resource.

[0092] Optionally, the first signaling includes one or more pieces of thefollowing signaling: a message in an SL unicast connection establishment process,a message in a relay UE discovery process, an SL capability related message of UE,and a first PC5 radio resource control RRC reconfiguration message.

[0093] The network device provided in the seventh aspect and theimplementations of this application may be configured to perform the methodprovided in the second aspect and the implementations of this application. Technicaleffects are similar, and details are not described herein again.

[0094] An eighth aspect of this application provides a second terminal device,including:a receiving module, configured to receive first indication informationfrom an upper layer of the second terminal device, where the first indicationinformation indicates that first data or first signaling supports first discontinuousreception DRX, and the first DRX is multicast or broadcast SL DRX;a determining module, configured to determine, based on the firstindication information, that currently to-be-received data or signaling supports thefirst DRX; andan activation module, configured to activate the first DRX.

[0095] The second terminal device provided in the eighth aspect of thisapplication may be configured to perform the method provided in the third aspectof this application, and technical effects are similar. Details are not described hereinagain.

[0096] A ninth aspect of this application provides a terminal device, including:a deactivation module, configured to deactivate first discontinuousreception DRX at a first moment, where the first DRX is multicast or broadcastsidelink SL DRX, and the first moment is a receiving moment of an SL unicastconnection establishment message or a receiving moment of a discovery requestmessage; andan activation module, configured to activate the first DRX at a secondmoment, where the second moment is a receiving moment of an SL unicastconnection establishment accept message, a receiving moment of a first PC5 radioresource control RRC reconfiguration message, a completion moment of unicastconnection DRX configuration, or a timeout moment of a first timer.

[0097] In an example manner, the terminal device starts the first timer at thefirst moment.

[0098] In an example manner, the deactivation module is specificallyconfigured to deactivate the first DRX after a preset time is delayed at the firstmoment.

[0099] The terminal device provided in the eighth aspect and theimplementations of this application may be configured to perform the methodprovided in the fourth aspect and the implementations of this application. Technicaleffects are similar, and details are not described herein again.

[00100] A tenth aspect of this application provides a second terminal device,including:a receiving module, configured to receive SCI sent by a first terminaldevice; andthe receiving module being further configured to: when the secondterminal device is in a multicast or broadcast SL DRX state and a resourcecorresponding to a TB indicated by the SCI does not belong to or partially belongsto an SL resource corresponding to multicast or broadcast SL DRX, skip receivingthe TB indicated by the SCI, or receive the TB indicated by the SCI, but skip startinga HARQ RTT timer or an inactivity timer corresponding to the SCI.

[00101] The second terminal device provided in the tenth aspect of thisapplication may be configured to perform the method provided in the fifth aspectof this application, and technical effects are similar. Details are not described hereinagain.

[00102] An eleventh aspect of this application provides a terminal device,including a processor, a memory, and a transceiver. The memory is configured tostore instructions. The transceiver is configured to communicate with anotherdevice. The processor is configured to execute the instructions stored in the memory,so that the terminal device performs any method provided in the first aspect, thethird aspect, the fourth aspect, the fifth aspect, and the implementations of thisapplication.

[00103] A twelfth aspect of this application provides a network device, includinga processor, a memory, and a transceiver. The memory is configured to storeinstructions. The transceiver is configured to communicate with another device. Theprocessor is configured to execute the instructions stored in the memory, so that thenetwork device performs any method provided in the second aspect and theimplementations of this application.

[00104] A thirteenth aspect of this application provides a computer-readablestorage medium. The computer-readable storage medium stores instructions. Whenthen the instructions are executed, a computer is enabled to perform any methodprovided in the first aspect, the third aspect, the fourth aspect, the fifth aspect, andthe implementations of this application.

[00105] A fourteenth aspect of this application provides a computer-readablestorage medium. The computer-readable storage medium stores instructions. Whenthe instructions are executed, a computer is enabled to perform any methodprovided in the second aspect and the implementations of this application.

[00106] A fifteenth aspect of this application provides a computer programproduct. The computer program product includes instructions. When theinstructions are executed, a computer is enabled to perform any method providedin the first aspect, the third aspect, the fourth aspect, the fifth aspect, and theimplementations of this application.

[00107] A sixteenth aspect of this application provides a computer programproduct. The computer program product includes instructions. When theinstructions are executed, a computer is enabled to perform any method providedin the second aspect and the implementations of this application.

[00108] A seventeenth aspect of this application provides a communicationsystem, including a first terminal device, a second terminal device, and a networkdevice. The first terminal device is configured to perform any method provided inthe first aspect and the implementations of this application. The second terminaldevice is configured to perform the method provided in the third aspect of thisapplication. The network device is configured to perform any method provided inthe second aspect and the implementations of this application.

[00109] According to the sidelink communication method and the apparatusprovided in embodiments of this application, when the first terminal device (thetransmitting end) has to-be-sent first data or first signaling, the first terminal devicefirst determines whether the first data or the first signaling supports multicast orbroadcast SL DRX. When the first data or the first signaling supports multicast orbroadcast SL DRX, the first terminal device obtains an SL resource correspondingto multicast or broadcast SL DRX, and sends the first data or the first signaling byusing the SL resource corresponding to multicast or broadcast SL DRX. The SLresource used by the transmitting end to send the first data or the first signaling isan SL resource corresponding to multicast or broadcast SL DRX, and the receivingend terminal device also receives the first data or the first signaling on an SLresource corresponding to multicast or broadcast SL DRX. Therefore, it can beensured that the receiving end terminal device can successfully receive the first dataor the first signaling that supports multicast or broadcast SL DRX, therebyimproving SL communication quality.BRIEF DESCRIPTION OF DRAWINGS

[00110] FIG. 1 is a schematic diagram of a network architecture to which thisapplication is applicable;

[00111] FIG. 2 is a schematic diagram of a unicast connection establishmentprocess of SL DRX;

[00112] FIG. 3 is a schematic diagram of an SL resource used for multicast orbroadcast SL DRX;

[00113] FIG. 4 is another schematic diagram of an SL resource used for multicastor broadcast SL DRX;

[00114] FIG. 5 is a flowchart of a sidelink communication method according toEmbodiment 1 of this application;

[00115] FIG. 6 is a flowchart of a sidelink communication method according toEmbodiment 2 of this application;

[00116] FIG. 7 is a flowchart of signaling of a sidelink communication methodaccording to Embodiment 3 of this application;

[00117] FIG. 8 is a flowchart of signaling of a sidelink communication methodaccording to Embodiment 4 of this application;

[00118] FIG. 9 is a flowchart of signaling of a sidelink communication methodaccording to Embodiment 5 of this application;

[00119] FIG. 10 is a schematic diagram of an SL resource of a terminal device;

[00120] FIG. 11 is a schematic diagram of sending data by a terminal device;

[00121] FIG. 12 is a flowchart of a sidelink communication method according toEmbodiment 6 of this application;

[00122] FIG. 13 is a schematic diagram of a structure of a first terminal deviceaccording to Embodiment 7 of this application;

[00123] FIG. 14 is a schematic diagram of a structure of a network deviceaccording to Embodiment 8 of this application;

[00124] FIG. 15 is a schematic diagram of a structure of a second terminal deviceaccording to Embodiment 9 of this application;

[00125] FIG. 16 is a schematic diagram of a structure of a second terminal deviceaccording to Embodiment 10 of this application; and

[00126] FIG. 17 is a schematic diagram of a structure of a terminal deviceaccording to Embodiment 11 of this application.DESCRIPTION OF EMBODIMENTS

[00127] The following describes the technical solutions in embodiments of thisapplication with reference to the accompanying drawings in embodiments of thisapplication. In this application, "at least one" means one or more, and "a pluralityof" means two or more. A term "and / or" describes an association relationshipbetween associated objects and represents that three relationships may exist. Forexample, A and / or B may represent the following cases: Only A exists, both A andB exist, and only B exists, where A and B may be singular or plural. The character" / " generally indicates an "or" relationship between the associated objects. At leastone of the following items (pieces) or a similar expression thereof refers to anycombination of these items, including any combination of singular items (pieces)or plural items (pieces). For example, at least one (piece) of a, b, or c may represent:a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c may be singular orplural. In addition, to clearly describe the technical solutions in embodiments of thisapplication, terms such as "first" and "second" are used in embodiments of thisapplication to distinguish between same items or similar items that providebasically same functions or purposes. A person skilled in the art may understandthat the terms such as "first" and "second" do not limit a quantity and an executionsequence. For example, "first" in a first device and "second" in a second device inembodiments of this application are merely used to distinguish between differentdevices.

[00128] It should be noted that, in this application, terms "for example" or "suchas" are used to represent giving an example, an illustration, or a description. Anyembodiment or design scheme described as an "example" or "for example" in thisapplication should not be explained as being more preferred or having moreadvantages than another embodiment or design scheme. Exactly, use of the termssuch as "for example" or "example" is intended to present a related concept in aspecific manner.

[00129] FIG. 1 is a schematic diagram of a network architecture to which thisapplication is applicable. As shown in FIG. 1, the network architecture includes anetwork device (for example, a base station) 11, a first terminal device 12, and asecond terminal device 13. The network device 11 communicates with the firstterminal device 12 and the second terminal device 13 through a Uu air interface.The first terminal device 12 communicates with the second terminal device 13through a PC5 air interface. The communication through the PC5 interface is alsoreferred to as SL communication. FIG. 1 is merely an example for description, anddoes not constitute a limitation. The network architecture may further include morenetwork devices and terminal devices.

[00130] In a scenario of the SL communication, the first terminal device 12 andthe second terminal device 13 may be located within coverage of a same base station(for example, the base station 11), or may be located within coverage of differentbase stations. Alternatively, one terminal device is located within coverage of a basestation, and the other terminal device is located out of coverage of the base station.Alternatively, both the terminal devices are located out of coverage (out of coverage)of the base station. One transmitting end terminal device may perform SLcommunication with one or more receiving end terminal devices. From aperspective of the receiving end terminal device, one receiving end terminal devicemay also perform SL communication with one or more transmitting end terminaldevices.

[00131] The terminal device in embodiments of this application is also referredto as a terminal (terminal), user equipment (user equipment, UE), an access terminal,a subscriber unit, a subscriber station, a mobile station, a remote station, a remoteterminal, a mobile device, a user terminal, a wireless communication device, a useragent, or a user apparatus. The terminal device may be a station (station, ST) in awireless local area network (wireless local area network, WLAN), or may be acellular phone, a cordless phone, a session initiation protocol (session initiationprotocol, SIP) phone, a wireless local loop (wireless local loop, WLL) station, apersonal digital processing (personal digital assistant, PDA) device, a handhelddevice having a wireless communication function, a computing device, or anotherprocessing device connected to a wireless modem, a wearable device, an in-vehicledevice, a road side unit (road side unit, RSU), and a next-generation communicationsystem, for example, a terminal device in a fifth generation (5-generation, in a 5G)network, a terminal device in a future evolved public land mobile Network (publicland mobile network, PLMN) network, a terminal device in a new radio (new radio,NR) communication system, or the like.

[00132] The network device in embodiments of this application may be referredto as an access network device, a base station, or the like. The base station may bean access point (access point, AP) in a WLAN, a base transceiver station (basetransceiver station, BTS) in a global system for mobile communication (globalsystem for mobile communication, GSM) or code division multiple access (codedivision multiple access, CDMA), or may be a NodeB (NodeB, NB) in WCDMA,or may be an evolved NodeB (evolved nodeB , eNB, or eNodeB) in LTE, or a relaystation or an access point, a new generation NodeB (new generation nodeB,gNodeB) in an NR system, or the like. Optionally, the gNodeB may be deployed ina form that a central unit (central unit, CU) and a distributed unit (distributed unit,DU) are separate.

[00133] A typical application of SL communication is V2X communication. Forexample, the V2X communication includes vehicle-to-vehicle communication(vehicle-to-vehicle, V2V), vehicle-to-infrastructure communication (vehicle-toinfrastructure,V2I), vehicle to people communication (vehicle to people, V2P),vehicle-to-application server communication (vehicle-to-network, V2N), and thelike. A specific communication scenario of V2X is not limited in embodiments ofthis application. For example, the V2X communication may be vehicle-to-vehiclecommunication, or may be communication between in-vehicle devices, or may becommunication between an RSU and an in-vehicle device and / or a network device,or may be communication between a network device and an in-vehicle deviceand / or an RSU. The network device may be an LTE base station device, an NR basestation device, or a base station in a subsequent evolved system.

[00134] In a V2X scenario, a terminal device supports unicast, multicast, orbroadcast communication. A unicast connection needs to be established for unicastcommunication, and a multicast communication group needs to be established formulticast communication. For example, in a vehicle platooning (platooning) service,vehicles that have a same moving direction and a relatively close distance may forma vehicle platoon, and one vehicle in the vehicle platoon may send data to anothervehicle in the vehicle platoon. Further, a lead vehicle may establish a unicastcommunication connection to a member vehicle, and perform one-to-one datatransmission with the member vehicle through the unicast connection.

[00135] Before performing SL transmission, the transmitting end terminaldevice needs to obtain a transmission resource. In embodiments of this application,the transmission resource used for SL communication is referred to as an SLresource. To distinguish between an uplink transmission resource and a downlinkdata resource in the conventional technology, the SL resource is also referred to asan SL grant (SL grant). Correspondingly, before performing receiving, the receivingend terminal device also needs to determine a receiving resource. Currently, thetransmitting end terminal device may obtain the SL resource in the following twomodes (mode1 and mode 2).

[00136] Mode 1: A base station scheduling manner. The base station schedulingmanner is similar to a manner of obtaining an uplink resource on a Uu interface.When SL data is to be transmitted, the terminal device first reports a sidelink bufferstatus report (sidelink buffer status report, SL BSR) to the base station, to notify thebase station of an amount of data to be sent. The base station may allocate an SLresource of a corresponding size to the terminal device from an SL transmissionresource pool (Tx resource pool) based on the SL BSR. For a periodic service, theterminal device may report an attribute of the periodic service to the base station.The base station allocates a periodic SL resource to the terminal device based onthe attribute of the periodic service. The attribute of the periodic service includes astart time, a period, a packet size, and the like. The terminal device to which theperiodic SL resource is allocated does not need to frequently send the SL BSR toobtain the SL resource.

[00137] Mode 2: In a terminal device autonomous contention manner, theterminal device may select an idle (that is, unoccupied) SL resource for transmissionby measuring whether each time-frequency resource in the SL transmissionresource pool is occupied, and the base station does not need to schedule the SLresource.

[00138] The SL transmission resource pool includes a plurality of SL resources(for example, time-frequency resources). When scheduling an SL resource for theterminal device, the base station may select a resource from the SL transmissionresource pool. Similarly, when autonomously selecting an SL resource, the terminaldevice also selects a resource from the SL transmission resource pool. The SLtransmission resource pool may be configured by the base station for the terminaldevice. It may be understood that one or more SL transmission resource pools mayexist.

[00139] Similarly, when the terminal device is used as a receiving end to performSL communication, the terminal device also needs to determine a corresponding SLreceiving resource from an SL receiving resource pool (Rx resource pool). It maybe understood that SL resources in the sending resource pool correspond to SLresources in the receiving resource pool, and one or more SL receiving resourcepools may exist.

[00140] In an existing communication protocol, for a service of interest, areceiving end terminal device needs to monitor sidelink control information(sidelink control information, SCI) at moments corresponding to all SL resourcesin a resource pool, to receive a message sent by a possible transmitting end terminaldevice. However, the transmitting end terminal device may not send data in mostof the time, which is therefore not conducive to energy saving of the receiving endterminal device.

[00141] In the conventional technology, the receiving end terminal device mayuse a DRX mechanism to save energy. The receiving end terminal device receivesdownlink control information (downlink control information, DCI) only in an activetime of DRX, does not receive DCI in a sleep time of DRX, and a receiver of thereceiving end terminal device is in an off state in the sleep time of DRX, therebyachieving an objective of energy saving.

[00142] A DRX mechanism, which is referred to as SL DRX below, is alsointroduced in SL communication. A receiving end terminal device that supports SLDRX receives SCI only in an active time of SL DRX, and disables a receiver in asleep time of SL DRX and does not receive SCI. SL DRX includes unicast SL DRXand multicast or broadcast SL DRX. Before using unicast SL DRX, the terminaldevice needs to first establish a unicast connection (PC5-S connection / unicast link),and then configure a corresponding SL DRX parameter through the establishedunicast connection.

[00143] For a process of establishing a unicast connection of SL DRX, refer tothe process shown in FIG. 2. As shown in FIG. 2, the process of establishing aunicast connection includes the following steps.

[00144] S101: A first terminal device sends a connection establishment requestmessage to a second terminal device.

[00145] The connection establishment request message is for requesting toestablish a unicast connection. The connection establishment request message isalso referred to as a PC5-S connection establishment request message. Theconnection establishment request message may be a direct communication requestmessage.

[00146] S102: The second terminal device sends a security establishmentcommand message to the first terminal device.

[00147] S103: The first terminal device sends a security establishment completemessage to the second terminal device.

[00148] S104: The second terminal device sends a connection establishmentaccept m essage to the first terminal device.

[00149] The security establishment command message may be a direct securitymode command message. The security establishment complete message may be adirect security mode complete message. The connection establishment acceptmessage may be a direct communication accept message. The connectionestablishment request message may be sent in a unicast or broadcast manner. Thesecurity establishment command message, the security establishment completemessage, and the connection establishment accept message are all sent in a unicastmanner.

[00150] In the process of establishing a unicast connection, correspondingsecurity is also established. In addition, a corresponding PC5-RRC connectionautomatically exists after the unicast connection is established. Security may beestablished by an upper layer (for example, a PC5-S layer or a V2X layer) of aterminal device. After establishing security, the upper layer notifies an access(access, AS) layer of a security configuration. The security configuration includesa security algorithm, a security parameter, a security policy, and the like. The ASlayer may perform security protection on a PC5-S message, a PC5-RRC message,and user plane data transmission by using the security configuration.

[00151] In a scenario of relay communication, before establishing a unicastconnection, terminal devices first discover each other by using a discovery(discovery) mechanism. The terminal devices may be classified into a relay (relay)terminal device and a remote (remote) terminal device. The relay terminal device isalways within coverage of a base station and can directly communicate with thebase station. The remote terminal device may be within coverage of the base station,or may be out of coverage of the base station. To directly transmit data to a network,the remote terminal device needs to discover and connect to a relay terminal device.

[00152] Currently, two discovery modes exist between terminal devices. In adiscovery mode A, a relay terminal device broadcasts an announcement message tothe surrounding, to notify surrounding remote terminal devices that "I am here, andyou can find me". In a discovery mode B, a remote terminal device sends asolicitation message to query whether a relay terminal device exists nearby. Afterreceiving the solicitation message, a relay terminal device determines, based on astatus of the relay terminal device or another factor, whether to return a responsemessage. If a relay terminal device returns a response message, two terminaldevices discover each other.

[00153] To support multicast or broadcast SL DRX, an SL resource (or referredto as an SL resource corresponding to multicast or broadcast SL DRX) used formulticast or broadcast SL DRX needs to be configured. The SL resource used formulticast or broadcast SL DRX may be configured in the following two manners.It may be understood that the SL resource herein includes an SL receiving resourceor an SL transmission resource.

[00154] Manner 1: Some patterns (which may also be referred to as subsets) arecaptured from an existing resource pool (for example, an R16 resource pool) formulticast or broadcast SL DRX. FIG. 3 is a schematic diagram of an SL resourceused for multicast or broadcast SL DRX. As shown in FIG. 3, a gray part representsa captured pattern. A network device may define or configure a time-frequencydomain position, a period, and the like of a pattern resource, and notify a terminaldevice of the time-frequency domain position, the period, and the like, or a protocolpredefines a time-frequency domain position, a period, and the like of the patternresource. It may be understood that more discontinuous pattern resources may existin the resource pool, and the terminal device that supports multicast or broadcastSL DRX may send or receive data on an SL resource shown in the gray part, toensure that a multicast or broadcast service can be normally transmitted.

[00155] Manner 2: A dedicated resource pool (dedicated resource pool) isconfigured for multicast or broadcast SL DRX. FIG. 4 is another schematic diagramof an SL resource used for multicast or broadcast SL DRX. A gray part represents adedicated resource pool. The dedicated resource pool is used for multicast orbroadcast SL DRX. An existing resource pool is independent of the dedicatedresource pool. The terminal device that supports multicast or broadcast SL DRXmay send or receive, on the dedicated resource pool shown in the gray part, data orsignaling that supports multicast or broadcast SL DRX, to ensure that the data orsignaling that supports multicast or broadcast SL DRX can be normally transmitted.

[00156] The resource pool in Manner 1 and Manner 2 may be a sending resourcepool or a receiving resource pool.

[00157] When a receiving end terminal device determines that multicast orbroadcast SL DRX is supported, the receiving end terminal device listens to SCIonly in an active time of multicast or broadcast SL DRX, and the transmitting endterminal device may send data or signaling at any time. If the data or signaling sentby the transmitting end terminal device is not at a time-frequency positioncorresponding to the active time of multicast or broadcast SL DRX, the receivingend terminal device cannot receive the data or the signaling sent by the transmittingend terminal device, resulting in a miss of the data or the signaling. If the data orsignaling sent by the transmitting end terminal device is data or signaling thatsupports broadcast or multicast SL DRX, a miss of the data or signaling thatsupports broadcast or multicast SL DRX affects communication quality of theterminal device.

[00158] In embodiments of this application, the data or signaling that supportsbroadcast or multicast SL DRX is also referred to as data or signaling that cannotbe missed (miss), or data or signaling that cannot be discarded, or is referred to asimportant data or signaling, or is referred to as data or signaling that needs to bereceived or sent on an SL resource corresponding to broadcast or multicast SL DRX,or is referred to as data or signaling of a specific version (for example, R17). Thedata and the signaling may also be collectively referred to as information(information). Therefore, the data or the signaling that supports broadcast ormulticast SL DRX is also referred to as information that supports broadcast ormulticast SL DRX.

[00159] The data or signaling that supports multicast or broadcast SL DRXincludes a service that supports multicast or broadcast SL DRX or a QoS flow (QoSflow) that supports multicast or broadcast SL DRX. The QoS flow is data with asmaller or finer granularity than that of the service (that is, one service may includeone or more QoS flows).

[00160] In embodiments of this application, the signaling that supports multicastor broadcast SL DRX includes one or more pieces of the following signaling: fourmessages (with reference to the four messages shown in FIG. 2) in a process ofestablishing a unicast connection, a message in a discovery process, an SLcapability related message of the terminal device, and a first PC5 RRCreconfiguration message. The four messages in the process of establishing a unicastconnection are: a connection establishment request message, a securityestablishment command message, a security establishment complete message, anda connection establishment accept message shown in FIG. 2. The messages in thediscovery process include the announcement message, the solicitation message, andthe response message of the solicitation message. The SL capability related messageof the terminal device includes a UECapabilityEnquirySidelink message and aUECapabilityInformationSidelink message.

[00161] To resolve the problem in the conventional technology, in embodimentsof this application, a core network device or a V2X application server may indicatethat the terminal device supports data or signaling of multicast or broadcast SL DRX,or indicate, to the terminal device, data or signaling that supports multicast orbroadcast SL DRX. When the transmitting end terminal device has data to be sent,the transmitting end terminal device determines whether to-be-sent data orsignaling is data or signaling that supports multicast or broadcast SL DRX. If theto-be-sent data or signaling is data or signaling that supports multicast or broadcastSL DRX, the transmitting end terminal device sends, by using an SL resourcecorresponding to multicast or broadcast DRX, the data or signaling that supportsmulticast or broadcast SL DRX. The receiving end terminal device receives, on anSL resource corresponding to multicast or broadcast DRX, the data or signaling thatsupports multicast or broadcast SL DRX. Because a sending resource used by thetransmitting end terminal device corresponds to a receiving resource used by thereceiving end terminal device. That is, both the sending resource and the receivingresource are SL resources corresponding to multicast or broadcast DRX, it can beensured that data or signaling that supports multicast or broadcast SL DRX can besuccessfully received by the receiving end terminal device without affecting qualityof SL communication.

[00162] The data or signaling that supports multicast or broadcast SL DRX maybe indicated by the core network device or the V2X application server, or may bepreconfigured in the terminal device. This is not limited in this embodiment. Thedata that supports multicast or broadcast SL DRX includes a multicast or broadcastSL DRX service or a QoS flow. The core network device or the V2X applicationserver may indicate a service type that supports multicast or broadcast SL DRX,information about a QoS flow, a destination, or the like. The information about theQoS flow may be an identifier (PC5 QoS flow identifier, PFI) of the QoS flow.

[00163] In this embodiment, the core network device or the V2X applicationserver may send first indication information to the terminal device. The firstindication information indicates whether the data or the signaling supports multicastor broadcast SL DRX. The upper layer of the terminal device receives the firstindication information from the core network device or the V2X application server,and sends the first indication information to the AS layer. The upper layer of theterminal device may be understood as a layer between an application layer and theAS layer. The upper layer includes a PC5-S layer or a V2X layer. The AS layer ofthe terminal device includes one or more of the following layers: a physical layer(physical), a media access control (media access control, MAC) layer, a radio linkcontrol (radio link control, RLC) layer, a packet data convergence protocol (packetdata convergence protocol, PDCP) layer, a service data adaptation protocol (servicedata adaptation protocol, SDAP) layer, and a radio resource control (radio resourcecontrol, RRC) layer.

[00164] When the core network device or the V2X application server indicates,to the terminal device, whether the data supports multicast or broadcast SL DRX orwhen the upper layer of the terminal device indicates, to the AS layer, whether thedata supports multicast or broadcast SL DRX, whether each servicetype / destination / QoS flow supports multicast or broadcast SL DRX may beindicated, or only a service type / destination / QoS flow that supports multicast orbroadcast SL DRX may be indicated. The QoS flow is data with a finer or smallergranularity than that of the service. When whether the service supports multicast orbroadcast SL DRX is indicated, the QoS flow may indicate whether datacorresponding to the service type or the destination supports multicast or broadcastSL DRX. It may be understood that the destination may be obtained by convertinga service type.

[00165] One destination or service may correspond to or be associated with aplurality of QoS flows. Some QoS flows in a plurality of QoS flows correspondingto one destination may support multicast or broadcast SL DRX, and the other QoSflows may not support multicast or broadcast SL DRX. Therefore, when the corenetwork device or the V2X application server indicates, to the terminal device,whether a QoS flow supports multicast or broadcast SL DRX, or when the upperlayer of the terminal device indicates, to the AS layer, whether a QoS flow supportsmulticast or broadcast SL DRX, whether each QoS flow associated with thedestination supports multicast or broadcast SL DRX may be indicated, or whichQoS flows associated with the destination support multicast or broadcast SL DRXmay be indicated.

[00166] When the core network device or the V2X application server indicates,to the terminal device, whether signaling supports multicast or broadcast SL DRX,or when the upper layer of the terminal device indicates, to the AS layer, whethersignaling supports multicast or broadcast SL DRX, whether signaling of eachtype / signaling corresponding to each destination supports multicast or broadcast SLDRX may be indicated, or whether signaling of a specific name supports multicastor broadcast SL DRX may be indicated.

[00167] When the upper layer of the terminal device indicates, to the AS layer,whether multicast or broadcast SL DRX is supported, the indicated granularity isunderstood as a granularity of the terminal device.

[00168] FIG. 5 is a flowchart of a sidelink communication method according toEmbodiment 1 of this application. As shown in FIG. 5, the method provided in thisembodiment includes the following steps.

[00169] S201: A first terminal device determines that first data or first signalingsupports first DRX, where the first DRX is multicast or broadcast SL DRX.

[00170] The first terminal device is a transmitting end, and the first data or thefirst signaling is currently to-be-sent data or signaling. When first data or firstsignaling is to be sent, the first terminal device determines whether the first data orthe first signaling supports the first DRX.

[00171] For example, the first terminal device determines, based on firstindication information, that the first data or the first signaling supports the first DRX,and the first indication information indicates that the first data or the first signalingsupports multicast or broadcast SL DRX. The first indication information may besent by a core network device or a V2X application server to an upper layer of thefirst terminal device. The upper layer of the first terminal device sends the firstindication information to an AS layer. The AS layer of the first terminal devicedetermines, based on the first indication information, whether the first data or thefirst signaling supports the first DRX.

[00172] Optionally, the first indication information includes: a service or a QoSflow associated with the first data supports multicast or broadcast SL DRX. Whenthe first indication information indicates that the service associated with the firstdata supports multicast or broadcast SL DRX, a service type or a destinationassociated with the first data may be indicated to support multicast or broadcast SLDRX.

[00173] In an implementation, when determining whether the first signalingsupports the first DRX, the first terminal device may not use the first indicationinformation, and the first terminal device determines, according to a policy of thefirst terminal device, signaling that supports the first DRX. In anotherimplementation, the first terminal device may determine, with reference to the firstindication information, whether the first signaling supports the first DRX. Forexample, the first terminal device determines, according to a policy of the firstterminal device, that the first signaling is alternative signaling that supports the firstDRX, and further determines whether a destination of the signaling is a destinationindicated in the first indication information. If the destination of the signaling is thedestination indicated in the first indication information, the first terminal devicedetermines that the first signaling supports the first DRX.

[00174] Optionally, the first terminal device determines, according to a policy ofthe first terminal device, signaling that supports the first DRX, or determines,according to a rule predefined in a protocol, signaling that supports the first DRX.

[00175] Optionally, the first terminal device may determine, based on agranularity of a terminal device, that the first terminal device supports the first DRX.It may be understood that the upper layer of the first terminal device indicates thatthe AS layer of the first terminal device supports the first DRX, and an indicatedgranularity is the granularity of the terminal device.

[00176] S202: The first terminal device obtains a first SL resource, where thefirst SL resource is an SL resource corresponding to the first DRX.

[00177] After the first terminal device determines that the first data or the firstsignaling supports the first DRX, the first terminal device obtains a resourcecorresponding to multicast or broadcast SL DRX used for transmitting the first dataor the first signaling, that is, the first SL resource.

[00178] The first terminal device may obtain the first SL resource in a mode 1manner (that is, a manner of scheduling by a base station). Specifically, the firstterminal device sends a first request message to a network device, where the firstrequest message is for requesting the first SL resource. The first terminal devicereceives information about the first SL resource sent by the network device. Thenetwork device may be a base station. The base station allocates the first SLresource to the first terminal device based on a format and a type of the first requestmessage or content in the first request message.

[00179] Alternatively, the first terminal device may obtain the first SL resourcein a mode 2 manner (that is, a manner in which the terminal device autonomouslyselects a resource). Specifically, the first terminal device obtains the first SLresource by measuring an idle SL resource. For example, the first terminal devicemay measure, in a sensing manner, whether the SL resource is idle, and determinea finally available first SL resource through resource exclusion.

[00180] When obtaining the first SL resource in a manner of scheduling by thebase station, the first terminal device needs to learn, by using the first requestmessage, that the resource requested by the first terminal device is a resourcecorresponding to multicast or broadcast SL DRX.

[00181] In a first implementation, the first request message includes secondindication information, and the second indication information indicates that an SLresource required by data or signaling corresponding to a destination or a QoS flowis an SL resource corresponding to multicast or broadcast SL DRX. After receivingthe first request message, the base station allocates, to the first terminal device basedon the second indication information included in the first request message, an SLresource corresponding to multicast or broadcast DRX.

[00182] In embodiments of this application, the SL resource required by the dataor the signaling corresponding to the destination or the QoS flow may be understoodas an SL resource used or required or to be used by the data or the signalingcorresponding to the destination or the QoS flow.

[00183] In a second implementation, before sending the first request message tothe base station, the first terminal device first sends second indication informationto the base station, where the second indication information indicates that an SLresource required by data or signaling corresponding to a destination or a QoS flowis an SL resource corresponding to multicast or broadcast DRX. The base stationallocates, to the first terminal device based on the first request message and thesecond indication information, an SL resource corresponding to multicast orbroadcast DRX.

[00184] In a third implementation, the first terminal device sends the first requestmessage to the base station by using a dedicated LCG or a dedicated destinationindex, and the base station determines, based on the dedicated LCG or the dedicateddestination index used for sending the first request message, that the resourcerequested by the first terminal device is an SL resource corresponding to multicastor broadcast DRX. Alternatively, the first terminal device sends the first requestmessage in a specific format to the base station. The base station determines, basedon a format of the first request message, that the resource requested by the firstterminal device is an SL resource corresponding to multicast or broadcast DRX.Alternatively, if the first request message is a dedicated SR, the base stationdetermines, based on the dedicated SR, that the resource requested by the firstterminal device is an SL resource corresponding to multicast or broadcast DRX.

[00185] It should be noted that, in embodiments of this application, the secondindication information is associated with the destination or the QoS flow. When thesecond indication information is associated with the destination, the secondindication information indicates that an SL resource required by data or signalingcorresponding to the destination is an SL resource corresponding to multicast orbroadcast DRX. When the second indication information is associated with the QoSflow, the second indication information indicates that an SL resource required bydata or signaling corresponding to the QoS flow is an SL resource corresponding tomulticast or broadcast DRX.

[00186] Optionally, the second indication information may alternatively indicatethat an SL resource required by the data or the signaling corresponding to the firstterminal device is an SL resource corresponding to multicast or broadcast SL DRX.In other words, the second indication information has a granularity of a terminaldevice.

[00187] Optionally, the first request message is any one of the followingmessages: an SL scheduling request (scheduling request, SR), an SL BSR, and aUAI message. Correspondingly, in the second implementation, the secondindication information may be carried in an SUI message.

[00188] (1) The first request message is an SL SR.

[00189] In an example manner, the first terminal device sends a dedicated SL SRto the base station. After receiving the dedicated SL SR, the base station determines,based on the dedicated SL SR, that the resource requested by the first terminaldevice is an SL resource corresponding to multicast or broadcast SL DRX. Thededicated SL SR may be understood as an SR sent on a dedicated sending resource.

[00190] The dedicated SL SR may be preconfigured by the base station oranother network device for the first terminal device, or may be predefined in aprotocol. For the first terminal device, the SL SR may be classified into two types:a common SL SR and a dedicated SL SR. The dedicated SL SR is for requesting anSL resource corresponding to multicast or broadcast DRX. The common SL SR isfor requesting another SL resource other than an SL resource corresponding tomulticast or broadcast DRX or a nonlimited SL resource. The base station maydetermine, based on the type of the SL SR, whether the resource requested by thefirst terminal device is an SL resource corresponding to multicast or broadcast DRX.

[00191] For example, an SR ID corresponding to the dedicated SL SR ispredefined in a protocol. When the first terminal device sends the SL SR to thenetwork device on the resource corresponding to the SR ID, the network devicemay learn, based on the resource or the SR ID, that the first terminal device requestsa sidelink transmission resource corresponding to multicast or broadcast SL DRX,to configure a corresponding sidelink transmission resource for the first terminaldevice.

[00192] In another implementation, before sending the dedicated SL SR to thebase station, the first terminal device first requests the base station to configure thededicated SL SR. Before requesting the base station to configure the SL SR, thefirst terminal device sends the second indication information to the base station.The base station configures the dedicated SL SR for the first terminal device basedon the second indication information. That the base station configures the dedicatedSL SR may be understood as that a dedicated sending resource is configured for theSL SR.

[00193] For example, the first terminal device sends an SUI message to the basestation, where the SUI message includes a destination and a QoS flowcorresponding to the destination. Different from the conventional technology, inthis embodiment, the SUI message further includes the second indicationinformation. After receiving the SUI message, the base station allocates, based onthe second indication information included in the SUI message, the dedicated SLSR to the first terminal device. In other words, the base station may configure adedicated SL SR for the destination corresponding to the second indicationinformation or an LCH (logical channel) associated with the QoS flow. It may beunderstood that, the network configures the SR ID corresponding to the dedicatedSL SR, when the first terminal device sends the SL SR to the network device on theresource corresponding to the SR ID, the network device may learn, based on theresource or the SR ID, that the first terminal device requests a sidelink transmissionresource corresponding to multicast or broadcast SL DRX, to configure acorresponding sidelink transmission resource for the first terminal device.

[00194] In still another example manner, the SL SR includes the secondindication information, and the base station determines, based on the secondindication information, that the resource requested by the first terminal device is anSL resource corresponding to multicast or broadcast DRX. In this manner, adedicated SL SR does not need to be defined, and all normal SL SRs or commonSL SRs may include the second indication information.

[00195] (2) The first request message is an SL BSR.

[00196] In an example manner, the first terminal device may send an SL BSR tothe base station by using a dedicated logical channel group (logical channel group,LCG). After receiving the SL BSR, the base station determines, based on the LCGthat sends the SL BSR, that the resource requested by the first terminal device is anSL resource corresponding to multicast or broadcast DRX.

[00197] The dedicated LCG (for example, a dedicated logical channel groupidentifier) for sending the SL BSR may be preconfigured by the base station oranother network device for the first terminal device, or may be predefined in aprotocol. For the first terminal device, the LCG for sending the SL BSR is classifiedinto two types: a common LCG and a dedicated LCG. The dedicated LCG is forrequesting an SL resource corresponding to multicast or broadcast DRX. Thecommon LCG is for requesting another SL resource other than an SL resourcecorresponding to multicast or broadcast DRX or a nonlimited SL resource. The basestation may determine, based on the type of the LCG for sending the SL BSR,whether the resource requested by the first terminal device is an SL resourcecorresponding to multicast or broadcast DRX.

[00198] In another implementation, before sending the SL BSR to the basestation by using the dedicated LCG, the first terminal device first requests the basestation to configure the dedicated LCG. Before requesting the base station toconfigure the dedicated LCG, the first terminal device sends the second indicationinformation to the base station, and the base station configures the dedicated LCGfor the first terminal device based on the second indication information.

[00199] For example, the first terminal device sends an SUI message to the basestation. The SUI message includes the destination and the QoS flow correspondingto the destination, and the SUI message further includes the second indicationinformation. After receiving the SUI message, the base station allocates, to the firstterminal device based on the second indication information included in the SUImessage, a dedicated LCG for sending the SL BSR. In other words, the base stationmay configure the destination or the QoS flow corresponding to the secondindication information to be transmitted on the dedicated LCG.

[00200] In still another example manner, the first terminal device may send theSL BSR to the base station by using a dedicated destination index (destinationindex). After receiving the SL BSR, the base station determines, based on thedestination index for sending the SL BSR, that the resource requested by the firstterminal device is an SL resource corresponding to multicast or broadcast DRX.The dedicated destination index can uniquely identify a dedicated destination.

[00201] The dedicated destination index for sending the SL BSR may bepreconfigured by the base station or another network device for the first terminaldevice, or may be predefined in a protocol. For the first terminal device, destinationindexes for sending the SL BSR are classified into two types: a common destinationindex and a dedicated destination index. The dedicated destination index is forrequesting an SL resource corresponding to multicast or broadcast DRX, and thecommon destination index is for requesting another SL resource other than an SLresource corresponding to multicast or broadcast DRX or a nonlimited SL resource.The base station may determine, based on the type of the destination index forsending the SL BSR, whether the resource requested by the first terminal device isan SL resource corresponding to multicast or broadcast DRX.

[00202] In still another example manner, the SL BSR includes the secondindication information, and the base station determines, based on the secondindication information, that the resource requested by the first terminal device is anSL resource corresponding to multicast or broadcast DRX. In this manner, adedicated LCG or a dedicated destination index does not need to be configured forthe SL BSR.

[00203] In yet another example manner, the first terminal device sends the SLBSR to the base station by using a common LCG or a common destination index,and before sending the SL BSR to the base station, the second indicationinformation is included in the SL BSR. For example, an LCG corresponding to adestination index or a destination index included in the SL BSR may be associatedwith the second indication information. After receiving the SL BSR, the base stationdetermines, based on the second indication information and the LCG correspondingto the destination index or the destination index included in the SL BSR, that theSL resource requested by the first terminal device is an SL resource correspondingto multicast or broadcast DRX.

[00204] Specifically, the first terminal device determines, based on the firstindication information associated with the destination, that the destination index inthe SL BSR is associated with the second indication information; or the firstterminal device determines, based on the first indication information associatedwith the QoS flow, that an LCG to which the QoS flow is mapped in the SL BSR isassociated with the second indication information.

[00205] In yet another example manner, the first terminal device sends an SLBSR in a specific format (format) to the base station, where the SL BSR in thespecific format is specially for requesting an SL resource corresponding to multicastor broadcast DRX.

[00206] A format of the SL BSR may be preconfigured by the base station oranother network device for the first terminal device or predefined in a protocol. Forthe first terminal device, the format of the SL BSR is classified into two types: acommon format and a specific format. The SL BSR in the specific format is a newlydefined format or a new media access control control element (media access controlcontrol element, MAC CE) element, and is specially for requesting an SL resourcecorresponding to multicast or broadcast DRX. The SL BSR in the common formatincludes various existing formats, used for requesting another SL resource otherthan an SL resource corresponding to multicast or broadcast DRX or a nonlimitedSL resource. The base station may determine, based on the format of the SL BSR,whether the resource requested by the first terminal device is an SL resourcecorresponding to multicast or broadcast DRX.

[00207] (3) The first request message is a UAI message.

[00208] In an example manner, the first terminal device sends a UAI message tothe base station, where the UAI message includes QoS flow information and aservice mode. Different from the conventional technology, the UAI message furtherincludes the second indication information. After receiving the UAI message, thebase station determines, based on the second indication information, that the SLresource requested by the first terminal device is an SL resource corresponding tomulticast or broadcast DRX.

[00209] For example, the QoS flow information or the service mode in the UAImessage is associated with the second indication information.

[00210] In another implementation, before sending the UAI message to the basestation, the first terminal device first sends the second indication information to thebase station, that is, the UAI message does not include the second indicationinformation. For example, the first terminal device includes the second indicationinformation associated with the destination or the QoS flow in the sent SUI message.Further, when determining, based on the SUI message and the UAI message, thatthe QoS flow or the destination associated with the second indication informationin the SUI message corresponds to the QoS flow or the service mode of the UAImessage, the base station determines that the SL resource requested by the firstterminal device is an SL resource corresponding to multicast or broadcast DRX.

[00211] The first SL resource that may be allocated by the base station to the firstterminal device based on the UAI message is a semi-persistent scheduling (semipersistentscheduling, SPS) resource, and the SPS resource is an SL resourcecorresponding to multicast or broadcast DRX.

[00212] S203: The first terminal device sends the first data or the first signalingon the first SL resource.

[00213] Correspondingly, a second terminal device receives the first data or thefirst signaling on an SL resource corresponding to multicast or broadcast SL DRX,and the second terminal device is a receiving end terminal device. The first terminaldevice sends the first data or the first signaling in a multicast or broadcast manner.Optionally, the first terminal device may send the first signaling in a unicast manner.

[00214] As a receiving end, the second terminal device also receives the firstindication information from the core network device or the V2X application server.The first indication information is first sent to an upper layer of the second terminaldevice. The AS layer of the second terminal device receives the first indicationinformation from the upper layer. The second terminal device determines, based onthe first indication information, whether currently to-be-received data or signalingsupports the first DRX. If the second terminal device determines that the currentlyto-be-received data and / or signaling support / supports the first DRX, the secondterminal device activates the first DRX. After activating the first DRX, the secondterminal device may receive data or signaling on an SL resource corresponding tomulticast or broadcast SL DRX, so that the data or signaling sent by the firstterminal device on an SL resource corresponding to multicast or broadcast SL DRXcan be received by the second terminal device.

[00215] The data to be received by the second terminal device may beunderstood as data that the second terminal device is interested in or data that theAS layer needs to receive as indicated by the upper layer of the second terminaldevice.

[00216] Optionally, when the currently to-be-received data and / or signalingsupport / supports the first DRX, the activating the first DRX includes the followingtwo cases: when a plurality of pieces of to-be-received data and / or signaling existand all the plurality of pieces of data and / or signaling support the first DRX,activating the first DRX; or when some data or some signaling in the plurality ofpieces of data and / or signaling supports the first DRX, activating the first DRX.

[00217] When some data or signaling of the plurality of pieces of data and / orsignaling supports the first DRX, after the first DRX is activated, data or signalingthat does not support the first DRX in the plurality of pieces of data and / or signalingmay not be received by the receiving end terminal device. However, when data orsignaling of the plurality of pieces of data and / or signaling supports the first DRX,after the first DRX is activated, the plurality of pieces of data and / or signaling canbe received by the receiving end terminal device.

[00218] The determining whether the to-be-received data or signaling supportsthe first DRX is specifically: comparing a destination or a QoS flow of the to-bereceiveddata or signaling with the destination or the QoS flow indicated by the firstindication information; and if the destination or the QoS flow of the to-be-receiveddata or signaling belongs to the destination or the QoS flow indicated by the firstindication information, determining that the to-be-received data or signalingsupports the first DRX.

[00219] It may be understood that, although the second terminal device does notknow a resource that is on an SL resource corresponding to multicast or broadcastSL DRX (that is, a sending resource pool corresponding to multicast or broadcastSL DRX configured for the first terminal device) and on which the first terminaldevice specifically sends data, after activating the first DRX, the second terminaldevice receives the data on all resources of an SL resource corresponding tomulticast or broadcast SL DRX (that is, a receiving resource pool corresponding tomulticast or broadcast SL DRX configured for the second terminal device). In thisway, the first data or the first signaling can be successfully received.

[00220] Optionally, when the second terminal device does not activate the firstDRX, the second terminal device receives the data at a full set time-frequencyresource position corresponding to the receiving resource pool. If an SL resourcecorresponding to multicast or broadcast SL DRX is a subset of a normal (normal)receiving resource pool, the second terminal device also receives the data on an SLresource corresponding to multicast or broadcast SL DRX.

[00221] Optionally, the upper layer of the second terminal device sends the firstindication information to the AS layer. The first indication information may indicatewhether the second terminal device supports the first DRX. In other words, agranularity of the first indication information is a granularity of the terminal device.If the second terminal device determines, based on the first indication information,that the first DRX is currently supported, the second terminal device activates thefirst DRX.

[00222] In this embodiment, when a first terminal device has to-be-sent first dataor first signaling, the first terminal device first determines whether the first data orthe first signaling supports multicast or broadcast SL DRX. When the first data orthe first signaling supports multicast or broadcast SL DRX, the first terminal deviceobtains an SL resource corresponding to multicast or broadcast SL DRX, and sendsthe first data or the first signaling by using the SL resource corresponding tomulticast or broadcast SL DRX. The SL resource used by a transmitting endterminal device to send the first data or the first signaling is an SL resourcecorresponding to multicast or broadcast SL DRX, and a receiving end terminaldevice also receives the first data or the first signaling on an SL resourcecorresponding to multicast or broadcast SL DRX. Therefore, it can be ensured thatthe receiving end terminal device can successfully receive the first data or the firstsignaling that supports multicast or broadcast SL DRX, thereby improving SLcommunication quality.

[00223] FIG. 6 is a flowchart of a sidelink communication method according toEmbodiment 2 of this application. Based on Embodiment 1, this embodimentdescribes in detail step S203. As shown in FIG. 6, the method provided in thisembodiment includes the following steps.

[00224] S301: A first terminal device determines that first data or first signalingsupports first DRX, where the first DRX is multicast or broadcast SL DRX.

[00225] S302: The first terminal device obtains a first SL resource, where thefirst SL resource is an SL resource corresponding to the first DRX.

[00226] For a specific implementation of steps S301 and S302, refer todescriptions of steps S201 and S202 in Embodiment 1, and details are not describedherein again.

[00227] S303: The first terminal device selects or preferentially selects, from tobe-transmitted destinations / logical channels (logical channel, LCH), only adestination / logical channel corresponding to the first data or the first signaling fortransmission on the first SL resource.

[00228] When a plurality of logical channels have data to be sent and a totalamount of data to be transmitted exceeds a transmission capability of a currenttransmission time interval (transmission time interval, TTI), a problem ofdetermining a logical channel for preferentially sending data needs to be considered,which is referred to as logical channel prioritization (logical channel prioritization,LCP). A TTI is a minimum unit of radio resource scheduling. It may be understoodthat, with evolution or change of a network, the minimum unit of radio resourcescheduling may change.

[00229] During sidelink transmission, when allocating a transmission resourceto a terminal device, the base station does not specify which resources are to beused by which destinations or logical channels. After obtaining the transmissionresource, the terminal device may determine a priority of a logical channel basedon a status of each logical channel. Generally, a priority of a control logical channelis higher than a priority of a data logical channel, and the priority of the data logicalchannel may be determined based on a QoS parameter of data transmitted on thedata logical channel.

[00230] During SL LCP, the first terminal device needs to perform two selections.First, the first terminal device selects a destination for transmission. The destinationcorresponds to a plurality of QoS flows. Different QoS flows are mapped todifferent logical channels. Priorities of the logical channels are determined basedon priorities of QoS flows carried on the logical channels.

[00231] It may be understood that S304 is performed only when the first terminaldevice obtains the first SL resource. When selecting a destination for transmission,the first terminal device selects or preferentially selects, from the to-be-sentdestinations, only a destination corresponding to the first data or the first signalingas the destination for transmission, and maps the selected destination to the logicalchannel for transmission.

[00232] The to-be-sent destination may include a destination corresponding tothe first data or the first signaling and another destination. That only the destinationcorresponding to the first data or the first signaling is selected from the to-be-sentdestination may be understood as that, for the first SL resource, only the destinationcorresponding to the first data or the first signaling is selected for transmission incurrent transmission, and no other destination is selected for transmission.

[00233] Alternatively, that the destination corresponding to the first data or thefirst signaling is preferentially selected from the to-be-sent destination may beunderstood as that a destination for transmission is selected based on a priority ofthe to-be-sent destination. A priority of the destination corresponding to the firstdata or the first signaling is set to the highest, and the first terminal devicepreferentially selects the destination with the highest priority for transmission.Therefore, the first terminal device can preferentially select the destinationcorresponding to the first data or the first signaling. It may be understood that whenthe destination corresponding to the first data or the first signaling does not exist,another destination may be selected for transmission.

[00234] When the first terminal device selects a logical channel for transmission,the first terminal device selects or preferentially selects, from the to-be-transmittedlogical channels, only a logical channel corresponding to the first data or the firstsignaling as the logical channel for transmission.

[00235] When the to-be-transmitted destination logical channel may include alogical channel corresponding to the first data or the first signaling and anotherlogical channel, that only the logical channel corresponding to the first data or thefirst signaling is selected from the to-be-transmitted logical channel may beunderstood as: for the first SL resource, only the logical channel corresponding tothe first data or the first signaling is selected for transmission in current transmission,and no other logical channel is selected for transmission.

[00236] Alternatively, the preferentially selecting a logical channelcorresponding to the first data or the first signaling from the to-be-transmittedlogical channel may be understood as selecting a logical channel for transmissionbased on a priority of the to-be-transmitted logical channel. In this embodiment, apriority of the logical channel corresponding to the first data or the first signaling isset to the highest. In the conventional technology, a priority of a logical channel isusually determined based on a logical channel of a QoS flow carried on the logicalchannel, and the first terminal device preferentially selects a logical channel withthe highest priority for transmission. Therefore, the first terminal device canpreferentially select a logical channel corresponding to the first data or the firstsignaling. When another logical channel in the to-be-transmitted logical channel istransmitted, a priority of a logical channel may be determined based on a logicalchannel of a QoS flow carried on the logical channel. It may be understood thatwhen the logical channel corresponding to the first data or the first signaling doesnot exist, another logical channel may be selected for transmission.

[00237] It may be understood that, in another embodiment of this application,the first terminal device may alternatively select, by using an existing solution, adestination / logical channel corresponding to the first data or the first signaling fortransmission.

[00238] In this embodiment, when transmitting the first data or the first signalingon the first SL resource, the first terminal device only selects or preferentiallyselects, from to-be-transmitted destinations / logical channels for transmission, adestination / logical channel corresponding to the first data or the first signaling, sothat it can be ensured that the first data or the first signaling is preferentiallytransmitted, thereby avoiding delayed transmission or discarding of the first data orthe first signaling due to LCP. Because the first data or the first signaling thatsupports multicast or broadcast SL DRX is usually important data or signaling, thefirst data or the first signaling is preferentially transmitted, thereby furtherimproving quality of SL communication.

[00239] FIG. 7 is a signaling flowchart of a sidelink communication methodaccording to Embodiment 3 of this application. Based on Embodiment 1 andEmbodiment 2, in this embodiment, scheduling by a base station is used as anexample to describe the sidelink communication method. In this embodiment, anexample in which a network device is a base station is used for description. Asshown in FIG. 7, the method provided in this embodiment includes the followingsteps.

[00240] S401: A first terminal device determines that first data or first signalingsupports first DRX, where the first DRX is multicast or broadcast SL DRX.

[00241] For a specific implementation of this step, refer to descriptions of stepS201 in Em bodiment 1, and details are not described herein again.

[00242] S402: The first terminal device sends a first request message to the basestation, where the first request message includes second indication information.

[00243] The second indication information indicates that an SL resourcerequired by data or signaling corresponding to a destination or a QoS flow is an SLresource corresponding to multicast or broadcast DRX. Optionally, the first requestmessage is any one of the following messages: an SL SR, an SL BSR, and a UAImessage. Correspondingly, the second indication information may be carried in anSUI message.

[00244] S403: The base station allocates a first SL resource to the first terminaldevice based on the first request message.

[00245] When the first request message is an SL SR, in an example manner, thefirst terminal device sends a dedicated SL SR to the base station. After receivingthe dedicated SL SR, the base station determines, based on the dedicated SL SR,that the resource requested by the first terminal device is an SL resourcecorresponding to multicast or broadcast SL DRX, and allocates the first SL resourceto the first terminal device. The dedicated SL SR may be preconfigured by the basestation or another network device for the first terminal device, or may be defined ina protocol. In this manner, the dedicated SL SR may not include the secondindication information, and the base station may determine, based on the dedicatedSL SR, that the resource requested by the first terminal device is an SL resourcecorresponding to multicast or broadcast DRX. Optionally, the dedicated SL SR mayalternatively include the second indication information. The base station determines,based on the dedicated SL SR and the second indication information, that theresource requested by the first terminal device is an SL resource corresponding tomulticast or broadcast DRX.

[00246] For example, an SR ID corresponding to the dedicated SL SR ispredefined in a protocol. When the first terminal device sends the SL SR to thenetwork device on the resource corresponding to the SR ID, the network devicemay learn, based on the resource, that the first terminal device requests a sidelinktransmission resource corresponding to multicast or broadcast SL DRX, toconfigure a corresponding sidelink transmission resource for the first terminaldevice.

[00247] In another implementation, before receiving the dedicated SL SR, thebase station configures the dedicated SL SR for the first terminal device based on arequest of the first terminal device. When requesting to configure the dedicated SLSR, the first terminal device sends a request message carrying the second indicationinformation to the base station. The base station configures the dedicated SL SR forthe first terminal device based on the second indication information.

[00248] When the first request message is an SL SR, in another example manner,the first terminal device sends the SL SR (which may also be referred to as acommon SL SR) to the base station, where the SL SR includes the second indicationinformation. The base station determines, based on the second indicationinformation, that the resource requested by the first terminal device is an SLresource corresponding to multicast or broadcast DRX, and allocates the first SLresource to the first terminal device.

[00249] When the first request message is an SL BSR, in an example manner,the first terminal device may send the SL BSR to the base station by using adedicated LCG or a dedicated destination index. After receiving the SL BSR, thebase station determines, based on the dedicated LCG or the dedicated destinationindex of the SL BSR, that the resource requested by the first terminal device is anSL resource corresponding to multicast or broadcast DRX, and allocates the firstSL resource to the first terminal device. The dedicated LCG or the dedicateddestination index may be preconfigured by the base station or another networkdevice for the first terminal device, or may be defined in a protocol. In this manner,the SL BSR may not include the second indication information, and the base stationmay determine, based on the dedicated LCG or the dedicated destination index, thatthe resource requested by the first terminal device is an SL resource correspondingto multicast or broadcast DRX. Optionally, the SL BSR may alternatively includethe second indication information. The base station determines, based on thededicated LCG or the dedicated destination index and the second indicationinformation, that the resource requested by the first terminal device is an SLresource corresponding to multicast or broadcast DRX.

[00250] When the first request message is an SL BSR, in another examplemanner, the first terminal device sends the SL BSR to the base station by using acommon LCG or a common destination index of the SL BSR, where the SL BSRincludes second indication information. The base station determines, based on thesecond indication information, that the resource requested by the first terminaldevice is an SL resource corresponding to multicast or broadcast DRX, andallocates the first SL resource to the first terminal device.

[00251] When the first request message is an SL BSR, in still another examplemanner, the first terminal device sends the SL BSR in a specific format (format) tothe base station, where the SL BSR in the specific format is specially for requestingan SL resource corresponding to multicast or broadcast DRX. After receiving theSL BSR, the base station determines, based on the format of the SL BSR, that theresource requested by the first terminal device is an SL resource corresponding tomulticast or broadcast DRX, and allocates the first SL resource to the first terminaldevice.

[00252] When the first request message is a UAI message, after receiving theUAI message, the base station determines, based on the second indicationinformation included in the UAI message, that the resource requested by the firstterminal device is an SL resource corresponding to multicast or broadcast DRX,and allocates the first SL resource to the first terminal device.

[00253] Alternatively, before receiving the UAI message, the base stationreceives the SUI message sent by the first terminal device. The SUI messageincludes second indication information, and the second indication information isassociated with a destination or a QoS flow included in the SUI message. Afterreceiving the UAI message, when the QoS flow or the service mode included in theUAI message corresponds to the destination or the QoS flow associated with thesecond indication information, the base station determines that the SL resourcerequested by the first terminal device is an SL resource corresponding to multicastor broadcast DRX, and allocates the first SL resource to the first terminal device.

[00254] S404: The base station sends information about the first SL resource tothe first terminal device.

[00255] The base station may send a response message of the first requestmessage, an RRC reconfiguration message or DCI carrying the information aboutthe first SL resource to the first terminal device.

[00256] S405: The first terminal device sends the first data or the first signalingto a second terminal device on the first SL resource.

[00257] The first terminal device may send the first data or the first signaling onthe first SL resource by using an existing LCP rule, or may only select orpreferentially select, from to-be-transmitted destinations / logical channels by usingthe method in Embodiment 2, a destination / logical channel corresponding to thefirst data or the first signaling, to transmit the first data or the first signaling on thefirst SL resource. For a specific implementation, refer to the description of step 304in Embodiment 2. Details are not described herein again.

[00258] Correspondingly, the second terminal device receives the first data orthe first signaling on the first SL resource. It may be understood that the firstterminal device sends the first data or the first signaling in a multicast or broadcastmanner, and a terminal device in a multicast or broadcast receiving range may beused as the second terminal device to receive the first data or the first signaling.

[00259] In this embodiment, when the first terminal device requests a resourcefrom the first base station, the second indication information is carried in the firstrequest message, and the base station may determine, based on the secondindication information, that the resource requested by the first terminal device is anSL resource corresponding to multicast or broadcast DRX, to allocate the requiredresource to the first terminal device.

[00260] FIG. 8 is a signaling flowchart of a sidelink communication methodaccording to Embodiment 4 of this application. A difference between thisembodiment and Embodiment 3 is as follows: Before sending the first requestmessage to the base station, the first terminal device first sends the secondindication information to the base station, and the base station allocates a resourceto the first terminal device based on the second indication information and the firstrequest message. As shown in FIG. 8, the method provided in this embodimentincludes the following steps.

[00261] S501: A first terminal device determines that first data or first signalingsupports first DRX, where the first DRX is multicast or broadcast SL DRX.

[00262] S502: The first terminal device sends an SUI message to the base station,where the SUI message includes second indication information.

[00263] This embodiment is described by using an example in which the secondindication information is carried in the SUI message. It may be understood that thesecond indication information may be carried in another message, which is notlimited in this embodiment.

[00264] S503: The first terminal device sends a first request message to the basestation.

[00265] Optionally, the first request message is any one of the followingmessages: an SL SR, an SL BSR, and a UAI message.

[00266] S504: The base station allocates a first SL resource to the first terminaldevice based on the first request message.

[00267] When the first request message is an SL SR, in an example manner, thefirst terminal device sends a dedicated SL SR to the base station. After receivingthe dedicated SL SR, the base station determines, based on the dedicated SL SR,that the resource requested by the first terminal device is an SL resourcecorresponding to multicast or broadcast SL DRX, and allocates the first SL resourceto the first terminal device. The dedicated SL SR is allocated by the base station tothe first terminal device based on the second indication information in the SUImessage. Correspondingly, before S503, the base station sends configurationinformation of the dedicated SL SR to the first terminal device through an SUIresponse message or another message.

[00268] When the first request message is an SL BSR, in an example manner,the first terminal device may send the SL BSR to the base station by using adedicated LCG or a dedicated destination index. After receiving the SL BSR, thebase station determines, based on the dedicated LCG or the dedicated destinationindex of the SL BSR, that the resource requested by the first terminal device is anSL resource corresponding to multicast or broadcast DRX, and allocates the firstSL resource to the first terminal device. The dedicated LCG or the dedicateddestination index is configured by the base station for the first terminal device basedon the second indication information in the SUI message. Correspondingly, beforeS503, the base station sends configuration information of the dedicated LCG or thededicated destination index to the first terminal device through an SUI responsemessage or another message.

[00269] Optionally, the SL BSR may alternatively include the second indicationinformation. The base station determines, based on the dedicated LCG or thededicated destination index and the second indication information, that the resourcerequested by the first terminal device is an SL resource corresponding to multicastor broadcast DRX.

[00270] When the first request message is an SL BSR, in another examplemanner, the first terminal device sends the SL BSR to the base station by using acommon LCG or a common destination index. T he SL BSR includes a destinationindex or a QoS flow identifier. The base station allocates the first SL resource to thefirst terminal device based on the destination or the QoS flow associated with thesecond indication information and the destination index or the QoS flow identifierincluded in the SL BSR. Specifically, when the destination index or the QoS flowidentifier included in the SL BSR corresponds to the destination or the QoS flowassociated with the second indication information, the base station determines thatthe SL resource requested by the first terminal device is an SL resourcecorresponding to multicast or broadcast DRX.

[00271] When the first request message is a UAI message, after receiving theUAI message, when the QoS flow information and the service mode that areincluded in the UAI message correspond to the destination or the QoS flowassociated with the second indication information, the base station determines thatthe resource requested by the first terminal device is an SL resource correspondingto multicast or broadcast DRX, and allocates the first SL resource to the firstterminal device.

[00272] S505: The base station sends information about the first SL resource tothe first terminal device.

[00273] S506: The first terminal device sends the first data or the first signalingto a second terminal device on the first SL resource.

[00274] In this embodiment, before requesting the resource from the first basestation, the first terminal device sends the second indication information to the basestation, where the second indication information indicates that an SL resourcerequired by data or signaling corresponding to the destination or the QoS flow is anSL resource corresponding to multicast or broadcast DRX, and requests the first SLresource from the base station by using the first request message. The base stationdetermines, based on the second indication information and the first requestmessage, that the resource requested by the first terminal device is an SL resourcecorresponding to multicast or broadcast DRX, to allocate the required resource tothe first terminal device.

[00275] In actual application, a terminal device supports both multicast orbroadcast SL DRX and unicast SL DRX. Before a unicast connection is established,the terminal device may perform sending or receiving only by using an SL resourcecorresponding to multicast or broadcast SL DRX. To be specific, the terminal deviceenables a radio frequency receiver only at a time corresponding to an SL resourcecorresponding to multicast or broadcast SL DRX. Because the terminal device canperform receiving only at some moments (that is, at a time corresponding to an SLresource corresponding to multicast or broadcast SL DRX), if a transmitting endterminal device sends data at a time other than a time corresponding to an SLresource corresponding to multicast or broadcast SL DRX but a receiving endterminal device receives data only at a time corresponding to an SL resourcecorresponding to multicast or broadcast SL DRX, a message in a process ofestablishing a unicast connection is missing, affecting establishment of the unicastconnection.

[00276] To resolve the foregoing problem, Embodiment 5 of this applicationprovides a sidelink communication method. FIG. 9 is a signaling flowchart of asidelink communication method according to Embodiment 5 of this application.This embodiment is described from a perspective of a receiving end. As shown inFIG. 9, the method provided in this embodiment includes the following steps.

[00277] S601: A terminal device deactivates transmission of first DRX at a firstmoment, where the first DRX is multicast or broadcast SL DRX, and the firstmoment is a receiving moment of an SL unicast connection establishment requestmessage or a receiving moment of a discovery request message.

[00278] In this embodiment, the terminal device may immediately deactivate thefirst DRX at the first moment, or may deactivate the first DRX after a preset delaytime at the first moment. The preset delay time may be configured by a networkdevice.

[00279] Optionally, the first moment may alternatively be a sending moment ofan announcement message.

[00280] S602: The terminal device activates the first DRX at a second moment,where the second moment is a sending moment of an SL unicast connectionestablishment accept message, a receiving moment of a first PC5 RRCreconfiguration message, a completion moment of unicast connection DRXconfiguration, or a timeout moment of a first timer.

[00281] In the method, a receiving end terminal device disables the first DRXbetween the first moment and the second moment, and the receiving end terminaldevice receives data in all time periods corresponding to a normal SL resource. Inthis embodiment, after the receiving end terminal device disables the first DRXbetween the first moment and the second moment, it means that the receiving endterminal device can receive data at all time periods corresponding to the receivingresource pool between the first moment and the second moment, and is not limitedto receiving data only on an SL resource corresponding to multicast or broadcastSL DRX.

[00282] The first moment is the receiving moment of the SL unicast connectionestablishment message (that is, the first message shown in FIG. 3) or the receivingmoment of the discovery request message (for example, a discovery message ofsolicitation), and the message received at the second moment corresponds to themessage received at the first moment. Correspondingly, the second moment is thesending moment of the SL unicast connection establishment accept message (thatis, the fourth message shown in FIG. 3), the receiving moment of the first PC5 RRCreconfiguration message, the completion moment of unicast connection DRXconfiguration, or the timeout moment of the first timer.

[00283] Optionally, the first timer is started at the first moment, and timingduration of the first timer is preconfigured or predefined. Optionally, the terminaldevice may alternatively enable the first timer after a delay of a specific time afterthe first moment.

[00284] It can be learned from the values of the first moment and the secondmoment that, the method in this embodiment is equivalent to disabling the firstDRX in a time period from start of establishment of a unicast connection tocompletion of establishment of a unicast connection, that is, the receiving endterminal device can normally receive data in the time period from start ofestablishment of a unicast connection to completion of establishment of a unicastconnection, to ensure that all messages sent by the transmitting end device in aprocess of establishing a unicast connection can be received by the receiving endterminal device, no message in the process of establishing a unicast connection ismissing, and multicast or broadcast SL DRX does not affect establishment of theunicast connection.

[00285] In this embodiment, from a perspective of a receiving end, a similarproblem also exists at a transmitting end. In this embodiment, a transmitting endterminal device may deactivate the first DRX at a third moment, and activate thefirst DRX at a fourth moment. In other words, the transmitting end terminal devicedisables the first DRX between the third moment and the fourth moment. The thirdmoment may be a sending moment of the SL unicast connection establishmentmessage or a sending moment of the discovery request message. Correspondingly,the fourth moment is a receiving moment of the SL unicast connectionestablishment accept message, a sending moment of the first PC5 RRCreconfiguration message, the completion moment of unicast connection DRXconfiguration, or an enable moment of the first timer.

[00286] Optionally, the third moment may alternatively be a receiving momentof the announcement message.

[00287] After the unicast connection is established, both multicast or broadcastSL DRX and unicast SL DRX exist. Correspondingly, the terminal device canperform sending or receiving by using an SL resource corresponding to multicastor broadcast SL DRX, or can perform sending or receiving by using an SL resourcecorresponding to the unicast connection. In this embodiment, the terminal devicemay use a union set of a resource corresponding to multicast or broadcast SL DRXand a resource corresponding to the unicast SL DRX in time domain as a time forsending or receiving data by the terminal device.

[00288] FIG. 11 is a schematic diagram of sending data by a terminal device. Asshown in FIG. 11, a part of an SL resource (that is, a resource shown by a slash partin the figure) occupied by a first terminal device to send data is located in an SLresource (that is, a resource shown by a gray part in the figure) corresponding tomulticast or broadcast SL DRX, and the other part is located outside an SL resourcecorresponding to multicast or broadcast SL DRX. For example, a resource occupiedby the SCI in the data transmitted by the first terminal device is located in an SLresource corresponding to multicast or broadcast SL DRX, and all or some of theresources occupied by the transport block (transport block, TB) indicated by theSCI are located outside an SL resource corresponding to multicast or broadcast SLDRX. In this case, if a second terminal device is interested in the data sent by thefirst terminal device and the second terminal device activates multicast or broadcastSL DRX, the second terminal device may successfully receive the SCI on an SLresource corresponding to multicast or broadcast SL DRX, but the TB indicated bythe SCI cannot be received on an SL resource corresponding to multicast orbroadcast SL DRX. In the conventional technology, how to process a TB is notdescribed, which may cause an exception in SL communication or a receivingexception of the terminal device.

[00289] To resolve the foregoing problem, an embodiment provides a sidelinkcommunication method. FIG. 12 is a flowchart of a sidelink communication methodaccording to Embodiment 6 of this application. As shown in FIG. 12, the methodprovided in this embodiment includes the following steps.

[00290] S701: A second terminal device receives SCI sent by a first terminaldevice.

[00291] S702: When the second terminal device is in a multicast or broadcast SLDRX state and a resource corresponding to a TB indicated by the SCI does notbelong to or partially belongs to an SL resource corresponding to multicast orbroadcast SL DRX, the second terminal device does not receive the TB indicatedby the SCI, or the second terminal device receives the TB indicated by the SCI, butdoes not enable a hybrid automatic repeat request round-trip timer (hybridautomatic repeat request round trip time, HARQ RTT) timer or an inactivity(INACTIVITY) timer corresponding to the SCI.

[00292] That the second terminal device is in a multicast or broadcast SL DRXstate may be understood as that the second terminal device currently activatesmulticast or broadcast SL DRX, or the second terminal device currently receivesdata by using an SL resource corresponding to multicast or broadcast SL DRX.

[00293] The HARQ RTT timer is associated with a HARQ process. When theHARQ RTT timer is running, a terminal device does not need to listen to a physicalsidelink control channel (physical sidelink control channel, PSCCH), and thePSCCH channel is used for transmitting SCI. In the conventional technology, afterreceiving the SCI, the second terminal device enables the HARQ RTT timer, andreceives a TB indicated by the SCI. In this embodiment, after receiving the SCI, thesecond terminal device does not enable the HARQ RTT timer, to avoid subsequentreceiving of corresponding retransmitted data.

[00294] The INACTIVITY timer is associated with a unicast connection. Whenthe INACTIVITY timer is running, the terminal device needs to listen to a PSCCHchannel. In the conventional technology, after receiving SCI and when the SCIindicates new transmission, the second terminal device enables the INACTIVITYtimer, and receives a TB indicated by the SCI. In this embodiment, after receivingthe SCI, the second terminal device does not enable the INACTIVITY timer, toavoid subsequent receiving of corresponding retransmitted data.

[00295] In this embodiment, when the second terminal device is in a multicastor broadcast SL DRX state, and the resource corresponding to the TB indicated bythe received SCI does not belong to or partially belongs to an SL resourcecorresponding to multicast or broadcast SL DRX, an action of the second terminaldevice is specified, that is, the second terminal device does not receive the TBindicated by the SCI, or receives the TB indicated by the SCI, but does not enablethe HARQ RTT timer or the INACTIVITY timer corresponding to the SCI, so thatnormal SL communication can be ensured.

[00296] FIG. 13 is a schematic diagram of a structure of a first terminal deviceaccording to Embodiment 7 of this application. As shown in FIG. 13, a first terminaldevice 200 provided in this embodiment includes a determining module 21, anobtaining module 22, and a sending module 23.

[00297] The determining module 21 is configured to determine that first data orfirst signaling supports first discontinuous reception DRX, where the first DRX ismulticast or broadcast sidelink SL DRX.

[00298] The obtaining module 22 is configured to obtain a first SL resource,where the first SL resource is an SL resource corresponding to the first DRX.

[00299] The sending module 23 is configured to send the first data or the firstsignaling on the first SL resource.

[00300] Optionally, the determining module 21 is specifically configured toreceive first indication information from an upper layer of the first terminal device,where the first indication information indicates that the first data or the firstsignaling supports multicast or broadcast SL DRX.

[00301] Optionally, the first indication information includes: a service or a QoSflow associated with the first data supports multicast or broadcast SL DRX.

[00302] Optionally, the obtaining module 22 is specifically configured to: senda first request message to a network device, where the first request message is forrequesting the first SL resource; and receive information about the first SL resourcesent by the network device.

[00303] In an example manner, the first request message includes secondindication information, and the second indication information indicates that an SLresource required by data or signaling corresponding to a destination or a QoS flowis an SL resource corresponding to multicast or broadcast DRX.

[00304] In another example manner, the obtaining module 22 is furtherconfigured to: before sending the first request message to the network device, sendsecond indication information to the network device, where the second indicationinformation indicates that an SL resource required by data or signalingcorresponding to a destination or a QoS flow is an SL resource corresponding tomulticast or broadcast DRX.

[00305] Optionally, the first request message is any one of the followingmessages: an SL SR, an SL BSR, and a UAI message.

[00306] When the first request message is any one of the following messages: anSL SR, an SL BSR, and a UAI message, optionally, the second indicationinformation is carried in an SUI message.

[00307] Optionally, the first signaling includes one or more pieces of thefollowing signaling: a message in an SL unicast connection establishment process,a message in a relay UE discovery process, an SL capability related message of UE,and a first PC5 radio resource control RRC reconfiguration message.

[00308] Optionally, the obtaining module 22 is specifically configured to obtainthe first SL resource by measuring an idle SL resource.

[00309] Optionally, the sending module 23 is specifically configured to: onlyselect or preferentially select, from to-be-transmitted destinations, a destinationcorresponding to the first data or the first signaling as a destination for transmission;or only select or preferentially select, from to-be-transmitted logical channels, alogical channel corresponding to the first data or the first signaling as a logicalchannel for transmission.

[00310] The first terminal device 200 provided in this embodiment may beconfigured to perform the method steps performed by the first terminal device inEmbodiment 1 to Embodiment 4. Specific implementations and technical effectsare similar, and details are not described herein again.

[00311] FIG. 14 is a schematic diagram of a structure of a network deviceaccording to Embodiment 8 of this application. As shown in FIG. 14, a networkdevice 300 provided in this embodiment includes a receiving module 31 and anallocation module 32.

[00312] The receiving module 31 is configured to receive a first request messagesent by a first terminal device, where the first request message is for requesting afirst sidelink SL resource, the first SL resource is an SL resource corresponding tofirst discontinuous reception DRX, and the first DRX is multicast or broadcast DRX.

[00313] The allocation module 32 is configured to allocate the first SL resourceto the first terminal device based on the first request message.

[00314] In an example manner, the first request message includes secondindication information, and the second indication information indicates that an SLresource required by data or signaling corresponding to a destination or a QoS flowis an SL resource corresponding to multicast or broadcast DRX.

[00315] In another example manner, the receiving module 31 is furtherconfigured to: before receiving the first request message, receive second indicationinformation sent by the first terminal device, where the second indicationinformation indicates that an SL resource required by data or signalingcorresponding to a destination or a QoS flow is an SL resource corresponding tomulticast or broadcast DRX.

[00316] Optionally, the first request message is any one of the followingmessages: an SL SR, an SL BSR, and a UAI message.

[00317] When the first request message is any one of the following messages: anSL SR, an SL BSR, and a UAI message, optionally, the second indicationinformation is carried in a sidelink user information SUI message.

[00318] Optionally, the first signaling includes one or more pieces of thefollowing signaling: a message in an SL unicast connection establishment process,a message in a relay UE discovery process, an SL capability related message of UE,and a first PC5 radio resource control RRC reconfiguration message.

[00319] The network device 300 provided in this embodiment may beconfigured to perform the method steps performed by the network device inEmbodiment 1 to Embodiment 4. Specific implementations and technical effectsare similar, and details are not described herein again.

[00320] FIG. 15 is a schematic diagram of a structure of a second terminal deviceaccording to Embodiment 9 of this application. As shown in FIG. 15, a secondterminal device 400 provided in this embodiment includes a receiving module 41,a determining module 42, and an activation module 43.

[00321] The receiving module 41 is configured to receive first indicationinformation from an upper layer of the second terminal device, where the firstindication information indicates that first data or first signaling supports firstdiscontinuous reception DRX, and the first DRX is multicast or broadcast SL DRX.

[00322] The determining module 42 is configured to determine, based on thefirst indication information, that currently to-be-received data or signaling supportsthe first DRX.

[00323] The activation module 43 is configured to activate the first DRX.

[00324] It may be understood that the receiving module 41 and the activationmodule 43 may alternatively be implemented by using one module, for example, aprocessing module. The processing module implements all functions of thereceiving module 41 and the activation module 43.

[00325] The second terminal device 400 provided in this embodiment may beconfigured to perform the method steps performed by the second terminal device inEmbodiment 1 to Embodiment 4. Specific implementations and technical effectsare similar, and details are not described herein again.

[00326] FIG. 16 is a schematic diagram of a structure of a second terminal deviceaccording to Embodiment 10 of this application. As shown in FIG. 16, a secondterminal device 500 provided in this embodiment includes a deactivation module51 and an activation module 52.

[00327] The deactivation module 51 is configured to deactivate firstdiscontinuous reception DRX at a first moment, where the first DRX is multicastor broadcast sidelink SL DRX, and the first moment is a receiving moment of anSL unicast connection establishment message or a receiving moment of a discoveryrequest message.

[00328] The activation module 52 is configured to activate the first DRX at asecond moment, where the second moment is a receiving moment of an SL unicastconnection establishment accept message, a receiving moment of a first PC5 radioresource control RRC reconfiguration message, a completion moment of unicastconnection DRX configuration, or a timeout moment of a first timer.

[00329] Optionally, the second terminal device starts the first timer at the firstmoment.

[00330] Optionally, the deactivation module 51 is specifically configured todeactivate the first DRX after a preset time is delayed at the first moment.

[00331] It may be understood that the deactivation module 51 and the activationmodule 52 may alternatively be implemented by using one module, for example, aprocessing module. The processing module implements all functions of thedeactivation module 51 and the activation module 52.

[00332] The second terminal device 500 provided in this embodiment may beconfigured to perform the method in Embodiment 5. Specific implementations andtechnical effects are similar, and details are not described herein again.

[00333] It may be understood that a module in embodiments of this applicationmay also be referred to as a unit. For example, the deactivation module may also bereferred to as a deactivation unit.

[00334] The system, apparatus, and method described in this application may beimplemented in other manners. For example, the apparatus embodiment describedabove is merely example. For example, the unit / module division is merely logicalfunction division and may be other division during actual implementation. Forexample, a plurality of units or components may be combined or integrated intoanother system, or some features may be ignored or not performed. In addition, thedisplayed or discussed mutual couplings or direct couplings or communicationconnections may be implemented through some interfaces. The indirect couplingsor communication connections between the apparatuses or units may beimplemented in electronic, mechanical, or other forms.

[00335] In addition, functional units in embodiments of this application may beintegrated into one processing unit, each of the units may exist independentlyphysically, or two or more units may be integrated into one unit.

[00336] The foregoing modules or units may be implemented by using software,hardware, or a combination of software and hardware. For example, thedetermining module in FIG. 13 may be implemented based on software.

[00337] In this application, "implemented by using software" means that aprocessor reads and executes program instructions stored in a memory to implementa function corresponding to the foregoing module or unit. The processor is aprocessing circuit that has a function of executing the program instructions, andincludes but is not limited to at least one of the following processing circuits thatcan run program instructions, such as a central processing unit (central processingunit, CPU), a microprocessor, a digital signal processor (digital signal processor,DSP), a microcontroller unit (microcontroller unit, MCU), or an artificialintelligence processor. In some other embodiments, the processor may furtherinclude a circuit that has another processing function (for example, a hardwarecircuit, a bus, and an interface circuit that are used for hardware acceleration). Theprocessor may be presented in a form of an integrated chip, for example, presentedin a form of an integrated chip whose processing function includes only a softwareinstruction execution function, or may be presented in a form of a SoC (system ona chip, system on a chip). That is, in addition to a processing circuit (usually referredto as a "core") that can run program instructions, a chip further includes anotherhardware circuit (which may be implemented based on an ASIC or an FPGA)configured to implement a specific function. Correspondingly, in addition to thesoftware instruction execution function, the processing function may furtherinclude various hardware acceleration functions (such as AI calculation, encodingand decoding, and compression and decompression).

[00338] In this application, "implemented by hardware" means that a function ofthe foregoing module or unit is implemented through a hardware processing circuitthat does not have a function of processing program instructions. The hardwareprocessing circuit may include a discrete hardware component, or may be anintegrated circuit. To reduce power consumption and a size, an integrated circuit isusually used for implementation. The hardware processing circuit may include anapplication-specific integrated circuit (application-specific integrated circuit, ASIC)or a programmable logic device (programmable logic device, PLD). The PLD mayfurther include a field programmable gate array (field programmable gate array,FPGA), a complex programmable logic device (complex programmable logicdevice, CPLD), and the like. These hardware processing circuits may be separatelypackaged semiconductor chips, or may be integrated with other circuits (such as aCPU and a DSP) and then packaged into a semiconductor chip. For example, theASIC and the CPU may be integrated together to form a SoC, and the SoC isindependently packaged into a chip; or the FPGA and the CPU may be integratedtogether to form a SoPC (system on a programmable chip, system on aprogrammable chip).

[00339] It should be noted that, when this application is implemented by usingsoftware, hardware, or a combination of software and hardware, this applicationmay be implemented by using different software and hardware, which is not limitedto only one type of software or hardware. For example, one of the modules or unitsmay be implemented through the CPU, and another module or unit may beimplemented through the DSP. Similarly, when hardware is used forimplementation, one of the modules or units may be implemented through the ASIC,and another module or unit may be implemented through the FPGA. Certainly, it isalso not specified that some or all modules or units are implemented by using asame type of software (for example, through the CPU) or a same type of hardware(for example, through the ASIC). In addition, a person skilled in the art may knowthat, software usually has better flexibility but poorer performance than hardware,and hardware is exactly opposite. Therefore, a person skilled in the art may selectsoftware, hardware, or a combination thereof for implementation based on an actualrequirement.

[00340] FIG. 17 is a schematic diagram of a structure of a terminal deviceaccording to Embodiment 11 of this application. As shown in FIG. 17, a terminaldevice 600 includes a processor 61, a memory 62, and a transceiver 63. The memory62 is configured to store instructions. The transceiver 63 is configured tocommunicate with another device. The processor 61 is configured to execute theinstructions stored in the memory, so that the terminal device 600 performs themethod performed by the first terminal device or the second terminal device in theforegoing method embodiments.

[00341] Embodiment 12 of this application provides a network device. For astructure of the network device, refer to FIG. 17. The memory 62 is configured tostore instructions. The transceiver 63 is configured to communicate with anotherdevice. The processor 61 is configured to execute the instructions stored in thememory 62, so that the network device can perform the method performed by thenetwork device in the foregoing method embodiments.

[00342] In a specific implementation, in an embodiment, the network device orthe terminal device may include a plurality of processors. Each of the processorsmay be a single-core processor (single-CPU) or may be a multi-core processor(multi-CPU). The processor may be a digital signal processor (DSP), a general10purpose microprocessor, an application-specific integrated circuit (ASIC), a fieldprogrammable logic array (FPGA), another equivalent integrated or discrete logiccircuit, or the like.

[00343] The memory may be a read-only memory (read-only memory, ROM) oranother type of static storage device that can store static information andinstructions, or a random access memory (random access memory, RAM) oranother type of dynamic storage device that can store information and instructions,or may be an electrically erasable programmable read-only memory (ElectricallyErasable Programmable Read-Only Memory, EEPROM), a compact disc read-onlymemory (Compact Disc Read-Only Memory, CD-ROM) or another compact discstorage, or an optical disc storage (including a compressed optical disc, a laser disc,an optical disc, a digital versatile disc, a Blu-ray disc, and the like), a magnetic diskstorage medium or another magnetic storage device, or any other medium that canbe used to carry or store expected program code in a form of instructions or a datastructure and that can be accessed by a computer, but is not limited thereto. Thememory may independently exist and may be connected to the processor by thecommunication bus. The memory may alternatively be integrated with the processor.

[00344] Embodiment 13 of this application provides a computer-readablestorage medium. The computer-readable storage medium stores instructions, andwhen the instructions are executed, a computer is enabled to perform the methodperformed by the first terminal device or the second terminal device in the foregoingmethod embodiments.

[00345] Embodiment 14 of this application provides a computer-readablestorage medium. The computer-readable storage medium stores instructions, andwhen the instructions are executed, a computer is enabled to perform the methodperformed by the network device in the foregoing method embodiments.

[00346] This application further provides a computer program product. Whenthe computer program product is executed by a computer, functions of any one ofthe foregoing method embodiments are implemented.

[00347] The foregoing descriptions are merely example specificimplementations of this application, but are not intended to limit the protectionscope of this application. Any variation or replacement readily figured out by aperson skilled in the art within the technical scope disclosed in this application shallfall within the protection scope of this application. Therefore, the protection scopeof this application shall be subject to the protection scope of the claims.

Claims

1. A sidelink communication method for a first terminal device, and comprising: determining that first data or first signaling supports first discontinuous reception DRX, wherein the first DRX is multicast or broadcast sidelink SL DRX; obtaining a first SL resource, wherein the first SL resource is an SL resource corresponding to the first DRX; and sending the first data or the first signaling on the first SL resource.

2. The method according to claim 1, wherein the determining that first data or first signaling supports first DRX comprises: receiving, by an access stratum of the first terminal device, first indication information from an upper layer, wherein the first indication information indicates that the first data or the first signaling supports multicast or broadcast SL DRX.

3. The method according to claim 2, wherein the first indication information indicates: a destination associated with the first data supports multicast or broadcast SL DRX.

4. The method according to any one of claims 1 to 3, wherein the obtaining a first SL resource comprises: sending a first request message to a network device, wherein the first request message is for requesting the first SL resource; and receiving information about the first SL resource from the network device.

5. The method according to claim 4, wherein before the sending a first request message to a network device, the method further comprises: sending second indication information to the network device, wherein the second indication information indicates that an SL resource required by data or signaling corresponding to a destination is the first SL resource.

6. The method according to claim 5, wherein the first request message is any one of the following messages: an SL scheduling request, SR, an SL buffer status report, BSR, and a user assistance information, UAI, message, and the second indication information is carried in a sidelink user information, SUI, message.

7. The method according to claim 6, wherein the SL BSR comprises a destination index.

8. The method according to any one of claims 1 to 7, wherein the first signaling comprises one or more pieces of the following signaling: a connection establishment request message, a announcement message, a solicitation message, or a response message of the solicitation message.

9. The method according to any one of claims 1 to 8, wherein the obtaining a first sidelink SL resource comprises: obtaining the first SL resource by measuring an idle SL resource.

10. A sidelink communication method for a network device, and comprising: receiving second indication information form a first terminal device, wherein the second indication information indicates that first sidelink, SL, resource required by data or signaling corresponding to a destination is an SL resource corresponding to multicast or broadcast DRX; receiving a first request message from the first terminal device, wherein the first request message is for requesting the first SL resource, the first SL resource is an SL resource corresponding to first discontinuous reception DRX, and the first DRX is multicast or broadcast DRX; and allocating the first SL resource to the first terminal device based on the first request message.

11. The method according to claim 10, wherein the first request message is any one of the following messages: an SL scheduling request SR, an SL buffer status report BSR, and a user assistance information UAI message, and the second indication information is carried in a sidelink user information SUI message.

12. The method according to claim 11, wherein the SL BSR comprises a destination index.

13. The method according to claim 12, wherein the method further comprises: determining the first SL resource requested by the first terminal device is an SL resource corresponding to multicast or broadcast DRX, when a destination index included in the BSR corresponds to the destination associated with the second indication information.

14. The method according to any one of claims 10 to 13, wherein the first signaling comprises one or more pieces of the following signaling: a connection establishment request message, a announcement message, a solicitation message, or a response message of the solicitation message.

15. A sidelink communication method for a second terminal device, and comprising: receiving, by an access stratum, first indication information from an upper layer, wherein the first indication information indicates that first data or first signaling supports first discontinuous reception DRX, and the first DRX is multicast or broadcast SL DRX; and activating the first DRX when it is determined, based on the first indication information, that currently to-be-received data or signaling supports the first DRX.

16. The method according to claim 15, wherein the activating the first DRX when it is determined, based on the first indication information, that currently tobe- received data or signaling supports the first DRX comprises: activating the first DRX when a plurality of pieces of the to-be-received data and / or signaling exist and destinations associated with the plurality of pieces of data and / or signaling support the first DRX.

17. A communication apparatus, comprising: a determining module, configured to determine that first data or first signaling supports first discontinuous reception DRX, wherein the first DRX is multicast or broadcast sidelink SL DRX; an obtaining module, configured to obtain a first SL resource, wherein the first SL resource is an SL resource corresponding to the first DRX; and a sending module, configured to send the first data or the first signaling on the first SL resource.

18. The apparatus according to claim 17, wherein the determining module is specifically configured to: receive first indication information from an upper layer of the communication device, wherein the first indication information indicates that the first data or the first signaling supports multicast or broadcast SL DRX.

19. The apparatus according to claim 18, wherein the first indication information inidcates: a destination associated with the first data supports multicast or broadcast SL DRX.

20. The apparatus according to any one of claims 17 to 19, wherein the obtaining module is specifically configured to: send a first request message to a network device, wherein the first request message is for requesting the first SL resource; and receive information about the first SL resource from the network device.

21. The apparatus according to claim 20, wherein the obtaining module is further configured to: before sending the first request message to the network device, send second indication information to the network device, wherein the second indication information indicates that an SL resource required by data or signaling corresponding to a destination is the first SL resource.

22. The apparatus according to claim 20 or 21, wherein the first request message is any one of the following messages: an SL scheduling request SR, an SL buffer status report BSR, and a user assistance information UAI message, and the second indication information is carried in a sidelink user information SUI message.

23. The apparatus according to claim 22, wherein the SL BSR comprises a destination index.

24. The apparatus according to any one of claims 17 to 23, wherein the first signaling comprises one or more pieces of the following signaling: a connection establishment request message, a announcement message, a solicitation message, or a response message of the solicitation message.

25. The apparatus according to any one of claims 17 to 24, wherein the obtaining module is specifically configured to: obtain the first SL resource by measuring an idle SL resource.

26. A communication apparatus, comprising: a receiving module, configured to receive second indication information from the first terminal device, wherein the second indication information indicates that a first sidelink SL resource required by data or signaling corresponding to a destination is an SL resource corresponding to multicast or broadcast DRX; the receiving module, further configured to receive a first request message sent by the first terminal device, wherein the first request message is for requesting the first SL resource, the first SL resource is an SL resource corresponding to first discontinuous reception DRX, and the first DRX is multicast or broadcast DRX; and an allocation module, configured to allocate the first SL resource to the first terminal device based on the first request message.

27. The apparatus according to claim 26, wherein the first request message is any one of the following messages: an SL scheduling request SR, an SL buffer status report BSR, and a user assistance information UAI message, and the second indication information is carried in a sidelink user information SUI message.

28. The apparatus according to claim 27, wherein the SL BSR comprises a destination index.

29. The apparatus according to claim 28, wherein the apparatus configured to determine the SL resource requested by the first terminal device is an SL resource corresponding to multicast or broadcast DRX, when a destination index included in the BSR corresponds to the destination associated with the second indication information.

30. The apparatus according to any one of claims 26 to 29, wherein the first signaling comprises one or more pieces of the following signaling: a connection establishment request message, a announcement message, a solicitation message, or a response message of the solicitation message.

31. A communication apparatus, comprising: a receiving module, configured to receive first indication information from an upper layer of the communication apparatus, wherein the first indication information indicates that first data or first signaling supports first discontinuous reception DRX, and the first DRX is multicast or broadcast SL DRX; a determining module, configured to determine, based on the first indication information, that currently to-be-received data or signaling supports the first DRX; and an activation module, configured to activate the first DRX.

32. The apparatus according to claim 31, wherein the activation module is specifically configured to: activate the first DRX when a plurality of pieces of the to-be-received data and / or signaling exist and destinations associated with the plurality of pieces of data and / or signaling support the first DRX.

33. A communication apparatus, comprising a processor, a memory, and a transceiver, wherein the memory is configured to store instructions, the transceiver is configured to communicate with another device, and the processor is configured to execute the instructions stored in the memory, so that the communication apparatus performs the method according to any one of claims 1 to 9 and any one of claims claim 15-16.

34. A communication apparatus, comprising a processor, a memory, and a transceiver, wherein the memory is configured to store instructions, the transceiver is configured to communicate with another device, and the processor is configured to execute the instructions stored in the memory, so that the communication apparatus performs the m ethod according to any one of claims 10 to 14.

35. A computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, a computer is enabled to perform the method according to any one of claims 1 to 16.

36. A computer program product, wherein the computer program product comprises instructions, and when the instructions are executed, a computer is enabled to perform the method according to any one of claims 1 to 16.

37. A communication system, comprising: a first terminal device, a second terminal device, and a network device, wherein the first terminal device is configured to perform the method according to any one of claims 1 to 9, the second terminal device is configured to perform the method according to claim 15 to 16, and the network device is configured to perform the method according to any one of claims 10 to 14.