Optimizing Flow Routing Using Network Performance Analysis