Skip to content
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

Query all peers on the network #1102

Open
lonnietc opened this issue Nov 14, 2023 · 2 comments
Open

Query all peers on the network #1102

lonnietc opened this issue Nov 14, 2023 · 2 comments

Comments

@lonnietc
Copy link

Hello,

I know that there is the YGGstate project, but was wondering what API calls are available in Yggdrasil?

Also, in particular, I am wondering if there are any API calls to get a list, or information on ALL of the other nodes currently on the network.

There is "yggdrasilctl getpeers" but it only seems to get the initial peer and perhaps some type of multicast would be useful.

Any thoughts?

@neilalexander
Copy link
Member

What are you wanting to find out exactly?

Asking every node on the network something is an O(n) operation at best (but probably worse), so as the network scales with more users/nodes, that will obviously become impractical to do.

The whole idea of the Yggdrasil protocol design is that it functions with nodes having relatively small amount of state and that state is distributed. It is deliberately not like BGP etc in that nodes aren't really supposed to have a full view of the network.

@lonnietc
Copy link
Author

Hi Neil,

Yea, I understand the objectives and was mostly just wandering if there might be a reasonable way to have some type of semi-real-time network maps to see see how the network dynamically changes.

The network map does a reasonable job and the yggstate gets some information on uptime for some of the nodes, but I think that they use a crawler (not sure):

[Yggdrasil Map] (http://[21e:e795:8e82:a9e2:ff48:952d:55f2:f0bb]/)

[YGGstate] (http://[201:23b4:991a:634d:8359:4521:5576:15b7]/yggstate/)

I was just thinking about some way of combining these to be able to get a more complete picture in closer to real-time, if at all possible.

On a side note, I have have using Yggdrasil for a while and had been considering to use it for the P2P project efforts that I am working on, but also know of the "Matrix" although have not used it, but have heard that it is also a reasonable alternative to Yggdrasil.

Any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants