Docker Swarm overlay network: intermittent inter-node packet loss when two overlay networks share the same subnet/VNI
Environment
Docker Swarm cluster (4 manager/worker mixed roles) running Docker Engine 20.10.8 on Ubuntu 18.04 hosts. Multiple overlay networks created for different stacks; some were created manually with --subnet and custom options. Under high inter-service traffic between containers on different hosts, flows intermittently stall and TCP resets observed between service tasks.
Symptoms
Services on the same node have consistent connectivity; services scheduled on different hosts show intermittent packet loss and retransmits. Application logs show timeouts for inter-service RPCs. 'docker service ps' shows no container OOMs or crashes. Reproduced reliably by generating sustained 1 Gbps-ish traffic between replicas.
Observations
tcpdump on host interfaces shows VXLAN (UDP 4789) packets but some VXLAN packets have unexpected VNI values. 'docker network ls' shows multiple overlay networks; two networks were created weeks apart with identical --subnet and overlapping CIDRs. 'docker network inspect' for both networks lists different Network IDs but overlapping IPAM pools. sysctl net.ipv4.conf.all.forwarding=1 is enabled. MTU on the overlay interfaces differs across hosts (some nodes have mtu 1450, others 1500) because of earlier manual changes.
Already attempted
Restarted docker daemon on a single node and re-tested (partial improvement). Removed one overlay network and recreated with a non-overlapping subnet on a single test node, but issue recurred when other nodes still had old network definitions. Rebalanced services to force placement changes (no resolution).
Question
Is subnet/VNI overlap across overlay networks likely to cause the observed inter-node packet loss in Docker Swarm, and what safe diagnostics and reversible remediation steps should I run to eliminate VNI or MTU mismatches before considering host/kernel changes?
Verified community troubleshooting
No answers yet..
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags
- Virtualization37% match
Docker Swarm overlay: intermittent packet loss between nodes after lowering MTU — vxlan fragmented frames dropped
Open0 answers - Virtualization25% match
Duplicate MAC addresses after cross-cluster VM migration causing ARP flaps and intermittent VM network loss
Open0 answers - Virtualization23% match
Proxmox LXC restores create duplicate MAC addresses causing ARP flaps and intermittent container network loss
Open0 answers