Physical Layer: Encoding and Multiplexing

Transmission media, bandwidth, bit rate and baud rate, Nyquist and Shannon limits, line coding (NRZ, NRZI, Manchester), modulation, and multiplexing (FDM, TDM, WDM).

The physical layer moves raw bits over a wire, fibre or radio channel. It decides how a 0 and a 1 look as a signal, how fast bits can be sent, and how several signals share one medium.

Transmission media

MediumTypical useNotes
Twisted pairEthernet (Cat 5e/6), telephoneTwisting reduces interference
Coaxial cableCable TV, older EthernetBetter shielding
Optical fibreBackbones, long distancesLight by total internal reflection; huge bandwidth, no electrical interference
Radio / microwaveWi-Fi, mobile, satelliteUnguided, shared, affected by noise and distance

Data rate limits

  • Bit rate = bits per second; baud rate = signal changes (symbols) per second. With L signal levels, each symbol carries log₂ L bits: bit rate = baud × log₂ L.
  • Nyquist (noiseless channel): maximum bit rate = 2 B log₂ L (B = bandwidth in Hz).
  • Shannon (noisy channel): capacity C = B log₂(1 + S/N), whatever the number of levels. SNR in dB = 10 log₁₀(S/N).
  • Use Shannon for the upper limit, then Nyquist for the number of levels needed.

Line coding

Line coding maps bits to voltage levels:

CodeRuleNotes
NRZ-L1 = high, 0 = lowLong runs lose synchronisation; has a DC component
NRZ-I1 = invert the level, 0 = no changeRuns of 0s still a problem
Manchester (IEEE 802.3)0 = high→low, 1 = low→high in mid-bitSelf-clocking, no DC; needs twice the bandwidth (baud = 2 × bit rate)
Differential ManchesterTransition at the start of a bit for 0, none for 1; always a mid-bit transitionUsed in Token Ring
AMI (bipolar)0 = zero volts, 1 = alternating + and −No DC component

Block codes such as 4B/5B and 8B/10B add extra bits to guarantee enough transitions.

bits = "1011001"
nrz_l = "".join("+" if b == "1" else "-" for b in bits)

level, nrz_i = "-", ""
for b in bits:                          # NRZ-I: a 1 flips the level
    if b == "1":
        level = "+" if level == "-" else "-"
    nrz_i += level

manchester = " ".join("-+" if b == "1" else "+-" for b in bits)   # IEEE 802.3
print("NRZ-L     ", nrz_l)
print("NRZ-I     ", nrz_i)
print("Manchester", manchester)
Output
NRZ-L      +-++--+
NRZ-I      ++-+++-
Manchester -+ +- -+ -+ +- +- -+

Modulation

To send digital data over an analog (band-pass) channel, a carrier is modulated: ASK (amplitude), FSK (frequency), PSK (phase) and QAM (amplitude and phase together; 16-QAM carries 4 bits per symbol).

Multiplexing

TechniqueSharesExample
FDMFrequency bands, with guard bandsRadio, cable TV
TDM (synchronous)Time slots in a fixed orderT1/E1 lines
Statistical TDMSlots given on demandPacket networks
WDMLight wavelengthsOptical fibre
CDMACodes (all send at once)Older mobile networks

T1 line: 24 voice channels × 8 bits + 1 framing bit = 193 bits per frame, 8000 frames per second = 1.544 Mbps.

GATE-style practice questions

GATE-styleNAT · numerical answer

A noiseless channel of bandwidth 3 kHz uses 4 signal levels. What is its maximum bit rate in kbit/s (Nyquist)?

Show answer and explanationAnswer: 12

2 × 3 kHz × log₂ 4 = 12 kbit/s.

GATE-styleNAT · numerical answer

A channel of bandwidth 4 kHz has an SNR of 15 (linear). What is its Shannon capacity in kbit/s?

Show answer and explanationAnswer: 16

C = 4 × log₂ 16 = 16 kbit/s.

GATE-styleNAT · numerical answer

Data at 10 Mbps is sent using Manchester encoding. What is the baud rate in Mbaud?

Show answer and explanationAnswer: 20

Manchester has a transition in the middle of every bit, so the signal rate is twice the bit rate.

GATE-styleNAT · numerical answer

What is the data rate of a T1 line in Mbps? (Give 3 decimal places.)

Show answer and explanationAnswer: 1.544

193 bits per frame × 8000 frames per second = 1,544,000 bit/s.

GATE-styleMSQ · one or more correct answers

Which line codes have no DC component? (Select all that apply.)

Show answer and explanationAnswer: A, B

Manchester has equal high and low time in every bit, and AMI alternates the polarity of 1s; NRZ codes can drift.