An Analytical Model of a BitTorrent Peer