πŸŽ“ BookMCQ
← Back to 22. Next Generation IP

πŸ“ The IPv6 Protocol (13 MCQs)

IPv6 as the Network-Layer Internet Protocol

Internet Protocol version 6 provides connectionless delivery of datagrams across interconnected networks using 128-bit source and destination addresses. It operates at the network layer and supports unicast, anycast, and multicast communication. IPv6 was designed to expand the address space and simplify the base header while supporting extension headers, traffic classification, and scalable routing across diverse link technologies. Its fields are designed for efficient network-layer forwarding.

Core IPv6 Header Fields and Packet Handling

Every IPv6 packet begins with a fixed 40-byte base header containing Version, Traffic Class, Flow Label, Payload Length, Next Header, Hop Limit, and 128-bit source and destination addresses. The Next Header field identifies the following extension or upper-layer header. Routers decrement Hop Limit when forwarding, preventing packets from circulating indefinitely through routing loops.

Forwarding IPv6 Datagrams Across Routers

A source host builds an IPv6 datagram and selects a destination address. Each router examines the destination, consults its forwarding table, decreases Hop Limit, and sends the packet through the selected interface. The destination processes any required extension headers before delivering the payload to TCP, UDP, ICMPv6, or another identified upper-layer protocol.

Reading a Simple IPv6 Packet Header

A packet with source 2001:DB8:1::10, destination 2001:DB8:2::20, Next Header value 17, and Hop Limit 64 identifies UDP as the following protocol. A forwarding router reduces Hop Limit to 63. The source and destination remain available for routing decisions, while the UDP header follows the IPv6 header in the packet.

IPv6 Services and Its Relationship with Other Layers

IPv6 works with link-layer technologies such as Ethernet and Wi-Fi, while transport protocols use its end-to-end addressing and packet delivery service. ICMPv6 supplies control and diagnostic messages, and Neighbor Discovery supports local address resolution and router discovery. IPv6 itself does not guarantee delivery, ordering, retransmission, or application-level reliability. Applications still depend on their own transport semantics.

Misconceptions About IPv6 Datagram Delivery

'IPv6 is connection-oriented' is incorrect because it provides connectionless datagram delivery. 'IPv6 guarantees packet arrival' is false because reliability is supplied, when needed, by upper-layer protocols such as TCP. 'IPv6 has a broadcast address' is wrong; multicast replaces many functions formerly performed with IPv4 broadcast. These distinctions matter when diagnosing failures.

Interpreting IPv6 Header and Forwarding Questions

Students should identify the fixed base-header length, explain the Next Header chain, and describe Hop Limit processing. Distinguish network-layer forwarding from transport-layer reliability, and compare unicast, anycast, and multicast destinations. Be ready to explain why a router uses a forwarding table rather than establishing a separate connection for each datagram.

IPv6 Packet and Protocol Terms

  • Datagram - Connectionless network-layer packet.
  • Hop Limit - Bounds packet forwarding across routers.
  • Next Header - Identifies the following protocol header.
  • Flow Label - Labels packets belonging to a traffic flow.
  • Traffic Class - Carries packet priority and congestion information.
  • Anycast - Delivers traffic to one selected group member.
4
Easy
6
Medium
3
Hard

πŸ“ All The IPv6 Protocol MCQs

Q1. Why does the 128‑bit address space of IPv6 prevent future address exhaustion compared to IPv4's 32‑bit space?

A.It provides exactly twice as many addresses
B.It offers 21282^{128} addresses, vastly exceeding demand βœ…
C.It uses hierarchical allocation reducing waste
D.It allows dynamic address reuse
πŸ’‘ Difficulty: easy | βœ… Correct: B

πŸ“– Explanation: The IPv6 space contains 21282^{128} possible addresses, which is astronomically larger than the 2322^{32} IPv4 space. This immense pool makes it practically impossible for global address depletion to occur, even with exponential growth of devices, because the number of available addresses far outpaces foreseeable demand.

Q2. Which of the following best describes the difference between IPv4 and IPv6 header formats?

