Algorithm Search⌘K

Techniqueintro

Code-division multiple access

Also called CDMA.

Lets all users share the same time and band by giving each a spreading code with low crosscorrelation to the others; the receiver picks out a user by correlating with its code.

Code-division multiple access, or CDMA, lets many users send at the same time in the same frequency band. Each user multiplies its data by its own fast sequence of chips, its code or signature, which spreads the signal over a band much wider than the data needs, as in direct-sequence spread spectrum. The receiver correlates the sum of all signals with the code of one user. That user's signal adds up coherently over the NN chips of a symbol, while each other user contributes only its crosscorrelation with that code. If the codes are nearly orthogonal, every user hears the others as a small noise. Unlike FDMA and TDMA, CDMA has no hard limit on the number of users: each new user adds a little interference for everyone. It was the air interface of IS-95, of the third generation systems UMTS and cdma2000, and of GPS. Its main weakness is the near-far problem, which is solved by power control or by multiuser detection.

In plain words

Imagine a room where many pairs of people talk at the same time, each pair in a different language. You can follow your own partner because you understand only that language, and the other talk sounds like a murmur. CDMA gives each user a code instead of a language. The receiver for one user knows that code and listens for it. The other users' signals do not match the code, so they sound like weak noise. The more people talk, the louder the murmur gets, so there is a soft limit on how many users can share the room. If one person shouts, the others can no longer be heard, which is why CDMA systems control how loud each user is.

When it applies

  • Many users share one band and want to send at the same time without a central schedule of time slots or frequencies.
  • The available bandwidth is much larger than the data rate of one user, so each symbol can be spread over many chips.
  • The traffic is bursty or the users are often silent, as in voice, so the interference averages over many users.
  • The system needs resistance to narrowband interference, multipath or interception, which spreading gives as a side effect.
  • The receiver can control the users' powers, or can afford a multiuser detector.

The template

  1. CDMA(users 1..K, data b_k[m], N chips per symbol)
  2. 1for each user k, choose a code c_k ∈ {±1}^N ▷ hole: CODE-FAMILY
  3. 2transmitter k sends x_k(t) = A_k b_k[m] c_k[i] for chip i of symbol m
  4. 3the channel adds all users: y = Σ_k A_k b_k c_k / √N + noise
  5. 4set the powers A_k so the receiver can separate the users ▷ hole: POWER-CONTROL
  6. 5receiver: z_k = c_kᵀ y / √N for every k ▷ the matched filters
  7. 6decide all b_k from z_1..z_K ▷ hole: DETECTOR

The three holes are where designs differ. CODE-FAMILY chooses the codes: orthogonal codes such as Walsh or OVSF codes when the users are synchronous, and codes with low crosscorrelation at all shifts, such as Gold sequences, Kasami sequences or m-sequences, when they are not. The Welch bound limits how small the crosscorrelations of many codes can be. POWER-CONTROL sets the received powers, usually equal for all users. DETECTOR is the single-user matched filter in the simplest systems, a rake receiver on multipath channels, or a multiuser detector.

With unit-norm codes sk=ck/Ns_k = c_k / \sqrt N, the outputs of line L5 are z=RAb+nz = R A b + n with Rkj=sk⊤sjR_{kj} = s_k^\top s_j. The interference on user kk is ∑j≠kRkjAjbj\sum_{j \ne k} R_{kj} A_j b_j. For random ±1\pm 1 codes, E[Rkj2]=1/NE[R_{kj}^2] = 1/N, so with equal powers the interference power on each user is about (K−1)/N(K - 1)/N times the user's own power. This is the sense in which the processing gain NN divides the interference.

Capacity rule. If all users arrive with equal power, the bandwidth is WW, the data rate is RbR_b, and each user needs Eb/I0=γE_b/I_0 = \gamma, where I0I_0 is the interference density, then, ignoring thermal noise and other cells, the number of users is about

K≈1+W/Rbγ.K \approx 1 + \frac{W / R_b}{\gamma}.

This is a rule of thumb from the analysis of Gilhousen and others. Voice activity, sectors and the interference from other cells change it by large factors.

Classic examples

  • IS-95. The second generation cellular standard used a chip rate of 1.2288 Mchip/s for 9.6 kbit/s of voice, a processing gain of 128, or 21.1 dB. On the downlink the users were separated by 64 Walsh codes; on the uplink, by long pseudonoise codes, with fast closed loop power control against the near-far problem. A rake receiver combined the multipath components.
  • UMTS and cdma2000. The third generation systems used wideband CDMA with OVSF codes to give users different spreading factors and data rates, and scrambling codes from Gold sequences to separate cells and phones.
  • GPS. Each satellite sends on the same carrier with its own C/A code, a Gold code of length 1023. The receiver finds each satellite by correlating with its code.
  • Multiuser receivers. The decorrelating detector, the MMSE detector and successive interference cancellation fill the DETECTOR hole with receivers that use all users' codes.

