当前位置:网站首页>Network layer and transport layer restrictions
Network layer and transport layer restrictions
2022-07-29 11:49:00 【Meme_xp】
network level restrictionsmtu
最大传输单元,由硬件网卡设置MTU,是一个硬性限制
数据链路层的有效数据,最小46byte,最大一般1500byte,这里的最大就是MTU,MTU表示网络层必须将发给网卡API的包 <= 1500byte,否则调用失败
为什么要有MTU
以太网最初对报文长度没有限制,网络层最大可以接收65535个字节,但是以太网对于长报文无法可靠地传输,而且丢失后重传也会占用大量的网络资源,而将报文限制在一定的长度,以太网可以将报文大概率传输到目的地,于是就有了MTU
udpWhat is the maximum package
对于UDP包,如果MTU = 1500,那么udp payload最大值是多少,才可以不用分片?
MTU(1500) = IPHeader(20) + UDPHeader(8) + Data Data = 1500 -20 - 8 = 1472
传输层
传输层的限制 —— MSS
下面来看看如何基于mss最大报文段大小来进行TCP报文段的拆分.
mms最大为1460

定义:
仅指 TCP 承载数据,不包含 TCP 头部的大小
如何协商mms大小
TCPDuring the three-way handshake to establish a connection,会在SYN报文中使用MSS(Maximum Segment Size)选项功能,The maximum segment length that can be received by both parties in the negotiation interactionMSS值.
边栏推荐
猜你喜欢

如何对SQuAD1.1数据集进行预处理「详解版」

How to start writing helm charts for your kubernetes application

QML(二):设置自定义窗体

通过递归的方式实现树形结构

How to use grep to find pattern matching across multiple lines

宝塔快速搭建自适应咖啡网站模板与管理系统源码实测

Kubernetes基本概念
![[image detection] Research on cumulative weighted edge detection method based on gray image, with matlab code](/img/c1/f962f1c1d9f75732157d49a5d1d0d6.png)
[image detection] Research on cumulative weighted edge detection method based on gray image, with matlab code

Learning with Recoverable Forgetting readings

IPV6基础
随机推荐
2022最新 wifi大师小程序独立版3.0.8
Learning with Recoverable Forgetting阅读心得
Based on the flask to write a small shopping mall project
IPV6基础
It is recommended to collect a thousand ways to write sql row to column!!
Why should kubernetes be used in development environments
Learning with Recoverable Forgetting readings
使用Tenserboard可视化深度学习训练过程
Insights into the development of the enterprise live broadcast industry in 2022
[image detection] Research on cumulative weighted edge detection method based on gray image, with matlab code
路径依赖 - 偶然决策导致的依赖。
How to use grep to find pattern matching across multiple lines
mysql single-line, multi-line subquery
Basic. Blocking
即学即用的问题解决思维,给无意识的生活装上“后视镜”
593. 有效的正方形
微信云托管入门与实践
Meituan and hungry were interviewed by Hangzhou supervisors to implement the responsibility of food safety management and prohibit malicious competition
QML(二):设置自定义窗体
【每日SQL打卡】DAY 26丨餐馆营业额变化增长【难度中等】