Advertisements

Serving Information Simply

Time to Read

1 minute
Advertisements

TCP 3 WAY HANDSHAKE

TCP uses a three-way handshake to establish a reliable connection. The connection is full duplex, and both sides synchronize.

TCP Three-Way Handshake Process to establish the connection

  • Step 1: In the first step,the client establishes a connection with a server. It sends a segment with SYN and informs the server about the client should start communication, and with what should be its sequence number.
  • Step 2: In this step server responds to the client request with SYN-ACK signal set. ACK helps you to signify the response of segment that is received and SYN signifies what sequence number it should able to start with the segments.
  • Step 3: In this final step, the client acknowledges the response of the Server, and they both create a stable connection will begin the actual data transfer process.

TCP Three-Way Handshake Process to terminate the connection

once client complete the data transfer it will gracefully terminate the connection using 3-way handshake method. 

  • Step 1: In the first step, it sends a segment with FIN-ACK and informs the server about the client should stop communication, and with what should be its sequence number.
  • Step 2: In this step server responds to the client request with FIN-ACK signal set. ACK helps you to signify the response of segment that is received and FIN signifies what sequence number it should able to stop with the segments.
  • Step 3: In this final step, the client acknowledges the response of the Server, and they both gracefully terminate the connection on both sides.

3-way Handshake in real world

Client side

Server Side

 


Leave a Reply


Sanchit Agrawal

Blog Author

Advertisements
Advertisements

Discover more from Sanchit Gurukul

Subscribe now to keep reading and get access to the full archive.

Continue Reading

%d bloggers like this: