CS FundamentalsVery hardGATE CS · Cisco/networking placement
A firewall rule must match exactly the addresses 192.168.1.20 to 192.168.1.75 (inclusive) and nothing else, using CIDR blocks. What is the fewest number of blocks needed?
- A. 3
- B. 1
- C. 4
- D. 5
Correct answer: D. 5
Each block must be aligned to its own size: 20/30 (20–23), 24/29 (24–31), 32/27 (32–63), 64/29 (64–71) and 72/30 (72–75), so 5 blocks. Fewer blocks always overshoot, e.g. a single /25 or a /28 starting at 16.
More Computer Networks questions
- A 4000-byte IPv4 datagram (20-byte header, no options, DF = 0) first crosses a link with MTU 1500, then a link with MTU 620; no reassembly…
- A 4 Mbps link carries 1000-byte frames with a one-way propagation delay of 20 ms. Go-Back-N uses 3-bit sequence numbers with the largest…
- Stop-and-wait runs at 1 Mbps with 1000-byte frames and a one-way propagation delay of 11 ms (ACKs take no transmission time). Each data…
- A TCP Tahoe sender starts with cwnd = 1 MSS and ssthresh = 16 MSS; cwnd doubles each round in slow start (but never jumps above ssthresh)…
- A client's SYN carries sequence number 5000. After the handshake it sends three data segments of 200, 300 and 100 bytes and then a FIN…
- A TCP connection runs over a 1 Gbps path with an RTT of 80 ms. What is the smallest window-scale shift count S (window = 65,535 × 2^S…