Discussion Locked

Switch or Hub

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a small office of 8 computers running Windows 98. We are going to finally network them together with a single file server and a print server. We've been reading a lot on the subject, and will try this ourselves, and I understand that I could use either a hub or a switch. A consultant who is helping us said we could use either but suggested we use a switch. what's the difference between a switch and a hub?

Thanks in advance

5 replies

by maxwell edison

A hub is a fairly simple device that effectively connects all of the computers together, adds some logic for detecting errors and moves data in from one system and out to every other system. They're cheap and a virtual no-brainer to configure. But they aren't the best of performers because a hub can't establish a direct connection from one computer to another. When a data packet is transmitted from one computer, it actually goes to all of the computers, although only the destination computer receives the data. When large numbers of data packets are moved, the network slows down because in the process of moving data from one computer to another, every computer sees it, tying up bandwidth. Also, if two packets enter the network at the same time, the packets collide with each other, which means that they must be retransmitted, wasting more time.

As time passed, smarter hubs entered the networking scene. These were called switches because they were capable of actually switching data from one port directly to another. That meant faster network performance and fewer errors. Packets could be sent directly from one computer to another without wasting the bandwidth of the entire network attached to that switch.

(continued...)

by maxwell edison

.
.
The switch accomplishes its task by using a little bit of intelligence. Many switches on the market today actually hold an entire packet in a buffer, then "look" inside the packet for its destination address, then route the packet directly to the destination. That saves precious network bandwidth, since only two computers are involved with the data exchange, instead of all of them. And once the packet is exchanged, the switch "knows" how to route future packets to their destinations, since it has now associated an IP address to a MAC (Media Access Control) address, a unique identifier to each network card.

Switches also tend to reduce network collisions by monitoring the network as specified by IEEE 802.3. Without delving into technological gobbledygook, the switch examines the network lines and holds any packets that would result in a collision until the lines are clear. That specification also allows switches to detect packets with errors and direct the computer to resend them.

Most switches are capable of full duplex. Many times this is advertised as something like "200Mb/s bandwidth", but that's just marketing spin. Full duplex means that data can simultaneously travel to and from a system on the network. No matter what the box says, the fastest you can go on a 100Mb network is 100Mb each way. Of course, your network card must also support full duplex operation.

(continued...)

by maxwell edison

So, this probably makes switches look like a very tasty option in your network. This is especially true since a good 24 port switch only costs in the $300 range.

If you only have two or three computers on your network, a switch may be overkill, unless you're transferring a lot of data between all three systems. You'll probably find that you just don't move enough data to generate any packet collisions.

On the other hand, if you've got four or more systems, you'll probably want to take a close look at a switch. Data transfers and online games can quickly clog up your network if you're using all of the computers at once. While you won't be able to increase your bandwidth, a switch will more effectively use what you have. Also, if you have just a couple of computers now, but you're going to expand in the future, get a switch so that you'll be ready.

Other situations may call for combinations of switches and hubs. When switches were new and very expensive, they were usually used to connect different hubs together to form larger networks of hubs. Although traffic could potentially become bogged down within a particular hub's network, that slowdown wouldn't affect systems outside of the hub.

The bottom line comes down to the number of computers in your network and the size of your wallet. Even though hubs are very cheap, switches aren't too much more expensive. If you've got more than a few computers to network and your wallet isn't too thin, it's probably worth your while to consider a switch.

Good luck,

Maxwell

This discussion is closed to new replies.