wrap through the range of packets