View Issue Details

IDProjectCategoryView StatusLast Update
0007141GNUnetDHT servicepublic2022-01-03 21:13
Reporterschanzen Assigned ToChristian Grothoff  
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
Summary0007141: Bucket lists are not ordered?
DescriptionIt seems like the bucket lists are not ordered.
New connections are always added at the tail

I am currently unsure if this is good. It means that if we establish a lot of connections (new peers) we may never use them for routing because of "bucket_size".
This in turn may eventually lead to a disconnect by transport because of idleness.

Should the eviction/ordering strategy be improved?
Add new connections on head?
Occasionally include peers beyond bucket_size?
Order peers in bucket by XOR closeness?


Christian Grothoff

2022-01-03 14:39

manager   ~0018623

Well, there are generally good reasons (Sybil attacks, etc.) to strongly prefer long-lived connections, which is what the current policy does.

With TNG, we _may_ eventually modify this to also incorporate transport performance considerations in combination with lifetime, but this must be done very, very carefully.

For now, I believe the specific choice for the LSD should either be "oldest connections available" or deliberately not specified.

Issue History

Date Modified Username Field Change
2022-01-03 12:06 schanzen New Issue
2022-01-03 12:06 schanzen Status new => assigned
2022-01-03 12:06 schanzen Assigned To => Christian Grothoff
2022-01-03 14:39 Christian Grothoff Note Added: 0018623
2022-01-03 21:13 schanzen Tag Attached: lsd0004