Skip to content

Commit fecf90d

Browse files
committed
Theory behind design choices
1 parent 95517ba commit fecf90d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

discv5/discv5-theory.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,16 @@ From here on it's business as usual. See [Sessions].
584584

585585
### Redundancy of enrs in NODES responses and connectivity status assumptions about Relay and Bob
586586

587+
Often the same peers get passed around in NODES responses by different peers. The chance
588+
of seeing a peer received in a NODES response again in another NODES response is high as
589+
kbuckets favour long lived connections to new ones [^4]. This makes the need for a storing
590+
back up relays for peers small.
591+
592+
Apart from the state that is saved by not storing more than the last peer to send us an
593+
ENR as its potential relay, the longer time that has passed since a peer sent us an ENR,
594+
the less guarantee we have that the peer is in fact connected to the owner of that ENR
595+
and hence of its ability to relay.
596+
587597
[EIP-778]: ../enr.md
588598
[identity scheme]: ../enr.md#record-structure
589599
[message packet]: ./discv5-wire.md#ordinary-message-packet-flag--0
@@ -605,4 +615,5 @@ From here on it's business as usual. See [Sessions].
605615

606616
[^1]: https://pdos.csail.mit.edu/papers/p2pnat.pdf
607617
[^2]: https://datatracker.ietf.org/doc/html/rfc4787
608-
[^3]: https://www.ietf.org/rfc/rfc6146.txt
618+
[^3]: https://www.ietf.org/rfc/rfc6146.txt
619+
[^4]: https://pdos.csail.mit.edu/~petar/papers/maymounkov-kademlia-lncs.pdf

0 commit comments

Comments
 (0)