quiz Computer Science · 10 questions

Fundamentals of Network Devices and Addressing

help_outline 10 questions
timer ~5 min
auto_awesome AI-generated
0 / 10
Score : 0%
1

A network administrator notices two devices receiving the same MAC address. What is the most likely consequence?

2

When a NIC operates in promiscuous mode, which of the following statements is true?

3

A LAN uses a hub instead of a switch. Which performance issue is most directly caused by this choice?

4

Given the CIDR block 192.168.1.0/24, how many usable host addresses are available?

5

A router receives a packet whose destination IP belongs to a different LAN. Which header field does the router modify before forwarding?

6

Which statement best explains why a switch reduces unnecessary traffic compared to a hub?

7

A network uses the private IP range 10.0.0.0/8. Which of the following is a valid host address in this network?

8

When a router performs Network Address Translation (NAT), what is the primary purpose of this operation?

9

A switch’s port shows a green link light and an amber activity light. What does this likely indicate?

10

In a CIDR block 172.22.20.159/21, what is the network address?

menu_book

Fundamentals of Network Devices and Addressing

Review key concepts before taking the quiz

Understanding MAC Address Uniqueness and Its Impact on Network Stability

Every Ethernet device is assigned a Media Access Control (MAC) address that should be globally unique. Switches rely on this uniqueness to build a MAC address table that maps each address to a specific physical port. When two devices share the same MAC address, the switch cannot reliably determine which port should receive a given frame.

Typical Symptoms of Duplicate MAC Addresses

  • Increased frame collisions because the switch may forward the same frame to multiple ports.
  • Intermittent connectivity for both devices as the switch constantly updates its table with conflicting entries.
  • Higher CPU utilization on the switch due to frequent table churn.

Think of a conference where two attendees wear identical name tags. The organizer (the switch) cannot decide who should receive a personal message, so the message is sent to both, creating confusion and wasted effort. The most direct consequence is that network collisions increase, causing frames to be dropped.

Promiscuous Mode: When a NIC Listens to Everything

A Network Interface Card (NIC) normally filters incoming frames, accepting only those addressed to its own MAC address (or broadcast/multicast frames). Enabling promiscuous mode disables this filter, allowing the NIC to forward all received frames to the operating system.

Why Use Promiscuous Mode?

  • Network troubleshooting and packet capture tools (e.g., Wireshark) need a complete view of traffic.
  • Intrusion detection systems monitor every packet for suspicious patterns.
  • Virtualized environments may share a physical NIC among multiple virtual machines.

Imagine a mailroom clerk who reads every letter regardless of the recipient’s address. This is exactly what a NIC does in promiscuous mode: it forwards all received frames to the operating system, giving administrators full visibility into the data flow.

Hub vs. Switch: The Core Performance Difference

Both hubs and switches operate at Layer 2, but they handle traffic in fundamentally different ways. A hub is a simple repeater that broadcasts incoming electrical signals to every port, creating a single large collision domain. In contrast, a switch learns MAC addresses and forwards frames only to the intended destination port, effectively segmenting the network into multiple collision domains.

Performance Implications of Using a Hub

  • Only one device can successfully transmit at a time; simultaneous transmissions cause collisions.
  • Bandwidth is shared among all ports, reducing effective throughput.
  • Network latency increases as devices wait for the medium to become idle.

The most direct performance issue is that only one device can transmit at a time, leading to collisions. This shared‑medium behavior is why modern LANs almost exclusively use switches.

Calculating Usable Hosts in a CIDR Block

Classless Inter‑Domain Routing (CIDR) notation expresses an IP network and its subnet mask in a compact form, such as 192.168.1.0/24. The number after the slash indicates how many bits are used for the network portion.

Step‑by‑Step Host Calculation for /24

  • Identify the host bits: 32 − 24 = 8 bits.
  • Calculate total addresses: 2⁸ = 256.
  • Subtract the network address (all host bits 0) and the broadcast address (all host bits 1).
  • Result: 256 − 2 = 254 usable host addresses.

