当前位置:网站首页>Network packet loss troubleshooting
Network packet loss troubleshooting
2022-06-12 06:47:00 【wwwlyj123321】
Use ethtool -S Check the statistics of network interface receiving and contracting
MTU:Maximum transmission unit——the size of the largest packet that a network protocol can transmit
MTU yes IP The largest unit of data that a packet can transmit at a time , More than this size will be subcontracted , However, if subcontracting cannot be performed , Will result in packet loss .
MSS Namely IP The maximum segment of data that can be transmitted per packet , This value is MTU Value minus IP Packet header size 20Byte and TCP Header of data segment 20Byte. namely Mss+40=MTU.
give an example : Such as client Mechanical MTU yes 1500,Server Mechanical MTU yes 1440. I always thought MSS Negotiation is client and server Their respective mss Take the minimum value as this time tcp Communicating mss value . But after checking the data, we found that ,client Provided mss yes 1460 (mss = mtu – 40 = 1500 – 40 = 1460) It means from server To client The data part of cannot be greater than 1460, Whole IP Package cannot exceed 1500, and server Proposed mss yes 1400(mss = mtu – 40 = 1440 – 40 = 1400) It means from client To servr The data part of cannot be greater than 1400, Whole IP Package cannot exceed 1440.
Need to focus on IP Tunnel technology , Such as LVS Of LD To RS,IPSEC Etc IP Caused by the tunnel MTU increase ( notes :IP Tunneling technology is the use of IP delivery IP Package technology , Will be in the original IP Package plus new IP First class information , Lead to IP The packet size becomes larger , Maybe more than MTU Value ), Exceed corresponding client perhaps server Maximum MTU The link is blocked , This is the time , It usually passes in the opposite direction icmp The packet perimeter tells the sender , such as : This ICMP The packet tells the sending source , The next dance MTU yes 1450, The packet you sent is too large and needs to be fragmented . But your bag IP There is a non sharable in the head , So I can only throw away my bag , Let me inform you , Resend a smaller package .
- ifconfig ${Interface} mtu ${SIZE} up
- ifconfig eth1 mtu 9000 up
This is the most common method , For all the linux All releases are valid . The disadvantage is that it fails after restart , Need to load... In boot entry
ref:
How to locate the network packet loss fault ? How to solve ? - You know
Cloud network packet loss fault location panoramic guide
A wonderful network problem , Put technology into the home " I'm confused "
ethtool Principle introduction and troubleshooting ideas for network card packet loss - You know
Network card packet capturing and packet loss troubleshooting 1 - Simple books
边栏推荐
- Idea common shortcut keys
- Leetcode January 10 daily question 306 Additive number
- The difference between get and post and the code implementation of message board
- Detailed explanation of convirt paper (medical pictures)
- Zhang Chi's class: Notice on the time of CAQ Six Sigma test in 2022
- Process when solving vagrant up_ builder. rb:43:in `join‘: incompatible character encodings: GBK and UTF-8
- 最近面了15个人,发现这个测试基础题都答不上来...
- Set [list] to find out the subscript of repeated elements in the list (display the position of the subscript)
- June 9th training day - bit operation
- 2 variables and basic types
猜你喜欢
随机推荐
leetcode:890. Find and replace mode [two dict records set]
5 statement
Codeforces Round #793 (Div. 2) A B C
8. 表单标签
The seventh day of June training - hash table
PowerDesigner connects to entity database to generate physical model in reverse
C language pointer
The difference between get and post and the code implementation of message board
数据库语法相关问题,求解一个正确语法
Leetcode January 10 daily question 306 Additive number
LeetCode-1490. Clone n-ary tree
It only takes 10 minutes to understand the underlying principle of NiO
Leetcode: Sword finger offer 63 Maximum profit of stock [record prefix minimum and or no brain segment tree]
Computer composition and design work05 ——fifth verson
Idea common shortcut keys
Descscheduler secondary scheduling makes kubernetes load more balanced
The first day of June training - array
报表工具的二次革命
Apache POI import export excel file
Tomato learning notes-stm32 SPI introduction and Tim synchronization









