Explain it simpler
A switch is like a smart mail sorter for a small building. Every device has a fixed hardware name called a MAC address. When a message arrives on one of the switch's sockets, the switch looks at who sent it and writes down 'this sender lives behind socket 3.' Later, when a message is addressed to that device, the switch sends it only out socket 3. If the switch has never heard from the receiver, it simply sends a copy out every socket in the same group and lets the right device answer. Once that device replies, the switch writes down where it lives too. Notes that are not used for about five minutes are erased, so the list stays fresh when people move their computers around.
It is Monday morning at Lakeview Dental Group and Omar from the front desk opens a ticket: the label printer in the back office has stopped answering, and nobody knows which wall jack it is plugged into. The network diagram is three years old. You have the printer's MAC address from its configuration page and a stack of switches in a closet. Somewhere inside those switches is a table that already knows exactly where that printer lives, because the switch has been quietly watching every frame the printer sends. How does the switch build that table, how long does it trust it, and what does it do when it has no idea where a device is?
A Layer 2 switch forwards Ethernet frames based on MAC (media access control) addresses, the 48-bit hardware addresses burned into every network interface. Unlike a hub, which repeats every bit out every port, a switch sends each frame only where it needs to go. That gives every switch port its own collision domain and allows full-duplex operation, so collisions disappear on modern switched networks. Understanding exactly how a switch decides where a frame goes is the foundation for everything else in the switching domain of the CCNA, including VLANs (virtual LANs), spanning tree and Layer 2 security features such as port security.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 8 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.