TCP Receive and Congestion Windows
- 58Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What are the two TCP windows discussed, and which one is advertised in TCP packets?
The receive window and the congestion window. The receive window is advertised; the congestion window is not.
Or swipe the card
58 cards
What are the two TCP windows discussed, and which one is advertised in TCP packets?
The receive window and the congestion window. The receive window is advertised; the congestion window is not.
What does an advertised TCP receive window tell the sender?
How much data the receiver can accept at that time without overflowing its receive buffer.
In the bucket analogy, what does the receive window represent?
The capacity of the receiver's bucket: how much data can be received before it fills.
What can limit the receiver's ability to accept TCP data besides network capacity?
The receiver's resources and how quickly its application reads data from the TCP buffer.
What network conditions can limit TCP data transfer between endpoints?
Bandwidth, latency, packet loss, congestion, errors, discarded packets, and overwhelmed buffers.
What does window scaling do to the advertised receive window?
It applies a multiplication factor so the receive window can represent a larger capacity.
If a packet capture misses the TCP handshake, how might window scaling be suspected from later window values?
A small-looking advertised window may be a scaled value, but the scale factor cannot be determined from that value alone.
Which of the receive window and congestion window governs how much data can be sent?
The smaller of the two.
What does the receive window indicate in a TCP packet trace?
The receiver's current advertised capacity for additional data.
In the database-backup example, why did a gigabit link not guarantee a fast transfer?
The receiver's application was not clearing its TCP receive buffer quickly enough, repeatedly limiting the sender.
What did a receive window of 65,535 mean in the example trace?
The receiver was advertising room for up to 65,535 bytes of data.
Why did the advertised receive window decrease during the backup transfer?
Incoming data was occupying the receiver's buffer faster than the application was freeing space.
What did a receive window smaller than one maximum-sized segment cause in the example?
The sender paused until the receiver freed enough buffer space.
What happened when the receiver's application cleared the receive buffer in the example?
The advertised receive window reopened, and the sender resumed sending data.
What is a TCP zero window?
An advertised receive window of zero, indicating that the receiver cannot accept more data for now.
Why might a receiver advertise a small but nonzero window rather than a zero window?
Some buffer space remains, but there may not be enough room for another full-sized segment.
Why can a small delay matter even if it occurs only once in a while?
Repeated small delays can accumulate and substantially slow a long transfer.
What did repeated pauses that coincided with a filling receive window indicate?
A receiver-side flow-control bottleneck, rather than a need for more network bandwidth.
Would enlarging the receiver's window necessarily fix a slow application that is not draining data?
No. A larger buffer may postpone the pause, but it can fill again if the application remains slow.
In the backup case, what was the suggested underlying fix for the receive-window bottleneck?
Investigate why the receiver-side application was not clearing the TCP buffer quickly enough.
What does Wireshark's TCP time-sequence graph plot on its axes?
Time on the horizontal axis and TCP sequence number on the vertical axis.
What does a steep, steadily rising line in a TCP time-sequence graph indicate?
Data is progressing quickly and continuously, with few pauses.
What do step-like pauses in a TCP time-sequence graph suggest?
Transmission is pausing; the cause may be on either endpoint or elsewhere in the connection.
In the graph described, what did the brown line beneath the data points represent?
The acknowledgments: how much data the receiver had acknowledged.
In the graph described, what did the green line represent?
The receiver's receive-window boundary.
What graph pattern indicates that a receive window is causing transmission pauses?
The receive-window line stops advancing, incoming data reaches it, and transmission pauses until the line moves again.
What does the TCP congestion window limit?
The amount of data the sender can transmit before receiving acknowledgments.
Why is the congestion window not directly visible as an advertised value in a packet?
It is maintained by the sender and is not advertised to the receiver.
Why doesn't a TCP sender immediately transmit at its full interface speed?
The network path may not be able to carry that rate, so sending too much at once could cause congestion or packet loss.
What is the relationship between the congestion window and maximum segment size?
The congestion window is expressed as a multiple of the maximum segment size.
What is TCP slow start intended to do?
Gradually increase the amount of data sent to discover how much the network can handle.
How does the congestion window typically grow during slow start, as described?
It approximately doubles the number of maximum-sized segments sent per round trip until reaching a slow-start threshold.
What happens when the sender reaches the slow-start threshold?
It stops increasing the sending allowance exponentially and increases it more gradually.
What can repeated, similar-sized steps in a TCP sequence graph suggest about the sender?
The sender may have reached an internal sending threshold and be limiting its own rate.
What other sender-side condition, besides congestion control, can limit how much data is transmitted?
The application may not be providing data to TCP quickly enough.
How can packet loss or retransmissions affect the sender's congestion window?
The sender reduces its congestion window because the loss suggests it sent too aggressively for the available network capacity.
What is the purpose of congestion avoidance?
To use available network capacity efficiently while avoiding congestion and retransmissions.
Why can sorting a multi-connection capture by ordinary Delta Time be misleading?
It measures time since the preceding captured packet, which may belong to a different TCP conversation.
What does Wireshark's “time since previous frame in this TCP stream” measure?
The time since the preceding packet in the same TCP stream.
How can a Wireshark user enable per-conversation TCP timestamps if they are not visible?
Right-click a TCP header, open Protocol Preferences, and enable calculation of conversation timestamps.
Why is sorting by per-stream timing more efficient than filtering and sorting every TCP conversation separately?
It allows pauses across streams to be compared in one view without manually isolating each conversation.
Which large timing gaps may be routine timers rather than application delays?
Gaps near timer boundaries, such as 45, 60, or 90 seconds, may reflect keepalives, timeouts, or resets.
Why might a long gap before a client request not indicate a slow server?
The client may simply have waited before sending its next request.
When investigating a report that a database responds too slowly, which packets should be compared?
The request to the database and the corresponding response from the server.
Why are server responses useful when searching a capture for application delays?
A delayed response can show how long the server application took to respond to a request.
In the LDAP file-access case, what symptom was reported?
A new file took about 20–30 seconds to begin transferring, although it eventually transferred if the client waited.
What did a SACK block indicate in the LDAP trace?
The client had received a later data segment but was missing an earlier segment.
In the LDAP trace, what did the server do after the client reported a missing segment?
It waited for its retransmission timer, then retransmitted the missing data.
What typically triggers fast retransmission in the example's explanation?
Three duplicate acknowledgments.
Why did the first retransmission in the LDAP case take about 3 seconds?
The connection was at the start of its data transfer, before TCP had built up enough activity to reduce the retransmission timer.
How did the retransmission delay change when successive large packets were not acknowledged in the LDAP case?
It increased from about 3 seconds to about 6 seconds and then 12 seconds.
What did the server try after retransmissions of large segments failed?
It tried sending the data in smaller segments, including a 536-byte segment.
What does an assumed TCP MSS of 536 bytes indicate when no MSS was exchanged?
It is the default minimum MSS described in the example.
What MSS values did the client and server initially advertise in the LDAP case?
Both initially advertised an MSS of 1,460 bytes.
What did the MSS change from 1,460 to 1,432 bytes suggest in the LDAP case?
An intermediate device was changing the TCP MSS, likely to leave room for additional headers or other processing.
Why can an MSS of 1,460 bytes be problematic on a path with a 1,500-byte MTU?
Adding typical 20-byte TCP and 20-byte IP headers brings the packet to 1,500 bytes, leaving no room for extra encapsulation headers.
How did correcting the router's MSS adjustment resolve the LDAP transfer problem?
The router reduced the MSS to 1,432 bytes so packets had room for additional path headers and could pass successfully.
What can an initial TTL of 128 on a captured SYN suggest?
The packet may have been captured before it was routed.

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