quiz Computer Science · 10 questions

Fundamentals of Network Devices and CIDR

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

A network administrator notices two computers receiving each other's frames despite being on different VLANs. Which device is most likely misconfigured?

2

Given the CIDR block 192.168.10.0/27, how many usable host IP addresses are available?

3

Which statement best explains why a hub causes more collisions than a switch in a busy LAN?

4

A packet traverses three routers. Which part of its header remains unchanged throughout the journey?

5

In a LAN using only switches, what is the primary reason broadcast traffic can still cause congestion?

6

Which device uses a routing table containing IP address prefixes to determine the next hop?

7

A network uses the private IP range 10.0.0.0/8. Which of the following statements about NAT in this network is true?

8

When a NIC operates in promiscuous mode, which frames does it accept?

9

A switch receives a frame with an unknown destination MAC address. What does it do next?

10

Which of the following best describes the difference between half‑duplex and full‑duplex operation in network devices?

menu_book

Fundamentals of Network Devices and CIDR

Review key concepts before taking the quiz

Fundamentals of Network Devices and CIDR: An In‑Depth Course

Welcome to this comprehensive guide on the core concepts of computer networking that are frequently tested in quizzes and certification exams. In this course we will explore network devices, VLANs, CIDR notation, and related topics such as collision domains, broadcast traffic, routing tables, NAT, and promiscuous mode. By the end of the lesson you will be able to answer scenario‑based questions with confidence.

Understanding Core Network Devices

Three hardware components dominate the LAN and WAN layers: the hub, the switch, and the router. Each operates at a different OSI layer and handles traffic in a unique way.

Hub – The Physical Layer Repeater

A hub works at Layer 1 (Physical). It receives an incoming electrical signal and repeats it out all ports. Because it does not inspect MAC addresses, every frame becomes a broadcast within the hub’s segment, creating a single large collision domain. This is why hubs generate more collisions than switches in busy networks.

Switch – The Data‑Link Layer Forwarder

Switches operate at Layer 2 (Data Link). They maintain a MAC address table that maps each learned MAC address to the port on which it was seen. When a frame arrives, the switch forwards it only to the appropriate port, dramatically reducing collisions and improving bandwidth efficiency.

Router – The Network Layer Director

Routers function at Layer 3 (Network). They examine the IP header, consult a routing table containing IP prefixes, and forward packets toward the next hop. Unlike switches, routers do not forward frames based on MAC addresses; they encapsulate packets in new frames for each outgoing interface.

Network Interface Card (NIC) – The Endpoint Adapter

The NIC is the hardware that connects a host to the network. It checks the destination MAC address of each incoming frame and discards frames that are not addressed to it (unless placed in promiscuous mode).

VLAN Misconfiguration: When Frames Cross Boundaries

Virtual LANs (VLANs) logically segment a physical switch into multiple broadcast domains. If two computers on different VLANs receive each other's frames, the most likely culprit is a misconfigured switch. The switch may have an incorrect VLAN assignment or a trunk port that is allowing VLAN tags to be ignored, causing frames to be forwarded across VLAN boundaries.

Key points to remember:

  • Switches enforce VLAN isolation using VLAN IDs.
  • A router can route between VLANs only if a router‑on‑a‑stick or Layer 3 switch is configured.
  • A hub would broadcast frames to all ports, but it cannot preserve VLAN tags, so the issue would manifest differently.

CIDR Notation and Host Calculations

Classless Inter‑Domain Routing (CIDR) replaces the old class‑based system with a flexible prefix length notation, such as 192.168.10.0/27. The /27 indicates that the first 27 bits are the network portion, leaving 5 bits for host addresses.

To calculate usable host addresses:

  • Number of host bits = 32 − 27 = 5.
  • Total addresses = 2⁵ = 32.
  • Subtract the network address and the broadcast address → 32 − 2 = 30 usable host IPs.

This calculation is essential for subnet planning, IP address allocation, and troubleshooting address exhaustion.

Collision Domains: Why Hubs Cause More Collisions Than Switches

In a hub‑based LAN, every port shares the same collision domain because the hub repeats incoming signals to all other ports. When two devices transmit simultaneously, their signals interfere, resulting in a collision that forces both devices to retransmit after a random back‑off period.

Switches, on the other hand, create a separate collision domain for each port. By forwarding frames only to the intended destination port, switches effectively eliminate collisions in full‑duplex mode. This distinction explains why the statement "A hub broadcasts every frame to all ports, creating shared bandwidth" is the correct explanation for higher collision rates.

