CDMA and Spread Spectrum

From Military Secrecy to Commercial Cellular

Spread-spectrum communication was originally developed for military applications: by spreading a signal across a bandwidth far wider than necessary, the signal becomes difficult to detect and resistant to narrowband jamming. In the 1990s, Qualcomm's IS-95 standard brought Code Division Multiple Access (CDMA) to commercial cellular networks, demonstrating that spread spectrum could also serve as a powerful multiple access technique. Unlike FDMA and TDMA, CDMA allows all users to transmit simultaneously over the entire bandwidth, separating them by unique spreading codes. This approach trades hard resource partitioning for graceful degradation: adding a user increases interference for all, but the system does not hit a hard capacity wall. CDMA formed the basis of 3G (WCDMA, cdma2000) and its principles remain relevant in 5G positioning and IoT systems.

Definition:

Direct-Sequence Spread Spectrum (DS-SS)

In direct-sequence spread spectrum, user kk's data symbol bk∈{+1,βˆ’1}b_k \in \{+1, -1\} is multiplied by a spreading code ck=[ck,1,ck,2,…,ck,N]T\mathbf{c}_k = [c_{k,1}, c_{k,2}, \ldots, c_{k,N}]^T of length NN (the spreading factor or processing gain), where each chip ck,n∈{+1/N,βˆ’1/N}c_{k,n} \in \{+1/\sqrt{N}, -1/\sqrt{N}\} and βˆ₯ckβˆ₯2=1\|\mathbf{c}_k\|^2 = 1.

The transmitted chip-rate signal for user kk is:

sk=Pk bk ck\mathbf{s}_k = \sqrt{P_k}\, b_k \,\mathbf{c}_k

The received signal at the base station is:

r=βˆ‘k=1Khksk+n=βˆ‘k=1KPk hk bk ck+n\mathbf{r} = \sum_{k=1}^{K} h_k \mathbf{s}_k + \mathbf{n} = \sum_{k=1}^{K} \sqrt{P_k}\, h_k\, b_k\, \mathbf{c}_k + \mathbf{n}

where hkh_k is user kk's channel coefficient and n∼CN(0,Οƒ2IN)\mathbf{n} \sim \mathcal{CN}(\mathbf{0}, \sigma^2 \mathbf{I}_N).

The despreading operation for user kk is a matched-filter (correlator) receiver:

zk=ckHr=Pk hk bk+βˆ‘jβ‰ kPj hj bj ckHcj+ckHnz_k = \mathbf{c}_k^H \mathbf{r} = \sqrt{P_k}\, h_k\, b_k + \sum_{j \neq k} \sqrt{P_j}\, h_j\, b_j\, \mathbf{c}_k^H \mathbf{c}_j + \mathbf{c}_k^H \mathbf{n}

The processing gain NN is the ratio of the chip bandwidth to the data bandwidth: N=Wchip/WdataN = W_{\text{chip}} / W_{\text{data}}.

After despreading, the noise power is unchanged (Οƒ2\sigma^2) since the code is unit-norm, but the interference from user jj is scaled by the cross-correlation ckHcj\mathbf{c}_k^H \mathbf{c}_j. If codes are orthogonal, the interference vanishes exactly.

,

Definition:

Walsh-Hadamard Codes and the Near-Far Problem

Walsh-Hadamard codes are a family of NN orthogonal binary sequences of length NN (where NN is a power of 2), constructed recursively via the Hadamard matrix:

H1=[1],H2N=[HNHNHNβˆ’HN]\mathbf{H}_1 = [1], \quad \mathbf{H}_{2N} = \begin{bmatrix} \mathbf{H}_N & \mathbf{H}_N \\ \mathbf{H}_N & -\mathbf{H}_N \end{bmatrix}

Row kk of HN/N\mathbf{H}_N / \sqrt{N} serves as the spreading code ck\mathbf{c}_k. These codes satisfy ciHcj=0\mathbf{c}_i^H \mathbf{c}_j = 0 for i≠ji \neq j, eliminating multi-access interference in synchronous systems.

