When switches are first turned on, their forwarding tables are empty; they do not know what Ethernet address is attached to what port. Switches learn addresses to build the forwarding table. When a switch receives a frame, it reads the frame’s data link layer source address and compares this address to its forwarding table. If the address is not in the forwarding table, the switch adds it, along with the port on which the frame was received.