The IPv6 IPsec packet format is basically the same as in IPv4. Figure 4 illustrates an IPv6 packet where Authentication Header (AH) and= Encapsulation Security Payload (ESP) protocols are used. IPv6 AH and ESP extension headers are used to provide authentication and confidentiality to IPv6 packets.