4. F'11 Lecture 4: Physical Layer 4
Transferring Information
ā¢ Information transfer is a physical process
ā¢ In this class, we generally care about
ā¢ Electrical signals (on a wire)
ā¢ Optical signals (in a fiber)
ā¢ More broadly, EM waves
ā¢ Information carriers can also be ?
5. F'11 Lecture 4: Physical Layer 5
Transferring Information
ā¢ Information transfer is a physical process
ā¢ In this class, we generally care about
ā¢ Electrical signals (on a wire)
ā¢ Optical signals (in a fiber)
ā¢ More broadly, EM waves
ā¢ Information carriers can also be
ā¢ Sound waves
ā¢ Quantum states
ā¢ Proteins
ā¢ Ink & paper, etc.
6. F'11 Lecture 4: Physical Layer 6
From Signals to Packets
Analog Signal
āDigitalā Signal
Bit Stream 0 0 1 0 1 1 1 0 0 0 1
Packets
0100010101011100101010101011101110000001111010101110101010101101011010111001
Header/Body Header/Body Header/Body
Receiver
Sender
Packet
Transmission
Application
Presentation
Session
Transport
Network
Datalink
Physical
7. F'11 Lecture 4: Physical Layer 7
From Signals to Packets
Analog Signal
āDigitalā Signal
Bit Stream 0 0 1 0 1 1 1 0 0 0 1
Packets
0100010101011100101010101011101110000001111010101110101010101101011010111001
Header/Body Header/Body Header/Body
Receiver
Sender
Packet
Transmission
9. F'11 Lecture 4: Physical Layer 9
Why Do We Care?
ā¢ Get the big picture.
ā¢ Physical layer places constraints on what the
network infrastructure can deliver
ā¢ Reality check
ā¢ 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
10. F'11 Lecture 4: Physical Layer 10
Baseband vs Carrier Modulation
ā¢ Baseband modulation: send the ābareā signal.
ā¢ Carrier modulation: use the signal to modulate a
higher frequency signal (carrier).
ā¢ Can be viewed as the product of the two signals
ā¢ Corresponds to a shift in the frequency domain
11. F'11 Lecture 4: Physical Layer 11
Modulation
ā¢ Changing a signal to convey information
ā¢ From Music:
ā¢ Volume
ā¢ Pitch
ā¢ Timing
12. F'11 Lecture 4: Physical Layer 12
Modulation
ā¢ Changing a signal to convey information
ā¢ Ways to modulate a sinusoidal wave
ā¢ Volume: Amplitude Modulation (AM)
ā¢ Pitch: Frequency Modulation (FM)
ā¢ Timing: Phase Modulation (PM)
ā¢ In our case, modulate signal to encode a 0 or a 1.
(multi-valued signals sometimes)
13. F'11 Lecture 4: Physical Layer 13
Amplitude Modulation
ā¢ AM: change the strength of the signal.
ā¢ Example: High voltage for a 1, low voltage
for a 0
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
14. F'11 Lecture 4: Physical Layer 14
Frequency Modulation
ā¢ FM: change the frequency
0 1 1 0 1 1 0 0 0 1
15. F'11 Lecture 4: Physical Layer 15
Phase Modulation
ā¢ PM: Change the phase of the signal
1 0 1 0
16. F'11 Lecture 4: Physical Layer 17
Why/Why Not Baseband?
ā¢ Baseband
ā¢ Simpler hardware
ā¢ Modulated Carrier
ā¢ Control the range of frequencies used
ā¢ Wire and electronics at 100Hz can behave very differently from
wire and electronics at 10MHz
Amplitude
Baseband Modulated
Carrier freq. ļ± few percent ļ®
well-behaved and easy to process
Highest frequencies many times higher than
low frequencies ļ® may cause problems
18. F'11 Lecture 4: Physical Layer 19
Why Different Modulation
Methods?
ā¢ Transmitter/Receiver complexity
ā¢ Power requirements
ā¢ Bandwidth
ā¢ Medium (air, copper, fiber, ā¦)
ā¢ Noise immunity
ā¢ Range
ā¢ Multiplexing
19. F'11 Lecture 4: Physical Layer 20
What Do We Care About?
ā¢ Cost
ā¢ How much bandwidth can I get out of a specific
wire (transmission medium)?
ā¢ What limits the physical size of the network?
ā¢ How can multiple hosts communicate over the
same wire at the same time?
ā¢ How can I manage bandwidth on a transmission
medium?
ā¢ How do the properties of copper, fiber, and
wireless compare?
20. F'11 Lecture 4: Physical Layer 21
Bandwidth
ā¢ Bandwidth is width of the frequency range in
which the Fourier transform of the signal is non-
zero. (At what frequencies is there energy?)
ā¢ Sometimes referred to as the channel width
ā¢ Or, where it is above some threshold value
(Usually, the half power threshold, e.g., -3dB)
ā¢ dB
ā¢ Short for decibel
ā¢ Defined as 10 * log10(P1/P2)
ā¢ When used for signal to noise: 10 * log10(PS/PN)
21. F'11 Lecture 4: Physical Layer 22
Signal = Sum of Waves
=
+ 1.3 X
+ 0.56 X
+ 1.15 X
22. F'11 Lecture 4: Physical Layer 23
The Frequency Domain
ā¢ A (periodic) signal can be viewed
as a sum of sine waves of
different strengths.
ā¢ Corresponds to energy at a certain
frequency
ā¢ Every signal has an equivalent
representation in the frequency
domain.
ā¢ What frequencies are present and
what is their strength (energy)
ā¢ E.g., radio and TV signals.
23. F'11 Lecture 4: Physical Layer 24
ā¢ A noiseless channel of width H can at most
transmit a binary signal at a rate 2 x H.
ā¢ Assumes binary amplitude encoding: 1ļ®1.0, 0ļ® -1.0
The Nyquist Limit
0 0 1 0 0 0 1 1 1 0 0 0 1 0 1 0 0 1 1 0
24. F'11 Lecture 4: Physical Layer 25
0 0 1 0 0 0 1 1 1 0 0 0 1 0 1 0 0 1 1 0
ā¢ A noiseless channel of width H can at most
transmit a binary signal at a rate 2 x H.
ā¢ Assumes binary amplitude encoding
ā¢ E.g. a 3000 Hz channel can transmit data at a rate of at
most 6000 bits/second?
The Nyquist Limit
Hmm, I once bought a modem that did 54K????
25. F'11 Lecture 4: Physical Layer 26
How to Get Past the Nyquist Limit
ā¢ Instead of 0/1, use lots of different values.
ā¢ (Remember, the channel is noiseless.)
ā¢ Can we really send an infinite amount of
info/sec?
0 0 1 0 0 0 1 1 1 0 ? 0 1 0 1 0 0 1 1 0
26. F'11 Lecture 4: Physical Layer 27
Past the Nyquist Limit
ā¢ Every transmission medium supports
transmission in a certain fixed frequency
range.
ā¢ The channel bandwidth is determined by
the transmission medium and the quality of
the transmitter and receivers.
ā¢ More aggressive encoding can increase the
channel bandwidth ... to a point ...
27. F'11 Lecture 4: Physical Layer 28
Capacity of a Noisy Channel
ā¢ Canāt add infinite symbols
ā¢ you have to be able to tell them apart.
ā¢ This is where noise comes in.
28. F'11 Lecture 4: Physical Layer 29
Capacity of a Noisy Channel
ā¢ Canāt add infinite symbols
ā¢ you have to be able to tell them apart.
ā¢ This is where noise comes in.
ā¢ Shannonās theorem:
C = B x log2(1 + S/N)
ā¢ C: maximum capacity (bps)
ā¢ B: channel bandwidth (Hz)
ā¢ S/N: signal to noise (power) ratio of the channel
Often expressed in decibels (db) ::= 10 log(S/N)
.
29. F'11 Lecture 4: Physical Layer 30
Capacity of a Noisy Channel
ā¢ Canāt add infinite symbols
ā¢ you have to be able to tell them apart.
ā¢ This is where noise comes in.
ā¢ Shannonās theorem:
C = B x log2(1 + S/N)
ā¢ C: maximum capacity (bps)
ā¢ B: channel bandwidth (Hz)
ā¢ S/N: signal to noise ratio of the channel
Often expressed in decibels (db) ::= 10 log(S/N)
ā¢ Example:
ā¢ Local loop bandwidth: 3200 Hz
ā¢ Typical S/N: 1000 (30db)
ā¢ What is the upper limit on capacity?
ā¢ 3200 x log2(1 + 1000) = 31.895 kbits/s
30. F'11 Lecture 4: Physical Layer 31
Transmission Channel
Considerations
ā¢ Every medium supports transmission
in a certain frequency range.
ā¢ Outside this range, effects such as
attenuation degrade the signal too much
ā¢ Transmission and receive hardware
will try to maximize the useful
bandwidth in this frequency band.
ā¢ Tradeoffs between cost, distance, bit rate
ā¢ As technology improves, these
parameters change, even for the
same wire.
Frequency
Good Bad
Signal
31. F'11 Lecture 4: Physical Layer 32
Limits to Speed and Distance
ā¢ Noise: ārandomā energy is added to the signal.
ā¢ Attenuation: some of the energy in the signal leaks away.
ā¢ Dispersion: attenuation and propagation speed are
frequency dependent.
(Changes signal shape)
ā¢ Effects limit the data rate that a channel can sustain.
ā¢ But affects different technologies in different ways
ā¢ Effects become worse with distance.
ā¢ Tradeoff between data rate and distance
35. F'11 Lecture 4: Physical Layer 36
Supporting Multiple Channels
ā¢ Multiple channels can coexist if they transmit at a different
frequency, or at a different time, or in a different part of the
space.
ā¢ Three dimensional space: frequency, space, time
ā¢ Space can be limited using wires or using transmit power
of wireless transmitters.
ā¢ Frequency multiplexing means that different users use a
different part of the spectrum.
ā¢ Similar to radio: 95.5 versus 102.5 station
ā¢ Controlling time (for us) is a datalink protocol issue.
ā¢ Media Access Control (MAC): who gets to send when?
36. F'11 Lecture 4: Physical Layer 37
Time Division Multiplexing
ā¢ Different users use the wire at different points in
time.
ā¢ Requires spectrum proportional to aggregate
bandwidth.
Frequency
Frequency
1 user
2 users
37. F'11 Lecture 4: Physical Layer 38
FDM: Multiple Channels
Amplitude
Different Carrier
Frequencies
Determines
Bandwidth
of Channel
Determines Bandwidth of Link
38. F'11 Lecture 4: Physical Layer 39
Frequency versus
Time-division Multiplexing
ā¢ With FDM different users use
different parts of the
frequency spectrum.
ā¢ I.e. each user can send all the
time at reduced rate
ā¢ Example: roommates
ā¢ With TDM different users
send at different times.
ā¢ I.e. each user can send at full
speed some of the time
ā¢ Example: time-share condo
ā¢ The two solutions can be
combined.
Frequency
Time
Frequency
Bands
Slot
Frame
40. F'11 Lecture 4: Physical Layer 41
Copper Wire
ā¢ Unshielded twisted pair (UTP)
ā¢ Two copper wires twisted - avoid antenna effect
ā¢ Grouped into cables: multiple pairs with common sheath
ā¢ Category 3 (voice grade) versus category 5
ā¢ 100 Mbit/s up to 100 m, 1 Mbit/s up to a few km
ā¢ Cost: ~ 10cents/foot
ā¢ Coax cables.
ā¢ One connector is placed inside the other connector
ā¢ Holds the signal in place and keeps out noise
ā¢ Gigabit up to a km
ā¢ Signaling processing research pushes the
capabilities of a specific technology.
ā¢ E.g. modems, use of cat 5
Images: networkcable-tester.com, tootoo.com
43. F'11 Lecture 4: Physical Layer 44
Light Transmission in Fiber
1000
wavelength (nm)
loss
(dB/km)
1500 nm
(~200 Thz)
0.0
0.5
1.0
tens of THz
1.3ļ
1.55ļ
LEDs Lasers
44. F'11 Lecture 4: Physical Layer 45
Ray Propagation
lower index
of refraction
core
cladding
(note: minimum bend radius of a few cm)
45. F'11 Lecture 4: Physical Layer 46
Fiber Types
ā¢ Multimode fiber.
ā¢ 62.5 or 50 micron core carries multiple āmodesā
ā¢ used at 1.3 microns, usually LED source
ā¢ subject to mode dispersion: different propagation modes travel at
different speeds
ā¢ typical limit: 1 Gbps at 100m
ā¢ Single mode
ā¢ 8 micron core carries a single mode
ā¢ 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
47. F'11 Lecture 4: Physical Layer 48
Gigabit Ethernet:
Physical Layer Comparison
Medium Transmit/ DistanceComment
receive
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
SM fiber 1000BASE-LX 5000 m
Twisted pair 100BASE-T 100 m 2p of UTP5/2-4p of UTP3
MM fiber 100BASE-SX 2000m
48. F'11 Lecture 4: Physical Layer 49
How to increase distance?
ā¢ Even with single mode, there is a distance
limit.
ā¢ I.e.: How do you get it across the ocean?
49. F'11 Lecture 4: Physical Layer 50
ā¢ Even with single mode, there is a distance
limit.
ā¢ I.e.: How do you get it across the ocean?
How to increase distance?
source
pump
laser
50. F'11 Lecture 4: Physical Layer 51
Regeneration and Amplification
ā¢ At end of span, either regenerate electronically or
amplify.
ā¢ Electronic repeaters are potentially slow, but can
eliminate noise.
ā¢ Amplification over long distances made practical
by erbium doped fiber amplifiers offering up to 40
dB gain, linear response over a broad spectrum.
Ex: 40 Gbps at 500 km.
source
pump
laser
51. F'11 Lecture 4: Physical Layer 52
Wavelength Division Multiplexing
ā¢ Send multiple wavelengths through the same fiber.
ā¢ Multiplex and demultiplex the optical signal on the fiber
ā¢ Each wavelength represents an optical carrier that
can carry a separate signal.
ā¢ E.g., 16 colors of 2.4 Gbit/second
ā¢ Like radio, but optical and much faster
Optical
Splitter
Frequency
52. F'11 Lecture 4: Physical Layer 53
Wireless Technologies
ā¢ Great technology: no wires to install, convenient mobility, ā¦
ā¢ High attenuation limits distances.
ā¢ Wave propagates out as a sphere
ā¢ Signal strength attenuates quickly ļ 1/d3
ā¢ High noise due to interference from other transmitters.
ā¢ Use MAC and other rules to limit interference
ā¢ Aggressive encoding techniques to make signal less sensitive to noise
ā¢ Other effects: multipath fading, security, ..
ā¢ Ether has limited bandwidth.
ā¢ Try to maximize its use
ā¢ Government oversight to control use
Huh? 2 in free space,
typically 2 to 6
53. F'11 Lecture 4: Physical Layer 54
Things to Remember
ā¢ Bandwidth and distance of networks is limited by physical
properties of media.
ā¢ Attenuation, noise, dispersion, ā¦
ā¢ Network properties are determined by transmission medium
and transmit/receive hardware.
ā¢ Nyquist gives a rough idea of idealized throughput
ā¢ Can do much better with better encoding
ā¢ Low b/w channels: Sophisticated encoding, multiple bits per wavelength.
ā¢ High b/w channels: Simpler encoding (FM, PCM, etc.), many wavelengths
per bit.
ā¢ Shannon: C = B x log2(1 + S/N)
ā¢ Multiple users can be supported using space, time, or
frequency division multiplexing.
ā¢ Properties of different transmission media:
ā¢ copper, optical, wireless.