WO2017035754A1 - 发送数据、接收数据的方法和装置 - Google Patents

发送数据、接收数据的方法和装置 Download PDF

Info

Publication number
WO2017035754A1
WO2017035754A1 PCT/CN2015/088644 CN2015088644W WO2017035754A1 WO 2017035754 A1 WO2017035754 A1 WO 2017035754A1 CN 2015088644 W CN2015088644 W CN 2015088644W WO 2017035754 A1 WO2017035754 A1 WO 2017035754A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
path
source
destination
identifier
Prior art date
Application number
PCT/CN2015/088644
Other languages
English (en)
French (fr)
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 CN201580082671.XA priority Critical patent/CN107950073A/zh
Priority to PCT/CN2015/088644 priority patent/WO2017035754A1/zh
Publication of WO2017035754A1 publication Critical patent/WO2017035754A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user

Definitions

  • the present invention relates to the field of wireless communications, and in particular, to a method and an apparatus for transmitting data and receiving data.
  • D2D communication technology refers to the technology that two terminals do not communicate directly through the base station.
  • the data transmitted during D2D communication between the two terminals may be referred to as D2D data, and the D2D data may be voice, picture or video.
  • a process of transmitting D2D data between two terminals is described by a specific example.
  • two terminals are respectively referred to as a first terminal and a second terminal; when the first terminal transmits D2D data to the second terminal, The first terminal establishes a D2D link directly connected to the second terminal, and sends the D2D data to the second D2D terminal through the D2D link directly connected by the source terminal to the destination terminal.
  • the communication quality of the first terminal transmitting the D2D data to the second terminal is poor.
  • the present invention provides a method and apparatus for transmitting data and receiving data.
  • the technical solutions are as follows:
  • the present invention provides a method of transmitting data, the method comprising:
  • the control node receives a transmission request sent by the source terminal, where the transmission request carries a terminal identifier of the source terminal and a terminal identifier of the destination terminal that communicates with the source terminal, where the source terminal is a single-hop D2D terminal;
  • the control node determines, according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal, that the channel quality of the D2D link directly connected to the source terminal and the destination terminal does not meet the preset quality. condition;
  • the path information includes first path information, where the first path information is included in the source terminal in the first D2D path.
  • the control node sends the first path information of the first D2D path to the source terminal, where the first path information is used by the source terminal to send the D2D data to the next hop transit terminal.
  • the path information includes second path information, where the second path information is included in a first transit terminal in the first D2D path. a terminal identifier of the one-hop terminal and a terminal identifier of the next hop terminal, or the second path information includes a terminal identifier of the destination terminal and a next hop terminal of the first relay terminal in the first D2D path a terminal identifier, where the first relay terminal is any one of the first D2D channels;
  • the control node sends the second path information of the first D2D path to the first relay terminal, where the second path information is used by the first relay terminal to receive the D2D data sent by the last hop terminal. Forwarding the D2D data to the next hop terminal, or the second path information is used by the first relay terminal to receive the D2D data according to the D2D data when receiving the D2D data from the source terminal. Determining the destination terminal identifier, and forwarding the D2D data to the next hop terminal.
  • the control node determines, according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal, the source terminal and the destination terminal
  • the channel quality of the directly connected D2D link does not meet the preset quality conditions, including:
  • the control node determines, according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal, a D2D link, a cellular link, and at least one second D2D path directly connected to the source terminal by the source terminal;
  • Obtaining, by the control node, a channel quality of a D2D link directly connected to the destination terminal by the source terminal, a channel quality of the cellular link, and a second D2D path of each of the at least one second D2D path Channel quality constitutes a channel quality set;
  • the control node determines the D2D chain directly connected to the source terminal by the source terminal.
  • the channel quality of the road does not meet the preset quality conditions.
  • the control node determines, according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal, Determining, by the source terminal, that the channel quality between the destination terminal and the destination terminal meets a preset quality condition, the first D2D path includes:
  • the control node selects, from the at least one second D2D path, a channel quality higher than a channel quality of a D2D link directly connected between the source terminal and the destination terminal and higher than a channel of the cellular link Quality of the second D2D pathway;
  • the selected second D2D path is taken as the first D2D path.
  • the present invention provides a method of transmitting data, the method comprising:
  • the source terminal sends a transmission request to the control node, where the transmission request carries the terminal identifier of the source terminal and the terminal identifier of the destination terminal that communicates with the source terminal, where the source terminal is a single-hop D2D terminal, which is used to trigger the
  • the source terminal sends the next hop transit terminal according to the terminal identifier of the next hop transit terminal Sending D2D data, configured to trigger the next hop transit terminal to forward the D2D data to the destination terminal.
  • the present invention provides a method of transmitting data, the method comprising:
  • the relay terminal receives the second path information of the first D2D path sent by the control node, where the first D2D path is a D2D path in which the channel quality between the source terminal and the destination terminal communicating with the source terminal meets a preset quality condition,
  • the relay terminal is any multi-hop D2D terminal in the first D2D path except the source terminal and the destination terminal;
  • the relay terminal receives D2D data from a source terminal, where the source terminal is a single-hop D2D terminal;
  • the relay terminal transmits the D2D data from the source terminal to the destination terminal that communicates with the source terminal through the first D2D path according to the second path information.
  • the receiving terminal receives the D2D data from the source terminal, including:
  • the relay terminal receives the D2D data sent by the source terminal;
  • the relay terminal receives the data from the source terminal D2D sent by the last hop terminal.
  • the second path information includes a terminal identifier and a next hop of the last hop terminal of the transit terminal in the first D2D path Terminal identification of the terminal;
  • the forwarding terminal forwards the D2D data to the destination terminal that communicates with the source terminal by using the first D2D path according to the second path information, including:
  • the second path information includes a terminal identifier of the destination terminal and a next hop of the transit terminal in the first D2D path. Terminal identification of the terminal;
  • the forwarding terminal forwards the D2D data to the destination terminal that communicates with the source terminal by using the first D2D path according to the second path information, including:
  • the second path information identifies the terminal identifier of the next hop terminal
  • a fourth method, the present invention provides a method for receiving data, the method comprising:
  • the control node determines that the channel quality of the device-to-device D2D link directly connected between the source terminal and the destination terminal that communicates with the source terminal does not meet the preset quality condition, and determines that the source terminal is to the destination terminal
  • the destination terminal receives D2D data from the source terminal and is sent by the relay terminal, where the source terminal is a single-hop D2D terminal, and the transit terminal is multiple The D2D terminal is hopped, and the transit terminal is a last hop terminal of the destination terminal in the first D2D path.
  • control node includes:
  • a first receiving module configured to receive a transmission request sent by the source terminal, where the transmission request carries a terminal identifier of the source terminal and a terminal identifier of the destination terminal that communicates with the source terminal, where the source terminal is a single-hop D2D terminal ;
  • a first determining module configured to determine, according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal, that a channel quality of the D2D link directly connected to the source terminal and the destination terminal does not meet a preset quality condition
  • a second determining module configured to determine, according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal, a first D2D path that meets a preset quality condition between a channel quality of the source terminal and the destination terminal,
  • the first D2D path includes at least one relay terminal, and the transit terminal is any multi-hop D2D terminal in the first D2D path except the source terminal and the destination terminal;
  • a first sending module configured to send path information of the first D2D path to a terminal other than the destination terminal in the first D2D path, where the path information is used by the terminal to pass the first D2D
  • the path transmits D2D data to the destination terminal.
  • the path information includes first path information, where the first path information is included in the source terminal in the first D2D path.
  • the first sending module is specifically configured to send, to the source terminal, the first of the first D2D path Path information, where the first path information is used by the source terminal to send the D2D data to the next hop transit terminal.
  • the path information includes second path information, where the second path information is included in the first transit terminal in the first D2D path. a terminal identifier of the one-hop terminal and a terminal identifier of the next hop terminal, or the second path information includes a terminal identifier of the destination terminal and a next hop terminal of the first relay terminal in the first D2D path a terminal identifier, where the first relay terminal is any one of the first D2D channels;
  • the first sending module is configured to send, to the first transit terminal, second path information of the first D2D path, where the second path information is used by the first transit terminal to receive the previous one. After the D2D data sent by the terminal is hopped, the D2D data is forwarded to the next hop terminal, or the second path information is used by the first relay terminal when receiving D2D data from the source terminal, according to the Determining, by the D2D data, the destination terminal terminal identifier, and forwarding the D2D data to the next hop terminal.
  • the first determining module is configured to determine the source according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal. Obtaining, by the terminal, the D2D link, the cellular link, and the at least one second D2D path directly connected to the destination terminal, acquiring a channel quality of the D2D link directly connected to the destination terminal by the source terminal, and the cellular link.
  • the channel quality and the channel quality of each of the at least one second D2D path constitute a channel quality set, and the channel quality of the D2D link directly connected to the destination terminal by the source terminal is not the channel
  • the maximum channel quality in the quality set determines that the channel quality of the D2D link directly connected to the destination terminal by the source terminal does not meet the preset quality condition.
  • the second determining module is specifically configured to select a channel from the at least one second D2D path a second D2D path having a quality higher than a channel quality of a D2D link directly connected between the source terminal and the destination terminal and higher than a channel quality of the cellular link, using the selected second D2D path as The first D2D path.
  • the present invention provides a terminal, where the terminal includes:
  • a second sending module configured to send a transmission request to the control node, where the transmission request carries a terminal identifier of the source terminal and a terminal identifier of the destination terminal that communicates with the source terminal, where the source terminal is a single a hopping D2D terminal, configured to trigger the control node to determine, when the channel quality of the D2D link directly connected to the source terminal and the destination terminal does not meet a preset quality condition, determine, by the source terminal, the source terminal
  • the first D2D path includes at least one relay terminal, and the intermediate terminal is the source terminal and the destination terminal in the first D2D path. Any multi-hop D2D terminal outside;
  • a second receiving module configured to receive first path information of the first D2D path sent by the control node, where the first path information includes a next hop transit of the source terminal in the first D2D path Terminal identification of the terminal;
  • a third sending module configured to send D2D data to the next hop transit terminal according to the terminal identifier of the next hop transit terminal, where the next hop transit terminal is triggered to forward the D2D to the destination terminal data.
  • the present invention provides a terminal, where the terminal includes:
  • a third receiving module configured to receive second path information of the first D2D path sent by the control node, where the channel quality between the source terminal and the destination terminal that communicates with the source terminal meets a preset quality a conditional D2D path, wherein the relay terminal is any multi-hop D2D terminal in the first D2D path except the source terminal and the destination terminal;
  • a fourth receiving module configured to receive D2D data from the source terminal, where the source terminal is a single-hop D2D terminal;
  • a fourth sending module configured to send the D2D data from the source terminal to the destination terminal that communicates with the source terminal by using the first D2D path according to the second path information.
  • the fourth receiving module is specifically configured to: if the last hop terminal of the transit terminal is a source terminal in the first D2D path Receiving D2D data sent by the source terminal; or
  • the fourth receiving module is configured to: if the last hop terminal of the transit terminal is a transit terminal in the first D2D path, receive data from the source terminal D2D sent by the last hop terminal.
  • the second path information includes a terminal identifier and a next hop of the last hop terminal of the transit terminal in the first D2D path Terminal identification of the terminal;
  • the fourth sending module is specifically configured to: according to the terminal identifier of the next hop terminal, to the next The one-hop terminal forwards the D2D data.
  • the second path information includes a terminal identifier of the destination terminal and a next hop of the transit terminal in the first D2D path Terminal identification of the terminal;
  • the fourth sending module is configured to identify a terminal identifier of the next hop terminal according to the terminal identifier of the destination terminal and the second path information that is carried by the D2D data, according to the next hop terminal The terminal identifier forwards the D2D data to the next hop terminal.
  • the eighth method, the present invention provides a terminal, where the terminal includes:
  • a fifth receiving module configured to: when the control node determines that the channel quality of the device-to-device D2D link directly connected between the source terminal and the destination terminal that communicates with the source terminal does not meet the preset quality condition, and determines the source Receiving D2D data from the source terminal sent by the relay terminal when the channel quality between the terminal and the destination terminal meets the first D2D path of the preset quality condition, the source terminal is a single-hop D2D terminal, and the transit The terminal is a multi-hop D2D terminal, and the transit terminal is a last hop terminal of the destination terminal in the first D2D path.
  • the present invention provides a control node, where the control node includes: a first receiver, a first processor, and a first transmitter;
  • the first receiver is configured to receive a transmission request sent by the source terminal, where the transmission request carries a terminal identifier of the source terminal and a terminal identifier of the destination terminal that communicates with the source terminal, where the source terminal is a single hop D2D terminal;
  • the first processor is configured to determine, according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal, that the channel quality of the D2D link directly connected to the source terminal and the destination terminal does not meet the preset quality. condition;
  • the first processor is further configured to determine, according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal, that the channel quality between the source terminal and the destination terminal meets a preset quality condition.
  • a D2D path the first D2D path includes at least one relay terminal, and the transit terminal is any multi-hop D2D terminal in the first D2D path except the source terminal and the destination terminal;
  • the first transmitter is configured to send path information of the first D2D path to a terminal other than the destination terminal in the first D2D path, where the path information is used by the terminal to pass the One
  • the D2D path transmits D2D data to the destination terminal.
  • the path information includes first path information, where the first path information is included in the source terminal in the first D2D path.
  • the first transmitter is further configured to send the first path information of the first D2D path to the source terminal, where the first path information is used by the source terminal to send to the next hop transit terminal Describe D2D data.
  • the path information includes second path information, where the second path information is included in the first transit terminal in the first D2D path. a terminal identifier of the one-hop terminal and a terminal identifier of the next hop terminal, or the second path information includes a terminal identifier of the destination terminal and a next hop terminal of the first relay terminal in the first D2D path a terminal identifier, where the first relay terminal is any one of the first D2D channels;
  • the first transmitter is further configured to send second path information of the first D2D path to the first relay terminal, where the second path information is used by the first relay terminal to receive the previous one After the D2D data sent by the terminal is hopped, the D2D data is forwarded to the next hop terminal, or the second path information is used by the first relay terminal when receiving D2D data from the source terminal, according to the Determining, by the D2D data, the destination terminal terminal identifier, and forwarding the D2D data to the next hop terminal.
  • the first processor is further configured to determine the source according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal a D2D link, a cellular link, and at least one second D2D path directly connected to the destination terminal by the terminal; acquiring a channel quality of the D2D link directly connected to the destination terminal by the source terminal, and the cellular link
  • the channel quality and the channel quality of each of the at least one second D2D path constitute a channel quality set, and the channel quality of the D2D link directly connected to the destination terminal by the source terminal is not the channel
  • the maximum channel quality in the quality set determines that the channel quality of the D2D link directly connected to the destination terminal by the source terminal does not meet the preset quality condition.
  • the first processor is further configured to select a channel from the at least one second D2D path a second D2D path having a quality higher than a channel quality of a D2D link directly connected between the source terminal and the destination terminal and higher than a channel quality of the cellular link, using the selected second D2D path as The first D2D path.
  • the present invention provides a terminal, where the terminal includes: a second transmitter and a second receiver;
  • the second transmitter is configured to send a transmission request to the control node, where the transmission request carries a terminal identifier of the source terminal and a terminal identifier of the destination terminal that communicates with the source terminal, where the source terminal is a single hop D2D
  • the terminal is configured to trigger the control node to determine, between the source terminal and the destination terminal, that the channel quality of the D2D link directly connected to the source terminal does not meet the preset quality condition a first D2D path that satisfies a preset quality condition, the first D2D path includes at least one relay terminal, and the transit terminal is other than the source terminal and the destination terminal in the first D2D path Any multi-hop D2D terminal;
  • the second receiver is configured to receive first path information of the first D2D path sent by the control node, where the first path information includes a next step of the source terminal in the first D2D path
  • the terminal identifier of the hopping terminal
  • the second transmitter is further configured to send, according to the terminal identifier of the next hop transit terminal, D2D data to the next hop transit terminal, where the next hop transit terminal is triggered to forward to the destination terminal.
  • the D2D data is further configured to send, according to the terminal identifier of the next hop transit terminal, D2D data to the next hop transit terminal, where the next hop transit terminal is triggered to forward to the destination terminal.
  • the present invention provides a terminal, where the terminal includes: a third receiver and a third transmitter;
  • the third receiver is configured to receive second path information of the first D2D path sent by the control node, where the first D2D path is a channel quality that is met between the source terminal and the destination terminal that communicates with the source terminal. a D2D path of a quality condition, wherein the relay terminal is any multi-hop D2D terminal in the first D2D path except the source terminal and the destination terminal;
  • the third receiver is further configured to receive D2D data from a source terminal, where the source terminal is a single-hop D2D terminal;
  • the third transmitter is configured to send the D2D data from the source terminal to the destination terminal that communicates with the source terminal by using the first D2D path according to the second path information.
  • the third receiver is further configured to: if the last hop terminal of the transit terminal in the first D2D path is Receiving, by the source terminal, D2D data sent by the source terminal; or
  • the third receiver is further configured to: if the last hop terminal of the transit terminal is a transit terminal in the first D2D path, receive data from the source terminal D2D sent by the last hop terminal.
  • the second path information includes a terminal identifier and a lower end of the last hop terminal of the transit terminal in the first D2D path The terminal identifier of the one-hop terminal;
  • the third transmitter is further configured to forward the D2D data to the next hop terminal according to the terminal identifier of the next hop terminal.
  • the second path information includes a terminal identifier of the destination terminal and a downlink terminal in the first D2D path The terminal identifier of the one-hop terminal;
  • the third transmitter is further configured to identify, according to the terminal identifier of the destination terminal and the second path information carried in the D2D data, a terminal identifier of the next hop terminal;
  • the third transmitter is further configured to forward the D2D data to the next hop terminal according to the terminal identifier of the next hop terminal.
  • the present invention provides a terminal, where the terminal includes: a fourth receiver;
  • the fourth receiver is configured to determine, when the control node determines that the channel quality of the device-to-device D2D link directly connected between the source terminal and the destination terminal that communicates with the source terminal does not meet the preset quality condition, and determines Receiving D2D data from the source terminal sent by the relay terminal when the channel quality between the source terminal and the destination terminal meets the first D2D path of the preset quality condition, the source terminal is a single-hop D2D terminal, where The transit terminal is a multi-hop D2D terminal, and the transit terminal is a last hop terminal of the destination terminal in the first D2D path.
  • the source terminal when the channel quality of the D2D link directly connected between the source terminal and the destination terminal is poor, the source terminal can assist the sending of the D2D data to the destination terminal by using the transit terminal having the multi-hop capability.
  • the D2D path through the transit terminal and having good channel quality transmits D2D data to the destination terminal through the D2D path, thereby improving the communication quality of the D2D data transmitted by the source terminal to the destination terminal.
  • FIG. 1 is a flowchart of a method for transmitting data according to an embodiment of the present invention
  • FIG. 3 is a flowchart of another method for sending data according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for receiving data according to an embodiment of the present invention.
  • 5-1 is a flowchart of a method for sending data according to an embodiment of the present invention.
  • FIG. 5-2 is a flowchart of another method for sending data according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a control node according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a control node according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic structural diagram of another terminal according to an embodiment of the present disclosure.
  • FIG. 13 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
  • the embodiment of the invention provides a method for transmitting data, which can be implemented by a control node.
  • the method includes:
  • Step 101 The control node receives a transmission request sent by the source terminal, where the transmission request carries the terminal identifier of the source terminal and the terminal identifier of the destination terminal that communicates with the source terminal, and the source terminal is a single-hop D2D terminal;
  • the single-hop D2D terminal refers to a D2D terminal that cannot participate in routing, that is, a single-hop D2D terminal cannot forward D2D data of other D2D terminals as a transit terminal, and cannot directly select other transit terminals to forward their own D2D data.
  • the source terminal sends a transmission request to the control node each time the source terminal needs to send the D2D data to the destination terminal.
  • the control node receives the transmission request sent by the source terminal, where the transmission request carries the terminal identifier of the source terminal and the terminal identifier of the destination terminal.
  • the source terminal may be any terminal having a function of transmitting data.
  • the source terminal may be a mobile phone or a tablet computer having a function of transmitting data
  • the destination terminal may be any one having the function of receiving data.
  • the terminal for example, the destination terminal may be a mobile phone or a tablet computer having the function of receiving data; and the destination terminal may be a single-hop D2D terminal or a multi-hop D2D terminal; the multi-hop D2D terminal refers to a D2D terminal capable of participating in routing. .
  • the control node is a device having at least a routing/routing generation function, for example, the control node may be a network side device or a cluster head; the network side device may be a network element or a functional entity, for example, the network side device may be a base station (eNodeB, eNB) Mobility Management Entity (MME), Serving Gateway (S-GW), or PDN Gateway (P-GW).
  • the cluster head refers to a terminal device having the same function as the above-mentioned network side device (having at least a routing/routing generation function). And the steps of the embodiment of the present invention may be separately implemented by each of the eNB, the MME, the S-GW, the PDN gateway, and the cluster head.
  • the source terminal and the destination terminal When the source terminal and the destination terminal are in the area with network coverage, the source terminal and the destination terminal may be controlled by the network side device, and then the control node is the network side device; when the source terminal and the destination terminal are in the area without network coverage When the source terminal and the destination terminal can be controlled by the cluster head, the control node is a cluster head at this time.
  • the cluster head For a terminal controlled by a cluster head, the cluster head has at least a routing/routing generation function.
  • the cluster head sends a broadcast message, and the broadcast message may include an identifier of the cluster head.
  • the source terminal and the destination terminal are in an area without network coverage, the source terminal and the destination terminal cannot be controlled by the network side device, and the source terminal receives the cluster at this time.
  • the first broadcast request is sent to the cluster head according to the identifier of the cluster head, and the first join request may include the terminal identifier of the source terminal, and the cluster head receives the first join request sent by the source terminal, and the source terminal is Accessing the cluster head; similarly, the destination terminal receives the broadcast message of the cluster head, and sends a second join request to the cluster head according to the identifier of the cluster head, where the second join request may include the terminal identifier of the destination terminal, and the cluster head receives the destination terminal Sending a second join request and accessing the destination terminal to the cluster head.
  • the cluster head allocates network resources to the source terminal and the destination terminal, and the source terminal can send data to the destination terminal through the network resource.
  • Step 102 The control node determines, according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal, that the channel quality of the D2D link directly connected to the source terminal and the destination terminal does not meet the preset quality condition;
  • This step can be implemented by the following steps (1) to (3), including:
  • the control node determines, according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal, a D2D link, a cellular link, and at least one second D2D path directly connected by the source terminal to the destination terminal;
  • a cellular link refers to a link for forwarding data through a network side device, and the cellular link includes a first cellular link between the source terminal and the base station and a second cellular link between the base station and the destination terminal; at least one Each of the second D2D paths in the second D2D path includes a source terminal, at least one relay terminal, and a destination terminal.
  • the control node generates at least one second D2D path according to the routing algorithm that generates the route, the terminal identifier of the source terminal, and the terminal identifier of the destination terminal.
  • the control node obtains the channel quality of the D2D link directly connected to the source terminal from the source terminal, the channel quality of the cellular link, and the channel quality of each second D2D path in the at least one second D2D path. ;
  • control node determines that the channel quality of the D2D link directly connected from the source terminal to the destination terminal does not meet the preset. Quality conditions.
  • the control node determines that the channel quality of the D2D link directly connected by the source terminal to the destination terminal meets the preset quality. The condition ends.
  • the control node allocates a path with the highest channel quality to the source terminal, and the source terminal sends data to the destination terminal through the path.
  • the channel quality of the cellular link is the maximum channel quality in the channel quality set
  • the source terminal transmits data to the destination terminal through the cellular link
  • the data may be referred to as cellular data, that is, the source terminal sends the cellular to the base station.
  • the base station receives the cellular data sent by the source terminal, and forwards the cellular data to the destination terminal.
  • the source terminal sends data to the destination terminal through the D2D link directly connected by the source terminal to the destination terminal.
  • the data can be called D2D data.
  • Step 103 When the control node determines that the channel quality of the D2D link directly connected to the source terminal and the destination terminal does not meet the preset quality condition, the control node determines that the channel quality meets the preset according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal.
  • the first D2D path includes a source terminal, at least one transit terminal, and a destination terminal, and the first D2D path is used by the source terminal to send D2D data to the destination terminal through the first D2D path, where the transit terminal is a multi-hop D2D terminal;
  • the control node may select one channel quality from the at least one second D2D path to be directly higher than between the source terminal and the destination terminal.
  • the control node may select a cellular link, and the source terminal sends the cellular to the destination terminal through the cellular link. data.
  • Step 104 The control node sends path information of the first D2D path to the terminal other than the destination terminal in the first D2D path.
  • the path information may have different components according to different situations, and the purpose is to let the terminal that receives the path information know the terminal identifier of the next hop terminal of the terminal in the first D2D path, thereby implementing the first D2D according to the path information.
  • the path transmits D2D data from the source terminal to the destination terminal.
  • the path information may include first path information and second path information.
  • the control node sends the first path information to the source terminal, where the first path information includes a terminal identifier of the next hop transit terminal of the source terminal in the first D2D path; and the control node is in the at least one transit terminal included in the first D2D path
  • Each of the relay terminals transmits the second path information, and the second path information of each of the intermediate terminals is different.
  • the second path information corresponding to the intermediate terminal includes the intermediate terminal in the first D2D path.
  • the terminal identifier of the last hop terminal and the terminal identifier of the next hop terminal; or the second path information corresponding to the transit terminal includes the terminal identifier of the destination terminal and the terminal of the next hop terminal of the transit terminal in the first D2D path Logo.
  • the control node acquires the terminal identifier of the next hop transit terminal of the source terminal in the first D2D path according to the first D2D path, and forms the terminal identifier of the next hop transit terminal of the source terminal into the first path information.
  • the control node sends the first path information to the source terminal according to the terminal identifier of the source terminal.
  • the source terminal receives the first path information sent by the control node, and sends the D2D data to the next hop relay terminal according to the terminal identifier of the next hop transit terminal of the source terminal included in the first D2D path included in the first path information.
  • the control node For each transit terminal, if the second path information corresponding to the transit terminal includes the terminal identifier of the last hop terminal of the transit terminal and the terminal identifier of the next hop terminal in the first D2D path, the control node according to the transit terminal And the terminal identifier of the last hop terminal of the transit terminal in the first D2D path and the terminal identifier of the next hop terminal, and the terminal identifier of the last hop terminal and the terminal identifier of the next hop terminal are formed. Second path information. The control node is based on the terminal identifier of the transit terminal, Sending second path information to the relay terminal.
  • the relay terminal receives the second path information sent by the control node, and receives the D2D data from the source terminal sent by the last hop terminal according to the second path information, and the next hop according to the terminal identifier of the next hop terminal
  • the terminal transmits D2D data from the source terminal.
  • the control node For each transit terminal, if the second path information corresponding to the transit terminal includes the terminal identifier of the destination terminal and the terminal identifier of the next hop terminal of the transit terminal in the first D2D path, the control node is based on the terminal of the transit terminal And identifying, by the terminal identifier of the next hop terminal of the transit terminal in the first D2D path, and the terminal identifier of the destination terminal, and forming the terminal identifier of the next hop terminal and the terminal identifier of the destination terminal into the second path information.
  • the control node sends the second path information to the transit terminal according to the terminal identifier of the transit terminal.
  • the transit terminal receives the second path information sent by the control node.
  • the relay terminal receives the D2D data from the source terminal, and identifies the terminal identifier of the next hop terminal from the second path information according to the terminal identifier of the destination terminal and the second path information carried in the D2D data, according to the next hop terminal.
  • the terminal identifier transmits D2D data from the source terminal to the next hop terminal.
  • the control node receives the transmission request sent by the source terminal, and determines, according to the transmission request, that the channel quality of the D2D link directly connected to the source terminal does not meet the preset quality condition, according to the terminal identifier of the source terminal. And determining, by the terminal identifier of the destination terminal, a first D2D path of the transit terminal that passes through the multi-hop D2D terminal, so that the control node can enable the source terminal to send the D2D data to the destination terminal by using the multi-hop D2D terminal that can participate in the routing.
  • the channel quality of the first D2D path satisfies the preset quality condition, the channel quality of the source terminal and the relay terminal transmitting the D2D data to the destination terminal through the first D2D path is good, so that the source terminal can transmit the D2D data to the destination terminal. Communication quality.
  • An embodiment of the present invention provides a method for sending data, which can be implemented by using a source terminal. Referring to FIG. 2, the method includes:
  • Step 201 The source terminal sends a transmission request to the control node, where the transmission request carries the terminal identifier of the source terminal and the terminal identifier of the destination terminal that communicates with the source terminal.
  • the source terminal is a single-hop D2D terminal, and the single-hop D2D terminal refers to a D2D terminal that cannot participate in routing. That is, a single-hop D2D terminal cannot forward D2D data of other D2D terminals as a transit terminal, and cannot directly select other transit terminals to forward their own.
  • D2D data when the source terminal needs to send D2D data to the destination terminal each time, the source terminal sends a transmission request to the control node, and the transmission request can be used to trigger the control node to determine the D2D link directly connected to the source terminal and the destination terminal.
  • the first D2D path includes a source terminal, at least one transit terminal, and a destination terminal, and the transit terminal is the first D2D Any multi-hop D2D terminal in the path other than the source terminal and the destination terminal.
  • the source terminal may be any terminal having a function of transmitting data.
  • the source terminal may be a mobile phone or a tablet computer having a function of transmitting data
  • the destination terminal may be any terminal having a function of receiving data.
  • the destination terminal may have A mobile phone or a tablet computer that receives data functions; and the destination terminal may be a single-hop D2D terminal or a multi-hop D2D terminal; a multi-hop D2D terminal refers to a D2D terminal capable of participating in routing.
  • control node acquires first path information of the first D2D path, and sends the first path information to the source terminal.
  • Step 202 The source terminal receives the first path information of the first D2D path sent by the control node.
  • the first path information includes a terminal identifier of a next hop transit terminal of the source terminal in the first D2D path.
  • Step 203 The source terminal sends D2D data to the next hop transit terminal according to the terminal identifier of the next hop transit terminal included in the first path information.
  • the next hop relay terminal receives the D2D data sent by the source terminal, and acquires the terminal identifier of the next hop terminal of the next hop transit terminal in the first D2D channel, according to the next hop terminal of the next hop transit terminal
  • the terminal identifier sends the D2D data from the source terminal to the next hop terminal of the next hop transit terminal to forward the D2D data to the destination terminal.
  • the source terminal when the source terminal needs to send the D2D data to the destination terminal, the source terminal sends a transmission request to the control node to trigger the control node to determine that the channel quality of the D2D link directly connected to the source terminal and the destination terminal is not satisfied.
  • the quality condition is preset, the first D2D path between the source terminal and the destination terminal and passing through the transit terminal is determined, and the source terminal sends the D2D data to the destination terminal through the first D2D path, so that the source terminal can participate in the routing by means of the surrounding.
  • the multi-hop D2D terminal sends the D2D data to the destination terminal, and the channel quality of the first D2D path satisfies the preset quality condition. Therefore, the channel quality of the source terminal transmitting the D2D data to the destination terminal through the first D2D path is better, thereby improving the source.
  • the terminal transmits the communication quality of the D2D data to the destination terminal.
  • the embodiment of the present invention provides a method for transmitting data, which can be implemented by using a transit terminal.
  • the method includes:
  • Step 301 The relay terminal receives the second path information of the first D2D path sent by the control node, where the first D2D path is a D2D path whose channel quality meets the preset quality condition between the source terminal and the destination terminal that communicates with the source terminal, and the relay The terminal is any multi-hop D2D terminal in the first D2D path except the source terminal and the destination terminal;
  • the control node receives the transmission request sent by the source terminal, and determines that the channel quality of the D2D link directly connected to the source terminal and the destination terminal does not meet the preset quality condition. At this time, the control node determines the terminal identifier of the source terminal and the terminal identifier of the destination terminal. Determining that the channel quality between the source terminal and the destination terminal meets a preset quality condition, the first D2D path includes at least one relay terminal.
  • the control node acquires second path information of each of the at least one relay terminal, and sends second path information to each relay terminal according to the terminal identifier of each relay terminal; each relay terminal receives the second sent by the control node. Path information.
  • the second path information of each transit terminal includes the terminal identifier of the last hop terminal of the transit terminal and the terminal identifier of the next hop terminal in the first D2D path; or the second path information of each transit terminal includes the destination The terminal identifier of the terminal and the terminal identifier of the next hop terminal of the transit terminal in the first D2D path.
  • Step 302 The transit terminal receives D2D data from the source terminal, and the source terminal is a single-hop D2D terminal.
  • the step may be: the transit terminal receives the D2D data sent by the source terminal.
  • the step may be: the transit terminal receives the D2D data from the source terminal sent by the last hop terminal of the transit terminal in the first D2D path.
  • Step 303 The relay terminal sends the D2D data from the source terminal to the destination terminal that communicates with the source terminal through the first D2D path according to the second path information.
  • the step may be:
  • the transit terminal receives the D2D data from the source terminal sent by the last hop terminal, and sends the D2D data from the source terminal to the next hop terminal according to the terminal identifier of the next hop terminal.
  • the step may be:
  • the transit terminal acquires the destination terminal carried by the D2D data according to the D2D data from the source terminal.
  • the terminal identifier identifies the terminal identifier of the next hop terminal from the second path information according to the terminal identifier of the destination terminal and the second path information, and sends the terminal identifier to the next hop terminal according to the terminal identifier of the next hop terminal D2D data from the source terminal.
  • the transit terminal sends the D2D data from the source terminal to the destination terminal; if the next hop terminal is not the destination terminal, the transit terminal sends the next hop terminal to the next hop terminal.
  • the D2D data from the source terminal the next hop terminal transmits D2D data from the source terminal to the next hop terminal of the next hop terminal until the D2D data is transmitted to the destination terminal.
  • the relay terminal receives the second path information of the first D2D path sent by the control node, where the first D2D path is a D2D path whose channel quality meets a preset quality condition, so that the transit terminal can help the source terminal to the destination terminal. Transmitting the D2D data from the source terminal, because the channel quality of the first D2D path is good, the D2D data from the source terminal is transmitted to the destination terminal through the D2D path, thereby improving the communication quality of the D2D data sent by the source terminal to the destination terminal. .
  • the embodiment of the invention provides a method for transmitting D2D data, which can be implemented by a destination terminal.
  • the method includes:
  • Step 401 When the control node determines that the channel quality of the device-to-device D2D link directly connected between the source terminal and the destination terminal that communicates with the source terminal does not meet the preset quality condition, and determines the channel between the source terminal and the destination terminal.
  • the destination terminal receives the D2D data from the source terminal sent by the relay terminal, the source terminal is a single-hop D2D terminal, the transit terminal is a multi-hop D2D terminal, and the transit terminal is at the first The last hop terminal of the destination terminal in the D2D path.
  • the destination terminal receives the D2D data sent by the transit terminal, and the transit terminal is the last hop terminal of the destination terminal in the first D2D path, and the channel quality of the first D2D path satisfies the preset quality condition, therefore, the purpose Receiving the D2D data from the source terminal sent by the relay terminal, the terminal can improve the communication quality of receiving the D2D data from the source terminal.
  • An embodiment of the present invention provides a method for transmitting data. Referring to FIG. 5-1 and FIG. 5-2, the method includes:
  • Step 501 The source terminal sends a transmission request to the control node, where the transmission request carries the terminal identifier of the source terminal and the terminal identifier of the destination terminal that communicates with the source terminal.
  • the source terminal is a single-hop D2D terminal, and the single-hop D2D terminal refers to a D2D terminal that cannot participate in routing.
  • the terminal that is, the single-hop D2D terminal cannot forward the D2D data of other D2D terminals as the transit terminal, and cannot directly select other transit terminals to forward their own D2D data.
  • the source terminal controls to the source terminal.
  • the node sends a transmission request, where the transmission request carries the terminal identifier of the source terminal and the terminal identifier of the destination terminal; the data may be voice, picture or video.
  • the destination terminal may be a single-hop D2D terminal or a multi-hop D2D terminal; the multi-hop D2D terminal refers to a D2D terminal capable of participating in routing.
  • the transmission request may include at least the terminal identifier of the source terminal and the terminal identifier of the destination terminal, and the source terminal may be any terminal that has the function of sending data.
  • the source terminal may be a mobile phone or a tablet computer having a function of sending data;
  • the destination terminal can be any terminal having the function of receiving data.
  • the destination terminal can be a mobile phone or a tablet computer having the function of receiving data.
  • the terminal identifier of the source terminal may be a Globally Unique Identifier (GUID) of the source terminal or a phone number of a Subscriber Identity Module (SIM) card in the source terminal;
  • the terminal identifier of the destination terminal may be An expression code associated with the destination terminal, for example, the terminal identifier of the destination terminal may be an expression code associated with the GUID of the destination terminal or the telephone number of the SIM card in the destination terminal.
  • GUID Globally Unique Identifier
  • SIM Subscriber Identity Module
  • Step 502 The control node receives the transmission request sent by the source terminal, and determines that the channel quality of the D2D link directly connected to the source terminal and the destination terminal does not meet the preset quality condition according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal.
  • step 102 This step is the same as step 102 above, and details are not described herein again.
  • Step 503 The control node determines, according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal, the first D2D path that the channel quality between the source terminal and the destination terminal meets the preset quality condition.
  • This step is the same as 103, and will not be described here.
  • Step 504 The control node sends the first path information of the first D2D path to the source terminal.
  • the control node acquires the terminal identifier of the next hop transit terminal of the source terminal in the first D2D path according to the first D2D path, and forms the terminal identifier of the next hop transit terminal into the first path information, according to the terminal identifier of the source terminal, Sending the first path information to the source terminal.
  • the source terminal is the first terminal
  • the destination terminal is the second terminal
  • the transit terminal is the third terminal
  • the first D2D path is the first terminal - the third terminal - the second terminal
  • the first path information includes the first terminal
  • the terminal identifier of the next hop terminal the terminal identifier of the third terminal, as shown in Table 1:
  • Terminal identifier of the terminal receiving the first path information Terminal ID of the next hop terminal
  • Terminal identifier of the first terminal Terminal identifier of the third terminal
  • Step 505 The source terminal receives the first path information of the first D2D path sent by the control node.
  • control node acquires the number of the relay terminals included in the first D2D path; if the first D2D path includes only one relay terminal, step 506a is performed; if the first D2D path includes multiple transit terminals, the steps are performed. 506b.
  • Step 506a The control node sends the second path information of the first D2D path to the relay terminal.
  • the second path information includes a terminal identifier of the last hop terminal of the transit terminal and a terminal identifier of the next hop terminal in the first D2D path; or the second path information includes the terminal identifier of the destination terminal and is in the first D2D path.
  • the terminal identifier of the transited next hop terminal includes a terminal identifier of the last hop terminal of the transit terminal and a terminal identifier of the next hop terminal in the first D2D path; or the second path information includes the terminal identifier of the destination terminal and is in the first D2D path.
  • the control node If the second path information includes the terminal identifier of the last hop terminal of the transit terminal and the terminal identifier of the next hop terminal in the first D2D path, the control node combines the terminal identifier of the source terminal and the terminal identifier of the destination terminal into a second The path information is sent to the transit terminal according to the terminal identifier of the transit terminal, and step 507a is performed.
  • the source terminal is the first terminal
  • the destination terminal is the second terminal
  • the transit terminal is the third terminal
  • the first D2D path is the first terminal-the third terminal-the second terminal
  • the second path information includes the third terminal.
  • the terminal identifier of the last hop terminal the terminal identifier of the first terminal
  • the terminal identifier of the next hop terminal of the third terminal the terminal identifier of the second terminal, as shown in Table 2;
  • the control node forms the terminal identifier of the destination terminal and the terminal identifier of the destination terminal into the second path information, Sending the second path information to the transit terminal according to the terminal identifier of the transit terminal, and executing step 507a.
  • the source terminal is the first terminal
  • the destination terminal is the second terminal
  • the transit terminal is the third terminal
  • the first D2D path is the first terminal-the third terminal-the second terminal
  • the second path information includes the terminal of the destination terminal.
  • Identification a terminal identifier of the second terminal, and a terminal identifier of the next hop terminal of the third terminal in the first D2D path: a terminal identifier of the second terminal, as shown in Table 3;
  • Step 506b The control node sends the second path information of the first D2D path to each of the plurality of transit terminals.
  • the control node for each transit terminal, the control node according to the terminal identifier of the transit terminal Obtaining, in the first D2D path, the terminal identifier of the last hop terminal of the transit terminal and the terminal identifier of the next hop terminal, and forming the terminal identifier of the last hop terminal and the terminal identifier of the next hop terminal into the second path information, Sending the second path information to the transit terminal according to the terminal identifier of the transit terminal, and executing step 507b.
  • the source terminal is the first terminal
  • the destination terminal is the second terminal
  • the transit terminal is the third terminal and the fourth terminal
  • the first D2D path is the first terminal - the third terminal - the fourth terminal - the second terminal
  • the second path information of the third terminal includes the terminal identifier of the last hop terminal of the third terminal in the first D2D path: the terminal identifier of the first terminal, and the terminal identifier of the next hop terminal: the terminal identifier of the fourth terminal, such as
  • the second path information of the fourth terminal includes the terminal identifier of the last hop terminal of the fourth terminal in the first D2D path: the terminal identifier of the third terminal, and the terminal identifier of the next hop terminal: second Terminal identification of the terminal, as shown in Table 5;
  • the control node selects from the first D2D path according to the identifier of the relay terminal.
  • the source terminal is the first terminal
  • the destination terminal is the second terminal
  • the transit terminal is the third terminal and the fourth terminal
  • the first D2D path is the first terminal - the third terminal - the fourth terminal - the second terminal
  • the second path information of the third terminal includes the terminal identifier of the destination terminal: the terminal identifier of the second terminal, and the terminal identifier of the next hop terminal of the third terminal in the first D2D path: the terminal identifier of the fourth terminal, as shown in Table 6.
  • the second path information of the fourth terminal includes the terminal identifier of the destination terminal: the terminal identifier of the second terminal, and the terminal identifier of the next hop terminal of the second terminal in the first D2D path: the terminal identifier of the second terminal , as shown in Table 7;
  • Step 507a The relay terminal receives the second path information of the first D2D path sent by the control node.
  • the third terminal receives the second path information that is sent by the control node, where the second path information includes the terminal identifier of the first terminal and the terminal identifier of the second terminal; or the second path information includes the terminal identifier of the second terminal and the second Terminal ID of the terminal.
  • Step 507b Each relay terminal receives second path information of the first D2D path sent by the control node.
  • the third terminal receives the second path information sent by the control node, where the second path information includes the terminal identifier of the first terminal and the terminal identifier of the fourth terminal, or the second path information includes the terminal identifier of the second terminal and the fourth terminal. Terminal identification.
  • the fourth terminal receives the second path information that is sent by the control node, where the second path information includes the terminal identifier of the third terminal and the terminal identifier of the second terminal; or the second path information includes the terminal identifier of the second terminal and the second terminal Terminal identification.
  • Step 508 The source terminal sends D2D data to the next hop transit terminal according to the terminal identifier of the next hop transit terminal of the source terminal in the first D2D path.
  • the source terminal establishes a connection with the next hop transit terminal according to the terminal identifier of the next hop transit terminal, and sends the D2D data to the next hop transit terminal through the connection.
  • the step may be:
  • the first terminal establishes a connection with the third terminal according to the terminal identifier of the third terminal, and sends the D2D data to the third terminal through the connection.
  • Step 509 The relay terminal receives the D2D data from the source terminal, and sends the D2D data from the source terminal to the destination terminal according to the second path information.
  • the relay terminal receives the D2D data sent by the source terminal; if the last hop terminal of the transit terminal is not the source terminal in the first D2D path The transit terminal receives the D2D data from the source terminal sent by the last hop terminal.
  • the second path information includes the terminal identifier of the last hop terminal of the transit terminal and the terminal identifier of the next hop terminal in the first D2D path
  • the second path information is used by the transit terminal to acquire the terminal of the last hop terminal. Identifying the terminal identifier of the next hop terminal, and when receiving the D2D data from the source terminal sent by the last hop terminal, forwarding the source terminal to the next hop terminal according to the terminal identifier of the next hop terminal D2D data.
  • the second path information includes the terminal identifier of the destination terminal and the terminal identifier of the next hop terminal of the transit terminal in the first D2D path
  • the second path information is used by the transit terminal to acquire the terminal identifier of the destination terminal and the next a terminal identifier of the one-hop terminal, and, when receiving the D2D data, acquiring the terminal identifier of the next hop terminal from the second path information according to the terminal identifier of the destination terminal carried in the D2D data, according to the next hop terminal
  • the terminal identifier forwards the D2D from the source terminal to the next hop terminal data.
  • the step may be: the transit terminal receives the D2D data from the source terminal, and sends the D2D data from the source terminal to the destination terminal.
  • the third terminal receives the D2D data sent by the first terminal, establishes a connection with the second terminal according to the terminal identifier of the second terminal, and forwards the D2D data to the second terminal through the connection.
  • the step may be: the transit terminal receives the D2D data from the source terminal, and sends the D2D data from the source terminal to the next hop terminal, where Receiving, by the next hop terminal, the D2D data from the hospital sent by the relay terminal, and acquiring the terminal identifier of the next hop terminal of the next hop terminal according to the second path information of the next hop terminal, according to the next hop The terminal identifier of the next hop terminal of the terminal forwards the D2D data to the next hop terminal of the next hop terminal until the D2D data is forwarded to the destination terminal.
  • the third terminal receives the D2D data sent by the first terminal, establishes a connection with the fourth terminal according to the terminal identifier of the fourth terminal, and forwards the D2D data to the fourth terminal through the connection; the fourth terminal receives the connection through the connection.
  • the source terminal when the channel quality of the D2D link directly connected between the source terminal and the destination terminal is poor, the source terminal can assist the sending of the D2D data to the destination terminal by using the transit terminal having the multi-hop capability.
  • the D2D path through the transit terminal and having good channel quality transmits D2D data to the destination terminal through the D2D path, thereby improving the communication quality of the D2D data transmitted by the source terminal to the destination terminal.
  • control node for performing the steps performed by the control node in the above embodiment.
  • the control node includes:
  • the first receiving module 601 is configured to receive a transmission request sent by the source terminal, where the transmission request carries the terminal identifier of the source terminal and the terminal identifier of the destination terminal that communicates with the source terminal, where the source terminal is a single-hop D2D terminal;
  • the single-hop D2D terminal refers to the D2D terminal that cannot participate in the routing. Therefore, the source terminal cannot participate in the routing.
  • the source terminal needs to send the D2D data to the destination terminal, the source terminal sends a transmission request to the first receiving module 601.
  • the first receiving module 601 receives a transmission request sent by the source terminal, where the transmission request carries the terminal identifier of the source terminal and the terminal identifier of the destination terminal.
  • the destination terminal may be a single-hop D2D terminal or a multi-hop D2D terminal; the multi-hop D2D terminal refers to a D2D terminal capable of participating in routing.
  • the first determining module 602 is configured to determine, according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal, that the channel quality of the D2D link directly connected to the source terminal and the destination terminal does not meet the preset quality condition;
  • the second determining module 603 is configured to determine, according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal, that the channel quality between the source terminal and the destination terminal meets a preset quality condition, the first D2D path includes at least a transit terminal, the relay terminal is any multi-hop D2D terminal except the source terminal and the destination terminal in the first D2D path;
  • the second determining module 603 may select one channel quality from the at least one second D2D path to be directly connected to the destination terminal.
  • the second D2D path of the channel quality of the D2D link and higher than the channel quality of the cellular link uses the selected second D2D path as the first D2D path.
  • the first D2D path includes a source terminal, a destination terminal, and at least one relay terminal, and the first D2D path is used by the source terminal to send D2D data to the destination terminal through the first D2D path.
  • the first sending module 604 is configured to send path information of the first D2D path to the terminal other than the destination terminal in the first D2D path, where the path information is used by the terminal to send the D2D data to the destination terminal by using the first D2D path. .
  • the first sending module 604 is further configured to select a cellular link, and the source terminal passes through the cellular chain.
  • the road sends cellular data to the destination terminal.
  • the path information includes first path information, where the first path information includes a terminal identifier of a next hop transit terminal of the source terminal in the first D2D path;
  • the first sending module 604 is specifically configured to send the first path information of the first D2D path to the source terminal, where the first path information is used by the source terminal to send the D2D data to the next hop relay terminal.
  • the path information includes the second path information, where the second path information includes a terminal identifier of the last hop terminal of the first relay terminal and a terminal identifier of the next hop terminal in the first D2D path, or the second path information includes a terminal identifier of the destination terminal and a terminal identifier of the next hop terminal of the first transit terminal in the first D2D path, where the first transit terminal is any one of the first D2D channels;
  • the first sending module 604 is specifically configured to send the second path information of the first D2D path to the first transit terminal, where the second path information is used by the first transit terminal after receiving the D2D data sent by the last hop terminal.
  • the D2D data is forwarded to the next hop terminal, or the second path information is used by the first relay terminal to forward the D2D data to the next hop terminal according to the destination terminal identifier carried by the D2D data when receiving the D2D data from the source terminal.
  • the first determining module 602 is specifically configured to determine, according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal, a D2D link, a cellular link, and at least one second D2D path directly connected to the source terminal, and obtain the source terminal to
  • the channel quality of the D2D link directly connected to the destination terminal, the channel quality of the cellular link, and the channel quality of each second D2D path in the at least one second D2D path constitute a channel quality set, which is directly connected to the destination terminal from the source terminal.
  • the channel quality of the D2D link is not the maximum channel quality in the channel quality set. It is determined that the channel quality of the D2D link directly connected from the source terminal to the destination terminal does not meet the preset quality condition.
  • the second determining module 603 is specifically configured to select, from the at least one second D2D path, a channel quality that is higher than a channel quality of a D2D link directly connected between the source terminal and the destination terminal, and higher than a channel quality of the cellular link. A second D2D path for using the selected second D2D path as the first D2D path.
  • the control node receives the transmission request sent by the source terminal, and determines, according to the transmission request, that the channel quality of the D2D link directly connected to the source terminal does not meet the preset quality condition, according to the terminal identifier of the source terminal.
  • the path information of the first D2D path is sent to the source terminal and the transit terminal, and the source terminal and the destination terminal send the D2D data to the destination terminal through the first D2D path according to the path information.
  • the channel quality of the first D2D path satisfies the preset quality condition, the channel quality of the source terminal and the relay terminal transmitting the D2D data to the destination terminal through the first D2D path is good, so that the source terminal can transmit the D2D data to the destination terminal. Communication quality.
  • the embodiment of the present invention provides a terminal, which is used to perform the steps performed by the source terminal in the foregoing embodiment.
  • the terminal includes:
  • the second sending module 701 is configured to send a transmission request to the control node, where the transmission request carries the terminal identifier of the source terminal and the terminal identifier of the destination terminal that communicates with the source terminal, where the source terminal is a single-hop D2D terminal, and is used to trigger the control node to determine When the channel quality of the D2D link directly connected to the source terminal and the destination terminal does not meet the preset quality condition, it is determined that the channel quality between the source terminal and the destination terminal meets the preset quality condition.
  • a first D2D path the first D2D path includes at least one relay terminal, and the relay terminal is any multi-hop D2D terminal other than the source terminal and the destination terminal in the first D2D path;
  • the source terminal is a single-hop D2D terminal, and the single-hop D2D terminal refers to a D2D terminal that cannot participate in routing. Therefore, the source terminal cannot participate in routing.
  • the sending module 701 sends a transmission request to the control node, where the transmission request is used to trigger the control node to determine between the source terminal and the destination terminal when determining that the channel quality of the D2D link directly connected to the source terminal and the destination terminal does not meet the preset quality condition.
  • the first D2D path includes a source terminal, a destination terminal, and at least one transit terminal, and the transit terminal is any one of the first D2D path except the source terminal and the destination terminal. Jump the D2D terminal.
  • control node acquires first path information of the first D2D path, and sends the first path information to the source terminal.
  • the second receiving module 702 is configured to receive first path information of the first D2D path that is sent by the control node, where the first path information includes a terminal identifier of the next hop transit terminal of the source terminal in the first D2D path;
  • the third sending module 703 is configured to send D2D data to the next hop transit terminal according to the terminal identifier of the next hop transit terminal, and is used to trigger the next hop transit terminal to forward the D2D data to the destination terminal.
  • next hop relay terminal receives the D2D data sent by the source terminal, and acquires the terminal identifier of the next hop terminal of the next hop transit terminal in the first D2D channel, according to the next hop terminal And transmitting, by the terminal identifier of the hop terminal, D2D data from the source terminal to the next hop terminal of the next hop transit terminal, to forward the D2D data to the destination terminal.
  • the source terminal when the source terminal needs to send the D2D data to the destination terminal, the source terminal sends a transmission request to the control node to trigger the control node to determine that the channel quality of the D2D link directly connected to the source terminal and the destination terminal is not satisfied.
  • the quality condition is preset, the first D2D path between the source terminal and the destination terminal and passing through the transit terminal is determined, and the source terminal sends the D2D data to the destination terminal through the first D2D path, so that the source terminal can participate in the routing by means of the surrounding.
  • the multi-hop D2D terminal sends the D2D data to the destination terminal, and the channel quality of the first D2D path satisfies the preset quality condition. Therefore, the channel quality of the source terminal transmitting the D2D data to the destination terminal through the first D2D path is better, thereby improving the source.
  • the terminal transmits the communication quality of the D2D data to the destination terminal.
  • the embodiment of the present invention provides a terminal, which is used to perform the steps performed by the relay terminal in the foregoing embodiment.
  • the terminal includes:
  • the third receiving module 801 is configured to receive second path information of the first D2D path sent by the control node, where the first D2D path is a D2D that meets a preset quality condition between a source terminal and a destination terminal that communicates with the source terminal.
  • the path, the transit terminal is any multi-hop D2D terminal in the first D2D path except the source terminal and the destination terminal;
  • the control node receives the transmission request sent by the source terminal, and determines that the channel quality of the D2D link directly connected to the source terminal and the destination terminal does not meet the preset quality condition. At this time, the control node determines the terminal identifier of the source terminal and the terminal identifier of the destination terminal. Determining that the channel quality between the source terminal and the destination terminal meets a preset quality condition, the first D2D path includes at least one relay terminal.
  • the control node acquires the second path information of each of the at least one relay terminal, and sends the second path information to the third receiving module 801 included in each relay terminal according to the terminal identifier of each relay terminal; each transit terminal The included third receiving module 801 receives the second path information sent by the control node.
  • the second path information of each transit terminal includes the terminal identifier of the last hop terminal of the transit terminal and the terminal identifier of the next hop terminal in the first D2D path; or the second path information of each transit terminal includes the destination The terminal identifier of the terminal and the terminal identifier of the next hop terminal of the transit terminal in the first D2D path.
  • the fourth receiving module 802 is configured to receive D2D data from the source terminal, where the source terminal is a single-hop D2D terminal;
  • the fourth sending module 803 is configured to send D2D data from the source terminal to the destination terminal that communicates with the source terminal through the first D2D path according to the second path information.
  • the fourth receiving module 802 is specifically configured to: if the last hop terminal of the transit terminal is the source terminal in the first D2D path, receive the D2D data sent by the source terminal; or
  • the fourth receiving module 802 is specifically configured to receive the data from the source terminal D2D sent by the last hop terminal if the last hop terminal of the transit terminal is the transit terminal in the first D2D path.
  • the second path information includes a terminal identifier of the last hop terminal of the transit terminal and a terminal identifier of the next hop terminal in the first D2D path;
  • the fourth sending module 803 is specifically configured to forward the D2D data to the next hop terminal according to the terminal identifier of the next hop terminal.
  • the second path information includes a terminal identifier of the destination terminal and a terminal identifier of the next hop terminal of the transit terminal in the first D2D path;
  • the fourth sending module 803 is specifically configured to identify the terminal identifier of the next hop terminal according to the terminal identifier and the second path information of the destination terminal carried by the D2D data, and forward the D2D to the next hop terminal according to the terminal identifier of the next hop terminal. data.
  • the relay terminal receives the second path information of the first D2D path sent by the control node, where the first D2D path is a D2D path whose channel quality meets a preset quality condition, so that the transit terminal can help the source terminal to the destination terminal. Transmitting the D2D data from the source terminal, because the channel quality of the first D2D path is good, the D2D data from the source terminal is transmitted to the destination terminal through the D2D path, thereby improving the communication quality of the D2D data sent by the source terminal to the destination terminal. .
  • the embodiment of the present invention provides a terminal, which is used to perform the steps performed by the target terminal in the foregoing embodiment.
  • the terminal includes:
  • the fifth receiving module 901 is configured to: when the control node determines that the channel quality of the device-to-device D2D link directly connected between the source terminal and the destination terminal that communicates with the source terminal does not meet the preset quality condition, and determines the source terminal to the destination When the channel quality between the terminals meets the first D2D path of the preset quality condition, the D2D data from the source terminal sent by the relay terminal is received, the source terminal is a single-hop D2D terminal, the transit terminal is a multi-hop D2D terminal, and the transit terminal is The last hop terminal of the destination terminal in the first D2D path.
  • the destination terminal receives the D2D data sent by the transit terminal, and the transit terminal is the last hop terminal of the destination terminal in the first D2D path, and the channel quality of the first D2D path satisfies the preset quality condition, therefore, the purpose Receiving the D2D data from the source terminal sent by the relay terminal, the terminal can improve the communication quality of receiving the D2D data from the source terminal.
  • the embodiment of the present invention provides a control node for performing the steps performed by the control node in the above embodiment.
  • the control node includes: a first receiver 1001, a first processor 1002, and a first Transmitter 1003;
  • the first receiver 1001 is configured to receive a transmission request sent by the source terminal, where the transmission request carries a terminal identifier of the source terminal and a terminal identifier of the destination terminal that communicates with the source terminal, where the source terminal is a single-hop D2D terminal;
  • the first processor 1002 is configured to determine, according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal, that the channel quality of the D2D link directly connected to the source terminal and the destination terminal does not meet the preset quality condition;
  • the first processor 1002 is further configured to determine, according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal, a first D2D path that meets a preset quality condition by using a channel quality between the source terminal and the destination terminal, where
  • the D2D path includes at least one relay terminal, and the transit terminal is any multi-hop D2D terminal except the source terminal and the destination terminal in the first D2D path;
  • a first transmitter 1003 configured to send path information of the first D2D path to a terminal other than the destination terminal in the first D2D path, where the path information is used by the terminal to pass the first D2D path Sending D2D data to the destination terminal.
  • the path information includes first path information, where the first path information includes a terminal identifier of a next hop transit terminal of the source terminal in the first D2D path;
  • the first transmitter 1003 is further configured to send the first path information of the first D2D path to the source terminal, where the first path information is used by the source terminal to send the D2D data to the next hop relay terminal.
  • the path information includes the second path information, where the second path information includes a terminal identifier of the last hop terminal of the first relay terminal and a terminal identifier of the next hop terminal in the first D2D path, or the second path information includes a terminal identifier of the destination terminal and a terminal identifier of the next hop terminal of the first transit terminal in the first D2D path, where the first transit terminal is any one of the first D2D channels;
  • the first transmitter 1003 is further configured to send the second path information of the first D2D path to the first relay terminal, where the second path information is used by the first relay terminal to receive the D2D data sent by the last hop terminal and then go to the next hop.
  • the terminal forwards the D2D data, or the second path information is used by the first transit terminal to forward the D2D data to the next hop terminal according to the destination terminal identifier carried by the D2D data when receiving the D2D data from the source terminal.
  • the first processor 1002 is further configured to determine, according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal, a D2D link, a cellular link, and at least one second D2D path directly connected by the source terminal to the destination terminal;
  • the channel quality of the D2D link directly connected to the destination terminal, the channel quality of the cellular link, and the channel quality of each second D2D path in the at least one second D2D path constitute a channel quality set, which is directly connected to the destination terminal from the source terminal.
  • the channel quality is not the maximum channel quality in the channel quality set, and the channel quality of the D2D link directly connected from the source terminal to the destination terminal is determined not to satisfy the preset quality condition.
  • the first processor 1002 is further configured to select, from the at least one second D2D path, a channel quality that is higher than a channel quality of a D2D link directly connected between the source terminal and the destination terminal and higher than a channel quality of the cellular link.
  • the second D2D path uses the selected second D2D path as the first D2D path.
  • the control node receives the transmission request sent by the source terminal, and determines, according to the transmission request, that the channel quality of the D2D link directly connected to the source terminal and the destination terminal does not meet the preset quality condition. Determining, according to the terminal identifier of the source terminal and the terminal identifier of the destination terminal, a first D2D path of the transit terminal that passes through the multi-hop D2D terminal, so that the control node can enable the source terminal to use the multi-hop D2D terminal that can participate in routing selection The destination terminal transmits the D2D data.
  • the control node sends the path information of the first D2D path to the source terminal and the transit terminal, and the source terminal and the destination terminal send the D2D data to the destination terminal through the first D2D path according to the path information. Since the channel quality of the first D2D path satisfies the preset quality condition, the channel quality of the source terminal and the relay terminal transmitting the D2D data to the destination terminal through the first D2D path is good, so that the source terminal can transmit the D2D data to the destination terminal. Communication quality.
  • the embodiment of the present invention provides a terminal for performing the steps performed by the source terminal in the above embodiment.
  • the terminal includes: a second transmitter 1101 and a second receiver 1102;
  • the second transmitter 1101 is configured to send a transmission request to the control node, where the transmission request carries the terminal identifier of the source terminal and the terminal identifier of the destination terminal that communicates with the source terminal, where the source terminal is a single-hop D2D terminal, and is used to trigger the control node to determine
  • the first D2D path that the channel quality between the source terminal and the destination terminal meets the preset quality condition is determined, and the first D2D path includes at least a transit terminal
  • the relay terminal is any multi-hop D2D terminal except the source terminal and the destination terminal in the first D2D path;
  • a second receiver 1102 configured to receive first path information of a first D2D path sent by a control node, where the first path information includes a terminal identifier of a next hop transit terminal of the source terminal in the first D2D path;
  • the second transmitter 1101 is further configured to send D2D data to the next hop relay terminal according to the terminal identifier of the next hop relay terminal, and is configured to trigger the next hop transit terminal to forward the D2D data to the destination terminal.
  • the source terminal when the source terminal needs to send the D2D data to the destination terminal, the source terminal sends a transmission request to the control node to trigger the control node to determine that the channel quality of the D2D link directly connected to the source terminal and the destination terminal is not satisfied.
  • the quality condition is preset, the first D2D path between the source terminal and the destination terminal and passing through the transit terminal is determined, and the source terminal sends the D2D data to the destination terminal through the first D2D path, so that the source terminal can participate in the routing by means of the surrounding.
  • the multi-hop D2D terminal sends the D2D data to the destination terminal, and the channel quality of the first D2D path satisfies the preset quality condition. Therefore, the channel quality of the source terminal transmitting the D2D data to the destination terminal through the first D2D path is better, thereby improving the source.
  • the terminal transmits the communication quality of the D2D data to the destination terminal.
  • the embodiment of the present invention provides a terminal for performing the steps performed by the relay terminal in the above embodiment; referring to FIG. 12, the terminal includes: a third receiver 1201 and a third transmitter 1202;
  • the third receiver 1201 is configured to receive second path information of the first D2D path sent by the control node, where the first D2D path is a D2D that meets a preset quality condition between a source terminal and a destination terminal that communicates with the source terminal.
  • the path, the transit terminal is any multi-hop D2D terminal in the first D2D path except the source terminal and the destination terminal;
  • the third receiver 1201 is further configured to receive D2D data from the source terminal, where the source terminal is a single-hop D2D terminal;
  • the third transmitter 1202 is configured to send D2D data from the source terminal to the destination terminal that communicates with the source terminal through the first D2D path according to the second path information.
  • the third receiver 1201 is further configured to: if the last hop terminal of the transit terminal is the source terminal in the first D2D path, receive the D2D data sent by the source terminal; or
  • the third receiver 1201 is further configured to: if the last hop terminal of the transit terminal is a transit terminal in the first D2D path, receive the data from the source terminal D2D sent by the last hop terminal.
  • the second path information includes a terminal identifier of the last hop terminal of the transit terminal and a terminal identifier of the next hop terminal in the first D2D path;
  • the third transmitter 1202 is further configured to forward the D2D data to the next hop terminal according to the terminal identifier of the next hop terminal.
  • the second path information includes a terminal identifier of the destination terminal and a terminal identifier of the next hop terminal of the transit terminal in the first D2D path;
  • the third transmitter 1202 is further configured to identify the terminal identifier of the next hop terminal according to the terminal identifier and the second path information of the destination terminal carried in the D2D data.
  • the third transmitter 1202 is further configured to forward the D2D data to the next hop terminal according to the terminal identifier of the next hop terminal.
  • the relay terminal receives the second path information of the first D2D path sent by the control node, where the first D2D path is a D2D path whose channel quality meets a preset quality condition, so that the transit terminal can help the source terminal to the destination terminal. Transmitting the D2D data from the source terminal, because the channel quality of the first D2D path is good, the D2D data from the source terminal is transmitted to the destination terminal through the D2D path, thereby improving the communication quality of the D2D data sent by the source terminal to the destination terminal. .
  • the embodiment of the present invention provides a terminal, which is used to perform the steps performed by the destination terminal in the foregoing embodiment.
  • the terminal includes: a fourth receiver 1301;
  • the fourth receiver 1301 is configured to: when the control node determines that the channel quality of the device-to-device D2D link directly connected between the source terminal and the destination terminal that communicates with the source terminal does not meet the preset quality condition, and determines the source terminal to the destination When the channel quality between the terminals meets the first D2D path of the preset quality condition, the D2D data from the source terminal sent by the relay terminal is received, the source terminal is a single-hop D2D terminal, the transit terminal is a multi-hop D2D terminal, and the transit terminal is The last hop terminal of the destination terminal in the first D2D path.
  • the destination terminal receives the D2D data sent by the transit terminal, and the transit terminal is the last hop terminal of the destination terminal in the first D2D path, and the channel quality of the first D2D path satisfies the preset quality condition, therefore, the purpose Receiving the D2D data from the source terminal sent by the relay terminal, the terminal can improve the communication quality of receiving the D2D data from the source terminal.
  • the apparatus for transmitting and receiving data provided by the foregoing embodiment only exemplifies the division of each functional module described above when transmitting and receiving data.
  • the foregoing functions may be assigned differently according to requirements.
  • the function module is completed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the device for transmitting and receiving data provided by the foregoing embodiment is the same as the method for transmitting and receiving data, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

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

