top of page
© Copyright not allowed

TCP 3-Way Handshake

Writer's picture: Techclick co_inTechclick co_in

Updated: 3 days ago

TCP 3-Way Handshake

 

A three-way handshake, also known as the TCP (TransmissionControl Protocol) handshake, is the process used to establish a reliable, secureconnection between two devices in a network. It is a key part of the TCP/IPprotocol suite and helps ensure that data is transmitted accurately andsecurely between the devices.

 

Here's how the three-way handshake works:

Initial ConnectionRequest (SYN): The initiating device sends a synchronization (SYN) messageto the receiving device to request that a connection be established. Thismessage contains a sequence number that will be used to keep track of the databeing transmitted.


 Connection Acknowledgment (SYN/ACK): The receiving device receives the SYN message and sends back an acknowledgment (SYN/ACK) message. This message contains its own sequence number, which will be used to keep track of the data it receives, and a copy of the sequence number from the initial SYN message.


Final Acknowledgment (ACK): The initiating device receives the SYN/ACK message and sends back a final acknowledgment (ACK) message to confirm that the connection has been established.


Once the three-way handshake is complete, the devices can start exchanging data securely and reliably, with each message having a unique sequence number that ensures that data is transmitted in the correct order and without duplication.



Benefits of 3-way handshake:

Reliability: By establishing a unique sequence number for each message transmitted between the devices, the three-way handshake ensures that data is transmitted reliably and in the correct order.

Security: The three-way handshake helps prevent unauthorized access to a network by requiring that a connection be established before data can be transmitted.


Error detection: If a device does not receive an expected acknowledgment, it can assume that the connection has failed and terminate the attempt.

Flow control: The three-way handshake helps ensure that the flow of data between devices is controlled and does not exceed the capacity of the network.


Efficient resource utilization: By establishing a reliable, secure connection, the three-way handshake helps ensure that network resources are used efficiently and effectively.

 

0 views0 comments

Recent Posts

See All
bottom of page