45 TCP Congestion Window Size As A Function of Time
45 TCP Congestion Window Size As A Function of Time
Quiz Sheet #3
Suppose host A sends two TCP segments back to back to host B over a TCP connection. The first
segment has sequence number 90; the second has sequence number 110.
Solution:
The following plot shows the TCP congestion window size as a function of time.
40
35
30
25
20
15
10
5
0
0 5 10 15 20 25 30
transmission round
Assume that the TCP implementation supports fast retransmit / fast recovery. Please answer the
following questions:
Solution:
c) Segment loss is recognized by duplicate ACKs. If there was a timeout, the congestion window
size would have dropped to 1.
d) Segment loss is detected due to timeout, and hence the congestion window size is set to 1
e) The threshold is initially 32, since it is at this window size that slow start stops and congestion
avoidance begins. (Note that the threshold does not have to be precisely 32.)
f) The threshold is set to half the value of the congestion window when packet loss is detected.
When loss is detected during transmission round 16, the congestion windows size is 42. Hence
the threshold is 21 during the 18th transmission round.
g) The threshold is set to half the value of the congestion window when packet loss is detected.
When loss is detected during transmission round 24, the congestion windows size is 26. Hence
the threshold is 13 during the 24th transmission round.
h) During the 1st transmission round, packet 1 is sent; packet 2-3 are sent in the 2nd transmission
round; packets 4-7 are sent in the 3rd transmission round; packets 8-15 are sent in the 4th
transmission round; packets16-31 are sent in the 5th transmission round; packets 32-63 are
sent in the 6th transmission round; packets 64-96 are sent in the 7th transmission round.
Thus packet 70 is sent in the 7th transmission round.