Optimization of Internet Protocol network design and routing