Skip to content
Official PYQ · 2012

GATE CS 2012 Q34 — Fragmentation and IP Addressing, IPv4, CIDR

Explain with AI

An Internet Service Provider (ISP) has the following chunk of CIDR-based IP addresses available with it: 245.248.128.0/20245.248.128.0/20. The ISP wants to give half of this chunk of addresses to Organization AA, and a quarter to Organization BB, while retaining the remaining with itself. Which of the following is a valid allocation of addresses to AA and BB?

Choose one option
View worked solution

Answer: A

The ISP has the CIDR block 245.248.128.0/20245.248.128.0/20. The third octet starts at 128128 (10000000210000000_2). With a /20/20 prefix, the first 44 bits of the third octet are fixed as 100021000_2, giving a range of third octet values from 128128 to 143143 (total 1616 blocks of size 256256).

We need to allocate:

  • Organization A: Half of the block   ⟹  \implies needs a /21/21 subnet (size 88 in the third octet).
  • Organization B: A quarter of the block   ⟹  \implies needs a /22/22 subnet (size 44 in the third octet).

We can split the /20/20 block into two equal /21/21 subnets:

  1. 245.248.128.0/21245.248.128.0/21 (covers third octet range [128,135][128, 135])
  2. 245.248.136.0/21245.248.136.0/21 (covers third octet range [136,143][136, 143])

If we allocate the second half, 245.248.136.0/21245.248.136.0/21, to Organization A, we can further split the first half (245.248.128.0/21245.248.128.0/21) into two /22/22 subnets:

  • 245.248.128.0/22245.248.128.0/22 (covers third octet range [128,131][128, 131])
  • 245.248.132.0/22245.248.132.0/22 (covers third octet range [132,135][132, 135])

Allocating 245.248.128.0/22245.248.128.0/22 to Organization B ensures there is no overlap between A and B, and both allocations are valid. This matches Option A.

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

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