TCP connection establishment creates a connection before application data is exchanged. It is the first stage of TCP communication, followed by data exchange and connection termination. section 22.2.1
The three-way handshake uses TCP header flags and exchanges three empty segments:
- The client sends a segment with the SYN flag to begin synchronization. section 22.2.1
- The server replies with a segment carrying both SYN and ACK. section 22.2.1
- The client sends an ACK, completing establishment so data exchange can begin. section 22.2.1
- The three handshake segments contain no encapsulated application data; they establish the connection only. section 22.2.1
Figure 22.5 The TCP three-way handshake. PC1 initiates the connection by sending a TCP segment with the SYN flag, SRV1 responds with a segment with the SYN and ACK flags, and finally, PC1 sends a segment with the ACK flag.
Trace the client and server messages in the TCP three-way handshake. section 22.2.1
