Do you know what a switch and hub are, what does it do, and what is the differences between hubs and switches? Don’t get confused, guys. Come on, see in full!
When you hear the words Hub and Switch, what’s in your mind?
Now, it must be remembered that a hub and a switch are two different devices, from their definition to their function. Although maybe many people think the same.
So, so that you don’t get confused between these two tools, we have prepared a complete explanation so you understand the difference between hubs and switches. Here’s the full article!
What is the Hub?
Even though at first glance it has a function that is almost the same as a switch, it turns out that a hub has a different function.
Hub or often called Network Hub is a piece of hardware used to connect one computer to another computer in a network.
Computers connected by a hub can exchange information with each other. Usually, the type of port provided by the Hub is an ethernet port.
All computers connected by the hub will be on the LAN network. Usually used in offices.
The hub itself is divided into 3 types, including:
- Active hub: A hub that receives data from connected devices, then strengthens data security before sending it back to other connected devices.
- Passive hub: A hub that can receive and send data to other connected devices.
- Intelligent hub: Hub that can make arrangements and checks the flow of data movements that occur on the hub network.
What is a Switch?
Unlike a hub, a switch connects information from one computer to another species. The ordinary switch is likened to a data bridge that uses a MAC address.
By using a switch, you can send data to a specific computer.
The switch itself is considered to work in 2 types of OSI, namely layer two and layer three switches.
Layer two switches work to process data to the data link, while layer three will process data to the network.
The difference between Hub and Switch Functions
Now, after you know the difference between the meaning of Hub and Switch above, you should begin to understand the differences in the functions of Hub and Switch.
Hub has a function as a link between one device and another.
Meanwhile, the Switch functions to exchange information to certain devices that are provided with access.
Switches are also used in network central devices to verify data, before sending it to other devices.
Difference between hubs and other switches
As explained above, although they look similar, Hub and Switch are actually two different tools. Therefore, there are many other Hub and Switch differences that you need to know, apart from their functions.
Here we have listed the complete difference between hubs and switches.
1. Data Transfer Speed
Hubs have speeds of up to 100 Mbps, while switches typically have speeds above 100 Mbps and even up to 1 Gbps.
The speed of the switch can be considered faster because of the way it sends data directly to the destination. While on the hub, it is divided into several ports.
The hub speed will be divided according to the connected device. From here you can tell the difference, right?
2. OSI Layer System
OSI or Open System Interconnection is a computer network connecting technology in conceptual form as a standard definition of connection.
In this case, the hub uses the first layer OSI or Physical Layer connection technology which can only send data from the sender to the receiver.
Whereas the switch uses the second OSI layer where you can use Media Access Control (MAC) and Layer Logical Link Control (LLC) in sending data.
3. How it works
The way hubs and switches work quite differently. Hub works by sharing data to every device connected to the network.
Meanwhile, the switch will receive data and only send data that has been determined via the MAC address.
Of course, the two devices above are different from the way the 4G WiFi modem works, which is much more compact and modern.
4. Security System According to OSI
As seen from the OSI model used, the switch has a better security system.
Switches use a second layer of OSI, which checks for possible errors, and wraps bits in data frames.
Meanwhile, the hub does not receive any security because the data transfer will be sent directly to the connected device.
Well, if the technology is more sophisticated, of course, the price given by a device will be more expensive. Hubs usually have a price that is cheaper than Rs. 1000.
While switches can be priced from Rs.2000, depending on the speed and number of ports provided.
From this, we can conclude, the more complex and sophisticated a device is, the more expensive the price offered. So be wise before buying.
If you want to know more clearly about the differences between hubs and switches, please see the table below!
|Operated by a physical layer||Operated by the Data link layer|
|Have up to 4 ports||Have more ports, from 24 to 28 pieces|
|The address type is Broadcast type||Address Type includes Unicast, Multicast, and Broadcast types|
|Cannot be used as a repeater||Can be used as a repeater|
|It’s easier to hack||It’s harder to hack|
That’s the definition, function, and the difference between hubs and switches that you should know so you don’t go wrong.
Even though they are similar in how they work, it turns out that these two devices are quite different in function.
Don’t forget to write your opinion in the comments column, see you in the next article!