StorjOld / storjnode

Low level storj protocol reference implementation.
http://storj.io
MIT License
15 stars 6 forks source link

Network monitor for Test Group C #41

Closed F483 closed 8 years ago

F483 commented 8 years ago

Add a network monitor that that records the following information for its x nearest neighbours.

It only records this information for the x nearest neighbours as doing it fore the entire network is impractical. x much be chosen so that it is greater then k (number of neighbours in the routing table) to ensure neighbours not in the nodes routing table are also tested.

Another metric could be chosen as to which nodes to tests, but the nearest should be good as it will ensure the entire network is covered and its fairly random (as the node ids are random and you cant choose your neighbours).

For each time the node collects this information it should be saved in a shard on the node and the shard id published on the DHT with a predicable key nodeid + i -> shardid where i is an incrementing number starting a 0. This will allow a crawler looking for the statistics to find them easily.

CC @super3

robertsdotpm commented 8 years ago

Might also be useful to include whether auto forwarding works with UPnP or NATPMP + the type of NAT the router has (for determining if hole punching will work.) Then we'll know if the connection design will be satisfactory or not.