We’ve considered two main mechanisms for an incentivized mesh network so far. Pay for forward is the mechanism laid out in Althea v1, and Hocnet. Pay for internet is something I’ve been working on as Althea v2 and it is also kind of how ISPs work now. This is a brief summary of both approaches.
Pay for forward
- A (secured) routing protocol propagates price along with the route quality metric.
- The routing protocol makes routing decisions based on the price and the metric.
- It is secured by running speedtests to destinations on the network and seeing how they match up to the advertised metrics.
- Using a “circular ack” speedtests can be reused many times by all the nodes on a route to a given destination. This also works with asymmetric routes.
- Nodes tally up what they are owed their neighbors according to which destinations the neighbors are sending packets to.
- Payments are settled with payment channels.
- If payments are not made, a node can stop forwarding a neighbor’s packets using tunnels.
- On top of the pay-for-forward system, there is a gateway discovery and payment system.
- Somehow end-user nodes discover “gateway” nodes, nodes with a connection to the internet.
- Gateway nodes charge a certain amount for the internet connection.
- When a gateway is chosen by an end-user node, a payment channel is opened with that gateway.
- The gateway is paid for the amount of data used from the internet, as well as the amount that it cost the gateway to pay-for-forward to send the packets back to the end-user node.
- Gateways would need to be speedtested. Speedtests could be done between the end-user node and arbitrary servers on the internet.
Pay for internet