SSL and IPsec
The primary objective of the Secure Socket Language (SSL, also referred to as the transport-layer security protocolTLS) is to provide secure connections between two applications (for example, an HTTP server and an HTTP client). SSL is an application-layer protocol.
IPsec operates at the network layer, so it is transparent to applications. Because it secures all of the traffic between two systems, it also secures all of the applications between the two systems. You can configure IPsec policy for specific applications at the port level (for example, Port 80 for HTTP and Port 389 for LDAP).
The hashing and encryption algorithms for TLS and IPsec are similar. To use SSL to secure traffic, the client and server component of the application must support SSL.