Skip to main content

The VM Can Ping. Why Does the HTTPS Transfer Stall?

Updated 3 min readMarkdown

After a VM moves to another rack, its usual ping still gets replies and small HTTPS requests finish. A larger upload starts, then hangs. When the new route crosses an overlay, check the packet size before blaming TLS. Small probes can fit through a link that drops larger packets. A path MTU black hole occurs when those larger packets disappear and the sender gets no usable size feedback. RFC 2923 §2.1 on TCP black holes

Find the size at which the behavior changes

From the affected Linux VM, send a few IPv4 probes to the HTTPS endpoint if it answers ICMP and you manage it. Replace SERVER_IPV4 with its address.

ping -4 -c 3 -M do -s 1400 SERVER_IPV4
ping -4 -c 3 -M do -s 1472 SERVER_IPV4

The -s value counts ICMP payload bytes. With a standard 20-byte IPv4 header and an 8-byte ICMP Echo header, these test 1,428-byte and 1,500-byte IP packets. -M do sets Don't Fragment and still respects the kernel's path MTU checks. An immediate local error such as message too long can mean the kernel rejected the probe before it left the VM. If small probes pass and larger ones time out, compare the same sizes on a known-good path. Echo traffic can take a different path from TCP or be filtered separately, so verify the failing HTTPS flow as well. iputils ping manual

Follow the feedback toward the sender

Capture only the affected flow and relevant ICMP traffic while reproducing the stall. At both ends, look for the same TCP sequence range leaving the sender repeatedly and failing to arrive at the receiver. Then check whether a size error reaches the sender. For an IPv4 packet with Don't Fragment set, a router that cannot forward it because of the next-hop MTU should send ICMP Fragmentation Needed. IPv6 uses ICMPv6 Packet Too Big. If a size error appears near the bottleneck and never reaches the sender, trace its return path. IPv4 Path MTU Discovery · IPv6 Path MTU Discovery

With VXLAN, check the guest-facing path and the network between the tunnel endpoints. Encapsulation adds headers, and an error for the outer packet can return to a tunnel endpoint. Compare the expected encapsulated size with what that path supports before changing guest MTUs. Once you locate the mismatch or missing feedback, make a scoped fix and repeat the original HTTPS transfer. VXLAN infrastructure requirements

AI disclosure: OpenAI Codex assisted with drafting. The technical references are linked in the article.

This matches what I've hit after rack moves too — ping/small GETs look fine while a fat HTTPS PUT dies mid-stream. The -M do size sweep is the right first move; I've also confirmed with curl --http1.1 -T big.bin while tcpdump watches for Fragmentation Needed that never comes back. When the black hole sits on the overlay path, clamping TCP MSS on the guest usually unblocks faster than chasing every underlay MTU.