ouroboros-network icon indicating copy to clipboard operation
ouroboros-network copied to clipboard

P2P - Single Relay

Open coot opened this issue 3 years ago • 2 comments

Objective

Release of Stake Driven Peer Discover with Robust Peer Selection (P2P), one a single relay.

  • [x] input-output-hk/ouroboros-network#4064

  • [ ] ~input-output-hk/cardano-node#4123~

  • [x] input-output-hk/ouroboros-network#3785

  • [ ] input-output-hk/ouroboros-network#3101

  • [x] input-output-hk/ouroboros-network#3859 (we might need to revert this item if we want to freeze the feature until after Update Keys)

  • [ ] input-output-hk/cardano-node#4191

  • [ ] input-output-hk/cardano-node#4193

  • [ ] input-output-hk/cardano-node#4209

  • [ ] input-output-hk/ouroboros-network#3938 (not a dependency of the single relay release)

Risks

This is a major release for network architecture. To meeting the risks we will announce that the Stake Driven Peer Discover (aka P2P) can be run on at most one relay (if the SPO has at least one). IOG should deploy it only on a fraction of it's relays which support end users.

Dependencies:

  • [ ] benchmarking of P2P nodes: input-output-hk/cardano-node#4027
  • [ ] QA of P2P nodes

coot avatar Jul 11 '22 14:07 coot

@coot I've a question regarding relays (please let me know if there's a better place to ask this).

As you certainly know, at the moment, without p2p, new nodes joining the network needs to bootstrap from some known relays specified in a static topology file. I was under the impression that with p2p enabled -- and Ouroboros genesis implemented, the need from bootstrapping from trusted relays would vanish? Relays would still be needed to ensure a separation between block producing nodes and the rest of the network, but I imagine that there would be no need for, say, Input Output, to actively maintain a set of public trusted relays for bootstrapping once p2p take over.

Am I missing something :thinking: ?

KtorZ avatar Aug 04 '22 09:08 KtorZ

@KtorZ the bootstrap process and its relation to genesis is in the making (things might change). There will be a need to provide bootstrap addresses, just relaying on ledger peers is not good enough (if one is doing an initial sync, he will only have access to very old information). However, thanks to genesis we will relay on having access to at least one honest upstream peer in the bootstrap peers, and as you mentioned no need to have dedicated relays, SPOs relays will be good enough for that.

Once P2P is rolled out, and we have genesis (& eclipse evasion) then indeed there's no need for IOG relays anymore. There are enough relays on the network to provide support for all the Daedalus users.

coot avatar Aug 04 '22 13:08 coot