02 Flow Control
02 Flow Control
Control
Unit -2
Flow Control and Error Control
Flow Control
Error Control
Computer Networks 3
Flow Control and Error Control
Protocols
ii. 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. However, the system sends only 1000 bits.
We can say that the link utilization is only 1000/20,000, or 5 percent. For this reason,
for a link with a high bandwidth or long delay, the use of Stop-and-Wait ARQ wastes
the capacity of the link.
Computer Networks 29/04/2025 21
Flow Control and Error Control
Example 3: Stop-and-Wait ARQ
Solution
The bandwidth-delay product is still 20,000 bits. The system can send
up to 15 frames or 15,000 bits during a round trip. This means the
utilization is 15,000/20,000, or 75 percent. Of course, if there are
damaged frames, the utilization percentage is much less because
frames have to be resent.
Computer Networks 29/04/2025 22
Flow Control and Error Control
2. Go-Back-N ARQ
Note:
ii. Flow diagram 3 shows what happens when a frame is lost. Frames
0, 1, 2, and 3 are sent. However, frame 1 is lost. The receiver
receives frames 2 and 3, but they are discarded because they are
received out of order. The sender receives no acknowledgment
about frames 1, 2, or 3. Its timer finally expires. The sender sends
all outstanding frames (1, 2, and 3) because it does not know what
is wrong. Note that the resending of frames 1, 2, and 3 is the
response to one single event. When the sender is responding to
this event, it cannot accept the triggering of other events. This
means that when ACK 2 arrives, the sender is still busy with
sending frame 3.
Computer Networks 29/04/2025 36
Flow Control and Error Control
Note:
iv. The next point is about the ACKs. Notice that only
two ACKs are sent here. The first one
acknowledges only the first frame; the second
one acknowledges three frames. In Selective
Repeat, ACKs are sent when data are delivered to
the network layer. If the data belonging to n
frames are delivered in one shot, only one ACK is
sent for all of them.