The near-far problem arises when users are at different distances from the base station. If user jj is much closer than user kk, then Pj∣hj∣2≫Pk∣hk∣2P_j |h_j|^2 \gg P_k |h_k|^2, and the residual interference after despreading (due to imperfect code orthogonality in asynchronous or multipath channels) can overwhelm user kk's signal:

SIRk=Pk∣hk∣2βˆ‘jβ‰ kPj∣hj∣2∣ckHcj∣2\text{SIR}_k = \frac{P_k |h_k|^2} {\sum_{j \neq k} P_j |h_j|^2 |\mathbf{c}_k^H \mathbf{c}_j|^2}

Without power control, the near-far effect causes catastrophic performance degradation for distant users. Tight closed-loop power control (updating at ∼\sim800 Hz in IS-95) is essential for CDMA systems.

,

CDMA Spreading and Despreading

Visualise how spreading codes separate users in a CDMA system. The plot shows the BER performance as a function of the number of users and processing gain. Observe how increasing the processing gain NN allows the system to support more users at a given BER target, and how the SNR affects the MAI floor.

Parameters
16
4
10

Near-Far Effect in CDMA

Explore how the near-far problem degrades CDMA performance. User distances from the base station determine received power through path loss. Adjust the near and far user distances, the number of users, and the path-loss exponent to see how the SIR of the far user collapses when near users transmit at the same power.

Parameters
0.1
1
8
3.5

Rake Receiver for DS-CDMA

Complexity: O(NL)O(NL) per symbol period: LL despreading operations each of length NN, plus O(L)O(L) for the MRC combining.
Input: Received signal r(t)\mathbf{r}(t), spreading code ck\mathbf{c}_k,
channel estimates {h^k,β„“,Ο„^β„“}β„“=1L\{\hat{h}_{k,\ell}, \hat{\tau}_\ell\}_{\ell=1}^{L} for LL multipath taps
Output: Decision statistic zkz_k for user kk's symbol
1. for β„“=1,…,L\ell = 1, \ldots, L do
2. \quad Delay-align: rℓ←r(tβˆ’Ο„^β„“)\mathbf{r}_\ell \leftarrow \mathbf{r}(t - \hat{\tau}_\ell)
3. \quad Despread (finger β„“\ell): yℓ←ckHrβ„“y_\ell \leftarrow \mathbf{c}_k^H \mathbf{r}_\ell
4. end for
5. Maximal-ratio combine across fingers:
6. zkβ†βˆ‘β„“=1Lh^k,β„“βˆ—β€‰yβ„“\quad z_k \leftarrow \sum_{\ell=1}^{L} \hat{h}_{k,\ell}^* \, y_\ell
7. Hard decision: b^k←sign(Re(zk))\hat{b}_k \leftarrow \text{sign}(\text{Re}(z_k))
8. return b^k\hat{b}_k

The Rake receiver exploits multipath diversity by treating each resolvable path as an independent copy of the signal. With LL resolvable paths and MRC combining, the effective diversity order is LL. The name "Rake" comes from the analogy of the receiver fingers collecting energy from scattered paths, like the tines of a garden rake. In WCDMA (3G), Rake receivers with 4--6 fingers were standard.

,

Example: Processing Gain and CDMA Capacity

A DS-CDMA system operates with chip rate Wc=3.84W_c = 3.84 Mcps (WCDMA standard) and data rate Rb=12.2R_b = 12.2 kbps (voice). Assume equal received power for all users (perfect power control) and a required Eb/N0=7E_b/N_0 = 7 dB.

(a) Compute the processing gain NN. (b) Estimate the maximum number of users per cell. (c) What happens if the processing gain is halved (higher data rate)?

Quick Check

A CDMA system with processing gain N=64N = 64 and K=16K = 16 users (all with equal received power) uses a matched-filter receiver. What is the approximate SIR at the despreader output?

