Flow Control
Flow Control
&
Error Control
Data Link Layer
The data link layer transforms the physical layer, a raw transmission facility, to a
Line Discipline is a functionality of the Data link layer that provides the
coordination among the link systems. It determines which device can send, and
when it can send the data.
•ENQ/ACK
•Poll/select
•ENQ/ACK
ENQ/ACK stands for
Enquiry/Acknowledgement
is used when there is no
wrong receiver available on
the link and having a
dedicated path between the
two devices so that the
device capable of receiving
the transmission is the
intended one
Poll/Select
The Poll/Select method
of line discipline works
with those topologies
where one device is
designated as a primary
station, and other
devices are secondary
stations.
Select
The select mode is used when the primary device has something to send.
When the primary device wants to send some data, then it alerts the secondary device
for the upcoming transmission by transmitting a Select (SEL) frame, one field of the
frame includes the address of the intended secondary device.
When the secondary device receives the SEL frame, it sends an acknowledgement that
indicates the secondary ready status.
If the secondary device is ready to accept the data, then the primary device sends two or
more data frames to the intended secondary device. Once the data has been transmitted,
the secondary sends an acknowledgement specifies that the data has been received.
Poll
• The Poll mode is used when the primary device wants to receive some data
from the secondary device.
When a primary device wants to receive the data, then it asks each device
whether it has anything to send.
Firstly, the primary asks (poll) the first secondary device, if it responds with the
NACK (Negative Acknowledgement) means that it has nothing to send. Now, it
approaches the second secondary device, it responds with the ACK means that
it has the data to send. The secondary device can send more than one frame one
after another or sometimes it may be required to send ACK before sending each
one, depending on the type of the protocol being used
Flow Control
•It is a set of procedures that tells the sender how much data it
can transmit before the data overwhelms the receiver.
Note
(continued)
(continued)
Algorithm 11.5 Sender-site algorithm for Stop-and-Wait ARQ
11.29
Algorithm 11.6 Receiver-site algorithm for Stop-and-Wait ARQ Protocol
11.30