Find a detailed explanation of the problem of normal QQ but extremely slow access speed under VPN ne
Summary:In our actual VPN networking, we often encounter such problems: 1) Some websites have no browsing issues, while others are very slow or even impossibl…
This book is available as an e-book in EPUB format
PayPal sponsors this website for any amount. I will send you an EPUB e-book via email. Please send me an email
Email: shuxueha@outlook.com
PayPal: https://paypal.me/zhipinglei
You can also scan the PayPal QR code below to sponsor
You can also purchase this book on Amazon: click to enter the Amazon official website
In our actual VPN networking, we often encounter such problems: 1) Some websites have no browsing issues, while others are very slow or even impossible to browse. QQ and other platforms are functioning normally without any issues. 2) Cannot download large files. 3) Email cannot send large attachments.
Problem Analysis:
Usually, this is due to a mismatch in path MTU, especially when passing through VPN links such as ADSL PPPOE dial-up, L2TP, PPTP, IPSEC, GRE tunnels, etc. Taking GRE tunnel as an example to illustrate the issue of MTU, other tunnel protocols are similar except for the difference in header bytes.
Topology structure:
A GRE tunnel has been established between VPN gateways 1 and 2, and the external ports of VPN1 and VPN2 are both Ethernet ports with an MTU of 1500. PC and SERVER visit each other through this GRE tunnel.
Analysis process:
When ping-f-l 1448 SERVER, the PC can ping, but when ping-f-l 1449 SERVER, it receives a message with an unsegmentable error.
The length of the IP packet from the PC is 1448+8 (ICMP)+20 (IP), which reaches VPN gateway 1. VPN gateway 1 sends it to the GRE tunnel port, encapsulates the GRE header (4), and adds the outer IP header to reach the outer Ethernet port of the VPN gateway. At this point, the length of the IP packet has become: 1448+8+20+4+20=1500 bytes, which is exactly equal to the MTU of the Ethernet port, and it is successfully transmitted. When ping 1449, the outer Ethernet port reached 1501 bytes, exceeding the MTU of 1500. Also, because the DF bit of the message was set, the modified message could only be discarded and a DF error was returned.
The occurrence of this result in the above experiment is due to the DF being set, which prevents sharding. But if DF is not set, it can pass normally but there may be fragmentation. However, many servers such as WEB do not allow sharding of packets sent out to improve efficiency and security issues. And most devices such as firewalls and IPS usually do not allow sharding to pass through. Therefore, some websites cannot be browsed and large files cannot be transferred.
resolvent:
Assuming the PC has established an HTTP connection to the SERVER and wishes to download a large webpage from the SERVER. After receiving the request from the PC, the SERVER starts sending large web page files. The DF position of the IP is 1 and fragmentation is not allowed. The length of the IP packet is 1500 bytes. After arriving at the Ethernet port of VPN gateway 2, VPN gateway 2 found that its length exceeded 1500 bytes, so it discarded it and sent back an ICMP message to the SERVER stating that the destination address was unreachable, while indicating "MTU of next hop: 1500". After receiving the message, the PC sent it to the outside in 1500 bytes and then discarded it, forming a loop and unable to communicate.
Based on the above analysis, it is easy to come up with the following solution: set the MTU to 1500-4-20=1476 on the output interface of VPN gateway 2, so that when VPN gateway 2 returns an ICMP unreachable message, it will give "MTU of next hop: 1476". SERVER will use 1476 as its maximum MTU for external transmission, reaching VPN gateway 1. After encapsulating GRE and outer IP headers, it will not exceed 1500 and will be sent smoothly to the other end. This is the solution to the download issue. To solve the upload issue, simply modify the MTU in the corresponding interface direction. Of course, TCPMSS can also be modified, but this affects the Windows version of TCP and reduces packet length. It is also feasible to modify the maximum MTU value of the operating system, but it can be quite cumbersome.
| High-speed VPN | Fast VPN | Preferred Accelerator VPN | Reliable VPN |
| High quality VPN | Old fashioned VPN | Stable VPN(Recommend) | Smooth VPN |

