Skip to content

GATE CS 2020 Q55 — Transport Layer: Flow Control, Congestion Control, UDP, TCP, Sockets

Explain with AI
Consider a TCP\textsf{TCP} connection between a client and a server with the following specifications; the round trip time is 66 ms, the size of the receiver advertised window is 5050 KB, slow-start threshold at the client is 3232 KB, and the maximum segment size is 22 KB. The connection is established at time t=0t=0. Assume that there are no timeouts and errors during transmission. Then the size of the congestion window (in KB\text{KB}) at time t+60t+60 ms after all acknowledgements are processed is _______
View worked solution

Answer: 44

Initially, at t=0t = 0, the TCP connection is established and the client starts with a congestion window (cwnd\text{cwnd}) of 1 MSS=2 KB1 \text{ MSS} = 2 \text{ KB}.

Since the slow-start threshold (ssthresh\text{ssthresh}) is 32 KB32 \text{ KB}, the TCP connection operates in the Slow-Start phase as long as cwnd<ssthresh\text{cwnd} < \text{ssthresh}. In this phase, cwnd\text{cwnd} doubles every round-trip time (RTT) of 66 ms:

  • At t=0t = 0 ms: cwnd=2 KB\text{cwnd} = 2 \text{ KB}
  • At t=6t = 6 ms: cwnd=4 KB\text{cwnd} = 4 \text{ KB}
  • At t=12t = 12 ms: cwnd=8 KB\text{cwnd} = 8 \text{ KB}
  • At t=18t = 18 ms: cwnd=16 KB\text{cwnd} = 16 \text{ KB}
  • At t=24t = 24 ms: cwnd=32 KB\text{cwnd} = 32 \text{ KB}

At t=24t = 24 ms, cwnd\text{cwnd} reaches ssthresh=32 KB\text{ssthresh} = 32 \text{ KB}. The TCP connection now enters the Congestion Avoidance phase, where cwnd\text{cwnd} increases linearly by 1 MSS=2 KB1 \text{ MSS} = 2 \text{ KB} per RTT:

  • At t=30t = 30 ms: cwnd=32+2=34 KB\text{cwnd} = 32 + 2 = 34 \text{ KB}
  • At t=36t = 36 ms: cwnd=34+2=36 KB\text{cwnd} = 34 + 2 = 36 \text{ KB}
  • At t=42t = 42 ms: cwnd=36+2=38 KB\text{cwnd} = 36 + 2 = 38 \text{ KB}
  • At t=48t = 48 ms: cwnd=38+2=40 KB\text{cwnd} = 38 + 2 = 40 \text{ KB}
  • At t=54t = 54 ms: cwnd=40+2=42 KB\text{cwnd} = 40 + 2 = 42 \text{ KB}
  • At t=60t = 60 ms: cwnd=42+2=44 KB\text{cwnd} = 42 + 2 = 44 \text{ KB}

Since the receiver advertised window (rwnd=50 KB\text{rwnd} = 50 \text{ KB}) is greater than 44 KB44 \text{ KB}, the congestion window size is not limited by rwnd\text{rwnd}. Thus, the size of the congestion window at t+60t + 60 ms is 44 KB44 \text{ KB}.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Transport Layer: Flow Control, Congestion Control, UDP, TCP, Sockets questions