Modeling, analysis, and optimal routing of flow-controlled communication networks