Earlier quoted context omitted.
It’s answered in the opening paragraph although I’ll admit I’m still unclear. > We are committed to keeping your data safe through end-to-end encryption and to making Coder easy to run across a wide variety of systems from client laptops and desktops to VMs, containers, and bare metal. If we used the TCP implementation in the OS, we’d need a way for the TCP packets to get from the operating system back into Coder for…
The quote - is this yet another issue caused by abysmal FFI overhead in Go?
We improved the performance of a userspace TCP stack in Go
11–20 of 133 posts
Re: We improved the performance of a userspace TCP stack in Go
#12Re: We improved the performance of a userspace TCP stack in Go
#13Earlier quoted context omitted.
Yeah, the optimisations are cool of course, but (maybe due to being unfamiliar with the tool?!) I didn't understand why they can't just `listen(2)`.
It’s answered in the opening paragraph although I’ll admit I’m still unclear. > We are committed to keeping your data safe through end-to-end encryption and to making Coder easy to run across a wide variety of systems from client laptops and desktops to VMs, containers, and bare metal. If we used the TCP implementation in the OS, we’d need a way for the TCP packets to get from the operating system back into Coder for…
I surmise that the reason might be that a user space tunnel might be faster (like maybe they can do UDP over TCP or something to gain speed improvements).
Good post nevertheless.
Re: We improved the performance of a userspace TCP stack in Go
#14The obvious question is: How does it compare to the in-Kernel TCP stack?
Re: We improved the performance of a userspace TCP stack in Go
#15Re: We improved the performance of a userspace TCP stack in Go
#16Re: We improved the performance of a userspace TCP stack in Go
#17"Asking for elevated permissions inside secure clusters at regulated financial enterprises or top secret government networks is at best a big delay and at worst a nonstarter." But exfiltrating data with a userspace VPN is totally fine? I'm also wondering why not use TLS.
The reason you'd use WireGuard rather than TLS is that it allows you to talk directly to multiple services, using multiple protocols (most notably, things like Postgres and Redis) without having to build custom serverside "gateways" for each of those protocols.
Re: We improved the performance of a userspace TCP stack in Go
#18Doesn’t creating a raw socket need elevated permissions?
† I don't think? I didn't see them say that, and we do the same thing and we don't create raw sockets.
Re: We improved the performance of a userspace TCP stack in Go
#19Re: We improved the performance of a userspace TCP stack in Go
#20I've actually been hacking on a similar FOSS project lately, with a focus on building what I'm calling a layer 3 service mesh for the edge. More or less came out of my learned hatred for managing mTLS at scale and my dislike for shoving everything through a L7 proxy (insane protocol complexity, weird bugs, and you still have the issue of authenticating you are actually talking to the proxy you expect).
Last week I got the first release of the userspace router shipped, worth taking a look if you want to play around with a completely userspace and unprivileged WireGuard compatible VPN server.
https://github.com/noisysockets/nsh/blob/main/docs/router.md