Simulation of a p2p file sharing system