In this article
Recover directional Window Scale negotiation before decoding TCP windows, and check whether the capture tool already applied the factor.
A capture appears to show a tiny receive window throughout a large model transfer. Before increasing socket buffers, establish whether the display contains raw header values or already scaled windows. The scale is negotiated at connection establishment and applies directionally. Missing that context can turn a decoding mistake into an unnecessary host-wide tuning change.
Recover the initial handshake
Retain the initial SYN exchange when collecting a controlled diagnostic trace. Window Scale options negotiate fixed parameters for that connection; a capture started after establishment may lack them. Do not infer a factor merely from observed throughput. If the handshake is unavailable, describe the ambiguity or obtain endpoint socket evidence rather than manufacturing a precise reconstructed window.
Keep the directions separate
Each endpoint advertises its own receiving capacity. The option sent by that endpoint supplies the factor for interpreting its later advertised window fields when scaling was successfully negotiated. Do not apply the server’s factor to the client’s advertisements simply because the server sends most data. Map source and destination explicitly, especially when reading a bidirectional capture with similar ports and addresses.
Exclude SYN window fields
The initial SYN and SYN-ACK window fields are not scaled. The negotiated factor applies to later qualifying segments. Also check whether the analyzer already exposes a calculated window beside the raw header field. Multiplying an already decoded value again creates a different error. Preserve field labels and analyzer configuration with the evidence so another reader can reproduce the interpretation.
Compare flow-control boundaries
A receive window limits what the peer permits in flight; it is distinct from the sender’s congestion window. Linux socket tools can provide complementary endpoint state. A small advertised allowance can be relevant to a transfer, but it does not alone identify why the receiving application is slow or establish a link-capacity defect. Check receiver consumption and socket queues separately.
Validate without global assumptions
Reconnect a controlled transfer when testing changed endpoint settings, because an established connection retains its negotiated scaling context. Compare the same direction, effective windows and byte progress. A correct decode eliminates one false diagnosis. It does not prescribe a universal buffer size, prove that all traffic shares the same negotiation or explain delays before the application offers data to the socket.
Primary references
IETF TCP Window Scale Negotiation.
Linux ss Socket Statistics and Timers.
Related reading: Ping works but transfers stall: recognizing an MTU black hole; GPU networking and availability: beyond internet speed.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.