r/ProgrammerHumor • • 2h ago

Meme explainUdpToMe

Post image
1.2k Upvotes

65 comments sorted by

744

u/Single-Virus4935 2h ago • Bravo Popcorn

And Failed!

That is TCP

245

u/TheTybera 2h ago

Yup failed.

UDP don't give a shit about packet integrity or dropped packets.

64

u/The_Hunster 1h ago

Punchline isn't quite as good if you just stare blankly. Or maybe that makes it a lot better

14

u/SeriousPlankton2000 1h ago

It DOES have a checksum.

4

u/Roku-Hanmar 22m ago

But it doesn’t have a retransmission request

7

u/shaka893P 30m ago

Which is why the example is TCP. The answer should have been: "I'm sorry I didn't get all of your question, but I'm gonna try to answer it anyway"

•

u/AlwaysHopelesslyLost 3m ago

That would still be wrong. The two way communication is a feature of TCP. I think the best answer, which I am not clever enough to come up with would be riffing on "dp to me"

13

u/2Tack 1h ago

I scrolled past this post and then went.... Wait a minute. UDP wouldn't respond so this punchline sucks. Came back to look at the comments and wasn't disappointed.

6

u/ramdomvariableX 55m ago

Will be funnier if the candidate starts talking about Upper Peninsula (UP: Michigan, US) or Uttar Pradesh (UP: India). because he missed the 'D'.

6

u/ElSucaPadre 2h ago

if we want to be fair, depends on which layer candidate and interviewer are.

14

u/Single-Virus4935 1h ago

Nope, they asked about UDP which is Layer 4.

2

u/qqqrrrs_ 1h ago

There are protocols where the reliability is implemented in the application layer, over UDP

15

u/Single-Virus4935 1h ago edited 1h ago

Yes, they exists. I know. For.example QUIC. But that isnt UDP.

If I ask you about how roads are build you wount explain how a car works.

Man, folks.. Stay focused when explaining protocols.

Edit: QUIC is technically also Layer 4 

-2

u/ElSucaPadre 1h ago

lol yes but if the application on level 5 is using udp it will surely know if they're missing something important

9

u/InDubioProReus 1h ago

You probably wouldn’t use UDP if there’s anything important to miss.
It’s meant for traffic where the latest state is gold, like multiplayer games, video calls etc.

3

u/yahluc 1h ago

But an application can have its own retry mechanism when using UDP with its own rules. Like sometimes old data is important, but not important enough to block the rest of transmission like TCP does.

1

u/Single-Virus4935 1h ago

Yes, but that has nothing to do with UDP. They didn't ask about $PROTOCOL over UDP. They aske d about UDP

-1

u/rosuav 1h ago

"... where the latest state is gold, like multiplayer games". Sends UDP packet to notify the client that the player's gold has changed.

3

u/Single-Virus4935 1h ago

Not necessarily and they didn't ask about another protocol, they ask about UDP. The Interviewer has to stay in this layer if he wants to demonstrate how it works.

1

u/ElSucaPadre 1h ago

yes but this isn't a real interview, it's a joke

1

u/Single-Virus4935 1h ago

Still a bad joke and people show that shows that people are missing fundamentals. Good oportunity to learn why this joke is just nonesense

•

u/Memitim 6m ago

The app won't surely know anything, because it's not built into the protocol. You can technically make UDP seem mostly sort of like TCP with a bunch of extra shims in compute, but that has nothing to do with the protocol used.

Also, Layer 5 is Session layer, where stream connections are managed. Layer 7 is application, where additional logic would need to be added to get UDP to pretend to have reliability. There are elements at layer 4 that would be used for implementing the sequencing needed, but app code would actually perform the handling. As per the name, the Session layer just ensure reliability for the connected session itself and not the individual packets.

And obligatory acknowledgement that the OSI model is just a model.

1

u/capi1500 1h ago

Unless it's the first packet sent from a client to server

2

u/Proper-Ape 1h ago

This is the brain layer having to make up for an unreliable transport layer.

1

u/Single-Virus4935 1h ago

That wasn't the question. If so, candidate mixed layers and failed 

2

u/Proper-Ape 1h ago

But he didn't get the question. How should he answer it?

2

u/Single-Virus4935 48m ago

The receiver wouldnt know that the Packets are missing. The udp stack wouldn't react at all.

•

u/AlwaysHopelesslyLost 5m ago

My reactions in order were:

  1. Why is this candidate apparently using a chatbot to interview with?
  2. Oh, I get it, the response is a TCP/UDP joke, so they may understand the question and are just trying to be clever
  3. Why are they playing TCP??

1

u/otkpro 1h ago

