Collision Free Protocols
Collision Free Protocols
Protocols
Collision – free Protocols
• In computer networks, when more than one station tries to transmit
simultaneously via a shared channel, the transmitted data is garbled. This
event is called collision.
• The Medium Access Control (MAC) layer of the OSI model is responsible
for handling collision of frames.
• Once each station announces itself, one of them gets the channel
based upon any agreed criteria.
• Generally, transmission is done in the order of the slot numbers.
Each station has complete knowledge whether every other station
wants to transmit or not, before transmission starts. So, all
possibilities of collisions are eliminated.
• This protocol works best under high loads. During high
loads,
• if all the stations want to transmit, the N bit contention
time is distributed over all the stations.
• So, the overhead is just 1 bit per frame. If d is the data
transmission time, the efficiency is .
• The stations 1011, 1100, 1001 and 1101 continue. They broadcast their next bit,
i.e. 0, 1, 0, 1. Stations 1011 and 1001 sees 1 bit in other stations, and so they give
up competing for the channel.
• The stations 1100 and 1101 continue. They broadcast their next bit, i.e. 0, 0. Since
both of them have same bit value, both of them broadcast their next bit.
• The stations 1100 and 1101 broadcast their least significant bit, i.e. 0 and 1. Since
station 1101 has 1 while the other 0, station 1101 gets the access to the channel.
• After station 1101 has completed frame transmission, or there is a time-out, the
next contention cycle starts.
The procedure is illustrated as follows −
Adaptive Tree Walk Protocol
• Adaptive Tree Walk Protocol is a technique for transmitting
data over shared channels that combines the advantages of
collision based protocols and collision free protocols.
• In adaptive tree walk protocol, the stations are partitioned
into groups in a hierarchical manner.
• The contention period is divided into discrete time slots,
and for each slot the contention rights of the stations are
limited.
• Under light loads, all the stations can participate for
contention each slot like ALOHA.
• However, under heavy loads, only a group can try for a
given slot.
Working Principle
• In adaptive tree walk protocol, the stations or nodes are arranged in the
form of a binary tree as shown in the diagram. Here, the internal nodes
(marked from 0 to 6) represent the groups while the leaf nodes (marked A
to H) are the stations contending for network access.
• Initially all nodes (A, B ……. G, H) are permitted to compete for the channel. If a node is
successful in acquiring the channel, it transmits its frame. In case of collision, the nodes are
divided into two groups −
• Nodes belonging to only one of them is permitted for competing. Say, for slot 1, all stations
under group 1 are allowed to contend. If one of the stations successfully acquires the channel,
then it transmits to completion. In the next slot, i.e. slot 2, all stations under group 2 can
contend.
• However, if there is a collision (for above step), then the stations are further divided into
groups as follows −
• In order to locate the contending stations, depth-first search algorithm is used. The same
principle of contention is applied, only for those groups that has some contending stations.
• The division continues if collisions occur, until each group contains only 1 node.
Token Passing Mechanism
• A token is a small message that circulates among the
stations of a computer network providing permission to
the stations for transmission.
• If a station has a frame to transmit when it receives a
token, it sends the frame and then passes the token to the
next station; otherwise it simply passes the token to the
next station.