🎓 BookMCQ
← Back to 17. Connecting Devices and Virtual LANs

📝 Connecting Devices (8 MCQs)

Connecting Network Segments Through Interconnecting Devices

Connecting devices join computers and network segments so that information can move beyond a single link. Their functions differ according to the layer at which they operate: repeaters and hubs regenerate or distribute physical signals, switches forward frames using MAC addresses, and routers forward packets using network-layer addresses. Selecting the correct device determines how traffic is delivered, separated, and managed across a network.

Physical, Data Link and Network Layer Roles

A repeater works at the physical layer and regenerates signal patterns without interpreting frames. A bridge or switch examines data-link frames and learns source MAC addresses. A router examines network-layer packet headers and selects a next hop. Some devices combine several functions, but their forwarding decisions still depend on distinct address types and protocol information.

How Frames and Packets Cross Network Boundaries

A host first sends a frame over its local link. A switch forwards it within the appropriate LAN, while a router removes the incoming link-layer framing, examines the packet destination, and selects an outgoing interface. It then creates a new link-layer frame for the next link; the IP packet is forwarded toward its destination.

A Small Office Using a Switch and Router

In a small office, eight computers connect to an Ethernet switch, and the switch connects to an Internet router. The switch forwards local frames between learned MAC addresses. When a computer sends traffic to an external IP network, the router uses its routing table and forwards the packet toward the service provider.

Device Selection, LAN Segmentation and Internetworking

Interconnecting devices build larger networks from individual links and LANs. Switches reduce unnecessary traffic between ports and support VLAN separation, while routers connect different IP networks and can apply network-layer policies. Wireless access points connect radio clients to a LAN, often bridging wireless and wired traffic within the same logical network.

Misunderstandings About Hubs, Switches and Routers

'A switch routes between IP networks' is incorrect for an ordinary Layer 2 switch; it forwards frames by MAC address. 'A hub learns device addresses' is incorrect because a hub repeats signals to its ports. 'A router forwards every frame unchanged' is incorrect because it builds a new link-layer frame for each outgoing link.

Identifying Device Layers and Forwarding Decisions

For examination questions, identify whether a device handles signals, frames, or packets. Trace the address used for its decision: physical signal regeneration, MAC-address learning, or IP-prefix lookup. Compare collision and broadcast domains for hubs, switches, and routers, and determine which device is required to connect separate IP networks in a routed internetwork.

Interconnecting Devices and Forwarding Terminology

  • Repeater - Regenerates signals on a link.
  • Hub - Broadcasts incoming bits to ports.
  • Bridge - Connects LAN segments using MAC addresses.
  • Switch - Forwards frames through selected ports.
  • Router - Forwards packets between IP networks.
  • Access point - Connects wireless stations to a LAN.
2
Easy
4
Medium
2
Hard

📝 All Connecting Devices MCQs

Q1. Which device operates at Layer 2 of the Internet model and forwards frames based on MAC addresses?

A.Hub
B.Switch ✅
C.Router
D.Bridge
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: A switch examines the destination MAC address of each Ethernet frame and forwards it only to the appropriate port, functioning at Layer 2. Hubs repeat signals to all ports, routers work at Layer 3, and bridges are less common today. Therefore, the correct choice is the Switch.

Q2. In a network where three switches are interconnected forming a triangle, a broadcast storm occurs. Which mechanism most directly prevents the storm by eliminating the redundant path?

A.Port security
B.MAC address filtering
C.ARP cache
D.Spanning Tree Protocol ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: The Spanning Tree Protocol (STP) detects loops in a Layer‑2 topology and disables selected ports to create a loop‑free tree. By turning off the redundant link, STP stops broadcast frames from circulating indefinitely, eliminating the storm. The other options do not address loop prevention.

Q3. Compare a hub and a switch regarding collision domains. Which statement correctly describes the difference?

A.A switch creates a separate collision domain for each individual port, while a hub places all ports in a single collision domain. ✅
B.Both hub and switch share a single collision domain across all ports.
C.A hub creates multiple collision domains, whereas a switch has only one.
D.Collision domains are irrelevant for both devices.
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: A switch maintains an independent collision domain per port, so frames from one port do not interfere with others. In contrast, a hub repeats incoming signals to every other port, causing all ports to share one collision domain. This distinction directly impacts network efficiency and performance.

Q4. An administrator wants to isolate traffic for the Finance and Engineering departments while using the same physical infrastructure. Which configuration achieves this using VLANs?

A.Assign all ports to VLAN 1 and use ACLs.
B.Enable trunking on every port.
C.Assign ports connecting Finance devices to VLAN 10 and Engineering ports to VLAN 20. ✅
D.Disable DHCP on the switches.
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: VLANs partition a single physical switch into multiple logical networks. By assigning Finance ports to VLAN 10 and Engineering ports to VLAN 20, each department’s traffic remains isolated despite sharing the same cabling. ACLs or DHCP changes do not provide the required logical separation.

Q5. When the three‑switch triangle operates without STP, each switch learns the source MAC address from frames it forwards. How does this behavior contribute to an endless broadcast loop?

A.Switches discard frames with unknown MACs, stopping the loop.
B.Each switch continuously updates its MAC table with the same source address, causing frames to be forwarded out all ports except the incoming one. ✅
C.The MAC tables become static, preventing further forwarding.
D.Frames are dropped after the TTL expires.
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Without STP, each switch treats forwarded broadcast frames as new source traffic, repeatedly updating its MAC table. Because the source MAC appears on multiple ports, the switch forwards the frame out every port except the one it arrived on, perpetuating the broadcast and creating an endless loop.

Q6. For inter‑VLAN routing, an organization can use either a traditional router or a layer‑3 switch. Which statement best evaluates the impact on latency?

A.A layer‑3 switch typically provides lower latency because routing decisions are made in hardware. ✅
B.A router always yields lower latency due to more advanced software processing.
C.Both devices have identical latency because they perform the same function.
D.Latency is unaffected by the choice of device.
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Layer‑3 switches perform routing in ASIC hardware, allowing packets to be forwarded at line rate with minimal processing delay. Traditional routers rely on software‑based forwarding, which introduces additional processing cycles. Consequently, a layer‑3 switch generally yields lower latency for inter‑VLAN traffic.

Q7. Which of the following is NOT a benefit provided by implementing VLANs in a campus network?

A.Isolation of broadcast traffic between departments.
B.Improved bandwidth utilization by reducing unnecessary broadcasts.
C.Simplified cabling by allowing logical segmentation.
D.Increased latency for all traffic. ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: VLANs isolate broadcast domains, reduce unnecessary traffic, and enable logical segmentation without rewiring, all of which enhance performance. They do not inherently increase latency; in many cases they can reduce it by limiting broadcast storms. Therefore, increased latency is the statement that does not describe a VLAN benefit.

Q8. To limit broadcast traffic between two LAN segments, which device should be placed at the boundary to break the broadcast domain while still allowing traffic forwarding?

A.Repeater
B.Hub
C.Bridge ✅
D.Modem
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: A bridge operates at Layer 2 and forwards frames based on MAC addresses while separating broadcast domains. By placing a bridge between two LAN segments, broadcasts are confined to their respective sides, yet legitimate traffic can still pass. Repeaters and hubs do not segment broadcast domains, and a modem serves a different function.

🔗 Related Topics (MCQs)