3 ms·
My favorite example of this was a user who wrote to me about audio streaming software that he could use with classical music, but that disconnected when used to
by mikeash 14y ago
My favorite example of this was a user who wrote to me about audio streaming software that he could use with classical music, but that disconnected when used to stream rock and roll.
After a great deal of highly baffling troubleshooting, I finally figured it out. The streaming software sent the music over UDP, where each packet contained a pre-set amount of audio encoded with a lossless codec. Classical compresses better than rock, so it generated smaller UDP packets. The guy had somehow managed to set the MTU of his LAN interface to 1200 bytes, and the software was using IPv6, which doesn't do IP-level fragmentation when the MTU is below 1280 bytes.
When playing classical music, every audio packet was less than 1200 bytes. When playing rock, an occasional packet would not compress well and end up too large, then fail to send. The software would then abort the connection in response to the error.