A dynamic model of BitTorrent-like P2P file-sharing system