-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using mDNS and DHT at the same time #8
Comments
i see the routing systems as fundamentally different, you would resolve over one AND/OR the other. so an ipfs distribution that uses DHT content routing and mdns content routing might see things in one and not the other, and could opt to advertise certain content in one and not the other. there can also be policies for "bridging" routing systems in a way, but this has to be very well thought out (it's tricky to get right as you point out, and in light of the below). some important reasons for separating routing systems is use cases like:
|
BTW, using these for content routing is different from using them just for peer discovery. today we use mdns only for peer discovery, but plan to extend to do content routing too. (i need to write so much spec. ooof.) |
I finally understood (thought I had before though) what you exactly meant with "mdns only for peer discovery" after your clarification on this issue: ipfs/kubo#1396 (comment) woot! :) Going to leave it written down here as sorts of documentation for later. I had in my mind that mDNS could be used to find better candidates to "forward/ping" query messages, but now I got it. In essence, we have 3 mechanisms for discovery"
Which means that even if the "destPeer" for our query is in our LAN, if it didn't fulfil the requirement to be in our kbucket (not "close enough by xor metric"), we will talk with it after some DHT based queries. Although it would be cool for it to figure out that it is right on the side of the peer it needs to talk, I understand that from the implementation stand point, this save a lot of conditions and edge cases. Thanks! |
I'm trying to figure out what is the protocol to achieve mDNS and DHT interop so that exchange doesn't have to understand the way that the resource/peer is found. Mainly my questions are:
The text was updated successfully, but these errors were encountered: