Bitzu

CPSA ยท Network protocols and filtering

IPv4, IPv6 and ICMP: what a tester must know

Addressing, header fields, fragmentation, IPv6 differences and ICMP message types a tester meets.

Key points

  • IPv4 uses 32-bit addresses, a variable header with a checksum, and routers may fragment packets unless DF is set.
  • IPv6 uses 128-bit addresses, a fixed 40-octet header with no checksum, and only the source fragments.
  • ICMP carries control and error messages (echo, unreachable, time exceeded, redirect) that testers use for ping sweeps, traceroute and path discovery.

Source: https://www.rfc-editor.org/rfc/rfc8200

Practice questions

Single choice

Which field present in the IPv4 header was removed from the IPv6 header?

  1. The header checksum
  2. The source address
  3. The time-to-live counter
  4. The destination address
Show answer

Answer: A. The header checksum

IPv6 dropped the header checksum because link and transport layers already verify integrity. The Hop Limit is just a renamed TTL, and source/destination addresses remain.

Select all that apply

Which statements about IPv6 are correct?

  1. Routers along the path do not fragment packets
  2. The base header is a fixed 40 octets
  3. The base header carries a checksum
  4. The TTL field was renamed Hop Limit
  5. It does not use any ICMP at all
Show answer

Answer: A. Routers along the path do not fragment packets, B. The base header is a fixed 40 octets, D. The TTL field was renamed Hop Limit

IPv6 has a fixed 40-octet header, only the source node fragments, and TTL became Hop Limit. It has no header checksum, and ICMPv6 is mandatory for operation, not optional.

True or false

True or false: IPv6 routers fragment oversized packets in transit, just as IPv4 routers do when DF is clear.

Show answer

Answer: False

False. In IPv6 only the source node fragments; a router that cannot forward a packet drops it and signals the sender with ICMPv6.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More CPSA topics in this module