A sleep-and-wake technique for reducing energy consumption in BitTorrent networks