TL;DR
Device-to-device communication, or D2D, lets two nearby devices, such as phones, send data straight to each other instead of sending it through a base station. A direct path is often much shorter than the trip to a tower, so it can be faster, and it uses less of the cellular network's capacity. The cost is that the direct link shares radio channels with cellular users, so the network has to control the interference it causes.
Builds on: Cellular Network, SINR, Free-Space Path Loss · Leads to: Network Densification
Where it's used
Sharing between phones. Wi-Fi Direct lets two phones connect over Wi-Fi without a router in between. Apple's AirDrop uses Bluetooth, a short-range radio standard, to find nearby devices and then a direct Wi-Fi link to move the file. Neither transfer needs the cellular network.
Rescue and public safety. A team inside a tunnel, a basement or a disaster zone may be out of reach of a working tower. 3GPP, the body that writes the LTE and 5G specifications, added proximity services so that radios can talk directly, and public-safety users were a main target.
Vehicles. A car may need to tell the car behind it that it is braking. Vehicle-to-everything, or V2X, communication sends such messages directly between vehicles. The LTE and 5G standards define a sidelink, a direct radio link between devices, for this purpose.
Crowded venues. Traffic that stays local never reaches the base station, so it adds nothing to the load on the tower. In principle this frees capacity for everyone else, which is one reason operators study D2D alongside densification.
How it works
Take two phones, A and B, that are 20 m apart. Both are about 1000 m from a base station S. Phone A transmits at power W. To keep the numbers easy, take the received power to be divided by the square of the distance in metres. This drops the constants of the real formula, so only the ratios below carry meaning.
- Find the two routes. A can send to B through S, which takes an uplink (phone to tower) from A to S and then a downlink (tower to phone) from S to B. Or A can send to B directly. Check: the relayed route has two hops, and the direct route has one.
- Measure the direct signal. The signal from A reaches B with power W. Check: a 20 m path is short, so the signal is strong.
- Measure the uplink signal. The signal from A reaches S with power W. Check: the direct signal is times stronger than the uplink to the tower.
- Count the air time. The relayed route sends the data twice, uplink and downlink, so it occupies two time slots. The direct route uses one. Check: two slots against one.
- See what the direct link does to others. Suppose A and B reuse the uplink channel (a shared resource, see Multiple Access) of a cell-edge user C, who is 500 m from S. C reaches S with power W. A's transmission reaches S with W, and the noise at S is W. The SINR for C is , which is 3.01 dB. Check: if the pair used a channel that no cellular user needed, the SINR for C would be 4, or 6.02 dB.
- Pick the faster route. The network compares the two routes, counting the two slots of the relayed route, and uses the better one. Check: the decision rule is in The math, and it depends on the SINR of every link involved.
- direct link gain over uplink
flowchart LR A[Phone A] -->|direct, 20 m| B[Phone B] A -->|uplink, 1000 m| S[Base station] S -->|downlink| B
The math
Two devices are a distance apart, and the first transmits with power . In free space the received power is
where is a constant that depends on wavelength and antenna gains, and is the path-loss exponent, which equals 2 in free space.
Step 3 in symbols: the ratio of the two routes
The direct signal and the uplink signal are sent with the same power, so their ratio depends only on distance. Let be the phone-to-phone distance and the phone-to-tower distance. Then
For m, m and , the ratio is . In decibels this is dB.
Step 5 in symbols: SINR at the tower
The SINR of the cell-edge user C at the tower S is
where is C's received power, is the power of A's transmission at S, and is the noise power. This is the SINR definition with one interferer. Substituting the values from step 5 gives .
Step 6 in symbols: which route wins
Let the two hops of the relayed route have rates and in bits per second, each given by the Shannon form, which uses the base-2 logarithm for bandwidth (see Channel Capacity). A relay that receives, decodes and forwards the data delivers it at the rate of its slower hop, , but it spends two slots on each bit, so its average rate is
The network chooses the direct route when . The relay idea is developed in Relay Channel.
Worked examples
Phone A is 100 m from the tower. Phone B is 10 m from A. Compare the direct signal with the uplink signal, using .
- The ratio of received powers is .
- In decibels, dB.
- Interpretation: the direct signal is 20 dB stronger. At , each tenfold cut in distance gains 20 dB, the same rule as the free-space formula.
Use the setup of the walkthrough. The pair's transmission reaches S with power W. The cell-edge user C reaches S with W. The noise at S is W. The channel is 1 MHz wide.
- With the pair on C's channel, , which is dB.
- The rate bound for C is Mbit/s.
- With the pair on another channel, the interference term drops out, so , which is dB.
- The rate bound becomes Mbit/s.
- Interpretation: the pair cost C about 0.74 Mbit/s of its bound, even though the pair's own signal is strong. The network must either move the pair to another channel or accept the loss.
Two cars are 50 m apart on a road, and a base station is 800 m from them. Use an urban path-loss exponent , which is larger than the free-space value because buildings absorb and reflect the signal. Assume the direct link is limited only by noise, with an SINR of 100 (20 dB). The channel is 10 MHz wide. These are round numbers for a model, not measurements.
- The ratio of received powers, direct to uplink, is .
- The direct rate bound is Mbit/s.
- The uplink SINR at the tower is , which is dB.
- The uplink rate bound is kbit/s.
- Assume the downlink is at least as strong as the uplink, so the uplink is the slower hop. The relayed route then needs two slots, so its average rate is about kbit/s.
- The direct route carries about times as much. Interpretation: when the cars are close, the route through the tower is a poor choice, and the direct route wins by a wide margin. The gain comes from distance, not from a faster radio.
Try it: the same cars move to 100 m apart, with the tower still 800 m away and . By what factor does the direct route's advantage over the uplink change? Answer: the new ratio is , down from 16384. The advantage falls by a factor of .
Common mistakes and tradeoffs
It is tempting to think that a direct link is always faster than the cellular route. In fact the direct pair shares spectrum with cellular users, and the interference it adds can cost more capacity than the direct link saves, as the standard example shows.
It is tempting to think that device-to-device means the network is absent. In fact the base station often helps by finding the nearby pair, assigning the channel and setting the power. This is called network-assisted D2D. Phones can also talk directly with no network at all, but then nobody manages the interference.
It is tempting to think that doubling the distance halves the signal. In fact, at , doubling the distance cuts the power to a quarter, a loss of about 6 dB, because power falls as the square of distance.
When to use it. Direct links suit nearby peers that exchange local data, emergency teams outside coverage, and vehicles that need fast local messages.
When not to use it. Avoid D2D when the peers are far apart, when many pairs would reuse the same channels in a dense crowd, or when the network cannot coordinate them. The relayed route through the tower, or a fixed helper node as in a relay channel, is then simpler and more predictable.
History
Short-range radio systems that link devices without a fixed base station were developed from the late 1990s. Bluetooth is the best known. Cellular networks were built around the base station, and research on letting cellular phones communicate directly grew in the 2000s.
Standardisation came later. 3GPP added proximity services to LTE in Release 12, finished around 2014 to 2015. Later releases extended the sidelink to public safety, to vehicles, and into 5G.
Recap
- D2D lets nearby devices send data directly, which can be faster and uses less cellular capacity.
- The direct route wins when its signal is much stronger than the uplink to the tower, a ratio of .
- The direct link can interfere with cellular users on the same channel, so SINR must be checked.
- The network compares the direct rate with the relayed rate, counting the relay's two slots.
- Read next: Relay Channel, which studies a helper node between sender and receiver, and Network Densification, which adds cells where demand is high.