Pcornel
Networking · Network & Protocols › TCP, UDP & Transport

TCP Options & Flow Control Reference

Cheat sheet · https://pcornel.dk/topic.php?topic=282

Back to the Topic

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.

Remember

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.

First 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?

Commands

ss -ti
ip tcp adjust-mss

Verify in this order

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

Where it usually breaks

physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=282

Confirmation

Confirm action

Continue?