1
COM-405 Mobile Networks Module A (Part A2) Introduction
- Prof. JP Hubaux
Modulation and demodulation (reminder) analog baseband digital - - PowerPoint PPT Presentation
COM-405 Mobile Networks Module A (Part A2) Introduction Prof. JP Hubaux http://mobnet.epfl.ch Note: some of the slides of this and other modules and derived from Schillers book 1 Modulation and demodulation (reminder) analog baseband
1
2
synchronization decision digital data analog demodulation radio carrier analog baseband signal 101101001 radio receiver digital modulation digital data analog modulation radio carrier analog baseband signal 101101001 radio transmitter
3
q Carrier Sense Multiple Access with Collision Detection q send as soon as the medium is free, listen into the medium if a
q a radio can usually not transmit and receive at the same time q signal strength decreases proportionally to the square of the
q the sender would apply CS and CD, but the collisions happen at the
q it might be the case that a sender cannot “hear” the collision, i.e.,
q furthermore, CS might not work if, e.g., a terminal is “hidden”
4
q A sends to B, C cannot receive A q C wants to send to B, C senses a “free” medium (CS fails) q collision at B, A cannot receive the collision (CD fails) q A is “hidden” for C
q B sends to A, C wants to send to another terminal (not A or B) q C has to wait, CS signals a medium in use q but A is outside the radio range of C, therefore waiting is not
q C is “exposed” to B
B A C
5
q signal strength decreases (at least) proportionally to the square of the
q the signal of terminal B therefore drowns out A’s signal q è C cannot receive A
A B C
6
q segment space into sectors, use directed antennas q cell structure
q assign the fixed sending frequency to a transmission channel
q assign a certain frequency to a transmission channel between a
q permanent (e.g., radio broadcast), slow hopping (e.g., GSM), fast
q assign an appropriate code to each transmission channel (DSSS,
q frequency hopping over separate channels (FHSS, Frequency
7
TDMA CDMA FDMA SDMA Fixed Aloha Reservations DAMA Multiple Access with Collision Avoidance Polling Pure CSMA
GSM Slotted Non-persistent p-persistent CSMA/CA
and exposed terminal
(optional) MACAW MACA-BI FAMA CARMA
(mandatory)
(optional) FHSS: Frequency-Hopping Spread Spectrum DSSS: Direct Sequence Spread Spectrum CSMA: Carrier Sense Multiple Access CA: Collision Avoidance DAMA: Demand-Assigned Multiple Access MACA-BI: MACA by invitation FAMA: Floor Acquisition Multiple Access CARMA: Collision Avoidance and Resolution Multiple Access FHSS DSSS
Fixed
8
TDMA CDMA FDMA SDMA Fixed Aloha Reservations DAMA Multiple Access with Collision Avoidance Polling Pure CSMA
GSM Slotted Non-persistent p-persistent CSMA/CA
and exposed terminal
(optional) MACAW MACA-BI FAMA CARMA
(mandatory)
(optional) FHSS: Frequency-Hopping Spread Spectrum DSSS: Direct Sequence Spread Spectrum CSMA: Carrier Sense Multiple Access CA: Collision Avoidance DAMA: Demand-Assigned Multiple Access MACA-BI: MACA by invitation FAMA: Floor Acquisition Multiple Access CARMA: Collision Avoidance and Resolution Multiple Access FHSS DSSS
Fixed
9
f t c k2 k3 k4 k5 k6 k1
q only one carrier in the
q precise
10
q looser coordination q works also for analog signals
q wastage of bandwidth
q inflexible q guard spaces k2 k3 k4 k5 k6 k1 f t c
11
f
q more flexibility
t c k2 k3 k4 k5 k6 k1
12
q bandwidth efficient q good protection against interference
q more complex signal regeneration
k2 k3 k4 k5 k6 k1 f t c
13
1 2 3 11 12 1 2 3 11 12 t downlink uplink 417 µs
14
f t
124 1 124 1 20 MHz
200 kHz 890.2 MHz 935.2 MHz 915 MHz 960 MHz
downlink uplink
15
TDMA CDMA FDMA SDMA Fixed Aloha Reservations DAMA Multiple Access with Collision Avoidance Polling Pure CSMA
GSM Slotted Non-persistent p-persistent CSMA/CA
and exposed terminal
(optional) MACAW MACA-BI FAMA CARMA
(mandatory)
(optional) FHSS: Frequency-Hopping Spread Spectrum DSSS: Direct Sequence Spread Spectrum CSMA: Carrier Sense Multiple Access CA: Collision Avoidance DAMA: Demand-Assigned Multiple Access MACA-BI: MACA by invitation FAMA: Floor Acquisition Multiple Access CARMA: Collision Avoidance and Resolution Multiple Access FHSS DSSS
Fixed
16
q random, distributed (no central arbiter), time-multiplex q Slotted Aloha additionally uses time-slots, sending must always
sender A sender B sender C collision sender A sender B sender C collision t t
17
First transmission Retransmission (if necessary) t0 t0+X t0-X Vulnerable period t0+X+2tprop Time-out t0+X+2tprop+B Backoff period B
18
S: new packets S: throughput of the system
G
2 2 2
k G G G
− − −
19
i=1 N
20
2 2
G G prop
2 2
prop G aloha prop prop G aloha prop
21
First transmission Retransmission (if necessary) t0=kX (k+1)X Vulnerable period t0+X+2tprop Time-out t0+X+2tprop+B Backoff period
G G slotaloha
22
TDMA CDMA FDMA SDMA Fixed Aloha Reservations DAMA Multiple Access with Collision Avoidance Polling Pure CSMA
GSM Slotted Non-persistent p-persistent CSMA/CA
and exposed terminal
(optional) MACAW MACA-BI FAMA CARMA
(mandatory)
(optional) FHSS: Frequency-Hopping Spread Spectrum DSSS: Direct Sequence Spread Spectrum CSMA: Carrier Sense Multiple Access CA: Collision Avoidance DAMA: Demand-Assigned Multiple Access MACA-BI: MACA by invitation FAMA: Floor Acquisition Multiple Access CARMA: Collision Avoidance and Resolution Multiple Access FHSS DSSS
Fixed
23
q Goal: reduce the wastage of bandwidth due to packet collisions q Principle: sensing the channel before transmitting (never
q Many variants:
q Collision detection (CSMA/CD) or collision avoidance(CSMA/CA) q Persistency (in sensing and transmitting)
Station A begins transmission at t=0
Station A captures the channel at t=tprop
24
q Stations having a packet to send sense the channel
q As soon as the channel is sensed idle, they transmit their
q If more than one station is waiting, a collision occurs. q Stations involved in a collision perform a the backoff algorithm
q Optional backoff algorithm may be used in addition for fairness
25
q Attempts to reduce the incidence of collisions q Stations with a packet to transmit sense the channel q If the channel is busy, the station immediately runs the back-off
q If the channel is idle, then the station transmits
26
q Combines elements of the above two schemes q Stations with a packet to transmit sense the channel q If it is busy, they persist with sensing until the channel becomes
q If it is idle:
l With probability p, the station transmits its packet l With probability 1-p, the station waits for a random time and senses
again
27
−G 1+2a
( )
−G 1+a
( )
−G 1+a
( )
−G 1+a
( )
28
29
q Check whether the channel is idle before transmitting q Listen while transmitting, stop transmission when collision q If collision, one of the 3 schemes above (1-persistent, non-
30
31
32
TDMA CDMA FDMA SDMA Fixed Aloha Reservations DAMA Multiple Access with Collision Avoidance Polling Pure CSMA
GSM Slotted Non-persistent p-persistent CSMA/CA
and exposed terminal
(optional) MACAW MACA-BI FAMA CARMA
(mandatory)
(optional) FHSS: Frequency-Hopping Spread Spectrum DSSS: Direct Sequence Spread Spectrum CSMA: Carrier Sense Multiple Access CA: Collision Avoidance DAMA: Demand-Assigned Multiple Access MACA-BI: MACA by invitation FAMA: Floor Acquisition Multiple Access CARMA: Collision Avoidance and Resolution Multiple Access FHSS DSSS
Fixed
33
q a sender reserves a future time-slot q sending within this reserved time-slot is possible without collision q reservation also causes higher delays q typical scheme for satellite links
q Explicit Reservation (Reservation-ALOHA) q Implicit Reservation (PRMA) q Reservation-TDMA
34
q two modes:
l ALOHA mode for reservation:
competition for small reservation slots, collisions possible
l reserved mode for data transmission within successful reserved slots
(no collisions possible)
q it is important for all stations to keep the reservation list consistent at
Aloha reserved Aloha reserved Aloha reserved Aloha collision t
35
q based on slotted Aloha q a certain number of slots form a frame, frames are repeated q stations compete for empty slots according to the slotted aloha
q once a station reserves a slot successfully, this slot is automatically
q competition for a slot starts again as soon as the slot was empty in
frame1 frame2 frame3 frame4 frame5 1 2 3 4 5 6 7 8 time-slot collision at reservation attempts A C D A B A F A C A B A A B A F A B A F D A C E E B A F D t ACDABA-F ACDABA-F AC-ABAF- A---BAFD ACEEBAFD reservation
36
q every frame consists of N mini-slots and x data-slots q every station has its own mini-slot and can reserve up to k data-slots
q other stations can send data in unused data-slots according to a
N mini-slots N * k data-slots reservations for data-slots
based on a round-robin scheme e.g. N=6, k=2
37
TDMA CDMA FDMA SDMA Fixed Aloha Reservations DAMA Multiple Access with Collision Avoidance Polling Pure CSMA
GSM Slotted Non-persistent p-persistent CSMA/CA
and exposed terminal
(optional) MACAW MACA-BI FAMA CARMA
(mandatory)
(optional) FHSS: Frequency-Hopping Spread Spectrum DSSS: Direct Sequence Spread Spectrum CSMA: Carrier Sense Multiple Access CA: Collision Avoidance DAMA: Demand-Assigned Multiple Access MACA-BI: MACA by invitation FAMA: Floor Acquisition Multiple Access CARMA: Collision Avoidance and Resolution Multiple Access FHSS DSSS
Fixed
38
q Designed especially for packet radio networks (Phil Karn, 1990) q Principle:
l RTS (request to send): a sender request the right to send from a
receiver with a short RTS packet before it sends a data packet
l CTS (clear to send): the receiver grants the right to send as soon as it
is ready to receive
q sender address q receiver address q packet size
39
q A and C want to
q A sends RTS first q C waits after receiving
A B C RTS CTS CTS
40
41
idle wait for the right to send wait for ACK
packet ready to send; RTS time-out; RTS CTS; data ACK RxBusy idle wait for data RTS; RxBusy RTS; CTS data; ACK time-out Data with errors; NAK ACK: positive acknowledgement NAK: negative acknowledgement RxBusy: receiver busy time-out NAK; RTS
42
TDMA CDMA FDMA SDMA Fixed Aloha Reservations DAMA Multiple Access with Collision Avoidance Polling Pure CSMA
GSM Slotted Non-persistent p-persistent CSMA/CA
and exposed terminal
(optional) MACAW MACA-BI FAMA CARMA
(mandatory)
(optional) FHSS: Frequency-Hopping Spread Spectrum DSSS: Direct Sequence Spread Spectrum CSMA: Carrier Sense Multiple Access CA: Collision Avoidance DAMA: Demand-Assigned Multiple Access MACA-BI: MACA by invitation FAMA: Floor Acquisition Multiple Access CARMA: Collision Avoidance and Resolution Multiple Access FHSS DSSS
Fixed
43
( ) Φ f Φ j f ( ) Φ r f ( ) ~( ) Φ f Φ t f ( )
Φ s f ( )
Φ s f ( )
s
S
s f
power density spectrum of the original signal
s
power density of the original signal s
bandwidth of the original signal
j f
power density spectrum of the jamming signal
44
( ) Φ f Φ j f ( ) Φ r f ( ) ~( ) Φ f Φ t f ( )
Φ s f ( )
Φ t f ( )
s s t t
45
( ) Φ f Φ j f ( ) Φ r f ( ) ~( ) Φ f Φ t f ( )
Φ s f ( )
j
S
Φ j f ( )
46
( ) Φ f Φ j f ( ) Φ r f ( ) ~( ) Φ f Φ t f ( )
Φ s f ( )
B j
t
S
j
S
Φr f ( )
47
( ) Φ f Φ j f ( ) Φ r f ( ) ~( ) Φ f Φ t f ( )
Φ s f ( )
s
S
~( ) Φ f
j j t
signal
Psignal Pjamming
Processing gain
Processing gain: Increase in received signal power thanks to spreading
48
( ) Φ f Φ j f ( ) Φ r f ( ) ~( ) Φ f Φ t f ( )
Φ s f ( )
s
S
( ) Φ f
j j t
49
TDMA CDMA FDMA SDMA Fixed Aloha Reservations DAMA Multiple Access with Collision Avoidance Polling Pure CSMA
GSM Slotted Non-persistent p-persistent CSMA/CA
and exposed terminal
(optional) MACAW MACA-BI FAMA CARMA
(mandatory)
(optional) FHSS: Frequency-Hopping Spread Spectrum DSSS: Direct Sequence Spread Spectrum CSMA: Carrier Sense Multiple Access CA: Collision Avoidance DAMA: Demand-Assigned Multiple Access MACA-BI: MACA by invitation FAMA: Floor Acquisition Multiple Access CARMA: Collision Avoidance and Resolution Multiple Access FHSS DSSS
Fixed
50
q Fast Frequency Hopping: One bit transmitted in multiple
q Slow Frequency Hopping: Multiple bits are transmitted in a
51
tb tc Fast Frequency Hopping:
b c
tb : duration of one bit tc : duration of one chip Chip: name of the sample period in spread-spectrum jargon
52
TDMA CDMA FDMA SDMA Fixed Aloha Reservations DAMA Multiple Access with Collision Avoidance Polling Pure CSMA
GSM Slotted Non-persistent p-persistent CSMA/CA
and exposed terminal
(optional) MACAW MACA-BI FAMA CARMA
(mandatory)
(optional) FHSS: Frequency-Hopping Spread Spectrum DSSS: Direct Sequence Spread Spectrum CSMA: Carrier Sense Multiple Access CA: Collision Avoidance DAMA: Demand-Assigned Multiple Access MACA-BI: MACA by invitation FAMA: Floor Acquisition Multiple Access CARMA: Collision Avoidance and Resolution Multiple Access FHSS DSSS
Fixed
53
q many chips per bit (e.g., 128) result in higher bandwidth of the signal
q reduces frequency selective
q in cellular networks
l neighboring base stations can use the
same frequency range
l neighboring base stations can
detect and recover the signal
l è enables soft handover
q precise power control necessary q complexity of the receiver user data chipping sequence resulting signal 1 1 1 0 1 0 1 0 1 1 1 1 XOR 1 1 0 1 0 1 1 1 1 = tb tc
tb: bit period tc: chip period
54
X user data chipping sequence modulator radio carrier spread spectrum signal transmit signal transmitter demodulator received signal radio carrier X chipping sequence lowpass filtered signal receiver integrator products decision data sampled sums correlator
55
q Pseudo-random Noise (PN) sequences q Orthogonal codes
q PN sequences most common
q PN sequences most common
q PN sequences q Orthogonal codes
56
1 Pr 0 1 2 1 N = ⎛ ⎞ ⋅ − ⎜ ⎟ ⎝ ⎠
q Property 1: In a PN sequence we have: q Property 2: For a window of length n slid along output for N (=2n-1) shifts,
q Property 3: The periodic autocorrelation of a PN sequence is:
1 Pr 1 1 2 1 N = ⎛ ⎞ ⋅ + ⎜ ⎟ ⎝ ⎠
1 Pr 0 Pr 1 2 ≈ ≈
3
1 10 10 for n N
−
≥ ⇒ ≤
number of registers: n period:
2 1
n
N = −
57
q All pairwise cross correlations are zero q Fixed- and variable-length codes used in CDMA systems q For CDMA application, each mobile user uses one sequence
l Provides zero cross correlation among all users
q Walsh codes q Variable-Length Orthogonal codes
58
1
1 1 1 1
k k k k k − − − −
1
q Set of Walsh codes of length n consists of the n rows of an
q Sylvester's construction: q Every row is orthogonal to every other row and to the logical
q Requires tight synchronization
q Cross correlation between different shifts of Walsh sequences
2
59
q Provides mutual orthogonality among all users in the same
q Provides mutual randomness (low cross correlation)
60
q all terminals send on the same frequency and can use the whole
q each sender has a unique code q The sender XORs the signal with this code q the receiver can “tune” into this signal if it knows the code of the sender q tuning is done via a correlation function
q higher complexity of the receiver (receiver cannot just listen into the
q all signals should have approximately the same strength at the receiver
q all terminals can use the same frequency, no planning needed q huge code space (e.g., 232) compared to frequency space q more robust to eavesdropping and jamming (military applications…) q forward error correction and encryption can be easily integrated
61
62
q sends Ad = 1, key Ak = 010011 (assign: „0“= -1, „1“= +1) q sending signal As = Ad * Ak = (-1, +1, -1, -1, +1, +1)
q sends Bd = 0, key Bk = 110101 (assign: „0“= -1, „1“= +1) q sending signal Bs = Bd * Bk = (-1, -1, +1, -1, +1, -1)
q interference neglected (noise etc.) q As + Bs = (-2, 0, 0, -2, +2, 0)
q apply key Ak bitwise (inner product)
l Ae = (-2, 0, 0, -2, +2, 0) Ak = 2 + 0 + 0 + 2 + 2 + 0 = 6 l result greater than 0, therefore, original bit was „1“
q receiving B
l Be = (-2, 0, 0, -2, +2, 0) Bk = -2 + 0 + 0 - 2 - 2 + 0 = -6, i.e. „0“
63
data Ad signal As key sequence Ak 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Real systems use much longer keys resulting in a larger distance between single code words in code space. Ad+Ak 1
64
signal As As + Bs 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 data Bd signal Bs key sequence Bk Bd+Bk 1
1
2
65
Ak (As + Bs) * Ak correlator
decision
As + Bs 1 1 1 data Ad
2
1
2
66
correlator
decision
Bk (As + Bs) * Bk As + Bs 1 1 1 data Bd
2
1
2
67
decision
(1) (1) ? wrong key K correlator
(As + Bs) * K As + Bs 2
1
2
68
Approach SDMA TDMA FDMA CDMA Idea
segment space into cells/sectors segment sending time into disjoint time-slots, demand driven or fixed patterns segment the frequency band into disjoint sub-bands spread the spectrum using orthogonal codes
Terminals
be active in one cell/one sector all terminals are active for short periods of time on the same frequency every terminal has its
uninterrupted all terminals can be active at the same place at the same moment, uninterrupted
Signal separation
cell structure, directed antennas synchronization in the time domain filtering in the frequency domain code plus special receivers
Advantages very simple, increases
capacity per km² established, fully digital, flexible simple, established, robust flexible, less frequency planning needed, soft handover
Dis- advantages
inflexible, antennas typically fixed guard space needed (multipath propagation), synchronization difficult inflexible, frequencies are a scarce resource complex receivers, needs more complicated power control for senders
Comment
used in all cellular systems standard in fixed networks, together with FDMA/SDMA used in many mobile networks typically combined with TDMA (frequency hopping patterns) and SDMA (frequency reuse) higher complexity
In practice, several access methods are used in combination Example: SDMA/TDMA/FDMA for GSM
69
70
Credit: http://www.csie.ntu.edu.tw
71
72
73
74
75
76
q T. Rappaport: Wireless Communications, Principles and
q M. Schwartz: Mobile Wireless Communications, Cambridge
q J. Schiller: Mobile Communications (2nd edition), Addison-
q Leon-Garcia & Widjaja: Communication Networks, McGrawHill,