GATE CS 2025 Set 1 | Question 40

Computer Networks › Network Layer · MCQ · 2 marks · Answer: A

  1. Question 40Computer Networksmcq2 marks
    A packet with destination IP address 145.36.109.70 arrives at a router whose routing table is shown. Which interface will the packet be forwarded to?
    Subnet Address | Subnet Mask (CIDR) | Interface
    ---------------+--------------------+----------
    145.36.0.0     | /16                | E1
    145.36.128.0   | /17                | E2
    145.36.64.0    | /18                | E3
    145.36.255.0   | /24                | E4
    Default        | --                 | E5
    • A.
      E3
      ✓
    • B.
      E1
    • C.
      E2
    • D.
      E5

    Answer: A

    Solution

    Answer: (A) E3 Routers use longest-prefix match. The third octet is . - /16 (): matches. - /17 (): needs third-octet top bit (); → no match. - /18 (): needs third-octet top two bits (range –); is in → match. - /24 (): third octet must be → no. The longest matching prefix is → interface E3.

More GATE PYQ on Network Layer

All GATE CS Computer Networks PYQ →

Attempt GATE CS 2025 Set 1 in real GATE exam mode

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

Create free account →