Ethernet switches improve on hubs by directing frames only to their intended destination based on MAC addresses, increasing both security and network efficiency. This content covers how switches reduce collision domains and how to configure duplex and speed settings for different network environments.
Ethernet Switches
So now we're going to talk about switches. Switches are what Ethernet uses to get information from one node to the next node.
Where things started out was using a hub. And in a hub situation, we already mentioned, when a frame comes into that switch, then that switch will forward it out all other ports to all other end nodes there. So that's the way a hub works. The problem with it is that all devices can listen to all traffic. So there is a security concern. Plus we have the issue with half duplex. So with a hub we get collisions.
So the difference with a switch is, when a device sends a frame and it has some sort of destination MAC address on it, that switch is going to determine where that frame needs to go and then send it out just that port to just that device. So it's getting sent just to that device. So we've added security plus efficiency. So now multiple devices can actually talk at the same time with the switch, because it's not contention-based.
When we add a switch to a network, we've now split this from one big contention-based model, or what we call a collision domain, into lots of smaller collision domains. So in this scenario, we wouldn't really have collisions, because all devices are on separate ports of this switch. So we don't have collisions, and we don't have to worry about that contention. Therefore, our system here is going to run much more efficiently, since we have a switch involved here.
Because a switch could actually be plugged into lots of different devices, or possibly even another hub — maybe it's connected into a hub or another switch — there are settings on the switch itself to set to full duplex or half duplex. And so this can change depending on what equipment is on the other side. So we do have a setting on switches to set it to either half duplex or full duplex. By default, most switches are set to full duplex nowadays. And so therefore, you won't have any issues, because most of our equipment is able to handle that. But there are times when you may need to go in there and set it to half duplex if you have certain equipment set on the other side.
So another setting that's on the switch is the speed settings. Once again, you don't know what equipment is on this other side, and so you can set up the switch to have different speed settings on the different ports. Now, usually nowadays, equipment can autonegotiate. So they autonegotiate whatever speed they're going to communicate at, and you don't really need to worry about this. But there are times when you plug it into equipment where the speed needs to be set on it. And if you don't set that, then communication can be hindered, and you can have a bunch of errors on your switch. So just be watching out for that. There could be some older equipment that you plug into that you will have to manually set the speed on.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →