networking
network_error
ai_generated
partial
UDP:从10.0.0.2:12345到10.0.0.1:53的校验和错误
UDP: bad checksum from 10.0.0.2:12345 to 10.0.0.1:53
ID: networking/udp-checksum-failure
75%修复率
81%置信度
1证据数
2024-02-28首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| Linux kernel 5.15 | active | — | — | — |
| Linux kernel 6.1 | active | — | — | — |
| FreeBSD 13.2 | active | — | — | — |
根因分析
接收到的UDP数据报校验和错误,表明传输过程中发生损坏、网络接口故障或生成了无效校验和的软件。
English
The UDP datagram received has an incorrect checksum, indicating corruption during transit, a faulty network interface, or software that generates invalid checksums.
官方文档
https://www.kernel.org/doc/html/latest/networking/checksum-offloads.html解决方案
-
Check network interface for errors: ethtool -S eth0 | grep -i error
-
Update NIC driver or firmware to resolve hardware-level checksum issues: ifconfig eth0 down && modprobe -r driver_name && modprobe driver_name && ifconfig eth0 up
无效尝试
常见但无效的做法:
-
75% 失败
Disabling UDP checksum offloading (ethtool -K eth0 tx-checksumming off) may mask the issue but doesn't fix the root cause if the sender generates bad checksums.
-
80% 失败
Assuming it's a transient network issue and ignoring repeated occurrences can lead to data corruption in DNS responses or other UDP services.