4

When a node requests one of it's neighbours for a list of it's peers, that node responds with a list of all of it's neighbours. I'm just wondering is there a way to confirm that those nodes are actually his neighbours and not random/bad nodes?

Or is there an easier way to determine which of your neighbours is the most connected i.e has the most connections to it?

2 Answers 2

6

When a node requests one of it's neighbours for a list of it's peers, that node responds with a list of all of it's neighbours.

No it doesn't. It responds with list of nodes that its aware of being claimed exist. It likely isn't connected to any of the nodes it returns and probably has never connected to many of them. Many of them may not even be real. (though some of them will be, because it does make an effort to include at least some that it has previously connected to)

There is no direct way to get information about a node's peers, and ways to do so are considered a security compromise (if not the most cosmically critical one).

1
  • As part of some experimentation I'm doing, I am trying to find out which one of my neighbors is the most connected to i.e has the most connections to it. Is there any way that I can confirm how many connections a neighboring node has? Feb 19, 2019 at 11:27
4

It returns some plausible peers, not all of its peers.

You have no way of knowing any specific details about them, if they’re sybil, not operational, or not useful. The software tries to work out what is most optimal for outgoing connections based on its own criteria, and doesnt trust this information for anything besides a hint towards where other peers are located.

There is no optimization towards finding peers which are “better connected”, closer in latency any similar criteria. To optimize for latency for example would allow for attacks where you surround a node with a swathe or lower latency peers you control.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.