Data Communication · Lecture 2
Sine waves, spectra and bandwidth: what actually travels on the wire
Md Mahbub E Noor · Assistant Professor, Department of CSE, University of Barishal
Course: Data Communication · 2nd Year, 2nd Semester
Lecture 1
Data is stored and processed as bits.
Today
Bits cannot travel as bits. They travel as signals: changing voltage on a wire, light in a fibre, or radio waves in the air.
Reading: Forouzan, Data Communications and Networking, Sections 3.1 to 3.3
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
2 / 33
Voice becomes bits (PCM)
Lecture 5
Bits on an Ethernet cable
Lecture 6
Bits on a Wi-Fi radio wave
Lecture 7
Voice on FM radio
Lecture 8
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
3 / 33
Analog: smooth, infinitely many values
Digital: a few fixed levels, instant jumps
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
4 / 33
Periodic: the same pattern repeats every period T (dashed lines)
Aperiodic: no pattern repeats, like real data
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
5 / 33
Checkpoint 1 · 3 minutes
A thermometer's reading changes smoothly all day. Is this analog or digital data?
Your phone sends a text message over 4G. Which data-to-signal combination is that?
A tuning fork's note and your speech: which is periodic and which is aperiodic?
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
6 / 33
A point turning on a circle, seen from the side, traces a sine wave
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
7 / 33
Same frequency, different amplitude: orange peaks twice as high as blue
Bangladesh mains: 220 V at 50 Hz. The 220 V is an average-type (rms) value; the peak is 220 × √2 ≈ 311 V.
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
8 / 33
| Period T | Frequency f | Example |
|---|---|---|
| 1 s | 1 Hz | One cycle per second |
| 20 ms | 50 Hz | Bangladesh mains |
| 1 ms | 1 kHz | A clear audio tone |
| 10 ns | 100 MHz | FM radio carrier |
| 0.417 ns | 2.4 GHz | Wi-Fi |
Units go together: seconds ↔ Hz, ms ↔ kHz, µs ↔ MHz, ns ↔ GHz, ps ↔ THz
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
9 / 33
Problem 1 · T = 100 ms
f = 1 / 0.1 s
Problem 2 · f = 2.4 GHz
T = 1 / (2.4 × 10⁹) s
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
10 / 33
0°: starts at zero, rising
90°: starts at the peak
180°: starts at zero, falling
270°: starts at the bottom
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
11 / 33
| Signal | Frequency | Wavelength in air |
|---|---|---|
| FM radio | 100 MHz | 3 m |
| Wi-Fi | 2.4 GHz | 12.5 cm |
| Wi-Fi | 5 GHz | 6 cm |
A common antenna is about λ/4 long: 2.4 GHz Wi-Fi needs only about 3 cm, small enough to hide inside a phone.
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
12 / 33
Checkpoint 2 · 3 minutes
A signal has a period of 0.5 ms. What is its frequency?
Convert a phase shift of 90° to radians.
What is the wavelength of a 5 GHz Wi-Fi signal in air?
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
13 / 33
Time domain
Frequency domain (0 to 20 Hz)
DC, 5 V
8 Hz, peak 5 V
16 Hz, peak 5 V
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
14 / 33
Interactive
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
15 / 33
10 V DC + 7 V sine at 6 Hz
Time domain: swings between 3 V and 17 V
Frequency domain: a spike of 10 at 0 Hz and a spike of 7 at 6 Hz
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
16 / 33
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
17 / 33
Interactive
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
18 / 33
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
19 / 33
1,000 Hz
5,000 Hz
B = 5,000 − 1,000 = 4,000 Hz
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
20 / 33
Example (a)
100
300
500
700
900 Hz
B = 900 − 100 = 800 Hz
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
21 / 33
The range of frequencies a signal contains or a channel passes
Example: a telephone line passes about 4 kHz
How many bits per second a link can carry: its capacity
Example: “100 Mbps Ethernet”, “50 Mbps broadband plan”
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
22 / 33
2 levels → 1 bit per level
1 0 1 1 0 0 0 1
4 levels → 2 bits per level
11 10 01 00 10 11 00 01
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
23 / 33
1 0 1 1 0 0 0 1
8 bits in 1 second: bit rate = 8 bps, bit interval = 1/8 s = 0.125 s
Fast Ethernet, 100 Mbps: each bit lasts 10 ns and occupies 2 m of cable (at 2 × 10⁸ m/s).
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
24 / 33
Text: 100 pages per second
100 × 24 × 80 × 8
1.536 Mbps
HD video, uncompressed
1920 × 1080 × 30 × 24
≈ 1.5 Gbps
Phone-quality voice
8,000 × 8
64 kbps
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
25 / 33
Sent: sharp edges, many harmonics
Wide channel (keeps f, 3f, 5f): rounded but readable
Narrow channel (keeps only f): the edges are gone
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
26 / 33
| Harmonics kept | Bandwidth needed | For N = 1 Mbps |
|---|---|---|
| 1st only | B ≈ N/2 | 500 kHz |
| 1st and 3rd | B ≈ 3N/2 | 1.5 MHz |
| 1st, 3rd and 5th | B ≈ 5N/2 | 2.5 MHz |
Double the bit rate and the bandwidth needed doubles too: bandwidth is proportional to bit rate.
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
27 / 33
Interactive
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
28 / 33
Digital signal sent as is over a low-pass channel starting at 0 Hz
Ethernet cable between a PC and a switch
Signal shifted onto a carrier, into a band-pass channel
Wi-Fi, 4G, cable modem, DSL
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
29 / 33
Click the video to play or pause · Press → for full screen
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
30 / 33
Checkpoint 3 · 3 minutes
A signal contains 200, 400, 600 and 800 Hz. What is its bandwidth?
What is the bit interval at 2 Mbps?
Using only the first harmonic, what minimum bandwidth does 10 Mbps need?
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
32 / 33
Next lecture
What weakens and corrupts a signal (attenuation, distortion, noise), how fast a channel can possibly go (Nyquist, Shannon), and how we measure network performance.
Reading: Forouzan, Sections 3.4 to 3.6 · Practise in Signal Lab, tab 3
Md Mahbub E Noor
Lecture 2: Data and Signals I
University of Barishal
33 / 33