What is an Ethernet Switch?
An Ethernet switch is a networking device that is used in almost all data networks to
provide connectivity for your networking devices. Prior to the invention of the Ethernet switch,
our Ethernet data networks used either Repeaters or Hubs to build Local Area Networks.
Before Ethernet Switches, a lot of networks used coaxial cable for local network connections,
in a network topology that became known as a bus network. The most common bus networks used
two early Ethernet cabling standards, which were the 10Base5 and 10Base2 coaxial cable standards.
The 10Base5 networks were often referred to as Thicknet, while the 10Base2 networks were known
as Thinnet. All network devices such as computers and servers were connected to a segment of
cable in what was known as a "shared environment", or more commonly a collision domain. This
type of network relied on data being broadcast across the media to all connected devices.
The invention of the hub made it easier for devices to be added or removed from the network,
but an Ethernet network using a Hub was still a collision domain, where collisions were way
of life. Ethernet network interface cards were designed to use CSMA⁄CD and detect and deal
Unfortunately collisions do have an effect of slowing down a network and make that network
less than efficient. A Hub is said to be a Layer 1 device as it has no real intelligence,
and in fact it is really just a multi-port repeater, with data entering one port being duplicated
when sent out the other ports. The reference to Layer 1 is to the bottom layer of the OSI 7
Layer reference model.
The Hub was eventually replaced by the Ethernet switch as the most common device in Local
Area Networks. The switch, which is a much more efficient device, is said to be a more intelligent
device than a Hub because it is able to interrogate the data within the Ethernet Frames, whereas
a hub just retransmits the data.
With Ethernet, we use 48-bit MAC Addresses when labelling specific physical network interfaces,
and an Ethernet frame of data contains both the Source and Destination MAC Addresses to enable
data to be routed and switched from one specific physical interface to another.
An Ethernet switch has three main functions, which are:
• Address Learning
• Forwarding and Filtering
• Loop Avoidance.
When a data frame enters through a port on a switch, the Ethernet Switch reads the Source
MAC Address and adds that address to a MAC Address Table. This table is often referred to as
Content Addressable Memory (CAM). Within the table the MAC Address is associated with the physical
port on the switch to which the network device is attached.
The switch now knows which port to forward data to when an Ethernet frame arrives from
elsewhere in the network, because it checks the destination MAC Address, and looks for a match
in the table. The Destination MAC Address is therefore used by the Ethernet Switch to forward
data out of the correct port to reach the correct physical interface.
Forwarding and Filtering
When a switch receives an Ethernet frame, it will read the Destination MAC Address in
order to determine which port to forward the data out of. When a switch receives an Ethernet
frame with a Destination MAC Address that is not referenced in the table, it floods that frame
out of all ports in an attempt to reach the correct physical interface. If the correct device
responds, then the switch will now know where that MAC Address resides, and is therefore able
to add that address to the table for future reference.