SlideShare a Scribd company logo
1 of 97
Download to read offline
The Physical Layer
Chapter 2
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
• Theoretical Basis for Data Communications
• Guided Transmission Media
• Wireless Transmission
• Communication Satellites
• Digital Modulation and Multiplexing
• Public Switched Telephone Network
• Mobile Telephone System
• Cable Television
Revised: February 2018
The Physical Layer
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Foundation on which other layers build
• Properties of wires, fiber, wireless
limit what the network can do
Key problem is to send (digital) bits
using only (analog) signals
• This is called modulation
Physical
Link
Network
Transport
Application
Physical Layer Issues
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
• Media: wires, fiber, satellites, radio
• Signal propagation: bandwidth, attenuation, noise
• Modulation: how bits are represented as voltage signals
• Fundamental limits: Nyquist, Shannon
Abstract Model of a Link
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
• Bit rate: bits/sec depends on the channel’s bandwidth
• Delay: how long does it take a bit to get to the end?
• Error rate: what is the probability of a bit flipping?
Sender Receiver
Channel: bit rate, delay, error rate
Bandwidth-Delay Product
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
• Bits have a physical size on the channel!
• Storage capacity of a channel is: bit rate x delay
• Example:
• 100 Mbps 5000-km fiber, delay = 50 msec
• In 50 msec we can pump out 5 million bits
• So the fiber can store 5 million bits in 5000 km
• 1 km holds 1000 bits so a bit is 1 meter long
• At 200 Mbps, a bit is 0.5 m long
Signal Propagation over a Wire
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
• The signal has a finite propagation speed (2/3 c)
• The signal is attenuated per km
• Frequencies above a cutoff are strongly reduced
• Noise is added to the signal
Theoretical Basis for Data Communication
Communication rates have fundamental limits
• Fourier analysis
• Bandwidth-limited signals
• Maximum data rate of a channel
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Sine wave
g(t) = A sin (2 π f t + ϕ)
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
• A is the amplitude = how strong the signal is
• f is the frequency (cycles/sec or Hz) = how fast it changes in time
Time
A
(Volts)
Period = 1/f
A
(Volts)
A
Fourier Analysis
A time-varying periodic signal can be represented as a
series of frequency components (harmonics):
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
a, b weights of harmonics
Signal over time
=
Bandwidth
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
• At the signal level, bandwidth is cutoff frequency (HZ)
• For data transmission it is bits/sec
Bandwidth-Limited Signals
Having less bandwidth (harmonics) degrades the signal
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
8 harmonics
Lost!
Bandwidth
4 harmonics
Lost!
2 harmonics
Lost!
Maximum Data Rate of a Channel - Nyquist
Nyquist’s theorem relates the data rate to the bandwidth (B)
and number of signal levels (V) on a noiseless channel:
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Max. data rate = 2B log2V bits/sec
• Examples
− 3000 Hz channel (tel. line), binary signals = 6000 bps
− 3000 Hz channel (tel. line), 4-level signals = 12,000 bps
− 3000 Hz channel (tel. line), 16-level signals = 48,000 bps
• Nyquist is a property of mathematics that relate
bandwidth to symbols/sec and bits/sec
Maximum Data Rate of a Channel - Shannon
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Max. data rate = B log2(1 + S/N) bits/sec
How fast signal
can change
How many levels
can be seen
Shannon's theorem relates the data rate to the bandwidth
(B) and signal strength (S) relative to the noise (N):
• Signal to noise is signal power to noise power:
- Expressed as log10 signal power/noise power
- S/N of 10 is written as 10 dB
- S/N of 100 is written as 20 dB
- S/N of 1000 is written as 30 dB
Example of Shannon’s limit
• DSL line of 1 MHz
• Suppose S/N = 50 dB (S = 100,000)
• Data rate = 106 log2 (100,001) bit/sec
• Data rate = 16.6 Mbps
• To go higher, you have to cheat:
- Fiber to the curb
- Bonding: Use two or more pairs
- Dynamic spectrum mgmt (basically, reduce noise)
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Nyquist vs. Shannon
• Nyquist:
- For noiseless channel
- Depends on number signal levels per symbol
• Shannon
- For noisy channel
- Depends on S/N ratio, not bits/symbol
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Guided Transmission (Wires & Fiber)
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Media have different properties, hence performance
• Reality check
− Physical transport of storage media
• Wires:
− Twisted pairs
− Coaxial cable
− Power lines
• Fiber cables
Transporting Physical Media
• AST 1990: Never underestimate the bandwidth
of a station wagon full of tapes hurtling down
the highway.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
• Ultrium 7 tape = 6 TB, 400 cm2 (costs €100)
• Typical van has capacity of 7 x 106 cm2
• Van holds 17,500 tapes holding 105 x 1015 bytes
• One person can drive NYC to LA in 5 days = 4 x 105 s
• This is a bandwidth of 2 Tbps or 2000 Gbps
Amazon’s Snowmobile Service
• When I first wrote that, I meant it as a joke
• No longer. Enter Amazon’s Snowmobile service
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
• It is for companies to put their data in the cloud
• The Truck holds 100 PB (100,000 terabytes) on HDs
Category 5 UTP cable with four twisted pairs
Wires – Twisted Pair
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Very common; used in LANs, telephone lines
• Twists reduce radiated signal (interference)
• UTP = Unshielded Twisted Pair
Kinds of Wire
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
• STP = Shielded Twisted Pair
• UTP = Unshielded Twisted Pair
- Cat 3: Home telephone lines
- Cat 5: Fast Ethernet (100 Mbps)
- Cat 5e: Gigabit Ethernet (1 Gbps)
- Cat 6: 10-Gigabit Ethernet (10 Gps) up to 100 m
- Cat 6A: Better quality Cat 6
- Cat 7: Includes shielding (not in common use)
Connectors
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
RJ11 – 4 wires RJ45 – 8 wires
Modern buildings are wired for RJ45 but there are adaptors
Link Terminology
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Simplex link
• Only one fixed direction at all times; not common
Half-duplex link
• Both directions, but not at the same time
• e.g., senders take turns on a wireless channel
Full-duplex link
• Used for transmission in both directions at once
• e.g., use different twisted pairs for each direction
Wires – Coaxial Cable (“Co-ax”)
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Also common. Better shielding and more bandwidth for
longer distances and higher rates than twisted pair.
Wires – Power Lines
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Household electrical wiring is another example of wires
• Convenient to use, but poor for sending data
Fiber Optics (1)
Three examples of a light ray from inside a
silica fiber impinging on the air/silica boundary
at different angles.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Fiber Cables (2)
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Common for high rates and long distances
• Long distance ISP links, Fiber-to-the-Home
• Light carried in very long, thin strand of glass
Light source
(LED, laser) Photodetector
Light trapped by
total internal reflection
Fiber Cables (3)
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Fiber has enormous bandwidth (THz) and tiny signal
loss – hence high rates over long distances
Fiber Cables (3)
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Single-mode
• Core so narrow (10um) light can’t
even bounce around
• Used with lasers for long distances,
e.g., 100km
Multi-mode
• Other main type of fiber
• Light can bounce (50um core)
• Used with LEDs for cheaper, shorter
distance links
Fibers in a cable
TAT-14 TransAtlantic Cable
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
• Fiber cable lies on the ocean floor (8000 m deep)
• Ring structure
• Two pairs of fibers used plus two pairs for backup
• Theoretical capacity is 3 Tbps
• Cables are not well protected and there is no backup
Comparison of the properties of wires and fiber:
Wire vs. Fiber
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Property Wires Fiber
Distance Short (100s of m) Long (tens of km)
Bandwidth Moderate Very High
Cost Inexpensive Less cheap
Convenience Easy to use Less easy
Security Easy to tap Hard to tap
Wireless Transmission
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
• Electromagnetic Spectrum
• Radio Transmission
• Microwave Transmission
• Light Transmission
• Wireless vs. Wires/Fiber
Electromagnetic Spectrum (1)
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Different bands have different uses:
− Radio: wide-area broadcast; Infrared/Light: line-of-sight
− Microwave: LANs and 3G/4G;
Microwave
Networking focus
Electromagnetic Spectrum (2)
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
To manage interference, spectrum is carefully divided,
and its use regulated and licensed, e.g., sold at auction.
Source: NTIA Office of Spectrum Management, 2003
3 GHz 30 GHz
3 GHz
300 MHz
WiFi (ISM bands)
Part of the US frequency allocations
Electromagnetic Spectrum (3)
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Fortunately, there are also unlicensed (“ISM”) bands:
− Free for use at low power; devices manage interference
− Widely used for networking; WiFi, Bluetooth, etc.
802.11
b/g/n
802.11a/g/n/ac
Radio Waves
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
• Radio waves have a frequency, f, in Hz
• They have a wavelength, λ in meters
• λf = c in vacuum
• Speed of radio/light = 1 foot/nsec
• For microwaves, megahertz x meters = 300
− 300 MHz waves are 1 meter long
− 1 GHz waves are 30 cm long
− 2.4 GHz waves are 12.5 cm long
Radio Transmission
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
In the HF band, radio waves bounce off
the ionosphere.
In the VLF, LF, and MF bands, radio
waves follow the curvature of the earth
Radio signals penetrate buildings well and propagate for
long distances with path loss
Microwave Transmission
Microwaves have much bandwidth and are widely used
indoors (WiFi) and outdoors (3G, satellites)
• Signal is attenuated/reflected by everyday objects
• Strength varies with mobility due multipath fading, etc.
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Light Transmission
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Line-of-sight light (no fiber) can be used for links
• Light is highly directional, has much bandwidth
• Use of LEDs/cameras and lasers/photodetectors
Wireless vs. Wires/Fiber
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Wireless:
+ Easy and inexpensive to deploy
+ Naturally supports mobility
+ Naturally supports broadcast
− Transmissions interfere and must be managed
− Signal strengths hence data rates vary greatly
Wires/Fiber:
+ Easy to engineer a fixed data rate over point-to-point links
− Can be expensive to deploy, esp. over distances
− Doesn’t readily support mobility or broadcast
Communication Satellites
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Satellites are effective for broadcast distribution
and anywhere/anytime communications
• Kinds of Satellites
• Geostationary (GEO) Satellites
• Low-Earth Orbit (LEO) Satellites
• Satellites vs. Fiber
Kinds of Satellites
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Satellites and their properties vary by altitude:
• Geostationary (GEO), Medium-Earth Orbit (MEO),
and Low-Earth Orbit (LEO)
Sats needed for
global coverage
Geostationary Satellites (1)
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
GEO satellites orbit 36,000 km above a fixed location
• VSAT (computers) can communicate with the help of a hub
• Up and down time is about 250 msec
• Big problem for voice
VSAT
GEO satellite
Geostationary Satellites (2)
The principal satellite bands
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Low-Earth Orbit Satellites
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Systems such as Iridium use many low-latency satellites
for coverage and route communications via them
The 66 Iridium satellites form six
necklaces around the earth.
Low-Earth Orbit Satellites (2)
Relaying in space.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Low-Earth Orbit Satellites (3)
Relaying on the ground
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Satellite vs. Fiber
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Satellite:
+ Can rapidly set up anywhere/anytime communications (after
satellites have been launched)
+ Can broadcast to large regions
− Limited bandwidth and interference to manage
Fiber:
+ Enormous bandwidth over long distances
− Installation can be more expensive/difficult
− Doesn’t work at sea or in remote areas
Digital Modulation and Multiplexing
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Modulation schemes send bits as signals
Multiplexing schemes share a channel among users.
• Baseband Transmission
• Passband Transmission
• Frequency Division Multiplexing
• Time Division Multiplexing
• Code Division Multiple Access
Baseband Transmission
Line codes send symbols that represent one or more bits
• NRZ is the simplest, literal line code (+1V=“1”, -1V=“0”)
• Other codes tradeoff bandwidth and signal transitions
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Four different line codes
Clock Recovery
To decode the symbols, signals need sufficient transitions
• Otherwise long runs of 0s (or 1s) are confusing, e.g.:
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
1 0 0 0 0 0 0 0 0 0 0 um, 0? er, 0?
Data Code Data Code Data Code Data Code
0000 11110 0100 01010 1000 10010 1100 11010
0001 01001 0101 01011 1001 10011 1101 11011
0010 10100 0110 01110 1010 10110 1110 11100
0011 10101 0111 01111 1011 10111 1111 11101
Strategies:
Manchester coding, mixes clock signal in every symbol
4B/5B maps 4 data bits to 5 coded bits with 1s and 0s:
Scrambler XORs tx/rx data with pseudorandom bits
Passband Transmission (1)
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Modulating the amplitude, frequency/phase of a carrier
signal sends bits in a (non-zero) frequency range
NRZ signal of bits
Amplitude shift keying
Frequency shift keying
Phase shift keying
BPSK
2 symbols
1 bit/symbol
QPSK
4 symbols
2 bits/symbol
QAM-16
16 symbols
4 bits/symbol
QAM-64
64 symbols
6 bits/symbol
QAM varies amplitude and phase
BPSK/QPSK varies only phase
Passband Transmission (2)
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Constellation diagrams are a shorthand to capture the
amplitude and phase modulations of symbols:
Frequency Division Multiplexing
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
FDM (Frequency Division Multiplexing) shares the
channel by placing users on different frequencies:
Overall FDM channel
Frequency Hopping Spread Spectrum
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
• WiFi and Bluetooth change frequencies many times/sec
• Called “frequency hopping”
• Invented by sex-goddess Hedy Lamarr
• She patented it, but Navy wasn’t interested
Time Division Multiplexing (TDM)
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Time division multiplexing shares a channel over time:
• Users take turns on a fixed schedule; this is not
packet switching or STDM (Statistical TDM)
• Widely used in telephone / cellular systems
Code Division Multiple Access (1)
(a) Chip sequences for four stations.
(b) Signals the sequences represent
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Code Division Multiple Access (2)
(c) Six examples of transmissions.
(d) Recovery of station C’s
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
The Public Switched Telephone Network
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
• Structure of the telephone system
• Politics of telephones
• Local loop: modems, ADSL, and FttH
• Trunks and multiplexing
• Switching
Structure of the Telephone System (1)
(a) Fully interconnected network.
(b) Centralized switch.
(c) Two-level hierarchy.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Structure of the Telephone System (2)
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
A hierarchical system for carrying voice calls made of:
• Local loops, mostly analog twisted pairs to houses
• Trunks, digital fiber optic links that carry many calls
• Switching offices, that move calls among trunks
Structure of the Telephone System (3)
Major Components
• Local loops analog twisted pairs to houses, businesses).
• Trunks (digital fiber optic links between switching offices).
• Switching offices (calls are moved from one trunk to
another)
• Core of phone system is optical & digital in Europe, US
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
The Politics of Telephones
There is a distinction for competition between serving a
local area (LECs) and connecting to a local area (at a POP)
to switch calls across areas (IXCs)
• Customers of a LEC can dial via any IXC they choose
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Physics of Cat 3 Wiring
Bandwidth versus distance over Category 3
UTP for DSL.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Local loop (2): modems
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Telephone modems send digital data over an 3.3 KHz
analog voice channel interface to the POTS
• Rates <56 kbps; early way to connect to the Internet
Local loop (1): Acoustic Couplers
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
• Until 1968 in U.S. and ca. 1984 in Europe, modems were
not allowed
• People could use acoustic couplers to connect terminals
Local loop (3): Digital Subscriber Lines
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
DSL broadband sends data over the local loop to the local
office using frequencies that are not used for POTS
• Telephone/computers
attach to the same old
phone line
• Rates vary with line
− ADSL2 up to 24 Mbps
− VDSL2 to 100 Mbps
• OFDM used to 1.1 MHz
− Most bandwidth down
Local loop (4): Fiber To The Home
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
FttH broadband relies on deployment of fiber optic
cables to provide high data rates customers
• One wavelength can be shared among many houses
• Fiber is passive (no amplifiers, etc.)
Pulse Code Modulation (1)
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Calls are carried digitally on PSTN trunks using TDM
• A call is an 8-bit PCM sample each 125 µs (64 kbps)
• Traditional T1 carrier has 24 call channels each 125
µs (1.544 Mbps)
• Europe uses 8 bits for data: E1 at 2.048 Mbps
Pulse Code Modulation (2)
Multiplexing T1 streams into higher carriers
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
SONET/SDH (1)
• Different carriers had to interconnect
• For international calls, T3 and E3 had to be harmonized
• Need for standards above T4 and E4
• Better network management was needed
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
SONET/SDH (2)
SONET (Synchronous Optical NETwork) is the worldwide
standard for carrying digital signals on optical trunks
• Keeps 125 µs frame; base frame is 810 bytes (52Mbps)
• Payload “floats” within framing for flexibility
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
SONET/SDH (3)
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Hierarchy at 3:1 per level is used for higher rates
• Each level also adds a small amount of framing
• Rates from 52 Mbps (STS-1) to 40 Gbps (STS-768)
SONET/SDH rate hierarchy
Wavelength Division Multiplexing
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
WDM (Wavelength Division Multiplexing), another name
for FDM, is used to carry many signals on one fiber:
Circuit Switching/Packet Switching (1)
(a) Circuit switching. (b) Packet switching.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Circuit Switching/Packet Switching (2)
Timing of events in (a) circuit switching,
(b) packet switching
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Circuit Switching/Packet Switching (3)
A comparison of circuit-switched and packet-switched networks.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
QUEUEING DELAY
• Queueing delay for M/M/1 system: Q = 1/(1-ρ) * T
• Where ρ is the line utilization
• Examples:
- ρ = 0.01 means Q = 1.01T
- ρ = 0.5 means Q = 2T
- ρ = 0.8 means Q = 5T
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Switch
Packet
Mobile Telephone System
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
• Generations of mobile telephone systems
• Cellular mobile telephone systems
• GSM, a 2G system
• UMTS, a 3G system
• 4G LTE
• 4G
Generations of mobile telephone systems
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
• 1G, analog voice
− AMPS (Advanced Mobile Phone System) is example, deployed
from 1980s. Modulation based on FM (as in radio).
• 2G, analog voice and digital data
− GSM (Global System for Mobile communications) is example,
deployed from 1990s. Modulation based on QPSK.
• 3G, digital voice and data
− UMTS (Universal Mobile Telecommunications System) is
example, deployed from 2000s. Modulation based on CDMA
• LTE, digital data including voice
− LTE (Long Term Evolution) is example, deployed from 2010s.
Modulation based on OFDM
• 4G based on CDMA and 802.16m (WiMax)
Cellular mobile phone systems
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
All based on notion of spatial regions called cells
− Each mobile uses a frequency in a cell; moves cause handoff
− Frequencies are reused across non-adjacent cells
− To support more mobiles, smaller cells can be used
2G GSM – Global System for Mobile
Communications (1)
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
• Mobile is divided into handset and SIM card
(Subscriber Identity Module) with credentials
• Mobiles tell their HLR (Home Location Register) their
current whereabouts for incoming calls
• Cells keep track of visiting mobiles (in the Visitor LR)
2G GSM – Global System for Mobile
Communications (2)
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Air interface is based on FDM channels of 200 KHz
divided in an eight-slot TDM frame every 4.615 ms
• Mobile is assigned up- and down-stream slots to use
• Each slot is 148 bits long, gives rate of 27.4 kbps
2G GSM—The Global System for Mobile
Communications (3)
A portion of the GSM framing structure.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Goals for UMTS (3G)
Basic services desired
• High-quality voice transmission.
• Messaging (replacing email, fax, SMS, chat).
• Multimedia (music, videos, films, television).
• Internet access (Web surfing, incl. audio, video).
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
3G UMTS – Universal Mobile
Telecommunications System (1)
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Architecture is an evolution of GSM; terminology differs
Not compatible with 2G GSM
Internet
3G UMTS – Universal Mobile
Telecommunications System (2)
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Air interface based on CDMA over 5 MHz channels
• Rates over users <14.4 Mbps (HSPDA) per 5 MHz
• CDMA permits soft handoff (connected to both cells)
Soft
handoff
4G
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
• ITU defined spec in 2008, before the technology existed
• ITU can’t enforce what carriers do or call their services
• Pure IPv6 packet switching, no circuit switching
• No voice (except as VoIP)
• 1 Gbps for stationary user, 100 Mbps for moving user
• Uses carrier aggregation (multiple bands together)
• Uses OFDMA (Orthogonal Freq. Div. Mux Access)
OFDMA
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
0 1 0 0 1 0 1 1 0 1 1 1 0 0 1 0 1 0 1 1
Channel 1 Channel 2 Channel 3 Channel 4
0 1 1 0
1 0 1 1
0 1 1 1
0 0 1 0
1 0 1 1
Each channel is broadcast in parallel on different
frequency bands
Cable Television
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
• Internet over cable
• Spectrum allocation
• Cable modems
• ADSL vs. cable
Community Antenna Television
An early cable television system
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Internet over Cable
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Internet over cable reuses the cable television plant
• Data is sent on the shared cable tree from the head-
end, not on a dedicated line per subscriber (DSL)
ISP
(Internet)
Internet over Telephone System
The fixed telephone system.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
Spectrum Allocation
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Upstream and downstream data are allocated to
frequency channels not used for TV channels:
Cable Modems
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Cable modems at customer premises implement the
physical layer of the DOCSIS standard
• QPSK/QAM is used in timeslots on frequencies that
are assigned for upstream/downstream data
Comparison of Cable and Telephone
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
Item Cable Internet Telephone Internet
Type of wiring Shared Dedicated
Interference from neighbors Possible Impossible
Wiring Coax CAT 3 twisted pair
Age of system Newer Very old
Max speed 400 Mbps 100 Mbps (copper)
Fiber possible? No Yes
Security Poor Good
End
Chapter 2
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011