Visualize a classroom where the first seat is reserved for the teacher (network address) and the last seat for the fire alarm (broadcast address). The remaining 254 seats are available for students (hosts).

Router Forwarding: Which Header Field Changes?

When a router forwards a packet to a different LAN, it must encapsulate the original IP packet inside a new Ethernet frame. The router replaces the destination MAC address with the MAC address of the next‑hop device (usually the destination host’s switch or another router). All other IP‑layer fields, such as source and destination IP addresses, remain unchanged (except for TTL, which is decremented).

Key Points to Remember

  • The destination MAC is rewritten to reflect the next link‑layer recipient.
  • The TTL field is decremented, not set to zero.
  • Port numbers and source IP addresses stay the same; NAT is a separate process.

Thus, the router replaces the destination MAC address with the next‑hop MAC before forwarding the frame.

How Switches Reduce Unnecessary Traffic

Unlike hubs, switches maintain a switching table (also called a CAM table) that maps each learned MAC address to the specific port on which it was seen. When a frame arrives, the switch consults this table and forwards the frame only to the port associated with the destination MAC address.

Benefits of Selective Forwarding

  • Reduces broadcast traffic, conserving bandwidth.
  • Minimizes collision domains, allowing full‑duplex communication.
  • Improves security by limiting exposure of frames to unintended recipients.

The core mechanism is that the switch stores a switching table mapping MAC addresses to ports and forwards frames selectively, eliminating the wasteful “send‑to‑every‑one” behavior of hubs.

Validating Private IP Addresses in the 10.0.0.0/8 Range

The private IPv4 block 10.0.0.0/8 encompasses all addresses from 10.0.0.0 to 10.255.255.255. However, the first address (10.0.0.0) represents the network identifier and the last address (10.255.255.255) is the broadcast address for the entire /8 network. Therefore, the only usable host address among the options provided is 10.0.0.1.

Quick Validation Checklist

  • Is the address within the 10.0.0.0‑10.255.255.255 range? ✅
  • Is it the network address (all host bits zero) or broadcast address (all host bits one)? ❌
  • Does each octet stay between 0‑255? ✅

Thus, 10.0.0.1 is a valid host address in the 10.0.0.0/8 private network.

Network Address Translation (NAT): Purpose and Function

Network Address Translation is a technique used by routers to map multiple private IP addresses to a single public IP address (or a small pool of public addresses) when traffic leaves a local network for the Internet. This conserves the limited IPv4 address space and adds a layer of obscurity for internal hosts.

Primary Objectives of NAT

  • IP address conservation: Allows many devices to share one public IP.
  • Security through obscurity: Internal network structure is hidden from external observers.
  • Facilitates port‑address translation (PAT), where each outbound connection is distinguished by a unique source port.

The essential answer is that NAT maps private IP addresses to a public IP for Internet access. It does not alter subnet masks, encrypt payloads, or change MAC addresses.

Summary of Core Concepts

By mastering the topics covered in this course, you will be able to:

  • Explain why duplicate MAC addresses cause frame collisions and network instability.
  • Describe the behavior of a NIC in promiscuous mode and its typical use cases.
  • Contrast the performance characteristics of hubs and switches, emphasizing collision domains.
  • Calculate usable host counts for any CIDR block, using the /24 example as a template.
  • Identify which header fields a router modifies when forwarding packets across subnets.
  • Articulate how a switch’s MAC‑address table reduces unnecessary traffic.
  • Validate private IP addresses within the 10.0.0.0/8 range.
  • State the primary purpose of NAT and how it enables Internet connectivity for private networks.

These foundational ideas form the backbone of modern computer networking, preparing you for deeper studies in routing protocols, VLAN design, and advanced security mechanisms.

Stop highlighting.
Start learning.

Join students who have already generated over 50,000 quizzes on Quizly. It's free to get started.