Search

Search papers and lessons

Device-to-Device Communication

Level 3 · 11 min read

Device-to-device communication lets nearby phones send data straight to each other, bypassing the base station; it saves network capacity but adds interference to cellular users.

On this page

  • Colour = topic mix
  • Calculus
  • Probability
  • Discrete math
  • Communications
  • Linear algebra
  • Electromagnetism
  • ReadReady to readNot yet

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 P=0.1P = 0.1 W. To keep the numbers easy, take the received power to be PP divided by the square of the distance in metres. This drops the constants of the real formula, so only the ratios below carry meaning.

  1. 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.
  2. Measure the direct signal. The signal from A reaches B with power P/202=0.1/400=2.5×10−4P / 20^2 = 0.1 / 400 = 2.5 \times 10^{-4} W. Check: a 20 m path is short, so the signal is strong.
  3. Measure the uplink signal. The signal from A reaches S with power P/10002=0.1/106=10−7P / 1000^2 = 0.1 / 10^6 = 10^{-7} W. Check: the direct signal is 2.5×10−4/10−7=25002.5 \times 10^{-4} / 10^{-7} = 2500 times stronger than the uplink to the tower.
  4. 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.
  5. 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 0.1/5002=4×10−70.1 / 500^2 = 4 \times 10^{-7} W. A's transmission reaches S with 10−710^{-7} W, and the noise at S is 10−710^{-7} W. The SINR for C is 4×10−7/(10−7+10−7)=24 \times 10^{-7} / (10^{-7} + 10^{-7}) = 2, 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.
  6. 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.
1002003004005000102030405060distance between the two phones (m)gain of direct over uplink (dB)
  • direct link gain over uplink
With the tower 1000 m away, the direct link at 20 m gains about 34 dB over the uplink, the 2500-fold ratio from step 3. The gain shrinks as the phones move apart.
flowchart LR
  A[Phone A] -->|direct, 20 m| B[Phone B]
  A -->|uplink, 1000 m| S[Base station]
  S -->|downlink| B

The math

Definition: Device-to-device link

Two devices are a distance dd apart, and the first transmits with power PtP_t. In free space the received power is

Pr=K Ptd n,P_r = K \, \frac{P_t}{d^{\,n}},

where KK is a constant that depends on wavelength and antenna gains, and nn 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 dDd_D be the phone-to-phone distance and dUd_U the phone-to-tower distance. Then

PdirectPuplink=(dUdD)n.\frac{P_{\text{direct}}}{P_{\text{uplink}}} = \left(\frac{d_U}{d_D}\right)^{n}.

For dU=1000d_U = 1000 m, dD=20d_D = 20 m and n=2n = 2, the ratio is (1000/20)2=2500(1000/20)^2 = 2500. In decibels this is 10log⁡102500≈33.9810 \log_{10} 2500 \approx 33.98 dB.

Step 5 in symbols: SINR at the tower

The SINR of the cell-edge user C at the tower S is

SINRC=PCPD+N,\mathrm{SINR}_C = \frac{P_C}{P_D + N},

where PCP_C is C's received power, PDP_D is the power of A's transmission at S, and NN is the noise power. This is the SINR definition with one interferer. Substituting the values from step 5 gives 4×10−7/(10−7+10−7)=24 \times 10^{-7} / (10^{-7} + 10^{-7}) = 2.

Step 6 in symbols: which route wins

Let the two hops of the relayed route have rates R1R_1 and R2R_2 in bits per second, each given by the Shannon form, which uses the base-2 logarithm R=Blog⁡2(1+SINR)R = B \log_2(1 + \mathrm{SINR}) for bandwidth BB (see Channel Capacity). A relay that receives, decodes and forwards the data delivers it at the rate of its slower hop, min⁡(R1,R2)\min(R_1, R_2), but it spends two slots on each bit, so its average rate is

Rrelay=12min⁡(R1,R2).R_{\text{relay}} = \tfrac{1}{2}\min(R_1, R_2).

The network chooses the direct route when Rdirect>RrelayR_{\text{direct}} > R_{\text{relay}}. The relay idea is developed in Relay Channel.

Worked examples

Example
Tiny: the 20 dB rule

