GATE 2013 CS (CS1) – Question 47
An IPv4 datagram has M=0, HLEN=10, total length 400 and fragment offset 300. Identify fragment position and zero-based first/last payload-byte numbers.
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (C) Last,2400,2759
Explanation
Offset units are eight bytes, so the first payload byte is 300×8=2400. Header length is 10×4=40 bytes; payload length is 400−40=360. Its final byte is 2400+360−1=2759. M=0 and nonzero offset identify the last fragment. Thus C.
More IPv4: Addressing, CIDR, Fragmentation and NAT questions
- GATE 2010 CS (CS1) Q25
- GATE 2010 CS (CS1) Q57
- GATE 2015 CS (CS2) Q36
- GATE 2015 CS (CS2) Q37
- GATE 2015 CS (CS3) Q46
- GATE 2026 CS (CS1) Q56
All IPv4: Addressing, CIDR, Fragmentation and NAT questions →