CS FundamentalsVery hardProduct company interview · GATE level
The block 10.20.64.0/20 is allocated with VLSM, always taking the lowest free addresses and handling requests in this order: LANs needing 900, 400, 200 and 100 hosts, then three point-to-point links needing 2 hosts each. Every subnet is the smallest that fits its need. Which subnet does the third point-to-point link receive, and how many addresses of the /20 are left unallocated?
- A. 10.20.72.8/30; 2164 addresses
- B. 10.20.71.136/30; 2176 addresses
- C. 10.20.71.136/30; 2164 addresses
- D. 10.20.71.132/30; 2168 addresses
Correct answer: C. 10.20.71.136/30; 2164 addresses
900 hosts need a /22 (1022 usable): 10.20.64.0/22. 400 need a /23: 10.20.68.0/23. 200 need a /24: 10.20.70.0/24. 100 need a /25: 10.20.71.0/25. The links take /30s from 10.20.71.128: .128/30, .132/30 and .136/30. Allocated = 1024 + 512 + 256 + 128 + 3 x 4 = 1932 of 4096, leaving 2164. 2176 forgets the three /30s; 10.20.72.8/30 would follow only if the /25 had been rounded up to a /24; .132/30 is the second link, not the third.
More Computer Networks questions
- A router uses longest-prefix matching with these entries: 10.4.0.0/14 -> interface A, 10.6.0.0/15 -> interface B, 10.6.128.0/17 ->…
- 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…
- 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…