On the Flow-level Dynamics of a Packet-switched Network