Simulation: calculate nodes' shortest paths to server and update them with it