From 94164bb580a216055af6a8bf93fdfcf6a97aa8a1 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 13 May 2020 09:31:43 +0200 Subject: [PATCH] Updated readme --- README.html | 37 ++++++++++++++++++++++--------------- README.md | 38 +++++++++++++++++++++++--------------- RNS/Resource.py | 2 ++ 3 files changed, 47 insertions(+), 30 deletions(-) diff --git a/README.html b/README.html index d3d977c..41f28e9 100644 --- a/README.html +++ b/README.html @@ -732,16 +732,16 @@ pre { } README

Reticulum Network Stack α

-

Reticulum is a cryptography-based networking stack for low-bandwidth, high-latency, wide-area networks built on cheap and readily available hardware. Reticulum allows you to build very wide-area networks with cheap off-the-shelf tools, and offers end-to-end encryption, autoconfiguring cryptographically backed multi-hop transport, efficient addressing, resource caching, unforgeable packet acknowledgements and much more.

-

Reticulum is a complete networking stack, and does not use IP or higher layers, although it can be easily tunnelled through conventional IP networks. This frees up a lot of overhead, that has been utilised to implement a networking stack built directly on cryptographic principles, allowing resilience and stable functionality in open and trustless networks.

-

Reticulum runs completely in userland, and can run on practically any system that runs Python 3.

+

Reticulum is a cryptography-based networking stack for high-latency, wide-area networks built on readily available hardware. Reticulum allows you to build very wide-area networks with off-the-shelf tools, and offers end-to-end encryption, autoconfiguring cryptographically backed multi-hop transport, efficient addressing, resource caching, unforgeable packet acknowledgements and much more.

+

Reticulum is a complete networking stack, and does not use IP or higher layers, although it can be easily tunnelled through conventional IP networks. This frees up overhead, that has been utilised to implement a networking stack built directly on cryptographic principles, allowing resilience and stable functionality in open and trustless networks.

+

No kernel modules or drivers are required. Reticulum runs completely in userland, and can run on practically any system that runs Python 3.

For more info, see unsigned.io/projects/reticulum

-What hardware does Reticulum work with?

-

Practically any hardware that can support at least a half-duplex channel with 1.000 bits per second throughput, and an MTU of 500 bytes. Data radios, modems, LoRa radios, serial lines, AX.25 TNCs, HAM radio digital modes, free-space optical links and similar systems are all examples of the types of interfaces Reticulum was designed for.

-

An open-source LoRa-based interface called RNode has been designed specifically for use with Reticulum. It is easy to build yourself, or can be purchased as a complete radio that just needs a USB connection to the host.

-

Reticulum can also be tunneled over existing IP networks, so there's nothing stopping you from using it over gigabit fiber or your local WiFi network, where it'll work just as well. In fact, one of the strengths of Reticulum is how easily it allows you to connect different mediums into a self-configuring, resilient and encrypted mesh.

-

As an example, it's possible to set up a Raspberry Pi connected to both a LoRa radio, a packet radio TNC and your home WiFi. Once the interfaces are configured, Reticulum will take care of the rest, and any device on your home WiFi can communicate with nodes on the LoRa and packet radio sides of the network.

+Where can Reticulum be used? +

On practically any hardware that can support at least a half-duplex channel with 1.000 bits per second throughput, and an MTU of 500 bytes. Data radios, modems, LoRa radios, serial lines, AX.25 TNCs, amateur radio digital modes, free-space optical links and similar systems are all examples of the types of interfaces Reticulum was designed for.

+

An open-source LoRa-based interface called RNode has been designed specifically for use with Reticulum. It is possible to build yourself, or can be purchased as a complete transceiver that just needs a USB connection to the host.

+

Reticulum can also be encapsulated over existing IP networks, so there's nothing stopping you from using it over wired ethernet or your local WiFi network, where it'll work just as well. In fact, one of the strengths of Reticulum is how easily it allows you to connect different mediums into a self-configuring, resilient and encrypted mesh.

+

As an example, it's possible to set up a Raspberry Pi connected to both a LoRa radio, a packet radio TNC and a WiFi network. Once the interfaces are configured, Reticulum will take care of the rest, and any device on the WiFi network can communicate with nodes on the LoRa and packet radio sides of the network, and vice versa.

