CS FundamentalsVery hardProduct company interview · GATE level
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 /27 subnets of the block are still completely free (overlapping none of the assigned ranges)?
- A. 26
- B. 25
- C. 24
- D. 28
Correct answer: B. 25
A /22 contains 2^(27-22) = 32 subnets of size /27 (32 addresses each). The /26 (64 addresses) occupies 2 of them, the /25 (128 addresses) occupies 4, and the /28 (16 addresses) spoils 1 more, because the /27 192.168.3.224/27 that contains it is no longer completely free. 32 - 2 - 4 - 1 = 25. Answering 26 forgets that a partly used /27 cannot be handed out.
More Computer Networks questions
- 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…
- Hosts A, B, C, D and E are each attached to their own port of one Ethernet switch whose MAC table is empty. These frames are then sent in…