Tribler / tribler

Privacy enhanced BitTorrent client with P2P content discovery
https://www.tribler.org
GNU General Public License v3.0
4.74k stars 445 forks source link

Token economy with Quality of Service networking integration #3937

Closed synctext closed 4 years ago

synctext commented 5 years ago

Today Delft University has a test network of 40 x 1U servers with SmartNICs, OpenFlow, and P4 programming language for packet forwarding.

speculative forward looking science

Goal: create dedicated hardware for seeding content and relaying Tor-like traffic.

Approach: directly connect the priority tokens to QoS mechanisms inside network switching fabric. Priority access using our Trustchain bandwidth tokens is granted to users with a positive reputation. Priority for users is implemented using traffic priorities inside switches. For instance, positive Trustchain balance gets Queue 2, neutral balance Queue 1, and new users or proven freeriders Queue 0. switching_fabric_fernando

See Fast network congestion detection and avoidance using P4 paper by Delft University for our prior work:

We developed congestion avoidance methods that
harness the power of fully programmable data-planes. The corresponding
programmable switches, through languages such as
P4, can be programmed to gather and react to important packet
meta-data, such as queue load, while the data packets are being processed.
In particular, we enable P4 switches to (1) track processing
and queuing delays of latency-critical flows and (2) react immediately
in the data-plane to congestion by rerouting the affected flows.
Through a proof-of-concept implementation in emulation and on
real hardware, we demonstrate that a data-plane approach reduces
average and maximum delay, as well as jitter, when compared to
non-programmable approaches.

P4 compliments our own Ansible programmable server specification language work, see NAT puncture work #2754 .

Related work on the hardware/FPGA side.. See Ouroboros for Inter-Process Communications (IPC) "It incorporates a fully decentralised recursive packet switched transport network. Ouroboros provides a simple and minimal API for synchronous and asynchronous IPC. Ouroboros can use IP, Ethernet LLC, Ethernet DIX or Ethernet PHY (using the experimental raptor NetFPGA implementation) at the lowest layer."

clean-slate redesigns "This paper presents Linux XIA, a native implementation of XIA in the Linux kernel, as a candidate. We first describe Linux XIA in terms of its architectural realizations and algorithmic contributions. We then demonstrate how to port several distinct and unrelated network architectures onto Linux XIA. Finally, we provide a hybrid evaluation of Linux XIA at three levels of abstraction in terms of its ability to: evolve and foster interoperation of new architectures, embed disparate architectures inside the implementation’s framework, and maintain a comparable forwarding performance to that of the legacy TCP/IP implementation."

synctext commented 5 years ago

Huawei as a hardware vendor has really bad software practices. Single memory space OS and bad versioning. https://hmgstrategy.com/resource-center/articles/2019/04/04/uk-flunks-huawei We need an entirely open source ecosystem with e2e integrity checking.

synctext commented 4 years ago

Closing this issue for now, we will focus on social good more strongly. Less low-level networking.