Apart from providing the compulsory mechanism of network layer, IPSec also provide two services. Authentication Header (A H) is used to protect the consistency of the data while the Encapsulation Security Payload (ESP) header is used to ensure the confidentiality and consistency of the data.