To realize the weak light all optical switch, a series of all optical switch designs, including X switch and intersection switch, are proposed based on coupling mode theory and beam propagation method. It can be used to optimize the all optical switch design for different materials (self focus and defocus), nonlinear indices and wavelengths.