A topic in the Open Knowledge Graph — a free, open map of 15,495 topics and the order to learn them in.

Network Switching and Switching Tables

Graduate Depth 59 in the knowledge graph ☐ I know this ☆ Set as goal
3topics build on this
240prerequisites beneath it
See this on the map →
MAC Addressing and Hardware IdentificationEthernet and Frame Structure+1 more→→Link Aggregation Control Protocol (LACP)Spanning Tree Protocol and Loop Prevention+1 more
switch forwarding mac-table layer-2-forwarding

Core Idea

A network switch is a Layer 2 device that forwards frames based on destination MAC addresses using a MAC address table. Switches learn MAC addresses by observing source addresses in arriving frames, then forward frames destined for known addresses directly to the appropriate port, reducing collision domains and improving bandwidth utilization.

Explainer

From your study of MAC addressing, you know that every network interface has a unique hardware address burned into it, and that Ethernet frames carry source and destination MAC addresses. A switch exploits this addressing to make intelligent forwarding decisions. Before switches, networks used hubs — simple devices that repeat every incoming frame out every port. This meant all devices shared the same bandwidth and could hear each other's traffic, creating a single large collision domain where only one device could transmit at a time. Switches solved this problem by learning which device is connected to which port and sending frames only where they need to go.

The mechanism is elegantly simple. A switch maintains a MAC address table (also called a CAM table — Content Addressable Memory) that maps MAC addresses to port numbers. When a frame arrives on port 3 with source MAC AA:BB:CC:DD:EE:01, the switch records "AA:BB:CC:DD:EE:01 is reachable via port 3" in its table. This is called learning. Now when a frame arrives destined for that MAC address, the switch knows to forward it out port 3 only — no other ports see the traffic. This process is entirely automatic; no configuration is required. Table entries are aged out after a timeout (typically 300 seconds) so that the table stays current as devices move or disconnect.

When a switch receives a frame destined for a MAC address that is not yet in its table, it performs flooding — sending the frame out every port except the one it arrived on. This is also what happens with broadcast frames (destination FF:FF:FF:FF:FF:FF). Flooding ensures delivery even without complete knowledge, at the cost of extra traffic. As devices respond and the switch observes their source addresses, the table fills in and subsequent frames are forwarded precisely. The process of receiving a frame and checking the table is called filtering and forwarding: if the destination port is known and different from the source port, forward; if the destination port equals the source port, drop (the destination is already on the same segment); if unknown, flood.

The practical impact of switching is dramatic. Each switch port becomes its own collision domain, meaning devices on different ports can transmit simultaneously without interfering. A 24-port switch effectively gives each connected device a dedicated link to the switch, and the switch's internal fabric can handle multiple simultaneous forwarding operations. This is why modern Ethernet networks can deliver full bandwidth to every port concurrently — a capability called microsegmentation — whereas a hub divided the total bandwidth among all devices. Understanding switching is foundational for the topics ahead: VLANs partition a single switch into multiple logical segments, and the Spanning Tree Protocol prevents loops when switches are interconnected.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → One-to-One Correspondence → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Addition Within 10 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts Through 10 → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Multiplying Fractions → Ratios → Simple Probability → Multiple Access Protocols: ALOHA, CSMA, and Taking Turns → Ethernet and Frame Structure → MAC Addressing and Hardware Identification → Network Switching and Switching Tables

Longest path: 60 steps · 240 total prerequisite topics

Prerequisites (3)

Leads To (3)