101 · Question #626
A client is transmitting a large amount of data to a server. During this process, the server sets the window size to zero. What is the likely cause of this issue?
The correct answer is A. The server is unable to accept more data. TCP flow control uses a receive window size of zero to signal that the server's receive buffer is full and the client must pause transmission.
Question
A client is transmitting a large amount of data to a server. During this process, the server sets the window size to zero. What is the likely cause of this issue?
Options
- AThe server is unable to accept more data
- BThe server resets the connection
- CThe client runs out of network buffers
- DThe server reaches its maximum segment size
How the community answered
(25 responses)- A84% (21)
- B8% (2)
- C4% (1)
- D4% (1)
Why each option
TCP flow control uses a receive window size of zero to signal that the server's receive buffer is full and the client must pause transmission.
In TCP, the receive window field in the ACK segment advertises how many bytes the receiver can currently buffer. When the server's receive buffer is full, it sets the window size to zero to implement flow control, forcing the client to stop sending data until a window update is received. This is a normal TCP mechanism to prevent buffer overflow at the receiving end.
A connection reset is signaled by the RST flag in a TCP segment, not by a window size of zero - a zero window pauses data flow without terminating the session.
The window size field is set by the receiver (server), not the sender (client) - a client buffer exhaustion would affect the client's own advertised window, not the server's.
Maximum segment size (MSS) governs the largest payload per TCP segment and is negotiated during the handshake; it is unrelated to the receive buffer capacity advertised by the window size field.
Concept tested: TCP flow control and receive window size
Source: https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/description-tcp-features
Topics
Community Discussion
No community discussion yet for this question.