Network Layer Protocol · Computer Networks
74 questions · asked in 23 of 27 years (2000–2026)
MCQ 54 · MSQ 7 · NAT 131-mark 44 · 2-mark 30
2000Questions per year2026
Questions 46–50 of 74
Suppose computers A and B have IP addresses 10.105.1.113 and 10.105.1.91 respectively and they both use the same net mask N. Which of the values of N given below should not be used if A and B should belong to the same network?
Answer: (D)
Look at the last octets: 113 = 0111 0001 and 91 = 0101 1011. Only the first 2 bits match.
- Masks .0, .128 and .192 cover at most 2 bits same network.
- Mask .224 covers 3 bits: 011 and 010 different networks.
Answer: 255.255.255.224
- Masks .0, .128 and .192 cover at most 2 bits same network.
- Mask .224 covers 3 bits: 011 and 010 different networks.
Answer: 255.255.255.224
One of the header fields in an IP datagram is the Time to Live (TTL) field. Which of the following statements best explains the need for this field?
Answer: (D)
Every router lowers the TTL value by one. When TTL becomes 0, the router discards the packet. So if a packet gets stuck in a routing loop, it cannot go around forever.
Answer: It can be used to prevent packet looping
Answer: It can be used to prevent packet looping
Host X has IP address 192.168.1.97 and is connected through two routers R1 and R2 to another host Y with IP address 192.168.1.80. Router R1 has IP addresses 192.168.1.135 and 192.168.1.110. R2 has IP addresses 192.168.1.67 and 192.168.1.155. The netmask used in the network is 255.255.255.224.
Which IP address should X configure its gateway as?
Which IP address should X configure its gateway as?
Answer: (B)
With mask the last octet of the mask is , so subnets are 32 addresses wide and the subnet number is the IP address ANDed with the mask.
X: , and . X is in subnet 192.168.1.96, which holds 96 to 127.
X can send directly only to a gateway in the same subnet. Check the four router addresses:
- 192.168.1.67 subnet 64 (64 to 95). It belongs to R2 and is in the same subnet as Y.
- 192.168.1.110 subnet 96. Same as X.
- 192.168.1.135 subnet 128 (128 to 159).
- 192.168.1.155 subnet 128.
Only 192.168.1.110 (router R1) is in X's subnet. The path is X, R1 (110 and 135), R2 (155 and 67), then Y.
Answer: (B)
X: , and . X is in subnet 192.168.1.96, which holds 96 to 127.
X can send directly only to a gateway in the same subnet. Check the four router addresses:
- 192.168.1.67 subnet 64 (64 to 95). It belongs to R2 and is in the same subnet as Y.
- 192.168.1.110 subnet 96. Same as X.
- 192.168.1.135 subnet 128 (128 to 159).
- 192.168.1.155 subnet 128.
Only 192.168.1.110 (router R1) is in X's subnet. The path is X, R1 (110 and 135), R2 (155 and 67), then Y.
Answer: (B)
Host X has IP address 192.168.1.97 and is connected through two routers R1 and R2 to another host Y with IP address 192.168.1.80. Router R1 has IP addresses 192.168.1.135 and 192.168.1.110. R2 has IP addresses 192.168.1.67 and 192.168.1.155. The netmask used in the network is 255.255.255.224.
Given the information above, how many distinct subnets are guaranteed to already exist in the network?
Given the information above, how many distinct subnets are guaranteed to already exist in the network?
Answer: (C)
Take the bitwise AND of each address with the subnet mask.
The last bits always become 0 after the AND.
There is no need to write the full binary.
Look only at the first to bits of the last octet.
(From the left, bit number has value , the next has value , the next has value , and so on.)
: something, so the first to bits will be
: something, so
: something, so
: something, so
: something, so
: something, so
So we get
subnets. The subnet IDs are:
Correct Answer:
Two popular routing algorithms are Distance Vector(DV) and Link State (LS) routing. Which of the following are true?
(S1): Count to infinity is a problem only with DV and not LS routing
(S2): In LS, the shortest path algorithm is run only at one node
(S3): In DV, the shortest path algorithm is run only at one node
(S4): DV requires lesser number of network messages than LS
(S1): Count to infinity is a problem only with DV and not LS routing
(S2): In LS, the shortest path algorithm is run only at one node
(S3): In DV, the shortest path algorithm is run only at one node
(S4): DV requires lesser number of network messages than LS
Answer: (D)
S1 is true. Count to infinity happens in distance vector (DV) because a node trusts the cost its neighbour reports, and stale costs can keep circulating. In link state (LS) every node has the full map of the network, so it does not occur.
S2 is false. In LS every node floods its link information, builds the full map, and runs Dijkstra's algorithm itself, so it runs at every node.
S3 is false. In DV every node runs the Bellman-Ford update on its own table, so it too runs at every node.
S4 is true. In DV a node sends its table only to its neighbours. In LS each node floods its link information to all nodes, which takes many more messages.
So only S1 and S4 are true.
Answer: (D)
S2 is false. In LS every node floods its link information, builds the full map, and runs Dijkstra's algorithm itself, so it runs at every node.
S3 is false. In DV every node runs the Bellman-Ford update on its own table, so it too runs at every node.
S4 is true. In DV a node sends its table only to its neighbours. In LS each node floods its link information to all nodes, which takes many more messages.
So only S1 and S4 are true.
Answer: (D)
Keep practising
Topics in Computer Networks
OSI LayerPhysical LayerData Link Layer
Network Layer ProtocolYou are here
Transport Layer ProtocolApplication Layer ProtocolsNetwork Security