So... I've been down a bit of a rabbit hole since that whole 2000+ node cloud infra "joining Reticulum" saga. It provdied some absolutely excellent data and real-life pressure testing.
I've been monitoring the situation, not just like Kai Lentit, though ;)
In addition to Microsoft Azure suddenly taking a queasy interest in RNS, we're also starting to see a non-trivial amount of these, ahem... "alternative implementations" connecting to the network. I've been staring at dual streams of rnsd log output at level 8 for days now, running all kinds of weird and occult experiments, tracing flow patterns and trying to fingerprint implementation behaviour.
I'm fucking exhausted at this point, so if this post becomes a bit of a ramble at times, please excuse me.
The long and the short of it is, we've reached a point, where there's a lot of crap out there, that is trying look like Reticulum, but acting like some fever-dream cross between a nineties ethernet hub and a casette deck running at 9000 RPM.
The horrors I've seen. Nodes sending endless streams of tunnel synthesis packets at random moments for no apparent reason. Devices just dumb-repeating everything you send to them (and, probably, everything that anyone sends to them). Non-routable PLAIN packets arriving with several hops and transport headers. What appears to be user devices in people's pockets trying to run something akin to transport nodes on LLM-implemented crap-stacks. Protocol violations so obscene that I don't even know if I dare log them. Client apps announcing every sixty seconds (even the default 15 minutes in some apps I found is crazy and completely unnecessary; have you heard about path requests, man?).
But worst of all, in terms of the overall network health, are the now sizeable number of nodes that just plain fucking rebroadcast every annouunce they hear; no rate limits, no duplicate checks, no - fucking - nothing. Nada.
Even more gravely, this class of devices / nodes / whatever the hell it is, seems hellbent on connecting to as many other nodes as they can. As if having seventyfour interfaces is going to meaningfully increase your connectivity or redundancy. What it is, is simply slop, and a very destructive and wasteful kind.
(In a kind recommendation here, if you're running RNS and set your autoconnect interfaces to a wild number, it's really not necessary. On a home node or similar, you'll be plenty fine with 3. Seriously, it will work out much better for you. If you're running a large backbone node that can actually provide meaningful capacity to the networks, you can bump to 12 interfaces in total or so. More is not gonna help. Having a smaller number of high-quality connections is much more helpful to the network as a whole.)
Anyway, this is only gonna get worse, so something had to be done, more or less immediately. Which sucks a bit, because I was already completely overworked and immensely exhausted from the insane efforts I put into 1.6.0, and was kinda hoping for a bit of a recovery break before starting work proper on 1.6.1. You know, just a week of downtime or so. Staring at some trees.
But either way, here we are. Azure and AWS suddenly falling in love with RNS and a throve of LLM-coded nonsense that wasn't informed we're no longer living in the 80's, and a swarm of slopware abusing a network built and maintained by volunteers, so they can "ship" a shiny UI with lots of buzzwords, while providing no actual benefit to the communities and people that depend on Reticulum. Never mind breaking the open source licenses! Not even a darned link back to Reticulum can be found on most of these projects. Ugh...
Fortunately, I'm not just an expert at ranting, so I've been working quite a bit...
This has been an insane effort to get right in such a short amount of time, and if I did not get it completely right, I hope you will help by investigating and reporting any weirdness you see. And, this is by no means complete yet, but the foundations are now very, very good, incredibly efficient and ready to further expand on.
I've optimized and expanded the filtering system in RNS to a level, where it can now efficiently drop almost all needless traffic, in real-time, across hundreds (even thousands, probably) of interfaces, using less compute than it did before the filtering was implemented.
I rarely shine my own halo, but if there was ever a time where I thought an engineering-pat-on-the-back was deserved, it's probably now. Also, if anyone wants to sponsor a week at the beach with a complimentary bottle of rum, eerrr, let me know, okay?
There's still plenty of work to do here, plenty of improvements that can be made, but what we now have since 1.6.0 includes:
- An incredibly optimized and efficient filtering subsystem, that drops unneeded traffic (especially announce spam) in real-time. I contemplated calling it
[laserwall], but you'll have to live with[filter]in the config, for now. - Almost everything is automatic. You don't have to tune or enable it for it to work efficiently, but you can add additional destination type filtering, if you want to.
- Destination types can now also be filtered directly by hash, if you don't know the aspect names.
- Super fast announce ingress pre-filtering.
- Asynchronous, interleaved held announce queue cleaning across all interfaces, based on the now obvious idea of detecting whether a held announce could potentially actually be useful for anyone. Yeah, simple idea baby, hard to get right so it's fast enough to do for thousands of announces every second.
- Fully bidirectional tunnel synthesis on non shared-medium interfaces (backbone, TCP, et cetera), with stamp cost and version signalling. This will also form the basis for the upcoming auto-encryption of RNS connections that go over public internet links, and provide the possibility for more advanced authentication systems.
- Many improvements to protocol violation logging, much easier to detect weird nodes.
- Hop limiter options both globally and per-interface.
- The blackhole system now also targets remote transport nodes. You can directly blackhole a remote transport ID, and it's gone. Poof.
- You can now see remote transport IDs per client interface in
rnstatus. - Improved traffic counting, and exact filtered traffic stats.
- Ability to inspect filtered traffic, announces, et cetera in
rnstatusper interface - Ability to inspect tunnel properties, stamp costs, remote implementation info and more in
rnstatus - The announce rate table is now persisted and loaded between instance restarts. This significantly speeds up learning the spammy announcers, and cuts overall crap emission by, well, a lot.
- You can now set a
client_limitonBackboneInterface. 500 by default. Raise or lower as you see fit. - You can now place a
blocked_ipsfile in your config directory to permanently block IPs. - Quite decently improved path pool and tunnel table culling.
- You can now configure the maximum amount of stamp workers and worker niceness in the config file.
All of this is in the source repos. It will be included in 1.6.1 of course, but it will all need to pass a bit more testing and quality checking before I can wrap it up and release it. So grab it from Aleph if you want to help test it out on your own nodes.