Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

New RFC: 34/WAKU2-PEER-EXCHANGE #495

Closed
1 task done
Tracked by #117
kaiserd opened this issue Mar 4, 2022 · 3 comments
Closed
1 task done
Tracked by #117

New RFC: 34/WAKU2-PEER-EXCHANGE #495

kaiserd opened this issue Mar 4, 2022 · 3 comments
Assignees
Labels
track:discovery Discovery track (Secure Messaging/Waku Product)

Comments

@kaiserd
Copy link
Contributor

kaiserd commented Mar 4, 2022

This issue is part of the Waku v2 discv5 Roadmap and tracks the editing of a new RFC specifying a Waku2 peer exchange protocol based on Simple, minimal peer exchange protocol.

Background and Motivation

Ambient peer discovery methods like Waku discovery v5 (#486) allow nodes to learn about other Waku nodes in a decentralized way.
While Waku discovery v5 is very efficient, this discovery still comes at costs in terms of computational power and network bandwidth.
Resource restricted devices might prefer to directly ask known stronger peers for

  • a subset of their list of peers this is might have negative implication on anonymity (see comments below)
  • querying discv5 for a random node set in their stead

The goal of the WAKU2-PEER-EXCHANGE RFC is specifying a protocol supporting these two types of queries and the respective responses.
Future versions of WAKU2-PEER-EXCHANGE might support more specific queries, e.g. asking for nodes supporting specific Waku2 protocols or holding messages of a certain time interval.

Acceptance criteria

  • RFC (in raw status) specifying WAKU2-PEER-EXCHANGE
@oskarth
Copy link
Contributor

oskarth commented Mar 7, 2022

@D4nte
Copy link
Contributor

D4nte commented Apr 13, 2022

Please note that by returning a subset list of their own peers a node might expose themselves:

@kaiserd
Copy link
Contributor Author

kaiserd commented Apr 13, 2022

Yes. Thank you for pointing me to that conversation :). My idea was pretty much what you answered in the discord channel:
The nodes that receive peer exchange queries should not answer with peers they use themselves. Caching a random sample for a bit is a good idea as it also mitigates DoS. I will edit this issue to clarify. (As pointed out later in the conversation, the caching should not be for too long to avoid flooding specific sets of peers.)

@kaiserd kaiserd added the track:waku-specs Waku specs track (RAD) label Jul 27, 2022
@kaiserd kaiserd closed this as completed Aug 1, 2022
@kaiserd kaiserd added track:discovery Discovery track (Secure Messaging/Waku Product) and removed track:waku-specs Waku specs track (RAD) labels Aug 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
track:discovery Discovery track (Secure Messaging/Waku Product)
Projects
Development

No branches or pull requests

3 participants