Keeping Track of Network Flows: an Inexpensive And Flexible Solution