当前位置:网站首页>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)
边栏推荐
- Design and common methods of test case documents
- Oracle11g | getting started with database. It's enough to read this 10000 word analysis
- Performance test method
- Serialization oriented - pickle library, JSON Library
- VPS installation virtualmin panel
- Canoe - the third simulation project - bus simulation - 3-1 project implementation
- Simple understanding of seesion, cookies, tokens
- Terms related to hacker technology
- 2021-08-09
- Data transmission in the network
猜你喜欢
Properties and methods of OS Library
Canoe - the third simulation project - bus simulation - 2 function introduction, network topology
QQ group collection
2018 meisai modeling summary +latex standard meisai template sharing
os. Path built-in module
2021-08-09
How to create a new virtual machine
Automatic translation between Chinese and English
(August 9, 2021) example exercise of air quality index calculation (I)
Function introduction of canbedded component
随机推荐
Canoe: the fourth simulation project -- bug debugging experience
Canoe - the third simulation project - bus simulation-1 overview
Replace() function
Failed to configure a DataSource: ‘url‘ attribute is not specified... Bug solution
Install freeradius3 in the latest version of openwrt
QQ get group member operation time
Take advantage of the world's sleeping gap to improve and surpass yourself -- get up early
Supercomputing simulation research has determined a safe and effective carbon capture and storage route
Terms related to hacker technology
Oracle11g | getting started with database. It's enough to read this 10000 word analysis
Discussion | has large AI become autonomous? Lecun, chief scientist of openai
本地Mysql忘记密码的修改方法(windows)
Performance features focus & JMeter & LoadRunner advantages and disadvantages
Safety testing aspects
Appscan installation error: unable to install from Net runtime security policy logout appscan solution
Performance test method
Number and math classes
Canoe - the second simulation engineering - xvehicle - 2 panel design (operation)
Canoe-the second simulation project-xvehicle-1 bus database design (idea)
2021-08-09