GATE 2017 CS (CS2) – Question 30
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
- GATE 2012 CS (CS1) Q33
- GATE 2012 CS (CS1) Q44
- GATE 2013 CS (CS1) Q47
- GATE 2010 CS (CS1) Q25
- GATE 2010 CS (CS1) Q57
- GATE 2015 CS (CS2) Q36
All IPv4: Addressing, CIDR, Fragmentation and NAT questions →