Sunday, 27 October 2013

Three Way Handshake

The three way handshake is a simple way to establish communication. It is also useful in daily life, e.g. everyday conversations.

1) The client sends a request to the server. ("Hello, Boss.")

2) The server receives the request and returns an acknowledgement message. (Boss heard the call. He replies, "Yes, Grunt. You were looking for me?")

3) The client receives the acknowledgement message and returns one more acknowledgement message. (Grunt heard the request for confirmation. Grunt replies, "Yes, I have something to tell you." After which he begins to talk about his pay raise.)

Now both sides begin communication. At any time during the handshake, if a reply is expected but none is received after a timeout, the handshake "fails" and the client must initiate it again.

No comments:

Post a Comment