当前位置:网站首页>TCP slicing and PSH understanding
TCP slicing and PSH understanding
2022-07-04 11:21:00 【Ascetic monk runnercai】
First of all IP section :
The link layer is the largest MTU( Maximum transmission unit ) It's usually 1500, Link layer is not included 14 Byte header , therefore jIP Transmitted from the network layer to the link layer IP The maximum package size cannot exceed 1500, But if more than 1500 What do I do ?
In fact, this situation will not happen , When IP When the layer receives data and is ready to send it to the link layer , Will definitely detect IP Whether the size of the package exceeds that of the current host MTU, If it exceeds, it will be divided , We know ,MTU Can be set , If the next route MTU What if it is smaller than the last one ? It's simple , Routing will be in IP Layer is divided ? But the premise is IP It is set to allow segmentation , If IP Fragmentation is not allowed , Then the bag will be discarded , So some people are cheap , The routing has been enlarged MTU, I found that all networks can't be linked ( It's bigger MTU, Cause the next hop of the route to receive more than yourself MTU Large link packets , Unable to deal with , discarded ).
Router MTU Why is the setting too large to open the website
IP Slice and recombine
except IP Out of slice ,TCP Also in pieces , therefore TCP Your bag is usually IP The layers will not be divided , Only UDP and ICMP Your bag will be in IP Layering .
But the latest operating system supports NPU Fragmentation , So there's no need to TCP It's split , Can reduce the TCP The transmission bandwidth of the header is wasted .
Why? TCP/IP The package length will be greater than MTU?
TCP Transmitted data slices and ACK Introduce
The following article talks about TCP After slicing, its TCP package flag The change of .
TCP Protocol flag bit PSH The role of
stay tcp In transit , The party we accept data recv(), When can I read the data , The first is that the cache is full , The second is PSH sign ( Whether the cache is full or not ) All are immediately handed over to the application layer .
Transport layer TCP\UDP Why port ? Used to distinguish which one fd Receive the data .
IP The layer is determined by the protocol field in its header to be TCP still UDP.
TCP One packet at a time , The receiver replies with a ack Do you ?
Linux Of TCP SACK(Selective Acknowledgment)
边栏推荐
- Postman advanced
- Understanding of object
- Reptile learning winter vacation series (2)
- Four sorts: bubble, select, insert, count
- Appscan installation steps
- Analysis function in SQL
- JMeter correlation technology
- MBG combat zero basis
- VPS安装Virtualmin面板
- Canoe - the third simulation project - bus simulation - 3-1 project implementation
猜你喜欢

JMeter correlation technology

SQL greatest() function instance detailed example

Canoe - the third simulation project - bus simulation-1 overview

2018 meisai modeling summary +latex standard meisai template sharing

Login operation (for user name and password)

Function parameters (positional parameters, default value parameters, variable parameters, named keyword parameters, keyword parameters)

Introduction to canoe automatic test system

Canoe - description of common database attributes

Foreach (system.out:: println) usage

XMIND installation
随机推荐
CAPL: on sysVar_ Update difference on sysvar
First article
Canoe: what is vtsystem
What if the book written is too popular? Author of "deep reinforcement learning" at Peking University: then open the download
Iterator generators and modules
(2021-08-20) web crawler learning 2
JMeter Foundation
Four sorts: bubble, select, insert, count
Fundamentals of database operation
Ten key performance indicators of software applications
QQ one click cookie acquisition
Day01 preliminary packet capture
F12 clear the cookies of the corresponding web address
Data transmission in the network
Summary of collection: (to be updated)
JMeter assembly point technology and logic controller
Simple understanding of generics
Postman advanced
unit testing
Get the data of the top 100 headlines today with Tianxing data