Variations

  • Synchronous and asynchronous. Synchronous users, as on a downlink, can use exactly orthogonal codes. Asynchronous users, as on an uplink, see the crosscorrelations at all relative shifts.
  • Short and long codes. A short code repeats every symbol, so RR is constant and multiuser detection is easier. A long code changes from symbol to symbol, which makes the interference look random.
  • Frequency hopping CDMA. Each user hops among frequencies by its own pattern, and users collide only when they hop to the same frequency at the same time.
  • Multicarrier CDMA. The chips are sent on different subcarriers of an OFDM system instead of in time.
  • Random spreading. Analyses with random codes give the large system limits of the detectors.
  • Overloaded and sparse CDMA. More users than chips, with sparse codes and iterative detection, as in some designs for non-orthogonal multiple access.

Pitfalls

  • Near-far. With matched filter receivers, a strong user drowns a weak one through a small crosscorrelation. Use power control or a multiuser detector.
  • Orthogonality lost on the channel. Orthogonal codes stay orthogonal only for aligned chips. Multipath delay and timing offsets bring back crosscorrelation. Walsh codes have poor correlation at shifts and need a scrambling code on top.
  • Interference limited. Each extra user raises the interference of all others. The capacity is soft, and an overloaded cell degrades every user.
  • Counting users with the rule of thumb. The capacity rule ignores other cells, fading and imperfect power control, and each of them can cost several dB.
  • Code shortage. There are only NN orthogonal codes of length NN, so orthogonal channelization needs a code tree such as OVSF and careful assignment.

Exercises

  1. Map the bits 0↦+10 \mapsto +1 and 1↦−11 \mapsto -1. Compute the normalized periodic crosscorrelation of the m-sequence 10010111001011 with its cyclic shift 00101110010111. Answer. The signs are (−1,+1,+1,−1,+1,−1,−1)(-1, +1, +1, -1, +1, -1, -1) and (+1,+1,−1,+1,−1,−1,−1)(+1, +1, -1, +1, -1, -1, -1). The products sum to −1-1, so the correlation is −1/7-1/7, as for every nonzero shift of an m-sequence of length 7.
  2. Two codes have independent, equally likely ±1\pm 1 chips. Show that the normalized crosscorrelation ρ=1N∑icidi\rho = \frac{1}{N} \sum_i c_i d_i has mean 0 and E[ρ2]=1/NE[\rho^2] = 1/N. Answer. The products cidic_i d_i are independent and equally likely ±1\pm 1, with mean 0 and variance 1. So ρ\rho has mean 0 and variance N/N2=1/NN / N^2 = 1/N.
  3. Use the capacity rule with W/Rb=128W / R_b = 128 and Eb/I0=7E_b/I_0 = 7 dB. How many equal-power users fit in one isolated cell? Answer. 77 dB is a ratio of about 5.015.01, so K≈1+128/5.01≈26.5K \approx 1 + 128 / 5.01 \approx 26.5, about 26 users before voice activity and sectors.
  4. Two users have crosscorrelation ρ\rho and no noise. For which amplitude ratio does the matched filter of user 1 fail for some bits? Answer. z1=A1b1+ρA2b2z_1 = A_1 b_1 + \rho A_2 b_2 has the wrong sign for some b2b_2 when ∣ρ∣A2>A1|\rho| A_2 > A_1, that is, when A2/A1>1/∣ρ∣A_2 / A_1 > 1/|\rho|. At equality, z1=0z_1 = 0 for some bits, a tie.

References

  1. Klein S. Gilhousen, Irwin M. Jacobs, Roberto Padovani, Andrew J. Viterbi, Lindsay A. Weaver and Charles E. Wheatley, On the capacity of a cellular CDMA system, IEEE Transactions on Vehicular Technology 40(2), 1991, the capacity of a CDMA cell in users, from the processing gain and the required Eb/I0, with power control, voice activity and sectorization
  2. David Tse and Pramod Viswanath, Fundamentals of Wireless Communication, Cambridge University Press, 2005, Section 4.3, CDMA
  3. John G. Proakis and Masoud Salehi, Digital Communications, fifth edition, McGraw-Hill, 2008, Chapter 12, Spread spectrum signals for digital communications, and Chapter 16, Multiuser communications
  4. Sergio Verdú, Multiuser Detection, Cambridge University Press, 1998, Chapters 4 to 7 (receivers for the CDMA channel)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW3 standard
  • five exercises