quiz Computer Science · 22 questions

Fundamentals of Network Devices and CIDR

help_outline 22 questions
timer ~11 min
auto_awesome AI-generated
0 / 22
Score : 0%
1

Which device forwards frames only to the port that matches the destination MAC address, reducing unnecessary traffic?

2

In a network using CIDR /24, how many usable host IP addresses are available?

3

When a NIC receives a frame addressed to the broadcast MAC address, what type of frame is it?

4

What is the primary purpose of a router in a LAN environment?

5

Which of the following statements about promiscuous mode is true?

6

A network uses the private IP range 192.168.0.0/16. Which of the following addresses is a valid host address within this range?

7

What is the effect of using a hub in a network compared to a switch regarding bandwidth sharing?

8

During the operation of a switch, which table is updated with the source MAC address and its associated port?

9

Which wireless standard provides the highest listed data rate in the excerpt?

10

When a router forwards a packet to the next hop, what happens to the MAC header?

11

A network administrator wants to limit broadcast traffic between departments. Which device should be introduced according to the text?

12

In CIDR notation /21, how many host bits are available for addressing?

13

What is the main difference between a hub and a switch regarding frame forwarding?

14

Which component of a NIC is responsible for storing the unique hardware address?

15

A network uses the private range 10.0.0.0/8. Which of the following statements is true?

16

When a NIC operates in promiscuous mode, which tool typically utilizes this mode?

17

Which device can operate in half‑duplex mode only, limiting simultaneous send/receive capability?

18

In the CIDR example /21, what is the network address derived from IP 172.22.20.159?

19

What is the main purpose of Network Address Translation (NAT) as described?

20

Which of the following best describes the role of a default gateway in a computer’s IP configuration?

21

A switch receives a frame with destination MAC address unknown in its table. What is the typical behavior?

22

Which wireless standard operates exclusively in the 5 GHz band according to the table?

menu_book

Fundamentals of Network Devices and CIDR

Review key concepts before taking the quiz

Fundamentals of Network Devices and CIDR

Understanding how data moves across a local area network (LAN) is essential for anyone studying computer networking. This course breaks down the core concepts tested in a typical quiz: the roles of switches, hubs, routers, and network interface cards (NICs); the mechanics of MAC addressing, broadcast and promiscuous modes; and the fundamentals of Classless Inter‑Domain Routing (CIDR). By the end of the lesson you will be able to answer questions such as “Which device forwards frames only to the matching port?” and “How many usable host addresses are available in a /24 network?” with confidence.

1. Switches vs. Hubs: How Frames Are Forwarded

Both switches and hubs operate at the data link layer (Layer 2), but they handle traffic in dramatically different ways.

  • Hub: A hub is a simple, multi‑port repeater. When a frame arrives on any port, the hub copies the signal and broadcasts it out all other ports. This creates a single collision domain, meaning that only one device can successfully transmit at a time. Bandwidth is shared across every port, which leads to frequent collisions on busy networks.
  • Switch: A switch maintains a switching table (also called a MAC address table). When a frame is received, the switch records the source MAC address and the port it arrived on. For subsequent frames, the switch looks up the destination MAC address and forwards the frame only to the specific port that leads to the destination device. This selective forwarding reduces unnecessary traffic, eliminates collisions in full‑duplex mode, and provides dedicated bandwidth per port.

Because of this intelligence, the quiz question “Which device forwards frames only to the port that matches the destination MAC address, reducing unnecessary traffic?” correctly identifies the switch as the answer.

2. The Role of a Router in a LAN Environment

A router operates at the network layer (Layer 3). Its primary purpose is to forward packets between different IP subnets or LANs. While switches move frames based on MAC addresses, routers examine the IP header and make forwarding decisions using a routing table.

  • Connects multiple LAN segments, each with its own IP network.
  • Performs network address translation (NAT) when communicating with external networks.
  • Enforces security policies via access control lists (ACLs).

Thus, the correct answer to “What is the primary purpose of a router in a LAN environment?” is to forward packets between different LANs.

3. MAC Addressing, Broadcast, and Unicast Frames

Every network interface card (NIC) has a unique 48‑bit Media Access Control (MAC) address. Frames are classified based on the destination MAC address:

  • Unicast frame: Destination MAC matches a single NIC. The frame is intended for one specific device.
  • Broadcast frame: Destination MAC is FF:FF:FF:FF:FF:FF. All NICs on the same LAN segment receive the frame. This is used for ARP requests, DHCP discovery, and other network-wide announcements.
  • Multicast frame: Destination MAC falls within a reserved range (01:00:5E…) and is received by a group of interested hosts.

When a NIC receives a frame addressed to the broadcast MAC, it treats it as a broadcast frame. This directly answers the quiz item about the type of frame received when the broadcast MAC address is used.

4. Promiscuous Mode: When a NIC Listens to Everything

