CS FundamentalsVery hardGATE CS (PYQ pattern)
A class B network 150.20.0.0 is subnetted with mask 255.255.240.0 under the OLD (RFC 950) rules that forbid the all-zeros and all-ones subnet numbers and the all-zeros and all-ones host numbers. How many usable subnets and how many usable hosts per subnet are available?
- A. 16 subnets, 4096 hosts
- B. 14 subnets, 4094 hosts
- C. 14 subnets, 4096 hosts
- D. 16 subnets, 4094 hosts
Correct answer: B. 14 subnets, 4094 hosts
240 = 1111 0000 borrows 4 bits: 2^4 - 2 = 14 subnets under the old rule. 12 host bits give 2^12 - 2 = 4094 hosts.
More Computer Networks questions
- An 8-bit data word uses a single even-parity bit (9 bits total). Of all possible patterns of exactly 2 bit errors (anywhere in the 9…
- A SECDED code (single-error correction plus double-error detection) on an m-bit data word uses the smallest r with 2^r >= m + r + 1…
- TCP runs over IPv6 (40-byte header) inside an IPv4 GRE tunnel (20-byte outer IPv4 header + 4-byte GRE header) that crosses a PPPoE link (8…
- An undirected network has links (cost): A-C 3, A-E 2, A-F 3, B-C 2, B-E 2, B-G 2, C-D 5, D-E 1, D-G 3, E-G 4. Link-state routing at A…
- Router X has neighbours A, B, C at link costs 2, 5, 1. It receives distance vectors (to D1, D2, D3, D4): from A (4, 9, 3, 7), from B (1…
- Routers A and B are connected, and B is directly connected to network C (cost 1 each link; RIP, infinity = 16, no split horizon or poison…