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 11–15 of 74
Node X has a TCP connection open to node Y. The packets from X to Y go through an intermediate IP router R. Ethernet switch S is the first switch on the network path between X and R. Consider a packet sent from X to Y over this connection.
Which of the following statements is/are TRUE about the destination IP and MAC addresses on this packet at the time it leaves X?
Which of the following statements is/are TRUE about the destination IP and MAC addresses on this packet at the time it leaves X?
One or more options are correct.
Answer: (B)
Recall how the addresses change along the path:
- IP addresses work end-to-end, so the destination IP stays the IP of Y on the whole path.
- MAC addresses work hop-by-hop, so the destination MAC is that of the next IP hop, which is router R. A switch only forwards frames, and it is never the destination MAC.
So the only true statement is: destination IP = IP of Y.
Answer: The destination IP address is the IP address of Y
- IP addresses work end-to-end, so the destination IP stays the IP of Y on the whole path.
- MAC addresses work hop-by-hop, so the destination MAC is that of the next IP hop, which is router R. A switch only forwards frames, and it is never the destination MAC.
So the only true statement is: destination IP = IP of Y.
Answer: The destination IP address is the IP address of Y
Which of the following fields of an IP header is/are always modified by any router before it forwards the IP packet?
One or more options are correct.
Answer: (C), (D)
Each router lowers the TTL by one. A header field has changed, so the header checksum has to be calculated again.
An ordinary router does not change the source IP or the protocol field. The source IP changes only with NAT, and NAT is not what "any router" does.
Answer: TTL, Header Checksum
An ordinary router does not change the source IP or the protocol field. The source IP changes only with NAT, and NAT is not what "any router" does.
Answer: TTL, Header Checksum
Which one of the following CIDR prefixes exactly represents the range of IP addresses 10.12.2.0 to 10.12.3.255?
Answer: (A)
The range 10.12.2.0 to 10.12.3.255 contains addresses. So the host bits are 9 and the prefix length is .
Look at the third octet: 2 = 00000010 and 3 = 00000011 The first 23 bits are the same in both, so the block is aligned.
(A /24 covers only 10.12.2.x. A /22 covers 10.12.0.0-10.12.3.255.)
Answer: 10.12.2.0/23
Look at the third octet: 2 = 00000010 and 3 = 00000011 The first 23 bits are the same in both, so the block is aligned.
(A /24 covers only 10.12.2.x. A /22 covers 10.12.0.0-10.12.3.255.)
Answer: 10.12.2.0/23
Which of the following statements is/are INCORRECT about the OSPF (Open Shortest Path First) routing protocol used in the Internet?
One or more options are correct.
Answer: (A), (C)
OSPF is a link-state protocol that works inside one autonomous system.
- (A) is INCORRECT. OSPF does not use Bellman-Ford. Bellman-Ford belongs to distance-vector protocols such as RIP.
- (B) is correct. Each router builds the full topology from link-state advertisements and runs Dijkstra's algorithm to find least-cost paths.
- (C) is INCORRECT. OSPF is an intra-domain (interior) protocol. BGP is the inter-domain protocol.
- (D) is correct. OSPF divides an AS into areas joined by a backbone area, which is hierarchical routing.
Answer: (A), (C)
- (A) is INCORRECT. OSPF does not use Bellman-Ford. Bellman-Ford belongs to distance-vector protocols such as RIP.
- (B) is correct. Each router builds the full topology from link-state advertisements and runs Dijkstra's algorithm to find least-cost paths.
- (C) is INCORRECT. OSPF is an intra-domain (interior) protocol. BGP is the inter-domain protocol.
- (D) is correct. OSPF divides an AS into areas joined by a backbone area, which is hierarchical routing.
Answer: (A), (C)
The forwarding table of a router is shown below.
A packet addressed to a destination address 200.150.68.118 arrives at the router. It will be forwarded to the interface with ID _____.
A packet addressed to a destination address 200.150.68.118 arrives at the router. It will be forwarded to the interface with ID _____.
Answer: 3
Compare 200.150.68.118 with each entry (longest prefix wins):
- 200.150.0.0/16 match
- 200.150.64.0/19 (third octet 64-95) 68 is in range, match
- 200.150.68.0/24 match
- 200.150.68.64/27 (last octet 64-95) 118 is outside, no match
The longest match is /24 interface 3.
Answer: 3
- 200.150.0.0/16 match
- 200.150.64.0/19 (third octet 64-95) 68 is in range, match
- 200.150.68.0/24 match
- 200.150.68.64/27 (last octet 64-95) 118 is outside, no match
The longest match is /24 interface 3.
Answer: 3
Keep practising
Topics in Computer Networks
OSI LayerPhysical LayerData Link Layer
Network Layer ProtocolYou are here
Transport Layer ProtocolApplication Layer ProtocolsNetwork Security