Chapter 2
Chapter 2
1
The Theoretical Basis for Data
Communication
• Fourier Analysis
• Bandwidth-Limited Signals
• Maximum Data Rate of a Channel
2
Fourier Series Decomposition
Reminder:
Any (reasonably behaved) periodic signal g(t), of period T, can be
constructed by summing a (possibly infinite) number of sines and
cosines (called a Fourier series):
1
g (t )
2
c a n sin( 2 nft ) b n cos( 2 nft ) (2 - 1)
n 1 n 1
where
f = 1/T is the fundamental frequency
an and bn are the sine and cosine amplitudes of the nth
harmonics
(For nonperiodic signals, refer to Fourier transforms, but the intuition is
the same)
2
an g (t ) s in ( 2 n ft ) d t
2
bn g (t ) c o s ( 2 n ft ) d t
2
3
c
g (t ) d t
Fourier Transform
4
Fourier Transform (2)
5
Bandwidth-Limited Signals
OK
Not
OK
9
Autocorrelation function of random binary wave
10
Power spectral density of random binary wave
Sx f R x exp( j 2 f ) d 11
Line codes for the electrical representations of binary data.
(a) Unipolar NRZ signaling. (b) Polar NRZ signaling. (c) Unipolar RZ signaling.
(d) Bipolar RZ signaling. (e) Split-phase or Manchester code. 12
Coding: baud vs. bps
baud=Symbol/sec
Maximum Data Rate of a Channel
Nyquist’s Theorem
Max. data rate = 2 H log 2
V bits/sec
(Noiseless Channel)
where V represent No. of discrete level of signals.
Shannon’s Theorem
S
Max. data rate = H log 2 (1 ) bits/sec
N
(Noisy Channel)
• Magnetic Media
• Twisted Pairs
• Coaxial Cable
• Power Lines
• Fiber Optics
15
Magnetic Media
16
Twisted Pair
Twisted pair
– two insulated copper wires, 1mm thick
– to reduce electrical interference from similar pairs close by
– low cost
Application
– telephone system: nearly all telephones
– several km without amplification
Bandwidth
– thickness of the wire, and distance
– Typically, several Mbps for a few km
17
Twisted Pairs
A coaxial cable.
19
Power Lines
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Baseband Coaxial Cable
Coaxial cable (coax)
– better shielding (Fig. 2-4)
– longer distances at higher speeds
– two kinds
• 50-ohm cable: digital transmission
• 75-ohm cable: analog transmission (Cable TV)
Bandwidth
– 1-km cable: 1-2 Gbps
Application
– telephones system: coaxial cable are being replaced by fiber optics
– widely used for cable TV
21
Broadband Coaxial Cable
Broadband cable
– any cable network using analog transmission
– 300 MHz (1bps ~ 1 Hz of bandwidth)
– 100 km
– multiple channels: 6-MHz channels
Difference between baseband and broadband
– broadband covers a large area
– analog amplifiers are needed
Broadband cable
– inferior to baseband (single channel) for sending digital data
– advantage: a huge amount is installed
– In US, TV cable more than 80% of all homes
– cable TV systems will operate as MANs and offer telephone and
other service 22
fiber
23
Fiber Optics
Achievable bandwidth with fiber: more than 50,000 Gbps
– 40 Gbps/wavelength : due to inability to convert electrical ->
optical signals faster
– 100 Gbps: in lab
CPUs’ physical limits
– speed of electron
– heat dissipation
Communication (100 times/decade) won the race with
computation (10 times/decade)
– use network, and avoid computations at all
24
Fiber Optics (2)
Optical Transmission Systems
– light source
– transmission medium: ultra-thin fiber of glass
– detector: light -> electrical pulse
Refraction ( See Fig. 2.5)
Multimode fiber
– many different rays are bounced at different angles
Single-mode fiber
– fiber’s diameter: a few wavelengths of light
– for longer distances
– lasers: 100 km without repeaters
25
Fiber Optics (3)
(a) Three examples of a light ray from inside a silica fiber impinging
on the air/silica boundary at different angles.
(b) Light trapped by total internal reflection.
Snell’s
26
(total internal reflection)
Transmission of Light through Fiber
Long
31
Electromagnetic Spectrum
lf = c, df
c
f
c l
(2 - 3)
– c: 3 * 108 m/sec d l l l
2 2
35
The Electromagnetic Spectrum (2)
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Radio Transmission (3)
(a) In the VLF, LF, and MF bands, radio waves follow the
curvature of the earth.
(b) In the HF band, they bounce off the ionosphere.
37
Microwave Transmission
Microwaves
– above 100 Mhz
– travel in straight lines, narrowly focused
– long distance telephone transmission systems (before fiber optics)
– MCI: Microwave Communications, Inc. (A company was
competing with AT&T)
– repeaters needed periodically
– do not penetrate buildings well
– Multipath fading: some divergence, some refracted
– problem at 4 GHz: absorption by water (rain)
Usage
– widely used by long-distance telephone, cellular telephones, TV
Advantages over Fiber Optics
– do not need right of way: microwave tower for every 50 km (MCI)
38
– relatively inexpensive (towers and antennas)
Microwave Transmission (2)
Industrial/Scientific/Medical Bands (ISM)
– do not require government licensing
– cordless telephones, garage door openers, wireless hi-fi
speakers, security gates
– higher bands
• more expensive electronics
• interference from microwave and radar installations
39
The Politics of the Electromagnetic
Spectrum
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Infrared and Millimeter Waves
short range communications:
– remote controllers for TVs, VCRs, and stereos
relatively directional, cheap, easy to build
do not pass through solid objects
– no interference between rooms
– security is better than radio systems
– no government license is needed
Indoor wireless LAN
41
Lightwave Transmission
Unguided optical signaling
– to connect LANs in two buildings via lasers mounted on rooftops
• very high bandwidth
• very low cost
• Relatively easy to install
• does not require FCC license
• need to aim accurately
• disadvantage: laser beams cannot penetrate rain or thick fog
An example interference with convection currents
– See Fig. 2-14
42
Lightwave Transmission (2)
• 1.Transmitter
– Block diagram of the transmitter 44
Broadband Communication Laboratory
System Description(2)
a) 2.Receiver
– Block diagram of the transmitter 45
Broadband Communication Laboratory
System Description(3)
– b. Specification of 6” lens
Diameter:6”(~15cm)
focal length:600mm
46
Broadband Communication Laboratory
Experiment Set-up
• Geostationary Satellites
• Medium-Earth Orbit Satellites
• Low-Earth Orbit Satellites
• Satellites versus Fiber
49
Communication Satellites
• Baseband Transmission
• Passband Transmission
• Frequency Division Multiplexing
• Time Division Multiplexing
• Code Division Multiplexing
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Baseband Transmission
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Clock Recovery
4B/5B mapping.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Passband Transmission (1)
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Frequency Division Multiplexing (1)
Gray-coded QAM-16.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Frequency Division Multiplexing (2)
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Frequency Division Multiplexing (3)
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Time Division Multiplexing
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Code Division Multiplexing (1)
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Code Division Multiplexing (2)
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Public Switched Telephone System
• Structure of the Telephone System
• The Politics of Telephones
• The Local Loop: Modems, ADSL and Wireless
• Trunks and Multiplexing
• Switching
66
Telephone System
Telephone system is tightly intertwined with WAN
– cable between two computers
• transfer at memory speeds: 108 bps
• error rate: 10-12 bits (one per day)
– dial up line
• data rate: 104 bps
• error rate: 10-5 bits
• 11 orders of magnitude worse than cable
67
Structure of Telephone System
Hierarchy of telephone system: 5 levels
Terms
– end office (local central office): area code + first 3 digits
– local loop: two copper wires/telephone, < 10 km
– toll office
• tandem office: within the same local area
– switching centers: primary, sectional, and regional exchanges
– See Fig. 2-21
Advantages of digital signaling (-5 & +5 volts)
– lower error rate: less loss for long distance with regenerators
– voice, data, music, and images can be interspersed
– much higher data rates with existing lines
– much cheaper (to distinguish 0 & 1 is easier)
– maintenance is easier: tracking problems
68
Structure of the Telephone System (2)
71
The Politics of Telephones
(point of presence)
Bandwidth versus distanced over category 3 Unshielded Twisted Pair (UTP) for DSL.
When all the other factors (new wires, modest bundles, …) are optimal 75
Digital Subscriber Lines (2)
•The Discrete MultiTone (DMT) modulation divides the available 1.1 MHz spectrum
on the local loop into 256 independent channels of 4312.5 Hz each
• Channel 0 is used for voice, channels 1~5 are for the guard band
Of the remaining 250 channels, one is used for upstream control, and one is used
for downstream control. The others are for use data.
Network
Interface
Device
Digital
Subscriber
Line Access
Multiplexer
78
Architecture of an Local Multipoint Distribution Service (LMDS) system.
Fiber To The Home
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Time Division Multiplexing
Pulse Code Modulation (PCM) is the heart of the modern telephone system
A analog signal is sampled, quantized and coded
Each channel has 8bits, 24 channels and one framing bit form a frame of 125 µsec
Delta modulation.
81
Time Division Multiplexing (3)
(Synchronous
Payload
Envelope)
Two back-to-back SONET frames.
83
SONET/SDH (2)
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Wavelength Division Multiplexing
88
(a) Circuit switching (b) Message switching (c) Packet switching
Circuit Switching/Packet Switching (3)
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
The Mobile Telephone System
First-Generation Mobile Phones:
Analog Voice
Second-Generation Mobile Phones:
Digital Voice
Third-Generation Mobile Phones:
Digital Voice, Data, and image
Fourth-Generation Mobile Phones (OFDM):
multimedia
90
Advanced Mobile Phone System
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
GSM
Global System for Mobile
Communicationss
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Digital Voice and Data (2)
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Cable Television
97
Community Antenna Television
Cable Television
99
Internet over Cable (2)