CS FundamentalsHardGATE CS (PYQ pattern)
A router has routes to 10.0.0.0/24, 10.0.1.0/24, 10.0.2.0/24, 10.0.3.0/24, 10.0.5.0/24 and 10.0.6.0/23, all via the same next hop. What is the smallest number of prefixes that covers exactly these addresses (no extra addresses)?
- A. 4
- B. 5
- C. 2
- D. 3
Correct answer: D. 3
Adjacent aligned blocks merge: ['10.0.0.0/22', '10.0.5.0/24', '10.0.6.0/23']. 10.0.5.0/24 cannot merge with 10.0.6.0/23 (not a sibling block) and 10.0.4.0/24 is missing, so exactly those prefixes remain.
More Computer Networks questions
- A router uses longest-prefix match with the table: 0.0.0.0/0 → e0; 172.16.0.0/12 → e1; 172.16.64.0/18 → e2; 172.16.80.0/20 → e3…
- What is the longest prefix (smallest block) that covers all of the addresses 200.18.77.5, 200.18.79.250, 200.18.72.0 and 200.18.75.130?
- A host has address 172.20.145.200 and subnet mask 0xFFFFF800. How many usable host addresses of its subnet are numerically greater than…
- A router ACL entry matches an address if every bit position where the wildcard mask has a 0 equals the corresponding bit of 192.168.4.0…
- A 4000-byte IPv4 datagram (20-byte header, 3980 bytes of data) crosses links with MTUs 1500, 1000 and 576 bytes in turn, and every router…
- A DHCP client gets a 6-hour lease at time 0 and uses the default timers T1 = 50% and T2 = 87.5% of the current lease. At T1 its unicast…