The TCP flags field is an eight-bit TCP-header field. Each bit indicates or controls a protocol behavior; a flag is set when its binary value is 1. TCP uses flags to establish, acknowledge, and terminate connections. section 22.2.1
The key flags used in TCP connection control are:
- SYN (synchronize) starts TCP connection establishment. section 22.2.1
- ACK (acknowledge) confirms received information and completes the handshake response. section 22.2.1
- FIN (finish) signals that a host has finished sending and wants to terminate the connection. section 22.2.1
TCP connection sequence
PC1 sends SYN, SRV1 replies with SYN and ACK, and PC1 returns ACK. After data exchange, each host sends FIN and acknowledges the other host’s FIN.
