Small health checks succeed, but file uploads or larger API responses stall for long periods. This kind of failure should not immediately be blamed on insufficient bandwidth. Establishing a connection only proves that small packets can get through. If the path includes a lower MTU and the required ICMP errors cannot get back to the sender, TCP data may be retransmitted repeatedly. The priority is to establish which path, packet size and direction of traffic trigger the failure—not to start by changing network settings across the server.
Pin down the affected path and reproduction conditions
This article uses IPv4 communication on Debian 12 as its example. After paying for a VPSAMD dedicated server, view the credentials in the control panel and connect over SSH. If several addresses are available, use the first one for management. The diagnostic target should be the actual service peer where traffic stalls, and probing it must be permitted. Do not substitute an arbitrary public IP address.
Record the request size, whether the transfer is an upload or download, whether it passes through a proxy or tunnel, and whether the connection has already been established when it fails. Keep at least two sets of tests: small requests and large requests. Disable automatic retries so they do not obscure the results. If only one application fails, check its timeouts and processing logs first. Network-layer evidence is more meaningful when several applications show similar stalls along the same path.
Install the tools and enter the actual peer's IPv4 address:
sudo apt-get update
sudo apt-get install iputils-ping iputils-tracepath tcpdump
read -r -p 'Peer IPv4: ' PEER
ip -4 route get "$PEER"
ip -br link
In the route get output, dev is the outgoing interface and src is the selected source address. Use the same source address for subsequent probes. If policy routing is in use, also check ip rule show. Results from different outgoing paths cannot be combined into a single conclusion.
Distinguish interface MTU from path MTU
The interface MTU defines the size of IP packets that the local link can transmit. The path MTU is constrained by the lowest limit along the entire path. Tunnel encapsulation consumes additional space, so even if the physical interface reports a larger value, an inner packet may not pass through intact.
Traditional IPv4 path MTU discovery relies on the don't-fragment flag and “fragmentation needed” ICMP errors returned by routers. If those errors are filtered, the sender may not reduce its packet size in time, creating a black-hole stall. Different network stacks may also use other probing mechanisms, so a single timeout is not enough to establish the cause.
read -r -p 'Source IPv4: ' SRC
read -r -p 'Outgoing interface: ' IFACE
ip link show dev "$IFACE"
ip -4 route get "$PEER" from "$SRC"
tracepath -4 -n "$PEER"
The pmtu reported by tracepath is a diagnostic clue, not a guarantee for every service connection. Devices that do not respond, filtered UDP probes or changes in the path can all leave the results incomplete.
Do not disable the entire firewall for testing, or directly lower the MTU of the interface carrying your SSH management connection. Preserve the current state and evidence first, then make targeted changes that can be rolled back.
Find the size threshold with don't-fragment probes
In Linux ping, -s specifies the length of the ICMP payload, excluding the IP and ICMP headers. Without IPv4 options, those headers normally total 28 bytes. For example, a 1472-byte payload corresponds to a 1500-byte IP packet. This is a calculation example, not a statement of a fixed MTU on the VPSAMD network.
for SIZE in 1200 1360 1400 1472; do
printf '\nPayload: %s bytes\n' "$SIZE"
ping -4 -n -I "$SRC" -M do -c 3 -W 2 -s "$SIZE" "$PEER"
done
If smaller packets consistently succeed and larger packets consistently fail, narrow the test range between them. Change only the length each time, keeping the source and destination addresses the same. Adding 28 to the largest successful payload length provides only an estimate for that particular IPv4 ICMP probe.
Distinguish three types of output: a local “message too long” error means that a known limit on the current interface or route prevented transmission; a received “fragmentation needed” error means that the path explicitly reported a limit; a timeout alone is inconclusive and may simply mean that ICMP replies are being filtered.
If every length fails, these probes have not established a valid baseline. If large packets sometimes succeed and sometimes fail, consider packet loss, different paths or changing load. Do not immediately treat one length as a fixed threshold. The return path may also differ; if necessary, run reverse-direction tests from a peer under your control.
Cross-check with TCP evidence
ICMP probes and actual service traffic may be handled by different rules. The next step is to observe the connection while reproducing the request, rather than simply running more pings.
First inspect TCP state and retransmission information, then briefly capture the relevant packets:
ss -tin dst "$PEER"
sudo tcpdump -nn -i "$IFACE" -s 96 -c 30 \
"host $PEER and (icmp or tcp)"
Limit captures by target and duration. Capturing 96 bytes may still include some application data. Treat the results as sensitive diagnostic material and do not publish them directly. If the target carries substantial traffic, narrow the filter to the actual connection so that other requests do not confuse the analysis.
Look for an established connection, repeated retransmission of a particular data segment, an acknowledgment number that does not advance for an extended period, and any received “fragmentation needed” ICMP errors. If you see a zero window, investigate the receiver's processing capacity first. If the request stalls before it has even been sent, return to the application, name resolution or connection-establishment stage.
Local packet captures are also affected by network interface offloading. Capturing a “large segment” that exceeds the interface MTU does not prove that an oversized packet was actually sent on the wire. Segmentation and coalescing may occur outside the capture point. Do not disable offloading on a production network interface just to obtain tidier output. When necessary, compare captures from both ends using sequence and acknowledgment numbers, rather than comparing packet lengths alone.
Validate the fix with new connections
Once you have clear evidence, first check whether the relevant firewall is incorrectly blocking the required ICMP errors, and whether both tunnel endpoints have an appropriate MTU that accounts for encapsulation overhead. Adjust only the affected rules or path; do not wipe the entire network configuration.
TCP MSS adjustments affect only TCP and cannot resolve UDP issues or every encapsulation problem. They can be useful in specific forwarding scenarios, but should not replace checks of the path MTU and error feedback. Before making changes, save the interface, routing and firewall configurations and prepare a recovery procedure. If the management path is involved, first confirm that the recovery method is usable.
Validate with newly established connections. Repeat a small request, a large upload and a large download in that order, then check whether retransmissions have decreased and whether requests complete fully. Existing connections may retain previously negotiated or cached state. Refreshing a page alone does not prove that the fix works.
The final record should include the source address, destination, outgoing interface, probe lengths, changes made and retest results. The issue is resolved only when real service traffic works again, the evidence is consistent and other paths remain unaffected. If the results still conflict, preserve the diagnostic state and continue isolating the problem layer by layer. Do not present a temporary workaround as a root-cause finding.
Frequently asked questions
Does a failed don't-fragment ping prove a path MTU black hole?
No. ICMP filtering, a target that does not reply, or a local interface limit can also cause failure. Correlate smaller probes with TCP retransmissions and ICMP errors.
Should the interface MTU be reduced immediately?
No. Save the current interface and route state, identify the affected path, and make a reversible route or tunnel change where appropriate. Retest new connections and both small and large requests.
EPYC 7543P Dedicated Physical Server
From $442.9/mo