Abstract

本发明公开了一种发送数据和接收数据的方法和装置,属于无线通信技术领域。方法包括:控制节点接收源终端发送的传输请求,根据源终端的终端标识和目的终端的终端标识,确定源终端与目的终端直接相连的D2D链路的信道质量不满足预设质量条件;并确定源终端到目的终端之间的信道质量满足预设质量条件的第一D2D通路,第一D2D通路中包括至少一个中转终端,中转终端是第一D2D通路中除源终端和目的终端之外的任一多跳D2D终端;向第一D2D通路中除目的终端之外的终端发送第一D2D通路的路径信息。控制节点包括:第一接收模块、第一确定模块、第二确定模块和第一发送模块。本发明可以提高源终端向目的终端发送D2D数据的通信质量。

Description

发送数据、接收数据的方法和装置 技术领域
本发明涉及无线通信领域,特别涉及一种发送数据、接收数据的方法和装置。
背景技术
目前,终端的数量越来越多,为了减轻基站的压力,设备到设备(Device-to-Device,D2D)通信技术应运而生;D2D通信技术是指两个终端不通过基站直接进行通信的技术。两个终端之间进行D2D通信时传输的数据可以称为D2D数据,D2D数据可以为语音、图片或者视频等。
例如,以一个具体实例来描述两个终端之间传输D2D数据的过程,为了便于描述,将两个终端分别称为第一终端和第二终端;当第一终端向第二终端发送D2D数据时,第一终端建立与第二终端直接相连的D2D链路,通过源终端到目的终端直接相连的D2D链路向第二D2D终端发送D2D数据。
在实现本发明的过程中,发明人发现现有技术至少存在以下问题:
当第一终端与第二终端直接相连的D2D链路的信道质量较差时,第一终端向第二终端发送D2D数据的通信质量较差。
发明内容
为了解决现有技术的问题,本发明提供了一种发送数据、接收数据的方法、装置。技术方案如下:
第一方面,本发明提供了一种发送数据的方法,所述方法包括:
控制节点接收源终端发送的传输请求,所述传输请求携带所述源终端的终端标识和与所述源终端通信的目的终端的终端标识,所述源终端是单跳D2D终端;
所述控制节点根据所述源终端的终端标识和所述目的终端的终端标识,确定所述源终端与所述目的终端直接相连的D2D链路的信道质量不满足预设质量 条件;
所述控制节点根据所述源终端的终端标识和所述目的终端的终端标识,确定所述源终端到所述目的终端之间的信道质量满足预设质量条件的第一D2D通路,所述第一D2D通路中包括至少一个中转终端,所述中转终端是所述第一D2D通路中除所述源终端和所述目的终端之外的任一多跳D2D终端;
所述控制节点向所述第一D2D通路中除所述目的终端之外的终端发送所述第一D2D通路的路径信息,所述路径信息用于所述终端通过所述第一D2D通路向所述目的终端发送D2D数据。
结合第一方面,在第一方面的第一种可能的实现方式中,所述路径信息包括第一路径信息,所述第一路径信息包括在所述第一D2D通路中所述源终端的下一跳中转终端的终端标识;
所述控制节点向所述第一D2D通路中除所述目的终端之外的终端发送所述第一D2D通路的路径信息,包括:
所述控制节点向所述源终端发送所述第一D2D通路的第一路径信息,所述第一路径信息用于所述源终端向所述下一跳中转终端发送所述D2D数据。
结合第一方面,在第一方面的第二种可能的实现方式中,所述路径信息包括第二路径信息,所述第二路径信息包括在所述第一D2D通路中第一中转终端的上一跳终端的终端标识和下一跳终端的终端标识,或者,所述第二路径信息包括所述目的终端的终端标识和在所述第一D2D通路中第一中转终端的下一跳终端的终端标识,所述第一中转终端是所述第一D2D通路中的任一中转终端;
所述控制节点向所述第一D2D通路中除所述目的终端之外的终端发送所述第一D2D通路的路径信息,包括:
所述控制节点向所述第一中转终端发送所述第一D2D通路的第二路径信息,所述第二路径信息用于所述第一中转终端在接收所述上一跳终端发送的D2D数据后向所述下一跳终端转发所述D2D数据,或者,所述第二路径信息用于所述第一中转终端在接收来自所述源终端的D2D数据时,根据所述D2D数据携带的所述目的终端终端标识,向所述下一跳终端转发所述D2D数据。
结合第一方面,在第一方面的第三种可能的实现方式中,所述控制节点根据所述源终端的终端标识和所述目的终端的终端标识,确定所述源终端与所述目的终端直接相连的D2D链路的信道质量不满足预设质量条件,包括:
所述控制节点根据所述源终端的终端标识和所述目的终端的终端标识,确定所述源终端到所述目的终端直接相连的D2D链路、蜂窝链路和至少一条第二D2D通路;
所述控制节点获取所述源终端到所述目的终端直接相连的D2D链路的信道质量、所述蜂窝链路的信道质量和所述至少一条第二D2D通路中的每条第二D2D通路的信道质量组成信道质量集合;
如果所述源终端到所述目的终端直接相连的D2D链路的信道质量不是所述信道质量集合中的最大信道质量,所述控制节点确定所述源终端到所述目的终端直接相连的D2D链路的信道质量不满足预设质量条件。
结合第一方面的第三种可能的实现方式,在第一方面的第四种可能的实现方式中,所述控制节点根据所述源终端的终端标识和所述目的终端的终端标识,确定所述源终端到所述目的终端之间的信道质量满足预设质量条件的第一D2D通路,包括:
所述控制节点从所述至少一条第二D2D通路中选择一个信道质量高于所述源终端与所述目的终端之间直接相连的D2D链路的信道质量且高于所述蜂窝链路的信道质量的第二D2D通路;
将所述选择的第二D2D通路作为第一D2D通路。
第二方面,本发明提供了一种发送数据的方法,所述方法包括:
源终端向控制节点发送传输请求,所述传输请求携带所述源终端的终端标识和与所述源终端通信的目的终端的终端标识,所述源终端是单跳D2D终端,用于触发所述控制节点在确定所述源终端与所述目的终端直接相连的D2D链路的信道质量不满足预设质量条件时,确定所述源终端到所述目的终端之间的信道质量满足预设质量条件的第一D2D通路,所述第一D2D通路包括至少一个中转终端,所述中转终端是所述第一D2D通路中除所述源终端和所述目的终端之外的任一多跳D2D终端;
所述源终端接收所述控制节点发送的所述第一D2D通路的第一路径信息,所述第一路径信息包括在所述第一D2D通路中所述源终端的下一跳中转终端的终端标识;
所述源终端根据所述下一跳中转终端的终端标识,向所述下一跳中转终端 发送D2D数据,用于触发所述下一跳中转终端向所述目的终端转发所述D2D数据。
第三方面,本发明提供了一种发送数据的方法,所述方法包括:
中转终端接收控制节点发送的第一D2D通路的第二路径信息,所述第一D2D通路为源终端到与所述源终端通信的目的终端之间的信道质量满足预设质量条件的D2D通路,所述中转终端是所述第一D2D通路中除所述源终端和所述目的终端之外的任一多跳D2D终端;
所述中转终端接收来自源终端的D2D数据,所述源终端为单跳D2D终端;
所述中转终端根据所述第二路径信息,通过所述第一D2D通路向与所述源终端通信的目的终端发送所述来自源终端的D2D数据。
结合第三方面,在第三方面的第一种可能的实现方式中,所述中转终端接收来自源终端的D2D数据,包括:
如果在所述第一D2D通路中所述中转终端的上一跳终端为源终端,则所述中转终端接收所述源终端发送的D2D数据;或者,
如果在所述第一D2D通路中所述中转终端的上一跳终端为中转终端,则所述中转终端接收所述上一跳终端发送的来自源终端D2D数据。
结合第三方面,在第三方面的第二种可能的实现方式中,所述第二路径信息包括在所述第一D2D通路中所述中转终端的上一跳终端的终端标识和下一跳终端的终端标识;
所述中转终端根据所述第二路径信息,通过所述第一D2D通路向与所述源终端通信的目的终端转发所述D2D数据,包括:
所述中转终端根据所述下一跳终端的终端标识,向所述下一跳终端转发所述D2D数据。
结合第三方面,在第三方面的第三种可能的实现方式中,所述第二路径信息包括所述目的终端的终端标识和在所述第一D2D通路中所述中转终端的下一跳终端的终端标识;
所述中转终端根据所述第二路径信息,通过所述第一D2D通路向与所述源终端通信的目的终端转发所述D2D数据,包括:
所述中转终端根据所述D2D数据携带的所述目的终端的终端标识和所述第 二路径信息,识别所述下一跳终端的终端标识;
所述中转终端根据所述下一跳终端的终端标识,向所述下一跳终端转发所述D2D数据。
第四方法,本发明提供了一种接收数据的方法,该方法包括:
在控制节点确定源终端到与所述源终端通信的目的终端之间直接相连的设备到设备D2D链路的信道质量不满足预设质量条件时,并确定所述源终端到所述目的终端之间的信道质量满足预设质量条件的第一D2D通路时,所述目的终端接收中转终端发送的来自所述源终端的D2D数据,所述源终端是单跳D2D终端,所述中转终端是多跳D2D终端,且所述中转终端是在所述第一D2D通路中所述目的终端的上一跳终端。
第五方面,本发明提供了一种控制节点,所述控制节点包括:
第一接收模块,用于接收源终端发送的传输请求,所述传输请求携带所述源终端的终端标识和与所述源终端通信的目的终端的终端标识,所述源终端是单跳D2D终端;
第一确定模块,用于根据所述源终端的终端标识和所述目的终端的终端标识,确定所述源终端与所述目的终端直接相连的D2D链路的信道质量不满足预设质量条件;
第二确定模块,用于根据所述源终端的终端标识和所述目的终端的终端标识,确定所述源终端到所述目的终端之间的信道质量满足预设质量条件的第一D2D通路,所述第一D2D通路中包括至少一个中转终端,所述中转终端是所述第一D2D通路中除所述源终端和所述目的终端之外的任一多跳D2D终端;
第一发送模块,用于向所述第一D2D通路中除所述目的终端之外的终端发送所述第一D2D通路的路径信息,所述路径信息用于所述终端通过所述第一D2D通路向所述目的终端发送D2D数据。
结合第五方面,在第五方面的第一种可能的实现方式中,所述路径信息包括第一路径信息,所述第一路径信息包括在所述第一D2D通路中所述源终端的下一跳中转终端的终端标识;
所述第一发送模块,具体用于向所述源终端发送所述第一D2D通路的第一 路径信息,所述第一路径信息用于所述源终端向所述下一跳中转终端发送所述D2D数据。
结合第五方面,在第五方面的第二种可能的实现方式中,所述路径信息包括第二路径信息,所述第二路径信息包括在所述第一D2D通路中第一中转终端的上一跳终端的终端标识和下一跳终端的终端标识,或者,所述第二路径信息包括所述目的终端的终端标识和在所述第一D2D通路中第一中转终端的下一跳终端的终端标识,所述第一中转终端是所述第一D2D通路中的任一中转终端;
所述第一发送模块,具体用于向所述第一中转终端发送所述第一D2D通路的第二路径信息,所述第二路径信息用于所述第一中转终端在接收所述上一跳终端发送的D2D数据后向所述下一跳终端转发所述D2D数据,或者,所述第二路径信息用于所述第一中转终端在接收来自所述源终端的D2D数据时,根据所述D2D数据携带的所述目的终端终端标识,向所述下一跳终端转发所述D2D数据。
结合第五方面,在第五方面的第三种可能的实现方式中,所述第一确定模块,具体用于根据所述源终端的终端标识和所述目的终端的终端标识,确定所述源终端到所述目的终端直接相连的D2D链路、蜂窝链路和至少一条第二D2D通路,获取所述源终端到所述目的终端直接相连的D2D链路的信道质量、所述蜂窝链路的信道质量和所述至少一条第二D2D通路中的每条第二D2D通路的信道质量组成信道质量集合,在所述源终端到所述目的终端直接相连的D2D链路的信道质量不是所述信道质量集合中的最大信道质量,确定所述源终端到所述目的终端直接相连的D2D链路的信道质量不满足预设质量条件。
结合第五方面的第三中可能的实现方式,在第五方面的第四种可能的实现方式中,所述第二确定模块,具体用于从所述至少一条第二D2D通路中选择一个信道质量高于所述源终端与所述目的终端之间直接相连的D2D链路的信道质量且高于所述蜂窝链路的信道质量的第二D2D通路,将所述选择的第二D2D通路作为第一D2D通路。
第六方面,本发明提供了一种终端,所述终端包括:
第二发送模块,用于向控制节点发送传输请求,所述传输请求携带所述源终端的终端标识和与所述源终端通信的目的终端的终端标识,所述源终端是单 跳D2D终端,用于触发所述控制节点在确定所述源终端与所述目的终端直接相连的D2D链路的信道质量不满足预设质量条件时,确定所述源终端到所述目的终端之间的信道质量满足预设质量条件的第一D2D通路,所述第一D2D通路包括至少一个中转终端,所述中转终端是所述第一D2D通路中除所述源终端和所述目的终端之外的任一多跳D2D终端;
第二接收模块,用于接收所述控制节点发送的所述第一D2D通路的第一路径信息,所述第一路径信息包括在所述第一D2D通路中所述源终端的下一跳中转终端的终端标识;
第三发送模块,用于根据所述下一跳中转终端的终端标识,向所述下一跳中转终端发送D2D数据,用于触发所述下一跳中转终端向所述目的终端转发所述D2D数据。
第七方面,本发明提供了一种终端,所述终端包括:
第三接收模块,用于接收控制节点发送的第一D2D通路的第二路径信息,所述第一D2D通路为源终端到与所述源终端通信的目的终端之间的信道质量满足预设质量条件的D2D通路,所述中转终端是所述第一D2D通路中除所述源终端和所述目的终端之外的任一多跳D2D终端;
第四接收模块,用于接收来自源终端的D2D数据,所述源终端为单跳D2D终端;
第四发送模块,用于根据所述第二路径信息,通过所述第一D2D通路向与所述源终端通信的目的终端发送所述来自源终端的D2D数据。
结合第七方面,在第七方面的第一种可能的实现方式中,所述第四接收模块,具体用于如果在所述第一D2D通路中所述中转终端的上一跳终端为源终端,则接收所述源终端发送的D2D数据;或者,
所述第四接收模块,具体用于如果在所述第一D2D通路中所述中转终端的上一跳终端为中转终端,则接收所述上一跳终端发送的来自源终端D2D数据。
结合第七方面,在第七方面的第二种可能的实现方式中,所述第二路径信息包括在所述第一D2D通路中所述中转终端的上一跳终端的终端标识和下一跳终端的终端标识;
所述第四发送模块,具体用于根据所述下一跳终端的终端标识,向所述下 一跳终端转发所述D2D数据。
结合第七方面,在第七方面的第三种可能的实现方式中,所述第二路径信息包括所述目的终端的终端标识和在所述第一D2D通路中所述中转终端的下一跳终端的终端标识;
所述第四发送模块,具体用于根据所述D2D数据携带的所述目的终端的终端标识和所述第二路径信息,识别所述下一跳终端的终端标识,根据所述下一跳终端的终端标识,向所述下一跳终端转发所述D2D数据。
第八方法,本发明提供了一种终端,所述终端包括:
第五接收模块,用于在控制节点确定源终端到与所述源终端通信的目的终端之间直接相连的设备到设备D2D链路的信道质量不满足预设质量条件时,并确定所述源终端到所述目的终端之间的信道质量满足预设质量条件的第一D2D通路时,接收中转终端发送的来自所述源终端的D2D数据,所述源终端是单跳D2D终端,所述中转终端是多跳D2D终端,且所述中转终端是在所述第一D2D通路中所述目的终端的上一跳终端。
第九方面,本发明提供了一种控制节点,其特征在于,所述控制节点包括:第一接收器、第一处理器和第一发射器;
所述第一接收器,用于接收源终端发送的传输请求,所述传输请求携带所述源终端的终端标识和与所述源终端通信的目的终端的终端标识,所述源终端是单跳D2D终端;
所述第一处理器,用于根据所述源终端的终端标识和所述目的终端的终端标识,确定所述源终端与所述目的终端直接相连的D2D链路的信道质量不满足预设质量条件;
所述第一处理器,还用于根据所述源终端的终端标识和所述目的终端的终端标识,确定所述源终端到所述目的终端之间的信道质量满足预设质量条件的第一D2D通路,所述第一D2D通路中包括至少一个中转终端,所述中转终端是所述第一D2D通路中除所述源终端和所述目的终端之外的任一多跳D2D终端;
所述第一发射器,用于向所述第一D2D通路中除所述目的终端之外的终端发送所述第一D2D通路的路径信息,所述路径信息用于所述终端通过所述第一 D2D通路向所述目的终端发送D2D数据。
结合第九方面,在第九方面的第一种可能的实现方式中,所述路径信息包括第一路径信息,所述第一路径信息包括在所述第一D2D通路中所述源终端的下一跳中转终端的终端标识;
所述第一发射器,还用于向所述源终端发送所述第一D2D通路的第一路径信息,所述第一路径信息用于所述源终端向所述下一跳中转终端发送所述D2D数据。
结合第九方面,在第九方面的第二种可能的实现方式中,所述路径信息包括第二路径信息,所述第二路径信息包括在所述第一D2D通路中第一中转终端的上一跳终端的终端标识和下一跳终端的终端标识,或者,所述第二路径信息包括所述目的终端的终端标识和在所述第一D2D通路中第一中转终端的下一跳终端的终端标识,所述第一中转终端是所述第一D2D通路中的任一中转终端;
所述第一发射器,还用于向所述第一中转终端发送所述第一D2D通路的第二路径信息,所述第二路径信息用于所述第一中转终端在接收所述上一跳终端发送的D2D数据后向所述下一跳终端转发所述D2D数据,或者,所述第二路径信息用于所述第一中转终端在接收来自所述源终端的D2D数据时,根据所述D2D数据携带的所述目的终端终端标识,向所述下一跳终端转发所述D2D数据。
结合第九方面,在第九方面的第三种可能的实现方式中,所述第一处理器,还用于根据所述源终端的终端标识和所述目的终端的终端标识,确定所述源终端到所述目的终端直接相连的D2D链路、蜂窝链路和至少一条第二D2D通路;获取所述源终端到所述目的终端直接相连的D2D链路的信道质量、所述蜂窝链路的信道质量和所述至少一条第二D2D通路中的每条第二D2D通路的信道质量组成信道质量集合,在所述源终端到所述目的终端直接相连的D2D链路的信道质量不是所述信道质量集合中的最大信道质量,确定所述源终端到所述目的终端直接相连的D2D链路的信道质量不满足预设质量条件。
结合第九方面的第三种可能的实现方式,在第九方面的第四种可能的实现方式中,所述第一处理器,还用于从所述至少一条第二D2D通路中选择一个信道质量高于所述源终端与所述目的终端之间直接相连的D2D链路的信道质量且高于所述蜂窝链路的信道质量的第二D2D通路,将所述选择的第二D2D通路作为第一D2D通路。
第十方面,本发明提供了一种终端,其特征在于,所述终端包括:第二发射器和第二接收器;
所述第二发射器,用于向控制节点发送传输请求,所述传输请求携带所述源终端的终端标识和与所述源终端通信的目的终端的终端标识,所述源终端是单跳D2D终端,用于触发所述控制节点在确定所述源终端与所述目的终端直接相连的D2D链路的信道质量不满足预设质量条件时,确定所述源终端到所述目的终端之间的信道质量满足预设质量条件的第一D2D通路,所述第一D2D通路包括至少一个中转终端,所述中转终端是所述第一D2D通路中除所述源终端和所述目的终端之外的任一多跳D2D终端;
所述第二接收器,用于接收所述控制节点发送的所述第一D2D通路的第一路径信息,所述第一路径信息包括在所述第一D2D通路中所述源终端的下一跳中转终端的终端标识;
所述第二发射器,还用于根据所述下一跳中转终端的终端标识,向所述下一跳中转终端发送D2D数据,用于触发所述下一跳中转终端向所述目的终端转发所述D2D数据。
第十一方面,本发明提供了一种终端,其特征在于,所述终端包括:第三接收器和第三发射器;
所述第三接收器,用于接收控制节点发送的第一D2D通路的第二路径信息,所述第一D2D通路为源终端到与所述源终端通信的目的终端之间的信道质量满足预设质量条件的D2D通路,所述中转终端是所述第一D2D通路中除所述源终端和所述目的终端之外的任一多跳D2D终端;
所述第三接收器,还用于接收来自源终端的D2D数据,所述源终端为单跳D2D终端;
所述第三发射器,用于根据所述第二路径信息,通过所述第一D2D通路向与所述源终端通信的目的终端发送所述来自源终端的D2D数据。
结合第十一方面,在第十一方面的第一种可能的实现方式中,所述第三接收器,还用于如果在所述第一D2D通路中所述中转终端的上一跳终端为源终端,则接收所述源终端发送的D2D数据;或者,
所述第三接收器,还用于如果在所述第一D2D通路中所述中转终端的上一跳终端为中转终端,则接收所述上一跳终端发送的来自源终端D2D数据。
结合第十一方面,在第十一方面的第二种可能的实现方式中,所述第二路径信息包括在所述第一D2D通路中所述中转终端的上一跳终端的终端标识和下一跳终端的终端标识;
所述第三发射器,还用于根据所述下一跳终端的终端标识,向所述下一跳终端转发所述D2D数据。
结合第十一方面,在第十一方面的第二种可能的实现方式中,所述第二路径信息包括所述目的终端的终端标识和在所述第一D2D通路中所述中转终端的下一跳终端的终端标识;
所述第三发射器,还用于根据所述D2D数据携带的所述目的终端的终端标识和所述第二路径信息,识别所述下一跳终端的终端标识;
所述第三发射器,还用于根据所述下一跳终端的终端标识,向所述下一跳终端转发所述D2D数据。
第十二方面,本发明提供了一种终端,其特征在于,所述终端包括:第四接收器;
所述第四接收器,用于在控制节点确定源终端到与所述源终端通信的目的终端之间直接相连的设备到设备D2D链路的信道质量不满足预设质量条件时,并确定所述源终端到所述目的终端之间的信道质量满足预设质量条件的第一D2D通路时,接收中转终端发送的来自所述源终端的D2D数据,所述源终端是单跳D2D终端,所述中转终端是多跳D2D终端,且所述中转终端是在所述第一D2D通路中所述目的终端的上一跳终端。
在本发明实施例中,当源终端与目的终端之间直接相连的D2D链路的信道质量较差时,源终端可以借助周围具有多跳能力的中转终端协助向目的终端发送D2D数据,建立一条经过中转终端且信道质量较好的D2D通路,通过该D2D通路向目的终端发送D2D数据,从而可以提高源终端向目的终端发送D2D数据的通信质量。
附图说明
图1是本发明实施例提供的一种发送数据的方法流程图;
图2是本发明实施例提供的另一种发送数据的方法流程图;
图3是本发明实施例提供的另一种发送数据的方法流程图;
图4是本发明实施例提供的一种接收数据的方法流程图;
图5-1是本发明实施例提供的一种发送数据的方法流程图;
图5-2是本发明实施例提供的另一种发送数据的方法流程图;
图6是本发明实施例提供的一种控制节点的结构示意图;
图7是本发明实施例提供的一种终端的结构示意图;
图8是本发明实施例提供的另一种终端的结构示意图;
图9是本发明实施例提供的另一种终端的结构示意图;
图10是本发明实施例提供的一种控制节点的结构示意图;
图11是本发明实施例提供的一种终端的结构示意图;
图12是本发明实施例提供的另一种终端的结构示意图;
图13是本发明实施例提供的另一种终端的结构示意图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。
本发明实施例提供了一种发送数据的方法,该方法可以通过控制节点实现,参见图1,其中,该方法包括:
步骤101:控制节点接收源终端发送的传输请求,该传输请求携带源终端的终端标识和与源终端通信的目的终端的终端标识,源终端为单跳D2D终端;
其中,单跳D2D终端是指不能参与路由选择的D2D终端,也即单跳D2D终端无法作为中转终端转发其他D2D终端的D2D数据,也无法直接选择其他中转终端转发自己的D2D数据。当源终端每次需要向目的终端发送D2D数据时,源终端向控制节点发送传输请求;控制节点接收源终端发送的传输请求,该传输请求携带源终端的终端标识和目的终端的终端标识。
源终端可以为任一具有发送数据功能的终端,例如,源终端可以为具有发送数据功能的手机或者平板电脑等;目的终端可以为任一具有接收数据功能的 终端,例如,目的终端可以为具有接收数据功能的手机或者平板电脑等;并且目的终端可以为单跳D2D终端,也可以为多跳D2D终端;多跳D2D终端是指能够参与路由选择的D2D终端。控制节点为至少具有路由选择/路由生成功能的设备,例如控制节点可以为网络侧设备或者簇头;网络侧设备可以为网元或者功能实体,例如,网络侧设备可以为基站(eNodeB,eNB)、移动性管理实体(Mobility Management Entity,MME)、服务网关(Serving Gateway,S-GW)或者PDN网关(PDN Gateway,P-GW)等。簇头是指和上述网络侧设备具有相同功能(至少具有路由选择/路由生成功能)的终端设备。并且eNB、MME、S-GW、PDN网关和簇头中的每个设备都可以单独实现本发明实施例的步骤。
当源终端和目的终端在有网络覆盖的区域中时,源终端和目的终端可以受网络侧设备控制,则此时控制节点为网络侧设备;当源终端和目的终端在无网络覆盖的区域中时,源终端和目的终端可以受簇头控制,则此时控制节点为簇头。
对于受簇头控制的终端来说,簇头至少具有路由选择/路由生成功能。簇头会发送广播消息,该广播消息可以包括簇头的标识;当源终端和目的终端在没有网络覆盖的区域中时,源终端和目的终端无法受网络侧设备控制,此时源终端接收簇头的广播消息,并根据该簇头的标识,向簇头发送第一加入请求,第一加入请求可以包括源终端的终端标识,簇头接收源终端发送的第一加入请求,并将源终端接入簇头;同样,目的终端接收簇头的广播消息,并根据该簇头的标识,向簇头发送第二加入请求,第二加入请求可以包括目的终端的终端标识,簇头接收目的终端发送的第二加入请求,并将目的终端接入簇头。
当在同一簇头中的源终端向目的终端发送数据时,簇头会为源终端和目的终端分配网络资源,源终端可以通过该网络资源向目的终端发送数据。
步骤102:控制节点根据源终端的终端标识和目的终端的终端标识,确定源终端与目的终端直接相连的D2D链路的信道质量不满足预设质量条件;
本步骤可以通过以下步骤(1)至(3)实现,包括:
(1):控制节点根据源终端的终端标识和目的终端的终端标识,确定源终端到目的终端直接相连的D2D链路,蜂窝链路和至少一条第二D2D通路;
蜂窝链路是指通过网络侧设备转发数据的链路,且蜂窝链路包括源终端到基站之间的第一蜂窝链路以及基站到目的终端之间的第二蜂窝链路;至少一条 第二D2D通路中的每条第二D2D通路中包括源终端、至少一个中转终端和目的终端。
其中,控制节点根据生成路由的路由算法,源终端的终端标识和目的终端的终端标识,生成至少一条第二D2D通路。
(2):控制节点获取源终端到目的终端直接相连的D2D链路的信道质量、蜂窝链路的信道质量和至少一条第二D2D通路中的每条第二D2D通路的信道质量组成信道质量集合;
其中,控制节点获取源终端到目的终端直接相连的D2D链路的信道质量、蜂窝链路的信道质量和每条第二D2D通路的信道质量的过程为现有技术,在此不再详细说明。
(3):如果源终端到目的终端直接相连的D2D链路的信道质量不是信道质量集合中的最大信道质量,控制节点确定源终端到目的终端直接相连的D2D链路的信道质量不满足预设质量条件。
进一步地,如果源终端到目的终端直接相连的D2D链路的信道质量是信道质量集合中的最大信道质量,则控制节点确定源终端到目的终端直接相连的D2D链路的信道质量满足预设质量条件,则结束。
进一步地,源终端向目的终端发送数据时,控制节点会为源终端分配一条最大信道质量的路经,源终端通过该路径向目的终端发送数据。例如,当蜂窝链路的信道质量是信道质量集合中的最大信道质量时,源终端则通过蜂窝链路向目的终端发送数据,此时数据可以称为蜂窝数据,也即源终端向基站发送蜂窝数据,基站接收源终端发送的蜂窝数据,并向目的终端转发该蜂窝数据。再如,当源终端到目的终端直接相连的D2D链路的信道质量是信道质量集合中的最大信道质量时,源终端则通过源终端到目的终端直接相连的D2D链路向目的终端发送数据,此时数据可以称为D2D数据。
步骤103:在控制节点确定源终端和目的终端直接相连的D2D链路的信道质量不满足预设质量条件时,控制节点根据源终端的终端标识和目的终端的终端标识,确定信道质量满足预设质量条件的第一D2D通路;
第一D2D通路中包括源终端、至少一个中转终端和目的终端,且第一D2D通路用于源终端通过该第一D2D通路向目的终端发送D2D数据,其中,中转终端是多跳D2D终端;
如果源终端与目的终端之间直接相连的D2D链路的信道质量不满足预设质量条件,则控制节点可以从至少一条第二D2D通路中选择一个信道质量高于源终端与目的终端之间直接相连的D2D链路的信道质量且高于蜂窝链路的信道质量的第二D2D通路,将选择的第二D2D通路作为第一D2D通路。
进一步地,如果蜂窝链路的信道质量高于D2D通道的信道质量且高于每条第二D2D通路的信道质量,则控制节点可以选择蜂窝链路,源终端通过蜂窝链路向目的终端发送蜂窝数据。
步骤104:控制节点向第一D2D通路中除目的终端之外的终端发送第一D2D通路的路径信息。
路径信息根据不同的情况可能会有不同的组成,目的是让接收到路径信息的终端获知在第一D2D通路中该终端的下一跳终端的终端标识,从而根据该路径信息实现通过第一D2D通路从源终端到目的终端发送D2D数据。例如路径信息可以包括第一路径信息和第二路径信息。
控制节点向源终端发送第一路径信息,第一路径信息包括在第一D2D通路中源终端的下一跳中转终端的终端标识;控制节点向第一D2D通路中包括的至少一个中转终端中的每个中转终端发送第二路径信息,并且每个中转终端的第二路径信息各不相同,对于每个中转终端,该中转终端对应的第二路径信息包括在第一D2D通路中该中转终端的上一跳终端的终端标识和下一跳终端的终端标识;或者,该中转终端对应的第二路径信息包括目的终端的终端标识和在第一D2D通路中该中转终端的下一跳终端的终端标识。
控制节点根据第一D2D通路,获取在第一D2D通路中源终端的下一跳中转终端的终端标识,将源终端的下一跳中转终端的终端标识组成第一路径信息。控制节点根据源终端的终端标识,向源终端发送第一路径信息。源终端接收控制节点发送的第一路径信息,并根据第一路径信息包括的在第一D2D通路中源终端的下一跳中转终端的终端标识,向下一跳中转终端发送D2D数据。
对于每个中转终端,如果该中转终端对应的第二路径信息包括在第一D2D通路中该中转终端的上一跳终端的终端标识和下一跳终端的终端标识,则控制节点根据该中转终端的终端标识,获取在第一D2D通路中该中转终端的上一跳终端的终端标识和下一跳终端的终端标识,将该上一跳终端的终端标识和该下一跳终端的终端标识组成第二路径信息。控制节点根据该中转终端的终端标识, 向该中转终端发送第二路径信息。该中转终端接收控制节点发送的第二路径信息,并根据第二路径信息,接收该上一跳终端发送的来自源终端的D2D数据,并根据该下一跳终端的终端标识,向下一跳终端发送来自源终端的D2D数据。
对于每个中转终端,如果该中转终端对应的第二路径信息包括目的终端的终端标识和在第一D2D通路中该中转终端的下一跳终端的终端标识,则控制节点根据该中转终端的终端标识,获取在第一D2D通路中该中转终端的下一跳终端的终端标识和目的终端的终端标识,将该下一跳终端的终端标识和目的终端的终端标识组成第二路径信息。控制节点根据该中转终端的终端标识,向该中转终端发送第二路径信息。该中转终端接收控制节点发送的第二路径信息。该中转终端接收来自源终端的D2D数据,根据该D2D数据携带的目的终端的终端标识以及第二路径信息,从第二路径信息中识别出下一跳终端的终端标识,根据该下一跳终端的终端标识,向该下一跳终端发送来自源终端的D2D数据。
在本发明实施例中,控制节点接收源终端发送的传输请求,根据该传输请求确定源终端与目的终端直接相连的D2D链路的信道质量不满足预设质量条件时,根据源终端的终端标识和目的终端的终端标识,确定一条经过多跳D2D终端的中转终端的第一D2D通路,从而控制节点能够使源终端借助周围能够参与路由选择的多跳D2D终端向目的终端发送D2D数据。由于第一D2D通路的信道质量满足预设质量条件,因此,源终端和中转终端通过第一D2D通路向目的终端发送D2D数据的信道质量较好,从而可以提高源终端向目的终端发送D2D数据的通信质量。
本发明实施例提供了一种发送数据的方法,该方法可以通过源终端实现,参见图2,其中,该方法包括:
步骤201:源终端向控制节点发送传输请求,该传输请求携带源终端的终端标识和与源终端通信的目的终端的终端标识;
源终端是单跳D2D终端,单跳D2D终端是指不能参与路由选择的D2D终端,也即单跳D2D终端无法作为中转终端转发其他D2D终端的D2D数据,也无法直接选择其他中转终端转发自己的D2D数据,因当源终端每次需要向目的终端发送D2D数据时,源终端向控制节点发送传输请求,该传输请求可以用于触发控制节点在确定源终端与目的终端直接相连的D2D链路的信道质量不满足 预设质量条件时,确定源终端到目的终端之间的信道质量满足预设质量条件的第一D2D通路,第一D2D通路包括源终端、至少一个中转终端和目的终端,中转终端是第一D2D通路中除源终端和目的终端之外的任一多跳D2D终端。
源终端可以为任一具有发送数据功能的终端,例如,源终端可以为具有发送数据功能的手机或者平板电脑等;目的终端可以为任一具有接收数据功能的终端,例如,目的终端可以为具有接收数据功能的手机或者平板电脑等;并且目的终端可以为单跳D2D终端,也可以为多跳D2D终端;多跳D2D终端是指能够参与路由选择的D2D终端。
进一步地,控制节点获取第一D2D通路的第一路径信息,向源终端发送第一路径信息。
步骤202:源终端接收控制节点发送的第一D2D通路的第一路径信息;
其中,第一路径信息包括在第一D2D通路中源终端的下一跳中转终端的终端标识。
步骤203:源终端根据第一路径信息包括的下一跳中转终端的终端标识,向该下一跳中转终端发送D2D数据。
该下一跳中转终端接收源终端发送的D2D数据,并获取在第一D2D通道中该下一跳中转终端的下一跳终端的终端标识,根据该下一跳中转终端的下一跳终端的终端标识,向该下一跳中转终端的下一跳终端发送来自源终端的D2D数据,以将该D2D数据转发给目的终端。
在本发明实施例中,当源终端需要向目的终端发送D2D数据时,源终端向控制节点发送传输请求,以触发控制节点在确定源终端与目的终端直接相连的D2D链路的信道质量不满足预设质量条件时,确定一条源终端到目的终端之间且经过中转终端的第一D2D通路,源终端通过第一D2D通路向目的终端发送D2D数据,从而源终端可以借助周围能够参与路由选择的多跳D2D终端向目的终端发送D2D数据,并且第一D2D通路的信道质量满足预设质量条件,因此,源终端通过第一D2D通路向目的终端发送D2D数据的信道质量较好,从而可以提高源终端向目的终端发送D2D数据的通信质量。
本发明实施例提供了一种发送数据的方法,该方法可以通过中转终端实现,参见图3,其中,该方法包括:
步骤301:中转终端接收控制节点发送的第一D2D通路的第二路径信息,第一D2D通路为源终端到与源终端通信的目的终端之间的信道质量满足预设质量条件的D2D通路,中转终端是第一D2D通路中除源终端和目的终端之外的任一多跳D2D终端;
控制节点接收源终端发送的传输请求,并确定源终端与目的终端直接相连的D2D链路的信道质量不满足预设质量条件,此时控制节点根据源终端的终端标识和目的终端的终端标识,确定源终端到目的终端之间的信道质量满足预设质量条件的第一D2D通路,第一D2D通路中包括至少一个中转终端。
控制节点获取至少一个中转终端中的每个中转终端的第二路径信息,根据每个中转终端的终端标识,向每个中转终端发送第二路径信息;每个中转终端接收控制节点发送的第二路径信息。
其中,每个中转终端的第二路径信息包括在第一D2D通路中该中转终端的上一跳终端的终端标识和下一跳终端的终端标识;或者每个中转终端的第二路径信息包括目的终端的终端标识和在第一D2D通路中该中转终端的下一跳终端的终端标识。
步骤302:中转终端接收来自源终端的D2D数据,源终端为单跳D2D终端;
如果在第一D2D通路中该中转终端的上一跳终端为源终端,则本步骤可以为:中转终端接收源终端发送的D2D数据。
如果在第一D2D通路中该中转终端的上一跳终端为中转终端,则本步骤可以为:中转终端接收在第一D2D通路中该中转终端的上一跳终端发送的来自源终端的D2D数据。
步骤303:中转终端根据第二路径信息,通过第一D2D通路向与源终端通信的目的终端发送来自源终端的D2D数据。
如果第二路径信息包括在第一D2D通路中该中转终端的上一跳终端的终端标识和下一跳终端的终端标识,则本步骤可以为:
中转终端接收该上一跳终端发送的来自源终端的D2D数据,根据该下一跳终端的终端标识,向下一跳终端发送该来自源终端的D2D数据。
如果第二路径信息包括目的终端的终端标识和在第一D2D通路中该中转终端的下一跳终端的终端标识,则本步骤可以为:
中转终端根据来自源终端的D2D数据,获取该D2D数据携带的目的终端的 终端标识,根据该目的终端的终端标识以及第二路径信息,从第二路径信息中识别出该下一跳终端的终端标识,根据该下一跳终端的终端标识,向该下一跳终端发送来自源终端的D2D数据。
进一步地,如果该下一跳终端为目的终端,则该中转终端向目的终端发送来自源终端的D2D数据;如果该下一跳终端不为目的终端,则该中转终端向该下一跳终端发送来自源终端的D2D数据,该下一跳终端向该下一跳终端的下一跳终端发送来自源终端的D2D数据,直到将该D2D数据发送给目的终端。
在本发明实施例中,中转终端接收控制节点发送的第一D2D通路的第二路径信息,第一D2D通路为信道质量满足预设质量条件的D2D通路,从而中转终端能够帮助源终端向目的终端发送来自源终端的D2D数据,由于第一D2D通路的信道质量较好,因此,通过该D2D通路向目的终端发送来自源终端的D2D数据,从而可以提高源终端向目的终端发送D2D数据的通信质量。
本发明实施例提供了一种发送D2D数据的方法,该方法可以通过目的终端实现,参见图4,其中,该方法包括:
步骤401:在控制节点确定源终端到与源终端通信的目的终端之间直接相连的设备到设备D2D链路的信道质量不满足预设质量条件时,并确定源终端到目的终端之间的信道质量满足预设质量条件的第一D2D通路时,目的终端接收中转终端发送的来自源终端的D2D数据,源终端是单跳D2D终端,中转终端是多跳D2D终端,且中转终端是在第一D2D通路中目的终端的上一跳终端。
在本发明实施例中,目的终端接收中转终端发送的D2D数据,中转终端是在第一D2D通路中目的终端的上一跳终端,第一D2D通路的信道质量满足预设质量条件,因此,目的终端接收该中转终端发送的来自源终端的D2D数据,可以提高接收来自源终端的D2D数据的通信质量。
本发明实施例提供了一种发送数据的方法,参见图5-1和图5-2,其中,该方法包括:
步骤501:源终端向控制节点发送传输请求,该传输请求携带源终端的终端标识和与源终端通信的目的终端的终端标识;
源终端为单跳D2D终端,单跳D2D终端是指不能参与路由选择的D2D终 端,也即单跳D2D终端无法作为中转终端转发其他D2D终端的D2D数据,也无法直接选择其他中转终端转发自己的D2D数据,当源终端每次需要向目的终端发送数据时,源终端向控制节点发送传输请求,该传输请求携带源终端的终端标识和目的终端的终端标识;该数据可以为语音、图片或者视频等。目的终端可以为单跳D2D终端,也可以为多跳D2D终端;多跳D2D终端是指能够参与路由选择的D2D终端。
其中,传输请求中可以至少携带源终端的终端标识和目的终端的终端标识,源终端可以为任一具有发送数据功能的终端,例如,源终端可以为具有发送数据功能的手机或者平板电脑等;目的终端可以为任一具有接收数据功能的终端,例如,目的终端可以为具有接收数据功能的手机或者平板电脑等。源终端的终端标识可以为源终端的全局唯一标识符(Globally Unique Identifier,GUID)或者源终端中的客户识别模块(Subscriber Identity Module,SIM)卡的电话号码等;目的终端的终端标识可以为与目的终端相关联的一个expression code,例如,目的终端的终端标识可以为与目的终端的GUID或者目的终端中的SIM卡的电话号码相关联的一个expression code等。
步骤502:控制节点接收源终端发送的传输请求,根据源终端的终端标识和目的终端的终端标识,确定源终端与目的终端直接相连的D2D链路的信道质量不满足预设质量条件;
本步骤和以上步骤102相同,在此不再赘述。
步骤503:控制节点根据源终端的终端标识和目的终端的终端标识,确定源终端到目的终端之间的信道质量满足预设质量条件的第一D2D通路;
本步骤和103相同,在此不再赘述。
步骤504:控制节点向源终端发送第一D2D通路的第一路径信息;
控制节点根据第一D2D通路,获取在第一D2D通路中源终端的下一跳中转终端的终端标识,将该下一跳中转终端的终端标识组成第一路径信息,根据源终端的终端标识,向源终端发送第一路径信息。
例如,源终端为第一终端,目的终端为第二终端,中转终端为第三终端;则第一D2D通路为第一终端-第三终端-第二终端;则第一路径信息包括第一终端的下一跳终端的终端标识:第三终端的终端标识,如表1所示:
表1
接收第一路径信息的终端的终端标识 下一跳终端的终端标识
第一终端的终端标识 第三终端的终端标识
步骤505:源终端接收控制节点发送的第一D2D通路的第一路径信息;
进一步地,控制节点获取第一D2D通路中包括的中转终端的数目;如果第一D2D通路中只包括一个中转终端,则执行步骤506a;如果第一D2D通路中包括多个中转终端,则执行步骤506b。
步骤506a:控制节点向中转终端发送第一D2D通路的第二路径信息;
第二路径信息包括在第一D2D通路中该中转终端的上一跳终端的终端标识和下一跳终端的终端标识;或者,第二路径信息包括目的终端的终端标识和在第一D2D通路中该中转的下一跳终端的终端标识。
如果第二路径信息包括在第一D2D通路中该中转终端的上一跳终端的终端标识和下一跳终端的终端标识,则控制节点将源终端的终端标识和目的终端的终端标识组成第二路径信息,根据该中转终端的终端标识,向该中转终端发送第二路径信息,执行步骤507a。
例如,源终端为第一终端,目的终端为第二终端,中转终端为第三终端,则第一D2D通路为第一终端-第三终端-第二终端;则第二路径信息包括第三终端的上一跳终端的终端标识:第一终端的终端标识,和第三终端的下一跳终端的终端标识:第二终端的终端标识,如表2所示;
表2
Figure PCTCN2015088644-appb-000001
如果第二路径信息包括目的终端的终端标识和在第一D2D通路中该中转的下一跳终端的终端标识,则控制节点将目的终端的终端标识和目的终端的终端标识组成第二路径信息,根据该中转终端的终端标识,向该中转终端发送第二路径信息,执行步骤507a。
例如,源终端为第一终端,目的终端为第二终端,中转终端为第三终端,则第一D2D通路为第一终端-第三终端-第二终端;第二路径信息包括目的终端的终端标识:第二终端的终端标识,和在第一D2D通路中第三终端的下一跳终端的终端标识:第二终端的终端标识,如表3所示;
表3
Figure PCTCN2015088644-appb-000002
步骤506b:控制节点向多个中转终端中的每个中转终端发送第一D2D通路的第二路径信息;
如果第二路径信息包括在第一D2D通路中该中转终端的上一跳终端的终端标识和下一跳终端的终端标识,则对于每个中转终端,控制节点根据该中转终端的终端标识,从第一D2D通路中获取该中转终端的上一跳终端的终端标识和下一跳终端的终端标识,将该上一跳终端的终端标识和该下一跳终端的终端标识组成第二路径信息,根据该中转终端的终端标识,向该中转终端发送第二路径信息,执行步骤507b。
例如,源终端为第一终端,目的终端为第二终端,中转终端为第三终端和第四终端;则第一D2D通路为第一终端-第三终端-第四终端-第二终端;第三终端的第二路径信息包括在第一D2D通路中第三终端的上一跳终端的终端标识:第一终端的终端标识,和下一跳终端的终端标识:第四终端的终端标识,如表4所示;第四终端的第二路径信息包括在第一D2D通路中第四终端的上一跳终端的终端标识:第三终端的终端标识,和下一跳终端的终端标识:第二终端的终端标识,如表5所示;
表4
Figure PCTCN2015088644-appb-000003
表5
Figure PCTCN2015088644-appb-000004
Figure PCTCN2015088644-appb-000005
如果第二路径信息包括目的终端的终端标识和在第一D2D通路中该中转的下一跳终端的终端标识,则对于每个中转终端,控制节点根据该中转终端的标识,从第一D2D通路中获取该中转终端的下一跳终端的终端标识,将目的终端的终端标识和该下一跳终端的终端标识组成第二路径信息,根据该中转终端的终端标识,向该中转终端发送第二路径信息,执行步骤507b。
例如,源终端为第一终端,目的终端为第二终端,中转终端为第三终端和第四终端;则第一D2D通路为第一终端-第三终端-第四终端-第二终端;第三终端的第二路径信息包括目的终端的终端标识:第二终端的终端标识,和在第一D2D通路中第三终端的下一跳终端的终端标识:第四终端的终端标识,如表6所示;第四终端的第二路径信息包括目的终端的终端标识:第二终端的终端标识,和在第一D2D通路中第二终端的下一跳终端的终端标识:第二终端的终端标识,如表7所示;
表6
Figure PCTCN2015088644-appb-000006
表7
Figure PCTCN2015088644-appb-000007
步骤507a:中转终端接收控制节点发送的第一D2D通路的第二路径信息;
例如,第三终端接收控制节点发送的第二路径信息,第二路径信息包括第一终端的终端标识和第二终端的终端标识;或者,第二路径信息包括第二终端的终端标识和第二终端的终端标识。
步骤507b:每个中转终端接收控制节点发送的第一D2D通路的第二路径信息;
例如,第三终端接收控制节点发送的第二路径信息,第二路径信息包括第一终端的终端标识和第四终端的终端标识;或者第二路径信息包括第二终端的终端标识和第四终端的终端标识。以及第四终端接收控制节点发送的第二路径信息,第二路径信息包括第三终端的终端标识和第二终端的终端标识;或者第二路径信息包括第二终端的终端标识和第二终端的终端标识。
步骤508:源终端根据在第一D2D通路中源终端的下一跳中转终端的终端标识,向该下一跳中转终端发送D2D数据;
源终端根据该下一跳中转终端的终端标识,与该下一跳中转终端建立连接,通过该连接向该下一跳中转终端发送该D2D数据。
例如,第一D2D通路为第一终端-第三终端-第二终端或者第一终端-第三终端-第四终端-第二终端,则本步骤可以为:
第一终端根据第三终端的终端标识,与第三终端建立连接,通过该连接向第三终端发送D2D数据。
步骤509:中转终端接收来自源终端的D2D数据,并根据第二路径信息向目的终端发送来自源终端的D2D数据。
如果在第一D2D通路中该中转终端的上一跳终端为源终端,则该中转终端接收源终端发送的D2D数据;如果在第一D2D通路中该中转终端的上一跳终端不为源终端,则该中转终端接收该上一跳终端发送的来自源终端的D2D数据。
如果第二路径信息包括在第一D2D通路中该中转终端的上一跳终端的终端标识和下一跳终端的终端标识,则第二路径信息用于该中转终端获取该上一跳终端的终端标识和该下一跳终端的终端标识,并在接收到该上一跳终端发送的来自源终端的D2D数据时,根据该下一跳终端的终端标识,向该下一跳终端转发来自源终端的D2D数据。
如果第二路径信息包括目的终端的终端标识和在第一D2D通路中该中转终端的下一跳终端的终端标识,则第二路径信息用于该中转终端获取该目的终端的终端标识和该下一跳终端的终端标识,并在接收到D2D数据时,根据该D2D数据携带的目的终端的终端标识,从第二路径信息中获取该下一跳终端的终端标识,根据该下一跳终端的终端标识,向该下一跳终端转发来自源终端的D2D 数据。
如果在第一D2D通路中该中转终端的下一跳终端是目的终端,则本步骤可以为:中转终端接收来自源终端的D2D数据,向目的终端发送来自源终端的D2D数据。
例如,第三终端接收第一终端发送的该D2D数据,根据第二终端的终端标识,与第二终端建立连接,通过该连接向第二终端转发该D2D数据。
如果在第一D2D通路中该中转终端的下一跳终端不是目的终端,则本步骤可以为:中转终端接收来自源终端的D2D数据,向该下一跳终端发送来自源终端的D2D数据,该下一跳终端接收该中转终端发送的来自院中的D2D数据,并根据该下一跳终端的第二路径信息,获取该下一跳终端的下一跳终端的终端标识,根据该下一跳终端的下一跳终端的终端标识,向该下一跳终端的下一跳终端转发该D2D数据,直到将该D2D数据转发给目的终端。
再如,第三终端接收第一终端发送的该D2D数据,根据第四终端的终端标识,与第四终端建立连接,通过该连接向第四终端转发该D2D数据;第四终端通过该连接接收第三终端转发的D2D数据,并根据第二终端的终端标识,与第二终端建立连接,通过与第二终端之间的连接向第二终端转发该D2D数据。
在本发明实施例中,当源终端与目的终端之间直接相连的D2D链路的信道质量较差时,源终端可以借助周围具有多跳能力的中转终端协助向目的终端发送D2D数据,建立一条经过中转终端且信道质量较好的D2D通路,通过该D2D通路向目的终端发送D2D数据,从而可以提高源终端向目的终端发送D2D数据的通信质量。
本发明实施例提供了一种控制节点,用于执行以上实施例中的控制节点执行的步骤;参见图6,其中,该控制节点包括:
第一接收模块601,用于接收源终端发送的传输请求,传输请求携带源终端的终端标识和与源终端通信的目的终端的终端标识,源终端是单跳D2D终端;
其中,单跳D2D终端是指不能参与路由选择的D2D终端,因此,源终端不能参与路由选择,当源终端每次需要向目的终端发送D2D数据时,源终端向第一接收模块601发送传输请求;第一接收模块601接收源终端发送的传输请求,该传输请求携带源终端的终端标识和目的终端的终端标识。
目的终端可以为单跳D2D终端,也可以为多跳D2D终端;多跳D2D终端是指能够参与路由选择的D2D终端。
第一确定模块602,用于根据源终端的终端标识和目的终端的终端标识,确定源终端与目的终端直接相连的D2D链路的信道质量不满足预设质量条件;
第二确定模块603,用于根据源终端的终端标识和目的终端的终端标识,确定源终端到目的终端之间的信道质量满足预设质量条件的第一D2D通路,第一D2D通路中包括至少一个中转终端,中转终端是第一D2D通路中除源终端和目的终端之外的任一多跳D2D终端;
如果源终端到目的终端直接相连的D2D链路的信道质量不满足预设质量条件,则第二确定模块603可以从至少一条第二D2D通路中选择一个信道质量高于源终端到目的终端直接相连的D2D链路的信道质量且高于蜂窝链路的信道质量的第二D2D通路,将选择的第二D2D通路作为第一D2D通路。
第一D2D通路中包括源终端、目的终端和至少一个中转终端,且第一D2D通路用于源终端通过该第一D2D通路向目的终端发送D2D数据。
第一发送模块604,用于向第一D2D通路中除目的终端之外的终端发送第一D2D通路的路径信息,该路径信息用于该终端通过第一D2D通路向所述目的终端发送D2D数据。
进一步地,如果蜂窝链路的信道质量高于D2D通道的信道质量且高于每条第二D2D通路的信道质量,则第一发送模块604,还用于选择蜂窝链路,源终端通过蜂窝链路向目的终端发送蜂窝数据。
进一步地,路径信息包括第一路径信息,第一路径信息包括在第一D2D通路中源终端的下一跳中转终端的终端标识;
第一发送模块604,具体用于向源终端发送第一D2D通路的第一路径信息,第一路径信息用于源终端向下一跳中转终端发送D2D数据。
进一步地,路径信息包括第二路径信息,第二路径信息包括在第一D2D通路中第一中转终端的上一跳终端的终端标识和下一跳终端的终端标识,或者,第二路径信息包括目的终端的终端标识和在第一D2D通路中第一中转终端的下一跳终端的终端标识,第一中转终端是第一D2D通路中的任一中转终端;
第一发送模块604,具体用于向第一中转终端发送第一D2D通路的第二路径信息,第二路径信息用于第一中转终端在接收上一跳终端发送的D2D数据后 向下一跳终端转发D2D数据,或者,第二路径信息用于第一中转终端在接收来自源终端的D2D数据时,根据D2D数据携带的目的终端终端标识,向下一跳终端转发D2D数据。
第一确定模块602,具体用于根据源终端的终端标识和目的终端的终端标识,确定源终端到目的终端直接相连的D2D链路、蜂窝链路和至少一条第二D2D通路,获取源终端到目的终端直接相连的D2D链路的信道质量、蜂窝链路的信道质量和至少一条第二D2D通路中的每条第二D2D通路的信道质量组成信道质量集合,在源终端到目的终端直接相连的D2D链路的信道质量不是信道质量集合中的最大信道质量,确定源终端到目的终端直接相连的D2D链路的信道质量不满足预设质量条件。
第二确定模块603,具体用于从至少一条第二D2D通路中选择一个信道质量高于源终端与目的终端之间直接相连的D2D链路的信道质量且高于蜂窝链路的信道质量的第二D2D通路,用于将选择的第二D2D通路作为第一D2D通路。
在本发明实施例中,控制节点接收源终端发送的传输请求,根据该传输请求确定源终端与目的终端直接相连的D2D链路的信道质量不满足预设质量条件时,根据源终端的终端标识和目的终端的终端标识,确定一条经过多跳D2D终端的中转终端的第一D2D通路,从而控制节点能够使源终端借助周围能够参与路由选择的多跳D2D终端向目的终端发送D2D数据;控制节点向源终端和中转终端发送第一D2D路径的路径信息,源终端和目的终端根据该路径信息,通过该第一D2D通路向目的终端发送该D2D数据。由于第一D2D通路的信道质量满足预设质量条件,因此,源终端和中转终端通过第一D2D通路向目的终端发送D2D数据的信道质量较好,从而可以提高源终端向目的终端发送D2D数据的通信质量。
本发明实施例提供了一种终端,用于执行以上实施例中的源终端执行的步骤;参见图7,其中,该终端包括:
第二发送模块701,用于向控制节点发送传输请求,传输请求携带源终端的终端标识和与源终端通信的目的终端的终端标识,源终端是单跳D2D终端,用于触发控制节点在确定源终端与目的终端直接相连的D2D链路的信道质量不满足预设质量条件时,确定源终端到目的终端之间的信道质量满足预设质量条件 的第一D2D通路,第一D2D通路包括至少一个中转终端,中转终端是第一D2D通路中除源终端和目的终端之外的任一多跳D2D终端;
源终端是单跳D2D终端,单跳D2D终端是指不能参与路由选择的D2D终端;因此,源终端不能参与路由选择,当源终端每次需要向目的终端发送D2D数据时,源终端通过第二发送模块701向控制节点发送传输请求,该传输请求用于触发控制节点在确定源终端与目的终端直接相连的D2D链路的信道质量不满足预设质量条件时,确定源终端到目的终端之间的信道质量满足预设质量条件的第一D2D通路,第一D2D通路包括源终端、目的终端和至少一个中转终端,中转终端是第一D2D通路中除源终端和目的终端之外的任一多跳D2D终端。
进一步地,控制节点获取第一D2D通路的第一路径信息,向源终端发送第一路径信息。
第二接收模块702,用于接收控制节点发送的第一D2D通路的第一路径信息,第一路径信息包括在第一D2D通路中源终端的下一跳中转终端的终端标识;
第三发送模块703,用于根据下一跳中转终端的终端标识,向下一跳中转终端发送D2D数据,用于触发下一跳中转终端向目的终端转发D2D数据。
进一步地,该下一跳中转终端接收源终端发送的D2D数据,并获取在第一D2D通道中该下一跳中转终端的下一跳终端的终端标识,根据该下一跳中转终端的下一跳终端的终端标识,向该下一跳中转终端的下一跳终端发送来自源终端的D2D数据,以将该D2D数据转发给目的终端。
在本发明实施例中,当源终端需要向目的终端发送D2D数据时,源终端向控制节点发送传输请求,以触发控制节点在确定源终端与目的终端直接相连的D2D链路的信道质量不满足预设质量条件时,确定一条源终端到目的终端之间且经过中转终端的第一D2D通路,源终端通过第一D2D通路向目的终端发送D2D数据,从而源终端可以借助周围能够参与路由选择的多跳D2D终端向目的终端发送D2D数据,并且第一D2D通路的信道质量满足预设质量条件,因此,源终端通过第一D2D通路向目的终端发送D2D数据的信道质量较好,从而可以提高源终端向目的终端发送D2D数据的通信质量。
本发明实施例提供了一种终端,用于执行以上实施例中的中转终端执行的步骤;参见图8,其中,该终端包括:
第三接收模块801,用于接收控制节点发送的第一D2D通路的第二路径信息,第一D2D通路为源终端到与源终端通信的目的终端之间的信道质量满足预设质量条件的D2D通路,中转终端是第一D2D通路中除源终端和目的终端之外的任一多跳D2D终端;
控制节点接收源终端发送的传输请求,并确定源终端与目的终端直接相连的D2D链路的信道质量不满足预设质量条件,此时控制节点根据源终端的终端标识和目的终端的终端标识,确定源终端到目的终端之间的信道质量满足预设质量条件的第一D2D通路,第一D2D通路中包括至少一个中转终端。
控制节点获取至少一个中转终端中的每个中转终端的第二路径信息,根据每个中转终端的终端标识,向每个中转终端包括的第三接收模块801发送第二路径信息;每个中转终端包括的第三接收模块801接收控制节点发送的第二路径信息。
其中,每个中转终端的第二路径信息包括在第一D2D通路中该中转终端的上一跳终端的终端标识和下一跳终端的终端标识;或者每个中转终端的第二路径信息包括目的终端的终端标识和在第一D2D通路中该中转终端的下一跳终端的终端标识。
第四接收模块802,用于接收来自源终端的D2D数据,源终端为单跳D2D终端;
第四发送模块803,用于根据第二路径信息,通过第一D2D通路向与源终端通信的目的终端发送来自源终端的D2D数据。
进一步地,第四接收模块802,具体用于如果在第一D2D通路中中转终端的上一跳终端为源终端,则接收源终端发送的D2D数据;或者,
第四接收模块802,具体用于如果在第一D2D通路中中转终端的上一跳终端为中转终端,则接收上一跳终端发送的来自源终端D2D数据。
进一步地,第二路径信息包括在第一D2D通路中中转终端的上一跳终端的终端标识和下一跳终端的终端标识;
第四发送模块803,具体用于根据下一跳终端的终端标识,向下一跳终端转发D2D数据。
进一步地,第二路径信息包括目的终端的终端标识和在第一D2D通路中中转终端的下一跳终端的终端标识;
第四发送模块803,具体用于根据D2D数据携带的目的终端的终端标识和第二路径信息,识别下一跳终端的终端标识,根据下一跳终端的终端标识,向下一跳终端转发D2D数据。
在本发明实施例中,中转终端接收控制节点发送的第一D2D通路的第二路径信息,第一D2D通路为信道质量满足预设质量条件的D2D通路,从而中转终端能够帮助源终端向目的终端发送来自源终端的D2D数据,由于第一D2D通路的信道质量较好,因此,通过该D2D通路向目的终端发送来自源终端的D2D数据,从而可以提高源终端向目的终端发送D2D数据的通信质量。
本发明实施例提供了一种终端,用于执行以上实施例中的目的终端执行的步骤;参见图9,其中,该终端包括:
第五接收模块901,用于在控制节点确定源终端到与源终端通信的目的终端之间直接相连的设备到设备D2D链路的信道质量不满足预设质量条件时,并确定源终端到目的终端之间的信道质量满足预设质量条件的第一D2D通路时,接收中转终端发送的来自源终端的D2D数据,源终端是单跳D2D终端,中转终端是多跳D2D终端,且中转终端是在第一D2D通路中目的终端的上一跳终端。
在本发明实施例中,目的终端接收中转终端发送的D2D数据,中转终端是在第一D2D通路中目的终端的上一跳终端,第一D2D通路的信道质量满足预设质量条件,因此,目的终端接收该中转终端发送的来自源终端的D2D数据,可以提高接收来自源终端的D2D数据的通信质量。
本发明实施例提供了一种控制节点,用于执行以上实施例中的控制节点执行的步骤;参见图10,其中,该控制节点包括:第一接收器1001、第一处理器1002和第一发射器1003;
第一接收器1001,用于接收源终端发送的传输请求,传输请求携带源终端的终端标识和与源终端通信的目的终端的终端标识,源终端是单跳D2D终端;
第一处理器1002,用于根据源终端的终端标识和目的终端的终端标识,确定源终端与目的终端直接相连的D2D链路的信道质量不满足预设质量条件;
第一处理器1002,还用于根据源终端的终端标识和目的终端的终端标识,确定源终端到目的终端之间的信道质量满足预设质量条件的第一D2D通路,第 一D2D通路中包括至少一个中转终端,中转终端是第一D2D通路中除源终端和目的终端之外的任一多跳D2D终端;
第一发射器1003,用于向所述第一D2D通路中除目的终端之外的终端发送所述第一D2D通路的路径信息,所述路径信息用于所述终端通过所述第一D2D通路向所述目的终端发送D2D数据。
进一步地,路径信息包括第一路径信息,第一路径信息包括在第一D2D通路中源终端的下一跳中转终端的终端标识;
第一发射器1003,还用于向源终端发送第一D2D通路的第一路径信息,第一路径信息用于源终端向下一跳中转终端发送D2D数据。
进一步地,路径信息包括第二路径信息,第二路径信息包括在第一D2D通路中第一中转终端的上一跳终端的终端标识和下一跳终端的终端标识,或者,第二路径信息包括目的终端的终端标识和在第一D2D通路中第一中转终端的下一跳终端的终端标识,第一中转终端是第一D2D通路中的任一中转终端;
第一发射器1003,还用于向第一中转终端发送第一D2D通路的第二路径信息,第二路径信息用于第一中转终端在接收上一跳终端发送的D2D数据后向下一跳终端转发D2D数据,或者,第二路径信息用于第一中转终端在接收来自源终端的D2D数据时,根据D2D数据携带的目的终端终端标识,向下一跳终端转发D2D数据。
第一处理器1002,还用于根据源终端的终端标识和目的终端的终端标识,确定源终端到目的终端直接相连的D2D链路、蜂窝链路和至少一条第二D2D通路;获取源终端到目的终端直接相连的D2D链路的信道质量、蜂窝链路的信道质量和至少一条第二D2D通路中的每条第二D2D通路的信道质量组成信道质量集合,在源终端到目的终端直接相连的的信道质量不是信道质量集合中的最大信道质量,确定源终端到目的终端直接相连的D2D链路的信道质量不满足预设质量条件。
第一处理器1002,还用于从至少一条第二D2D通路中选择一个信道质量高于源终端与目的终端之间直接相连的D2D链路的信道质量且高于蜂窝链路的信道质量的第二D2D通路,将选择的第二D2D通路作为第一D2D通路。
在本发明实施例中,控制节点接收源终端发送的传输请求,根据该传输请求确定源终端与目的终端直接相连的D2D链路的信道质量不满足预设质量条件 时,根据源终端的终端标识和目的终端的终端标识,确定一条经过多跳D2D终端的中转终端的第一D2D通路,从而控制节点能够使源终端借助周围能够参与路由选择的多跳D2D终端向目的终端发送D2D数据;控制节点向源终端和中转终端发送第一D2D路径的路径信息,源终端和目的终端根据该路径信息,通过该第一D2D通路向目的终端发送该D2D数据。由于第一D2D通路的信道质量满足预设质量条件,因此,源终端和中转终端通过第一D2D通路向目的终端发送D2D数据的信道质量较好,从而可以提高源终端向目的终端发送D2D数据的通信质量。
本发明实施例提供了一种终端,用于执行以上实施例中的源终端执行的步骤;参见图11,其中,终端包括:第二发射器1101和第二接收器1102;
第二发射器1101,用于向控制节点发送传输请求,传输请求携带源终端的终端标识和与源终端通信的目的终端的终端标识,源终端是单跳D2D终端,用于触发控制节点在确定源终端与目的终端直接相连的D2D链路的信道质量不满足预设质量条件时,确定源终端到目的终端之间的信道质量满足预设质量条件的第一D2D通路,第一D2D通路包括至少一个中转终端,中转终端是第一D2D通路中除源终端和目的终端之外的任一多跳D2D终端;
第二接收器1102,用于接收控制节点发送的第一D2D通路的第一路径信息,第一路径信息包括在第一D2D通路中源终端的下一跳中转终端的终端标识;
第二发射器1101,还用于根据下一跳中转终端的终端标识,向下一跳中转终端发送D2D数据,用于触发下一跳中转终端向目的终端转发D2D数据。
在本发明实施例中,当源终端需要向目的终端发送D2D数据时,源终端向控制节点发送传输请求,以触发控制节点在确定源终端与目的终端直接相连的D2D链路的信道质量不满足预设质量条件时,确定一条源终端到目的终端之间且经过中转终端的第一D2D通路,源终端通过第一D2D通路向目的终端发送D2D数据,从而源终端可以借助周围能够参与路由选择的多跳D2D终端向目的终端发送D2D数据,并且第一D2D通路的信道质量满足预设质量条件,因此,源终端通过第一D2D通路向目的终端发送D2D数据的信道质量较好,从而可以提高源终端向目的终端发送D2D数据的通信质量。
本发明实施例提供了一种终端,用于执行以上实施例中的中转终端执行的步骤;参见图12,其中,所述终端包括:第三接收器1201和第三发射器1202;
第三接收器1201,用于接收控制节点发送的第一D2D通路的第二路径信息,第一D2D通路为源终端到与源终端通信的目的终端之间的信道质量满足预设质量条件的D2D通路,中转终端是第一D2D通路中除源终端和目的终端之外的任一多跳D2D终端;
第三接收器1201,还用于接收来自源终端的D2D数据,源终端为单跳D2D终端;
第三发射器1202,用于根据第二路径信息,通过第一D2D通路向与源终端通信的目的终端发送来自源终端的D2D数据。
进一步地,第三接收器1201,还用于如果在第一D2D通路中中转终端的上一跳终端为源终端,则接收源终端发送的D2D数据;或者,
第三接收器1201,还用于如果在第一D2D通路中中转终端的上一跳终端为中转终端,则接收上一跳终端发送的来自源终端D2D数据。
进一步地,第二路径信息包括在第一D2D通路中中转终端的上一跳终端的终端标识和下一跳终端的终端标识;
第三发射器1202,还用于根据下一跳终端的终端标识,向下一跳终端转发D2D数据。
进一步地,第二路径信息包括目的终端的终端标识和在第一D2D通路中中转终端的下一跳终端的终端标识;
第三发射器1202,还用于根据D2D数据携带的目的终端的终端标识和第二路径信息,识别下一跳终端的终端标识;
第三发射器1202,还用于根据下一跳终端的终端标识,向下一跳终端转发D2D数据。
在本发明实施例中,中转终端接收控制节点发送的第一D2D通路的第二路径信息,第一D2D通路为信道质量满足预设质量条件的D2D通路,从而中转终端能够帮助源终端向目的终端发送来自源终端的D2D数据,由于第一D2D通路的信道质量较好,因此,通过该D2D通路向目的终端发送来自源终端的D2D数据,从而可以提高源终端向目的终端发送D2D数据的通信质量。
本发明实施例提供了一种终端,用于执行以上实施例中的目的终端执行的步骤;参见图13,其中,终端包括:第四接收器1301;
第四接收器1301,用于在控制节点确定源终端到与源终端通信的目的终端之间直接相连的设备到设备D2D链路的信道质量不满足预设质量条件时,并确定源终端到目的终端之间的信道质量满足预设质量条件的第一D2D通路时,接收中转终端发送的来自源终端的D2D数据,源终端是单跳D2D终端,中转终端是多跳D2D终端,且中转终端是在第一D2D通路中目的终端的上一跳终端。
在本发明实施例中,目的终端接收中转终端发送的D2D数据,中转终端是在第一D2D通路中目的终端的上一跳终端,第一D2D通路的信道质量满足预设质量条件,因此,目的终端接收该中转终端发送的来自源终端的D2D数据,可以提高接收来自源终端的D2D数据的通信质量。
需要说明的是:上述实施例提供的发送和接收数据的装置在发送和接收数据时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的发送和接收数据的装置与发送和接收数据的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (22)

  1. 一种发送数据的方法,其特征在于,所述方法包括:
    控制节点接收源终端发送的传输请求,所述传输请求携带所述源终端的终端标识和与所述源终端通信的目的终端的终端标识,所述源终端是单跳设备到设备D2D终端;
    所述控制节点根据所述源终端的终端标识和所述目的终端的终端标识,确定所述源终端与所述目的终端直接相连的D2D链路的信道质量不满足预设质量条件;
    所述控制节点根据所述源终端的终端标识和所述目的终端的终端标识,确定所述源终端到所述目的终端之间的信道质量满足预设质量条件的第一D2D通路,所述第一D2D通路中包括至少一个中转终端,所述中转终端是所述第一D2D通路中除所述源终端和所述目的终端之外的任一多跳D2D终端;
    所述控制节点向所述第一D2D通路中除所述目的终端之外的终端发送所述第一D2D通路的路径信息,所述路径信息用于所述终端通过所述第一D2D通路向所述目的终端发送D2D数据。
  2. 如权利要求1所述的方法,其特征在于,所述路径信息包括第一路径信息,所述第一路径信息包括在所述第一D2D通路中所述源终端的下一跳中转终端的终端标识;
    所述控制节点向所述第一D2D通路中除所述目的终端之外的终端发送所述第一D2D通路的路径信息,包括:
    所述控制节点向所述源终端发送所述第一D2D通路的第一路径信息,所述第一路径信息用于所述源终端向所述下一跳中转终端发送所述D2D数据。
  3. 如权利要求1所述的方法,其特征在于,所述路径信息包括第二路径信息,所述第二路径信息包括在所述第一D2D通路中第一中转终端的上一跳终端的终端标识和下一跳终端的终端标识,或者,所述第二路径信息包括所述目的终端的终端标识和在所述第一D2D通路中第一中转终端的下一跳终端的终端标识,所述第一中转终端是所述第一D2D通路中的任一中转终端;
    所述控制节点向所述第一D2D通路中除所述目的终端之外的终端发送所述第一D2D通路的路径信息,包括:
    所述控制节点向所述第一中转终端发送所述第一D2D通路的第二路径信息,所述第二路径信息用于所述第一中转终端在接收所述上一跳终端发送的D2D数据后向所述下一跳终端转发所述D2D数据,或者,所述第二路径信息用于所述第一中转终端在接收来自所述源终端的D2D数据时,根据所述D2D数据携带的所述目的终端终端标识,向所述下一跳终端转发所述D2D数据。
  4. 如权利要求1所述的方法,其特征在于,所述控制节点根据所述源终端的终端标识和所述目的终端的终端标识,确定所述源终端与所述目的终端直接相连的D2D链路的信道质量不满足预设质量条件,包括:
    所述控制节点根据所述源终端的终端标识和所述目的终端的终端标识,确定所述源终端到所述目的终端直接相连的D2D链路、蜂窝链路和至少一条第二D2D通路;
    所述控制节点获取所述源终端到所述目的终端直接相连的D2D链路的信道质量、所述蜂窝链路的信道质量和所述至少一条第二D2D通路中的每条第二D2D通路的信道质量组成信道质量集合;
    如果所述源终端到所述目的终端直接相连的D2D链路的信道质量不是所述信道质量集合中的最大信道质量,所述控制节点确定所述源终端到所述目的终端直接相连的D2D链路的信道质量不满足预设质量条件。
  5. 如权利要求4所述的方法,其特征在于,所述控制节点根据所述源终端的终端标识和所述目的终端的终端标识,确定所述源终端到所述目的终端之间的信道质量满足预设质量条件的第一D2D通路,包括:
    所述控制节点从所述至少一条第二D2D通路中选择一个信道质量高于所述源终端与所述目的终端之间直接相连的D2D链路的信道质量且高于所述蜂窝链路的信道质量的第二D2D通路;
    将所述选择的第二D2D通路作为第一D2D通路。
  6. 一种发送数据的方法,其特征在于,所述方法包括:
    源终端向控制节点发送传输请求,所述传输请求携带所述源终端的终端标识和与所述源终端通信的目的终端的终端标识,所述源终端是单跳设备到设备D2D终端,用于触发所述控制节点在确定所述源终端与所述目的终端直接相连的D2D链路的信道质量不满足预设质量条件时,确定所述源终端到所述目的终端之间的信道质量满足预设质量条件的第一D2D通路,所述第一D2D通路包括至少一个中转终端,所述中转终端是所述第一D2D通路中除所述源终端和所述目的终端之外的任一多跳D2D终端;
    所述源终端接收所述控制节点发送的所述第一D2D通路的第一路径信息,所述第一路径信息包括在所述第一D2D通路中所述源终端的下一跳中转终端的终端标识;
    所述源终端根据所述下一跳中转终端的终端标识,向所述下一跳中转终端发送D2D数据,用于触发所述下一跳中转终端向所述目的终端转发所述D2D数据。
  7. 一种发送数据的方法,其特征在于,所述方法包括:
    中转终端接收控制节点发送的第一设备到设备D2D通路的第二路径信息,所述第一D2D通路为源终端到与所述源终端通信的目的终端之间的信道质量满足预设质量条件的D2D通路,所述中转终端是所述第一D2D通路中除所述源终端和所述目的终端之外的任一多跳D2D终端;
    所述中转终端接收来自源终端的D2D数据,所述源终端为单跳D2D终端;
    所述中转终端根据所述第二路径信息,通过所述第一D2D通路向与所述源终端通信的目的终端发送所述来自源终端的D2D数据。
  8. 如权利要求7所述的方法,其特征在于,所述中转终端接收来自源终端的D2D数据,包括:
    如果在所述第一D2D通路中所述中转终端的上一跳终端为源终端,则所述中转终端接收所述源终端发送的D2D数据;或者,
    如果在所述第一D2D通路中所述中转终端的上一跳终端为中转终端,则所述中转终端接收所述上一跳终端发送的来自源终端D2D数据。
  9. 如权利要求7所述的方法,其特征在于,所述第二路径信息包括在所述第一D2D通路中所述中转终端的上一跳终端的终端标识和下一跳终端的终端标识;
    所述中转终端根据所述第二路径信息,通过所述第一D2D通路向与所述源终端通信的目的终端转发所述D2D数据,包括:
    所述中转终端根据所述下一跳终端的终端标识,向所述下一跳终端转发所述D2D数据。
  10. 如权利要求7所述的方法,其特征在于,所述第二路径信息包括所述目的终端的终端标识和在所述第一D2D通路中所述中转终端的下一跳终端的终端标识;
    所述中转终端根据所述第二路径信息,通过所述第一D2D通路向与所述源终端通信的目的终端转发所述D2D数据,包括:
    所述中转终端根据所述D2D数据携带的所述目的终端的终端标识和所述第二路径信息,识别所述下一跳终端的终端标识;
    所述中转终端根据所述下一跳终端的终端标识,向所述下一跳终端转发所述D2D数据。
  11. 一种接收数据的方法,其特征在于,所述方法包括:
    在控制节点确定源终端到与所述源终端通信的目的终端之间直接相连的设备到设备D2D链路的信道质量不满足预设质量条件时,并确定所述源终端到所述目的终端之间的信道质量满足预设质量条件的第一D2D通路时,所述目的终端接收中转终端发送的来自所述源终端的D2D数据,所述源终端是单跳D2D终端,所述中转终端是多跳D2D终端,且所述中转终端是在所述第一D2D通路中所述目的终端的上一跳终端。
  12. 一种控制节点,其特征在于,所述控制节点包括:
    第一接收模块,用于接收源终端发送的传输请求,所述传输请求携带所述源终端的终端标识和与所述源终端通信的目的终端的终端标识,所述源终端是单跳设备到设备D2D终端;
    第一确定模块,用于根据所述源终端的终端标识和所述目的终端的终端标识,确定所述源终端与所述目的终端直接相连的D2D链路的信道质量不满足预设质量条件;
    第二确定模块,用于根据所述源终端的终端标识和所述目的终端的终端标识,确定所述源终端到所述目的终端之间的信道质量满足预设质量条件的第一D2D通路,所述第一D2D通路中包括至少一个中转终端,所述中转终端是所述第一D2D通路中除所述源终端和所述目的终端之外的任一多跳D2D终端;
    第一发送模块,用于向所述第一D2D通路中除所述目的终端之外的终端发送所述第一D2D通路的路径信息,所述路径信息用于所述终端通过所述第一D2D通路向所述目的终端发送D2D数据。
  13. 如权利要求12所述的控制节点,其特征在于,所述路径信息包括第一路径信息,所述第一路径信息包括在所述第一D2D通路中所述源终端的下一跳中转终端的终端标识;
    所述第一发送模块,具体用于向所述源终端发送所述第一D2D通路的第一路径信息,所述第一路径信息用于所述源终端向所述下一跳中转终端发送所述D2D数据。
  14. 如权利要求12所述的控制节点,其特征在于,所述路径信息包括第二路径信息,所述第二路径信息包括在所述第一D2D通路中第一中转终端的上一跳终端的终端标识和下一跳终端的终端标识,或者,所述第二路径信息包括所述目的终端的终端标识和在所述第一D2D通路中第一中转终端的下一跳终端的终端标识,所述第一中转终端是所述第一D2D通路中的任一中转终端;
    所述第一发送模块,具体用于向所述第一中转终端发送所述第一D2D通路的第二路径信息,所述第二路径信息用于所述第一中转终端在接收所述上一跳终端发送的D2D数据后向所述下一跳终端转发所述D2D数据,或者,所述第二路径信息用于所述第一中转终端在接收来自所述源终端的D2D数据时,根据所述D2D数据携带的所述目的终端终端标识,向所述下一跳终端转发所述D2D数据。
  15. 如权利要求12所述的控制节点,其特征在于,所述第一确定模块,具体用于根据所述源终端的终端标识和所述目的终端的终端标识,确定所述源终端到所述目的终端直接相连的D2D链路、蜂窝链路和至少一条第二D2D通路,获取所述源终端到所述目的终端直接相连的D2D链路的信道质量、所述蜂窝链路的信道质量和所述至少一条第二D2D通路中的每条第二D2D通路的信道质量组成信道质量集合,在所述源终端到所述目的终端直接相连的D2D链路的信道质量不是所述信道质量集合中的最大信道质量,确定所述源终端到所述目的终端直接相连的D2D链路的信道质量不满足预设质量条件。
  16. 如权利要求15所述的控制节点,其特征在于,所述第二确定模块,具体用于从所述至少一条第二D2D通路中选择一个信道质量高于所述源终端与所述目的终端之间直接相连的D2D链路的信道质量且高于所述蜂窝链路的信道质量的第二D2D通路,将所述选择的第二D2D通路作为第一D2D通路。
  17. 一种终端,其特征在于,所述终端包括:
    第二发送模块,用于向控制节点发送传输请求,所述传输请求携带所述源终端的终端标识和与所述源终端通信的目的终端的终端标识,所述源终端是单跳设备到设备D2D终端,用于触发所述控制节点在确定所述源终端与所述目的终端直接相连的D2D链路的信道质量不满足预设质量条件时,确定所述源终端到所述目的终端之间的信道质量满足预设质量条件的第一D2D通路,所述第一D2D通路包括至少一个中转终端,所述中转终端是所述第一D2D通路中除所述源终端和所述目的终端之外的任一多跳D2D终端;
    第二接收模块,用于接收所述控制节点发送的所述第一D2D通路的第一路径信息,所述第一路径信息包括在所述第一D2D通路中所述源终端的下一跳中转终端的终端标识;
    第三发送模块,用于根据所述下一跳中转终端的终端标识,向所述下一跳中转终端发送D2D数据,用于触发所述下一跳中转终端向所述目的终端转发所述D2D数据。
  18. 一种终端,其特征在于,所述终端包括:
    第三接收模块,用于接收控制节点发送的第一设备到设备D2D通路的第二路径信息,所述第一D2D通路为源终端到与所述源终端通信的目的终端之间的信道质量满足预设质量条件的D2D通路,所述中转终端是所述第一D2D通路中除所述源终端和所述目的终端之外的任一多跳D2D终端;
    第四接收模块,用于接收来自源终端的D2D数据,所述源终端为单跳D2D终端;
    第四发送模块,用于根据所述第二路径信息,通过所述第一D2D通路向与所述源终端通信的目的终端发送所述来自源终端的D2D数据。
  19. 如权利要求18所述的终端,其特征在于,所述第四接收模块,具体用于如果在所述第一D2D通路中所述中转终端的上一跳终端为源终端,则接收所述源终端发送的D2D数据;或者,
    所述第四接收模块,具体用于如果在所述第一D2D通路中所述中转终端的上一跳终端为中转终端,则接收所述上一跳终端发送的来自源终端D2D数据。
  20. 如权利要求18所述的终端,其特征在于,所述第二路径信息包括在所述第一D2D通路中所述中转终端的上一跳终端的终端标识和下一跳终端的终端标识;
    所述第四发送模块,具体用于根据所述下一跳终端的终端标识,向所述下一跳终端转发所述D2D数据。
  21. 如权利要求18所述的终端,其特征在于,所述第二路径信息包括所述目的终端的终端标识和在所述第一D2D通路中所述中转终端的下一跳终端的终端标识;
    所述第四发送模块,具体用于根据所述D2D数据携带的所述目的终端的终端标识和所述第二路径信息,识别所述下一跳终端的终端标识,根据所述下一跳终端的终端标识,向所述下一跳终端转发所述D2D数据。
  22. 一种终端,其特征在于,所述终端包括:
    第五接收模块,用于在控制节点确定源终端到与所述源终端通信的目的终 端之间直接相连的设备到设备D2D链路的信道质量不满足预设质量条件时,并确定所述源终端到所述目的终端之间的信道质量满足预设质量条件的第一D2D通路时,接收中转终端发送的来自所述源终端的D2D数据,所述源终端是单跳D2D终端,所述中转终端是多跳D2D终端,且所述中转终端是在所述第一D2D通路中所述目的终端的上一跳终端。