Current Status

Consider Reticulum experimental at this stage. Most features are implemented and working, but at this point the protocol may still change significantly, and is made publicly available for development collaboration, previewing and testing.

@@ -749,29 +749,36 @@ pre {

What is implemented at this point?

-What features are still missing?

+Supported interface types and devices +

Reticulum implements a range of generalised interface types that covers most of the communications hardware that Reticulum can run over. If your hardware is not supported, it's relatively simple to implement an interface class. Currently, the following interfaces are supported:

What is currently being worked on?

How do I get started?

-

Full documentation and video tutorials are coming with the stable alpha release. Until then, you are mostly on your own. If you really want to experiment already, you could take a look in the "Examples" folder, for some well-documented example programs. The default configuration file created by Reticulum on the first run is also worth reading. Be sure to also read the Reticulum Overview Document.

+

Full documentation and tutorials are coming with the stable alpha release. Until then, you are mostly on your own. If you want to experiment already, you could take a look in the "Examples" folder, for some well-documented example programs. The default configuration file created by Reticulum on the first run is also worth reading. Be sure to also read the Reticulum Overview Document.

If you just need Reticulum as a dependency for another application, the easiest way is probably via pip:

pip3 install rns

For development, you might want to get the latest source from GitHub. In that case, don't use pip, but try this recipe:

diff --git a/README.md b/README.md index 37148cf..5b63b27 100755 --- a/README.md +++ b/README.md @@ -1,22 +1,22 @@ Reticulum Network Stack α ========== -Reticulum is a cryptography-based networking stack for low-bandwidth, high-latency, wide-area networks built on cheap and readily available hardware. Reticulum allows you to build very wide-area networks with cheap off-the-shelf tools, and offers end-to-end encryption, autoconfiguring cryptographically backed multi-hop transport, efficient addressing, resource caching, unforgeable packet acknowledgements and much more. +Reticulum is a cryptography-based networking stack for high-latency, wide-area networks built on readily available hardware. Reticulum allows you to build very wide-area networks with off-the-shelf tools, and offers end-to-end encryption, autoconfiguring cryptographically backed multi-hop transport, efficient addressing, resource caching, unforgeable packet acknowledgements and much more. -Reticulum is a complete networking stack, and does not use IP or higher layers, although it can be easily tunnelled through conventional IP networks. This frees up a lot of overhead, that has been utilised to implement a networking stack built directly on cryptographic principles, allowing resilience and stable functionality in open and trustless networks. +Reticulum is a complete networking stack, and does not use IP or higher layers, although it can be easily tunnelled through conventional IP networks. This frees up overhead, that has been utilised to implement a networking stack built directly on cryptographic principles, allowing resilience and stable functionality in open and trustless networks. -Reticulum runs completely in userland, and can run on practically any system that runs Python 3. +No kernel modules or drivers are required. Reticulum runs completely in userland, and can run on practically any system that runs Python 3. For more info, see [unsigned.io/projects/reticulum](https://unsigned.io/projects/reticulum/) -## What hardware does Reticulum work with? -Practically any hardware that can support at least a half-duplex channel with 1.000 bits per second throughput, and an MTU of 500 bytes. Data radios, modems, LoRa radios, serial lines, AX.25 TNCs, HAM radio digital modes, free-space optical links and similar systems are all examples of the types of interfaces Reticulum was designed for. +## Where can Reticulum be used? +On practically any hardware that can support at least a half-duplex channel with 1.000 bits per second throughput, and an MTU of 500 bytes. Data radios, modems, LoRa radios, serial lines, AX.25 TNCs, amateur radio digital modes, free-space optical links and similar systems are all examples of the types of interfaces Reticulum was designed for. -An open-source LoRa-based interface called [RNode](https://unsigned.io/projects/rnode/) has been designed specifically for use with Reticulum. It is easy to build yourself, or can be purchased as a complete radio that just needs a USB connection to the host. +An open-source LoRa-based interface called [RNode](https://unsigned.io/projects/rnode/) has been designed specifically for use with Reticulum. It is possible to build yourself, or can be purchased as a complete transceiver that just needs a USB connection to the host. -Reticulum can also be tunneled over existing IP networks, so there's nothing stopping you from using it over gigabit fiber or your local WiFi network, where it'll work just as well. In fact, one of the strengths of Reticulum is how easily it allows you to connect different mediums into a self-configuring, resilient and encrypted mesh. +Reticulum can also be encapsulated over existing IP networks, so there's nothing stopping you from using it over wired ethernet or your local WiFi network, where it'll work just as well. In fact, one of the strengths of Reticulum is how easily it allows you to connect different mediums into a self-configuring, resilient and encrypted mesh. -As an example, it's possible to set up a Raspberry Pi connected to both a LoRa radio, a packet radio TNC and your home WiFi. Once the interfaces are configured, Reticulum will take care of the rest, and any device on your home WiFi can communicate with nodes on the LoRa and packet radio sides of the network. +As an example, it's possible to set up a Raspberry Pi connected to both a LoRa radio, a packet radio TNC and a WiFi network. Once the interfaces are configured, Reticulum will take care of the rest, and any device on the WiFi network can communicate with nodes on the LoRa and packet radio sides of the network, and vice versa. ## Current Status Consider Reticulum experimental at this stage. Most features are implemented and working, but at this point the protocol may still change significantly, and is made publicly available for development collaboration, previewing and testing. @@ -24,25 +24,33 @@ Consider Reticulum experimental at this stage. Most features are implemented and An API- and wireformat-stable alpha release is coming in the near future. Until then expect things to change unexpectedly if something warrants it. ## What is implemented at this point? - - All basic adressing and identification features + - Adressing and identification + - Fully self-configuring multi-hop routing - RSA assymetric encryption and signatures as basis for all communication - AES-128 symmetric encryption for group destinations - Elliptic curve encryption for links (on the SECP256R1 curve) - Perfect Forward Secrecy on links with ephemereal ECDH keys - Unforgeable packet delivery confirmations - - Fully self-configuring multi-hop routing - A variety of supported interface types - Efficient and easy resource transfers - A simple and easy-to-use API - - A few basic examples + - Some basic programming examples -## What features are still missing? - - On-network caching and cache queries +## Supported interface types and devices + +Reticulum implements a range of generalised interface types that covers most of the communications hardware that Reticulum can run over. If your hardware is not supported, it's relatively simple to implement an interface class. Currently, the following interfaces are supported: + + - Any ethernet device + - LoRa using [RNode](https://unsigned.io/projects/rnode/) + - Packet Radio TNCs (with or without AX.25) + - Any device with a serial port + - TCP over IP networks + - UDP over IP networks ## What is currently being worked on? + - Delay/disruption tolerant bundle transfers - Useful example programs and utilities - API documentation - - Cleanup and code commenting - A messaging protocol built on Reticulum, see [LXMF](https://github.com/markqvist/lxmf) - A few useful-in-the-real-world apps built with Reticulum @@ -55,7 +63,7 @@ Some countries still ban the use of encryption when operating under an amateur r - pyserial ## How do I get started? -Full documentation and video tutorials are coming with the stable alpha release. Until then, you are mostly on your own. If you really want to experiment already, you could take a look in the "Examples" folder, for some well-documented example programs. The default configuration file created by Reticulum on the first run is also worth reading. Be sure to also read the [Reticulum Overview Document](http://unsigned.io/wp-content/uploads/2018/04/Reticulum_Overview_v0.4.pdf). +Full documentation and tutorials are coming with the stable alpha release. Until then, you are mostly on your own. If you want to experiment already, you could take a look in the "Examples" folder, for some well-documented example programs. The default configuration file created by Reticulum on the first run is also worth reading. Be sure to also read the [Reticulum Overview Document](http://unsigned.io/wp-content/uploads/2018/04/Reticulum_Overview_v0.4.pdf). If you just need Reticulum as a dependency for another application, the easiest way is probably via pip: diff --git a/RNS/Resource.py b/RNS/Resource.py index 9dbcdd6..b2bade8 100644 --- a/RNS/Resource.py +++ b/RNS/Resource.py @@ -344,6 +344,8 @@ class Resource: sleep(sleep_time) def assemble(self): + # TODO: Optimise assembly. It's way too + # slow for larger files if not self.status == Resource.FAILED: try: self.status = Resource.ASSEMBLING