Insights

DigitalOcean Droplet Losing Packets but Host Network Looks Fine? Check VXLAN Encapsulation in tcpdump

November 21, 2026
0:00
Your DigitalOcean droplet drops packets intermittently. You run ping, mtr, check ip link, verify routes, and everything inside the guest looks perfectly healthy. Interfaces are UP, no errors on eth0, no firewall rules blocking traffic. Yet connections still stall, TCP retransmits pile up, and your monitoring keeps flagging packet loss. The problem is not inside your droplet. It sits in a layer your standard guest-level tools cannot see: the VXLAN overlay network that the hypervisor uses to move your traffic between physical hosts.
Cloud providers like DigitalOcean run software-defined networking (SDN) on their hypervisors. Your droplet's virtual NIC connects to a software bridge, typically Open vSwitch (OVS), running on the host machine. When traffic leaves your droplet destined for another droplet (or for the internet gateway), the hypervisor encapsulates your original Ethernet frame inside a VXLAN packet. VXLAN (Virtual Extensible LAN, defined in RFC 7348) wraps your frame in a UDP packet with an outer IP header, a UDP header, and a VXLAN header containing a VNI (VXLAN Network Identifier). This encapsulated packet then travels across the physical data center network to the destination hypervisor, which decapsulates it and delivers the inner frame to the target VM. From your droplet's perspective, none of this exists. You see eth0 with an IP address. You do not see the OVS bridge, the VXLAN tunnel endpoint (VTEP), or the outer headers. When packets get dropped in the overlay, whether due to MTU issues in the underlay, OVS flow table misses, or congestion on the physical fabric, your guest-side ifconfig or ip -s link counters stay clean. The drop happened after the packet left your virtual NIC but before it reached the destination's virtual NIC. This is why standard troubleshooting hits a wall. MTR from inside the guest shows loss starting at a hop that is actually a virtual router within the SDN layer, and you cannot trace further because the overlay hides the physical path.
Before diving into VXLAN captures, rule out the obvious. These checks take two minutes and prevent chasing phantom overlay issues when the real problem is a misconfigured firewall or downed interface. Check interface status:
BASH
ip -br a
ip -s link show eth0
Look for UP state on both eth0 (public) and any VPC interface. In the ip -s link output, check RX/TX error and drop counters. Non-zero drop counters here mean the guest kernel is dropping packets, which is a different problem entirely. Run MTR to the destination:
BASH
mtr -rwzbc 100 <destination-ip>
MTR combines ping and traceroute, showing per-hop loss over 100 cycles. If loss appears only at intermediate hops but the final destination shows 0% loss, those intermediate hops are likely ICMP rate-limiting, not actual packet loss. If loss appears at the final hop or increases steadily from a certain point onward, you have a real problem. Also check DigitalOcean's status page for active network incidents in your droplet's region. If there is a known issue, your debugging effort is better spent waiting than capturing packets. If all guest-side checks come back clean but loss persists, the overlay becomes the prime suspect.
Here is where it gets interesting. Even though you cannot access the hypervisor, you can still capture traffic on your droplet's interface and look for signs of overlay problems. More importantly, if you have access to any machine sitting on the same physical network segment (for example, another droplet in the same VPC, or if you are running your own infrastructure with OVS and VXLAN), you can capture and decode the encapsulated frames directly. VXLAN traffic rides on UDP, typically port 4789 (the IANA-assigned default, though some implementations use port 8472). To capture VXLAN-encapsulated packets on an interface that carries the underlay traffic:
BASH
tcpdump -nn -i eth0 -s 0 -e udp port 4789 -w /tmp/vxlan_capture.pcap
Flags breakdown: -nn disables DNS and port name resolution (faster, less noise). -s 0 captures full packets instead of truncating. -e prints link-layer headers, which matters because VXLAN carries inner Ethernet frames. -w writes to a file you can open in Wireshark later for deeper analysis. From inside a guest droplet, this capture on eth0 will typically not show VXLAN-encapsulated traffic because the hypervisor decapsulates before delivering to your virtual NIC. You see the inner frames only. This capture command is most useful when run on a machine that participates in the underlay, such as a hypervisor you control, a gateway node, or a dedicated monitoring tap. However, even from inside the guest, you can gather useful evidence. Capture all traffic to/from the problematic destination and look for retransmissions, RSTs, and gaps in sequence numbers:
BASH
tcpdump -nn -i eth0 -s 0 host <destination-ip> -w /tmp/guest_capture.pcap
Open this in Wireshark and use the tcp.analysis.retransmission display filter. A pattern of retransmissions without corresponding drops in ip -s link strongly suggests the loss is happening outside the guest, in the overlay or underlay.
When you open a VXLAN capture (from a machine that sees the encapsulated traffic), Wireshark decodes it automatically. You will see the outer Ethernet header, outer IP header, outer UDP header (port 4789), VXLAN header with VNI, and then the inner Ethernet frame with its own IP/TCP/UDP payload. Things to look for: Missing inner packets with present outer packets. If the outer VXLAN frame arrives at the destination hypervisor but the inner frame never reaches the guest, the problem is in the decapsulation path, likely an OVS flow table issue or a kernel bug on the host. Outer IP fragmentation. VXLAN adds roughly 50 bytes of overhead (outer Ethernet 14 + outer IP 20 + UDP 8 + VXLAN 8 = 50 bytes). If the inner frame is 1500 bytes (standard MTU) and the physical network also has a 1500-byte MTU, the encapsulated packet becomes 1550 bytes and must be fragmented or dropped. Fragmentation in the underlay is expensive and often disabled (DF bit set), causing silent drops. This is one of the most common causes of intermittent loss in overlay networks. The fix is reducing the guest MTU to account for the overhead, typically to 1450 bytes, or ensuring the physical network supports jumbo frames. Asymmetric loss. If packets from droplet A to droplet B get through but replies drop, the two directions may traverse different physical paths through the data center fabric. Capture on both sides to confirm. VNI mismatches. In multi-tenant environments, a misconfigured VNI means your traffic gets delivered to the wrong network segment or dropped entirely. Check that the VNI in captured frames matches what you expect for your VPC.
Some overlay issues are fixable from the guest side. MTU problems, for instance: if you suspect VXLAN overhead is causing drops for large packets, test by pinging with a specific size and the don't-fragment flag:
BASH
ping -M do -s 1422 <destination-ip>
Start at 1422 (1422 + 8 ICMP header + 20 IP header = 1450, fitting within a 1450-byte effective MTU after VXLAN overhead). If this works but ping -M do -s 1472 (which would produce a 1500-byte IP packet) fails, you have confirmed an MTU issue. Set your guest interface MTU to 1450 or lower. Other problems, like OVS flow table bugs, VTEP failures, or physical fabric congestion, are not fixable from the guest. What you can do is gather evidence. A pcap file showing retransmissions with clean guest-side counters, combined with MTR output showing loss patterns, gives the provider's network team something concrete to work with instead of a vague "my server is dropping packets" ticket. For related background on how VXLAN encapsulation issues manifest in virtualized environments, particularly around vSwitch behavior, see VM Losing Connectivity Between Nodes? Check VXLAN Encapsulation in vSwitch.
When a droplet loses packets but every guest-level diagnostic looks clean, stop looking inside the guest. The software-defined overlay is the next place to check. Capture traffic with tcpdump, look for TCP retransmissions without corresponding interface-level drops, test MTU boundaries with don't-fragment pings, and if you have underlay access, decode the VXLAN frames directly. The gap between "my interface shows no errors" and "my connections keep timing out" almost always lives in the encapsulation layer that the guest was never meant to see.

Join My Newsletter & Get Updates!

Get notified whenever a new technical guide, server infrastructure breakdown, or personal reflection goes live, plus a curated weekly digest.