Recently, there has been a growing demand for communication systems. The implementation of optical multistage interconnection networks (MINs) is more and more noticed. In our previous study, we have presented a modified version of holographic optical switches (HOSs). The double-layer network constructed by the modified version of HOSs and rearranged the channels allocation, the number of electro-optic halfwave plates (EOHWPs) could be significantly decreased from 2N^2-2N to 2Nlog2N. We propose a routing algorithm for the novel DLN and the time complexity of the routing algorithm is O (1).