TCP payload size

Subtract IP and TCP header sizes from an IP packet’s MTU to estimate payload capacity.