NivaarExam PrepOfficial exam papers ↗

25-Comp-B5 Computer Communications · May 2015

Question 1 of 7: Sampling and Aliasing

Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)

Notes on this paper

98-Comp-B5, Computer Communications — National Exams, May 2015. Closed-book, 3 hours; seven questions of equal value (20% each); ANY FIVE constitute a complete exam (all seven answered below as a complete study resource).

Reference texts: Stallings, Data and Computer Communications, 10th ed. — sampling and aliasing (Ch.5, Q1), channel capacity/Shannon-Hartley (Ch.3, Q2), PCM and uniform quantization (Ch.5, Q3), Manchester/Differential Manchester line coding (Ch.5, Q4), LAN/network topologies (Ch.16, Q5), spread spectrum (Ch.9, Q6), and physical/link/network-layer terminology (Ch.3, 6, 9, 16, 17, Q7); Kurose & Ross, Computer Networking: A Top-Down Approach, 8th ed. — application-layer protocols and transport-layer terminology (Ch.1–3, Q7).

Question 1: Sampling and Aliasing (20 marks)

Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.

Given. Signal frequency $f_0 = 200\text{ Hz}$; sampling frequency $f_s = 800\text{ Hz}$; peak-to-peak amplitude $10\text{ V}$.

Find. Two other sinusoid frequencies whose samples at $f_s$ are indistinguishable from the samples of the $200\text{ Hz}$ tone, the name of the phenomenon, and how to mitigate it.

Approach. A sampled sinusoid cannot be told apart from any other sinusoid whose frequency differs by an integer multiple of the sampling frequency ($f = n f_s \pm f_0$); the smallest two such "aliases" of $f_0=200\text{ Hz}$ at $n=1$ are the ones asked for.

  1. State the aliasing (image-frequency) relation. For a real sinusoid sampled at $f_s$, every frequency $f = n f_s \pm f_0$ ($n = 1,2,3,\ldots$) produces exactly the same sequence of sample values as $f_0$, because $\sin\!\big(2\pi (n f_s \pm f_0) t\big)\big|_{t = k/f_s} = \sin\!\big(2\pi (\pm f_0) k/f_s + 2\pi n k\big)$, and the added $2\pi n k$ term (an integer multiple of $2\pi$) vanishes at every sample instant.
  2. Evaluate the two smallest images ($n=1$). $$f_{\text{alias},1} = f_s - f_0 = 800 - 200 = \boxed{600\text{ Hz}}$$ $$f_{\text{alias},2} = f_s + f_0 = 800 + 200 = \boxed{1000\text{ Hz}}$$ The $1000\text{ Hz}$ tone reproduces the $200\text{ Hz}$ samples with no phase adjustment; the $600\text{ Hz}$ tone reproduces them only after a $180^{\circ}$ phase flip (equivalently, its amplitude sign reversed) — a $600\text{ Hz}$ sinusoid of the opposite sign lands on exactly the same eight sample points as the $200\text{ Hz}$ wave every $T_s = 1/800 = 1.25\text{ ms}$, as plotted below.
  3. Name the phenomenon. This is aliasing (also called frequency folding): because $f_s = 800\text{ Hz} $ is being asked to distinguish tones spaced $800\text{ Hz}$ apart, the sampler cannot tell $200\text{ Hz}$, $600\text{ Hz}$ and $1000\text{ Hz}$ apart — all three collapse onto the same discrete-time sequence.
  4. State the mitigation. Aliasing is prevented by satisfying the Nyquist sampling criterion for every frequency component actually present in the signal ($f_s > 2 f_{\max}$) and, in any real (non-ideal) system, by placing an anti-aliasing low-pass filter ahead of the sampler to remove energy above $f_s/2$ before it can fold back into the baseband.
Aliasing: 200 Hz, 600 Hz and 1000 Hz sinusoids sampled at 800 Hzf₀ = 200 Hz (given)1000 Hz (= f₊+f₀, same phase)600 Hz (= f₊−f₀, phase +180°)● identical samples every Tₛ=1.25 ms0t (ms)
Fig. Q1 — the 200 Hz signal (solid blue) and its two 800 Hz aliases (600 Hz and 1000 Hz, dashed) coincide at every sample instant (black dots), so the sampler cannot tell them apart.
QuantityValue
Alias frequency 1600 Hz
Alias frequency 21000 Hz
PhenomenonAliasing (frequency folding)
MitigationSample above the Nyquist rate ($f_s>2f_{\max}$) and use an anti-aliasing low-pass filter
← Paper overview