Medium Access Control Sub Layer
Medium Access Control Sub Layer
Medium Access Control Sub Layer
12.2
Contents
Multiple Access Protocols
ALOHA
Carrier Sense Multiple Access Protocols
Collision-Free Protocols
Station Model.
Collision Assumption.
ALOHA
Carrier Sense Multiple Access Protocols
Collision-Free Protocols
Wireless LAN Protocols
12.9
12.13
G k e G
Pr[k ]
k!
So the probability of zero frames is just e-G
In the vulnerable interval, the mean number of frames
generated is 2G, so the probability that there is no frame is
therefore P0 = e-2G
Using the formula S = G P0, we obtain:
S Ge
2 G
Slotted ALOHA
Assumptions
all frames same size
time is divided into equal
size slots, time to transmit 1
frame
nodes start to transmit frames
only at beginning of slots
nodes are synchronized
if 2 or more nodes transmit in
slot, all nodes detect collision
Operation
when node obtains fresh frame,
it transmits in next slot
no collision, node can send new
frame in next slot
if collision, node retransmits
frame in each subsequent slot
with prob. p until success
DataLink Layer
2-15
Slotted ALOHA
Pros
single active node can
continuously transmit at full
rate of channel
highly decentralized: only
slots in nodes need to be in
sync
simple
Cons
collisions, wasting slots
idle slots
nodes may be able to detect
collision in less than time to
transmit packet
clock synchronization
DataLink Layer
2-16
12.17
12.18
Slotted ALOHA
The time is divided into discrete intervals, each interval
corresponding to one frame.
The users will need to be synchronized with the beginning of
the slot
Special station can emit a pip at the start of each interval
S Ge
CSMA Protocols
Are protocols in which stations listen for a carrier
(i.e. transmission) and act accordingly
Networks based on these protocols can achieve better
channel utilization than 1/e
Protocols
1 persistent CSMA
Non persistent CSMA
p persistent CSMA
CSMA CD
1 Persistent CSMA
1 persistent CSMA
When a station has data to send, it first listens to the
channel
If channel is busy, the station waits until the channel is
free. When detects an idle channel, it transmits the frame
If collision occurs, it will wait an random amount of time
and starts again
The protocol is called 1 persistent, because the station
sends with probability of 1 when finds the channel idle,
meaning that is continuously listening
Propagation delay
12.24
p Persistent CSMA
It applies to slotted channels
When a station becomes ready to send, it senses the channel.
If it is idle will transmit with a probability of p. With a
probability of q it defers to the next slot.
If next slot is also idle, it transmits or it defers again with
probabilities of p and q
This process is repeated until the frame gets either
transmitted or another station it began transmission
For latter case, the unlucky station acts the same as it would
have been a collision (waits a random time and starts again)
CSMA/CD
CSMA method that weve learnt just now doesnt
specify the procedure following a collision.
CSMA/CD augments the algorithm to handle the
collision
In the CSMA/CD method, a station monitors the
medium after it sends a frame to see of the
transmission was a successful. If so, the station is
finished. If, however, there is a collision, the frame is
sent again.
To better understand CSMA/CD, see fig 12.12
12.28
12.29
12.30
12.31
12.32
12.35
12.36
CSMA/CA
USED IN WIRELESS (WI-FI and etc.)
For this lectures pls refer to chapter 12 of text book.
Forouzans. Page 363 - 390
12.37
References
Andrew S. Tanenbaum Computer Networks, ISBN
0-13-066102-3