More Related Content

Similar to slides-chapter-2.pdf

Dcunit4 transmission media
Dcunit4 transmission mediaDcunit4 transmission media
Dcunit4 transmission media
Akshay Nagpurkar
 

Similar to slides-chapter-2.pdf (20)

Ppt
PptPpt
Ppt
 
Computer networks bharathiyar Unit I.pdf
Computer networks bharathiyar Unit I.pdfComputer networks bharathiyar Unit I.pdf
Computer networks bharathiyar Unit I.pdf
 
Chapter1 computer introduction note
Chapter1  computer introduction note Chapter1  computer introduction note
Chapter1 computer introduction note
 
Chapter1-Introduction.ppt
Chapter1-Introduction.pptChapter1-Introduction.ppt
Chapter1-Introduction.ppt
 
Introduction to Communication Systems
Introduction to Communication SystemsIntroduction to Communication Systems
Introduction to Communication Systems
 
Data communication
Data communicationData communication
Data communication
 
Physical layer OSI Model & Transmission Media
Physical layer OSI Model & Transmission MediaPhysical layer OSI Model & Transmission Media
Physical layer OSI Model & Transmission Media
 
Thesis sdh
Thesis sdhThesis sdh
Thesis sdh
 
Telecommunication basics
Telecommunication basicsTelecommunication basics
Telecommunication basics
 
