CS FundamentalsHardGATE CS · ISRO Scientist
An organisation needs three LANs with 1000, 500 and 250 hosts, carved with VLSM from ONE contiguous CIDR block. What is the longest prefix (smallest block) that can hold all three?
- A. /22
- B. /20
- C. /23
- D. /21
Correct answer: D. /21
Hosts plus network and broadcast need blocks of 1024, 512 and 256 addresses (/22, /23, /24), 1792 in total. That exceeds 1024 but fits in 2048, so a /21 is required. Adding the rounded block sizes (not the raw host counts) is the safe method, since blocks must be aligned powers of two.
More Computer Networks questions
- A TCP sender transmits segments 1–8 back to back; segment 3 is lost and every other segment arrives. The receiver sends an ACK for every…
- A TCP Reno sender (RFC 5681 fast recovery) has cwnd = 16 MSS when the third duplicate ACK arrives. Four MORE duplicate ACKs arrive, and…
- Selective Repeat uses 4-bit sequence numbers with the largest window that is safe. Frames take 1 ms to transmit on a 2 Mbps link, the…
- CRC-32 (degree 32, nonzero constant term) is used on long frames. If a burst error of length exactly 33 bits occurs (all burst patterns…
- A sender computes the 16-bit Internet checksum of the words 4500, 003C, 1C46, 4000, 4006 (hex) and sends 0x1E77. At the receiver the…
- A host sends a UDP datagram with 10 bytes of application data over IPv4 (20-byte header, no options) on Ethernet II. How many padding…