TCP 连接的最大数据包大小 [英] Maximum packet size for a TCP connection

查看:120
本文介绍了TCP 连接的最大数据包大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

TCP 连接的最大数据包大小是多少?如何获得最大数据包大小?

What is the maximum packet size for a TCP connection or how can I get the maximum packet size?

推荐答案

TCP 数据包大小的绝对限制是 64K(65535 字节),但实际上这远远大于您将看到的任何数据包的大小,因为较低层(例如以太网)具有较小的数据包大小.

The absolute limitation on TCP packet size is 64K (65535 bytes), but in practicality this is far larger than the size of any packet you will see, because the lower layers (e.g. ethernet) have lower packet sizes.

例如,以太网的 MTU(最大传输单元)为 1500 字节.某些类型的网络(如令牌环)具有较大的 MTU,而某些类型具有较小的 MTU,但每个物理技术的值都是固定的.

The MTU (Maximum Transmission Unit) for Ethernet, for instance, is 1500 bytes. Some types of networks (like Token Ring) have larger MTUs, and some types have smaller MTUs, but the values are fixed for each physical technology.

这篇关于TCP 连接的最大数据包大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