PCT/CN2015/088644 2015-08-31 2015-08-31 发送数据、接收数据的方法和装置 WO2017035754A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201580082671.XA CN107950073A (zh) 2015-08-31 2015-08-31 发送数据、接收数据的方法和装置
PCT/CN2015/088644 WO2017035754A1 (zh) 2015-08-31 2015-08-31 发送数据、接收数据的方法和装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/088644 WO2017035754A1 (zh) 2015-08-31 2015-08-31 发送数据、接收数据的方法和装置

Publications (1)

Publication Number Publication Date
WO2017035754A1 true WO2017035754A1 (zh) 2017-03-09

Family

ID=58186695

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/088644 WO2017035754A1 (zh) 2015-08-31 2015-08-31 发送数据、接收数据的方法和装置

Country Status (2)

Country Link
CN (1) CN107950073A (zh)
WO (1) WO2017035754A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3883159A4 (en) * 2018-12-05 2022-01-05 Huawei Technologies Co., Ltd. METHOD OF QUALITY MEASUREMENT OF SIDELINK AND COMMUNICATION DEVICE

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117480858A (zh) * 2021-10-30 2024-01-30 华为技术有限公司 一种设备间的数据传输方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102983944A (zh) * 2012-12-04 2013-03-20 中国联合网络通信集团有限公司 数据传输处理方法、装置和系统
CN104125620A (zh) * 2014-07-31 2014-10-29 宇龙计算机通信科技(深圳)有限公司 基于终端直连通信的中继选择的路由方法和路由方法
US20140329535A1 (en) * 2013-05-02 2014-11-06 Qualcomm Incorporated Method and apparatus for device to device relay selection
CN104869526A (zh) * 2015-04-10 2015-08-26 电信科学技术研究院 一种设备到设备通信及其资源分配方法、设备

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103596241B (zh) * 2013-10-14 2017-02-08 南京邮电大学 一种基于终端直通通信的单中继通信方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102983944A (zh) * 2012-12-04 2013-03-20 中国联合网络通信集团有限公司 数据传输处理方法、装置和系统
US20140329535A1 (en) * 2013-05-02 2014-11-06 Qualcomm Incorporated Method and apparatus for device to device relay selection
CN104125620A (zh) * 2014-07-31 2014-10-29 宇龙计算机通信科技(深圳)有限公司 基于终端直连通信的中继选择的路由方法和路由方法
CN104869526A (zh) * 2015-04-10 2015-08-26 电信科学技术研究院 一种设备到设备通信及其资源分配方法、设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3883159A4 (en) * 2018-12-05 2022-01-05 Huawei Technologies Co., Ltd. METHOD OF QUALITY MEASUREMENT OF SIDELINK AND COMMUNICATION DEVICE
US11903010B2 (en) 2018-12-05 2024-02-13 Huawei Technologies Co., Ltd. Sidelink quality measurement method and communications apparatus

