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 16–20 of 74
Consider an enterprise network with two Ethernet segments, a web server and a firewall, connected via three routers as shown below.
What is the number of subnets inside the enterprise network?
What is the number of subnets inside the enterprise network?
Answer: (C)
Each link between router interfaces is its own subnet. Each LAN behind a router is also its own subnet:
1. Firewall - left router
2. Firewall - top router
3. Top router - web server
4. Top router - right router
5. Left router - left Ethernet
6. Right router - right Ethernet
Answer: 6
1. Firewall - left router
2. Firewall - top router
3. Top router - web server
4. Top router - right router
5. Left router - left Ethernet
6. Right router - right Ethernet
Answer: 6
Consider routing table of an organization's router shown below:
Which of the following prefixes in CIDR notation can be collectively used to correctly aggregate all of the subnets in the routing table?
Which of the following prefixes in CIDR notation can be collectively used to correctly aggregate all of the subnets in the routing table?
One or more options are correct.
Answer: (B), (D)
Write each subnet as a range of the third octet (all are in 12.20.x.0):
- 164.0/22 164 to 167
- 166.0/23 166 to 167 (already inside the first)
- 168.0/23 168 to 169
- 170.0/23 170 to 171
Together they cover exactly 164 to 171. An aggregate should cover these addresses and no others. An address that is not in the table must go to the default route R3, but a wider aggregate would send it along the wrong next hop.
- (B) 12.20.164.0/22 covers 164 to 167 and (D) 12.20.168.0/22 covers 168 to 171. Together they match the table exactly.
- (C) /21 blocks are 8 wide and start at a multiple of 8, so 12.20.164.0/21 is really 160 to 167. It leaves out 168 to 171 and adds 160 to 163.
- (A) /20 blocks are 16 wide, so 12.20.164.0/20 is 160 to 175. It adds 160 to 163 and 172 to 175, which are not in the table.
Answer: (B), (D)
- 164.0/22 164 to 167
- 166.0/23 166 to 167 (already inside the first)
- 168.0/23 168 to 169
- 170.0/23 170 to 171
Together they cover exactly 164 to 171. An aggregate should cover these addresses and no others. An address that is not in the table must go to the default route R3, but a wider aggregate would send it along the wrong next hop.
- (B) 12.20.164.0/22 covers 164 to 167 and (D) 12.20.168.0/22 covers 168 to 171. Together they match the table exactly.
- (C) /21 blocks are 8 wide and start at a multiple of 8, so 12.20.164.0/21 is really 160 to 167. It leaves out 168 to 171 and adds 160 to 163.
- (A) /20 blocks are 16 wide, so 12.20.164.0/20 is 160 to 175. It adds 160 to 163 and 172 to 175, which are not in the table.
Answer: (B), (D)
Consider a network with three routers P, Q, R shown in the figure below. All the links have cost of unity.
The routers exchange distance vector routing information and have converged on the routing tables, after which the link Q-R fails. Assume that P and Q send out routing updates at random times, each at the same average rate. The probability of a routing loop formation (rounded off to one decimal place) between P and Q, leading to count-to-infinity problem, is ____
The routers exchange distance vector routing information and have converged on the routing tables, after which the link Q-R fails. Assume that P and Q send out routing updates at random times, each at the same average rate. The probability of a routing loop formation (rounded off to one decimal place) between P and Q, leading to count-to-infinity problem, is ____
Answer: 0.5
Before the failure, Q reaches R at cost 1. P reaches R at cost 2, going through Q. Now the link Q-R fails:
- If Q sends its update first, it says R is unreachable. P then learns that R is unreachable so no loop forms.
- If P sends first, it still tells Q "R is at cost 2". Q then sets its route to R through P (cost 3), while P sends its traffic through Q This is a routing loop, and count-to-infinity follows.
The two cases are equally likely, so the probability .
Answer: 0.5
- If Q sends its update first, it says R is unreachable. P then learns that R is unreachable so no loop forms.
- If P sends first, it still tells Q "R is at cost 2". Q then sets its route to R through P (cost 3), while P sends its traffic through Q This is a routing loop, and count-to-infinity follows.
The two cases are equally likely, so the probability .
Answer: 0.5
Consider a computer network using the distance vector routing algorithm in its network layer. The partial topology of the network is shown below.
The objective is to find the shortest-cost path from the router R to routers P and Q. Assume that R does not initially know the shortest routes to P and Q. Assume that R has three neighboring routers denoted as X, Y and Z. During one iteration, R measures its distance to its neighbors X, Y, and Z as 3, 2 and 5, respectively. Router R gets routing vectors from its neighbors that indicate that the distance to router P from routers X, Y and Z are 7, 6 and 5, respectively. The routing vector also indicates that the distance to router Q from routers X, Y and Z are 4, 6 and 8 respectively. Which of the following statement(s) is/are correct with respect to the new routing table o R, after updation during this iteration?
The objective is to find the shortest-cost path from the router R to routers P and Q. Assume that R does not initially know the shortest routes to P and Q. Assume that R has three neighboring routers denoted as X, Y and Z. During one iteration, R measures its distance to its neighbors X, Y, and Z as 3, 2 and 5, respectively. Router R gets routing vectors from its neighbors that indicate that the distance to router P from routers X, Y and Z are 7, 6 and 5, respectively. The routing vector also indicates that the distance to router Q from routers X, Y and Z are 4, 6 and 8 respectively. Which of the following statement(s) is/are correct with respect to the new routing table o R, after updation during this iteration?
One or more options are correct.
Answer: (B), (C)
Cost through each neighbour = (R to neighbour) + (neighbour's distance):
- To P: X 3 + 7 = 10, Y 2 + 6 = 8, Z 5 + 5 = 10 8 via Y
- To Q: X 3 + 4 = 7, Y 2 + 6 = 8, Z 5 + 8 = 13 7 via X
So R to P is 8 via Y (not 10), and R to Q is 7 via X (not via Z).
Answer: Distance to Q is 7; next hop to P is Y
- To P: X 3 + 7 = 10, Y 2 + 6 = 8, Z 5 + 5 = 10 8 via Y
- To Q: X 3 + 4 = 7, Y 2 + 6 = 8, Z 5 + 8 = 13 7 via X
So R to P is 8 via Y (not 10), and R to Q is 7 via X (not via Z).
Answer: Distance to Q is 7; next hop to P is Y
Consider the following statements about the functionality of an IP based router.
I. A router does not modify the IP packets during forwarding.
II. It is not necessary for a router to implement any routing protocol.
III. A router should reassemble IP fragments if the MTU of the outgoing link is larger than the size of the incoming IP packet.
Which of the above statements is/are TRUE?
I. A router does not modify the IP packets during forwarding.
II. It is not necessary for a router to implement any routing protocol.
III. A router should reassemble IP fragments if the MTU of the outgoing link is larger than the size of the incoming IP packet.
Which of the above statements is/are TRUE?
Answer: (D)
Let us look at each statement:
- I: a router makes changes to the packet (it lowers the TTL, updates the checksum, and may fragment it) so this is FALSE.
- II: a router can run with static routes alone and needs no routing protocol so this is TRUE.
- III: a router never reassembles fragments; only the destination does this so this is FALSE.
Answer: II only
- I: a router makes changes to the packet (it lowers the TTL, updates the checksum, and may fragment it) so this is FALSE.
- II: a router can run with static routes alone and needs no routing protocol so this is TRUE.
- III: a router never reassembles fragments; only the destination does this so this is FALSE.
Answer: II only
Keep practising
Topics in Computer Networks
OSI LayerPhysical LayerData Link Layer
Network Layer ProtocolYou are here
Transport Layer ProtocolApplication Layer ProtocolsNetwork Security