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; and migrating the device from the first network to the second network based on the switching probability.