It can effectively resist network attack and maintain its. IPsec has two basic goals: protect IP packet and provide protection against network attack. IPsec combines three factors to achieve these two goals: secret key protect service, security associate, and mobile secret key management. IPsec bases on a security mode, this mode has a fundamental hypothesis that the transit media for data communication isn’t safe. Hence, communication data must be encrypted before sent, and only the communication hosts know how to encrypt their data.