64 (18.1 dB)

4.27 (6.3 dB)

16 (12.0 dB)

1 (0 dB)

Why This Matters: IS-95 and WCDMA (3G)

IS-95 (cdmaOne): The first commercial CDMA standard (1995), developed by Qualcomm. It used a chip rate of 1.2288 Mcps with 64-chip Walsh codes for the downlink and long PN sequences for the uplink. IS-95 demonstrated 6--10Γ—\times capacity improvement over analogue AMPS, primarily through voice activity detection, soft handoff, and aggressive power control (800 Hz update rate).

WCDMA (UMTS): The 3GPP standard for 3G (Release 99, 2001) used a chip rate of 3.84 Mcps with variable spreading factors (4--512) to support data rates from 12.2 kbps to 2 Mbps. Key features included Rake receivers, closed-loop power control, and soft/softer handoff. HSPA+ later added advanced receivers (interference cancellation, equalisation) to push peak rates beyond 40 Mbps.

The transition from 3G (CDMA-based) to 4G (OFDMA-based) was driven by the difficulty of supporting high data rates with CDMA: the near-far problem and MAI become severe when spreading factors are small. OFDMA's orthogonality eliminates these issues.

⚠️Engineering Note

Power Control Requirements in CDMA Systems

The near-far problem makes fast closed-loop power control the single most critical mechanism in CDMA systems. Without it, a user 10 dB closer to the base station creates 40 dB more interference (with path-loss exponent Ξ±=4\alpha = 4), overwhelming distant users.

IS-95/cdmaOne requirements:

  • Closed-loop power control rate: 800 Hz (one update per 1.25 ms power control group)
  • Step size: Β±1\pm 1 dB per update
  • Target: equalise all users' received power at the BS to within Β±1\pm 1 dB

WCDMA (3G) requirements:

  • Inner loop: 1500 Hz update rate, Β±1\pm 1 dB steps
  • Outer loop: adjusts the SIR target based on measured BLER (typically targeting 1% BLER for voice)
  • Dynamic range: 80 dB (from -50 dBm to +30 dBm)

Why OFDM replaced CDMA (4G onwards): As data rates increased, the spreading factor NN decreased (e.g., N=4N = 4 for HSDPA at 3.6 Mbps), reducing interference suppression. The near-far problem became intractable at low spreading factors, and OFDMA's inherent orthogonality eliminated the problem entirely.

Practical Constraints
  • β€’

    IS-95: 800 Hz power control, Β±1 dB steps

  • β€’

    WCDMA: 1500 Hz, 80 dB dynamic range

  • β€’

    Low spreading factor (N < 8): near-far problem becomes severe

πŸ“‹ Ref: 3GPP TS 25.214 (WCDMA power control), TIA/EIA-95B (IS-95)

CDMA

Code Division Multiple Access: a multiple access technique in which all users transmit simultaneously over the same bandwidth, separated by unique spreading codes. Each user's signal is spread to a bandwidth NN times wider than necessary, where NN is the processing gain.

Related: DS-SS, Processing Gain

DS-SS

Direct-Sequence Spread Spectrum: a spread-spectrum technique in which the data signal is multiplied by a high-rate pseudorandom chip sequence, spreading the signal bandwidth by a factor of NN (the processing gain).

Related: CDMA, Processing Gain

Processing Gain

The ratio N=Wchip/WdataN = W_{\text{chip}}/W_{\text{data}} of the spread bandwidth to the data bandwidth in a spread-spectrum system. It determines the interference suppression capability: each interfering user's power is reduced by approximately 1/N1/N after despreading.

Related: CDMA, DS-SS

Near-Far Problem

The phenomenon in CDMA systems where a nearby high-power user overwhelms the desired signal from a distant low-power user, causing severe performance degradation. Mitigated by tight closed-loop power control or multi-user detection.

Related: CDMA