Giter VIP home page Giter VIP logo

Comments (1)

adamierymenko avatar adamierymenko commented on May 27, 2024

Peer::WanPath et. al. are messy so this code is going to be reworked at some point soon. This will probably be replaced by a first-class Route class.

Route will have a notion of confirmed and unconfirmed routes, which solves issue #20 by allowing new routes to be learned lazily as they are now but introducing a preference for routes that have been authenticated.

This may include a reworking of how relaying is done, with getBestSupernode() and friends in Topology replaced by getRouteToPeer() or something like that. This would allow all routes to be compared and maintained in a single database in each Peer, which wastes a very small amount of memory in exchange for simplicity. This would also enable an easy algorithm for detecting and recovering from route loss.

Typically conversations over networks are two-way. When something is sent to a peer, an expectation of a reply could be registered. If incoming traffic never comes, a PROBE is sent to all known routes to re-select routes based on latency and recentness of activity. This would result in, say, 10 seconds or so of loss of connectivity if a supernode failed, and also prepares us for further decentralization.

from zerotierone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.