Stability and performance in peer to peer networks