Switches communicate using MAC Addressing, which belongs to Layer 2 (Data Link Layer) of the OSI Model. Some switches come with routing capabilities and can use Layer 3 (Network Layer) to communicate, these are conveniently known as Layer 3 Switches.
A network switch (also called switching hub, bridging hub, officially MAC bridge) is a computer networking device that connects devices together on a computer network, by using packet switching to receive, process and forward data to the destination device. Unlike less advanced network hubs, a network switch forwards data only to one or multiple devices that need to receive it, rather than broadcasting the same data out of each of its ports.
A network switch is …