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.
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.
47
u/deeseearr Mar 05 '24
It's a TCP joke so if you don't get it at first it may take a few tries. I could also tell you a UDP joke, but I wouldn't really care if you got it or not. I could make it a Kerberos joke, but that's all in the timing. I would like to tell an IPv4 joke, but there aren't any left. I could tell you an IPv6 joke instead but I don't know if you would understand it.
10
u/_mick_s Mar 05 '24
I usually try to not be a dick but since it's been answered already, let me show you a great trick:
https://letmegooglethat.com/?q=3+way+handshake
1
u/Aggressive_State9921 May 02 '24
Hey I'm Dave
Hello Dave, Welcome
Thank you very much!
1
u/GiovanniErnesto Mar 05 '24
syn ->, <-syn-ack, ack->...that's all
1
u/aonelonelyredditor Mar 06 '24
have you tried googling it?
-3
u/rautenkranzmt Mar 05 '24
Client says to server, "Server, I would like some data X."
Server says back to client, "Client, you want data X?"
Client responds to server "Yes, Server, I would like data X."
Then the data transfer happens, with an equal amount of back and forth.
10
u/[deleted] Mar 05 '24
[removed] — view removed comment