Amazon Interview Question

Could you explain the three way handshake?

Interview Answer

Anonymous

Jun 2, 2021

Usually, we handshake to establish a connection with people around us. Similarly, the client and server also establish the connection with a handshake and it uses 3 ways called a 3-way handshake. Client-end: Step1: Client sends SYN (Synchronize Sequence Number) to the server which tells the server that it wants to establish the connection. Server-end : Step1: Server receives the SYN Server-end : Step2: Server sends the communication to the client stating that it received the SYN number. It also sends an ACK that it received. so, it sends SYN + ACK Client-end: Step 2: The client receives the SYN+ACK Client-end: Step 3: Client sends ACK to the server that it has received SYN+ACK Server-end:Step3: Server receives ACK from the client. This entire process is known as 3 way handshake

4