Physical Layer
2.1 Transmission Media
Guided media: Twisted pair (UTP, STP), coaxial cable, fibre optic.
- Twisted pair: Category 5e/6/6a for Ethernet. Bandwidth up to 10 Gbps (Cat 6a, 100 m).
- Fibre optic: Single-mode (long distance, laser) and multi-mode (shorter distance, LED). Bandwidth up to 100+ Gbps.
Unguided media: Radio waves, microwaves, infrared. Subject to attenuation, interference, and Line-of-sight constraints.
2.2 Signaling
Analog vs. Digital. Analog signals vary continuously; digital signals are discrete.
- Bandwidth: Range of frequencies a channel can carry, measured in Hz.
- Bit rate: Number of bits transmitted per second (bps).
- Nyquist theorem: For a noiseless channel of bandwidth Hz with discrete signal levels:
Theorem 2.1 (Nyquist—Shannon Sampling Theorem). A bandlimited signal of bandwidth Hz can Be perfectly reconstructed from samples taken at a rate of at least samples per second.
Proof. Let be a signal with Fourier transform such that for . Sampling at rate produces Where . In the frequency domain, . When The spectral copies do not overlap, and can be recovered by an ideal Lowpass filter with cutoff . When Aliasing occurs and perfect recovery is Impossible.
- Shannon capacity: For a noisy channel with signal-to-noise ratio :
Theorem 2.2 (Shannon—Hartley Theorem). The channel capacity is the maximum error-free data Rate achievable on a channel of bandwidth with signal-to-noise ratio .
Proof. For a bandlimited AWGN channel, the number of distinguishable signal levels is constrained By the noise power. Let where is signal power and is noise Power. The number of distinguishable amplitude levels is proportional to . With levels per signal element and signal elements per second (Nyquist), the maximum Error-free rate is .
Example. A telephone line has Hz and (35 dB). Shannon limit: bps.
Worked Example: Nyquist Bit Rate
A noiseless channel has a bandwidth of 4000 Hz. How many signal levels are needed to achieve a data Rate of 56000 bps?
Using Nyquist”s formula:
Answer: 128 signal levels are required.
Worked Example: Shannon Channel Capacity
A satellite channel has a bandwidth of 36 MHz and an SNR of 30 dB. Find the maximum data rate.
First convert SNR from dB to linear: \mathrm{SNR_}{\mathrm{linear} = 10^{30/10} = 1000}
Apply Shannon’s formula:
Answer: The maximum achievable data rate is approximately 358.8 Mbps. Any attempt to exceed This rate will result in an unacceptable error rate regardless of the modulation scheme used.
Worked Example: Comparing Nyquist and Shannon Limits
A channel has Hz and (30 dB).
Shannon limit:
Nyquist limit with :
The Nyquist limit (36 kbps) is below the Shannon limit (60 kbps), so 8 signal levels are Achievable. With :
This exceeds Shannon’s limit of 60 kbps, meaning 64 levels would produce errors. The maximum Number of levels consistent with Shannon:
Answer: At most 32 signal levels can be used reliably on this channel.
:::caution Common Pitfall Bandwidth (Hz) and bit rate (bps) are different quantities. Bandwidth is the range of frequencies The channel can carry; bit rate is the number of bits transmitted per second. Shannon’s theorem Relates the maximum bit rate to bandwidth and SNR, but they are not interchangeable.
2.3 Multiplexing
Frequency-Division Multiplexing (FDM). Divide bandwidth into non-overlapping frequency bands. Each user gets a dedicated band. Used in radio and cable TV.
Time-Division Multiplexing (TDM). Divide time into fixed slots; each user gets a slot per cycle. Synchronous TDM assigns slots statically; statistical TDM assigns dynamically based on demand.
Wavelength-Division Multiplexing (WDM). FDM for fibre optics. Multiple wavelengths share a Single fibre. Dense WDM (DWDM) supports 80+ channels.
Code-Division Multiple Access (CDMA). Each user is assigned a unique code. All users transmit Simultaneously on the same frequency; codes are mathematically orthogonal so receivers can isolate Their signal.
2.4 Modulation
Digital-to-analog modulation: ASK (Amplitude Shift Keying), FSK (Frequency Shift Keying), PSK (Phase Shift Keying). QAM combines ASK and PSK for higher data rates.
- 16-QAM encodes 4 bits per symbol (16 combinations of amplitude and phase).
- 256-QAM encodes 8 bits per symbol.
- 1024-QAM encodes 10 bits per symbol (used in Wi-Fi 6).
Theorem 2.3 (QAM spectral efficiency). An -ary QAM scheme where has a spectral Efficiency of bits/symbol, i.e., the bit rate equals where is the bandwidth In Hz.
Proof. QAM modulates both amplitude and phase of a carrier. With symbols, each symbol carries bits. The symbol rate equals the bandwidth (Nyquist: 2 symbols/Hz for Baseband, 1 symbol/Hz for passband). Therefore bit rate = .
Worked Example: QAM Data Rate Calculation
A 256-QAM modem operates over a 20 MHz channel. What is the maximum data rate?
If the channel has SNR = 24 dB, verify against Shannon:
\mathrm{SNR_}{\mathrm{linear} = 10^{24/10} = 251.2}
The Nyquist-based rate (160 Mbps) is very close to the Shannon limit (159.6 Mbps), meaning 256-QAM Is near-optimal for this channel but has almost no margin for noise or interference.
2.5 Line Coding
Line codes map binary data to signals suitable for the physical medium.
| Encoding | Description | Example |
|---|---|---|
| NRZ (L) | High = 1, Low = 0 | USB |
| NRZI | Transition = 1, no transition = 0 | USB |
| Manchester | Transition at mid-bit; low-to-high = 0 | 802.3 (10 Mbps) |
| Differential Manchester | Transition at start of 0 bit only | 802.5 (Token Ring) |
| 4B/5B | 4 data bits encoded as 5-bit codes | 100BASE-TX |
| 8B/10B | 8 data bits encoded as 10-bit codes | Gigabit Ethernet |
| 64B/66B | 64 data bits encoded as 66-bit codes | 10GBASE-R |
Spectral efficiency. Manchester encoding doubles the bandwidth requirement (two signal levels per Bit). 4B/5B adds 25% overhead. 8B/10B adds 25%. 64B/66B adds only 3% overhead.
Scrambling. High-density bipolar 3 (HDB3) and other scrambling techniques ensure sufficient Transitions for clock recovery, preventing long runs of identical bits.
:::