Use it when throughput is capped for no visible reason, when large segments are lost, or when a capture's window sizes do not make sense.
TCP Options & Flow Control Reference
TCP options are extra header fields, exchanged almost entirely in the SYN and SYN-ACK, through which the ends announce what they support: maximum segment size, window scaling, selective acknowledgment, timestamps.
1. Capture SYN and SYN-ACK: do both carry MSS, window scale and SACK permitted?
2. Compare the SYN leaving the client with the SYN arriving at the server — did something on the path change it?
3. Window scale missing on one → throughput capped at 64 KB per round trip.
4. MSS lowered on the way → a clamp for a tunnel; usually intended.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
tcpdump -ni eth0 'tcp[tcpflags] & tcp-syn != 0' and host 192.0.2.10Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational verification Verify boundary
tcpdump -ni eth0 'tcp[tcpflags] & tcp-syn != 0' and host 192.0.2.10
ss -ti dst 192.0.2.10
sysctl net.ipv4.tcp_window_scaling net.ipv4.tcp_sack net.ipv4.tcp_timestamps
The first shows only SYN and SYN-ACK packets with their options, for example options [mss 1460,sackOK,TS val … ecr …,nop,wscale 7]. Compare the SYN as it leaves the client with the SYN as it arrives at the server to see whether something on the path changed it. ss -ti shows the values in force on a live connection (wscale:7,7, mss, sack). The sysctl line shows whether the options are enabled on a Linux host.
In Wireshark, expand the TCP options of the first two packets; later packets show "calculated window size" using the factor learned there.
Known-good: both SYN and SYN-ACK carry MSS, window scale and SACK permitted, with the same values at both capture points.
Step 2 Failure isolation workflow Narrow the fault
- Throughput is capped at a low rate on a long-distance link. Window scaling is missing from one of the two handshake packets — disabled on a host or stripped by a firewall — so the window cannot exceed 64 KB.
- The MSS arriving at the server is lower than what the client sent. A router or firewall clamps it; usually deliberate, for a tunnel.
- Large segments are lost although the MSS was announced correctly. The path's MTU is smaller than either end's; clamp the MSS at the tunnel.
- Window sizes cannot be interpreted. The capture started after the handshake.
- Many unnecessary retransmissions after a single loss. SACK is not in use.
- Connections through one firewall behave oddly after loss. It rewrites sequence numbers but not the SACK blocks.
- Segments carry 1448 bytes, not 1460. Timestamps are in use; not a fault.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
tcpdump -ni <if> 'tcp[tcpflags] & tcp-syn != 0' and host <ip>— SYN and SYN-ACK with their options.ss -ti dst <ip>— options in force on a live connection (wscale,mss,sack).sysctl net.ipv4.tcp_window_scaling net.ipv4.tcp_sack net.ipv4.tcp_timestamps— enabled on the host?
ReferenceWhat it is1 section · depth on demand
Mechanics & mental model
TCP options are extra fields in the header through which the two ends tell each other what they support: the largest segment they accept, whether windows should be scaled, whether selective acknowledgments may be used. Nearly all of them are exchanged once, in the first two packets of the connection.
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
The options set the limits a connection lives within — segment size and window size above all — and so its performance. Because they appear only in the handshake, a capture that starts later cannot be interpreted correctly, and a firewall that removes or alters an option changes the behaviour of the whole connection without leaving any other trace.
ReferenceHow it works1 section · depth on demand
How it works
| Option | Kind | In | Purpose |
|---|---|---|---|
| Maximum segment size (MSS) | 2 | SYN only | "Do not send me segments with more than this many data bytes" |
| Window scale | 3 | SYN only | A multiplier for the window field, as a power of two |
| SACK permitted | 4 | SYN only | "I can use selective acknowledgments" |
| SACK | 5 | Data phase | Lists blocks of data received beyond a gap |
| Timestamps | 8 | All segments | For measuring round-trip time and rejecting very old segments |
| No-operation | 1 | — | Padding between options |
MSS. Each side announces the largest segment it wants to receive, normally its interface MTU minus 40 bytes of IP and TCP headers — 1460 on Ethernet. It is an announcement, not a negotiation: each side simply respects the other's value, so the two directions can differ. A router can lower the value in passing (ip tcp adjust-mss) to keep segments within a smaller MTU further along.
Window scale. The window field is 16 bits, at most 65,535 bytes — far too little for fast or long-distance links. With this option the field is multiplied by 2 to the power of the shift value (0–14). It takes effect only if both SYN and SYN-ACK carry it. The scaling factor is fixed for the life of the connection and never repeated.
SACK. With cumulative acknowledgments alone, a receiver can only say "I have everything up to here". SACK lets it add "…and also these later blocks", so the sender resends exactly what is missing.
Timestamps add 12 bytes to every segment, which reduces the data per segment from 1460 to 1448.
Flow control is the receiver telling the sender how much room it has, through the window field (times the scale). When the application reads slowly, the window shrinks; at zero, the sender stops and waits for an update.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
TCP options and how they shape a connection
Options are negotiated in the SYN and SYN-ACK and decide much of a connection's performance. RFC 7323 defines window scale (kind 3, length 3) and timestamps (kind 8, length 10). Window scale can be sent only in a SYN. Both sides must send it for scaling to be used in either direction, and the shift count is capped at 14, which allows windows up to 1 GiB. Timestamps carry TSval (the sender's clock) and TSecr (an echo of the peer's last TSval), which enable round-trip measurement (RTTM) and protection against wrapped sequence numbers (PAWS).
Common options
| Kind | Option | Where | Purpose |
|---|---|---|---|
| 2 | MSS | SYN only | Largest segment the sender of the SYN wants to receive |
| 3 | Window scale | SYN only | Shift for the 16-bit window field |
| 4 | SACK-permitted | SYN only | Allow selective acknowledgements |
| 5 | SACK | Any ACK | List received out-of-order blocks |
| 8 | Timestamps | Any segment, if negotiated | RTT measurement, PAWS |
| 1 / 0 | NOP / End of options | Padding | Alignment |
What happens when options are missing
| Missing | Consequence |
|---|---|
| MSS | The default (536 IPv4 / 1220 IPv6) is used, which is inefficient |
| Window scale on either side | The window stays at most 65,535 bytes, limiting throughput on long paths |
| SACK | Multiple losses in one window recover slowly |
| Timestamps | Less accurate RTT, and no PAWS on fast links |
host$ sudo tcpdump -ni eth0 -c 2 'tcp[tcpflags] & tcp-syn != 0 and host 10.30.0.15'
Flags [S], seq 1830472001, win 64240, options [mss 1460,sackOK,TS val 1 ecr 0,nop,wscale 7]
Flags [S.], seq 409117, ack 1830472002, win 65160, options [mss 1380,nop,nop,sackOK]
host$ sysctl net.ipv4.tcp_window_scaling net.ipv4.tcp_timestamps net.ipv4.tcp_sack
fw# show running-config | include tcp-options|tcp-map
In this example the SYN-ACK carries no window scale and no timestamps, so the connection runs without scaling or timestamps in both directions. The changed MSS (1380) suggests a middlebox clamped it on the way. When the options in the client's SYN and the server's SYN-ACK don't match what the endpoints are configured for, look for a firewall or WAN optimiser that rewrites them.
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → TCP Options & Flow Control Reference. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc9293.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Operational notes
Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.
TCP Options
MSS/Window Scale/SACK/Timestamps.
30-second lookup
- Open Packet Field Explorer for field-level metadata.
- Use Packet Decoders for bit/flag values where relevant.
- Use Paste Output / Structured Parser for CLI evidence.
- Use Packet Filters to prove the wire boundary.
Evidence rule
A decoded field proves what is present in that packet/output at that moment. Continue through the verification chain before concluding end-to-end behavior.