6 ms·
There's a good description here of what they're doing: https://lists.zx2c4.com/pipermail/wireguard/2021-August/006887.html https://lists.zx2c4.com/pipermail/wir
by wolverine876 5y ago
There's a good description here of what they're doing:
https://lists.zx2c4.com/pipermail/wireguard/2021-August/006887.html https://lists.zx2c4.com/pipermail/wireguard/2021-August/0068...
I am curious (though happy) about their focus on performance. For most security projects, the specification seems to be 'sufficient' performance and beyond that they invest their limited resources elsewhere. The WireGuard team seems to make it a top priority.
Maybe this upgrade was needed to be 'sufficient'? Maybe they see performance as key to adoption? Or maybe they have other reasons. I could see how WireGuard's significant reduction in complexity, compared to other VPN software, could feed performance.
It's hard to imagine the Internet without WireGuard, without a VPN I have confidence in. Thank you Jason and team!
- lgierth 5y agoI think performance is just a top priority as security, I remember how in their first whitepaper they already talked about how they batch up packets and stuff like that. Also the whole approach of kernelspace instead of userspace is just for performance. Actually, I think in the beginning there was even a "marketing chart" with throughput numbers in addition to the chart with lines-of-code numbers? Edit: performance being a top priority also makes sense strategically: if you want people to use secure software en-masse, then the experience needs to be stellar in UX and performance as well.
- wolverine876 5y ago> I think performance is just a top priority as security ... That's my impression too. Nothing wrong with it, but I wonder what their thinking is.
- loeg 5y ago> For most security projects, the specification seems to be 'sufficient' performance and beyond that they invest their limited resources elsewhere. I think this impression is basically mistaken, but I'd love to hear about any examples you have in mind.
- wolverine876 5y agoIt may be mistaken but to be clear, I don't mean it critically. Most FOSS projects have very limited resources - most FAANG projects have limited resources (and skip the security to invest in addictive user experiences and data collection). If security is the aim, it's wise to spend the resources there. An example? Signal. I love it but performance isn't more than sufficient IME. I'm glad Moxie and crew are spending their time inventing new security technology for the world.
- orra 5y ago> The WireGuard team seems to make [performance] a top priority. Well, if people adopt WireGuard because it's really fast, they'll also end up with a relatively secure VPN. Together, it's really compelling.
- zx2c4 5y agoSecurity is the top priority. But being useful is also important; if nobody can use it, nobody benefits from that security. Acceptable performance is very important for being useful, especially when tunneling layer 3 packets, where latency has rippling effects. The prior non-kernel WireGuard for Windows simply was not sufficiently useful for real world workloads people wanted to run, because of the lower performance, both on servers and on laptop wifi alike. A big part of the WireGuard project since the beginning has been trying to figure out how to do high security tunneling that also performs acceptably. It's easy to do one without the other, but doing them both together has meant thinking about a lot of fundamentals, from the protocol state machines on up. It's hard to do tunneling in the kernel at high speed while still maintaining a strong security posture. That's a principal challenge the project endeavors to solve. More generally, it's worth noting that cryptographers also care about performance quite a bit in things like symmetric crypto. We know well how to make a good cipher now, but making one that also performs at increasingly high speeds remains an open area of research, with whole conferences, such as FSE, devoted to it.
- pdenton 5y agoSeems to me like if you need to do your task inside the kernel to get acceptable performance, there's something wrong with that kernel. It's also arguably more difficult to do a given task in the kernel than in userland, code for the kernel is much more security-sensitive and even subtle bugs can be detrimental to overall system performance (or even exploitable). Best thing would be to fix the OS instead of piling up kludges.
- sorenjan 5y agoWhat do you suggest that the Wireguard team should do about that?
- Godel_unicode 5y agoBasically all high performance VPN implementations are kernel-mode. Just because something is difficult does not make it automatically wrong. Note that the main userland VPN which gets cited (OpenVPN) has terrible battery and latency performance. https://arstechnica.com/gadgets/2020/03/wireguard-vpn-makes-it-to-1-0-0-and-into-the-next-linux-kernel/ https://arstechnica.com/gadgets/2020/03/wireguard-vpn-makes-... https://www.freebsd.org/cgi/man.cgi?query=ipsec&sektion=4&format=html https://www.freebsd.org/cgi/man.cgi?query=ipsec&sektion=4&fo...
- tomxor 5y ago> It's hard to imagine the Internet without WireGuard, without a VPN I have confidence in. Thank you Jason and team! Most of the time I forget i'm even using wiregaurd until I hit a site that blocks non-consumer IPs, which I think says a lot for just how performant it is - More than simply not slowing down the connection much, it's actually improved reliability considerably for me since I started using it a couple of years ago, in some cases throughput is also improved due to better routing. It's also made a huge difference to the stability of my SSH connections, making my day to day work a lot more pleasant. Before, SSH connections would arbitrarily drop due to carrier grade NATing ignoring TCP keep alive rules... it's almost impossible to find a consumer ISP these days that doesn't drop idle SSH connections like rocks. With wiregaurd I can keep them alive even while I change connections! my tmux use has dropped to when I actually need to multiplex.