okay I can hear you now

2

u/Single-Virus4935 1h ago

Another one who doesn't understand udp

-3

u/notSarcasticAtAII 1h ago

I think the point is, it IS tcp, that's why it didn't get the udp question. Layered.

3

u/Single-Virus4935 1h ago

Nope, he just pretended that he didn't got all packets. On UDP that wouldnt get noticed at all. On TCP an unsolicited packet would result in a RST

-2

u/notSarcasticAtAII 1h ago

Since I couldn't get my point accross, asked AI to do it. Sorry, I understand network just not good enough to explain.


Oh totally, yeah. He just pretended to miss it. Because that's what TCP does. It pretends.

My guy is literally TCP. He doesn't speak UDP. He can't. That's the whole joke. He didn't get the UDP question because he's not UDP. He asked for it again because he's TCP. That's why it's funny.

You bringing up RST like he's some random packet knocking on a closed port. Bro, he's IN the interview. The connection is already open. He's not unsolicited, he's just confused.

0

u/Single-Virus4935 1h ago edited 1h ago

UDP doesnt have connections and TCP sends RST also for non existing connections on a open port.

The whole thing falls apart because a UDP packet wount end up in the TCP Stack.  If a packet with TCP proto is sent with UDP structure it wouldnt decode correctly and be dropped. Your scenario has no technical foundation.

-1

u/notSarcasticAtAII 1h ago

I'm not even debating technicalities, you're right on all accounts. I'm saying, the interviewee is literally the TCP protocol, hinting at the deeper layer on the joke itself.

Not explaining further, cheers to people who do get the point.

0

u/Single-Virus4935 1h ago

I dont think there is a deeper layer. The canidate failed to understand the protocol. What we dont know is if the creator intended the canidate to pass or fail

166

u/robin_888 1h ago

"Can you explain UDP to me?"

silence "And that's the core concept of UDP."

44

u/cabbagesweetner 1h ago

Much better punchline

104

u/winter-m00n 1h ago

there is no repeat in udp, is it?

90

u/sirkubador 1h ago

nope

if this was a udp joke, you wouldn't get it

7

u/Feisty_Manager_4105 1h ago

perhaps repeatedly ask him every 5 seconds

•

u/TraditionalYam4500 5m ago

I see what you did there.

70

u/Kidplayer_666 1h ago

“Can you tell me a udp joke?”

“You might not get it”

18

u/GreatArtificeAion 1h ago

Interviewer: Explain UDP to me.

Candidate: Sorry, I may not have gotten all of that. What's your next question?

9

u/Martin-Hatch 31m ago

Interviewer: Can you explain TCP?

Candidate: Can we shake hands first?

•

u/Zeikos 1m ago

Be QUIC about it

7

u/TheFel0x 47m ago

This has got to be ragebait.

6

u/sainglend 1h ago

It is the place few Michiganders live.

4

u/jeffrecode 1h ago

No, that's DUP

4

u/Gen_Hospital 34m ago

Technically, they should just wait untill the interviewer repeats themselves, or the interviewer should just ask 3 (or 5) times unprompted.

19

u/qengineer 2h ago

No, the candidate passed. The interviewer was using UDP and refused to repeat themselves.

26

u/AkodoRyu 1h ago

Asking for repeat is not part of the protocol to begin with.

3

u/TohveliDev 1h ago

But then if the interviewer does repeat the question, it becomes TCP.

3

u/Skycl4w 1h ago

They should also agree that they are talking to each other before asking questions. Consent matters.

1

u/rosuav 1h ago

Doesn't have to. You can, for example, send a DNS request on port 53 UDP and get back a response (also UDP) that tells you that you can't get that information (eg SERVFAIL). Though, if you asked for *too much* information, then the correct response is to switch to TCP, so in a very different sense, it would in fact become TCP.

1

u/dinklezoidberd 1h ago

That’s a good point! I’d like to shake your hand.

7

u/cdtoews 1h ago

I once answered this question like this "I'd tell you a joke about UDP, but I'm not sure you'd get it"

2

u/regidud 1h ago

I will tell you once, I don't care if you get it

2

u/sirkubador 1h ago

You definitely can develop tcp on top of udp, it is in fact quite quic

3

u/AtheIstan 1h ago

What's upd?

•

u/TraditionalYam4500 1m ago

IMO this is the best answer! That or “UP could mean the Upper Peninsula of Michigan or Uttar Pradesh.”

1

u/PM-ME-UR-DARKNESS 1h ago

Oh that's funny

1

u/ramriot 1h ago

So a failed interview question either way

1

u/OnceMoreAndAgain 11m ago

You're not the boss of me now and you're not so big.