IPsec is a collection of protocols for securing Internet Protocol ( IP ) communications by authenticating ( and optionally encrypting ) each IP packet of a data stream . Internet Protocol Security ( IPsec ) is a protocol suite for securing Internet Protocol ( IP ) communications by authenticating and encrypting each IP packet of a communication session .