Data Link Control
Data Link Control
UNIT 3
Prepared By: Dr. Krishan kumar, Professor,
LPU
LPU
DATA LINK LAYER : Data link Layer design issues, Elementary Datalink
transmission medium. Transmission of data packets is controlled by this layer. This layer is
responsible for sending the data over the network interface card.
Functions are –
Data Link Layer Design Issues
LPU
• Services provided to the network layer –
The data link layer act as a service interface to
the network layer.
• The principle service is transferring data from
network layer on sending machine to the network
layer on destination machine. This transfer also takes
place via DLL (Data link-layer).
• Frame synchronization–
•The data link layer needs to pack bits into frames, so that
each frame is distinguishable from another.
-Fixed-Size Framing
-Variable-Size Framing
•In fixed-length framing, the size of the frame
works as the delimiter. Hence there is no need
to set a boundary for the frame.
• In variable-length framing, it's difficult to
determine the start and end of a frame.
•Variable Size Framing---Character oriented
protocols and Bit oriented Protocols.
LPU
A frame in a character-oriented protocol
LPU
Byte stuffing is the
process of adding 1 extra
byte whenever there is a
flag or escape character in
the text.
LPU
Byte stuffing and unstuffing
LPU
A frame in a bit-oriented protocol
LPU
Bit stuffing is the process of
adding one extra 0 whenever five
consecutive 1s follow a 0 in the
data, so that the receiver does
not mistake
the pattern 0111110 for a flag.
LPU
Bit stuffing and unstuffing
LPU
W AND ERROR CONTROL
Flow Control
Error Control
LPU
• Flow control refers to a set of
procedures used to restrict the
amount of data that the sender
can send before waiting for
acknowledgment.
LPU
Error control in the data link
layer is based on automatic
repeat request, which is the
retransmission of data.
LPU
Flow Control
LPU
LPU
ISELESS CHANNELS
An ideal channel in which no frames are
lost, duplicated, or corrupted.
-Simplest Protocol
-Stop-and-Wait Protocol
LPU
Simplest Protocol
LPU
The design of the simplest protocol with no flow or
error control
LPU
Flow diagram for Simplest
LPU
Stop-and-Wait Protocol
LPU
Design of Stop-and-Wait Protocol
LPU
Flow diagram for Stop and Wait
LPU
OISY CHANNELS
LPU
In Stop-and-Wait ARQ, we use sequence
numbers to number the frames.
The sequence numbers can be
1,0,1,0,1…
LPU
In Stop-and-Wait ARQ, the
acknowledgment number is 0 if
sequence number is 1 and
acknowledgment number is 1 if
sequence number is 0
LPU
Design of the Stop-and-Wait ARQ Protocol
LPU
Flow diagram for Example
LPU
Disadvantage Stop-and-Wait ARQ Protocol
LPU
Questions/Answers
Thanks
LPU
Assume that, in a Stop-and-Wait ARQ system, the
bandwidth of the line is 1 Mbps, and 1 bit takes 20 ms to
make a round trip. What is the bandwidth-delay product?
If the system data frames are 1000 bits in length, what is
the utilization percentage of the link?
Solution
The bandwidth-delay product is
LPU
Pipelining
LPU
Go-Back-N Protocol
LPU
Note
LPU
Sliding Window
LPU
Send window for Go-Back-N ARQ
LPU
Note
LPU
Note
LPU
Receive window for Go-Back-N ARQ
LPU
Note
LPU
Design of Go-Back-N ARQ
LPU
Note
LPU
Flow diagram
LPU
Flow diagram
LPU
Note
LPU
Send window for Selective Repeat ARQ
LPU
Receive window for Selective Repeat ARQ
LPU
Design of Selective Repeat ARQ
LPU
Note
LPU
Delivery of data in Selective Repeat ARQ
LPU
Flow diagram
LPU
Design of piggybacking in Go-Back-N ARQ
LPU
Questions/Answers
LPU
THANKS
LPU