Lecture 3-2
Lecture 3-2
CS-418
Lecture 3 – 2
Data Link Layer – Flow Control
12
Spring Semester 2020
Spring Semester 2020 13
Stop and Wait ARQ
• The main shortcoming of the stop and wait algorithm is that it allows the sender to have
only one outstanding frame on the link at a time, and this may be far below the link’s
capacity.
The significance of the
• Consider, for example, a 1.5 Mbps link with a 45 ms round trip time. delay × bandwidth
• This link has a: product is that it
represents the amount
𝑑𝑒𝑙𝑎𝑦 × 𝑏𝑎𝑛𝑑𝑤𝑖𝑑𝑡ℎ = 1.5 𝑀𝑏𝑝𝑠 ∗ 45𝑚𝑠 = 8 𝐾𝐵. of data that could be in
transit.
• Since the sender can send only one frame per RTT, and assuming a frame size of 1 KB,
about one eighth of the link’s capacity is used. To use the link fully, then, we’d like the
sender to be able to transmit up to eight frames before having to wait for an
acknowledgment.