Introduction
“A larger network does not just need more connections — it needs better organization.”
A small office can work perfectly well with a single switch and a handful of connected devices. But as the network grows, computers, printers, phones, servers, access points, and guest devices all begin sharing the same infrastructure.
That creates a new challenge. How does a switch know where to send a frame? How can one physical network support different groups without putting everyone into the same broadcast domain? And how can multiple switches work together without creating loops?
This is where switching, VLANs, trunking, and Spanning Tree Protocol (STP) become essential.
1. A Switch Learns Where Devices Live
“A switch does not need to know the whole network — it only needs to know where the next device is.”
When an Ethernet frame arrives at a switch, the switch first looks at its source MAC address. It records that address along with the port where the frame arrived.
For example, if a computer connected to Port 3 sends a frame, the switch can learn: Computer A MAC → Port 3. Over time, these entries form a MAC address table.
When another frame arrives, the switch checks its destination MAC address against this table. If it already knows where that device is connected, it forwards the frame only toward the appropriate port.
If the destination is unknown, the switch floods the frame through the relevant ports. Once the destination responds, the switch can learn its location and handle future frames more efficiently.
This is one of the fundamental differences between a switch and an old-style hub. A hub simply repeats traffic, while a switch makes forwarding decisions based on MAC addresses.
The result is a network where traffic can be directed rather than unnecessarily repeated.








