The maximum number of IPv4 router addresses that can be listed in the record route (RR) option field of an IPv4 header is …
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2017 Set 2 · Q20
Time
Your answerNumerical answer
Solution
Official answer: 9 (±0)
IPv4, CIDR and NATTo determine the maximum number of IPv4 addresses that can be accommodated in the Record Route (RR) option:
Maximum IPv4 Header Size: The Internet Header Length (IHL) field in the IPv4 header is 4 bits, representing the header length in 32-bit (4-byte) words. The maximum value of IHL is , which corresponds to a maximum header size of:
Base Header Size: The standard base header (without options) is .
Maximum Options Field Size:
Overhead of the Record Route Option: The Record Route option has a 3-byte overhead:
Option Type / Code: 1 byte (value )
Option Length: 1 byte
Pointer: 1 byte
Space Available for IPv4 Addresses:
Maximum Number of IPv4 Addresses: Since each IPv4 address occupies 4 bytes:
Total option size used (plus 1 byte of NOP / padding to align to a 4-byte boundary).
Therefore, the maximum number of IPv4 router addresses that can be listed is 9 [20.0].
Try the question first, then check your work.
Examiner trap
Consider the maximum size of an IPv4 header (60 bytes), the standard base header size (20 bytes), the 3-byte overhead of the Record Route option, and the size of each IPv4 address (4 bytes).
This IPv4, CIDR and NAT previous year question is Q20 of the GATE CSE 2017 Set 2 paper. Find more GATE CSE PYQs on IPv4, CIDR and NAT in Computer Networks, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related IPv4, CIDR and NAT PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
IPv4, CIDR and NAT has 14 GATE CSE PYQs across 10 papers from 2012 to 2025. This is the only 1-mark NAT question among them, and it is the only one in GATE CSE 2017 Set 2.
How GATE tests IPv4, CIDR and NATIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.