Popular Posts

Share |

Wednesday, August 11, 2010

Three way handshake Concept (3 Way handshake)

How a Connection establish in TCP/IP according to the Three way Handshake (3Way handshake) concept

Three way handshake Concept, TCP/IP, connection, Host PC, packets, synchronization
Three way handshake is regarding establishing a TCP socket connection between two pc's in three steps. It just happens like this. Assume that you have two pc's called host A and host B. They are connected physically with appropriate cables via Ethernet ports. TCP/IP protocol is running.

Step 1. Host A sends a synchronization packet to the Host B
just asking "Hello friend, I would like to establish a connection with you. Would you like ?

Step 2. Host B replies to Host A with a Acknowledgement packet + synchronization packet   
Acknowledgement packet says that "Yes I like to establish a connection with you" and Synchronization packet says "Please confirm it"

Step 3. Host A sends an Acknowledgement packet to Host B 
To say that " OK, then we'll establish a connection"

This is how a connection establish with 3way handshake (Threeway handshake) concept

Then three way handshake CONNECTION ESTABLISHED and starts to flow data between two hosts. In next post we'll see how the data flowing taking place between two hosts and controlling flow by them self. think all are very clean and clear here and you enjoyed it. 

No comments:

Post a Comment

Related Posts with Thumbnails