TCP 3-way Handshake

TCP states for Transmission control Protocol which acts on the 4th Layer of OSI Model(Transport Layer) and it helps us to share data reliably without any error or file corruption.
During the time of transfer of data, there is a chance that all data packets had not reached at the destination or the Packets are not aligned in the right sequence which can make the final data corrupt. And to be prevented from this situation, we use TCP(Transmission Control Protocol), which retransmit(or re-request) for that loosed or unavailable packet which make sures that all packets are arrived and also arranges them in the right sequence to be prevented from file corruption.
TCP performs a 3 step process called 3-way handshake between client and server to make sure that they are connected properly. So let’s see how it is done with this diagram:
In this Diagram you can see these 3-steps between Client and Server:
Firstly the client send an “syn” message to the server, same as we say “Hello” in starting of any Phone call. Let the syn message is “syn-1”
Then If Client messaged had reached the Server properly, then Server will return the acknowledgement of the client syn, like in this case, Client syn was “syn-1”, so the acknowledgement will be “ack-1”. And he also returns an “syn” for the client, that Is server able to make an error free message with the client. let the server send syn is “syn-2”. same as the other person says Hello back in to the first person if the audio and voice is clear of that call.
lastly, clients checks if the returned “acknowledgement” is of the client “syn” or not, and if it is true, then he returns the acknowledgement of server syn. like in this case, it would be “ack-2”. same as we say “Great, let’s Talk!” in our phone calls.
This is the Complete 3-way Handshake of TCP. Hope you liked this blog and if you actually felled reading this blog helpful, then make sure to hit the like icon.
Subscribe to my newsletter
Read articles from Manish Saw directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
