IPv4 header vs IPv6 header size

ipv4ipv6

enter image description here

Just wondering from looking at that picture

if Total Length = Payload Length
and the IPv6 header is bigger, does that mean IPv4 packets can contain more data?

Best Answer

The IPv4 header contains total length, which is the total length of the packet including header. The IPv6 header contains payload length, which is the length of the actual payload not including the header. Since both are 16-bit unsigned integers, the IPv6 packet can contain in it's payload an entire IPv4 packet including header, so the IPv6 packet can handle more data.

References:
http://www.ietf.org/rfc/rfc2460.txt - IPv6 specification
http://www.ietf.org/rfc/rfc791.txt - IPv4 specification