Physical Layer
Intuition
Section titled “Intuition”The physical layer deals with transmitting raw bits over a physical medium. Bandwidth determines how many signal changes per second a channel can carry, while noise limits how many distinct signal levels can be reliably distinguished. The Nyquist theorem bounds the maximum bit rate for noiseless channels, and Shannon’s theorem extends this to noisy channels by incorporating signal-to-noise ratio. These fundamental limits apply regardless of the encoding scheme or technology used.
2.1 Transmission Media
Section titled “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
Section titled “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:
C = 2H \log_2 V ;\mathrm{bps}
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 :
C = H \log_2(1 + \mathrm{SNR}) ;\mathrm{bps}
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: \log_2 V = \frac{56000}{8000} = 7V = 2^7 = 128$$
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: $$C = H \log_2(1 + \mathrm{SNR}) = 36 \times 10^6 \times \log_2(1001) \log_2(1001) = \frac{\ln(1001)}{\ln(2)} \approx 9.967 C = 36 \times 10^6 \times 9.967 \approx 358.8 \times 10^6 ;\mathrm{bps} \approx 358.8;\mathrm{Mbps}
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: $$C = 6000 \times \log_2(1024) = 6000 \times 10 = 60000;\mathrm{bps}
Nyquist limit with : C = 2 \times 6000 \times \log_2(8) = 12000 \times 3 = 36000;\mathrm{bps}
The Nyquist limit (36 kbps) is below the Shannon limit (60 kbps), so 8 signal levels are Achievable. With : $$C = 12000 \times 6 = 72000;\mathrm{bps}
This exceeds Shannon’s limit of 60 kbps, meaning 64 levels would produce errors. The maximum Number of levels consistent with Shannon: C_{\mathrm{Shannon} = 2H \log_2 V \implies 60000 = 12000 \times \log_2 V \implies V = 32}
Answer: At most 32 signal levels can be used reliably on this channel.
Common Mistakes
Section titled “Common Mistakes”Confusing bandwidth with bit rate: Bandwidth is the range of frequencies a channel can carry. Bit rate is the number of bits transmitted per second. They’re related but different concepts.
Forgetting that noise limits channel capacity: Shannon’s theorem shows that even with perfect encoding, noise limits the maximum reliable bit rate. Don’t assume infinite capacity is possible.
Mixing up guided with unguided media: Guided media use physical cables (twisted pair, fibre). Unguided media use wireless (radio, microwave). Don’t confuse the two categories.