UDP. UDP is the User Datagram Protocol. UDP allows you to send packets of binary, and the only guarantee it provides is that if a packet arrives, it won't be corrupted. If the packet was corrupted, it will simply be thrown away before you ever receive it.
What does UDP guarantee? UDP provides some data integrity via a checksum but does not guarantee delivery. The checksum calculation is only to confirm the frame (or packet) received is intact. If not, there is no retransmit request and the frame (or packet) is discarded.
Unlike TCP, UDP does not need acks or retransmissions because it does not guarantee reliability. Transport protocols such as TCP and UDP work by sending segments from a sender node to a receiver node across the Internet. The actual job of sending a segment is subcontracted to the Internet routing protocol IP.
UDP uses a simple transmission model that doesn't include handshaking dialogues to provide reliability, ordering or data integrity. Consequently, UDP's service is unreliable.
Is it possible for UDP data to come to you corrupted? I know it is possible for it to be lost.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With