GATE / CS ARCHIVE

GATE CSE 2006 / QUESTION 45

Hosts with unequal subnet masks

Computer Networks · IP Addressing, Fragmentation & Address Resolution · Full GATE CSE 2006 paper

GATE 2006, Q45 2 marks · MCQ
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 45, GATE 2006: C1 has IP address 203.197.2.53 and mask 255.255.128.0. C2 has 203.197.75.201 and mask 255.255.192.0. What does each infer about the other’s network?
Options:
(A) Both consider the other local
(B) C2 considers C1 local, but C1 considers C2 remote
(C) C1 considers C2 local, but C2 considers C1 remote
(D) Both consider the other remote
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step through it (4 steps)

1. C1 uses /17, so both 203.197.2.53 and 203.197.75.201 map to 203.197.0.0. C2 uses /18, mapping itself to 203.197.64.0 and C1 to 203.197.0.0.

2. Therefore C1 treats C2 as local while C2 treats C1 as remote: C.

3. Teaching check: Each machine applies its own mask to both addresses. C1’s /17 groups third octets 0–127; C2’s /18 separates 0–63 from 64–127. Because the masks differ, being “on the same subnet” need not be a symmetric belief between these misconfigured hosts.

Original paper, page 6