WO2017024546A1 - Data transmission method and apparatus - Google Patents

Data transmission method and apparatus Download PDF

Info

Publication number
WO2017024546A1
WO2017024546A1 PCT/CN2015/086736 CN2015086736W WO2017024546A1 WO 2017024546 A1 WO2017024546 A1 WO 2017024546A1 CN 2015086736 W CN2015086736 W CN 2015086736W WO 2017024546 A1 WO2017024546 A1 WO 2017024546A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication data
protocol layer
discovery
transport channel
bits
Prior art date
Application number
PCT/CN2015/086736
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 CN201580074052.6A priority Critical patent/CN107211405B/en
Priority to PCT/CN2015/086736 priority patent/WO2017024546A1/en
Publication of WO2017024546A1 publication Critical patent/WO2017024546A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation

Definitions

  • the present application relates to the field of communication networks, and in particular, to a data transmission method and apparatus.
  • Device to device (Device The communication technology of toDevice, D2D) is a technology that allows direct communication between user equipment devices (User Equipments, UEs) using a wireless link under the control of a cellular system.
  • UEs User Equipments
  • LTE Long-term evolution
  • D2D discovery channel transmission mode
  • D2D data channel transmission mode commonly referred to as D2D direct communication mode
  • the LTE system allocates D2D through broadcast messages or dedicated signaling.
  • the transmission resources that Discovery and D2D communicate directly to the user perform D2D communication in the corresponding mode.
  • D2D communication data can only be mapped to the D2D shared transmission channel, and the D2D communication data cannot be mapped to the Discovery transmission channel, and thus the D2D communication data with a small number of bits can not be transmitted through the Discovery channel, which will be reduced. Transmission efficiency of the D2D data channel.
  • the technical problem to be solved by the present application is to provide a data transmission method and device, which can improve the transmission efficiency of the data channel and improve the overall resource utilization of the LTE network.
  • the first aspect of the present application provides a data transmission method, including: establishing, by a terminal device, a D2D service logical channel and a D2D a mapping relationship of the Discovery transport channel; the terminal device determines whether the number of bits of the first D2D communication data reaches a threshold value, wherein the first D2D communication data is D2D communication data to be transmitted; when the first D2D communication When the data does not reach the threshold, the terminal device maps the first D2D communication data to the D2D according to the mapping relationship.
  • a Discovery transport channel the terminal device transmits the first D2D communication data through the D2D Discovery transport channel.
  • the second aspect of the present application provides a data transmission method, including: receiving, by a terminal device, D2D communication data sent by another terminal device other than the terminal device;
  • a third aspect of the present application provides a data transmission apparatus, including: an establishment module, a determination module, a mapping module, and a transmission module; the establishment module is configured to establish a D2D service logical channel and a D2D a mapping relationship of the Discovery transmission channel; the determining module is configured to determine whether the number of bits of the first D2D communication data reaches a threshold value, wherein the first D2D communication data is D2D communication data to be transmitted; When the determining module determines that the first D2D communication data does not reach the threshold, mapping the first D2D communication data to the D2D according to the mapping relationship established by the establishing module. a discovery channel; the transmission module is configured to transmit the first D2D communication data by using the D2D Discovery transmission channel.
  • a fourth aspect of the present application provides a data transmission apparatus, including a receiving module, a determining module, and a mapping module, where the receiving module is configured to receive D2D communication data sent by other terminal devices; Determining, according to the information of the D2D communication data received by the receiving module, that the D2D communication data is from D2D a discovery channel; the mapping module is configured to: when the determining module determines that the D2D communication data is from D2D When the Discovery transport channel is based on the information of the D2D communication data and the acquired D2D service logical channel and D2D A mapping relationship of the Discovery transport channel, mapping the D2D communication data to the D2D Discovery transport channel.
  • a fifth aspect of the present application provides a data transmission apparatus, including a processor and a transceiver; the processor is configured to establish a D2D service logical channel and a D2D a mapping relationship of the Discovery transmission channel; the processor is configured to determine whether a number of bits of the first D2D communication data reaches a threshold value, wherein the first D2D communication data is D2D communication data to be transmitted; Determining, when the first D2D communication data does not reach the threshold, mapping the first D2D communication data to the D2D according to the mapping relationship Discovery transmits a channel and transmits the first D2D communication data through the D2D Discovery transmission channel; the transceiver is configured to transmit and receive data.
  • a sixth aspect of the present application provides a data transmission apparatus including a transceiver and a processor; the transceiver is configured to receive D2D communication data sent by another terminal device; and the processor is configured to perform communication according to the D2D
  • the information of the data determines that the D2D communication data is from D2D Discovery transport channel; and for when the D2D communication data comes from D2D
  • the Discovery transport channel is based on the information of the D2D communication data and the acquired D2D service logical channel and D2D A mapping relationship of the Discovery transport channel, mapping the D2D communication data to the D2D Discovery transport channel.
  • the terminal device establishes a D2D service logical channel and D2D a mapping relationship of the Discovery transmission channel, when determining that the first D2D communication data does not reach the threshold, mapping the first D2D communication data to the D2D Discovery transmission channel, and passing the D2D
  • the Discovery transmission channel transmits the first D2D communication data, which solves the problem that the prior art cannot pass the D2D.
  • the technical problem that the Discovery transmission channel carries D2D communication data can improve the transmission efficiency of the data channel and improve the overall resource utilization of the LTE network.
  • FIG. 1 is a flow chart of an embodiment of a data transmission method of the present application.
  • FIG. 2 is a flow chart of another embodiment of a data transmission method of the present application.
  • FIG. 3 is a schematic diagram of an embodiment of establishing a mapping relationship between a D2D service logical channel and a D2D Discovery transmission channel in the present application;
  • FIG. 4 is a schematic diagram of channel mapping of D2D communication based on LTE according to the present application.
  • FIG. 5 is a schematic diagram of an embodiment of transmitting a Discovery message and D2D communication data by using different physical resources in the present application
  • FIG. 6 is a flowchart of still another embodiment of a data transmission method of the present application.
  • FIG. 7 is a schematic diagram of another embodiment of establishing a mapping relationship between a D2D service logical channel and a D2D Discovery transmission channel according to the present application;
  • FIG. 8 is a flowchart of still another embodiment of a data transmission method of the present application.
  • FIG. 9 is a schematic diagram of still another embodiment of establishing a mapping relationship between a D2D service logical channel and a D2D Discovery transmission channel according to the present application.
  • FIG. 10 is a flowchart of still another embodiment of a data transmission method of the present application.
  • FIG. 11 is a schematic structural diagram of an embodiment of a data transmission device of the present application.
  • FIG. 12 is a schematic structural diagram of another embodiment of a data transmission apparatus of the present application.
  • FIG. 13 is a schematic structural diagram of still another embodiment of a data transmission apparatus according to the present application.
  • FIG. 14 is a schematic structural diagram of still another embodiment of a data transmission device of the present application.
  • 15 is a schematic structural diagram of still another embodiment of a data transmission device of the present application.
  • FIG. 16 is a schematic structural diagram of still another embodiment of a data transmission apparatus of the present application.
  • FIG. 1 is a flowchart of an embodiment of a data transmission method of the present application.
  • the execution entity of this embodiment is a terminal device, and the terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data.
  • the data transmission method of this embodiment includes the following steps:
  • the terminal device establishes a mapping relationship between the D2D service logical channel and the D2D Discovery transmission channel.
  • Terminal equipment establishes D2D traffic channel (Sidelink Traffic Channel, STCH) and D2D The mapping relationship of the Discovery transport channel.
  • D2D traffic channel Seglink Traffic Channel, STCH
  • D2D The mapping relationship of the Discovery transport channel.
  • the D2D service logical channel is a media access control protocol in the protocol stack of the D2D direct communication mode (Media Access) Control, MAC) layer and the communication layer of each layer above the MAC layer
  • D2D Discovery transmission channel is D2D The communication interface between the MAC layer and the physical (PHY) layer in the protocol stack of the Discovery mode.
  • the architecture of the protocol stack of D2D direct communication mode includes: Packet Data Convergence Protocol (Packet Data) Convergence Protocol (PDCP) layer, Radio Link Control (RLC) layer, MAC layer, PHY layer.
  • Packet Data Packet Data Convergence Protocol
  • RLC Radio Link Control
  • the architecture of the Discovery mode protocol stack (from top to bottom) includes: ProSe protocol stack, MAC layer, and PHY layer.
  • the D2D service logical channel may be located at the MAC layer, or may be located at the RLC layer, or may be located at the PDCP layer, but is not limited thereto, and is not limited herein.
  • the terminal device can directly establish a D2D service logical channel and D2D at the MAC layer.
  • the mapping relationship of the Discovery transport channel; a mapping interface may also be established between the RLC layer and the ProSe protocol stack to establish a D2D service logical channel to the D2D through the RLC layer and the ProSe protocol stack.
  • the mapping relationship of the Discovery transport channel; the mapping relationship with the ProSe protocol stack can also be established at the PDCP layer to establish a D2D service logical channel and D2D.
  • the mapping relationship of the Discovery transport channel can also be established at the PDCP layer to establish a D2D service logical channel and D2D.
  • D2D service logical channels and D2D can also be established in other ways.
  • the mapping relationship of the Discovery transport channel is not limited here.
  • the terminal device When the terminal device sends the Discovery message generated by the ProSe protocol stack, the terminal device processes according to the processing method in the prior art: the terminal device delivers the Discovery message to be sent to the MAC layer, and the MAC layer is responsible for mapping the Discovery message to the MAC layer.
  • Corresponding D2D Discovery Transport Channel (Sidelink Discovery Channel, SL-DCH), via D2D
  • the Discovery transport channel delivers Discovery messages to the PHY layer, which uses the Discovery transport resources in the physical layer to transport Discovery messages.
  • steps S102 to S103 are performed.
  • the D2D communication data includes audio data, video data, and the like, and the D2D communication data is generated by the application layer, and after processing, enters a protocol stack of the D2D direct communication mode for processing.
  • the terminal device determines whether the number of bits of the first D2D communication data reaches a threshold value, wherein the first D2D communication data is D2D communication data to be transmitted.
  • the terminal device When the terminal device communicates with other terminal devices and transmits D2D communication data to other terminal devices, the terminal device determines whether the number of bits of the first D2D communication data to be transmitted reaches a threshold value.
  • the threshold value may be a threshold corresponding to the number of bits of the preset D2D communication data, and the specific numerical value may be set according to actual needs.
  • the Discovery transport channel can only transmit packets that are less than or equal to a fixed number of bits, and cannot transmit packets larger than a fixed number of bits. Therefore, the threshold can be set to be less than or equal to D2D.
  • the maximum number of bits carried by the Discovery transport channel The threshold corresponding to the number of bits of D2D communication data does not exceed D2D
  • the maximum number of bearers of the Discovery transport channel may be 232 bits, but is not limited thereto, and may be set to other values, which is not limited herein.
  • step S103 is performed.
  • Transport channel (Sidelink Shared Channel, SL-SCH) is processed.
  • the terminal device maps the first D2D communication data to the D2D according to the mapping relationship. Discovery transport channel.
  • the terminal device determines that the first D2D communication data is less than or equal to the threshold, the terminal device according to the D2D service logical channel and the D2D A mapping relationship of the Discovery transport channel, mapping the first D2D communication data to the D2D Discovery transport channel.
  • the terminal device when the terminal device directly establishes a D2D service logical channel and D2D in the MAC layer of the medium access control protocol When the mapping relationship of the Discovery transmission channel is performed, the terminal device submits the first D2D communication data to the MAC layer, according to the D2D service logical channel and the D2D.
  • the mapping of the Discovery transport channel maps the first D2D communication data to the D2D Discovery transport channel at the MAC layer.
  • the first D2D communication data enters the protocol stack of the D2D direct communication mode from the application layer.
  • the terminal device maps the first D2D communication data from the PDCP layer to the ProSe protocol stack according to the mapping relationship between the PDCP layer and the ProSe protocol stack, and the first D2D communication data enters the D2DDiscovery mode protocol. Stack.
  • the terminal device delivers the first D2D communication data to the MAC layer, mapping the first D2D communication data to the D2D at the MAC layer Discovery transport channel.
  • the D2D service logical channel is established to the D2D.
  • the mapping relationship of the Discovery transmission channel the first D2D communication data enters the protocol stack of the D2D direct communication mode from the application layer. After the first communication data reaches the RLC layer through the PDCP layer, the terminal device maps the first D2D communication data from the RLC layer to the ProSe protocol stack through the mapping interface between the RLC layer and the ProSe protocol stack, and the first D2D communication data enters the D2DDiscovery The protocol stack of the pattern. After the terminal device delivers the first D2D communication data to the MAC layer, mapping the first D2D communication data to the D2D at the MAC layer Discovery transport channel.
  • the terminal device When the terminal device directly establishes a D2D service logical channel and D2D at the MAC layer
  • the mapping relationship of the Discovery transmission channel is: the terminal device enters the protocol stack of the D2D direct communication mode from the application layer in the first D2D communication data, and passes the first D2D communication data to the MAC layer after passing through the PDCP layer and the RLC layer from the RLC layer.
  • the mapping relationship of the Discovery transport channel directly maps the first D2D communication data to the D2D Discovery transport channel.
  • the terminal device delivers the first D2D communication data to the physical layer by using a D2D Discovery transmission channel.
  • the terminal device maps the first D2D communication data to the D2D Discovery transmission channel, through the D2D
  • the Discovery transport channel passes the first D2D communication data from the MAC layer to the physical layer, and then passes the D2D.
  • the transmission resource corresponding to Discovery transmits the first D2D communication data, thereby transmitting the first D2D communication data to other terminal devices.
  • the terminal device receives the data and sends the data in two reverse processes.
  • For the process of the terminal device processing the received data refer to the foregoing process, which is not described here.
  • the terminal device establishes a D2D service logical channel and D2D a mapping relationship of the Discovery transmission channel, when determining that the first D2D communication data does not reach the threshold, mapping the first D2D communication data to the D2D Discovery transmission channel, and passing the D2D
  • the Discovery transmission channel transmits the first D2D communication data, which solves the problem that the prior art cannot pass the D2D.
  • the technical problem that the Discovery transmission channel carries D2D communication data can improve the transmission efficiency of the data channel and improve the overall resource utilization of the LTE network.
  • FIG. 2 is a flowchart of another embodiment of the data transmission method of the present application.
  • the execution entity of this embodiment is a terminal device, and the terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data.
  • the data transmission method of this embodiment includes the following steps:
  • S201 The terminal device directly establishes a D2D service logical channel and D2D at a medium access control protocol layer The mapping relationship of the Discovery transport channel.
  • FIG. 3 is a schematic diagram of establishing a D2D service logical channel and D2D in the present application.
  • Schematic diagram of an embodiment of a mapping relationship of Discovery transport channels FIG. 3-1 shows the establishment of the D2D service logical channel and D2D in this application.
  • Schematic diagram of an implementation manner of a mapping relationship of a Discovery transmission channel and FIG. 3-2 is a logical channel and D2D for establishing a D2D service in the present application.
  • 4 is a schematic diagram of channel mapping of D2D communication based on LTE in the present application.
  • the D2D service logical channel STCH is located at the MAC layer, the D2D service logical channel STCH is the communication interface of the MAC layer and the layers above the MAC layer in the protocol stack of the D2D direct communication mode, and the D2D shared transport channel SL-SCH is the D2D direct communication mode.
  • the Discovery transport channel SL-DCH is a communication interface between the MAC layer and the physical layer in the protocol stack of the D2D Discovery mode.
  • the terminal device directly establishes a D2D service logical channel and D2D at the MAC layer.
  • Discovery transport channel SL-DCH mapping relationship As shown in FIG. 3, the terminal device directly establishes a D2D service logical channel and D2D at the MAC layer.
  • Discovery transport channel SL-DCH mapping relationship As shown in FIG. 3, the terminal device directly establishes a D2D service logical channel and D2D at the MAC layer.
  • Discovery transport channel SL-DCH mapping relationship Discovery transport channel SL-DCH mapping relationship.
  • the processing is performed according to the processing flow in the prior art, and details are not described herein.
  • the D2D communication data includes audio data, video data, and the like.
  • the D2D communication data is generated by the application layer, and after being processed by the TCP/UDP layer and the IP layer, the D2D direct communication mode protocol stack is processed.
  • steps S202 to S204 are performed; when the D2D service logical channel and the D2D are established by the manner as shown in FIG. 3-2.
  • steps S202 to S203 and S205 to S208 are executed.
  • the terminal device determines whether the number of bits of the first D2D communication data is less than or equal to a first preset threshold; wherein the first preset threshold is less than or equal to the D2D The maximum number of bits carried by the Discovery transport channel.
  • the terminal device When the terminal device needs to send the first D2D communication data, after the first D2D communication data is delivered from the application layer to the TCP/UDP layer and the IP layer for processing, the terminal device delivers the first D2D communication data to the D2D direct communication mode.
  • the protocol stack is processed. After the first D2D communication data enters the protocol stack of the D2D direct communication mode, the terminal device determines whether the number of bits of the first D2D communication data is less than or equal to a first preset threshold. Wherein, the first preset threshold is not greater than D2D The maximum number of bits carried by the Discovery transport channel.
  • the first preset threshold may be 232 bits, but is not limited thereto, and may be other values, which are not limited herein.
  • step S203 is performed.
  • step S204 or S205 is performed.
  • step S201 the D2D service logical channel and the D2D are established by the manner as shown in FIG. 3-1.
  • step S204 is performed; in step S201, the D2D service logical channel and the D2D are established by the manner as shown in FIG. 3-2.
  • step S205 is performed.
  • the terminal device maps the first D2D communication data to the at the medium access control protocol layer.
  • D2D a Discovery transport channel that transmits the first D2D communication data over the D2D Discovery transport channel.
  • the terminal device determines that the number of bits of the first D2D communication data is less than or equal to the first preset threshold, after the first D2D communication data is processed by the PDCP layer and the RLC layer, the first D2D communication data is delivered to the MAC layer.
  • the processing method of the first D2D communication data in the PDCP layer and the RLC layer is the same as that in the prior art, and details are not described herein.
  • the terminal device according to the D2D service logical channel and D2D in the MAC layer
  • the Discovery transport channel delivers the first D2D communication data from the MAC layer to the physical layer.
  • the transmission resource corresponding to Discovery transmits the first D2D communication data, thereby transmitting the first D2D communication data to other terminal devices.
  • the terminal device maps the first D2D communication data to a D2D shared transport channel, and transmits the data through the D2D shared transport channel.
  • the terminal device When the terminal device establishes the D2D service logical channel and the D2D in the manner shown in FIG. 3-1 in step S201. And discovering the mapping relationship between the Discovery transmission channel SL-DCH and determining that the number of bits of the first D2D communication data is greater than the first preset threshold, and processing the first D2D communication data to the first D2D communication data through the PDCP layer and the RLC layer to After the MAC layer, according to the D2D service logical channel and D2D in the MAC layer Sharing the mapping relationship of the transport channels, mapping the first D2D communication data to the D2D shared transport channel, and delivering the first D2D communication data from the MAC layer to the physical layer through the D2D shared transport channel.
  • the first preset threshold is less than or equal to D2D The maximum number of bits carried by the Discovery transport channel.
  • the first D2D communication data is delivered to the physical layer, the first D2D communication data is transmitted through the transmission resource corresponding to the D2D communication data, thereby transmitting the first D2D communication data to other terminal devices.
  • the terminal device divides the first D2D communication data into at least a second D2D at the radio link control protocol layer. Communication data and third D2D communication data; wherein the first preset threshold is equal to the D2D The maximum number of bits carried by the Discovery transport channel, the number of bits of the second D2D communication data is less than or equal to the first preset threshold, and the number of bits of the third D2D communication data is greater than the number of bits of the second D2D communication data .
  • the terminal device When the terminal device establishes the D2D service logical channel and the D2D in the manner shown in FIG. 3-2 in step S201.
  • the discovery device transmits the mapping relationship of the channel SL-DCH, and determines that the number of bits of the first D2D communication data is greater than the first preset threshold, the terminal device processes the first D2D communication data through the PDCP layer, and processes the first D2D communication data from the first D2D communication data.
  • the PDCP layer is submitted to the RLC layer. Thereafter, the terminal device divides the first D2D communication data into at least the second D2D communication data and the third D2D communication data at the RLC layer.
  • the number of bits of the second D2D communication data is less than or equal to a first preset threshold, and the number of bits of the third D2D communication data is greater than the number of bits of the second D2D communication data.
  • the terminal device determines whether the number of bits of the third D2D communication data is greater than a second preset threshold; wherein the second preset threshold is a maximum number of bits carried by the D2D shared transport channel.
  • the terminal device After the terminal device divides the first D2D communication data into the second D2D communication data and the third D2D communication data at the RLC layer, it is further determined whether the third D2D communication data is greater than a second preset threshold.
  • the second preset threshold is the maximum number of bits carried by the D2D shared transport channel.
  • step S207 When the number of bits of the third D2D communication data is greater than the second preset threshold, step S207 is performed; when the third D2D communication data is less than or equal to the second preset threshold, step S208 is performed.
  • the terminal device segments the third D2D communication data at the radio link control protocol layer, where the divided The number of bits of each D2D communication data is less than or equal to the second preset threshold, the second D2D communication data includes scheduling information of the third D2D communication data, and the scheduling information is used to indicate the third D2D Information on time-frequency resources used by communication data.
  • the fourth D2D communication data is split again at the RLC layer.
  • the number of bits of each D2D communication data after the division is less than or equal to the second threshold, so that the D2D shared transmission channel can carry the divided D2D communication data.
  • the second D2D communication data includes scheduling information of the third D2D communication data, and the scheduling information is used to indicate information of a time-frequency resource used by the third D2D communication data.
  • the second D2D communication data does not include the scheduling information of the third D2D communication data.
  • S208 Mapping the second D2D communication data to the D2D at the medium access control protocol layer a Discovery transport channel; and mapping the third D2D communication data to the D2D shared transport channel at the medium access control protocol layer.
  • the first D2D communication data is divided into the second D2D communication data and the third D2D communication data, and the second D2D communication data does not include the scheduling information of the third D2D communication data.
  • the terminal device delivers the second D2D communication data and the third D2D communication data from the RLC layer to the MAC layer, according to the D2D service logical channel and the D2D in the MAC layer Mapping of Discovery transport channels, mapping second D2D communication data to D2D at the MAC layer a Discovery transport channel; and mapping the third D2D communication data to the D2D shared transport channel according to a mapping relationship between the D2D service logical channel and the D2D shared transport channel in the MAC layer.
  • the Discovery transport channel delivers the second D2D communication data from the MAC layer to the physical layer.
  • the source address is used to identify the MAC address of the terminal device that sends the second D2D communication data
  • the destination address is used to identify the MAC address of the terminal device that receives the second D2D communication data.
  • the terminal device may further add a dedicated logical channel identifier in the MAC data packet header of the second D2D communication data, where the dedicated logical channel identifier is used to identify the D2D.
  • the D2D communication data transmitted by the Discovery transport channel which may be one byte.
  • the dedicated logical channel identifier facilitates the terminal device to distinguish D2D communication data by using D2D. Whether the Discovery transport channel is transmitted or transmitted through the D2D shared transport channel.
  • the transmission resource corresponding to Discovery transmits the second D2D communication data, thereby transmitting the second D2D communication data to other terminal devices.
  • the terminal device After the terminal device maps the third D2D communication data to the D2D shared transport channel, the terminal device adds a source address and a destination address to the third D2D communication data at the MAC layer, and sends the third D2D communication data from the MAC layer through the D2D shared transport channel. Submitted to the physical layer.
  • the source address is used to identify the MAC address of the terminal device that sends the third D2D communication data
  • the destination address is used to identify the MAC address of the terminal device that receives the third D2D communication data.
  • the third D2D communication data is delivered to the physical layer, the third D2D communication data is transmitted through the transmission resource corresponding to the D2D communication data, thereby transmitting the third D2D communication data to the other terminal device. It can be understood that the second D2D communication data and the third D2D communication data can be simultaneously transmitted at this time.
  • the terminal device When the third D2D communication data is greater than the second preset threshold, after the terminal device performs step S207, the first D2D communication data is divided into the second D2D communication data and the third D2D communication data, and the third D2D communication data is again Divided into at least two pieces of D2D communication data, the second D2D communication data includes scheduling information of the third D2D communication data.
  • the terminal device delivers the second D2D communication data and the third D2D communication data from the RLC layer to the MAC layer, according to the D2D service logical channel and the D2D in the MAC layer
  • the mapping relationship of the shared transport channel is mapped to each D2D communication data included in the third D2D communication data to the D2D shared transport channel.
  • the terminal device After mapping the third D2D communication data to the D2D shared transport channel, the terminal device adds the source address and the destination address to the second D2D communication data at the MAC layer, and passes the D2D.
  • the Discovery transport channel delivers the second D2D communication data from the MAC layer to the physical layer.
  • the source address is used to identify the MAC address of the terminal device that sends the second D2D communication data
  • the destination address is used to identify the MAC address of the terminal device that receives the second D2D communication data.
  • the terminal device may further add a dedicated logical channel identifier in the MAC data packet header of the second D2D communication data, where the dedicated logical channel identifier is used to identify the D2D.
  • the D2D communication data transmitted by the Discovery transport channel which may be one byte.
  • the dedicated logical channel identifier facilitates the terminal device to distinguish D2D communication data by using D2D. Whether the Discovery transport channel is transmitted or transmitted through the D2D shared transport channel.
  • the terminal device After mapping the D2D communication data included in the third D2D communication data to the D2D shared transmission channel, the terminal device adds a source address and a destination address to each D2D communication data included in the third D2D communication data at the MAC layer, and passes the D2D.
  • the shared transport channel delivers the third D2D communication data from the MAC layer to the physical layer.
  • the source address is used to respectively identify a MAC address of a terminal device that sends each D2D communication data included in the third D2D communication data
  • the destination address is used to identify a terminal device that receives each D2D communication data included in the third D2D communication data.
  • FIG. 5 is a schematic diagram of an embodiment of the present application for transmitting a Discovery message and D2D communication data by using different physical resources.
  • the transmission resource corresponding to Discovery transmits the second D2D communication data, thereby transmitting the second D2D communication data to other terminal devices.
  • the second D2D communication data includes scheduling information of the third D2D communication data, the scheduling information being used to indicate information of a time-frequency resource used by the third D2D communication data.
  • the terminal device After the third D2D communication data is delivered to the physical layer, the terminal device further acquires, according to the scheduling information of the third D2D communication data included in the second D2D communication data, the transmission resource corresponding to each D2D communication data in the third D2D communication data, and Each D2D communication data included in the third D2D communication data is separately transmitted through the transmission resource corresponding to each D2D communication data, thereby transmitting the third D2D communication data to other terminal devices.
  • first D2D communication data in the second D2D communication data and the third D2D communication data may be simultaneously transmitted.
  • Each D2D communication data included in the third D2D communication data is sequentially transmitted separately.
  • the terminal device directly establishes a D2D service logical channel and D2D at the MAC layer.
  • the mapping relationship of the Discovery transmission channel when determining that the first D2D communication data is less than or equal to the first preset threshold, mapping the first D2D communication data to the D2D Discovery transmission channel, and passing the D2D
  • the Discovery transmission channel transmits the first D2D communication data, and transmits the D2D communication data through the D2D Discovery transmission resource, which solves the problem that the prior art cannot pass the D2D.
  • the technical problem that the Discovery transmission channel carries D2D communication data can improve the transmission efficiency of the data channel and improve the overall resource utilization of the LTE network.
  • the first D2D communication data is greater than the first preset threshold, the first D2D communication data is mapped to the D2D shared transmission channel, and the first D2D communication data is transmitted through the D2D shared transmission channel.
  • the first D2D communication when the first D2D communication data is greater than the first preset threshold, the first D2D communication may be further divided into the second D2D communication data and the third D2D communication data by using the D2D
  • the Discovery transmission channel transmits the second D2D communication data, and transmits the first D2D communication data through the D2D shared transmission channel; when the third D2D communication data is greater than the second preset threshold, the third D2D communication data may also be scheduled by using the second D2D communication data. Transfer.
  • FIG. 6 is a flowchart of still another embodiment of the data transmission method of the present application.
  • the execution entity of this embodiment is a terminal device, and the terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data.
  • UE User Equipment
  • This embodiment establishes a D2D service logical channel and D2D with the previous embodiment.
  • the method of discovering the mapping relationship of the Discovery channel is different.
  • steps S301, S303 ⁇ S306, S308, and the method of adding the source address and the destination address are different in the previous embodiment.
  • the terminal device maps the first D2D communication data to the D2D
  • the source address, the destination address, and the dedicated logical channel identifier are added at the MAC layer.
  • the source address, the destination address, and the dedicated logic are added at the RLC layer before mapping the first D2D communication data.
  • Channel identification is used to identify the first D2D communication data.
  • the terminal device sets a mapping interface between the radio link control protocol layer and the ProSe protocol stack, and establishes a D2D service logical channel and D2D.
  • the mapping relationship of the Discovery transport channel is not limited to the Wi-Fi protocol layer.
  • FIG. 7 is a D2D service logical channel and D2D established in the present application.
  • the terminal device sets a mapping interface between the radio link control protocol layer and the ProSe protocol stack, and establishes a D2D service logical channel and D2D.
  • the D2D service logical channel is in the RLC layer.
  • the processing is performed according to the processing flow in the prior art, and details are not described herein.
  • steps S302 to S204 or steps S302 to S303 and S305 to S308 are performed.
  • the D2D communication data includes audio data, video data, and the like.
  • the D2D communication data is generated by the application layer, and after being processed by the TCP/UDP layer and the IP layer, the D2D direct communication mode protocol stack is processed.
  • the communication device determines whether the number of bits of the first D2D communication data is less than or equal to a first preset threshold; wherein the first preset threshold is less than or equal to the D2D The maximum number of bits carried by the Discovery transport channel.
  • the step S302 is the same as the step S202 in the previous embodiment. Please refer to the related description in step S202 in the previous embodiment, and details are not described herein.
  • step S303 When the terminal device determines that the number of bits of the first D2D communication data is less than or equal to the first preset threshold, performing step S303 is performed.
  • step S304 or S305 is performed.
  • step S304 is performed, when the first preset threshold is equal to D2D.
  • step S305 is performed.
  • the terminal device determines that the number of bits of the first D2D communication data is less than or equal to the first preset threshold, the terminal device delivers the first D2D communication data from the PDCP layer processing to the RLC layer.
  • the terminal device adds a source address and a destination address to the first D2D communication data at the RLC layer.
  • the source address is used to identify the MAC address of the terminal device that sends the first D2D communication data
  • the destination address is used to identify the MAC address of the terminal device that receives the first D2D communication data.
  • the terminal device may further add a dedicated logical channel identifier in the MAC data packet header of the first D2D communication data at the RLC layer, where the dedicated logical channel identifier is used to identify the D2D.
  • the D2D communication data transmitted by the Discovery transport channel which may be one byte.
  • the dedicated logical channel identifier facilitates the terminal device to distinguish D2D communication data by using D2D. Whether the Discovery transport channel is transmitted or transmitted through the D2D shared transport channel.
  • the terminal device maps the first D2D communication data from the RLC layer to the ProSe protocol stack through a mapping interface between the RLC layer and the ProSe protocol stack.
  • the terminal device delivers the first D2D communication data from the ProSe protocol stack to the MAC layer, the terminal device according to the ProSe protocol stack and the D2D The mapping relationship of the Discovery transport channel, mapping the first D2D communication data to the D2D Discovery transport channel at the MAC layer, and passing the D2D The Discovery transport channel delivers the first D2D communication data to the physical layer.
  • the transmission resource corresponding to Discovery transmits the first D2D communication data, thereby transmitting the first D2D communication data to other terminal devices.
  • the terminal device maps the first D2D communication data to a D2D shared transport channel, and transmits the data through the D2D shared transport channel.
  • the terminal device determines D2D
  • the terminal device determines that the number of bits of the first D2D communication data is greater than the first preset threshold
  • the terminal device pairs the first D2D communication data at the RLC layer.
  • the first preset threshold is less than or equal to D2D The maximum number of bits carried by the Discovery transport channel.
  • the source address is used to identify the MAC address of the terminal device that sends the first D2D communication data
  • the destination address is used to identify the MAC address of the terminal device that receives the first D2D communication data.
  • the terminal device delivers the first D2D communication data to the MAC layer, and maps the first D2D communication data to the D2D shared transport channel according to the mapping relationship between the D2D service logical channel and the D2D shared transport channel in the MAC layer, and transmits the data through the D2D shared transmission.
  • the channel delivers the first D2D communication data from the MAC layer to the physical layer.
  • the first D2D communication data is delivered to the physical layer, the first D2D communication data is transmitted through the transmission resource corresponding to the D2D communication data, thereby transmitting the first D2D communication data to other terminal devices.
  • the terminal device divides the first D2D communication data into at least a second D2D at the radio link control protocol layer. Communication data and third D2D communication data; wherein the first preset threshold is equal to the D2D
  • the first preset threshold is equal to the D2D
  • the Discovery transmission channel cannot carry the first D2D communication data that is greater than the first preset threshold.
  • the terminal device determines that the number of bits of the first D2D communication data is greater than the first preset threshold, the terminal device passes the first D2D communication data to the PDCP layer. Processing and delivering the first D2D communication data from the PDCP layer to the RLC layer. Thereafter, the terminal device divides the first D2D communication data into at least the second D2D communication data and the third D2D communication data at the RLC layer.
  • the number of bits of the second D2D communication data is less than or equal to a first preset threshold, and the number of bits of the third D2D communication data is greater than the number of bits of the second D2D communication data.
  • the terminal device determines whether the third D2D communication data is greater than a second preset threshold; wherein the second preset threshold is a maximum number of bits carried by the D2D shared transport channel.
  • the step S306 is the same as the step S206 in the previous embodiment. For details, refer to the related description of S206 in the previous embodiment, and details are not described herein.
  • step S307 When the third D2D communication data is greater than the second preset threshold, step S307 is performed; when the third D2D communication data is less than or equal to the second preset threshold, step S308 is performed.
  • the terminal device divides the third D2D communication data in the radio link control protocol layer, where each divided D2D is divided.
  • the number of bits of the communication data is less than or equal to the second preset threshold
  • the second D2D communication data includes scheduling information of the third D2D communication data, and the scheduling information is used to indicate that the third D2D communication data is used. Information on time-frequency resources.
  • the step S307 is the same as the step S207 in the previous embodiment. For details, refer to the related description of S207 in the previous embodiment, and details are not described herein.
  • S308 Submit the second D2D communication data to the ProSe protocol stack by using the mapping interface, and map the third D2D communication data to the D2D shared transport channel at the medium access control protocol layer.
  • the first D2D communication data is divided into the second D2D communication data and the third D2D communication data, and the second D2D communication data does not include the scheduling information of the third D2D communication data.
  • the terminal device adds a source address and a destination address to the second D2D communication data and the third communication data at the RLC layer.
  • the source address is used to identify the MAC address of the terminal device that sends the third D2D communication data and the fourth communication data
  • the destination address is used to identify the MAC address of the terminal device that receives the third D2D communication data and the fourth communication data.
  • the terminal device may further add a dedicated in the MAC data packet header of the second D2D communication data at the RLC layer.
  • Logical channel identifier which is used to identify D2D
  • the D2D communication data transmitted by the Discovery transport channel which may be one byte.
  • the dedicated logical channel identifier facilitates the terminal device to distinguish the second D2D communication data by using D2D. Whether the Discovery transport channel is transmitted or transmitted through the D2D shared transport channel.
  • the terminal device maps the second D2D communication data from the RLC layer to the ProSe protocol stack through a mapping interface between the RLC layer and the ProSe protocol stack; and delivers the third D2D communication data from the RLC layer to the MAC layer.
  • the terminal device After the terminal device delivers the second D2D communication data from the ProSe protocol stack to the MAC layer, the terminal device according to the ProSe protocol stack and the D2D The mapping relationship of the Discovery transport channel, mapping the second D2D communication data to the D2D Discovery transport channel at the MAC layer, and passing the D2D
  • the Discovery transport channel delivers the second D2D communication data to the physical layer.
  • the transmission resource corresponding to Discovery transmits the second D2D communication data, thereby transmitting the second D2D communication data to other terminal devices.
  • the terminal device delivers the third D2D communication data from the RLC layer to the MAC layer, mapping the third D2D communication data to the D2D shared transport channel at the MAC layer according to the mapping relationship between the D2D service logical channel and the D2D shared transport channel in the MAC layer. And delivering the third D2D communication data to the physical layer through the D2D shared transport channel. After the third D2D communication data is delivered to the physical layer, the third D2D communication data is transmitted through the transmission resource corresponding to the D2D communication data, thereby transmitting the third D2D communication data to the other terminal device.
  • the terminal device When the third D2D communication data is greater than the second preset threshold, after the terminal device performs step S307, the first D2D communication data is divided into the second D2D communication data and the third D2D communication data, and the third D2D communication data is again Divided into at least two pieces of D2D communication data, the second D2D communication data includes scheduling information of the third D2D communication data.
  • the terminal device adds a source address and a destination address to the second D2D communication data and each of the D2D communication data included in the third communication data at the RLC layer.
  • the source address is used to identify a MAC address of the terminal device that sends the second D2D communication data and each D2D communication data included in the third communication data
  • the destination address is used to identify that the second D2D communication data is received, and the third communication data is included.
  • the MAC address of the terminal device for each D2D communication data.
  • the terminal device may further add a dedicated in the MAC data packet header of the second D2D communication data at the RLC layer.
  • Logical channel identifier which is used to identify D2D
  • the D2D communication data transmitted by the Discovery transport channel which may be one byte.
  • the dedicated logical channel identifier facilitates the terminal device to distinguish the second D2D communication data by using D2D. Whether the Discovery transport channel is transmitted or transmitted through the D2D shared transport channel.
  • the terminal device maps the second D2D communication data from the RLC layer to the ProSe protocol stack through a mapping interface between the RLC layer and the ProSe protocol stack; and submits each D2D communication data included in the third D2D communication data from the RLC layer. Go to the MAC layer.
  • the terminal device After the terminal device delivers the second D2D communication data from the ProSe protocol stack to the MAC layer, the terminal device according to the ProSe protocol stack and the D2D The mapping relationship of the Discovery transport channel, mapping the second D2D communication data to the D2D Discovery transport channel at the MAC layer, and passing the D2D The Discovery transport channel delivers the second D2D communication data to the physical layer.
  • FIG. 5 is a schematic diagram of an embodiment of the present application for transmitting a Discovery message and D2D communication data by using different physical resources.
  • the transmission resource corresponding to Discovery transmits the second D2D communication data, thereby transmitting the second D2D communication data to other terminal devices.
  • the terminal device After the terminal device submits each D2D communication data included in the third D2D communication data from the RLC layer to the MAC layer, according to the mapping relationship between the D2D service logical channel and the D2D shared transport channel in the MAC layer, the third D2D communication is performed at the MAC layer.
  • Each D2D communication data included in the data is mapped to the D2D shared transport channel, and each D2D communication data included in the third D2D communication data is delivered to the physical layer through the D2D shared transport channel.
  • the terminal device After the D2D communication data included in the third D2D communication data is delivered to the physical layer, the terminal device further acquires each D2D communication in the third D2D communication data according to the scheduling information of the third D2D communication data included in the second D2D communication data. Data corresponding to the transmission resource, and each D2D communication data included in the third D2D communication data is separately transmitted through the transmission resource corresponding to each D2D communication data, thereby transmitting the third D2D communication data to other terminal devices.
  • first D2D communication data in the second D2D communication data and the third D2D communication data may be simultaneously transmitted.
  • Each D2D communication data included in the third D2D communication data is sequentially transmitted separately.
  • the terminal device sets a mapping interface between the RLC layer and the ProSe protocol stack, and establishes a D2D service logical channel and D2D.
  • the mapping relationship of the Discovery transmission channel when determining that the first D2D communication data is less than or equal to the first preset threshold, mapping the first D2D communication data from the RLC layer to the ProSe protocol stack through a mapping interface between the RLC layer and the ProSe protocol stack,
  • the Discovery transmission channel transmits the first D2D communication data, and transmits the D2D communication data through the D2D Discovery transmission resource, which solves the problem that the prior art cannot pass the D2D.
  • the technical problem that the Discovery transmission channel carries D2D communication data can improve the transmission efficiency of the data channel and improve the overall resource utilization of the LTE network.
  • the Discovery transmission channel transmits the second D2D communication data, and when the third D2D communication data is greater than the second preset threshold, the third D2D communication data may also be scheduled for transmission by using the second D2D communication data.
  • FIG. 8 is a flowchart of still another embodiment of the data transmission method of the present application.
  • the execution entity of this embodiment is a terminal device, and the terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data.
  • the terminal device does not need to add a source address and a destination address to the D2D communication data to be transmitted.
  • the data transmission method of this embodiment includes the following steps:
  • the terminal device sets a mapping relationship between the packet data convergence protocol layer and the ProSe protocol stack.
  • FIG. 9 is a schematic diagram of establishing a D2D service logical channel and D2D in the present application.
  • the terminal device sets a mapping relationship between the PDCP layer and the ProSe protocol stack in the PDCP layer of the packet data convergence protocol, thereby establishing a D2D service logical channel and D2D.
  • the D2D service logical channel is in the PDCP layer.
  • the processing is performed according to the processing flow in the prior art, and details are not described herein.
  • the D2D communication data includes audio data, video data, and the like.
  • the D2D communication data is generated by the application layer, processed by the TCP/UDP layer and the IP layer, and then processed into a protocol stack of the D2D direct communication mode for processing.
  • the terminal device determines whether the number of bits of the first D2D communication data is less than or equal to a first preset threshold, where the first preset threshold is less than or equal to the D2D.
  • the terminal device determines, after the first D2D communication data is delivered from the IP layer to the PDCP layer (the first D2D communication data enters the protocol stack of the D2D direct communication mode), Whether the number of bits of the first D2D communication data is less than or equal to a second preset threshold.
  • the first preset threshold is less than or equal to D2D
  • the maximum number of bits carried by the Discovery transport channel The maximum number of bits may be 232 bits, but is not limited thereto, and may be set to other values, which is not limited herein.
  • step S403 is performed.
  • step S404 is performed.
  • S403 When the number of bits of the first D2D communication data is less than or equal to the first preset threshold, submit the first D2D communication data from the packet data convergence protocol layer to the ProSe protocol stack, The first D2D communication data sets a ProSe identifier, and maps the first D2D communication data to the D2D at the medium access control protocol layer a Discovery transport channel that transmits the first D2D communication data over the D2D Discovery transport channel.
  • the terminal device determines that the number of bits of the first D2D communication data is less than or equal to the first preset threshold, after the first D2D communication data arrives at the PDCP layer, the terminal device sets the first D2D according to the mapping relationship between the PDCP layer and the ProSe protocol stack.
  • the communication data is mapped to the ProSe protocol stack.
  • the terminal device delivers the first D2D communication data from the ProSe protocol stack to the MAC layer, and then the terminal device according to the ProSe protocol stack and the D2D in the MAC layer
  • the Discovery transport channel delivers the first D2D communication data from the MAC layer to the physical layer.
  • the transmission resource corresponding to Discovery transmits the first D2D communication data, thereby transmitting the first D2D communication data to other terminal devices.
  • the terminal device submits the first D2D communication data from the packet data convergence protocol layer to the media access Controlling a protocol layer, and mapping the first D2D communication data to the D2D shared transport channel at the medium access control protocol layer, and transmitting the first D2D communication data through the D2D shared transport channel.
  • the terminal device determines that the number of bits of the first D2D communication data is greater than the first preset threshold, after the first D2D communication data arrives at the PDCP layer, the terminal device performs the first D2D communication data at the PDCP layer and the RLC layer according to the prior art. After the processing method is processed, the first D2D communication data is delivered from the RLC layer to the MAC layer.
  • the terminal device maps the first D2D communication data to the D2D shared transport channel according to the mapping relationship between the D2D service logical channel and the D2D shared transport channel at the MAC layer, thereby delivering the first D2D communication data from the MAC layer to the D2D shared transport channel. Physical layer.
  • the first D2D communication data is delivered to the physical layer, the first D2D communication data is transmitted through the transmission resource corresponding to the D2D communication data, thereby transmitting the first D2D communication data to other terminal devices.
  • the terminal device sets a mapping relationship between the packet data convergence protocol layer and the ProSe protocol stack, and when determining that the number of bits of the first D2D communication data is less than or equal to a first preset threshold, the first D2D communication data is from the PDCP layer. Submit to the ProSe protocol stack to map the first D2D communication data to D2D Discovery transport channel, transmitting the first D2D communication data through the D2D Discovery transport channel, thereby passing D2D Discovery transmission resource transmits D2D communication data, which solves the problem that D2D cannot be passed in the prior art.
  • the technical problem that the Discovery transmission channel carries D2D communication data can improve the transmission efficiency of the data channel and improve the overall resource utilization of the LTE network. Otherwise, the first D2D communication data is mapped to the D2D shared transport channel.
  • FIG. 10 is a flowchart of still another embodiment of the data transmission method of the present application.
  • the execution entity of this embodiment is a terminal device, and the terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data.
  • the data transmission method of this embodiment includes the following steps:
  • S501 The terminal device receives D2D communication data sent by another terminal device other than the terminal device.
  • the terminal device receives D2D communication data transmitted by other terminal devices than the terminal device.
  • the D2D communication data includes audio data, video data, and the like.
  • the terminal device determines, according to the information of the D2D communication data, that the D2D communication data is from D2D. Discovery transport channel.
  • the terminal device determines whether the D2D communication data is from the D2D according to the received information of the D2D communication data.
  • Discovery transport channel The information of the D2D communication data may be the number of bits of the D2D communication data, the dedicated logical channel identifier, the source address and the destination address, the ProSe identifier, etc., and is not limited thereto, and is not limited herein.
  • the D2D communication data mentioned in this embodiment includes a data packet header and a data packet, and information such as a dedicated logical channel identifier, a source address, a destination address, and a ProSe identifier is included in a data packet header of the D2D communication data, and the terminal The device finally recognizes the data at the application layer except for the packet header.
  • the information of the D2D communication data may include the number of bits of the D2D communication data and/or the dedicated logical channel identifier, and the dedicated logical channel identifier is used to identify the D2D communication data from the D2D.
  • Discovery transport channel When the terminal device determines, according to the information of the D2D communication data, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, or the D2D communication data includes a dedicated logical channel identifier, the D2D communication data is from the D2D. Discovery transport channel.
  • the information of the D2D communication data may include a bit number of the D2D communication data, a dedicated logical channel identifier, and scheduling information, where the scheduling information is used to indicate a time-frequency resource used by the second D2D communication data, and the D2D communication data and the second D2D communication data. It is obtained by dividing the same D2D communication packet.
  • the terminal device determines, according to the information of the D2D communication data, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes a dedicated logical channel identifier and scheduling information, the D2D communication data is from the D2D. Discovery transport channel.
  • the information of the D2D communication data may include the number of bits of the D2D communication data, the dedicated logical channel identifier, the source address and the destination address, and/or scheduling information
  • the source address is used to identify the address of the terminal device that transmits the D2D communication data
  • the purpose is used to identify the address of the terminal device that receives the D2D communication data.
  • the scheduling information is used to indicate a time-frequency resource used by the second D2D communication data, and the D2D communication data and the second D2D communication data are segmented by the same D2D communication data packet.
  • the terminal device obtains the data packet header of the radio link control protocol layer from the information of the D2D communication data, includes a source address and a destination address, and determines that the number of bits of the D2D communication data is less than or equal to a first preset threshold or the D2D communication data includes dedicated logic.
  • the D2D communication data comes from D2D. Discovery transport channel.
  • the information of the D2D communication data may include the number of bits of the D2D communication data and the ProSe identifier, and the ProSe identifier is used to identify the D2D communication data from the data packet convergence protocol layer and pass the D2D.
  • Discovery transport channel transmission When the terminal device determines, according to the information of the D2D communication data, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes the ProSe identifier, the D2D communication data is from the D2D. Discovery transport channel.
  • step S503 is performed.
  • the D2D communication data comes from the D2D shared transport channel
  • the D2D communication data is mapped to the D2D shared transport channel for processing according to the prior art method. Since the D2D communication data is generated at the application layer by other terminal devices than the terminal device, after the terminal device delivers the D2D communication data to the application layer, the D2D communication data is recognized at the application layer, and the function corresponding to the D2D communication data is implemented.
  • the terminal device is configured according to the information of the D2D communication data, and the D2D service logical channel and the D2D acquired by the terminal device.
  • a mapping relationship of the Discovery transport channel, mapping the D2D communication data to the D2D Discovery transmits a channel and identifies the D2D communication data to implement a function corresponding to the D2D communication data.
  • the terminal device according to the information of the D2D communication data and the D2D service logical channel and the D2D acquired by the terminal device
  • the mapping relationship of the Discovery transport channel maps the D2D communication data to the D2D Discovery transport channel.
  • the mapping relationship of the Discovery transport channel may be broadcasted by the serving base station; or may be a mapping relationship that is acquired by the terminal device and matched with the information of the D2D communication data.
  • the D2D service logical channel acquired by the terminal device and the D2D Figure 3-1 shows the mapping relationship of the Discovery transport channel.
  • the terminal device according to the information of the D2D communication data and the D2D service logical channel and D2D acquired by the terminal device Mapping the Discovery transport channel, mapping the D2D communication data to the D2D Discovery transport channel includes:
  • the terminal device determines, according to the information of the D2D communication data, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, or the D2D communication data includes a dedicated logical channel identifier, the terminal device passes the D2D communication data through the D2D.
  • the Discovery transport channel is delivered to the medium access control protocol layer, and the D2D communication data is mapped to the D2D service logical channel at the medium access control protocol layer according to the acquired mapping relationship.
  • the first preset threshold is less than or equal to D2D
  • the maximum number of bits carried by the Discovery transport channel; the obtained mapping relationship is the D2D service logical channel and D2D established at the medium access control protocol layer.
  • the mapping relationship of the Discovery transport channel is the mapping relationship of the Discovery transport channel.
  • the D2D service logical channel acquired by the terminal device and the D2D Figure 3-2 shows the mapping relationship of the Discovery transport channel.
  • the terminal device determines, according to the information of the D2D communication data, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes the dedicated logical channel identifier, the terminal device acquires the second D2D communication data according to the scheduling information.
  • the terminal device After acquiring the second D2D communication data, the terminal device passes the D2D communication data through the D2D.
  • the Discovery transport channel is delivered to the medium access control protocol layer
  • the second D2D communication data is delivered to the medium access control protocol layer through the D2D shared transport channel, and the D2D communication data and the first in the medium access control protocol layer according to the mapping relationship
  • the two D2D communication data is mapped to the D2D service logical channel.
  • the terminal device delivers the D2D communication data and the second D2D communication data from the MAC layer to the radio link control protocol layer, the D2D communication data and the second D2D communication data packet are restored at the radio link control protocol layer to obtain the D2D before the segmentation. Communication packet.
  • the information of the D2D communication data includes the number of bits of the D2D communication data, the dedicated logical channel identifier, the source address and the destination address, and/or the scheduling information, the D2D service logical channel acquired by the terminal device and the D2D
  • FIG. 7 A schematic diagram of the mapping relationship of the Discovery transport channel is shown in FIG. 7.
  • the terminal device When the terminal device obtains the data packet header of the radio link control protocol layer from the information of the D2D communication data, includes a source address and a destination address, and determines that the number of bits of the D2D communication data is less than or equal to a first preset threshold or the D2D communication data includes dedicated logic. When the channel is identified, the terminal device passes the D2D communication data through D2D.
  • the Discovery transport channel is delivered to the medium access control protocol layer, and the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer.
  • the terminal device delivers the D2D communication data to the radio link control protocol layer through a mapping interface between the radio link control protocol layer and the ProSe protocol stack.
  • the terminal device acquires the second D2D communication data according to the scheduling information when the terminal device further acquires the scheduling information from the information of the D2D communication data. After acquiring the second D2D communication data, the terminal device passes the D2D communication data through the D2D.
  • the Discovery transport channel is delivered to the medium access control protocol layer, and the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer, and then the terminal device controls the mapping interface between the protocol layer and the ProSe protocol stack through the radio link.
  • the D2D communication data is delivered to the radio link control protocol layer.
  • the terminal device delivers the second D2D communication data to the medium access control protocol layer through the D2D shared transmission channel, and maps the D2D communication data and the second D2D communication data to the D2D service logical channel at the medium access control protocol layer according to the mapping relationship,
  • the second D2D communication data is delivered to the radio link control protocol layer through the D2D service logical channel.
  • the terminal device delivers the D2D communication data and the second D2D communication data from the MAC layer to the radio link control protocol layer, the D2D communication data and the second D2D communication data packet are restored at the radio link control protocol layer to obtain the D2D before the segmentation. Communication packet.
  • the information of the D2D communication data may include the number of bits of the D2D communication data and the ProSe identifier
  • the D2D service logical channel acquired by the terminal device and the D2D
  • FIG. 1 A schematic diagram of the mapping relationship of the Discovery transport channel is shown in FIG.
  • the terminal device according to the information of the D2D communication data and the D2D service logical channel and D2D acquired by the terminal device Mapping the Discovery transport channel, mapping the D2D communication data to the D2D Discovery transport channel includes:
  • the terminal device determines, according to the information of the D2D communication data, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes the ProSe identifier, the terminal device passes the D2D communication data through the D2D.
  • the Discovery transport channel is delivered to the medium access control protocol layer, and the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer. Then, the terminal device maps the D2D communication data to the packet data convergence protocol layer according to the mapping relationship between the ProSe protocol stack and the packet data convergence protocol layer.
  • the terminal device After the terminal device delivers the D2D communication data D2D communication data to the application layer, the D2D communication data is identified, and the function corresponding to the D2D communication data is implemented.
  • the D2D communication data recognized by the terminal device is data other than the packet header.
  • the terminal device receives the D2D communication data sent by the terminal device other than the terminal device, and determines the D2D communication data from the D2D according to the information of the D2D communication data.
  • Discovery transport channel based on information of D2D communication data and D2D service logical channel and D2D acquired by the terminal device
  • the mapping relationship of the Discovery transport channel maps the D2D communication data to the D2D Discovery transport channel, thereby identifying the D2D communication data to implement the function corresponding to the D2D communication data.
  • FIG. 11 is a schematic structural diagram of an embodiment of a data transmission apparatus of the present application.
  • the data transmission device of this embodiment may be a terminal device.
  • the terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone.
  • UE User Equipment
  • Two UEs can communicate directly to transmit data.
  • the modules included in the data transmission apparatus of this embodiment are used to perform the steps in the embodiments corresponding to FIG. 1 and FIG. 1. For details, refer to the related descriptions of the steps in the embodiment corresponding to FIG. 1 and FIG. Do not repeat them.
  • the data transmission apparatus of this embodiment includes a setup module 110, a determination module 120, a mapping module 130, and a transmission module 140.
  • the establishing module 110 is configured to establish a D2D service logical channel and D2D The mapping relationship of the Discovery transport channel. For example, the setup module 110 establishes a D2D service logical channel and D2D. The mapping relationship of the Discovery transport channel. The establishing module 110 establishes a D2D service logical channel and D2D After the mapping of the Discovery transport channel, the notification information is sent to the determining module 120.
  • the determining module 120 is configured to receive the notification information sent by the establishing module 110, and determine whether the number of bits of the first D2D communication data reaches a threshold value, wherein the first D2D communication data is D2D communication data to be transmitted. For example, the determining module 120 receives the notification information sent by the establishing module 110, and determines whether the number of bits of the first D2D communication data reaches a threshold value, wherein the first D2D communication data is D2D communication data to be transmitted. The determination module 120 sends the determination result to the mapping module 130.
  • the mapping module 130 is configured to receive the determination result sent by the determining module 120.
  • the determining module 120 determines that the first D2D communication data does not reach the threshold, the first D2D communication data is mapped to the D2D according to the mapping relationship established by the establishing module 110. Discovery transport channel.
  • the mapping module 130 receives the determination result sent by the determining module 120.
  • the determining module 120 determines that the first D2D communication data does not reach the threshold
  • the first D2D communication data is mapped to the D2D according to the mapping relationship established by the establishing module 110.
  • Discovery transport channel The mapping module 130 transmits the notification information to the transmission module 140 after mapping the first D2D communication data to the D2D Discovery transmission channel.
  • the transmission module 140 is configured to receive the notification information sent by the mapping module 130, by using D2D.
  • the Discovery transport channel transmits the first D2D communication data.
  • the terminal device establishes a D2D service logical channel and D2D a mapping relationship of the Discovery transmission channel, when determining that the first D2D communication data does not reach the threshold, mapping the first D2D communication data to the D2D Discovery transmission channel, and passing the D2D
  • the Discovery transmission channel transmits the first D2D communication data, which solves the problem that the prior art cannot pass the D2D.
  • the technical problem that the Discovery transmission channel carries D2D communication data can improve the transmission efficiency of the data channel and improve the overall resource utilization of the LTE network.
  • FIG. 12 is a schematic structural diagram of another embodiment of a data transmission apparatus according to the present application.
  • the data transmission device of this embodiment may be a terminal device.
  • the terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone.
  • UE User Equipment
  • Two UEs can communicate directly to transmit data.
  • the modules included in the data transmission device of this embodiment are used to distribute the steps in the respective embodiments corresponding to FIG. 2, FIG. 6, and FIG. 8. For details, refer to FIG. 2, FIG. 6, FIG. The related description of each step in the embodiment is not described here.
  • the data transmission device of this embodiment includes an establishing module 210, a determining module 220, a dividing module 230, an information setting module 240, a mapping module 250, and a transmission module 260.
  • the establishing module 210 is configured to establish a D2D service logical channel and D2D directly at the medium access control protocol layer.
  • Discovery transmission channel mapping relationship or set mapping interface between the radio link control protocol layer and the ProSe protocol stack to establish D2D service logical channel and D2D The mapping relationship of the Discovery transport channel.
  • the establishing module 210 directly establishes a D2D service logical channel and D2D at the medium access control protocol layer.
  • Discovery transmission channel mapping relationship or set mapping interface between the radio link control protocol layer and the ProSe protocol stack to establish D2D service logical channel and D2D The mapping relationship of the Discovery transport channel.
  • the establishing module 210 is configured to set a mapping relationship between the packet data convergence protocol layer and the ProSe protocol stack. For example, the establishing module 210 sets a mapping relationship between the packet data convergence protocol layer and the ProSe protocol stack.
  • the establishing module 210 establishes a D2D service logical channel and D2D After the mapping relationship of the Discovery transport channel, the notification information is sent to the determining module.
  • the determining module 220 is configured to receive the notification information sent by the establishing module 210, and determine whether the number of bits of the first D2D communication data is less than or equal to a first preset threshold. The determining module 220 passes the determination result to the segmentation module 230, the information setting module 240, and the mapping module 250.
  • the partitioning module 230 is configured to receive the determination result sent by the determining module 220.
  • the determining module 220 determines that the number of bits of the first D2D communication data is greater than the first preset threshold, the determining module 220 is in the radio link control protocol layer.
  • the first preset threshold is equal to D2D
  • the first preset threshold is equal to D2D
  • the maximum number of bits carried by the Discovery transport channel the number of bits of the second D2D communication data is less than or equal to a first preset threshold
  • the number of bits of the third D2D communication data is greater than the number of bits of the second D2D communication data.
  • the segmentation module 230 receives the determination result sent by the determining module 220.
  • the determining module 220 determines that the number of bits of the first D2D communication data is greater than the first preset threshold
  • the first D2D communication data is segmented at least in the radio link control protocol layer.
  • the first preset threshold is equal to D2D
  • the maximum number of bits carried by the Discovery transport channel, the number of bits of the second D2D communication data is less than or equal to a first preset threshold, and the number of bits of the third D2D communication data is greater than the number of bits of the second D2D communication data.
  • the segmentation module 230 is further configured to determine whether the number of bits of the third D2D communication data obtained by the segmentation is greater than a second preset threshold; wherein, the second preset threshold is a maximum number of bits carried by the D2D shared transport channel; and When the number of bits of the D2D communication data is greater than the second preset threshold, the third D2D communication data is divided at the radio link control protocol layer, wherein the number of bits of each of the divided D2D communication data is less than or equal to the second preset.
  • the threshold, the second D2D communication data includes scheduling information of the third D2D communication data, and the scheduling information is used to indicate information of a time-frequency resource used by the third D2D communication data.
  • the segmentation module 230 determines whether the number of bits of the third D2D communication data obtained by the segmentation is greater than a second preset threshold;
  • the second preset threshold is the maximum number of bits carried by the D2D shared transport channel.
  • the third D2D communication data is divided at the radio link control protocol layer, wherein the number of bits of each of the divided D2D communication data is less than or equal to the first
  • the second D2D communication data includes scheduling information of the third D2D communication data, and the scheduling information is used to indicate information of the time-frequency resource used by the third D2D communication data.
  • the segmentation module 230 transmits the notification information to the information setting module 240 after completing the segmentation of the first D2D communication data.
  • the information setting module 240 is configured to receive the determination result sent by the determining module 220, and the notification information sent by the segmentation module 230.
  • the determining module 220 determines that the number of bits of the first D2D communication data is less than or equal to a first preset threshold, or receives the segmentation module.
  • the notification information is sent by 230, the source address and the destination address are added to the first D2D communication data at the medium access control protocol layer, and a dedicated logical channel identifier is added, where the source address is used to identify the terminal device that sends the first D2D communication data. Address, the destination address is used to identify the address of the terminal device receiving the first D2D communication data, and the dedicated logical channel identifier is used to identify the D2D Discovery transmits D2D communication data for the channel.
  • the determination result sent by the receiving determination module 220 and the notification information sent by the segmentation module 230 are determined by the determining module 220 to determine that the number of bits of the first D2D communication data is less than or equal to the first preset threshold, or the notification sent by the segmentation module 230 is received.
  • the source address and the destination address are added to the first D2D communication data at the medium access control protocol layer, and the dedicated logical channel identifier is added, wherein the source address is used to identify the address of the terminal device that sends the first D2D communication data, and the purpose is The address is used to identify the address of the terminal device that receives the first D2D communication data, and the dedicated logical channel identifier is used to identify the D2D Discovery transmits D2D communication data for the channel.
  • the information setting module 240 sends the notification information to the mapping module after completing the addition of the source address and the destination address.
  • the mapping module 250 is configured to receive the notification information sent by the information setting module 240, and map the first D2D communication data to the D2D at the medium access control protocol layer when the number of bits of the first D2D communication data is less than or equal to the first preset threshold.
  • Discovery transport channel or submit the first D2D communication data to the ProSe protocol stack through the mapping interface to map the first D2D communication data to the D2D at the medium access control protocol layer a discovery channel; and configured to map the first D2D communication data to the D2D shared transmission channel when the number of bits of the first D2D communication data is greater than a first preset threshold; wherein the first preset threshold is less than or equal to D2D The maximum number of bits carried by the Discovery transport channel.
  • the mapping module 250 receives the notification information sent by the information setting module 240, and maps the first D2D communication data to the D2D at the medium access control protocol layer when the number of bits of the first D2D communication data is less than or equal to the first preset threshold.
  • Discovery transport channel or submit the first D2D communication data to the ProSe protocol stack through the mapping interface to map the first D2D communication data to the D2D at the medium access control protocol layer Discovery transport channel.
  • the first preset threshold is less than or equal to D2D The maximum number of bits carried by the Discovery transport channel.
  • the mapping module 250 is configured to receive the determination result sent by the determining module 220, where the determining module 220 determines the number of bits of the first D2D communication data.
  • the first D2D communication data is delivered from the packet data convergence protocol layer to the ProSe protocol stack, the ProSe identifier is set to the first D2D communication data, and the first D2D communication is set at the medium access control protocol layer.
  • Data mapping to D2D a discovery channel when the determining module 220 determines that the number of bits of the first D2D communication data is greater than the first preset threshold, the first D2D communication data is delivered from the packet data convergence protocol layer to the medium access control protocol layer, and is connected in the medium The incoming control protocol layer maps the first D2D communication data to the D2D shared transport channel.
  • the first preset threshold is less than or equal to D2D The maximum number of bits carried by the Discovery transport channel.
  • the mapping module 250 receives the determination result sent by the determining module 220.
  • the determining module 220 determines that the number of bits of the first D2D communication data is less than or equal to the first preset threshold
  • the first D2D communication data is delivered from the packet data convergence protocol layer to the
  • the ProSe protocol stack sets a ProSe identifier for the first D2D communication data, and maps the first D2D communication data to the D2D at the medium access control protocol layer a discovery channel: when the determining module 220 determines that the number of bits of the first D2D communication data is greater than the first preset threshold, the first D2D communication data is delivered from the packet data convergence protocol layer to the medium access control protocol layer, and is connected in the medium
  • the incoming control protocol layer maps the first D2D communication data to the D2D shared transport channel.
  • the first preset threshold is less than or equal to D2D The maximum number of bits carried by the Discovery transport channel.
  • mapping module 250 After the mapping module 250 completes the first D2D communication data mapping, the mapping module 250 transmits the notification information to the transmission module 260.
  • the transmission module 260 is configured to receive the notification information sent by the mapping module 250, by using D2D.
  • the Discovery transport channel transmits the first D2D communication data or transmits the first D2D communication data through a D2D shared transport channel.
  • the transmission module 260 receives the notification information sent by the mapping module 250, and passes the D2D.
  • the Discovery transport channel transmits the first D2D communication data or transmits the first D2D communication data through the D2D shared transport channel.
  • the terminal device establishes a D2D service logical channel and D2D
  • the mapping relationship of the Discovery transmission channel when determining that the first D2D communication data is less than or equal to the first preset threshold, mapping the first D2D communication data to the D2D Discovery transmission channel, and passing the D2D
  • the Discovery transmission channel transmits the first D2D communication data, and transmits the D2D communication data through the D2D Discovery transmission resource, which solves the problem that the prior art cannot pass the D2D.
  • the technical problem that the Discovery transmission channel carries D2D communication data can improve the transmission efficiency of the data channel and improve the overall resource utilization of the LTE network.
  • the first D2D communication data is greater than the first preset threshold, the first D2D communication data is mapped to the D2D shared transmission channel, and the first D2D communication data is transmitted through the D2D shared transmission channel.
  • the first D2D communication when the first D2D communication data is greater than the first preset threshold, the first D2D communication may be further divided into the second D2D communication data and the third D2D communication data by using the D2D
  • the Discovery transmission channel transmits the second D2D communication data, and transmits the first D2D communication data through the D2D shared transmission channel; when the third D2D communication data is greater than the second preset threshold, the third D2D communication data may also be scheduled by using the second D2D communication data. Transfer.
  • FIG. 13 is a schematic structural diagram of still another embodiment of the data transmission apparatus of the present application.
  • the data transmission device of this embodiment may be a terminal device.
  • the terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone.
  • UE User Equipment
  • Two UEs can communicate directly to transmit data.
  • the modules included in the data transmission device of this embodiment are used to perform the steps in the embodiments corresponding to FIG. 10 and FIG. 10 .
  • the data transmission apparatus of this embodiment includes a receiving module 310, a determining module 320, and a mapping module 330.
  • the receiving module 310 is configured to receive D2D communication data sent by other terminal devices. For example, the receiving module 310 receives D2D communication data sent by other terminal devices. The receiving module 310 transmits the D2D communication data to the determining module 320.
  • the determining module 320 is configured to receive the D2D communication data sent by the receiving module 310, and determine that the D2D communication data is from the D2D according to the information of the D2D communication data received by the receiving module 310.
  • Discovery transport channel For example, the determining module 320 receives the D2D communication data sent by the receiving module 310, and determines that the D2D communication data is from the D2D according to the information of the D2D communication data received by the receiving module 310.
  • Discovery transport channel The determination module 320 transmits the determination result to the mapping module 330.
  • the mapping module 330 is configured to receive the determination result sent by the determining module 320, when the determining module 320 determines that the D2D communication data is from the D2D.
  • the D2D communication data is mapped to the D2D according to the information of the D2D communication data and the mapping relationship between the acquired D2D service logical channel and the D2D Discovery transport channel.
  • the Discovery transport channel recognizes the D2D communication data and implements the function corresponding to the D2D communication data after the D2D communication data is delivered to the application layer.
  • the terminal device receives the D2D communication data sent by the terminal device other than the terminal device, and determines the D2D communication data from the D2D according to the information of the D2D communication data.
  • Discovery transport channel based on information of D2D communication data and D2D service logical channel and D2D acquired by the terminal device
  • the mapping relationship of the Discovery transport channel maps the D2D communication data to the D2D Discovery transport channel, thereby identifying the D2D communication data to implement the function corresponding to the D2D communication data.
  • FIG. 14 is a schematic structural diagram of still another embodiment of the data transmission apparatus of the present application.
  • the data transmission device of this embodiment may be a terminal device.
  • the terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone.
  • UE User Equipment
  • Two UEs can communicate directly to transmit data.
  • the modules included in the data transmission device of this embodiment are used to perform the steps in the embodiments corresponding to FIG. 10 and FIG. 10 .
  • the data transmission apparatus of this embodiment includes a receiving module 410, a determining module 420, a mapping module 430, and a restoration module 440.
  • the receiving module 410 is configured to receive D2D communication data sent by other terminal devices.
  • the information of the D2D communication data received by the receiving module 410 includes the number of bits of the D2D communication data and/or a dedicated logical channel identifier, and the dedicated logical channel identifier is used to identify the D2D communication data from the D2D. Discovery transport channel.
  • the information of the D2D communication data received by the receiving module 410 further includes a source address and a destination address. The source address is used to identify an address of the terminal device that transmits the D2D communication data, and the destination address is used to identify the address of the terminal device that receives the D2D communication data.
  • the information of the D2D communication data received by the receiving module 410 includes the number of bits of the D2D communication data and the ProSe identifier, and the ProSe identifier is used to identify that the D2D communication data is from the data packet convergence protocol layer.
  • the receiving module 410 receives D2D communication data sent by other terminal devices.
  • the information of the D2D communication data received by the receiving module 410 includes the number of bits of the D2D communication data and/or a dedicated logical channel identifier, and the dedicated logical channel identifier is used to identify the D2D communication data from the D2D.
  • Discovery transport channel The information of the D2D communication data received by the receiving module 410 includes the number of bits of the D2D communication data, the source address, the destination address, and/or the dedicated logical channel identifier.
  • the source address is used to identify the address of the terminal device that transmits the D2D communication data
  • the destination address is used to identify the address of the terminal device that receives the D2D communication data.
  • the information of the D2D communication data received by the receiving module 410 includes the number of bits of the D2D communication data and the ProSe identifier, and the ProSe identifier is used to identify that the D2D communication data is from the data packet convergence protocol layer.
  • the receiving module 410 transmits the D2D communication data to the determining module 420.
  • the determining module 420 is configured to receive the D2D communication data sent by the receiving module 410, and determine that the D2D communication data is from the D2D according to the information of the D2D communication data received by the receiving module 410.
  • Discovery transport channel For example, the determining module 420 receives the D2D communication data sent by the receiving module 410, and determines that the D2D communication data is from the D2D according to the information of the D2D communication data received by the receiving module 410.
  • Discovery transport channel For example, the determining module 420 receives the D2D communication data sent by the receiving module 410, and determines that the D2D communication data is from the D2D according to the information of the D2D communication data received by the receiving module 410.
  • the determining module 420 is configured to: when determining, according to the information of the D2D communication data received by the receiving module 410, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, or the D2D communication data includes a dedicated logical channel identifier, confirming that the D2D communication data is from D2D Discovery transport channel; wherein the first preset threshold is less than or equal to D2D The maximum number of bits carried by the Discovery transport channel.
  • the determining module 420 determines, according to the information of the D2D communication data received by the receiving module 410, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, or the D2D communication data includes a dedicated logical channel identifier, confirm that the D2D communication data is from the D2D.
  • the Discovery transport channel wherein the first preset threshold is less than or equal to the maximum number of bits carried by the D2D Discovery transport channel.
  • the determining module 420 is configured to: when determining, according to the information of the D2D communication data received by the receiving module 410, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes the dedicated logical channel identifier, confirming that the D2D communication data is from the D2D Discovery transport channel. For example, when the determining module 420 determines that the number of bits of the D2D communication data is less than or equal to the first preset threshold according to the information of the D2D communication data received by the receiving module 410, and the D2D communication data includes the dedicated logical channel identifier, confirm that the D2D communication data is from the D2D. Discovery transport channel.
  • the determining module 420 is configured to: when the information of the D2D communication data received from the receiving module 410 is acquired, the data packet header of the radio link control protocol layer includes a source address and a destination address, and determine that the number of bits of the D2D communication data is less than or equal to the first preset. Confirm that D2D communication data comes from D2D when the threshold or D2D communication data contains a dedicated logical channel identifier Discovery transport channel. For example, when the determining module 420 obtains the data packet header of the radio link control protocol layer from the information of the D2D communication data received by the receiving module 410, the source address and the destination address are determined, and the number of bits of the D2D communication data is determined to be less than or equal to the first preset. Confirm that D2D communication data comes from D2D when the threshold or D2D communication data contains a dedicated logical channel identifier Discovery transport channel.
  • the determining module 420 is configured to: when determining, according to the information of the D2D communication data received by the receiving module 410, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes the ProSe identifier, confirming that the D2D communication data is from the D2D Discovery transport channel. For example, when the determining module 420 determines, according to the information of the D2D communication data received by the receiving module 410, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes the ProSe identifier, confirm that the D2D communication data is from the D2D. Discovery transport channel.
  • the determination module 420 transmits the determination result to the mapping module 430.
  • the mapping module 430 receives the determination result sent by the determining module 420, and the mapping module is configured to: when the determining module 420 determines that the number of bits of the D2D communication data is less than or equal to a first preset threshold, or the D2D communication data includes a dedicated logical channel identifier, the determining module 420 determines D2D communication data through D2D
  • the Discovery transport channel is delivered to the media access control protocol layer, and the D2D communication data is mapped to the D2D service logical channel at the medium access control protocol layer according to the obtained mapping relationship, wherein the acquired mapping relationship is in the media access control D2D service logical channel established by protocol layer and D2D The mapping relationship of the Discovery transport channel.
  • the mapping module 430 is further configured to: when determining, the information of the module 420 according to the D2D communication data.
  • the Discovery transport channel is delivered to the medium access control protocol layer, and the second D2D communication data is delivered to the medium access control protocol layer through the D2D shared transport channel, and the D2D communication data and the second D2D communication are performed at the medium access control protocol layer.
  • the data is mapped to the D2D service logical channel.
  • the mapping module 430 acquires the second D2D communication data according to the scheduling information. Passing D2D communication data through the D2D
  • the Discovery transport channel is delivered to the medium access control protocol layer
  • the second D2D communication data is delivered to the medium access control protocol layer through the D2D shared transport channel, and the D2D communication data and the second D2D communication are performed at the medium access control protocol layer.
  • the data is mapped to the D2D service logical channel.
  • the mapping module 430 sends the D2D communication data and the second D2D communication data to the D2D service logical channel after the medium access control protocol layer, and sends the data to the restoration module 440. Notification information.
  • the mapping module 430 is configured to: when the determining module 420 obtains the data packet header of the radio link control protocol layer from the D2D communication data, includes a source address and a destination address, and determine that the number of bits of the D2D communication data is less than or equal to a first preset threshold or D2D communication.
  • the data includes a dedicated logical channel identifier
  • the D2D communication data determined by the determination module 420 is passed through the D2D.
  • the Discovery transport channel is delivered to the medium access control protocol layer, and the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer; and the D2D communication is performed through a mapping interface between the radio link control protocol layer and the ProSe protocol stack.
  • the data is submitted to the Radio Link Control Protocol layer.
  • the mapping module 430 passes the D2D communication data determined by the determining module 420 through the D2D.
  • the Discovery transport channel is delivered to the medium access control protocol layer, and the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer; and the D2D communication is performed through a mapping interface between the radio link control protocol layer and the ProSe protocol stack.
  • the data is submitted to the Radio Link Control Protocol layer.
  • the mapping module 430 is configured to: when the determining module 420 determines that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes the ProSe identifier, pass the D2D communication data determined by the determining module 420 to the D2D.
  • the Discovery transport channel is delivered to the medium access control protocol layer, and the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer; and the D2D communication data is used according to the mapping relationship between the ProSe protocol stack and the packet data convergence protocol layer. Map to the packet data aggregation protocol layer.
  • the restoration module 440 is configured to receive the notification information that is sent by the mapping module 430 after the media access control protocol layer maps the D2D communication data and the second D2D communication data to the D2D service logical channel, and maps the mapping module 430 at the radio link control protocol layer. The D2D communication data and the second D2D communication data packet are restored to obtain the D2D communication data packet before the division.
  • the terminal device receives the D2D communication data sent by the terminal device other than the terminal device, and determines the D2D communication data from the D2D according to the information of the D2D communication data.
  • Discovery transport channel based on information of D2D communication data and D2D service logical channel and D2D acquired by the terminal device
  • the mapping relationship of the Discovery transport channel maps the D2D communication data to the D2D Discovery transport channel, thereby identifying the D2D communication data to implement the function corresponding to the D2D communication data.
  • FIG. 15 is a schematic structural diagram of still another embodiment of a data transmission apparatus according to the present application.
  • the data transmission device of this embodiment may be a terminal device.
  • the terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data.
  • the terminal device of this embodiment example includes a transceiver 510, a processor 520, a read only memory 530, a random access memory 540, and a bus 550.
  • the transceiver 510 is configured to receive and transmit data.
  • the processor 520 controls the operation of the terminal device, and the processor 520 may also be referred to as a CPU (Central Processing). Unit, central processing unit).
  • Processor 520 may be an integrated circuit chip with signal processing capabilities.
  • Processor 520 can also be a general purpose processor, digital signal processor (DSP), application specific integrated circuit (ASIC), off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component .
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory can include read only memory 530 and random access memory 540 and provides instructions and data to processor 520.
  • a portion of the memory may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • bus 550 which may include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like. However, for clarity of description, various buses are labeled as bus 550 in the figure.
  • the memory stores the following elements, executable modules or data structures, or a subset of them, or their extended set:
  • Operation instructions include various operation instructions for implementing various operations.
  • Operating system Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
  • the processor 520 performs the following operations by calling an operation instruction stored in the memory, which can be stored in the operating system:
  • the processor 520 is configured to establish a mapping relationship between the D2D service logical channel and the D2D Discovery transmission channel.
  • the processor 520 is configured to determine whether the number of bits of the first D2D communication data reaches a threshold value, wherein the first D2D communication data is D2D communication data to be transmitted;
  • the processor 520 is configured to: when determining that the first D2D communication data does not reach the threshold, map the first D2D communication data to the D2D according to the mapping relationship Discovery transmits a channel and transmits the first D2D communication data through the D2D Discovery transmission channel.
  • the processor 520 is configured to establish a D2D service logical channel and D2D directly at the medium access control protocol layer.
  • Discovery transmission channel mapping relationship or set mapping interface between the radio link control protocol layer and the ProSe protocol stack to establish D2D service logical channel and D2D The mapping relationship of the Discovery transport channel.
  • the processor 520 is configured to: when the number of bits of the first D2D communication data is less than or equal to a first preset threshold, map the first D2D communication data to the D2D Discovery a transport channel; or submit the first D2D communication data to the ProSe protocol stack through the mapping interface to map the first D2D communication data to the D2D at the medium access control protocol layer a discovery channel: wherein the first preset threshold is less than or equal to a maximum number of bits carried by the D2D Discovery transport channel.
  • the processor 520 is further configured to: when the number of bits of the first D2D communication data is greater than the first preset threshold, map the first D2D communication data to a D2D shared transport channel, by using the D2D The first D2D communication data is transmitted by a shared transport channel.
  • the processor 520 is further configured to: at least divide the first D2D communication data at the radio link control protocol layer when the number of bits of the first D2D communication data is greater than the first preset threshold. And being the second D2D communication data and the third D2D communication data; wherein the first preset threshold is equal to the D2D The maximum number of bits carried by the Discovery transport channel, the number of bits of the second D2D communication data is less than or equal to the first preset threshold, and the number of bits of the third D2D communication data is greater than the number of bits of the second D2D communication data ;
  • the processor 520 is further configured to map the second D2D communication data to the D2D at the medium access control protocol layer Discovering a transport channel, or delivering the second D2D communication data to the ProSe protocol stack through the mapping interface; and mapping the third D2D communication data to the D2D share at the medium access control protocol layer Transport channel.
  • the processor 520 is further configured to determine whether the number of bits of the third D2D communication data is greater than a second preset threshold, where the second preset threshold is a maximum number of bits carried by the D2D shared transport channel. ;
  • the processor 520 is further configured to: when the number of bits of the third D2D communication data is greater than the second preset threshold, segment the third D2D communication data at the radio link control protocol layer, where The number of bits of the D2D communication data is less than or equal to the second preset threshold, and the second D2D communication data includes scheduling information of the third D2D communication data, where the scheduling information is used to indicate the The information of the time-frequency resource used by the three D2D communication data.
  • the processor 520 is further configured to add a source address and a destination address to the first D2D communication data at the medium access control protocol layer or the radio link control protocol layer, and add a dedicated logical channel identifier, where The source address is used to identify an address of a terminal device that sends the first D2D communication data, where the destination address is used to identify an address of a terminal device that receives the first D2D communication data, where the dedicated logical channel identifier is used for Identify the D2D Discovery transmits D2D communication data for the channel.
  • the processor 520 is configured to set a mapping relationship between the packet data convergence protocol layer and the ProSe protocol stack.
  • the processor 520 is configured to: when the number of bits of the first D2D communication data is less than or equal to a first preset threshold, submit the first D2D communication data from the packet data convergence protocol layer to the ProSe a protocol stack, setting a ProSe identity to the first D2D communication data, and mapping the first D2D communication data to the D2D at the media access control protocol layer a discovery channel: wherein the first preset threshold is less than or equal to a maximum number of bits carried by the D2D Discovery transport channel.
  • the processor 520 is further configured to: when the number of bits of the first D2D communication data is greater than the first preset threshold, submit the first D2D communication data from the packet data convergence protocol layer to the The medium access control protocol layer, and mapping the first D2D communication data to the D2D shared transport channel at the medium access control protocol layer.
  • the terminal device establishes a D2D service logical channel and D2D a mapping relationship of the Discovery transmission channel, when determining that the first D2D communication data does not reach the threshold, mapping the first D2D communication data to the D2D Discovery transmission channel, and passing the D2D
  • the Discovery transmission channel transmits the first D2D communication data, which solves the problem that the prior art cannot pass the D2D.
  • the technical problem that the Discovery transmission channel carries D2D communication data can improve the transmission efficiency of the data channel and improve the overall resource utilization of the LTE network.
  • FIG. 16 is a schematic structural diagram of still another embodiment of a data transmission apparatus of the present application.
  • the data transmission device of this embodiment may be a terminal device.
  • the terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data.
  • the terminal device of this embodiment example includes a transceiver 610, a processor 620, a read only memory 630, a random access memory 640, and a bus 650.
  • the transceiver 610 is configured to receive and transmit data.
  • the processor 620 controls the operation of the terminal device, and the processor 620 may also be referred to as a CPU (Central Processing). Unit, central processing unit).
  • Processor 620 may be an integrated circuit chip with signal processing capabilities.
  • the processor 620 can also be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory can include read only memory 630 and random access memory 640 and provides instructions and data to processor 620.
  • a portion of the memory may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • bus 650 which may include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like. However, for clarity of description, various buses are labeled as bus 650 in the figure.
  • the memory stores the following elements, executable modules or data structures, or a subset of them, or their extended set:
  • Operation instructions include various operation instructions for implementing various operations.
  • Operating system Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
  • the processor 620 performs the following operations by calling an operation instruction stored in the memory, which can be stored in the operating system:
  • the processor 620 is configured to control the transceiver 610 to receive D2D communication data sent by other terminal devices.
  • the processor 620 is configured to determine, according to the information of the D2D communication data, the D2D communication data from the D2D Discovery transport channel; and for when the D2D communication data comes from D2D
  • the Discovery transport channel is based on the information of the D2D communication data and the acquired D2D service logical channel and D2D A mapping relationship of the Discovery transport channel, mapping the D2D communication data to the D2D Discovery transport channel.
  • the information of the D2D communication data received by the transceiver 610 includes a bit number of the D2D communication data and/or a dedicated logical channel identifier, where the dedicated logical channel identifier is used to identify the D2D communication data from the D2D.
  • Discovery transport channel
  • the processor 620 is configured to determine, according to the information of the D2D communication data received by the transceiver 610, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, or the D2D communication data includes the dedicated logical channel
  • the identification the D2D communication data is passed through the D2D
  • the discovery channel is delivered to the medium access control protocol layer, and the D2D communication data is mapped to the D2D service logical channel at the medium access control protocol layer according to the obtained mapping relationship, where the first preset The threshold is less than or equal to the D2D
  • the maximum number of bits carried by the Discovery transport channel, and the obtained mapping relationship is a D2D service logical channel and D2D established at the medium access control protocol layer.
  • the mapping relationship of the Discovery transport channel is configured to determine, according to the information of the D2D communication data received by the transceiver 610, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, or
  • the information about the D2D communication data received by the transceiver 610 further includes scheduling information, where the scheduling information is used to indicate time-frequency resources used by the second D2D communication data, the D2D communication data and the second D2D
  • the communication data is divided by the same D2D communication data packet;
  • the processor 620 is configured to determine, according to the information of the D2D communication data received by the transceiver 610, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes the dedicated logical channel And identifying, acquiring, according to the scheduling information, the second D2D communication data;
  • the processor 620 is further configured to pass the D2D communication data through the D2D
  • the Discovery transport channel is delivered to the medium access control protocol layer
  • the second D2D communication data is delivered to the medium access control protocol layer through the D2D shared transport channel
  • the medium access control protocol layer is D2D communication data and the second D2D communication data are mapped to a D2D service logical channel;
  • the processor 620 is further configured to: restore, by the radio link control protocol layer, the D2D communication data mapped by the mapping module and the second D2D communication data packet to obtain a D2D communication data packet before the segmentation.
  • the information of the D2D communication data received by the transceiver 610 further includes a source address and a destination address, where the source address is used to identify an address of the terminal device that sends the D2D communication data, where the destination address is used to identify An address of the terminal device receiving the D2D communication data;
  • the processor 620 is configured to: when the D2D communication data received from the transceiver is obtained, the data packet header of the radio link control protocol layer includes a source address and a destination address, and determine that the number of bits of the D2D communication data is less than or equal to the first Passing the D2D communication data through the D2D when a predetermined threshold or the D2D communication data includes the dedicated logical channel identifier a Discovery transport channel is delivered to the medium access control protocol layer, the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer; and the protocol layer and the A mapping interface between the ProSe protocol stacks, the D2D communication data is delivered to the radio link control protocol layer.
  • the information of the D2D communication data received by the transceiver 610 includes a number of bits of the D2D communication data and a ProSe identifier, where the ProSe identifier is used to identify that the D2D communication data is from a data packet convergence protocol layer;
  • the processor 620 is configured to: when determining that the number of bits of the D2D communication data received by the transceiver 610 is less than or equal to a first preset threshold, and the D2D communication data includes the ProSe identifier, pass the D2D communication data through the D2D
  • the Discovery transport channel is delivered to a medium access control protocol layer, the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer; and used to aggregate with the packet data according to the ProSe protocol stack a mapping relationship of the protocol layer, mapping the D2D communication data to the packet data convergence protocol layer.
  • the terminal device receives the D2D communication data sent by the terminal device other than the terminal device, and determines the D2D communication data from the D2D according to the information of the D2D communication data.
  • Discovery transport channel based on information of D2D communication data and D2D service logical channel and D2D acquired by the terminal device
  • the mapping relationship of the Discovery transport channel maps the D2D communication data to the D2D Discovery transport channel, thereby identifying the D2D communication data to implement the function corresponding to the D2D communication data.

Abstract

Disclosed are a data transmission method and an apparatus therefor. The data transmission method comprises: a terminal device establishing a mapping relationship between a D2D service logic channel and a D2D Discovery transmission channel; the terminal device determining whether the number of bits of first D2D communication data reaches a threshold value, wherein the first D2D communication data is D2D communication data to be transmitted; when the first D2D communication data does not reach the threshold value, the terminal device mapping the first D2D communication data to the D2D Discovery transmission channel according to the mapping relationship; and the terminal device transmitting the first D2D communication data via the D2D Discovery transmission channel. By means of the method, the transmission efficiency of a data channel can be improved, and the overall resource utilization rate of an LTE network is improved.

Description

一种数据传输方法及装置 Data transmission method and device
【技术领域】[Technical Field]
本申请涉及通信网络领域,特别是涉及一种数据传输方法及装置。The present application relates to the field of communication networks, and in particular, to a data transmission method and apparatus.
【背景技术】 【Background technique】
设备到设备(Device toDevice,D2D)的通信技术是一种在蜂窝系统控制下,允许用户终端设备(User Equipment,UE)间利用无线链路进行直接通信的技术。Device to device (Device The communication technology of toDevice, D2D) is a technology that allows direct communication between user equipment devices (User Equipments, UEs) using a wireless link under the control of a cellular system.
目前,基于长期演进(Long Term Evolution,LTE)的用户终端设备通过D2D直接通信的模式包括:通过discovery信道传输模式(通常称为,D2D discovery模式)、通过D2D数据信道传输模式(通常称为,D2D 直接通信模式)。LTE系统会通过广播消息或者专用信令来分配D2D Discovery和D2D直接通信的传输资源给用户,进行相应模式的D2D通信。Currently based on long-term evolution (Long Term Evolution, LTE) mode of direct communication of user terminal equipment through D2D includes: through the discovery channel transmission mode (commonly referred to as D2D) Discovery mode), through the D2D data channel transmission mode (commonly referred to as D2D direct communication mode). The LTE system allocates D2D through broadcast messages or dedicated signaling. The transmission resources that Discovery and D2D communicate directly to the user perform D2D communication in the corresponding mode.
然而,目前基于LTE的D2D通信中,D2D通信数据只能映射到D2D共享传输信道,无法将D2D通信数据映射到Discovery传输信道,进而不能通过Discovery信道传输比特数较小的D2D通信数据,将降低D2D数据信道的传输效率。However, in current D2D communication based on LTE, D2D communication data can only be mapped to the D2D shared transmission channel, and the D2D communication data cannot be mapped to the Discovery transmission channel, and thus the D2D communication data with a small number of bits can not be transmitted through the Discovery channel, which will be reduced. Transmission efficiency of the D2D data channel.
【发明内容】 [Summary of the Invention]
本申请主要解决的技术问题是提供一种数据传输方法及装置,能够提高数据信道的传输效率,提高LTE网络的整体资源利用率。The technical problem to be solved by the present application is to provide a data transmission method and device, which can improve the transmission efficiency of the data channel and improve the overall resource utilization of the LTE network.
为了解决上述问题,本申请第一方面提供了一种数据传输方法,包括:终端设备建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系;所述终端设备确定第一D2D通信数据的比特数是否达到门限值,其中,所述第一D2D通信数据为待传输的D2D通信数据;当所述第一D2D通信数据未达到所述门限值时,所述终端设备根据所述映射关系将所述第一D2D通信数据映射到所述D2D Discovery传输信道;所述终端设备通过所述D2D Discovery传输信道传输所述第一D2D通信数据。In order to solve the above problem, the first aspect of the present application provides a data transmission method, including: establishing, by a terminal device, a D2D service logical channel and a D2D a mapping relationship of the Discovery transport channel; the terminal device determines whether the number of bits of the first D2D communication data reaches a threshold value, wherein the first D2D communication data is D2D communication data to be transmitted; when the first D2D communication When the data does not reach the threshold, the terminal device maps the first D2D communication data to the D2D according to the mapping relationship. a Discovery transport channel; the terminal device transmits the first D2D communication data through the D2D Discovery transport channel.
为了解决上述问题,本申请第二方面提供了一种数据传输方法,包括:终端设备接收除所述终端设备之外的其他终端设备发送的D2D通信数据;In order to solve the above problem, the second aspect of the present application provides a data transmission method, including: receiving, by a terminal device, D2D communication data sent by another terminal device other than the terminal device;
所述终端设备根据所述D2D通信数据的信息确定所述D2D通信数据来自D2D Discovery传输信道;所述终端设备根据所述D2D通信数据的信息以及所述终端设备获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系,将所述D2D通信数据映射到所述D2D Discovery传输信道。Determining, by the terminal device, that the D2D communication data is from D2D according to the information of the D2D communication data a discovery channel; the terminal device according to the information of the D2D communication data and the D2D service logical channel and the D2D acquired by the terminal device A mapping relationship of the Discovery transport channel, mapping the D2D communication data to the D2D Discovery transport channel.
为了解决上述问题,本申请第三方面提供了一种数据传输装置,包括:建立模块、确定模块、映射模块以及传输模块;所述建立模块用于建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系;所述确定模块用于确定第一D2D通信数据的比特数是否达到门限值,其中,所述第一D2D通信数据为待传输的D2D通信数据;所述映射模块用于当所述确定模块确定所述第一D2D通信数据未达到所述门限值时,根据所述建立模块建立的所述映射关系将所述第一D2D通信数据映射到所述D2D Discovery传输信道;所述传输模块用于通过所述D2D Discovery传输信道传输所述第一D2D通信数据。In order to solve the above problem, a third aspect of the present application provides a data transmission apparatus, including: an establishment module, a determination module, a mapping module, and a transmission module; the establishment module is configured to establish a D2D service logical channel and a D2D a mapping relationship of the Discovery transmission channel; the determining module is configured to determine whether the number of bits of the first D2D communication data reaches a threshold value, wherein the first D2D communication data is D2D communication data to be transmitted; When the determining module determines that the first D2D communication data does not reach the threshold, mapping the first D2D communication data to the D2D according to the mapping relationship established by the establishing module. a discovery channel; the transmission module is configured to transmit the first D2D communication data by using the D2D Discovery transmission channel.
为了解决上述问题,本申请第四方面提供了一种数据传输装置,包括接收模块、确定模块以及映射模块;所述接收模块用于接收其他终端设备发送的D2D通信数据;所述确定模块用于根据所述接收模块接收的所述D2D通信数据的信息确定所述D2D通信数据来自D2D Discovery传输信道;所述映射模块用于当所述确定模块确定所述D2D通信数据来自D2D Discovery传输信道时,根据所述D2D通信数据的信息以及获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系,将所述D2D通信数据映射到所述D2D Discovery传输信道。In order to solve the above problem, a fourth aspect of the present application provides a data transmission apparatus, including a receiving module, a determining module, and a mapping module, where the receiving module is configured to receive D2D communication data sent by other terminal devices; Determining, according to the information of the D2D communication data received by the receiving module, that the D2D communication data is from D2D a discovery channel; the mapping module is configured to: when the determining module determines that the D2D communication data is from D2D When the Discovery transport channel is based on the information of the D2D communication data and the acquired D2D service logical channel and D2D A mapping relationship of the Discovery transport channel, mapping the D2D communication data to the D2D Discovery transport channel.
为了解决上述问题,本申请第五方面提供了一种数据传输装置,包括处理器以及收发器;所述处理器用于建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系;所述处理器用于确定第一D2D通信数据的比特数是否达到门限值,其中,所述第一D2D通信数据为待传输的D2D通信数据;所述处理器用于当确定所述第一D2D通信数据未达到所述门限值时,根据所述映射关系将所述第一D2D通信数据映射到所述D2D Discovery传输信道,并通过所述D2D Discovery传输信道传输所述第一D2D通信数据;所述收发器用于发射、接收数据。In order to solve the above problem, a fifth aspect of the present application provides a data transmission apparatus, including a processor and a transceiver; the processor is configured to establish a D2D service logical channel and a D2D a mapping relationship of the Discovery transmission channel; the processor is configured to determine whether a number of bits of the first D2D communication data reaches a threshold value, wherein the first D2D communication data is D2D communication data to be transmitted; Determining, when the first D2D communication data does not reach the threshold, mapping the first D2D communication data to the D2D according to the mapping relationship Discovery transmits a channel and transmits the first D2D communication data through the D2D Discovery transmission channel; the transceiver is configured to transmit and receive data.
为了解决上述问题,本申请第六方面提供了一种数据传输装置,包括收发器以及处理器;所述收发器用于接收其他终端设备发送的D2D通信数据;所述处理器用于根据所述D2D通信数据的信息确定所述D2D通信数据来自D2D Discovery传输信道;以及用于当所述D2D通信数据来自D2D Discovery传输信道时,根据所述D2D通信数据的信息以及获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系,将所述D2D通信数据映射到所述D2D Discovery传输信道。In order to solve the above problems, a sixth aspect of the present application provides a data transmission apparatus including a transceiver and a processor; the transceiver is configured to receive D2D communication data sent by another terminal device; and the processor is configured to perform communication according to the D2D The information of the data determines that the D2D communication data is from D2D Discovery transport channel; and for when the D2D communication data comes from D2D When the Discovery transport channel is based on the information of the D2D communication data and the acquired D2D service logical channel and D2D A mapping relationship of the Discovery transport channel, mapping the D2D communication data to the D2D Discovery transport channel.
上述方案,终端设备建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系,当确定第一D2D通信数据未达到所述门限值时,将第一D2D通信数据映射到D2D Discovery传输信道,通过D2D Discovery传输信道传输第一D2D通信数据,解决了现有技术中无法通过D2D Discovery传输信道承载D2D通信数据的技术问题,能够提高数据信道的传输效率,提高LTE网络的整体资源利用率。In the above solution, the terminal device establishes a D2D service logical channel and D2D a mapping relationship of the Discovery transmission channel, when determining that the first D2D communication data does not reach the threshold, mapping the first D2D communication data to the D2D Discovery transmission channel, and passing the D2D The Discovery transmission channel transmits the first D2D communication data, which solves the problem that the prior art cannot pass the D2D. The technical problem that the Discovery transmission channel carries D2D communication data can improve the transmission efficiency of the data channel and improve the overall resource utilization of the LTE network.
【附图说明】 [Description of the Drawings]
图1是本申请数据传输方法一实施例的流程图;1 is a flow chart of an embodiment of a data transmission method of the present application;
图2是本申请数据传输方法另一实施例的流程图;2 is a flow chart of another embodiment of a data transmission method of the present application;
图3是本申请建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系一实施例的示意图;3 is a schematic diagram of an embodiment of establishing a mapping relationship between a D2D service logical channel and a D2D Discovery transmission channel in the present application;
图4是本申请基于LTE的D2D通信的信道映射示意图;4 is a schematic diagram of channel mapping of D2D communication based on LTE according to the present application;
图5是本申请利用不同物理资源传输Discovery消息和D2D通信数据一实施例的示意图;5 is a schematic diagram of an embodiment of transmitting a Discovery message and D2D communication data by using different physical resources in the present application;
图6是本申请数据传输方法再一实施例的流程图;6 is a flowchart of still another embodiment of a data transmission method of the present application;
图7是本申请建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系另一实施例的示意图;7 is a schematic diagram of another embodiment of establishing a mapping relationship between a D2D service logical channel and a D2D Discovery transmission channel according to the present application;
图8是本申请数据传输方法又一实施例的流程图;8 is a flowchart of still another embodiment of a data transmission method of the present application;
图9是本申请建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系再一实施例的示意图;9 is a schematic diagram of still another embodiment of establishing a mapping relationship between a D2D service logical channel and a D2D Discovery transmission channel according to the present application;
图10是本申请数据传输方法再一实施例的流程图;10 is a flowchart of still another embodiment of a data transmission method of the present application;
图11是本申请数据传输装置一实施例的结构示意图;11 is a schematic structural diagram of an embodiment of a data transmission device of the present application;
图12是本申请数据传输装置另一实施例的结构示意图;12 is a schematic structural diagram of another embodiment of a data transmission apparatus of the present application;
图13是本申请数据传输装置再一实施例的结构示意图;FIG. 13 is a schematic structural diagram of still another embodiment of a data transmission apparatus according to the present application; FIG.
图14是本申请数据传输装置又一实施例的结构示意图;14 is a schematic structural diagram of still another embodiment of a data transmission device of the present application;
图15是本申请数据传输装置再一实施例的结构示意图;15 is a schematic structural diagram of still another embodiment of a data transmission device of the present application;
图16是本申请数据传输装置又一实施例的结构示意图。FIG. 16 is a schematic structural diagram of still another embodiment of a data transmission apparatus of the present application.
【具体实施方式】【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 a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、接口、技术之类的具体细节,以便透彻理解本申请。In the following description, for purposes of illustration and description, reference
参阅图1,图1是本申请数据传输方法一实施例的流程图。本实施例的执行主体为终端设备,终端设备为用户终端设备(User Equipment,UE),其中,UE可以为手机等移动终端设备。两个UE可以直接通信传输数据。本实施例的数据传输方法包括如下步骤:Referring to FIG. 1, FIG. 1 is a flowchart of an embodiment of a data transmission method of the present application. The execution entity of this embodiment is a terminal device, and the terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data. The data transmission method of this embodiment includes the following steps:
S101:终端设备建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系。S101: The terminal device establishes a mapping relationship between the D2D service logical channel and the D2D Discovery transmission channel.
终端设备建立D2D业务逻辑信道(Sidelink Traffic Channel,STCH)与D2D Discovery传输信道的映射关系。Terminal equipment establishes D2D traffic channel (Sidelink Traffic Channel, STCH) and D2D The mapping relationship of the Discovery transport channel.
其中,D2D业务逻辑信道为D2D直接通信模式的协议栈中媒体接入控制协议(Media Access Control,MAC)层与MAC层以上的各层的通信接口,D2D Discovery传输信道为D2D Discovery模式的协议栈中MAC层与物理(Physical,PHY)层之间的通信接口。Wherein, the D2D service logical channel is a media access control protocol in the protocol stack of the D2D direct communication mode (Media Access) Control, MAC) layer and the communication layer of each layer above the MAC layer, D2D Discovery transmission channel is D2D The communication interface between the MAC layer and the physical (PHY) layer in the protocol stack of the Discovery mode.
D2D直接通信模式的协议栈的架构(从上至下依次)包括:分组数据汇聚协议(Packet Data Convergence Protocol,PDCP)层、无线链路控制协议(Radio Link Control,RLC)层、MAC层、PHY层。The architecture of the protocol stack of D2D direct communication mode (from top to bottom) includes: Packet Data Convergence Protocol (Packet Data) Convergence Protocol (PDCP) layer, Radio Link Control (RLC) layer, MAC layer, PHY layer.
D2D Discovery模式的协议栈的架构(从上至下依次)包括:ProSe协议栈、MAC层、PHY层。D2D The architecture of the Discovery mode protocol stack (from top to bottom) includes: ProSe protocol stack, MAC layer, and PHY layer.
D2D业务逻辑信道可以位于MAC层,也可以位于RLC层,还也可以位于PDCP层,但并不限于此,此处不作限制。The D2D service logical channel may be located at the MAC layer, or may be located at the RLC layer, or may be located at the PDCP layer, but is not limited thereto, and is not limited herein.
终端设备可以在MAC层直接建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系;也可以在RLC层与ProSe协议栈之间建立映射接口,以通过RLC层、ProSe协议栈建立D2D业务逻辑信道到D2D Discovery传输信道的映射关系;还可以在PDCP层建立与ProSe协议栈的映射关系,以建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系。The terminal device can directly establish a D2D service logical channel and D2D at the MAC layer. The mapping relationship of the Discovery transport channel; a mapping interface may also be established between the RLC layer and the ProSe protocol stack to establish a D2D service logical channel to the D2D through the RLC layer and the ProSe protocol stack. The mapping relationship of the Discovery transport channel; the mapping relationship with the ProSe protocol stack can also be established at the PDCP layer to establish a D2D service logical channel and D2D. The mapping relationship of the Discovery transport channel.
当然,还可以通过其他方式建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系,此处不作限制。Of course, D2D service logical channels and D2D can also be established in other ways. The mapping relationship of the Discovery transport channel is not limited here.
当终端设备发送ProSe协议栈生成的Discovery消息时,终端设备按现有技术中的处理方法进行处理:终端设备将待发送的Discovery消息递交到MAC层,MAC层负责将Discovery消息映射到MAC层中对应的D2D Discovery传输信道(Sidelink Discovery Channel,SL-DCH),通过D2D Discovery传输信道将Discovery消息递交到PHY层,从而使用物理层中Discovery传输资源传输Discovery消息。When the terminal device sends the Discovery message generated by the ProSe protocol stack, the terminal device processes according to the processing method in the prior art: the terminal device delivers the Discovery message to be sent to the MAC layer, and the MAC layer is responsible for mapping the Discovery message to the MAC layer. Corresponding D2D Discovery Transport Channel (Sidelink Discovery Channel, SL-DCH), via D2D The Discovery transport channel delivers Discovery messages to the PHY layer, which uses the Discovery transport resources in the physical layer to transport Discovery messages.
当终端设备发送D2D通信数据时,执行步骤S102~S103。When the terminal device transmits the D2D communication data, steps S102 to S103 are performed.
其中,D2D通信数据包括音频数据、视频数据等,D2D通信数据由应用层产生,经处理后,进入D2D直接通信模式的协议栈进行处理。The D2D communication data includes audio data, video data, and the like, and the D2D communication data is generated by the application layer, and after processing, enters a protocol stack of the D2D direct communication mode for processing.
S102:终端设备确定第一D2D通信数据的比特数是否达到门限值,其中,所述第一D2D通信数据为待传输的D2D通信数据。S102: The terminal device determines whether the number of bits of the first D2D communication data reaches a threshold value, wherein the first D2D communication data is D2D communication data to be transmitted.
当终端设备与其他终端设备进行通信,并向其他终端设备发送D2D通信数据时,终端设备确定待传输的第一D2D通信数据的比特数是否达到门限值。When the terminal device communicates with other terminal devices and transmits D2D communication data to other terminal devices, the terminal device determines whether the number of bits of the first D2D communication data to be transmitted reaches a threshold value.
其中,门限值可以为预先设定的D2D通信数据的比特数对应的阈值,具体的数值用户也可以根据实际需要进行设置。The threshold value may be a threshold corresponding to the number of bits of the preset D2D communication data, and the specific numerical value may be set according to actual needs.
由于D2D Discovery传输信道只能传输小于或等于固定比特数的数据包,无法传输大于固定比特数的数据包,因此,可以设置为该门限值小于等于D2D Discovery传输信道承载的最大比特数。D2D通信数据的比特数对应的阈值不超过D2D Discovery传输信道的最大承载比特数,可以为232比特,但并不限于此,还可以设置为其他值,此处不作限制。Due to D2D The Discovery transport channel can only transmit packets that are less than or equal to a fixed number of bits, and cannot transmit packets larger than a fixed number of bits. Therefore, the threshold can be set to be less than or equal to D2D. The maximum number of bits carried by the Discovery transport channel. The threshold corresponding to the number of bits of D2D communication data does not exceed D2D The maximum number of bearers of the Discovery transport channel may be 232 bits, but is not limited thereto, and may be set to other values, which is not limited herein.
当第一D2D通信数据的比特数小于或等于该门限值时,则判定为第一D2D通信数据未达到该门限值,执行步骤S103。When the number of bits of the first D2D communication data is less than or equal to the threshold value, it is determined that the first D2D communication data does not reach the threshold value, and step S103 is performed.
当第一D2D通信数据的比特数大于该门限值时,则判定为第一D2D通信数据超过该门限值,按现有技术中处理D2D数据的流程将第一D2D通信数据映射到D2D共享传输信道(Sidelink Shared Channel,SL-SCH)进行处理。When the number of bits of the first D2D communication data is greater than the threshold, it is determined that the first D2D communication data exceeds the threshold, and the first D2D communication data is mapped to the D2D sharing according to the process of processing the D2D data in the prior art. Transport channel (Sidelink Shared Channel, SL-SCH) is processed.
S103:当所述第一D2D通信数据未达到所述门限值时,所述终端设备根据所述映射关系将所述第一D2D通信数据映射到所述D2D Discovery传输信道。S103: when the first D2D communication data does not reach the threshold, the terminal device maps the first D2D communication data to the D2D according to the mapping relationship. Discovery transport channel.
当终端设备确定第一D2D通信数据小于或等于该门限值时,终端设备根据D2D业务逻辑信道与D2D Discovery传输信道的映射关系,将第一D2D通信数据映射到所述D2D Discovery传输信道。When the terminal device determines that the first D2D communication data is less than or equal to the threshold, the terminal device according to the D2D service logical channel and the D2D A mapping relationship of the Discovery transport channel, mapping the first D2D communication data to the D2D Discovery transport channel.
其中,当终端设备直接在媒体接入控制协议MAC层建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系时,终端设备在将第一D2D通信数据递交到MAC层后,根据D2D业务逻辑信道与D2D Discovery传输信道的映射关系,在MAC层将第一D2D通信数据映射到D2D Discovery传输信道。Wherein, when the terminal device directly establishes a D2D service logical channel and D2D in the MAC layer of the medium access control protocol When the mapping relationship of the Discovery transmission channel is performed, the terminal device submits the first D2D communication data to the MAC layer, according to the D2D service logical channel and the D2D. The mapping of the Discovery transport channel maps the first D2D communication data to the D2D Discovery transport channel at the MAC layer.
当终端设备在PDCP层建立与ProSe协议栈的映射关系的方法,建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系时:第一D2D通信数据从应用层进入D2D直接通信模式的协议栈。在第一通信数据到达PDCP层后,终端设备根据PDCP层和ProSe协议栈之间的映射关系,将第一D2D通信数据从PDCP层映射到ProSe协议栈,第一D2D通信数据进入D2DDiscovery模式的协议栈。终端设备在将第一D2D通信数据递交到MAC层后,在MAC层将第一D2D通信数据映射到D2D Discovery传输信道。Establishing a D2D service logical channel and D2D when the terminal device establishes a mapping relationship with the ProSe protocol stack at the PDCP layer. When the mapping relationship of the Discovery transmission channel: the first D2D communication data enters the protocol stack of the D2D direct communication mode from the application layer. After the first communication data arrives at the PDCP layer, the terminal device maps the first D2D communication data from the PDCP layer to the ProSe protocol stack according to the mapping relationship between the PDCP layer and the ProSe protocol stack, and the first D2D communication data enters the D2DDiscovery mode protocol. Stack. After the terminal device delivers the first D2D communication data to the MAC layer, mapping the first D2D communication data to the D2D at the MAC layer Discovery transport channel.
当终端设备通过在RLC层与ProSe协议栈之间建立映射接口的方法,建立D2D业务逻辑信道到D2D Discovery传输信道的映射关系时:第一D2D通信数据从应用层进入D2D直接通信模式的协议栈。在第一通信数据经过PDCP层到达RLC层后,终端设备通过RLC层和ProSe协议栈之间的映射接口,将第一D2D通信数据从RLC层映射到ProSe协议栈,第一D2D通信数据进入D2DDiscovery模式的协议栈。终端设备在将第一D2D通信数据递交到MAC层后,在MAC层将第一D2D通信数据映射到D2D Discovery传输信道。When the terminal device establishes a mapping interface between the RLC layer and the ProSe protocol stack, the D2D service logical channel is established to the D2D. When the mapping relationship of the Discovery transmission channel: the first D2D communication data enters the protocol stack of the D2D direct communication mode from the application layer. After the first communication data reaches the RLC layer through the PDCP layer, the terminal device maps the first D2D communication data from the RLC layer to the ProSe protocol stack through the mapping interface between the RLC layer and the ProSe protocol stack, and the first D2D communication data enters the D2DDiscovery The protocol stack of the pattern. After the terminal device delivers the first D2D communication data to the MAC layer, mapping the first D2D communication data to the D2D at the MAC layer Discovery transport channel.
当终端设备在MAC层直接建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系时:终端设备在第一D2D通信数据从应用层进入D2D直接通信模式的协议栈,并且将第一D2D通信数据经过PDCP层以及RLC层,从RLC层递交到MAC层后,在MAC层根据D2D业务逻辑信道与D2D Discovery传输信道的映射关系,直接将第一D2D通信数据映射到D2D Discovery传输信道。When the terminal device directly establishes a D2D service logical channel and D2D at the MAC layer When the mapping relationship of the Discovery transmission channel is: the terminal device enters the protocol stack of the D2D direct communication mode from the application layer in the first D2D communication data, and passes the first D2D communication data to the MAC layer after passing through the PDCP layer and the RLC layer from the RLC layer. At the MAC layer according to the D2D service logical channel and D2D The mapping relationship of the Discovery transport channel directly maps the first D2D communication data to the D2D Discovery transport channel.
S104:所述终端设备通过D2D Discovery传输信道将第一D2D通信数据递交到物理层。S104: The terminal device delivers the first D2D communication data to the physical layer by using a D2D Discovery transmission channel.
当终端设备将第一D2D通信数据映射到D2D Discovery传输信道之后,通过D2D Discovery传输信道将第一D2D通信数据从MAC层递交到物理层后,通过D2D Discovery对应的传输资源传输第一D2D通信数据,从而将第一D2D通信数据发送给其他终端设备。After the terminal device maps the first D2D communication data to the D2D Discovery transmission channel, through the D2D The Discovery transport channel passes the first D2D communication data from the MAC layer to the physical layer, and then passes the D2D. The transmission resource corresponding to Discovery transmits the first D2D communication data, thereby transmitting the first D2D communication data to other terminal devices.
可以理解的是,终端设备接收数据与发送数据是两个逆过程,终端设备处理接收到数据的流程请参阅上述过程,此处不赘述。It can be understood that the terminal device receives the data and sends the data in two reverse processes. For the process of the terminal device processing the received data, refer to the foregoing process, which is not described here.
上述方案,终端设备建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系,当确定第一D2D通信数据未达到所述门限值时,将第一D2D通信数据映射到D2D Discovery传输信道,通过D2D Discovery传输信道传输第一D2D通信数据,解决了现有技术中无法通过D2D Discovery传输信道承载D2D通信数据的技术问题,能够提高数据信道的传输效率,提高LTE网络的整体资源利用率。In the above solution, the terminal device establishes a D2D service logical channel and D2D a mapping relationship of the Discovery transmission channel, when determining that the first D2D communication data does not reach the threshold, mapping the first D2D communication data to the D2D Discovery transmission channel, and passing the D2D The Discovery transmission channel transmits the first D2D communication data, which solves the problem that the prior art cannot pass the D2D. The technical problem that the Discovery transmission channel carries D2D communication data can improve the transmission efficiency of the data channel and improve the overall resource utilization of the LTE network.
请参阅图2,图2是本申请数据传输方法另一实施例的流程图。本实施例的执行主体为终端设备,终端设备为用户终端设备(User Equipment,UE),其中,UE可以为手机等移动终端设备。两个UE可以直接通信传输数据。本实施例的数据传输方法包括如下步骤:Please refer to FIG. 2. FIG. 2 is a flowchart of another embodiment of the data transmission method of the present application. The execution entity of this embodiment is a terminal device, and the terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data. The data transmission method of this embodiment includes the following steps:
S201:终端设备直接在媒体接入控制协议层建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系。S201: The terminal device directly establishes a D2D service logical channel and D2D at a medium access control protocol layer The mapping relationship of the Discovery transport channel.
请一并参阅图3、图4,图3是本申请建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系一实施例的示意图。其中,图3-1是本申请建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系一实施方式的示意图,图3-2是本申请建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系另一实施方式的示意图。图4是本申请基于LTE的D2D通信的信道映射示意图。其中,D2D业务逻辑信道STCH位于MAC层,D2D业务逻辑信道STCH为D2D直接通信模式的协议栈中MAC层与MAC层以上的各层的通信接口,D2D共享传输信道SL-SCH是D2D直接通信模式的协议栈中MAC层与物理层之间的通信接口,D2D Discovery传输信道SL-DCH为D2D Discovery模式的协议栈中MAC层与物理层之间的通信接口。Please refer to FIG. 3 and FIG. 4 together. FIG. 3 is a schematic diagram of establishing a D2D service logical channel and D2D in the present application. Schematic diagram of an embodiment of a mapping relationship of Discovery transport channels. Figure 3-1 shows the establishment of the D2D service logical channel and D2D in this application. Schematic diagram of an implementation manner of a mapping relationship of a Discovery transmission channel, and FIG. 3-2 is a logical channel and D2D for establishing a D2D service in the present application. Schematic diagram of another embodiment of a mapping relationship of Discovery transport channels. 4 is a schematic diagram of channel mapping of D2D communication based on LTE in the present application. The D2D service logical channel STCH is located at the MAC layer, the D2D service logical channel STCH is the communication interface of the MAC layer and the layers above the MAC layer in the protocol stack of the D2D direct communication mode, and the D2D shared transport channel SL-SCH is the D2D direct communication mode. Communication interface between the MAC layer and the physical layer in the protocol stack, D2D The Discovery transport channel SL-DCH is a communication interface between the MAC layer and the physical layer in the protocol stack of the D2D Discovery mode.
如图3所示,终端设备直接在MAC层建立D2D业务逻辑信道与D2D Discovery传输信道SL-DCH的映射关系。As shown in FIG. 3, the terminal device directly establishes a D2D service logical channel and D2D at the MAC layer. Discovery transport channel SL-DCH mapping relationship.
当终端设备发送ProSe协议栈生成的Discovery消息时,按现有技术中的处理流程进行处理,此处不赘述。When the terminal device sends the Discovery message generated by the ProSe protocol stack, the processing is performed according to the processing flow in the prior art, and details are not described herein.
当终端设备发送D2D通信数据,执行步骤S202~S204或步骤S202~ S203以及S205~S208。When the terminal device sends the D2D communication data, step S202~S204 or step S202~ S203 and S205~S208.
其中,D2D通信数据包括音频数据、视频数据等,D2D通信数据由应用层产生,经经TCP/UDP层、IP层处理后,进入D2D直接通信模式的协议栈进行处理。当通过如图3-1所示的方式建立D2D业务逻辑信道与D2D Discovery传输信道SL-DCH的映射关系时,执行步骤S202~S204;当通过如图3-2所示的方式建立D2D业务逻辑信道与D2D Discovery传输信道SL-DCH的映射关系时,执行步骤S202~S203以及S205~S208。The D2D communication data includes audio data, video data, and the like. The D2D communication data is generated by the application layer, and after being processed by the TCP/UDP layer and the IP layer, the D2D direct communication mode protocol stack is processed. When establishing the D2D service logical channel and D2D as shown in Figure 3-1 When the mapping relationship of the Discovery transmission channel SL-DCH is performed, steps S202 to S204 are performed; when the D2D service logical channel and the D2D are established by the manner as shown in FIG. 3-2. When the mapping relationship of the Discovery transmission channel SL-DCH is performed, steps S202 to S203 and S205 to S208 are executed.
S202:所述终端设备确定所述第一D2D通信数据的比特数是否小于等于第一预设阈值;其中,所述第一预设阈值小于等于所述D2D Discovery传输信道承载的最大比特数。S202: The terminal device determines whether the number of bits of the first D2D communication data is less than or equal to a first preset threshold; wherein the first preset threshold is less than or equal to the D2D The maximum number of bits carried by the Discovery transport channel.
当终端设备需要发送第一D2D通信数据时,在将第一D2D通信数据从应用层递交到TCP/UDP层、IP层进行处理后,终端设备将第一D2D通信数据递交到D2D直接通信模式的协议栈进行处理。在第一D2D通信数据进入D2D直接通信模式的协议栈后,终端设备确定第一D2D通信数据的比特数是否小于或等于第一预设阈值。其中,第一预设阈值不大于D2D Discovery传输信道承载的最大比特数。第一预设阈值可以为232比特,但并不限于此,还可以为其他值,此处不作限制。When the terminal device needs to send the first D2D communication data, after the first D2D communication data is delivered from the application layer to the TCP/UDP layer and the IP layer for processing, the terminal device delivers the first D2D communication data to the D2D direct communication mode. The protocol stack is processed. After the first D2D communication data enters the protocol stack of the D2D direct communication mode, the terminal device determines whether the number of bits of the first D2D communication data is less than or equal to a first preset threshold. Wherein, the first preset threshold is not greater than D2D The maximum number of bits carried by the Discovery transport channel. The first preset threshold may be 232 bits, but is not limited thereto, and may be other values, which are not limited herein.
当第一D2D通信数据的比特数小于或等于第一预设阈值时,执行步骤S203。When the number of bits of the first D2D communication data is less than or equal to the first preset threshold, step S203 is performed.
当第一D2D通信数据的比特数大于第一预设阈值时,执行步骤S204或S205。其中,当步骤S201中通过如图3-1所示的方式建立D2D业务逻辑信道与D2D Discovery传输信道SL-DCH的映射关系时,执行步骤S204;当步骤S201中通过如图3-2所示的方式建立D2D业务逻辑信道与D2D Discovery传输信道SL-DCH的映射关系时,执行步骤S205。When the number of bits of the first D2D communication data is greater than the first preset threshold, step S204 or S205 is performed. Wherein, in step S201, the D2D service logical channel and the D2D are established by the manner as shown in FIG. 3-1. When the mapping relationship of the Discovery transmission channel SL-DCH is performed, step S204 is performed; in step S201, the D2D service logical channel and the D2D are established by the manner as shown in FIG. 3-2. When the mapping relationship of the Discovery transport channel SL-DCH is performed, step S205 is performed.
S203:当所述第一D2D通信数据的比特数小于或等于所述第一预设阈值时,所述终端设备在所述媒体接入控制协议层将所述第一D2D通信数据映射到所述D2D Discovery传输信道,通过所述D2D Discovery传输信道传输所述第一D2D通信数据。S203: when the number of bits of the first D2D communication data is less than or equal to the first preset threshold, the terminal device maps the first D2D communication data to the at the medium access control protocol layer. D2D a Discovery transport channel that transmits the first D2D communication data over the D2D Discovery transport channel.
当终端设备确定第一D2D通信数据的比特数小于或等于第一预设阈值时,在第一D2D通信数据经过PDCP层以及RLC层处理后,将第一D2D通信数据递交到MAC层。其中,第一D2D通信数据在PDCP层以及RLC层的处理方法与现有技术相同,此处不赘述。When the terminal device determines that the number of bits of the first D2D communication data is less than or equal to the first preset threshold, after the first D2D communication data is processed by the PDCP layer and the RLC layer, the first D2D communication data is delivered to the MAC layer. The processing method of the first D2D communication data in the PDCP layer and the RLC layer is the same as that in the prior art, and details are not described herein.
终端设备根据MAC层中D2D业务逻辑信道与D2D Discovery传输信道的映射关系,在MAC层将第一D2D通信数据映射到D2D Discovery传输信道,以通过D2D Discovery传输信道将第一D2D通信数据从MAC层递交到物理层。当第一D2D通信数据递交到物理层后,通过D2D Discovery对应的传输资源传输第一D2D通信数据,从而将第一D2D通信数据发送给其他终端设备。The terminal device according to the D2D service logical channel and D2D in the MAC layer The mapping relationship of the Discovery transport channel, mapping the first D2D communication data to the D2D Discovery transport channel at the MAC layer to pass the D2D The Discovery transport channel delivers the first D2D communication data from the MAC layer to the physical layer. When the first D2D communication data is delivered to the physical layer, through D2D The transmission resource corresponding to Discovery transmits the first D2D communication data, thereby transmitting the first D2D communication data to other terminal devices.
S204:当所述第一D2D通信数据的比特数大于所述第一预设阈值时,所述终端设备将所述第一D2D通信数据映射到D2D共享传输信道,通过所述D2D共享传输信道传输所述第一D2D通信数据,其中,所述第一预设阈值小于等于所述D2D Discovery传输信道承载的最大比特数。S204: when the number of bits of the first D2D communication data is greater than the first preset threshold, the terminal device maps the first D2D communication data to a D2D shared transport channel, and transmits the data through the D2D shared transport channel. The first D2D communication data, wherein the first preset threshold is less than or equal to the D2D The maximum number of bits carried by the Discovery transport channel.
当终端设备在步骤S201中通过如图3-1所示的方式建立D2D业务逻辑信道与D2D Discovery传输信道SL-DCH的映射关系,并确定第一D2D通信数据的比特数大于第一预设阈值时,在第一D2D通信数据经过PDCP层以及RLC层处理,将第一D2D通信数据递交到MAC层后,根据MAC层中D2D业务逻辑信道与D2D 共享传输信道的映射关系,将第一D2D通信数据映射到D2D共享传输信道,通过D2D共享传输信道将第一D2D通信数据从MAC层递交到物理层。其中,第一预设阈值小于等于D2D Discovery传输信道承载的最大比特数。When the terminal device establishes the D2D service logical channel and the D2D in the manner shown in FIG. 3-1 in step S201. And discovering the mapping relationship between the Discovery transmission channel SL-DCH and determining that the number of bits of the first D2D communication data is greater than the first preset threshold, and processing the first D2D communication data to the first D2D communication data through the PDCP layer and the RLC layer to After the MAC layer, according to the D2D service logical channel and D2D in the MAC layer Sharing the mapping relationship of the transport channels, mapping the first D2D communication data to the D2D shared transport channel, and delivering the first D2D communication data from the MAC layer to the physical layer through the D2D shared transport channel. Wherein, the first preset threshold is less than or equal to D2D The maximum number of bits carried by the Discovery transport channel.
当第一D2D通信数据递交到物理层后,通过D2D通信数据对应的传输资源传输第一D2D通信数据,从而将第一D2D通信数据发送给其他终端设备。After the first D2D communication data is delivered to the physical layer, the first D2D communication data is transmitted through the transmission resource corresponding to the D2D communication data, thereby transmitting the first D2D communication data to other terminal devices.
S205:当所述第一D2D通信数据的比特数大于所述第一预设阈值时,所述终端设备在所述无线链路控制协议层将所述第一D2D通信数据至少分割为第二D2D通信数据和第三D2D通信数据;其中,所述第一预设阈值等于所述D2D Discovery传输信道承载的最大比特数,所述第二D2D通信数据的比特数小于等于所述第一预设阈值,所述第三D2D通信数据的比特数大于所述第二D2D通信数据的比特数。S205: When the number of bits of the first D2D communication data is greater than the first preset threshold, the terminal device divides the first D2D communication data into at least a second D2D at the radio link control protocol layer. Communication data and third D2D communication data; wherein the first preset threshold is equal to the D2D The maximum number of bits carried by the Discovery transport channel, the number of bits of the second D2D communication data is less than or equal to the first preset threshold, and the number of bits of the third D2D communication data is greater than the number of bits of the second D2D communication data .
当终端设备在步骤S201中通过如图3-2所示的方式建立D2D业务逻辑信道与D2D Discovery传输信道SL-DCH的映射关系,并确定第一D2D通信数据的比特数大于第一预设阈值时,终端设备将第一D2D通信数据经过PDCP层进行处理,并将第一D2D通信数据从PDCP层递交到RLC层。之后,终端设备在RLC层将第一D2D通信数据至少分割为第二D2D通信数据和第三D2D通信数据。其中,第二D2D通信数据的比特数小于等于第一预设阈值,第三D2D通信数据的比特数大于第二D2D通信数据的比特数。When the terminal device establishes the D2D service logical channel and the D2D in the manner shown in FIG. 3-2 in step S201. The discovery device transmits the mapping relationship of the channel SL-DCH, and determines that the number of bits of the first D2D communication data is greater than the first preset threshold, the terminal device processes the first D2D communication data through the PDCP layer, and processes the first D2D communication data from the first D2D communication data. The PDCP layer is submitted to the RLC layer. Thereafter, the terminal device divides the first D2D communication data into at least the second D2D communication data and the third D2D communication data at the RLC layer. The number of bits of the second D2D communication data is less than or equal to a first preset threshold, and the number of bits of the third D2D communication data is greater than the number of bits of the second D2D communication data.
S206:所述终端设备确定所述第三D2D通信数据的比特数是否大于第二预设阈值;其中,所述第二预设阈值为所述D2D共享传输信道承载的最大比特数。S206: The terminal device determines whether the number of bits of the third D2D communication data is greater than a second preset threshold; wherein the second preset threshold is a maximum number of bits carried by the D2D shared transport channel.
当终端设备在RLC层将第一D2D通信数据至少分割为第二D2D通信数据和第三D2D通信数据之后,进一步确定第三D2D通信数据是否大于第二预设阈值。其中,第二预设阈值为D2D共享传输信道承载的最大比特数。After the terminal device divides the first D2D communication data into the second D2D communication data and the third D2D communication data at the RLC layer, it is further determined whether the third D2D communication data is greater than a second preset threshold. The second preset threshold is the maximum number of bits carried by the D2D shared transport channel.
当第三D2D通信数据的比特数大于第二预设阈值时,执行步骤S207;当第三D2D通信数据小于或等于第二预设阈值时,执行步骤S208。When the number of bits of the third D2D communication data is greater than the second preset threshold, step S207 is performed; when the third D2D communication data is less than or equal to the second preset threshold, step S208 is performed.
S207:当所述第三D2D通信数据的比特数大于第二预设阈值时,所述终端设备在所述无线链路控制协议层将所述第三D2D通信数据进行分割,其中,分割后的每份D2D通信数据的比特数均小于等于所述第二预设阈值,所述第二D2D通信数据包括所述第三D2D通信数据的调度信息,所述调度信息用于指示所述第三D2D通信数据使用的时频资源的信息。S207: when the number of bits of the third D2D communication data is greater than a second preset threshold, the terminal device segments the third D2D communication data at the radio link control protocol layer, where the divided The number of bits of each D2D communication data is less than or equal to the second preset threshold, the second D2D communication data includes scheduling information of the third D2D communication data, and the scheduling information is used to indicate the third D2D Information on time-frequency resources used by communication data.
当终端设备确定第三D2D通信数据大于第二预设阈值时,在RLC层将第四D2D通信数据再次进行分割。When the terminal device determines that the third D2D communication data is greater than the second preset threshold, the fourth D2D communication data is split again at the RLC layer.
其中,分割后的每份D2D通信数据的比特数均小于或等于第二阈值,以使D2D共享传输信道能够承载分割后的每份D2D通信数据。第二D2D通信数据包括第三D2D通信数据的调度信息,调度信息用于指示第三D2D通信数据使用的时频资源的信息。The number of bits of each D2D communication data after the division is less than or equal to the second threshold, so that the D2D shared transmission channel can carry the divided D2D communication data. The second D2D communication data includes scheduling information of the third D2D communication data, and the scheduling information is used to indicate information of a time-frequency resource used by the third D2D communication data.
可以理解的是,当第三D2D通信数据小于或等于第二预设阈值时,第二D2D通信数据不包括第三D2D通信数据的调度信息。It can be understood that when the third D2D communication data is less than or equal to the second preset threshold, the second D2D communication data does not include the scheduling information of the third D2D communication data.
S208:在所述媒体接入控制协议层将所述第二D2D通信数据映射到所述D2D Discovery传输信道;以及在所述媒体接入控制协议层将所述第三D2D通信数据映射到所述D2D共享传输信道。S208: Mapping the second D2D communication data to the D2D at the medium access control protocol layer a Discovery transport channel; and mapping the third D2D communication data to the D2D shared transport channel at the medium access control protocol layer.
当第三D2D通信数据小于或等于第二阈值时,第一D2D通信数据被分割为第二D2D通信数据和第三D2D通信数据,第二D2D通信数据不包括第三D2D通信数据的调度信息。When the third D2D communication data is less than or equal to the second threshold, the first D2D communication data is divided into the second D2D communication data and the third D2D communication data, and the second D2D communication data does not include the scheduling information of the third D2D communication data.
终端设备在将第二D2D通信数据以及第三D2D通信数据从RLC层递交到MAC层后,根据MAC层中D2D业务逻辑信道与D2D Discovery传输信道的映射关系,在MAC层将第二D2D通信数据映射到D2D Discovery传输信道;以及根据MAC层中D2D业务逻辑信道与D2D共享传输信道的映射关系,将第三D2D通信数据映射到D2D共享传输信道。After the terminal device delivers the second D2D communication data and the third D2D communication data from the RLC layer to the MAC layer, according to the D2D service logical channel and the D2D in the MAC layer Mapping of Discovery transport channels, mapping second D2D communication data to D2D at the MAC layer a Discovery transport channel; and mapping the third D2D communication data to the D2D shared transport channel according to a mapping relationship between the D2D service logical channel and the D2D shared transport channel in the MAC layer.
在终端设备将第三D2D通信数据映射到D2D Discovery传输信道后,在MAC层对第二D2D通信数据添加源地址以及目的地址,并通过D2D Discovery传输信道将第二D2D通信数据从MAC层递交到物理层。其中,源地址用于标识发送第二D2D通信数据的终端设备的MAC地址,目的地址用于标识接收第二D2D通信数据的终端设备的MAC地址。Mapping third D2D communication data to D2D at the terminal device After the Discovery transport channel, the source address and the destination address are added to the second D2D communication data at the MAC layer, and the D2D is passed. The Discovery transport channel delivers the second D2D communication data from the MAC layer to the physical layer. The source address is used to identify the MAC address of the terminal device that sends the second D2D communication data, and the destination address is used to identify the MAC address of the terminal device that receives the second D2D communication data.
可选地,在终端设备将第二D2D通信数据映射到D2D Discovery传输信道后,终端设备还可以在第二D2D通信数据的MAC数据包头中添加专用逻辑信道标识,该专用逻辑信道标识用于标识D2D Discovery传输信道传输的D2D通信数据,该专用逻辑信道标识可以为一个字节。其中,该专用逻辑信道标识便于终端设备区分D2D通信数据是通过D2D Discovery传输信道进行传输还是通过D2D共享传输信道进行传输。Optionally, mapping the second D2D communication data to the D2D at the terminal device After the Discovery transport channel, the terminal device may further add a dedicated logical channel identifier in the MAC data packet header of the second D2D communication data, where the dedicated logical channel identifier is used to identify the D2D. The D2D communication data transmitted by the Discovery transport channel, which may be one byte. The dedicated logical channel identifier facilitates the terminal device to distinguish D2D communication data by using D2D. Whether the Discovery transport channel is transmitted or transmitted through the D2D shared transport channel.
当第二D2D通信数据递交到物理层后,通过D2D Discovery对应的传输资源传输第二D2D通信数据,从而将第二D2D通信数据发送给其他终端设备。When the second D2D communication data is delivered to the physical layer, through the D2D The transmission resource corresponding to Discovery transmits the second D2D communication data, thereby transmitting the second D2D communication data to other terminal devices.
在终端设备将第三D2D通信数据映射到D2D共享传输信道后,终端设备在MAC层对第三D2D通信数据添加源地址以及目的地址,并通过D2D共享传输信道将第三D2D通信数据从MAC层递交到物理层。其中,源地址用于标识发送第三D2D通信数据的终端设备的MAC地址,目的地址用于标识接收第三D2D通信数据的终端设备的MAC地址。After the terminal device maps the third D2D communication data to the D2D shared transport channel, the terminal device adds a source address and a destination address to the third D2D communication data at the MAC layer, and sends the third D2D communication data from the MAC layer through the D2D shared transport channel. Submitted to the physical layer. The source address is used to identify the MAC address of the terminal device that sends the third D2D communication data, and the destination address is used to identify the MAC address of the terminal device that receives the third D2D communication data.
当第三D2D通信数据递交到物理层后,通过D2D通信数据对应的传输资源传输第三D2D通信数据,从而将第三D2D通信数据发送给其他终端设备。可以理解的是,此时第二D2D通信数据与第三D2D通信数据可以是同时传输的。After the third D2D communication data is delivered to the physical layer, the third D2D communication data is transmitted through the transmission resource corresponding to the D2D communication data, thereby transmitting the third D2D communication data to the other terminal device. It can be understood that the second D2D communication data and the third D2D communication data can be simultaneously transmitted at this time.
当第三D2D通信数据大于第二预设阈值时,在终端设备执行完步骤S207之后,第一D2D通信数据被分割为第二D2D通信数据和第三D2D通信数据,第三D2D通信数据又被分割为至少两份D2D通信数据,第二D2D通信数据包括第三D2D通信数据的调度信息。When the third D2D communication data is greater than the second preset threshold, after the terminal device performs step S207, the first D2D communication data is divided into the second D2D communication data and the third D2D communication data, and the third D2D communication data is again Divided into at least two pieces of D2D communication data, the second D2D communication data includes scheduling information of the third D2D communication data.
终端设备在将第二D2D通信数据以及第三D2D通信数据从RLC层递交到MAC层后,根据MAC层中D2D业务逻辑信道与D2D Discovery传输信道的映射关系,在MAC层将第二D2D通信数据映射到D2D Discovery传输信道;以及根据MAC层中D2D业务逻辑信道与D2D 共享传输信道的映射关系,将第三D2D通信数据包含的每份D2D通信数据映射到D2D共享传输信道。After the terminal device delivers the second D2D communication data and the third D2D communication data from the RLC layer to the MAC layer, according to the D2D service logical channel and the D2D in the MAC layer The mapping relationship of the Discovery transport channel, mapping the second D2D communication data to the D2D Discovery transport channel at the MAC layer; and the D2D service logical channel and D2D according to the MAC layer The mapping relationship of the shared transport channel is mapped to each D2D communication data included in the third D2D communication data to the D2D shared transport channel.
终端设备在将第三D2D通信数据映射到D2D共享传输信道后,在MAC层对第二D2D通信数据添加源地址以及目的地址,并通过D2D Discovery传输信道将第二D2D通信数据从MAC层递交到物理层。其中,源地址用于标识发送第二D2D通信数据的终端设备的MAC地址,目的地址用于标识接收第二D2D通信数据的终端设备的MAC地址。After mapping the third D2D communication data to the D2D shared transport channel, the terminal device adds the source address and the destination address to the second D2D communication data at the MAC layer, and passes the D2D. The Discovery transport channel delivers the second D2D communication data from the MAC layer to the physical layer. The source address is used to identify the MAC address of the terminal device that sends the second D2D communication data, and the destination address is used to identify the MAC address of the terminal device that receives the second D2D communication data.
可选地,在终端设备将第二D2D通信数据映射到D2D Discovery传输信道后,终端设备还可以在第二D2D通信数据的MAC数据包头中添加专用逻辑信道标识,该专用逻辑信道标识用于标识D2D Discovery传输信道传输的D2D通信数据,该专用逻辑信道标识可以为一个字节。其中,该专用逻辑信道标识便于终端设备区分D2D通信数据是通过D2D Discovery传输信道进行传输还是通过D2D共享传输信道进行传输。Optionally, mapping the second D2D communication data to the D2D at the terminal device After the Discovery transport channel, the terminal device may further add a dedicated logical channel identifier in the MAC data packet header of the second D2D communication data, where the dedicated logical channel identifier is used to identify the D2D. The D2D communication data transmitted by the Discovery transport channel, which may be one byte. The dedicated logical channel identifier facilitates the terminal device to distinguish D2D communication data by using D2D. Whether the Discovery transport channel is transmitted or transmitted through the D2D shared transport channel.
终端设备将第三D2D通信数据包含的每份D2D通信数据映射到D2D共享传输信道后,在MAC层对第三D2D通信数据包含的每份D2D通信数据分别添加源地址以及目的地址,并通过D2D共享传输信道将第三D2D通信数据从MAC层递交到物理层。其中,源地址用于分别标识发送第三D2D通信数据包含的每份D2D通信数据的终端设备的MAC地址,目的地址用于标识接收第三D2D通信数据包含的每份D2D通信数据的终端设备的MAC地址。After mapping the D2D communication data included in the third D2D communication data to the D2D shared transmission channel, the terminal device adds a source address and a destination address to each D2D communication data included in the third D2D communication data at the MAC layer, and passes the D2D. The shared transport channel delivers the third D2D communication data from the MAC layer to the physical layer. The source address is used to respectively identify a MAC address of a terminal device that sends each D2D communication data included in the third D2D communication data, and the destination address is used to identify a terminal device that receives each D2D communication data included in the third D2D communication data. MAC address.
请一并参阅图5,图5是本申请利用不同物理资源传输Discovery消息和D2D通信数据一实施例的示意图。当第二D2D通信数据递交到物理层后,通过D2D Discovery对应的传输资源传输第二D2D通信数据,从而将第二D2D通信数据发送给其他终端设备。第二D2D通信数据包括第三D2D通信数据的调度信息,该调度信息用于指示第三D2D通信数据使用的时频资源的信息。Please refer to FIG. 5. FIG. 5 is a schematic diagram of an embodiment of the present application for transmitting a Discovery message and D2D communication data by using different physical resources. When the second D2D communication data is delivered to the physical layer, through the D2D The transmission resource corresponding to Discovery transmits the second D2D communication data, thereby transmitting the second D2D communication data to other terminal devices. The second D2D communication data includes scheduling information of the third D2D communication data, the scheduling information being used to indicate information of a time-frequency resource used by the third D2D communication data.
当第三D2D通信数据递交到物理层后,终端设备还根据第二D2D通信数据包含的第三D2D通信数据的调度信息,获取第三D2D通信数据中每份D2D通信数据对应的传输资源,并通过每份D2D通信数据对应的传输资源分别传输第三D2D通信数据包含的每份D2D通信数据,从而将第三D2D通信数据发送给其他终端设备。After the third D2D communication data is delivered to the physical layer, the terminal device further acquires, according to the scheduling information of the third D2D communication data included in the second D2D communication data, the transmission resource corresponding to each D2D communication data in the third D2D communication data, and Each D2D communication data included in the third D2D communication data is separately transmitted through the transmission resource corresponding to each D2D communication data, thereby transmitting the third D2D communication data to other terminal devices.
可以理解的是,此时第二D2D通信数据与第三D2D通信数据中的第一份D2D通信数据可以是同时传输的。第三D2D通信数据包含的每份D2D通信数据是依次分别传输的。It can be understood that the first D2D communication data in the second D2D communication data and the third D2D communication data may be simultaneously transmitted. Each D2D communication data included in the third D2D communication data is sequentially transmitted separately.
上述方案,终端设备直接在MAC层建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系,当确定第一D2D通信数据小于等于第一预设阈值,将第一D2D通信数据映射到D2D Discovery传输信道,通过D2D Discovery传输信道传输第一D2D通信数据,通过D2D Discovery传输资源传输D2D通信数据,解决了现有技术中无法通过D2D Discovery传输信道承载D2D通信数据的技术问题,能够提高数据信道的传输效率,提高LTE网络的整体资源利用率。In the above solution, the terminal device directly establishes a D2D service logical channel and D2D at the MAC layer. The mapping relationship of the Discovery transmission channel, when determining that the first D2D communication data is less than or equal to the first preset threshold, mapping the first D2D communication data to the D2D Discovery transmission channel, and passing the D2D The Discovery transmission channel transmits the first D2D communication data, and transmits the D2D communication data through the D2D Discovery transmission resource, which solves the problem that the prior art cannot pass the D2D. The technical problem that the Discovery transmission channel carries D2D communication data can improve the transmission efficiency of the data channel and improve the overall resource utilization of the LTE network.
当第一D2D通信数据大于第一预设阈值时,将第一D2D通信数据映射到D2D共享传输信道,通过D2D共享传输信道传输第一D2D通信数据。When the first D2D communication data is greater than the first preset threshold, the first D2D communication data is mapped to the D2D shared transmission channel, and the first D2D communication data is transmitted through the D2D shared transmission channel.
进一步地,当第一D2D通信数据大于第一预设阈值时,还可以将第一D2D通信分割为第二D2D通信数据以及第三D2D通信数据,通过D2D Discovery传输信道传输第二D2D通信数据,通过D2D共享传输信道传输第一D2D通信数据;当第三D2D通信数据大于第二预设阈值时,还可以通过第二D2D通信数据调度第三D2D通信数据进行传输。Further, when the first D2D communication data is greater than the first preset threshold, the first D2D communication may be further divided into the second D2D communication data and the third D2D communication data by using the D2D The Discovery transmission channel transmits the second D2D communication data, and transmits the first D2D communication data through the D2D shared transmission channel; when the third D2D communication data is greater than the second preset threshold, the third D2D communication data may also be scheduled by using the second D2D communication data. Transfer.
请参阅图6,图6是本申请数据传输方法再一实施例的流程图。本实施例的执行主体为终端设备,终端设备为用户终端设备(User Equipment,UE),其中,UE可以为手机等移动终端设备。两个UE可以直接通信传输数据。Please refer to FIG. 6. FIG. 6 is a flowchart of still another embodiment of the data transmission method of the present application. The execution entity of this embodiment is a terminal device, and the terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data.
本实施例与上一实施例建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系的方法不同。本实施例与上一实施例的区别在于步骤S301、S303~S306、S308,以及增加源地址和目的地址的方法于上一实施例不同。其中,在上一实施例中,终端设备将第一D2D通信数据映射到D2D Discovery传输信道或D2D共享传输信道后,在MAC层增加源地址、目的地址以及专用逻辑信道标识;本实施例是在映射第一D2D通信数据之前,在RLC层增加源地址、目的地址以及专用逻辑信道标识。This embodiment establishes a D2D service logical channel and D2D with the previous embodiment. The method of discovering the mapping relationship of the Discovery channel is different. The difference between this embodiment and the previous embodiment is that steps S301, S303~S306, S308, and the method of adding the source address and the destination address are different in the previous embodiment. Wherein, in the previous embodiment, the terminal device maps the first D2D communication data to the D2D After the Discovery transport channel or the D2D shared transport channel, the source address, the destination address, and the dedicated logical channel identifier are added at the MAC layer. In this embodiment, the source address, the destination address, and the dedicated logic are added at the RLC layer before mapping the first D2D communication data. Channel identification.
本实施例的数据传输方法包括如下步骤:The data transmission method of this embodiment includes the following steps:
S301:终端设备在无线链路控制协议层和ProSe协议栈之间设置映射接口,建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系。S301: The terminal device sets a mapping interface between the radio link control protocol layer and the ProSe protocol stack, and establishes a D2D service logical channel and D2D. The mapping relationship of the Discovery transport channel.
请一并参阅图7,图7是本申请中建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系另一实施例的示意图。Please refer to FIG. 7 together. FIG. 7 is a D2D service logical channel and D2D established in the present application. A schematic diagram of another embodiment of a mapping relationship of Discovery transport channels.
如图7所示,终端设备在无线链路控制协议层和ProSe协议栈之间设置映射接口,建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系。其中,D2D业务逻辑信道处于RLC层。As shown in FIG. 7, the terminal device sets a mapping interface between the radio link control protocol layer and the ProSe protocol stack, and establishes a D2D service logical channel and D2D. The mapping relationship of the Discovery transport channel. The D2D service logical channel is in the RLC layer.
当终端设备发送ProSe协议栈生成的Discovery消息时,按现有技术中的处理流程进行处理,此处不赘述。When the terminal device sends the Discovery message generated by the ProSe protocol stack, the processing is performed according to the processing flow in the prior art, and details are not described herein.
当终端设备发送D2D通信数据,执行步骤S302~S204或步骤S302~S303以及S305~S308。When the terminal device transmits the D2D communication data, steps S302 to S204 or steps S302 to S303 and S305 to S308 are performed.
其中,D2D通信数据包括音频数据、视频数据等,D2D通信数据由应用层产生,经经TCP/UDP层、IP层处理后,进入D2D直接通信模式的协议栈进行处理。The D2D communication data includes audio data, video data, and the like. The D2D communication data is generated by the application layer, and after being processed by the TCP/UDP layer and the IP layer, the D2D direct communication mode protocol stack is processed.
S302:所述通信设备确定所述第一D2D通信数据的比特数是否小于等于第一预设阈值;其中,所述第一预设阈值小于等于所述D2D Discovery传输信道承载的最大比特数。S302: The communication device determines whether the number of bits of the first D2D communication data is less than or equal to a first preset threshold; wherein the first preset threshold is less than or equal to the D2D The maximum number of bits carried by the Discovery transport channel.
步骤S302与上一实施例的步骤S202相同,请参阅上一实施例中的步骤S202中的相关描述,此处不赘述。The step S302 is the same as the step S202 in the previous embodiment. Please refer to the related description in step S202 in the previous embodiment, and details are not described herein.
当终端设备确定第一D2D通信数据的比特数小于或等于第一预设阈值时,执行步骤执行步骤S303。When the terminal device determines that the number of bits of the first D2D communication data is less than or equal to the first preset threshold, performing step S303 is performed.
当终端设备确定第一D2D通信数据的比特数大于第一预设阈值时,执行步骤S304或S305。其中,当第一预设阈值小于等于D2D Discovery传输信道承载的最大比特数时,执行步骤S304,当第一预设阈值等于D2D Discovery传输信道承载的最大比特数时,执行步骤S305。When the terminal device determines that the number of bits of the first D2D communication data is greater than the first preset threshold, step S304 or S305 is performed. Wherein, when the first preset threshold is less than or equal to D2D When the maximum number of bits carried by the Discovery transmission channel is performed, step S304 is performed, when the first preset threshold is equal to D2D. When the maximum number of bits carried by the Discovery transport channel is performed, step S305 is performed.
S303:当所述第一D2D通信数据的比特数小于或等于所述第一预设阈值时,通过所述映射接口将所述第一D2D通信数据递交到所述ProSe协议栈,在所述媒体接入控制协议层将所述第一D2D通信数据映射到所述D2D Discovery传输信道,并通过所述D2D Discovery传输信道传输所述第一D2D通信数据。S303: When the number of bits of the first D2D communication data is less than or equal to the first preset threshold, submit the first D2D communication data to the ProSe protocol stack by using the mapping interface, where the media An access control protocol layer maps the first D2D communication data to the D2D Discovery transmits a channel and transmits the first D2D communication data through the D2D Discovery transmission channel.
当终端设备确定第一D2D通信数据的比特数小于或等于第一预设阈值时,终端设备将第一D2D通信数据从PDCP层处理递交到RLC层。When the terminal device determines that the number of bits of the first D2D communication data is less than or equal to the first preset threshold, the terminal device delivers the first D2D communication data from the PDCP layer processing to the RLC layer.
终端设备在RLC层对第一D2D通信数据添加源地址和目的地址。其中,源地址用于标识发送第一D2D通信数据的终端设备的MAC地址,目的地址用于标识接收第一D2D通信数据的终端设备的MAC地址。The terminal device adds a source address and a destination address to the first D2D communication data at the RLC layer. The source address is used to identify the MAC address of the terminal device that sends the first D2D communication data, and the destination address is used to identify the MAC address of the terminal device that receives the first D2D communication data.
可选地,在终端设备还可以在RLC层在第一D2D通信数据的MAC数据包头中添加专用逻辑信道标识,该专用逻辑信道标识用于标识D2D Discovery传输信道传输的D2D通信数据,该专用逻辑信道标识可以为一个字节。其中,该专用逻辑信道标识便于终端设备区分D2D通信数据是通过D2D Discovery传输信道进行传输还是通过D2D共享传输信道进行传输。Optionally, the terminal device may further add a dedicated logical channel identifier in the MAC data packet header of the first D2D communication data at the RLC layer, where the dedicated logical channel identifier is used to identify the D2D. The D2D communication data transmitted by the Discovery transport channel, which may be one byte. The dedicated logical channel identifier facilitates the terminal device to distinguish D2D communication data by using D2D. Whether the Discovery transport channel is transmitted or transmitted through the D2D shared transport channel.
之后,终端设备通过RLC层和ProSe协议栈之间的映射接口,将第一D2D通信数据从RLC层映射到ProSe协议栈。当终端设备将第一D2D通信数据从ProSe协议栈递交到MAC层后,终端设备根据ProSe协议栈与D2D Discovery传输信道的映射关系,在MAC层将第一D2D通信数据映射到D2D Discovery传输信道,并通过D2D Discovery传输信道将第一D2D通信数据递交到物理层。Thereafter, the terminal device maps the first D2D communication data from the RLC layer to the ProSe protocol stack through a mapping interface between the RLC layer and the ProSe protocol stack. After the terminal device delivers the first D2D communication data from the ProSe protocol stack to the MAC layer, the terminal device according to the ProSe protocol stack and the D2D The mapping relationship of the Discovery transport channel, mapping the first D2D communication data to the D2D Discovery transport channel at the MAC layer, and passing the D2D The Discovery transport channel delivers the first D2D communication data to the physical layer.
当第一D2D通信数据递交到物理层后,通过D2D Discovery对应的传输资源传输第一D2D通信数据,从而将第一D2D通信数据发送给其他终端设备。When the first D2D communication data is delivered to the physical layer, through D2D The transmission resource corresponding to Discovery transmits the first D2D communication data, thereby transmitting the first D2D communication data to other terminal devices.
S304:当所述第一D2D通信数据的比特数大于所述第一预设阈值时,所述终端设备将所述第一D2D通信数据映射到D2D共享传输信道,通过所述D2D共享传输信道传输所述D2D通信数据,其中,所述第一预设阈值小于等于所述D2D Discovery传输信道承载的最大比特数。S304: when the number of bits of the first D2D communication data is greater than the first preset threshold, the terminal device maps the first D2D communication data to a D2D shared transport channel, and transmits the data through the D2D shared transport channel. The D2D communication data, wherein the first preset threshold is less than or equal to the D2D The maximum number of bits carried by the Discovery transport channel.
当终端设备确定D2D Discovery传输信道不能承载大于第一预设阈值的第一D2D通信数据时,在终端设备确定第一D2D通信数据的比特数大于第一预设阈值后,终端设备在RLC层对第一D2D通信数据添加源地址和目的地址。其中,第一预设阈值小于等于D2D Discovery传输信道承载的最大比特数,源地址用于标识发送第一D2D通信数据的终端设备的MAC地址,目的地址用于标识接收第一D2D通信数据的终端设备的MAC地址。When the terminal device determines D2D When the Discovery transmission channel cannot carry the first D2D communication data that is greater than the first preset threshold, after the terminal device determines that the number of bits of the first D2D communication data is greater than the first preset threshold, the terminal device pairs the first D2D communication data at the RLC layer. Add source and destination addresses. Wherein, the first preset threshold is less than or equal to D2D The maximum number of bits carried by the Discovery transport channel. The source address is used to identify the MAC address of the terminal device that sends the first D2D communication data, and the destination address is used to identify the MAC address of the terminal device that receives the first D2D communication data.
之后,终端设备将第一D2D通信数据递交到MAC层,并根据MAC层中D2D业务逻辑信道与D2D共享传输信道的映射关系,将第一D2D通信数据映射到D2D共享传输信道,通过D2D共享传输信道将第一D2D通信数据从MAC层递交到物理层。Afterwards, the terminal device delivers the first D2D communication data to the MAC layer, and maps the first D2D communication data to the D2D shared transport channel according to the mapping relationship between the D2D service logical channel and the D2D shared transport channel in the MAC layer, and transmits the data through the D2D shared transmission. The channel delivers the first D2D communication data from the MAC layer to the physical layer.
当第一D2D通信数据递交到物理层后,通过D2D通信数据对应的传输资源传输第一D2D通信数据,从而将第一D2D通信数据发送给其他终端设备。After the first D2D communication data is delivered to the physical layer, the first D2D communication data is transmitted through the transmission resource corresponding to the D2D communication data, thereby transmitting the first D2D communication data to other terminal devices.
S305:当所述第一D2D通信数据的比特数大于所述第一预设阈值时,所述终端设备在所述无线链路控制协议层将所述第一D2D通信数据至少分割为第二D2D通信数据和第三D2D通信数据;其中,所述第一预设阈值等于所述D2D Discovery传输信道承载的最大比特数,所述第二D2D通信数据的比特数小于等于所述第一预设阈值,所述第三D2D通信数据的比特数大于所述第二D2D通信数据的比特数。S305: when the number of bits of the first D2D communication data is greater than the first preset threshold, the terminal device divides the first D2D communication data into at least a second D2D at the radio link control protocol layer. Communication data and third D2D communication data; wherein the first preset threshold is equal to the D2D The maximum number of bits carried by the Discovery transport channel, the number of bits of the second D2D communication data is less than or equal to the first preset threshold, and the number of bits of the third D2D communication data is greater than the number of bits of the second D2D communication data .
当终端设备确定D2D Discovery传输信道不能承载大于第一预设阈值的第一D2D通信数据,终端设备在确定第一D2D通信数据的比特数大于第一预设阈值时,终端设备将第一D2D通信数据经过PDCP层进行处理,并将第一D2D通信数据从PDCP层递交到RLC层。之后,终端设备在RLC层将第一D2D通信数据至少分割为第二D2D通信数据和第三D2D通信数据。其中,第二D2D通信数据的比特数小于等于第一预设阈值,第三D2D通信数据的比特数大于第二D2D通信数据的比特数。When the terminal device determines D2D The Discovery transmission channel cannot carry the first D2D communication data that is greater than the first preset threshold. When the terminal device determines that the number of bits of the first D2D communication data is greater than the first preset threshold, the terminal device passes the first D2D communication data to the PDCP layer. Processing and delivering the first D2D communication data from the PDCP layer to the RLC layer. Thereafter, the terminal device divides the first D2D communication data into at least the second D2D communication data and the third D2D communication data at the RLC layer. The number of bits of the second D2D communication data is less than or equal to a first preset threshold, and the number of bits of the third D2D communication data is greater than the number of bits of the second D2D communication data.
S306:所述终端设备确定所述第三D2D通信数据是否大于第二预设阈值;其中,所述第二预设阈值为所述D2D共享传输信道承载的最大比特数。S306: The terminal device determines whether the third D2D communication data is greater than a second preset threshold; wherein the second preset threshold is a maximum number of bits carried by the D2D shared transport channel.
步骤S306与上一实施例中的步骤S206相同,具体请参阅上一实施例中S206的相关描述,此处不赘述。The step S306 is the same as the step S206 in the previous embodiment. For details, refer to the related description of S206 in the previous embodiment, and details are not described herein.
当第三D2D通信数据大于第二预设阈值时,执行步骤S307;当第三D2D通信数据小于或等于第二预设阈值时,执行步骤S308。When the third D2D communication data is greater than the second preset threshold, step S307 is performed; when the third D2D communication data is less than or equal to the second preset threshold, step S308 is performed.
S307:当所述第三D2D通信数据大于第二预设阈值时,所述终端设备在所述无线链路控制协议层将所述第三D2D通信数据进行分割,其中,分割后的每份D2D通信数据的比特数均小于等于所述第二预设阈值,所述第二D2D通信数据包括所述第三D2D通信数据的调度信息,所述调度信息用于指示所述第三D2D通信数据使用的时频资源的信息。S307: When the third D2D communication data is greater than a second preset threshold, the terminal device divides the third D2D communication data in the radio link control protocol layer, where each divided D2D is divided. The number of bits of the communication data is less than or equal to the second preset threshold, the second D2D communication data includes scheduling information of the third D2D communication data, and the scheduling information is used to indicate that the third D2D communication data is used. Information on time-frequency resources.
步骤S307与上一实施例中的步骤S207相同,具体请参阅上一实施例中S207的相关描述,此处不赘述。The step S307 is the same as the step S207 in the previous embodiment. For details, refer to the related description of S207 in the previous embodiment, and details are not described herein.
S308:通过所述映射接口将所述第二D2D通信数据递交到所述ProSe协议栈;以及在所述媒体接入控制协议层将所述第三D2D通信数据映射到所述D2D共享传输信道。S308: Submit the second D2D communication data to the ProSe protocol stack by using the mapping interface, and map the third D2D communication data to the D2D shared transport channel at the medium access control protocol layer.
当第三D2D通信数据小于或等于第二阈值时,第一D2D通信数据被分割为第二D2D通信数据和第三D2D通信数据,第二D2D通信数据不包括第三D2D通信数据的调度信息。When the third D2D communication data is less than or equal to the second threshold, the first D2D communication data is divided into the second D2D communication data and the third D2D communication data, and the second D2D communication data does not include the scheduling information of the third D2D communication data.
终端设备在RLC层对第二D2D通信数据以及第三通信数据添加源地址和目的地址。其中,源地址用于标识发送第三D2D通信数据、第四通信数据的终端设备的MAC地址,目的地址用于标识接收第三D2D通信数据、第四通信数据的终端设备的MAC地址。The terminal device adds a source address and a destination address to the second D2D communication data and the third communication data at the RLC layer. The source address is used to identify the MAC address of the terminal device that sends the third D2D communication data and the fourth communication data, and the destination address is used to identify the MAC address of the terminal device that receives the third D2D communication data and the fourth communication data.
可选地,终端设备在RLC层将第一D2D通信数据分割为第三D2D通信数据和第四D2D通信数据之后,终端设备还可以在RLC层在第二D2D通信数据的MAC数据包头中添加专用逻辑信道标识,该专用逻辑信道标识用于标识D2D Discovery传输信道传输的D2D通信数据,该专用逻辑信道标识可以为一个字节。其中,该专用逻辑信道标识便于终端设备区分第二D2D通信数据是通过D2D Discovery传输信道进行传输还是通过D2D共享传输信道进行传输。Optionally, after the terminal device divides the first D2D communication data into the third D2D communication data and the fourth D2D communication data, the terminal device may further add a dedicated in the MAC data packet header of the second D2D communication data at the RLC layer. Logical channel identifier, which is used to identify D2D The D2D communication data transmitted by the Discovery transport channel, which may be one byte. The dedicated logical channel identifier facilitates the terminal device to distinguish the second D2D communication data by using D2D. Whether the Discovery transport channel is transmitted or transmitted through the D2D shared transport channel.
之后,终端设备通过RLC层和ProSe协议栈之间的映射接口,将第二D2D通信数据从RLC层映射到ProSe协议栈;以及将第三D2D通信数据从RLC层递交到MAC层。Thereafter, the terminal device maps the second D2D communication data from the RLC layer to the ProSe protocol stack through a mapping interface between the RLC layer and the ProSe protocol stack; and delivers the third D2D communication data from the RLC layer to the MAC layer.
当终端设备将第二D2D通信数据从ProSe协议栈递交到MAC层后,终端设备根据ProSe协议栈与D2D Discovery传输信道的映射关系,在MAC层将第二D2D通信数据映射到D2D Discovery传输信道,并通过D2D Discovery传输信道将第二D2D通信数据递交到物理层。当第二D2D通信数据递交到物理层后,通过D2D Discovery对应的传输资源传输第二D2D通信数据,从而将第二D2D通信数据发送给其他终端设备。After the terminal device delivers the second D2D communication data from the ProSe protocol stack to the MAC layer, the terminal device according to the ProSe protocol stack and the D2D The mapping relationship of the Discovery transport channel, mapping the second D2D communication data to the D2D Discovery transport channel at the MAC layer, and passing the D2D The Discovery transport channel delivers the second D2D communication data to the physical layer. When the second D2D communication data is delivered to the physical layer, through the D2D The transmission resource corresponding to Discovery transmits the second D2D communication data, thereby transmitting the second D2D communication data to other terminal devices.
当终端设备将第三D2D通信数据从RLC层递交到MAC层后,根据MAC层中D2D业务逻辑信道与D2D共享传输信道的映射关系,在MAC层将第三D2D通信数据映射到D2D共享传输信道,并通过D2D共享传输信道将第三D2D通信数据递交到物理层。当第三D2D通信数据递交到物理层后,通过D2D通信数据对应的传输资源传输第三D2D通信数据,从而将第三D2D通信数据发送给其他终端设备。After the terminal device delivers the third D2D communication data from the RLC layer to the MAC layer, mapping the third D2D communication data to the D2D shared transport channel at the MAC layer according to the mapping relationship between the D2D service logical channel and the D2D shared transport channel in the MAC layer. And delivering the third D2D communication data to the physical layer through the D2D shared transport channel. After the third D2D communication data is delivered to the physical layer, the third D2D communication data is transmitted through the transmission resource corresponding to the D2D communication data, thereby transmitting the third D2D communication data to the other terminal device.
当第三D2D通信数据大于第二预设阈值时,在终端设备执行完步骤S307之后,第一D2D通信数据被分割为第二D2D通信数据和第三D2D通信数据,第三D2D通信数据又被分割为至少两份D2D通信数据,第二D2D通信数据包括第三D2D通信数据的调度信息。When the third D2D communication data is greater than the second preset threshold, after the terminal device performs step S307, the first D2D communication data is divided into the second D2D communication data and the third D2D communication data, and the third D2D communication data is again Divided into at least two pieces of D2D communication data, the second D2D communication data includes scheduling information of the third D2D communication data.
终端设备在RLC层分别对第二D2D通信数据以及第三通信数据包含的每份D2D通信数据添加源地址和目的地址。其中,源地址用于标识发送第二D2D通信数据、第三通信数据包含的每份D2D通信数据的终端设备的MAC地址,目的地址用于标识接收第二D2D通信数据、第三通信数据包含的每份D2D通信数据的终端设备的MAC地址。The terminal device adds a source address and a destination address to the second D2D communication data and each of the D2D communication data included in the third communication data at the RLC layer. The source address is used to identify a MAC address of the terminal device that sends the second D2D communication data and each D2D communication data included in the third communication data, and the destination address is used to identify that the second D2D communication data is received, and the third communication data is included. The MAC address of the terminal device for each D2D communication data.
可选地,终端设备在RLC层将第一D2D通信数据分割为第二D2D通信数据和第三D2D通信数据之后,终端设备还可以在RLC层在第二D2D通信数据的MAC数据包头中添加专用逻辑信道标识,该专用逻辑信道标识用于标识D2D Discovery传输信道传输的D2D通信数据,该专用逻辑信道标识可以为一个字节。其中,该专用逻辑信道标识便于终端设备区分第二D2D通信数据是通过D2D Discovery传输信道进行传输还是通过D2D共享传输信道进行传输。Optionally, after the terminal device divides the first D2D communication data into the second D2D communication data and the third D2D communication data, the terminal device may further add a dedicated in the MAC data packet header of the second D2D communication data at the RLC layer. Logical channel identifier, which is used to identify D2D The D2D communication data transmitted by the Discovery transport channel, which may be one byte. The dedicated logical channel identifier facilitates the terminal device to distinguish the second D2D communication data by using D2D. Whether the Discovery transport channel is transmitted or transmitted through the D2D shared transport channel.
之后,终端设备通过RLC层和ProSe协议栈之间的映射接口,将第二D2D通信数据从RLC层映射到ProSe协议栈;以及将第三D2D通信数据包含的每份D2D通信数据从RLC层递交到MAC层。Thereafter, the terminal device maps the second D2D communication data from the RLC layer to the ProSe protocol stack through a mapping interface between the RLC layer and the ProSe protocol stack; and submits each D2D communication data included in the third D2D communication data from the RLC layer. Go to the MAC layer.
当终端设备将第二D2D通信数据从ProSe协议栈递交到MAC层后,终端设备根据ProSe协议栈与D2D Discovery传输信道的映射关系,在MAC层将第二D2D通信数据映射到D2D Discovery传输信道,并通过D2D Discovery传输信道将第二D2D通信数据递交到物理层。After the terminal device delivers the second D2D communication data from the ProSe protocol stack to the MAC layer, the terminal device according to the ProSe protocol stack and the D2D The mapping relationship of the Discovery transport channel, mapping the second D2D communication data to the D2D Discovery transport channel at the MAC layer, and passing the D2D The Discovery transport channel delivers the second D2D communication data to the physical layer.
请一并参阅图5,图5是本申请利用不同物理资源传输Discovery消息和D2D通信数据一实施例的示意图。当第二D2D通信数据递交到物理层后,通过D2D Discovery对应的传输资源传输第二D2D通信数据,从而将第二D2D通信数据发送给其他终端设备。Please refer to FIG. 5. FIG. 5 is a schematic diagram of an embodiment of the present application for transmitting a Discovery message and D2D communication data by using different physical resources. When the second D2D communication data is delivered to the physical layer, through the D2D The transmission resource corresponding to Discovery transmits the second D2D communication data, thereby transmitting the second D2D communication data to other terminal devices.
当终端设备将第三D2D通信数据包含的每份D2D通信数据从RLC层递交到MAC层后,根据MAC层中D2D业务逻辑信道与D2D共享传输信道的映射关系,在MAC层将第三D2D通信数据包含的每份D2D通信数据映射到D2D共享传输信道,并通过D2D共享传输信道将第三D2D通信数据包含的每份D2D通信数据递交到物理层。After the terminal device submits each D2D communication data included in the third D2D communication data from the RLC layer to the MAC layer, according to the mapping relationship between the D2D service logical channel and the D2D shared transport channel in the MAC layer, the third D2D communication is performed at the MAC layer. Each D2D communication data included in the data is mapped to the D2D shared transport channel, and each D2D communication data included in the third D2D communication data is delivered to the physical layer through the D2D shared transport channel.
当第三D2D通信数据包含的每份D2D通信数据递交到物理层后,终端设备还根据第二D2D通信数据包含的第三D2D通信数据的调度信息,获取第三D2D通信数据中每份D2D通信数据对应的传输资源,并通过每份D2D通信数据对应的传输资源分别传输第三D2D通信数据包含的每份D2D通信数据,从而将第三D2D通信数据发送给其他终端设备。After the D2D communication data included in the third D2D communication data is delivered to the physical layer, the terminal device further acquires each D2D communication in the third D2D communication data according to the scheduling information of the third D2D communication data included in the second D2D communication data. Data corresponding to the transmission resource, and each D2D communication data included in the third D2D communication data is separately transmitted through the transmission resource corresponding to each D2D communication data, thereby transmitting the third D2D communication data to other terminal devices.
可以理解的是,此时第二D2D通信数据与第三D2D通信数据中的第一份D2D通信数据可以是同时传输的。第三D2D通信数据包含的每份D2D通信数据是依次分别传输的。It can be understood that the first D2D communication data in the second D2D communication data and the third D2D communication data may be simultaneously transmitted. Each D2D communication data included in the third D2D communication data is sequentially transmitted separately.
上述方案,终端设备在RLC层与ProSe协议栈设置映射接口,建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系,当确定第一D2D通信数据小于等于第一预设阈值时,通过RLC层和ProSe协议栈之间的映射接口将第一D2D通信数据从RLC层映射到ProSe协议栈,从而通过D2D Discovery传输信道传输第一D2D通信数据,通过D2D Discovery传输资源传输D2D通信数据,解决了现有技术中无法通过D2D Discovery传输信道承载D2D通信数据的技术问题,能够提高数据信道的传输效率,提高LTE网络的整体资源利用率。In the above solution, the terminal device sets a mapping interface between the RLC layer and the ProSe protocol stack, and establishes a D2D service logical channel and D2D. The mapping relationship of the Discovery transmission channel, when determining that the first D2D communication data is less than or equal to the first preset threshold, mapping the first D2D communication data from the RLC layer to the ProSe protocol stack through a mapping interface between the RLC layer and the ProSe protocol stack, Thus through D2D The Discovery transmission channel transmits the first D2D communication data, and transmits the D2D communication data through the D2D Discovery transmission resource, which solves the problem that the prior art cannot pass the D2D. The technical problem that the Discovery transmission channel carries D2D communication data can improve the transmission efficiency of the data channel and improve the overall resource utilization of the LTE network.
当第一D2D通信数据大于第一预设阈值时,将第一D2D通信数据映射到D2D共享传输信道,通过D2D共享传输信道传输第一D2D通信数据;或者还可以将第一D2D通信分割为第二D2D通信数据以及第三D2D通信数据,通过D2D Discovery传输信道传输第二D2D通信数据,当第三D2D通信数据大于第二预设阈值时,还可以通过第二D2D通信数据调度第三D2D通信数据进行传输。When the first D2D communication data is greater than the first preset threshold, mapping the first D2D communication data to the D2D shared transmission channel, and transmitting the first D2D communication data through the D2D shared transmission channel; or dividing the first D2D communication into the first Two D2D communication data and third D2D communication data, through D2D The Discovery transmission channel transmits the second D2D communication data, and when the third D2D communication data is greater than the second preset threshold, the third D2D communication data may also be scheduled for transmission by using the second D2D communication data.
请参阅图8,图8是本申请数据传输方法又一实施例的流程图。本实施例的执行主体为终端设备,终端设备为用户终端设备(User Equipment,UE),其中,UE可以为手机等移动终端设备。两个UE可以直接通信传输数据。本实施例中终端设备不需要对待传输的D2D通信数据添加源地址以及目的地址。本实施例的数据传输方法包括如下步骤:Please refer to FIG. 8. FIG. 8 is a flowchart of still another embodiment of the data transmission method of the present application. The execution entity of this embodiment is a terminal device, and the terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data. In this embodiment, the terminal device does not need to add a source address and a destination address to the D2D communication data to be transmitted. The data transmission method of this embodiment includes the following steps:
S401:终端设备设置分组数据汇聚协议层到所述ProSe协议栈的映射关系。S401: The terminal device sets a mapping relationship between the packet data convergence protocol layer and the ProSe protocol stack.
请一并参阅图9,图9是本申请建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系再一实施例的示意图。Please refer to FIG. 9 together. FIG. 9 is a schematic diagram of establishing a D2D service logical channel and D2D in the present application. A schematic diagram of an embodiment of a mapping relationship of Discovery transport channels.
终端设备在分组数据汇聚协议PDCP层设置PDCP层到ProSe协议栈的映射关系,从而建立D2D业务逻辑信道与D2D Discovery传输信道之间的映射关系。其中,D2D业务逻辑信道处于PDCP层。The terminal device sets a mapping relationship between the PDCP layer and the ProSe protocol stack in the PDCP layer of the packet data convergence protocol, thereby establishing a D2D service logical channel and D2D. The mapping relationship between Discovery transport channels. The D2D service logical channel is in the PDCP layer.
当终端设备发送ProSe协议栈生成的Discovery消息时,按现有技术中的处理流程进行处理,此处不赘述。When the terminal device sends the Discovery message generated by the ProSe protocol stack, the processing is performed according to the processing flow in the prior art, and details are not described herein.
当终端设备发送D2D通信数据,执行步骤S402~S204。其中,D2D通信数据包括音频数据、视频数据等,D2D通信数据由应用层产生,经TCP/UDP层、IP层处理后,进入D2D直接通信模式的协议栈进行处理。When the terminal device transmits the D2D communication data, steps S402 to S204 are performed. The D2D communication data includes audio data, video data, and the like. The D2D communication data is generated by the application layer, processed by the TCP/UDP layer and the IP layer, and then processed into a protocol stack of the D2D direct communication mode for processing.
S402:所述终端设备确定所述第一D2D通信数据的比特数是否小于等于第一预设阈值,其中,所述第一预设阈值小于等于所述D2D Discovery传输信道承载的最大比特数。S402: The terminal device determines whether the number of bits of the first D2D communication data is less than or equal to a first preset threshold, where the first preset threshold is less than or equal to the D2D. The maximum number of bits carried by the Discovery transport channel.
当终端设备需要向其他终端设备发送第一D2D通信数据时,终端设备在将第一D2D通信数据从IP层递交到PDCP层(第一D2D通信数据进入D2D直接通信模式的协议栈)后,确定第一D2D通信数据的比特数是否小于等于第二预设阈值。其中,第一预设阈值小于等于D2D Discovery传输信道承载的最大比特数。该最大比特数可以为232比特,但并不限于此,也可以设置为其他值,此处不作限制。When the terminal device needs to send the first D2D communication data to the other terminal device, the terminal device determines, after the first D2D communication data is delivered from the IP layer to the PDCP layer (the first D2D communication data enters the protocol stack of the D2D direct communication mode), Whether the number of bits of the first D2D communication data is less than or equal to a second preset threshold. Wherein, the first preset threshold is less than or equal to D2D The maximum number of bits carried by the Discovery transport channel. The maximum number of bits may be 232 bits, but is not limited thereto, and may be set to other values, which is not limited herein.
当第一D2D通信数据的比特数小于或等于第一预设阈值时,执行步骤S403。When the number of bits of the first D2D communication data is less than or equal to the first preset threshold, step S403 is performed.
当第一D2D通信数据的比特数大于第一预设阈值时,执行步骤S404。When the number of bits of the first D2D communication data is greater than the first preset threshold, step S404 is performed.
S403:当所述第一D2D通信数据的比特数小于或等于所述第一预设阈值时,将所述第一D2D通信数据从所述分组数据汇聚协议层递交到所述ProSe协议栈,对所述第一D2D通信数据设置ProSe标识,并在所述媒体接入控制协议层将所述第一D2D通信数据映射到所述D2D Discovery传输信道,通过所述D2D Discovery传输信道传输所述第一D2D通信数据。S403: When the number of bits of the first D2D communication data is less than or equal to the first preset threshold, submit the first D2D communication data from the packet data convergence protocol layer to the ProSe protocol stack, The first D2D communication data sets a ProSe identifier, and maps the first D2D communication data to the D2D at the medium access control protocol layer a Discovery transport channel that transmits the first D2D communication data over the D2D Discovery transport channel.
当终端设备确定第一D2D通信数据的比特数小于或等于第一预设阈值时,在第一D2D通信数据到达PDCP层后,终端设备根据PDCP层到ProSe协议栈的映射关系,将第一D2D通信数据映射到ProSe协议栈。终端设备将第一D2D通信数据从ProSe协议栈递交到MAC层,之后,终端设备根据MAC层中ProSe协议栈与D2D Discovery传输信道的映射关系,将第一D2D通信数据映射到D2D Discovery传输信道,从而通过D2D Discovery传输信道将第一D2D通信数据从MAC层递交到物理层。When the terminal device determines that the number of bits of the first D2D communication data is less than or equal to the first preset threshold, after the first D2D communication data arrives at the PDCP layer, the terminal device sets the first D2D according to the mapping relationship between the PDCP layer and the ProSe protocol stack. The communication data is mapped to the ProSe protocol stack. The terminal device delivers the first D2D communication data from the ProSe protocol stack to the MAC layer, and then the terminal device according to the ProSe protocol stack and the D2D in the MAC layer The mapping relationship of the Discovery transport channel, mapping the first D2D communication data to the D2D Discovery transport channel, thereby passing the D2D The Discovery transport channel delivers the first D2D communication data from the MAC layer to the physical layer.
当第一D2D通信数据递交到物理层后,通过D2D Discovery对应的传输资源传输第一D2D通信数据,从而将第一D2D通信数据发送给其他终端设备。When the first D2D communication data is delivered to the physical layer, through D2D The transmission resource corresponding to Discovery transmits the first D2D communication data, thereby transmitting the first D2D communication data to other terminal devices.
S404:当所述第一D2D通信数据的比特数大于所述第一预设阈值时,所述终端设备将所述第一D2D通信数据从所述分组数据汇聚协议层递交到所述媒体接入控制协议层,并在所述媒体接入控制协议层将所述第一D2D通信数据映射到所述D2D共享传输信道,通过所述D2D共享传输信道传输所述第一D2D通信数据。S404: when the number of bits of the first D2D communication data is greater than the first preset threshold, the terminal device submits the first D2D communication data from the packet data convergence protocol layer to the media access Controlling a protocol layer, and mapping the first D2D communication data to the D2D shared transport channel at the medium access control protocol layer, and transmitting the first D2D communication data through the D2D shared transport channel.
当终端设备确定第一D2D通信数据的比特数大于第一预设阈值时,在第一D2D通信数据到达PDCP层后,终端设备在PDCP层以及RLC层对第一D2D通信数据按现有技术中的处理方法进行处理后,将第一D2D通信数据从RLC层递交到MAC层。When the terminal device determines that the number of bits of the first D2D communication data is greater than the first preset threshold, after the first D2D communication data arrives at the PDCP layer, the terminal device performs the first D2D communication data at the PDCP layer and the RLC layer according to the prior art. After the processing method is processed, the first D2D communication data is delivered from the RLC layer to the MAC layer.
终端设备在MAC层,根据D2D业务逻辑信道与D2D共享传输信道的映射关系,将第一D2D通信数据映射到D2D共享传输信道,从而通过D2D共享传输信道将第一D2D通信数据从MAC层递交到物理层。The terminal device maps the first D2D communication data to the D2D shared transport channel according to the mapping relationship between the D2D service logical channel and the D2D shared transport channel at the MAC layer, thereby delivering the first D2D communication data from the MAC layer to the D2D shared transport channel. Physical layer.
当第一D2D通信数据递交到物理层后,通过D2D通信数据对应的传输资源传输第一D2D通信数据,从而将第一D2D通信数据发送给其他终端设备。After the first D2D communication data is delivered to the physical layer, the first D2D communication data is transmitted through the transmission resource corresponding to the D2D communication data, thereby transmitting the first D2D communication data to other terminal devices.
上述方案,终端设备设置分组数据汇聚协议层到所述ProSe协议栈的映射关系,当确定第一D2D通信数据的比特数小于或等于第一预设阈值时,将第一D2D通信数据从PDCP层递交到ProSe协议栈,将第一D2D通信数据映射到D2D Discovery传输信道,通过D2D Discovery传输信道传输第一D2D通信数据,从而通过D2D Discovery传输资源传输D2D通信数据,解决了现有技术中无法通过D2D Discovery传输信道承载D2D通信数据的技术问题,能够提高数据信道的传输效率,提高LTE网络的整体资源利用率。否则,将第一D2D通信数据映射到D2D共享传输信道。In the above solution, the terminal device sets a mapping relationship between the packet data convergence protocol layer and the ProSe protocol stack, and when determining that the number of bits of the first D2D communication data is less than or equal to a first preset threshold, the first D2D communication data is from the PDCP layer. Submit to the ProSe protocol stack to map the first D2D communication data to D2D Discovery transport channel, transmitting the first D2D communication data through the D2D Discovery transport channel, thereby passing D2D Discovery transmission resource transmits D2D communication data, which solves the problem that D2D cannot be passed in the prior art. The technical problem that the Discovery transmission channel carries D2D communication data can improve the transmission efficiency of the data channel and improve the overall resource utilization of the LTE network. Otherwise, the first D2D communication data is mapped to the D2D shared transport channel.
请参阅图10,图10是本申请数据传输方法再一实施例的流程图。本实施例的执行主体为终端设备,终端设备为用户终端设备(User Equipment,UE),其中,UE可以为手机等移动终端设备。两个UE可以直接通信传输数据。本实施例的数据传输方法包括如下步骤:Please refer to FIG. 10. FIG. 10 is a flowchart of still another embodiment of the data transmission method of the present application. The execution entity of this embodiment is a terminal device, and the terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data. The data transmission method of this embodiment includes the following steps:
S501:终端设备接收除所述终端设备之外的其他终端设备发送的D2D通信数据。S501: The terminal device receives D2D communication data sent by another terminal device other than the terminal device.
终端设备接收除终端设备之外的其他终端设备发送的D2D通信数据。D2D通信数据包括音频数据、视频数据等。The terminal device receives D2D communication data transmitted by other terminal devices than the terminal device. The D2D communication data includes audio data, video data, and the like.
S502:所述终端设备根据所述D2D通信数据的信息确定所述D2D通信数据来自D2D Discovery传输信道。S502: The terminal device determines, according to the information of the D2D communication data, that the D2D communication data is from D2D. Discovery transport channel.
终端设备根据接收到的D2D通信数据的信息确定D2D通信数据是否来自D2D Discovery传输信道。D2D通信数据的信息可以为D2D通信数据的比特数、专用逻辑信道标识、源地址以及目的地址、ProSe标识等,当并不限于此,此处不作限制。The terminal device determines whether the D2D communication data is from the D2D according to the received information of the D2D communication data. Discovery transport channel. The information of the D2D communication data may be the number of bits of the D2D communication data, the dedicated logical channel identifier, the source address and the destination address, the ProSe identifier, etc., and is not limited thereto, and is not limited herein.
可以理解的是,本实施例中所提到的D2D通信数据包括数据包头和数据包,专用逻辑信道标识、源地址以及目的地址、ProSe标识等信息是包含在D2D通信数据的数据包头中,终端设备最终在应用层识别的是除数据包头外的数据。It can be understood that the D2D communication data mentioned in this embodiment includes a data packet header and a data packet, and information such as a dedicated logical channel identifier, a source address, a destination address, and a ProSe identifier is included in a data packet header of the D2D communication data, and the terminal The device finally recognizes the data at the application layer except for the packet header.
进一步地,D2D通信数据的信息可以包括D2D通信数据的比特数和/或专用逻辑信道标识,专用逻辑信道标识用于标识D2D通信数据来自D2D Discovery传输信道。当终端设备根据D2D通信数据的信息确定D2D通信数据的比特数小于等于第一预设阈值,或D2D通信数据包含专用逻辑信道标识时,D2D通信数据来自D2D Discovery传输信道。Further, the information of the D2D communication data may include the number of bits of the D2D communication data and/or the dedicated logical channel identifier, and the dedicated logical channel identifier is used to identify the D2D communication data from the D2D. Discovery transport channel. When the terminal device determines, according to the information of the D2D communication data, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, or the D2D communication data includes a dedicated logical channel identifier, the D2D communication data is from the D2D. Discovery transport channel.
进一步地,D2D通信数据的信息可以包括D2D通信数据的比特数、专用逻辑信道标识以及调度信息,调度信息用于指示第二D2D通信数据使用的时频资源,D2D通信数据与第二D2D通信数据由同一D2D通信数据包分割得到。当终端设备根据D2D通信数据的信息确定D2D通信数据的比特数小于等于第一预设阈值,且D2D通信数据包含专用逻辑信道标识以及调度信息时,D2D通信数据来自D2D Discovery传输信道。Further, the information of the D2D communication data may include a bit number of the D2D communication data, a dedicated logical channel identifier, and scheduling information, where the scheduling information is used to indicate a time-frequency resource used by the second D2D communication data, and the D2D communication data and the second D2D communication data. It is obtained by dividing the same D2D communication packet. When the terminal device determines, according to the information of the D2D communication data, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes a dedicated logical channel identifier and scheduling information, the D2D communication data is from the D2D. Discovery transport channel.
进一步地,D2D通信数据的信息可以包括D2D通信数据的比特数、专用逻辑信道标识、源地址以及目的地址,和/或调度信息,源地址用于标识发送D2D通信数据的终端设备的地址,目的地址用于标识接收D2D通信数据的终端设备的地址。调度信息用于指示第二D2D通信数据使用的时频资源,D2D通信数据与第二D2D通信数据由同一D2D通信数据包分割得到。当终端设备从D2D通信数据的信息中获取到无线链路控制协议层的数据包头包含源地址以及目的地址,且确定D2D通信数据的比特数小于等于第一预设阈值或D2D通信数据包含专用逻辑信道标识,或D2D通信数据包含调度信息时,D2D通信数据来自D2D Discovery传输信道。Further, the information of the D2D communication data may include the number of bits of the D2D communication data, the dedicated logical channel identifier, the source address and the destination address, and/or scheduling information, and the source address is used to identify the address of the terminal device that transmits the D2D communication data, and the purpose The address is used to identify the address of the terminal device that receives the D2D communication data. The scheduling information is used to indicate a time-frequency resource used by the second D2D communication data, and the D2D communication data and the second D2D communication data are segmented by the same D2D communication data packet. When the terminal device obtains the data packet header of the radio link control protocol layer from the information of the D2D communication data, includes a source address and a destination address, and determines that the number of bits of the D2D communication data is less than or equal to a first preset threshold or the D2D communication data includes dedicated logic. When the channel identifier, or D2D communication data contains scheduling information, the D2D communication data comes from D2D. Discovery transport channel.
进一步地,D2D通信数据的信息可以包括D2D通信数据的比特数以及ProSe标识,ProSe标识用于标识D2D通信数据来自数据分组汇聚协议层,并通过D2D Discovery传输信道传输。当终端设备根据D2D通信数据的信息确定所述D2D通信数据的比特数小于等于第一预设阈值,且D2D通信数据包含所述ProSe标识时,D2D通信数据来自D2D Discovery传输信道。Further, the information of the D2D communication data may include the number of bits of the D2D communication data and the ProSe identifier, and the ProSe identifier is used to identify the D2D communication data from the data packet convergence protocol layer and pass the D2D. Discovery transport channel transmission. When the terminal device determines, according to the information of the D2D communication data, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes the ProSe identifier, the D2D communication data is from the D2D. Discovery transport channel.
当D2D通信数据来自D2D Discovery传输信道时,执行步骤S503。When the D2D communication data is from the D2D Discovery transmission channel, step S503 is performed.
当D2D通信数据来自D2D共享传输信道,按照现有技术的方法,将D2D通信数据映射到D2D共享传输信道进行处理。由于D2D通信数据由除终端设备之外的其他终端设备在应用层产生,在终端设备将D2D通信数据递交到应用层后,在应用层识别D2D通信数据,并实现D2D通信数据对应的功能。When the D2D communication data comes from the D2D shared transport channel, the D2D communication data is mapped to the D2D shared transport channel for processing according to the prior art method. Since the D2D communication data is generated at the application layer by other terminal devices than the terminal device, after the terminal device delivers the D2D communication data to the application layer, the D2D communication data is recognized at the application layer, and the function corresponding to the D2D communication data is implemented.
S503:所述终端设备根据所述D2D通信数据的信息以及所述终端设备获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系,将所述D2D通信数据映射到所述D2D Discovery传输信道,并识别所述D2D通信数据实现所述D2D通信数据对应的功能。S503: The terminal device is configured according to the information of the D2D communication data, and the D2D service logical channel and the D2D acquired by the terminal device. a mapping relationship of the Discovery transport channel, mapping the D2D communication data to the D2D Discovery transmits a channel and identifies the D2D communication data to implement a function corresponding to the D2D communication data.
终端设备根据D2D通信数据的信息以及终端设备获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系,将D2D通信数据映射到D2D Discovery传输信道。其中,终端设备获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系可以是服务基站广播通知的;也可以是终端设备获取的与D2D通信数据的信息相匹配的映射关系。The terminal device according to the information of the D2D communication data and the D2D service logical channel and the D2D acquired by the terminal device The mapping relationship of the Discovery transport channel maps the D2D communication data to the D2D Discovery transport channel. The D2D service logical channel and D2D obtained by the terminal device The mapping relationship of the Discovery transport channel may be broadcasted by the serving base station; or may be a mapping relationship that is acquired by the terminal device and matched with the information of the D2D communication data.
进一步地,当D2D通信数据的信息包括D2D通信数据的比特数和/或专用逻辑信道标识时,终端设备获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系示意图如图3-1所示。Further, when the information of the D2D communication data includes the number of bits of the D2D communication data and/or the dedicated logical channel identifier, the D2D service logical channel acquired by the terminal device and the D2D Figure 3-1 shows the mapping relationship of the Discovery transport channel.
所述终端设备根据所述D2D通信数据的信息以及所述终端设备获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系,将所述D2D通信数据映射到所述D2D Discovery传输信道包括:The terminal device according to the information of the D2D communication data and the D2D service logical channel and D2D acquired by the terminal device Mapping the Discovery transport channel, mapping the D2D communication data to the D2D Discovery transport channel includes:
当终端设备根据D2D通信数据的信息确定D2D通信数据的比特数小于等于第一预设阈值,或D2D通信数据包含专用逻辑信道标识时,终端设备将D2D通信数据通过D2D Discovery传输信道递交到媒体接入控制协议层,并根据获取的映射关系在媒体接入控制协议层将D2D通信数据映射到D2D业务逻辑信道。其中,第一预设阈值小于等于D2D Discovery传输信道承载的最大比特数;获取的映射关系为在媒体接入控制协议层建立的D2D业务逻辑信道与D2D Discovery传输信道的映射关系。When the terminal device determines, according to the information of the D2D communication data, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, or the D2D communication data includes a dedicated logical channel identifier, the terminal device passes the D2D communication data through the D2D. The Discovery transport channel is delivered to the medium access control protocol layer, and the D2D communication data is mapped to the D2D service logical channel at the medium access control protocol layer according to the acquired mapping relationship. Wherein, the first preset threshold is less than or equal to D2D The maximum number of bits carried by the Discovery transport channel; the obtained mapping relationship is the D2D service logical channel and D2D established at the medium access control protocol layer. The mapping relationship of the Discovery transport channel.
进一步地,当D2D通信数据的信息包括D2D通信数据的比特数、专用逻辑信道标识以及调度信息时,终端设备获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系示意图如图3-2所示。Further, when the information of the D2D communication data includes the number of bits of the D2D communication data, the dedicated logical channel identifier, and the scheduling information, the D2D service logical channel acquired by the terminal device and the D2D Figure 3-2 shows the mapping relationship of the Discovery transport channel.
当终端设备根据D2D通信数据的信息确定D2D通信数据的比特数小于等于第一预设阈值,且D2D通信数据包含专用逻辑信道标识时,终端设备根据调度信息获取第二D2D通信数据。When the terminal device determines, according to the information of the D2D communication data, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes the dedicated logical channel identifier, the terminal device acquires the second D2D communication data according to the scheduling information.
终端设备在获取到第二D2D通信数据之后,将D2D通信数据通过D2D Discovery传输信道递交到媒体接入控制协议层,以及将第二D2D通信数据通过D2D共享传输信道递交到媒体接入控制协议层,并根据映射关系在媒体接入控制协议层将D2D通信数据以及第二D2D通信数据映射到D2D业务逻辑信道。After acquiring the second D2D communication data, the terminal device passes the D2D communication data through the D2D. The Discovery transport channel is delivered to the medium access control protocol layer, and the second D2D communication data is delivered to the medium access control protocol layer through the D2D shared transport channel, and the D2D communication data and the first in the medium access control protocol layer according to the mapping relationship The two D2D communication data is mapped to the D2D service logical channel.
终端设备将D2D通信数据以及第二D2D通信数据从MAC层递交到无线链路控制协议层后,在无线链路控制协议层将D2D通信数据以及第二D2D通信数据组包还原得到分割前的D2D通信数据包。After the terminal device delivers the D2D communication data and the second D2D communication data from the MAC layer to the radio link control protocol layer, the D2D communication data and the second D2D communication data packet are restored at the radio link control protocol layer to obtain the D2D before the segmentation. Communication packet.
进一步地,当D2D通信数据的信息包括D2D通信数据的比特数、专用逻辑信道标识、源地址以及目的地址,和/或调度信息时,终端设备获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系示意图如图7所示。Further, when the information of the D2D communication data includes the number of bits of the D2D communication data, the dedicated logical channel identifier, the source address and the destination address, and/or the scheduling information, the D2D service logical channel acquired by the terminal device and the D2D A schematic diagram of the mapping relationship of the Discovery transport channel is shown in FIG. 7.
当终端设备从D2D通信数据的信息中获取到无线链路控制协议层的数据包头包含源地址以及目的地址,且确定D2D通信数据的比特数小于等于第一预设阈值或D2D通信数据包含专用逻辑信道标识时,终端设备将D2D通信数据通过D2D Discovery传输信道递交到媒体接入控制协议层,在媒体接入控制协议层将D2D通信数据映射到ProSe协议栈。When the terminal device obtains the data packet header of the radio link control protocol layer from the information of the D2D communication data, includes a source address and a destination address, and determines that the number of bits of the D2D communication data is less than or equal to a first preset threshold or the D2D communication data includes dedicated logic. When the channel is identified, the terminal device passes the D2D communication data through D2D. The Discovery transport channel is delivered to the medium access control protocol layer, and the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer.
之后,终端设备通过无线链路控制协议层和ProSe协议栈之间的映射接口,将D2D通信数据递交到无线链路控制协议层。Thereafter, the terminal device delivers the D2D communication data to the radio link control protocol layer through a mapping interface between the radio link control protocol layer and the ProSe protocol stack.
其中,当终端设备从D2D通信数据的信息还获取到调度信息时,终端设备根据调度信息获取第二D2D通信数据。终端设备在获取到第二D2D通信数据之后,将D2D通信数据通过D2D Discovery传输信道递交到媒体接入控制协议层,在媒体接入控制协议层将D2D通信数据映射到ProSe协议栈,之后,终端设备通过无线链路控制协议层和ProSe协议栈之间的映射接口,将D2D通信数据递交到无线链路控制协议层。The terminal device acquires the second D2D communication data according to the scheduling information when the terminal device further acquires the scheduling information from the information of the D2D communication data. After acquiring the second D2D communication data, the terminal device passes the D2D communication data through the D2D. The Discovery transport channel is delivered to the medium access control protocol layer, and the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer, and then the terminal device controls the mapping interface between the protocol layer and the ProSe protocol stack through the radio link. The D2D communication data is delivered to the radio link control protocol layer.
终端设备将第二D2D通信数据通过D2D共享传输信道递交到媒体接入控制协议层,并根据映射关系在媒体接入控制协议层将D2D通信数据以及第二D2D通信数据映射到D2D业务逻辑信道,通过D2D业务逻辑信道将第二D2D通信数据递交到无线链路控制协议层。The terminal device delivers the second D2D communication data to the medium access control protocol layer through the D2D shared transmission channel, and maps the D2D communication data and the second D2D communication data to the D2D service logical channel at the medium access control protocol layer according to the mapping relationship, The second D2D communication data is delivered to the radio link control protocol layer through the D2D service logical channel.
终端设备将D2D通信数据以及第二D2D通信数据从MAC层递交到无线链路控制协议层后,在无线链路控制协议层将D2D通信数据以及第二D2D通信数据组包还原得到分割前的D2D通信数据包。After the terminal device delivers the D2D communication data and the second D2D communication data from the MAC layer to the radio link control protocol layer, the D2D communication data and the second D2D communication data packet are restored at the radio link control protocol layer to obtain the D2D before the segmentation. Communication packet.
进一步地,当D2D通信数据的信息可以包括D2D通信数据的比特数以及ProSe标识时,终端设备获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系示意图如图9所示。Further, when the information of the D2D communication data may include the number of bits of the D2D communication data and the ProSe identifier, the D2D service logical channel acquired by the terminal device and the D2D A schematic diagram of the mapping relationship of the Discovery transport channel is shown in FIG.
所述终端设备根据所述D2D通信数据的信息以及所述终端设备获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系,将所述D2D通信数据映射到所述D2D Discovery传输信道包括:The terminal device according to the information of the D2D communication data and the D2D service logical channel and D2D acquired by the terminal device Mapping the Discovery transport channel, mapping the D2D communication data to the D2D Discovery transport channel includes:
当终端设备根据D2D通信数据的信息确定D2D通信数据的比特数小于等于第一预设阈值,且D2D通信数据包含ProSe标识时,终端设备将D2D通信数据通过D2D Discovery传输信道递交到媒体接入控制协议层,在媒体接入控制协议层将D2D通信数据映射到ProSe协议栈。之后,终端设备根据ProSe协议栈与分组数据汇聚协议层的映射关系,将D2D通信数据映射到所述分组数据汇聚协议层。When the terminal device determines, according to the information of the D2D communication data, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes the ProSe identifier, the terminal device passes the D2D communication data through the D2D. The Discovery transport channel is delivered to the medium access control protocol layer, and the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer. Then, the terminal device maps the D2D communication data to the packet data convergence protocol layer according to the mapping relationship between the ProSe protocol stack and the packet data convergence protocol layer.
终端设备将D2D通信数据D2D通信数据递交到应用层后,识别D2D通信数据,并实现D2D通信数据对应的功能。其中,终端设备识别的D2D通信数据为除数据包头外的数据。After the terminal device delivers the D2D communication data D2D communication data to the application layer, the D2D communication data is identified, and the function corresponding to the D2D communication data is implemented. The D2D communication data recognized by the terminal device is data other than the packet header.
上述方案,终端设备接收除该终端设备之外的其他终端设备发送的D2D通信数据,根据D2D通信数据的信息确定D2D通信数据来自D2D Discovery传输信道,根据D2D通信数据的信息以及终端设备获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系,将D2D通信数据映射到D2D Discovery传输信道,从而识别D2D通信数据实现D2D通信数据对应的功能。In the above solution, the terminal device receives the D2D communication data sent by the terminal device other than the terminal device, and determines the D2D communication data from the D2D according to the information of the D2D communication data. Discovery transport channel, based on information of D2D communication data and D2D service logical channel and D2D acquired by the terminal device The mapping relationship of the Discovery transport channel maps the D2D communication data to the D2D Discovery transport channel, thereby identifying the D2D communication data to implement the function corresponding to the D2D communication data.
请参阅图11,图11是本申请数据传输装置一实施例的结构示意图。本实施方式的数据传输装置可以为终端设备。终端设备为用户终端设备(User Equipment,UE),其中,UE可以为手机等移动终端设备。两个UE可以直接通信传输数据。本实施例的数据传输装置所包括的各模块用于执行图1以及图1对应的实施例中的各步骤,具体请参阅图1以及图1对应的实施例中各步骤的相关描述,此处不赘述。本实施例的数据传输装置包括建立模块110、确定模块120、映射模块130以及传输模块140。Please refer to FIG. 11. FIG. 11 is a schematic structural diagram of an embodiment of a data transmission apparatus of the present application. The data transmission device of this embodiment may be a terminal device. The terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data. The modules included in the data transmission apparatus of this embodiment are used to perform the steps in the embodiments corresponding to FIG. 1 and FIG. 1. For details, refer to the related descriptions of the steps in the embodiment corresponding to FIG. 1 and FIG. Do not repeat them. The data transmission apparatus of this embodiment includes a setup module 110, a determination module 120, a mapping module 130, and a transmission module 140.
建立模块110用于建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系。比如,建立模块110建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系。建立模块110在建立好D2D业务逻辑信道与D2D Discovery传输信道的映射关系后,向确定模块120发送通知信息。The establishing module 110 is configured to establish a D2D service logical channel and D2D The mapping relationship of the Discovery transport channel. For example, the setup module 110 establishes a D2D service logical channel and D2D. The mapping relationship of the Discovery transport channel. The establishing module 110 establishes a D2D service logical channel and D2D After the mapping of the Discovery transport channel, the notification information is sent to the determining module 120.
确定模块120用于接收建立模块110发送的通知信息,确定第一D2D通信数据的比特数是否达到门限值,其中,所述第一D2D通信数据为待传输的D2D通信数据。比如,确定模块120接收建立模块110发送的通知信息,确定第一D2D通信数据的比特数是否达到门限值,其中,所述第一D2D通信数据为待传输的D2D通信数据。确定模块120将确定结果发送给映射模块130。The determining module 120 is configured to receive the notification information sent by the establishing module 110, and determine whether the number of bits of the first D2D communication data reaches a threshold value, wherein the first D2D communication data is D2D communication data to be transmitted. For example, the determining module 120 receives the notification information sent by the establishing module 110, and determines whether the number of bits of the first D2D communication data reaches a threshold value, wherein the first D2D communication data is D2D communication data to be transmitted. The determination module 120 sends the determination result to the mapping module 130.
映射模块130用于接收确定模块120发送的确定结果,当确定模块120确定第一D2D通信数据未达到所述门限值时,根据建立模块110建立的映射关系将第一D2D通信数据映射到D2D Discovery传输信道。The mapping module 130 is configured to receive the determination result sent by the determining module 120. When the determining module 120 determines that the first D2D communication data does not reach the threshold, the first D2D communication data is mapped to the D2D according to the mapping relationship established by the establishing module 110. Discovery transport channel.
比如,映射模块130接收确定模块120发送的确定结果,当确定模块120确定第一D2D通信数据未达到所述门限值时,根据建立模块110建立的映射关系将第一D2D通信数据映射到D2D Discovery传输信道。映射模块130在将第一D2D通信数据映射到D2D Discovery传输信道后,向传输模块140发送通知信息。For example, the mapping module 130 receives the determination result sent by the determining module 120. When the determining module 120 determines that the first D2D communication data does not reach the threshold, the first D2D communication data is mapped to the D2D according to the mapping relationship established by the establishing module 110. Discovery transport channel. The mapping module 130 transmits the notification information to the transmission module 140 after mapping the first D2D communication data to the D2D Discovery transmission channel.
传输模块140用于接收映射模块130发送的通知信息,通过D2D Discovery传输信道传输第一D2D通信数据。The transmission module 140 is configured to receive the notification information sent by the mapping module 130, by using D2D. The Discovery transport channel transmits the first D2D communication data.
上述方案,终端设备建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系,当确定第一D2D通信数据未达到所述门限值时,将第一D2D通信数据映射到D2D Discovery传输信道,通过D2D Discovery传输信道传输第一D2D通信数据,解决了现有技术中无法通过D2D Discovery传输信道承载D2D通信数据的技术问题,能够提高数据信道的传输效率,提高LTE网络的整体资源利用率。In the above solution, the terminal device establishes a D2D service logical channel and D2D a mapping relationship of the Discovery transmission channel, when determining that the first D2D communication data does not reach the threshold, mapping the first D2D communication data to the D2D Discovery transmission channel, and passing the D2D The Discovery transmission channel transmits the first D2D communication data, which solves the problem that the prior art cannot pass the D2D. The technical problem that the Discovery transmission channel carries D2D communication data can improve the transmission efficiency of the data channel and improve the overall resource utilization of the LTE network.
请参阅图12,图12是本申请数据传输装置另一实施例的结构示意图。本实施方式的数据传输装置可以为终端设备。终端设备为用户终端设备(User Equipment,UE),其中,UE可以为手机等移动终端设备。两个UE可以直接通信传输数据。本实施例的数据传输装置所包括的各模块用于分布执行图2、图6以及图8各自对应的实施例中的各步骤,具体请参阅图2、图6、图8及其各自对应的实施例中各步骤的相关描述,此处不赘述。本实施例的数据传输装置包括建立模块210、确定模块220、分割模块230、信息设置模块240、映射模块250、传输模块260。Please refer to FIG. 12. FIG. 12 is a schematic structural diagram of another embodiment of a data transmission apparatus according to the present application. The data transmission device of this embodiment may be a terminal device. The terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data. The modules included in the data transmission device of this embodiment are used to distribute the steps in the respective embodiments corresponding to FIG. 2, FIG. 6, and FIG. 8. For details, refer to FIG. 2, FIG. 6, FIG. The related description of each step in the embodiment is not described here. The data transmission device of this embodiment includes an establishing module 210, a determining module 220, a dividing module 230, an information setting module 240, a mapping module 250, and a transmission module 260.
建立模块210用于直接在媒体接入控制协议层建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系;或在无线链路控制协议层和ProSe协议栈之间设置映射接口,建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系。比如,建立模块210直接在媒体接入控制协议层建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系;或者在无线链路控制协议层和ProSe协议栈之间设置映射接口,建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系。The establishing module 210 is configured to establish a D2D service logical channel and D2D directly at the medium access control protocol layer. Discovery transmission channel mapping relationship; or set mapping interface between the radio link control protocol layer and the ProSe protocol stack to establish D2D service logical channel and D2D The mapping relationship of the Discovery transport channel. For example, the establishing module 210 directly establishes a D2D service logical channel and D2D at the medium access control protocol layer. Discovery transmission channel mapping relationship; or set mapping interface between the radio link control protocol layer and the ProSe protocol stack to establish D2D service logical channel and D2D The mapping relationship of the Discovery transport channel.
建立模块210用于设置分组数据汇聚协议层到ProSe协议栈的映射关系。比如,建立模块210设置分组数据汇聚协议层到所述ProSe协议栈的映射关系。The establishing module 210 is configured to set a mapping relationship between the packet data convergence protocol layer and the ProSe protocol stack. For example, the establishing module 210 sets a mapping relationship between the packet data convergence protocol layer and the ProSe protocol stack.
建立模块210在建立好D2D业务逻辑信道与D2D Discovery传输信道的映射关系后,向确定模块发送通知信息。The establishing module 210 establishes a D2D service logical channel and D2D After the mapping relationship of the Discovery transport channel, the notification information is sent to the determining module.
确定模块220用于接收建立模块210发送的通知信息,确定第一D2D通信数据的比特数是否小于等于第一预设阈值。确定模块220将确定结果向分割模块230、信息设置模块240、映射模块250。The determining module 220 is configured to receive the notification information sent by the establishing module 210, and determine whether the number of bits of the first D2D communication data is less than or equal to a first preset threshold. The determining module 220 passes the determination result to the segmentation module 230, the information setting module 240, and the mapping module 250.
当建立模块210用于直接在媒体接入控制协议层建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系;或者在无线链路控制协议层和ProSe协议栈之间设置映射接口,建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系时,分割模块230用于接收确定模块220发送的确定结果,当确定模块220确定第一D2D通信数据的比特数大于第一预设阈值时,在无线链路控制协议层将第一D2D通信数据至少分割为第二D2D通信数据和第三D2D通信数据;其中,第一预设阈值等于D2D Discovery传输信道承载的最大比特数,第二D2D通信数据的比特数小于等于第一预设阈值,第三D2D通信数据的比特数大于第二D2D通信数据的比特数。When the establishing module 210 is used to establish a D2D service logical channel and D2D directly at the medium access control protocol layer Discovery transmission channel mapping relationship; or set mapping interface between the radio link control protocol layer and the ProSe protocol stack to establish D2D service logical channel and D2D The partitioning module 230 is configured to receive the determination result sent by the determining module 220. When the determining module 220 determines that the number of bits of the first D2D communication data is greater than the first preset threshold, the determining module 220 is in the radio link control protocol layer. Separating the first D2D communication data into at least second D2D communication data and third D2D communication data; wherein the first preset threshold is equal to D2D The maximum number of bits carried by the Discovery transport channel, the number of bits of the second D2D communication data is less than or equal to a first preset threshold, and the number of bits of the third D2D communication data is greater than the number of bits of the second D2D communication data.
比如,分割模块230接收确定模块220发送的确定结果,当确定模块220确定第一D2D通信数据的比特数大于第一预设阈值时,在无线链路控制协议层将第一D2D通信数据至少分割为第二D2D通信数据和第三D2D通信数据;其中,第一预设阈值等于D2D Discovery传输信道承载的最大比特数,第二D2D通信数据的比特数小于等于第一预设阈值,第三D2D通信数据的比特数大于第二D2D通信数据的比特数。For example, the segmentation module 230 receives the determination result sent by the determining module 220. When the determining module 220 determines that the number of bits of the first D2D communication data is greater than the first preset threshold, the first D2D communication data is segmented at least in the radio link control protocol layer. Is second D2D communication data and third D2D communication data; wherein the first preset threshold is equal to D2D The maximum number of bits carried by the Discovery transport channel, the number of bits of the second D2D communication data is less than or equal to a first preset threshold, and the number of bits of the third D2D communication data is greater than the number of bits of the second D2D communication data.
分割模块230还用于确定分割得到的第三D2D通信数据的比特数是否大于第二预设阈值;其中,第二预设阈值为D2D共享传输信道承载的最大比特数;以及用于当第三D2D通信数据的比特数大于第二预设阈值时,在无线链路控制协议层将第三D2D通信数据进行分割,其中,分割后的每份D2D通信数据的比特数均小于等于第二预设阈值,第二D2D通信数据包括第三D2D通信数据的调度信息,调度信息用于指示第三D2D通信数据使用的时频资源的信息。The segmentation module 230 is further configured to determine whether the number of bits of the third D2D communication data obtained by the segmentation is greater than a second preset threshold; wherein, the second preset threshold is a maximum number of bits carried by the D2D shared transport channel; and When the number of bits of the D2D communication data is greater than the second preset threshold, the third D2D communication data is divided at the radio link control protocol layer, wherein the number of bits of each of the divided D2D communication data is less than or equal to the second preset. The threshold, the second D2D communication data includes scheduling information of the third D2D communication data, and the scheduling information is used to indicate information of a time-frequency resource used by the third D2D communication data.
比如,分割模块230在将第一D2D通信数据至少分割为第二D2D通信数据和第三D2D通信数据之后,确定分割得到的第三D2D通信数据的比特数是否大于第二预设阈值;其中,第二预设阈值为D2D共享传输信道承载的最大比特数。当第三D2D通信数据的比特数大于第二预设阈值时,在无线链路控制协议层将第三D2D通信数据进行分割,其中,分割后的每份D2D通信数据的比特数均小于等于第二预设阈值,第二D2D通信数据包括第三D2D通信数据的调度信息,调度信息用于指示第三D2D通信数据使用的时频资源的信息。For example, after the first D2D communication data is divided into the second D2D communication data and the third D2D communication data, the segmentation module 230 determines whether the number of bits of the third D2D communication data obtained by the segmentation is greater than a second preset threshold; The second preset threshold is the maximum number of bits carried by the D2D shared transport channel. When the number of bits of the third D2D communication data is greater than the second preset threshold, the third D2D communication data is divided at the radio link control protocol layer, wherein the number of bits of each of the divided D2D communication data is less than or equal to the first The second preset threshold, the second D2D communication data includes scheduling information of the third D2D communication data, and the scheduling information is used to indicate information of the time-frequency resource used by the third D2D communication data.
分割模块230完成第一D2D通信数据的分割后向信息设置模块240发送通知信息。The segmentation module 230 transmits the notification information to the information setting module 240 after completing the segmentation of the first D2D communication data.
信息设置模块240用于接收确定模块220发送的确定结果,以及分割模块230发送的通知信息,在确定模块220确定第一D2D通信数据的比特数小于等于第一预设阈值,或接收到分割模块230发送的通知信息时,在媒体接入控制协议层对第一D2D通信数据添加源地址和目的地址,以及添加专用逻辑信道标识,其中,源地址用于标识发送第一D2D通信数据的终端设备的地址,目的地址用于标识接收第一D2D通信数据的终端设备的地址,专用逻辑信道标识用于标识D2D Discovery传输信道传输的D2D通信数据。The information setting module 240 is configured to receive the determination result sent by the determining module 220, and the notification information sent by the segmentation module 230. The determining module 220 determines that the number of bits of the first D2D communication data is less than or equal to a first preset threshold, or receives the segmentation module. When the notification information is sent by 230, the source address and the destination address are added to the first D2D communication data at the medium access control protocol layer, and a dedicated logical channel identifier is added, where the source address is used to identify the terminal device that sends the first D2D communication data. Address, the destination address is used to identify the address of the terminal device receiving the first D2D communication data, and the dedicated logical channel identifier is used to identify the D2D Discovery transmits D2D communication data for the channel.
比如,接收确定模块220发送的确定结果,以及分割模块230发送的通知信息,在确定模块220确定第一D2D通信数据的比特数小于等于第一预设阈值,或接收到分割模块230发送的通知信息时,在媒体接入控制协议层对第一D2D通信数据添加源地址和目的地址,以及添加专用逻辑信道标识,其中,源地址用于标识发送第一D2D通信数据的终端设备的地址,目的地址用于标识接收第一D2D通信数据的终端设备的地址,专用逻辑信道标识用于标识D2D Discovery传输信道传输的D2D通信数据。For example, the determination result sent by the receiving determination module 220 and the notification information sent by the segmentation module 230 are determined by the determining module 220 to determine that the number of bits of the first D2D communication data is less than or equal to the first preset threshold, or the notification sent by the segmentation module 230 is received. In the information, the source address and the destination address are added to the first D2D communication data at the medium access control protocol layer, and the dedicated logical channel identifier is added, wherein the source address is used to identify the address of the terminal device that sends the first D2D communication data, and the purpose is The address is used to identify the address of the terminal device that receives the first D2D communication data, and the dedicated logical channel identifier is used to identify the D2D Discovery transmits D2D communication data for the channel.
信息设置模块240在完成添加源地址和目的地址之后,向映射模块发送通知信息。The information setting module 240 sends the notification information to the mapping module after completing the addition of the source address and the destination address.
映射模块250用于接收信息设置模块240发送的通知信息,当第一D2D通信数据的比特数小于等于第一预设阈值时,在媒体接入控制协议层将第一D2D通信数据映射到D2D Discovery传输信道;或通过映射接口将第一D2D通信数据递交到ProSe协议栈,以在媒体接入控制协议层将第一D2D通信数据映射到D2D Discovery传输信道;以及用于当第一D2D通信数据的比特数大于第一预设阈值时,将第一D2D通信数据映射到D2D共享传输信道;其中,第一预设阈值小于等于D2D Discovery传输信道承载的最大比特数。The mapping module 250 is configured to receive the notification information sent by the information setting module 240, and map the first D2D communication data to the D2D at the medium access control protocol layer when the number of bits of the first D2D communication data is less than or equal to the first preset threshold. Discovery transport channel; or submit the first D2D communication data to the ProSe protocol stack through the mapping interface to map the first D2D communication data to the D2D at the medium access control protocol layer a discovery channel; and configured to map the first D2D communication data to the D2D shared transmission channel when the number of bits of the first D2D communication data is greater than a first preset threshold; wherein the first preset threshold is less than or equal to D2D The maximum number of bits carried by the Discovery transport channel.
比如,映射模块250接收信息设置模块240发送的通知信息,当第一D2D通信数据的比特数小于等于第一预设阈值时,在媒体接入控制协议层将第一D2D通信数据映射到D2D Discovery传输信道;或通过映射接口将第一D2D通信数据递交到ProSe协议栈,以在媒体接入控制协议层将第一D2D通信数据映射到D2D Discovery传输信道。当第一D2D通信数据的比特数大于第一预设阈值时,将第一D2D通信数据映射到D2D共享传输信道。其中,第一预设阈值小于等于D2D Discovery传输信道承载的最大比特数。For example, the mapping module 250 receives the notification information sent by the information setting module 240, and maps the first D2D communication data to the D2D at the medium access control protocol layer when the number of bits of the first D2D communication data is less than or equal to the first preset threshold. Discovery transport channel; or submit the first D2D communication data to the ProSe protocol stack through the mapping interface to map the first D2D communication data to the D2D at the medium access control protocol layer Discovery transport channel. When the number of bits of the first D2D communication data is greater than the first predetermined threshold, the first D2D communication data is mapped to the D2D shared transmission channel. Wherein, the first preset threshold is less than or equal to D2D The maximum number of bits carried by the Discovery transport channel.
当建立模块210用于设置分组数据汇聚协议层到所述ProSe协议栈的映射关系时,映射模块250用于接收确定模块220发送的确定结果,当确定模块220确定第一D2D通信数据的比特数小于等于第一预设阈值时,将第一D2D通信数据从分组数据汇聚协议层递交到ProSe协议栈,对第一D2D通信数据设置ProSe标识,并在媒体接入控制协议层将第一D2D通信数据映射到D2D Discovery传输信道;当确定模块220确定第一D2D通信数据的比特数大于第一预设阈值时,将第一D2D通信数据从分组数据汇聚协议层递交到媒体接入控制协议层,并在媒体接入控制协议层将第一D2D通信数据映射到D2D共享传输信道。其中,第一预设阈值小于等于D2D Discovery传输信道承载的最大比特数。When the establishing module 210 is configured to set a mapping relationship between the packet data convergence protocol layer and the ProSe protocol stack, the mapping module 250 is configured to receive the determination result sent by the determining module 220, where the determining module 220 determines the number of bits of the first D2D communication data. When less than or equal to the first preset threshold, the first D2D communication data is delivered from the packet data convergence protocol layer to the ProSe protocol stack, the ProSe identifier is set to the first D2D communication data, and the first D2D communication is set at the medium access control protocol layer. Data mapping to D2D a discovery channel: when the determining module 220 determines that the number of bits of the first D2D communication data is greater than the first preset threshold, the first D2D communication data is delivered from the packet data convergence protocol layer to the medium access control protocol layer, and is connected in the medium The incoming control protocol layer maps the first D2D communication data to the D2D shared transport channel. Wherein, the first preset threshold is less than or equal to D2D The maximum number of bits carried by the Discovery transport channel.
比如,映射模块250接收确定模块220发送的确定结果,当确定模块220确定第一D2D通信数据的比特数小于等于第一预设阈值时,将第一D2D通信数据从分组数据汇聚协议层递交到ProSe协议栈,对第一D2D通信数据设置ProSe标识,并在媒体接入控制协议层将第一D2D通信数据映射到D2D Discovery传输信道;当确定模块220确定第一D2D通信数据的比特数大于第一预设阈值时,将第一D2D通信数据从分组数据汇聚协议层递交到媒体接入控制协议层,并在媒体接入控制协议层将第一D2D通信数据映射到D2D共享传输信道。其中,第一预设阈值小于等于D2D Discovery传输信道承载的最大比特数。For example, the mapping module 250 receives the determination result sent by the determining module 220. When the determining module 220 determines that the number of bits of the first D2D communication data is less than or equal to the first preset threshold, the first D2D communication data is delivered from the packet data convergence protocol layer to the The ProSe protocol stack sets a ProSe identifier for the first D2D communication data, and maps the first D2D communication data to the D2D at the medium access control protocol layer a discovery channel: when the determining module 220 determines that the number of bits of the first D2D communication data is greater than the first preset threshold, the first D2D communication data is delivered from the packet data convergence protocol layer to the medium access control protocol layer, and is connected in the medium The incoming control protocol layer maps the first D2D communication data to the D2D shared transport channel. Wherein, the first preset threshold is less than or equal to D2D The maximum number of bits carried by the Discovery transport channel.
映射模块250完成第一D2D通信数据映射后,向传输模块260发送通知信息。After the mapping module 250 completes the first D2D communication data mapping, the mapping module 250 transmits the notification information to the transmission module 260.
传输模块260用于接收映射模块250发送的通知信息,通过D2D Discovery传输信道传输第一D2D通信数据,或通过D2D共享传输信道传输所述第一D2D通信数据。比如,传输模块260接收映射模块250发送的通知信息,通过D2D Discovery传输信道传输第一D2D通信数据,或通过D2D共享传输信道传输第一D2D通信数据。The transmission module 260 is configured to receive the notification information sent by the mapping module 250, by using D2D. The Discovery transport channel transmits the first D2D communication data or transmits the first D2D communication data through a D2D shared transport channel. For example, the transmission module 260 receives the notification information sent by the mapping module 250, and passes the D2D. The Discovery transport channel transmits the first D2D communication data or transmits the first D2D communication data through the D2D shared transport channel.
上述方案,终端设备建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系,当确定第一D2D通信数据小于等于第一预设阈值,将第一D2D通信数据映射到D2D Discovery传输信道,通过D2D Discovery传输信道传输第一D2D通信数据,通过D2D Discovery传输资源传输D2D通信数据,解决了现有技术中无法通过D2D Discovery传输信道承载D2D通信数据的技术问题,能够提高数据信道的传输效率,提高LTE网络的整体资源利用率。In the above solution, the terminal device establishes a D2D service logical channel and D2D The mapping relationship of the Discovery transmission channel, when determining that the first D2D communication data is less than or equal to the first preset threshold, mapping the first D2D communication data to the D2D Discovery transmission channel, and passing the D2D The Discovery transmission channel transmits the first D2D communication data, and transmits the D2D communication data through the D2D Discovery transmission resource, which solves the problem that the prior art cannot pass the D2D. The technical problem that the Discovery transmission channel carries D2D communication data can improve the transmission efficiency of the data channel and improve the overall resource utilization of the LTE network.
当第一D2D通信数据大于第一预设阈值时,将第一D2D通信数据映射到D2D共享传输信道,通过D2D共享传输信道传输第一D2D通信数据。When the first D2D communication data is greater than the first preset threshold, the first D2D communication data is mapped to the D2D shared transmission channel, and the first D2D communication data is transmitted through the D2D shared transmission channel.
进一步地,当第一D2D通信数据大于第一预设阈值时,还可以将第一D2D通信分割为第二D2D通信数据以及第三D2D通信数据,通过D2D Discovery传输信道传输第二D2D通信数据,通过D2D共享传输信道传输第一D2D通信数据;当第三D2D通信数据大于第二预设阈值时,还可以通过第二D2D通信数据调度第三D2D通信数据进行传输。Further, when the first D2D communication data is greater than the first preset threshold, the first D2D communication may be further divided into the second D2D communication data and the third D2D communication data by using the D2D The Discovery transmission channel transmits the second D2D communication data, and transmits the first D2D communication data through the D2D shared transmission channel; when the third D2D communication data is greater than the second preset threshold, the third D2D communication data may also be scheduled by using the second D2D communication data. Transfer.
请参阅图13,图13是本申请数据传输装置再一实施例的结构示意图。本实施方式的数据传输装置可以为终端设备。终端设备为用户终端设备(User Equipment,UE),其中,UE可以为手机等移动终端设备。两个UE可以直接通信传输数据。本实施例的数据传输装置所包括的各模块用于执行图10以及图10对应的实施例中的各步骤,具体请参阅图10以及图10对应的实施例中各步骤的相关描述,此处不赘述。本实施例的数据传输装置包括接收模块310、确定模块320以及映射模块330。Please refer to FIG. 13. FIG. 13 is a schematic structural diagram of still another embodiment of the data transmission apparatus of the present application. The data transmission device of this embodiment may be a terminal device. The terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data. The modules included in the data transmission device of this embodiment are used to perform the steps in the embodiments corresponding to FIG. 10 and FIG. 10 . For details, refer to the related descriptions of the steps in the embodiment corresponding to FIG. 10 and FIG. 10 . Do not repeat them. The data transmission apparatus of this embodiment includes a receiving module 310, a determining module 320, and a mapping module 330.
接收模块310用于接收其他终端设备发送的D2D通信数据。比如,接收模块310接收其他终端设备发送的D2D通信数据。接收模块310将D2D通信数据向确定模块320发送。The receiving module 310 is configured to receive D2D communication data sent by other terminal devices. For example, the receiving module 310 receives D2D communication data sent by other terminal devices. The receiving module 310 transmits the D2D communication data to the determining module 320.
确定模块320用于接收接收模块310发送的D2D通信数据,根据接收模块310接收的D2D通信数据的信息确定D2D通信数据来自D2D Discovery传输信道。比如,确定模块320接收接收模块310发送的D2D通信数据,根据接收模块310接收的D2D通信数据的信息确定D2D通信数据来自D2D Discovery传输信道。确定模块320将确定结果向映射模块330发送。The determining module 320 is configured to receive the D2D communication data sent by the receiving module 310, and determine that the D2D communication data is from the D2D according to the information of the D2D communication data received by the receiving module 310. Discovery transport channel. For example, the determining module 320 receives the D2D communication data sent by the receiving module 310, and determines that the D2D communication data is from the D2D according to the information of the D2D communication data received by the receiving module 310. Discovery transport channel. The determination module 320 transmits the determination result to the mapping module 330.
映射模块330用于接收确定模块320发送的确定结果,当确定模块320确定D2D通信数据来自D2D Discovery传输信道时,根据D2D通信数据的信息以及获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系,将D2D通信数据映射到D2D Discovery传输信道,在D2D通信数据递交到应用层后,识别D2D通信数据并实现D2D通信数据对应的功能。The mapping module 330 is configured to receive the determination result sent by the determining module 320, when the determining module 320 determines that the D2D communication data is from the D2D. When the Discovery transport channel is used, the D2D communication data is mapped to the D2D according to the information of the D2D communication data and the mapping relationship between the acquired D2D service logical channel and the D2D Discovery transport channel. The Discovery transport channel recognizes the D2D communication data and implements the function corresponding to the D2D communication data after the D2D communication data is delivered to the application layer.
上述方案,终端设备接收除该终端设备之外的其他终端设备发送的D2D通信数据,根据D2D通信数据的信息确定D2D通信数据来自D2D Discovery传输信道,根据D2D通信数据的信息以及终端设备获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系,将D2D通信数据映射到D2D Discovery传输信道,从而识别D2D通信数据实现D2D通信数据对应的功能。In the above solution, the terminal device receives the D2D communication data sent by the terminal device other than the terminal device, and determines the D2D communication data from the D2D according to the information of the D2D communication data. Discovery transport channel, based on information of D2D communication data and D2D service logical channel and D2D acquired by the terminal device The mapping relationship of the Discovery transport channel maps the D2D communication data to the D2D Discovery transport channel, thereby identifying the D2D communication data to implement the function corresponding to the D2D communication data.
请参阅图14,图14是本申请数据传输装置又一实施例的结构示意图。本实施例的数据传输装置可以为终端设备。终端设备为用户终端设备(User Equipment,UE),其中,UE可以为手机等移动终端设备。两个UE可以直接通信传输数据。本实施例的数据传输装置所包括的各模块用于执行图10以及图10对应的实施例中的各步骤,具体请参阅图10以及图10对应的实施例中各步骤的相关描述,此处不赘述。本实施例的数据传输装置包括接收模块410、确定模块420、映射模块430以及还原模块440。Please refer to FIG. 14. FIG. 14 is a schematic structural diagram of still another embodiment of the data transmission apparatus of the present application. The data transmission device of this embodiment may be a terminal device. The terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data. The modules included in the data transmission device of this embodiment are used to perform the steps in the embodiments corresponding to FIG. 10 and FIG. 10 . For details, refer to the related descriptions of the steps in the embodiment corresponding to FIG. 10 and FIG. 10 . Do not repeat them. The data transmission apparatus of this embodiment includes a receiving module 410, a determining module 420, a mapping module 430, and a restoration module 440.
接收模块410用于接收其他终端设备发送的D2D通信数据。其中,接收模块410接收的D2D通信数据的信息包括D2D通信数据的比特数和/或专用逻辑信道标识,专用逻辑信道标识用于标识D2D通信数据来自D2D Discovery传输信道。接收模块410接收的D2D通信数据的信息还包括源地址以及目的地址,源地址用于标识发送D2D通信数据的终端设备的地址,目的地址用于标识接收所述D2D通信数据的终端设备的地址。The receiving module 410 is configured to receive D2D communication data sent by other terminal devices. The information of the D2D communication data received by the receiving module 410 includes the number of bits of the D2D communication data and/or a dedicated logical channel identifier, and the dedicated logical channel identifier is used to identify the D2D communication data from the D2D. Discovery transport channel. The information of the D2D communication data received by the receiving module 410 further includes a source address and a destination address. The source address is used to identify an address of the terminal device that transmits the D2D communication data, and the destination address is used to identify the address of the terminal device that receives the D2D communication data.
接收模块410接收的D2D通信数据的信息包括D2D通信数据的比特数以及ProSe标识,ProSe标识用于标识D2D通信数据来自数据分组汇聚协议层。The information of the D2D communication data received by the receiving module 410 includes the number of bits of the D2D communication data and the ProSe identifier, and the ProSe identifier is used to identify that the D2D communication data is from the data packet convergence protocol layer.
比如,接收模块410接收其他终端设备发送的D2D通信数据。其中,接收模块410接收的D2D通信数据的信息包括D2D通信数据的比特数和/或专用逻辑信道标识,专用逻辑信道标识用于标识D2D通信数据来自D2D Discovery传输信道。接收模块410接收的D2D通信数据的信息包括D2D通信数据的比特数、源地址、目的地址、和/或专用逻辑信道标识。源地址用于标识发送D2D通信数据的终端设备的地址,目的地址用于标识接收所述D2D通信数据的终端设备的地址。接收模块410接收的D2D通信数据的信息包括D2D通信数据的比特数以及ProSe标识,ProSe标识用于标识D2D通信数据来自数据分组汇聚协议层。For example, the receiving module 410 receives D2D communication data sent by other terminal devices. The information of the D2D communication data received by the receiving module 410 includes the number of bits of the D2D communication data and/or a dedicated logical channel identifier, and the dedicated logical channel identifier is used to identify the D2D communication data from the D2D. Discovery transport channel. The information of the D2D communication data received by the receiving module 410 includes the number of bits of the D2D communication data, the source address, the destination address, and/or the dedicated logical channel identifier. The source address is used to identify the address of the terminal device that transmits the D2D communication data, and the destination address is used to identify the address of the terminal device that receives the D2D communication data. The information of the D2D communication data received by the receiving module 410 includes the number of bits of the D2D communication data and the ProSe identifier, and the ProSe identifier is used to identify that the D2D communication data is from the data packet convergence protocol layer.
接收模块410将D2D通信数据向确定模块420发送。The receiving module 410 transmits the D2D communication data to the determining module 420.
确定模块420用于接收接收模块410发送的D2D通信数据,根据接收模块410接收的D2D通信数据的信息确定D2D通信数据来自D2D Discovery传输信道。比如,确定模块420接收接收模块410发送的D2D通信数据,根据接收模块410接收的D2D通信数据的信息确定D2D通信数据来自D2D Discovery传输信道。The determining module 420 is configured to receive the D2D communication data sent by the receiving module 410, and determine that the D2D communication data is from the D2D according to the information of the D2D communication data received by the receiving module 410. Discovery transport channel. For example, the determining module 420 receives the D2D communication data sent by the receiving module 410, and determines that the D2D communication data is from the D2D according to the information of the D2D communication data received by the receiving module 410. Discovery transport channel.
其中,确定模块420用于当根据接收模块410接收的D2D通信数据的信息确定D2D通信数据的比特数小于等于第一预设阈值,或D2D通信数据包含专用逻辑信道标识时,确认D2D通信数据来自D2D Discovery传输信道;其中,第一预设阈值小于等于D2D Discovery传输信道承载的最大比特数。比如,当确定模块420根据接收模块410接收的D2D通信数据的信息确定D2D通信数据的比特数小于等于第一预设阈值,或D2D通信数据包含专用逻辑信道标识时,确认D2D通信数据来自D2D Discovery传输信道;其中,第一预设阈值小于等于D2D Discovery传输信道承载的最大比特数。The determining module 420 is configured to: when determining, according to the information of the D2D communication data received by the receiving module 410, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, or the D2D communication data includes a dedicated logical channel identifier, confirming that the D2D communication data is from D2D Discovery transport channel; wherein the first preset threshold is less than or equal to D2D The maximum number of bits carried by the Discovery transport channel. For example, when the determining module 420 determines, according to the information of the D2D communication data received by the receiving module 410, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, or the D2D communication data includes a dedicated logical channel identifier, confirm that the D2D communication data is from the D2D. The Discovery transport channel; wherein the first preset threshold is less than or equal to the maximum number of bits carried by the D2D Discovery transport channel.
确定模块420用于当根据接收模块410接收的D2D通信数据的信息确定D2D通信数据的比特数小于等于第一预设阈值,且D2D通信数据包含专用逻辑信道标识时,确认D2D通信数据来自D2D Discovery传输信道。比如,当确定模块420根据接收模块410接收的D2D通信数据的信息确定D2D通信数据的比特数小于等于第一预设阈值,且D2D通信数据包含专用逻辑信道标识时,确认D2D通信数据来自D2D Discovery传输信道。The determining module 420 is configured to: when determining, according to the information of the D2D communication data received by the receiving module 410, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes the dedicated logical channel identifier, confirming that the D2D communication data is from the D2D Discovery transport channel. For example, when the determining module 420 determines that the number of bits of the D2D communication data is less than or equal to the first preset threshold according to the information of the D2D communication data received by the receiving module 410, and the D2D communication data includes the dedicated logical channel identifier, confirm that the D2D communication data is from the D2D. Discovery transport channel.
确定模块420用于当从接收模块410接收的D2D通信数据的信息中获取到无线链路控制协议层的数据包头包含源地址以及目的地址,且确定D2D通信数据的比特数小于等于第一预设阈值或D2D通信数据包含专用逻辑信道标识时,确认D2D通信数据来自D2D Discovery传输信道。比如,当确定模块420从接收模块410接收的D2D通信数据的信息中获取到无线链路控制协议层的数据包头包含源地址以及目的地址,且确定D2D通信数据的比特数小于等于第一预设阈值或D2D通信数据包含专用逻辑信道标识时,确认D2D通信数据来自D2D Discovery传输信道。The determining module 420 is configured to: when the information of the D2D communication data received from the receiving module 410 is acquired, the data packet header of the radio link control protocol layer includes a source address and a destination address, and determine that the number of bits of the D2D communication data is less than or equal to the first preset. Confirm that D2D communication data comes from D2D when the threshold or D2D communication data contains a dedicated logical channel identifier Discovery transport channel. For example, when the determining module 420 obtains the data packet header of the radio link control protocol layer from the information of the D2D communication data received by the receiving module 410, the source address and the destination address are determined, and the number of bits of the D2D communication data is determined to be less than or equal to the first preset. Confirm that D2D communication data comes from D2D when the threshold or D2D communication data contains a dedicated logical channel identifier Discovery transport channel.
确定模块420用于当根据接收模块410接收的D2D通信数据的信息确定D2D通信数据的比特数小于等于第一预设阈值,且D2D通信数据包含ProSe标识时,确认D2D通信数据来自D2D Discovery传输信道。比如,当确定模块420根据接收模块410接收的D2D通信数据的信息确定D2D通信数据的比特数小于等于第一预设阈值,且D2D通信数据包含ProSe标识时,确认D2D通信数据来自D2D Discovery传输信道。The determining module 420 is configured to: when determining, according to the information of the D2D communication data received by the receiving module 410, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes the ProSe identifier, confirming that the D2D communication data is from the D2D Discovery transport channel. For example, when the determining module 420 determines, according to the information of the D2D communication data received by the receiving module 410, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes the ProSe identifier, confirm that the D2D communication data is from the D2D. Discovery transport channel.
确定模块420将确定结果向映射模块430发送。The determination module 420 transmits the determination result to the mapping module 430.
映射模块430接收确定模块420发送的确定结果,映射模块用于当确定模块420确定D2D通信数据的比特数小于等于第一预设阈值,或D2D通信数据包含专用逻辑信道标识,将确定模块420确定的D2D通信数据通过D2D Discovery传输信道递交到媒体接入控制协议层,并根据获取的映射关系在媒体接入控制协议层将所述D2D通信数据映射到D2D业务逻辑信道,其中,获取的映射关系为在媒体接入控制协议层建立的D2D业务逻辑信道与D2D Discovery传输信道的映射关系。The mapping module 430 receives the determination result sent by the determining module 420, and the mapping module is configured to: when the determining module 420 determines that the number of bits of the D2D communication data is less than or equal to a first preset threshold, or the D2D communication data includes a dedicated logical channel identifier, the determining module 420 determines D2D communication data through D2D The Discovery transport channel is delivered to the media access control protocol layer, and the D2D communication data is mapped to the D2D service logical channel at the medium access control protocol layer according to the obtained mapping relationship, wherein the acquired mapping relationship is in the media access control D2D service logical channel established by protocol layer and D2D The mapping relationship of the Discovery transport channel.
当接收模块410接收的D2D通信数据的信息还包括调度信息(调度信息用于指示第二D2D通信数据使用的时频资源)时,映射模块430还用于当确定模块420根据D2D通信数据的信息确定D2D通信数据的比特数小于等于第一预设阈值,且D2D通信数据包含专用逻辑信道标识时,根据调度信息获取第二D2D通信数据;以及用于将D2D通信数据通过所述D2D Discovery传输信道递交到媒体接入控制协议层,以及将第二D2D通信数据通过D2D共享传输信道递交到媒体接入控制协议层,并在媒体接入控制协议层将D2D通信数据以及第二D2D通信数据映射到D2D业务逻辑信道。When the information of the D2D communication data received by the receiving module 410 further includes scheduling information (the scheduling information is used to indicate the time-frequency resource used by the second D2D communication data), the mapping module 430 is further configured to: when determining, the information of the module 420 according to the D2D communication data. Determining that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and when the D2D communication data includes the dedicated logical channel identifier, acquiring the second D2D communication data according to the scheduling information; and for passing the D2D communication data through the D2D The Discovery transport channel is delivered to the medium access control protocol layer, and the second D2D communication data is delivered to the medium access control protocol layer through the D2D shared transport channel, and the D2D communication data and the second D2D communication are performed at the medium access control protocol layer. The data is mapped to the D2D service logical channel.
比如,当确定模块420根据D2D通信数据的信息确定D2D通信数据的比特数小于等于第一预设阈值,且D2D通信数据包含专用逻辑信道标识时,映射模块430根据调度信息获取第二D2D通信数据,将D2D通信数据通过所述D2D Discovery传输信道递交到媒体接入控制协议层,以及将第二D2D通信数据通过D2D共享传输信道递交到媒体接入控制协议层,并在媒体接入控制协议层将D2D通信数据以及第二D2D通信数据映射到D2D业务逻辑信道。For example, when the determining module 420 determines that the number of bits of the D2D communication data is less than or equal to the first preset threshold according to the information of the D2D communication data, and the D2D communication data includes the dedicated logical channel identifier, the mapping module 430 acquires the second D2D communication data according to the scheduling information. Passing D2D communication data through the D2D The Discovery transport channel is delivered to the medium access control protocol layer, and the second D2D communication data is delivered to the medium access control protocol layer through the D2D shared transport channel, and the D2D communication data and the second D2D communication are performed at the medium access control protocol layer. The data is mapped to the D2D service logical channel.
当接收模块410接收的D2D通信数据的信息还包括调度信息时,映射模块430在媒体接入控制协议层将D2D通信数据以及第二D2D通信数据映射到D2D业务逻辑信道之后,向还原模块440发送通知信息。When the information of the D2D communication data received by the receiving module 410 further includes scheduling information, the mapping module 430 sends the D2D communication data and the second D2D communication data to the D2D service logical channel after the medium access control protocol layer, and sends the data to the restoration module 440. Notification information.
映射模块430用于当确定模块420从D2D通信数据中获取到无线链路控制协议层的数据包头包含源地址以及目的地址,且确定D2D通信数据的比特数小于等于第一预设阈值或D2D通信数据包含专用逻辑信道标识时,将确定模块420确定的D2D通信数据通过D2D Discovery传输信道递交到媒体接入控制协议层,在媒体接入控制协议层将D2D通信数据映射到ProSe协议栈;以及通过无线链路控制协议层和ProSe协议栈之间的映射接口,将D2D通信数据递交到无线链路控制协议层。The mapping module 430 is configured to: when the determining module 420 obtains the data packet header of the radio link control protocol layer from the D2D communication data, includes a source address and a destination address, and determine that the number of bits of the D2D communication data is less than or equal to a first preset threshold or D2D communication. When the data includes a dedicated logical channel identifier, the D2D communication data determined by the determination module 420 is passed through the D2D. The Discovery transport channel is delivered to the medium access control protocol layer, and the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer; and the D2D communication is performed through a mapping interface between the radio link control protocol layer and the ProSe protocol stack. The data is submitted to the Radio Link Control Protocol layer.
比如,当确定模块420从D2D通信数据中获取到无线链路控制协议层的数据包头包含源地址以及目的地址,且确定D2D通信数据的比特数小于等于第一预设阈值或D2D通信数据包含专用逻辑信道标识时,映射模块430将确定模块420确定的D2D通信数据通过D2D Discovery传输信道递交到媒体接入控制协议层,在媒体接入控制协议层将D2D通信数据映射到ProSe协议栈;以及通过无线链路控制协议层和ProSe协议栈之间的映射接口,将D2D通信数据递交到无线链路控制协议层。For example, when the determining module 420 obtains the data packet header of the radio link control protocol layer from the D2D communication data, the source address and the destination address are included, and it is determined that the number of bits of the D2D communication data is less than or equal to a first preset threshold or the D2D communication data includes a dedicated When the logical channel is identified, the mapping module 430 passes the D2D communication data determined by the determining module 420 through the D2D. The Discovery transport channel is delivered to the medium access control protocol layer, and the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer; and the D2D communication is performed through a mapping interface between the radio link control protocol layer and the ProSe protocol stack. The data is submitted to the Radio Link Control Protocol layer.
映射模块430用于当确定模块420确定D2D通信数据的比特数小于等于第一预设阈值,且D2D通信数据包含ProSe标识时,将确定模块420确定的D2D通信数据通过D2D Discovery传输信道递交到媒体接入控制协议层,在媒体接入控制协议层将D2D通信数据映射到ProSe协议栈;以及用于根据ProSe协议栈与分组数据汇聚协议层的映射关系,将D2D通信数据映射到分组数据汇聚协议层。The mapping module 430 is configured to: when the determining module 420 determines that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes the ProSe identifier, pass the D2D communication data determined by the determining module 420 to the D2D. The Discovery transport channel is delivered to the medium access control protocol layer, and the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer; and the D2D communication data is used according to the mapping relationship between the ProSe protocol stack and the packet data convergence protocol layer. Map to the packet data aggregation protocol layer.
还原模块440用于接收映射模块430在媒体接入控制协议层将D2D通信数据以及第二D2D通信数据映射到D2D业务逻辑信道之后发送的通知信息,在无线链路控制协议层将映射模块430映射的D2D通信数据以及第二D2D通信数据组包还原得到分割前的D2D通信数据包。The restoration module 440 is configured to receive the notification information that is sent by the mapping module 430 after the media access control protocol layer maps the D2D communication data and the second D2D communication data to the D2D service logical channel, and maps the mapping module 430 at the radio link control protocol layer. The D2D communication data and the second D2D communication data packet are restored to obtain the D2D communication data packet before the division.
上述方案,终端设备接收除该终端设备之外的其他终端设备发送的D2D通信数据,根据D2D通信数据的信息确定D2D通信数据来自D2D Discovery传输信道,根据D2D通信数据的信息以及终端设备获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系,将D2D通信数据映射到D2D Discovery传输信道,从而识别D2D通信数据实现D2D通信数据对应的功能。In the above solution, the terminal device receives the D2D communication data sent by the terminal device other than the terminal device, and determines the D2D communication data from the D2D according to the information of the D2D communication data. Discovery transport channel, based on information of D2D communication data and D2D service logical channel and D2D acquired by the terminal device The mapping relationship of the Discovery transport channel maps the D2D communication data to the D2D Discovery transport channel, thereby identifying the D2D communication data to implement the function corresponding to the D2D communication data.
参阅图15,图15是本申请数据传输装置再一实施例的结构示意图。本实施例的数据传输装置可以为终端设备。终端设备为用户终端设备(User Equipment,UE),其中,UE可以为手机等移动终端设备。两个UE可以直接通信传输数据。本实施方例的终端设备包括:收发器510、处理器520、只读存储器530、随机存取存储器540以及总线550。Referring to FIG. 15, FIG. 15 is a schematic structural diagram of still another embodiment of a data transmission apparatus according to the present application. The data transmission device of this embodiment may be a terminal device. The terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data. The terminal device of this embodiment example includes a transceiver 510, a processor 520, a read only memory 530, a random access memory 540, and a bus 550.
收发器510用于接收、发送数据。The transceiver 510 is configured to receive and transmit data.
处理器520控制终端设备的操作,处理器520还可以称为CPU(Central Processing Unit,中央处理单元)。处理器520可能是一种集成电路芯片,具有信号的处理能力。处理器520还可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 520 controls the operation of the terminal device, and the processor 520 may also be referred to as a CPU (Central Processing). Unit, central processing unit). Processor 520 may be an integrated circuit chip with signal processing capabilities. Processor 520 can also be a general purpose processor, digital signal processor (DSP), application specific integrated circuit (ASIC), off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component . The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
存储器可以包括只读存储器530和随机存取存储器540,并向处理器520提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器(NVRAM)。The memory can include read only memory 530 and random access memory 540 and provides instructions and data to processor 520. A portion of the memory may also include non-volatile random access memory (NVRAM).
数据传输装置的各个组件通过总线550耦合在一起,其中总线550除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线550。The various components of the data transfer device are coupled together by a bus 550, which may include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like. However, for clarity of description, various buses are labeled as bus 550 in the figure.
存储器存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集: The memory stores the following elements, executable modules or data structures, or a subset of them, or their extended set:
操作指令:包括各种操作指令,用于实现各种操作。Operation instructions: include various operation instructions for implementing various operations.
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。Operating system: Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
在本发明实施例中,处理器520通过调用存储器存储的操作指令(该操作指令可存储在操作系统中),执行如下操作:In the embodiment of the present invention, the processor 520 performs the following operations by calling an operation instruction stored in the memory, which can be stored in the operating system:
处理器520用于建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系;The processor 520 is configured to establish a mapping relationship between the D2D service logical channel and the D2D Discovery transmission channel.
处理器520用于确定第一D2D通信数据的比特数是否达到门限值,其中,所述第一D2D通信数据为待传输的D2D通信数据;The processor 520 is configured to determine whether the number of bits of the first D2D communication data reaches a threshold value, wherein the first D2D communication data is D2D communication data to be transmitted;
处理器520用于当确定所述第一D2D通信数据未达到所述门限值时,根据所述映射关系将所述第一D2D通信数据映射到所述D2D Discovery传输信道,并通过所述D2D Discovery传输信道传输所述第一D2D通信数据。The processor 520 is configured to: when determining that the first D2D communication data does not reach the threshold, map the first D2D communication data to the D2D according to the mapping relationship Discovery transmits a channel and transmits the first D2D communication data through the D2D Discovery transmission channel.
可选地,处理器520用于直接在媒体接入控制协议层建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系;或在无线链路控制协议层和ProSe协议栈之间设置映射接口,建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系。Optionally, the processor 520 is configured to establish a D2D service logical channel and D2D directly at the medium access control protocol layer. Discovery transmission channel mapping relationship; or set mapping interface between the radio link control protocol layer and the ProSe protocol stack to establish D2D service logical channel and D2D The mapping relationship of the Discovery transport channel.
可选地,处理器520用于当所述第一D2D通信数据的比特数小于等于第一预设阈值时,在所述媒体接入控制协议层将所述第一D2D通信数据映射到所述D2D Discovery传输信道;或通过所述映射接口将所述第一D2D通信数据递交到所述ProSe协议栈,以在所述媒体接入控制协议层将所述第一D2D通信数据映射到所述D2D Discovery传输信道;其中,所述第一预设阈值小于等于所述D2D Discovery传输信道承载的最大比特数。Optionally, the processor 520 is configured to: when the number of bits of the first D2D communication data is less than or equal to a first preset threshold, map the first D2D communication data to the D2D Discovery a transport channel; or submit the first D2D communication data to the ProSe protocol stack through the mapping interface to map the first D2D communication data to the D2D at the medium access control protocol layer a discovery channel: wherein the first preset threshold is less than or equal to a maximum number of bits carried by the D2D Discovery transport channel.
可选地,处理器520还用于当所述第一D2D通信数据的比特数大于所述第一预设阈值时,将所述第一D2D通信数据映射到D2D共享传输信道,通过所述D2D共享传输信道传输所述第一D2D通信数据。Optionally, the processor 520 is further configured to: when the number of bits of the first D2D communication data is greater than the first preset threshold, map the first D2D communication data to a D2D shared transport channel, by using the D2D The first D2D communication data is transmitted by a shared transport channel.
可选地,处理器520还用于当所述第一D2D通信数据的比特数大于所述第一预设阈值时,在所述无线链路控制协议层将所述第一D2D通信数据至少分割为第二D2D通信数据和第三D2D通信数据;其中,所述第一预设阈值等于所述D2D Discovery传输信道承载的最大比特数,所述第二D2D通信数据的比特数小于等于所述第一预设阈值,所述第三D2D通信数据的比特数大于所述第二D2D通信数据的比特数;Optionally, the processor 520 is further configured to: at least divide the first D2D communication data at the radio link control protocol layer when the number of bits of the first D2D communication data is greater than the first preset threshold. And being the second D2D communication data and the third D2D communication data; wherein the first preset threshold is equal to the D2D The maximum number of bits carried by the Discovery transport channel, the number of bits of the second D2D communication data is less than or equal to the first preset threshold, and the number of bits of the third D2D communication data is greater than the number of bits of the second D2D communication data ;
处理器520还用于在所述媒体接入控制协议层将所述第二D2D通信数据映射到所述D2D Discovery传输信道,或通过所述映射接口将所述第二D2D通信数据递交到所述ProSe协议栈;以及在所述媒体接入控制协议层将所述第三D2D通信数据映射到所述D2D共享传输信道。The processor 520 is further configured to map the second D2D communication data to the D2D at the medium access control protocol layer Discovering a transport channel, or delivering the second D2D communication data to the ProSe protocol stack through the mapping interface; and mapping the third D2D communication data to the D2D share at the medium access control protocol layer Transport channel.
可选地,处理器520还用于确定所述第三D2D通信数据的比特数是否大于第二预设阈值;其中,所述第二预设阈值为所述D2D共享传输信道承载的最大比特数;Optionally, the processor 520 is further configured to determine whether the number of bits of the third D2D communication data is greater than a second preset threshold, where the second preset threshold is a maximum number of bits carried by the D2D shared transport channel. ;
处理器520还用于当所述第三D2D通信数据的比特数大于所述第二预设阈值时,在所述无线链路控制协议层将所述第三D2D通信数据进行分割,其中,分割后的每份D2D通信数据的比特数均小于等于所述第二预设阈值,所述第二D2D通信数据包括所述第三D2D通信数据的调度信息,所述调度信息用于指示所述第三D2D通信数据使用的时频资源的信息。The processor 520 is further configured to: when the number of bits of the third D2D communication data is greater than the second preset threshold, segment the third D2D communication data at the radio link control protocol layer, where The number of bits of the D2D communication data is less than or equal to the second preset threshold, and the second D2D communication data includes scheduling information of the third D2D communication data, where the scheduling information is used to indicate the The information of the time-frequency resource used by the three D2D communication data.
可选地,处理器520还用于在所述媒体接入控制协议层或无线链路控制协议层对所述第一D2D通信数据添加源地址和目的地址,以及添加专用逻辑信道标识,其中,所述源地址用于标识发送所述第一D2D通信数据的终端设备的地址,所述目的地址用于标识接收所述第一D2D通信数据的终端设备的地址,所述专用逻辑信道标识用于标识所述D2D Discovery传输信道传输的D2D通信数据。Optionally, the processor 520 is further configured to add a source address and a destination address to the first D2D communication data at the medium access control protocol layer or the radio link control protocol layer, and add a dedicated logical channel identifier, where The source address is used to identify an address of a terminal device that sends the first D2D communication data, where the destination address is used to identify an address of a terminal device that receives the first D2D communication data, where the dedicated logical channel identifier is used for Identify the D2D Discovery transmits D2D communication data for the channel.
可选地,处理器520用于设置分组数据汇聚协议层到所述ProSe协议栈的映射关系。Optionally, the processor 520 is configured to set a mapping relationship between the packet data convergence protocol layer and the ProSe protocol stack.
可选地,处理器520用于当所述第一D2D通信数据的比特数小于等于第一预设阈值时,将所述第一D2D通信数据从所述分组数据汇聚协议层递交到所述ProSe协议栈,对所述第一D2D通信数据设置ProSe标识,并在所述媒体接入控制协议层将所述第一D2D通信数据映射到所述D2D Discovery传输信道;其中,所述第一预设阈值小于等于所述D2D Discovery传输信道承载的最大比特数。Optionally, the processor 520 is configured to: when the number of bits of the first D2D communication data is less than or equal to a first preset threshold, submit the first D2D communication data from the packet data convergence protocol layer to the ProSe a protocol stack, setting a ProSe identity to the first D2D communication data, and mapping the first D2D communication data to the D2D at the media access control protocol layer a discovery channel: wherein the first preset threshold is less than or equal to a maximum number of bits carried by the D2D Discovery transport channel.
可选地,处理器520还用于当所述第一D2D通信数据的比特数大于所述第一预设阈值时,将所述第一D2D通信数据从所述分组数据汇聚协议层递交到所述媒体接入控制协议层,并在所述媒体接入控制协议层将所述第一D2D通信数据映射到所述D2D共享传输信道。Optionally, the processor 520 is further configured to: when the number of bits of the first D2D communication data is greater than the first preset threshold, submit the first D2D communication data from the packet data convergence protocol layer to the The medium access control protocol layer, and mapping the first D2D communication data to the D2D shared transport channel at the medium access control protocol layer.
上述方案,终端设备建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系,当确定第一D2D通信数据未达到所述门限值时,将第一D2D通信数据映射到D2D Discovery传输信道,通过D2D Discovery传输信道传输第一D2D通信数据,解决了现有技术中无法通过D2D Discovery传输信道承载D2D通信数据的技术问题,能够提高数据信道的传输效率,提高LTE网络的整体资源利用率。In the above solution, the terminal device establishes a D2D service logical channel and D2D a mapping relationship of the Discovery transmission channel, when determining that the first D2D communication data does not reach the threshold, mapping the first D2D communication data to the D2D Discovery transmission channel, and passing the D2D The Discovery transmission channel transmits the first D2D communication data, which solves the problem that the prior art cannot pass the D2D. The technical problem that the Discovery transmission channel carries D2D communication data can improve the transmission efficiency of the data channel and improve the overall resource utilization of the LTE network.
参阅图16,图16是本申请数据传输装置又一实施例的结构示意图。本实施例的数据传输装置可以为终端设备。终端设备为用户终端设备(User Equipment,UE),其中,UE可以为手机等移动终端设备。两个UE可以直接通信传输数据。本实施方例的终端设备包括:收发器610、处理器620、只读存储器630、随机存取存储器640以及总线650。Referring to FIG. 16, FIG. 16 is a schematic structural diagram of still another embodiment of a data transmission apparatus of the present application. The data transmission device of this embodiment may be a terminal device. The terminal device is a user terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data. The terminal device of this embodiment example includes a transceiver 610, a processor 620, a read only memory 630, a random access memory 640, and a bus 650.
收发器610用于接收、发送数据。The transceiver 610 is configured to receive and transmit data.
处理器620控制终端设备的操作,处理器620还可以称为CPU(Central Processing Unit,中央处理单元)。处理器620可能是一种集成电路芯片,具有信号的处理能力。处理器620还可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 620 controls the operation of the terminal device, and the processor 620 may also be referred to as a CPU (Central Processing). Unit, central processing unit). Processor 620 may be an integrated circuit chip with signal processing capabilities. The processor 620 can also be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, discrete hardware component. . The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
存储器可以包括只读存储器630和随机存取存储器640,并向处理器620提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器(NVRAM)。The memory can include read only memory 630 and random access memory 640 and provides instructions and data to processor 620. A portion of the memory may also include non-volatile random access memory (NVRAM).
数据传输装置的各个组件通过总线650耦合在一起,其中总线650除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线650。The various components of the data transfer device are coupled together by a bus 650, which may include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like. However, for clarity of description, various buses are labeled as bus 650 in the figure.
存储器存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集: The memory stores the following elements, executable modules or data structures, or a subset of them, or their extended set:
操作指令:包括各种操作指令,用于实现各种操作。Operation instructions: include various operation instructions for implementing various operations.
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。Operating system: Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
在本发明实施例中,处理器620通过调用存储器存储的操作指令(该操作指令可存储在操作系统中),执行如下操作:In the embodiment of the present invention, the processor 620 performs the following operations by calling an operation instruction stored in the memory, which can be stored in the operating system:
处理器620用于控制收发器610用于接收其他终端设备发送的D2D通信数据;The processor 620 is configured to control the transceiver 610 to receive D2D communication data sent by other terminal devices.
处理器620用于根据所述D2D通信数据的信息确定所述D2D通信数据来自D2D Discovery传输信道;以及用于当所述D2D通信数据来自D2D Discovery传输信道时,根据所述D2D通信数据的信息以及获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系,将所述D2D通信数据映射到所述D2D Discovery传输信道。The processor 620 is configured to determine, according to the information of the D2D communication data, the D2D communication data from the D2D Discovery transport channel; and for when the D2D communication data comes from D2D When the Discovery transport channel is based on the information of the D2D communication data and the acquired D2D service logical channel and D2D A mapping relationship of the Discovery transport channel, mapping the D2D communication data to the D2D Discovery transport channel.
可选地,收发器610接收的所述D2D通信数据的信息包括所述D2D通信数据的比特数和/或专用逻辑信道标识,所述专用逻辑信道标识用于标识所述D2D通信数据来自D2D Discovery传输信道;Optionally, the information of the D2D communication data received by the transceiver 610 includes a bit number of the D2D communication data and/or a dedicated logical channel identifier, where the dedicated logical channel identifier is used to identify the D2D communication data from the D2D. Discovery transport channel;
处理器620用于当根据所述收发器610接收的所述D2D通信数据的信息确定所述D2D通信数据的比特数小于等于第一预设阈值,或所述D2D通信数据包含所述专用逻辑信道标识时,将所述D2D通信数据通过所述D2D Discovery传输信道递交到媒体接入控制协议层,并根据获取的所述映射关系在所述媒体接入控制协议层将所述D2D通信数据映射到D2D业务逻辑信道,其中,所述第一预设阈值小于等于所述D2D Discovery传输信道承载的最大比特数,所述获取的所述映射关系为在所述媒体接入控制协议层建立的D2D业务逻辑信道与D2D Discovery传输信道的映射关系。The processor 620 is configured to determine, according to the information of the D2D communication data received by the transceiver 610, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, or the D2D communication data includes the dedicated logical channel When the identification, the D2D communication data is passed through the D2D The discovery channel is delivered to the medium access control protocol layer, and the D2D communication data is mapped to the D2D service logical channel at the medium access control protocol layer according to the obtained mapping relationship, where the first preset The threshold is less than or equal to the D2D The maximum number of bits carried by the Discovery transport channel, and the obtained mapping relationship is a D2D service logical channel and D2D established at the medium access control protocol layer. The mapping relationship of the Discovery transport channel.
可选地,收发器610接收的所述D2D通信数据的信息还包括调度信息,所述调度信息用于指示第二D2D通信数据使用的时频资源,所述D2D通信数据与所述第二D2D通信数据由同一D2D通信数据包分割得到;Optionally, the information about the D2D communication data received by the transceiver 610 further includes scheduling information, where the scheduling information is used to indicate time-frequency resources used by the second D2D communication data, the D2D communication data and the second D2D The communication data is divided by the same D2D communication data packet;
处理器620用于当根据所述收发器610接收的所述D2D通信数据的信息确定所述D2D通信数据的比特数小于等于第一预设阈值,且所述D2D通信数据包含所述专用逻辑信道标识时,根据所述调度信息获取所述第二D2D通信数据;The processor 620 is configured to determine, according to the information of the D2D communication data received by the transceiver 610, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes the dedicated logical channel And identifying, acquiring, according to the scheduling information, the second D2D communication data;
处理器620还用于将所述D2D通信数据通过所述D2D Discovery传输信道递交到媒体接入控制协议层,以及将所述第二D2D通信数据通过D2D共享传输信道递交到所述媒体接入控制协议层,并在所述媒体接入控制协议层将所述D2D通信数据以及所述第二D2D通信数据映射到D2D业务逻辑信道;The processor 620 is further configured to pass the D2D communication data through the D2D The Discovery transport channel is delivered to the medium access control protocol layer, and the second D2D communication data is delivered to the medium access control protocol layer through the D2D shared transport channel, and the medium access control protocol layer is D2D communication data and the second D2D communication data are mapped to a D2D service logical channel;
处理器620还用于在所述无线链路控制协议层将所述映射模块映射的D2D通信数据以及所述第二D2D通信数据组包还原得到分割前的D2D通信数据包。The processor 620 is further configured to: restore, by the radio link control protocol layer, the D2D communication data mapped by the mapping module and the second D2D communication data packet to obtain a D2D communication data packet before the segmentation.
可选地,收发器610接收的所述D2D通信数据的信息还包括源地址以及目的地址,所述源地址用于标识发送所述D2D通信数据的终端设备的地址,所述目的地址用于标识接收所述D2D通信数据的终端设备的地址;Optionally, the information of the D2D communication data received by the transceiver 610 further includes a source address and a destination address, where the source address is used to identify an address of the terminal device that sends the D2D communication data, where the destination address is used to identify An address of the terminal device receiving the D2D communication data;
处理器620用于当从所述收发器接收的D2D通信数据中获取到所述无线链路控制协议层的数据包头包含源地址以及目的地址,且确定所述D2D通信数据的比特数小于等于第一预设阈值或所述D2D通信数据包含所述专用逻辑信道标识时,将所述D2D通信数据通过所述D2D Discovery传输信道递交到所述媒体接入控制协议层,在所述媒体接入控制协议层将所述D2D通信数据映射到ProSe协议栈;以及用于通过所述无线链路控制协议层和所述ProSe协议栈之间的映射接口,将所述D2D通信数据递交到所述无线链路控制协议层。The processor 620 is configured to: when the D2D communication data received from the transceiver is obtained, the data packet header of the radio link control protocol layer includes a source address and a destination address, and determine that the number of bits of the D2D communication data is less than or equal to the first Passing the D2D communication data through the D2D when a predetermined threshold or the D2D communication data includes the dedicated logical channel identifier a Discovery transport channel is delivered to the medium access control protocol layer, the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer; and the protocol layer and the A mapping interface between the ProSe protocol stacks, the D2D communication data is delivered to the radio link control protocol layer.
可选地,收发器610接收的所述D2D通信数据的信息包括所述D2D通信数据的比特数以及ProSe标识,所述ProSe标识用于标识所述D2D通信数据来自数据分组汇聚协议层;Optionally, the information of the D2D communication data received by the transceiver 610 includes a number of bits of the D2D communication data and a ProSe identifier, where the ProSe identifier is used to identify that the D2D communication data is from a data packet convergence protocol layer;
处理器620用于当确定所述收发器610接收的D2D通信数据的比特数小于等于第一预设阈值,且所述D2D通信数据包含所述ProSe标识时,将所述D2D通信数据通过所述D2D Discovery传输信道递交到媒体接入控制协议层,在所述媒体接入控制协议层将所述D2D通信数据映射到所述ProSe协议栈;以及用于根据所述ProSe协议栈与所述分组数据汇聚协议层的映射关系,将所述D2D通信数据映射到所述分组数据汇聚协议层。The processor 620 is configured to: when determining that the number of bits of the D2D communication data received by the transceiver 610 is less than or equal to a first preset threshold, and the D2D communication data includes the ProSe identifier, pass the D2D communication data through the D2D The Discovery transport channel is delivered to a medium access control protocol layer, the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer; and used to aggregate with the packet data according to the ProSe protocol stack a mapping relationship of the protocol layer, mapping the D2D communication data to the packet data convergence protocol layer.
上述方案,终端设备接收除该终端设备之外的其他终端设备发送的D2D通信数据,根据D2D通信数据的信息确定D2D通信数据来自D2D Discovery传输信道,根据D2D通信数据的信息以及终端设备获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系,将D2D通信数据映射到D2D Discovery传输信道,从而识别D2D通信数据实现D2D通信数据对应的功能。In the above solution, the terminal device receives the D2D communication data sent by the terminal device other than the terminal device, and determines the D2D communication data from the D2D according to the information of the D2D communication data. Discovery transport channel, based on information of D2D communication data and D2D service logical channel and D2D acquired by the terminal device The mapping relationship of the Discovery transport channel maps the D2D communication data to the D2D Discovery transport channel, thereby identifying the D2D communication data to implement the function corresponding to the D2D communication data.
以上描述中,为了说明而不是为了限定,提出了诸如特定系统结构、接口、技术之类的具体细节,以便透彻理解本申请。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施方式中也可以实现本申请。在其它情况中,省略对众所周知的装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the above description, specific details such as specific system structures, interfaces, techniques, and the like have been presented for the purpose of illustration and description. However, it will be apparent to those skilled in the art that the present invention can be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known devices, circuits, and methods are omitted so as not to obscure the description of the application.

Claims (45)

  1. 一种数据传输方法,其特征在于,所述方法包括:A data transmission method, characterized in that the method comprises:
    终端设备建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系;The terminal device establishes a mapping relationship between the D2D service logical channel and the D2D Discovery transmission channel;
    所述终端设备确定第一D2D通信数据的比特数是否达到门限值,其中,所述第一D2D通信数据为待传输的D2D通信数据;Determining, by the terminal device, whether the number of bits of the first D2D communication data reaches a threshold value, wherein the first D2D communication data is D2D communication data to be transmitted;
    当所述第一D2D通信数据未达到所述门限值时,所述终端设备根据所述映射关系将所述第一D2D通信数据映射到所述D2D Discovery传输信道;When the first D2D communication data does not reach the threshold, the terminal device maps the first D2D communication data to the D2D according to the mapping relationship Discovery transport channel;
    所述终端设备通过所述D2D Discovery传输信道传输所述第一D2D通信数据。The terminal device transmits the first D2D communication data through the D2D Discovery transmission channel.
  2. 根据权利要求1所述的方法,其特征在于,所述终端设备建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系包括:The method according to claim 1, wherein said terminal device establishes a D2D service logical channel and D2D The mapping relationship of the Discovery transport channel includes:
    所述终端设备直接在媒体接入控制协议层建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系;或The terminal device directly establishes a D2D service logical channel and D2D at a medium access control protocol layer The mapping relationship of the Discovery transport channel; or
    在无线链路控制协议层和ProSe协议栈之间设置映射接口,建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系。Setting a mapping interface between the radio link control protocol layer and the ProSe protocol stack to establish a D2D service logical channel and D2D The mapping relationship of the Discovery transport channel.
  3. 根据权利要求2所述的方法,其特征在于,所述当所述第一D2D通信数据的比特数未达到所述门限值时,所述终端设备根据所述映射关系将所述第一D2D通信数据映射到所述D2D Discovery传输信道包括:The method according to claim 2, wherein when the number of bits of the first D2D communication data does not reach the threshold, the terminal device sets the first D2D according to the mapping relationship. Communication data is mapped to the D2D The Discovery transport channel includes:
    所述终端设备确定所述第一D2D通信数据的比特数小于等于第一预设阈值,其中,所述第一预设阈值小于等于所述D2D Discovery传输信道承载的最大比特数,在所述媒体接入控制协议层将所述第一D2D通信数据映射到所述D2D Discovery传输信道;或Determining, by the terminal device, that the number of bits of the first D2D communication data is less than or equal to a first preset threshold, where the first preset threshold is less than or equal to the D2D The maximum number of bits carried by the Discovery transport channel, and mapping the first D2D communication data to the D2D at the medium access control protocol layer Discovery transport channel; or
    所述终端设备确定所述第一D2D通信数据的比特数小于等于第一预设阈值,其中,所述第一预设阈值小于等于所述D2D Discovery传输信道承载的最大比特数,通过所述映射接口将所述第一D2D通信数据递交到所述ProSe协议栈,在所述媒体接入控制协议层将所述第一D2D通信数据映射到所述D2D Discovery传输信道。Determining, by the terminal device, that the number of bits of the first D2D communication data is less than or equal to a first preset threshold, where the first preset threshold is less than or equal to the D2D a maximum number of bits carried by the Discovery transport channel, the first D2D communication data is delivered to the ProSe protocol stack by the mapping interface, and the first D2D communication data is mapped to the medium at the medium access control protocol layer D2D Discovery transport channel.
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method of claim 3, wherein the method further comprises:
    当所述第一D2D通信数据的比特数大于所述第一预设阈值时,所述终端设备将所述第一D2D通信数据映射到D2D共享传输信道,通过所述D2D共享传输信道传输所述第一D2D通信数据。When the number of bits of the first D2D communication data is greater than the first preset threshold, the terminal device maps the first D2D communication data to a D2D shared transport channel, and transmits the D2D shared transport channel by using the D2D shared transport channel. The first D2D communication data.
  5. 根据权利要求3或4所述的方法,其特征在于,所述方法还包括:The method according to claim 3 or 4, wherein the method further comprises:
    当所述第一D2D通信数据的比特数大于所述第一预设阈值时,所述终端设备在所述无线链路控制协议层将所述第一D2D通信数据至少分割为第二D2D通信数据和第三D2D通信数据;其中,所述第一预设阈值等于所述D2D Discovery传输信道承载的最大比特数,所述第二D2D通信数据的比特数小于等于所述第一预设阈值,所述第三D2D通信数据的比特数大于所述第二D2D通信数据的比特数;When the number of bits of the first D2D communication data is greater than the first preset threshold, the terminal device divides the first D2D communication data into at least second D2D communication data at the radio link control protocol layer. And third D2D communication data; wherein the first preset threshold is equal to the D2D The maximum number of bits carried by the Discovery transport channel, the number of bits of the second D2D communication data is less than or equal to the first preset threshold, and the number of bits of the third D2D communication data is greater than the number of bits of the second D2D communication data ;
    所述终端设备在所述媒体接入控制协议层将所述第二D2D通信数据映射到所述D2D Discovery传输信道,或通过所述映射接口将所述第二D2D通信数据递交到所述ProSe协议栈;以及The terminal device maps the second D2D communication data to the D2D at the medium access control protocol layer Discovering a transport channel, or delivering the second D2D communication data to the ProSe protocol stack through the mapping interface;
    在所述媒体接入控制协议层将所述第三D2D通信数据映射到所述D2D 共享传输信道。Mapping the third D2D communication data to the D2D shared transport channel at the medium access control protocol layer.
  6. 根据权利要求5所述的方法,其特征在于,当所述第一D2D通信数据的比特数大于所述第一预设阈值时,所述终端设备在所述无线链路控制协议层将所述第一D2D通信数据至少分割为第二D2D通信数据和第三D2D通信数据之后,在所述媒体接入控制协议层将所述第二D2D通信数据映射到所述D2D Discovery传输信道,或通过所述映射接口将所述第二D2D通信数据递交到所述ProSe协议栈之前,所述方法还包括:The method according to claim 5, wherein when the number of bits of the first D2D communication data is greater than the first preset threshold, the terminal device is to be in the radio link control protocol layer After the first D2D communication data is divided into the second D2D communication data and the third D2D communication data, the second D2D communication data is mapped to the D2D at the medium access control protocol layer Before the discovery channel is delivered, or the second D2D communication data is delivered to the ProSe protocol stack by using the mapping interface, the method further includes:
    所述终端设备确定所述第三D2D通信数据的比特数是否大于第二预设阈值;其中,所述第二预设阈值为所述D2D共享传输信道承载的最大比特数;Determining, by the terminal device, whether the number of bits of the third D2D communication data is greater than a second preset threshold; wherein the second preset threshold is a maximum number of bits carried by the D2D shared transport channel;
    当所述第三D2D通信数据的比特数大于所述第二预设阈值时,所述终端设备在所述无线链路控制协议层将所述第三D2D通信数据进行分割,其中,分割后的每份D2D通信数据的比特数均小于等于所述第二预设阈值,所述第二D2D通信数据包括所述第三D2D通信数据的调度信息,所述调度信息用于指示所述第三D2D通信数据使用的时频资源的信息。When the number of bits of the third D2D communication data is greater than the second preset threshold, the terminal device divides the third D2D communication data at the radio link control protocol layer, where the divided The number of bits of each D2D communication data is less than or equal to the second preset threshold, the second D2D communication data includes scheduling information of the third D2D communication data, and the scheduling information is used to indicate the third D2D Information on time-frequency resources used by communication data.
  7. 根据权利要求3-6任一项所述的方法,其特征在于,在所述终端设备根据所述映射关系将所述第一D2D通信数据映射到所述D2D Discovery传输信道的步骤之后,所述方法还包括:The method according to any one of claims 3-6, wherein the terminal device maps the first D2D communication data to the D2D according to the mapping relationship After the step of discovering the transport channel, the method further includes:
    所述终端设备在所述媒体接入控制协议层或无线链路控制协议层对所述第一D2D通信数据添加源地址和目的地址,以及添加专用逻辑信道标识,其中,所述源地址用于标识发送所述第一D2D通信数据的终端设备的地址,所述目的地址用于标识接收所述第一D2D通信数据的终端设备的地址,所述专用逻辑信道标识用于标识所述D2D Discovery传输信道传输的D2D通信数据。The terminal device adds a source address and a destination address to the first D2D communication data at the medium access control protocol layer or the radio link control protocol layer, and adds a dedicated logical channel identifier, where the source address is used for Identifying an address of the terminal device that sends the first D2D communication data, the destination address is used to identify an address of a terminal device that receives the first D2D communication data, and the dedicated logical channel identifier is used to identify the D2D Discovery transmits D2D communication data for the channel.
  8. 根据权利要求1所述的方法,其特征在于,所述终端设备建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系的包括:The method according to claim 1, wherein said terminal device establishes a D2D service logical channel and D2D The mapping relationship of the Discovery transport channel includes:
    所述终端设备设置分组数据汇聚协议层到所述ProSe协议栈的映射关系。The terminal device sets a mapping relationship between a packet data convergence protocol layer and the ProSe protocol stack.
  9. 根据权利要求8所述的方法,其特征在于,所述当所述第一D2D通信数据的比特数达到所述门限值时,所述终端设备根据所述映射关系将所述第一D2D通信数据映射到所述D2D Discovery传输信道包括:The method according to claim 8, wherein when the number of bits of the first D2D communication data reaches the threshold, the terminal device transmits the first D2D communication according to the mapping relationship. Data mapping to the D2D The Discovery transport channel includes:
    所述终端设备确定所述第一D2D通信数据的比特数小于等于第一预设阈值,其中,所述第一预设阈值小于等于所述D2D Discovery传输信道承载的最大比特数,将所述第一D2D通信数据从所述分组数据汇聚协议层递交到所述ProSe协议栈,对所述第一D2D通信数据设置ProSe标识,并在所述媒体接入控制协议层将所述第一D2D通信数据映射到所述D2D Discovery传输信道。Determining, by the terminal device, that the number of bits of the first D2D communication data is less than or equal to a first preset threshold, where the first preset threshold is less than or equal to the D2D a maximum number of bits carried by the Discovery transport channel, the first D2D communication data is delivered from the packet data convergence protocol layer to the ProSe protocol stack, a ProSe identifier is set to the first D2D communication data, and the medium is in the medium An access control protocol layer maps the first D2D communication data to the D2D Discovery transport channel.
  10. 根据权利要求8所述的方法,其特征在于,所述方法还包括:The method of claim 8 further comprising:
    当所述第一D2D通信数据的比特数大于所述第一预设阈值时,所述终端设备将所述第一D2D通信数据从所述分组数据汇聚协议层递交到所述媒体接入控制协议层,并在所述媒体接入控制协议层将所述第一D2D通信数据映射到所述D2D共享传输信道。When the number of bits of the first D2D communication data is greater than the first preset threshold, the terminal device delivers the first D2D communication data from the packet data convergence protocol layer to the media access control protocol And mapping the first D2D communication data to the D2D shared transport channel at the medium access control protocol layer.
  11. 一种数据传输方法,其特征在于,所述方法包括:A data transmission method, characterized in that the method comprises:
    终端设备接收除所述终端设备之外的其他终端设备发送的D2D通信数据;Receiving, by the terminal device, D2D communication data sent by another terminal device other than the terminal device;
    所述终端设备根据所述D2D通信数据的信息确定所述D2D通信数据来自D2D Discovery传输信道;Determining, by the terminal device, that the D2D communication data is from D2D according to the information of the D2D communication data Discovery transport channel;
    所述终端设备根据所述D2D通信数据的信息以及所述终端设备获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系,将所述D2D通信数据映射到所述D2D Discovery传输信道。The terminal device according to the information of the D2D communication data and the D2D service logical channel and D2D acquired by the terminal device A mapping relationship of the Discovery transport channel, mapping the D2D communication data to the D2D Discovery transport channel.
  12. 根据权利要求11所述的方法,其特征在于,所述D2D通信数据的信息包括所述D2D通信数据的比特数和/或专用逻辑信道标识,所述专用逻辑信道标识用于标识所述D2D通信数据来自D2D Discovery传输信道;The method according to claim 11, wherein the information of the D2D communication data comprises a number of bits of the D2D communication data and/or a dedicated logical channel identifier, and the dedicated logical channel identifier is used to identify the D2D communication Data from D2D Discovery transport channel;
    所述终端设备根据所述D2D通信数据的信息以及所述终端设备获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系,将所述D2D通信数据映射到所述D2D Discovery传输信道包括:The terminal device according to the information of the D2D communication data and the D2D service logical channel and D2D acquired by the terminal device Mapping the Discovery transport channel, mapping the D2D communication data to the D2D Discovery transport channel includes:
    当根据所述D2D通信数据的信息确定所述D2D通信数据的比特数小于等于第一预设阈值,或所述D2D通信数据包含所述专用逻辑信道标识时,Determining, according to the information of the D2D communication data, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, or the D2D communication data includes the dedicated logical channel identifier,
    将所述D2D通信数据通过所述D2D Discovery传输信道递交到媒体接入控制协议层,并根据获取的所述映射关系在所述媒体接入控制协议层将所述D2D通信数据映射到D2D业务逻辑信道;其中,所述第一预设阈值小于等于所述D2D Discovery传输信道承载的最大比特数;所述获取的所述映射关系为在所述媒体接入控制协议层建立的D2D业务逻辑信道与D2D Discovery传输信道的映射关系。Passing the D2D communication data through the D2D The discovery channel is delivered to the medium access control protocol layer, and the D2D communication data is mapped to the D2D service logical channel at the medium access control protocol layer according to the obtained mapping relationship; wherein the first preset The threshold is less than or equal to the D2D The maximum number of bits carried by the Discovery transport channel; the obtained mapping relationship is a D2D service logical channel and D2D established at the medium access control protocol layer The mapping relationship of the Discovery transport channel.
  13. 根据权利要求12所述的方法,其特征在于,所述D2D通信数据的信息还包括调度信息,所述调度信息用于指示第二D2D通信数据使用的时频资源,所述D2D通信数据与所述第二D2D通信数据由同一D2D通信数据包分割得到;The method according to claim 12, wherein the information of the D2D communication data further comprises scheduling information, the scheduling information is used to indicate time-frequency resources used by the second D2D communication data, and the D2D communication data and the The second D2D communication data is divided by the same D2D communication data packet;
    所述方法还包括:The method further includes:
    当根据所述D2D通信数据的信息确定所述D2D通信数据的比特数小于等于第一预设阈值,且所述D2D通信数据包含所述专用逻辑信道标识时,所述终端设备根据所述调度信息获取所述第二D2D通信数据;Determining, according to the information of the D2D communication data, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes the dedicated logical channel identifier, the terminal device according to the scheduling information Obtaining the second D2D communication data;
    所述终端设备将所述D2D通信数据通过所述D2D Discovery传输信道递交到媒体接入控制协议层,以及将所述第二D2D通信数据通过D2D共享传输信道递交到所述媒体接入控制协议层,并根据所述映射关系在所述媒体接入控制协议层将所述D2D通信数据以及所述第二D2D通信数据映射到D2D业务逻辑信道;The terminal device passes the D2D communication data through the D2D The Discovery transport channel is delivered to the medium access control protocol layer, and the second D2D communication data is delivered to the medium access control protocol layer through the D2D shared transport channel, and the media access control is performed according to the mapping relationship The protocol layer maps the D2D communication data and the second D2D communication data to a D2D service logical channel;
    在所述无线链路控制协议层将所述D2D通信数据以及所述第二D2D通信数据组包还原得到分割前的D2D通信数据包。The D2D communication data and the second D2D communication data packet are restored at the radio link control protocol layer to obtain a D2D communication data packet before the division.
  14. 根据权利要求12或13所述的方法,其特征在于,所述D2D通信数据的信息还包括源地址以及目的地址,所述源地址用于标识发送所述D2D通信数据的终端设备的地址,所述目的地址用于标识接收所述D2D通信数据的终端设备的地址;The method according to claim 12 or 13, wherein the information of the D2D communication data further includes a source address and a destination address, where the source address is used to identify an address of the terminal device that transmits the D2D communication data, Determining an address of the terminal device for receiving the D2D communication data;
    当从所述D2D通信数据中获取到所述无线链路控制协议层的数据包头包含源地址以及目的地址,且确定所述D2D通信数据的比特数小于等于第一预设阈值或所述D2D通信数据包含所述专用逻辑信道标识时,所述终端设备将所述D2D通信数据通过所述D2D Discovery传输信道递交到所述媒体接入控制协议层,在所述媒体接入控制协议层将所述D2D通信数据映射到ProSe协议栈;And obtaining, by the D2D communication data, a data packet header of the radio link control protocol layer, including a source address and a destination address, and determining that the number of bits of the D2D communication data is less than or equal to a first preset threshold or the D2D communication When the data includes the dedicated logical channel identifier, the terminal device passes the D2D communication data through the D2D The Discovery transport channel is delivered to the medium access control protocol layer, and the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer;
    所述终端设备通过所述无线链路控制协议层和所述ProSe协议栈之间的映射接口,将所述D2D通信数据递交到所述无线链路控制协议层。The terminal device delivers the D2D communication data to the radio link control protocol layer by using a mapping interface between the radio link control protocol layer and the ProSe protocol stack.
  15. 根据权利要求11所述的方法,其特征在于,所述D2D通信数据的信息包括所述D2D通信数据的比特数以及ProSe标识,所述ProSe标识用于标识所述D2D通信数据来自数据分组汇聚协议层;The method according to claim 11, wherein the information of the D2D communication data comprises a number of bits of the D2D communication data and a ProSe identifier, and the ProSe identifier is used to identify the D2D communication data from a data packet convergence protocol Floor;
    所述终端设备根据所述D2D通信数据的信息以及所述终端设备获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系,将所述D2D通信数据映射到所述D2D Discovery传输信道包括:The terminal device according to the information of the D2D communication data and the D2D service logical channel and D2D acquired by the terminal device Mapping the Discovery transport channel, mapping the D2D communication data to the D2D Discovery transport channel includes:
    当根据所述D2D通信数据的信息确定所述D2D通信数据的比特数小于等于第一预设阈值,且所述D2D通信数据包含所述ProSe标识时,所述终端设备将所述D2D通信数据通过所述D2D Discovery传输信道递交到媒体接入控制协议层,在所述媒体接入控制协议层将所述D2D通信数据映射到所述ProSe协议栈;When determining, according to the information of the D2D communication data, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes the ProSe identifier, the terminal device passes the D2D communication data The D2D The Discovery transport channel is delivered to a medium access control protocol layer, and the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer;
    所述终端设备根据所述ProSe协议栈与所述分组数据汇聚协议层的映射关系,将所述D2D通信数据映射到所述分组数据汇聚协议层。And the terminal device maps the D2D communication data to the packet data convergence protocol layer according to a mapping relationship between the ProSe protocol stack and the packet data convergence protocol layer.
  16. 一种数据传输装置,其特征在于,所述装置包括:建立模块、确定模块、映射模块以及传输模块;A data transmission device, comprising: an establishment module, a determination module, a mapping module, and a transmission module;
    所述建立模块用于建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系;The establishing module is configured to establish a mapping relationship between a D2D service logical channel and a D2D Discovery transmission channel;
    所述确定模块用于确定第一D2D通信数据的比特数是否达到门限值,其中,所述第一D2D通信数据为待传输的D2D通信数据;The determining module is configured to determine whether the number of bits of the first D2D communication data reaches a threshold value, wherein the first D2D communication data is D2D communication data to be transmitted;
    所述映射模块用于当所述确定模块确定所述第一D2D通信数据未达到所述门限值时,根据所述建立模块建立的所述映射关系将所述第一D2D通信数据映射到所述D2D Discovery传输信道;The mapping module is configured to: when the determining module determines that the first D2D communication data does not reach the threshold, map the first D2D communication data to the location according to the mapping relationship established by the establishing module D2D Discovery transport channel;
    所述传输模块用于通过所述D2D Discovery传输信道传输所述第一D2D通信数据。The transmission module is configured to transmit the first D2D communication data by using the D2D Discovery transmission channel.
  17. 根据权利要求16所述的装置,其特征在于,所述建立模块用于直接在媒体接入控制协议层建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系;或The apparatus according to claim 16, wherein the establishing module is configured to establish a D2D service logical channel and D2D directly at a medium access control protocol layer. The mapping relationship of the Discovery transport channel; or
    在无线链路控制协议层和ProSe协议栈之间设置映射接口,建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系。Setting a mapping interface between the radio link control protocol layer and the ProSe protocol stack to establish a D2D service logical channel and D2D The mapping relationship of the Discovery transport channel.
  18. 根据权利要求17所述的装置,其特征在于,所述映射模块用于当所述确定模块确定所述第一D2D通信数据的比特数小于等于第一预设阈值时,在所述媒体接入控制协议层将所述第一D2D通信数据映射到所述D2D Discovery传输信道;或通过所述映射接口将所述第一D2D通信数据递交到所述ProSe协议栈,以在所述媒体接入控制协议层将所述第一D2D通信数据映射到所述D2D Discovery传输信道;其中,所述第一预设阈值小于等于所述D2D Discovery传输信道承载的最大比特数。The apparatus according to claim 17, wherein the mapping module is configured to: when the determining module determines that the number of bits of the first D2D communication data is less than or equal to a first preset threshold, in the media access a control protocol layer mapping the first D2D communication data to the D2D Discovery a transport channel; or submit the first D2D communication data to the ProSe protocol stack through the mapping interface to map the first D2D communication data to the D2D at the medium access control protocol layer a discovery channel: wherein the first preset threshold is less than or equal to a maximum number of bits carried by the D2D Discovery transport channel.
  19. 根据权利要求18所述的装置,其特征在于,所述映射模块还用于当所述确定模块确定所述第一D2D通信数据的比特数大于所述第一预设阈值时,将所述第一D2D通信数据映射到D2D共享传输信道,通过所述D2D共享传输信道传输所述第一D2D通信数据。The apparatus according to claim 18, wherein the mapping module is further configured to: when the determining module determines that the number of bits of the first D2D communication data is greater than the first preset threshold, A D2D communication data is mapped to the D2D shared transport channel, and the first D2D communication data is transmitted through the D2D shared transport channel.
  20. 根据权利要求18或19所述的装置,其特征在于,所述装置还包括分割模块,所述分割模块用于当所述确定模块确定所述第一D2D通信数据的比特数大于所述第一预设阈值时,在所述无线链路控制协议层将所述第一D2D通信数据至少分割为第二D2D通信数据和第三D2D通信数据;其中,所述第一预设阈值等于所述D2D Discovery传输信道承载的最大比特数,所述第二D2D通信数据的比特数小于等于所述第一预设阈值,所述第三D2D通信数据的比特数大于所述第二D2D通信数据的比特数;The device according to claim 18 or 19, wherein the device further comprises a segmentation module, wherein the segmentation module is configured to: when the determining module determines that the number of bits of the first D2D communication data is greater than the first When the threshold is preset, the first D2D communication data is at least divided into the second D2D communication data and the third D2D communication data at the radio link control protocol layer; wherein the first preset threshold is equal to the D2D The maximum number of bits carried by the Discovery transport channel, the number of bits of the second D2D communication data is less than or equal to the first preset threshold, and the number of bits of the third D2D communication data is greater than the number of bits of the second D2D communication data ;
    所述映射模块还用于在所述媒体接入控制协议层将所述分割模块分割得到的第二D2D通信数据映射到所述D2D Discovery传输信道,或通过所述映射接口将所述第二D2D通信数据递交到所述ProSe协议栈;以及The mapping module is further configured to map the second D2D communication data obtained by dividing the dividing module to the D2D at the medium access control protocol layer Discovering a transport channel, or delivering the second D2D communication data to the ProSe protocol stack through the mapping interface;
    在所述媒体接入控制协议层将所述分割模块分割得到的第三D2D通信数据映射到所述D2D共享传输信道。And mapping, by the medium access control protocol layer, third D2D communication data obtained by dividing the dividing module to the D2D shared transport channel.
  21. 根据权利要求20所述的装置,其特征在于,所述分割模块还用于确定分割得到的所述第三D2D通信数据的比特数是否大于第二预设阈值;其中,所述第二预设阈值为所述D2D共享传输信道承载的最大比特数;The device according to claim 20, wherein the segmentation module is further configured to determine whether the number of bits of the third D2D communication data obtained by the segmentation is greater than a second preset threshold; wherein the second preset The threshold is the maximum number of bits carried by the D2D shared transport channel;
    所述分割模块还用于当所述第三D2D通信数据的比特数大于所述第二预设阈值时,在所述无线链路控制协议层将所述第三D2D通信数据进行分割,其中,分割后的每份D2D通信数据的比特数均小于等于所述第二预设阈值,所述第二D2D通信数据包括所述第三D2D通信数据的调度信息,所述调度信息用于指示所述第三D2D通信数据使用的时频资源的信息。The segmentation module is further configured to: when the number of bits of the third D2D communication data is greater than the second preset threshold, segment the third D2D communication data at the radio link control protocol layer, where The number of bits of the divided D2D communication data is less than or equal to the second preset threshold, and the second D2D communication data includes scheduling information of the third D2D communication data, where the scheduling information is used to indicate the The information of the time-frequency resource used by the third D2D communication data.
  22. 根据权利要求18-21任一项所述的装置,其特征在于,所述装置还包括信息设置模块,所述信息设置模块在所述媒体接入控制协议层或无线链路控制协议层对所述第一D2D通信数据添加源地址和目的地址,以及添加专用逻辑信道标识,其中,所述源地址用于标识发送所述第一D2D通信数据的终端设备的地址,所述目的地址用于标识接收所述第一D2D通信数据的终端设备的地址,所述专用逻辑信道标识用于标识所述D2D Discovery传输信道传输的D2D通信数据。The device according to any one of claims 18 to 21, wherein the device further comprises an information setting module, where the information setting module is at the medium access control protocol layer or the radio link control protocol layer Adding a source address and a destination address to the first D2D communication data, and adding a dedicated logical channel identifier, wherein the source address is used to identify an address of the terminal device that sends the first D2D communication data, and the destination address is used to identify Receiving an address of the terminal device of the first D2D communication data, the dedicated logical channel identifier is used to identify the D2D Discovery transmits D2D communication data for the channel.
  23. 根据权利要求16所述的装置,其特征在于,所述建立模块用于设置分组数据汇聚协议层到所述ProSe协议栈的映射关系。The apparatus according to claim 16, wherein the establishing module is configured to set a mapping relationship between a packet data convergence protocol layer and the ProSe protocol stack.
  24. 根据权利要求23所述的装置,其特征在于,所述映射模块用于当所述确定模块确定所述第一D2D通信数据的比特数小于等于第一预设阈值时,将所述第一D2D通信数据从所述分组数据汇聚协议层递交到所述ProSe协议栈,对所述第一D2D通信数据设置ProSe标识,并在所述媒体接入控制协议层将所述第一D2D通信数据映射到所述D2D Discovery传输信道;其中,所述第一预设阈值小于等于所述D2D Discovery传输信道承载的最大比特数。The apparatus according to claim 23, wherein the mapping module is configured to: when the determining module determines that the number of bits of the first D2D communication data is less than or equal to a first preset threshold, the first D2D Transmitting data from the packet data convergence protocol layer to the ProSe protocol stack, setting a ProSe identity to the first D2D communication data, and mapping the first D2D communication data to the media access control protocol layer The D2D a discovery channel: wherein the first preset threshold is less than or equal to a maximum number of bits carried by the D2D Discovery transport channel.
  25. 根据权利要求23所述的装置,其特征在于,所述映射模块还用于当所述确定模块确定所述第一D2D通信数据的比特数大于所述第一预设阈值时,将所述第一D2D通信数据从所述分组数据汇聚协议层递交到所述媒体接入控制协议层,并在所述媒体接入控制协议层将所述第一D2D通信数据映射到所述D2D共享传输信道。The apparatus according to claim 23, wherein the mapping module is further configured to: when the determining module determines that the number of bits of the first D2D communication data is greater than the first preset threshold, A D2D communication data is delivered from the packet data convergence protocol layer to the medium access control protocol layer, and the first D2D communication data is mapped to the D2D shared transport channel at the medium access control protocol layer.
  26. 一种数据传输装置,其特征在于,所述装置包括接收模块、确定模块以及映射模块;A data transmission device, comprising: a receiving module, a determining module, and a mapping module;
    所述接收模块用于接收其他终端设备发送的D2D通信数据;The receiving module is configured to receive D2D communication data sent by another terminal device;
    所述确定模块用于根据所述接收模块接收的所述D2D通信数据的信息确定所述D2D通信数据来自D2D Discovery传输信道;The determining module is configured to determine, according to the information of the D2D communication data received by the receiving module, that the D2D communication data is from D2D Discovery transport channel;
    所述映射模块用于当所述确定模块确定所述D2D通信数据来自D2D Discovery传输信道时,根据所述D2D通信数据的信息以及获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系,将所述D2D通信数据映射到所述D2D Discovery传输信道。The mapping module is configured to: when the determining module determines that the D2D communication data is from D2D When the Discovery transport channel is based on the information of the D2D communication data and the acquired D2D service logical channel and D2D A mapping relationship of the Discovery transport channel, mapping the D2D communication data to the D2D Discovery transport channel.
  27. 根据权利要求26所述的装置,其特征在于,所述接收模块接收的所述D2D通信数据的信息包括所述D2D通信数据的比特数和/或专用逻辑信道标识,所述专用逻辑信道标识用于标识所述D2D通信数据来自D2D Discovery传输信道;The apparatus according to claim 26, wherein the information of the D2D communication data received by the receiving module comprises a number of bits of the D2D communication data and/or a dedicated logical channel identifier, and the dedicated logical channel identifier is used. For identifying the D2D communication data from D2D Discovery transport channel;
    所述确定模块用于当根据所述接收模块接收的所述D2D通信数据的信息确定所述D2D通信数据的比特数小于等于第一预设阈值,或所述D2D通信数据包含所述专用逻辑信道标识时,确认所述D2D通信数据来自D2D Discovery传输信道;其中,所述第一预设阈值小于等于所述D2D Discovery传输信道承载的最大比特数;The determining module is configured to determine, according to the information of the D2D communication data received by the receiving module, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, or the D2D communication data includes the dedicated logical channel When marking, confirm that the D2D communication data comes from D2D a discovery channel, where the first preset threshold is less than or equal to a maximum number of bits carried by the D2D Discovery transmission channel;
    所述映射模块用于将所述确定模块确定的D2D通信数据通过所述D2D Discovery传输信道递交到媒体接入控制协议层,并根据获取的所述映射关系在所述媒体接入控制协议层将所述D2D通信数据映射到D2D业务逻辑信道,其中,所述获取的所述映射关系为在所述媒体接入控制协议层建立的D2D业务逻辑信道与D2D Discovery传输信道的映射关系。The mapping module is configured to pass the D2D communication data determined by the determining module to the D2D And transmitting, by the medium access control protocol layer, the D2D communication data to the D2D service logical channel, where the acquired The mapping relationship is a D2D service logical channel and D2D established at the medium access control protocol layer. The mapping relationship of the Discovery transport channel.
  28. 根据权利要求27所述的装置,其特征在于,所述装置还包括还原模块;The device according to claim 27, wherein said device further comprises a restoration module;
    所述接收模块接收的所述D2D通信数据的信息还包括调度信息,所述调度信息用于指示第二D2D通信数据使用的时频资源,所述D2D通信数据与所述第二D2D通信数据由同一D2D通信数据包分割得到;The information about the D2D communication data received by the receiving module further includes scheduling information, where the scheduling information is used to indicate time-frequency resources used by the second D2D communication data, and the D2D communication data and the second D2D communication data are Segmentation of the same D2D communication packet;
    所述映射模块还用于当所述确定模块根据所述D2D通信数据的信息确定所述D2D通信数据的比特数小于等于第一预设阈值,且所述D2D通信数据包含所述专用逻辑信道标识时,根据所述调度信息获取所述第二D2D通信数据;以及用于将所述D2D通信数据通过所述D2D Discovery传输信道递交到媒体接入控制协议层,以及将所述第二D2D通信数据通过D2D共享传输信道递交到所述媒体接入控制协议层,并在所述媒体接入控制协议层将所述D2D通信数据以及所述第二D2D通信数据映射到D2D业务逻辑信道;The mapping module is further configured to: when the determining module determines, according to the information of the D2D communication data, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes the dedicated logical channel identifier Obtaining, according to the scheduling information, the second D2D communication data; and for transmitting the D2D communication data through the D2D The Discovery transport channel is delivered to the medium access control protocol layer, and the second D2D communication data is delivered to the medium access control protocol layer through the D2D shared transport channel, and the medium access control protocol layer is D2D communication data and the second D2D communication data are mapped to a D2D service logical channel;
    所述还原模块用于在所述无线链路控制协议层将所述映射模块映射的D2D通信数据以及所述第二D2D通信数据组包还原得到分割前的D2D通信数据包。The restoration module is configured to restore, by the radio link control protocol layer, the D2D communication data mapped by the mapping module and the second D2D communication data packet to obtain a D2D communication data packet before the division.
  29. 根据权利要求27或28所述的装置,其特征在于,所述接收模块接收的所述D2D通信数据的信息还包括源地址以及目的地址,所述源地址用于标识发送所述D2D通信数据的终端设备的地址,所述目的地址用于标识接收所述D2D通信数据的终端设备的地址;The device according to claim 27 or 28, wherein the information of the D2D communication data received by the receiving module further includes a source address and a destination address, where the source address is used to identify that the D2D communication data is sent. An address of the terminal device, where the destination address is used to identify an address of the terminal device that receives the D2D communication data;
    所述确定模块用于当从所述D2D通信数据中获取到所述无线链路控制协议层的数据包头包含源地址以及目的地址,且确定所述D2D通信数据的比特数小于等于第一预设阈值或所述D2D通信数据包含所述专用逻辑信道标识时,确认所述D2D通信数据来自D2D Discovery传输信道;The determining module is configured to: when the data packet header of the radio link control protocol layer is obtained from the D2D communication data, includes a source address and a destination address, and determine that the number of bits of the D2D communication data is less than or equal to a first preset. Confirming that the D2D communication data comes from D2D when the threshold or the D2D communication data includes the dedicated logical channel identifier Discovery transport channel;
    所述映射模块用于将所述确定模块确定的所述D2D通信数据通过所述D2D Discovery传输信道递交到所述媒体接入控制协议层,在所述媒体接入控制协议层将所述D2D通信数据映射到ProSe协议栈;以及用于通过所述无线链路控制协议层和所述ProSe协议栈之间的映射接口,将所述D2D通信数据递交到所述无线链路控制协议层。The mapping module is configured to pass the D2D communication data determined by the determining module to the D2D a Discovery transport channel is delivered to the medium access control protocol layer, the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer; and the protocol layer and the A mapping interface between the ProSe protocol stacks, the D2D communication data is delivered to the radio link control protocol layer.
  30. 根据权利要求26所述的装置,其特征在于,所述接收模块410接收的所述D2D通信数据的信息包括所述D2D通信数据的比特数以及ProSe标识,所述ProSe标识用于标识所述D2D通信数据来自数据分组汇聚协议层;The device according to claim 26, wherein the information of the D2D communication data received by the receiving module 410 comprises a number of bits of the D2D communication data and a ProSe identifier, and the ProSe identifier is used to identify the D2D. Communication data comes from the data packet convergence protocol layer;
    所述确定模块用于当确定所述D2D通信数据的比特数小于等于第一预设阈值,且所述D2D通信数据包含所述ProSe标识时,确认所述D2D通信数据来自D2D Discovery传输信道;The determining module is configured to: when it is determined that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes the ProSe identifier, confirm that the D2D communication data is from D2D Discovery transport channel;
    所述映射模块用于将所述确定模块确定的D2D通信数据通过所述D2D Discovery传输信道递交到媒体接入控制协议层,在所述媒体接入控制协议层将所述D2D通信数据映射到所述ProSe协议栈;以及用于根据所述ProSe协议栈与所述分组数据汇聚协议层的映射关系,将所述D2D通信数据映射到所述分组数据汇聚协议层。The mapping module is configured to pass the D2D communication data determined by the determining module to the D2D The Discovery transport channel is delivered to a medium access control protocol layer, the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer; and used to aggregate with the packet data according to the ProSe protocol stack a mapping relationship of the protocol layer, mapping the D2D communication data to the packet data convergence protocol layer.
  31. 一种数据传输装置,其特征在于,所述装置包括:处理器以及收发器;A data transmission device, characterized in that the device comprises: a processor and a transceiver;
    所述处理器用于建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系;The processor is configured to establish a mapping relationship between a D2D service logical channel and a D2D Discovery transmission channel;
    所述处理器用于确定第一D2D通信数据的比特数是否达到门限值,其中,所述第一D2D通信数据为待传输的D2D通信数据;The processor is configured to determine whether a number of bits of the first D2D communication data reaches a threshold value, wherein the first D2D communication data is D2D communication data to be transmitted;
    所述处理器用于当确定所述第一D2D通信数据未达到所述门限值时,根据所述映射关系将所述第一D2D通信数据映射到所述D2D Discovery传输信道,并通过所述D2D Discovery传输信道传输所述第一D2D通信数据;The processor is configured to map the first D2D communication data to the D2D according to the mapping relationship when determining that the first D2D communication data does not reach the threshold value Discovery a transmission channel, and transmitting the first D2D communication data through the D2D Discovery transmission channel;
    所述收发器用于发射、接收数据。The transceiver is configured to transmit and receive data.
  32. 根据权利要求31所述的装置,其特征在于,所述处理器用于直接在媒体接入控制协议层建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系;或The apparatus according to claim 31, wherein said processor is configured to establish a D2D service logical channel and D2D directly at a medium access control protocol layer The mapping relationship of the Discovery transport channel; or
    在无线链路控制协议层和ProSe协议栈之间设置映射接口,建立D2D业务逻辑信道与D2D Discovery传输信道的映射关系。Setting a mapping interface between the radio link control protocol layer and the ProSe protocol stack to establish a D2D service logical channel and D2D The mapping relationship of the Discovery transport channel.
  33. 根据权利要求32所述的装置,其特征在于,所述处理器用于当所述第一D2D通信数据的比特数小于等于第一预设阈值时,在所述媒体接入控制协议层将所述第一D2D通信数据映射到所述D2D Discovery传输信道;或通过所述映射接口将所述第一D2D通信数据递交到所述ProSe协议栈,以在所述媒体接入控制协议层将所述第一D2D通信数据映射到所述D2D Discovery传输信道;其中,所述第一预设阈值小于等于所述D2D Discovery传输信道承载的最大比特数。The apparatus according to claim 32, wherein the processor is configured to: when the number of bits of the first D2D communication data is less than or equal to a first preset threshold, at the medium access control protocol layer Mapping the first D2D communication data to the D2D Discovery a transport channel; or submit the first D2D communication data to the ProSe protocol stack through the mapping interface to map the first D2D communication data to the D2D at the medium access control protocol layer a discovery channel: wherein the first preset threshold is less than or equal to a maximum number of bits carried by the D2D Discovery transport channel.
  34. 根据权利要33所述的装置,其特征在于,所述处理器还用于当所述第一D2D通信数据的比特数大于所述第一预设阈值时,将所述第一D2D通信数据映射到D2D共享传输信道,通过所述D2D共享传输信道传输所述第一D2D通信数据。The device according to claim 33, wherein the processor is further configured to: when the number of bits of the first D2D communication data is greater than the first preset threshold, map the first D2D communication data And transmitting, by the D2D shared transport channel, the first D2D communication data to a D2D shared transport channel.
  35. 根据权利要求33或34所述的装置,其特征在于,所述处理器还用于当所述第一D2D通信数据的比特数大于所述第一预设阈值时,在所述无线链路控制协议层将所述第一D2D通信数据至少分割为第二D2D通信数据和第三D2D通信数据;其中,所述第一预设阈值等于所述D2D Discovery传输信道承载的最大比特数,所述第二D2D通信数据的比特数小于等于所述第一预设阈值,所述第三D2D通信数据的比特数大于所述第二D2D通信数据的比特数;The apparatus according to claim 33 or 34, wherein the processor is further configured to: when the number of bits of the first D2D communication data is greater than the first preset threshold, in the radio link control The protocol layer divides the first D2D communication data into at least second D2D communication data and third D2D communication data; wherein the first preset threshold is equal to the D2D The maximum number of bits carried by the Discovery transport channel, the number of bits of the second D2D communication data is less than or equal to the first preset threshold, and the number of bits of the third D2D communication data is greater than the number of bits of the second D2D communication data ;
    所述处理器还用于在所述媒体接入控制协议层将所述第二D2D通信数据映射到所述D2D Discovery传输信道,或通过所述映射接口将所述第二D2D通信数据递交到所述ProSe协议栈;以及The processor is further configured to map the second D2D communication data to the D2D at the medium access control protocol layer Discovering a transport channel, or delivering the second D2D communication data to the ProSe protocol stack through the mapping interface;
    在所述媒体接入控制协议层将所述第三D2D通信数据映射到所述D2D共享传输信道。Mapping the third D2D communication data to the D2D shared transport channel at the medium access control protocol layer.
  36. 根据权利要求35所述的装置,其特征在于,所述处理器还用于确定所述第三D2D通信数据的比特数是否大于第二预设阈值;其中,所述第二预设阈值为所述D2D共享传输信道承载的最大比特数;The device according to claim 35, wherein the processor is further configured to determine whether the number of bits of the third D2D communication data is greater than a second preset threshold; wherein the second preset threshold is Describe the maximum number of bits carried by the D2D shared transport channel;
    所述处理器还用于当所述第三D2D通信数据的比特数大于所述第二预设阈值时,在所述无线链路控制协议层将所述第三D2D通信数据进行分割,其中,分割后的每份D2D通信数据的比特数均小于等于所述第二预设阈值,所述第二D2D通信数据包括所述第三D2D通信数据的调度信息,所述调度信息用于指示所述第三D2D通信数据使用的时频资源的信息。The processor is further configured to: when the number of bits of the third D2D communication data is greater than the second preset threshold, segment the third D2D communication data at the radio link control protocol layer, where The number of bits of the divided D2D communication data is less than or equal to the second preset threshold, and the second D2D communication data includes scheduling information of the third D2D communication data, where the scheduling information is used to indicate the The information of the time-frequency resource used by the third D2D communication data.
  37. 根据权利要求33-36任一项所述的装置,其特征在于,所述处理器还用于在所述媒体接入控制协议层或无线链路控制协议层对所述第一D2D通信数据添加源地址和目的地址,以及添加专用逻辑信道标识,其中,所述源地址用于标识发送所述第一D2D通信数据的终端设备的地址,所述目的地址用于标识接收所述第一D2D通信数据的终端设备的地址,所述专用逻辑信道标识用于标识所述D2D Discovery传输信道传输的D2D通信数据。The device according to any one of claims 33 to 36, wherein the processor is further configured to add the first D2D communication data at the medium access control protocol layer or the radio link control protocol layer. a source address and a destination address, and a dedicated logical channel identifier, wherein the source address is used to identify an address of a terminal device that sends the first D2D communication data, and the destination address is used to identify that the first D2D communication is received The address of the terminal device of the data, the dedicated logical channel identifier is used to identify the D2D Discovery transmits D2D communication data for the channel.
  38. 根据权利要求31所述的装置,其特征在于,所述处理器用于设置分组数据汇聚协议层到所述ProSe协议栈的映射关系。The apparatus according to claim 31, wherein the processor is configured to set a mapping relationship between a packet data convergence protocol layer and the ProSe protocol stack.
  39. 根据权利要求38所述的装置,其特征在于,所述处理器用于当所述第一D2D通信数据的比特数小于等于第一预设阈值时,将所述第一D2D通信数据从所述分组数据汇聚协议层递交到所述ProSe协议栈,对所述第一D2D通信数据设置ProSe标识,并在所述媒体接入控制协议层将所述第一D2D通信数据映射到所述D2D Discovery传输信道;其中,所述第一预设阈值小于等于所述D2D Discovery传输信道承载的最大比特数。The apparatus according to claim 38, wherein said processor is configured to: when said number of bits of said first D2D communication data is less than or equal to a first predetermined threshold, said first D2D communication data from said packet a data convergence protocol layer is submitted to the ProSe protocol stack, a ProSe identity is set for the first D2D communication data, and the first D2D communication data is mapped to the D2D at the media access control protocol layer a discovery channel: wherein the first preset threshold is less than or equal to a maximum number of bits carried by the D2D Discovery transport channel.
  40. 根据权利要求38所述的装置,其特征在于,所述处理器还用于当所述第一D2D通信数据的比特数大于所述第一预设阈值时,将所述第一D2D通信数据从所述分组数据汇聚协议层递交到所述媒体接入控制协议层,并在所述媒体接入控制协议层将所述第一D2D通信数据映射到所述D2D共享传输信道。The device according to claim 38, wherein the processor is further configured to: when the number of bits of the first D2D communication data is greater than the first preset threshold, the first D2D communication data is The packet data convergence protocol layer is delivered to the medium access control protocol layer, and the first D2D communication data is mapped to the D2D shared transport channel at the medium access control protocol layer.
  41. 一种数据传输装置,其特征在于,所述装置包括收发器以及处理器;A data transmission device, characterized in that the device comprises a transceiver and a processor;
    所述收发器用于接收其他终端设备发送的D2D通信数据;The transceiver is configured to receive D2D communication data sent by other terminal devices;
    所述处理器用于根据所述D2D通信数据的信息确定所述D2D通信数据来自D2D Discovery传输信道;以及用于当所述D2D通信数据来自D2D Discovery传输信道时,根据所述D2D通信数据的信息以及获取的D2D业务逻辑信道与D2D Discovery传输信道的映射关系,将所述D2D通信数据映射到所述D2D Discovery传输信道。The processor is configured to determine, according to the information of the D2D communication data, the D2D communication data from D2D Discovery transport channel; and for when the D2D communication data comes from D2D When the Discovery transport channel is based on the information of the D2D communication data and the acquired D2D service logical channel and D2D A mapping relationship of the Discovery transport channel, mapping the D2D communication data to the D2D Discovery transport channel.
  42. 根据权利要求41所述的装置,其特征在于,所述收发器接收的所述D2D通信数据的信息包括所述D2D通信数据的比特数和/或专用逻辑信道标识,所述专用逻辑信道标识用于标识所述D2D通信数据来自D2D Discovery传输信道;The apparatus according to claim 41, wherein said information of said D2D communication data received by said transceiver comprises a number of bits of said D2D communication data and/or a dedicated logical channel identifier, said dedicated logical channel identification For identifying the D2D communication data from D2D Discovery transport channel;
    所述处理器用于当根据所述收发器接收的所述D2D通信数据的信息确定所述D2D通信数据的比特数小于等于第一预设阈值,或所述D2D通信数据包含所述专用逻辑信道标识时,将所述D2D通信数据通过所述D2D Discovery传输信道递交到媒体接入控制协议层,并根据获取的所述映射关系在所述媒体接入控制协议层将所述D2D通信数据映射到D2D业务逻辑信道,其中,所述第一预设阈值小于等于所述D2D Discovery传输信道承载的最大比特数;所述获取的所述映射关系为在所述媒体接入控制协议层建立的D2D业务逻辑信道与D2D Discovery传输信道的映射关系。The processor is configured to determine, according to the information of the D2D communication data received by the transceiver, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, or the D2D communication data includes the dedicated logical channel identifier Passing the D2D communication data through the D2D The discovery channel is delivered to the medium access control protocol layer, and the D2D communication data is mapped to the D2D service logical channel at the medium access control protocol layer according to the obtained mapping relationship, where the first preset The threshold is less than or equal to the D2D The maximum number of bits carried by the Discovery transport channel; the obtained mapping relationship is a D2D service logical channel and D2D established at the medium access control protocol layer The mapping relationship of the Discovery transport channel.
  43. 根据权利要求42所述的装置,其特征在于,所述收发器接收的所述D2D通信数据的信息还包括调度信息,所述调度信息用于指示第二D2D通信数据使用的时频资源,所述D2D通信数据与所述第二D2D通信数据由同一D2D通信数据包分割得到;The device according to claim 42, wherein the information of the D2D communication data received by the transceiver further comprises scheduling information, where the scheduling information is used to indicate a time-frequency resource used by the second D2D communication data. Decoding the D2D communication data and the second D2D communication data by the same D2D communication data packet;
    所述处理器用于当根据所述收发器接收的所述D2D通信数据的信息确定所述D2D通信数据的比特数小于等于第一预设阈值,且所述D2D通信数据包含所述专用逻辑信道标识时,根据所述调度信息获取所述第二D2D通信数据;The processor is configured to determine, according to the information of the D2D communication data received by the transceiver, that the number of bits of the D2D communication data is less than or equal to a first preset threshold, and the D2D communication data includes the dedicated logical channel identifier Obtaining, according to the scheduling information, the second D2D communication data;
    所述处理器还用于将所述D2D通信数据通过所述D2D Discovery传输信道递交到媒体接入控制协议层,以及将所述第二D2D通信数据通过D2D共享传输信道递交到所述媒体接入控制协议层,并在所述媒体接入控制协议层将所述D2D通信数据以及所述第二D2D通信数据映射到D2D业务逻辑信道;The processor is further configured to pass the D2D communication data through the D2D The Discovery transport channel is delivered to the medium access control protocol layer, and the second D2D communication data is delivered to the medium access control protocol layer through the D2D shared transport channel, and the medium access control protocol layer is D2D communication data and the second D2D communication data are mapped to a D2D service logical channel;
    所述处理器还用于在所述无线链路控制协议层将所述映射模块映射的D2D通信数据以及所述第二D2D通信数据组包还原得到分割前的D2D通信数据包。The processor is further configured to: at the radio link control protocol layer, restore the D2D communication data mapped by the mapping module and the second D2D communication data packet to obtain a D2D communication data packet before segmentation.
  44. 根据权利要求42或43所述的装置,其特征在于,所述收发器接收的所述D2D通信数据的信息还包括源地址以及目的地址,所述源地址用于标识发送所述D2D通信数据的终端设备的地址,所述目的地址用于标识接收所述D2D通信数据的终端设备的地址;The device according to claim 42 or 43, wherein the information of the D2D communication data received by the transceiver further comprises a source address and a destination address, wherein the source address is used to identify that the D2D communication data is sent. An address of the terminal device, where the destination address is used to identify an address of the terminal device that receives the D2D communication data;
    所述处理器用于当从所述收发器接收的D2D通信数据中获取到所述无线链路控制协议层的数据包头包含源地址以及目的地址,且确定所述D2D通信数据的比特数小于等于第一预设阈值或所述D2D通信数据包含所述专用逻辑信道标识时,将所述D2D通信数据通过所述D2D Discovery传输信道递交到所述媒体接入控制协议层,在所述媒体接入控制协议层将所述D2D通信数据映射到ProSe协议栈;以及用于通过所述无线链路控制协议层和所述ProSe协议栈之间的映射接口,将所述D2D通信数据递交到所述无线链路控制协议层。The processor is configured to: when the D2D communication data received from the transceiver is acquired, the data packet header of the radio link control protocol layer includes a source address and a destination address, and determine that the number of bits of the D2D communication data is less than or equal to the first Passing the D2D communication data through the D2D when a predetermined threshold or the D2D communication data includes the dedicated logical channel identifier a Discovery transport channel is delivered to the medium access control protocol layer, the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer; and the protocol layer and the A mapping interface between the ProSe protocol stacks, the D2D communication data is delivered to the radio link control protocol layer.
  45. 根据权利要求42所述的装置,其特征在于,所述收发器接收的所述D2D通信数据的信息包括所述D2D通信数据的比特数以及ProSe标识,所述ProSe标识用于标识所述D2D通信数据来自数据分组汇聚协议层;The apparatus according to claim 42, wherein the information of the D2D communication data received by the transceiver comprises a number of bits of the D2D communication data and a ProSe identifier, and the ProSe identifier is used to identify the D2D communication The data comes from the data packet convergence protocol layer;
    所述处理器用于当确定所述收发器接收的D2D通信数据的比特数小于等于第一预设阈值,且所述D2D通信数据包含所述ProSe标识时,将所述D2D通信数据通过所述D2D Discovery传输信道递交到媒体接入控制协议层,在所述媒体接入控制协议层将所述D2D通信数据映射到所述ProSe协议栈;以及用于根据所述ProSe协议栈与所述分组数据汇聚协议层的映射关系,将所述D2D通信数据映射到所述分组数据汇聚协议层。The processor is configured to: when determining that the number of bits of D2D communication data received by the transceiver is less than or equal to a first preset threshold, and the D2D communication data includes the ProSe identifier, pass the D2D communication data to the D2D The Discovery transport channel is delivered to a medium access control protocol layer, the D2D communication data is mapped to the ProSe protocol stack at the medium access control protocol layer; and used to aggregate with the packet data according to the ProSe protocol stack a mapping relationship of the protocol layer, mapping the D2D communication data to the packet data convergence protocol layer.
PCT/CN2015/086736 2015-08-12 2015-08-12 Data transmission method and apparatus WO2017024546A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201580074052.6A CN107211405B (en) 2015-08-12 2015-08-12 Data transmission method and device
PCT/CN2015/086736 WO2017024546A1 (en) 2015-08-12 2015-08-12 Data transmission method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/086736 WO2017024546A1 (en) 2015-08-12 2015-08-12 Data transmission method and apparatus

Publications (1)

Publication Number Publication Date
WO2017024546A1 true WO2017024546A1 (en) 2017-02-16

Family

ID=57984030

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/086736 WO2017024546A1 (en) 2015-08-12 2015-08-12 Data transmission method and apparatus

Country Status (2)

Country Link
CN (1) CN107211405B (en)
WO (1) WO2017024546A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013034107A1 (en) * 2011-09-08 2013-03-14 中国移动通信集团公司 Method, device, and system that enable d2d data transmissions in cellular network
CN104184540A (en) * 2013-05-23 2014-12-03 电信科学技术研究院 Data transmission method and apparatus in device-to-device (D2D) communication
CN104469961A (en) * 2013-09-25 2015-03-25 中兴通讯股份有限公司 Device-to-device communication method, device and system
CN104812057A (en) * 2014-01-29 2015-07-29 北京三星通信技术研究有限公司 Data transmission method and device of D2D system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104244444B (en) * 2013-06-09 2018-08-07 电信科学技术研究院 D2D transfer control methods and equipment
CN103338497B (en) * 2013-06-14 2016-06-01 北京交通大学 Autonomous device discover method in a kind of D2D communication system
KR101849481B1 (en) * 2014-01-31 2018-04-16 엘지전자 주식회사 D2d operation method performed by terminal in wireless communication system and terminal using same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013034107A1 (en) * 2011-09-08 2013-03-14 中国移动通信集团公司 Method, device, and system that enable d2d data transmissions in cellular network
CN104184540A (en) * 2013-05-23 2014-12-03 电信科学技术研究院 Data transmission method and apparatus in device-to-device (D2D) communication
CN104469961A (en) * 2013-09-25 2015-03-25 中兴通讯股份有限公司 Device-to-device communication method, device and system
CN104812057A (en) * 2014-01-29 2015-07-29 北京三星通信技术研究有限公司 Data transmission method and device of D2D system

Also Published As

Publication number Publication date
CN107211405A (en) 2017-09-26
CN107211405B (en) 2020-06-02

Similar Documents

Publication Publication Date Title
WO2020204501A1 (en) Method for supporting access to closed network, ue, base station and readable storage medium
WO2018030819A1 (en) Method and apparatus for supporting movement of user equipment in wireless communications
WO2015096160A1 (en) Method and device for keeping service continuity
WO2017123002A1 (en) Method and equipment for determining iot service, and method and equipment for controlling iot service behavior
WO2018028135A1 (en) Downlink data information feedback method and relevant device
WO2015115843A1 (en) A method and apparatus for maintenance and release of ue resources
WO2014186986A1 (en) Stream forwarding method, device and system
WO2013019035A2 (en) Apparatus and method for supporting handover
WO2015002447A1 (en) Apparatus and method for switching between default path and direct path in wireless communication system
WO2015020475A1 (en) Apparatus and method for perfoming switching operation between macro cell and small cell in mobile communication system
WO2012165809A2 (en) Device and method for simultaneous data transmission service in heterogeneous network
WO2012165794A2 (en) System and method for simultaneous data transmission service in heterogeneous network
WO2013118978A1 (en) Method and apparatus for efficiently transmitting small amounts of data in wireless communication systems
WO2021066515A1 (en) Master node, secondary node and user equipment in mobile communication network and communication methods therebetween
WO2020067812A1 (en) An apparatus and a method for configurating and reporting of minimization of drive tests measurement and access network device
WO2019177397A1 (en) Method and apparatus for establishing radio bearer
WO2019216739A1 (en) Security protection method and apparatus in wireless communication system
WO2021206519A1 (en) Apparatus and method for transmitting bridge management information in wireless communication system
WO2019127115A1 (en) Data transmission method, terminal device and network device
WO2014047816A1 (en) Method, base station and user equipment for downlink data transmission
WO2014019240A1 (en) Data processing method, base station and ue
WO2015000117A1 (en) Method and device for simulation of dialling test of user side and network side
WO2021133092A1 (en) Method and apparatus to manage nssaa procedure in wireless communication network
WO2021112646A1 (en) Method for transmitting audio data by using short-range wireless communication in wireless communication system, and apparatus for same
WO2020159168A1 (en) Method for data replication, data counting method, corresponding entities and media

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: 15900744

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: 15900744

Country of ref document: EP

Kind code of ref document: A1