CS FundamentalsHardGATE CS (PYQ pattern)
A router must send 10.0.0.0/24 through 10.0.7.0/24 (eight /24s) to next hop X, except 10.0.5.0/24, which goes to next hop Y. What is the minimum number of routing-table entries if longest-prefix matching may be relied on, and the minimum if every entry must cover only addresses with its own next hop?
- A. 1 and 4
- B. 2 and 3
- C. 2 and 4
- D. 3 and 4
Correct answer: C. 2 and 4
With longest-prefix match: 10.0.0.0/21 -> X plus the more specific 10.0.5.0/24 -> Y = 2. Without overlaps, X's seven /24s aggregate at best to 10.0.0.0/22, 10.0.4.0/24 and 10.0.6.0/23 (3 entries), plus Y's /24: 4.
More Computer Networks questions
- 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…
- 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…