inet icon indicating copy to clipboard operation
inet copied to clipboard

Add UDP-Lite support

Open torokati44 opened this issue 7 years ago • 0 comments

This is a low priority feature idea - not even a request.

In at least the newer (3.x) versions, when VLC streams with RTP over UDP, it seems to default to UDP-Lite as transport protocol. This means that the generated datagrams can't be consumed by INET at the moment (through ExtInterface), because they have a non-zero, but "invalid" (if treated as simple UDP) checksum, and we don't have an option to "ignore" such checksums - nor should we, according to @levy.

The only way UDP-Lite is different from "regular" UDP is that it allows partial CRC coverage of the packet content, so it's fairly trivial to support. The length of the CRC-covered area is a socket parameter in both the receiving and the sending direction (separately), but a single pair of "global" parameters for the whole IUdp module would also be a good start. This could be added either as some additional parameters to the existing UDP module, or a subclass (subtype) of it.

At least in this one example application - VLC streaming RTP - it is really simple to switch back to good ol' UDP, so this is in no way an urgent issue, just a "nice to have" feature, with low expected cost.

torokati44 avatar Jun 05 '18 15:06 torokati44