Skip to content
Official PYQ · 2020

GATE CS 2020 Q38 — Fragmentation and IP Addressing, IPv4, CIDR

Explain with AI

An organization requires a range of IP address to assign one to each of its 15001500 computers. The organization has approached an Internet Service Provider (ISP) for this task. The ISP uses CIDR and serves the requests from the available IP address space 202.61.0.0/17202.61.0.0/17. The ISP wants to assign an address space to the organization which will minimize the number of routing entries in the ISP’s router using route aggregation. Which of the following address spaces are potential candidates from which the ISP can allot any one of the organization?

  1. 202.61.84.0/21202.61.84.0/21
  2. 202.61.104.0/21202.61.104.0/21
  3. 202.61.64.0/21202.61.64.0/21
  4. 202.61.144.0/21202.61.144.0/21
Choose one option
View worked solution

Answer: B

To find the potential candidate address spaces, we must satisfy three conditions: host capacity, ISP range constraint, and proper CIDR block alignment.

  1. Host Capacity: The organization requires 15001500 IP addresses. The smallest power of 22 that can accommodate this is 211=20482^{11} = 2048. This requires 1111 host bits, leaving 32−11=2132 - 11 = 21 bits for the network prefix. Thus, a /21/21 subnet mask is required. All given options satisfy this.
  2. ISP Range Constraint: The ISP's available block is 202.61.0.0/17202.61.0.0/17. For a /17/17 mask, the first 1717 bits are fixed. The 3rd3^{\text{rd}} octet has its most significant bit fixed to 00 (since 0=0000000020 = 00000000_2). Therefore, the 3rd3^{\text{rd}} octet can range from 00 to 127127 (01111111201111111_2).
    • Option IV (202.61.144.0/21202.61.144.0/21) has a 3rd3^{\text{rd}} octet of 144>127144 > 127, which falls outside the ISP's range.
  3. CIDR Block Alignment: For any valid /21/21 block, the 3rd3^{\text{rd}} octet must be a multiple of 224−21=23=82^{24-21} = 2^3 = 8.
    • I. 202.61.84.0/21202.61.84.0/21: 8484 is not a multiple of 88. (Invalid CIDR block)
    • II. 202.61.104.0/21202.61.104.0/21: 104104 is a multiple of 88 (13×813 \times 8). (Valid)
    • III. 202.61.64.0/21202.61.64.0/21: 6464 is a multiple of 88 (8×88 \times 8). (Valid)

Thus, only II and III are potential candidates.

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

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