A fluid system with coupled input and output, and its application to bottlenecks in ad hoc networks