The digital micro-mirror device (DMD)-based optical switch has the advantages of high-speed channels reallocation, miniaturization, stability, and large capacity for short reach optical communication in the datacenter. However, thermal turbulent atmosphere in the datacenter would cause perturbations