Presentation on transmission media
Presentation on transmission mediaPresentation on transmission media
Presentation on transmission media
 
Dcunit4 transmission media
Dcunit4 transmission mediaDcunit4 transmission media
Dcunit4 transmission media
 
physical.ppt
physical.pptphysical.ppt
physical.ppt
 
physical.ppt
physical.pptphysical.ppt
physical.ppt
 
Transmission_media.pptx
Transmission_media.pptxTransmission_media.pptx
Transmission_media.pptx
 
15-05-0002-00-004a-nanotron-chirp-spread-spectrum-css-phy-presentation.ppt
15-05-0002-00-004a-nanotron-chirp-spread-spectrum-css-phy-presentation.ppt15-05-0002-00-004a-nanotron-chirp-spread-spectrum-css-phy-presentation.ppt
15-05-0002-00-004a-nanotron-chirp-spread-spectrum-css-phy-presentation.ppt
 
Transmission media
Transmission mediaTransmission media
Transmission media
 
Physical Layer- Transmission Media.pdf
Physical Layer- Transmission Media.pdfPhysical Layer- Transmission Media.pdf
Physical Layer- Transmission Media.pdf
 
Unit 3 communication media
Unit 3   communication mediaUnit 3   communication media
Unit 3 communication media
 
LTE ADVANCED PPT
LTE ADVANCED PPTLTE ADVANCED PPT
LTE ADVANCED PPT
 
