yggdrasil-network / yggdrasil-go

An experiment in scalable routing as an encrypted IPv6 overlay network

Home Page:https://yggdrasil-network.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Query all peers on the network

lonnietc opened this issue · comments

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?

commented

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.

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?