Git Product home page Git Product logo

local-nix-cache's People

Stargazers

Rusty avatar  avatar Zoey avatar Tristan de Cacqueray avatar Daniel Kahlenberg avatar  avatar Casey Howard avatar Melg Eight avatar Aleksander Gondek avatar  avatar Martin Schwaighofer avatar Nikita avatar Someone avatar  avatar Will Dietz avatar  avatar Bruno Bigras avatar ajs124 avatar André-Patrick Bubel avatar Renaud avatar Matthew O'Gorman avatar Saeed Rasooli avatar Martin Weinelt avatar

Watchers

Matthew O'Gorman avatar Andreas Rammhold avatar Will Dietz avatar James Cloos avatar  avatar

Forkers

scalavision mic92

local-nix-cache's Issues

site-local IPv6 multicast to query peers

Site-local IPv6 multicast has a bunch of benefits compared to mdns. The most notably one is probably that it just works wherever IPv6 multicast routing works. This is true for most of the L2 segments on this planet. It might also work beyond a single L2 if the local network admin has enabled that. This gives the feature more reach than, say, simple IPv4 multicast in the local segment. This also means that we do not have to follow avahi anymore. We can produce richer messages and might not have to constantly search for peers. We can instead just listen for queries on our dedicated IPv6 address(es) and send out a single packet to query all neighbors.

Some time last year I've registered the following on the IPv6 multicast site-local registry:

FF0X:0:0:0:0:0:0:170
substitute X for any of the following:

         0  reserved
         1  Interface-Local scope
         2  Link-Local scope
         3  reserved
         4  Admin-Local scope
         5  Site-Local scope
         6  (unassigned)
         7  (unassigned)
         8  Organization-Local scope
         9  (unassigned)
         A  (unassigned)
         B  (unassigned)
         C  (unassigned)
         D  (unassigned)
         E  Global scope
         F  reserved

(from https://tools.ietf.org/html/rfc4291)

At first (and as default) we might just want to use FF05:0:0:0:0:0:0:170.

My initial idea is to just use DNS queries and have nodes respond to those (that are well formed) when they have a local (trustworthy) substitute for the query. Once the existance of such a path has been communicated we can fetch the narinfo & nar files via plain old unicast HTTP.

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.