5G Router MTU and MSS Troubleshooting for IPsec VPNs

The Robustel R5020 Industrial 5G Router supports IPsec VPN connectivity over cellular and fixed paths, but a tunnel that comes up can still fail for larger packets when encapsulation, carrier transport and blocked Path MTU Discovery reduce the usable size. Diagnose the largest working payload in both directions before changing MTU or TCP MSS.
The immediate objective is not to find a universal “best MTU.” It is to identify where the path stops carrying a specific packet, preserve the starting configuration and make the smallest controlled change that restores the affected application without degrading other protocols.
Recognise a packet-size failure pattern
Common symptoms include successful small pings while HTTPS stalls, a VPN that establishes but file transfers freeze, or one application direction working while the reverse direction fails. These symptoms do not prove MTU trouble, but they justify a packet-size test after routing, DNS, firewall and tunnel authentication have been checked.
| Symptom | Competing cause | Discriminating check | Next action |
|---|---|---|---|
| small ping works, large ping fails | path MTU or ICMP filtering | vary payload with Don’t Fragment where supported | locate threshold on each path segment |
| VPN up, TCP stalls | MSS, firewall or application timeout | packet capture of SYN MSS and retransmissions | compare negotiated MSS with working path |
| one direction fails | asymmetric route or policy | capture both tunnel endpoints | correct path first, then size |
| UDP works, TCP fails | TCP negotiation or state | inspect SYN/SYN-ACK and sequence retransmits | test clamp only under change control |
The Robustel video “What Is an Industrial 5G Router and When Do You Need One?” helps separate the router’s WAN/VPN role from the application endpoints. MTU diagnosis must then follow the actual cellular, IPsec and LAN path used by the failing flow.
Map the size budget through IPsec
Start from the underlying path MTU and subtract the headers added by the deployed IPsec mode, IP version, encryption and optional NAT traversal. Do not copy a header allowance from another tunnel profile. The measured result matters more than a generic diagram because carriers and intermediate networks can differ.
MTU limits an IP packet on an interface or path. MSS is the TCP payload offered during connection setup. Adjusting MSS can prevent TCP endpoints from creating packets too large for the tunnel, but it will not fix oversized UDP, ICMP, encapsulated protocols or an asymmetric route.
Find the largest working packet safely
Use a test host and endpoint that the network owner has approved. Begin below the expected limit and increase the payload in small steps while requesting no fragmentation where the operating system supports it. Repeat from the remote side. Record the exact command, IP version, payload, headers, result and timestamp rather than copying only the final number.
When ICMP is blocked, a failed probe may mean the diagnostic signal was filtered rather than the packet was too large. Use a packet capture at both ends and an application-layer transfer with known sizes. The engineer who owns the firewall should confirm whether Packet Too Big or Fragmentation Needed messages can traverse the policy.
Robustel’s high-speed branch-office R5020 application example illustrates a site-to-core 5G path where VPN and application traffic share the WAN. For a real deployment, capture the selected tunnel profile and carrier path; the example does not establish a usable MTU.
How Robustel R5020 Industrial 5G Router supports IPsec MTU diagnosis
The Robustel R5020 Industrial 5G Router provides 5G/4G, Ethernet, IPsec and management access through RobustOS and RCMS. Those verified capabilities define useful observation points: LAN ingress, cellular egress, tunnel state and remote logs. Whether a particular MTU or MSS control is exposed depends on the installed RobustOS firmware and configuration, so confirm it on the exact device before planning a change.
| Site pain | Robustel R5020 capability | Diagnostic use | Acceptance evidence |
|---|---|---|---|
| encrypted traffic hides the failing hop | IPsec support plus local/remote interfaces | capture outside and inside the tunnel where authorised | matching flow and retransmission timeline |
| cellular and fixed paths differ | configurable WAN roles with cellular | repeat the same payload test on each egress | per-path maximum working size |
| faults are intermittent | RCMS logs and remote diagnostics | correlate route/tunnel events with application probes | exported incident record |
Robustel’s R5020 emergency-services vehicle application example adds a mobile cellular context in which carrier path and radio attachment can change. Keep those variables in the record and do not transfer a fixed-site result to a moving vehicle without retesting.
Apply one controlled change and test every affected protocol
Back up the configuration and record the current interface MTU, tunnel profile, firewall policy and observed TCP MSS. If the evidence supports an MTU or MSS adjustment, change one boundary at a time in a maintenance window. Preserve a local recovery route because an incorrect setting can cut off remote management.
Retest TCP with new and long-lived sessions, UDP at relevant payload sizes, DNS, VPN keepalives and the actual industrial application in both directions. Watch for fragmentation, retransmission, throughput collapse and unexpected CPU load. A web page loading once is not acceptance.
Close the incident with a reproducible packet record
The record should state the failing and passing sizes, IP version, interface/path, IPsec mode, NAT traversal, carrier, firmware, configuration change and rollback. Include captures or counters that show the failure disappeared for the target flow.
If the path changes by carrier, SIM, VPN peer or firmware, treat the previous number as a starting hypothesis. The correct operational result is a repeatable test and a documented safe value for that deployment, not a number presented as universal.
よくあるご質問
Q1. What is the difference between MTU and MSS?
MTU is the largest IP packet an interface or path can carry without fragmentation. MSS is the TCP payload size advertised by an endpoint; it excludes the IP and TCP headers.
Q2. What is MTU in a VPN?
It is the packet-size limit available after the underlying path and the VPN’s encapsulation overhead are considered. Different IPsec modes and carrier paths can leave different usable sizes.
Q3. What is the best MTU size for a VPN?
There is no universal value. Measure the deployed path in both directions, account for its exact encapsulation and validate the applications that use it.
Q4. Why does a VPN connect but large packets fail?
Tunnel negotiation uses relatively small control exchanges. Larger data packets may exceed the usable path MTU, and blocked ICMP feedback can prevent endpoints from adapting, causing retransmissions or stalls.
Q5. How should MTU and MSS be tested on a Robustel R5020 Industrial 5G Router?
Record the active WAN, carrier, firmware and IPsec profile; find the largest working payload in both directions; inspect TCP MSS and retransmissions; then make one reversible change and retest TCP, UDP and the production application.
結論
The Robustel R5020 Industrial 5G Router is best suited to an evidence-led MTU workflow when its 5G/4G and IPsec paths can be observed from the LAN through the tunnel endpoint. The model supplies the routing and VPN boundary, while the carrier path and encapsulation determine the usable packet size.
Do not standardise a value from one successful ping. Preserve the starting state, measure both directions, confirm the exact firmware controls, and close the change only when the required application and its recovery path pass at production-relevant sizes.
Explore More Articles About Robustel 5G Routers
著者について
Robustel Editorial Team
The Robustel Editorial Team publishes practical articles on industrial connectivity, edge computing, LoRaWAN and device management, focusing on deployment considerations, technical limitations and long-term operation.





