为什么tcpdump显示有效载荷的最大长度为4096字节?

发布于 2025-01-26 23:15:10 字数 225 浏览 2 评论 0原文

我刚刚创建了一个示例Web服务器和客户端,我想在POST请求(Localhost)中观察两者之间的数据包。我在使用tcpdump时注意到的是,当我发送一个大请求主体时,tcpdump显示最大长度为4096的段。我不确定这是否与TCPDUMP或TCP有关,但是当我发现TCP包的有效载荷长度可以是65535字节,我真的不明白为什么它被切成这么多小块。不像这是一个问题,我真的很好奇,没有找到有关此的任何可用信息。

提前致谢!

I just created a sample web server and client, and I wanted to observe the packets between the two in a POST request (localhost). What I noticed while using tcpdump, is that when I send a large request body, tcpdump shows segments with length 4096 max. I'm not sure if this has something to do with tcpdump or TCP should work like this, but as I found the payload length for a TCP packet can be 65535 bytes, and I can't really understand why Is it chopped into so many little chunks. Not like It is a problem, I'm just genuinely curious and did not found any usable information about this.

Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文