Closed-loop congestion control