Design and implementation of a simulator for peer-to-peer networks: optimal-sim | IEEE Conference Publication | IEEE Xplore