A TCP header carries control information that supports connection-oriented communication, sequencing, acknowledgment, retransmission, and flow control. It is at least 20 bytes and can reach 60 bytes when options are included. section 22.2.1
Key TCP header elements include:
- Source Port and Destination Port identify the endpoints; each field is 16 bits, allowing ports 0–65535. section 22.2.1
- The Flags field contains eight control bits, including SYN, ACK, and FIN for connection establishment and termination. section 22.2.1
Three-way handshake
PC1 begins with a SYN segment, SRV1 replies with SYN and ACK, and PC1 completes establishment with ACK. These segments contain no application data. section 22.2.1
