Академический Документы
Профессиональный Документы
Культура Документы
Computer Networks
IEEE 802
Prof . Anirudha sahoo, KReSIT, IIT Bombay MAC Layer 3.3
Static Channel Allocation
Problem 3
• Access Model: 2 4
– Can be modeled as 1
n independent
nodes, each Shared Multiple
wanting to Access Medium
communicate with
another node and M 5
they have no other
form of
Channel Allocation Problem
communication.
To manage a single broadcast channel which must be shared
among n uncoordinated users in the following manner
• efficiently i.e. maximize message throughput and
• fairly and,
• minimize mean waiting time
Prof . Anirudha sahoo, KReSIT, IIT Bombay MAC Layer 3.4
Multiple Access Problem
• Ring networks
• Multitapped Bus
Satellite = fin
Channel
= fout
2.ProfA. Anirudha
single channel is available
sahoo, KReSIT, IIT Bombay MAC Layer
for 3.7
Possible Model Assumptions
for
Channel
3. Allocation
Collision Assumption :: If Problem
two frames
are transmitted simultaneously, they
overlap in time and the resulting
signal is garbled. This event is a
collision.
• Disadvantages
– Delay increases
– ?? Fairness??
Prof . Anirudha sahoo, KReSIT, IIT Bombay MAC Layer 3.25
Exponential backoff
• On detecting 1st collision for
packet x
station A chooses a number r
between 0 and 1.
waits for r * slot time and
transmit.
Slot time is 2 * propagation delay
On detecting kth collision for packet
x
choose r between 0,1,..,(2k –1)
• When value of k becomes high
Prof . Anirudha sahoo, KReSIT, IIT Bombay MAC Layer 3.26
CSMA/ CD
(802.3,Ethernet)Performan
ceEthernet's
• understanding the
distributed contention scheme, under
high load
• transmission interval:
– is that during which the Ether has
been acquired for a successful packet
transmission.
• contention interval:
– is that composed of the
retransmission slots
Prof . Anirudha sahoo, KReSIT, IIT Bombay MAC Layer 3.27
• Idle interval
CSMA contention
• Station A transmits.
interval Just before its
signal reaches B, station B senses
channel is idle and starts
transmitting resulting in collision
• The longer the propagation delay,
the worse the performance of the
protocol
t = D - ε : packet almost at B A B
B begins transmission
A B
t = D: B detects collision,
stops transmitting
A B
t = 2D - ε : A detects collision
A B
t = D - ε : packet almost at B
B begins transmission
A B
t = 1: B detects collision,
stops transmitting
A B
t = 2D - ε : A detects collision
3600 meters
• 10base5: 500m segment, 100MAC
node, Original, bus
Prof . Anirudha sahoo, KReSIT, IIT Bombay
Layer 3.39
topology
Recent developments
• Switched Ethernet
– each station is connected to switch
by a separate UTP wire
– line card of switch has a buffer to
hold incoming packets
– fast backplane switches packet from
one line card to others
– simultaneously arriving packets do
not collide (until buffers overflow)
– higher intrinsic capacity than
10BaseT (and more expensive)
Prof . Anirudha sahoo, KReSIT, IIT Bombay MAC Layer 3.40
Fast Ethernet variants
• Fast Ethernet (IEEE 802.3u)
– same as 10BaseT, except that line
speed is 100 Mbps
– spans only 205 m
– big winner
– most current cards support both 10
and 100 Mbps cards (10/100 cards)
for about $80 ( Old data, probably
cheaper now)
Issues
• Stations' access to the network is
unfair: That is, if station i and station
j both want to transmit, and i < j,
then station i always first to transmit.
• low numbered stations have to wait
longer than high numbered stations
for the reservation to complete.
•ProfEfficiency: at low load, MAC
. Anirudha sahoo, KReSIT, IIT Bombay
theLayer
protocol 3.54
efficiency is low.
Limited Contention
Protocol
• None of full reservation and full
contention mechanisms are not suitable
for extreme condition of load.
• Reservation scheme is appropriate for
high load situation, contention for low
load situation
• A mix of reservation and contention may
be an adaptive and optimal approach
4 5 6 7
A B C D E F G H
(a) (b)
Concentrato
r (DAS)
•Prof . Anirudha
S=sahoo,G* e - 2G
KReSIT, IIT Bombay MAC Layer 3.89
ALOHA and Slotted ALOHA
Throughput versus Load
0.4
0.35
0.3 0.368
0.25
0.2
0.15
Ge-G
S 0.184
0.1
0.05
0
Ge-2G
0.01563
0.03125
0.0625
0.125
0.25
0.5
8
Peaks at G=.5 ---> max(Throughput) = 1/2e ~ 0.18
• ALOHA can achieve maximum
throughput of 18.4%
dS/dG = e-2G – 2Ge-2G = 0
Gmax = 1/2 Smax = 1/(2e) = 0.184
Peaks at G=1
max(Throughput) = 1/e ~ 0.36
0.01 persistent CSMA
S (throughput per packet time)
1.0
0.9 0.1persistent CSMA
0.8
Nonpersistent CSMA
0.7
0.6 0.5persistent
0.5 CSMA
0.4
Slotted
ALOHA
0.3 1persistent
Pure
0.2
CSMA
0.1 ALOHA
0
0 1 2 3 4 5 6 7 8 9
G (attempts per packet time)
– A and C cannot
A hear
B each
C other.
– A sends to B, C cannot receive A.
– C wants to send to B, C senses a
“free” medium (CS fails)
– Collision occurs at B.
– A cannot receive the collision (CD
fails).
– A is “hidden” for C.
Prof . Anirudha sahoo, KReSIT, IIT Bombay MAC Layer 3.96
Exposed Terminal Problem
A B
D
C
– A starts sending to B.
– C senses carrier, finds medium in
use and has to wait for A->B to
end.
– D is outside the range of A,
therefore waiting is not necessary.
Prof . Anirudha sahoo, KReSIT, IIT Bombay MAC Layer 3.97
– A and C are “exposed” terminals
CSMA: Distributed, Packet
mode scheme
• Carrier Sense and its variants:
– Use of carrier sensing capability to
know if someone else is using the
medium
– 1 persistent
• If medium busy, keep sensing
• If medium Idle send immediately
direct access if t
medium is free ≥ DIFS slot time
– station which has data to send starts
sensing the medium (Carrier Sense)
– if the medium is free for the duration of an
Inter-Frame Space (IFS), the station can
start sending (IFS depends on service
type)
– if the medium is busy, the station has to
wait for a free IFS plus an additional
random back-off time (multiple of slot-
time)
– if another station occupies the medium
during
Prof . Anirudha the back-off
sahoo, KReSIT, IIT Bombay time ofMAC
the station, the
Layer 3.102
ACK
Prof . Anirudha sahoo, KReSIT, IIT Bombay MAC Layer 3.105
802.11 –RTS/CTS
• If medium is free for DIFS, station can send RTS with
reservation parameter (reservation determines
amount of time the data packet needs the medium)
• acknowledgement via CTS after SIFS by receiver (if
ready to receive)
• sender can now send data at once,
acknowledgement via ACK
DIFS
• other stations
sender
RTS store medium
data reservations distributed
via RTS and SIFS
CTS SIFS SIFS
CTS ACK
receiver
B1 = 25 B1 = 5
wait data
data wait
B2 = 20 B2 = 15 B2 = 10