4.3.3 · HinglishComputer Networks

Physical layer — encoding (NRZ, Manchester), bandwidth, Nyquist, Shannon-Hartley

1,852 words8 min readRead in English

4.3.3 · Coding › Computer Networks


1. Line Encoding

NRZ (Non-Return-to-Zero)

Manchester Encoding

Figure — Physical layer — encoding (NRZ, Manchester), bandwidth, Nyquist, Shannon-Hartley

2. Bandwidth, Baud, aur Bit Rate


3. Nyquist — NOISELESS channel ki capacity


4. Shannon–Hartley — NOISY channel ki capacity


Common Mistakes


Active Recall

Recall Quick self-test (answers chhupa lo)
  • NRZ lambi zero runs pe sync kyun khota hai? → koi transition nahi hoti → receiver clock drift kar jaata hai.
  • Manchester har bit pe kya guarantee karta hai? → ek mid-bit transition (self-clocking).
  • Nyquist formula? → .
  • Shannon formula? → .
  • Actually kaun si limit use karte hain? → Nyquist aur Shannon mein se chhoti.
Recall Feynman: 12-saal ke bachche ko explain karo

Socho tum ek flashlight se secret messages bhej rahe ho. NRZ = "1" ke liye ON rakho, "0" ke liye OFF. Problem: agar tum das "0" bhejo, light bas kaafi der ke liye OFF rehti hai aur tumhara dost nahi bata sakta ki das zeros the ya gyarah — woh count bhool jaata hai. Manchester = tum hamesha har letter ke beech mein blink karte ho, toh tumhare dost ka "tick-tock" step mein rehta hai. Blinking ki cost hai ki flicking dono guna tez karni padti hai (zyada "bandwidth"), par koi count nahi bhoolta. Nyquist kehta hai: ek flashlight sirf itni tez blink kar sakti hai ki blinks blur na ho jaayein. Shannon add karta hai: agar room foggy hai (noise), toh bright-vs-dim levels blur ho jaate hain, toh tum bahut saare brightness levels use nahi kar sakte — yahi true top speed set karta hai.


Connections

  • Data Link Layer — inhee encoded bits ke upar framing use karta hai
  • Modulation (ASK, FSK, PSK, QAM) levels physically kaise realize hote hain
  • Signal-to-Noise Ratio — Shannon ke andar ka
  • Sampling Theorem — Nyquist mein factor ki jaad
  • Bandwidth vs Bit Rate — baud/level relationship
Line encoding kin dono ke beech map karta hai?
Data bits ↔ time-varying voltage/signal patterns
NRZ-L mein 1 aur 0 kya represent karta hai?
High voltage = 1, low voltage = 0 (poore bit ke liye level hold hota hai)
NRZ identical bits ki lambi runs mein kyun struggle karta hai?
Koi transition nahi hoti, toh receiver clock drift karti hai aur bit-count synchronization kho jaati hai
Manchester kya guarantee karta hai, aur kyun?
Har bit pe ek mid-bit transition — isse self-clocking hota hai
NRZ ke comparison mein Manchester ki main cost kya hai?
Isko roughly double bandwidth chahiye (ek bit mein 2 transitions tak)
Bit rate vs baud rate ka relation?
bit rate = baud × log₂ M, jahan M = number of signal levels
Nyquist capacity formula batao.
C = 2B·log₂ M (bits/s), noiseless channel
Nyquist symbol rate 2B kyun hai?
Bandwidth-B signal ko 2B samples/sec se fully represent kiya jaata hai (sampling theorem)
Shannon–Hartley formula batao.
C = B·log₂(1 + S/N) bits/s noisy channel ke liye
Shannon mein SNR linear (dB nahi) kyun hona chahiye?
Formula actual power ratio use karta hai; S/N = 10^(dB/10) se convert karo
30 dB SNR ko linear ratio mein convert karo.
10^(30/10) = 1000
Jab dono apply hon toh kaun si capacity use karte hain?
Nyquist aur Shannon mein se chhoti (Shannon noisy channel ka absolute ceiling hai)
Shannon intuition mein noise roughly kitne levels allow karta hai?
M ≈ √(1 + S/N)
Channel B=3000Hz, M=4: Nyquist capacity?
C = 2·3000·log₂4 = 12000 bits/s

Concept Map

encoded into

maps bits to

simplest form

self-clocking

long runs cause

edge every bit gives

costs

frequency range Hz

times log2 M

Nyquist noiseless

Shannon-Hartley

bounds

Bits 1s and 0s

Signals voltage vs time

Line encoding rule

NRZ-L level = bit

Manchester mid-bit transition

Sync loss + DC component

Clock recovery no DC

Double bandwidth vs NRZ

Channel capacity limit

Baud symbols/sec

Bit rate bits/sec

Noise SNR