Data Link Control Layer (DLC)
Data Link Control Layer (DLC)
Associate Professor
Department of Computer Science and Engineering
Session Objectives
Flow control
Protocols for flow control
DLC Services
• The data link control (DLC) deals with procedures for communication between two
adjacent nodes no matter whether the link is dedicated or broadcast.
• Data link control functions include framing, flow and error control.
• Our postal system practices a type of framing. The simple act of inserting a letter into an
envelope separates one piece of information from another; the envelope serves as the
delimiter.
• Framing in the data-link layer separates a message from one source to a destination by adding
a sender address and a destination address. The destination address defines where the
packet is to go; the sender address helps the recipient acknowledge the receipt.
Flow and Error Control
One of the responsibilities of the data-link control sublayer is flow and error control at
the data-link layer.
Traditionally four protocols have been defined for the data-link layer to deal with flow
and error control: Simple, Stop-and-Wait, Go-Back-N, and Selective-Repeat.
Simple Protocol
• Simple protocol has neither flow nor error control.
• It assumes that the receiver can immediately handle any frame it receives. In other words, the
receiver can never be overwhelmed with incoming frames.
Example(Shown Below): The sender sends frames one after another without even thinking
about the receiver.
Stop and Wait Protocol
• The sender sends one frame at a time and waits for an acknowledgment before sending the
next one.
• To detect corrupted frames, it need to add a CRC to each data frame
Example (Shown Below): In the Stop-and-Wait protocol. Packet 0 is sent and acknowledged.
Packet 1 is lost and resent after the time-out. The resent packet 1 is acknowledged and the
timer stops. Packet 0 is sent and acknowledged, but the acknowledgment is lost. The sender
has no idea if the packet or the acknowledgment is lost, so after the time-out, it resends packet
0, which is acknowledged.
Go – Back -N Protocol
• To improve the efficiency of transmission (to fill the pipe), multiple packets must be in
transition while the sender is waiting for acknowledgment.
• In other words, we need to let more than one packet be outstanding to keep the channel busy
while the sender is waiting for acknowledgment.
Send window for Go-Back-N
Flow Control
Algorithm for flow control