this post was submitted on 21 Jul 2023
1242 points (99.8% liked)

Programmer Humor

37182 readers
55 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] TheSaneWriter@lemmy.thesanewriter.com 72 points 2 years ago (24 children)

This is a really good way of explaining the difference.

[–] becool@kbin.social 14 points 2 years ago (21 children)

So, UDP just sends it out there and anyone can intercept it?

[–] Clent@lemmy.world 28 points 2 years ago (10 children)

No. UDP is at the packet level. Interception is a different layer.

To use to today's language, UDP yeets the packets at you as fast as it can generate them.

It doesn't care if you catch any of them.

Don't yeet the baby.

[–] Parallax@kbin.social 3 points 2 years ago* (last edited 2 years ago) (1 children)

What do you mean interception is at a different layer? You can capture at any layer as long as the payload isn't encrypted, and if it is, you still get layers 1 through 4 (Physical, Link, Network, and Transport).

[–] andrew@lemmy.stuart.fun 7 points 2 years ago

UDP is a transport protocol. OSI layer 4. It sits atop the packet (network/L3) layer which is where IP dictates where a packet is going. A broadcast or multicast IP address would mean it can be observed by many machines, but unicast is still the most common, and is routed to just one machine.

load more comments (8 replies)
load more comments (18 replies)
load more comments (20 replies)