WireGuard on macOS at 5+ Gbit/s | Firezone Blog

firezone.dev18 min read

Engineers at Firezone improved their macOS and iOS WireGuard VPN client performance from around 1 Gbit/s to over 5 Gbit/s by fixing a broken UDP backpressure mechanism in Apple's XNU kernel and implementing batched system calls and TCP packet coalescing. The authors explain that because XNU silently drops packets at the network interface queue and reports successful writes when sockets fill up, TCP congestion controllers prematurely reduced transmission rates. By utilizing connected UDP sockets, handling the ENOBUFS error code, and leveraging batched I/O syscalls, the software avoids packet loss and maintains high throughput. Open article →

More on this topic