Professional Documents
Culture Documents
PROTOCOLS
THE MEDIUM ACCESS CONTROL (MAC) SUBLAYER
>> Simply lets systems in >> Protocols in which >> Resolves the >> As we've
same LAN to transmit system listens for a contention for the already achieved
whenever they have data carrier channel without any collision free channel,
to be sent. There will be (i.e.,a transmission) collisions at all, not then why again going
collisions, of course, and from other systems in even during the for limited contention
the colliding frames will
same LAN and act contention period. protocols ??
be damaged, hence
retranmsmitted. accordingly are called
>>Systems which
Carrier Sense Multiple
Access protocols.
share a common
channel in a way that
>>Contains
can lead to conflicts alternating idle,
are known as transmission and
contention (conflict) contention periods.
systems.
PURE ALOHA :
A
Transfers data
whenever available
B
C
D
E
F
SLOTTED ALOHA:
A
Allows only one frame
from each sender at
B
one time slot
C
D
E
F
A wants to send frame to server and listens for carrier, called carrier sensing
SInce there is no data found, A starts transmitting data to server(Transmission Period)
B
CSMA/CD
Now Server wants to reply to A, Hence listens for
data
B also has data to send and listens
B
CSMA/CD
Now, Each waits a random amount of time before listening to carrier and transmitting again
This is called IDLE period
B
CSMA/CD
COLLISION-FREE-PROTOCOL(BIT-MAP) CONTENTION SLOTS
A 10
B 1
C 12
D 3
E 14
F 5
G 16
H 7
0 1 2 3 4 5 6 7
TIME SLOTS
Why Limited Contention Protocols ??
Let's analyse algorithm devised by the U.S. Army for testing soldiers for syphilis
during World War II
Army took and mixed blood samples from N soldiers
This mixed sample was then tested for antibodies
If antibodies If none were found,
were present ?? all the soldiers in
the group were
declared healthy
If antibodies were present ??
Two new mixed samples were prepared,
one from 1st half of the soldiers and
second one from rest of the soldiers
Mixed sampes were tested for antibodies
Same process gets repeated till effected
soldier was identified
THE ADAPTIVE TREE WALK PROTOCOL
In a similar way LCP's do grouping based on contention available at given time
Let A,B,C,D,E,F,G,H be 8 stations
In contention slot 0 all stations are
0 permitted to try to acquire the channel
1 If one of them does so, fine
But if there is a collision, then during
2 slot 1 only those stations falling under
node 2 in the tree may compete
3
If one of them acquires the channel, slot
4 2 is reserved for those stations under
node 3
5 If again two or more stations under node
2 want to transmit, there will be a
6 collision during slot 1, in which case it is
node 4’s turn during slot 2
7
SLOT 0 Contender Node 1
A B C D E F G H SLOT 0 Collision
SLOT 2
Contender Node 4 Node 5 SLOT 3 Contender
SLOT 2 Success A B C D SLOT 3 Success
SLOT 3 Reserved for
Node 5