selective repeat algorithm/distance vector algorithm