By default, a NIC discards any frame whose destination MAC does not match its own address (or the broadcast address). Promiscuous mode disables this filtering, allowing the NIC to accept every frame that reaches the network segment.

  • Commonly used by network analyzers (e.g., Wireshark) to capture traffic for troubleshooting.
  • Essential for intrusion detection systems (IDS) that need to monitor all packets.
  • Does not change the NIC’s MAC address; it merely expands the set of frames delivered to the operating system.

The statement “It disables the NIC’s normal filtering, accepting all frames” is the true description of promiscuous mode.

5. CIDR Notation and Host Calculations

Classless Inter‑Domain Routing (CIDR) replaces the old class‑based system with a flexible /prefix notation. The prefix length indicates how many bits are used for the network portion of the address.

For a /24 network:

  • Network bits: 24
  • Host bits: 32 − 24 = 8
  • Total host addresses: 2⁸ = 256
  • Usable host addresses: 256 − 2 = 254 (subtracting the network address and the broadcast address)

Therefore, the quiz answer “254” is correct for the question “In a network using CIDR /24, how many usable host IP addresses are available?”

6. Private IP Ranges and Valid Host Addresses

The Internet Assigned Numbers Authority (IANA) reserves three private IPv4 blocks:

  • 10.0.0.0/8
  • 172.16.0.0/12
  • 192.168.0.0/16

Any address within these ranges can be used on internal networks, provided it is not the network or broadcast address for the specific subnet.

Given the private range 192.168.0.0/16, the address 192.168.100.25 is a valid host address, while 192.168.0.0 (network address) and 192.168.255.255 (broadcast address) are not usable for hosts.

7. Bandwidth Sharing: Hub vs. Switch

Because a hub repeats incoming frames to all ports, all devices connected to a hub share the same collision domain and the same physical bandwidth. In practice, this means:

  • Only one device can successfully transmit at a time; others must wait for the medium to become idle.
  • Throughput degrades quickly as more devices become active.

In contrast, a modern switch provides a dedicated full‑duplex link for each port, eliminating collisions and allowing simultaneous transmissions.

The quiz statement “All ports share the same bandwidth, only one device can transmit at a time” accurately describes hub behavior.

8. The Switching Table (MAC Address Table)

When a switch receives a frame, it performs two key actions:

  1. Learning: The switch records the source MAC address and the ingress port in its switching table.
  2. Forwarding: It looks up the destination MAC address. If an entry exists, the frame is sent out the associated port; otherwise, the switch floods the frame to all ports except the source.

This dynamic table enables the switch to make intelligent forwarding decisions without broadcasting every frame.

9. Putting It All Together: Sample Quiz Review

Below is a concise recap of the quiz items and the concepts they test:

  • Device that forwards frames based on destination MAC – Switch.
  • Usable hosts in a /24 CIDR block – 254.
  • Frame type for broadcast MAC address – Broadcast frame.
  • Primary purpose of a router in a LAN – Forward packets between different LANs.
  • True statement about promiscuous mode – Disables normal filtering, accepting all frames.
  • Valid host in 192.168.0.0/16 – 192.168.100.25.
  • Effect of using a hub on bandwidth – All ports share the same bandwidth; only one device can transmit at a time.
  • Table updated with source MAC and port – Switching table.

10. Frequently Asked Questions (FAQ)

Q: Can a switch operate in half‑duplex mode?
A: Yes, older switches or legacy devices may support half‑duplex, but modern switches default to full‑duplex, providing simultaneous send and receive capabilities.

Q: Why are the first and last addresses in a subnet unusable?
A: The first address represents the network identifier, and the last address is reserved for the broadcast destination. Neither can be assigned to a host.

Q: Is promiscuous mode a security risk?
A: It can be, if an unauthorized user enables it to sniff traffic. Network administrators often restrict access to packet‑capture tools and monitor for abnormal NIC configurations.

11. Quick Reference Cheat Sheet

  • Switch – Learns MAC addresses, forwards to specific port, full‑duplex.
  • Hub – Broadcasts to all ports, shared bandwidth, half‑duplex.
  • Router – Operates at Layer 3, forwards IP packets between subnets.
  • Broadcast frame – Destination MAC = FF:FF:FF:FF:FF:FF.
  • Promiscuous mode – NIC accepts all frames, used for monitoring.
  • /24 subnet – 256 total addresses, 254 usable hosts.
  • Private IP range 192.168.0.0/16 – Hosts from 192.168.0.1 to 192.168.255.254.
  • Switching table – Maps MAC → port, updated on every received frame.

12. Conclusion

Mastering the distinctions between network devices, understanding how MAC and IP addressing work, and being comfortable with CIDR calculations are foundational skills for any aspiring network engineer. By reviewing the concepts above and practicing with quiz‑style questions, you will reinforce the knowledge needed to design, troubleshoot, and secure modern LAN environments.

Stop highlighting.
Start learning.

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