当前位置:网站首页>What is the slice flag bit
What is the slice flag bit
2022-06-25 06:17:00 【Programmer community】
If you look ahead MTU and MSS The article , You should know that if the data is too big , It is easy to lose in transmission , Therefore, the size of each data frame is limited on the network card , This is it. MTU, It means data sent from the network layer to the second layer (ip head +ipPayload), Not greater than MTU, If it is big, it will be discarded , This requires that data packets should be divided into packets in the network layer MTU The size of the partition package . however , Some messages are for data integrity , I don't want to be in the network layer because MTU The relationship between , It would rather discard , I am not willing to send after slicing , What about this ?
Slice flag bit
What should I do about the above problems ? It's simple , Since the message is fragmented at the network layer , I just add some information to the network layer , It is used to indicate whether slicing is allowed , This is the fragment flag bit field in the network layer protocol header

DF
Indicates whether fragmentation is allowed ,0 Can be said ,1 It means that it is not allowed to
So if you don't want the message to be sent over the network due to MTU The relationship between , It may be necessary to partition when passing through a router network card , You can send the message IP In the first part DF Value is set to 1, In this way, the router cannot be partitioned , Discard the message , At the same time ICMP To the source host
This brings out DF Another function of :
Discovery path MTU,PMTUD,path mtu discovery, Through the DF Set to 1, When some network cards in the path MTU It is too small to be divided into pieces , It will send icmp To the source host , This icmp There is this network card in the message mtu The size of information , The source host can find the smallest on the path mtu, This is it. path mtu. Source host according to pmtu, You can resend smaller ip package
MF
It means that we should ip Is the bag the last piece ,0 It means the last piece ,1 It means not the last piece
What is the purpose of this flag bit ?
Data packets are sent after being partitioned in the network layer , At the receiving end , It also needs to be reorganized at the network layer , Wait for the partition package to complete the reorganization ? Is to receive the last piece of data packet . If the last piece doesn't arrive , Recombined packets are incomplete , You can't send it to the top , You need to discard the whole package . Only complete packets can be sent to the upper layer
边栏推荐
- Getting started with mongodb
- Introduction to MySQL test run test framework
- [hand torn STL] Stack & queue
- Kubevela v1.2 release: the graphical operation console velaux you want is finally here!
- [golang] leetcode intermediate - Search rotation sort array & search two-dimensional matrix II
- 【LeetCode】40. Combined summation II (2 strokes of wrong questions)
- Investment opportunities and operational risk assessment report of China's engineering consulting industry during the 14th Five Year Plan period 2022-2028
- Technology inventory: Technology Evolution and Future Trend Outlook of cloud native Middleware
- RT thread i/o device model and layering
- Go microservice development toolkit
猜你喜欢

C simple operation mongodb
SAP ui5 tutorial for beginners part XXVI - detailed steps for using OData service with mock server trial version
What is SAP sup - Sybase unwired platform
SAP ui5 date type sap ui. model. type. Analysis of date parsing format
SAP Fiori tools and corresponding cli (command line interface)
Configuration file ui5 local in SAP ui5 tools Configuration points of yaml

Hands on deep learning (III)
Websocket in the promotion of vegetable farmers

Soft exam information system project manager_ Information system security management - Senior Information System Project Manager of soft test 026

Folding mobile phones are expected to explode, or help Samsung compete with apple and Chinese mobile phones
随机推荐
Linus' speech recordings, which were lost in 1994, were made public
Handling skills of SQL optimization (2)
Add the author watermark plugin v1.4 update to the posts of elegant grass discuz plugin - some forums post errors and bugs have been fixed
JS implementation mouse can achieve the effect of left and right scrolling
Global and Chinese benzoic acid market competition strategy and demand scale forecast report 2022
Analysis report on global and Chinese pharmaceutical excipients industry competition and marketing model 2022-2028
[interview with a large factory] meituan had two meetings. Was there a surprise in the end?
Methods for obtaining some information of equipment
Guess the size of the number
Vscode voice notes to enrich information (medium)
Go microservice development toolkit
SAP ui5 application development tutorial XXIX - Introduction to routing and navigation functions of SAP ui5 trial version
Day22 send request and parameterization using JMeter
Leetcode sword finger offer question brushing - day 27
Research Report on demand and Competitive Prospect of global and Chinese welding personal protective equipment industry 2022-2027
Three tier architecture experiment
How the sap ui5 framework performs single step debugging of batch requests
[kicad image] download and installation
Trial version of routing history and routing back and history of SAP ui5
How often should you refactor- How often should you refactor?