Exercises
ex-ch19-01
EasyA TDMA system has bandwidth MHz, frame duration ms, and users with equal time slots. All users have equal power mW, noise PSD W/Hz, and flat-fading gains for all .
(a) Compute each user's burst power during its active slot. (b) Compute the per-user achievable rate. (c) Compute the system sum rate and compare with the MAC sum capacity.
In TDMA, each user transmits for seconds with burst power .
Burst power
(a) Each user's slot duration is ms. Burst power: mW = 1 W.
Per-user rate
(b)
Mbps.
Sum rate comparison
(c) TDMA sum rate: Mbps.
MAC sum capacity: Mbps.
For equal channel gains and equal power, TDMA achieves the sum capacity! The penalty arises only with unequal channels.
ex-ch19-02
EasyAn OFDMA system has subcarriers, bandwidth MHz, and users. User channel gains on each subcarrier are i.i.d. Rayleigh with .
(a) With round-robin allocation (32 subcarriers per user), compute the expected per-user rate. (b) With max-rate allocation (each subcarrier goes to the user with the best channel), compute the expected per-user rate using the multi-user diversity formula .
The expected maximum of i.i.d. exponential(1) random variables is .
Round-robin allocation
(a) Per-subcarrier SNR: assume and (for concreteness).
For Rayleigh fading: where bits/s/Hz (by numerical integration).
Mbps.
Max-rate (opportunistic) allocation
(b) Each subcarrier goes to . By symmetry, each user gets subcarriers on average, but with better channels:
The effective per-subcarrier rate (with the best user): bits/s/Hz.
Per-user throughput: Mbps.
Multi-user diversity gain: (56% improvement).
ex-ch19-03
MediumProve that for users with equal channel gains and equal power in an AWGN MAC, TDMA (or FDMA) with equal resource allocation achieves the sum capacity.
Hint: Show that the optimal resource fractions are when all SNRs are identical, and that the resulting sum rate equals .
With equal and , compute .
Equal allocation sum rate
With and :
Comparison with MAC sum capacity
The MAC sum capacity is:
These are identical, confirming that orthogonal access with equal allocation is sum-rate optimal when all users are symmetric.
ex-ch19-04
MediumTwo users share a Gaussian MAC with MHz and W/Hz. User 1 has W, ; user 2 has W, .
(a) Plot (or compute vertices of) the MAC capacity region. (b) Compute the sum rate achieved by FDMA with optimal bandwidth allocation. (c) What is the percentage loss of FDMA relative to the MAC sum rate?
The MAC capacity region is a pentagon with vertices at the origin, two corner points, and two intermediate points on the dominant face.
For optimal FDMA, optimise in .
SNR values
MAC capacity region vertices
Sum capacity: bits/s/Hz.
Corner A (decode user 2 first): , .
Corner B (decode user 1 first): , .
Optimal FDMA
Taking the derivative and setting to zero (numerically): .
.
Loss: .
ex-ch19-05
EasyIn a two-user NOMA system, user 1 (near) has , user 2 (far) has . Total power W, W. Power allocation: , .
(a) Compute the NOMA rate pair with SIC (decode user 2 first). (b) Verify that the sum rate equals .
After SIC removes user 2, user 1 sees no interference.
NOMA rates
(a) Decode user 2 first: bits/s/Hz.
Decode user 1 (interference-free): bits/s/Hz.
Sum rate check
(b) .
.
ex-ch19-06
MediumShow that for the two-user MAC with , the NOMA gain over TDMA (in terms of sum rate) scales as:
and simplify this for .
Use the high-SNR approximation for .
Compare the MAC sum rate with the TDMA sum rate.
High-SNR approximation
MAC sum rate: for .
TDMA with equal sharing ():
Gap computation
For (20 dB): bits/s/Hz.
The NOMA gain grows logarithmically with the channel gain asymmetry, which is why NOMA is most beneficial in near-far scenarios.
ex-ch19-07
HardFor the -user Gaussian MAC with equal channel gains and individual power constraints for all , show that NOMA (SIC) achieves the same sum rate as orthogonal access but with a strictly larger rate region (i.e., more rate tuples are achievable).
Specifically, show that the MAC capacity region is a contra-polymatroid with constraints, and that orthogonal access achieves only a subset of the boundary.
With equal channels and power, every SIC decoding order yields the same sum rate.
The MAC region is strictly larger than the orthogonal region because it includes asymmetric rate tuples not achievable by orthogonal schemes.
Symmetric MAC capacity region
With for all , the MAC constraints are:
The sum rate is achievable by any SIC order.
Orthogonal achievability of sum rate
Equal TDMA: for all . Sum: . Matches.
Larger rate region
Consider the rate tuple where user 1 gets rate (decoded last, seeing all others as noise already cancelled) and all others share the remaining sum rate.
With TDMA: or if user 1 gets the entire frame. But giving the full frame to user 1 leaves for .
With NOMA: while .
This asymmetric rate tuple is inside the MAC region but outside the orthogonal region, proving the strict inclusion.
ex-ch19-08
EasyTwo Walsh-Hadamard codes of length are and .
(a) Verify orthogonality: . (b) If user 1 sends and user 2 sends with equal power, compute the despreader outputs and in the absence of noise. (c) What happens if user 2's signal arrives with a 1-chip delay?
A 1-chip delay destroys the synchronous orthogonality of Walsh codes.
Orthogonality check
(a) .
Despreader outputs
(b) .
.
Perfect separation with zero MAI.
Effect of 1-chip delay
(c) With a 1-chip delay, the received code for user 2 becomes a cyclic shift: .
.
In this case, orthogonality is preserved. But for general Walsh code pairs, a chip delay can introduce non-zero cross-correlation of up to , destroying orthogonality.
ex-ch19-09
MediumA DS-CDMA system with processing gain uses random binary spreading codes ( i.i.d. with equal probability).
(a) Compute and for . (b) With equal-power users and SNR per bit of 10 dB, estimate the BER using the Gaussian approximation for MAI.
The cross-correlation is a sum of i.i.d. terms with zero mean and variance .
The Gaussian approximation treats MAI as Gaussian noise with variance .
Cross-correlation statistics
(a) (independent codes).
.
BER estimation
(b) MAI power from each interferer: .
Total MAI variance: .
Noise variance: .
Total interference + noise: .
SINR: (2.85 dB).
BER .
The MAI dominates the noise, illustrating the MAI-limited regime of CDMA.
ex-ch19-10
MediumDerive the capacity of a synchronous CDMA system with users, processing gain , and random i.i.d. codes in the large-system limit with fixed.
Show that the sum spectral efficiency (bits/s/Hz per chip) is:
in the absence of MAI (with optimal multiuser detection).
The code matrix forms a random matrix. The capacity is .
Use the Marcenko-Pastur law for the asymptotic eigenvalue distribution.
MIMO formulation
The CDMA system with random codes is equivalent to a MIMO MAC. The sum capacity per chip is:
Marcenko-Pastur limit
In the limit with , by the Marcenko-Pastur law:
where is the Marcenko-Pastur distribution. For the sum capacity with equal power and optimal multiuser detection:
At low (few users per chip): .
The simple formula applies to the single-user bound (all users decoded jointly).
ex-ch19-11
HardAnalyse the near-far effect quantitatively. In a CDMA cell with users, user 1 is at distance and users are at distance . Path loss is . All users transmit with the same power .
(a) Compute the SIR at the matched-filter output for user 1 (the far user) with random codes (processing gain ). (b) For , , , , compute the SIR in dB. (c) What transmit power ratio is needed to equalise the SIR (perfect power control)?
The SIR with random codes is approximately .
Far-user SIR
(a) After despreading, the MAI variance from each near user is . The signal power for user 1 is .
Numerical evaluation
(b) dB.
The far user is completely overwhelmed by the near users. Without power control, communication is impossible.
Power control requirement
(c) To equalise received power: .
Near users must reduce power by 40 dB (a factor of 10,000).
ex-ch19-12
EasyA pure ALOHA network has 50 users, each generating packets at rate packets per slot (slot = packet duration).
(a) Compute the offered load . (b) Compute the throughput and the average number of retransmissions per successful packet. (c) At what user count does the system reach peak throughput?
Average retransmissions = where the success probability for a tagged packet is .
Offered load
(a) .
Throughput
(b) .
Packet success probability: . Average transmissions: . Average retransmissions: per packet.
Peak throughput user count
(c) Peak at : users.
.
ex-ch19-13
MediumDerive the throughput of slotted ALOHA with capture: if two or more users transmit in the same slot, the strongest user succeeds if its received power exceeds the sum of all others by a factor (capture ratio).
Assume users with i.i.d. Rayleigh fading (received powers are i.i.d. exponential with mean ).
Show that the throughput is:
where is the transmission probability per user per slot.
With Rayleigh fading, when all are i.i.d. exponential.
Capture probability
Given users transmit in a slot, a tagged user captures if its power exceeds times the sum of the other users' powers. For i.i.d. :
By symmetry, any of the users can capture, so the probability of a successful transmission in the slot is , but at most one succeeds.
Overall throughput
\gamma_0 \to \inftyn = 1S = Kp(1-p)^{K-1} \to Ge^{-G}\gamma_0 = 0S = 1 - (1-p)^KG1/e\blacksquare$
ex-ch19-14
HardAnalyse the stability of slotted ALOHA using the drift analysis. Model the system state as the number of backlogged users . In each slot, each backlogged user retransmits with probability , and new arrivals follow a Poisson process with rate .
(a) Write the expected drift . (b) Show that the system is stable (negative drift) if and only if for the current backlog . (c) Prove that there exists a maximum stable throughput and that for , the system is unstable for all sufficiently large .
The drift is (new arrivals) minus (successful departures): .
Drift computation
(a) In a slot with backlogged users:
- Expected new arrivals: .
- Expected departures: probability that exactly one backlogged user transmits and no new arrival collides, approximately for large .
Stability condition
(b) requires .
The throughput is maximised at , giving .
Maximum stable throughput
(c) As : .
For (at small ): the drift is negative for large , ensuring stability.
For : for all sufficiently large , meaning the backlog grows without bound.
Therefore , matching the throughput analysis.
ex-ch19-15
EasyA TDD massive MIMO system has antennas, users, coherence time symbols, and UL/DL split of 1:3 (one quarter UL, three quarters DL).
(a) Compute the pilot overhead fraction. (b) Compute the number of DL data symbols per coherence interval. (c) If the per-user DL rate is 5 bits/s/Hz, what is the effective throughput accounting for overhead?
Pilot symbols come from the UL portion; DL data uses three quarters of the remaining symbols.
Pilot overhead
(a) Pilot length: symbols. Overhead: .
DL data symbols
(b) Data symbols: . UL data: symbols. DL data: symbols.
Effective throughput
(c) DL efficiency: . Effective rate: bits/s/Hz.
Per-user throughput: if bandwidth is 100 MHz, Mbps per user.
ex-ch19-16
MediumCompare the achievable sum spectral efficiency of FDD and TDD for a massive MIMO system as a function of . Assume:
- , symbols, SNR = 10 dB per user.
- TDD: , remaining symbols split equally UL/DL.
- FDD: (DL pilots), feedback overhead symbols, remaining symbols split equally UL/DL.
- Per-user rate: (zero-forcing with estimated channels).
Plot or compute the effective sum rate for .
Effective sum rate = , where is the data fraction of .
TDD spectral efficiency
(constant).
For : , sum . For : , sum . For : , sum .
FDD spectral efficiency
(pilots + feedback).
: , sum . : . FDD becomes infeasible. : negative β impossible.
TDD provides higher efficiency at and is the only viable option for .
ex-ch19-17
HardDerive the optimal UL/DL time split in a TDD massive MIMO system that maximises the weighted sum rate .
The frame structure has pilot symbols, UL data symbols, and DL data symbols, with .
Assume equal UL and DL per-symbol rates (bits/s/Hz per symbol). Find the optimal and .
This is a simple linear programme: maximise subject to .
Optimisation
$
Solution
For (DL-heavy): , . All data symbols go to DL.
For (UL-heavy): , . All to UL.
For : any split is optimal.
In practice, the UL and DL rates differ (due to power asymmetry), leading to an interior optimum. With DL rate and UL rate :
matching the traffic weight ratio to the rate ratio.
ex-ch19-18
ChallengeDesign a hybrid multiple access scheme for an IoT network with the following requirements:
- devices, each transmitting 100-bit packets every 10 seconds on average.
- Total bandwidth MHz, coherence time ms.
- Base station has antennas.
(a) Show that scheduling all users (OFDMA) is infeasible due to pilot overhead. (b) Propose a two-phase scheme: grant-free random access for initial transmission, followed by scheduled retransmission for collided packets. Compute the expected throughput. (c) Compare with pure slotted ALOHA and pure OFDMA in terms of latency and throughput.
With 10,000 devices and 100-bit packets every 10 s, the aggregate traffic is only 100 kbps β well within the bandwidth, but pilot overhead makes scheduling impossible.
In the random access phase, use spreading codes to allow partial collision resolution (NOMA-like).
OFDMA infeasibility
(a) Active devices per ms: device. But the BS does not know which device is active.
To allow any device to access, we need pilot sequences. Each pilot has length . With 1 MHz bandwidth and 1 ms coherence: symbols. : infeasible.
Hybrid scheme design
(b) Phase 1 (grant-free): Each active device picks a random pilot from a pool of non-orthogonal pilots and transmits its 100-bit packet. Expected active devices per slot: . Collision probability with pilots: .
Phase 2 (scheduled): Collided devices are identified (via NACK) and scheduled in subsequent slots with orthogonal pilots.
Expected throughput: kbps kbps in phase 1, with kbps retransmitted in phase 2.
Comparison
(c) Pure slotted ALOHA: of the channel capacity. With 1 active device per ms on average, slotted ALOHA works well (success with ; but since here, success ).
Pure OFDMA: infeasible (pilot overhead).
Hybrid scheme: near-100% success with ms average latency, combining the low overhead of random access with the reliability of scheduling.