GATE CSE 2022 Q55: CIDR prefixes that aggregate a router's subnets
- Computer Networks
- 2 marks
- MSQ
- No negative marking
Question
Consider routing table of an organization's router shown below:
| Subnet Number | Subnet Mask | Next Hop |
|---|---|---|
| 12.20.164.0 | 255.255.252.0 | R1 |
| 12.20.170.0 | 255.255.254.0 | R2 |
| 12.20.168.0 | 255.255.254.0 | Interface 0 |
| 12.20.166.0 | 255.255.254.0 | Interface 1 |
| default | R3 |
Which of the following prefixes in CIDR notation can be collectively used to correctly aggregate all of the subnets in the routing table?
Try it: multiple select: one or more correct options
Show answer and explanation
Answer: B, D (official GATE 2022 final answer key)
Concept used: Write the third octet ranges covered by each subnet and find valid prefixes (network address aligned to the mask) that cover them.
First step: 164.0/22 covers 164–167 (which includes 166.0/23); 168.0/23 and 170.0/23 together cover 168–171.
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2022 CS question paper and final answer key, organised by IIT Kharagpur. Question paper · Answer key
More Computer Networks PYQs
- 2026 Session 1 · Q18True statement about TCP connection setup and closing
- 2026 Session 1 · Q19HTTP 1.1 persistent connections and pipelining
- 2026 Session 1 · Q44When segment 2000 is sent under TCP slow start
- 2026 Session 1 · Q45Minimum sliding window size for full link utilisation
- 2026 Session 1 · Q56Valid CIDR blocks for 6000 addresses inside 202.16.0.0/15
- 2026 Session 2 · Q21File transfer time over three links of different bandwidth