Also Published As

Publication number Publication date
CN107950073A (zh) 2018-04-20

Similar Documents

Publication Publication Date Title
US11140729B2 (en) Relay transmission method and device
JP7303833B2 (ja) 情報伝送方法及び装置
US10841789B2 (en) Method and device for relay transmission
TWI725153B (zh) 用於中繼傳輸的方法和裝置以及中繼終端設備
WO2018113357A1 (zh) 处理寻呼的方法和装置
TWI717490B (zh) 中繼傳輸的方法和裝置
WO2020164349A1 (zh) 数据传输控制方法及相关产品
US11844010B2 (en) Relay transmission method and relay node
CN115707036A (zh) 传输数据的方法和装置
CN108605378B (zh) 一种数据传输方法、装置及相关设备
WO2017035754A1 (zh) 发送数据、接收数据的方法和装置
US20220345981A1 (en) Method and Apparatus for Forwarding Data Among Network Nodes in Maritime Network
CN109906646A (zh) 信息传输方法、基站和终端设备
CN107294867B (zh) 一种用以促成点对点通信的方法及其相关装置
WO2021078129A1 (zh) 通信方法和通信装置
JP2020519108A (ja) ページング方法及び装置
WO2019136933A1 (zh) 中继传输的方法和中继节点
JP2020503739A (ja) データ処理方法及び装置
WO2023092482A1 (zh) 一种通过中继终端进行通信的方法及装置、终端
JP6408159B2 (ja) 通信方法及び装置

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

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

Country of ref document: EP

Kind code of ref document: A1