Revisiting WireGuard for Line-rate, Scalable Tunneling
Despite widespread adoption, the WireGuard tunneling mechanism available in the Linux kernel is unable to provide high-speed connectivity in a site-to-site setup when leveraging a standard single-tunnel configuration. In fact, its capability to scale with the number of available CPU cores is limited, even in the presence of a software architecture that is intrinsically parallel.This paper proposes multiple techniques to increase the throughput of the WireGuard technology. We show how greater control over the scheduling of WireGuard tasks enables performance optimizations such as NUMA awareness, in both single- and multi-tunnel setups. Finally, we further improve the scalability when leveraging multiple tunnels by proposing a custom Inline architecture tailored to this configuration. This architecture shows an almost 2x performance improvement over a multi-tunnel deployment of vanilla WireGuard, and supports 18x times the throughput of a single tunnel setup on our machines.
Authors
- Federico Parola (ORCID: https://orcid.org/0000-0001-8620-6728)
- Matthew R. Barone (ORCID: https://orcid.org/0000-0003-1221-181X)
- Fulvio Risso (ORCID: https://orcid.org/0000-0001-6134-7890)
- Davide Miola
Institutions
- Politecnico di Torino (IT)
Publication Details
- Published
- 2025-05-20
- DOI
- https://doi.org/10.1109/hpsr64165.2025.11038910
- Primary Topic
- Railway Systems and Energy Efficiency
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- HORIZON EUROPE Framework Programme