2 ms·
UDP is just a thin wrapper on an IP packet that adds port and checksum. This in turn is just a thin wrapper on whatever underlying network packets you use. So
by api 10y ago
UDP is just a thin wrapper on an IP packet that adds port and checksum. This in turn is just a thin wrapper on whatever underlying network packets you use.
So UDP packets are as reliable as TCP packets in principle. TCP just hides the unreliability with flow control and retransmits.
- JohnStrange 10y agoThere is also UDT as a reliable UDP-based alternative to TCP. Some day I'd like to hear from someone who used it whether it's worth it and when it makes sense.
- rhinoceraptor 10y agoAlso, if you use Chrome, you're probably already using QUIC. Go to chrome://net-internals/#quic to see for yourself.