GATE CS 2024 Set 1 | Question 58
Computer Networks › Network Layer · NAT · 2 marks · Answer: 40
- Question 58Computer Networksnat2 marksForwarding table: 10.1.1.0/24->R1, 10.1.1.128/25->R2, 10.1.1.64/26->R3, 10.1.1.192/26->R4. The router sends 20 packets each to hosts 10.1.1.16, 10.1.1.72, 10.1.1.132, 10.1.1.191, 10.1.1.205. The number of packets forwarded via R2 is _______
Answer: 40
Solution
Answer: 40 Longest-prefix match for each host:Hosts via R2: 10.1.1.132 and 10.1.1.191 -> packets.10.1.1.16 -> only /24 -> R1 10.1.1.72 -> /26 (64-127) -> R3 10.1.1.132 -> /25 (128-255) -> R2 10.1.1.191 -> /25 (128-255) -> R2 (not in 192/26 which is 192-255) 10.1.1.205 -> /26 (192-255) -> R4
More GATE PYQ on Network Layer
All GATE CS Computer Networks PYQ →Attempt GATE CS 2024 Set 1 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →