WO2016045090A1 - D2d resource allocating method and user equipment - Google Patents

D2d resource allocating method and user equipment Download PDF

Info

Publication number
WO2016045090A1
WO2016045090A1 PCT/CN2014/087560 CN2014087560W WO2016045090A1 WO 2016045090 A1 WO2016045090 A1 WO 2016045090A1 CN 2014087560 W CN2014087560 W CN 2014087560W WO 2016045090 A1 WO2016045090 A1 WO 2016045090A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
user equipment
resource allocation
resource
base station
Prior art date
Application number
PCT/CN2014/087560
Other languages
French (fr)
Chinese (zh)
Inventor
曹振臻
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201480035438.1A priority Critical patent/CN105684471B/en
Priority to PCT/CN2014/087560 priority patent/WO2016045090A1/en
Publication of WO2016045090A1 publication Critical patent/WO2016045090A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services

Definitions

  • the present invention relates to the field of communications, and in particular, to a device-to-device (D2D) resource allocation method and user equipment.
  • D2D device-to-device
  • D2D communication technology is currently a communication technology. This technology is different from the existing cellular communication technology.
  • the data of the user equipment needs to be transmitted through the base station, and the D2D communication technology is the user equipment. Data transmission is directly performed between them to reduce transmission delay.
  • D2D communication technology can reduce transmission delay
  • the allocation of D2D resources for D2D communication has always been problematic.
  • the invention provides a D2D resource allocation method and user equipment, which can solve the problem of D2D resource allocation of D2D communication.
  • the present invention provides a D2D resource allocation method, including:
  • the user equipment determines whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station, where the target resource allocation mode is The preset rule selects a resource allocation mode of the D2D resource from the D2D resource pool acquired by the user equipment in advance;
  • the user equipment When the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, the user equipment is targeted to The resource allocation request performs a resource processing operation for avoiding waste of D2D resources, where the target D2D resource allocation is all D2D resource allocation information or partial D2D resource allocation information requested by the resource allocation request;
  • the user equipment selects a first D2D resource from a D2D resource pool that is acquired in advance by the user equipment.
  • the user equipment performs resource processing operations for avoiding waste of D2D resources for the resource allocation request, including:
  • the user equipment monitors, by the base station, a downlink channel that sends the target D2D resource allocation information
  • the user equipment uses the second D2D resource allocated by the target D2D resource allocation information.
  • the method further includes:
  • the user equipment After the user equipment uses the second D2D resource allocated by the target D2D resource allocation information, the user equipment terminates sending a resource allocation request for requesting allocation of D2D resources to the base station.
  • the user equipment performs resource processing operations for avoiding waste of D2D resources for the resource allocation request, including:
  • the user equipment sends a D2D resource allocation stop indication to the base station, where the resource allocation stop indication is used to indicate that the base station stops responding to the D2D resource allocation request.
  • the method further includes:
  • the user equipment When the user equipment switches to the target resource allocation mode, the user equipment terminates sending a resource allocation request for requesting allocation of D2D resources to the base station.
  • the user equipment terminates sending to the base station for A resource allocation request requesting allocation of D2D resources, including:
  • the user equipment terminates retransmitting the D2D resource allocation request timer
  • the user equipment terminates a periodic D2D resource allocation request timer.
  • the method further includes:
  • the user equipment selects a preset radio bearer for carrying the address resolution protocol ARP data to carry ARP data in the D2D data, and uses the first D2D resource to transmit the ARP data in the D2D data carried by the radio bearer.
  • the method further includes:
  • the user equipment selects a preset radio bearer carrying ARP data to carry ARP data in the D2D data, and uses the first D2D resource to transmit the first ARP data in the D2D data carried by the radio bearer;
  • the user equipment selects a preset radio bearer for carrying ARP data to carry ARP data in the D2D data, and uses the second D2D resource to transmit the second ARP data in the D2D data carried by the radio bearer.
  • the radio bearer carries ARP in the D2D data.
  • Data including:
  • the radio bearer carries a packet data convergence protocol (PDCP) packet containing ARP data in the D2D data, where the header of the PDCP packet includes identification information indicating that the data contained in the PDCP packet is ARP data.
  • PDCP packet data convergence protocol
  • the method further includes:
  • the user equipment selects a preset radio bearer for carrying ARP data to carry IP data in the D2D data, and uses the first D2D resource to transmit the first IP data in the D2D data carried by the radio bearer;
  • the user equipment selects a preset radio bearer carrying ARP data to carry IP data in the D2D data, and uses the second D2D resource to transmit the second IP data in the D2D data carried by the radio bearer.
  • the radio bearer carries the IP data in the D2D data, including:
  • the radio bearer carries a PDCP packet containing IP data in the D2D data, where the header of the PDCP packet includes identification information for processing IP data contained in the PDCP packet.
  • the present invention provides a user equipment, including: a sending unit and a processing unit, where:
  • the sending unit is configured to send, to the base station, a resource allocation request for requesting allocation of D2D resources;
  • the processing unit is configured to determine, when the user equipment switches to a target resource allocation mode, Whether the user equipment has sent a resource allocation request for requesting allocation of a D2D resource to the base station, where the target resource allocation mode is that the user equipment selects D2D from the D2D resource pool pre-acquired by the user equipment according to a preset rule.
  • Resource allocation pattern of resources is that the user equipment selects D2D from the D2D resource pool pre-acquired by the user equipment according to a preset rule.
  • the processing unit is further configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station And performing resource processing operations for avoiding waste of D2D resources for the resource allocation request, where the target D2D resource allocation is all D2D resource allocation information or partial D2D resource allocation information requested by the resource allocation request;
  • the processing unit is further configured to select a first D2D resource from a D2D resource pool that is pre-acquired by the user equipment.
  • the user equipment further includes:
  • a receiving unit configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, Monitoring, by the base station, a downlink channel that sends the target D2D resource allocation information;
  • the processing unit is further configured to: when the receiving unit acquires the target D2D resource allocation information in the downlink channel, use the second D2D resource allocated by the target D2D resource allocation information.
  • the processing unit is further configured to: when the user equipment uses the second allocation of the D2D resource allocation information After the D2D resource, the resource allocation request for requesting allocation of the D2D resource is terminated to be sent to the base station.
  • the sending unit is further configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive And sending, to the base station, a D2D resource allocation stop indication, where the resource allocation stop indication is used to indicate that the base station stops responding to the D2D resource, when the target D2D resource allocation information requested by the resource allocation request sent by the base station is sent Assign a request.
  • the processing unit is further configured to: When the user equipment switches to the target resource allocation mode, the resource allocation request for requesting allocation of the D2D resource is terminated to be sent to the base station.
  • the processing unit is further configured to terminate the retransmission when the user equipment switches to the target resource allocation mode D2D resource allocation request timer;
  • the processing unit is further configured to terminate the periodic D2D resource allocation request timer when the user equipment switches to the target resource allocation mode.
  • the sending unit is further configured to select a preset radio bearer bearer for carrying address resolution protocol ARP data.
  • ARP data in the D2D data and using the first D2D resource to transmit ARP data in the D2D data carried by the radio bearer.
  • the sending unit is further configured to select a preset radio bearer bearer for carrying address resolution protocol ARP data.
  • ARP data in the D2D data and using the first D2D resource to transmit the first ARP data in the D2D data carried by the radio bearer;
  • the sending unit is further configured to: select a preset ARP data in the radio bearer carrying D2D data for carrying the address resolution protocol ARP data, and transmit, by using the second D2D resource, the second ARP in the D2D data carried by the radio bearer. data.
  • the radio bearer carries the ARP data in the D2D data, including:
  • the radio bearer carries a packet data convergence protocol (PDCP) packet containing ARP data in the D2D data, where the header of the PDCP packet includes identification information indicating that the data contained in the PDCP packet is ARP data.
  • PDCP packet data convergence protocol
  • the sending unit is further configured to select a preset
  • the radio bearer for carrying the address resolution protocol ARP data carries the first IP data in the D2D data, and uses the first D2D resource to transmit the IP data in the D2D data carried by the radio bearer;
  • the sending unit is further configured to select the IP data in the radio bearer carrying the D2D data for carrying the address resolution protocol ARP data, and transmit the second IP in the D2D data carried by the radio bearer by using the second D2D resource. data.
  • the radio bearer carries the IP data in the D2D data, including:
  • the radio bearer carries a PDCP packet containing IP data in the D2D data, where the header of the PDCP packet includes identification information for processing IP data contained in the PDCP packet.
  • the present invention provides a user equipment, including: a transmitter and a processor; wherein:
  • the transmitter is configured to send, to the base station, a resource allocation request for requesting allocation of D2D resources;
  • the processor is used to:
  • the user equipment When the user equipment is switched to the target resource allocation mode, it is determined whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station, where the target resource allocation mode is preset by the user equipment.
  • the rule selects a resource allocation mode of the D2D resource from a D2D resource pool that is pre-acquired by the user equipment;
  • the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, Requesting to perform resource processing operations for avoiding waste of D2D resources, wherein the target D2D resource allocation is all D2D resource allocation information or partial D2D resource allocation information requested by the resource allocation request;
  • the user equipment further includes:
  • a receiver configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, Monitoring, by the base station, a downlink channel that sends the target D2D resource allocation information;
  • the processor is further configured to: when the receiving unit acquires the target D2D resource allocation information in the downlink channel, use the second D2D resource allocated by the target D2D resource allocation information.
  • the processor is further configured to: when the user equipment uses the second D2D allocated by the D2D resource allocation information After the resource is terminated, the resource allocation request for requesting allocation of the D2D resource is terminated to the base station.
  • the transmitter is further configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the When the target D2D resource allocation information requested by the resource allocation request sent by the base station is The base station sends a D2D resource allocation stop indication, where the D2D resource allocation stop indication is used to instruct the base station to stop responding to the resource allocation request.
  • the processor is further configured to be used when When the user equipment switches to the target resource allocation mode, the resource allocation request for requesting allocation of the D2D resource is terminated to be sent to the base station.
  • the processor is further configured to be used by the user equipment Terminate the retransmission D2D resource allocation request timer when switching to the target resource allocation mode; or
  • the processor is further configured to terminate the periodic D2D resource allocation request timer when the user equipment switches to the target resource allocation mode.
  • the transmitter is further configured to select a preset radio bearer D2D for carrying address resolution protocol ARP data.
  • the ARP data in the data, and the first D2D resource is used to transmit the address resolution protocol ARP data in the D2D data carried by the radio bearer.
  • the transmitter is further configured to select a preset
  • the radio bearer carrying the address resolution protocol ARP data carries the ARP data in the D2D data, and uses the first D2D resource to transmit the first ARP data in the D2D data carried by the radio bearer;
  • the transmitter is further configured to select a preset ARP data in the radio bearer carrying D2D data for carrying the address resolution protocol ARP data, and transmit the second ARP in the D2D data carried by the radio bearer by using the second D2D resource. data.
  • the radio bearer carries ARP data in the D2D data include:
  • the radio bearer carries a packet data convergence protocol (PDCP) packet containing ARP data in the D2D data, where the header of the PDCP packet includes identification information indicating that the data contained in the PDCP packet is ARP data.
  • PDCP packet data convergence protocol
  • the transmitter is further configured to select a preset
  • the radio bearer carrying the address resolution protocol ARP data carries the first IP data in the D2D data, and uses the first D2D resource to transmit the IP data in the D2D data carried by the radio bearer;
  • the transmitter is further configured to select a preset radio bearer for carrying the address resolution protocol ARP data to carry IP data in the D2D data, and use the second D2D resource to transmit the second IP in the D2D data carried by the radio bearer. data.
  • the radio bearer carries the IP data in the D2D data, including:
  • the radio bearer carries a PDCP packet containing IP data in the D2D data, where the header of the PDCP packet includes identification information for processing IP data contained in the PDCP packet.
  • the user equipment determines whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station; when the user equipment has been When the base station sends the resource allocation request, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, the user equipment performs the resource allocation request for avoiding The D2D resource is wasted resource processing operation; the user equipment selects the first D2D resource from the D2D resource pool that is pre-acquired by the user equipment.
  • FIG. 1 is a schematic flowchart of a D2D resource allocation method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another D2D resource allocation method according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a user equipment according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of another user equipment according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of another user equipment according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of another user equipment according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of another user equipment according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a D2D resource allocation method according to an embodiment of the present invention. As shown in FIG. 1 , the method includes the following steps:
  • the user equipment determines whether the user equipment has sent a resource allocation request for requesting allocation of a D2D resource to the base station, where the target resource allocation mode is the user.
  • the device selects a resource allocation mode of the D2D resource from the D2D resource pool pre-acquired by the user equipment according to a preset rule.
  • the foregoing D2D resource pool may be a D2D resource pool used by the user equipment to be configured by the user equipment in advance through the base station configuration signaling, and the D2D resource pool may be pre-passed by the user equipment.
  • the D2D resource pool used for the normal connection between the user equipment and the base station is configured by the base station configuration signaling, or the D2D resource pool may be configured in advance by the user equipment for the abnormal connection between the user equipment and the base station.
  • the above D2D resource can be understood as a resource for performing D2D communication, for example, a channel resource.
  • the abnormal situation of the communication link between the user equipment and the base station includes: one of the T310 timer, the T311 timer, and the T301 timer of the user equipment is in an operating state;
  • the normal situation of the communication link between the user equipment and the base station includes: the user equipment and The base station communication link is not in an abnormal situation.
  • the determining, by the user equipment, that the user equipment has sent a resource allocation request for requesting allocation of the D2D resource to the base station may be, determining whether the retransmission D2D resource allocation request timer of the user equipment is in an operating state, for example, retransmitting the ProSe Whether the Buffer Status Report (BSR) timer is in the running state, if yes, determining that the user equipment has sent a resource allocation request to the base station; or the user equipment determines whether the user equipment has sent the request to the base station for request
  • the resource allocation request for allocating the D2D resource may be: determining whether the periodic D2D resource allocation request timer of the user equipment is in the running state, for example, whether the periodic ProSe BSR timer is in the running state, and if yes, determining that the user equipment has sent the resource allocation to the base station.
  • Resource allocation request determining, by the user equipment, that the user equipment has sent a resource allocation request for requesting allocation of the D2D resource to the base station, and determining whether the user equipment has sent the base station to request the allocation of the D2D resource in the preset time.
  • Resource allocation request determining, by the user equipment, that the user equipment has sent a resource allocation request for requesting allocation of the D2D resource to the base station, whether the user equipment has sent the base station to request the allocation of the D2D resource in the previous resource allocation mode period.
  • the user equipment uses the first resource allocation mode, that is, determines whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station in the first resource allocation mode.
  • the first resource allocation mode is that the user equipment sends a resource allocation request to the base station, and the base station allocates a D2D resource allocation mode to the user equipment in response to the resource allocation request.
  • the user The device performs a resource processing operation for avoiding waste of D2D resources for the resource allocation request, wherein the target D2D resource allocation is all D2D resource allocation information or partial D2D resource allocation information requested by the resource allocation request.
  • the foregoing user equipment does not receive the base station, where the target D2D resource allocation is all D2D resource allocation information or partial D2D resource allocation information requested by the resource allocation request, which may be understood as:
  • the D2D resource allocation information requested by the above resource allocation request is not all received by the user equipment.
  • the resource allocation request sent by the user equipment to the base station is requested to be a 100-byte D2D resource, but when the user equipment switches to the target resource allocation mode, only the D2D resource allocation information of the 50-byte D2D resource is received.
  • the target D2D resource allocation information requested by the user equipment that is not received by the user equipment may also be expressed as a retransmission D2D resource allocation request timer of the user equipment, for example, retransmission.
  • the D2D Buffer Status Report (BSR) timer is still in the running state, and/or the period D2D resource allocation request timer of the user equipment is still running, for example, the period D2D BSR timer is still in the running state.
  • step 102 since the user equipment has sent a resource allocation request to the base station, and the user equipment has switched to the target resource allocation mode, the user equipment has not received the D2D resource allocated by the base station, and if not, the foregoing is used to avoid The D2D resource wastes resource processing operations, then the base station continues to allocate D2D resources to the user equipment.
  • the resource allocation mode of the D2D resource is selected from the D2D resource pool pre-acquired by the user equipment according to a preset rule by the user equipment according to a target resource allocation mode. Thus, the D2D resources allocated by the base station to the user equipment may be wasted.
  • the step 102 needs to perform the foregoing resource processing operation for avoiding waste of D2D resources, for example, notifying the base station to stop allocating D2D resources, or listening to the D2D resources allocated by the base station, and when listening to the D2D resources allocated by the base station, using the D2D resources for D2D Communication.
  • the user equipment selects a first D2D resource from a D2D resource pool that is acquired in advance by the user equipment.
  • the user equipment may randomly select the first D2D resource from the pre-acquired D2D resource pool, or select the first D2D resource from the pre-acquired D2D resource pool according to a preset selection rule.
  • step 101 when step 101 is performed, since the user equipment has switched to the target resource allocation mode, the user equipment performs step 103, that is, step 103 may be performed simultaneously with step 101.
  • step 103 When the first D2D resource is selected, the first D2D resource can be used for D2D communication.
  • the user equipment when the user equipment has sent the resource allocation request to the base station, and the user equipment receives the target D2D resource allocation information requested by the resource allocation request sent by the base station, the user equipment stops listening to the downlink channel that the base station sends the D2D resource allocation information.
  • the above D2D communication may be that the user equipment sends D2D data to another one or more user equipments.
  • the user equipment may be any device with D2D communication function, such as: tablet, mobile phone, e-reader, remote controller, personal computer (PC), notebook computer, car device, network television, A smart device having a D2D communication function such as a wearable device.
  • D2D communication function such as: tablet, mobile phone, e-reader, remote controller, personal computer (PC), notebook computer, car device, network television, A smart device having a D2D communication function such as a wearable device.
  • the user equipment determines whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station; When the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, the user equipment is targeted to The resource allocation request performs a resource processing operation for avoiding waste of D2D resources; the user equipment selects a first D2D resource from a D2D resource pool that is acquired in advance by the user equipment. Thereby, the problem of allocation of D2D resources for D2D communication can be solved.
  • FIG. 2 is a schematic flowchart of another D2D resource allocation method according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
  • the user equipment determines whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station.
  • the target resource allocation mode is a resource allocation mode in which the user equipment selects a D2D resource from a D2D resource pool that is pre-acquired by the user equipment according to a preset rule.
  • the first resource allocation mode is that the user equipment sends a resource to the base station.
  • the allocation request the base station allocates a distribution mode of the D2D resource to the user equipment in response to the resource allocation request.
  • the user equipment may perform the D2D resource configuration by using the foregoing first resource allocation mode.
  • the base station configures the user equipment to use the first resource allocation mode by using configuration signaling, where the user equipment uses the first resource.
  • the process of assigning patterns can be as follows:
  • the user equipment sends a resource allocation request for requesting allocation of the D2D resource to the base station before sending the D2D data, for example, sending a Proximity Service (ProSe), a Buffer Status Report (BSR), where the ProSe BSR can Including D2D BSR;
  • ProSe Proximity Service
  • BSR Buffer Status Report
  • the base station After receiving the resource allocation request, the base station schedules D2D resources for the user equipment, and sends scheduling signaling of the scheduled D2D resources in the downlink channel, for example, a Physical Downlink Control Channel (PDCCH).
  • PDCH Physical Downlink Control Channel
  • the user equipment monitors the downlink channel, and when the scheduling signaling is obtained, the D2D resource that is identified by the scheduling signaling is used to send the D2D data.
  • the foregoing user equipment determines whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station, and may determine whether the user equipment sends a request for allocating D2D resources to the base station in the first resource allocation mode. Resource allocation request.
  • the user equipment is switched from the first resource allocation mode to the target resource allocation mode, where the user equipment detects that there is a problem in the communication link between the user equipment and the base station, and starts to be used for switching by using the first resource allocation mode.
  • the timer to the target resource allocation for example, the T310 timer is started, or the T311 timer is started, or the T301 timer is started
  • the user equipment is switched from the first resource allocation mode to the target resource allocation mode.
  • the timer T310 is started, the user equipment is switched from the first resource allocation mode to the target resource allocation mode.
  • the user equipment when the user equipment is switched from the first resource allocation mode to the target resource allocation mode, the user equipment terminates sending a resource allocation request for requesting allocation of D2D resources to the base station.
  • the user equipment terminates sending a resource allocation request for requesting allocation of D2D resources to the base station, including:
  • the user equipment terminates the retransmission D2D resource allocation request timer, for example, terminating the retransmission ProSe BSR timer;
  • the user equipment terminates a periodic D2D resource allocation request timer, for example, a terminating period ProSe BSR timer.
  • the user The device performs a resource processing operation for avoiding waste of D2D resources for the resource allocation request, wherein the target D2D resource allocation is all D2D resource allocation information or partial D2D resource allocation information requested by the resource allocation request.
  • the foregoing user equipment performs resource processing operations for avoiding waste of D2D resources for the resource allocation request, and may include:
  • the user equipment listens to the downlink channel that the base station sends the target D2D resource allocation information
  • the user equipment uses the second D2D resource allocated by the target D2D resource allocation information.
  • the downlink channel may be a PDCCH
  • the target D2D resource allocation information may be identifier information including a D2D resource, for example, information including a Radio Network Tempory Identity (RNTI) of the D2D resource.
  • the second D2D resource allocated by the user equipment using the target D2D resource allocation information may be the second D2D resource transmission D2D data allocated by using the target D2D resource allocation information.
  • the target D2D resource allocation information is obtained, where the acquisition requires a time.
  • step 203 selects the first D2D resource.
  • step 203 first selects the first D2D resource, and step 202 acquires the target D2D resource allocation information.
  • the embodiment may be configured to send the D2D data by using the second D2D resource when acquiring the target D2D resource allocation information.
  • the D2D data when the D2D data is relatively large, when the D2D data is transmitted by using the second D2D resource, when the first D2D resource is selected, the D2D data may also be sent by using the first D2D resource.
  • the step 203 selects the first D2D resource, and the D2D data that the user equipment needs to send has not been sent yet, so that the first D2D resource and the second D2D resource can be used.
  • the D2D data can be sent first by using the first D2D resource. That is, the above method may further include the following steps:
  • the user equipment performs D2D communication using the first D2D resource; and/or
  • the user equipment performs D2D communication using the second D2D resource.
  • the D2D communication using the first D2D resource may be to transmit the first D2D data
  • the D2D communication using the second D2D resource may be the transmission of the second D2D data. That is, it is possible to simultaneously transmit D2D data through two D2D resources.
  • the D2D data that the user equipment needs to transmit may be the first D2D data and/or the second D2D data.
  • the user equipment after the user equipment uses the second D2D resource allocated by the target D2D resource allocation information, that is, after the user equipment sends the D2D data by using the second D2D resource, the user equipment terminates sending to the base station for sending Request a resource allocation request to allocate a D2D resource.
  • the user equipment terminates sending a resource allocation request for requesting allocation of D2D resources to the base station; or when the user equipment sends the D2D data by using the second D2D resource, the user equipment The device terminates sending a resource allocation request for requesting allocation of D2D resources to the base station.
  • the sending of the resource allocation request for requesting the allocation of the D2D resource to the base station may include:
  • the user equipment terminates the retransmission D2D resource allocation request timer, for example, terminating retransmission ProSe BSR timer;
  • the user equipment terminates a periodic D2D resource allocation request timer, for example, a terminating period ProSe BSR timer.
  • the D2D data transmitted by the D2D communication may be an address resolution protocol (ARP) data and an IP data, so that the step of the user equipment to perform D2D communication by using the first D2D resource may include:
  • ARP address resolution protocol
  • IP data IP data
  • the user equipment selects a preset radio bearer for carrying the ARP data to carry the ARP data in the D2D data, and uses the first D2D resource to transmit the first ARP data in the D2D data carried by the radio bearer.
  • the user equipment may also select the IP data in the D2D data carried by the radio bearer carrying the address resolution protocol ARP data, and transmit the first IP address in the D2D data carried by the radio bearer by using the first D2D resource. data.
  • the IP data and the ARP data in the D2D data carried by the radio bearer carrying the address resolution protocol ARP data may be differentiated by the identifier of the data packet of each data, so that the receiving device receives the radio bearer. After the data, the identification of the data packet can be used to distinguish which data is ARP data and which data is IP data. This enables ARP data and IP data to be carried on the same radio bearer.
  • the step of the user equipment performing D2D communication by using the second D2D resource may include:
  • the user equipment selects a preset radio bearer for carrying the ARP data to carry the ARP data in the D2D data, and uses the second D2D resource to transmit the second ARP data in the D2D data carried by the radio bearer.
  • the user equipment may also select a preset radio bearer for carrying the address resolution protocol ARP data to carry IP data in the D2D data, and use the second D2D resource to transmit the second IP data in the D2D data carried by the radio bearer.
  • the IP data in the D2D data that the user equipment needs to transmit may include the foregoing first IP data and/or the second IP data
  • the ARP data in the D2D data that the user equipment needs to transmit may include the foregoing first ARP data and/or the first Two ARP data.
  • the radio bearer for carrying the ARP data preset may be a radio bearer with a preset specific identifier, for example, a radio bearer with a specific radio bearer sequence number, or A radio bearer of a specific logical channel sequence number, or a bearer dedicated to transmitting ARP data; or a bearer dedicated to transmission control signaling different from a user plane data bearer.
  • the priority of the ARP data in the IP data and the ARP data of the D2D data is relatively high, so that the ARP data can be transmitted through the specific radio bearer, and the user who receives the ARP data can be prioritized.
  • the device can recognize the received data as ARP data through the radio bearer, so that the data received in the radio bearer can be directly transmitted to the ARP layer without discriminating.
  • the foregoing preset radio bearer for carrying ARP data may be that the user equipment pre-negotiates with the user equipment that receives the D2D data, or the user equipment notifies the user equipment that receives the D2D data.
  • the transmission of the IP data in the D2D data is not limited in this embodiment.
  • the foregoing user equipment performs resource processing operations for avoiding waste of D2D resources for the resource allocation request, and may include:
  • the user equipment sends a D2D resource allocation stop indication to the base station, where the resource allocation stop indication is used to instruct the base station to stop responding to the D2D resource allocation request.
  • the base station When the base station receives the D2D resource allocation stop indication, the base station stops responding to the resource allocation request, so as to avoid waste of D2D resources allocated by the base station for the user equipment.
  • the user equipment when the user equipment sends the resource allocation stop indication, the user equipment has switched to the target resource allocation mode, that is, the user equipment has stopped listening to the downlink channel, and if the base station further allocates D2D resources, the user equipment cannot Get the D2D resource.
  • the foregoing radio bearer carries ARP data in the D2D data, including:
  • the radio bearer carries a Packet Data Convergence Protocol (PDCP) packet that includes ARP data in the D2D data, where the header of the PDCP packet includes data for indicating that the data contained in the PDCP packet is ARP data. Identification information.
  • PDCP Packet Data Convergence Protocol
  • the PD2 packet carried by the radio bearer may be transmitted by using the first D2D resource and/or the second D2D resource.
  • the data included in the PDCP packet is identified by the identifier information in the header of the PDCP packet as the ARP data, that is, the user equipment receiving the D2D data can identify the ARP data by using the identifier information in the header of the PDCP packet.
  • the wireless The data packet may also transmit other data.
  • the packet header of some of the foregoing radio bearers may further include identifier information indicating that the data included in the PDCP packet is RRC data, that is, the radio bearer may also transmit RRC data. Therefore, the utilization of providing wireless bearer resources can be improved.
  • the foregoing radio bearer carrying the IP data in the D2D data may include:
  • the radio bearer carries a PDCP packet containing IP data in the D2D data, where the header of the PDCP packet includes identification information for processing IP data contained in the PDCP packet.
  • the identification information used to process the IP data contained in the PDCP packet may be an identifier of an IP data packet header compression and decompression algorithm used by the radio bearer.
  • the IP data packet header compression and decompression algorithm includes User Datagram Protocol (UDP)/IP header compression and decompression algorithm, Transmission Control Protocol (TCP)/IP header compression and decompression. Algorithms, etc.
  • the PD2 packet carried by the radio bearer may be transmitted by using the first D2D resource and/or the second D2D resource.
  • the IP data packet header compression and decompression algorithm used by the radio bearer carrying the PDCP packet may be identified by the identifier information of the IP data packet header compression and decompression algorithm in the packet header of the PDCP packet. Therefore, the target receiving user equipment of the PDCP packet can perform IP header decompression on the IP data in the PDCP packet according to the IP packet header compression algorithm.
  • the user equipment selects a first D2D resource from a D2D resource pool that is acquired in advance by the user equipment.
  • the user equipment may perform D2D communication by using the first D2D resource.
  • the user equipment in step 201 when the user equipment in step 201 is switched from the first resource allocation mode to the target resource allocation mode, the user equipment determines that the user equipment does not send a resource allocation request for requesting allocation of D2D resources to the base station.
  • the user equipment stops listening to the uplink channel, for example, stops listening to the PDCCH channel.
  • the device embodiment of the present invention is used to perform the method for implementing the first to second embodiments of the present invention.
  • the device embodiment of the present invention is used to perform the method for implementing the first to second embodiments of the present invention.
  • Only parts related to the embodiment of the present invention are shown, and the specific technical details are not disclosed. Please refer to Embodiment 1 and Embodiment 2 of the present invention.
  • FIG. 3 is a schematic structural diagram of a user equipment according to an embodiment of the present invention. As shown in FIG. 3, the method includes: a sending unit 31 and a processing unit 32, where:
  • the sending unit 31 is configured to send, to the base station, a resource allocation request for requesting allocation of the D2D resource.
  • the processing unit 32 is configured to determine, when the user equipment is switched to the target resource allocation mode, whether the user equipment has sent a resource allocation request for requesting allocation of a D2D resource to the base station, where the target resource allocation mode is The user equipment selects a resource allocation mode of the D2D resource from the D2D resource pool pre-acquired by the user equipment according to a preset rule;
  • the processing unit 32 is further configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation requested by the resource allocation request sent by the base station At the time of information, a resource processing operation for avoiding waste of D2D resources is performed for the resource allocation request, wherein the target D2D resource allocation is all D2D resource allocation information or partial D2D resource allocation information requested by the resource allocation request;
  • the processing unit 32 is further configured to select a first D2D resource from a D2D resource pool that is acquired by the user equipment in advance.
  • the sending unit 31 may be a transmitter, and the processor 32 may be a processor.
  • the user equipment determines whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station; when the user equipment has been When the base station sends the resource allocation request, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, the user equipment performs the D2D for the resource allocation request.
  • the resource processing operation is a waste of resources; the user equipment selects the first D2D resource from the D2D resource pool acquired in advance by the user equipment. Thereby, the problem of allocation of D2D resources for D2D communication can be solved.
  • FIG. 4 is a schematic structural diagram of another user equipment according to an embodiment of the present disclosure. As shown in FIG. 4, it includes: a transmitting unit 41 and a processor 42, wherein:
  • the sending unit 41 is configured to send, to the base station, a resource allocation request for requesting allocation of the D2D resource.
  • the processing unit 42 is configured to: when the user equipment is switched from the first resource allocation mode to the target resource allocation mode, determine whether the user equipment has sent a resource allocation request for requesting allocation of a D2D resource to the base station, where the target resource
  • the allocation mode is a resource allocation mode in which the user equipment selects a D2D resource from a D2D resource pool that is pre-acquired by the user equipment according to a preset rule;
  • the target resource allocation mode is a resource allocation mode in which the user equipment selects a D2D resource from a D2D resource pool that is pre-acquired by the user equipment according to a preset rule.
  • the first resource allocation mode is that the user equipment sends a resource to the base station.
  • the allocation request the base station allocates a distribution mode of the D2D resource to the user equipment in response to the resource allocation request.
  • processing unit 42 may be configured to determine whether the user equipment sends a resource allocation request for requesting allocation of D2D resources to the base station in the foregoing first resource allocation mode.
  • the processing unit 42 is further configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, And performing resource processing operations for avoiding waste of D2D resources for the resource allocation request, where the target D2D resource allocation is all D2D resource allocation information or partial D2D resource allocation information requested by the resource allocation request;
  • the processing unit 42 is further configured to select the first D2D resource from the D2D resource pool that is acquired by the user equipment in advance.
  • the user equipment may further include:
  • the receiving unit 43 is configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, And monitoring, by the base station, a downlink channel that sends the target D2D resource allocation information;
  • the processing unit 42 is further configured to use the second D2D resource allocated by the target D2D resource allocation information when the receiving unit acquires the target D2D resource allocation information in the downlink channel.
  • the receiving unit 43 is specifically a receiver.
  • the processing unit 42 is further configured to: when the user equipment uses the D2D resource allocation After the second D2D resource allocated by the information, the resource allocation request for requesting allocation of the D2D resource is terminated to be sent to the base station.
  • the sending unit 41 is further configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target that is requested by the resource allocation request sent by the base station And transmitting, by the D2D resource allocation information, a D2D resource allocation stop indication to the base station, where the resource allocation stop indication is used to indicate that the base station stops responding to the D2D resource allocation request.
  • the processing unit 42 is further configured to, when the user equipment switches to the target resource allocation mode, terminate sending, to the base station, a resource allocation request for requesting allocation of the D2D resource.
  • the processing unit 42 is further configured to terminate the retransmission D2D resource allocation request timer when the user equipment switches to the target resource allocation mode;
  • processing unit 42 is further configured to terminate the period D2D resource allocation request timer when the user equipment switches to the target resource allocation mode.
  • the sending unit 41 is further configured to select a preset ARP data in the radio bearer carrying D2D data for carrying the address resolution protocol ARP data, and transmit the D2D data carried by the radio bearer by using the first D2D resource.
  • ARP data is further configured to select a preset ARP data in the radio bearer carrying D2D data for carrying the address resolution protocol ARP data, and transmit the D2D data carried by the radio bearer by using the first D2D resource.
  • the sending unit 41 is further configured to select a preset ARP data in the radio bearer carrying D2D data for carrying the address resolution protocol ARP data, and transmit the D2D data carried by the radio bearer by using the first D2D resource.
  • the sending unit 41 is further configured to: select a preset ARP data in the radio bearer carrying D2D data for carrying the address resolution protocol ARP data, and transmit the D2D data carried by the radio bearer by using the second D2D resource.
  • the second ARP data is further configured to: select a preset ARP data in the radio bearer carrying D2D data for carrying the address resolution protocol ARP data, and transmit the D2D data carried by the radio bearer by using the second D2D resource.
  • the second ARP data is further configured to: select a preset ARP data in the radio bearer carrying D2D data for carrying the address resolution protocol ARP data, and transmit the D2D data carried by the radio bearer by using the second D2D resource.
  • the radio bearer carries the ARP data in the D2D data, and may include:
  • the radio bearer carries a packet data convergence protocol (PDCP) packet containing ARP data in the D2D data, where the header of the PDCP packet includes identification information indicating that the data contained in the PDCP packet is ARP data.
  • PDCP packet data convergence protocol
  • the sending unit 41 is further configured to select a first IP data in the radio bearer carrying D2D data that is used to carry the address resolution protocol ARP data, and transmit the D2D carried by the radio bearer by using the first D2D resource.
  • IP data in the data and/or
  • the sending unit is further configured to select a preset ARP data for carrying address resolution protocol.
  • the radio bearer carries the IP data in the D2D data, and uses the second D2D resource to transmit the second IP data in the D2D data carried by the radio bearer.
  • the foregoing radio bearer carries the IP data in the D2D data, and may include:
  • the radio bearer carries a PDCP packet containing IP data in the D2D data, where the header of the PDCP packet includes identification information for processing IP data contained in the PDCP packet.
  • FIG. 6 is a schematic structural diagram of another apparatus according to an embodiment of the present invention. As shown in FIG. 6, the method includes: a transmitter 61 and a processor 62, where:
  • a transmitter 61 configured to send, to the base station, a resource allocation request for requesting allocation of D2D resources
  • the processor 62 is configured to:
  • the user equipment When the user equipment is switched to the target resource allocation mode, it is determined whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station, where the target resource allocation mode is preset by the user equipment.
  • the rule selects a resource allocation mode of the D2D resource from a D2D resource pool that is pre-acquired by the user equipment;
  • the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, Requesting to perform resource processing operations for avoiding waste of D2D resources, wherein the target D2D resource allocation is all D2D resource allocation information or partial D2D resource allocation information requested by the resource allocation request;
  • the user equipment may further include:
  • the receiver 63 is configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, And monitoring, by the base station, a downlink channel that sends the target D2D resource allocation information;
  • the processor 62 is further configured to use the second D2D resource allocated by the target D2D resource allocation information when the receiving unit acquires the target D2D resource allocation information in the downlink channel.
  • the processor 62 is further configured to, after the user equipment uses the second D2D resource allocated by the D2D resource allocation information, terminate sending a resource allocation request for requesting allocation of the D2D resource to the base station.
  • the transmitter 61 is further configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target that is requested by the resource allocation request sent by the base station And transmitting, by the D2D resource allocation information, a D2D resource allocation stop indication to the base station, where the D2D resource allocation stop indication is used to indicate that the base station stops responding to the resource allocation request.
  • the processor 62 is further configured to, when the user equipment switches to the target resource allocation mode, terminate sending a resource allocation request for requesting allocation of the D2D resource to the base station.
  • the processor 62 is further configured to terminate the retransmission D2D resource allocation request timer when the user equipment switches to the target resource allocation mode;
  • the processor 62 is further configured to terminate the periodic D2D resource allocation request timer when the user equipment switches to the target resource allocation mode.
  • the transmitter 61 is further configured to select a preset radio bearer for carrying the address resolution protocol ARP data to carry the ARP data in the D2D data, and use the first D2D resource to transmit the D2D data carried by the radio bearer. Address Resolution Protocol ARP Data.
  • the transmitter 61 is further configured to: use the first D2D resource to transmit the ARP data in the D2D data that is used to carry the address resolution protocol ARP data.
  • the transmitter 61 is further configured to select a preset radio bearer for carrying address resolution protocol ARP data to carry ARP data in the D2D data, and use the second D2D resource to transmit the D2D data carried by the radio bearer.
  • the second ARP data is further configured to select a preset radio bearer for carrying address resolution protocol ARP data to carry ARP data in the D2D data, and use the second D2D resource to transmit the D2D data carried by the radio bearer.
  • the second ARP data is further configured to select a preset radio bearer for carrying address resolution protocol ARP data to carry ARP data in the D2D data, and use the second D2D resource to transmit the D2D data carried by the radio bearer.
  • the second ARP data is further configured to select a preset radio bearer for carrying address resolution protocol ARP data to carry ARP data in the D2D data, and use the second D2D resource to transmit the D2D data carried by the radio bearer.
  • the second ARP data is further configured to select
  • the radio bearer carries the ARP data in the D2D data, and may include:
  • the radio bearer carries a packet data convergence protocol (PDCP) packet containing ARP data in the D2D data, where the header of the PDCP packet includes identification information indicating that the data contained in the PDCP packet is ARP data.
  • PDCP packet data convergence protocol
  • the transmitter 61 is further configured to select a preset first IP data in the radio bearer carrying D2D data for carrying the address resolution protocol ARP data, and transmit the D2D carried by the radio bearer by using the first D2D resource.
  • IP data in the data and/or
  • the transmitter 61 is further configured to select a preset radio bearer for carrying the address resolution protocol ARP data to carry the IP data in the D2D data, and use the second D2D resource to transmit the D2D data carried by the radio bearer.
  • the second IP data is further configured to select a preset radio bearer for carrying the address resolution protocol ARP data to carry the IP data in the D2D data, and use the second D2D resource to transmit the D2D data carried by the radio bearer.
  • the second IP data is further configured to select a preset radio bearer for carrying the address resolution protocol ARP data to carry the IP data in the D2D data, and use the second D2D resource to transmit the D2D data carried by the radio bearer.
  • the second IP data is further configured to select a preset radio bearer for carrying the address resolution protocol ARP data to carry the IP data in the D2D data, and use the second D2D resource to transmit the D2D data carried by the radio bearer.
  • the second IP data is further configured to select
  • the radio bearer carries IP data in the D2D data, and may include:
  • the radio bearer carries a PDCP packet containing IP data in the D2D data, where the header of the PDCP packet includes identification information for processing IP data contained in the PDCP packet.
  • the user equipment determines whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station; when the user equipment has been When the base station sends the resource allocation request, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, the user equipment performs the resource allocation request for avoiding The D2D resource is wasted resource processing operation; the user equipment selects the first D2D resource from the D2D resource pool that is pre-acquired by the user equipment. Thereby, the problem of allocation of D2D resources for D2D communication can be solved.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed in the embodiment of the present invention are a D2D resource allocating method and user equipment including that: when switching to a target resource allocating mode, the user equipment determines whether the user equipment has transmitted a resource allocating request to the base station for requiring allocation of the D2D resource, wherein, the target resource allocating mode is the resource allocating mode in which the user equipment chooses D2D resource according to preset rules from a D2D resource pool pre-obtained by the user equipment; when having sent the resource allocating request to the base station and not yet received the target D2D resource allocating information transmitted by the base station and requested by the resource allocating request, the user equipment performs a resource processing operation according to the resource allocating request to avoid wasting D2D resource; the user equipment chooses first D2D resource from the D2D resource pool pre-obtained by the user equipment. The embodiment of the present invention is able to resolve the problem of D2D resource allocation in D2D communication.

