Layer 2 switches are coupling elements that are used in local networks and wide area networks and perform a forwarding function of the data packets.