1212
How TCP and UDP packets come to the world
(lemmy.one)
Post funny things about programming here! (Or just rant about your favourite programming language.)
From what I can tell yes. There's no established connection, the data is sort of just broadcasted.
Edit: I was operating under a misunderstanding, please refer to andrew's response.
Broadcast would mean it's sent to anyone. UDP packets still usually have a unicast address and thus are routed by routers and switches to specific machines, but as a connectionless protocol, UDP never validates which, if any, packets are received by the recipient like TCP does. If any verification is needed that needs to be handled higher in the OSI stack. E.g. by the application layer.
No no, it's not "broadcasted". It still has a fixed sender and receiver IP address, but UDP doesn't verify whether the receiver got the data or not. You can implement that over UDP, but you have to do it yourself.
With TCP, the packet will retransmitted automatically if the receiver didn't tell the sender "yep, I got it".