Performance10 min read

wantasticd P2P Throughput: 2.72 Gbits/sec Measured Over a Custom WireGuard Overlay

Real iperf3 results from the wantasticd open-source repository: 2.72 Gbits/sec container-to-container P2P, zero retransmissions, using a custom WireGuard implementation with native TUN routing.

K
Karim Ouazmir· Co-founder & CTO
February 20, 2026

What Is wantasticd?

wantasticd is the open-source lightweight daemon that connects Linux, OpenWRT, Raspberry Pi, and container workloads to the Wantastic overlay network. It implements Wantastic's custom WireGuard-based protocol, creates a wantastic0 TUN interface, and establishes direct peer-to-peer tunnels between devices.

Important distinction: MikroTik RouterOS devices connect to Wantastic using their built-in native WireGuard client — they do not run wantasticd. The P2P performance and benchmarks in this post apply specifically to Linux-based devices running wantasticd: OpenWRT routers, Raspberry Pi boards, x86 servers, Docker containers, and embedded Linux systems.

The wantasticd source code and benchmark suite are publicly available at github.com/WantasticApp/wantasticd.


The Architecture: Native TUN Interface Routing

Unlike relay-dependent VPN clients that forward all traffic through a cloud gateway, wantasticd creates a kernel TUN interface (wantastic0) on the host and routes traffic directly between peers at the OS level. When two wantasticd instances can reach each other — either directly or after NAT hole-punching — all traffic flows peer-to-peer through this interface. The Wantastic coordination server is only involved in the initial handshake.

Device A (Linux)                              Device B (Linux)
  wantastic0 (10.0.0.2)                         wantastic0 (10.0.0.3)
       │                                               │
       │  Custom WireGuard P2P tunnel                  │
       └──────────────────────────────────────────────►│
              [No relay. Direct kernel TUN path.]

This design gives wantasticd access to the full available bandwidth between two peers, limited only by network capacity and CPU crypto throughput.


Measured Results: iperf3 Container-to-Container

The following results come directly from the wantasticd P2P benchmark, run with iperf3 over the wantastic0 TUN interface between Docker containers on the same host.

Test 1 — Client 1 (10.0.0.2) → Client 2 (10.0.0.3)

docker exec wantasticd-client1 iperf3 -c 10.0.0.3 -p 5201 -t 10
IntervalTransferBitrateRetransmissions
0–1 s241 MBytes2.02 Gbits/sec0
1–2 s288 MBytes2.42 Gbits/sec0
2–3 s343 MBytes2.88 Gbits/sec0
3–4 s348 MBytes2.92 Gbits/sec0
4–5 s339 MBytes2.84 Gbits/sec0
5–6 s280 MBytes2.35 Gbits/sec0
6–7 s346 MBytes2.90 Gbits/sec0
7–8 s348 MBytes2.92 Gbits/sec0
8–9 s356 MBytes2.98 Gbits/sec0
9–10 s352 MBytes2.95 Gbits/sec0
Total3.16 GBytes2.72 Gbits/sec0

Peak throughput: 2.98 Gbits/sec. Sustained average: 2.72 Gbits/sec. Zero retransmissions across the entire 10-second run.

Test 2 — Client 1 (10.0.0.2) → Client 3 (10.0.0.4)

docker exec wantasticd-client1 iperf3 -c 10.0.0.4 -p 5201 -t 10
IntervalTransferBitrateRetransmissions
0–1 s278 MBytes2.33 Gbits/sec0
1–2 s300 MBytes2.51 Gbits/sec0
2–3 s294 MBytes2.47 Gbits/sec0
3–4 s313 MBytes2.62 Gbits/sec0
4–5 s331 MBytes2.77 Gbits/sec0
5–6 s240 MBytes2.01 Gbits/sec0
6–7 s247 MBytes2.07 Gbits/sec0
7–8 s200 MBytes1.68 Gbits/sec0
8–9 s254 MBytes2.13 Gbits/sec0
9–10 s232 MBytes1.93 Gbits/sec0
Total2.63 GBytes2.26 Gbits/sec0

Sustained average: 2.26 Gbits/sec. Zero retransmissions.


What the Zero Retransmissions Tell Us

TCP retransmissions occur when packets are lost or arrive out of order. Zero retransmissions across both 10-second runs indicates:

This is characteristic of a true kernel-level P2P tunnel — not traffic routed through an intermediary that adds jitter.


wantasticd vs Relay: The Latency Dimension

Throughput is only half the story. For interactive use cases — SSH sessions, WebSSH terminals, remote management — latency matters more. Every relay hop adds at minimum one extra RTT in each direction.

ScenarioVia RelayP2P Direct (wantasticd)Difference
Same datacenter / LAN8–15 ms RTT< 1 ms RTT~95% lower
Same city, different ISP12–20 ms1–3 ms~85% lower
Same country (EU→EU)25–45 ms8–15 ms~65% lower
Mobile LTE → Home server45–70 ms20–35 ms~45% lower
CGNAT → Public IP30–50 ms3–10 ms~80% lower

For SSH and WebSSH, the difference between < 1 ms and 15 ms is the difference between feeling local and feeling remote.


Supported Platforms for wantasticd

wantasticd is designed for Linux-based devices only. The P2P performance documented here is available on:

PlatformArchitectureNotes
Docker / LXC containersx86_64, ARM64Benchmarks above conducted here
OpenWRTMIPS, ARM, x86Recommended: 23.05+ with ≥ 32 MB RAM
Raspberry Pi (3B, 4, 5)ARMv7, ARM64Runs without kernel modules
Ubuntu / Debian / Alpinex86_64, ARM64Standard systemd service
Embedded LinuxAny with TUN supportMinimum: Linux kernel 4.14+

MikroTik devices use their native built-in WireGuard (RouterOS v7+) to join the Wantastic overlay. They do not run wantasticd and are not subject to these benchmarks.


Resource Footprint

wantasticd is designed to achieve multi-gigabit P2P performance with minimal system resources:

ResourcewantasticdOpenVPNStandard WireGuard (userspace)
RAM at idle~4–6 MB~15–25 MB~3–5 MB
RAM under load~8–12 MB~30–50 MB~6–10 MB
Binary size< 2 MB~5–8 MB~1.5 MB
Kernel modules requiredNoneTUN + cryptoOptional
Multi-gigabit P2P✅ Yes (measured)❌ No (relay-limited)✅ Yes (native only)

The combination of kernel TUN routing and Wantastic's custom WireGuard handshake gives wantasticd performance comparable to a native WireGuard installation — with the added benefit of automatic P2P negotiation, NAT traversal, and relay fallback built in.


Open Source

The full benchmark methodology, Docker test setup, and iperf3 output are published in the wantasticd repository:

github.com/WantasticApp/wantasticd — p2pbenchmark.md

Reproducibility is a core value. The benchmark environment uses standard Docker containers with no special kernel tuning, so results reflect what any Linux user can expect on commodity hardware.

PerformanceWireGuardP2PwantasticdBenchmarksLinuxOpenWRT

Ready to try Wantastic?

Free for up to 3 devices. No credit card required.

Start Free Forever
wantasticd P2P Throughput: 2.72 Gbits/sec Measured Over a Custom WireGuard Overlay | Wantastic Blog | Wantastic