On the flow-level dynamics of a packet-switched network