GATE CS 2023 | Question 65

Computer Networks › Network Layer · NAT · 2 marks · Answer: 3

  1. Question 65Computer Networksnat2 marks
    The router's forwarding table: 200.150.0.0/16->1, 200.150.64.0/19->2, 200.150.68.0/24->3, 200.150.68.64/27->4, Default->0. A packet to 200.150.68.118 is forwarded to interface ID __________

    Answer: 3

    Solution

    Answer: 3 Check matches (longest prefix wins):
    /16  200.150.0.0      -> matches (iface 1)
    /19  200.150.64.0     -> 68 in 64..95? yes third-octet range -> matches (iface 2)
    /24  200.150.68.0     -> third octet 68 matches -> matches (iface 3)
    /27  200.150.68.64    -> host range 64..95; 118 > 95 -> NO match
    Longest matching prefix is /24 -> interface 3.

More GATE PYQ on Network Layer

All GATE CS Computer Networks PYQ →

Attempt GATE CS 2023 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →