Summary: Hubs, switches and routers are all computer networking devices with varying capabilities. Unfortunately the terms are also often misused.
|
What's the difference between a Hub, a Switch and a Router? |
In a word: intelligence.
Hubs, switches, and routers are all devices that let you connect one or more computers to other computers, networked devices, or to other networks. Each has two or more connectors called ports into which you plug in the cables to make the connection. Varying degrees of magic happen inside the device, and therein lies the difference. I often see the terms misused so let's clarify what each one really means.
•
A hub is typically the least expensive, least intelligent, and least complicated of the three. Its job is very simple: anything that comes in one port is sent out to the others. That's it. Every computer connected to the hub "sees" everything that every other computer on the hub sees. The hub itself is blissfully ignorant of the data being transmitted. For years, simple hubs have been quick and easy ways to connect computers in small networks.
A switch does essentially what a hub does but more efficiently. By paying attention to the traffic that comes across it, it can "learn" where particular addresses are. For example, if it sees traffic from machine A coming in on port 2, it now knows that machine A is connected to that port and that traffic to machine A needs to only be sent to that port and not any of the others. The net result of using a switch over a hub is that most of the network traffic only goes where it needs to rather than to every port. On busy networks this can make the network significantly faster.
A router is the smartest and most complicated of the bunch. Routers come in all shapes and sizes from the small four-port broadband routers that are very popular right now to the large industrial strength devices that drive the internet itself. A simple way to think of a router is as a computer that can be programmed to understand, possibly manipulate, and route the data its being asked to handle. For example, broadband routers include the ability to "hide" computers behind a type of firewall which involves slightly modifying the packets of network traffic as they traverse the device. All routers include some kind of user interface for configuring how the router will treat traffic. The really large routers include the equivalent of a full-blown programming language to describe how they should operate as well as the ability to communicate with other routers to describe or determine the best way to get network traffic from point A to point B.
A quick note on one other thing that you'll often see mentioned with these devices and that's network speed. Most devices now are capable of both 10mps (10 mega-bits, or million bits, per second) as well as 100mbs and will automatically detect the speed. If the device is labeled with only one speed then it will only be able to communicate with devices that also support that speed. 1000mbs or "gigabit" devices are starting to slowly become more common as well. Similarly many devices now also include 802.11b or 802.11g wireless transmitters that simply act like additional ports to the device.
Related:
How should I set up my home network? Once you add a second computer to you're faced with setting up a network, at least to share the internet connection. Here are some general guidelines.
Article C1862 - November 19, 2003
But you have not indicated that we also have layer 3,4 and 7 switches which can in some respect replace routers. They are even smarter than routers.
Posted by: temwa at September 11, 2009 12:51 AM1)Hub is a broadcast unit .Hub is take a data and sending to all conneted networks but
Posted by: sandip at October 2, 2009 8:40 AM2)Swich is unicast sending data only one machin to connected switch
I have a very interesting setup that I am working on for a client right now. We are located in a very remote part of the world and the client has purchased the fastest speed available in the region - a 512K dedicated line (for $3,000 a month mind you). The client has a network of about 25 users. They are experiencing very very slow internet load times (slower than one would expect even if the slow connection is shared over 25 computers)
Their current setup is as follows:
The DSL modem is connected to a switch provided by the ISP which is then connected to a 24 port switch, which is then connected to a wireless switch. Most computers are connected directly to the 24 port switch and a few connect to the linksys wireless access point.
Does this setup seem reasonable or is there something else we can do to speed up the internet?
Thanks
Posted by: BobR at October 27, 2009 11:09 PMhow much the equal distribution between the hub and swither?
Posted by: mockelz at October 28, 2009 1:32 AMWell,
The large switch is full and the wireless hub has about 5 laptops connected plus a few desktops. The first switch after the modem only connects to the second large 24 port switch
Posted by: BobR at October 28, 2009 3:16 PMQuick question. So, disabling the DHCP server on a router does not effect the router's switch capability?
Thanks
-Eric
01-Nov-2009
Posted by: Eric at October 31, 2009 11:55 PM
Thank You Leo!! I am having problems with all the terminology in my networking class. Once again you've answered my questions beautifully! I appreciate your simplicity with such complex issues. I finally understand!
Posted by: Nina at November 5, 2009 8:49 PMhello,
Posted by: Austin at November 12, 2009 4:15 AMIam having problem with my network class,is a network of 11 systems where the first serve as a server unit& running window XP, the remaining 10 systems (6 desktop, 4 laptops)all wired network.
the 6 desktop always run extreemly slower anytime other laptops are being uesd.
My networking connection is modem from the ISP is connected to a 24 port switch,and all the 10 system connected to the switch.
please i can i set up my connection for all to be browsing at the same internet speed
COMPARE & CONTRAST the use of the following networking hardware:
• Transmission Medium
• Hub
• Switch
• Router
• Hosts (Server, PC, etc.)
17-Nov-2009
Posted by: Rajvir at November 16, 2009 9:46 AM
Is Router a multicast device?
Posted by: emerald at November 19, 2009 12:57 PM