Performance analysis of peer-to-peer networks for file distribution