GATE / CS ARCHIVE

GATE CSE 2025 SET 2 / QUESTION 18

GATE CSE 2025 Set 2 Q18

Computer Networks · IP Addressing, Fragmentation & Address Resolution · Full GATE CSE 2025 Set 2 paper

GATE 2025 Set 2, Q18 1 mark · MCQ
Not in GATE 2027 syllabusReport issue

IP Addressing, Fragmentation & Address Resolution

Question 18, GATE 2025: An IPv4 packet's Protocol field names the protocol carried immediately inside IPv4. Which listed protocol is not normally a possible direct value for this purpose?
Options: A. ICMP; B. IGMP; C. OSPF; D. RIP.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

The IPv4 Protocol field identifies the next encapsulated protocol, not every protocol that may appear farther inside the payload. ICMP, IGMP, and OSPF all run directly over IP and have assigned IPv4 protocol numbers 1, 2, and 89 respectively. Therefore A, B, and C are possible.

RIP messages are carried in UDP datagrams, conventionally using UDP port 520 for RIPv2. In such a packet the IP Protocol field is 17, identifying UDP. RIP is recognized by the transport-layer port and its message format rather than by a direct RIP value in this field. Thus D is the required exclusion. OSPF and RIP are both routing protocols, but they use different encapsulation, so their shared purpose does not imply the same packet layering.

Original paper, page 16 · Answer key