diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2021-12-29 19:58:20 +0100 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2021-12-29 19:58:20 +0100 |
commit | b3a4e43da5328292e6a6acb35d3b5d5f8623aba7 (patch) | |
tree | 589f71e8571024eb44d6ed5cf894d52dc30dc5ba | |
parent | 3e58a5b4aa9eaffac3f1b7d67ae9b1f5e42c5003 (diff) | |
download | lsd0004-b3a4e43da5328292e6a6acb35d3b5d5f8623aba7.tar.gz lsd0004-b3a4e43da5328292e6a6acb35d3b5d5f8623aba7.zip |
routing
-rw-r--r-- | draft-schanzen-r5n.xml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/draft-schanzen-r5n.xml b/draft-schanzen-r5n.xml index 519fb60..1ae0da0 100644 --- a/draft-schanzen-r5n.xml +++ b/draft-schanzen-r5n.xml | |||
@@ -539,6 +539,18 @@ END | |||
539 | FIXME: Also has a bloomfilter. Isn't AmClosestNode simply | 539 | FIXME: Also has a bloomfilter. Isn't AmClosestNode simply |
540 | !SelectClosestPeer == myID ? | 540 | !SelectClosestPeer == myID ? |
541 | </dd> | 541 | </dd> |
542 | <dt><tt>SelectRandomPeer() -> NodeID</tt></dt> | ||
543 | <dd> | ||
544 | This procedure selects a random node ID from all connected | ||
545 | nodes. FIXME find elegant way to handle bloomfilter | ||
546 | </dd> | ||
547 | <dt><tt>SelectPeer(Key, NumberOfHops)</tt></dt> | ||
548 | <dd> | ||
549 | This procedure selects a peer depending on the <tt>NumberOfHops</tt> | ||
550 | Parameter. If <tt>NumberOfHops < NETWORK_SIZE_ESTIMATE</tt> | ||
551 | this procedure returns <tt>SelectRandomPeer()</tt> and | ||
552 | <tt>SelectClosestPeer(Key)</tt> otherwise. | ||
553 | </dd> | ||
542 | <dt><tt>AmClosestNode(NodeID, Key, Bloom) -> true | false</tt></dt> | 554 | <dt><tt>AmClosestNode(NodeID, Key, Bloom) -> true | false</tt></dt> |
543 | <dd> | 555 | <dd> |
544 | This procedure first determines which k-bucket contains the | 556 | This procedure first determines which k-bucket contains the |