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

查看:897
本文介绍了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天全站免登陆