Channel Capacity and transmission media
Channel Capacity and transmission mediaChannel Capacity and transmission media
Channel Capacity and transmission media
 

Recently uploaded

Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manual
BalamuruganV28
 
ALCOHOL PRODUCTION- Beer Brewing Process.pdf
ALCOHOL PRODUCTION- Beer Brewing Process.pdfALCOHOL PRODUCTION- Beer Brewing Process.pdf
ALCOHOL PRODUCTION- Beer Brewing Process.pdf
Madan Karki
 
Microkernel in Operating System | Operating System
Microkernel in Operating System | Operating SystemMicrokernel in Operating System | Operating System
Microkernel in Operating System | Operating System
Sampad Kar
 
Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..
MaherOthman7
 

Recently uploaded (20)

Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manual
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
 
Passive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.pptPassive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.ppt
 
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
 
Geometric constructions Engineering Drawing.pdf
Geometric constructions Engineering Drawing.pdfGeometric constructions Engineering Drawing.pdf
Geometric constructions Engineering Drawing.pdf
 
Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdf
 
analog-vs-digital-communication (concept of analog and digital).pptx
analog-vs-digital-communication (concept of analog and digital).pptxanalog-vs-digital-communication (concept of analog and digital).pptx
analog-vs-digital-communication (concept of analog and digital).pptx
 
Autodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxAutodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptx
 
Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2Research Methodolgy & Intellectual Property Rights Series 2
Research Methodolgy & Intellectual Property Rights Series 2
 
The Entity-Relationship Model(ER Diagram).pptx
The Entity-Relationship Model(ER Diagram).pptxThe Entity-Relationship Model(ER Diagram).pptx
The Entity-Relationship Model(ER Diagram).pptx
 
Operating System chapter 9 (Virtual Memory)
Operating System chapter 9 (Virtual Memory)Operating System chapter 9 (Virtual Memory)
Operating System chapter 9 (Virtual Memory)
 
ALCOHOL PRODUCTION- Beer Brewing Process.pdf
ALCOHOL PRODUCTION- Beer Brewing Process.pdfALCOHOL PRODUCTION- Beer Brewing Process.pdf
ALCOHOL PRODUCTION- Beer Brewing Process.pdf
 
Microkernel in Operating System | Operating System
Microkernel in Operating System | Operating SystemMicrokernel in Operating System | Operating System
Microkernel in Operating System | Operating System
 
Research Methodolgy & Intellectual Property Rights Series 1
Research Methodolgy & Intellectual Property Rights Series 1Research Methodolgy & Intellectual Property Rights Series 1
Research Methodolgy & Intellectual Property Rights Series 1
 
Dynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptxDynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptx
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
 
Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..
 
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdflitvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
litvinenko_Henry_Intrusion_Hong-Kong_2024.pdf
 
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message QueuesLinux Systems Programming: Semaphores, Shared Memory, and Message Queues
Linux Systems Programming: Semaphores, Shared Memory, and Message Queues
 
21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university21scheme vtu syllabus of visveraya technological university
21scheme vtu syllabus of visveraya technological university
 

