It is a method of reducing data frame collision on a shared channel. In the controlled access method, each station interacts and decides to send a data frame by a particular station approved by all other stations. It means that a single station cannot send the data frames unless all other stations are not approved. It has three types of controlled access:
- Reservation
- Polling
- Token Passing.
1. Reservation
In the reservation method, a station needs to make a reservation before sending data.
The timeline has two kinds of periods:
Reservation interval of fixed time length
Data transmission period of variable frames.
Reservation interval of fixed time length
Data transmission period of variable frames.
If there are M stations, the reservation interval is divided into M slots, and each station has one slot.
Suppose if station 1 has a frame to send, it transmits 1 bit during the slot 1. No other station is allowed to transmit during this slot.
In general, i th station may announce that it has a frame to send by inserting a 1 bit into i th slot. After all N slots have been checked, each station knows which stations wish to transmit.
The stations which have reserved their slots transfer their frames in that order.
After data transmission period, next reservation interval begins.
After data transmission period, next reservation interval begins.
Since everyone agrees on who goes next, there will never be any collisions.
The following figure shows a situation with five stations and a five-slot reservation frame. In the first interval, only stations 1, 3, and 4 have made reservations. In the second interval, only station 1 has made a reservation.
2. Polling
Polling process is similar to the roll-call performed in class. Just like the teacher, a controller sends a message to each node in turn.
Polling process is similar to the roll-call performed in class. Just like the teacher, a controller sends a message to each node in turn.
In this, one acts as a primary station(controller) and the others are secondary stations. All data exchanges must be made through the controller.
The message sent by the controller contains the address of the node being selected for granting access.
Although all nodes receive the message the addressed one responds to it and sends data if any. If there is no data, usually a “poll reject”(NAK) message is sent back.
Problems include high overhead of the polling messages and high dependence on the reliability of the controller.
3. Token Passing
In token passing scheme, the stations are connected logically to each other in form of ring and access to stations is governed by tokens.
In token passing scheme, the stations are connected logically to each other in form of ring and access to stations is governed by tokens.
A token is a special bit pattern or a small message, which circulate from one station to the next in some predefined order.
In Token ring, token is passed from one station to another adjacent station in the ring whereas incase of Token bus, each station uses the bus to send the token to the next station in some predefined order.
In both cases, token represents permission to send. If a station has a frame queued for transmission when it receives the token, it can send that frame before it passes the token to the next station. If it has no queued frame, it passes the token simply.
After sending a frame, each station must wait for all N stations (including itself) to send the token to their neighbours and the other N – 1 stations to send a frame, if they have one.
There exists problems like duplication of token or token is lost or insertion of new station, removal of a station, which need be tackled for correct and reliable operation of this scheme.
No comments:
Post a Comment