TCP Receive and Congestion Windows
- 54Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the difference between a TCP receive window and a congestion window?
54 questions
- 1
What is the difference between a TCP receive window and a congestion window?
Model answer
The receive window communicates how much data the receiver can accept, while the congestion window limits how much data the sender can put onto the network before acknowledgments arrive.
Explanation
The receive window is advertised in TCP packets; the congestion window is maintained by the sender and is not advertised.
- 2
What does a sender communicate when it advertises a TCP receive window?
Model answer
It tells the other endpoint how much data it can currently receive and buffer.
Explanation
The advertised window represents available receiving capacity, not the amount the sender itself can transmit.
- 3
How can an application’s behavior affect the receive window?
Model answer
If the application does not remove data from the TCP receive buffer quickly enough, the buffer fills and the advertised receive window shrinks.
Explanation
TCP can accept data only as the receiver’s buffer has space for it.
- 4
Name two factors, other than the receive application, that can limit the rate of a TCP transfer.
Model answer
Network limitations such as bandwidth, latency, packet loss, or congestion can limit a transfer; the sender can also limit its sending rate.
Explanation
A TCP transfer is affected by constraints along the network path as well as by the endpoints.
- 5
Why can the advertised receive window change during a TCP transfer?
Model answer
It changes as data fills the receiver’s buffer and as the application removes data and frees buffer space.
Explanation
The receive window reflects the receiver’s currently available capacity.
- 6
How can a packet capture sometimes suggest that window scaling is being used even when the handshake is missing?
Model answer
A comparatively small advertised window value may suggest that the value has been scaled, although the capture may not reveal the scale factor.
Explanation
Without the handshake, the window-scale option may be unavailable, so the factor cannot necessarily be determined.
- 7
Does seeing an advertised window of 65,535 bytes prove that window scaling is not being used?
Model answer
No. A value of 65,535 bytes could be scaled or unscaled; the value alone does not establish which.
Explanation
The handshake is needed to determine whether window scaling was negotiated.
- 8
What does a TCP zero window tell the sender?
Model answer
The receiver cannot accept more data because its receive buffer is full, so the sender must stop sending data until space becomes available.
Explanation
The receiver can resume the transfer after its application frees buffer space.
- 9
Which limits the amount of unacknowledged data a sender can transmit: the receive window, the congestion window, or both?
Model answer
Both limits apply; the smaller of the receive window and congestion window governs how much data can be in flight.
Explanation
A large value for one window cannot override a smaller value for the other.
- 10
Why might increasing a receiver’s window size help temporarily without fixing the underlying cause of a slow transfer?
Model answer
A larger window gives the receiver more buffering capacity, but if the application still removes data too slowly, the buffer will eventually fill again.
Explanation
The lasting fix may require improving how quickly the receiving application processes data.
- 11
In the database-backup example, why was the receive window of the data sender not the relevant receive limit?
Model answer
That machine was sending the backup data, not receiving it. The receive window advertised by the other machine limited how much backup data could be accepted.
Explanation
A receive window applies to the endpoint that advertises it.
- 12
Why did the backup’s same-switch, gigabit-connected setup not prove that the network was causing the slow transfer?
Model answer
The trace showed pauses associated with the receiving endpoint’s window filling, rather than evidence that the link’s capacity was the limiting factor.
Explanation
The receiver’s application was not clearing its TCP buffer quickly enough.
- 13
Why can repeated delays of about 19 milliseconds matter even if each individual delay seems small?
Model answer
When a delay occurs many times during a transfer, the pauses accumulate and can substantially increase the total transfer time.
Explanation
The frequency of a delay can matter more than its size in a single instance.
- 14
In the backup trace, what did a receive-window value of 65,535 bytes indicate?
Model answer
The receiver was advertising that it could accept up to 65,535 bytes at that point.
Explanation
As incoming data filled its buffer, the receiver’s advertised window decreased.
- 15
What did the receive window dropping to about 2,299 bytes indicate in the backup trace?
Model answer
The receiver’s buffer was nearly full and could accept only about 2,299 more bytes.
Explanation
Because that remaining space was less than a full 1,460-byte segment only after further filling, the sender soon had to pause for available capacity.
- 16
Why did the sender send one final full-size segment after the receiver’s window had become small?
Model answer
The sender had already segmented the data into full-size packets and sent one more packet that still fit within the advertised space; it then stopped.
Explanation
The sender did not send another full-size segment when the remaining receive-window space was insufficient.
- 17
What caused the approximately 20-millisecond pause in the backup trace?
Model answer
The receiver’s buffer had filled enough to prevent another full-size segment from being accepted, so the sender waited for the receiver to free space and advertise a larger window.
Explanation
The pause was associated with receiver-side flow control, not simply with the physical link speed.
- 18
What did the receiver’s renewed advertisement of a 65,535-byte window show in the backup example?
Model answer
The receiver had freed buffer space, allowing the sender to resume transmitting data.
Explanation
The receiving application had removed data from the buffer, reopening the receive window.
- 19
Why would upgrading the backup links from one gigabit to ten gigabits not address the demonstrated bottleneck?
Model answer
The transfer was being held up by the receiving application’s failure to clear its TCP buffer quickly enough, not by the link’s bandwidth.
Explanation
A faster link would not make the application process incoming data faster.
- 20
What was the likely root cause of the backup pauses, and what kind of remedy was considered?
Model answer
The receiving application was not draining the TCP buffer quickly enough. Investigating application or TCP-stack adjustments, or using a different backup method, could address the issue.
Explanation
Increasing the window could postpone buffer filling but would not necessarily remove the underlying application bottleneck.
- 21
What does the TCP congestion window represent, and where is it maintained?
Model answer
It represents how much data the sender can transmit before receiving acknowledgments, and it is maintained by the sender.
Explanation
Unlike the receive window, the congestion window is not advertised in packet headers.
- 22
Why does a TCP sender avoid transmitting all available data at the maximum interface rate immediately?
Model answer
The sender may not know the capacity of the network path, and transmitting too much too quickly could cause congestion or packet loss.
Explanation
The sender probes the path to find a rate it can sustain.
- 23
How is the congestion window commonly expressed in relation to the maximum segment size?
Model answer
It is expressed as a multiple of the maximum segment size.
Explanation
This lets the sender’s permitted amount of outstanding data be described in segments.
- 24
What is the purpose of TCP slow start?
Model answer
Slow start begins with a relatively small congestion window and increases the amount of data sent as acknowledgments arrive, probing the network’s capacity.
Explanation
The sender does not begin by transmitting an arbitrarily large burst.
- 25
How does the congestion window typically grow during slow start?
Model answer
It grows rapidly, approximately doubling as acknowledgments for transmitted data arrive, until the slow-start threshold is reached.
Explanation
The specific initial window size and behavior depend on the TCP implementation and algorithm.
- 26
What generally happens to congestion-window growth after the slow-start threshold is reached?
Model answer
TCP shifts to congestion avoidance, where the congestion window grows more gradually.
Explanation
This moderates the rate of increase after the initial rapid probing phase.
- 27
How can retransmissions affect a sender’s congestion window?
Model answer
Retransmissions can signal that the sender has put too much data into the network, prompting it to reduce its congestion window.
Explanation
Reducing the window is intended to lessen congestion and avoid further loss.
- 28
Why can a sender’s observed transmission rate remain steady even when the receive window has room?
Model answer
The sender may be limiting itself through its congestion window, or the sending application may not be providing data to TCP quickly enough.
Explanation
An available receive window does not guarantee that the sender will have more data to transmit.
- 29
Why is the congestion window described as a value that must be inferred from a trace?
Model answer
The sender does not advertise it, and it changes as TCP responds to acknowledgments, network conditions, and possible retransmissions.
Explanation
A packet capture can show the sender’s behavior, from which the congestion window may be inferred.
- 30
In a TCP sequence-time graph, what do the horizontal and vertical axes represent?
Model answer
The horizontal axis represents time, and the vertical axis represents TCP sequence number.
Explanation
Because sequence numbers identify bytes, the graph shows how transmitted data progresses over time.
- 31
What does a steep, relatively straight upward line in a TCP sequence-time graph suggest?
Model answer
Data is being transmitted efficiently with few pauses.
Explanation
A steeper rise means more sequence space is covered over a given period of time.
- 32
What does a step or flat section in a TCP sequence-time graph indicate?
Model answer
Data transmission paused, so one endpoint or a network condition is holding up progress.
Explanation
The trace must be examined to determine the cause of the pause.
- 33
What does the acknowledgment line in a TCP trace graph represent?
Model answer
It shows how much transmitted data the receiver has acknowledged.
Explanation
If acknowledgments keep pace with the transmitted data, the receiver is confirming progress.
- 34
What does the receive-window line in a TCP trace graph represent?
Model answer
It shows the limit set by the receiver’s advertised window.
Explanation
The space between incoming data and this limit indicates how much receiving capacity remains.
- 35
What does it mean when incoming data reaches the receive-window line in a TCP trace graph?
Model answer
The receiver’s available window has been used up, so the sender may need to pause until the window opens.
Explanation
A pause followed by renewed transmission when the line rises is evidence of receive-window limitation.
- 36
Why is a per-stream timing measurement more useful than sorting all packets by time since the previous captured frame?
Model answer
A per-stream measurement compares packets within the same TCP conversation, while a general frame-to-frame measurement may compare unrelated conversations.
Explanation
Captures often contain many simultaneous TCP connections, so global timing can obscure delays within an individual stream.
- 37
What does a TCP stream’s “time since previous frame” measurement show?
Model answer
It shows the time since the preceding packet in that TCP stream, providing context for delays within the conversation.
Explanation
Sorting on this measurement can help locate pauses without first filtering each conversation individually.
- 38
How can Wireshark’s TCP conversation timestamps be enabled if they are not shown in a packet’s TCP details?
Model answer
Open the TCP protocol preferences and enable calculation of conversation timestamps.
Explanation
The resulting timestamp field can be used to create a column showing time since the previous frame in the TCP stream.
- 39
Why should unusually long TCP timing gaps at common timer boundaries be treated cautiously?
Model answer
They may be caused by resets, keepalives, timeouts, or other timer behavior rather than by a delay in the application’s response.
Explanation
The packet type and surrounding conversation help determine whether a gap is relevant.
- 40
How can a long gap before a client sends another request differ from a long gap before a server responds?
Model answer
A gap before the client’s next request may reflect client think time, while a gap before a server response may indicate server-side processing delay.
Explanation
The direction and type of the packet following the gap are important when interpreting it.
- 41
Why should an analyst isolate a TCP conversation after spotting a suspicious timing gap?
Model answer
Filtering the conversation makes it possible to inspect the request and response sequence around the gap without unrelated packets obscuring it.
Explanation
This helps determine which exchange experienced the delay and whether it recurs.
- 42
If a server response follows a long gap, what does that timing suggest about the delay?
Model answer
It suggests that the delay occurred before the server produced the response, potentially in server-side application processing.
Explanation
The request-response context can help distinguish this from a client waiting before sending its request.
- 43
What symptom occurred when the client tried to retrieve a new file from the LDAP server?
Model answer
The file transfer paused for about 20 to 30 seconds before beginning, although the file could eventually be transferred.
Explanation
The delay occurred repeatedly when the client attempted to access a new file.
- 44
What did the server’s acknowledgment and sequence numbers show in the client-side capture of the LDAP transfer?
Model answer
The server acknowledged the client’s request but began its response at sequence number 1,461, indicating that earlier response data was missing from the capture.
Explanation
The capture contained a later, smaller server segment even though the preceding full-size segment had not arrived.
- 45
How did the client’s selective acknowledgment identify missing data in the LDAP trace?
Model answer
It indicated that the client had received a later block beginning at sequence number 1,461 while still missing the preceding data.
Explanation
Selective acknowledgment reports received blocks beyond a gap, allowing the missing range to be identified.
- 46
Why did the server use a retransmission timeout instead of fast retransmission for the missing segment?
Model answer
The server did not receive the three duplicate acknowledgments needed to trigger fast retransmission.
Explanation
Because little data had been sent, there were not enough subsequent acknowledgments to produce that trigger.
- 47
How did the server’s retransmission timeout change during the early packet loss in the LDAP example?
Model answer
It increased from about three seconds to about six seconds and then about twelve seconds when retransmissions received no response.
Explanation
The increasing wait time contributed to the long delay before the transfer progressed.
- 48
Why could packet loss at the start of a TCP conversation produce a particularly long delay?
Model answer
The sender may have to wait for the relatively long initial retransmission timeout, before the transfer has progressed enough for faster recovery behavior.
Explanation
In the example, the server had not yet sent enough data to receive the duplicate acknowledgments required for fast retransmission.
- 49
What did the server’s use of 536-byte segments after larger segments failed indicate?
Model answer
The server was trying the minimum assumed MSS when no MSS had been exchanged, and the smaller segments were successfully acknowledged.
Explanation
In the example, successful delivery of the smaller segments pointed to a problem affecting the larger packets.
- 50
What is the assumed minimum MSS described in the example when no MSS is exchanged?
Model answer
The assumed minimum MSS is 536 bytes.
Explanation
The server used segments of this size as a last attempt after its larger segments were not getting through.
- 51
Why can two endpoints appear to have different effective MSS values in a packet trace?
Model answer
A device between them can alter the MSS in a TCP handshake packet, so an endpoint may receive an MSS value different from the one originally sent.
Explanation
In the example, an intermediate router reduced the client’s advertised MSS.
- 52
Why did the 1,460-byte MSS cause trouble in the LDAP example?
Model answer
A 1,460-byte payload plus the TCP and IP headers reached the 1,500-byte MTU, leaving no room for additional encapsulation or other middlebox processing.
Explanation
The intermediate network equipment needed extra room, so the larger packets did not pass successfully.
- 53
What change resolved the MSS-related problem in the LDAP example?
Model answer
The client-side outbound router was configured to reduce the TCP MSS to 1,432 bytes, allowing packets to pass through the intermediate path.
Explanation
With the smaller MSS, the endpoints sent data in packets that left room for the path’s additional processing.
- 54
What can an IP time-to-live value of 128 in the client’s SYN suggest about the capture point?
Model answer
It suggests the SYN was captured before it had been routed and had its TTL decremented.
Explanation
The example used the server’s lower received TTL to infer that the server was several hops away.

Ask anything
We've read this whole study set, so questions about it get the best answers.