I Lost 30% of My UDP Packets — and the Network Was Innocent
The article describes a developer's experience with a 30% UDP packet loss that was initially suspected to be a network problem. After thorough investigation, including network diagnostics and packet captures, the root cause was identified as a misconfigured application-level receive buffer. The buffer was too small to handle the incoming packet rate, causing the kernel to drop packets before the application could process them. The developer resolved the issue by increasing the buffer size, which eliminated the packet loss. The story highlights that not all packet loss is due to network conditions; application configuration can be a culprit. The author emphasizes the importance of profiling and understanding system internals when debugging such issues.
UDP packet loss can stem from application configuration, not just network issues, requiring developers to profile their own code.