3 ms·
I'd tell you a UDP joke, but you probably wouldn't get it. So here's a TCP joke: Hello, would you like to hear a TCP joke? Yes, I'd like to hear a TCP joke.
by DonHopkins 4y ago
I'd tell you a UDP joke, but you probably wouldn't get it.
So here's a TCP joke:
Hello, would you like to hear a TCP joke?
Yes, I'd like to hear a TCP joke.
OK, I'll tell you a TCP joke.
OK, I'll hear a TCP joke.
Are you ready to hear a TCP joke?
Yes, I am ready to hear a TCP joke.
OK, I'm about to send the TCP joke. It will last 10 seconds, it has two characters, it does not have a setting, it ends with a punchline.
OK, I'm ready to hear the TCP joke that will last 10 seconds, has two characters, does not have a setting and will end with a punchline.
I'm sorry, your connection has timed out... ...Hello, would you like to hear a TCP joke?
- pstuart 4y agoAck.
- DonHopkins 4y agoFin!
- egberts1 4y agoRst
- imoverclocked 4y agoAck
- 29athrowaway 4y agoThere's no ACK for RST. RST is the equivalent of hanging up.
- egberts1 4y agoRST comes at anytime and is sent anytime.
- imoverclocked 4y agoAlso, if an ack packet takes a really long time for some reason, it may be duplicated and arrive after the connection is shutdown.
- Dylan16807 4y agoA classic, but it's really far from how TCP actually works.
- Areading314 4y agoIt needs something like -- has anyone told a TCP joke in this vicinity in the last 10 seconds? If so I will tell the joke at a slower rate
- 29athrowaway 4y agoThe handshake sequence is exaggerated. It's just usually 3 messages. The 3 initial messages establish a connection. A: I would like to tell you something. (SYN) B: I acknowledge you want to tell me something. (SYN-ACK) A: I received your acknowledgement. (ACK) After the handshake sequence is done, data transfer begins. Only then, it is possible to know that the "something" was a joke. If B answers with RST instead of SYN-ACK the connection is refused. If B doesn't answer, A will interpret this as a connection timeout.
- Dylan16807 4y agoNot even "after", you'd generally put the message in the same packet as the second ACK.
- ajross 4y agoOnly with specialized client software. The connect() system call doesn't return to the caller until the three-way handshake is complete, so you need a fourth packet to send useful data to the server socket. In the other direction, where you have datacenter hardware and custom kernels, it's common to see the stack cheat and start blasting packets back to the client as soon as it gets the initial SYN, just expecting that the ACK will arrive normally.
- Dylan16807 4y agoWell, even if you wait for the kernel that's only microseconds before you can go from ACK to data. No round trips necessary.
- wiredone 4y agoYou're missing the frame size comms that then occur following this.
- deleted 4y ago[deleted]
- deleted 4y ago
- smnplk 4y agoHello, would you like to hear a UDP joke? No Knock, knock!
- andreareina 4y agoDid Did you Did you hear Did you hear the Did you hear the one Did you hear the one about Did you hear the one about traceroute?
- saghm 4y agoWait, two characters, as in, like, characters in a string, or characters in a story? Is a punchline like a newline?