8 ms·
Noq: n0's new QUIC implementation in Rust
- tekacs 7mo agohttps://github.com/quinn-rs/quinn/issues/224#issuecomment-3842537530 https://github.com/quinn-rs/quinn/issues/224#issuecomment-38... It's lovely to see the polite and respectful back and forth in this comment thread where the Iroh folks are talking about deciding to fork. :)
- bigfishrunning 7mo agoI very much agree, a nice contrast to so much open source drama
- Aurornis 7mo agoGreat interaction. Very refreshing after some of the past problems I've encountered with maintainers treating forks as hostile or "stealing our work". The message also exposes a reality of how hard it can be to upstream internal changes: They admit they don't have the time to go back and re-submit all of their work as tiny incremental patches that could be reviewed and approved upstream. They estimate it would be on the order of 100 PRs necessary to break it up and get it reviewed. That's a very large time investment for a company that needs to keep moving forward. Hopefully they stay close in the rest of the implementation details of the project they forked from. After a fork becomes battle-tested enough it might be reasonable to start merging things in larger chunks rather than treating them as incremental development again.
- openclaw01 7mo ago[dead]
- jeffbee 7mo agoI was just reading the QUIC multipath RFC. Didn't it come out literally yesterday? I guess it's common to have the implementation foreshadowing the RFC but it's jarring to see them back to back like this.
- b_fiive 7mo agoIt's been a draft for a long while, and was only recently approved
- kevvok 7mo agoIt’s pretty common for IETF drafts to be substantially complete well before they are finalized as RFCs. For example, supporting ML-KEM in TLS is still a draft, but there are already multiple large scale deployments of it since the technical aspects were nailed down a while ago
- wofo 7mo agoMany QUIC features get implemented while in draft stage as people iterate on the RFC's design (e.g., ACK Frequency[0] is currently on draft version 14 and I implemented support for it three years ago in quinn). [0]: https://datatracker.ietf.org/doc/html/draft-ietf-quic-ack-frequency https://datatracker.ietf.org/doc/html/draft-ietf-quic-ack-fr...
- gsnedders 7mo agoIt’s common enough for groups to not consider the spec done until there is a decent bit of implementation experience (both because actual implementers tend to find interesting bugs in specs, and because many things are hard to measure without any implementation).
- unmole 7mo ago> I guess it's common to have the implementation foreshadowing the RFC "Rough consensus and running code" is the IETF's unofficial motto. Working Group Drafts are generally accompanied by implementations.
- adityamwagh 7mo agoLove the folks from n0. I regularly use their sendme cli for peer to peer file transfer!
- linsomniac 7mo agoGood to know. I usually use magic wormhole, which works great, but it does install a lot of python modules to achieve it. I'm always a little reluctant to install that on our production Windows SQL servers, and I rarely touch them, so usually when I do I just do a "netcat" equivalent via either a powershell snippet or https://github.com/linsomniac/toothpyk https://github.com/linsomniac/toothpyk or I just "wget" it on the Windows side. For SQL Server ISOs, the Windows built in wget is terribly slow though. Thanks for the sendme pointer.
- adityamwagh 6mo agoYou're welcome. Great thing about it is it's a just a binary that you can fetch using curl anywhere, and then do ./sendme send <file/folder> and on the other machine type the command sendme tells you to in the terminal. The transfer is resumable as well, as long as the computer sending it doesn't stop the process.
- 2color 7mo agoSame here. They've built an amazing toolkit that's such a joy to build with. Feels like game changer to have p2p that both reliable, fast, and fun.
- adityamwagh 6mo agoYup! I'm thinking of ways in which I can use their iroh library to help with some of the workloads at work (https://neuracore.com https://neuracore.com, https://github.com/NeuracoreAI/neuracore https://github.com/NeuracoreAI/neuracore)
- agg23 7mo agoiroh seems like a very well positioned product in the era of people rapidly building applications for personal use. I'm really interested in seeing how they continue to grow. I personally have been looking off and on at providing an "app relay" using it, where people can get an OSS, self-hostable (if desired), zero config way to remotely access their app/data on their network. This would be separate than a "network relay" (a la Tailscale), as this is done selectively as part of the application server and client, requires no knowledge or configuration as the user, and exposes a much smaller surface area.
- nulltrace 7mo agoThe zero-config part is where it gets tricky in practice. I spent a while getting mDNS-based discovery working across different home networks and it's a mess. Half the consumer routers silently drop multicast between subnets, some just rate-limit it into uselessness. You end up layering fallback after fallback (broadcast, then direct probe, then relay) and writing heuristics to pick which path actually works. Having multipath baked into QUIC so the transport just tries all paths and converges on the best one would've saved me a lot of that.
- apitman 7mo agoIs your project public?
- apitman 7mo agoYou may be interested in my list here: https://github.com/anderspitman/awesome-tunneling https://github.com/anderspitman/awesome-tunneling In particular I believe OpenZiti has a similar focus on embedding the tunnel in the apps.
- agg23 7mo agoThis is exactly the type of thing I was thinking of. Thanks
- 7mo ago
- ChrisSpoke68 7mo ago[dead]
- dangoodmanUT 7mo agoThe iroh team keeps cooking, unreal. I’m excited to have a weekend to just sit down and tinker with iroh, it’s been on my list for a while. I want to make an overlay network like nebula with it
- Landing7610 7mo agoyou might want to take a look at those, they have been mentioned on their discord: - https://github.com/rustonbsd/iroh-lan https://github.com/rustonbsd/iroh-lan - https://github.com/lucascherzer/iron https://github.com/lucascherzer/iron
- AiStockAgent62 7mo ago[dead]
- Kazik24 7mo agoExcuse me if this is explained somewhere, but how does noq/iroh relays QUIC packets between peers? How does relay know which QUIC packets it receives should be sent where, since QUIC is famously hard to track? Do you stream to relay new/retire_connection_id packets through different connection so that it can link them to specific peers? Or is the relayed QUIC wrapped in different protocol?
- matheus23 7mo agonoq doesn't implement any relaying logic itself. From the perspective of noq, iroh relays are another IP subnet that it's sending packets to and receives packets from, so just another path. > Or is the relayed QUIC wrapped in different protocol? Yes, that's what's happening. On the iroh/iroh-relay side, we implement this relaying using WebSockets. The datagrams are wrapped with a header saying which EndpointId (ed25519 public key) we want the packet to be relayed to. Because of a handshake between iroh clients and iroh relays, the relay knows and has authenticated the source EndpointId of datagrams it relays. So yeah, we're tunneling QUIC datagrams through HTTPS over TCP (we encrypt twice). The relay really is just a fallback and for coordination. We specifically made these choices for maximum ubiquity for the fallback (not affected by UDP blocking, looks like "normal" traffic).
- mrbluecoat 7mo ago> noq (”number 0 QUIC”) Wouldn't that be n0q then?
- b_fiive 7mo agoNow, see. that's what I said as well. But the rest of the team was tired of me trying to name the hosted iroh "n0des", which I'm now ready to admit was a stretch. And so now here we are spelling n0q as noq. c'est la vie.
- superkuh 7mo agoCan this establish an QUIC connection without the other end having a CA cert? Or, like most other QUIC libs will it default to only allowing connections to corporation approved domains?
- tialaramex 7mo agoIt turns out that "Have the defaults arranged so that they suit a handful of crazy people but inconvenience literally everybody else" isn't popular. In fact preferring a tiny minority preference is sort of inherently unpopular, that's basically its defining feature as a policy.
- superkuh 7mo agoVisiting websites (or making connections to IP based services) that aren't CA approved is not some crazy niche desire as you're painting it. It was the default for a very long time and is still the only way to access many websites. When changing the feature requires recompiling a lib and linking it into your browser which you also recompile it's basically reality and not just a default. The only reality. And that's bad. It should be a setting at least.
- matheus23 7mo agoThe TLS authentication story is fully configurable. This hasn't changed compared to Quinn. We use noq in iroh, and in iroh we use raw public keys (RFC7250). When you use iroh, you don't need to set up DNS or TLS certificates, you just generate a key, share the public key and others can connect to you. (Of course the trouble is sharing the public key securely.)
- baby 7mo agohave you guys checked nQUIC? Would be interesting to see Noise integrated in Noq as well :)
- matheus23 7mo agoThere were experiments :) https://github.com/dignifiedquire/nquinn https://github.com/dignifiedquire/nquinn The cool thing about noq (and Quinn, where we inherited this from), is that you can implement your own "Session" trait. So that can be either TLS or nQUIC.
- jaufuuhs 7mo agohttps://github.com/n0-computer/noq/blob/f3a73c7bdd722e9b18fbca0271845ccfa3412ea2/noq-udp/src/windows.rs#L56-L70 https://github.com/n0-computer/noq/blob/f3a73c7bdd722e9b18fb...
- whatsakandr 7mo agoNot to be confused with https://github.com/tsoding/Noq https://github.com/tsoding/Noq Which got it's name from 'Not Coq'
- Landing7610 7mo agoeven more interesting news from iroh that was annoounced recently: https://www.iroh.computer/blog/iroh-0-97-0-custom-transports-and-noq https://www.iroh.computer/blog/iroh-0-97-0-custom-transports...
- JumpingVPN2027 7mo ago[flagged]