Module 2_4 Medium Access Control Sublayers
Module 2_4 Medium Access Control Sublayers
1
• Network can be divided into two categories-
• i) Using pt to pt connections
2
Medium Access Control
• The protocols used to determine who goes next on
a multiaccess channel belong to a sublayer of the
data link layer called the MAC (Medium Access
Control) sublayer.
3
broadcast channels
• Key Issues:
5
Centralised control
Disadvantages:
- Vulnerable to failure of the master node.
6
Distributed approach in which nodes collectively perform a medium
access control function and dynamically decide which node gets the
medium access.
7
What manner the control is exercised?
MAC technique can be broadly be divided into four categories:-
MAC
|
_______________________________________________________________________
| | | |
Random Round Robin Reservation Channelization
| | | |
___________Pure Aloha _______ ________________ _________________
|_________ Slotted Aloha | | | | | | |
|_________CSMA Polling Token Passing Centralised Distributed FDMA TDMA CDMA
|_________CSMA/CD
|_________CSMA/CA
8
•Focus of random MAC.
9
Contention Based Approach
•This is suitable where there are few nodes which have data for brief
periods of time suitable for bursty nature of traffic.
•Node which wants to transmit data contends for gaining control of the
medium.
10
ALOHA
•Invented in 1970 for packet radio network connecting remote stations to
a central computer and various data terminals at campus at Howard
University.
11
ALOHA Example
Central Server
f2 f2
f2
f1 f1
f1
B C
A
12
Pure ALOHA
•This is pure Aloha- whenever node has a packet to send, it simply does
so.
•Frames will suffer collision and colliding frames will be destroyed.
•A user comes to know whether the packet sent has suffered collision, by
monitoring signal sent by control computer.
•After collision wait for random time and then retransmit
P[k] = Gk e-G / k!
15
Calculating throughput for Pure ALOHA
•If N >1, users are generating frames at a higher rate than channel can
handle & frames will suffer collision. Hence 0<N<1
=> G >= N
- At low load N approximately 0, there are few collision hence few
retransmission => G appx N
-At high load there are many collisions
Probability for packet x to be successfully delivered =
Probability that there is no other packet during the period =
P(0) = Probability of 0 other frames in the period.
P[k] = Gk e-G / k! (K=0)
Throughput for the time period has G frames transmitted.
Throughput S = Offered Load = Average number of packets that can
successfully go throughout
= G Po.
Po = Probability that a frame does not suffer a collision. i.e Po is
probability of successful frames.
Pr [0] = Probability of 0 frames 17
0 -G
= G e / 0! = e -G
Calculating throughput for Pure ALOHA...
18
Slotted ALOHA
19
Best channel utilisation of 18% is obtained at 50% of the offered load.
Smaller offered load, channel capacity is underused.
Higher load, too many collisions reduce throughput.
20
CSMA
-If the propagation delay of the signal b/w 2 nodes is small compared to
the transmission time of a pkt, all other nodes will know quickly when a
node starts transmission.
Variations-
•1 Persistent CSMA:
-If the channel is free when sensed by a node, it transmits data.
-If channel is busy, nodes continues to monitor unit channel is idle
& then starts sending.
• Non-Persistent CSMA:
-If channel is free, node transmits.
-If busy, node waits for random amount of time & then monitors
again.
22
CSMA..
• 3- P-Persistent
i) When station becomes ready to send it senses the channel
ii)If idle it transmits with prob p. and with prob q = 1-p defers it until
next slot. If that slot is also idle it either transmits or defers again with
prob p and q. Continues until frame has been transmitted or anther
station has begum transmitting.
iii)If channel is busy it waits for random time and starts again from i)
iv) If initially it senses channel busy then waits until next slot and starts
again i)
23
CSMA/CD
24
CSMA/CD
-After this, node waits for random time & then retransmits, to ensure
that nodes involved in collision are not likely to have collision on
retransmission.
25
Pure ALOHA gives max throughput of 100% & is suitable only for very
low offered load.
-Slotted ALOHA: S max = 0.36
-Non -persistent CSMA is better than persistent due to smaller
probability of collision for retransmitted pkt in non-persistent.
-Non -persistent CSMA/CD provides high throughput and can tolerate
heavy load.
26
CSMA/CD
Can be in one of three state contention, transmission or idle t0
27
•If 2 stations starts transmit at t0, minimum time to detect collision is
time it takes the signal to propagate from one at to another.
•The most distant station detects collision & stops instantly but the noise
burst generated from the collision gets back to the original station only
until 2t - є
28
Station can be sure that it has seized the channel until it has
transmitted for 2t w/o hearing a collisions
29
THANKS
References:
Tanenbaum chapter 4 (4.1, 4.2.1, 4.2.2)
30