Switching
Switching is the process of forwarding Ethernet frames within a local network based on MAC addresses. Switches learn which devices connect to which ports, build forwarding tables, and deliver frames only where they need to go, creating fast, loop-free, segmented networks.
itNetworking | OpenSkills.info
Intro
Switching
A switch is a layer-2 device that forwards Ethernet frames based on destination MAC addresses. Unlike a hub, which floods every frame to every port, a switch learns where each device is and delivers frames only to the correct port. This creates separate collision domains per port while keeping devices in a shared broadcast domain.
Switching is the foundation of every local area network. Understanding how switches learn, forward, flood, filter, and prevent loops gives you control over LAN performance, segmentation, and resilience.
How a switch learns
A switch builds a MAC address table (also called a CAM table) by examining the source MAC address of every frame that arrives on each port.
When a frame arrives on port 3 with source MAC 00:1A:2B:3C:4D:5E, the switch records: "MAC 00:1A:2B:3C:4D:5E is reachable via port 3." This entry has a timer (typically 300 seconds). If no frame from that MAC arrives before the timer expires, the entry ages out.
This learning is automatic and requires no configuration. Within seconds of devices connecting, the switch knows which port reaches which MAC.
Forwarding decisions
When a frame arrives, the switch reads the destination MAC and checks its table:
This section is part of the paid course.
See pricing to subscribe, or log in if you already have access.
