A Multi-layered Scheme for Distributed Simulations on the Cloud Environment