GATE | GATE CS Mock 2018 | Set 2 | Question 23

IPv4 addressing system already gives information about network and host. Along with the Internet Protocol address of host, subnet mask is also needed by the routers inorder to direct the packet to intended network. Host doesn’t redirect packets, then Why does host need subnet mask ?

(A) Host need subnet mask for ANDing process inorder to know own network.
(B) To get the IP address of destination host
(C) To know if intended packet is supposed to send to router or not.
(D) To resolve the logical address from DNS server.


Answer: (C)

Explanation: We know Subnet mask is needed by routers (stored in routing table) inorder to direct the packet to intended network. But how will host know whether the packet belongs to its own network, whether to send the packet to router or not. For this reason, even host needs the Subnet mask.
Therefore, option (C) is correct.

Quiz of this Question



My Personal Notes arrow_drop_up


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.