TCP connection establishment and clearing
In this section we will learn how the TCP opens and closes its connections. In order to establish a connection, the three-way handshake procedure is used as described in the following section.
TCP three-way handshake
The three-way handshake is a connection establishment procedure from the client socket to the server socket, as shown in the following image:
Before the start of the TCP three-way handshake, the client will be in the CLOSED
state and the server will be in the LISTEN
state as shown:
SN |
TCP-A (122.167.84.137) state |
Flow CTL |
TCP-B (10.0.0.221) state | ||
From |
To |
From |
To | ||
1 |
CLOSED |
CLOSED ... |
Get Packet Analysis with Wireshark now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.