GATE CS 2020 Set 1 — Question 48
Go beyond PYQs with Success TrackerAI-powered personalised practice and doubt support. Unlimited practice on eligible plans; AI usage limits apply.MCQ+2 / -0.67HardSubnetting & CIDRNetwork Layer: AddressingComputer Networks
Computer Networks → Network Layer: Addressing → Subnetting & CIDR
Last updated
Question
An organization requires a range of IP addresses to assign one to each of its 1500 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 . 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 to the organization?I.
II.
III.
IV.
II.
III.
IV.
Correct answer
(B) II and III only
Solution
To determine the potential candidates, we must satisfy the host requirement and ensure the block is a valid sub-allocation from the ISP's range that allows for route aggregation (i.e., a single CIDR block).
Only candidates II and III are valid blocks that can be carved out of the ISP's space. Assigning either of these as a single block minimizes the routing entries to one.Therefore, the correct option is (B).
1.Required Block Size:
The organization needs 1500 IP addresses. The smallest power of 2 that can accommodate 1500 hosts is . A block of 2048 addresses corresponds to a subnet mask ().2.ISP's Address Space:
The ISP's range is . In a network, the first 17 bits are fixed. The 17th bit is the first bit of the 3rd octet. For , this bit is . Thus, all sub-allocated blocks must have the first bit of their 3rd octet as . This limits the 3rd octet to the decimal range .3.Validity of Network Addresses:
For an address to be a valid start of a block, the last bits must be zero. This means the last 3 bits of the 3rd octet must be zero. In decimal, the 3rd octet must be a multiple of .- I. : The 3rd octet is . . Since it is not a multiple of 8, it is not a valid network address.
- II. : The 3rd octet is . . This is a valid network address and falls within the ISP's range ().
- III. : The 3rd octet is . . This is a valid network address and falls within the ISP's range ().
- IV. : The 3rd octet is . While is a multiple of 8, it is outside the ISP's range ().
Only candidates II and III are valid blocks that can be carved out of the ISP's space. Assigning either of these as a single block minimizes the routing entries to one.Therefore, the correct option is (B).
Continue learning with Success Tracker
A step still unclear? Work through it with support
Use Success Tracker to ask about the reasoning, then try another GATE CS question to check your understanding.
AI-powered practice· Unlimited practice on eligible plans
- PYQs with solutions
- Attempt available previous-year questions, then compare your reasoning with the worked solution. Coverage varies by stream.
- Practice that adapts
- Choose a topic, work on weaker areas and bookmark questions to revisit. Your attempts feed your progress tracking.
- AI doubt support
- Ask follow-up questions about a step or concept while practising, instead of stopping at the final answer.
Unlimited practice is available on eligible plans. Free practice and AI usage have limits; check the current plan allowances before choosing.
This page stays readable without an account. AI responses can be wrong; check them against the solution and source material.
More questions on Network Layer: Addressing
2026 Set 1 Q18With respect to a TCP connection between a client and a server, which one of the following…2026 Set 1 Q19Which of the following statements is/are true with respect to the interaction of a web browser with…2026 Set 2 Q21Consider a file of size 4 million bytes being transferred between two hosts connected via a path…2026 Set 2 Q22Which one of the following protocols may need to broadcast some of its messages?2026 Set 2 Q33If an IP network uses a subnet mask of 255.255.240.0, the maximum number of IP addresses that can…