These are chat archives for ethereum/pydevp2p

27th
Jul 2016
Alexey Kiselev
@alexeykiselev
Jul 27 2016 09:02
Hello, I wonder, what is the purpose of connection_strategy_simulator.py?
heikoheiko
@heikoheiko
Jul 27 2016 10:58
connection_strategy_simulator is an old code fragment. it was used to test hypothesis about connection strategies and the resulting network robustness. can be ignored/deleted.
Alexey Kiselev
@alexeykiselev
Jul 27 2016 11:01
And it doesn't reflect the current characteristics of the ether ethereum network?
heikoheiko
@heikoheiko
Jul 27 2016 11:51
that's not how it works. you can model different strategies. we settled for one of them which basically assures that nodes open connections to random other nodes. overall this strategy proved not only to be most resilient to eclipse attacks but also had good network graph connectivity properties (i.e. robustness/connectedness of the network, short longest_shortest_path, etc. ).
Alexey Kiselev
@alexeykiselev
Jul 27 2016 13:12
Have you measured those parameters for the current implementation? Or do you have a model for the strategy?
heikoheiko
@heikoheiko
Jul 27 2016 16:18
We've tested multiple strategies. Unsure if they are all still part of above script. Results have been documented here:
https://github.com/ethereum/devp2p/wiki/Peer-Selection-Strategy
We basically validated that the random connection strategy works and tried to find a sufficient min_peers default value.