What are network switches used for?

A network switch is used to connect various network devices. Switches have the ability to receive a message and relay it to just one device which the message was intended whereas a router sends it to every device on the network.