大网数据广告活动
服务器运维问答

Why isn't TCP corruption more noticeable?

· 52CE 我爱测

First of all, apologies if this seems a somewhat simplistic question. According to this answer , TCP packets are corrupted all the time without the checksum catching it. If this happens so often, why is it not more noticeable? Sh…

问题原文

原帖链接 · dt-rush · CC BY-SA 3.0

First of all, apologies if this seems a somewhat simplistic question.

According to this answer, TCP packets are corrupted all the time without the checksum catching it.

If this happens so often, why is it not more noticeable? Shouldn't this result in corrupted images, script files containing the wrong ascii characters, etc.?

Of course people tend to run an md5 checksum on critical files, but for average and daily networking applications, why doesn't this cause more havoc than it seems to? (it seems as though it doesn't even happen, but the statistics and logic checks out in that answer)

已采纳解答

原帖链接 · Steffen Ullrich · CC BY-SA 3.0

If this happens so often...

It doesn't and the answer you refer to does not claim that it does. "Often" would mean that a large number of packets are corrupted relative to the absolute number of packets transferred. But this is not the case. While the answer you refer to claims that many packets are corrupted the corruption is still rare compared to the absolute number of packages transferred.

Apart from that there might be additional protections on top of TCP. For example TLS (as used in HTTPS) will notice practically every data corruption since the HMAC used for detecting data manipulation is far more robust (but has also more overhead) than the simple CRC used in TCP. While detecting problems at this stage will not cause a retransmit of the data as would be done with TCP checksum errors the connection would simply be considered broken and would thus be indistinguishable from the many others errors one gets with broken connection on the daily basis. Similar, due to the way image formats work corrupted data in an image will usually be either practically invisible or will result in the whole image being broken (failed to render or cut off in the middle), which also looks similar to typical connectivity problems.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-03-08)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。