IPsec uses authentication headers (AHs) and encapsulating security payloads (ESPs) to ensure secure transmission of service data on the network. AHs provide authentication and integrity verification for the sender and the receiver, while ESPs provide encryption and optional authentication for the data.