Skip to content
GATEiit

GATE CSE 2022 Q55: CIDR prefixes that aggregate a router's subnets

Question

Consider routing table of an organization's router shown below:

Subnet NumberSubnet MaskNext Hop
12.20.164.0255.255.252.0R1
12.20.170.0255.255.254.0R2
12.20.168.0255.255.254.0Interface 0
12.20.166.0255.255.254.0Interface 1
defaultR3

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

Select one or more options
Select all correct options. No negative marking, no partial marks.
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

WhatsAppDownload image

Source: official GATE 2022 CS question paper and final answer key, organised by IIT Kharagpur. Question paper · Answer key