A switch is a device in a
computer network that connects other devices together. Multiple data cables are plugged into a switch to enable communication between different networked devices. Switches manage the flow of data across a network by transmitting a received
network packet only to the one or more devices for which the packet is intended. Each networked device connected to a switch can be identified by its
network address, allowing the switch to direct the flow of traffic, maximizing the security and efficiency of the network. A switch is more intelligent than an
Ethernet hub, which simply retransmits packets out of every port of the hub except the port on which the packet was received, unable to distinguish different recipients, and achieves an overall lower network efficiency. An Ethernet switch operates at the
data link layer (layer 2) of the
OSI model to create a separate
collision domain for each switch port. Each device connected to a switch port can transfer data to any of the other ports at any time and the transmissions will not interfere. Because
broadcasts are still being forwarded to all connected devices by the switch, the newly formed
network segment continues to be a
broadcast domain. Switches may also operate at higher layers of the OSI model, including the network layer and above. A switch that also operates at these higher layers is known as a
multilayer switch. Segmentation involves the use of a switch to split a larger collision domain into smaller ones in order to reduce collision probability and to improve overall network throughput. In the extreme case (i.e., micro-segmentation), each device is directly connected to a switch port dedicated to the device. In contrast to an Ethernet hub, there is a separate collision domain on each switch port. This allows computers to have dedicated bandwidth on point-to-point connections to the network and also to run in full-duplex mode. Full-duplex mode has only one transmitter and one receiver per collision domain, making collisions impossible. The network switch plays an integral role in most modern Ethernet
local area networks (LANs). Mid-to-large-sized LANs contain a number of linked managed switches.
Small office/home office (SOHO) applications typically use a single switch, or an all-purpose device such as a
residential gateway to access small office/home
broadband services such as
DSL or
cable Internet. In most of these cases, the end-user device contains a
router and components that interface to the particular physical broadband technology. Many switches have pluggable modules, such as
Small Form-factor Pluggable (SFP) modules. These modules often contain a transceiver that connects the switch to a physical medium, such as a fiber optic cable. Alternatively, DAC (Direct Attach Copper) cables may be used in place of modules. These modules were preceded by
Medium Attachment Units connected via
Attachment Unit Interfaces to switches and have evolved over time: the first modules were
Gigabit interface converters, followed by
XENPAK modules, SFP modules,
XFP transceivers, SFP+ modules, QSFP, QSFP-DD, and OSFP modules. Pluggable modules are also used for transmitting video in broadcast applications. With the advent of increased speeds together with Co-packaged optics (CPO), which bring the transceivers close to the switching chip of the switch, reducing power consumption, pluggable modules become replaceable laser light sources, and fiber optics are connected directly to the front of the switch instead of through pluggable modules. CPO is also considerably easier to adapt to water cooling. == Role in a network ==