2 ms·
Its generally a terrible idea to increase UDP MTU. There's no reliable reassembly in UDP. If you miss a single packet (out of say 1000) then all are simply disc
by JoeAltmaier 11y ago
Its generally a terrible idea to increase UDP MTU. There's no reliable reassembly in UDP. If you miss a single packet (out of say 1000) then all are simply discarded silently.
In fact, some versions of Linux didn't do UDP reassembly properly until a year ago (was a topic here on HN). Reordered UDP wasn't dealt with properly if I recall.
There are routers that drop UDP for any reason or no reason. And so on. So UDP is the red-headed stepchild of protocols, with little testing going on and lots of issues.
I recommend putting a protocol on top of any UDP transfer you code, and never increasing the MTU.
- golem_de 11y agoMan, you know, it's just a packet, not 1.500, but 65.535 bytes. There could be 4.294.967.295 bytes!!! :-) For basically everything TCP is used. UDP is just used by DNS and they usually weight 100 - 200 bytes. Look into your wireshark!
- JoeAltmaier 11y agoThe UDP packet, and what goes out on the wire, are different things. IP-over-Ethernet for instance does not send out data in units larger than 1500 bytes; often smaller over WiFi. So UDP packets larger than 1500 bytes will be divided up, and reassembled on the receive end.