A. Layer 1B. Layer 2C. Layer 3D. Layer 4
Explanation: IPSec is a set of protocols used to provide authentication, data integrity and confidentiality between two machines in an IP network. It operates in the network layer.