Lecture 5 - Data Link Control
Lecture 5 - Data Link Control
Lecture 5
Data Link Control &
Protocols
3rd Grade
1
Data Link Control & Protocols
2.3
NOISELESS CHANNELS
2.4
Simplest Protocol
Example
• The sender sends a sequence of frames without
even thinking about the receiver.
• To send three frames in this example, three events
occur at the sender site and three events at the
receiver site.
2.5
Note:
2.6
Stop-and-Wait Protocol
Example
• If two frames are supposed to be sent by Stop-
and-Wait Protocol
• The sender sends one frame and waits for
feedback from the receiver.
• When the ACK arrives, the sender sends the next
frame.
2.7
NOISY CHANNELS
• In real life the noiseless channels are
nonexistent.
• We discuss here one example of these
protocols in this section that use error
control:
2.8
Stop-and-Wait Automatic Repeat Request
Example
Draw a flowchart for the Stop-and-Wait ARQ with
the following conditions:
1. Frame 0 is sent and acknowledged.
2. Frame 1 is lost and resent after the time-out.
3. The resent frame 1 is acknowledged and the
timer stops.
4. Frame 0 is sent and acknowledged, but the
acknowledgment is lost.
2.9
Solution:
2.10
Note
2.11
Example
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.
2.12
Solution:
The system can send 20,000 bits during the time it takes
for the data to go from the sender to the receiver and then
back again.
2.13
Example
For the pervious example, calculate the utilization
percentage of the link if the system can send up to
15 frames before stopping and worrying about the
acknowledgments?
Solution:
2.14