What does a Layer 2 switch use to decide where to forward a received frame?
The switch looks at the destination MAC address in the frame. It consults its switching table. If that MAC address is in the table, the switch sends the frame out the corresponding port which is associated with that MAC address in the table. Otherwise, the switch floods the frame out all ports except the one on which the frame arrived.