Simple network simulator for testing various p2p algorithms