Network Layer Question
Network Layer Question
Questions
Introduction
These 50 multiple-choice questions are designed to deepen your understanding of the
network layer concepts from the Cisco Networking Academy Program’s “Introduction to
Networks v6.0, Chapter 6: Network Layer.” Each question includes four options, the
correct answer, and a detailed explanation in a table format to clarify the reasoning
behind the answer and why other options are incorrect.
Questions
1. What is the primary function of the network layer in the OSI model?
A) To ensure reliable data delivery with error correction
B) To provide logical addressing and packet routing
C) To manage physical connections between devices
D) To format data for application-layer protocols
Answer: B
Correct Answer B: To provide logical addressing and packet routing
Explanation The network layer (OSI Layer 3) enables end-to-end
communication through logical addressing (e.g., IP
addresses) and routing packets across networks.
Option A is incorrect because reliability is handled by
the transport layer (e.g., TCP). Option C relates to
the data link layer, and Option D pertains to higher
layers like the application layer.
1
Answer: B
Correct Answer B: It is a connectionless, best-effort protocol
Explanation IPv4 is designed for low overhead, operating without
establishing connections (connectionless) and not
guaranteeing delivery (best-effort). Reliability, such as
retransmitting lost packets, is managed by the
transport layer (e.g., TCP). Option A is incorrect as
the IPv4 header is not inherently complex. Option C is
unrelated, as IPv4 is media-independent. Option D is
false, as IPv4 encapsulates transport layer data.
3. What happens when a router receives a packet for a network not in its routing table
and no default route exists?
A) The packet is forwarded to the next-hop address
B) The packet is sent to the local host
C) The packet is discarded
D) The router broadcasts the packet to all interfaces
Answer: C
Correct Answer C: The packet is discarded
Explanation A router uses its routing table to determine the
forwarding path. If the destination network is not
listed and no default route is configured, the router
cannot forward the packet and discards it. Option A is
incorrect without a known next-hop. Option B is
invalid, as routers don’t forward to local hosts. Option
D is incorrect, as broadcasting is not a router’s default
behavior.
4. Which IPv6 header field is equivalent to the IPv4 Time-to-Live (TTL) field?
A) Flow Label
B) Hop Limit
C) Traffic Class
D) Payload Length
Answer: B
Correct Answer B: Hop Limit
Explanation The IPv6 Hop Limit field replaces the IPv4 TTL field,
decrementing by 1 at each router. When it reaches
zero, the packet is discarded to prevent infinite
looping. Option A (Flow Label) ensures consistent
handling, Option C (Traffic Class) manages priority,
and Option D (Payload Length) indicates data size.
5. Why does IPv6 eliminate the need for Network Address Translation (NAT)?
2
A) It uses a simplified header with fewer fields
B) It supports a 128-bit address space
C) It requires connection-oriented communication
D) It mandates error correction at the network layer
Answer: B
Correct Answer B: It supports a 128-bit address space
Explanation IPv6’s 128-bit address space provides enough unique
addresses to eliminate NAT, which IPv4 uses to share
limited addresses. Option A aids efficiency but doesn’t
address NAT. Option C is incorrect, as IPv6 is
connectionless. Option D is false, as error correction is
a transport layer function.
7. Which command displays the IPv4 routing table on a Cisco IOS router?
A) show ip interface brief
B) show interfaces
C) show ip route
D) show version
Answer: C
Correct Answer C: show ip route
Explanation The ‘show ip route‘ command displays the IPv4
routing table, showing directly connected, remote, and
default routes. Option A shows interface status,
Option B displays interface statistics, and Option D
provides IOS and hardware details.
8. What type of memory in a Cisco router stores the startup configuration file?
3
A) RAM
B) ROM
C) NVRAM
D) Flash
Answer: C
Correct Answer C: NVRAM
Explanation NVRAM (Non-Volatile RAM) stores the startup
configuration file, persisting through power cycles.
Option A (RAM) holds the running config, Option B
(ROM) stores bootstrap and limited IOS, and Option
D (Flash) stores the full IOS.
9. What is the role of the ‘no shutdown‘ command when configuring a router interface?
A) It saves the configuration to NVRAM
B) It activates the interface
C) It assigns an IP address to the interface
D) It displays the interface status
Answer: B
Correct Answer B: It activates the interface
Explanation The ‘no shutdown‘ command enables a router interface
to send and receive packets. Option A refers to ‘copy
running-config startup-config‘, Option C involves ‘ip
address‘, and Option D uses ‘show ip interface brief‘.
10. Why is a switch’s default gateway address necessary for remote management?
A) It enables the switch to forward packets between local hosts
B) It allows the switch to communicate with remote networks
C) It assigns IP addresses to connected devices
D) It secures the switch against unauthorized access
Answer: B
Correct Answer B: It allows the switch to communicate with remote
networks
Explanation A switch’s default gateway enables remote management
(e.g., via SSH) by routing traffic to remote networks.
Option A is incorrect, as switches don’t forward host
packets. Option C relates to DHCP servers, and
Option D involves security settings, not the gateway.
11. What does the IPv4 Protocol field in the packet header indicate?
A) The priority of the packet
B) The next-level protocol
4
C) The packet’s lifetime
D) The source IP address
Answer: B
Correct Answer B: The next-level protocol
Explanation The Protocol field identifies the transport layer
protocol (e.g., TCP, UDP) carried in the packet.
Option A is the Differentiated Services field, Option C
is the TTL field, and Option D is the Source IPv4
Address field.
14. What does the ‘C’ in a Cisco router’s routing table indicate?
A) A remote network route
B) A directly connected network
C) A default route
5
D) A loopback interface
Answer: B
Correct Answer B: A directly connected network
Explanation The ‘C’ indicates a directly connected network,
configured with an IP address and active interface.
Option A is marked by other codes (e.g., ‘D’ for
EIGRP). Option C is marked by ‘S*’, and Option D is
marked by ‘L’.
16. What is the purpose of the IPv4 Differentiated Services (DS) field?
A) To identify the source IP address
B) To determine packet priority
C) To specify the next-level protocol
D) To limit the packet’s lifetime
Answer: B
Correct Answer B: To determine packet priority
Explanation The DS field prioritizes packets for Quality of Service
(QoS). Option A is the Source IPv4 Address, Option C
is the Protocol field, and Option D is the TTL field.
6
Answer: B
Correct Answer B: Hardware diagnostics are performed
Explanation The Power-on Self-Test (POST) checks hardware
components from ROM. Option A occurs in the IOS
loading phase, Option C in the configuration loading
phase, and Option D is a configuration task, not part
of boot-up.
7
Correct Answer B: By comparing source and destination subnet masks
Explanation A host compares its IP address and subnet mask with
the destination’s to determine if they share the same
network. If not, the packet is sent to the default
gateway. Option A is incorrect, as the gateway is used
for remote destinations. Option C is a router function,
and Option D is not a host behavior.
22. Why is the IPv6 header simpler than the IPv4 header?
A) It has fewer fields
B) It uses a smaller address space
C) It requires NAT
D) It is connection-oriented
Answer: A
Correct Answer A: It has fewer fields
Explanation The IPv6 header has fewer fields for efficient packet
handling. Option B is false, as IPv6 has a larger
address space. Option C is incorrect, as IPv6
eliminates NAT. Option D is false, as IPv6 is
connectionless.
8
Correct Answer B: To show interface status and protocol
Explanation The ‘show ip interface brief‘ command provides a
summary of interface status (up/down) and protocol
state. Option A is ‘show ip route‘, Option C is
unrelated to a specific command, and Option D is
‘copy running-config startup-config‘.
9
Correct Answer B: To locate and load the IOS
Explanation The bootstrap program, stored in ROM, locates the
Cisco IOS in Flash and loads it into RAM. Option A is
a configuration task, Option C is an IOS function, and
Option D involves security settings.
10
30. How does a router learn remote routes?
A) Through manual configuration or dynamic routing protocols
B) By analyzing the TTL field
C) Via the default gateway
D) Through the loopback interface
Answer: A
Correct Answer A: Through manual configuration or dynamic routing
protocols
Explanation Remote routes are learned via static configuration or
protocols like EIGRP. Option B is unrelated, Option C
applies to hosts, and Option D is for testing.
11
D) To load the IOS into RAM
Answer: B
Correct Answer B: To save the current configuration
Explanation This command saves the running configuration in
RAM to NVRAM as the startup configuration. Option
A is ‘no shutdown‘, Option C is ‘show ip route‘, and
Option D is a boot-up process.
35. What does the router do if a packet’s Hop Limit reaches zero?
A) Forwards it to the next hop
B) Sends it to the default gateway
C) Discards the packet
D) Broadcasts it to all interfaces
Answer: C
Correct Answer C: Discards the packet
Explanation When the Hop Limit (or TTL in IPv4) reaches zero,
the router discards the packet to prevent infinite loops.
Options A, B, and D are incorrect, as they violate this
rule.
12
Correct Answer B: To provide remote management
Explanation The AUX port supports remote management, typically
via a modem. Option A involves LAN interfaces,
Option C is NVRAM, and Option D is a routing
function.
13
40. Why does a router not use a default gateway like a host?
A) It has no IP address
B) It uses its routing table for forwarding
C) It operates at the data link layer
D) It cannot forward packets
Answer: B
Correct Answer B: It uses its routing table for forwarding
Explanation Routers use routing tables to forward packets, not a
default gateway like hosts. Option A is false, as routers
have IP addresses. Option C is incorrect, as routers are
Layer 3. Option D is false, as forwarding is their
primary function.
14
C) To manage physical connections
D) To assign subnet masks
Answer: B
Correct Answer B: To execute IOS instructions
Explanation The CPU executes IOS instructions for routing and
switching. Option A is Flash, Option C is the data link
layer, and Option D is a configuration task.
15
Answer: B
Correct Answer B: The data payload type
Explanation The Next Header field identifies the payload type (e.g.,
TCP, UDP). Option A is the Traffic Class, Option C is
the Hop Limit, and Option D is the Destination
Address.
48. What is the role of the ‘route print‘ command on a Windows host?
A) To configure the default gateway
B) To display the routing table
C) To assign an IP address
D) To test network connectivity
Answer: B
Correct Answer B: To display the routing table
Explanation The ‘route print‘ command shows the host’s routing
table, including IPv4 and IPv6 routes. Option A is a
configuration task, Option C is DHCP or manual, and
Option D is ‘ping‘.
16
Correct Answer B: Changes are lost on reboot
Explanation The running configuration in RAM is lost on reboot
unless saved to NVRAM with ‘copy running-config
startup-config‘. Option A relates to Flash, Option C is
temporary, and Option D is unrelated.
50. Why is the router’s routing table critical for packet forwarding?
A) It assigns IP addresses
B) It determines the best path for packets
C) It manages physical connections
D) It ensures reliable delivery
Answer: B
Correct Answer B: It determines the best path for packets
Explanation The routing table provides paths for packet forwarding
based on destination networks. Option A is a DHCP
function, Option C is the data link layer, and Option
D is a transport layer function.
17