Communication TheoryCommunication Theory
How a message rides on a signal: spectrum, AM, FM, sampling, PCM, line coding, digital modulation, noise, channel capacity and multiplexing. একটা message কীভাবে signal-এর উপর চড়ে যায়: spectrum, AM, FM, sampling, PCM, line coding, digital modulation, noise, channel capacity আর multiplexing।
- Signals and SpectrumSignal এবং Spectrum
- Amplitude Modulation (AM)Amplitude Modulation (AM)
- Angle Modulation (FM and PM)Angle Modulation (FM এবং PM)
- Sampling and Pulse Modulation (PCM)Sampling এবং Pulse Modulation (PCM)
- Line CodingLine Coding
- Digital Modulation (ASK, FSK, PSK, QAM)Digital Modulation (ASK, FSK, PSK, QAM)
- Noise and Channel CapacityNoise এবং Channel Capacity
- Multiplexing and Multiple AccessMultiplexing এবং Multiple Access
- Practice QuestionsPractice Questions
1. Signals and Spectrum1. Signal এবং Spectrum
A signal is anything that carries information and changes with time. Your voice is a signal. The voltage on a phone wire is a signal. The light in a fiber cable is a signal. Communication theory is the study of how we send these signals from one place to another, and how we fight noise on the way.
A basic communication system has 3 parts: a transmitter (prepares the signal), a channel (wire, air, fiber — noise gets added here), and a receiver (gets the message back).
Signal হলো এমন কিছু যা information বহন করে এবং সময়ের সাথে বদলায়। আপনার কণ্ঠস্বর একটা signal। Phone-এর তারের voltage একটা signal। Fiber cable-এর ভেতরের আলোও একটা signal। Communication theory পড়ে কীভাবে এই signal এক জায়গা থেকে আরেক জায়গায় পাঠানো যায়, আর পথে noise-এর সাথে কীভাবে লড়াই করা যায়।
একটা basic communication system-এর 3টা অংশ: transmitter (signal তৈরি করে), channel (তার, বাতাস, fiber — এখানেই noise যোগ হয়), আর receiver (message ফেরত বের করে)।
Analog vs digital signalsAnalog বনাম digital signal
An analog signal can take any value in a range, and it changes smoothly (like a sine wave or your voice). A digital signal can take only a few fixed values (like 0 V and 5 V for bits 0 and 1). It jumps from one level to another.
Analog signal একটা range-এর মধ্যে যেকোনো value নিতে পারে, আর মসৃণভাবে বদলায় (যেমন sine wave বা আপনার কণ্ঠ)। Digital signal শুধু কয়েকটা নির্দিষ্ট value নিতে পারে (যেমন bit 0 আর 1-এর জন্য 0 V আর 5 V)। এটা এক level থেকে আরেক level-এ লাফ দেয়।
| Featureবৈশিষ্ট্য | Analog | Digital |
|---|---|---|
| ValuesValue | Infinite (continuous)অসীম (continuous) | Finite (discrete levels)সীমিত (discrete level) |
| Effect of noiseNoise-এর প্রভাব | Noise adds up; hard to removeNoise জমতে থাকে; দূর করা কঠিন | Can be regenerated by a repeaterRepeater দিয়ে আবার নতুন করে তৈরি (regenerate) করা যায় |
| Exampleউদাহরণ | Voice, old AM/FM radioকণ্ঠস্বর, পুরনো AM/FM radio | Computer data, PCM, EthernetComputer data, PCM, Ethernet |
| Bandwidth needBandwidth লাগে | Usually lessসাধারণত কম | Usually more (sharp edges need many harmonics)সাধারণত বেশি (ধারালো edge-এর জন্য অনেক harmonic লাগে) |
Periodic signals: amplitude, frequency, period, phasePeriodic signal: amplitude, frequency, period, phase
A periodic signal repeats itself again and again after a fixed time. That fixed time is the period T (in seconds). The number of repeats in one second is the frequency f (in hertz, Hz). The height of the wave is the amplitude A. The starting position of the wave is the phase φ.
Periodic signal একটা নির্দিষ্ট সময় পরপর বারবার একই রকম হয়। ওই নির্দিষ্ট সময়টাই period T (second-এ)। এক second-এ কতবার repeat হয়, সেটা frequency f (hertz, Hz-এ)। Wave-এর উচ্চতা হলো amplitude A। Wave কোথা থেকে শুরু হচ্ছে, সেটা phase φ।
WavelengthWavelength
Wavelength λ is the distance the wave travels in one period. Radio waves and light move at \( c = 3\times10^8 \) m/s in free space.
Wavelength λ হলো এক period-এ wave যতটা দূরত্ব যায়। Free space-এ radio wave আর আলো \( c = 3\times10^8 \) m/s বেগে চলে।
- FM radio at 100 MHz: \( \lambda = 3\times10^8 / 10^8 = 3 \) m.
- AM radio at 1 MHz: \( \lambda = 300 \) m.
- Wi-Fi at 2.4 GHz: \( \lambda = 3\times10^8 / 2.4\times10^9 = 0.125 \) m = 12.5 cm.
- 100 MHz-এর FM radio: \( \lambda = 3\times10^8 / 10^8 = 3 \) m।
- 1 MHz-এর AM radio: \( \lambda = 300 \) m।
- 2.4 GHz-এর Wi-Fi: \( \lambda = 3\times10^8 / 2.4\times10^9 = 0.125 \) m = 12.5 cm।
Time domain vs frequency domain, and bandwidthTime domain বনাম frequency domain, এবং bandwidth
We can look at a signal in two ways:
- Time domain: amplitude vs time. This is what an oscilloscope shows.
- Frequency domain: amplitude vs frequency. This shows which frequencies are inside the signal. A spectrum analyzer shows this. A pure sine wave is just one spike in the frequency domain.
The spectrum of a signal is the set of all frequencies it contains. The bandwidth is the width of that range:
একটা signal-কে আমরা দুইভাবে দেখতে পারি:
- Time domain: amplitude বনাম time। Oscilloscope এটাই দেখায়।
- Frequency domain: amplitude বনাম frequency। Signal-এর ভেতরে কোন কোন frequency আছে, এটা দেখায়। Spectrum analyzer এটা দেখায়। একটা pure sine wave frequency domain-এ শুধু একটা spike।
একটা signal-এ যত frequency আছে, সবগুলো মিলে তার spectrum। আর ওই range কত চওড়া, সেটাই bandwidth:
Fourier series: a square wave is a sum of sine wavesFourier series: square wave আসলে অনেকগুলো sine wave-এর যোগফল
Fourier showed that any periodic signal can be written as a sum of sine waves. The lowest one is the fundamental (frequency f). The others are harmonics at 2f, 3f, 4f, ... For a square wave, only the odd harmonics (f, 3f, 5f, ...) are present, and their size falls as 1/n:
Fourier দেখিয়েছেন যে যেকোনো periodic signal-কে অনেকগুলো sine wave-এর যোগফল হিসেবে লেখা যায়। সবচেয়ে ছোট frequency-টা হলো fundamental (frequency f)। বাকিগুলো হলো 2f, 3f, 4f, ...-এ থাকা harmonic। Square wave-এ শুধু odd harmonic (f, 3f, 5f, ...) থাকে, আর তাদের size 1/n হারে কমে:
Link to data: a bit stream 1010... at \( N \) bps looks like a square wave of frequency \( N/2 \). So 1 Mbps needs at least about 500 kHz just for the fundamental. More bandwidth gives sharper bits.
Data-র সাথে সম্পর্ক: \( N \) bps-এর 1010... bit stream দেখতে \( N/2 \) frequency-র square wave-এর মতো। তাই 1 Mbps-এর জন্য শুধু fundamental পাঠাতেই অন্তত প্রায় 500 kHz লাগে। Bandwidth বেশি হলে bit গুলো বেশি ধারালো হয়।
Decibels (dB)Decibel (dB)
Signal powers can be very large or very small. So we use a log scale called the decibel (dB). It turns multiply into add, which is very handy for gains and losses.
Signal-এর power অনেক বড় বা অনেক ছোট হতে পারে। তাই আমরা decibel (dB) নামে একটা log scale ব্যবহার করি। এটা গুণকে যোগে বদলে দেয় — gain আর loss হিসাব করতে খুব সুবিধা।
Why 20 for voltage? Because power is proportional to \( V^2 \). So \( 10\log(V^2) = 20\log V \). dBm is power compared to 1 mW, so 0 dBm = 1 mW. (dBW compares to 1 W, so 0 dBW = 30 dBm.)
Voltage-এর জন্য 20 কেন? কারণ power \( V^2 \)-এর সমানুপাতিক। তাই \( 10\log(V^2) = 20\log V \)। dBm মানে 1 mW-এর সাথে তুলনা করা power, তাই 0 dBm = 1 mW। (dBW তুলনা করে 1 W-এর সাথে, তাই 0 dBW = 30 dBm।)
| Power ratioPower ratio | dB | Voltage ratioVoltage ratio | dB |
|---|---|---|---|
| 2 | ≈ 3 dB | 2 | ≈ 6 dB |
| 10 | 10 dB | 10 | 20 dB |
| 100 | 20 dB | 100 | 40 dB |
| 1000 | 30 dB | 1000 | 60 dB |
| 0.5 | ≈ −3 dB | 0.5 | ≈ −6 dB |
- An amplifier gets 5 mW and gives 500 mW. Gain = \( 10\log(500/5) = 10\log 100 = 20 \) dB.
- Input 5 mW, gain 20 dB. Output = \( 5 \times 10^{20/10} = 5 \times 100 = 500 \) mW.
- A chain: amplifier +10 dB, cable loss −6 dB, amplifier +20 dB. Total = \( 10 - 6 + 20 = 24 \) dB. Just add!
- 1 W = 1000 mW = \( 10\log 1000 = 30 \) dBm. 20 dBm = \( 10^{2} \) mW = 100 mW. −30 dBm = \( 10^{-3} \) mW = 1 µW.
- Voltage goes from 1 V to 10 V: gain = \( 20\log 10 = 20 \) dB (not 10 dB).
- Power drops from 5 W to 2.5 W: \( 10\log 0.5 \approx -3 \) dB. "Half power" = −3 dB.
- একটা amplifier 5 mW পায় আর 500 mW দেয়। Gain = \( 10\log(500/5) = 10\log 100 = 20 \) dB।
- Input 5 mW, gain 20 dB। Output = \( 5 \times 10^{20/10} = 5 \times 100 = 500 \) mW।
- একটা chain: amplifier +10 dB, cable loss −6 dB, amplifier +20 dB। মোট = \( 10 - 6 + 20 = 24 \) dB। শুধু যোগ করুন!
- 1 W = 1000 mW = \( 10\log 1000 = 30 \) dBm। 20 dBm = \( 10^{2} \) mW = 100 mW। −30 dBm = \( 10^{-3} \) mW = 1 µW।
- Voltage 1 V থেকে 10 V হলো: gain = \( 20\log 10 = 20 \) dB (10 dB নয়)।
- Power 5 W থেকে 2.5 W-এ নামলো: \( 10\log 0.5 \approx -3 \) dB। "Half power" = −3 dB।
2. Amplitude Modulation (AM)2. Amplitude Modulation (AM)
Why do we modulate?কেন modulate করি?
Modulation means putting a low-frequency message \( m(t) \) (frequency \( f_m \)) on top of a high-frequency carrier wave (frequency \( f_c \)). We change some property of the carrier (amplitude, frequency or phase) according to the message. Why?
- Antenna size: A good antenna is about \( \lambda/4 \) long. For a 3 kHz voice, \( \lambda = 3\times10^8/3000 = 100 \) km, so the antenna would be 25 km long! At a 1 MHz carrier, \( \lambda/4 = 75 \) m. Much more practical.
- Multiplexing: All voices are in the same 0–4 kHz range. If everyone sent them directly, they would mix. Different stations use different carriers (for example 88.0 MHz, 90.4 MHz), so many signals can share the air.
- Longer range and less noise: High-frequency waves travel better, and some types (FM) fight noise better.
Modulation মানে হলো কম frequency-র একটা message \( m(t) \) (frequency \( f_m \))-কে বেশি frequency-র একটা carrier wave (frequency \( f_c \))-এর উপর বসানো। Message অনুযায়ী carrier-এর কোনো একটা বৈশিষ্ট্য (amplitude, frequency বা phase) বদলানো হয়। কেন?
- Antenna-র size: ভালো antenna মোটামুটি \( \lambda/4 \) লম্বা হয়। 3 kHz voice-এর জন্য \( \lambda = 3\times10^8/3000 = 100 \) km, তাই antenna হবে 25 km লম্বা! 1 MHz carrier-এ \( \lambda/4 = 75 \) m। অনেক বেশি বাস্তবসম্মত।
- Multiplexing: সবার voice একই 0–4 kHz range-এ। সবাই সরাসরি পাঠালে সব মিশে যাবে। আলাদা station আলাদা carrier ব্যবহার করে (যেমন 88.0 MHz, 90.4 MHz), তাই অনেক signal একসাথে বাতাস share করতে পারে।
- বেশি দূরত্ব আর কম noise: High-frequency wave ভালোভাবে দূরে যায়, আর কিছু ধরন (FM) noise-এর বিরুদ্ধে ভালো লড়ে।
The AM equation and modulation indexAM equation এবং modulation index
In AM, the amplitude of the carrier follows the message. For a single-tone message \( A_m\cos(2\pi f_m t) \) and a carrier \( A_c\cos(2\pi f_c t) \):
AM-এ carrier-এর amplitude message-কে অনুসরণ করে। একটা single-tone message \( A_m\cos(2\pi f_m t) \) আর carrier \( A_c\cos(2\pi f_c t) \)-এর জন্য:
\( m \) is the modulation index (also called depth of modulation; \( m \times 100\% \) is percent modulation). If you see the AM wave on an oscilloscope, you can find \( m \) from the biggest and smallest envelope values:
\( m \) হলো modulation index (একে depth of modulation-ও বলে; \( m \times 100\% \) হলো percent modulation)। Oscilloscope-এ AM wave দেখলে envelope-এর সবচেয়ে বড় আর সবচেয়ে ছোট value থেকে \( m \) বের করা যায়:
Three cases of m, and over-modulationm-এর তিনটা case, এবং over-modulation
- \( m < 1 \) (under-modulation): normal and safe. The envelope never touches zero.
- \( m = 1 \) (100% modulation): the envelope just touches zero. Best power use, still no distortion.
- \( m > 1 \) (over-modulation): the envelope crosses zero and gets "cut". The simple envelope detector gives a distorted message, and the signal spreads into extra frequencies (splatter), which disturbs nearby channels. Always avoid.
- \( m < 1 \) (under-modulation): স্বাভাবিক এবং নিরাপদ। Envelope কখনো শূন্য ছোঁয় না।
- \( m = 1 \) (100% modulation): envelope ঠিক শূন্য ছোঁয়। Power-এর সবচেয়ে ভালো ব্যবহার, তবুও কোনো distortion নেই।
- \( m > 1 \) (over-modulation): envelope শূন্য পার হয়ে "কেটে" যায়। সাধারণ envelope detector তখন distorted message দেয়, আর signal বাড়তি frequency-তে ছড়িয়ে পড়ে (splatter), যা পাশের channel-কে বিরক্ত করে। সবসময় এড়িয়ে চলতে হবে।
Sidebands and bandwidthSideband এবং bandwidth
Open up the AM equation with the rule \( \cos A\cos B = \tfrac12[\cos(A-B)+\cos(A+B)] \):
\( \cos A\cos B = \tfrac12[\cos(A-B)+\cos(A+B)] \) সূত্র দিয়ে AM equation খুলে লিখলে:
So AM has 3 frequencies: the carrier \( f_c \), the lower sideband (LSB) at \( f_c - f_m \), and the upper sideband (USB) at \( f_c + f_m \). The bandwidth is from \( f_c - f_m \) to \( f_c + f_m \):
তাই AM-এ 3টা frequency থাকে: carrier \( f_c \), \( f_c - f_m \)-এ lower sideband (LSB), আর \( f_c + f_m \)-এ upper sideband (USB)। Bandwidth হলো \( f_c - f_m \) থেকে \( f_c + f_m \) পর্যন্ত:
Power in AM and efficiencyAM-এ power এবং efficiency
Power goes as amplitude squared. The carrier power is \( P_c = A_c^2/2R \). Each sideband has amplitude \( mA_c/2 \), so each sideband power is \( P_c m^2/4 \). Adding all three:
Power হয় amplitude-এর বর্গের সমানুপাতিক। Carrier power \( P_c = A_c^2/2R \)। প্রতিটা sideband-এর amplitude \( mA_c/2 \), তাই প্রতিটা sideband-এর power \( P_c m^2/4 \)। তিনটা যোগ করলে:
- \( P_t = 100(1 + 0.25/2) = 100 \times 1.125 = 112.5 \) W.
- Total sideband power = \( 100 \times 0.25/2 = 12.5 \) W, so each sideband = 6.25 W.
- Efficiency \( \eta = 0.25/2.25 = 0.111 = 11.1\% \). Only 11% of the power carries the message!
- \( P_t = 100(1 + 0.25/2) = 100 \times 1.125 = 112.5 \) W।
- মোট sideband power = \( 100 \times 0.25/2 = 12.5 \) W, তাই প্রতিটা sideband = 6.25 W।
- Efficiency \( \eta = 0.25/2.25 = 0.111 = 11.1\% \)। মাত্র 11% power message বহন করে!
\( (8.93/8)^2 = 1 + m^2/2 \Rightarrow 1.246 = 1 + m^2/2 \Rightarrow m^2 = 0.492 \Rightarrow m \approx 0.70 \).
Example 4 (two tones): A carrier is modulated by two tones with \( m_1 = 0.3 \) and \( m_2 = 0.4 \). Total \( m_t = \sqrt{0.09 + 0.16} = \sqrt{0.25} = 0.5 \).
\( (8.93/8)^2 = 1 + m^2/2 \Rightarrow 1.246 = 1 + m^2/2 \Rightarrow m^2 = 0.492 \Rightarrow m \approx 0.70 \)।
Example 4 (দুইটা tone): একটা carrier-কে দুইটা tone দিয়ে modulate করা হলো, \( m_1 = 0.3 \) আর \( m_2 = 0.4 \)। মোট \( m_t = \sqrt{0.09 + 0.16} = \sqrt{0.25} = 0.5 \)।
DSB-SC, SSB and VSB: saving power and bandwidthDSB-SC, SSB আর VSB: power আর bandwidth বাঁচানো
The carrier carries no information, but it takes at least 2/3 of the power. The two sidebands carry the same information. So engineers made cheaper versions:
- DSB-SC (Double Sideband Suppressed Carrier): remove the carrier, keep both sidebands. \( s(t) = m(t)\cos 2\pi f_c t \). Bandwidth still \( 2f_m \). At \( m = 1 \) it saves \( 100/150 = 66.7\% \) power.
- SSB (Single Sideband): remove the carrier and one sideband. Bandwidth only \( f_m \). At \( m = 1 \) it saves \( 125/150 = 83.3\% \) power. Used in HF and ham radio.
- VSB (Vestigial Sideband): one full sideband plus a small part ("vestige") of the other. Bandwidth a little more than \( f_m \). Used for the video part of analog TV, where the message has very low frequencies and a perfect SSB filter is hard to make.
DSB-SC and SSB need a coherent (synchronous) detector: the receiver must make a local carrier with exactly the same frequency and phase. Standard AM does not need this.
Carrier কোনো information বহন করে না, কিন্তু অন্তত 2/3 power নিয়ে নেয়। আর দুইটা sideband একই information বহন করে। তাই engineer-রা কম খরচের version বানিয়েছেন:
- DSB-SC (Double Sideband Suppressed Carrier): carrier বাদ, দুই sideband রাখা। \( s(t) = m(t)\cos 2\pi f_c t \)। Bandwidth এখনো \( 2f_m \)। \( m = 1 \)-এ এটা \( 100/150 = 66.7\% \) power বাঁচায়।
- SSB (Single Sideband): carrier আর একটা sideband বাদ। Bandwidth মাত্র \( f_m \)। \( m = 1 \)-এ এটা \( 125/150 = 83.3\% \) power বাঁচায়। HF আর ham radio-তে ব্যবহার হয়।
- VSB (Vestigial Sideband): একটা পুরো sideband আর অন্যটার ছোট একটা অংশ ("vestige")। Bandwidth \( f_m \)-এর চেয়ে একটু বেশি। Analog TV-র video অংশে ব্যবহার হতো, কারণ সেখানে message-এ খুব কম frequency থাকে আর নিখুঁত SSB filter বানানো কঠিন।
DSB-SC আর SSB-এর জন্য coherent (synchronous) detector লাগে: receiver-কে হুবহু একই frequency আর phase-এর local carrier বানাতে হয়। Standard AM-এ এটা লাগে না।
| Typeধরন | What is sentকী পাঠানো হয় | Bandwidth | Power saving (m = 1)Power সাশ্রয় (m = 1) | DetectorDetector |
|---|---|---|---|---|
| DSB-FC (standard AM) | Carrier + LSB + USB | \( 2f_m \) | 0% | Envelope (cheap)Envelope (সস্তা) |
| DSB-SC | LSB + USB | \( 2f_m \) | 66.7% | Coherent |
| SSB | One sidebandএকটা sideband | \( f_m \) | 83.3% | Coherent |
| VSB | One sideband + vestigeএকটা sideband + vestige | slightly \( > f_m \)\( f_m \)-এর একটু বেশি | close to SSBSSB-এর কাছাকাছি | Coherent |
Envelope detector (how a cheap AM radio works)Envelope detector (সস্তা AM radio কীভাবে কাজ করে)
An envelope detector is just a diode + a capacitor C + a resistor R. The diode lets only the positive half through. The capacitor charges up to each peak and slowly leaks through R. So the output follows the peaks — the envelope — which is the message. For it to work, the RC time constant must be long compared to the carrier period, but short compared to the message period:
Envelope detector শুধু একটা diode + একটা capacitor C + একটা resistor R। Diode শুধু positive অর্ধেক যেতে দেয়। Capacitor প্রতিটা peak পর্যন্ত charge হয় আর R দিয়ে ধীরে ধীরে discharge হয়। তাই output peak গুলোকে — মানে envelope-কে — অনুসরণ করে, আর সেটাই message। এটা কাজ করতে হলে RC time constant carrier period-এর চেয়ে অনেক বড়, কিন্তু message period-এর চেয়ে অনেক ছোট হতে হবে:
3. Angle Modulation (FM and PM)3. Angle Modulation (FM এবং PM)
In angle modulation, the carrier amplitude stays constant. Instead, we change the angle of the carrier:
- FM (Frequency Modulation): the carrier frequency goes up and down with the message.
- PM (Phase Modulation): the carrier phase shifts with the message.
FM and PM are close cousins. FM of a message = PM of the integral of that message. For exams, focus mainly on FM.
Angle modulation-এ carrier-এর amplitude স্থির থাকে। তার বদলে carrier-এর angle বদলানো হয়:
- FM (Frequency Modulation): message অনুযায়ী carrier-এর frequency বাড়ে-কমে।
- PM (Phase Modulation): message অনুযায়ী carrier-এর phase সরে যায়।
FM আর PM খুব কাছের আত্মীয়। কোনো message-এর FM = ওই message-এর integral-এর PM। Exam-এর জন্য মূলত FM-এ জোর দিন।
Frequency deviation and modulation index βFrequency deviation এবং modulation index β
In FM, the instantaneous frequency is \( f_i(t) = f_c + k_f\, m(t) \). Here \( k_f \) is the frequency sensitivity (Hz per volt). The biggest shift from \( f_c \) is the peak frequency deviation \( \Delta f = k_f A_m \). It depends only on the message amplitude, not on its frequency.
The FM modulation index \( \beta \) compares the deviation with the message frequency:
FM-এ instantaneous frequency হলো \( f_i(t) = f_c + k_f\, m(t) \)। এখানে \( k_f \) হলো frequency sensitivity (Hz per volt)। \( f_c \) থেকে সবচেয়ে বড় সরে যাওয়াকে বলে peak frequency deviation \( \Delta f = k_f A_m \)। এটা শুধু message-এর amplitude-এর উপর নির্ভর করে, frequency-র উপর না।
FM modulation index \( \beta \) deviation-কে message frequency-র সাথে তুলনা করে:
Bandwidth: Carson's ruleBandwidth: Carson's rule
In theory an FM signal has infinite sidebands at \( f_c \pm f_m, f_c \pm 2f_m, \dots \) (their sizes come from Bessel functions). But the far sidebands are tiny. Carson's rule gives the bandwidth that holds about 98% of the power:
Theory অনুযায়ী FM signal-এ অসীম সংখ্যক sideband থাকে, \( f_c \pm f_m, f_c \pm 2f_m, \dots \)-এ (তাদের size আসে Bessel function থেকে)। কিন্তু দূরের sideband গুলো খুব ছোট। Carson's rule এমন bandwidth দেয় যার মধ্যে প্রায় 98% power থাকে:
Example 2 (what changes what): \( \Delta f = 10 \) kHz, \( f_m = 2 \) kHz → \( \beta = 5 \), \( B = 2(10+2) = 24 \) kHz.
- Double the message amplitude: \( \Delta f = 20 \) kHz, \( \beta = 10 \), \( B = 2(20+2) = 44 \) kHz.
- Double the message frequency (same amplitude): \( \Delta f \) stays 10 kHz, \( \beta = 10/4 = 2.5 \), \( B = 2(10+4) = 28 \) kHz.
Example 2 (কী বদলালে কী বদলায়): \( \Delta f = 10 \) kHz, \( f_m = 2 \) kHz → \( \beta = 5 \), \( B = 2(10+2) = 24 \) kHz।
- Message-এর amplitude দ্বিগুণ: \( \Delta f = 20 \) kHz, \( \beta = 10 \), \( B = 2(20+2) = 44 \) kHz।
- Message-এর frequency দ্বিগুণ (amplitude একই): \( \Delta f \) থাকে 10 kHz, \( \beta = 10/4 = 2.5 \), \( B = 2(10+4) = 28 \) kHz।
Narrowband vs wideband FMNarrowband বনাম wideband FM
- Narrowband FM (NBFM): \( \beta \) is small (much less than 1, commonly \( \beta < 0.3 \)). Only one pair of sidebands matters, so \( B \approx 2f_m \) — same as AM. Used in walkie-talkies and police radio.
- Wideband FM (WBFM): \( \beta \) is large (more than 1). Many sidebands, \( B \approx 2(\Delta f + f_m) \), and when \( \beta \) is very large, \( B \approx 2\Delta f \). Used in FM broadcast. It gives very good sound quality and noise immunity.
- Narrowband FM (NBFM): \( \beta \) ছোট (1-এর চেয়ে অনেক কম, সাধারণত \( \beta < 0.3 \))। শুধু এক জোড়া sideband গুরুত্বপূর্ণ, তাই \( B \approx 2f_m \) — AM-এর মতোই। Walkie-talkie আর police radio-তে ব্যবহার হয়।
- Wideband FM (WBFM): \( \beta \) বড় (1-এর বেশি)। অনেক sideband, \( B \approx 2(\Delta f + f_m) \), আর \( \beta \) খুব বড় হলে \( B \approx 2\Delta f \)। FM broadcast-এ ব্যবহার হয়। খুব ভালো sound quality আর noise immunity দেয়।
Power in FM: amplitude is fixed, so total power \( P = A_c^2/2R \) is always the same. For \( A_c = 10 \) V and \( R = 50\,\Omega \): \( P = 100/100 = 1 \) W — no matter what β is. Modulation only moves power from the carrier into the sidebands.
FM-এ power: amplitude স্থির, তাই মোট power \( P = A_c^2/2R \) সবসময় একই। \( A_c = 10 \) V আর \( R = 50\,\Omega \) হলে: \( P = 100/100 = 1 \) W — β যা-ই হোক। Modulation শুধু carrier থেকে power সরিয়ে sideband-এ দেয়।
AM vs FMAM বনাম FM
| Pointবিষয় | AM | FM |
|---|---|---|
| What changesকী বদলায় | AmplitudeAmplitude | Frequency (amplitude fixed)Frequency (amplitude স্থির) |
| Bandwidth | \( 2f_m \) (small, e.g. 10 kHz)(কম, যেমন 10 kHz) | \( 2(\Delta f + f_m) \) (large, e.g. 180 kHz)(বেশি, যেমন 180 kHz) |
| Noise immunityNoise immunity | Poor — noise changes amplitude, which is the messageদুর্বল — noise amplitude বদলায়, আর amplitude-ই message | Good — a limiter cuts amplitude noise; message is in frequencyভালো — limiter amplitude-এর noise কেটে দেয়; message থাকে frequency-তে |
| Transmitted powerপাঠানো power | Changes with m; carrier wastes ≥ 2/3m-এর সাথে বদলায়; carrier অন্তত 2/3 নষ্ট করে | Constant; all power usefulস্থির; সব power কাজে লাগে |
| Range / coverageRange / coverage | Long (MW/SW bounce off ionosphere)অনেক দূর (MW/SW ionosphere থেকে প্রতিফলিত হয়) | Short, line-of-sight (VHF)কম, line-of-sight (VHF) |
| CircuitCircuit | Simple, cheapসহজ, সস্তা | More complexবেশি জটিল |
| Extraঅতিরিক্ত | — | Capture effect: the stronger station wins, weaker one is suppressedCapture effect: শক্তিশালী station জিতে যায়, দুর্বলটা চাপা পড়ে |
4. Sampling and Pulse Modulation (PCM)4. Sampling এবং Pulse Modulation (PCM)
To send voice or music over a digital network, we must turn the analog wave into bits. The first step is sampling: we measure (take a "sample" of) the signal value at regular time gaps \( T_s \). The sampling rate is \( f_s = 1/T_s \) samples per second.
Voice বা music digital network দিয়ে পাঠাতে হলে analog wave-কে bit-এ বদলাতে হয়। প্রথম ধাপ হলো sampling: নির্দিষ্ট সময় পরপর \( T_s \) signal-এর value মাপা (একটা "sample" নেওয়া)। Sampling rate হলো \( f_s = 1/T_s \) sample per second।
Nyquist sampling theoremNyquist sampling theorem
A band-limited signal with highest frequency \( f_{max} \) can be rebuilt perfectly from its samples if we sample at least twice as fast as \( f_{max} \):
যে band-limited signal-এর সবচেয়ে বেশি frequency \( f_{max} \), তাকে sample থেকে নিখুঁতভাবে আবার তৈরি করা যায়, যদি \( f_{max} \)-এর অন্তত দ্বিগুণ হারে sample নেওয়া হয়:
- Telephone voice is limited to about 4 kHz → Nyquist rate = 8 kHz. That is why phones sample at 8000 samples/s (interval 125 µs).
- Human hearing goes to about 20 kHz → need ≥ 40 kHz. Music CDs use 44.1 kHz (a little extra for filter room).
- \( x(t) = 3\cos(200\pi t) + 5\sin(600\pi t) \). Frequencies: \( 200\pi/2\pi = 100 \) Hz and \( 600\pi/2\pi = 300 \) Hz. \( f_{max} = 300 \) Hz, so Nyquist rate = 600 Hz.
- Product signals: \( \cos(2\pi \cdot 1000 t)\cos(2\pi \cdot 3000 t) \) contains 2000 Hz and 4000 Hz (sum and difference), so Nyquist rate = 8000 Hz.
- Telephone voice প্রায় 4 kHz-এ সীমিত → Nyquist rate = 8 kHz। এই কারণেই phone প্রতি second-এ 8000 sample নেয় (interval 125 µs)।
- মানুষ প্রায় 20 kHz পর্যন্ত শুনতে পায় → অন্তত 40 kHz লাগবে। Music CD ব্যবহার করে 44.1 kHz (filter-এর জন্য একটু বাড়তি জায়গা)।
- \( x(t) = 3\cos(200\pi t) + 5\sin(600\pi t) \)। Frequency: \( 200\pi/2\pi = 100 \) Hz আর \( 600\pi/2\pi = 300 \) Hz। \( f_{max} = 300 \) Hz, তাই Nyquist rate = 600 Hz।
- গুণফল signal: \( \cos(2\pi \cdot 1000 t)\cos(2\pi \cdot 3000 t) \)-এ 2000 Hz আর 4000 Hz থাকে (যোগফল আর বিয়োগফল), তাই Nyquist rate = 8000 Hz।
AliasingAliasing
If we sample too slowly (\( f_s < 2f_{max} \)), a high frequency "pretends" to be a low frequency. This fake frequency is called an alias. Once it happens, we cannot undo it. You have seen this in movies: a fast car wheel looks like it turns slowly backwards. The alias frequency is the distance from \( f \) to the nearest multiple of \( f_s \):
খুব ধীরে sample নিলে (\( f_s < 2f_{max} \)), একটা বেশি frequency নিজেকে কম frequency হিসেবে "ভান" করে। এই নকল frequency-কে বলে alias। একবার হয়ে গেলে আর ঠিক করা যায় না। Movie-তে দেখেছেন: দ্রুত ঘোরা গাড়ির চাকা মনে হয় ধীরে উল্টো দিকে ঘুরছে। Alias frequency হলো \( f \) থেকে \( f_s \)-এর সবচেয়ে কাছের গুণিতকের দূরত্ব:
Another: 9 kHz sampled at 12 kHz → \( |9 - 12| = 3 \) kHz. And 25 kHz sampled at 8 kHz → \( |25 - 3\times8| = 1 \) kHz.
Fix: put an anti-aliasing low-pass filter before the sampler to cut everything above \( f_s/2 \).
আরেকটা: 9 kHz-কে 12 kHz-এ sample → \( |9 - 12| = 3 \) kHz। আর 25 kHz-কে 8 kHz-এ sample → \( |25 - 3\times8| = 1 \) kHz।
সমাধান: sampler-এর আগে একটা anti-aliasing low-pass filter বসান, যাতে \( f_s/2 \)-এর উপরের সব কেটে যায়।
Pulse modulation: PAM, PWM, PPMPulse modulation: PAM, PWM, PPM
After sampling, each sample can control a pulse. There are three analog ways to do this (the pulse still carries an analog value):
Sampling-এর পর প্রতিটা sample একটা pulse-কে নিয়ন্ত্রণ করতে পারে। এর তিনটা analog উপায় আছে (pulse তখনো একটা analog value বহন করে):
| Typeধরন | What the sample changesSample কী বদলায় | Noteমন্তব্য |
|---|---|---|
| PAM (Pulse Amplitude Modulation) | Pulse heightPulse-এর উচ্চতা | Simplest; first step of PCM; noisy like AMসবচেয়ে সহজ; PCM-এর প্রথম ধাপ; AM-এর মতো noise-এ দুর্বল |
| PWM / PDM (Pulse Width/Duration) | Pulse widthPulse-এর চওড়া | Used in motor speed control, class-D amplifiersMotor speed control, class-D amplifier-এ ব্যবহার |
| PPM (Pulse Position Modulation) | Pulse position (time shift)Pulse-এর অবস্থান (time shift) | Constant height and width → good noise immunity, low powerউচ্চতা আর চওড়া স্থির → ভালো noise immunity, কম power |
PCM: sample → quantize → encodePCM: sample → quantize → encode
PCM (Pulse Code Modulation) is fully digital. It has three steps:
- Sample at \( f_s \ge 2f_{max} \) (after an anti-aliasing filter).
- Quantize: round each sample to the nearest of \( L \) fixed levels.
- Encode: write the level number as an \( n \)-bit binary code.
At the receiver: regenerate the bits, decode to levels, then pass through a low-pass (reconstruction) filter.
PCM (Pulse Code Modulation) পুরোপুরি digital। এর তিনটা ধাপ:
- Sample: \( f_s \ge 2f_{max} \) হারে (anti-aliasing filter-এর পরে)।
- Quantize: প্রতিটা sample-কে \( L \)টা নির্দিষ্ট level-এর সবচেয়ে কাছেরটায় round করা।
- Encode: level-এর নম্বরটা \( n \)-bit binary code হিসেবে লেখা।
Receiver-এ: bit গুলো regenerate করা, decode করে level-এ ফেরা, তারপর একটা low-pass (reconstruction) filter দিয়ে পাঠানো।
\( \Delta \) is the step size. The difference between the real sample and the rounded level is the quantization error. It acts like noise, called quantization noise, with average power \( \Delta^2/12 \). More bits → smaller \( \Delta \) → less noise.
\( \Delta \) হলো step size। আসল sample আর round করা level-এর পার্থক্যকে বলে quantization error। এটা noise-এর মতো আচরণ করে, একে বলে quantization noise, যার গড় power \( \Delta^2/12 \)। বেশি bit → ছোট \( \Delta \) → কম noise।
Example 2 (3-bit coding): Range 0–8 V, \( n = 3 \) → \( L = 8 \), \( \Delta = 1 \) V. Level k covers k V to (k+1) V. A sample of 5.3 V falls in level 5 → code 101. A sample of 2.8 V → level 2 → code 010.
Example 2 (3-bit coding): Range 0–8 V, \( n = 3 \) → \( L = 8 \), \( \Delta = 1 \) V। Level k মানে k V থেকে (k+1) V। 5.3 V-এর একটা sample পড়ে level 5-এ → code 101। 2.8 V-এর sample → level 2 → code 010।
SQNR: signal-to-quantization-noise ratioSQNR: signal-to-quantization-noise ratio
For a full-range sine wave, the SQNR of an n-bit uniform quantizer is:
একটা full-range sine wave-এর জন্য n-bit uniform quantizer-এর SQNR হলো:
Rule of thumb: each extra bit adds about 6 dB.
Design question: we need SQNR ≥ 40 dB. \( 6.02n + 1.76 \ge 40 \Rightarrow n \ge 38.24/6.02 = 6.35 \). Bits must be a whole number, so \( n = 7 \) (gives 43.9 dB).
সহজ নিয়ম: প্রতিটা বাড়তি bit প্রায় 6 dB যোগ করে।
Design প্রশ্ন: SQNR ≥ 40 dB দরকার। \( 6.02n + 1.76 \ge 40 \Rightarrow n \ge 38.24/6.02 = 6.35 \)। Bit পূর্ণসংখ্যা হতে হবে, তাই \( n = 7 \) (43.9 dB দেয়)।
PCM bit ratePCM bit rate
Example (music CD): \( 44{,}100 \times 16 \text{ bits} \times 2 \text{ channels (stereo)} = 1{,}411{,}200 \) bps ≈ 1.41 Mbps.
Example (music CD): \( 44{,}100 \times 16 \text{ bit} \times 2 \text{ channel (stereo)} = 1{,}411{,}200 \) bps ≈ 1.41 Mbps।
Non-uniform quantization (companding): quiet sounds are more common than loud ones. So phones use small steps for small values and big steps for big values. This is done by compressing before a uniform quantizer and expanding after (com-pand-ing). Two standards: μ-law (North America, Japan, μ = 255) and A-law (Europe and most of the world, A = 87.6).
Non-uniform quantization (companding): জোরে শব্দের চেয়ে আস্তে শব্দ বেশি থাকে। তাই phone ছোট value-র জন্য ছোট step আর বড় value-র জন্য বড় step ব্যবহার করে। এটা করা হয় uniform quantizer-এর আগে compress করে আর পরে expand করে (com-pand-ing)। দুইটা standard: μ-law (North America, Japan, μ = 255) আর A-law (Europe এবং পৃথিবীর বেশিরভাগ জায়গা, A = 87.6)।
Delta modulation (DM) and slope overloadDelta modulation (DM) এবং slope overload
Delta modulation sends only 1 bit per sample. The receiver keeps a staircase guess of the signal. Each sample, the transmitter says "go up one step Δ" (bit 1) or "go down one step Δ" (bit 0). Very simple. We must sample much faster than Nyquist. Bit rate = \( f_s \).
Two problems:
- Slope overload: the signal rises faster than the staircase can climb. The staircase falls behind. It happens when the signal slope is bigger than \( \Delta \cdot f_s \).
- Granular noise: when the signal is flat, the staircase keeps going up-down-up-down around it. This happens when Δ is too big.
So small Δ → slope overload; big Δ → granular noise. Adaptive DM changes Δ on the fly to fix both.
Delta modulation প্রতি sample-এ মাত্র 1 bit পাঠায়। Receiver signal-এর একটা সিঁড়ির মতো (staircase) অনুমান রাখে। প্রতিটা sample-এ transmitter বলে "এক step Δ উপরে যাও" (bit 1) অথবা "এক step Δ নিচে যাও" (bit 0)। খুব সহজ। Nyquist-এর চেয়ে অনেক দ্রুত sample নিতে হয়। Bit rate = \( f_s \)।
দুইটা সমস্যা:
- Slope overload: signal এত দ্রুত বাড়ে যে staircase ধরতে পারে না, পিছিয়ে পড়ে। এটা হয় যখন signal-এর slope \( \Delta \cdot f_s \)-এর চেয়ে বেশি।
- Granular noise: signal যখন সমান থাকে, staircase তার চারপাশে উপর-নিচ-উপর-নিচ করতে থাকে। Δ খুব বড় হলে এটা হয়।
তাই ছোট Δ → slope overload; বড় Δ → granular noise। Adaptive DM চলতে চলতে Δ বদলিয়ে দুটোই ঠিক করে।
DPCM ideaDPCM-এর ধারণা
Neighbouring samples of voice are very close to each other. So instead of sending each full sample, DPCM (Differential PCM) sends only the difference between the real sample and a predicted value (for example, the previous sample). Differences are small, so they need fewer bits.
Voice-এর পাশাপাশি sample গুলো একে অপরের খুব কাছাকাছি। তাই প্রতিটা পুরো sample পাঠানোর বদলে DPCM (Differential PCM) শুধু আসল sample আর predicted value (যেমন আগের sample)-এর পার্থক্য পাঠায়। পার্থক্য ছোট, তাই কম bit লাগে।
5. Line Coding5. Line Coding
Line coding turns a string of bits into a digital (baseband) signal that can go on a wire. Different codes use different voltage rules. A good line code should have:
- No DC component: the average voltage should be near zero. Many links (transformers, capacitors) cannot pass DC. A DC part also wastes power.
- Self-clocking (synchronization): the signal should change often, so the receiver can keep its clock in step with the sender. Long runs without any change make the receiver lose count.
- Small bandwidth: fewer signal changes per second need less bandwidth.
- Some error detection (a bonus in some codes, like AMI).
Two rates to remember: data rate N (bits per second) and signal rate S (signal elements per second = baud).
Line coding একটা bit-এর ধারাকে এমন digital (baseband) signal-এ বদলায় যেটা তার দিয়ে যেতে পারে। আলাদা code আলাদা voltage নিয়ম ব্যবহার করে। একটা ভালো line code-এ থাকা উচিত:
- DC component না থাকা: গড় voltage শূন্যের কাছাকাছি হওয়া উচিত। অনেক link (transformer, capacitor) DC pass করতে পারে না। DC অংশ power-ও নষ্ট করে।
- Self-clocking (synchronization): signal ঘন ঘন বদলানো উচিত, যাতে receiver তার clock sender-এর সাথে মিলিয়ে রাখতে পারে। অনেকক্ষণ কোনো পরিবর্তন না হলে receiver গোনায় ভুল করে।
- কম bandwidth: প্রতি second-এ কম পরিবর্তন মানে কম bandwidth লাগে।
- কিছু error detection (কিছু code-এ বাড়তি সুবিধা, যেমন AMI)।
দুইটা rate মনে রাখুন: data rate N (bit per second) আর signal rate S (প্রতি second-এ signal element = baud)।
The main line codes (rules)প্রধান line code গুলো (নিয়ম)
- NRZ-L (Non-Return-to-Zero Level): the level shows the bit. In this book: 1 = high (+V), 0 = low (−V). (Forouzan uses the opposite; both are fine if you say which one.)
- NRZ-I (NRZ Invert): a 1 = change (invert) the level at the start of the bit; a 0 = no change. The information is in the change, not the level.
- RZ (Return-to-Zero, bipolar): 1 = +V for the first half, then back to 0; 0 = −V for the first half, then back to 0. Every bit has a change, but it uses 3 levels and double bandwidth.
- Manchester (IEEE 802.3 Ethernet): a change in the middle of every bit. 0 = high → low, 1 = low → high. (Some books use the opposite, called the G. E. Thomas convention.)
- Differential Manchester: always a change in the middle (for the clock). A 0 = an extra change at the start of the bit; a 1 = no change at the start. Used in Token Ring. It works even if the two wires are swapped.
- AMI (Alternate Mark Inversion, bipolar): 0 = 0 V; each 1 = +V or −V, alternating. (Pseudoternary is the opposite: 1 = 0 V, 0s alternate.)
- NRZ-L (Non-Return-to-Zero Level): level-ই bit দেখায়। এই বইয়ে: 1 = high (+V), 0 = low (−V)। (Forouzan উল্টোটা ব্যবহার করেন; কোনটা ধরছেন বলে দিলে দুটোই ঠিক।)
- NRZ-I (NRZ Invert): 1 = bit-এর শুরুতে level বদলাও (invert); 0 = কোনো পরিবর্তন নেই। Information থাকে পরিবর্তনে, level-এ না।
- RZ (Return-to-Zero, bipolar): 1 = প্রথম অর্ধেকে +V, তারপর 0-তে ফেরা; 0 = প্রথম অর্ধেকে −V, তারপর 0-তে ফেরা। প্রতিটা bit-এ পরিবর্তন আছে, কিন্তু 3টা level আর দ্বিগুণ bandwidth লাগে।
- Manchester (IEEE 802.3 Ethernet): প্রতিটা bit-এর মাঝখানে একটা পরিবর্তন। 0 = high → low, 1 = low → high। (কিছু বই উল্টোটা ব্যবহার করে, একে G. E. Thomas convention বলে।)
- Differential Manchester: মাঝখানে সবসময় একটা পরিবর্তন (clock-এর জন্য)। 0 = bit-এর শুরুতে বাড়তি একটা পরিবর্তন; 1 = শুরুতে কোনো পরিবর্তন নেই। Token Ring-এ ব্যবহার হয়। দুইটা তার উল্টে গেলেও কাজ করে।
- AMI (Alternate Mark Inversion, bipolar): 0 = 0 V; প্রতিটা 1 = +V অথবা −V, পালা করে। (Pseudoternary এর উল্টো: 1 = 0 V, 0 গুলো পালা করে।)
- NRZ-L: + − + + − − +
- NRZ-I (start low): each 1 flips the level → + + − + + + −. There are four 1s, so there are exactly 4 transitions.
- Manchester: 1 = low→high, 0 = high→low. Every bit has a middle change → always self-clocking.
- AMI: + 0 − + 0 0 −. The 1s alternate, so the average is zero (no DC). If two 1s in a row had the same sign, the receiver knows there is an error (bipolar violation).
- NRZ-L: + − + + − − +
- NRZ-I (low থেকে শুরু): প্রতিটা 1 level উল্টায় → + + − + + + −। চারটা 1 আছে, তাই ঠিক 4টা transition।
- Manchester: 1 = low→high, 0 = high→low। প্রতিটা bit-এর মাঝখানে পরিবর্তন → সবসময় self-clocking।
- AMI: + 0 − + 0 0 −। 1 গুলো পালা করে, তাই গড় শূন্য (DC নেই)। পরপর দুইটা 1 একই sign পেলে receiver বুঝবে error হয়েছে (bipolar violation)।
Comparison tableতুলনামূলক table
| CodeCode | LevelsLevel | DC componentDC component | Self-clockingSelf-clocking | Bandwidth (avg.)Bandwidth (গড়) | Used inকোথায় |
|---|---|---|---|---|---|
| NRZ-L | 2 | Yesআছে | No (long 0s or 1s)না (লম্বা 0 বা 1) | ≈ N/2 | RS-232 |
| NRZ-I | 2 | Yesআছে | No for long 0s (1s are OK)লম্বা 0-তে না (1 ঠিক আছে) | ≈ N/2 | FDDI, 100BASE-FX (with 4B/5B) |
| RZ (bipolar) | 3 | Depends on dataData-র উপর নির্ভর করে | Yesহ্যাঁ | ≈ N | Rarely used nowএখন খুব কম |
| Manchester | 2 | Noনেই | Yesহ্যাঁ | ≈ N (double NRZ)≈ N (NRZ-এর দ্বিগুণ) | 10 Mbps Ethernet |
| Diff. Manchester | 2 | Noনেই | Yesহ্যাঁ | ≈ N | Token Ring |
| AMI (bipolar) | 3 | Noনেই | No for long 0s (fix: B8ZS, HDB3)লম্বা 0-তে না (সমাধান: B8ZS, HDB3) | ≈ N/2 | T1 (B8ZS), E1 (HDB3) |
Example 2 (NRZ bandwidth): 1 Mbps NRZ. The fastest pattern 1010... is a square wave at 500 kHz. So the minimum bandwidth is about 500 kHz = N/2.
Example 3 (block coding): Fast Ethernet (100BASE-TX/FX family) uses 4B/5B: each 4 data bits are sent as 5 code bits so there are never too many 0s in a row. Line rate = \( 100 \times 5/4 = 125 \) Mbps. Then NRZ-I (or MLT-3) is used on top.
Example 2 (NRZ bandwidth): 1 Mbps NRZ। সবচেয়ে দ্রুত pattern 1010... হলো 500 kHz-এর একটা square wave। তাই minimum bandwidth প্রায় 500 kHz = N/2।
Example 3 (block coding): Fast Ethernet (100BASE-TX/FX family) 4B/5B ব্যবহার করে: প্রতি 4টা data bit-কে 5টা code bit হিসেবে পাঠায়, যাতে পরপর বেশি 0 না থাকে। Line rate = \( 100 \times 5/4 = 125 \) Mbps। এর উপর NRZ-I (বা MLT-3) ব্যবহার হয়।
6. Digital Modulation (ASK, FSK, PSK, QAM)6. Digital Modulation (ASK, FSK, PSK, QAM)
Line coding sends bits as baseband pulses on a wire. But radio, Wi-Fi, mobile and modems need a carrier. Digital modulation (also called digital-to-analog conversion or "keying") changes a carrier wave based on bits:
- ASK (Amplitude Shift Keying): bits change the amplitude. The simplest form is OOK (On-Off Keying): carrier on = 1, off = 0. Used in fiber optics (light on/off). Weak against noise.
- FSK (Frequency Shift Keying): bits change the frequency. For example \( f_1 \) for 1 and \( f_0 \) for 0. Robust, but uses more bandwidth. Used in old modems, Bluetooth (GFSK).
- PSK (Phase Shift Keying): bits change the phase. In BPSK, 1 = phase 0°, 0 = phase 180°. Very robust against noise.
Line coding তারে baseband pulse হিসেবে bit পাঠায়। কিন্তু radio, Wi-Fi, mobile আর modem-এ একটা carrier লাগে। Digital modulation (একে digital-to-analog conversion বা "keying"-ও বলে) bit অনুযায়ী একটা carrier wave-কে বদলায়:
- ASK (Amplitude Shift Keying): bit amplitude বদলায়। সবচেয়ে সহজ রূপ হলো OOK (On-Off Keying): carrier on = 1, off = 0। Fiber optics-এ ব্যবহার হয় (আলো on/off)। Noise-এ দুর্বল।
- FSK (Frequency Shift Keying): bit frequency বদলায়। যেমন 1-এর জন্য \( f_1 \), 0-এর জন্য \( f_0 \)। শক্তপোক্ত, কিন্তু বেশি bandwidth লাগে। পুরনো modem, Bluetooth (GFSK)-এ ব্যবহার হয়।
- PSK (Phase Shift Keying): bit phase বদলায়। BPSK-এ 1 = phase 0°, 0 = phase 180°। Noise-এর বিরুদ্ধে খুব শক্তপোক্ত।
M-ary modulation: more bits per symbolM-ary modulation: প্রতি symbol-এ বেশি bit
Instead of 2 choices, we can use \( M \) different signal shapes (called symbols). Each symbol then carries \( k = \log_2 M \) bits. The number of symbols per second is the baud rate (symbol rate). The number of bits per second is the bit rate:
2টা পছন্দের বদলে আমরা \( M \)টা আলাদা signal shape (যাকে symbol বলে) ব্যবহার করতে পারি। তখন প্রতিটা symbol \( k = \log_2 M \)টা bit বহন করে। প্রতি second-এ কতটা symbol, সেটা baud rate (symbol rate)। প্রতি second-এ কতটা bit, সেটা bit rate:
- 16-QAM at 2400 baud → \( 2400 \times \log_2 16 = 2400 \times 4 = 9600 \) bps.
- QPSK carries 8000 bps → baud \( = 8000/2 = 4000 \) baud.
- 64-QAM at 1 Mbaud → \( 1 \times 6 = 6 \) Mbps.
- We want 3 bits in each symbol → \( M = 2^3 = 8 \) points (8-PSK or 8-QAM).
- BPSK: 1 bit/symbol, so bit rate = baud rate. This is the only case where they are equal (with M = 2).
- 2400 baud-এ 16-QAM → \( 2400 \times \log_2 16 = 2400 \times 4 = 9600 \) bps।
- QPSK 8000 bps বহন করে → baud \( = 8000/2 = 4000 \) baud।
- 1 Mbaud-এ 64-QAM → \( 1 \times 6 = 6 \) Mbps।
- প্রতিটা symbol-এ 3 bit চাই → \( M = 2^3 = 8 \)টা point (8-PSK বা 8-QAM)।
- BPSK: প্রতি symbol-এ 1 bit, তাই bit rate = baud rate। শুধু এই ক্ষেত্রেই (M = 2) দুটো সমান।
QPSK, M-PSK and QAM, with constellation diagramsQPSK, M-PSK আর QAM, constellation diagram সহ
A constellation diagram shows each symbol as a dot. The horizontal axis is I (in-phase, cosine part). The vertical axis is Q (quadrature, sine part). The distance from the center = amplitude; the angle = phase.
- QPSK (4-PSK): 4 phases (45°, 135°, 225°, 315°), 2 bits per symbol. With Gray code, neighbours differ by only 1 bit, so a small error flips only 1 bit.
- M-PSK: M points on a circle, spaced \( 360°/M \) apart. 8-PSK → 45° apart. As M grows, points get closer, so noise causes more errors.
- QAM (Quadrature Amplitude Modulation): changes both amplitude and phase. Points form a grid. 16-QAM = 4 bits, 64-QAM = 6 bits, 256-QAM = 8 bits. Used in Wi-Fi, cable modems, 4G/5G, DSL.
Constellation diagram প্রতিটা symbol-কে একটা বিন্দু হিসেবে দেখায়। আনুভূমিক অক্ষ হলো I (in-phase, cosine অংশ)। উল্লম্ব অক্ষ হলো Q (quadrature, sine অংশ)। কেন্দ্র থেকে দূরত্ব = amplitude; কোণ = phase।
- QPSK (4-PSK): 4টা phase (45°, 135°, 225°, 315°), প্রতি symbol-এ 2 bit। Gray code ব্যবহার করলে পাশের দুইটা point-এ মাত্র 1 bit পার্থক্য থাকে, তাই ছোট একটা error শুধু 1টা bit উল্টায়।
- M-PSK: একটা বৃত্তের উপর Mটা point, \( 360°/M \) দূরে দূরে। 8-PSK → 45° দূরে। M বাড়লে point গুলো কাছাকাছি আসে, তাই noise-এ বেশি error হয়।
- QAM (Quadrature Amplitude Modulation): amplitude আর phase দুটোই বদলায়। Point গুলো একটা grid বানায়। 16-QAM = 4 bit, 64-QAM = 6 bit, 256-QAM = 8 bit। Wi-Fi, cable modem, 4G/5G, DSL-এ ব্যবহার হয়।
Bandwidth and bandwidth efficiencyBandwidth এবং bandwidth efficiency
The bandwidth of ASK/PSK/QAM depends on the baud rate S, not the bit rate. With a filter roll-off factor \( d \) (between 0 and 1):
ASK/PSK/QAM-এর bandwidth নির্ভর করে baud rate S-এর উপর, bit rate-এর উপর না। Filter-এর roll-off factor \( d \) (0 থেকে 1-এর মধ্যে) থাকলে:
- BPSK: S = 1 Mbaud → B = 2 × 1 = 2 MHz. Efficiency = 1/2 = 0.5 bps/Hz.
- QPSK: S = 0.5 Mbaud → B = 1 MHz. Efficiency = 1 bps/Hz.
- 16-QAM: S = 0.25 Mbaud → B = 0.5 MHz. Efficiency = 2 bps/Hz.
Example 2 (FSK): Available band 200–300 kHz (100 kHz). BFSK with carriers at 225 and 275 kHz (\( 2\Delta f = 50 \) kHz) and \( d = 1 \). \( 100 = 2S + 50 \Rightarrow S = 25 \) kbaud. BFSK has 1 bit/symbol, so bit rate = 25 kbps.
- BPSK: S = 1 Mbaud → B = 2 × 1 = 2 MHz। Efficiency = 1/2 = 0.5 bps/Hz।
- QPSK: S = 0.5 Mbaud → B = 1 MHz। Efficiency = 1 bps/Hz।
- 16-QAM: S = 0.25 Mbaud → B = 0.5 MHz। Efficiency = 2 bps/Hz।
Example 2 (FSK): পাওয়া band 200–300 kHz (100 kHz)। BFSK, carrier 225 আর 275 kHz-এ (\( 2\Delta f = 50 \) kHz) আর \( d = 1 \)। \( 100 = 2S + 50 \Rightarrow S = 25 \) kbaud। BFSK-এ প্রতি symbol-এ 1 bit, তাই bit rate = 25 kbps।
| SchemeScheme | M | Bits/symbolBit/symbol | Ideal efficiency (bps/Hz)Ideal efficiency (bps/Hz) | Noise robustnessNoise-এ টিকে থাকা |
|---|---|---|---|---|
| BPSK | 2 | 1 | 1 | Bestসবচেয়ে ভালো |
| QPSK | 4 | 2 | 2 | Very good (same BER as BPSK per bit)খুব ভালো (প্রতি bit-এ BPSK-এর সমান BER) |
| 8-PSK | 8 | 3 | 3 | Mediumমাঝারি |
| 16-QAM | 16 | 4 | 4 | Needs higher SNRবেশি SNR লাগে |
| 64-QAM | 64 | 6 | 6 | Needs high SNRঅনেক SNR লাগে |
| 256-QAM | 256 | 8 | 8 | Needs very high SNRখুব বেশি SNR লাগে |
The trade-off: bigger M packs more bits into the same bandwidth, but the points are closer, so a little noise can push a point to its neighbour. That is why Wi-Fi and 4G use adaptive modulation: 256-QAM when you are near the router (high SNR), and QPSK or BPSK when you are far away (low SNR).
Trade-off: বড় M একই bandwidth-এ বেশি bit ঢোকায়, কিন্তু point গুলো কাছাকাছি থাকে, তাই অল্প noise-ও একটা point-কে পাশের point-এ ঠেলে দিতে পারে। এই কারণেই Wi-Fi আর 4G adaptive modulation ব্যবহার করে: router-এর কাছে থাকলে (বেশি SNR) 256-QAM, আর দূরে থাকলে (কম SNR) QPSK বা BPSK।
7. Noise and Channel Capacity7. Noise এবং Channel Capacity
Types of noiseNoise-এর ধরন
Noise is any unwanted signal that gets added to our signal. Main types:
- Thermal (Johnson) noise: electrons move randomly because of heat. It is in every wire and every resistor. It is spread evenly over all frequencies, so it is called white noise. It can never be removed completely.
- Shot noise: random arrival of electrons in diodes and transistors.
- Intermodulation noise: two signals mix in a non-linear device and make new frequencies (like \( f_1 + f_2 \)).
- Crosstalk: a signal from one wire leaks into a nearby wire.
- Impulse noise: short, strong spikes (lightning, switches). It destroys bursts of bits.
Noise হলো যেকোনো অনাকাঙ্ক্ষিত signal যা আমাদের signal-এর সাথে যোগ হয়ে যায়। প্রধান ধরন:
- Thermal (Johnson) noise: তাপের কারণে electron এলোমেলোভাবে নড়ে। এটা প্রতিটা তারে আর প্রতিটা resistor-এ থাকে। সব frequency-তে সমানভাবে ছড়ানো, তাই একে white noise বলে। এটা কখনো পুরোপুরি দূর করা যায় না।
- Shot noise: diode আর transistor-এ electron-এর এলোমেলো আগমন।
- Intermodulation noise: দুইটা signal একটা non-linear device-এ মিশে নতুন frequency বানায় (যেমন \( f_1 + f_2 \))।
- Crosstalk: এক তারের signal পাশের তারে চুইয়ে যায়।
- Impulse noise: ছোট কিন্তু শক্তিশালী spike (বজ্রপাত, switch)। একসাথে অনেকগুলো bit নষ্ট করে।
Thermal noise power: N = kTBThermal noise power: N = kTB
T is temperature in kelvin (room temperature is usually taken as 290 K), and B is the bandwidth in Hz. Noise grows with bandwidth — a wider receiver lets in more noise. A useful shortcut: at 290 K, \( kT = -174 \) dBm/Hz, so \( N(\text{dBm}) = -174 + 10\log_{10} B \).
T হলো kelvin-এ temperature (room temperature সাধারণত 290 K ধরা হয়), আর B হলো Hz-এ bandwidth। Bandwidth বাড়লে noise বাড়ে — চওড়া receiver বেশি noise ঢুকতে দেয়। একটা কাজের shortcut: 290 K-এ \( kT = -174 \) dBm/Hz, তাই \( N(\text{dBm}) = -174 + 10\log_{10} B \)।
\( N = 1.38\times10^{-23} \times 290 \times 10^6 = 4.0\times10^{-15} \) W.
In dBm: \( 10\log(4.0\times10^{-15}/10^{-3}) \approx -114 \) dBm. Shortcut check: \( -174 + 10\log 10^6 = -174 + 60 = -114 \) dBm. ✓
If B becomes 10 MHz, N becomes 10 times bigger: \( 4.0\times10^{-14} \) W = −104 dBm.
\( N = 1.38\times10^{-23} \times 290 \times 10^6 = 4.0\times10^{-15} \) W।
dBm-এ: \( 10\log(4.0\times10^{-15}/10^{-3}) \approx -114 \) dBm। Shortcut দিয়ে যাচাই: \( -174 + 10\log 10^6 = -174 + 60 = -114 \) dBm। ✓
B যদি 10 MHz হয়, N 10 গুণ বাড়ে: \( 4.0\times10^{-14} \) W = −104 dBm।
Signal-to-noise ratio (SNR)Signal-to-noise ratio (SNR)
Noise figure (bonus): a device that makes SNR worse has noise factor \( F = \text{SNR}_{in}/\text{SNR}_{out} \). If SNRin = 40 dB and SNRout = 34 dB, the noise figure NF = 40 − 34 = 6 dB.
Noise figure (বাড়তি): যে device SNR খারাপ করে, তার noise factor \( F = \text{SNR}_{in}/\text{SNR}_{out} \)। SNRin = 40 dB আর SNRout = 34 dB হলে noise figure NF = 40 − 34 = 6 dB।
Nyquist bit rate (noiseless channel)Nyquist bit rate (noiseless channel)
For a perfect channel with no noise, bandwidth B and M signal levels, the maximum bit rate is:
Noise ছাড়া একটা নিখুঁত channel-এ, bandwidth B আর Mটা signal level থাকলে, সর্বোচ্চ bit rate হলো:
- B = 3000 Hz, 2 levels → \( 2 \times 3000 \times 1 = 6000 \) bps.
- Same channel, 4 levels → \( 2 \times 3000 \times 2 = 12{,}000 \) bps.
- How many levels to send 20 kbps over 5 kHz? \( 20000 = 2 \times 5000 \times \log_2 M \Rightarrow \log_2 M = 2 \Rightarrow M = 4 \).
- B = 3000 Hz, 2 level → \( 2 \times 3000 \times 1 = 6000 \) bps।
- একই channel, 4 level → \( 2 \times 3000 \times 2 = 12{,}000 \) bps।
- 5 kHz দিয়ে 20 kbps পাঠাতে কতটা level লাগবে? \( 20000 = 2 \times 5000 \times \log_2 M \Rightarrow \log_2 M = 2 \Rightarrow M = 4 \)।
Shannon capacity (noisy channel)Shannon capacity (noisy channel)
Claude Shannon found the maximum possible error-free bit rate of a channel with bandwidth B and signal-to-noise ratio SNR (with white Gaussian noise):
Claude Shannon বের করেছিলেন bandwidth B আর signal-to-noise ratio SNR (white Gaussian noise সহ) থাকলে একটা channel-এর সর্বোচ্চ সম্ভাব্য error-free bit rate:
Step 1: convert dB → ratio: \( \text{SNR} = 10^{30/10} = 1000 \).
Step 2: \( C = 3000 \times \log_2(1001) = 3000 \times 9.967 \approx 29{,}900 \) bps ≈ 30 kbps.
This is why old dial-up modems got stuck near 28.8–33.6 kbps.
Quick shortcut (for large SNR): \( C \approx B \times \text{SNR}_{dB}/3 \), because every 3 dB ≈ 1 bit/s/Hz. Check: \( 3000 \times 30/3 = 30{,}000 \). ✓
Example 2: B = 4 kHz, SNR = 15 → \( C = 4000 \times \log_2 16 = 4000 \times 4 = 16 \) kbps.
Example 3: SNR = 0 (signal is buried in noise) → \( \log_2 1 = 0 \) → C = 0. Nothing gets through.
ধাপ 1: dB থেকে ratio: \( \text{SNR} = 10^{30/10} = 1000 \)।
ধাপ 2: \( C = 3000 \times \log_2(1001) = 3000 \times 9.967 \approx 29{,}900 \) bps ≈ 30 kbps।
এই কারণেই পুরনো dial-up modem 28.8–33.6 kbps-এর কাছে আটকে গিয়েছিল।
দ্রুত shortcut (বড় SNR-এর জন্য): \( C \approx B \times \text{SNR}_{dB}/3 \), কারণ প্রতি 3 dB ≈ 1 bit/s/Hz। যাচাই: \( 3000 \times 30/3 = 30{,}000 \)। ✓
Example 2: B = 4 kHz, SNR = 15 → \( C = 4000 \times \log_2 16 = 4000 \times 4 = 16 \) kbps।
Example 3: SNR = 0 (signal noise-এর নিচে চাপা) → \( \log_2 1 = 0 \) → C = 0। কিছুই যায় না।
Shannon upper limit: \( C = 10^6 \log_2(64) = 6 \) Mbps.
We never run exactly at the limit, so choose a safer 4 Mbps. Now use Nyquist to get the levels: \( 4\times10^6 = 2 \times 10^6 \times \log_2 M \Rightarrow \log_2 M = 2 \Rightarrow M = 4 \) levels.
(If we did aim for 6 Mbps: \( \log_2 M = 3 \Rightarrow M = 8 \).)
Shannon-এর উপরের সীমা: \( C = 10^6 \log_2(64) = 6 \) Mbps।
আমরা কখনো ঠিক সীমায় চালাই না, তাই নিরাপদ 4 Mbps বেছে নিই। এখন level বের করতে Nyquist: \( 4\times10^6 = 2 \times 10^6 \times \log_2 M \Rightarrow \log_2 M = 2 \Rightarrow M = 4 \) level।
(যদি 6 Mbps-ই লক্ষ্য হতো: \( \log_2 M = 3 \Rightarrow M = 8 \)।)
Why Shannon is an upper boundShannon কেন একটা upper bound
- Shannon's C is a theoretical limit. No coding or modulation can send error-free data faster than C. Real systems always run below it.
- Shannon only says the limit exists; he does not tell us which code reaches it. Modern codes (Turbo, LDPC, Polar) get very close — within a fraction of a dB.
- To increase C, increase B (linear gain) or SNR (log gain). Doubling SNR adds only about 1 bit/s/Hz, but doubling B doubles C (if SNR stays the same — in reality more B also lets in more noise).
- Nyquist gives the limit set by levels and bandwidth; Shannon gives the limit set by noise. The real limit is the smaller of the two.
- Shannon-এর C একটা theoretical সীমা। কোনো coding বা modulation C-এর চেয়ে দ্রুত error-free data পাঠাতে পারে না। বাস্তব system সবসময় এর নিচে চলে।
- Shannon শুধু বলেছেন সীমাটা আছে; কোন code দিয়ে সেখানে পৌঁছানো যায় তা বলেননি। আধুনিক code (Turbo, LDPC, Polar) খুব কাছে পৌঁছে যায় — এক dB-এর ভগ্নাংশের মধ্যে।
- C বাড়াতে B বাড়ান (linear লাভ) অথবা SNR বাড়ান (log লাভ)। SNR দ্বিগুণ করলে মাত্র প্রায় 1 bit/s/Hz বাড়ে, কিন্তু B দ্বিগুণ করলে C দ্বিগুণ হয় (যদি SNR একই থাকে — বাস্তবে বেশি B বেশি noise-ও ঢোকায়)।
- Nyquist দেয় level আর bandwidth-এর সীমা; Shannon দেয় noise-এর সীমা। আসল সীমা হলো দুটোর মধ্যে ছোটটা।
| Pointবিষয় | Nyquist | Shannon |
|---|---|---|
| ChannelChannel | Noiseless (ideal)Noiseless (ideal) | Noisy (real)Noisy (বাস্তব) |
| FormulaFormula | \( 2B\log_2 M \) | \( B\log_2(1+\text{SNR}) \) |
| Depends onনির্ভর করে | B and number of levels MB আর level সংখ্যা M | B and SNRB আর SNR |
| Tells youকী বলে | How many levels you need for a bit rateএকটা bit rate-এর জন্য কতটা level লাগবে | The absolute max bit rate possibleসম্ভাব্য সর্বোচ্চ bit rate |
Bit error rate (BER) and Eb/N0Bit error rate (BER) এবং Eb/N0
BER = number of wrong bits ÷ total bits sent. It tells how reliable a digital link is. Higher SNR → lower BER. For the same SNR, BPSK has lower BER than 16-QAM (points are further apart).
Digital systems often use \( E_b/N_0 \) (energy per bit ÷ noise density), which is SNR "per bit": \( E_b/N_0 = \text{SNR} \times B/R_b \).
BER = ভুল bit-এর সংখ্যা ÷ মোট পাঠানো bit। Digital link কতটা নির্ভরযোগ্য তা বলে। বেশি SNR → কম BER। একই SNR-এ BPSK-এর BER 16-QAM-এর চেয়ে কম (point গুলো দূরে দূরে)।
Digital system প্রায়ই \( E_b/N_0 \) (প্রতি bit-এর energy ÷ noise density) ব্যবহার করে, যা "প্রতি bit-এর" SNR: \( E_b/N_0 = \text{SNR} \times B/R_b \)।
SNR = 10 (10 dB), B = 1 MHz, \( R_b = 2 \) Mbps → \( E_b/N_0 = 10 \times 1/2 = 5 \) → about 7 dB.
SNR = 10 (10 dB), B = 1 MHz, \( R_b = 2 \) Mbps → \( E_b/N_0 = 10 \times 1/2 = 5 \) → প্রায় 7 dB।
8. Multiplexing and Multiple Access8. Multiplexing এবং Multiple Access
Multiplexing means sending many signals over one shared link. A MUX combines them at the sender; a DEMUX separates them at the receiver. When many users (like mobile phones) share one medium, we call it multiple access (FDMA, TDMA, CDMA, OFDMA).
Multiplexing মানে একটা shared link দিয়ে অনেকগুলো signal পাঠানো। Sender-এ একটা MUX এগুলোকে একসাথে করে; receiver-এ একটা DEMUX আলাদা করে। যখন অনেক user (যেমন mobile phone) একটা medium share করে, তখন একে বলে multiple access (FDMA, TDMA, CDMA, OFDMA)।
FDM (Frequency Division Multiplexing)FDM (Frequency Division Multiplexing)
Each signal is moved (modulated) to a different carrier frequency. Small empty gaps called guard bands are left between channels so they do not overlap. Examples: AM/FM radio, cable TV, old analog telephone trunks.
প্রতিটা signal-কে আলাদা carrier frequency-তে সরানো (modulate করা) হয়। Channel গুলোর মাঝে ছোট ফাঁকা জায়গা রাখা হয়, একে বলে guard band, যাতে একটা আরেকটার উপর না পড়ে। উদাহরণ: AM/FM radio, cable TV, পুরনো analog telephone trunk।
Another: 12 voice channels of 4 kHz each (guard included) → 48 kHz. This is the classic telephone "group" (placed at 60–108 kHz).
আরেকটা: 4 kHz-এর 12টা voice channel (guard সহ) → 48 kHz। এটাই পুরনো telephone-এর "group" (60–108 kHz-এ বসানো)।
WDM (Wavelength Division Multiplexing)WDM (Wavelength Division Multiplexing)
WDM is FDM for light in optical fiber. Each signal uses a different wavelength (colour) of light. A prism-like device joins and splits them. DWDM (Dense WDM) packs many wavelengths very close.
WDM হলো optical fiber-এর আলোর জন্য FDM। প্রতিটা signal আলাদা wavelength (রং)-এর আলো ব্যবহার করে। Prism-এর মতো একটা device এগুলোকে জোড়া দেয় আর আলাদা করে। DWDM (Dense WDM) অনেক wavelength খুব কাছাকাছি বসায়।
TDM: synchronous and statisticalTDM: synchronous এবং statistical
- Synchronous TDM: every input gets a fixed slot in every frame, even if it has nothing to send. Simple, but slots are wasted when users are idle. The link rate = sum of input rates + framing bits.
- Statistical (asynchronous) TDM: slots are given only to inputs that have data. Each slot must carry an address to show who owns it. Better use of the link; the link can be slower than the sum of all inputs.
- Synchronous TDM: প্রতিটা input প্রতিটা frame-এ একটা নির্দিষ্ট slot পায়, পাঠানোর কিছু না থাকলেও। সহজ, কিন্তু user চুপ থাকলে slot নষ্ট হয়। Link rate = সব input rate-এর যোগফল + framing bit।
- Statistical (asynchronous) TDM: শুধু যাদের data আছে তারাই slot পায়। প্রতিটা slot-এ একটা address থাকতে হয়, কার slot তা বোঝাতে। Link-এর ভালো ব্যবহার; link-এর speed সব input-এর যোগফলের চেয়ে কম হলেও চলে।
- Frame rate = rate of one source ÷ bits per slot = 250,000 frames/s.
- Frame size = 4 × 1 + 1 = 5 bits.
- Frame duration = 1/250,000 = 4 µs.
- Link rate = 250,000 × 5 = 1.25 Mbps.
- Frame rate = একটা source-এর rate ÷ প্রতি slot-এ bit = 250,000 frame/s।
- Frame size = 4 × 1 + 1 = 5 bit।
- Frame duration = 1/250,000 = 4 µs।
- Link rate = 250,000 × 5 = 1.25 Mbps।
T1 and E1 frame mathT1 আর E1 frame-এর হিসাব
Digital telephone trunks are synchronous TDM of 64 kbps PCM voice channels (DS0). Each channel gives one 8-bit sample every 125 µs (8000 times per second).
Digital telephone trunk হলো 64 kbps PCM voice channel (DS0)-এর synchronous TDM। প্রতিটা channel প্রতি 125 µs-এ (প্রতি second-এ 8000 বার) একটা 8-bit sample দেয়।
E1: 32 time slots; slot 0 is for framing/sync and slot 16 is for signalling, so 30 slots carry voice → 30 × 64 = 1.92 Mbps of voice inside 2.048 Mbps. T1 is used in North America/Japan; E1 in Europe and Bangladesh.
E1: 32টা time slot; slot 0 framing/sync-এর জন্য আর slot 16 signalling-এর জন্য, তাই 30টা slot voice বহন করে → 2.048 Mbps-এর মধ্যে 30 × 64 = 1.92 Mbps voice। T1 ব্যবহার হয় North America/Japan-এ; E1 Europe আর বাংলাদেশে।
CDMA idea (Code Division Multiple Access)CDMA-এর ধারণা (Code Division Multiple Access)
In CDMA, all users send at the same time on the same frequency. Each user has a unique code (chip sequence). Codes are orthogonal: multiply two different codes element by element and add → 0. The receiver multiplies the mixed signal by the wanted user's code; other users cancel out. Like a party where everyone speaks a different language — you only understand your own.
CDMA-তে সব user একই সময়ে একই frequency-তে পাঠায়। প্রতিটা user-এর একটা আলাদা code (chip sequence) থাকে। Code গুলো orthogonal: দুইটা আলাদা code-কে element ধরে গুণ করে যোগ করলে → 0। Receiver মেশানো signal-কে কাঙ্ক্ষিত user-এর code দিয়ে গুণ করে; বাকি user-রা বাতিল হয়ে যায়। অনেকটা একটা party-র মতো, যেখানে সবাই আলাদা ভাষায় কথা বলছে — আপনি শুধু নিজের ভাষাটা বোঝেন।
A sends 1: A × (+1) = [+1, +1]. B sends 0: B × (−1) = [−1, +1]. Channel adds them: [0, +2].
Decode A: ([0, 2]·[1, 1]) / 2 = (0 + 2)/2 = +1 → bit 1. ✓
Decode B: ([0, 2]·[1, −1]) / 2 = (0 − 2)/2 = −1 → bit 0. ✓
Processing gain: IS-95 CDMA: chip rate 1.2288 Mcps, data 9.6 kbps → gain = 1,228,800/9600 = 128 ≈ 21.1 dB. CDMA phones use soft handoff (connected to 2 cells at once while moving).
A পাঠায় 1: A × (+1) = [+1, +1]। B পাঠায় 0: B × (−1) = [−1, +1]। Channel এগুলো যোগ করে: [0, +2]।
A decode: ([0, 2]·[1, 1]) / 2 = (0 + 2)/2 = +1 → bit 1। ✓
B decode: ([0, 2]·[1, −1]) / 2 = (0 − 2)/2 = −1 → bit 0। ✓
Processing gain: IS-95 CDMA: chip rate 1.2288 Mcps, data 9.6 kbps → gain = 1,228,800/9600 = 128 ≈ 21.1 dB। CDMA phone soft handoff ব্যবহার করে (চলার সময় একসাথে 2টা cell-এর সাথে যুক্ত থাকে)।
OFDM ideaOFDM-এর ধারণা
OFDM (Orthogonal Frequency Division Multiplexing) splits one fast data stream into many slow streams, each on its own narrow subcarrier. Unlike normal FDM, the subcarriers overlap but do not disturb each other, because they are spaced exactly \( \Delta f = 1/T \) apart (T = symbol time) — they are orthogonal. No guard bands are needed, so it saves bandwidth. Slow symbols also resist multipath echoes. It is built with the FFT. Used in Wi-Fi, 4G LTE, 5G, DSL and digital TV. OFDMA gives different subcarriers to different users.
OFDM (Orthogonal Frequency Division Multiplexing) একটা দ্রুত data stream-কে অনেকগুলো ধীর stream-এ ভাগ করে, প্রতিটা নিজের সরু subcarrier-এ। সাধারণ FDM-এর মতো নয়, এখানে subcarrier গুলো একটার উপর আরেকটা পড়ে (overlap), কিন্তু একে অপরকে বিরক্ত করে না, কারণ এরা ঠিক \( \Delta f = 1/T \) দূরে দূরে (T = symbol time) — এরা orthogonal। Guard band লাগে না, তাই bandwidth বাঁচে। ধীর symbol multipath প্রতিধ্বনিও ঠেকায়। FFT দিয়ে বানানো হয়। Wi-Fi, 4G LTE, 5G, DSL আর digital TV-তে ব্যবহার হয়। OFDMA আলাদা user-কে আলাদা subcarrier দেয়।
Cellular concepts: cell, frequency reuse, handoffCellular ধারণা: cell, frequency reuse, handoff
- Cell: the area covered by one base station (drawn as a hexagon). Many small low-power cells cover a city.
- Cluster and frequency reuse: the total channels are divided among N cells called a cluster. The same set of frequencies is reused in the next cluster, far enough away to avoid interference. Allowed cluster sizes: \( N = i^2 + ij + j^2 \) → 1, 3, 4, 7, 12, ...
- Reuse distance: \( D/R = \sqrt{3N} \) (R = cell radius). Bigger N → co-channel cells further apart → less interference, but fewer channels per cell.
- Handoff (handover): when you move from one cell to another during a call, the call is passed to the new base station. Hard handoff = break then make (GSM). Soft handoff = make then break (CDMA).
- Cell splitting: break a busy cell into smaller cells to add capacity.
- Cell: একটা base station যে এলাকা cover করে (hexagon হিসেবে আঁকা হয়)। অনেকগুলো ছোট, কম power-এর cell মিলে একটা শহর cover করে।
- Cluster এবং frequency reuse: মোট channel গুলো Nটা cell-এর মধ্যে ভাগ করা হয়, এদের বলে cluster। একই frequency-র set পরের cluster-এ আবার reuse করা হয়, যথেষ্ট দূরে যাতে interference না হয়। অনুমোদিত cluster size: \( N = i^2 + ij + j^2 \) → 1, 3, 4, 7, 12, ...
- Reuse distance: \( D/R = \sqrt{3N} \) (R = cell radius)। বড় N → co-channel cell আরও দূরে → কম interference, কিন্তু প্রতি cell-এ কম channel।
- Handoff (handover): call চলাকালে এক cell থেকে আরেক cell-এ গেলে call নতুন base station-এর কাছে হস্তান্তর হয়। Hard handoff = আগে ছাড়ো তারপর ধরো (GSM)। Soft handoff = আগে ধরো তারপর ছাড়ো (CDMA)।
- Cell splitting: ব্যস্ত একটা cell-কে ছোট ছোট cell-এ ভাগ করে capacity বাড়ানো।
- N = 7: channels per cell = 660/7 ≈ 94. \( D/R = \sqrt{21} \approx 4.58 \).
- N = 4: channels per cell = 660/4 = 165 (more capacity, but more interference; \( D/R = \sqrt{12} \approx 3.46 \)).
- N = 7: প্রতি cell-এ channel = 660/7 ≈ 94। \( D/R = \sqrt{21} \approx 4.58 \)।
- N = 4: প্রতি cell-এ channel = 660/4 = 165 (বেশি capacity, কিন্তু বেশি interference; \( D/R = \sqrt{12} \approx 3.46 \))।
Comparison of multiplexing / multiple accessMultiplexing / multiple access-এর তুলনা
| Methodপদ্ধতি | What is shared / dividedকী ভাগ করা হয় | Key featureমূল বৈশিষ্ট্য | Exampleউদাহরণ |
|---|---|---|---|
| FDM / FDMA | Frequency | Guard bands; analog friendlyGuard band; analog-এর জন্য সুবিধাজনক | Radio, cable TV, 1G (AMPS)Radio, cable TV, 1G (AMPS) |
| WDM | Wavelength (light) | FDM for fiberFiber-এর জন্য FDM | Backbone fiber linksBackbone fiber link |
| TDM / TDMA | Time slots | Guard time; needs syncGuard time; sync লাগে | T1/E1, GSM (2G) |
| CDMA | Codes | Same time and frequency; soft handoffএকই সময় আর frequency; soft handoff | IS-95, 3G (WCDMA) |
| OFDM / OFDMA | Orthogonal subcarriers (+ time)Orthogonal subcarrier (+ time) | Overlapping subcarriers, no guard band; multipath-proofOverlap করা subcarrier, guard band নেই; multipath সহনশীল | Wi-Fi, 4G LTE, 5G |
Practice Questions (Admission Style)Practice Questions (Admission Style)
Q1–Q12 are IICT MCQ style (one correct option). Q13–Q20 are IICT written style (show every step). Try each one on paper before you open the answer.
Q1–Q12 হলো IICT MCQ style (একটা সঠিক option)। Q13–Q20 হলো IICT written style (প্রতিটা ধাপ দেখান)। Answer খোলার আগে প্রতিটা খাতায় নিজে চেষ্টা করুন।
Show Answerউত্তর দেখুন
Show Answerউত্তর দেখুন
Show Answerউত্তর দেখুন
Show Answerউত্তর দেখুন
Show Answerউত্তর দেখুন
Show Answerউত্তর দেখুন
Show Answerউত্তর দেখুন
Show Answerউত্তর দেখুন
Show Answerউত্তর দেখুন
Show Answerউত্তর দেখুন
Show Answerউত্তর দেখুন
Show Answerউত্তর দেখুন
Show Answerউত্তর দেখুন
- (a) \( P_t = P_c(1 + m^2/2) = 400(1 + 0.64/2) = 400 \times 1.32 = 528 \) W.
- (b) Total sideband power \( = P_c m^2/2 = 400 \times 0.32 = 128 \) W, so each sideband = 64 W.
- (c) \( \eta = 128/528 = 0.242 = 24.2\% \) (check: \( m^2/(2+m^2) = 0.64/2.64 = 24.2\% \)).
- (d) \( P_t = 400 \times 1.5 = 600 \) W (efficiency becomes the maximum 33.3%).
- (a) \( P_t = P_c(1 + m^2/2) = 400(1 + 0.64/2) = 400 \times 1.32 = 528 \) W।
- (b) মোট sideband power \( = P_c m^2/2 = 400 \times 0.32 = 128 \) W, তাই প্রতিটা sideband = 64 W।
- (c) \( \eta = 128/528 = 0.242 = 24.2\% \) (যাচাই: \( m^2/(2+m^2) = 0.64/2.64 = 24.2\% \))।
- (d) \( P_t = 400 \times 1.5 = 600 \) W (efficiency হয় সর্বোচ্চ 33.3%)।
Show Answerউত্তর দেখুন
- (a) Peak values: \( V_{max} = 24/2 = 12 \) V, \( V_{min} = 8/2 = 4 \) V. \( m = (12-4)/(12+4) = 8/16 = 0.5 \). (Using peak-to-peak values directly gives the same m, because the ratio is the same.)
- (b) \( A_c = (12+4)/2 = 8 \) V, \( A_m = (12-4)/2 = 4 \) V. Check \( A_m/A_c = 0.5 \). ✓
- (c) \( I_t = I_c\sqrt{1 + m^2/2} = 8\sqrt{1.125} = 8 \times 1.0607 = 8.49 \) A.
- (a) Peak value: \( V_{max} = 24/2 = 12 \) V, \( V_{min} = 8/2 = 4 \) V। \( m = (12-4)/(12+4) = 8/16 = 0.5 \)। (সরাসরি peak-to-peak value দিয়েও একই m আসে, কারণ ratio একই।)
- (b) \( A_c = (12+4)/2 = 8 \) V, \( A_m = (12-4)/2 = 4 \) V। যাচাই \( A_m/A_c = 0.5 \)। ✓
- (c) \( I_t = I_c\sqrt{1 + m^2/2} = 8\sqrt{1.125} = 8 \times 1.0607 = 8.49 \) A।
Show Answerউত্তর দেখুন
- (a) \( \beta = 60/12 = 5 \). \( B = 2(60 + 12) = 144 \) kHz.
- (b) \( \Delta f \) depends only on amplitude, so it stays 60 kHz. \( \beta = 60/24 = 2.5 \). \( B = 2(60 + 24) = 168 \) kHz.
- (c) \( \Delta f = k_f A_m \) doubles to 120 kHz. \( \beta = 120/12 = 10 \). \( B = 2(120 + 12) = 264 \) kHz.
- (d) β ≥ 2.5 in every case (much more than 1), so it is wideband FM.
- (a) \( \beta = 60/12 = 5 \)। \( B = 2(60 + 12) = 144 \) kHz।
- (b) \( \Delta f \) শুধু amplitude-এর উপর নির্ভর করে, তাই 60 kHz-ই থাকে। \( \beta = 60/24 = 2.5 \)। \( B = 2(60 + 24) = 168 \) kHz।
- (c) \( \Delta f = k_f A_m \) দ্বিগুণ হয়ে 120 kHz। \( \beta = 120/12 = 10 \)। \( B = 2(120 + 12) = 264 \) kHz।
- (d) প্রতিটা ক্ষেত্রে β ≥ 2.5 (1-এর চেয়ে অনেক বেশি), তাই এটা wideband FM।
Show Answerউত্তর দেখুন
- (a) Nyquist rate = 2 × 4 = 8 kHz. 25% more: \( f_s = 1.25 \times 8 = 10 \) kHz.
- (b) \( 6.02n + 1.76 \ge 40 \Rightarrow n \ge 6.35 \Rightarrow n = 7 \) bits. \( L = 2^7 = 128 \) levels (SQNR ≈ 43.9 dB).
- (c) \( R_b = n f_s = 7 \times 10{,}000 = 70 \) kbps.
- (d) \( \Delta = 4/128 = 0.03125 \) V = 31.25 mV. Max error = \( \Delta/2 \approx 15.6 \) mV.
- (e) \( B_{min} \approx R_b/2 = 35 \) kHz — much more than the 4 kHz analog signal. That is the price of going digital.
- (a) Nyquist rate = 2 × 4 = 8 kHz। 25% বেশি: \( f_s = 1.25 \times 8 = 10 \) kHz।
- (b) \( 6.02n + 1.76 \ge 40 \Rightarrow n \ge 6.35 \Rightarrow n = 7 \) bit। \( L = 2^7 = 128 \) level (SQNR ≈ 43.9 dB)।
- (c) \( R_b = n f_s = 7 \times 10{,}000 = 70 \) kbps।
- (d) \( \Delta = 4/128 = 0.03125 \) V = 31.25 mV। সর্বোচ্চ error = \( \Delta/2 \approx 15.6 \) mV।
- (e) \( B_{min} \approx R_b/2 = 35 \) kHz — 4 kHz analog signal-এর চেয়ে অনেক বেশি। Digital হওয়ার দাম এটাই।
Show Answerউত্তর দেখুন
- (a) NRZ-L: − + − − + + + −
- (b) NRZ-I: each 1 flips the level, starting from low → − + + + − + − − (four 1s → 4 transitions).
- (c) AMI: 0 + 0 0 − + − 0 (the 1s alternate +, −, +, −).
- (d) Manchester (0 = H→L, 1 = L→H): HL LH HL HL LH LH LH HL.
- (e) Differential Manchester (0 = change at start, 1 = no change; always change in the middle): LH HL HL HL LH HL LH LH.
- (a) NRZ-L: − + − − + + + −
- (b) NRZ-I: প্রতিটা 1 level উল্টায়, low থেকে শুরু → − + + + − + − − (চারটা 1 → 4টা transition)।
- (c) AMI: 0 + 0 0 − + − 0 (1 গুলো পালা করে +, −, +, −)।
- (d) Manchester (0 = H→L, 1 = L→H): HL LH HL HL LH LH LH HL।
- (e) Differential Manchester (0 = শুরুতে পরিবর্তন, 1 = পরিবর্তন নেই; মাঝখানে সবসময় পরিবর্তন): LH HL HL HL LH HL LH LH।
Show Answerউত্তর দেখুন
- (a) \( C = 2\times10^6 \log_2(1 + 255) = 2\times10^6 \times 8 = 16 \) Mbps.
- (b) \( 10\log_{10}255 \approx 24.1 \) dB.
- (c) \( 12\times10^6 = 2 \times 2\times10^6 \times \log_2 M \Rightarrow \log_2 M = 3 \Rightarrow M = 8 \) levels.
- (d) Nyquist with 1024 levels would give \( 2 \times 2\text{M} \times 10 = 40 \) Mbps, but Shannon says this channel can never carry more than 16 Mbps without errors. With the given noise, 1024 levels are too close together to tell apart. Shannon (noise) sets the real limit.
- (a) \( C = 2\times10^6 \log_2(1 + 255) = 2\times10^6 \times 8 = 16 \) Mbps।
- (b) \( 10\log_{10}255 \approx 24.1 \) dB।
- (c) \( 12\times10^6 = 2 \times 2\times10^6 \times \log_2 M \Rightarrow \log_2 M = 3 \Rightarrow M = 8 \) level।
- (d) 1024 level দিয়ে Nyquist দিত \( 2 \times 2\text{M} \times 10 = 40 \) Mbps, কিন্তু Shannon বলছে এই channel error ছাড়া কখনোই 16 Mbps-এর বেশি বহন করতে পারবে না। এই noise-এ 1024টা level এত কাছাকাছি যে আলাদা করে চেনা যায় না। আসল সীমা ঠিক করে Shannon (noise)।
Show Answerউত্তর দেখুন
- (a) \( N = kTB = 1.38\times10^{-23} \times 290 \times 10^7 = 4.0\times10^{-14} \) W. In dBm: \( 10\log(4.0\times10^{-14}/10^{-3}) \approx -104 \) dBm. (Shortcut: \( -174 + 10\log 10^7 = -174 + 70 = -104 \) dBm.)
- (b) SNR(dB) = signal (dBm) − noise (dBm) = \( -80 - (-104) = 24 \) dB. Ratio = \( 10^{2.4} \approx 250 \).
- (c) \( C = 10^7 \times \log_2(1 + 250) = 10^7 \times 7.97 \approx 79.7 \) Mbps ≈ 80 Mbps. Shortcut check: \( 10\text{ MHz} \times 24/3 = 80 \) Mbps. ✓
- (a) \( N = kTB = 1.38\times10^{-23} \times 290 \times 10^7 = 4.0\times10^{-14} \) W। dBm-এ: \( 10\log(4.0\times10^{-14}/10^{-3}) \approx -104 \) dBm। (Shortcut: \( -174 + 10\log 10^7 = -174 + 70 = -104 \) dBm।)
- (b) SNR(dB) = signal (dBm) − noise (dBm) = \( -80 - (-104) = 24 \) dB। Ratio = \( 10^{2.4} \approx 250 \)।
- (c) \( C = 10^7 \times \log_2(1 + 250) = 10^7 \times 7.97 \approx 79.7 \) Mbps ≈ 80 Mbps। Shortcut দিয়ে যাচাই: \( 10\text{ MHz} \times 24/3 = 80 \) Mbps। ✓
Show Answerউত্তর দেখুন
- (a) One duplex channel = 2 × 25 = 50 kHz. Total = 25,000 kHz / 50 kHz = 500 channels.
- (b) 500 / 7 ≈ 71.4 → about 71 channels per cell (three cells get 72, so 4 × 71 + 3 × 72 = 500).
- (c) \( D/R = \sqrt{3N} = \sqrt{21} \approx 4.58 \).
- (d) Each cluster uses all 500 channels once. 5 clusters → 5 × 500 = 2500 simultaneous calls. This is the power of frequency reuse.
- (e) N = 4: 500/4 = 125 channels per cell, and 5 × 7 = 35 cells would now form about 8.75 clusters → 35 × 125 = 4375 calls instead of 2500. But \( D/R = \sqrt{12} \approx 3.46 \), so co-channel cells are closer → more interference. Smaller N = more capacity, more interference.
- (a) একটা duplex channel = 2 × 25 = 50 kHz। মোট = 25,000 kHz / 50 kHz = 500টা channel।
- (b) 500 / 7 ≈ 71.4 → প্রতি cell-এ প্রায় 71টা channel (তিনটা cell পায় 72টা, তাই 4 × 71 + 3 × 72 = 500)।
- (c) \( D/R = \sqrt{3N} = \sqrt{21} \approx 4.58 \)।
- (d) প্রতিটা cluster সব 500টা channel একবার করে ব্যবহার করে। 5টা cluster → 5 × 500 = 2500টা call একসাথে। এটাই frequency reuse-এর শক্তি।
- (e) N = 4: প্রতি cell-এ 500/4 = 125টা channel, আর একই 5 × 7 = 35টা cell এখন প্রায় 8.75টা cluster বানাবে → 2500-এর বদলে 35 × 125 = 4375টা call। কিন্তু \( D/R = \sqrt{12} \approx 3.46 \), তাই co-channel cell গুলো কাছাকাছি → বেশি interference। ছোট N = বেশি capacity, বেশি interference।