Document peer selection fast tier slicing #36

Open
opened 2025-04-21 14:47:55 -04:00 by idk · 2 comments
Owner

Opened 7 years ago

Last modified 5 years ago

#1154opendefect

Document peer selection fast tier slicing

Reported by:zzzOwned by:zzz
Priority:
minor
Milestone:
soon
Component:
www/i2p
Version:
0.9.9
Keywords:
docs
Cc:
str4d
Parent Tickets:

Sensitive:
no

Description

Slicing of the fast tier slicing into 4 parts for slower churn is not documented on the website, according to str4d. From discussion during CCC.

Subtickets

Opened [7 years ago](/timeline?from=2014-01-01T14%3A23%3A52Z&precision=second "See timeline at Jan 1, 2014 2:23:52 PM") Last modified [5 years ago](/timeline?from=2016-02-18T02%3A01%3A56Z&precision=second "See timeline at Feb 18, 2016 2:01:56 AM") ## [\#1154](/ticket/1154)[open](/query?status=open)[defect](/query?status=!closed&type=defect) # Document peer selection fast tier slicing Reported by:[zzz](/query?status=!closed&reporter=zzz)Owned by:[zzz](/query?status=!closed&owner=zzz) Priority: [minor](/query?status=!closed&priority=minor) Milestone: [soon](/milestone/soon "No date set") Component: [www/i2p](/query?status=!closed&component=www%2Fi2p) Version: [0.9.9](/query?status=!closed&version=0.9.9) Keywords: [docs](/query?status=!closed&keywords=~docs) Cc: [str4d](/query?status=!closed&cc=~str4d) Parent Tickets: Sensitive: [no](/query?status=!closed&sensitive=0) ### Description Slicing of the fast tier slicing into 4 parts for slower churn is not documented on the website, according to str4d. From discussion during CCC. ### Subtickets
idk added this to the soon milestone 2025-04-21 14:47:55 -04:00
idk added the
#1154
i2p
soon
www
labels 2025-04-21 14:47:55 -04:00
Author
Owner

comment:2 Changed 5 years ago by str4d

Milestone:
→ soonStatus:new →
open

[comment:2](https://trac.i2p2.de/\#comment:2) Changed [5 years ago](https://trac.i2p2.de//timeline?from=2016-02-18T02%3A01%3A56Z&precision=second "See timeline at Feb 18, 2016 2:01:56 AM") by str4d Milestone: → soonStatus:new → open
Author
Owner

comment:1 Changed 7 years ago by zzz

Cc:str4d added

details:

zzz, ​http://i2p-projekt.i2p/en/docs/tunnels/implementation#ordering vs net.i2p.router.peermanager.ProfileOrganizer?.getSubTier() - I think there is a discrepancy?

Title: Tunnel Implementation - I2P (at i2p-projekt.i2p)

Docs:

p = peer hash

k = random key

d = XOR(H(p+k), k)

Code:

d = H(p+k[4]) & 0x03

Oh, not even that, it's:

d = H(p+k[4])[0] & 0x03

IIUC that uses the first two bits of the hash as the subtier identifier

Oh wait, i'm looking at the wrong bit, sorry

Okay, I see:

The web docs don't appear to specify that the fast tier is split into subtiers

That's why I was looking at the closest part

And the peer ordering specified on the website only is relevant for middle nodes on client tunnels (vs. all nodes for expl)

[comment:1](https://trac.i2p2.de/\#comment:1) Changed [7 years ago](https://trac.i2p2.de//timeline?from=2014-07-18T12%3A33%3A24Z&precision=second "See timeline at Jul 18, 2014 12:33:24 PM") by zzz Cc:_str4d_ added details: <str4d> zzz, [​http://i2p-projekt.i2p/en/docs/tunnels/implementation#ordering](https://trac.i2p2.de/http://i2p-projekt.i2p/en/docs/tunnels/implementation#ordering) vs net.i2p.router.peermanager.ProfileOrganizer?.getSubTier() - I think there is a discrepancy? <iRelay> Title: Tunnel Implementation - I2P (at i2p-projekt.i2p) <str4d> Docs: <str4d> p = peer hash <str4d> k = random key <str4d> d = XOR(H(p+k), k) <str4d> Code: <str4d> d = H(p+k[4]) & 0x03 <str4d> Oh, not even that, it's: <str4d> d = H(p+k[4])[0] & 0x03 <str4d> IIUC that uses the first two bits of the hash as the subtier identifier <str4d> Oh wait, i'm looking at the wrong bit, sorry <str4d> Okay, I see: <str4d> The web docs don't appear to specify that the fast tier is split into subtiers <str4d> That's why I was looking at the closest part <str4d> And the peer ordering specified on the website only is relevant for middle nodes on client tunnels (vs. all nodes for expl)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: I2P_Developers/i2p.www#36
No description provided.