Skip to content
Related Articles
Open in App
Not now

Related Articles

GATE | GATE MOCK 2017 | Question 51

Improve Article
Save Article
  • Last Updated : 28 Jun, 2021
Improve Article
Save Article

A packet addressed to came to a router having routing table as follows.

Which interface will it be forwarded to ?

(A) A
(B) B
(C) C
(D) D

Answer: (B)


Logical AND operation between subnet mask and IP address gives the subnet ID.
a) & = which is not equal to the destination so the packet will not be forwarded to the interface A.

b) & = so packet can be forwarded to B.
c) & = so packet can be forwarded to C.

If two IP addresses match then the packet should be forwarded to the subnet with more number of 1’s in the subnet mask.

Hence, router will forward the packet to interface B.

Quiz of this Question

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!