Skip to main content
5 events
when toggle format what by license comment
Mar 8, 2018 at 19:48 comment added Jörg W Mittag In UDP, a truncated datagram would be discarded by the UDP stack before it even reaches the application. In UDP-lite, a truncated datagram would be passed to the application to deal with as it pleases. Modern audio and video codecs have sophisticated ways to conceal bad data, it is much better for them to receive part of a datagram or a datagram with a couple of corrupt bits than lose the entire datagram (several thousand bits worth of data).
Mar 8, 2018 at 19:45 comment added Jörg W Mittag That depends on what you mean by "payload". UDP datagrams contain a length and a checksum, so if a UDP datagram became corrupted, you could detect it. However, even writing and checking the checksum may be too slow for some applications (in order to write the checksum, you have to know the entire content, but the checksum is in the header, so you cannot start sending the content and add the checksum later, likewise, you cannot check the checksum until you have received the whole datagram). For that reason, UDP-lite exists, which allows to forego the checksum and even the length.
Mar 8, 2018 at 19:43 comment added Thomas Owens @nullReference It depends. That's a small enough message to fit into a single UDP datagram. A datagram as a whole is either received or not received. However, if you split that into multiple datagrams, then it may come out of order or be incomplete.
Mar 8, 2018 at 19:33 comment added nullReference Would there ever be an instance where only part of a payload would be received? For example if I send "Hello World" via UDP to a server, could it ever occur that only "Hello W" would be recieved? Or would it be all or nothing?
Mar 8, 2018 at 19:21 history answered Thomas Owens CC BY-SA 3.0