slides-chapter-2.pdf

  • 1. The Physical Layer Chapter 2 CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 • Theoretical Basis for Data Communications • Guided Transmission Media • Wireless Transmission • Communication Satellites • Digital Modulation and Multiplexing • Public Switched Telephone Network • Mobile Telephone System • Cable Television Revised: February 2018
  • 2. The Physical Layer CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Foundation on which other layers build • Properties of wires, fiber, wireless limit what the network can do Key problem is to send (digital) bits using only (analog) signals • This is called modulation Physical Link Network Transport Application
  • 3. Physical Layer Issues CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 • Media: wires, fiber, satellites, radio • Signal propagation: bandwidth, attenuation, noise • Modulation: how bits are represented as voltage signals • Fundamental limits: Nyquist, Shannon
  • 4. Abstract Model of a Link CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 • Bit rate: bits/sec depends on the channel’s bandwidth • Delay: how long does it take a bit to get to the end? • Error rate: what is the probability of a bit flipping? Sender Receiver Channel: bit rate, delay, error rate
  • 5. Bandwidth-Delay Product CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 • Bits have a physical size on the channel! • Storage capacity of a channel is: bit rate x delay • Example: • 100 Mbps 5000-km fiber, delay = 50 msec • In 50 msec we can pump out 5 million bits • So the fiber can store 5 million bits in 5000 km • 1 km holds 1000 bits so a bit is 1 meter long • At 200 Mbps, a bit is 0.5 m long
  • 6. Signal Propagation over a Wire CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 • The signal has a finite propagation speed (2/3 c) • The signal is attenuated per km • Frequencies above a cutoff are strongly reduced • Noise is added to the signal
  • 7. Theoretical Basis for Data Communication Communication rates have fundamental limits • Fourier analysis • Bandwidth-limited signals • Maximum data rate of a channel CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
  • 8. Sine wave g(t) = A sin (2 π f t + ϕ) CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 • A is the amplitude = how strong the signal is • f is the frequency (cycles/sec or Hz) = how fast it changes in time Time A (Volts) Period = 1/f A (Volts) A
  • 9. Fourier Analysis A time-varying periodic signal can be represented as a series of frequency components (harmonics): CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 a, b weights of harmonics Signal over time =
  • 10. Bandwidth CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 • At the signal level, bandwidth is cutoff frequency (HZ) • For data transmission it is bits/sec
  • 11. Bandwidth-Limited Signals Having less bandwidth (harmonics) degrades the signal CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 8 harmonics Lost! Bandwidth 4 harmonics Lost! 2 harmonics Lost!
  • 12. Maximum Data Rate of a Channel - Nyquist Nyquist’s theorem relates the data rate to the bandwidth (B) and number of signal levels (V) on a noiseless channel: CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Max. data rate = 2B log2V bits/sec • Examples − 3000 Hz channel (tel. line), binary signals = 6000 bps − 3000 Hz channel (tel. line), 4-level signals = 12,000 bps − 3000 Hz channel (tel. line), 16-level signals = 48,000 bps • Nyquist is a property of mathematics that relate bandwidth to symbols/sec and bits/sec
  • 13. Maximum Data Rate of a Channel - Shannon CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Max. data rate = B log2(1 + S/N) bits/sec How fast signal can change How many levels can be seen Shannon's theorem relates the data rate to the bandwidth (B) and signal strength (S) relative to the noise (N): • Signal to noise is signal power to noise power: - Expressed as log10 signal power/noise power - S/N of 10 is written as 10 dB - S/N of 100 is written as 20 dB - S/N of 1000 is written as 30 dB
  • 14. Example of Shannon’s limit • DSL line of 1 MHz • Suppose S/N = 50 dB (S = 100,000) • Data rate = 106 log2 (100,001) bit/sec • Data rate = 16.6 Mbps • To go higher, you have to cheat: - Fiber to the curb - Bonding: Use two or more pairs - Dynamic spectrum mgmt (basically, reduce noise) CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
  • 15. Nyquist vs. Shannon • Nyquist: - For noiseless channel - Depends on number signal levels per symbol • Shannon - For noisy channel - Depends on S/N ratio, not bits/symbol CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
  • 16. Guided Transmission (Wires & Fiber) CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Media have different properties, hence performance • Reality check − Physical transport of storage media • Wires: − Twisted pairs − Coaxial cable − Power lines • Fiber cables
  • 17. Transporting Physical Media • AST 1990: Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway. Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 • Ultrium 7 tape = 6 TB, 400 cm2 (costs €100) • Typical van has capacity of 7 x 106 cm2 • Van holds 17,500 tapes holding 105 x 1015 bytes • One person can drive NYC to LA in 5 days = 4 x 105 s • This is a bandwidth of 2 Tbps or 2000 Gbps
  • 18. Amazon’s Snowmobile Service • When I first wrote that, I meant it as a joke • No longer. Enter Amazon’s Snowmobile service Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 • It is for companies to put their data in the cloud • The Truck holds 100 PB (100,000 terabytes) on HDs
  • 19. Category 5 UTP cable with four twisted pairs Wires – Twisted Pair CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Very common; used in LANs, telephone lines • Twists reduce radiated signal (interference) • UTP = Unshielded Twisted Pair
  • 20. Kinds of Wire CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 • STP = Shielded Twisted Pair • UTP = Unshielded Twisted Pair - Cat 3: Home telephone lines - Cat 5: Fast Ethernet (100 Mbps) - Cat 5e: Gigabit Ethernet (1 Gbps) - Cat 6: 10-Gigabit Ethernet (10 Gps) up to 100 m - Cat 6A: Better quality Cat 6 - Cat 7: Includes shielding (not in common use)
  • 21. Connectors CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 RJ11 – 4 wires RJ45 – 8 wires Modern buildings are wired for RJ45 but there are adaptors
  • 22. Link Terminology CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Simplex link • Only one fixed direction at all times; not common Half-duplex link • Both directions, but not at the same time • e.g., senders take turns on a wireless channel Full-duplex link • Used for transmission in both directions at once • e.g., use different twisted pairs for each direction
  • 23. Wires – Coaxial Cable (“Co-ax”) CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Also common. Better shielding and more bandwidth for longer distances and higher rates than twisted pair.
  • 24. Wires – Power Lines CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Household electrical wiring is another example of wires • Convenient to use, but poor for sending data
  • 25. Fiber Optics (1) Three examples of a light ray from inside a silica fiber impinging on the air/silica boundary at different angles. Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
  • 26. Fiber Cables (2) CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Common for high rates and long distances • Long distance ISP links, Fiber-to-the-Home • Light carried in very long, thin strand of glass Light source (LED, laser) Photodetector Light trapped by total internal reflection
  • 27. Fiber Cables (3) CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Fiber has enormous bandwidth (THz) and tiny signal loss – hence high rates over long distances
  • 28. Fiber Cables (3) CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Single-mode • Core so narrow (10um) light can’t even bounce around • Used with lasers for long distances, e.g., 100km Multi-mode • Other main type of fiber • Light can bounce (50um core) • Used with LEDs for cheaper, shorter distance links Fibers in a cable
  • 29. TAT-14 TransAtlantic Cable CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 • Fiber cable lies on the ocean floor (8000 m deep) • Ring structure • Two pairs of fibers used plus two pairs for backup • Theoretical capacity is 3 Tbps • Cables are not well protected and there is no backup
  • 30. Comparison of the properties of wires and fiber: Wire vs. Fiber CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Property Wires Fiber Distance Short (100s of m) Long (tens of km) Bandwidth Moderate Very High Cost Inexpensive Less cheap Convenience Easy to use Less easy Security Easy to tap Hard to tap
  • 31. Wireless Transmission CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 • Electromagnetic Spectrum • Radio Transmission • Microwave Transmission • Light Transmission • Wireless vs. Wires/Fiber
  • 32. Electromagnetic Spectrum (1) CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Different bands have different uses: − Radio: wide-area broadcast; Infrared/Light: line-of-sight − Microwave: LANs and 3G/4G; Microwave Networking focus
  • 33. Electromagnetic Spectrum (2) CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 To manage interference, spectrum is carefully divided, and its use regulated and licensed, e.g., sold at auction. Source: NTIA Office of Spectrum Management, 2003 3 GHz 30 GHz 3 GHz 300 MHz WiFi (ISM bands) Part of the US frequency allocations
  • 34. Electromagnetic Spectrum (3) CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Fortunately, there are also unlicensed (“ISM”) bands: − Free for use at low power; devices manage interference − Widely used for networking; WiFi, Bluetooth, etc. 802.11 b/g/n 802.11a/g/n/ac
  • 35. Radio Waves CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 • Radio waves have a frequency, f, in Hz • They have a wavelength, λ in meters • λf = c in vacuum • Speed of radio/light = 1 foot/nsec • For microwaves, megahertz x meters = 300 − 300 MHz waves are 1 meter long − 1 GHz waves are 30 cm long − 2.4 GHz waves are 12.5 cm long
  • 36. Radio Transmission CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 In the HF band, radio waves bounce off the ionosphere. In the VLF, LF, and MF bands, radio waves follow the curvature of the earth Radio signals penetrate buildings well and propagate for long distances with path loss
  • 37. Microwave Transmission Microwaves have much bandwidth and are widely used indoors (WiFi) and outdoors (3G, satellites) • Signal is attenuated/reflected by everyday objects • Strength varies with mobility due multipath fading, etc. CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
  • 38. Light Transmission CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Line-of-sight light (no fiber) can be used for links • Light is highly directional, has much bandwidth • Use of LEDs/cameras and lasers/photodetectors
  • 39. Wireless vs. Wires/Fiber CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Wireless: + Easy and inexpensive to deploy + Naturally supports mobility + Naturally supports broadcast − Transmissions interfere and must be managed − Signal strengths hence data rates vary greatly Wires/Fiber: + Easy to engineer a fixed data rate over point-to-point links − Can be expensive to deploy, esp. over distances − Doesn’t readily support mobility or broadcast
  • 40. Communication Satellites CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Satellites are effective for broadcast distribution and anywhere/anytime communications • Kinds of Satellites • Geostationary (GEO) Satellites • Low-Earth Orbit (LEO) Satellites • Satellites vs. Fiber
  • 41. Kinds of Satellites CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Satellites and their properties vary by altitude: • Geostationary (GEO), Medium-Earth Orbit (MEO), and Low-Earth Orbit (LEO) Sats needed for global coverage
  • 42. Geostationary Satellites (1) CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 GEO satellites orbit 36,000 km above a fixed location • VSAT (computers) can communicate with the help of a hub • Up and down time is about 250 msec • Big problem for voice VSAT GEO satellite
  • 43. Geostationary Satellites (2) The principal satellite bands Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
  • 44. Low-Earth Orbit Satellites CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Systems such as Iridium use many low-latency satellites for coverage and route communications via them The 66 Iridium satellites form six necklaces around the earth.
  • 45. Low-Earth Orbit Satellites (2) Relaying in space. Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
  • 46. Low-Earth Orbit Satellites (3) Relaying on the ground Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
  • 47. Satellite vs. Fiber CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Satellite: + Can rapidly set up anywhere/anytime communications (after satellites have been launched) + Can broadcast to large regions − Limited bandwidth and interference to manage Fiber: + Enormous bandwidth over long distances − Installation can be more expensive/difficult − Doesn’t work at sea or in remote areas
  • 48. Digital Modulation and Multiplexing CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Modulation schemes send bits as signals Multiplexing schemes share a channel among users. • Baseband Transmission • Passband Transmission • Frequency Division Multiplexing • Time Division Multiplexing • Code Division Multiple Access
  • 49. Baseband Transmission Line codes send symbols that represent one or more bits • NRZ is the simplest, literal line code (+1V=“1”, -1V=“0”) • Other codes tradeoff bandwidth and signal transitions CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Four different line codes
  • 50. Clock Recovery To decode the symbols, signals need sufficient transitions • Otherwise long runs of 0s (or 1s) are confusing, e.g.: CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 1 0 0 0 0 0 0 0 0 0 0 um, 0? er, 0? Data Code Data Code Data Code Data Code 0000 11110 0100 01010 1000 10010 1100 11010 0001 01001 0101 01011 1001 10011 1101 11011 0010 10100 0110 01110 1010 10110 1110 11100 0011 10101 0111 01111 1011 10111 1111 11101 Strategies: Manchester coding, mixes clock signal in every symbol 4B/5B maps 4 data bits to 5 coded bits with 1s and 0s: Scrambler XORs tx/rx data with pseudorandom bits
  • 51. Passband Transmission (1) CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Modulating the amplitude, frequency/phase of a carrier signal sends bits in a (non-zero) frequency range NRZ signal of bits Amplitude shift keying Frequency shift keying Phase shift keying
  • 52. BPSK 2 symbols 1 bit/symbol QPSK 4 symbols 2 bits/symbol QAM-16 16 symbols 4 bits/symbol QAM-64 64 symbols 6 bits/symbol QAM varies amplitude and phase BPSK/QPSK varies only phase Passband Transmission (2) CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Constellation diagrams are a shorthand to capture the amplitude and phase modulations of symbols:
  • 53. Frequency Division Multiplexing CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 FDM (Frequency Division Multiplexing) shares the channel by placing users on different frequencies: Overall FDM channel
  • 54. Frequency Hopping Spread Spectrum CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 • WiFi and Bluetooth change frequencies many times/sec • Called “frequency hopping” • Invented by sex-goddess Hedy Lamarr • She patented it, but Navy wasn’t interested
  • 55. Time Division Multiplexing (TDM) CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Time division multiplexing shares a channel over time: • Users take turns on a fixed schedule; this is not packet switching or STDM (Statistical TDM) • Widely used in telephone / cellular systems
  • 56. Code Division Multiple Access (1) (a) Chip sequences for four stations. (b) Signals the sequences represent Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
  • 57. Code Division Multiple Access (2) (c) Six examples of transmissions. (d) Recovery of station C’s Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
  • 58. The Public Switched Telephone Network CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 • Structure of the telephone system • Politics of telephones • Local loop: modems, ADSL, and FttH • Trunks and multiplexing • Switching
  • 59. Structure of the Telephone System (1) (a) Fully interconnected network. (b) Centralized switch. (c) Two-level hierarchy. Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
  • 60. Structure of the Telephone System (2) CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 A hierarchical system for carrying voice calls made of: • Local loops, mostly analog twisted pairs to houses • Trunks, digital fiber optic links that carry many calls • Switching offices, that move calls among trunks
  • 61. Structure of the Telephone System (3) Major Components • Local loops analog twisted pairs to houses, businesses). • Trunks (digital fiber optic links between switching offices). • Switching offices (calls are moved from one trunk to another) • Core of phone system is optical & digital in Europe, US Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
  • 62. The Politics of Telephones There is a distinction for competition between serving a local area (LECs) and connecting to a local area (at a POP) to switch calls across areas (IXCs) • Customers of a LEC can dial via any IXC they choose CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
  • 63. Physics of Cat 3 Wiring Bandwidth versus distance over Category 3 UTP for DSL. Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
  • 64. Local loop (2): modems CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Telephone modems send digital data over an 3.3 KHz analog voice channel interface to the POTS • Rates <56 kbps; early way to connect to the Internet
  • 65. Local loop (1): Acoustic Couplers CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 • Until 1968 in U.S. and ca. 1984 in Europe, modems were not allowed • People could use acoustic couplers to connect terminals
  • 66. Local loop (3): Digital Subscriber Lines CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 DSL broadband sends data over the local loop to the local office using frequencies that are not used for POTS • Telephone/computers attach to the same old phone line • Rates vary with line − ADSL2 up to 24 Mbps − VDSL2 to 100 Mbps • OFDM used to 1.1 MHz − Most bandwidth down
  • 67. Local loop (4): Fiber To The Home CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 FttH broadband relies on deployment of fiber optic cables to provide high data rates customers • One wavelength can be shared among many houses • Fiber is passive (no amplifiers, etc.)
  • 68. Pulse Code Modulation (1) CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Calls are carried digitally on PSTN trunks using TDM • A call is an 8-bit PCM sample each 125 µs (64 kbps) • Traditional T1 carrier has 24 call channels each 125 µs (1.544 Mbps) • Europe uses 8 bits for data: E1 at 2.048 Mbps
  • 69. Pulse Code Modulation (2) Multiplexing T1 streams into higher carriers Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
  • 70. SONET/SDH (1) • Different carriers had to interconnect • For international calls, T3 and E3 had to be harmonized • Need for standards above T4 and E4 • Better network management was needed CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
  • 71. SONET/SDH (2) SONET (Synchronous Optical NETwork) is the worldwide standard for carrying digital signals on optical trunks • Keeps 125 µs frame; base frame is 810 bytes (52Mbps) • Payload “floats” within framing for flexibility CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
  • 72. SONET/SDH (3) CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Hierarchy at 3:1 per level is used for higher rates • Each level also adds a small amount of framing • Rates from 52 Mbps (STS-1) to 40 Gbps (STS-768) SONET/SDH rate hierarchy
  • 73. Wavelength Division Multiplexing CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 WDM (Wavelength Division Multiplexing), another name for FDM, is used to carry many signals on one fiber:
  • 74. Circuit Switching/Packet Switching (1) (a) Circuit switching. (b) Packet switching. Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
  • 75. Circuit Switching/Packet Switching (2) Timing of events in (a) circuit switching, (b) packet switching Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
  • 76. Circuit Switching/Packet Switching (3) A comparison of circuit-switched and packet-switched networks. Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
  • 77. QUEUEING DELAY • Queueing delay for M/M/1 system: Q = 1/(1-ρ) * T • Where ρ is the line utilization • Examples: - ρ = 0.01 means Q = 1.01T - ρ = 0.5 means Q = 2T - ρ = 0.8 means Q = 5T CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Switch Packet
  • 78. Mobile Telephone System CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 • Generations of mobile telephone systems • Cellular mobile telephone systems • GSM, a 2G system • UMTS, a 3G system • 4G LTE • 4G
  • 79. Generations of mobile telephone systems CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 • 1G, analog voice − AMPS (Advanced Mobile Phone System) is example, deployed from 1980s. Modulation based on FM (as in radio). • 2G, analog voice and digital data − GSM (Global System for Mobile communications) is example, deployed from 1990s. Modulation based on QPSK. • 3G, digital voice and data − UMTS (Universal Mobile Telecommunications System) is example, deployed from 2000s. Modulation based on CDMA • LTE, digital data including voice − LTE (Long Term Evolution) is example, deployed from 2010s. Modulation based on OFDM • 4G based on CDMA and 802.16m (WiMax)
  • 80. Cellular mobile phone systems CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 All based on notion of spatial regions called cells − Each mobile uses a frequency in a cell; moves cause handoff − Frequencies are reused across non-adjacent cells − To support more mobiles, smaller cells can be used
  • 81. 2G GSM – Global System for Mobile Communications (1) CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 • Mobile is divided into handset and SIM card (Subscriber Identity Module) with credentials • Mobiles tell their HLR (Home Location Register) their current whereabouts for incoming calls • Cells keep track of visiting mobiles (in the Visitor LR)
  • 82. 2G GSM – Global System for Mobile Communications (2) CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Air interface is based on FDM channels of 200 KHz divided in an eight-slot TDM frame every 4.615 ms • Mobile is assigned up- and down-stream slots to use • Each slot is 148 bits long, gives rate of 27.4 kbps
  • 83. 2G GSM—The Global System for Mobile Communications (3) A portion of the GSM framing structure. Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
  • 84. Goals for UMTS (3G) Basic services desired • High-quality voice transmission. • Messaging (replacing email, fax, SMS, chat). • Multimedia (music, videos, films, television). • Internet access (Web surfing, incl. audio, video). Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
  • 85. 3G UMTS – Universal Mobile Telecommunications System (1) CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Architecture is an evolution of GSM; terminology differs Not compatible with 2G GSM Internet
  • 86. 3G UMTS – Universal Mobile Telecommunications System (2) CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Air interface based on CDMA over 5 MHz channels • Rates over users <14.4 Mbps (HSPDA) per 5 MHz • CDMA permits soft handoff (connected to both cells) Soft handoff
  • 87. 4G CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 • ITU defined spec in 2008, before the technology existed • ITU can’t enforce what carriers do or call their services • Pure IPv6 packet switching, no circuit switching • No voice (except as VoIP) • 1 Gbps for stationary user, 100 Mbps for moving user • Uses carrier aggregation (multiple bands together) • Uses OFDMA (Orthogonal Freq. Div. Mux Access)
  • 88. OFDMA CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 0 1 0 0 1 0 1 1 0 1 1 1 0 0 1 0 1 0 1 1 Channel 1 Channel 2 Channel 3 Channel 4 0 1 1 0 1 0 1 1 0 1 1 1 0 0 1 0 1 0 1 1 Each channel is broadcast in parallel on different frequency bands
  • 89. Cable Television CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 • Internet over cable • Spectrum allocation • Cable modems • ADSL vs. cable
  • 90. Community Antenna Television An early cable television system Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
  • 91. Internet over Cable CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Internet over cable reuses the cable television plant • Data is sent on the shared cable tree from the head- end, not on a dedicated line per subscriber (DSL) ISP (Internet)
  • 92. Internet over Telephone System The fixed telephone system. Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011
  • 93. Spectrum Allocation CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Upstream and downstream data are allocated to frequency channels not used for TV channels:
  • 94. Cable Modems CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Cable modems at customer premises implement the physical layer of the DOCSIS standard • QPSK/QAM is used in timeslots on frequencies that are assigned for upstream/downstream data
  • 95. Comparison of Cable and Telephone CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011 Item Cable Internet Telephone Internet Type of wiring Shared Dedicated Interference from neighbors Possible Impossible Wiring Coax CAT 3 twisted pair Age of system Newer Very old Max speed 400 Mbps 100 Mbps (copper) Fiber possible? No Yes Security Poor Good
  • 96. End Chapter 2 CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011
  • 97. CN5E by Tanenbaum & Wetherall, © Pearson Education-Prentice Hall and D. Wetherall, 2011