GATE / CS ARCHIVE

GATE CSE 2014 SET 3 / QUESTION 28

GATE CSE 2014 Set 3 Q28

Computer Networks · IP Addressing, Fragmentation & Address Resolution · Full GATE CSE 2014 Set 3 paper

GATE 2014 Set 3, Q28 2 marks · MCQ
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 28, GATE 2014: A router with MTU 1500 bytes receives a 4404-byte IPv4 packet whose header is 20 bytes. What are the third fragment's (MF,total length,offset) fields? A (0,1444,370); B (1,1424,185); C (1,1500,370); D (0,1424,2960).
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Step through it (4 steps)

Step 1: Remove the original header to get 4404−20=4384 payload bytes. Each full fragment can carry 1500−20=1480 bytes; this is a multiple of eight, as required for nonfinal fragment payloads. Step 2: Two full fragments carry 2960 payload bytes, leaving 4384−2960=1424 bytes for the third fragment. Add its own 20-byte header: total length 1444. Step 3: Its starting payload offset is 2960 bytes, stored in eight-byte units as 2960/8=370. It is the last fragment, so MF=0. Therefore A, assuming fragmentation is permitted and the arriving packet is an unfragmented original.

Original paper, page 59 · Answer key