2-Physical
2-Physical
2-Physical
1
Highlights
Some concepts
The Theoretical Basis for Data
Communication
Transmission medium
Wireless Transmission
Digital modulation and
multiplexing
Message switch
2
Simplified Data Communications Model
3
Fundamental Concepts (1)
信道(Channel):传送信息的媒体
数据率(Bit Rate):数据传输速率 (bps)
波特(Baud):码元传输速率
1 Baud = (log2V) bps,其中V是信号的电平级数
传播速度(Propagation Speed):通信线路上,信号
单位时间内传送的距离(⽶/秒)
带宽(Bandwidth):信号占⽤的频率范围 (Hz)
信道容量(Channel Capacity):信道的最⼤数据率
吞吐量(Throughput):⽹络容量的度量,表示单位时间
内⽹络可以传送的数据位数(bps)
误码率BER(Bit Error Rate):信道传输可靠性指标
P= 传送错的位数 / 传送总位数
4
Fundamental Concepts (2)
时延(Delay
Delay)):从向⽹络中发送数据块的第⼀⽐特开
始,到最后⼀位数据被接收所经历的时间
时延的组成:
时延的组成:传播时延、发送时延、处理时延、排
队时延
传播时延:
传播时延:信号通过传输介质的时间。
发送时延:
发送时延:设备发送⼀个数据块所需要的时间(数据块⻓
度/信道带宽)
处理时延:
处理时延:交换机/路由器检查数据、选路的时间
排队时延:
排队时延:在交换机/路由器中排队等待的时间
5
Sources of Delay (1)
1. Nodal processing delay 2. Queueing dealy:
check bit errors time waiting at output
determine output link link for transmission
depends on
congestion level of
router
6
Sources of Delay (2)
3. Transmission delay: 4. Propagation delay:
R=link bandwidth (bps) d = length of physical
L=packet length (bits) link
time to send bits into s = propagation speed
link = L/R in medium
propagation delay =
d/s
7
Simplex, Half-duplex, Full-duplex
Simplex
Transmission occurs in only one direction
eg. FM Radio broadcasting
Half-duplex
Transmission can be made in both direction, but
at one time only one direction is available
eg. talkie and walkie (对讲机)
Full-duplex
Transmission can be made in both directions
simultaneously
eg. Phone conversation
8
Parallel transmission vs. Serial transmission
9
Asynchronous Transmission vs.
Synchronous Transmission
10
同步串⾏传输和异步串⾏传输
同步串⾏传输
以时钟信号线对传输的数据线上的信号进⾏⽐特同步
以数据块(帧或分组)为单位传输
异步串⾏传输
独⽴时钟,⽆须同步
以字符为单位进⾏传输
发送两个字符之间的间隔是任意的
接收⽅依靠字符中的起始位和停⽌位来同步
11
2.1 The Theoretical Basis for Data
Communication
12
The Theoretical Basis for Data
Communication
Fourier Analysis
Bandwidth-Limited Signals
Maximum Data Rate of a
Channel
13
Fourier Analysis
14
Bandwidth-Limited Signals
(a) A binary signal (‘b’) and its root-mean-square Fourier
amplitudes.
(b) – (e) Successive approximations to the original signal.
15
Bandwidth-Limited Signals (2)
19
Maximum Data Rate of a Channel(2)
Shannon’s Theorem (1948)
20
2.2 Guided Transmission Media
21
Guided Transmission Media
Magnetic Media
Twisted Pair
Coaxial Cable(EoC)
Power line
Fiber Optics
22
Magnetic Media
Bandwidth (bps)
A tape can hold 800 GB,
A box can hold 1000 tapes: 800 TB,
24⼩时快递,
bandwidth=800T x 8bits/86400s sec=70 Gbps
Cost
tape cost $4000 per box per usage
$1000 for shipping
shipping 1 GB for under 0.5 cents
23
Twisted Pair
Category 3 UTP
Category 5 UTP
Category 5 UTP
25
Coaxial Cable
26
Power line
27
Fiber Cables
From 1981 to 2009
CPU (4.77M to 3G Hz)
A gain of a factor of 16 per decade
Physical limits: speed of light, heat dissipation
Data communication (45M to 100G bps)
A gain of a factor of 16 per decade
Error rate: 10-5 to almost 0
High bandwidth
Lightweight
Security
29
2.3 Wireless Transmission
30
The Electromagnetic Spectrum
Electromagnetic spectrum and its uses for communication
31
Transmission Frequency Band
Using narrow frequency band
Most transmission use narrow frequency band to get
the best reception
Spread Spectrum (bluetooth, wlan, cdma)
FHSS: Frequency hopping spread spectrum
Hedy Lamarr (1913-2000)
DSSS: Direct sequence spread spectrum
UWB (Ultra-WideBand) communication.
UWB sends a series of rapid pulses, varying their positions
to communicate information.
32
Radio Transmission (VLF,LF,MF,HF)
33
Microwave Transmission
Microwave(100M~10GHz)
Before fiber optic, microwaves formed the heart
of the long-distance telephone transmission
system
waves travel in nearly straight lines, the
transmitting & receiving antennas must be
accurately aligned
Distance between repeaters: 80km
Multipath fading is often a serious problem
(weather and frequency dependent)
(At about 4GHz, absorbed by rain)
34
Politics of Electromagnetic Spectrum
National governments allocate spectrum
Worldwide:ITU-R; USA: FCC
ISM (Industrial, Scientific, Medical) bands
some frequency bands for unlicensed usage
FCC mandates that all devices in ISM bands use spread
spectrum techniques to minimize interference
between uncoordinated devices
Power is under 1 watt
(限制频率范围,调制技术,信号强度)
36
Lightwave Transmission
(Unguided optical signaling)
Aiming a 1-mm-wide laser beam at a
small target 500m away, ...
Laser beams cannot penetrate rain or
thick fog
38
Communication Satellites
Act as a big microwave repeater in the sky
Contains multiple antennas and multiple transponders
Transponder
listen to some portion of the spectrum
amplifies the incoming signals
rebroadcasts it at another frequency (downward beams)
Downward beams
Broad: a substantial fraction of the earth’s surface
Narrow: spot beams cover an area hundreds of kms in
diameter (bent pipe)
Station keeping
Lifetime: about 10 years
39
Communication Satellites
and Some of Their Properties
41
GEO: VSATs Using a Hub
Problem
Micro-station do not have enough power to
communicate directly with one another via the
satellite
42
LEO: Iridium
LEO
The ground stations do not need much power
Round-trip delay is only a few ms
Iridium
Altitude: 750km
6 satellite necklaces, 11x6=66 satellites
Each satellite has a max of 48 cells (spot
beams)
1628 moving cells cover the earth
Communication between distant customers
takes place in space
实施情况
90年策划,97年发射,98年运营,99年破产
受到移动电话⽹的冲击 43
Iridium Cells
44
LEO: Globalstar
48 LEOs satellites
Relaying on the ground
puts much of the complexity on the ground,
ease to manage
lower-powered telephones can be used (a few
milliwatts)
45
Iridium & Globalstar
46
2.5 Digital modulation and multiplexing
47
Baseband transmission
bandwidth efficiency, clock recovery, and
DC balance.
NRZ
NRZI
Manchester
AMI
48
Baseband transmission
49
Baseband transmission
bandwidth efficiency
NRZ need a bandwidth of at least B/2 Hz when the bit rate
is B bits/sec (C=2Hlog2V)
bit rate=baud rate * the number of bits per symbol
the number of signal levels does not need to be a power of
two
clock recovery
Manchester / NRZI
4B/5B never be a run of more than three consecutive 0s
50
balanced signals
Use two voltage levels to represent a
logical 1
8B/10B
The 8 bits are split into a group of 5 bits,
which is mapped to 6 bits, and a group of
3 bits, which is mapped to 4 bits.
51
Passband Transmission
52
QPSK & QAM
(a) QPSK.
(b) QAM-16.
(c) QAM-64.
53
Frequency Division Multiplexing
55
CDMA – Code Division Multiple Access
56
Wavelength Division Multiplexing
58
Public Switched Telephone System
(PSTN)
The Local Loop: Modems, ADSL and
Wireless
Trunks and Multiplexing
Switching
59
Structure of the Telephone System
61
Components of Telephone System
Local loops
Analog twisted pairs going to houses and
businesses
Trunks
Digital fiber optics connecting the switching
offices
Switching offices
Where calls are moved from one trunk to
another
62
The Local Loop
Modems, ADSL, and Fiber
63
Problems
Transmission lines suffer from three major
problems
Attenuation(衰减)
delay distortion(延迟畸变)
Noise
(前两项的变化程度与频率相关)
Modem & ADSL
64
Modems
The use of both analog and digital transmissions for a
computer to computer call. Conversion is done by
the modems and codecs.
CODEC:
• 8000 samples per second
• 1 sample = 8 bits (⾮线性编码)
65
Modems
Modems use a combination of modulation
techniques to transmit multiple bits per baud
(multiple amplitudes and multiple phase
shifts)
QPSK: Quadrature Phase Shift Keying-相移键控
QAM : Quadrature Amplitude Modulation-正交
幅度调制
Modems sample 2400 times/sec and focus
on getting more bits per sample
V.32: 2400 baud * (5-1) bits = 9.6Kbps
V.32bis: 2400 baud * (7-1) bits = 14.4Kbps
V.34: 2400 baud * 12 bits = 28.8Kbps
V.34bis: 2400 baud * 14 bits = 33.6Kbps
V.90(56kbps)
66
V.32 & V.32bis
(a) (b)
(a) V.32 for 9600 bps.
(b) V32 bis for 14,400 bps.
67
DSL: Digital Subscriber Lines
Bandwidth versus distanced over category 3
UTP for DSL.
68
ADSL: Discrete Multitone Modulation
71
FttH
72
Trunks and Multiplexing
73
Time Division Multiplexing
74
Time Division Multiplexing (2)
Multiplexing T1 streams into higher carriers.
75
Switching
76
Circuit Switching
Memory
78
Message Switching
80
2.7 Physical Interface
81
物理层接⼝特性
机械特性 指明接⼝所⽤接线器的形状和尺
⼨、引线数⽬和排列、固定和锁定装置等等
电⽓特性 指明在接⼝电缆的各条线上出现
的电压的范围
功能特性 指明某条线上出现的某⼀电平的
电压表示何种意义
过程特性 指明对于不同功能的各种可能事
件的出现顺序
82
Physical Interface
EIA RS-232 (ITU-T V.24)
First issued by EIA in 1969
EIA-232-C EIA-232-D EIA-232-E
83
RS-232
Mechanical :25-pin
Electrical:<-3V “1”, >3“0”
data rate 20Kbps
cable <15 m
Functional:pin definition
Procedure: protocol
84
RS-232 :signal
DTE: data terminal
equipment
DCE: data communications
equipment
TD: Transmitted data
RD: Received data
RTS: Request to send
CTS: Clear to send
DSR: data set ready
CD: Data Carrier detection
DTR: Data Terminal Ready
85
Virtual MOEM
86
Virtual MOEM(2)
2 TD 2
3 RD 3
DTE DTE
7 GND 7
87