Lecture 4
Lecture 4
Lecture 4
1
Previously …
• Encapsulation is the mechanism used to effect protocol
layering
802.11 IP TCP HTTP
• Advantage of Layering
– Information hiding and reuse
– Using information hiding to connect different systems
• Disadvantage of Layering
– Adds overhead
– Hides information
2
Previously …
• OSI “7 layer” Reference Model
• Internet Reference Model
3 Internet IP
3
A Simple Model of “Link”
Message
Message
5
Latency Examples
• “Dialup” with a telephone modem:
– D = 5ms, R = 56 kbps, M = 1500 bytes
L = 5ms + 1500*8/56e3 = 219 ms
6
Bandwidth-Delay Product
• Messages take space on the wire!
7
BD Example
• Fiber at home, cross-country
R=40 Mbps, D=50 ms
BD = 40 x 106 x 50 x 10-3 bits
= 2000 Kbit
= 250 KB
• That’s quite a lot of data
“in the network”!
8
Modulation
• Changing a signal to convey information
(representing bits)
101011… 101011…
10
Frequency Representation
• A signal over time can be represented by its
frequency components
– Periodic time signal → Fourier series
g(t)
G(n)
n*(2*pi*f)
11
Effect of Less Bandwidth
• Fewer frequencies (=less bandwidth) degrades signal
Lost!
Bandwidth
Lost!
Lost!
12
Signals over a Wire
• What happens to a signal as it passes over a wire?
1. The signal is delayed (propagates at ⅔c)
2. The signal is attenuated (goes for m to km)
3. Frequencies above a cutoff are highly attenuated
4. Noise is added to the signal (later, causes errors)
13
Signals over Wireless
• Signals transmitted on a carrier frequency
A B Location
14
Signals over Wireless
• Sender radiates signal over a region
– In many directions, unlike a wire, to potentially
many receivers
– Nearby signals (same frequency) interfere at a
receiver; need to coordinate use
15
16
Wireless
• Microwave, e.g., 4G, and unlicensed (ISM)
frequencies, e.g., WiFi, are widely used for
computer networking
802.11 802.11a/g/n
b/g/n
17
Wireless Multipath
• Signals bounce off objects and take multiple paths
– Some frequencies attenuated at receiver, varies with
location
– Messes up signal; handled with sophisticated methods
18
Wireless Medium
• By far the most complicated medium
compared to wires and fiber
– Propagation in a complicated environment
• Bouncing, shadowing
• Can be divided and combined
– Frequency-dependent
• Light is directional, sound goes around corners
• Microwave band in computer networking
19
Fundamental Limits
• How rapidly can we send information over a
link?
– Nyquist limit (~1924)
– Shannon capacity (1948)
20
Transmission Parameters
• The bandwidth (B): width of the non-zeros
frequency range of the signal
– Limits the rate of transitions
21
Nyquist Limit
• The maximum symbol rate is 2B (Hz) in a
noiseless channel of bandwidth B (Hz)
– Example: Assume binary amplitude encoding, a
3000 Hz channel can transmit data at a rate of at
most 6000 bits/second
0 0 1 1 1 1 0 1 0 1 0 0 0 0 1
+V
-V
22
Nyquist Limit
• How to improve upon this bit rate?
– Use more levels
0 2 3 3 1 0
23
Shannon’s Theorem
C = B log2 (1 + S/N)
• Upper bound on channel capacity, while
considering noise
– C : maximum capacity (bps)
– B : channel bandwidth (Hz)
– S/N: Signal to Noise Ratio (SNR), often expressed in
decibels SNR := 10 log10 (S/N)
• Typical S/N: 10
– What is the upper limit on capacity?
C = 3200 x log2(1 + 10) = 11 Kbps
– If use 4 signal levels, what is the maximum rate?
25