What Is Network Switching?

Switching in IT and computer networking is the transfer of data packets, or blocks of data, through a network switch. Switches transfer data from source ports on devices such as computers to destination ports on devices such as routers.  

What is a switch?

A switch is a hardware component in network infrastructure that performs the switching process. The switch connects network devices, such as computers and servers, to one another. 

A switch enables multiple devices to share a network while preventing each device's traffic from interfering with other devices' traffic. The switch acts as a traffic cop at a busy intersection. When a data packet arrives at one of its ports, the switch determines which direction the packet is headed. It then forwards the packet through the correct port for its destination.

Some data packets might come to the switch from devices, like computers or voice-over-IP (VoIP) phones, that are attached directly to it. Other data packets might come to the switch from indirectly connected devices, through a network element such as a hub or router. 

The switch knows which of the network's devices are connected to it, and it can transfer data packets between those devices directly. In other cases, data packets may be going to more-distant destinations, on other networks. A switch in such a scenario forwards the packets to a router, which then forwards them to their destinations on the network. 

How is a switch different from a hub? 

Before there were switches, there were network hubs. Hubs enable many devices to plug into a network through a single shared port on a router. The disadvantage of hubs is that when a hub receives a packet, it sends copies of the packet to every other device connected to it. This can cause problems with traffic congestion and data security.

Switches solve this problem by keeping tables of the MAC addresses of all devices sending packets to them and forwarding packets only to their destinations, instead of flooding all connected devices with the packets. 

How is a switch different from a router?

A switch connects devices within a LAN (local-area network) by using MAC addresses to identify where to send data packets. A router connects LANs to other area networks or to the internet. A router uses IP addresses to route data packets.

How has switching technology evolved?

Switches are still at the core of network infrastructure, but today's advanced switches can do much more than just connect devices in a network or IT environment. Most important, advanced switches can act as both switches and routers.

Modern Ethernet switches incorporate features and functions that eliminate the need for some types of additional hardware. For example, switches now include security capabilities that were once handled by dedicated firewalls.

Also, multigigabit switches can provide variable speeds to match the throughput needs of wireless access points, which provide Wi-Fi access to devices such as laptops and mobile phones. And advancements in Power over Ethernet (PoE) switches can supply devices over copper Ethernet cable with up to 90 watts of power per switch port. 

Some switches now incorporate machine learning, so they can act as network sensors, collecting data about the network to help network engineers make informed decisions. Modern switches are also programmable and can include network monitoring applications and network analytics tools. 

Expect advancements in switching to continue to evolve, with switches taking on even more tasks and further increasing efficiency of data transmission across IT networks.

Main types of switches

Unmanaged switches

Unmanaged switches have basic connectivity and limited capacity. They are essentially "plug and play" devices that can be set up to operate without being configured in some way. Unmanaged switches are typically used in small networks that don't have critical requirements for security or availability.


Managed switches

Networking experts need to configure managed switches, which are designed for use in large, complex networks that demand reliability and security. These switches offer more capacity than unmanaged switches and provide more operational flexibility and control. Managed switches also can provide network analytics, simplify management, and deploy software updates through automation.


Fixed switches

Fixed switches have fixed numbers of downlink ports—8, 12, 24, or 48. Each downlink port connects a device to a fixed switch and can provide power to the devices. Uplink ports are often modular, with interchangeable network modules that allow for upgrades to the overall throughput of the switch. Ports can be connected with fiber cables for higher throughput or copper cables for PoE.

Fixed switches are also stackable. They are often stacked in groups, each of which acts as a single switch. 

When more than 144 ports are needed, modular switches (described below) can be a good option.


Modular switches

Modular switches are customizable and thus provide more flexibility than fixed switches. These switches often have 4, 7, or 10 slots that hold line cards with various numbers and types of ports. Networking experts can configure the switches to support an organization's networking needs. 

For example, line cards for access ports, routing, security, and other features can be removed from the slots and replaced with different versions. Also, fan trays and power-supply placement may offer flexibility. These modular capabilities enable future expansion and lifecycle longevity.

Some capabilities of advanced switches

Broader functionality

As noted earlier, advanced modern switches take on roles of other network components, such as routers and wireless LAN (WLAN) controllers. Such functionality reduces the need for additional hardware. 


Electric power

Switches also can provide PoE to power devices such as access points, IP phones, LED lighting, security cameras, and video endpoints. Switches that support Universal Power Over Ethernet (UPOE+) can supply power to devices requiring 15W to 90W.

Explore UPOE+


High-speed transmission

Highly advanced switches, such as multigigabit switches, can provide speeds of 2.5, 5, or 10 gigabits per second or more. Such speeds support the high throughput needed for data transmission under newer wireless standards, such as Wi-Fi 6/6E.


Programmability

Today's application-centric organizations, which are embracing software-defined networking (SDN), 5G connectivity, Internet of Things (IoT) applications, and more, rely on programmable networks. Software-defined networks have APIs in their infrastructure that developers can use to program applications and other components—such as switches—to interact directly with the network.

Programmable switches support high-throughput processing of data packets. They also may include advanced features, such as rate limiting, status monitoring, and security, that network teams can control centrally through a programmatic interface.

Also, programmable switches can be used to supply enterprise-grade security, automation, segmentation, and management to operational technology (OT) environments, which typically don't have those features and capabilities.

Explore intent-based networking

Examples of switching use cases

Enterprise network switching

Switching in an enterprise network enables data transmission among devices in a LAN. Enterprise switches and other components, such as routers and wireless access points, are part of the critical infrastructure that connects to applications and data that are in the data center or the cloud.

Explore enterprise switches


Data center switching

Data centers are evolving rapidly because of exponential data expansion from hyperconnectivity, the growing use of enterprise apps powered by machine learning and artificial intelligence, and the rise of intent-based networking (IBN). Intent-based networking captures business intent and translates it into automated network configurations.

To support modern data centers shaped by these trends, organizations need data center switches that are high-performing, efficient, reliable, scalable, and programmable.

Explore data center switches


Industrial Ethernet switching

As more organizations look to blend their industrial and operational technology (OT) systems and expand their use of IoT applications, they need to extend critical IT networking features, such as enterprise-grade security, and capabilities such as automation to the far edges of the network. 

The network edges can include remote areas or outdoor locations with harsh environmental conditions where IoT devices and sensors may be deployed. Such locations include roadways, railways, oil fields, and power substations. 

Industrial Ethernet switches are hardened devices, designed for resilience in rugged environments. They can provide network managers with visibility into networked endpoints as well as the ability to monitor network health from afar.

Explore industrial switching