A.IPv6 header is larger due to added fields
B.IPv6 header is fixed length of 40 bytes with fewer fields βœ…
C.IPv4 header includes extension headers while IPv6 does not
D.Both have variable length headers
πŸ’‘ Difficulty: easy | βœ… Correct: B

πŸ“– Explanation: IPv6 simplifies processing by using a fixed‑size 40‑byte header that contains only essential fields. IPv4 headers are variable in length because they can include optional fields. The streamlined IPv6 header reduces router workload and improves efficiency, while optional information is carried in separate extension headers rather than within the base header.

Q3. Given the IPv6 address 2001:0db8:0000:0000:0000:ff00:0042:8329, which abbreviated form is valid?

A.2001:db8::ff00:42:8329 βœ…
B.2001:0db8:0:0:0:ff00:0042:8329
C.2001:db8:0:0:0:ff00:42:8329
D.2001:db8::0:ff00:0042:8329
πŸ’‘ Difficulty: easy | βœ… Correct: A

πŸ“– Explanation: Zero compression can replace a single longest run of consecutive zero sections with \::\. In the given address, three middle sections are all zeros, so they can be compressed to \::\. Leading zeros in each remaining section are omitted, yielding the valid abbreviation 2001:db8::ff00:42:8329.

Q4. If a host moves from one IPv6 network to another without manual reconfiguration, which mechanism ensures it obtains a suitable address?

A.Static routing
B.DHCPv4
C.Stateless address autoconfiguration (SLAAC) βœ…
D.NAT traversal
πŸ’‘ Difficulty: medium | βœ… Correct: C

πŸ“– Explanation: Stateless Address Autoconfiguration (SLAAC) enables a host to generate its own IPv6 address using network prefixes advertised by routers. When the host connects to a new network, it listens for Router Advertisement messages, combines the advertised prefix with its interface identifier, and configures a valid address automatically, eliminating the need for manual configuration.

Q5. How do IPv6 extension headers improve packet processing compared to IPv4 options?

A.They are placed after the payload for easier parsing
B.They allow optional data to be placed in a chain after the fixed header, enabling routers to skip them when not needed βœ…
C.They increase header size to accommodate more options
D.They replace the need for any optional information
πŸ’‘ Difficulty: medium | βœ… Correct: B

πŸ“– Explanation: Extension headers form a linked list after the fixed IPv6 header, allowing routers to examine only the headers they need. If a router does not understand a particular extension, it can bypass it without inspecting the payload, unlike IPv4 options which are embedded within the header and must be processed by every hop, increasing overhead.

Q6. Which sequence correctly represents the three primary strategies for transitioning from IPv4 to IPv6?

A.Dual Stack β†’ Tunneling β†’ NAT64 βœ…
B.Tunneling β†’ Dual Stack β†’ Translation
C.Dual Stack β†’ Translation β†’ Tunneling
D.Translation β†’ Dual Stack β†’ Tunneling
πŸ’‘ Difficulty: medium | βœ… Correct: A

πŸ“– Explanation: The common migration roadmap begins with Dual Stack, where devices run both protocols simultaneously, followed by Tunneling methods that encapsulate IPv6 traffic within IPv4 networks, and finally NAT64 (a form of translation) which maps IPv6 addresses to IPv4 when only IPv4 connectivity remains. This ordered approach balances compatibility and gradual adoption.

Q7. When a device receives an IPv6 address written in mixed notation (e.g., ::ffff:192.0.2.128), what must it infer about the address?

A.It is an IPv4‑mapped IPv6 address βœ…
B.It is a multicast address
C.It is a link‑local address
D.It is a deprecated address format
πŸ’‘ Difficulty: medium | βœ… Correct: A

πŸ“– Explanation: Mixed notation combines IPv6 and IPv4 parts, specifically the ::ffff: prefix indicating an IPv4‑mapped IPv6 address. This format allows IPv6 systems to represent IPv4 hosts within the IPv6 address space, facilitating transition mechanisms and enabling IPv6‑only applications to communicate with IPv4 endpoints using the mapped address.

