Skip to content
Official PYQ · 2006

GATE CS 2006 Q45 — Fragmentation and IP Addressing, IPv4, CIDR

Explain with AI

Two computers C1C1 and C2C2 are configured as follows. C1C1 has IP address 203.197.2.53203.197.2.53 and netmask 255.255.128.0255.255.128.0. C2C2 has IP address 203.197.75.201203.197.75.201 and netmask 255.255.192.0255.255.192.0. Which one of the following statements is true?

Choose one option
View worked solution

Answer: C

To determine if a destination IP address is on the same local network, a host performs a bitwise AND operation between the destination IP address and its own subnet mask, and compares the result with its own network address.

1. Analysis for C1C1:

  • C1C1's own network address:
    203.197.2.53 AND 255.255.128.0=203.197.0.0203.197.2.53 \text{ AND } 255.255.128.0 = 203.197.0.0
  • C1C1 checks C2C2's IP:
    203.197.75.201 AND 255.255.128.0=203.197.0.0203.197.75.201 \text{ AND } 255.255.128.0 = 203.197.0.0

Since the results match, C1C1 assumes C2C2 is on the same network.

2. Analysis for C2C2:

  • C2C2's own network address:
    203.197.75.201 AND 255.255.192.0=203.197.64.0203.197.75.201 \text{ AND } 255.255.192.0 = 203.197.64.0 (since 75 AND 192=010010112 AND 110000002=010000002=6475 \text{ AND } 192 = 01001011_2 \text{ AND } 11000000_2 = 01000000_2 = 64)
  • C2C2 checks C1C1's IP:
    203.197.2.53 AND 255.255.192.0=203.197.0.0203.197.2.53 \text{ AND } 255.255.192.0 = 203.197.0.0

Since 203.197.0.0≠203.197.64.0203.197.0.0 \neq 203.197.64.0, C2C2 assumes C1C1 is on a different network.

Thus, C1C1 assumes C2C2 is on the same network, but C2C2 assumes C1C1 is on a different network.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Fragmentation and IP Addressing, IPv4, CIDR questions