BUG-2228 : modified best path selection algorithm according to RFC5004