Q8. Which of the following best differentiates NAT64 from Dual Stack implementation?

A.NAT64 allows simultaneous use of IPv4 and IPv6 without additional hardware
B.Dual Stack requires separate interfaces for each protocol, while NAT64 translates between them
C.NAT64 provides end‑to‑end IPv6 connectivity, whereas Dual Stack only supports IPv4
D.Dual Stack eliminates the need for address translation, unlike NAT64 which maps IPv6 to IPv4 βœ…
πŸ’‘ Difficulty: medium | βœ… Correct: D

πŸ“– Explanation: Dual Stack equips hosts with native IPv4 and IPv6 stacks, so no address translation occurs. NAT64, by contrast, translates IPv6 traffic to IPv4 (or vice versa) to enable communication between incompatible networks, introducing an address‑mapping layer that Dual Stack avoids, thereby preserving end‑to‑end connectivity without translation.

Q9. An organization receives a /32 IPv6 allocation. To create 256 /48 subnets for different departments, how many bits are left for host addressing in each /48?

A.80 bits βœ…
B.64 bits
C.128 bits
D.96 bits
πŸ’‘ Difficulty: hard | βœ… Correct: A

πŸ“– Explanation: A /32 allocation provides the first 32 bits of the address. Each /48 subnet adds 16 more bits (48‑32) for subnetting, leaving 128‑48 = 80 bits for host identifiers within each subnet. Thus, each of the 256 (/48) subnets retains 80 bits for host addresses, offering an enormous number of possible hosts per department.

Q10. Which statement explains why ICMPv6 enhances network security compared to ICMP for IPv4?

A.ICMPv6 encrypts all messages by default
B.ICMPv6 integrates Neighbor Discovery with Secure ND, enabling authentication of routers βœ…
C.ICMPv6 removes all error messages, reducing attack surface
D.ICMPv6 uses UDP ports that are filtered by firewalls
πŸ’‘ Difficulty: hard | βœ… Correct: B

πŸ“– Explanation: ICMPv6 incorporates Secure Neighbor Discovery (Secure ND), which adds cryptographic authentication for router advertisements and other ND messages. This prevents spoofed router attacks and other malicious activities that were possible with unsecured ICMPv4 messages, thereby strengthening the overall security posture of IPv6 networks.

Q11. What is the most likely impact of the 128‑bit IPv6 address space on global routing table size?

A.Significant increase due to more granular prefixes
B.Decrease because aggregation is easier with hierarchical allocation βœ…
C.No change, as routing protocols ignore address length
D.Unpredictable, depends solely on ISP policies
πŸ’‘ Difficulty: hard | βœ… Correct: B

πŸ“– Explanation: IPv6 was designed with hierarchical address allocation, allowing large aggregates to be assigned to ISPs and reducing the number of distinct prefixes that must be advertised. Consequently, despite the larger address space, the global routing table is expected to shrink or grow more slowly because routes can be summarized more effectively than in IPv4.

Q12. Why does IPv6 allow zero compression (::) only once per address?

A.To prevent ambiguity in determining the number of omitted sections βœ…
B.Because multiple compressions would exceed address length limits
C.To maintain compatibility with IPv4
D.To simplify checksum calculations
πŸ’‘ Difficulty: medium | βœ… Correct: A

πŸ“– Explanation: Allowing only a single :: ensures that the position and count of omitted zero groups can be uniquely reconstructed. If multiple :: instances were permitted, parsers could not determine how many zero sections each represented, leading to ambiguous address interpretations.

Q13. What is the length of an IPv6 address?

A.64 bits
B.128 bits βœ…
C.32 bits
D.256 bits
πŸ’‘ Difficulty: easy | βœ… Correct: B

πŸ“– Explanation: An IPv6 address consists of 128 bits, typically represented as eight groups of four hexadecimal digits separated by colons. This length is four times larger than the 32‑bit IPv4 address space, providing a vastly larger pool of unique addresses for global networking.

πŸ”— Related Topics (MCQs)