The invention discloses a working method and
system of a
quantum security firewall based on
IP switching, and the method comprises the steps: the
quantum security firewall creates n virtual interfaces with a corresponding number, and distributes a group of IP addresses for each virtual interface; selecting a part of virtual interfaces as virtual interfaces for communication; the remaining virtual interfaces are used as standby virtual interfaces; the
quantum key service device distributes symmetrical key files for the
extranet device and the quantum security firewall in the
extranet device cluster; and the external network device of the data to be transmitted generates transmission data and sends the transmission data to the corresponding virtual interface, and the quantum security firewall judges whether to switch the virtual interface based on the received transmission data. According to the invention, through an
IP switching mechanism, the service corresponding to the attacked IP can be seamlessly switched to other normally running virtual interfaces in real time for transmission and
processing, the continuity and availability of the service are ensured, and the risk of service interruption caused by
attack is greatly reduced.