Description

一种D2D资源分配方法和用户设备D2D resource allocation method and user equipment 技术领域Technical field
本发明涉及通信领域,尤其涉及一种设备对设备(Device-to-Device,D2D)资源分配方法和用户设备。The present invention relates to the field of communications, and in particular, to a device-to-device (D2D) resource allocation method and user equipment.
背景技术Background technique
在目前通信系统中,D2D通信技术是当前兴起一种通信技术,该技术与已有蜂窝通信技术不同的是,蜂窝通信技术中用户设备的数据是需要经过基站传输,而D2D通信技术是用户设备之间直接进行数据传输,以减少传输时延。In the current communication system, D2D communication technology is currently a communication technology. This technology is different from the existing cellular communication technology. In the cellular communication technology, the data of the user equipment needs to be transmitted through the base station, and the D2D communication technology is the user equipment. Data transmission is directly performed between them to reduce transmission delay.
虽然采用D2D通信技术可以减少传输时延,但D2D通信的D2D资源的分配却一直存在问题。Although D2D communication technology can reduce transmission delay, the allocation of D2D resources for D2D communication has always been problematic.
发明内容Summary of the invention
本发明提供了一种D2D资源分配方法和用户设备,可以解决D2D通信的D2D资源的分配问题。The invention provides a D2D resource allocation method and user equipment, which can solve the problem of D2D resource allocation of D2D communication.
第一方面,本发明提供一种D2D资源分配方法,包括:In a first aspect, the present invention provides a D2D resource allocation method, including:
当用户设备切换到目标资源分配模式时,所述用户设备判断所述用户设备是否已经向基站发送用于请求分配D2D资源的资源分配请求,其中,所述目标资源分配模式为所述用户设备按照预设规则从所述用户设备预先获取的D2D资源池中选择D2D资源的资源分配模式;When the user equipment switches to the target resource allocation mode, the user equipment determines whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station, where the target resource allocation mode is The preset rule selects a resource allocation mode of the D2D resource from the D2D resource pool acquired by the user equipment in advance;
当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,所述用户设备针对所述资源分配请求执行用于避免D2D资源浪费的资源处理操作,其中,所述目标D2D资源分配为所述资源分配请求所请求的所有D2D资源分配信息或者部分D2D资源分配信息;When the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, the user equipment is targeted to The resource allocation request performs a resource processing operation for avoiding waste of D2D resources, where the target D2D resource allocation is all D2D resource allocation information or partial D2D resource allocation information requested by the resource allocation request;
所述用户设备从所述用户设备预先获取的D2D资源池中选择第一D2D资源。 The user equipment selects a first D2D resource from a D2D resource pool that is acquired in advance by the user equipment.
在第一方面的第一种可选的实施方式中,所述用户设备针对所述资源分配请求执行用于避免D2D资源浪费的资源处理操作,包括:In a first optional implementation manner of the first aspect, the user equipment performs resource processing operations for avoiding waste of D2D resources for the resource allocation request, including:
所述用户设备监听所述基站发送所述目标D2D资源分配信息的下行信道;The user equipment monitors, by the base station, a downlink channel that sends the target D2D resource allocation information;
当所述用户设备在所述下行信道中获取到所述目标D2D资源分配信息时,所述用户设备使用所述目标D2D资源分配信息分配的第二D2D资源。When the user equipment acquires the target D2D resource allocation information in the downlink channel, the user equipment uses the second D2D resource allocated by the target D2D resource allocation information.
结合第一方面的第一种可能的实现方式,在第一方面的第二种可选的实施方式中,所述方法还包括:In conjunction with the first possible implementation of the first aspect, in a second optional implementation manner of the first aspect, the method further includes:
当所述用户设备使用所述目标D2D资源分配信息分配的第二D2D资源后,所述用户设备终止向基站发送用于请求分配D2D资源的资源分配请求。After the user equipment uses the second D2D resource allocated by the target D2D resource allocation information, the user equipment terminates sending a resource allocation request for requesting allocation of D2D resources to the base station.
结合第一方面,在第一方面的第三种可选的实施方式中,所述用户设备针对所述资源分配请求执行用于避免D2D资源浪费的资源处理操作,包括:With reference to the first aspect, in a third optional implementation manner of the first aspect, the user equipment performs resource processing operations for avoiding waste of D2D resources for the resource allocation request, including:
所述用户设备向所述基站发送D2D资源分配停止指示,所述资源分配停止指示用于指示所述基站停止响应所述D2D资源分配请求。And the user equipment sends a D2D resource allocation stop indication to the base station, where the resource allocation stop indication is used to indicate that the base station stops responding to the D2D resource allocation request.
结合第一方面或者第一方面的第一种可能的实现方式或者第一方面的第三种可能的实现方式,在第一方面的第四种可选的实施方式中,所述方法还包括:With reference to the first aspect, or the first possible implementation of the first aspect, or the third possible implementation of the first aspect, in a fourth optional implementation of the first aspect, the method further includes:
当所述用户设备切换到目标资源分配模式时,所述用户设备终止向基站发送用于请求分配D2D资源的资源分配请求。When the user equipment switches to the target resource allocation mode, the user equipment terminates sending a resource allocation request for requesting allocation of D2D resources to the base station.
结合第一方面的第二种可能的实现方式或者第一方面的第四种可能的实现方式,在第一方面的第五种可选的实施方式中,所述用户设备终止向基站发送用于请求分配D2D资源的资源分配请求,包括:In conjunction with the second possible implementation of the first aspect or the fourth possible implementation of the first aspect, in a fifth optional implementation of the first aspect, the user equipment terminates sending to the base station for A resource allocation request requesting allocation of D2D resources, including:
所述用户设备终止重传D2D资源分配请求定时器;或者The user equipment terminates retransmitting the D2D resource allocation request timer; or
所述用户设备终止周期D2D资源分配请求定时器。The user equipment terminates a periodic D2D resource allocation request timer.
结合第一方面上述任一种可能的实现方式,在第一方面的第六种可选的实施方式中,所述方法还包括:In conjunction with any of the foregoing possible implementations of the first aspect, in a sixth optional implementation of the first aspect, the method further includes:
所述用户设备选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的ARP数据。 The user equipment selects a preset radio bearer for carrying the address resolution protocol ARP data to carry ARP data in the D2D data, and uses the first D2D resource to transmit the ARP data in the D2D data carried by the radio bearer.
结合第一方面的第一种可能的实现方式或者第一方面的第二种可能的实现方式,在第一方面的第八种可选的实施方式中,所述方法还包括:With reference to the first possible implementation of the first aspect or the second possible implementation of the first aspect, in an eighth optional implementation manner of the first aspect, the method further includes:
所述用户设备选择预先设置的用于承载ARP数据的无线承载承载D2D数据中的ARP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的第一ARP数据;和/或者The user equipment selects a preset radio bearer carrying ARP data to carry ARP data in the D2D data, and uses the first D2D resource to transmit the first ARP data in the D2D data carried by the radio bearer; and/or
所述用户设备选择预先设置的用于承载ARP数据的无线承载承载D2D数据中的ARP数据,并采用第二D2D资源传输所述无线承载所承载D2D数据中的第二ARP数据。The user equipment selects a preset radio bearer for carrying ARP data to carry ARP data in the D2D data, and uses the second D2D resource to transmit the second ARP data in the D2D data carried by the radio bearer.
结合第一方面的第六种可能的实现方式或者第一方面的第七种可能的实现方式,在第一方面的第八种可选的实施方式中,所述无线承载承载D2D数据中的ARP数据,包括:In conjunction with the sixth possible implementation of the first aspect, or the seventh possible implementation of the first aspect, in an eighth optional implementation of the first aspect, the radio bearer carries ARP in the D2D data. Data, including:
所述无线承载承载包含D2D数据中的ARP数据的分组数据汇聚协议PDCP包,其中,所述PDCP包的包头包含用于表示所述PDCP包内包含的数据为ARP数据的标识信息。The radio bearer carries a packet data convergence protocol (PDCP) packet containing ARP data in the D2D data, where the header of the PDCP packet includes identification information indicating that the data contained in the PDCP packet is ARP data.
结合第一方面的第七种可能的实现方式或者第一方面的第八种可能的实现方式,在第一方面的第九种可选的实施方式中,所述方法还包括:With reference to the seventh possible implementation of the first aspect, or the eighth possible implementation of the first aspect, in a ninth optional implementation manner of the first aspect, the method further includes:
所述用户设备选择预先设置的用于承载ARP数据的无线承载承载D2D数据中的IP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的第一IP数据;和/或者The user equipment selects a preset radio bearer for carrying ARP data to carry IP data in the D2D data, and uses the first D2D resource to transmit the first IP data in the D2D data carried by the radio bearer; and/or
所述用户设备选择预先设置的用于承载ARP数据的无线承载承载D2D数据中的IP数据,并采用第二D2D资源传输所述无线承载所承载D2D数据中的第二IP数据。The user equipment selects a preset radio bearer carrying ARP data to carry IP data in the D2D data, and uses the second D2D resource to transmit the second IP data in the D2D data carried by the radio bearer.
结合第一方面的第九种可能的实现方式,在第一方面的第十种可选的实施方式中,所述无线承载承载D2D数据中的IP数据,包括:With reference to the ninth possible implementation manner of the first aspect, in a tenth optional implementation manner of the first aspect, the radio bearer carries the IP data in the D2D data, including:
所述无线承载承载包含D2D数据中的IP数据的PDCP包,其中,该PDCP包的包头包含用于处理该PDCP包内包含的IP数据的标识信息。The radio bearer carries a PDCP packet containing IP data in the D2D data, where the header of the PDCP packet includes identification information for processing IP data contained in the PDCP packet.
第二方面,本发明提供一种用户设备,包括:发送单元和处理单元,其中:In a second aspect, the present invention provides a user equipment, including: a sending unit and a processing unit, where:
所述发送单元,用于向基站发送用于请求分配D2D资源的资源分配请求;The sending unit is configured to send, to the base station, a resource allocation request for requesting allocation of D2D resources;
所述处理单元,用于当所述用户设备切换到目标资源分配模式时,判断所 述用户设备是否已经向基站发送用于请求分配D2D资源的资源分配请求,其中,所述目标资源分配模式为所述用户设备按照预设规则从所述用户设备预先获取的D2D资源池中选择D2D资源的资源分配模式;The processing unit is configured to determine, when the user equipment switches to a target resource allocation mode, Whether the user equipment has sent a resource allocation request for requesting allocation of a D2D resource to the base station, where the target resource allocation mode is that the user equipment selects D2D from the D2D resource pool pre-acquired by the user equipment according to a preset rule. Resource allocation pattern of resources;
所述处理单元还用于当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,针对所述资源分配请求执行用于避免D2D资源浪费的资源处理操作,其中,所述目标D2D资源分配为所述资源分配请求所请求的所有D2D资源分配信息或者部分D2D资源分配信息;The processing unit is further configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station And performing resource processing operations for avoiding waste of D2D resources for the resource allocation request, where the target D2D resource allocation is all D2D resource allocation information or partial D2D resource allocation information requested by the resource allocation request;
所述处理单元还用于从所述用户设备预先获取的D2D资源池中选择第一D2D资源。The processing unit is further configured to select a first D2D resource from a D2D resource pool that is pre-acquired by the user equipment.
在第二方面的第一种可能的实现方式中,所述用户设备还包括:In a first possible implementation manner of the second aspect, the user equipment further includes:
接收单元,用于当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,监听所述基站发送所述目标D2D资源分配信息的下行信道;a receiving unit, configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, Monitoring, by the base station, a downlink channel that sends the target D2D resource allocation information;
所述处理单元还用于当所述接收单元在所述下行信道中获取到所述目标D2D资源分配信息时,使用所述目标D2D资源分配信息分配的第二D2D资源。The processing unit is further configured to: when the receiving unit acquires the target D2D resource allocation information in the downlink channel, use the second D2D resource allocated by the target D2D resource allocation information.
结合第二方面的第一种可能的实现方,在第二方面的第二种可能的实现方式中,所述处理单元还用于当所述用户设备使用所述D2D资源分配信息分配的第二D2D资源后,终止向基站发送用于请求分配D2D资源的资源分配请求。With reference to the first possible implementation of the second aspect, in a second possible implementation manner of the second aspect, the processing unit is further configured to: when the user equipment uses the second allocation of the D2D resource allocation information After the D2D resource, the resource allocation request for requesting allocation of the D2D resource is terminated to be sent to the base station.
结合第二方面,在第二方面的第三种可能的实现方式中,所述发送单元还用于当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,向所述基站发送D2D资源分配停止指示,所述资源分配停止指示用于指示所述基站停止响应所述D2D资源分配请求。With reference to the second aspect, in a third possible implementation manner of the second aspect, the sending unit is further configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive And sending, to the base station, a D2D resource allocation stop indication, where the resource allocation stop indication is used to indicate that the base station stops responding to the D2D resource, when the target D2D resource allocation information requested by the resource allocation request sent by the base station is sent Assign a request.
结合第二方面或者第二方面的第一种可能的实现方或者第二方面的第三种可能的实现方,在第二方面的第四种可能的实现方式中,所述处理单元还用于当用户设备切换到目标资源分配模式时,终止向基站发送用于请求分配D2D资源的资源分配请求。 In conjunction with the second aspect or the first possible implementation of the second aspect or the third possible implementation of the second aspect, in a fourth possible implementation of the second aspect, the processing unit is further configured to: When the user equipment switches to the target resource allocation mode, the resource allocation request for requesting allocation of the D2D resource is terminated to be sent to the base station.
结合第二方面的第四种可能的实现方,在第二方面的第五种可能的实现方式中,所述处理单元还用于当所述用户设备切换到目标资源分配模式时,终止重传D2D资源分配请求定时器;或者In conjunction with the fourth possible implementation of the second aspect, in a fifth possible implementation manner of the second aspect, the processing unit is further configured to terminate the retransmission when the user equipment switches to the target resource allocation mode D2D resource allocation request timer; or
所述处理单元还用于当所述用户设备切换到目标资源分配模式时,终止周期D2D资源分配请求定时器。The processing unit is further configured to terminate the periodic D2D resource allocation request timer when the user equipment switches to the target resource allocation mode.
结合第二方面上述任一种可能的实现方,在第二方面的第六种可能的实现方式中,所述发送单元还用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的ARP数据。With reference to the foregoing two possible implementations of the second aspect, in a sixth possible implementation manner of the second aspect, the sending unit is further configured to select a preset radio bearer bearer for carrying address resolution protocol ARP data. ARP data in the D2D data, and using the first D2D resource to transmit ARP data in the D2D data carried by the radio bearer.
结合第二方面的第一种可能的实现方,在第二方面的第七种可能的实现方式中,所述发送单元还用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的第一ARP数据;和/或者With reference to the first possible implementation of the second aspect, in a seventh possible implementation manner of the second aspect, the sending unit is further configured to select a preset radio bearer bearer for carrying address resolution protocol ARP data. ARP data in the D2D data, and using the first D2D resource to transmit the first ARP data in the D2D data carried by the radio bearer; and/or
所述发送单元还用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第二D2D资源传输所述无线承载所承载D2D数据中的第二ARP数据。The sending unit is further configured to: select a preset ARP data in the radio bearer carrying D2D data for carrying the address resolution protocol ARP data, and transmit, by using the second D2D resource, the second ARP in the D2D data carried by the radio bearer. data.
结合第二方面的第七种可能的实现方,在第二方面的第八种可能的实现方式中,所述无线承载承载D2D数据中的ARP数据,包括:With reference to the seventh possible implementation of the second aspect, in an eighth possible implementation manner of the second aspect, the radio bearer carries the ARP data in the D2D data, including:
所述无线承载承载包含D2D数据中的ARP数据的分组数据汇聚协议PDCP包,其中,所述PDCP包的包头包含用于表示所述PDCP包内包含的数据为ARP数据的标识信息。The radio bearer carries a packet data convergence protocol (PDCP) packet containing ARP data in the D2D data, where the header of the PDCP packet includes identification information indicating that the data contained in the PDCP packet is ARP data.
结合第二方面的第七种可能的实现方或者第二方面的第八种可能的实现方,在第二方面的第九种可能的实现方式中,所述发送单元还用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的第一IP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的IP数据;和/或者In conjunction with the seventh possible implementation of the second aspect or the eighth possible implementation of the second aspect, in a ninth possible implementation of the second aspect, the sending unit is further configured to select a preset The radio bearer for carrying the address resolution protocol ARP data carries the first IP data in the D2D data, and uses the first D2D resource to transmit the IP data in the D2D data carried by the radio bearer; and/or
所述发送单元还用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的IP数据,并采用第二D2D资源传输所述无线承载所承载D2D数据中的第二IP数据。 The sending unit is further configured to select the IP data in the radio bearer carrying the D2D data for carrying the address resolution protocol ARP data, and transmit the second IP in the D2D data carried by the radio bearer by using the second D2D resource. data.
结合第二方面的第九种可能的实现方,在第二方面的第十种可能的实现方式中,所述无线承载承载D2D数据中的IP数据,包括:With reference to the ninth possible implementation of the second aspect, in a tenth possible implementation manner of the second aspect, the radio bearer carries the IP data in the D2D data, including:
所述无线承载承载包含D2D数据中的IP数据的PDCP包,其中,该PDCP包的包头包含用于处理该PDCP包内包含的IP数据的标识信息。The radio bearer carries a PDCP packet containing IP data in the D2D data, where the header of the PDCP packet includes identification information for processing IP data contained in the PDCP packet.
第三方面,本发明提供一种用户设备,包括:发射器和处理器;其中:In a third aspect, the present invention provides a user equipment, including: a transmitter and a processor; wherein:
所述发射器,用于向基站发送用于请求分配D2D资源的资源分配请求;The transmitter is configured to send, to the base station, a resource allocation request for requesting allocation of D2D resources;
所述处理器用于:The processor is used to:
当所述用户设备切换到目标资源分配模式时,判断所述用户设备是否已经向基站发送用于请求分配D2D资源的资源分配请求,其中,所述目标资源分配模式为所述用户设备按照预设规则从所述用户设备预先获取的D2D资源池中选择D2D资源的资源分配模式;When the user equipment is switched to the target resource allocation mode, it is determined whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station, where the target resource allocation mode is preset by the user equipment. The rule selects a resource allocation mode of the D2D resource from a D2D resource pool that is pre-acquired by the user equipment;
当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,针对所述资源分配请求执行用于避免D2D资源浪费的资源处理操作,其中,所述目标D2D资源分配为所述资源分配请求所请求的所有D2D资源分配信息或者部分D2D资源分配信息;And when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, Requesting to perform resource processing operations for avoiding waste of D2D resources, wherein the target D2D resource allocation is all D2D resource allocation information or partial D2D resource allocation information requested by the resource allocation request;
从所述用户设备预先获取的D2D资源池中选择第一D2D资源。Selecting a first D2D resource from a pool of D2D resources previously acquired by the user equipment.
第三方面的第一种可能的实现方式中,所述用户设备还包括:In a first possible implementation manner of the third aspect, the user equipment further includes:
接收器,用于当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,监听所述基站发送所述目标D2D资源分配信息的下行信道;a receiver, configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, Monitoring, by the base station, a downlink channel that sends the target D2D resource allocation information;
所述处理器还用于当所述接收单元在所述下行信道中获取到所述目标D2D资源分配信息时,使用所述目标D2D资源分配信息分配的第二D2D资源。The processor is further configured to: when the receiving unit acquires the target D2D resource allocation information in the downlink channel, use the second D2D resource allocated by the target D2D resource allocation information.
结合第三方面的第一种可能的实现方式,第三方面的第二种可能的实现方式中,所述处理器还用于当所述用户设备使用所述D2D资源分配信息分配的第二D2D资源后,终止向基站发送用于请求分配D2D资源的资源分配请求。With reference to the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the processor is further configured to: when the user equipment uses the second D2D allocated by the D2D resource allocation information After the resource is terminated, the resource allocation request for requesting allocation of the D2D resource is terminated to the base station.
结合第三方面,第三方面的第三种可能的实现方式中,发射器还用于当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,向所 述基站发送D2D资源分配停止指示,所述D2D资源分配停止指示用于指示所述基站停止响应所述资源分配请求。With reference to the third aspect, in a third possible implementation manner of the third aspect, the transmitter is further configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the When the target D2D resource allocation information requested by the resource allocation request sent by the base station is The base station sends a D2D resource allocation stop indication, where the D2D resource allocation stop indication is used to instruct the base station to stop responding to the resource allocation request.
结合第三方面或者第三方面的第一种可能的实现方式或者第三方面的第三种可能的实现方式,第三方面的第四种可能的实现方式中,所述处理器还用于当用户设备切换到目标资源分配模式时,终止向基站发送用于请求分配D2D资源的资源分配请求。With reference to the third aspect, or the first possible implementation manner of the third aspect, or the third possible implementation manner of the third aspect, in a fourth possible implementation manner of the third aspect, the processor is further configured to be used when When the user equipment switches to the target resource allocation mode, the resource allocation request for requesting allocation of the D2D resource is terminated to be sent to the base station.
结合第三方面的第二种可能的实现方式或者第三方面的第四种可能的实现方式,第三方面的第五种可能的实现方式中,所述处理器还用于当所述用户设备切换到目标资源分配模式时,终止重传D2D资源分配请求定时器;或者In conjunction with the second possible implementation of the third aspect, or the fourth possible implementation of the third aspect, in a fifth possible implementation manner of the third aspect, the processor is further configured to be used by the user equipment Terminate the retransmission D2D resource allocation request timer when switching to the target resource allocation mode; or
所述处理器还用于当所述用户设备切换到目标资源分配模式时,终止周期D2D资源分配请求定时器。The processor is further configured to terminate the periodic D2D resource allocation request timer when the user equipment switches to the target resource allocation mode.
结合第三方面上述任一种可能的实现方式,第三方面的第七种可能的实现方式中,所述发射器还用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的地址解析协议ARP数据。In conjunction with the foregoing possible implementation manner of the foregoing aspect, in a seventh possible implementation manner of the third aspect, the transmitter is further configured to select a preset radio bearer D2D for carrying address resolution protocol ARP data. The ARP data in the data, and the first D2D resource is used to transmit the address resolution protocol ARP data in the D2D data carried by the radio bearer.
结合第三方面的第五种可能的实现方式或者第三方面的第六种可能的实现方式,第三方面的第七种可能的实现方式中,所述发射器还用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的第一ARP数据;和/或者In conjunction with the fifth possible implementation of the third aspect, or the sixth possible implementation of the third aspect, in a seventh possible implementation manner of the third aspect, the transmitter is further configured to select a preset The radio bearer carrying the address resolution protocol ARP data carries the ARP data in the D2D data, and uses the first D2D resource to transmit the first ARP data in the D2D data carried by the radio bearer; and/or
所述发射器还用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第二D2D资源传输所述无线承载所承载D2D数据中的第二ARP数据。The transmitter is further configured to select a preset ARP data in the radio bearer carrying D2D data for carrying the address resolution protocol ARP data, and transmit the second ARP in the D2D data carried by the radio bearer by using the second D2D resource. data.
结合第三方面的第六种可能的实现方式或者第三方面的第七种可能的实现方式,第三方面的第八种可能的实现方式中,所述无线承载承载D2D数据中的ARP数据,包括:With reference to the sixth possible implementation of the third aspect, or the seventh possible implementation manner of the third aspect, in the eighth possible implementation manner of the third aspect, the radio bearer carries ARP data in the D2D data, include:
所述无线承载承载包含D2D数据中的ARP数据的分组数据汇聚协议PDCP包,其中,所述PDCP包的包头包含用于表示所述PDCP包内包含的数据为ARP数据的标识信息。 The radio bearer carries a packet data convergence protocol (PDCP) packet containing ARP data in the D2D data, where the header of the PDCP packet includes identification information indicating that the data contained in the PDCP packet is ARP data.
结合第三方面的第七种可能的实现方式或者第三方面的第八种可能的实现方式,第三方面的第九种可能的实现方式中,所述发射器还用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的第一IP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的IP数据;和/或者In conjunction with the seventh possible implementation of the third aspect, or the eighth possible implementation of the third aspect, in a ninth possible implementation manner of the third aspect, the transmitter is further configured to select a preset The radio bearer carrying the address resolution protocol ARP data carries the first IP data in the D2D data, and uses the first D2D resource to transmit the IP data in the D2D data carried by the radio bearer; and/or
所述发射器还用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的IP数据,并采用第二D2D资源传输所述无线承载所承载D2D数据中的第二IP数据。The transmitter is further configured to select a preset radio bearer for carrying the address resolution protocol ARP data to carry IP data in the D2D data, and use the second D2D resource to transmit the second IP in the D2D data carried by the radio bearer. data.
结合第三方面的第九种可能的实现方式,第三方面的第十种可能的实现方式中,所述无线承载承载D2D数据中的IP数据,包括:With reference to the ninth possible implementation manner of the third aspect, in the tenth possible implementation manner of the third aspect, the radio bearer carries the IP data in the D2D data, including:
所述无线承载承载包含D2D数据中的IP数据的PDCP包,其中,该PDCP包的包头包含用于处理该PDCP包内包含的IP数据的标识信息。The radio bearer carries a PDCP packet containing IP data in the D2D data, where the header of the PDCP packet includes identification information for processing IP data contained in the PDCP packet.
上述技术方案中,当用户设备切换到目标资源分配模式时,所述用户设备判断所述用户设备是否已经向基站发送用于请求分配D2D资源的资源分配请求;当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,所述用户设备针对所述资源分配请求执行用于避免D2D资源浪费的资源处理操作;用户设备从所述用户设备预先获取的D2D资源池中选择第一D2D资源。从而可以解决D2D通信的D2D资源的分配问题。In the foregoing technical solution, when the user equipment switches to the target resource allocation mode, the user equipment determines whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station; when the user equipment has been When the base station sends the resource allocation request, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, the user equipment performs the resource allocation request for avoiding The D2D resource is wasted resource processing operation; the user equipment selects the first D2D resource from the D2D resource pool that is pre-acquired by the user equipment. Thereby, the problem of allocation of D2D resources for D2D communication can be solved.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1是本发明实施例提供的一种D2D资源分配方法的流程示意图;1 is a schematic flowchart of a D2D resource allocation method according to an embodiment of the present invention;
图2是本发明实施例提供的另一种D2D资源分配方法的流程示意图;2 is a schematic flowchart of another D2D resource allocation method according to an embodiment of the present invention;
图3是本发明实施例提供的一种用户设备的结构示意图;FIG. 3 is a schematic structural diagram of a user equipment according to an embodiment of the present disclosure;
图4是本发明实施例提供的另一种用户设备的结构示意图; 4 is a schematic structural diagram of another user equipment according to an embodiment of the present invention;
图5是本发明实施例提供的另一种用户设备的结构示意图;FIG. 5 is a schematic structural diagram of another user equipment according to an embodiment of the present disclosure;
图6是本发明实施例提供的另一种用户设备的结构示意图;FIG. 6 is a schematic structural diagram of another user equipment according to an embodiment of the present disclosure;
图7是本发明实施例提供的另一种用户设备的结构示意图。FIG. 7 is a schematic structural diagram of another user equipment according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
请参阅图1,图1是本发明实施例提供的一种D2D资源分配方法的流程示意图,如图1所示,包括以下步骤:Referring to FIG. 1 , FIG. 1 is a schematic flowchart of a D2D resource allocation method according to an embodiment of the present invention. As shown in FIG. 1 , the method includes the following steps:
101、当用户设备切换到目标资源分配模式时,所述用户设备判断所述用户设备是否已经向基站发送用于请求分配D2D资源的资源分配请求,其中,所述目标资源分配模式为所述用户设备按照预设规则从所述用户设备预先获取的D2D资源池中选择D2D资源的资源分配模式。101. When the user equipment switches to the target resource allocation mode, the user equipment determines whether the user equipment has sent a resource allocation request for requesting allocation of a D2D resource to the base station, where the target resource allocation mode is the user. The device selects a resource allocation mode of the D2D resource from the D2D resource pool pre-acquired by the user equipment according to a preset rule.
可选的,上述D2D资源池可以是用户设备预先通过基站配置信令配置的用于用户设备与基站通信链路异常情况时使用的D2D资源池,或者,上述D2D资源池可以是用户设备预先通过基站配置信令配置的用于用户设备与基站通信链路正常情况时使用的D2D资源池,或者,上述D2D资源池可以是用户设备预先固定配置的用于用户设备与基站通信链路异常情况时使用的D2D资源池。其中,上述D2D资源可以理解为用于进行D2D通信的资源,例如:信道资源。上述中,用户设备与基站通信链路异常情况包括:用户设备的T310定时器、T311定时器、T301定时器的其中之一处于运行状态;用户设备与基站通信链路正常情况包括:用户设备与基站通信链路不处于异常情况。Optionally, the foregoing D2D resource pool may be a D2D resource pool used by the user equipment to be configured by the user equipment in advance through the base station configuration signaling, and the D2D resource pool may be pre-passed by the user equipment. The D2D resource pool used for the normal connection between the user equipment and the base station is configured by the base station configuration signaling, or the D2D resource pool may be configured in advance by the user equipment for the abnormal connection between the user equipment and the base station. The D2D resource pool used. The above D2D resource can be understood as a resource for performing D2D communication, for example, a channel resource. In the above, the abnormal situation of the communication link between the user equipment and the base station includes: one of the T310 timer, the T311 timer, and the T301 timer of the user equipment is in an operating state; the normal situation of the communication link between the user equipment and the base station includes: the user equipment and The base station communication link is not in an abnormal situation.
另外,上述用户设备判断所述用户设备是否已经向基站发送用于请求分配D2D资源的资源分配请求可以是,判断用户设备的重传D2D资源分配请求定时器是否处于运行状态,例如:重传ProSe缓存状态报告(Buffer Status Report,BSR)定时器是否处于运行状态,若是,则确定用户设备已经向基站发送资源分配请求;或者上述用户设备判断所述用户设备是否已经向基站发送用于请求 分配D2D资源的资源分配请求可以是,判断用户设备的周期D2D资源分配请求定时器是否处于运行状态,例如:周期ProSe BSR定时器是否处于运行状态,若是,则确定用户设备已经向基站发送资源分配请求;或者,上述用户设备判断所述用户设备是否已经向基站发送用于请求分配D2D资源的资源分配请求可以是,判断用户设备在预设时间内是否已经向基站发送用于请求分配D2D资源的资源分配请求。或者上述用户设备判断所述用户设备是否已经向基站发送用于请求分配D2D资源的资源分配请求可以是,判断用户设备在上一个资源分配模式周期内是否已经向基站发送用于请求分配D2D资源的资源分配请求。例如:用户设备在切换到上述目标资源分配模式之前,用户设备使用第一资源分配模式,即判断用户设备在该第一资源分配模式内是否已经向基站发送用于请求分配D2D资源的资源分配请求,其中,第一资源分配模式为用户设备向基站发送资源分配请求,基站响应该资源分配请求为用户设备分配D2D资源的分配模式。In addition, the determining, by the user equipment, that the user equipment has sent a resource allocation request for requesting allocation of the D2D resource to the base station may be, determining whether the retransmission D2D resource allocation request timer of the user equipment is in an operating state, for example, retransmitting the ProSe Whether the Buffer Status Report (BSR) timer is in the running state, if yes, determining that the user equipment has sent a resource allocation request to the base station; or the user equipment determines whether the user equipment has sent the request to the base station for request The resource allocation request for allocating the D2D resource may be: determining whether the periodic D2D resource allocation request timer of the user equipment is in the running state, for example, whether the periodic ProSe BSR timer is in the running state, and if yes, determining that the user equipment has sent the resource allocation to the base station. And determining, by the user equipment, that the user equipment has sent a resource allocation request for requesting allocation of the D2D resource to the base station, and determining whether the user equipment has sent the base station to request the allocation of the D2D resource in the preset time. Resource allocation request. Or determining, by the user equipment, that the user equipment has sent a resource allocation request for requesting allocation of the D2D resource to the base station, whether the user equipment has sent the base station to request the allocation of the D2D resource in the previous resource allocation mode period. Resource allocation request. For example, before the user equipment switches to the target resource allocation mode, the user equipment uses the first resource allocation mode, that is, determines whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station in the first resource allocation mode. The first resource allocation mode is that the user equipment sends a resource allocation request to the base station, and the base station allocates a D2D resource allocation mode to the user equipment in response to the resource allocation request.
102、当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,所述用户设备针对所述资源分配请求执行用于避免D2D资源浪费的资源处理操作,其中,所述目标D2D资源分配为所述资源分配请求所请求的所有D2D资源分配信息或者部分D2D资源分配信息。102. When the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, the user The device performs a resource processing operation for avoiding waste of D2D resources for the resource allocation request, wherein the target D2D resource allocation is all D2D resource allocation information or partial D2D resource allocation information requested by the resource allocation request.
可选的,上述用户设备未接收到所述基站,其中,所述目标D2D资源分配为所述资源分配请求所请求的所有D2D资源分配信息或者部分D2D资源分配信息可以理解为,用户设备向基站发送的上述资源分配请求所请求的D2D资源分配信息用户设备并未全部接收到。例如:用户设备向基站发送的上述资源分配请求所请求为100字节的D2D资源,但在用户设备切换到目标资源分配模式时,只接收到50个字节的D2D资源的D2D资源分配信息。另外,上述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息还可以表现为用户设备的重传D2D资源分配请求定时器还处于运行状态,例如:重传D2D缓存状态报告(Buffer Status Report,BSR)定时器还处于运行状态,和/或用户设备的周期D2D资源分配请求定时器还在运行,例如:周期D2D BSR定时器还处于运行状态。 Optionally, the foregoing user equipment does not receive the base station, where the target D2D resource allocation is all D2D resource allocation information or partial D2D resource allocation information requested by the resource allocation request, which may be understood as: The D2D resource allocation information requested by the above resource allocation request is not all received by the user equipment. For example, the resource allocation request sent by the user equipment to the base station is requested to be a 100-byte D2D resource, but when the user equipment switches to the target resource allocation mode, only the D2D resource allocation information of the 50-byte D2D resource is received. In addition, the target D2D resource allocation information requested by the user equipment that is not received by the user equipment may also be expressed as a retransmission D2D resource allocation request timer of the user equipment, for example, retransmission. The D2D Buffer Status Report (BSR) timer is still in the running state, and/or the period D2D resource allocation request timer of the user equipment is still running, for example, the period D2D BSR timer is still in the running state.
在步骤102中,由于用户设备已经向基站发送资源分配请求,而在用户设备切换到上述目标资源分配模式时,用户设备还没有接收到基站分配的D2D资源,这时如果不进行上述用于避免D2D资源浪费的资源处理操作,那么,基站就会继续为用户设备分配D2D资源。由于目标资源分配模式为所述用户设备按照预设规则从所述用户设备预先获取的D2D资源池中选择D2D资源的资源分配模式。这样基站为用户设备分配的D2D资源可能就会浪费。从而步骤102需要进行上述用于避免D2D资源浪费的资源处理操作,例如:通知基站停止分配D2D资源,或者监听基站分配的D2D资源,当监听到基站分配的D2D资源时,采用该D2D资源进行D2D通信。In step 102, since the user equipment has sent a resource allocation request to the base station, and the user equipment has switched to the target resource allocation mode, the user equipment has not received the D2D resource allocated by the base station, and if not, the foregoing is used to avoid The D2D resource wastes resource processing operations, then the base station continues to allocate D2D resources to the user equipment. The resource allocation mode of the D2D resource is selected from the D2D resource pool pre-acquired by the user equipment according to a preset rule by the user equipment according to a target resource allocation mode. Thus, the D2D resources allocated by the base station to the user equipment may be wasted. Therefore, the step 102 needs to perform the foregoing resource processing operation for avoiding waste of D2D resources, for example, notifying the base station to stop allocating D2D resources, or listening to the D2D resources allocated by the base station, and when listening to the D2D resources allocated by the base station, using the D2D resources for D2D Communication.
103、用户设备从所述用户设备预先获取的D2D资源池中选择第一D2D资源。103. The user equipment selects a first D2D resource from a D2D resource pool that is acquired in advance by the user equipment.
可选的,用户设备可以是随机的从预先获取的D2D资源池中选择第一D2D资源,或者按照预设的选择规则从预先获取的D2D资源池中选择第一D2D资源。Optionally, the user equipment may randomly select the first D2D resource from the pre-acquired D2D resource pool, or select the first D2D resource from the pre-acquired D2D resource pool according to a preset selection rule.
可选的,在执行步骤101时,由于用户设备已经切换到上述目标资源分配模式,这样用户设备就会执行步骤103,即步骤103可以是与步骤101同时执行的。当选择到第一D2D资源时就可以采用第一D2D资源进行D2D通信。Optionally, when step 101 is performed, since the user equipment has switched to the target resource allocation mode, the user equipment performs step 103, that is, step 103 may be performed simultaneously with step 101. When the first D2D resource is selected, the first D2D resource can be used for D2D communication.
可选的,当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,所述用户设备停止监听所述基站发送所述D2D资源分配信息的下行信道。Optionally, when the user equipment has sent the resource allocation request to the base station, and the user equipment receives the target D2D resource allocation information requested by the resource allocation request sent by the base station, The user equipment stops listening to the downlink channel that the base station sends the D2D resource allocation information.
上述D2D通信可以是上述用户设备向另一个或者多个用户设备发送D2D数据。The above D2D communication may be that the user equipment sends D2D data to another one or more user equipments.
可选的,上述用户设备可以是任何具备D2D通信功能的设备,例如:平板电脑、手机、电子阅读器、遥控器、个人计算机(Personal Computer,PC)、笔记本电脑、车载设备、网络电视、可穿戴设备等具有D2D通信功能的智能设备。Optionally, the user equipment may be any device with D2D communication function, such as: tablet, mobile phone, e-reader, remote controller, personal computer (PC), notebook computer, car device, network television, A smart device having a D2D communication function such as a wearable device.
本实施例中,当用户设备切换到目标资源分配模式时,所述用户设备判断所述用户设备是否已经向基站发送用于请求分配D2D资源的资源分配请求; 当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,所述用户设备针对所述资源分配请求执行用于避免D2D资源浪费的资源处理操作;用户设备从所述用户设备预先获取的D2D资源池中选择第一D2D资源。从而可以解决D2D通信的D2D资源的分配问题。In this embodiment, when the user equipment switches to the target resource allocation mode, the user equipment determines whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station; When the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, the user equipment is targeted to The resource allocation request performs a resource processing operation for avoiding waste of D2D resources; the user equipment selects a first D2D resource from a D2D resource pool that is acquired in advance by the user equipment. Thereby, the problem of allocation of D2D resources for D2D communication can be solved.
请参阅图2,图2是本发明实施例提供的另一种D2D资源分配方法的流程示意图,如图2所示,包括以下步骤:Referring to FIG. 2, FIG. 2 is a schematic flowchart of another D2D resource allocation method according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
201、当用户设备由第一资源分配模式切换到目标资源分配模式时,所述用户设备判断所述用户设备是否已经向基站发送用于请求分配D2D资源的资源分配请求。201. When the user equipment is switched from the first resource allocation mode to the target resource allocation mode, the user equipment determines whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station.
其中,所述目标资源分配模式为所述用户设备按照预设规则从所述用户设备预先获取的D2D资源池中选择D2D资源的资源分配模式;上述第一资源分配模式为用户设备向基站发送资源分配请求,基站响应该资源分配请求为用户设备分配D2D资源的分配模式。The target resource allocation mode is a resource allocation mode in which the user equipment selects a D2D resource from a D2D resource pool that is pre-acquired by the user equipment according to a preset rule. The first resource allocation mode is that the user equipment sends a resource to the base station. The allocation request, the base station allocates a distribution mode of the D2D resource to the user equipment in response to the resource allocation request.
可选的,在执行步骤201之前用户设备可以使用上述第一资源分配模式进行D2D资源配置,例如:基站通过配置信令配置上述用户设备使用第一资源分配模式,其中,用户设备使用第一资源分配模式的过程可以如下:Optionally, before the step 201 is performed, the user equipment may perform the D2D resource configuration by using the foregoing first resource allocation mode. For example, the base station configures the user equipment to use the first resource allocation mode by using configuration signaling, where the user equipment uses the first resource. The process of assigning patterns can be as follows:
用户设备在发送D2D数据之前向基站发送用于请求分配D2D资源的资源分配请求,例如:发送近距离服务(Proximity Service,ProSe)缓存状态报告(Buffer Status Report,BSR),其中,该ProSe BSR可以包括D2D BSR;The user equipment sends a resource allocation request for requesting allocation of the D2D resource to the base station before sending the D2D data, for example, sending a Proximity Service (ProSe), a Buffer Status Report (BSR), where the ProSe BSR can Including D2D BSR;
基站接收到上述资源分配请求后,为所述用户设备调度D2D资源,并在下行信道中发送调度的D2D资源的调度信令例如:在物理层下行控制信道(Physical Downlink Control Channel,PDCCH)。After receiving the resource allocation request, the base station schedules D2D resources for the user equipment, and sends scheduling signaling of the scheduled D2D resources in the downlink channel, for example, a Physical Downlink Control Channel (PDCCH).
用户设备监听上述下行信道,当获取到上述调度信令时,采用该调度信令所标识的D2D资源发送D2D数据。The user equipment monitors the downlink channel, and when the scheduling signaling is obtained, the D2D resource that is identified by the scheduling signaling is used to send the D2D data.
另外,上述用户设备判断所述用户设备是否已经向基站发送用于请求分配D2D资源的资源分配请求,可以是判断用户设备在上述第一资源分配模式内是否向基站发送用于请求分配D2D资源的资源分配请求。 In addition, the foregoing user equipment determines whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station, and may determine whether the user equipment sends a request for allocating D2D resources to the base station in the first resource allocation mode. Resource allocation request.
可选的,上述用户设备由第一资源分配模式切换到目标资源分配模式可以是,用户设备检测到用户设备与基站之间的通信链路存在问题,启动用于由上述第一资源分配模式切换到上述目标资源分配的定时器启动(例如:启动T310定时器,或者启动T311定时器,或者启动T301定时器)时,用户设备由第一资源分配模式切换到目标资源分配模式。例如:定时器T310启动时,用户设备由第一资源分配模式切换到目标资源分配模式。Optionally, the user equipment is switched from the first resource allocation mode to the target resource allocation mode, where the user equipment detects that there is a problem in the communication link between the user equipment and the base station, and starts to be used for switching by using the first resource allocation mode. When the timer to the target resource allocation is started (for example, the T310 timer is started, or the T311 timer is started, or the T301 timer is started), the user equipment is switched from the first resource allocation mode to the target resource allocation mode. For example, when the timer T310 is started, the user equipment is switched from the first resource allocation mode to the target resource allocation mode.
可选的,当用户设备由第一资源分配模式切换到目标资源分配模式时,所述用户设备终止向基站发送用于请求分配D2D资源的资源分配请求。所述用户设备终止向基站发送用于请求分配D2D资源的资源分配请求,包括:Optionally, when the user equipment is switched from the first resource allocation mode to the target resource allocation mode, the user equipment terminates sending a resource allocation request for requesting allocation of D2D resources to the base station. The user equipment terminates sending a resource allocation request for requesting allocation of D2D resources to the base station, including:
所述用户设备终止重传D2D资源分配请求定时器,例如:终止重传ProSe BSR定时器;The user equipment terminates the retransmission D2D resource allocation request timer, for example, terminating the retransmission ProSe BSR timer;
或者,所述用户设备终止周期D2D资源分配请求定时器,例如:终止周期ProSe BSR定时器。Alternatively, the user equipment terminates a periodic D2D resource allocation request timer, for example, a terminating period ProSe BSR timer.
202、当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,所述用户设备针对所述资源分配请求执行用于避免D2D资源浪费的资源处理操作,其中,所述目标D2D资源分配为所述资源分配请求所请求的所有D2D资源分配信息或者部分D2D资源分配信息。202. When the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, the user The device performs a resource processing operation for avoiding waste of D2D resources for the resource allocation request, wherein the target D2D resource allocation is all D2D resource allocation information or partial D2D resource allocation information requested by the resource allocation request.
可选的,上述用户设备针对所述资源分配请求执行用于避免D2D资源浪费的资源处理操作,可以包括:Optionally, the foregoing user equipment performs resource processing operations for avoiding waste of D2D resources for the resource allocation request, and may include:
用户设备监听所述基站发送所述目标D2D资源分配信息的下行信道;The user equipment listens to the downlink channel that the base station sends the target D2D resource allocation information;
当所述用户设备在所述下行信道中获取到所述目标D2D资源分配信息时,所述用户设备使用所述目标D2D资源分配信息分配的第二D2D资源。When the user equipment acquires the target D2D resource allocation information in the downlink channel, the user equipment uses the second D2D resource allocated by the target D2D resource allocation information.
可选的,上述下行信道可以是PDCCH,上述目标D2D资源分配信息可以是包含D2D资源的标识信息,例如:包含D2D资源的无线网络临时标识(Radio Network Tempory Identity,RNTI)的信息。用户设备使用所述目标D2D资源分配信息分配的第二D2D资源可以是采用所述目标D2D资源分配信息分配的第二D2D资源传输D2D数据。另外,需要说明的是,由于该实施方式中步骤202会获取上述目标D2D资源分配信息,其中,该获取是需要有一个时间过 程的,且步骤203选择第一D2D资源也会存在一个时间过程。这样可能是步骤202获取上述目标D2D资源分配信息,步骤203再选择得到第一D2D资源。或者步骤203先选择得到第一D2D资源,步骤202再获取目标D2D资源分配信息。Optionally, the downlink channel may be a PDCCH, and the target D2D resource allocation information may be identifier information including a D2D resource, for example, information including a Radio Network Tempory Identity (RNTI) of the D2D resource. The second D2D resource allocated by the user equipment using the target D2D resource allocation information may be the second D2D resource transmission D2D data allocated by using the target D2D resource allocation information. In addition, it should be noted that, in step 202 of the embodiment, the target D2D resource allocation information is obtained, where the acquisition requires a time. There is also a time course for selecting the first D2D resource in step 203. This may be that step 202 acquires the target D2D resource allocation information, and step 203 selects the first D2D resource. Or step 203 first selects the first D2D resource, and step 202 acquires the target D2D resource allocation information.
当先获取上述目标D2D资源分配信息时,本实施例可以是在获取上述目标D2D资源分配信息时,就采用该第二D2D资源发送D2D数据。另外,当D2D数据时比较多时,采用该第二D2D资源发送D2D数据时,当选择到第一D2D资源时,还可以采用第一D2D资源发送D2D数据。例如:在采用第二D2D资源发送D2D数据时,步骤203选择得到第一D2D资源,而此时用户设备需要发送的D2D数据还未发送完,这样就可以采用第一D2D资源和第二D2D资源同时发送D2D数据,以提高D2D数据发送的速度。同理,当先选择到第一D2D资源时,就可以先采用第一D2D资源发送D2D数据。即上述方法还可以如下步骤包括:When acquiring the target D2D resource allocation information, the embodiment may be configured to send the D2D data by using the second D2D resource when acquiring the target D2D resource allocation information. In addition, when the D2D data is relatively large, when the D2D data is transmitted by using the second D2D resource, when the first D2D resource is selected, the D2D data may also be sent by using the first D2D resource. For example, when the D2D data is sent by using the second D2D resource, the step 203 selects the first D2D resource, and the D2D data that the user equipment needs to send has not been sent yet, so that the first D2D resource and the second D2D resource can be used. Simultaneously send D2D data to increase the speed of D2D data transmission. Similarly, when the first D2D resource is selected first, the D2D data can be sent first by using the first D2D resource. That is, the above method may further include the following steps:
用户设备采用第一D2D资源进行D2D通信;和/或The user equipment performs D2D communication using the first D2D resource; and/or
用户设备采用第二D2D资源进行D2D通信。The user equipment performs D2D communication using the second D2D resource.
其中,采用第一D2D资源进行D2D通信可以是传输第一D2D数据,采用第二D2D资源进行D2D通信可以是传输第二D2D数据。即可以实现通过两D2D资源同时传输D2D数据。另外,用户设备需要传输的D2D数据可以第一D2D数据和/或第二D2D数据。The D2D communication using the first D2D resource may be to transmit the first D2D data, and the D2D communication using the second D2D resource may be the transmission of the second D2D data. That is, it is possible to simultaneously transmit D2D data through two D2D resources. In addition, the D2D data that the user equipment needs to transmit may be the first D2D data and/or the second D2D data.
可选的,当所述用户设备使用所述目标D2D资源分配信息分配的第二D2D资源后,即所述用户设备采用第二D2D资源发送D2D数据后,所述用户设备终止向基站发送用于请求分配D2D资源的资源分配请求。Optionally, after the user equipment uses the second D2D resource allocated by the target D2D resource allocation information, that is, after the user equipment sends the D2D data by using the second D2D resource, the user equipment terminates sending to the base station for sending Request a resource allocation request to allocate a D2D resource.
例如:采用第二D2D资源完成发送所有等待发送的D2D数据时,用户设备终止向基站发送用于请求分配D2D资源的资源分配请求;或者用户设备采用第二D2D资源发送D2D数据时,所述用户设备终止向基站发送用于请求分配D2D资源的资源分配请求。For example, when the D2D data that is waiting to be sent is sent by using the second D2D resource, the user equipment terminates sending a resource allocation request for requesting allocation of D2D resources to the base station; or when the user equipment sends the D2D data by using the second D2D resource, the user equipment The device terminates sending a resource allocation request for requesting allocation of D2D resources to the base station.
其中,上述用户设备终止向基站发送用于请求分配D2D资源的资源分配请求,可以包括:The foregoing, by the foregoing user equipment, the sending of the resource allocation request for requesting the allocation of the D2D resource to the base station may include:
所述用户设备终止重传D2D资源分配请求定时器,例如:终止重传ProSe  BSR定时器;The user equipment terminates the retransmission D2D resource allocation request timer, for example, terminating retransmission ProSe BSR timer;
或者,所述用户设备终止周期D2D资源分配请求定时器,例如:终止周期ProSe BSR定时器。Alternatively, the user equipment terminates a periodic D2D resource allocation request timer, for example, a terminating period ProSe BSR timer.
可选的,上述D2D通信传输的D2D数据可以是包括地址解析协议(Address Resolution Protocol,ARP)数据和IP数据,这样上述用户设备采用第一D2D资源进行D2D通信的步骤可以包括:Optionally, the D2D data transmitted by the D2D communication may be an address resolution protocol (ARP) data and an IP data, so that the step of the user equipment to perform D2D communication by using the first D2D resource may include:
用户设备选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的第一ARP数据。The user equipment selects a preset radio bearer for carrying the ARP data to carry the ARP data in the D2D data, and uses the first D2D resource to transmit the first ARP data in the D2D data carried by the radio bearer.
另外,用户设备还可以选择上述预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的IP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的第一IP数据。In addition, the user equipment may also select the IP data in the D2D data carried by the radio bearer carrying the address resolution protocol ARP data, and transmit the first IP address in the D2D data carried by the radio bearer by using the first D2D resource. data.
其中,上述预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的IP数据和ARP数据,可以是通过各数据的数据包的标识进行区分,这样接收设备接收到该无线承载的数据后,就可以通过数据包的标识以区分哪些数据是ARP数据,哪些数据是IP数据。这样可以实现在同一个无线承载上承载ARP数据和IP数据。The IP data and the ARP data in the D2D data carried by the radio bearer carrying the address resolution protocol ARP data may be differentiated by the identifier of the data packet of each data, so that the receiving device receives the radio bearer. After the data, the identification of the data packet can be used to distinguish which data is ARP data and which data is IP data. This enables ARP data and IP data to be carried on the same radio bearer.
同理,上述用户设备采用第二D2D资源进行D2D通信的步骤可以包括:Similarly, the step of the user equipment performing D2D communication by using the second D2D resource may include:
用户设备选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第二D2D资源传输所述无线承载所承载D2D数据中的第二ARP数据。The user equipment selects a preset radio bearer for carrying the ARP data to carry the ARP data in the D2D data, and uses the second D2D resource to transmit the second ARP data in the D2D data carried by the radio bearer.
另外,用户设备还可以选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的IP数据,并采用第二D2D资源传输所述无线承载所承载D2D数据中的第二IP数据。In addition, the user equipment may also select a preset radio bearer for carrying the address resolution protocol ARP data to carry IP data in the D2D data, and use the second D2D resource to transmit the second IP data in the D2D data carried by the radio bearer. .
另外,用户设备需要传输的D2D数据中的IP数据可以包括上述第一IP数据和/或第二IP数据,用户设备需要传输的D2D数据中的ARP数据可以包括上述第一ARP数据和/或第二ARP数据。In addition, the IP data in the D2D data that the user equipment needs to transmit may include the foregoing first IP data and/or the second IP data, and the ARP data in the D2D data that the user equipment needs to transmit may include the foregoing first ARP data and/or the first Two ARP data.
其中,上述预先设置的用于承载ARP数据的无线承载可以是具有预设的特定标识的无线承载,例如:具有特定无线承载序号的无线承载,或者是具有 特定逻辑信道序号的无线承载,或者是专门用于传输ARP数据的承载;或者是不同于用户面数据承载的专门用于传输控制信令的承载等。The radio bearer for carrying the ARP data preset may be a radio bearer with a preset specific identifier, for example, a radio bearer with a specific radio bearer sequence number, or A radio bearer of a specific logical channel sequence number, or a bearer dedicated to transmitting ARP data; or a bearer dedicated to transmission control signaling different from a user plane data bearer.
该实施方式中,由于D2D数据包括的IP数据和ARP数据中ARP数据的优先级相对比较高,这样通过特定的无线承载传输ARP数据就可以体现出ARP数据的优先级,且接收ARP数据的用户设备可以通过该无线承载就可以识别出接收到的数据为ARP数据,从而不需要判别,可以直接将在该无线承载中接收到的数据传送到ARP层。另外,上述预先设置的用于承载ARP数据的无线承载可以是用户设备与接收D2D数据的用户设备预先协商的,或者用户设备通知接收D2D数据的用户设备的。另外,对D2D数据中的IP数据的传输,本实施例不作限定。In this embodiment, the priority of the ARP data in the IP data and the ARP data of the D2D data is relatively high, so that the ARP data can be transmitted through the specific radio bearer, and the user who receives the ARP data can be prioritized. The device can recognize the received data as ARP data through the radio bearer, so that the data received in the radio bearer can be directly transmitted to the ARP layer without discriminating. In addition, the foregoing preset radio bearer for carrying ARP data may be that the user equipment pre-negotiates with the user equipment that receives the D2D data, or the user equipment notifies the user equipment that receives the D2D data. In addition, the transmission of the IP data in the D2D data is not limited in this embodiment.
可选的,上述用户设备针对所述资源分配请求执行用于避免D2D资源浪费的资源处理操作,可以包括:Optionally, the foregoing user equipment performs resource processing operations for avoiding waste of D2D resources for the resource allocation request, and may include:
用户设备向所述基站发送D2D资源分配停止指示,所述资源分配停止指示用于指示所述基站停止响应D2D所述资源分配请求。The user equipment sends a D2D resource allocation stop indication to the base station, where the resource allocation stop indication is used to instruct the base station to stop responding to the D2D resource allocation request.
这样当基站接收到上述D2D资源分配停止指示时,就停止响应所述资源分配请求,以避免基站为用户设备分配的D2D资源浪费。因为该实施方式中,用户设备在发送上述资源分配停止指示时,用户设备已经切换到上述目标资源分配模式,即此时用户设备已经停止监听下行信道,如果基站还分配D2D资源,用户设备也无法获取到该D2D资源。When the base station receives the D2D resource allocation stop indication, the base station stops responding to the resource allocation request, so as to avoid waste of D2D resources allocated by the base station for the user equipment. In this embodiment, when the user equipment sends the resource allocation stop indication, the user equipment has switched to the target resource allocation mode, that is, the user equipment has stopped listening to the downlink channel, and if the base station further allocates D2D resources, the user equipment cannot Get the D2D resource.
可选的,为了提供无线承载资源的利用率,上述无线承载承载D2D数据中的ARP数据,包括:Optionally, in order to provide the radio bearer resource usage, the foregoing radio bearer carries ARP data in the D2D data, including:
所述无线承载承载包含D2D数据中的ARP数据的分组数据汇聚协议(Packet Data Convergence Protocol,PDCP)包,其中,所述PDCP包的包头包含用于表示所述PDCP包内包含的数据为ARP数据的标识信息。The radio bearer carries a Packet Data Convergence Protocol (PDCP) packet that includes ARP data in the D2D data, where the header of the PDCP packet includes data for indicating that the data contained in the PDCP packet is ARP data. Identification information.
这样可以采用上述第一D2D资源和/或第二D2D资源传输上述无线承载所承载PDCP包。且可以通过PDCP包的包头中的标识信息标识出PDCP包包含的数据为ARP数据,即接收D2D数据的用户设备可以通过PDCP包的包头中的标识信息标识识别出ARP数据。另外,由于在预先设置的用于承载ARP数据的无线承载传输的PDCP包的包头中包含上述标识信息,这样在该无线承 载中还可以传输其他数据,例如:上述无线承载中的一些PDCP包的包头还可以包含用于表示所述PDCP包内包含的数据为RRC数据的标识信息,即上述无线承载还可以传输RRC数据,从而可以提高提供无线承载资源的利用率。In this way, the PD2 packet carried by the radio bearer may be transmitted by using the first D2D resource and/or the second D2D resource. The data included in the PDCP packet is identified by the identifier information in the header of the PDCP packet as the ARP data, that is, the user equipment receiving the D2D data can identify the ARP data by using the identifier information in the header of the PDCP packet. In addition, since the foregoing identification information is included in a header of a PDCP packet for pre-set radio bearer for carrying ARP data, the wireless The data packet may also transmit other data. For example, the packet header of some of the foregoing radio bearers may further include identifier information indicating that the data included in the PDCP packet is RRC data, that is, the radio bearer may also transmit RRC data. Therefore, the utilization of providing wireless bearer resources can be improved.
可选的,为了提供无线承载资源的利用率,上述所述无线承载承载D2D数据中的IP数据可以包括:Optionally, in order to provide the radio bearer resource usage, the foregoing radio bearer carrying the IP data in the D2D data may include:
所述无线承载承载包含D2D数据中的IP数据的PDCP包,其中,该PDCP包的包头包含用于处理该PDCP包内包含的IP数据的标识信息。The radio bearer carries a PDCP packet containing IP data in the D2D data, where the header of the PDCP packet includes identification information for processing IP data contained in the PDCP packet.
例如:用于处理该PDCP包内包含的IP数据的标识信息可以是所述无线承载使用的IP数据包包头压缩与解压缩算法的标识。所述的IP数据包包头压缩与解压缩算法包括用户数据报协议(User Datagram Protocol,UDP)/IP包头压缩与解压缩算法、传输控制协议(Transmission Control Protocol,TCP)/IP包头压缩与解压缩算法等。For example, the identification information used to process the IP data contained in the PDCP packet may be an identifier of an IP data packet header compression and decompression algorithm used by the radio bearer. The IP data packet header compression and decompression algorithm includes User Datagram Protocol (UDP)/IP header compression and decompression algorithm, Transmission Control Protocol (TCP)/IP header compression and decompression. Algorithms, etc.
这样可以采用上述第一D2D资源和/或第二D2D资源传输上述无线承载所承载PDCP包。且可以通过PDCP包的包头中的IP数据包包头压缩与解压缩算法的标识信息标识出承载所述PDCP包的无线承载所使用的IP数据包包头压缩与解压缩算法。从而,该PDCP包的目标接收用户设备可以根据IP数据包包头压缩算法对PDCP包中的IP数据进行IP包头解压缩。In this way, the PD2 packet carried by the radio bearer may be transmitted by using the first D2D resource and/or the second D2D resource. And the IP data packet header compression and decompression algorithm used by the radio bearer carrying the PDCP packet may be identified by the identifier information of the IP data packet header compression and decompression algorithm in the packet header of the PDCP packet. Therefore, the target receiving user equipment of the PDCP packet can perform IP header decompression on the IP data in the PDCP packet according to the IP packet header compression algorithm.
203、用户设备从所述用户设备预先获取的D2D资源池中选择第一D2D资源。203. The user equipment selects a first D2D resource from a D2D resource pool that is acquired in advance by the user equipment.
可选的,在选择到上述第D2D资源后,所述用户设备可以采用第一D2D资源进行D2D通信。Optionally, after selecting the D2D resource, the user equipment may perform D2D communication by using the first D2D resource.
可选的,当步骤201中的用户设备是由上述第一资源分配模式切换到目标资源分配模式时,用户设备在判断所述用户设备未向基站发送用于请求分配D2D资源的资源分配请求时,用户设备停止监听上行信道,例如:停止监听上述PDCCH信道。Optionally, when the user equipment in step 201 is switched from the first resource allocation mode to the target resource allocation mode, the user equipment determines that the user equipment does not send a resource allocation request for requesting allocation of D2D resources to the base station. The user equipment stops listening to the uplink channel, for example, stops listening to the PDCCH channel.
本实施例,在图1所示的实施例的基础上增加了多种可选的实施方式,且都可以实现D2D资源的分配。另外,本实施例中的实施方式都可以应用于图1所示的实施例中。 In this embodiment, a plurality of optional implementation manners are added on the basis of the embodiment shown in FIG. 1, and the allocation of D2D resources can be implemented. In addition, the embodiments in this embodiment can be applied to the embodiment shown in FIG. 1.
下面为本发明装置实施例,本发明装置实施例用于执行本发明方法实施例一至二实现的方法,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例一和实施例二。The following is a device embodiment of the present invention. The device embodiment of the present invention is used to perform the method for implementing the first to second embodiments of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown, and the specific technical details are not disclosed. Please refer to Embodiment 1 and Embodiment 2 of the present invention.
请参阅图3,图3是本发明实施例提供的一种用户设备的结构示意图,如图3所示,包括:发送单元31和处理单元32,其中:Referring to FIG. 3, FIG. 3 is a schematic structural diagram of a user equipment according to an embodiment of the present invention. As shown in FIG. 3, the method includes: a sending unit 31 and a processing unit 32, where:
发送单元31,用于向基站发送用于请求分配D2D资源的资源分配请求。The sending unit 31 is configured to send, to the base station, a resource allocation request for requesting allocation of the D2D resource.
处理单元32用于当所述用户设备切换到目标资源分配模式时,判断所述用户设备是否已经向基站发送用于请求分配D2D资源的资源分配请求,其中,所述目标资源分配模式为所述用户设备按照预设规则从所述用户设备预先获取的D2D资源池中选择D2D资源的资源分配模式;The processing unit 32 is configured to determine, when the user equipment is switched to the target resource allocation mode, whether the user equipment has sent a resource allocation request for requesting allocation of a D2D resource to the base station, where the target resource allocation mode is The user equipment selects a resource allocation mode of the D2D resource from the D2D resource pool pre-acquired by the user equipment according to a preset rule;
所述处理单元32还用于当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,针对所述资源分配请求执行用于避免D2D资源浪费的资源处理操作,其中,所述目标D2D资源分配为所述资源分配请求所请求的所有D2D资源分配信息或者部分D2D资源分配信息;The processing unit 32 is further configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation requested by the resource allocation request sent by the base station At the time of information, a resource processing operation for avoiding waste of D2D resources is performed for the resource allocation request, wherein the target D2D resource allocation is all D2D resource allocation information or partial D2D resource allocation information requested by the resource allocation request;
所述处理单元32还用于从所述用户设备预先获取的D2D资源池中选择第一D2D资源。The processing unit 32 is further configured to select a first D2D resource from a D2D resource pool that is acquired by the user equipment in advance.
可选的,上述发送单元31具体可以是发射器,处理器32具体可以是处理器。Optionally, the sending unit 31 may be a transmitter, and the processor 32 may be a processor.
本实施例中,当用户设备切换到目标资源分配模式时,所述用户设备判断所述用户设备是否已经向基站发送用于请求分配D2D资源的资源分配请求;当所述用户设备已经向所述基站发送所述资源分配请求,所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,所述用户设备针对所述资源分配请求执行用于避免D2D资源浪费的资源处理操作;用户设备从所述用户设备预先获取的D2D资源池中选择第一D2D资源。从而可以解决D2D通信的D2D资源的分配问题。In this embodiment, when the user equipment switches to the target resource allocation mode, the user equipment determines whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station; when the user equipment has been When the base station sends the resource allocation request, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, the user equipment performs the D2D for the resource allocation request. The resource processing operation is a waste of resources; the user equipment selects the first D2D resource from the D2D resource pool acquired in advance by the user equipment. Thereby, the problem of allocation of D2D resources for D2D communication can be solved.
请参阅图4,图4是本发明实施例提供的另一种用户设备的结构示意图, 如图4所示,包括:发送单元41和处理器42,其中:Referring to FIG. 4, FIG. 4 is a schematic structural diagram of another user equipment according to an embodiment of the present disclosure. As shown in FIG. 4, it includes: a transmitting unit 41 and a processor 42, wherein:
发送单元41,用于向基站发送用于请求分配D2D资源的资源分配请求。The sending unit 41 is configured to send, to the base station, a resource allocation request for requesting allocation of the D2D resource.
处理单元42,用于当用户设备由第一资源分配模式切换到目标资源分配模式时,判断所述用户设备是否已经向基站发送用于请求分配D2D资源的资源分配请求,其中,所述目标资源分配模式为所述用户设备按照预设规则从所述用户设备预先获取的D2D资源池中选择D2D资源的资源分配模式;The processing unit 42 is configured to: when the user equipment is switched from the first resource allocation mode to the target resource allocation mode, determine whether the user equipment has sent a resource allocation request for requesting allocation of a D2D resource to the base station, where the target resource The allocation mode is a resource allocation mode in which the user equipment selects a D2D resource from a D2D resource pool that is pre-acquired by the user equipment according to a preset rule;
其中,所述目标资源分配模式为所述用户设备按照预设规则从所述用户设备预先获取的D2D资源池中选择D2D资源的资源分配模式;上述第一资源分配模式为用户设备向基站发送资源分配请求,基站响应该资源分配请求为用户设备分配D2D资源的分配模式。The target resource allocation mode is a resource allocation mode in which the user equipment selects a D2D resource from a D2D resource pool that is pre-acquired by the user equipment according to a preset rule. The first resource allocation mode is that the user equipment sends a resource to the base station. The allocation request, the base station allocates a distribution mode of the D2D resource to the user equipment in response to the resource allocation request.
另外,处理单元42可以是判断用户设备在上述第一资源分配模式内是否向基站发送用于请求分配D2D资源的资源分配请求。In addition, the processing unit 42 may be configured to determine whether the user equipment sends a resource allocation request for requesting allocation of D2D resources to the base station in the foregoing first resource allocation mode.
处理单元42还用于当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,针对所述资源分配请求执行用于避免D2D资源浪费的资源处理操作,其中,所述目标D2D资源分配为所述资源分配请求所请求的所有D2D资源分配信息或者部分D2D资源分配信息;The processing unit 42 is further configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, And performing resource processing operations for avoiding waste of D2D resources for the resource allocation request, where the target D2D resource allocation is all D2D resource allocation information or partial D2D resource allocation information requested by the resource allocation request;
处理单元42还用于从所述用户设备预先获取的D2D资源池中选择第一D2D资源。The processing unit 42 is further configured to select the first D2D resource from the D2D resource pool that is acquired by the user equipment in advance.
可选的,如图5所示,所述用户设备还可以包括:Optionally, as shown in FIG. 5, the user equipment may further include:
接收单元43,用于当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,监听所述基站发送所述目标D2D资源分配信息的下行信道;The receiving unit 43 is configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, And monitoring, by the base station, a downlink channel that sends the target D2D resource allocation information;
处理单元42还可以用于当所述接收单元在所述下行信道中获取到所述目标D2D资源分配信息时,使用所述目标D2D资源分配信息分配的第二D2D资源。The processing unit 42 is further configured to use the second D2D resource allocated by the target D2D resource allocation information when the receiving unit acquires the target D2D resource allocation information in the downlink channel.
可选的,上述接收单元43具体可以是接收器。Optionally, the receiving unit 43 is specifically a receiver.
可选的,处理单元42还可以用于当所述用户设备使用所述D2D资源分配 信息分配的第二D2D资源后,终止向基站发送用于请求分配D2D资源的资源分配请求。Optionally, the processing unit 42 is further configured to: when the user equipment uses the D2D resource allocation After the second D2D resource allocated by the information, the resource allocation request for requesting allocation of the D2D resource is terminated to be sent to the base station.
可选的,发送单元41还可以用于当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,向所述基站发送D2D资源分配停止指示,所述资源分配停止指示用于指示所述基站停止响应所述D2D资源分配请求。Optionally, the sending unit 41 is further configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target that is requested by the resource allocation request sent by the base station And transmitting, by the D2D resource allocation information, a D2D resource allocation stop indication to the base station, where the resource allocation stop indication is used to indicate that the base station stops responding to the D2D resource allocation request.
可选的,处理单元42还可以用于当用户设备切换到目标资源分配模式时,终止向基站发送用于请求分配D2D资源的资源分配请求。Optionally, the processing unit 42 is further configured to, when the user equipment switches to the target resource allocation mode, terminate sending, to the base station, a resource allocation request for requesting allocation of the D2D resource.
可选的,处理单元42还可以用于当所述用户设备切换到目标资源分配模式时,终止重传D2D资源分配请求定时器;或者Optionally, the processing unit 42 is further configured to terminate the retransmission D2D resource allocation request timer when the user equipment switches to the target resource allocation mode; or
可选的,处理单元42还可以用于当所述用户设备切换到目标资源分配模式时,终止周期D2D资源分配请求定时器。Optionally, the processing unit 42 is further configured to terminate the period D2D resource allocation request timer when the user equipment switches to the target resource allocation mode.
可选的,发送单元41还可以用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的ARP数据。Optionally, the sending unit 41 is further configured to select a preset ARP data in the radio bearer carrying D2D data for carrying the address resolution protocol ARP data, and transmit the D2D data carried by the radio bearer by using the first D2D resource. ARP data.
可选的,发送单元41还可以用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的第一ARP数据;和/或者Optionally, the sending unit 41 is further configured to select a preset ARP data in the radio bearer carrying D2D data for carrying the address resolution protocol ARP data, and transmit the D2D data carried by the radio bearer by using the first D2D resource. First ARP data; and/or
可选的,发送单元41还可以用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第二D2D资源传输所述无线承载所承载D2D数据中的第二ARP数据。Optionally, the sending unit 41 is further configured to: select a preset ARP data in the radio bearer carrying D2D data for carrying the address resolution protocol ARP data, and transmit the D2D data carried by the radio bearer by using the second D2D resource. The second ARP data.
可选的,所述无线承载承载D2D数据中的ARP数据,可以包括:Optionally, the radio bearer carries the ARP data in the D2D data, and may include:
所述无线承载承载包含D2D数据中的ARP数据的分组数据汇聚协议PDCP包,其中,所述PDCP包的包头包含用于表示所述PDCP包内包含的数据为ARP数据的标识信息。The radio bearer carries a packet data convergence protocol (PDCP) packet containing ARP data in the D2D data, where the header of the PDCP packet includes identification information indicating that the data contained in the PDCP packet is ARP data.
可选的,发送单元41还可以用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的第一IP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的IP数据;和/或者Optionally, the sending unit 41 is further configured to select a first IP data in the radio bearer carrying D2D data that is used to carry the address resolution protocol ARP data, and transmit the D2D carried by the radio bearer by using the first D2D resource. IP data in the data; and/or
所述发送单元还用于选择预先设置的用于承载地址解析协议ARP数据的 无线承载承载D2D数据中的IP数据,并采用第二D2D资源传输所述无线承载所承载D2D数据中的第二IP数据。The sending unit is further configured to select a preset ARP data for carrying address resolution protocol. The radio bearer carries the IP data in the D2D data, and uses the second D2D resource to transmit the second IP data in the D2D data carried by the radio bearer.
可选的,上述无线承载承载D2D数据中的IP数据,可以包括:Optionally, the foregoing radio bearer carries the IP data in the D2D data, and may include:
所述无线承载承载包含D2D数据中的IP数据的PDCP包,其中,该PDCP包的包头包含用于处理该PDCP包内包含的IP数据的标识信息。The radio bearer carries a PDCP packet containing IP data in the D2D data, where the header of the PDCP packet includes identification information for processing IP data contained in the PDCP packet.
需要说明的是,上述介绍的多种实施方式都可以结合在一起实现。It should be noted that the various embodiments described above can be implemented in combination.
本实施例,在图3所示的实施例的基础上增加了多种可选的实施方式,且都可以实现D2D资源的分配。另外,本实施例中的实施方式都可以应用于图3所示的实施例中。In this embodiment, a plurality of optional implementation manners are added on the basis of the embodiment shown in FIG. 3, and the allocation of D2D resources can be implemented. In addition, the embodiments in this embodiment can be applied to the embodiment shown in FIG.
请参阅图6,图6是本发明实施例提供的另一种设备的结构示意图,如图6所示,包括:发射器61和处理器62,其中:Referring to FIG. 6, FIG. 6 is a schematic structural diagram of another apparatus according to an embodiment of the present invention. As shown in FIG. 6, the method includes: a transmitter 61 and a processor 62, where:
发射器61,用于向基站发送用于请求分配D2D资源的资源分配请求;a transmitter 61, configured to send, to the base station, a resource allocation request for requesting allocation of D2D resources;
所述处理器62用于:The processor 62 is configured to:
当所述用户设备切换到目标资源分配模式时,判断所述用户设备是否已经向基站发送用于请求分配D2D资源的资源分配请求,其中,所述目标资源分配模式为所述用户设备按照预设规则从所述用户设备预先获取的D2D资源池中选择D2D资源的资源分配模式;When the user equipment is switched to the target resource allocation mode, it is determined whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station, where the target resource allocation mode is preset by the user equipment. The rule selects a resource allocation mode of the D2D resource from a D2D resource pool that is pre-acquired by the user equipment;
当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,针对所述资源分配请求执行用于避免D2D资源浪费的资源处理操作,其中,所述目标D2D资源分配为所述资源分配请求所请求的所有D2D资源分配信息或者部分D2D资源分配信息;And when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, Requesting to perform resource processing operations for avoiding waste of D2D resources, wherein the target D2D resource allocation is all D2D resource allocation information or partial D2D resource allocation information requested by the resource allocation request;
从所述用户设备预先获取的D2D资源池中选择第一D2D资源。Selecting a first D2D resource from a pool of D2D resources previously acquired by the user equipment.
可选的,如图7所示,所述用户设备还可以包括:Optionally, as shown in FIG. 7, the user equipment may further include:
接收器63,用于当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,监听所述基站发送所述目标D2D资源分配信息的下行信道; The receiver 63 is configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, And monitoring, by the base station, a downlink channel that sends the target D2D resource allocation information;
所述处理器62还可以用于当所述接收单元在所述下行信道中获取到所述目标D2D资源分配信息时,使用所述目标D2D资源分配信息分配的第二D2D资源。The processor 62 is further configured to use the second D2D resource allocated by the target D2D resource allocation information when the receiving unit acquires the target D2D resource allocation information in the downlink channel.
可选的,处理器62还可以用于当所述用户设备使用所述D2D资源分配信息分配的第二D2D资源后,终止向基站发送用于请求分配D2D资源的资源分配请求。Optionally, the processor 62 is further configured to, after the user equipment uses the second D2D resource allocated by the D2D resource allocation information, terminate sending a resource allocation request for requesting allocation of the D2D resource to the base station.
可选的,发射器61还可以用于当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,向所述基站发送D2D资源分配停止指示,所述D2D资源分配停止指示用于指示所述基站停止响应所述资源分配请求。Optionally, the transmitter 61 is further configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target that is requested by the resource allocation request sent by the base station And transmitting, by the D2D resource allocation information, a D2D resource allocation stop indication to the base station, where the D2D resource allocation stop indication is used to indicate that the base station stops responding to the resource allocation request.
可选的,处理器62还可以用于当用户设备切换到目标资源分配模式时,终止向基站发送用于请求分配D2D资源的资源分配请求。Optionally, the processor 62 is further configured to, when the user equipment switches to the target resource allocation mode, terminate sending a resource allocation request for requesting allocation of the D2D resource to the base station.
可选的,处理器62还可以用于当所述用户设备切换到目标资源分配模式时,终止重传D2D资源分配请求定时器;或者Optionally, the processor 62 is further configured to terminate the retransmission D2D resource allocation request timer when the user equipment switches to the target resource allocation mode; or
可选的,处理器62还可以用于当所述用户设备切换到目标资源分配模式时,终止周期D2D资源分配请求定时器。Optionally, the processor 62 is further configured to terminate the periodic D2D resource allocation request timer when the user equipment switches to the target resource allocation mode.
可选的,发射器61还可以用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的地址解析协议ARP数据。Optionally, the transmitter 61 is further configured to select a preset radio bearer for carrying the address resolution protocol ARP data to carry the ARP data in the D2D data, and use the first D2D resource to transmit the D2D data carried by the radio bearer. Address Resolution Protocol ARP Data.
可选的,发射器61还可以用于还用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的第一ARP数据;和/或者Optionally, the transmitter 61 is further configured to: use the first D2D resource to transmit the ARP data in the D2D data that is used to carry the address resolution protocol ARP data. First ARP data in D2D data; and/or
可选的,发射器61还可以用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第二D2D资源传输所述无线承载所承载D2D数据中的第二ARP数据。Optionally, the transmitter 61 is further configured to select a preset radio bearer for carrying address resolution protocol ARP data to carry ARP data in the D2D data, and use the second D2D resource to transmit the D2D data carried by the radio bearer. The second ARP data.
可选的,所述无线承载承载D2D数据中的ARP数据,可以包括:Optionally, the radio bearer carries the ARP data in the D2D data, and may include:
所述无线承载承载包含D2D数据中的ARP数据的分组数据汇聚协议PDCP包,其中,所述PDCP包的包头包含用于表示所述PDCP包内包含的数据为ARP数据的标识信息。 The radio bearer carries a packet data convergence protocol (PDCP) packet containing ARP data in the D2D data, where the header of the PDCP packet includes identification information indicating that the data contained in the PDCP packet is ARP data.
可选的,发射器61还可以用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的第一IP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的IP数据;和/或者Optionally, the transmitter 61 is further configured to select a preset first IP data in the radio bearer carrying D2D data for carrying the address resolution protocol ARP data, and transmit the D2D carried by the radio bearer by using the first D2D resource. IP data in the data; and/or
可选的,发射器61还可以用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的IP数据,并采用第二D2D资源传输所述无线承载所承载D2D数据中的第二IP数据。Optionally, the transmitter 61 is further configured to select a preset radio bearer for carrying the address resolution protocol ARP data to carry the IP data in the D2D data, and use the second D2D resource to transmit the D2D data carried by the radio bearer. The second IP data.
可选的,所述无线承载承载D2D数据中的IP数据,可以包括:Optionally, the radio bearer carries IP data in the D2D data, and may include:
所述无线承载承载包含D2D数据中的IP数据的PDCP包,其中,该PDCP包的包头包含用于处理该PDCP包内包含的IP数据的标识信息。The radio bearer carries a PDCP packet containing IP data in the D2D data, where the header of the PDCP packet includes identification information for processing IP data contained in the PDCP packet.
本实施例中,当用户设备切换到目标资源分配模式时,所述用户设备判断所述用户设备是否已经向基站发送用于请求分配D2D资源的资源分配请求;当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,所述用户设备针对所述资源分配请求执行用于避免D2D资源浪费的资源处理操作;用户设备从所述用户设备预先获取的D2D资源池中选择第一D2D资源。从而可以解决D2D通信的D2D资源的分配问题。In this embodiment, when the user equipment switches to the target resource allocation mode, the user equipment determines whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station; when the user equipment has been When the base station sends the resource allocation request, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, the user equipment performs the resource allocation request for avoiding The D2D resource is wasted resource processing operation; the user equipment selects the first D2D resource from the D2D resource pool that is pre-acquired by the user equipment. Thereby, the problem of allocation of D2D resources for D2D communication can be solved.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存取存储器(Random Access Memory,简称RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。 The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and thus equivalent changes made in the claims of the present invention are still within the scope of the present invention.

Claims (33)

  1. 一种D2D资源分配方法,其特征在于,包括:A D2D resource allocation method, comprising:
    当用户设备切换到目标资源分配模式时,所述用户设备判断所述用户设备是否已经向基站发送用于请求分配D2D资源的资源分配请求,其中,所述目标资源分配模式为所述用户设备按照预设规则从所述用户设备预先获取的D2D资源池中选择D2D资源的资源分配模式;When the user equipment switches to the target resource allocation mode, the user equipment determines whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station, where the target resource allocation mode is The preset rule selects a resource allocation mode of the D2D resource from the D2D resource pool acquired by the user equipment in advance;
    当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,所述用户设备针对所述资源分配请求执行用于避免D2D资源浪费的资源处理操作,其中,所述目标D2D资源分配为所述资源分配请求所请求的所有D2D资源分配信息或者部分D2D资源分配信息;When the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, the user equipment is targeted to The resource allocation request performs a resource processing operation for avoiding waste of D2D resources, where the target D2D resource allocation is all D2D resource allocation information or partial D2D resource allocation information requested by the resource allocation request;
    所述用户设备从所述用户设备预先获取的D2D资源池中选择第一D2D资源。The user equipment selects a first D2D resource from a D2D resource pool that is acquired in advance by the user equipment.
  2. 如权利要求1所述的方法,其特征在于,所述用户设备针对所述资源分配请求执行用于避免D2D资源浪费的资源处理操作,包括:The method according to claim 1, wherein the user equipment performs resource processing operations for avoiding waste of D2D resources for the resource allocation request, including:
    所述用户设备监听所述基站发送所述目标D2D资源分配信息的下行信道;The user equipment monitors, by the base station, a downlink channel that sends the target D2D resource allocation information;
    当所述用户设备在所述下行信道中获取到所述目标D2D资源分配信息时,所述用户设备使用所述目标D2D资源分配信息分配的第二D2D资源。When the user equipment acquires the target D2D resource allocation information in the downlink channel, the user equipment uses the second D2D resource allocated by the target D2D resource allocation information.
  3. 如权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises:
    当所述用户设备使用所述目标D2D资源分配信息分配的第二D2D资源后,所述用户设备终止向基站发送用于请求分配D2D资源的资源分配请求。After the user equipment uses the second D2D resource allocated by the target D2D resource allocation information, the user equipment terminates sending a resource allocation request for requesting allocation of D2D resources to the base station.
  4. 如权利要求1所述的方法,其特征在于,所述用户设备针对所述资源分配请求执行用于避免D2D资源浪费的资源处理操作,包括:The method according to claim 1, wherein the user equipment performs resource processing operations for avoiding waste of D2D resources for the resource allocation request, including:
    所述用户设备向所述基站发送D2D资源分配停止指示,所述资源分配停止指示用于指示所述基站停止响应所述D2D资源分配请求。 And the user equipment sends a D2D resource allocation stop indication to the base station, where the resource allocation stop indication is used to indicate that the base station stops responding to the D2D resource allocation request.
  5. 如权利要求1、2或4所述的方法,其特征在于,所述方法还包括:The method of claim 1, 2 or 4, wherein the method further comprises:
    当所述用户设备切换到目标资源分配模式时,所述用户设备终止向基站发送用于请求分配D2D资源的资源分配请求。When the user equipment switches to the target resource allocation mode, the user equipment terminates sending a resource allocation request for requesting allocation of D2D resources to the base station.
  6. 如权利要求3或5所述的方法,其特征在于,所述用户设备终止向基站发送用于请求分配D2D资源的资源分配请求,包括:The method according to claim 3 or 5, wherein the user equipment terminates sending a resource allocation request for requesting allocation of D2D resources to the base station, including:
    所述用户设备终止重传D2D资源分配请求定时器;或者The user equipment terminates retransmitting the D2D resource allocation request timer; or
    所述用户设备终止周期D2D资源分配请求定时器。The user equipment terminates a periodic D2D resource allocation request timer.
  7. 如权利要求1-6中任一项所述的方法,其特征在于,所述方法还包括:The method of any of claims 1-6, wherein the method further comprises:
    所述用户设备选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的ARP数据。The user equipment selects a preset radio bearer for carrying the address resolution protocol ARP data to carry ARP data in the D2D data, and uses the first D2D resource to transmit the ARP data in the D2D data carried by the radio bearer.
  8. 如权利要求2或3所述的方法,其特征在于,所述方法还包括:The method of claim 2 or 3, wherein the method further comprises:
    所述用户设备选择预先设置的用于承载ARP数据的无线承载承载D2D数据中的ARP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的第一ARP数据;和/或者The user equipment selects a preset radio bearer carrying ARP data to carry ARP data in the D2D data, and uses the first D2D resource to transmit the first ARP data in the D2D data carried by the radio bearer; and/or
    所述用户设备选择预先设置的用于承载ARP数据的无线承载承载D2D数据中的ARP数据,并采用第二D2D资源传输所述无线承载所承载D2D数据中的第二ARP数据。The user equipment selects a preset radio bearer for carrying ARP data to carry ARP data in the D2D data, and uses the second D2D resource to transmit the second ARP data in the D2D data carried by the radio bearer.
  9. 如权利要求7或8所述的方法,其特征在于,所述无线承载承载D2D数据中的ARP数据,包括:The method of claim 7 or 8, wherein the radio bearer carries ARP data in the D2D data, including:
    所述无线承载承载包含D2D数据中的ARP数据的分组数据汇聚协议PDCP包,其中,所述PDCP包的包头包含用于表示所述PDCP包内包含的数据为ARP数据的标识信息。 The radio bearer carries a packet data convergence protocol (PDCP) packet containing ARP data in the D2D data, where the header of the PDCP packet includes identification information indicating that the data contained in the PDCP packet is ARP data.
  10. 如权利要求8或9所述的方法,其特征在于,所述方法还包括:The method of claim 8 or claim 9, wherein the method further comprises:
    所述用户设备选择预先设置的用于承载ARP数据的无线承载承载D2D数据中的IP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的第一IP数据;和/或者The user equipment selects a preset radio bearer for carrying ARP data to carry IP data in the D2D data, and uses the first D2D resource to transmit the first IP data in the D2D data carried by the radio bearer; and/or
    所述用户设备选择预先设置的用于承载ARP数据的无线承载承载D2D数据中的IP数据,并采用第二D2D资源传输所述无线承载所承载D2D数据中的第二IP数据。The user equipment selects a preset radio bearer carrying ARP data to carry IP data in the D2D data, and uses the second D2D resource to transmit the second IP data in the D2D data carried by the radio bearer.
  11. 如权利要求10所述的方法,其特征在于,所述无线承载承载D2D数据中的IP数据,包括:The method of claim 10, wherein the radio bearer carries IP data in the D2D data, including:
    所述无线承载承载包含D2D数据中的IP数据的PDCP包,其中,该PDCP包的包头包含用于处理该PDCP包内包含的IP数据的标识信息。The radio bearer carries a PDCP packet containing IP data in the D2D data, where the header of the PDCP packet includes identification information for processing IP data contained in the PDCP packet.
  12. 一种用户设备,其特征在于,包括:发送单元和处理单元,其中:A user equipment, comprising: a sending unit and a processing unit, wherein:
    所述发送单元,用于向基站发送用于请求分配D2D资源的资源分配请求;The sending unit is configured to send, to the base station, a resource allocation request for requesting allocation of D2D resources;
    所述处理单元,用于当所述用户设备切换到目标资源分配模式时,判断所述用户设备是否已经向基站发送用于请求分配D2D资源的资源分配请求,其中,所述目标资源分配模式为所述用户设备按照预设规则从所述用户设备预先获取的D2D资源池中选择D2D资源的资源分配模式;The processing unit is configured to: when the user equipment is switched to the target resource allocation mode, determine whether the user equipment has sent a resource allocation request for requesting allocation of a D2D resource to the base station, where the target resource allocation mode is The user equipment selects a resource allocation mode of the D2D resource from the D2D resource pool acquired in advance by the user equipment according to a preset rule;
    所述处理单元还用于当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,针对所述资源分配请求执行用于避免D2D资源浪费的资源处理操作,其中,所述目标D2D资源分配为所述资源分配请求所请求的所有D2D资源分配信息或者部分D2D资源分配信息;The processing unit is further configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station And performing resource processing operations for avoiding waste of D2D resources for the resource allocation request, where the target D2D resource allocation is all D2D resource allocation information or partial D2D resource allocation information requested by the resource allocation request;
    所述处理单元还用于从所述用户设备预先获取的D2D资源池中选择第一D2D资源。The processing unit is further configured to select a first D2D resource from a D2D resource pool that is pre-acquired by the user equipment.
  13. 如权利要求12所述的用户设备,其特征在于,所述用户设备还包括:The user equipment of claim 12, wherein the user equipment further comprises:
    接收单元,用于当所述用户设备已经向所述基站发送所述资源分配请求, 且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,监听所述基站发送所述目标D2D资源分配信息的下行信道;a receiving unit, configured to: when the user equipment has sent the resource allocation request to the base station, And the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, and listens to the downlink channel that the base station sends the target D2D resource allocation information;
    所述处理单元还用于当所述接收单元在所述下行信道中获取到所述目标D2D资源分配信息时,使用所述目标D2D资源分配信息分配的第二D2D资源。The processing unit is further configured to: when the receiving unit acquires the target D2D resource allocation information in the downlink channel, use the second D2D resource allocated by the target D2D resource allocation information.
  14. 如权利要求13所述的用户设备,其特征在于,A user equipment according to claim 13 wherein:
    所述处理单元还用于当所述用户设备使用所述D2D资源分配信息分配的第二D2D资源后,终止向基站发送用于请求分配D2D资源的资源分配请求。The processing unit is further configured to, after the user equipment uses the second D2D resource allocated by the D2D resource allocation information, terminate sending a resource allocation request for requesting allocation of the D2D resource to the base station.
  15. 如权利要求12所述的用户设备,其特征在于,所述发送单元还用于当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,向所述基站发送D2D资源分配停止指示,所述资源分配停止指示用于指示所述基站停止响应所述D2D资源分配请求。The user equipment according to claim 12, wherein the sending unit is further configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the base station, And transmitting, by the resource allocation request, the D2D resource allocation stop indication to the base station, where the resource allocation stop indication is used to indicate that the base station stops responding to the D2D resource allocation request.
  16. 如权利要求12、13或14所述的用户设备,其特征在于,A user equipment according to claim 12, 13 or 14, wherein
    所述处理单元还用于当用户设备切换到目标资源分配模式时,终止向基站发送用于请求分配D2D资源的资源分配请求。The processing unit is further configured to, when the user equipment switches to the target resource allocation mode, terminate sending a resource allocation request for requesting allocation of the D2D resource to the base station.
  17. 如权利要求16所述的用户设备,其特征在于,所述处理单元还用于当所述用户设备切换到目标资源分配模式时,终止重传D2D资源分配请求定时器;或者The user equipment according to claim 16, wherein the processing unit is further configured to terminate a retransmission D2D resource allocation request timer when the user equipment switches to a target resource allocation mode; or
    所述处理单元还用于当所述用户设备切换到目标资源分配模式时,终止周期D2D资源分配请求定时器。The processing unit is further configured to terminate the periodic D2D resource allocation request timer when the user equipment switches to the target resource allocation mode.
  18. 如权利要求12-17中任一项所述的用户设备,其特征在于,所述发送单元还用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第一D2D资源传输所述无线承载所承载D2D 数据中的ARP数据。The user equipment according to any one of claims 12-17, wherein the sending unit is further configured to: select a preset ARP data in a radio bearer carrying D2D data for carrying address resolution protocol ARP data, And transmitting, by using the first D2D resource, the D2D carried by the radio bearer ARP data in the data.
  19. 如权利要求13或14所述的用户设备,其特征在于,所述发送单元还用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的第一ARP数据;和/或者The user equipment according to claim 13 or 14, wherein the sending unit is further configured to select ARP data in the radio bearer carrying D2D data for carrying the address resolution protocol ARP data, and adopt the first Transmitting, by the D2D resource, the first ARP data in the D2D data carried by the radio bearer; and/or
    所述发送单元还用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第二D2D资源传输所述无线承载所承载D2D数据中的第二ARP数据。The sending unit is further configured to: select a preset ARP data in the radio bearer carrying D2D data for carrying the address resolution protocol ARP data, and transmit, by using the second D2D resource, the second ARP in the D2D data carried by the radio bearer. data.
  20. 如权利要求18所述的用户设备,其特征在于,所述无线承载承载D2D数据中的ARP数据,包括:The user equipment of claim 18, wherein the radio bearer carries ARP data in the D2D data, including:
    所述无线承载承载包含D2D数据中的ARP数据的分组数据汇聚协议PDCP包,其中,所述PDCP包的包头包含用于表示所述PDCP包内包含的数据为ARP数据的标识信息。The radio bearer carries a packet data convergence protocol (PDCP) packet containing ARP data in the D2D data, where the header of the PDCP packet includes identification information indicating that the data contained in the PDCP packet is ARP data.
  21. 如权利要求19或20所述的用户设备,其特征在于,所述发送单元还用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的第一IP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的IP数据;和/或者The user equipment according to claim 19 or 20, wherein the sending unit is further configured to select a preset first IP data in the radio bearer carrying D2D data for carrying address resolution protocol ARP data, and adopting Transmitting, by the first D2D resource, IP data in the D2D data carried by the radio bearer; and/or
    所述发送单元还用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的IP数据,并采用第二D2D资源传输所述无线承载所承载D2D数据中的第二IP数据。The sending unit is further configured to select the IP data in the radio bearer carrying the D2D data for carrying the address resolution protocol ARP data, and transmit the second IP in the D2D data carried by the radio bearer by using the second D2D resource. data.
  22. 如权利要求21所述的用户设备,其特征在于,所述无线承载承载D2D数据中的IP数据,包括:The user equipment according to claim 21, wherein the radio bearer carries IP data in the D2D data, including:
    所述无线承载承载包含D2D数据中的IP数据的PDCP包,其中,该PDCP包的包头包含用于处理该PDCP包内包含的IP数据的标识信息。 The radio bearer carries a PDCP packet containing IP data in the D2D data, where the header of the PDCP packet includes identification information for processing IP data contained in the PDCP packet.
  23. 一种用户设备,其特征在于,包括:发射器和处理器;其中:A user equipment, comprising: a transmitter and a processor; wherein:
    所述发射器,用于向基站发送用于请求分配D2D资源的资源分配请求;The transmitter is configured to send, to the base station, a resource allocation request for requesting allocation of D2D resources;
    所述处理器用于:The processor is used to:
    当所述用户设备切换到目标资源分配模式时,判断所述用户设备是否已经向基站发送用于请求分配D2D资源的资源分配请求,其中,所述目标资源分配模式为所述用户设备按照预设规则从所述用户设备预先获取的D2D资源池中选择D2D资源的资源分配模式;When the user equipment is switched to the target resource allocation mode, it is determined whether the user equipment has sent a resource allocation request for requesting allocation of D2D resources to the base station, where the target resource allocation mode is preset by the user equipment. The rule selects a resource allocation mode of the D2D resource from a D2D resource pool that is pre-acquired by the user equipment;
    当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,针对所述资源分配请求执行用于避免D2D资源浪费的资源处理操作,其中,所述目标D2D资源分配为所述资源分配请求所请求的所有D2D资源分配信息或者部分D2D资源分配信息;And when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, Requesting to perform resource processing operations for avoiding waste of D2D resources, wherein the target D2D resource allocation is all D2D resource allocation information or partial D2D resource allocation information requested by the resource allocation request;
    从所述用户设备预先获取的D2D资源池中选择第一D2D资源。Selecting a first D2D resource from a pool of D2D resources previously acquired by the user equipment.
  24. 如权利要求23所述的用户设备,其特征在于,所述用户设备还包括:The user equipment of claim 23, wherein the user equipment further comprises:
    接收器,用于当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,监听所述基站发送所述目标D2D资源分配信息的下行信道;a receiver, configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the target D2D resource allocation information requested by the resource allocation request sent by the base station, Monitoring, by the base station, a downlink channel that sends the target D2D resource allocation information;
    所述处理器还用于当所述接收单元在所述下行信道中获取到所述目标D2D资源分配信息时,使用所述目标D2D资源分配信息分配的第二D2D资源。The processor is further configured to: when the receiving unit acquires the target D2D resource allocation information in the downlink channel, use the second D2D resource allocated by the target D2D resource allocation information.
  25. 如权利要求24所述的用户设备,其特征在于,所述处理器还用于当所述用户设备使用所述D2D资源分配信息分配的第二D2D资源后,终止向基站发送用于请求分配D2D资源的资源分配请求。The user equipment according to claim 24, wherein the processor is further configured to: after the user equipment uses the second D2D resource allocated by the D2D resource allocation information, terminate sending to the base station for requesting allocation of D2D Resource allocation request for the resource.
  26. 如权利要求23所述的用户设备,其特征在于,所述发射器还用于当所述用户设备已经向所述基站发送所述资源分配请求,且所述用户设备未接收到所述基站发送的所述资源分配请求所请求的目标D2D资源分配信息时,向所述基站发送D2D资源分配停止指示,所述D2D资源分配停止指示用于指示 所述基站停止响应所述资源分配请求。The user equipment according to claim 23, wherein the transmitter is further configured to: when the user equipment has sent the resource allocation request to the base station, and the user equipment does not receive the base station to send And transmitting, by the resource allocation request, the D2D resource allocation stop indication to the base station, where the D2D resource allocation stop indication is used for indicating The base station stops responding to the resource allocation request.
  27. 如权利要求23、24或26所述的用户设备,其特征在于,所述处理器还用于当用户设备切换到目标资源分配模式时,终止向基站发送用于请求分配D2D资源的资源分配请求。The user equipment according to claim 23, 24 or 26, wherein the processor is further configured to terminate sending a resource allocation request for requesting allocation of D2D resources to the base station when the user equipment switches to the target resource allocation mode. .
  28. 如权利要求25或27所述的用户设备,其特征在于,所述处理器还用于当所述用户设备切换到目标资源分配模式时,终止重传D2D资源分配请求定时器;或者The user equipment according to claim 25 or 27, wherein the processor is further configured to terminate the retransmission D2D resource allocation request timer when the user equipment switches to the target resource allocation mode; or
    所述处理器还用于当所述用户设备切换到目标资源分配模式时,终止周期D2D资源分配请求定时器。The processor is further configured to terminate the periodic D2D resource allocation request timer when the user equipment switches to the target resource allocation mode.
  29. 如权利要求23-28中任一项所述的方法,其特征在于,所述发射器还用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的地址解析协议ARP数据。The method according to any one of claims 23 to 28, wherein the transmitter is further configured to select a preset radio bearer for carrying address resolution protocol ARP data to carry ARP data in D2D data, and The address resolution protocol ARP data in the D2D data carried by the radio bearer is transmitted by using the first D2D resource.
  30. 如权利要求24或25所述的用户设备,其特征在于,所述发射器还用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的第一ARP数据;和/或者The user equipment according to claim 24 or 25, wherein the transmitter is further configured to select a preset radio bearer for carrying address resolution protocol ARP data to carry ARP data in the D2D data, and adopt the first Transmitting, by the D2D resource, the first ARP data in the D2D data carried by the radio bearer; and/or
    所述发射器还用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的ARP数据,并采用第二D2D资源传输所述无线承载所承载D2D数据中的第二ARP数据。The transmitter is further configured to select a preset ARP data in the radio bearer carrying D2D data for carrying the address resolution protocol ARP data, and transmit the second ARP in the D2D data carried by the radio bearer by using the second D2D resource. data.
  31. 如权利要求29或30所述的用户设备,其特征在于,所述无线承载承载D2D数据中的ARP数据,包括:The user equipment according to claim 29 or 30, wherein the radio bearer carries ARP data in the D2D data, including:
    所述无线承载承载包含D2D数据中的ARP数据的分组数据汇聚协议PDCP包,其中,所述PDCP包的包头包含用于表示所述PDCP包内包含的数 据为ARP数据的标识信息。The radio bearer carries a packet data convergence protocol PDCP packet including ARP data in D2D data, where a header of the PDCP packet includes a number included in the PDCP packet According to the identification information of the ARP data.
  32. 如权利要求30或31所述的用户设备,其特征在于,所述发射器还用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的第一IP数据,并采用第一D2D资源传输所述无线承载所承载D2D数据中的IP数据;和/或者The user equipment according to claim 30 or 31, wherein the transmitter is further configured to select a preset first IP data in the radio bearer carrying D2D data for carrying address resolution protocol ARP data, and adopting Transmitting, by the first D2D resource, IP data in the D2D data carried by the radio bearer; and/or
    所述发射器还用于选择预先设置的用于承载地址解析协议ARP数据的无线承载承载D2D数据中的IP数据,并采用第二D2D资源传输所述无线承载所承载D2D数据中的第二IP数据。The transmitter is further configured to select a preset radio bearer for carrying the address resolution protocol ARP data to carry IP data in the D2D data, and use the second D2D resource to transmit the second IP in the D2D data carried by the radio bearer. data.
  33. 如权利要求32所述的用户设备,其特征在于,所述无线承载承载D2D数据中的IP数据,包括:The user equipment according to claim 32, wherein the radio bearer carries IP data in the D2D data, including:
    所述无线承载承载包含D2D数据中的IP数据的PDCP包,其中,该PDCP包的包头包含用于处理该PDCP包内包含的IP数据的标识信息。 The radio bearer carries a PDCP packet containing IP data in the D2D data, where the header of the PDCP packet includes identification information for processing IP data contained in the PDCP packet.
PCT/CN2014/087560 2014-09-26 2014-09-26 D2d resource allocating method and user equipment WO2016045090A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201480035438.1A CN105684471B (en) 2014-09-26 2014-09-26 A kind of D2D resource allocation methods and user equipment
PCT/CN2014/087560 WO2016045090A1 (en) 2014-09-26 2014-09-26 D2d resource allocating method and user equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/087560 WO2016045090A1 (en) 2014-09-26 2014-09-26 D2d resource allocating method and user equipment

Publications (1)

Publication Number Publication Date
WO2016045090A1 true WO2016045090A1 (en) 2016-03-31

Family

ID=55580137

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/087560 WO2016045090A1 (en) 2014-09-26 2014-09-26 D2d resource allocating method and user equipment

Country Status (2)

Country Link
CN (1) CN105684471B (en)
WO (1) WO2016045090A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018049653A1 (en) * 2016-09-18 2018-03-22 华为技术有限公司 Data sending method, base station and communication node
CN108924892A (en) * 2017-04-07 2018-11-30 华为技术有限公司 A kind of D2D communication means and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012159270A1 (en) * 2011-05-25 2012-11-29 Renesas Mobile Corporation Resource allocation for d2d communication
CN103634852A (en) * 2012-08-28 2014-03-12 华为技术有限公司 Resource negotiation method, devices and system of device-to-device (D2D) communication
CN103841649A (en) * 2014-03-19 2014-06-04 宇龙计算机通信科技(深圳)有限公司 Terminal D2D communication method and terminal D2D communication system
CN104010275A (en) * 2014-06-09 2014-08-27 宇龙计算机通信科技(深圳)有限公司 Resource allocation and broadcast communication method and device, base station and terminals

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012159270A1 (en) * 2011-05-25 2012-11-29 Renesas Mobile Corporation Resource allocation for d2d communication
CN103634852A (en) * 2012-08-28 2014-03-12 华为技术有限公司 Resource negotiation method, devices and system of device-to-device (D2D) communication
CN103841649A (en) * 2014-03-19 2014-06-04 宇龙计算机通信科技(深圳)有限公司 Terminal D2D communication method and terminal D2D communication system
CN104010275A (en) * 2014-06-09 2014-08-27 宇龙计算机通信科技(深圳)有限公司 Resource allocation and broadcast communication method and device, base station and terminals

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018049653A1 (en) * 2016-09-18 2018-03-22 华为技术有限公司 Data sending method, base station and communication node
CN108924892A (en) * 2017-04-07 2018-11-30 华为技术有限公司 A kind of D2D communication means and device

Also Published As

Publication number Publication date
CN105684471A (en) 2016-06-15
CN105684471B (en) 2019-05-17

Similar Documents

Publication Publication Date Title
RU2767971C2 (en) Method for transmitting scheduling request, method for processing scheduling request and corresponding device
US11343802B2 (en) Semi-persistent scheduling method and apparatus
JP6636146B2 (en) Device-to-device D2D communication method, apparatus and system
WO2015096719A1 (en) D2d resource allocation method, and data transmission method and device
WO2017128543A1 (en) Resource scheduling method and apparatus for vehicle communication, and terminal and base station
JP2020505877A (en) Bearer transformation
RU2672186C2 (en) Method and device for semi-persistent sps scheduling
WO2017101209A1 (en) Service transmission method and apparatus
WO2015154392A1 (en) Switching implementation method and device for d2d service
JP2017504289A5 (en)
JP2010539783A5 (en)
JP2016519523A (en) D2D discovery method, base station, and user equipment
WO2014086204A1 (en) Method, device and system for establishing device-to-device communication channel
WO2013166670A1 (en) Method and device for configuring resources of uplink channel
WO2016011849A1 (en) Method, device and system for controlling air interface resources
TW201639391A (en) Method and apparatus for supporting prose service continuity
WO2015142242A1 (en) Methods for operating network nodes and related network nodes
CN110839299B (en) Resource allocation method and equipment
WO2016019739A1 (en) User state processing method and apparatus
WO2016082452A1 (en) Resource scheduling method and apparatus
CN111867089A (en) Resource allocation method and equipment
WO2020088319A1 (en) V2x transmission method and device, and user equipment
WO2015139282A1 (en) Method and device for establishing group leader of user group in d2d communication
EP3328144B1 (en) User equipment, network equipment, and data transmission method
WO2017084336A1 (en) Method and apparatus for transmitting data

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14902545

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14902545

Country of ref document: EP

Kind code of ref document: A1