Phone A is 100 m from the tower. Phone B is 10 m from A. Compare the direct signal with the uplink signal, using n=2n = 2.

  1. The ratio of received powers is (100/10)2=102=100(100/10)^2 = 10^2 = 100.
  2. In decibels, 10log⁡10100=2010 \log_{10} 100 = 20 dB.
  3. Interpretation: the direct signal is 20 dB stronger. At n=2n = 2, each tenfold cut in distance gains 20 dB, the same rule as the free-space formula.
Example
Standard: the interference at the tower

Use the setup of the walkthrough. The pair's transmission reaches S with power 10−710^{-7} W. The cell-edge user C reaches S with 4×10−74 \times 10^{-7} W. The noise at S is 10−710^{-7} W. The channel is 1 MHz wide.

  1. With the pair on C's channel, SINRC=4/(1+1)=2\mathrm{SINR}_C = 4 / (1 + 1) = 2, which is 10log⁡102≈3.0110 \log_{10} 2 \approx 3.01 dB.
  2. The rate bound for C is Blog⁡2(1+2)=106×log⁡23≈1.585B \log_2 (1 + 2) = 10^6 \times \log_2 3 \approx 1.585 Mbit/s.
  3. With the pair on another channel, the interference term drops out, so SINRC=4/1=4\mathrm{SINR}_C = 4 / 1 = 4, which is 10log⁡104≈6.0210 \log_{10} 4 \approx 6.02 dB.
  4. The rate bound becomes 106×log⁡25≈2.32210^6 \times \log_2 5 \approx 2.322 Mbit/s.
  5. 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.
Example
Realistic: two cars on a 10 MHz sidelink

Two cars are 50 m apart on a road, and a base station is 800 m from them. Use an urban path-loss exponent n=3.5n = 3.5, 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.

  1. The ratio of received powers, direct to uplink, is (800/50)3.5=163.5=214=16384(800/50)^{3.5} = 16^{3.5} = 2^{14} = 16384.
  2. The direct rate bound is 107log⁡2(1+100)=107×log⁡2101≈66.610^7 \log_2 (1 + 100) = 10^7 \times \log_2 101 \approx 66.6 Mbit/s.
  3. The uplink SINR at the tower is 100/16384≈0.0061100 / 16384 \approx 0.0061, which is 10log⁡100.0061≈−22.110 \log_{10} 0.0061 \approx -22.1 dB.
  4. The uplink rate bound is 107log⁡2(1.0061)≈87.810^7 \log_2 (1.0061) \approx 87.8 kbit/s.
  5. 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 87.8/2≈43.987.8 / 2 \approx 43.9 kbit/s.
  6. The direct route carries about 66.6 Mbit/s/43.9 kbit/s≈150066.6 \text{ Mbit/s} / 43.9 \text{ kbit/s} \approx 1500 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 n=3.5n = 3.5. By what factor does the direct route's advantage over the uplink change? Answer: the new ratio is (800/100)3.5=83.5=210.5≈1448(800/100)^{3.5} = 8^{3.5} = 2^{10.5} \approx 1448, down from 16384. The advantage falls by a factor of 16384/1448≈11.316384 / 1448 \approx 11.3.

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 n=2n = 2, 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 (dU/dD)n(d_U/d_D)^n.
  • 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.

Check yourself

QuestionWhy does the relayed route cost two slots, while the direct route costs one?Show answer
The relayed route sends the data twice: first from the phone up to the base station, then down to the other phone. Each hop needs its own transmission on the channel. The direct route needs only one transmission, from one phone to the other.
QuestionTwo phones are 40 m apart, and the base station is 800 m from one of them. With path-loss exponent n = 2, by how many [[decibel|decibels]] is the direct signal stronger than the uplink to the tower?Show answer
The ratio is (800/40)2=202=400(800/40)^2 = 20^2 = 400. In decibels, 10log⁡10400≈26.0210 \log_{10} 400 \approx 26.02 dB. The direct signal is about 26 dB stronger.
QuestionWhy does a direct link between two nearby phones interfere with a cellular user, even though the phones are close to each other?Show answer
The phones' transmission still reaches the base station. On a shared channel it arrives as extra power beside the cellular user's signal, and the base station cannot separate the two by power alone. So the interference term in the SINR grows. The phones being close to each other does not stop their signal from reaching the tower.
QuestionA planner must allow direct links in a crowded stadium with many pairs. Give one plan and say what it costs.Show answer
Let the base station assign each active pair a channel from a reserved pool, or limit the transmit power of pairs near the stands. The cost is fewer channels left for cellular users in the same area, and a base station that must track which pairs are active.

Sources