CSC 498 · Computer Network and Data Communications
Our notes
2 min readNyquist (noiseless channel)
A channel of bandwidth B Hz can carry at most 2B symbols per second. With L signal levels:
C = 2B log₂ L bps.
Worked example. A noiseless 3,000 Hz channel: with 2 levels, C = 2 × 3,000 × 1 = 6,000 bps; with 16 levels, 2 × 3,000 × 4 = 24,000 bps.
More levels seem to give unlimited speed, but in practice noise makes close levels impossible to tell apart.
Decibels
Power ratios are expressed in decibels: dB = 10 log₁₀(P₂/P₁).
| Ratio | dB |
|---|---|
| × 2 | +3 |
| × 10 | +10 |
| × 100 | +20 |
| × 1,000 | +30 |
| ÷ 2 | −3 |
Gains and losses in dB add along a link. dBm is power relative to 1 mW (0 dBm = 1 mW; −70 dBm is a typical decent phone signal).
Shannon (noisy channel)
The maximum error-free rate for a channel with bandwidth B and signal-to-noise power ratio S/N:
C = B log₂(1 + S/N) bps.
Convert S/N from decibels first: S/N = 10^(dB/10).
Worked example. A telephone line with B = 3,000 Hz and S/N = 30 dB (= 1,000): C = 3,000 × log₂ 1,001 ≈ 3,000 × 9.97 = 29,900 bps. The old 28.8 and 33.6 kbps dial-up modems worked close to this limit.
Worked example (levels). How many levels does Nyquist need to reach this rate? 29,900 = 2 × 3,000 × log₂ L → log₂ L = 4.98 → L ≈ 32 levels.
Worked example. A 20 MHz Wi-Fi channel at 25 dB (S/N = 316): C = 20 × 10⁶ × log₂ 317 ≈ 20 × 10⁶ × 8.31 = 166 Mbps per spatial stream at best.
What the formulas teach
- Doubling bandwidth doubles capacity; doubling signal power adds only about 1 bit per symbol (log grows slowly).
- Shannon gives the ceiling; real systems use coding (error-correcting codes such as turbo and LDPC codes in 4G/5G) to approach it.
- Mobile networks raise capacity by using more bandwidth (new spectrum, carrier aggregation), better S/N (smaller cells, more masts), and MIMO (several antennas: several streams in the same band).
Exams usually ask: state and apply Nyquist's and Shannon's formulas; convert between dB and power ratios; find the number of levels needed; explain the difference between the two limits; how bandwidth and S/N affect capacity.
Common mistake: putting S/N in decibels straight into Shannon's formula. 30 dB must first become 1,000; log₂(1 + 30) gives a wrong answer.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Computer Networks: A Systems Approach, 1.5 Performance
(opens book.systemsapproach.org in a new tab)
Peterson and Davie, Computer Networks: A Systems Approach, Computer Networks: A Systems Approach, 1.5 Performance, CC BY 4.0 · licence
-
Channel capacity
(opens en.wikipedia.org in a new tab)
Wikipedia, Channel capacity, CC BY-SA 4.0 · licence
-
Shannon–Hartley theorem
(opens en.wikipedia.org in a new tab)
Wikipedia, Shannon–Hartley theorem, CC BY-SA 4.0 · licence
-
Nyquist rate
(opens en.wikipedia.org in a new tab)
Wikipedia, Nyquist rate, CC BY-SA 4.0 · licence
Watch
-
Best pick How are Data Rate and Bandwidth Related? ("a super clear explanation!")
11 min · ≈ 50 MB · about ₦28
(opens youtube.com in a new tab)
-
Network Performance
7 min · ≈ 32 MB · about ₦18
(opens youtube.com in a new tab)
-
What are Channel Capacity and Code Rate?
18 min · ≈ 81 MB · about ₦45
(opens youtube.com in a new tab)
-
Nyquist Rate & Nyquist Interval
8 min · ≈ 36 MB · about ₦20
(opens youtube.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.