Text this: Mathematical Aspects of Network Routing Optimization