Tuesday, November 10, 2015

The TCP 3way handshake

Three important flags are below ones. 

1. SYN
2. SYNC ACK
3. FIN 

Whoever initiates the connection, sends the SYN flag as 1. rest all flags will be zero. When the receiver acknowledges, the ACK flag will be set as 1 in the response. Now if the receiver also like to communicate back, it will send the SYN flag as 1 in the same response. Now from the client it will send the ACK to indicate that the handshake is now complete. These 3 packets complete the 3 way handshake. 

The parties on both ends of the TCP connection maintains a 32 bit counter to keep track of how much data it sent across. The sequence number is included in each transmitted packet and acknowledges by the opposite host as acknowledgement number to inform the sending host that the transmitted data was received successfully. 


References:

No comments:

Post a Comment