Topic 6: TDMA FDMA CDMA Objective: Explain and Analyze Multi-access Communication Protocols . (Refer T1-Ch.4; T2-Ch. 4 & 6 + Class Notes)
ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA
08/29/11
08/29/11
08/29/11
Allow sharing of expensive network resources, such as Bandwidth (analog) or bits per second (digital), etc., by several connections or information flows.
(a)
A B C A B C
Figure 4.1
(b)
A B C MUX A
B C
a.
a.
Multiplexer approach
08/29/11
08/29/11
08/29/11
08/29/11
Satellite Communication
Satellite Channel uplink fin downlink fout
08/29/11
Cellular Communication
uplink f1 ; downlink f2 uplink f3 ; downlink f4
08/29/11
08/29/11
10
Scheduling
Random access
Polling: take turns Request for slot in transmission schedule Token ring Wireless LANs
ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA
08/29/11
Why Channelization?
Channelization
Semi-static bandwidth allocation of portion of shared medium to a given user
08/29/11
12
requirements Inefficient for bursty traffic Does not scale well to large numbers of users
much better at handling bursty traffic are the Dynamic MAC Other MAC algorithms are
Random Access schemes: ALOHA, Slotted ALOHA, CSMA, CSMACD Scheduling MACs: Reservation System, Polling, Token-passing Rings
Average Delay for TDMA X=Frame Tx. Time = L/R L: Frame length; R Tx bit rate; E[T]: Avg. Frame Transfer Delay M: no. of stations/users
08/29/11 ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA 13
Channelization Approaches
Frequency Division Multiple Access (FDMA)
Frequency band allocated to users Broadcast radio & TV, analog cellular phone
08/29/11
14
Channelization: Freq. Division Multiple Access (FDMA) Divide channel into M frequency bands Each station transmits and listens on assigned bands (implemented via BPFs) Guard bands reduce co-channel interference.
Frequency
Guard bands
2 M1 M
Time Let W is total bandwidth available; each station supports R bps; Then each station transmits at most R/M bps Good for stream traffic; Used in connection-oriented systems Inefficient for bursty traffic; then needed to allocate same band to multiple stations; leading towards dynamic sharing techniques.
ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA 15
08/29/11
Frequency
Guard time
...
1 Time
Each station
transmits at R bps 1/M of the time for an average rate of R/M bits/second. Spends most of the time accumulating frames and preparing them for transmission in burst during the assigned time slot.
One cycle
08/29/11
Unlike TDM (where multiplexing occurs at a single location), different stations in different locations may experience different prop. Delays. To allow for inaccuracy in the prop. delay estimates, Guard time are required to ensure avoid overlap Tx times TDMA requires a preamble signal; for synchronizing receiver with Tx. bit stream. Excellent for stream traffic;Used in connection-oriented systems; variable rates/slots ECE C394 Communication Networks Inefficient for bursty traffic due to unused dedicated slots
Topic 6: TDMA FDMA and CDMA 16
Guardbands
FDMA
Frequency bands must be non-overlapping to prevent interference Guardbands ensure separation; form of overhead
TDMA
Stations must be synchronized to common clock Time gaps between transmission bursts from different stations to prevent collisions; form of overhead Must take into account propagation delays
08/29/11
17
Compare FDMA and TDMA in terms of their ability to handle groups of stations that produce information flows that are produced at constant but different bit rates.
Let the total bit rate supported by the transmission medium is R. In the typical FDMA,
each station can transmit at a rate of R/M on its assigned frequency, where M is the total number of stations. The bit rate R/M is fixed for each station, and must satisfy the highest bit rate generated by the group. But for stations with lower bit rate, unused bandwidth is wasted. FDMA is inflexible and inefficient in handling flows with different bit rates. FDMA would need to be modified to allocate bands of different bandwidth to different users to accommodate differences in bit rate requirements.
In TDMA, each time slot gives an average bit rate of R/M, where M is the number of time slots.
TDMA is more flexible than FDMA, because it can accommodate flows of different bit rates in two ways:
assign multiple slots to each flow according to their bit rate, or allow the slot to be variable in duration. In the first method, the bit rate of the flow must be some multiple of a basic bit rate. In the second method, a means of identifying the endpoints of the variable length frame must be provided, and this adds overhead.
TDMA is more flexible than FDMA in handling flows of various bit rates, but does not necessarily does this efficiently
.
08/29/11 ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA
18
Channelization: CDMA
Frequency
1 2
Time
08/29/11 ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA 19
Digital modulation
Radio antenna
User information mapped into: +1 or -1 for T sec. Multiply user information by pseudo- random binary pattern of G chips of +1s and -1s Resulting spread spectrum signal occupies G times more bandwidth: W = GW1 Modulate the spread signal by sinusoid at appropriate fc
08/29/11
20
Digital demodulation
Binary information
Recover spread spectrum signal Synchronize to and multiply spread signal by same pseudo-random binary pattern used at the transmitter In absence of other transmitters & noise, we should recover the original +1 or -1 of user information Other transmitters using different codes appear as residual noise
08/29/11
21
As number of users increases, effect of other users on a given receiver increases as additive noise CDMA has gradual increase in BER due to noise as number of users is increased Interference between channels can be eliminated is codes are selected so they are orthogonal and if receivers and transmitters are synchronized
Shown in next example
08/29/11
23
User 1
+1 User 3
+1
-1 x
Shared Medium
08/29/11
24
Channel 1: 110 -> +1+1-1 -> (-1,-1,-1,-1),(-1,-1,-1,-1),(+1,+1,+1,+1) Channel 2: 010 -> -1+1-1 -> (+1,-1,+1,-1),(-1,+1,-1,+1),(+1,-1,+1,-1) Channel 3: 001 -> -1-1+1 -> (+1,+1,-1,-1),(+1,+1,-1,-1),(-1,-1,+1,+1) Sum Signal: (+1,-1,-1,-3),(-1,+1,-3,-1),(+1,-1,+3,+1)
Channel 2
Channel 3
Sum Signal
08/29/11
25
Shared Medium
ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA
08/29/11
26
Decoding at Receiver 2
Sum Signal: Channel 2 Sequence: Correlator Output: Integrated Output: Binary Output: (+1,-1,-1,-3),(-1,+1,-3,-1),(+1,-1,+3,+1) (-1,+1,-1,+1),(-1,+1,-1,+1),(-1,+1,-1,+1) (-1,-1,+1,-3),(+1,+1,+3,-1),(-1,-1,-3,+1) -4, +4, -4 0, 1, 0
X
Channel 2 Sequence Correlator Output
+4 Integrator Output -4 08/29/11 ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA -4 27
Walsh functions are provide orthogonal code sequences by mapping 0 to -1 and 1 to +1 m Walsh matrix provides orthogonal spreading sequences of length n=2 . These matrices have binary coeffs. And are defined recursively. Walsh matrices constructed recursively as follows:
Walsh Functions
W2n =
Wn W n Wn Wnc
W1=
W2=
0 0 0 1 W8=
W 4=
0 0 0 0
0 1 0 1
0 0 1 1
0 1 1 0
0 0 0 0 0 0 0 0
0 1 0 1 0 1 0 1
0 0 1 1 0 0 1 1
0 1 1 0 0 1 1 0
0 0 0 0 1 1 1 1
0 1 0 1 1 0 1 0
0 0 1 1 1 1 0 0
0 1 1 0 1 0 0 1
28
08/29/11
Compare CDMA with FDMA, TDMA, in terms of their ability to handle groups of stations that produce information flows that are produced at constant but different bit rates.
Let the total bit rate supported by the transmission medium is R. Unlike TDMA and FDMA where transmission bandwidth is statically allocated to different stations in terms of time or frequency, In CDMA, the signal of every flow occupies the entire frequency band at the same time. In general CDMA assumes that the bit rate of the information source is fixed, and the symbol rate of the spreading sequence is an integer multiple of the information bit rate. If the bit rate is reduced by some integer factor, for example by 2, then the integration period for each bit time (in Figure 6.33) is twice as long. This means that the signal-to-noise ratio at the receiver will be higher, and hence the transmitter can reduce its transmitted power. The capacity of the CDMA system is limited by the interference between different flows. Thus flows of lower bit rate require lower transmission power, and cause lower interference to other flows. The extra capacity can be used to handle more flows. CDMA can efficiently handle flows of different bit rates as long as the inter-flow interference is below an acceptable level. ECE C394 Communication Networks
Topic 6: TDMA FDMA and CDMA 29
08/29/11
FDMA used in Advanced Mobile Phone System (AMPS) TDMA used in IS-54 and Global System for Mobile Communications (GSM) CDMA used in Interim Standard 95 (IS-95)
08/29/11 ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA 30
Frequency band 50 MHz wide in 800 MHz region allocated to two service providers: A and B
A
824 MHz 08/29/11
AB
849 MHz
A
869 MHz
A B
Frequency
894 MHz 31
08/29/11
32
1 AMPS channel carries 3 voice calls 30 kHz spacing also used in 1.9 GHz PCS band
08/29/11 ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA 33
416 AMPS channels x 3 = 1248 digital channels Assume 21 channels for calls setup and control IS-54 spectrum efficiency: #calls/cell/MHz
(1227/7)/(25 MHz) = 7 calls/cell/MHz
08/29/11 ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA 34
905 MHz
950 MHz
reverse
08/29/11
forward
35
Each carrier signal carries traffic and control channels 1 full rate traffic channel = 1 slot in every traffic frame 24 slots x 114 bits/slot / 120 ms = 22.8 kbps
Traffic Channels #0-11 0 1 2 3 4 5 6 7 8 Slow Associated Control Channel Traffic Channels #13-24 Slow Associated Control Channel 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
08/29/11
1 TDMA frame = 8 slots 1 slot = 114 data bits / 156.25 bits total ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA
36
08/29/11
37
Forward channels use orthogonal spreading Reverse channels use non-orthogonal spreading
08/29/11 ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA 38
Base-to-Mobile Channels
Walsh channel j sequence 9600 bps Error coding, 19,200 sym/s repetition, User info interleaving 19200 sym/s User mask (ESN) Long code generator Decimator 1.2288 Mcps I short code spreading sequence
I(t) Q(t)
Basic user information rate is 9.6 kbps Doubled after error correction coding Converted to +1s Multiplied by 19.2 ksym/sec stream derived from 42-bit register long-code sequence generator which depends on electronic serial number
ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA 39
08/29/11
Base-to-Mobile Channels
Walsh channel j sequence 9600 bps Error coding, 19,200 sym/s repetition, User info interleaving 19200 sym/s User mask (ESN) Long code generator Decimator 1.2288 Mcps I short code spreading sequence
I(t) Q(t)
Each symbol multiplied by 64-bit chip Walsh orthogonal sequence (19200 x 64 = 1.2288 Msym/sec) Each base station uses the same 15-bit register short sequence to spread signal prior to transmission Base station synchronizes all its transmissions
08/29/11 ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA 40
I(t) Q(t)
All 0s Walsh sequence reserved to generate pilot tone Short code sequences transmitted to all receivers Receivers can then recover user information using Walsh orthogonal sequence Different base stations use different phase of same short sequence Mobiles compare signal strengths of pilots from different base stations to decide when to initiate handoff
ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA
08/29/11
41
Mobile-to-Base Channels
I short code spreading sequence 9600 bps Error coding, repetition, User info interleaving 307,200 sym/s 1/2 chip delay
I(t) Q(t)
D
Q short code spreading sequence
1.2288 Mcps
9.6 kbps user information coded and spread to 307.2 kbps Spread by 4 by multiplying by long code sequence Different mobiles use different phase of long code sequence Multiplied by short code sequence Transmitted to Base
08/29/11
42
Signals arriving at a base station from within or from outside its cell are uncorrelated because mobiles have different long code sequences Signals arriving at mobiles from different base stations are uncorrelated because they use different phases of the short code sequence
Enables reuse factor of 1 Goodman [1997] estimates spectrum efficiency for IS95 is:
between 12 & 45 call/cell/MHz
08/29/11
43
Scheduling
Random access
Polling: take turns Request for slot in transmission schedule Token ring Wireless LANs
ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA
08/29/11
Scheduling: Polling
Inbound line
Data to M
Host computer
Outbound line
3 M
Stations
08/29/11 ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA 46
Scheduling: Token-Passing
Ring networks
token
Data to M token
Random Access
Multitapped Bus Crash!!
08/29/11
48
Wireless LAN
AdHoc: station-to-station Infrastructure: stations to base station Random access & polling
08/29/11
49
Scale
How much traffic can be carried? How many users can be supported?
Current Examples:
Design MAC to provide wireless DSL-equivalent access to rural communities Design MAC to provide Wireless-LAN-equivalent access to mobile users (user in car travelling at 130 km/hr)
ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA
08/29/11
50
Delay-Bandwidth Product
Coordination in sharing medium involves using bandwidth (explicitly or implicitly) Difficulty of coordination commensurate with delaybandwidth product
08/29/11
51
Case 1
Case 2
A
A detects collision at t = 2 tprop
B B
08/29/11
52
Station B needs to be quiet tprop before and after time when Station A transmits; so, Waiting time=2tprop R transmission bit rate (Note is different from Effe. Throughput, Reff .) L bits/frame; Sending station requires X=L/R secs for transmitting its frame. Effe. Throughput is Actual rate (bps) at which info. sent over channel Efficiency is Normalized Maximum throughput (= Reff./R). Normalized delay-b/w product (a) = ratio of 1-way delay b/w product to avg. frame length.
Efficiency = max
Normalized Delay-Bandwidth Product
08/29/11
L 1 1 = = = L + 2t prop R 1 + 2t prop R / L 1 + 2a
L 1 = = R bits/secon d L / R + 2t prop 1 + 2a
a=
t prop L/R
08/29/11
54
1 Efficiency = 1 + 2a
CSMA-CD (Ethernet) protocol:
1 Efficiency = 1 + 6.44a
Token-ring network
If a<<1, then efficiency close to 100% As a approaches 1, the efficiency becomes low
1 Efficiency = 1 + a
a= latency of the ring (bits)/average frame length
08/29/11 ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA 55
Distance
100000 km 3.33 x 1006 3.33 x 1007 3.33 x 1008 Global area network
Max size Ethernet frame: 1500 bytes = 12000 bits Long and/or fat pipes give large a
08/29/11 ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA 56
08/29/11
Parameters
08/29/11
58
E[T]/X
1 Load
08/29/11
m a x
At low arrival rate, only frame transmission time At high arrival rates, increasingly longer waits to access channel Max efficiency typically less than 100%
59
Transfer delay
Dependence on Rtprop /L
E[T]/X
a > a a a
Transfer Delay
1 max Load
08/29/11 ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA 60
mx a
08/29/11
61
traffic onto a shared line Packets are encapsulated in frames and queued in a buffer prior to transmission Central control allows variety of service disciplines
Statistical Multiplexing & Random Access allows sharing of a broadcast Multiplexing concentrates bursty MAC
medium Packets are encapsulated in frames and queued at station prior to transmission Decentralized control wastes bandwidth to allow sharing
A Shared Medium
Buffer
R bps
C Input lines
08/29/11
R bps
C Input lines
62
Output line
System Performance Transfer Delay Packet/frame Loss Efficiency & Throughput Priority, scheduling, & QoS
A Shared Medium
Buffer
R bps
C Input lines
08/29/11
R bps
C Input lines
63
Output line
Arrival Model
Independent frame interarrival times: Average 1/ Exponential distribution Poisson Arrivals
Load = /
Stability Condition: <1
Infinite Buffer
No Blocking
(From Appendix A)
08/29/11
In M/G/1 model, a frame arriving to an empty multiplexer begins transmission immediately In many MACs, there is a delay before transmission can begin M/G/1 Vacation Model: when system empties, server goes away on vacation for random time V
1 2
R/M
M stations do not interact Poisson arrivals /M fr/sec Constant frame length L bits Transmission time at full rate X=L/R Station bit rate is R/M Neglect guardbands Transmission time from station L/(R/M)=M(L/R) =MX M times longer Load at one station: = ( / ) X= = X
08/29/11
...
67
The delay increases in proportion with M, the number of stations Allocated bandwidth to a given station is wasted when other stations have data to send
ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA 68
08/29/11
TDMA
69
MX E[TTDMA ] = MX + +X 2(1 ) 2
Better than FDMA & CDMA Total Delay still grows proportional to M
08/29/11 ECE C394 Communication Networks Topic 6: TDMA FDMA and CDMA 70
08/29/11
71