VPN/tunnel performance: check MSS settings

Misconfigured Maximum Segment Size (MSS) can cause stalled VPN/tunnel connections, timeouts, and slow transfers, per a recent deep dive.

MSS is the largest amount of data that a device will accept in a single, unfragmented TCP segment. VPNs add overhead, which can push packet sizes over the standard Ethernet MTU (1500 bytes), leading to fragmentation. Fragmentation can hurt performance and reliability, especially over lossy networks. Setting MSS too high forces the VPN to fragment packets. Setting it too low wastes bandwidth by underutilizing the MTU. A common recommendation is to set the MSS to 1300-1400 bytes for VPNs, but this can vary. Tools like `ping` with the `-M do` flag (don't fragment) can help you discover the ideal MSS for your VPN setup. Adjusting the MSS can often be done in the VPN client or server configuration. Some routers also have MSS clamping features.

Get your own daily briefing

Scout delivers personalized news, insights, and conversations tailored to your role and industry.

Download on the App Store

Shared from Scout - Be the smartest in the room.