Open
Description
This is a tracking issue for the next discv5 protocol version.
Development of Discovery v5.2 will happen in the discv5-v5.2 branch. To contribute, please send PRs to that branch instead of the main branch.
Spec changes
Here is the list of spec changes expected for the new protocol version:
- Update the protocol version number.
- Remove description of topic index and related messages. These will be brought back later (likely in v5.3), but should be removed for now, since they are not part of the actively-used protocol.
- Add spec text to define handling of protocol version upgrades.
- It's not yet clear how the upgrade will work. The protocol version will increase, and some implementations might reject packets with a mismatching
version
even though the spec doesn't say they should. - We could add spec text to the effect that protocol versions higher than the local version should be dealt with by responding with the local version (unless the packet can't be decoded).
- Might be best to handle this upgrade with an ENR key. I claim dibs on key
d5
.
- It's not yet clear how the upgrade will work. The protocol version will increase, and some implementations might reject packets with a mismatching
- Add the NAT hole punching protocol messages. discv5: NAT hole punching wire protocol #225 discv5: NAT traversal via Rendezvous protocol [WIP] #207
- Notification packet type.
- Specifically, for the NAT hole punching scheme, there is a need to introduce a new packet type that does not trigger a handshake in case the packet cannot be decrypted. The new type can also be used for response messages like NODES, TALKRESP, etc.
- Define/explain the packet types (message packet, handshake packet, whoareyou packet etc.) better.
- Add more text around attack countermeasures discv5: attacks mitigation proposal #161
- The plan is to add this as an informational section, as a recommendation for implementers.
- Change
id-nonce
handling in handshake packets. discv5: include plain id-nonce into HANDSHAKE packet #164 - Find a way to integrate Portal Network's use of the discv5 wire protocol in the spec. discv5: support multi-packet talk. #192 discv5: sub-protocol data transmission #229
- There might not be any spec changes resulting from this, I just want to make sure Portal Network can work with v5.2 as-is without depending on spec/implementation mods.
- discv5: generic sub-protocol notification message #261
- Add a Changelog section to discv5.md.
Implementations
collect information about v5.2 implementation status here
Interop testing
- enable discv5 tests in hive devp2p simulator
- ensure geth passes tests on there at least
- probably should also work for portal clients
- add tests for protocol version upgrade
- add tests for NAT hole punching messages
Metadata
Metadata
Assignees
Labels
No labels