Slides 49/53

Slides 49/53

by Katerina Argyraki -
Number of replies: 0
Alice and Bob are communicating over TCP.

Folks, there was some discussion after class today about the correctness of slides 49 and 53 (same picture). I said there may have been a mistake, but the slides are actually correct.

Here's what happens:
  • When Alice receives Bob's ACK 500, she sets her window to 250 bytes. At that point she has already sent out 100 unacknowledged bytes (her SEQ 500), so she can send 150 more. She creates two segments: one with SEQ 600 (carries 100 bytes) and one with SEQ 700 (carries 50 bytes).
  • When Alice receives Bob's ACK 600, she sets her window to 240 bytes. At that point she has already sent out 150 unacknowledged bytes (her SEQ 600 and her SEQ 700), so she can send 140 more. She creates two segments: one with SEQ 750 (carries 100 bytes), and one with SEQ 850 (carries 40 bytes).
(The problem is that the way the picture is drawn, it appears as if Alice sends out SEQ 700 upon receiving ACK 600, but that's not the case. She sends both SEQ 600 and 700 upon receiving ACK 500, and she sends SEQ 750 and 850 upon receiving ACK 600.)