Layered virtual machine migration algorithm for network resource balancing in cloud computing