The algorithm of the selection of server connection is the same as the algorithm of the new server connection to the network.
The client connects to any group of servers and then gets the list of the group's servers identifying those which belong to another group, i.e., boundary servers.