§ — — Network Administration
Switches connect devices inside a local area network and forward Ethernet frames based on MAC addresses. A switch improves LAN performance by learning where devices are located and sending frames only where they need to go whenever possible.
By the end of this module, you should be able to:
A switch operates mainly at Layer 2 of the OSI model. Its job is to receive Ethernet frames, examine the destination MAC address, and decide which port should forward the frame.
A switch does not need to know IP addresses to perform basic Layer 2 forwarding. Instead, it uses a MAC address table that maps learned MAC addresses to switch ports.
The MAC address table is built dynamically. Each entry usually contains:
When a device sends a frame into the switch, the switch records the source MAC address and incoming port. This is called learning.
A switch follows a simple decision process:
ProReviewer — locked
Drills, code labs, and full solutions.
Switches can use different internal forwarding methods.
The switch receives the complete frame before forwarding it. It can check the frame check sequence (FCS) and discard frames that fail error checking. This method adds more latency than cut-through switching but provides stronger error handling.
The switch begins forwarding after reading enough of the frame to identify the destination MAC address. This can reduce latency, but the switch may forward frames before discovering that they contain errors.
A related variation is fragment-free switching, which waits for the first portion of the frame before forwarding to reduce the chance of forwarding collision fragments.
A collision domain is a network segment where devices could interfere with each other if they transmit at the same time. In old hub-based Ethernet, all devices attached to the hub shared one collision domain.
Switches reduce collisions because each switch port is its own collision domain. When a port operates in full-duplex mode, collisions should not occur on that link.
A broadcast domain is the set of devices that receive a Layer 2 broadcast frame. A basic Layer 2 switch forwards broadcasts to all ports in the same VLAN.
Routers and Layer 3 boundaries normally separate broadcast domains. VLANs also separate broadcast domains inside a switched network.
Switches improve LAN efficiency by:
ProReviewer — locked
Drills, code labs, and full solutions.
Switches make forwarding decisions using MAC addresses. They learn source addresses, forward known unicast frames efficiently, flood unknown and broadcast frames, and reduce congestion by separating collision domains. VLANs and routers are needed to control broadcast domains.
Done with this module? Track it — your progress shows on the subject list.
Up next
VLANs→←Previous: Basic Device Configuration