Open kbala444 opened 9 years ago
- Available bandwidth of peer
This is the bandwidth between the remote peer and us? That one might be really hard to gague.
- Total uptime of peer
This is currently available through the ipfs net diag
functionality, but dont expect it to stick around. We might be able to add some basic information exchange into the handshake, but that could be faked. Maybe a better heuristic is "lifetime of our connection to them"
Maybe instead of bandwidth we could try a partial download like in Adaptive Peer Selection and use the average download speed in the first N seconds as the feature? The cost of doing this might not be worth it though.
Is lifetime of our connection the time we've been connected to a peer?
some more:
may also want to test multiple functions over variables (e.g. mean, median, total, variance, max, min, etc).
Is lifetime of our connection the time we've been connected to a peer?
yes. which is a debateable metric, but we cant trust peer to be honest about their uptime. we can only use features that we can observe ourselves.
Here's a preliminary list of features we might be able to use to classify potential peers:
I'm not too sure how difficult it will be to obtain data for some of these.