Tuning and optimizing BGP networks