Exercises
ex-ch32-01
EasyConsider a complex AWGN channel at SNR dB.
(a) Compute the Shannon capacity in bits per channel use. (b) Compute the channel dispersion . (c) Using the normal approximation, find the maximum achievable rate for and . (d) Express as a percentage of .
Recall and for the complex AWGN channel.
.
Shannon capacity
.
Channel dispersion
$
Normal approximation
$
Fraction of capacity
n = 200\varepsilon = 10^{-3}$, we lose about 15% of capacity.
ex-ch32-02
EasyA 5G NR URLLC system uses 30 kHz subcarrier spacing (OFDM symbol duration including CP: s).
(a) How many OFDM symbols fit in a 1 ms user-plane latency budget? (b) If gNB processing takes 3 symbols and UE processing takes 5 symbols, and worst-case alignment is 2 symbols, how many symbols remain for actual data transmission? (c) If the system bandwidth is 40 MHz with 1100 active subcarriers, how many resource elements (REs) are available for data?
The number of symbols in 1 ms is .
Symbols in 1 ms
$
Available data symbols
Overhead: alignment (2) + gNB processing (3) + UE processing (5) symbols.
Available resource elements
n = 22{,}000$ channel uses for data, which is actually generous for URLLC. In practice, URLLC uses fewer symbols (mini-slots of 2--7 symbols) to reduce the latency budget consumed by alignment.
ex-ch32-03
EasyCompute the average AoI for an M/M/1 queue with service rate packets/s at the following arrival rates: packets/s.
Which value of gives the lowest AoI? How does this compare to the theoretical optimal ?
Use .
The optimal .
Compute AoI for each $\lambda$
Using with :
| (s) | ||
|---|---|---|
| 0.5 | 0.25 | |
| 1.0 | 0.50 | |
| 1.5 | 0.75 | |
| 1.9 | 0.95 |
Comparison with optimal
Among the given values, gives the lowest AoI ( s). The theoretical optimal is , giving s.
Note: and give symmetric AoI values because is a convex function with minimum near .
ex-ch32-04
EasyIn a grant-free mMTC system, there are devices with activity probability .
(a) What is the expected number of active devices? (b) What is the minimum pilot length according to the compressed sensing scaling law ? (c) If the coherence interval is symbols, what fraction of resources is consumed by pilots?
.
Use for the scaling law computation.
Active devices
$
Minimum pilot length
C_0 \approx 2L_p \approx 452$.
Pilot overhead fraction
L_pC_0M = 64\sqrt{M} = 8L_p \approx 452/8 = 5757/300 = 19%$ overhead.
ex-ch32-05
MediumDerive the channel dispersion for a binary symmetric channel (BSC) with crossover probability . Show that . Compute for and determine the maximum rate at , .
The information density for the BSC takes two values depending on whether the channel flips the bit or not.
The capacity is , where .
Information density for BSC
For uniform input, the information density takes value when (probability ), and when (probability ).
The mean is and the variance is
Simplification
Let and . Then .
Numerical computation
For : bits (using ).
.
With :
ex-ch32-06
MediumConsider a URLLC system requiring BLER with blocklength over a complex AWGN channel.
(a) If the target data rate is bit/channel use, find the minimum required SNR using the normal approximation. (b) Compare to the Shannon SNR (the minimum SNR for rate at infinite blocklength). (c) Express the SNR penalty in dB.
Set and solve numerically for .
A good starting point is to iterate: guess , compute and , check if .
Shannon SNR
$
Solve for $\gamma_{\mathrm{min}}$
We need , where .
Trial (3 dB): , . . Too high.
Trial (1.76 dB): , . . Slightly low.
Trial (1.90 dB): , . . Close.
Trial (1.99 dB): , . . Close to 1.
So or about 1.96 dB.
SNR penalty
n = 256\varepsilon = 10^{-5}$ is approximately 2 dB of additional SNR compared to Shannon.
ex-ch32-07
MediumIn slotted ALOHA with users, the throughput is , maximised at , giving .
In IRSA with degree distribution :
(a) Compute the average number of replicas per user. (b) The channel load threshold (below which SIC succeeds with high probability) for this distribution is approximately packets/slot. By what factor does IRSA improve over slotted ALOHA? (c) What is the spectral efficiency in bits/slot if each replica carries bits?
The average degree is .
Average replicas
$
Throughput improvement
Slotted ALOHA throughput: packets/slot.
IRSA throughput: packets/slot.
Improvement factor: .
Spectral efficiency
Each successfully decoded user contributes bits. At load , the throughput is users per slot:
However, each user transmits replicas, so the total resource consumption is transmissions per slot. The net spectral efficiency per transmission is bits per replica.
ex-ch32-08
MediumDerive the average AoI for an M/D/1 queue with Poisson arrivals (rate ) and deterministic service time .
(a) Show that the average system time is . (b) Using and (exponential inter-arrivals), show that
(c) Compare and at .
For M/D/1, the Pollaczek-Khinchine formula simplifies because (zero variance in service).
For M/M/1 with exponential service, .
Average system time for M/D/1
The mean waiting time in M/D/1 is (from Pollaczek-Khinchine with , ):
The system time is :
Average AoI derivation
For Poisson arrivals, inter-arrival times are independent of system times, so .
Substituting :
Comparison at $\rho = 0.5$
M/D/1: .
M/M/1: .
Wait --- let us recheck. M/M/1: .
M/D/1: .
Actually . And .
Both give ? No: M/D/1 coefficient: . M/M/1 coefficient: .
Both equal 0.5 at . Try : M/D/1: . M/M/1: .
At : M/D/1: . M/M/1: .
The M/D/1 advantage grows with , as expected.
ex-ch32-09
MediumAn mMTC base station with antennas receives pilot signals from devices. The received signal is , where is row-sparse.
(a) Show that the maximum likelihood activity detector (which knows the channel gains) is equivalent to testing whether for each device , where is the MMSE estimate of the -th row of .
(b) For a single antenna () and Gaussian pilots, show that under (device inactive), follows a chi-squared distribution with 2 degrees of freedom (i.e., exponential), and determine the false alarm probability as a function of the threshold .
Under , the MMSE estimate is driven purely by noise projected onto the -th pilot direction.
For complex Gaussian noise, under is exponentially distributed.
ML activity detection
The ML detector for device is the likelihood ratio test:
In the Gaussian model, this reduces to comparing the energy in the projection of onto :
The test becomes .
False alarm distribution
Under (device inactive), the contribution of device to is zero. The projection is a linear combination of complex Gaussian noise:
Thus (chi-squared with 2 DOF divided by 2).
The false alarm probability is
For normalised pilots (): .
ex-ch32-10
MediumConsider the Peak AoI (PAoI) for the M/M/1 queue.
(a) Show that the average PAoI equals . (b) Find the optimal that minimises . (c) Show that for the M/M/1 queue, (average PAoI equals average AoI). (d) Give an intuitive explanation for why this equality holds.
PAoI where is inter-arrival time and is system time.
For the M/M/1 queue, and are independent.
Average PAoI
, using and .
Optimal $\lambda$
\bar{A}^{\mathrm{peak}*} = 2/\mu + 2/\mu = 4/\mu$.
Equality with average AoI
We showed .
This is a special property of the M/M/1 queue. For M/D/1 or D/M/1, in general.
Intuition: the memoryless property of the exponential distribution means that the age process has no "memory" of past drops. The average height of the sawtooth at any point equals the average of the peak, because the linear growth between peaks is symmetric in a statistical sense for exponential inter-arrivals.
ex-ch32-11
HardMeta-converse bound for the BSC.
Consider a BSC() with and blocklength .
(a) The meta-converse gives a lower bound on the error probability for any code:
where is the output distribution under the best alternative hypothesis. For the BSC, show that the optimal is the i.i.d. distribution.
(b) Using this, derive a closed-form lower bound on as a function of and .
(c) Compare numerically with the normal approximation at bits/use ().
For the BSC, the output distribution under uniform input is already . The meta-converse with this choice simplifies considerably.
The sum over reduces to a sum over Hamming weights.
Optimal $Q_{Y^n}$
For the BSC with uniform input, the output distribution is (each output bit is equally likely to be 0 or 1, regardless of the input). Since the meta-converse seeks the that maximises the bound, and makes the likelihood ratio depend only on the Hamming distance between and , this is the natural choice.
Converse bound derivation
With and where :
where is the threshold where .
The bound becomes .
Numerical comparison
For , , :
Normal approximation: , . .
The meta-converse gives a similar value, confirming the accuracy of the normal approximation even at .
ex-ch32-12
HardDiversity-multiplexing-latency trade-off for 2x2 MIMO.
Consider a MIMO system over quasi-static Rayleigh fading with blocklength .
(a) For spatial multiplexing rate (i.e., ), derive the outage probability at :
(b) For finite , the effective outage probability is where and depend on the channel realisation. Argue that for a fixed diversity order , the maximum multiplexing gain must decrease as decreases.
(c) Numerically evaluate for , , dB, and compare with the asymptotic outage probability.
The outage probability for 2x2 MIMO is dominated by the probability that both singular values are small.
Use the joint PDF of ordered eigenvalues of .
Asymptotic outage probability
For a MIMO channel, the mutual information is .
Outage at rate occurs when .
At high SNR (), this requires both to be small. Using the DMT framework, write with . Outage requires , and minimised over the outage event, giving for .
Finite blocklength penalty
At finite , the Q-function has a smooth transition (not a step function) around . This means that even realisations with slightly above contribute to the error probability. The "outage region" effectively expands, requiring higher to maintain the same diversity order at multiplexing gain .
Equivalently, for fixed and , the maximum must decrease as decreases, because the Q-function widening captures more of the probability mass.
Numerical evaluation
At dB (), : bits/use.
Asymptotic outage: .
At , Monte Carlo averaging over channel realisations typically gives --, significantly higher than the asymptotic outage, confirming the finite blocklength penalty.
ex-ch32-13
HardAMP state evolution analysis.
Consider the AMP algorithm for activity detection with i.i.d. Gaussian pilot matrix , where as . The state evolution recursion tracks the effective noise variance at iteration :
where is the MMSE of estimating from () under the Bernoulli-Gaussian prior .
(a) Derive in closed form. (b) Show that the state evolution has a unique fixed point when is sufficiently large (i.e., enough pilots). (c) Find the critical ratio below which AMP fails (undergoes a phase transition) for and dB.
The MMSE under a mixture prior can be computed as .
The posterior mean under the Bernoulli-Gaussian prior involves a sigmoid-like activation.
MMSE derivation
The posterior of given is a mixture:
and the active component has posterior with and .
The MMSE is
which simplifies (after careful algebra) to
This can be evaluated numerically via 1D integration over .
Fixed point uniqueness
The fixed point equation is .
Since is a decreasing function of (more noise higher MMSE) bounded by , the RHS is a decreasing function of . The LHS is the identity. For large enough , the term is small, so there is a unique intersection near .
Phase transition
The critical is where the fixed point equation transitions from having one solution (AMP succeeds) to having three solutions (a metastable bad fixed point appears).
For , (): numerical evaluation of the state evolution shows that , meaning is needed.
With devices: pilots suffice for AMP to converge to the correct solution.
ex-ch32-14
HardOptimal sampling for AoI with energy harvesting.
A sensor harvests energy at random times according to a Poisson process with rate . Each update transmission costs one unit of energy. The sensor has a battery of capacity (can store at most one energy unit). Updates are served instantaneously (zero service time).
(a) Model this as a renewal process and show that the average AoI is
where is the effective sampling rate (which equals since the sensor transmits whenever it has energy).
(b) Now suppose the sensor can choose to discard some harvested energy and only sample at rate . Find the optimal that minimises AoI.
(c) Show that discarding energy is never optimal: the best strategy is to transmit as soon as energy is available.
With and zero service time, the inter-update time equals the inter-harvest time (exponential with rate ).
The AoI drops to zero upon each update (zero service time).
Renewal model
With zero service time and , the sensor transmits immediately upon energy arrival (if it has data, which is assumed always available --- "generate at will").
The inter-update time is : , .
Since service is instantaneous (), the age drops to 0 upon each update.
(Simpler than the formula with nonzero service time.)
Subsampling at rate $\lambda_s$
If the sensor subsamples by independently accepting each energy arrival with probability , the inter-update times are geometric sums of exponentials, i.e., .
Optimality of maximum rate
Since is monotonically decreasing in , the optimal rate is (maximum possible rate).
Discarding energy is never optimal because with zero service time, there is no queueing penalty. The U-shaped AoI curve of M/M/1 arises only when the server is a bottleneck. Here, instantaneous service means more updates always help.
This changes if the service time is nonzero, in which case the energy harvesting rate must be balanced against queueing.
ex-ch32-15
HardUnsourced random access: energy efficiency bound.
In unsourced random access, active users each transmit a -bit message using a common codebook over channel uses of a Gaussian MAC.
(a) Show that the minimum energy-per-bit for reliable communication (PUPE ) in the single-user case () is
which approaches dB as .
(b) For users, derive a lower bound on that accounts for multi-user interference. Show that the penalty scales as in the required .
(c) For , bits, , compute the required from your bound and compare with the single-user limit.
Start from the per-user achievable rate: under treating interference as noise.
The energy per bit is .
Single-user minimum $E_b/\ntn{n0}$
For a single user, . Define (spectral efficiency).
.
As : , so dB.
Multi-user penalty
With users, treating others as noise: .
With and normalising: .
For small : .
The penalty is approximately , which scales as for small .
Numerical evaluation
. .
Single user: dB.
Multi-user: dB.
The multi-user penalty is about 1.24 dB. This is modest because is still relatively small.
ex-ch32-16
HardAge-optimal scheduling in a multi-source system.
Consider independent sources sharing a single server (M/M/1 queue, service rate ). Source generates updates as a Poisson process with rate . The total arrival rate is .
(a) Show that the average AoI of source under FCFS scheduling is
(b) The system-level AoI is the weighted sum . For equal weights , find the optimal rate allocation that minimises subject to for stability.
(c) Show that the optimal allocation is uniform: for all , and find .
For part (a), each source sees the combined queue. Its inter-delivery time has the same distribution as its inter-arrival time (Poisson splitting).
For part (b), use Lagrange multipliers or note the symmetry.
Per-source AoI
Source 's updates arrive as Poisson() and see the overall M/M/1 queue with load . By PASTA, the system time for source 's packets is the same as for any arrival: .
The inter-delivery time for source has the distribution of the inter-arrival time for source (by the independence of Poisson processes): .
By the same derivation as single-source M/M/1: .
System AoI optimisation
With :
For fixed , minimising subject to by AM-HM inequality or Lagrange multipliers gives for all .
Optimal total rate
With :
Minimising over : .
Each source: .