Lesson 3 of 4 · Bounded windows and finite batches
Keep a bounded window in flight
18 minute lesson · 3 checks along the way
Your goal for this lessonCalculate sender start times and finite-batch completion under a fixed acknowledgment window; distinguish that result from long-run capacity.
In this lesson 3 sections · 3 checks
Read & understand
Allow several packets to await feedback
Keep the packet size, link rate and feedback delay unchanged, but allow three outstanding packets. The serializer sends packets one, two and three starting at 0, 0.1 and 0.2 second. It becomes free at 0.3, but all three window slots remain occupied. The first acknowledgment arrives at 0.6 and frees one slot. Packets four, five and six can then start at 0.6, 0.7 and 0.8.
The complete ten-packet start sequence is 0, 0.1, 0.2, 0.6, 0.7, 0.8, 1.2, 1.3, 1.4 and 1.8 seconds. Packet ten finishes sending at 1.9 and is acknowledged at 2.4. Increasing the window has reduced batch confirmation time from 6.0 to 2.4 seconds without changing the physical sending rate. The improvement comes from using time that the one-slot sender spent waiting.
Check 1 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Calculate the next start from two constraints
Number packets from one. Let s_i be the start of packet i, f_i = s_i + tau its finish and a_i = f_i + d its acknowledgment time. For a window W, each new start must wait for the preceding finish. Once i exceeds W, it must also wait for a_(i-W), the acknowledgment that releases the needed slot. Thus s_i is the later of those two times; before the window fills, only the serializer constrains it.
For packet four with W = 3, the preceding finish is 0.3 and the required acknowledgment is 0.6, so the later time is 0.6. For packet five, those constraints are 0.7 and 0.7, allowing an immediate start at that instant. We process acknowledgments that arrive at a boundary before deciding whether another packet can start there. This explicit rule makes simultaneous events unambiguous.
Check 2 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Distinguish a finite batch from a sustained stream
With W = 3, the repeating pattern sends three 8,000-bit packets every 0.6 second, giving a long-run payload rate of 40,000 bits per second. But the ten-packet batch confirms only 80,000 bits in 2.4 seconds, about 33,333 bits per second. A finite batch includes its particular last group and the final feedback wait. Dividing by the last transmission time would measure something different.
With six slots, the first acknowledgment arrives at 0.6 just as the serializer is ready to start packet seven. Sending can continue without gaps. Ten packets finish sending at 1.0 second and all are acknowledged by 1.5. The batch confirmation rate is about 53,333 bits per second, although a sustained stream reaches the full 80,000-bit rate. Eight slots do not improve this ten-packet result: the serializer was already continuously occupied.
Fill the gaps with a larger window
Original fictional model. Identically scaled bars show only transmission intervals for the first six packets, not their ACK times. Numbered blue segments identify packets; gray is idle serialization capacity.
Open full-size diagram in a new tab: Fill the gaps with a larger windowRead diagram data as a table
| Window | First six start times (seconds) | Ten-packet final ACK (seconds) |
|---|---|---|
| 3 | 0, 0.1, 0.2, 0.6, 0.7, 0.8 | 2.4 |
| 6 | 0, 0.1, 0.2, 0.3, 0.4, 0.5 | 1.5 |
| 8 | 0, 0.1, 0.2, 0.3, 0.4, 0.5 | 1.5 |
Original fictional model. Identically scaled bars show only transmission intervals for the first six packets, not their ACK times. Numbered blue segments identify packets; gray is idle serialization capacity.
Check 3 of 3
10 pointsUse the reading above. You can try again without losing points.
Put it together
Your lesson progress
Each check connects to a part of the story. Complete all 3 to earn your 25-point lesson bonus.
Explore further · Optional
Go to the source
Explore the evidence behind this lesson. These optional readings and videos open in a new tab.