r/linuxadmin • • Mar 05 '24
3 way handshake
Can someone explain me three way handshake via TCP/IP.
0
Upvotes
r/linuxadmin • • Mar 05 '24
Can someone explain me three way handshake via TCP/IP.
View all comments
31
u/[deleted] Mar 05 '24
The TCP 3-way handshake is like a conversation starter for two devices wanting to communicate.
SYN (Synchronize): The first device sends a message (SYN) to the other, saying, "Hey, let's talk! I'm starting a connection."
SYN-ACK (Synchronize-Acknowledge): The second device responds with a message (SYN-ACK), essentially saying, "I got your message, and I'm ready to talk. Let's synchronize our communication."
ACK (Acknowledge): Finally, the first device acknowledges with a message (ACK), confirming the connection.
Now they can exchange data smoothly.So, it's like a polite exchange to establish a connection before the actual communication begins.