Congestion Control in Networks with Dynamic Flows