High-Performance Policy-Routed IPsec Mesh SD-WAN

Lobsters Hottest Tools

Summary

ranet3 is a high-performance, standards-based (IKEv2, ESP, Babel, SRv6) policy-routed IPsec mesh SD-WAN tool. Benchmarks show it reaching 95% of 10 GbE line-rate throughput, 1.6–2.1× faster than in-kernel WireGuard.

<p><a href="https://lobste.rs/s/np6czp/high_performance_policy_routed_ipsec">Comments</a></p>
Original Article
View Cached Full Text

Cached at: 10/18/26, 03:50 PM

# ranet3 Source: https://ranet3.com/ `` ..::----::.. .:-++++++++++++++-:. :=+++-:.. ..:-+++=: :=++-. .-+-. .=++-. :::::: . .::. :++=. :+#@@@@@@@@#+: *@@@@= :++= -#@@%*+-::-+*%@@#- :@@@@@@ .++= .*@@#- -#@@*. .#@@@@* -++. .#@@= =@@#. -++: .++- *@@- :++: -@@* :++. .@@# -%@@@@%- #@@. .--: -++ .++: %@@@@@@% +@@: ++- -++ %@@@@@@% +@@: ++- :++. .=+-. -%@@@@%- #@@. .++: .++- :%@@@%: :++: -@@* -++. -++. =@@@@@= =@@#. .++- .++= +%@%+ -#@@*. =++. :++= =*+-::-+*%@@#- =++: :++=. .#@@@@@@@@#+: .=++: .=++-. :::::: .-++=. :=++-. .-++=: :=+++-:.. ..:-+++=: .:-++++++++++++++-:. ..::----::.. `` High performance policy routed IPsec mesh SD-WAN Why ranet3 — Protocols and routing (https://ranet3.com/#why) ## Why ranet3 ### Standard protocols Peers only need standard IKEv2, ESP, Babel and SRv6. Interoperability is checked against: strongSwan — IKEv2 and ESP sessions with Ed25519 keys BIRD — Babel routes with RTT metrics, matched route for route Linux — kernel seg6local acts on the SRv6 headers ranet3 writes Any other router or switch that supports IKEv2 with Ed25519 keys, Babel and SRv6 should interoperate as well. Common mesh VPN and SD-WAN tools (Tailscale, NetBird, ZeroTier, Nebula, etc.) admit only nodes that run their own agent, and ranet3 runs beside them on the same host. ### Latency routing Babel measures the round trip of every link and routes through a relay whenever the direct link is slower. A --40 ms--> B --40 ms--> C: 80 ms, chosen path through B A --265 ms--> C: direct link, 265 ms RTT is measured continuously, and packet loss and outages count against a link. Traffic always takes the fastest path, moving back to the direct link once it is faster again. ### Segment routing A policy on source and destination prefix sends traffic through chosen waypoints and out at a chosen exit. Segment routing is implemented in userspace and works even on macOS, whose XNU kernel has no support for it. Waypoint: End .DT46 Waypoint: Laptop Exit: End Exit: Internet Default route Waypoints can come in any order the user specifies and may repeat, e.g. A->B->C->B->D with D as the exit. Benchmarks — Measured on 2026-10-15 (https://ranet3.com/#benchmarks) ## Benchmarks 95% of the 10 GbE payload limit, 1 stream one way 8.39 of 8.84 Gbit/s 1.6–2.1x kernel WireGuard throughput All 6 tests 1.2–1.5x wireguard-go throughput All 6 tests 1.91–4.96 ms RTT p99 under saturation Kernel dataplanes 0.85–2.51 ms Medians of 3 runs under saturation ### Head to head Each range is ranet3's result divided by the other dataplane's across the 6 tests below. ### Kernel and userspace Userspace dataplanes copy every packet into their own process and are usually expected to be slower than kernel ones. \* Plain TCP without tunnel Kernel WireGuard stays at 5.1 to 5.4 Gbit/s one way. Kernel IPsec stays at 4.0 to 4.7 Gbit/s because its single flow lands on 1 NIC receive queue. ### Full results **Throughput, saturated** — Gbit/s received, higher is better **CPU cost at 3 Gbit/s offered** — busy cores per Gbit/s, both hosts, lower is better In the "both" rows kernel IPsec carried only 4.67 and 4.14 of the 6 Gbit/s offered. **Latency under saturation** — RTT p99, ms, lower is better Setup — Hardware, software and method (https://ranet3.com/#setup) ## Setup ### Hardware Hosts: 2 x Dell PowerEdge C6420 Processor: Intel Xeon Gold 6130 with 16 cores and 32 threads Memory: 192 GiB NIC: Intel X710 Connector: SFP+ Bandwidth: 10 Gbit/s each way Switch: Both hosts on the same Dell S5296F-ON ### Software OS: Debian 13 Kernel: Linux 6.12.111 (https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.111) wireguard-go: 0.0.20250522 (https://git.zx2c4.com/wireguard-go/tag/?h=0.0.20250522) wireguard-tools: 1.0.20260223 (https://git.zx2c4.com/wireguard-tools/tag/?h=v1.0.20260223) iproute2: 7.1.0 (https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/tag/?h=v7.1.0) iperf3: 3.21 (https://github.com/esnet/iperf/releases/tag/3.21) ### Method Traffic: TCP with cubic at inner MTU 1400 Streams: 1 and 8 Load: saturated for throughput and latency, and 3 Gbit/s each way for CPU cost Direction: one way in each direction and both ways at once Runs: median of 3 runs of 10 seconds with the dataplanes interleaved CPU cost: busy cores from /proc/stat summed over both hosts with every dataplane unpinned Line limit: 8.84 Gbit/s of TCP payload one way after ESP in UDP framing, and 18.76 Gbit/s both ways without a tunnel

Similar Articles

Pushing WireGuard on macOS to 5 Gbit/s

Hacker News Top

Firezone shares how it optimized its macOS/iOS WireGuard VPN client from ~1 Gbit/s to over 5 Gbit/s by studying congestion control, TUN/UDP behavior, and the XNU source code. The post covers bandwidth-delay product theory, loss-based congestion controllers, and Darwin-specific I/O optimizations.

@Wiggin_Han: (Not sponsored) This is definitely my most worthwhile hardware investment of the year: a GL.iNet portable router, plus a fully dialed-in "Taiwan low-latency entrance + North American native residential broadband exit" transparent proxy architecture. The pain point used to be obvious: my home North American residential broadband IP is extremely clean, but direct connections from China across the Pacific during evening peak hours routinely hit 100…

X AI KOLs Timeline

The author shares a transparent proxy architecture built on a GL.iNet portable router, Mihomo, and sing-box. By chaining a Taiwan entrance with a North American native residential exit, latency for highly sensitive AI and financial tasks drops from 1000ms+ to 270ms while avoiding risk controls.

fastSwan: Nvidia ConnectX-7 by numbers

Lobsters Hottest

This article provides a detailed benchmark of the Nvidia ConnectX-7 NIC on a standard x86 platform, focusing on IPsec performance and introducing fastSwan's flower-mode (furious-mode) with hardware and kernel configurations.

@dingyi: This self-hosted proxy panel looks really good — better than the Remnawave I installed before, and it uses less memory too. I'll give it a try after a few more updates.

X AI KOLs Timeline

Mistgate is an open-source self-hosted lightweight VPN management panel (AGPL-3.0, beta v0.1.0) that manages nodes for protocols like Hysteria2, VLESS REALITY, and AmneziaWG with just two Go binaries and SQLite. It uses only 16–20 MiB of memory and includes a built-in MCP server so AI agents can read cluster status.