1. A method, comprising: receiving, at a network interface of a device connected to a first network, a first network size indicator for the first network; receiving, at the network interface, a second network size indicator for a second network; determining, using a processor, a difference between the first network size indicator and the second network size indicator; calculating, via the processor, a switching probability if the difference between the first network size indicator and the second network size indicator is greater than a predetermined network size difference threshold, the switching probability calculated based on at least a normalized difference between the first network size indicator and the second network size indicator and a weighting factor; and migrating the device from the first network to the second network based on the switching probability.