Channel Allocation Protocols
Channel Allocation Protocols
t
( t ) e k
Pk (t )
k!
t0 t0 + t t0 + 2t t0 + 3t
Vulnerable Time
2T f
( 2T f ) 0 e
P0 (2T f ) e 2 G
0!
G
becasue . Thus, S G e 2 G
Tf
Analysis of Pure ALOHA…
• If we differentiate S = Ge-2G with respect to G
and set the result to 0 and solve for G, we
find that the maximum occurs when
G = 0.5,
and for that S = 1/2e = 0.18. So, the
maximum throughput is only 18% of capacity.
11
Pure ALOHA …
Throughput versus offered traffic for ALOHA
systems.
Analysis of Pure ALOHA; another approach
k 1 k 1
17
Analysis of Slotted ALOHA
• Note that the vulnerable period is now reduced in half.
Using: ( t ) k e t
Pk (t )
k!
And setting t = Tf and k = 0, we get
T f
( T f )0 e
P0 (T f ) eG
0!
G
because . Thus, S G e G
Tf
Slotted ALOHA
Throughput versus offered traffic for ALOHA
systems.
Alternate Analysis for Slotted Aloha
• Use of alternate approach for throughput
of slotted aloha is left as exercise
Carrier Sense Multiple Access (CSMA)
• Additional assumption:
– Each station is capable of sensing the
medium to determine if another transmission
is underway
Non-persistent CSMA
While there is a new frame A to send DO
1. Check the medium
2. If the medium is busy, wait some time, and
go to 1.
3. (medium idle) Send frame A and wait for
ACK
4. If after some time ACK is not received (timer
times out), wait a random amount of time
and go to 1.
End
1-persistent CSMA
While there is a new frame A to send do
1. Check the medium
2. If the medium is busy, go to 1.
3. (medium idle) Send frame A and wait
for ACK
4. If after some time ACK is not received
(timer times out), wait a random
amount of time and go to 1.
End.
p-persistent CSMA
While there is a new frame A to send do
1. Check the medium
2. If the medium is busy, go to 1.
3. (medium idle) With probability p send frame
A and the go to 4, and probability (1- p)
delay one time slot and go to 1.
4. If after some time ACK is not received (timer
times out), wait a random amount of time
and go to 1.
End.
CSMA Summary
Nonpersistent
1-persistent CSMA persistence and backoff
p-persistent Non-persistent:
Transmit if idle
Constant or variable Otherwise, delay, try again
Delay
Channel busy Time
Ready
1-persistent: p-persistent:
Transmit as soon as Transmit as soon as channel goes
channel goes idle idle with probability p
If collision, back off and try again Otherwise, delay one slot, repeat process
25
Persistent and Non-persistent
CSMA
Comparison of throughput versus load
for various random access
protocols.
CSMA with Collision Detection
• Stations can sense the medium while
transmitting
• A station aborts its transmission if it senses
another transmission is also happening (that is,
it detects collision)
• Question: When can a station be sure that it has
seized the channel?
– Minimum time to detect collision is the time it takes for
a signal to traverse between two farthest apart
stations.
CSMA with Collision Detection