Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

TCP Options & Flow Control Reference

Direct answer

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.

When to use this

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.

First 30 seconds

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.

Operational verification

SYN carries MSS, window scale, SACK permitted → the same options arrive unchanged → SYN-ACK carries them too → both ends apply the agreed scale and segment size for the whole connection

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard
Key commandtcpdump -ni eth0 'tcp[tcpflags] & tcp-syn != 0' and host 192.0.2.10
Scope / prerequisiteUse it when throughput is capped for no visible reason, when large segments are lost, or when a capture's window sizes …
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

Window scaling applies only if both SYN and SYN-ACK carry it — a firewall that strips it limits the window to 64 KB. MSS is announced per direction, not negotiated. A capture without the handshake cannot be interpreted correctly.

Key checks
  • 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

OptionKindInPurpose
Maximum segment size (MSS)2SYN only"Do not send me segments with more than this many data bytes"
Window scale3SYN onlyA multiplier for the window field, as a power of two
SACK permitted4SYN only"I can use selective acknowledgments"
SACK5Data phaseLists blocks of data received beyond a gap
Timestamps8All segmentsFor measuring round-trip time and rejecting very old segments
No-operation1—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

KindOptionWherePurpose
2MSSSYN onlyLargest segment the sender of the SYN wants to receive
3Window scaleSYN onlyShift for the 16-bit window field
4SACK-permittedSYN onlyAllow selective acknowledgements
5SACKAny ACKList received out-of-order blocks
8TimestampsAny segment, if negotiatedRTT measurement, PAWS
1 / 0NOP / End of optionsPaddingAlignment

What happens when options are missing

MissingConsequence
MSSThe default (536 IPv4 / 1220 IPv6) is used, which is inefficient
Window scale on either sideThe window stays at most 65,535 bytes, limiting throughput on long paths
SACKMultiple losses in one window recover slowly
TimestampsLess 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 9293

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%
Technical changelog & impact

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.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

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.

Aliases that resolve here
tcp mss window scaletcp zero windowsack
Embedded quick reference

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.

Confirmation

Confirm action

Continue?