Network Switch
A Network Switch is essentially the "smart" evolution of the Ethernet Hub. If you remember our Hub explanation (the megaphone), a Switch is the professional upgrade that makes modern high-speed internet possible.
In technical terms, a Switch is often called a "Multi-port Bridge" because it takes the "filtering" logic of a bridge and applies it to every single device plugged into it.
Imagine you are in that same room with five coworkers, but instead of a megaphone, everyone has a private telephone connected to a central switchboard operator.
-
When you want to send a message to Sarah:
- You pick up your phone and tell the operator: "I have a message for Sarah."
- The operator looks at their desk, sees exactly which wire leads to Sarah's desk, and connects only you and Sarah.
- Bob, John, and Lisa never hear a sound. Their lines stay quiet so they can have their own private conversations at the same time.
How It Works: Step-by-Step
switch works by building a "map" of the network using MAC addresses.
-
The Learning Phase
When you plug a computer into "Port 1" and it sends its first bit of data, the switch looks at the "From" address. It thinks: "Okay, the device with MAC address AAA is on Port 1." It writes this down in its MAC Address Table.
-
The Targeted Delivery
When data comes into the switch meant for "MAC address BBB," the switch checks its table.
- If it knows BBB is on Port 3, it sends the data only to Port 3.
- If it doesn't know yet (because BBB hasn't said anything yet), it will temporarily act like a Hub and shout to everyone once, then remember the answer for next time.
-
Full Duplex (Talking and Listening)
Unlike a Hub, where only one person can "shout" at a time, a Switch allows everyone to talk and listen simultaneously. Because the connections are private, there are no "collisions" or traffic jams.
Why the Switch and not the Hub
Before switches became affordable, networks were slow because they were "clogged" with Hubs shouting everywhere. Today switches are inexpensive and hubs are nearly extinct.