Balancing the load in a network