Mathematical Aspects of Network Routing Optimization