Throughout the entire pattern we were ahead of the traffic but he was VERY close to our tail following behind us, with very little spacing. Our traffic alerting system was going off for the entire downwind, base, and final.