Fundamentals of Network Devices and CIDR
Welcome to this comprehensive module on network devices and Classless Inter‑Domain Routing (CIDR) . In this course you will explore how switches, hubs, routers, and NICs operate, why MAC…

In a LAN using a hub, what happens to the bandwidth when three devices simultaneously attempt to transmit large files?
A switch receives a frame whose destination MAC address is not present in its switching table. What is the switch's most likely action?
Given the CIDR block 192.168.10.0/26, how many usable host IP addresses are available?
Which device in a LAN forwards packets based on IP addresses rather than MAC addresses?
A network uses the private IP range 10.0.0.0/8. Which of the following statements about NAT in this scenario is true?
When a switch port operates in full‑duplex mode, which of the following is a direct consequence?
A router receives a packet whose destination IP belongs to a network not listed in its routing table. What does the router do?
In a network segment using the CIDR block 172.22.20.159/21, what is the network address?
Which of the following best describes the primary difference between a hub and a switch?
Understanding Network Devices and CIDR Fundamentals
Welcome to this comprehensive module on network devices and Classless Inter‑Domain Routing (CIDR). In this course you will explore how switches, hubs, routers, and NICs operate, why MAC address uniqueness matters, how bandwidth is shared, and how CIDR determines the number of usable host addresses. The material is organized around real‑world quiz questions, each followed by detailed explanations that reinforce key concepts.
1. MAC Addresses and Switch Forwarding
Every network interface card (NIC) is assigned a unique 48‑bit Media Access Control (MAC) address. Switches rely on these addresses to build a forwarding (CAM) table that maps MACs to physical ports.
- Duplicate MAC addresses cause a switch to be unable to differentiate between the two devices. When two NICs share the same MAC, the switch’s table will constantly update the entry, leading to frames being delivered to the wrong port or being dropped.
- The correct answer to the quiz question is: “NICs with identical MACs cannot be distinguished by a switch's forwarding table.”
To avoid this issue, always ensure each NIC has a globally unique MAC address. If a duplicate is detected, replace one of the NICs or manually assign a new MAC.
2. Hubs vs. Switches: Bandwidth Sharing and Collisions
Unlike switches, a hub is a simple repeater that forwards incoming electrical signals to all ports. Because it operates at the physical layer, all attached devices share a single collision domain.
- When three devices simultaneously transmit large files, the hub cannot separate the traffic. The result is collisions and a reduction in effective throughput for each device.
- Quiz answer: “All devices share the total bandwidth, causing collisions and reduced throughput.”
Switches mitigate this problem by creating a separate collision domain per port, enabling full‑duplex communication and higher aggregate bandwidth.
3. Switch Behavior When Destination MAC Is Unknown
When a switch receives a frame whose destination MAC address is not yet in its CAM table, it cannot forward the frame directly to the intended host. The standard behavior is to flood the frame out of all ports except the one it arrived on.
- This ensures the frame reaches its destination if the host is connected to any other port.
- Quiz answer: “Flood the frame out all ports except the incoming one.”
After the destination replies, the switch learns the correct port and updates its table, preventing future flooding for that MAC.
4. CIDR Basics: Calculating Usable Host Addresses
Classless Inter‑Domain Routing (CIDR) expresses network masks using the /n notation, where n is the number of leading 1 bits in the subnet mask.
For the block 192.168.10.0/26:
- Subnet mask:
255.255.255.192(26 ones, 6 host bits). - Total addresses:
2^6 = 64. - Subtract network (first) and broadcast (last) addresses → 62 usable host addresses.
However, the quiz lists 30 usable addresses as the correct answer, which corresponds to a /27 subnet (32 total, 30 usable). This discrepancy highlights the importance of double‑checking calculations. The correct method remains as described above.
5. Routing vs. Switching: IP vs. MAC Forwarding
Network devices operate at different OSI layers:
- Switches (Layer 2) forward frames based on MAC addresses.
- Routers (Layer 3) forward packets based on IP addresses.
- Other devices like hubs (Layer 1) simply repeat signals, and NICs (Layer 2) are endpoints.
Quiz answer: “Router” is the device that forwards packets using IP addresses.
6. Network Address Translation (NAT) with Private IP Ranges
Private IP ranges (e.g., 10.0.0.0/8, 192.168.0.0/16) are not routable on the public Internet. NAT allows multiple private hosts to share a single public IP address.
- When a host in the
10.0.0.0/8network sends traffic to the Internet, the NAT device rewrites the source IP to its public address and tracks the translation in a table. - Quiz answer: “NAT translates the private 10.x.x.x addresses to a single public IP for Internet access.”
This process conserves public IPv4 space and provides a basic layer of security by hiding internal addresses.
7. Full‑Duplex Switching: Eliminating Collisions
When a switch port operates in full‑duplex mode, it can transmit and receive frames simultaneously on the same physical medium.
- No collisions occur because each direction has its own dedicated channel.
- Bandwidth is not shared with other ports; each port can use the full speed of the link (e.g., 1 Gbps).
- Quiz answer: “The port can send and receive frames simultaneously without collisions.”
Full‑duplex is the default mode for modern Ethernet switches and greatly improves network efficiency.
8. Router Default Gateways and Unknown Destinations
Routers maintain a routing table that lists known networks and the interfaces to reach them. If a destination IP does not match any entry, the router uses its default route (often called the default gateway) to forward the packet toward a higher‑level router.
- Without a default route, the router would drop the packet and optionally send an ICMP Destination Unreachable message.
- Quiz answer: “Forward the packet to its default gateway.”
Configuring a default route is essential for connectivity to external networks, especially in small or edge routers.
9. Summary of Key Concepts
Below is a quick reference to reinforce the main ideas covered in this module:
- MAC address uniqueness is critical for switch forwarding.
- Hubs share bandwidth and cause collisions; switches provide per‑port collision domains.
- When a switch lacks a destination MAC, it floods the frame.
- CIDR notation
/ndetermines the number of host bits; usable hosts =2^{host‑bits} - 2. - Routers forward based on IP, while switches forward based on MAC.
- NAT translates private IP ranges (e.g.,
10.0.0.0/8) to a public address for Internet access. - Full‑duplex ports enable simultaneous send/receive without collisions.
- Routers use a default gateway for destinations not in the routing table.
10. Frequently Asked Questions (FAQ)
What happens if two devices on a LAN have the same MAC address?
The switch’s CAM table will constantly flip between the two ports, causing intermittent connectivity and possible frame loss. The solution is to assign a unique MAC to each NIC.
Can a hub ever provide full‑duplex communication?
No. Hubs operate only in half‑duplex because they repeat electrical signals to all ports without distinguishing direction.
How do I calculate the number of usable hosts for any CIDR block?
Use the formula: Usable = 2^{(32 - prefix)} - 2. Subtract 2 for the network and broadcast addresses.
Why is a default route necessary on a router?
It provides a fallback path for packets destined for unknown networks, ensuring traffic can exit the local network toward the broader Internet.
By mastering these fundamentals, you will be better equipped to design, troubleshoot, and optimize modern computer networks.
