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 56–60 of 74
A router uses the following routing table:
Packet bearing a destination address 144.16.68.117 arrives at the router. On which interface will it be forwarded?
Packet bearing a destination address 144.16.68.117 arrives at the router. On which interface will it be forwarded?
Answer: (C)
Destination address 144.16.68.117:
- eth3 (/27, 144.16.68.64): this range is .64-.95 117 is outside it, so no match
- eth2 (/24, 144.16.68.0): this one matches
- eth1 (/19) and eth0 (/16): these match too, but their prefixes are shorter
The longest prefix match rule gives eth2
Answer: eth2
- eth3 (/27, 144.16.68.64): this range is .64-.95 117 is outside it, so no match
- eth2 (/24, 144.16.68.0): this one matches
- eth1 (/19) and eth0 (/16): these match too, but their prefixes are shorter
The longest prefix match rule gives eth2
Answer: eth2
Two computers C1 and C2 are configured as follows. C1 has IP address 203.197.2.53 and netmask 255.255.128.0. C2 has IP address 203.197.75.201 and netmask 255.255.192.0. Which one of the following statements is true?
Answer: (C)
The subnet mask for C1 is So, C1 finds the network ID like this:
AND
AND
The two network IDs are the same.
Next, the subnet mask for is So, the network IDs it finds are:
AND
AND
The two network IDs are not the same. So, the answer is option C.
For which one of the following reason does Internet Protocol (IP) use the time-to-live (TTL) field in the IP datagram header?
Answer: (C)
The TTL field in the IPv4 header is one byte, so it holds a value from to . The sender sets it, and every router that forwards the packet decreases it by 1. When it reaches 0 the packet is discarded.
IP is connectionless, and a routing loop can make a packet circle the network for ever, which would use up bandwidth and make the network unstable. TTL puts an upper limit on the number of hops, so a looping packet is eventually dropped.
- (A) is wrong. TTL does not guarantee delivery in any time.
- (B) is wrong. A packet is dropped when its TTL reaches 0, not because it arrives late.
- (D) is wrong. TTL counts forwarding hops. It does not limit how long a packet waits in a router queue.
Answer: (C)
IP is connectionless, and a routing loop can make a packet circle the network for ever, which would use up bandwidth and make the network unstable. TTL puts an upper limit on the number of hops, so a looping packet is eventually dropped.
- (A) is wrong. TTL does not guarantee delivery in any time.
- (B) is wrong. A packet is dropped when its TTL reaches 0, not because it arrives late.
- (D) is wrong. TTL counts forwarding hops. It does not limit how long a packet waits in a router queue.
Answer: (C)
Consider a simple graph with unit edge costs. Each node in the graph represents a router. Each node maintains a routing table indicating the next hop router to be used to relay a packet to its destination and the cost of the path to the destination through that router. Initially, the routing table is empty. The routing table is synchronously updated as follows. In each updated interval, three tasks are performed.
i. A node determines whether its neighbors in the graph are accessible. If so, it sets the tentative cost to each accessible neighbor as 1. Otherwise, the cost is set to .
ii. From each accessible neighbor, it gets the costs to relay to other nodes via that neighbor (as the next hop).
iii. Each node updates its routing table based on the information received in the previous two steps by choosing the minimum cost.
Continuing from the earlier problem, suppose at some time t, when the costs have stabilized, node A goes down. The cost from node F to node A at time (t+100) is :
i. A node determines whether its neighbors in the graph are accessible. If so, it sets the tentative cost to each accessible neighbor as 1. Otherwise, the cost is set to .
ii. From each accessible neighbor, it gets the costs to relay to other nodes via that neighbor (as the next hop).
iii. Each node updates its routing table based on the information received in the previous two steps by choosing the minimum cost.
Continuing from the earlier problem, suppose at some time t, when the costs have stabilized, node A goes down. The cost from node F to node A at time (t+100) is :
Answer: (A)
The links in the figure are A-B, A-C, B-C, B-D, C-D, C-E, D-E and D-F. Before A goes down (time ), the costs to A are B = 1, C = 1, D = 2, E = 2, F = 3.
Once A is down, nobody has a real route to A. In each interval a node takes the minimum cost to A reported by its neighbours in the previous interval, and adds 1. Nodes still use stale costs from each other (there is no split horizon):
: B = 2 (via C), C = 2 (via B), D = 2, E = 2, F = 3
: B = 3, C = 3, D = 3, E = 3, F = 3
: all of B, C, D, E rise to 4 and F = 4
From on, every node's cost rises by 1 each interval, because each node always finds a neighbour with a stale cost one lower. So F's cost at is .
At , F's cost is . This is the count-to-infinity problem: the cost is finite, and it keeps growing, so it is more than 100 but finite. It is not , because no infinity limit is set.
Answer: (A)
Once A is down, nobody has a real route to A. In each interval a node takes the minimum cost to A reported by its neighbours in the previous interval, and adds 1. Nodes still use stale costs from each other (there is no split horizon):
: B = 2 (via C), C = 2 (via B), D = 2, E = 2, F = 3
: B = 3, C = 3, D = 3, E = 3, F = 3
: all of B, C, D, E rise to 4 and F = 4
From on, every node's cost rises by 1 each interval, because each node always finds a neighbour with a stale cost one lower. So F's cost at is .
At , F's cost is . This is the count-to-infinity problem: the cost is finite, and it keeps growing, so it is more than 100 but finite. It is not , because no infinity limit is set.
Answer: (A)
Consider a simple graph with unit edge costs. Each node in the graph represents a router. Each node maintains a routing table indicating the next hop router to be used to relay a packet to its destination and the cost of the path to the destination through that router. Initially, the routing table is empty. The routing table is synchronously updated as follows. In each updated interval, three tasks are performed.
i. A node determines whether its neighbors in the graph are accessible. If so, it sets the tentative cost to each accessible neighbor as 1. Otherwise, the cost is set to .
ii. From each accessible neighbor, it gets the costs to relay to other nodes via that neighbor (as the next hop).
iii. Each node updates its routing table based on the information received in the previous two steps by choosing the minimum cost.
For the graph given above, possible routing tables for various nodes after they have stabilized, are shown in the following options. Identify the correct table.
i. A node determines whether its neighbors in the graph are accessible. If so, it sets the tentative cost to each accessible neighbor as 1. Otherwise, the cost is set to .
ii. From each accessible neighbor, it gets the costs to relay to other nodes via that neighbor (as the next hop).
iii. Each node updates its routing table based on the information received in the previous two steps by choosing the minimum cost.
For the graph given above, possible routing tables for various nodes after they have stabilized, are shown in the following options. Identify the correct table.
Answer: (C)
All links have cost 1, so each cost is the number of hops of a shortest path. Links in the graph: A-B, A-C, B-C, B-D, C-D, C-E, D-E, D-F.
Stabilized costs (destination: next hop, cost):
- Node A: B: B, 1; C: C, 1; D: B, 2; E: C, 2; F: C, 3
- Node B: A: A, 1; C: C, 1; D: D, 1; E: C, 2; F: D, 2
- Node C: A: A, 1; B: B, 1; D: D, 1; E: E, 1; F: D, 2
- Node D: A: B, 2; B: B, 1; C: C, 1; E: E, 1; F: F, 1
Compare with the options:
- (A) Node A: D, E and F are given costs 3, 3 and 4, but the true costs are 2, 2 and 3 (A-B-D, A-C-E, A-C-D-F).
- (B) Node C: F is given as via E with cost 3, but the shortest path is C-D-F with cost 2 via D.
- (C) Node B matches the table above in every entry. (E can also go via D at cost 2; either next hop gives a valid table.)
- (D) Node D: A is given cost 3, but D-B-A has cost 2.
Answer: (C)
Stabilized costs (destination: next hop, cost):
- Node A: B: B, 1; C: C, 1; D: B, 2; E: C, 2; F: C, 3
- Node B: A: A, 1; C: C, 1; D: D, 1; E: C, 2; F: D, 2
- Node C: A: A, 1; B: B, 1; D: D, 1; E: E, 1; F: D, 2
- Node D: A: B, 2; B: B, 1; C: C, 1; E: E, 1; F: F, 1
Compare with the options:
- (A) Node A: D, E and F are given costs 3, 3 and 4, but the true costs are 2, 2 and 3 (A-B-D, A-C-E, A-C-D-F).
- (B) Node C: F is given as via E with cost 3, but the shortest path is C-D-F with cost 2 via D.
- (C) Node B matches the table above in every entry. (E can also go via D at cost 2; either next hop gives a valid table.)
- (D) Node D: A is given cost 3, but D-B-A has cost 2.
Answer: (C)
Keep practising
Topics in Computer Networks
OSI LayerPhysical LayerData Link Layer
Network Layer ProtocolYou are here
Transport Layer ProtocolApplication Layer ProtocolsNetwork Security