Professional Documents
Culture Documents
Chapter 3 •
•
Motivation
SDMA, FDMA, TDMA
• Aloha
MEDIA ACCESS •
•
Adaptive Aloha
Backoff protocols
• Reservation schemes
CONTROL • Polling
Distributed
Computing
Mobile Computing
Group
Summer 2004
Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/3 Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/4
Motivation – Exposed terminal problem Motivation - near and far terminals
A B C
Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/5 Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/6
Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/7 Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/8
TDD/TDMA - general scheme, example DECT TDMA – Motivation
Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/9 Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/10
Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/11 Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/12
Slotted Aloha vs. Round Robin Adaptive slotted aloha
– Slotted aloha uses not every slot of the channel; the round robin • Idea: Change the access probability with the number of stations
protocol is better. • How can we estimate the current number of stations in the system?
+ What happens in round robin when a new station joins? What • Assume that stations can distinguish whether 0, 1, or more than 1
about more than one new station? Slotted aloha is more flexible. stations send in a time slot.
• Idea:
• Example: If the actual – If you see that nobody sends, increase p.
number of stations is – If you see that more than one sends, decrease p.
twice as high as expected, • Model:
there is still a successful
– Number of stations that want to transmit: n.
transmission with
– Estimate of n: n̂
probability 30%. If it is only
half, 27% of the slots are – Transmission probability: p = 1/ n̂
used successfully. – Arrival rate (new stations that want to transmit): λ; note that λ < 1/e.
Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/13 Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/14
We have to show that the system stabilizes. Sketch: Q: What if we do not know λ, or λ is changing?
n̂ − n A: Use λ = 1/e, and the algorithm still works
P2
Q: How do newly arriving stations know n̂ ?
P1 (1 − λ ) ( P0 + P2 ) λ A: We send n̂ with each transmission; new stations do not send before
n successfully receiving the first transmission.
P1 + P0
Q: What if stations are not synchronized?
A: Aloha (non-slotted) is twice as bad
Q: Can stations really listen to all time slots (save energy by turning off)?
nˆ ← nˆ + λ − 1, if success or idle
Q: Can stations really distinguish between 0, 1, and more than 1 sender?
1
nˆ ← nˆ + λ + , if collision A: No. One can use systems that only rely on acknowledgements…
e−2
Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/15 Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/16
Backoff Protocols Demand Assigned Multiple Access (DAMA)
• Channel efficiency only 36% for Slotted Aloha, and even worse for
• Backoff protocols rely on acknowledgements only. Aloha or backoff protocols.
• Binary exponential backoff, for example, works as follows: • Practical systems therefore use reservation whenever possible.
• If a packet has collided k times, we set p = 2-k But: Every scalable system needs an Aloha style component.
Or alternatively: wait from random number of slots in [1..2k] • Reservation:
– a sender reserves a future time-slot
– sending within this reserved time-slot is possible without collision
• It has been shown that binary exponential backoff is not stable
– reservation also causes higher delays
for any λ > 0 (if there are infinitely many potential stations)
– typical scheme for satellite systems
[Proof sketch: with very small but positive probability you go to a
bad situation with many waiting stations, and from there you get • Examples for reservation algorithms:
even worse with a potential function argument – sadly the proof – Explicit Reservation (Reservation-ALOHA)
is too intricate to be shown in this course ☺] – Implicit Reservation (PRMA)
• Interestingly when there are only finite stations, binary – Reservation-TDMA
exponential backoff becomes unstable with λ > 0.568; – Multiple Access with Collision Avoidance (MACA)
Polynomial backoff however, remains stable for any λ < 1.
Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/17 Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/18
Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/19 Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/20
DAMA: Reservation TDMA Multiple Access with Collision Avoidance (MACA)
• every frame consists of n mini-slots and x data-slots • Use short signaling packets for collision avoidance
• every station has its own mini-slot and can reserve up to k data- – Request (or ready) to send RTS: a sender requests the right to send
slots using this mini-slot (i.e. x = nk). from a receiver with a short RTS packet before it sends a data packet
• other stations can send data in unused data-slots according to a – Clear to send CTS: the receiver grants the right to send as soon as it is
ready to receive
round-robin sending scheme (best-effort traffic)
reservations other stations can use free data-slots • Example: Wireless LAN (802.11) as DFWMAC
for data-slots based on a round-robin scheme
Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/21 Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/22
Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/23 Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/24
Polling mechanisms Inhibit Sense Multiple Access (ISMA)
Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/25 Distributed Computing Group MOBILE COMPUTING R. Wattenhofer 3/26
Comparison SDMA/TDMA/FDMA/CDMA
Approach SDMA TDMA FDMA CDMA
Idea segment space into segment sending segment the spread the spectrum
cells/sectors time into disjoint frequency band into using orthogonal codes
time-slots, demand disjoint sub-bands
driven or fixed
patterns
Terminals only one terminal can all terminals are every terminal has its all terminals can be active
be active in one active for short own frequency, at the same place at the
cell/one sector periods of time on uninterrupted same moment,
the same frequency uninterrupted
Signal cell structure, directed synchronization in filtering in the code plus special
separation antennas the time domain frequency domain receivers
Advantages very simple, increases established, fully simple, established, flexible, less frequency
capacity per km² digital, flexible robust planning needed, soft
handover
Dis- inflexible, antennas guard space inflexible, complex receivers, needs
advantages typically fixed needed (multipath frequencies are a more complicated power
propagation), scarce resource control for senders
synchronization
difficult
Comment only in combination standard in fixed typically combined still faces some problems,
[J.Schiller]