Based on the second-order nonlinearity, we present a bidirectional tunable all-optical switch at C-band by introducing backward quasi-phase-matching technique in Mg-doped periodically poled lithium niobate (MgO:PPLN) waveguide with a nano-structure c