2.the Medium Access Control Sublayer
2.the Medium Access Control Sublayer
Sublayer
Vijay S. Katta 1
Channel Allocation
• Networks can be divided into two categories:
– those using point-to-point connections and
– those using broadcast channels.
Vijay S. Katta 2
1
Channel allocation issue in
Broadcast
Vijay S. Katta 3
Vijay S. Katta 4
2
The Channel Allocation Problem
Vijay S. Katta 5
Vijay S. Katta 6
3
Static Channel Allocation
Vijay S. Katta 7
• If the spectrum is cut up into N regions and fewer than N users are
currently interested in communicating, a large piece of valuable
spectrum will be wasted.
Vijay S. Katta 8
4
Queuing theory for performance
of channel
• Queuing theory is a mathematical study of waiting lines
or queues.
Vijay S. Katta 9
Vijay S. Katta 10
5
Performance of static channel
• A standard queueing theory result is
For example,
• if C is 100 Mbps,
• the mean frame length, 1/μ, is 10,000 bits, and
• the frame arrival rate, λ, is 5000 frames/sec,
then T = 200 μsec
Vijay S. Katta 11
Vijay S. Katta 12
6
TDM static channel allocation
• Precisely the same arguments that apply to FDM
also apply to other ways of statically dividing the
channel.
Vijay S. Katta 13
Vijay S. Katta 14
7
Assumptions for Dynamic Channel
Allocation in LANs and MANs
1. Station Model.
3. Collision Assumption.
1. Station Model
• Independent Traffic. The model consists of N independent
stations (e.g., computers, telephones).
Vijay S. Katta 16
8
2. Single Channel.
• A single channel is available for all
communication.
3.Observable Collisions
assumption
• If two frames are transmitted simultaneously, they
overlap in time and the resulting signal is garbled.
Vijay S. Katta 18
9
4. Continuous or Slotted Time
• Time may be assumed continuous, in which case
frame transmission can begin at any instant.
• Alternatively, time may be slotted or divided into discrete
intervals (called slots).
• Frame transmissions must then begin at the start of
a slot.
• A slot may contain 0, 1, or more frames, corresponding
to an idle slot, a successful transmission, or a collision,
respectively.
Vijay S. Katta 19
Vijay S. Katta 20
10
MULTIPLE ACCESS
PROTOCOLS
Vijay S. Katta 21
• ALOHA
• Carrier Sense Multiple Access Protocols
• Collision-Free Protocols
• Limited-Contention Protocols
• Adaptive Tree Walk Protocol.
Vijay S. Katta 22
11
Taxonomy of multiple-access protocols discussed in this chapter
ALOHA
• ALOHA, the earliest random access method,
was developed at the University of Hawaii in
early 1970. It was designed for a radio (wireless)
LAN, but it can be used on any shared medium.
– Pure ALOHA
– Slotted ALOHA
Vijay S. Katta 24
12
Pure ALOHA
the first multiple-access protocol: a method for sharing a
transmission channel by enabling the transmitter to access
the channel at random times
ALOHA of U. of Hawaii
Computer
Center
413MHz at 9600bps
407MHz at 9600bps
Pure ALOHA
• The original ALOHA protocol is called pure ALOHA. This is a simple,
but elegant protocol.
• The idea is that each station sends a frame whenever it has a frame
to send.
Vijay S. Katta 26
13
Pure ALOHA
• We need to resend the frames that have been destroyed
during transmission.
Vijay S. Katta 27
Pure ALOHA
In pure ALOHA, frames are transmitted at completely arbitrary
times.
Vijay S. Katta 28
14
ALOHA
29
Vijay S. Katta
15
Pure ALOHA (2)
Vulnerable period for the shaded frame.
Vijay S. Katta 31
Vijay S. Katta 32
16
Performance of ALOHA
• Performance of ALOHA has been calculated with Poisson
distribution.(Annexure –A)
Vijay S. Katta 33
(2G)k
e-2G , k=0,1,2,…
P[k transmissions in 2X seconds] =
k!
Therefore, the throughput of the system is:
17
What results can be obtained from the graph?
1.peak value at G=0.5 with S=0.184
2.for any given S, there are two values of G, corresponding to
the two modes: occasional collision mode with S G and
frequent collision mode with G >> S
0.2
0.18 0.184
0.16
0.14
0.12
0.1
S
0.08 Ge-2G
0.06
0.04
0.02
0
0 1 2 4
12
5 25 12
5
62
5 25 0.2
5 0.5
78 56 .03 0.0 0.1
00 0.01 0
0.
35
Figure 6.17
Slotted ALOHA
Synchronize the transmissions of stations
–All stations keep track of transmission time slots and are allowed to initiate
transmissions only at the beginning of a time slot.
36
18
Peak value at G=1 with S=0.368 for slotted ALOHA, double compared with ALOHA.
In LAN, propagation delay may be negligible and uncoordinated access of shared
medium is possible but at the expense of significant wastage due to collisions and at
very low throughput.
Throughput of ALOHAs is not sensitive to the reaction time because stations act
independently.
0.4
0.368
0.35
0.3
S 0.25
Ge-G
0.184
0.2
0.15
0.1
Ge-2G
0.05
0
0.25
0.03125
0.125
8
0.5
0.015625
0.0625
G
Throughput S versus load G for ALOHA and slotted ALOHA
37
Figure 6.17
38
19
Evolution of CSMA/CD
Types of CSMA
• Persistent CSMA
– 1- persistent CSMA
– P- persistent CSMA
Vijay S. Katta 40
20
Carrier Sense Multiple Access Protocols
1-persistent CSMA
42
21
Non-persistent CSMA
43
p-persistent CSMA
44
22
Carrier Sense Multiple Access Protocols Collision Detection
23
CSMA process
Vijay S. Katta 47
Collision-Free Protocols(1)
Bit-map protocol.
24
Collision-Free Protocols (2)
The binary countdown protocol. A dash
indicates silence.
Limited-Contention Protocols
25
Limited-Contention Protocols
• Obviously, it would be nice if we could
combine the best properties of the contention
and collision-free protocols, arriving at a new
protocol that
– used contention at low loads to provide low delay,
but
Channel
efficiency
Light load Heavy load
26
Adaptive Tree Walk Protocol
The tree for eight stations.
Vijay S. Katta 54
27
Applications
• Apart from disjoint time intervals, the Poisson random variable also
applies to disjoint regions of space.
• The number of deaths by horse kicking in the Russian army (first
application)
• Birth defects and genetic mutations
• Rare diseases (like leukemia, but not AIDS because it is infectious
and so not independent) - especially in legal cases
• Car accidents
• Traffic flow and ideal gap distance
• Number of typing errors on a page
• Hairs found in mcdonald's hamburgers
• Spread of an endangered animal in africa
• Failure of a machine in one month
Vijay S. Katta 55
Probability distribution of a
Poisson random variable
• The probability distribution of a Poisson random
variable X representing the number of successes
occurring in a given time interval or a specified region
of space is given by the formula:
x=0,1,2,3…
e={2.71828}
μ= mean number of successes in the given time interval or region of space
Back with solid fill
Vijay S. Katta 56
28