The GATE Grind

GATE 2017 CS (CS2) – Question 30

Computer Networks · IPv4: Addressing, CIDR, Fragmentation and NAT · 1 mark · Numerical answer

What is the largest number of IPv4 router addresses that fit in the record-route option of an IPv4 header?

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: 9.0 to 9.0

Explanation

An IPv4 header can contain at most 40 option bytes. Record Route uses one byte each for option type, length and pointer, leaving 37 bytes. Each IPv4 router address consumes four bytes, so floor(37/4)=9 addresses fit, with padding for header alignment.

More IPv4: Addressing, CIDR, Fragmentation and NAT questions

All IPv4: Addressing, CIDR, Fragmentation and NAT questions →