Home : Technical Terms : Handshake Definition


In the real world, a handshake is a customary greeting between two people. Similarly, a computer handshake serves as a greeting between two computer systems. It is commonly used to initialize a network connection between two hosts.

A computer handshake may be completed between any two systems that communicate with each other on the same protocol. The two systems may be a client and server or simply two computers on a P2P network. The handshake confirms the identities of the connecting systems and allows additional communication to take place.

Handshaking over a network is commonly called a 3-Way Handshake or "SYN-SYN-ACK." A successful handshake involves seven steps:

  1. Host A sends a synchronize (SYN) packet to Host B.
  2. Host B receives Host A's SYN request.
  3. Host B sends a synchronize acknowledgement (SYN-ACK) message to Host A.
  4. Host A receive's Host B's SYN-ACK message.
  5. Host A sends an acknowledge (ACK) message to to Host B.
  6. Host B receives Host A's ACK message.
  7. The connection between the two systems is established.

When a system initiates a handshake, there are three possible outcomes:

  1. No response – If the system receiving the handshake is not available or does not support the protocol the initiating system uses, it may not respond to the request.
  2. Connection refused – The system receiving the handshake is available and understands the request, but denies the connection.
  3. Connection accepted – The system receiving the handshake is available, receives the request, and accepts the connection.

The third outcome listed above is the only the one in which the handshake is completed. If a handshake is successful, the two systems can begin communicating and transferring (data) over the established protocol. Examples of protocols that use handshaking include TCP, TLS, and SSL.

Updated: October 22, 2015

Cite this definition:


TechTerms - The Tech Terms Computer Dictionary

This page contains a technical definition of Handshake. It explains in computing terminology what Handshake means and is one of many technical terms in the TechTerms dictionary.

All definitions on the TechTerms website are written to be technically accurate but also easy to understand. If you find this Handshake definition to be helpful, you can reference it using the citation links above. If you think a term should be updated or added to the TechTerms dictionary, please email TechTerms!

Subscribe to the TechTerms Newsletter to get featured terms and quizzes right in your inbox. You can choose to receive either a daily or weekly email.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe at any time.
Questions? Please contact us.