Vol. I · No. 46The hardware sectionSat, 10 Oct 2026
Layer 2 · Data-link device

Switch

the LAN switch

A switch is the box that forwards frames inside a single network. It reads the destination MAC address, looks it up in its MAC table, and sends the frame out only the right port — the wiring hub of a modern LAN.

A switch connects many devices on one network and sends each frame only to the port that needs it.

Operates at
Layer 2
Data Link
Forwards by
MAC address
exact match
Learns
A MAC table
port ↔ address
Typical use
Every LAN
access & core

How it works

One network, many ports — each frame to the right one
Laptop A
aa:aa:aa
on the LAN
frame in · port 1
Switch
forwards by MAC
to one port only
frame out · port 3
Laptop B
bb:bb:bb
also on the LAN
The switch’s MAC address table
aa:aa:aa:11:11:11port 1
bb:bb:bb:22:22:22 ← matchport 3
cc:cc:cc:33:33:33port 5

A frame from Laptop A addressed to Laptop B (bb:bb:bb) comes in on port 1. The switch finds that MAC on port 3 and sends the frame out only that port — no other device sees it.

The main points

What a switch does, step by step

1
Read the frame

A frame arrives; the switch reads its destination MAC address.

2
Look up the port

It checks its MAC table for that address. If it isn’t there yet, it floods the frame out every port.

3
Learn the source

It records the source MAC against the port the frame came in on, filling the table over time.

4
Forward to one port

It sends the frame out only the matching port — full-duplex, so no collisions.

In cybersecurity

A switch decides who can talk to whom on the LAN, so it’s a control point — and a target for attacks that fool its table.

MAC flooding

Overflow the table and a switch fails open, flooding traffic like a hub — port security stops it.

VLAN segmentation

Split the LAN into separate broadcast domains so groups can’t reach each other.

Port security

Limit how many MACs a port accepts and shut it on violation.

802.1X

Make a device authenticate before its port carries any traffic.

DHCP snooping & DAI

Block rogue DHCP servers and ARP spoofing at the switch.

Port mirroring

A SPAN port copies traffic to an IDS so it can be watched.

Protocols it runs

Ethernet802.1QSTP802.1X

Sits beside

RouterNICAccess Point

On the bench

Switch — LAN switch