The firewall and router can both implement security defense functions and replace each other.