04 Physical
04 Physical
Presentation
• Example Protocols
Session
• ftp
Transport
Lecture 4: Physical Layer & • http Network
Link Layer Basics • Performance Datalink
Based on slides from previous 441 lectures
Physical
Packet • Modulation.
Transmission Sender Receiver
• Bandwidth limitations.
• Frequency spectrum and its use.
0100010101011100101010101011101110000001111010101110101010101101011010111001
Packets
Header/Body Header/Body Header/Body
• Multiplexing.
Bit Stream 0 0 1 0 1 1 1 0 0 0 1 • Media: Copper, Fiber, Optical, Wireless.
• (Next Week
“Digital” Signal
• Coding.
• Framing.)
Analog Signal
F'11 Lecture 4: Physical Layer 7 F'11 Lecture 4: Physical Layer 8
• Get the big picture. • Baseband modulation: send the “bare” signal.
• Carrier modulation: use the signal to modulate a
• Physical layer places constraints on what the higher frequency signal (carrier).
network infrastructure can deliver • Can be viewed as the product of the two signals
• Reality check • Corresponds to a shift in the frequency domain
• Impact on system performance
• Impact on the higher protocol layers
• Some examples:
• Fiber or copper?
• Do we need wires?
• Error characteristic and failure modes
• Effects of distance
Modulation Modulation
• AM: change the strength of the signal. • FM: change the frequency
• Example: High voltage for a 1, low voltage
for a 0
0 1 1 0 1 1 0 0 0 1
0 0 1 1 0 0 1 1 0 0 0 1 1 1 0 0 0 1 1 0 0 0 1 1 1 0
1 0 1 0 1
1 0 1 0
Amplitude
Amplitude
Signal Carrier Modulated
Frequency Carrier
F'11 Lecture 4: Physical Layer 15 F'11 Lecture 4: Physical Layer 16
Baseband Modulated
• A noiseless channel of width H can at most • Instead of 0/1, use lots of different values.
transmit a binary signal at a rate 2 x H. • (Remember, the channel is noiseless.)
• Assumes binary amplitude encoding
• Can we really send an infinite amount of
• E.g. a 3000 Hz channel can transmit data at a rate of at
most 6000 bits/second? info/sec?
0 0 1 0 0 0 1 1 1 0 0 0 1 0 1 0 0 1 1 0 0 0 1 0 0 0 1 1 1 0 ? 0 1 0 1 0 0 1 1 0
Transmission Channel
Limits to Speed and Distance
Considerations
• Every medium supports transmission Good Bad • Noise: “random” energy is added to the signal.
in a certain frequency range.
• Outside this range, effects such as
attenuation degrade the signal too much • Attenuation: some of the energy in the signal leaks away.
• Transmission and receive hardware
will try to maximize the useful • Dispersion: attenuation and propagation speed are
bandwidth in this frequency band. frequency dependent.
• Tradeoffs between cost, distance, bit rate (Changes signal shape)
Frequency
• As technology improves, these • Effects limit the data rate that a channel can sustain.
parameters change, even for the • But affects different technologies in different ways
same wire.
• Effects become worse with distance.
• Tradeoff between data rate and distance
Signal
F'11 Lecture 4: Physical Layer 31 F'11 Lecture 4: Physical Layer 32
• Modulation.
• Bandwidth limitations.
• Frequency spectrum and its use.
• Multiplexing.
• Media: Copper, Fiber, Optical, Wireless.
• (Next Week:
• Coding.
• Framing.)
• Different users use the wire at different points in Determines Bandwidth of Link
time.
• Requires spectrum proportional to aggregate
Amplitude
bandwidth.
1 user
Frequency
2 users Determines
Bandwidth
of Channel
Different Carrier
Frequency Frequencies
F'11 Lecture 4: Physical Layer 37 F'11 Lecture 4: Physical Layer 38
Frequency versus
Today’s Lecture
Time-division Multiplexing
• Modulation.
• With FDM different users use
different parts of the • Bandwidth limitations.
Frequency
frequency spectrum.
• I.e. each user can send all the
Frequency • Frequency spectrum and its use.
Bands
time at reduced rate • Multiplexing.
• Example: roommates
• With TDM different users • Media: Copper, Fiber, Optical, Wireless.
Frame
send at different times.
• I.e. each user can send at full Slot
speed some of the time • Coding.
• Example: time-share condo
• The two solutions can be
• Framing.
Time
combined.
F'11 Lecture 4: Physical Layer 39 F'11 Lecture 4: Physical Layer 40
1.3µ
1.55µ
0.0
1000 1500 nm
(~200 Thz)
wavelength (nm)
• Multimode fiber.
• 62.5 or 50 micron core carries multiple “modes”
cladding • used at 1.3 microns, usually LED source
• subject to mode dispersion: different propagation modes travel at
different speeds
core • typical limit: 1 Gbps at 100m
• Single mode
lower index • 8 micron core carries a single mode
of refraction
• used at 1.3 or 1.55 microns, usually laser diode source
• typical limit: 10 Gbps at 60 km or more
• still subject to chromatic dispersion
(note: minimum bend radius of a few cm)
Gigabit Ethernet:
Fiber Types
Physical Layer Comparison
Medium Transmit/ Distance Comment
receive
Multimode
Copper 1000BASE-CX 25 m machine room use
Twisted pair 1000BASE-T 100 m four twisted pairs,
IEEE 802.3ab
MM fiber 62 mm 1000BASE-SX 260 m
1000BASE-LX 500 m
MM fiber 50 mm 1000BASE-SX 525 m
1000BASE-LX 550 m
Single mode SM fiber 1000BASE-LX 5000 m
• Even with single mode, there is a distance • Even with single mode, there is a distance
limit. limit.
• I.e.: How do you get it across the ocean? • I.e.: How do you get it across the ocean?
pump
laser
source
• At end of span, either regenerate electronically or • Send multiple wavelengths through the same fiber.
amplify. • Multiplex and demultiplex the optical signal on the fiber
• Electronic repeaters are potentially slow, but can • Each wavelength represents an optical carrier that
eliminate noise. can carry a separate signal.
• E.g., 16 colors of 2.4 Gbit/second
• Amplification over long distances made practical
by erbium doped fiber amplifiers offering up to 40 • Like radio, but optical and much faster
dB gain, linear response over a broad spectrum.
Ex: 40 Gbps at 500 km. pump
laser Optical
Splitter
source
Frequency
F'11 Lecture 4: Physical Layer 51 F'11 Lecture 4: Physical Layer 52
• Great technology: no wires to install, convenient mobility, … • Bandwidth and distance of networks is limited by physical
properties of media.
• High attenuation limits distances. Huh? 2 in free space,
typically 2 to 6 • Attenuation, noise, dispersion, …
• Wave propagates out as a sphere
• Network properties are determined by transmission medium
• Signal strength attenuates quickly 1/d3 and transmit/receive hardware.
• High noise due to interference from other transmitters. • Nyquist gives a rough idea of idealized throughput
• Can do much better with better encoding
• Use MAC and other rules to limit interference
• Low b/w channels: Sophisticated encoding, multiple bits per wavelength.
• Aggressive encoding techniques to make signal less sensitive to noise • High b/w channels: Simpler encoding (FM, PCM, etc.), many wavelengths
per bit.
• Other effects: multipath fading, security, .. • Shannon: C = B x log2(1 + S/N)
• Ether has limited bandwidth. • Multiple users can be supported using space, time, or
• Try to maximize its use frequency division multiplexing.
• Government oversight to control use • Properties of different transmission media:
• copper, optical, wireless.
F'11 Lecture 4: Physical Layer 53 F'11 Lecture 4: Physical Layer 54