IP Header Consistency Across Multiple Routers

When a packet traverses three routers, the IP header (excluding fields like TTL) remains largely unchanged. The source and destination IP addresses stay the same, while the TTL field is decremented at each hop. However, the MAC address fields are rewritten at every router because each hop uses a new link‑layer frame.

Therefore, the part of the packet that stays constant is the IP header itself, which is why it is used for end‑to‑end communication and routing decisions.

Broadcast Traffic in a Switched LAN

Even in a network that uses only switches, broadcast frames (e.g., ARP requests, DHCP discovers) are still forwarded to every port within the same VLAN. This behavior can lead to congestion, especially in large VLANs with many hosts.

Key reasons:

  • Switches treat broadcast frames as a special case and flood them to all ports in the VLAN.
  • Unlike unicast frames, broadcasts cannot be filtered by the MAC address table.
  • Excessive broadcasts consume bandwidth and may trigger spanning‑tree recalculations.

Network designers mitigate this issue by segmenting VLANs, implementing IGMP snooping, or using private VLANs to limit broadcast domains.

Routing Tables and Decision Making

A router uses a routing table that contains IP address prefixes (e.g., 10.0.0.0/8) and associated next‑hop information. When a packet arrives, the router performs a longest‑prefix match to determine the most specific route and forwards the packet accordingly.

Switches do not maintain IP routing tables; they rely on MAC address tables. Hubs have no intelligence at all, and NICs only handle frames addressed to their own MAC address (unless in promiscuous mode).

Network Address Translation (NAT) and Private IP Ranges

The private IP block 10.0.0.0/8 is reserved for internal use and is not routable on the public Internet. Network Address Translation (NAT) allows devices in this private range to communicate externally by translating their source address to the router’s public IP address.

Important NAT characteristics:

  • Only one public IP (or a pool) is needed for many internal hosts.
  • Outbound traffic is rewritten; inbound traffic requires port forwarding or a DMZ.
  • NAT does not work with IPv6 in the same way because IPv6 provides a vastly larger address space.

Thus, the correct statement is that NAT translates the private 10.0.0.0/8 addresses to the router’s public IP for Internet traffic.

Promiscuous Mode on a NIC

When a NIC is placed in promiscuous mode, it disables the hardware filter that normally discards frames whose destination MAC address does not match its own. Consequently, the NIC accepts all frames that arrive on the network segment, regardless of the destination MAC address.

This mode is essential for network analysis tools (e.g., Wireshark), intrusion detection systems, and certain virtualization scenarios where a virtual switch must deliver traffic to multiple virtual machines.

Putting It All Together: Sample Quiz Review

Below is a quick recap of the key concepts that were tested in the original quiz. Use this as a study checklist before your next exam.

  • Misconfigured device causing cross‑VLAN frames: Switch.
  • Usable hosts in 192.168.10.0/27: 30.
  • Reason hubs cause more collisions: They broadcast every frame to all ports, creating a shared collision domain.
  • Header unchanged across three routers: IP header.
  • Why broadcast traffic still congests a switched LAN: Switches flood broadcasts to all ports in the VLAN.
  • Device that uses a routing table with IP prefixes: Router.
  • True statement about NAT with 10.0.0.0/8: NAT translates private addresses to the router’s public IP for Internet traffic.
  • Frames accepted in promiscuous mode: All frames, regardless of destination MAC.

Conclusion and Further Learning Paths

Mastering the fundamentals of network devices, CIDR calculations, and traffic behavior equips you with the skills to design, troubleshoot, and secure modern networks. To deepen your expertise, consider exploring the following topics:

  • Advanced VLAN configurations (voice VLANs, private VLANs).
  • Spanning Tree Protocol (STP) and its impact on broadcast storms.
  • IPv6 addressing, CIDR, and the role of stateless address autoconfiguration (SLAAC).
  • Layer 3 switching and the convergence of routing and switching functions.
  • Security implications of promiscuous mode and how to detect rogue sniffers.

By integrating these concepts with hands‑on labs—such as configuring a Cisco switch, setting up NAT on a Linux router, or capturing traffic with Wireshark—you will transition from theoretical knowledge to practical competence.

Good luck on your networking journey, and remember: a solid grasp of the basics always pays off when tackling complex architectures!

Stop highlighting.
Start learning.

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