Professional Documents
Culture Documents
Example CSMA/CD Carrier Sense Multiple Access with Collision Detection send as soon as the medium is free, listen into the medium if a collision occurs (original method in IEEE 802.3) Problems in wireless networks signal strength decreases proportional to the square of the distance the sender would apply CS and CD, but the collisions happen at the receiver it might be the case that a sender cannot hear the collision, i.e., CD does not work furthermore, CS might not work if, e.g., a terminal is hidden
1
Hidden Terminals
Exposed terminals
B sends to A, C wants to send to another terminal (not A or B) C has to wait, CS signals a medium in use but A is outside the radio range of C, therefore waiting is not necessary C is exposed to B
C cannot receive A
structure
(e.g., radio broadcast), slow hopping (e.g., GSM), fast hopping (FHSS, Frequency Hopping Spread Spectrum)
the fixed sending frequency to a transmission channel between a sender and a receiver for a certain amount of time
8
1 20 MHz 124
200 kHz
890.2 MHz
TDMA
The receiver is tuned to the same frequency all the time The receiver listens to many channels separated in time. A time slot is allocated to a channel. The channel accesses the medium at the designated time
10
Fixed TDM
The Base station assigns the fixed time pattern to all the mobile stations The mobiles synchronize to the base station and wait for its turn to access the medium
11
12
The channels is made of 24 time slots Uplink 12 time slots are allocated for the mobiles to access the Base station Downlink 12 time slots are allocated for the base station to access mobiles Each connection is allocated its uplinkdownlink pair The pattern repeats every 10 msec. So, every time slot is for 10msec/24 = 417 sec
13
14
Classical Aloha
TDM is applied without any access control Aloha does not coordinate the medium It does not resolve contention on MAC layer
15
Classical Aloha
collision sender A sender B
sender C
t
16
Classical Aloha
Users access the medium in a random fashion If there is a collision, the MAC protocol does not resolve It is for the higher layers to resolve Throughput is only 18%. Useful only for light loads
17
Slotted Aloha
18
Slotted Aloha
The time for medium access is divided into slots There is no coordination of users to access the medium Users can access the medium only at the beginning of the time slots Time synchronization is very important The throughput is now 36% with the introduction of slots UMTS uses this slotted Aloha MAC.
19
20
CSMA
Since the medium is accessed to check if it is idle and then the transmission is initiated, probability of collision is reduced. This scheme can not still solve the Hidden Terminal problem. A variant : station tries for a slot with probability p. If not successful, it moves on to the next slot
21
Demand Assigned Multiple Access with Reservation Contention Phase : Fixed Aloha slots (very short duration slots) are used reserve future slots The satellite for example, sends a list of approved users and the slots. The users have to perfectly synchronize and use the medium exactly as per the approved list.
22
Aloha
reserved
Aloha
reserved
Aloha
reserved
Aloha
two modes: ALOHA mode for reservation: competition for small reservation slots, collisions possible reserved mode for data transmission within successful reserved slots (no collisions possible)
23
it is important for all stations to keep the reservation list consistent at any point in time and, therefore, all stations have to synchronize from time to time
24
25
ACDABA-F
time-slot
ACDABA-F
AC-ABAFA---BAFD ACEEBAFD
frame5 A C E E B A F D
26
A Base station (for ex., a satellite) broadcasts the status of slots (for example, ACDABA-F) to all mobiles. The mobiles know which all slots are allocated to them in this frame. All stations needing a slot will contend for the free slot (Slot F in this case). There is a collision here since more than one mobile is trying for the free slot F. Slot F is not allocated since there is a collision. In the next frame, stations can compete for this and any released slots.
27
Reservation TDMA
Reservation
Time Division Multiple Access every frame consists of N mini-slots and x data-slots every station has its own mini-slot and can reserve up to k dataslots using this mini-slot (i.e. x = N * k). other stations can send data in unused data-slots according to a round-robin sending scheme (best-effort traffic)
N * k data-slots e.g. N=6, k=2
N mini-slots
MACA (Multiple Access with Collision Avoidance) uses short signaling packets for collision avoidance
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 CTS (clear to send): the receiver grants the right to send as soon as it is ready to receive sender address receiver address packet size
29
MACA avoids the problem of hidden terminals A and C want to send to B RTS A sends RTS first CTS CTS C waits after receiving A B CTS from B
MACA avoids the problem of exposed terminals B wants to send to A, C to another terminal RTS RTS now C does not have to wait for it cannot CTS receive CTS from A A B
30
receiver
idle
data; ACK time-out data; NAK wait for data RTS; CTS
CTS; data
31
Polling Mechanisms
If one terminal can be heard by all others, this central terminal (a.k.a. base station) can poll all other terminals according to a certain scheme
now all schemes known from fixed networks can be used (typical mainframe - terminal scenario) base station signals readiness to all mobile terminals terminals ready to send can now transmit a random number without collision with the help of CDMA or FDMA (the random number can be seen as dynamic address) the base station now chooses one address for polling from the list of all random numbers (collision if two terminals choose the same address) the base station acknowledges correct packets and continues polling the next terminal this cycle starts again after polling all terminals of the list
32
Current state of the medium is signaled via a busy tone the base station signals on the downlink (base station to terminals) if the medium is free or not terminals must not send if the medium is busy terminals can access the medium as soon as the busy tone stops the base station signals collisions and successful transmissions via the busy tone and acknowledgements, respectively (media access is not coordinated within this approach) mechanism used, e.g., for CDPD (USA, integrated into AMPS)
33