CS FundamentalsVery hardProduct company interview · GATE level
A site owns 172.18.72.0/22, 172.18.76.0/23 and 172.18.80.0/22 and wants to advertise them with one prefix. What is the smallest single prefix that covers all three, and how many addresses inside that prefix do NOT belong to any of the three networks?
- A. 172.18.64.0/19; 5632 addresses
- B. 172.18.64.0/20; 1536 addresses
- C. 172.18.72.0/20; 1536 addresses
- D. 172.18.64.0/19; 2560 addresses
Correct answer: A. 172.18.64.0/19; 5632 addresses
The third octet runs from 72 (01001000) to 83 (01010011). These share only the leading bits 010, so the common prefix is 16 + 3 = 19 bits: 172.18.64.0/19, covering 64-95 in the third octet, 8192 addresses. The three networks hold 1024 + 512 + 1024 = 2560 addresses, so 8192 - 2560 = 5632 addresses are covered but not owned. A /20 starting at 64 stops at 79 and misses 172.18.80.0/22; 172.18.72.0/20 is not a valid block boundary; 2560 is the owned count, not the excess.
More Computer Networks questions
- From the block 192.168.0.0/22, three subnets have already been assigned: 192.168.1.64/26, 192.168.2.0/25 and 192.168.3.240/28. How many…
- Host X sends 10 packets of 1000 bytes each to host Y through two store-and-forward routers. The three links on the path have rates 2 Mbps…
- A 4800-byte message is sent over a path of 4 store-and-forward links of equal rate (3 routers), with negligible propagation delay. The…
- A host is shaped by a token bucket of capacity 6 Mb that fills at 4 Mbps; the bucket is full at t = 0. The output link can carry at most…
- Stations sharing a 56 kbps pure ALOHA channel send 1000-bit frames. Together (new frames plus retransmissions) they attempt 28 frames per…
- An HDLC-style link uses the flag 01111110 and bit stuffing: the sender inserts a 0 after every run of five consecutive 1s in the data. The…