StreakPeaked· Practice

ExamsGATETechnical

The forwarding table of a router is shown below. Subnet Number | Subnet Mask | Interface ID 200.150.0.0 | 255.255.0.0 | 1 200.150.64.0 | 255.255.224.0 | 2 200.150.68.0 | 255.255.255.0 | 3 200.150.68.64 | 255.255.255.224 | 4 Default | 0 A packet addressed to a destination address 200.150.68.118 arrives at the router. It will be forwarded to the interface with ID _________.

  1. 1
  2. 2
  3. 3
  4. 4

Correct answer: 3

Solution

200.150.68.118 matches 200.150.68.0/24 (interface 3) but not 200.150.68.64/27 (range .64-.95, and 118>95). The longest matching prefix is the /24 entry, so it is forwarded to interface 3 (index 2).

Related GATE Technical questions

⚔️ Practice GATE Technical free + battle 1v1 →