Switching method, switching device and transmission system of Internet protocol security tunnels

The invention discloses a switching method of Internet protocol security tunnels and a switching device corresponding to the switching method. The method comprises establishing a first Internet protocol security (IPsec) tunnel, wherein the first IPsec tunnel is identified by a first tunnel identifier; detecting whether the first IPsec tunnel of transmission data is available, if not, negotiating to establish a second IPsec tunnel before the first IPsec tunnel is dismantled, and switching the transmission data to the second IPsec tunnel. By using the method disclosed by the embodiment of the invention, the second IPsec tunnel can be established without waiting until the first IPsec tunnel is dismantled, thereby realizing rapid switching of data flows and shortening the fault time interval.