LearnFrenzy
Sign in Take a free test

Computer Networks · Topic 7 of 10

IPv4, IPv6, ARP, NAT, ICMP and DHCP: questions with answers

The IPv4 header, TTL and fragmentation (offsets, MF and DF), ICMP, ping and traceroute, ARP, DHCP, NAT and port translation, and IPv6 addressing, notation, headers and neighbour discovery.

Questions
45
Timed sets
3
Answers run or computed
22
Your accuracy
–

What this topic covers

7 subtopics
  • Fragmentation11
  • IPv611
  • IPv4 header8
  • ARP4
  • ICMP4
  • NAT4
  • DHCP3
  • Beginner 15
  • Intermediate 15
  • Advanced 15

About this topic

Beyond addresses and routing, the network layer has its helpers: ARP finds MAC addresses, DHCP hands out addresses, ICMP reports errors, NAT stretches IPv4 space, and IPv6 replaces it. GATE regularly asks for fragmentation offsets and counts; interviews ask how ping, traceroute and NAT work. Fragmentation answers here were computed (offsets in 8-byte units) and IPv6 forms produced with Python's ipaddress module.

Free preview

Sample questions

Try each one first, then open the answer for the explanation and why the other options are wrong.

Question 1 ARP Beginner Practice

What does ARP do?

Assigns IP addresses to hosts
Routes packets between networks
Finds the IP address for a domain name
Finds the MAC address that belongs to an IP address on the local network
Show answer and explanation
Correct answer D

Explanation

The host broadcasts "who has 10.0.0.1?"; the owner replies with its MAC, and the answer is cached in the ARP table.

Why the other options are wrong

  • AThat is DHCP.
  • BThat is routing.
  • CThat is DNS.
Question 2 Fragmentation Intermediate Practice Answer computed

A 4000-byte IPv4 datagram (20-byte header, no options) meets a link with MTU 1500. How many fragments are created?

The answer is a number – work it out, then open the solution.

Show answer and explanation
Correct answer 3

Explanation

3980 bytes of data; each fragment carries at most 1480 bytes (a multiple of 8): 1480 + 1480 + 1020 → 3 fragments.

Question 3 Fragmentation Advanced Practice Answer computed

A 2400-byte datagram (20-byte header) crosses a link with MTU 620. What is the fragment offset field of the last fragment?

The answer is a number – work it out, then open the solution.

Show answer and explanation
Correct answer 225

Explanation

Each fragment carries 600 data bytes (a multiple of 8): offsets 0, 75, 150, 225; the last carries 2380 − 1800 = 580 bytes.

42 more questions in the timed setsSame format as the samples, with a timer, a question palette and a full review at the end.
Start practising

Computer Networks

All 10 topics

Topics, levels and full mocks
  1. 01 Network Models, Devices and Delays45 questions · 3 levels
  2. 02 Error Detection and Correction45 questions · 3 levels
  3. 03 Flow Control and Sliding Window45 questions · 3 levels
  4. 04 MAC Layer, Ethernet and Switching45 questions · 3 levels
  5. 05 IP Addressing and Subnetting45 questions · 3 levels
  6. 06 Routing Algorithms and Protocols45 questions · 3 levels
  7. 07 IPv4, IPv6, ARP, NAT, ICMP and DHCP45 questions · 3 levels
  8. 08 TCP, UDP and Congestion Control45 questions · 3 levels
  9. 09 Application Layer: DNS, HTTP and Email45 questions · 3 levels
  10. 10 Network Security and Socket Programming45 questions · 3 levels

Search LearnFrenzy

Esc

Quick links