01Chapter 1: What a switch reads from an Ethernet frameA switch makes every forwarding decision from a small part of each Ethernet frame. This chapter covers which fields it reads, which it ignores, and what the switch does with the values. The rest of the tutorial builds on this: learning, lookup, flooding and aging all start with the two addresses at 7 min read
02Chapter 2: Unicast, broadcast and multicast destinationsThis chapter assumes you know the three Ethernet header fields (destination MAC, source MAC, EtherType) and the difference between a MAC address and an IP address. It covers how a switch classifies the destination address of each frame. That classification decides whether the switch consults its MAC6 min read
03Chapter 3: Why switches replaced hubsThis chapter assumes you know what a MAC address is, how it differs from an IP address, and the fields of an Ethernet frame (destination MAC, source MAC, EtherType). It also assumes you can tell a hub, a switch and a router apart at a high level. The goal here is to explain why the switch's MAC addr7 min read
04Chapter 4: The MAC address table: what it storesThis chapter assumes you know what a MAC address is, how it differs from an IP address, and which fields an Ethernet frame carries (destination MAC, source MAC, EtherType). It also assumes you can tell a hub, a switch, and a router apart at a high level. The chapter covers the table's contents and s5 min read
05Chapter 5: Learning: recording the source address on the ingress portThis chapter assumes you know what a MAC address is and how it differs from an IP address. It also assumes you know the Ethernet frame fields (destination MAC, source MAC, EtherType) and the difference between a hub and a switch. Earlier chapters described what the MAC address table stores. This cha6 min read
06Chapter 6: Looking up the destination and forwardingThis chapter assumes you know the Ethernet frame fields (destination MAC, source MAC, EtherType). It also assumes you know what a MAC address is and how a switch differs from a hub and a router. Earlier chapters covered what the MAC address table stores and how the switch learns source addresses. He6 min read
07Chapter 7: Flooding when the destination is unknown or non-unicastThis chapter assumes you know the Ethernet frame fields (destination MAC, source MAC, EtherType). It also assumes you know that a switch keeps a table mapping MAC addresses to ports, and that it adds entries by learning source addresses. Here we cover the case where the table cannot give the switch 6 min read
09Chapter 9: Aging out stale entriesYou should already know how a switch learns a source address on the ingress port and how it uses the MAC address table to forward, flood or filter. This chapter covers the last part of an entry's life: how it expires, why that matters, and what goes wrong when the timer is badly matched to the traff5 min read
10Chapter 10: When a host moves: updates and MAC flappingThis chapter assumes you know how a switch learns source addresses, looks up destinations, and ages entries. It covers what happens when the table says a MAC address is behind one port and a frame from that address then arrives on another port. The cause may be a real move or a network fault, and th6 min read
12Chapter 12: VLANs and per-VLAN learningThis chapter assumes you know the earlier material: how a switch learns source addresses, forwards known unicast frames, floods unknown ones, and ages entries out. It also assumes you know the 802.1Q tag at a basic level, which is a 4-byte field that carries a VLAN ID. Here you will see how VLANs ch5 min read
13Chapter 13: Several switches: many MAC addresses behind one portThis chapter assumes you already know how one switch learns source addresses, looks up destinations, and floods unknown unicast frames. It also assumes you know what a VLAN is. The question here is what changes when switches connect to each other.5 min read
14Chapter 14: Finite table size and MAC floodingThis chapter assumes you know how a switch learns source addresses, forwards by destination lookup, floods unknown unicast frames, and ages out idle entries. It covers what happens when the MAC address table runs out of room, how an attacker can force that, and how to limit the damage.6 min read
15Chapter 15: Static entries and port securityThis chapter assumes you know how a switch learns source addresses, floods unknown destinations, and ages entries out. It also assumes you know that learned entries are per VLAN. Those mechanisms trust whatever frames arrive. This chapter covers two ways to take that trust away: entries you configur6 min read
16Chapter 16: Topology changes and flushing the tableA switch learns that a MAC address is reachable through a port, and it keeps believing that until the entry ages out. That works while the network is stable. When a link fails or a spanning tree recalculates, the port that used to lead to a host may no longer be the right one. This chapter covers ho6 min read