1
04832250 – Computer Networks (Honor Track)
- Prof. Chenren Xu(许辰人)
04832250 Computer Networks (Honor Track) A Data Communication and - - PowerPoint PPT Presentation
04832250 Computer Networks (Honor Track) A Data Communication and Device Networking Perspective A Data Communication and Device Networking Perspective Module 2: PHY Concepts and Wireless Fundamentals Prof. Chenren Xu Center
1
2
…10110
3
…10110 10110… Signal
4
in bits/second
§ T-delay = M (bits) / Rate (bits/sec) = M/R seconds
§ P-delay = Length / speed of signals = L/(⅔)c = D seconds
§ D = 5 ms, R = 56 kbps, M = 1250 bytes § L = 5 ms + (1250 x 8)/(56 x 103) sec = 184 ms!
§ D = 50ms, R = 10 Mbps, M = 1250 bytes § L = 50ms + (1250 x 8) / (10 x 106) sec = 51ms
5
Dina Katabi, Mark Handley, and Charlie Rohrs. Congestion control for high bandwidth-delay product networks. In Proc. of ACM SIGCOMM, 2002
110101000010111010101001011
6
telephone lines
§ Twists reduce radiated signal
performance
Category 5 UTP cable with four twisted pairs
§ Enormous bandwidth over long distances
cheaper) and single-mode (up to ~100 km)
Light source (LED, laser) Photo- detector Light trapped by total internal reflection Optical fiber Fiber bundle in a cable One fiber
region
§ In many directions, unlike a wire, to potentially many receivers § Nearby signal (same freq.) interfere at a receiver, need to coordinate use
Radio Frequency Visible Light and Infrared Ultrasonic
7
8
9
802.11b/g/n 802.11a/n/ac
10
11
§ θ = Phase § Period T = 1/f § A = Amplitude § Frequency is measured in cycles/sec or Hertz
Cycle Amplitude Phase = 45° λ Distance Amplitude
12
Weights of harmonic frequencies Signal over time
Lost! Lost! Lost! Bandwidth
EE: Bandwidth = width of frequency band, measured in Hz CS : Bandwidth = information carrying capacity, in bits/sec We use Data Rate from now on for CS’s bandwidth
13
depending on spectrum, e.g., wire, fiber optic cable, atmosphere or space
§ Less susceptible to noise interference, but suffer more from attenuation
§ Cascaded amplifiers boost signal’s energy for longer distances but cause distortion and amplifies the noise, can’t recover
§ Can recover from noise and distortions: regenerate signal along the path: demodulate + remodulate
14
15
Sent signal: Attenuation: Bandwidth: Noise:
16
Wavelength (µm) Attenuation (dB/km)
17
18
§ Doppler shift and temporary fading
Distance
TxA TxB TxC RxD
19
20
America, which was transmitted from Cornwall, England-a distance of about 1700 miles
CDMA)
21
Information Source Input Transducer Transmitter Channel Output Transducer Receiver Noise Sound, picture, data, etc Information in electrical form Information in
Destination
22
increases the reliability of the received data and improve the fidelity of the received signal
number that represents an estimate of the transmitted data symbol (binary or M-ary)
the channel encoder and the redundancy contained in the received data
signal from the source
Information Source and Input Transducer Source encoder Channel encoder Output Transducer Digital demodulator Channel Channel decoder Source decoder Digital modulator Output signal
Transmitter Receiver
23
24
§ Helps explain properties such as attenuation § Density of the energy reduces over time and with distance § Receiving antennas catch less energy with distance
§ Helps explain properties such as signal distortion, fast fading, …
25
26
§ Note that isotropic antennas are not very efficient!
q
Unless you have a very large number of receivers
§ Simplest shape: is a straight conductor
q
Half-wave dipole and quarter wave vertical antennas – creates a “donut” pattern of 75⚬in vertical plane
q
Elements are quarter wavelength of frequency that is transmitted most efficiently – max gain of 2.15 dbi
Parabolic antenna (70 dBi) Horn antenna (30 dBi) Directional radiation pattern Omnidirectional radiation pattern Dipole antenna
27
§ Vacuum: 3 x 108 m/sec; Denser: slower
§ E.g. sky wave propagation: Signal “bounces” off the ionosphere back to earth – can go very long distances § But also local, small scale differences in the air density, temperature, etc.
denser
28
caused by obstacles
𝝆/4 (45°) 𝝆/2 (90°) 𝝆 (180°) 3𝝆/2 (270°) 7𝝆/4 (315°)
Line of Sight Dominant Multipath
29
§ For a signal with a given bandwidth, the velocity tends to be highest near the center frequency of the band
30
𝟐 𝟓𝝆𝒆𝟑 𝑩𝒇
𝝁𝟑 𝟓𝝆 𝑯𝑺
𝝁𝟑 (𝟓𝝆𝒆)𝟑 = 𝑸𝑼𝑯𝑼𝑯𝑺 𝒅𝟑 (𝟓𝝆𝒆𝒈)𝟑
higher frequency.
§ Can cause distortion of signal for wide-band signals § Impacts transmission range in different spectrum bands
§ 2 for free space, 3 for office, higher if more and thicker obstacles
§ Degree of absorption depends strongly the material § Paper versus brick versus metal
§ Very serious at specific frequencies, e.g. water vapor (22 GHz) and oxygen (60 GHz) § Obviously objects also absorb energy
31
Frequency of 900 MHz or wavelength of about 33 cm
32
different times
the received signal becomes negligible = 𝝊𝒏𝒃𝒚
§ Often in nano seconds
its allotted time interval.
causes higher chance of ISI
33
time interval.
copies of the signal
§ Weights are set dynamically based on known “training” sequence
–
Time
Tx Rx
t t t t Weight Calculation Original Signal Equalized Signal
34
35
36
frequency for a signal transmitted at one frequency.
very fast, the Doppler Spread is large and coherence time is small.
37
T Radio R Radio
modulated carrier at frequency f
distorts signal
attenuated
mobility cause fading
added
distorted signal y the noise channel response/state, a (time-variant) complex number (matrix) that captures attenuation, multipath, … effects.
38
39
40
10 dB =
Power ratio 1000 100 10 4 2 1.26 1 dB 30 20 10 6 3 1
41
42
科学家 …”
43
transmission (you design the code)
44
45
46
Analog Signal Digital Signal Bit Stream
0 0 1 0 1 1 1 0 0 0 1 0 0 1 0 1 1 1
Packets
010001010101110010101010101110111000000111101010 Header/Body Header/Body Header/Body
Receiver Sender Packet Transmission
captures the amplitude and phase
valued signal
combination
even a periodic signal
47
increases the reliability of the received data and improve the fidelity of the received signal
number that represents an estimate of the transmitted data symbol (binary or M-ary)
the channel encoder and the redundancy contained in the received data
signal from the source
Information Source and Input Transducer Source encoder Channel encoder Output Transducer Digital demodulator Channel Channel decoder Source decoder Digital modulator Output signal
Transmitter Receiver
48
§ L = # of bits per signal element § M = # of different signal elements = 2L
49
11 10 01 00
50
§ Encode data bit either low then high, or high then low, of equal time § Self-clocking
q
Signals can be decoded without the need for a separate clock signal or
§ A special case of binary phase-shift keying (BPSK)
§ 0000 → 11110, 0001 → 01001, … 1110 → 11100, 1111 → 11101 § Has at most 3 zeros in a row
51
signal with frequency fc.
frequency compatible with the transmission medium:
NRZ signal
Amplitude shift keying Frequency shift keying Phase shift keying
52
e.g. on voice lines (< 1200 bps) or on digital fiber
cos(2πfct) Yi(t) = Ak cos(2πfct) Transmitted signal during kth interval X 2cos(2πfct) 2Akcos2(2πfct) = Ak {1 + cos(2π2fct) + ..} Lowpass Filter (Smoother) Xi(t) Yi(t) = Akcos(2πfct) Received signal during kth interval
53
frequencies near the carrier frequency
§ where f1 and f2 are offset from carrier frequency fc by equal but opposite amounts
multiple bits
§ fi = fc + (2i – 1 – M)fd § L = number of bits per signal element § M = number of different signal elements = 2L § fc = the carrier frequency § fd = the difference frequency
§ Symbol length is Ts=LT seconds, where T is bit period
54
§ Binary 0 – signal of same phase as previous signal burst § Binary 1 – signal of opposite phase to previous signal burst
𝝆 𝟓 ) 11
𝟒𝝆 𝟓 ) 01
𝟒𝝆 𝟓 ) 00
𝝆 𝟓 ) 10
55
the diagram
transmitted
throughput
BPSK QAM-16 QPSK (QAM-4) Y(t) Ak x cos(2πfct) Yi(t) = Ak cos(2πfct) Bk x sin(2πfct) Yq(t) = Bk sin(2πfct) + Transmitted Signal
56
57
§ More efficient use of transmission medium
f1
f1 f2 f3
Time
58
59
Each frame contains a cycle of time slots One or more slots are dedicated to one source
60
61
§ Maximal ratio/weight combining – phase alignment is needed to amplify each other, need help from transmitter diversity
§ Ample space, power, and processing capacity (at the transmitter)
q
If the channel is known, pre-align each component and weight it before transmission so that they arrive in phase at the receiver
q
If the channel is not known, use space time block codes or learn from receiver or receiving packets based on channel reciprocity
word exceeds the error-correcting code’s capability, it fails to recover the original code word
62
to overcome channel impairments
§ Boost capacity, range and reliability, and reduce interference
Method SISO 1xN or Nx1 NxN Multiplexing Capacity B log2(1 + r) B log2(1 + rN) B log2(1 + rN2) NB log2(1 + r)
63
proportional to the number of transmitting antennas
“views” of the transmitted data at the receiver
§ The hij are complex numbers x + jz that represent both the amplitude attenuation (x) over the channel and the path dependent phase shift (z) § The receiver measures the channel gains based on training fields containing known patterns in the packet preamble and can estimate the transmitted signal
64
65
66
§ Limits their ability to cancel interference and extract a useful data stream
§ Requires coordination among clients on packet transmission – hard problem because very fine-grained
§ Easier to do: closer to traditional models of having each client receive a packet from the base station independently
67
68
69
§ Higher bit rate means smaller distance between bits or symbols
q
Delay spread remain the same for each symbol
§ NTs >> root-mean-square of delay spread of the channel, where Ts is the symbol period
§ Adaptive modulation on each subcarrier
70
Intersymbol Interference (ISI) symbol smearing Guard Interval inserted between adjacent symbols to suppress ISI Cyclic Prefix Inserted in Guard Interval to suppress ISI
71
72
§ High peak-to-average Power ratio (PAPR)
q
A multicarrier signal is the sum of many narrowband signals
§ Can be a problem for simple, mobile devices
73
74
75
76
§ Each channel carries only ~1% of the bandwidth § Uses 2 GFSK or 4 GFSK for modulation (1 or 2 Mbps)
§ FCC set an upper bound of 400 msec § Transmitter/receiver must be synchronized
inform the receiver of its hop sequence
GHz ISM band
§ Other countries use different numbers of frequencies
§ Minimum deviation is 115 KHz
77
bandwidth) than the pulse duration of the message signal
§ Number of chips per bit is called the spreading ratio/factor
§ Effective against noise and multi-path § DSSS signal will look like noise in a narrow band § Can lose some chips in a word and recover easily
1 1 1 1 1 1 1 1 1 1 1 1 Original Signal Spreading Code Transmitted Chips XOR Modulated Signal
78
79
pattern
+ d6 × cu6
§ To send a 1 bit = <1, –1, –1, 1, –1, 1> § To send a 0 bit = <–1, 1, 1, –1, 1, –1>
§ To send a 1 bit = <1, 1, –1, –1, 1, 1>
§ User A ‘1’ bit: 6 → 1 § User A ‘0’ bit: -6 → 0 § User B ‘1’ bit: 0 → unwanted signal ignored
80
81