11

I want to put a networking device on an Ethernet connection between 2 digital devices. The communication will be 1-to-1; there will only be 2 devices connected through the networking device. And I wont need DHCP or firewalling (for now).

I've already got a network hub, but I've heard that a switch is better, since using a hub means risking packet collisions.

Can I use a network hub to connect my 2 devices, or will I need to use a network switch if I want to avoid collisions? And will a hub give me other trouble that are prevented with a switch?

6 Answers6

12

With just two devices, a hub is sufficient.

When you have just two machines to connect, why the network device? go point-to-point.
I am guessing you want to connect more devices later.
Collisions will matter at that time then (and you cannot go PtP then either).

These days switches and hubs do not have a lot of cost differential.
You might in fact get a switch faster and for about the same price.
Anyway, you have the answer.

nik
  • 57,042
8

I think with just two devices, a cable is sufficient. If none of the devices has Auto-MDIX you'll need a crossover cable.

4

If you've only got two devices, why not just use a crossover cable? Some ports will even auto-switch Rx & Tx in hardware, meaning you could just use a plain old CAT-5 cable. It's worth trying that first; you may not need to buy anything.

moobaa
  • 654
2

Aight, so the problem here is not "use a box vs. use a crossover cable", it's switch vs. hub, and the answer is always switch when you can afford it. A Hub is always half-duplex, and simply acts as a repeater. The resulting packet collisions, even with only 2 devices, will make it slower than simply using a cable, whereas a switch intelligently directs traffic based on the Ethernet address, and is full duplex, resulting in full speed between any devices on the network at the same time.

2

People are correct in saying a hub is sufficient, but give the minor cost difference I would go with a switch. Switches are more efficient when you have multiple device on the network. You might not see any difference now, but it could help in future.

Jim C
  • 1,776
1

A switch is necessary if the ethernet ports have different speeds. It's quite likely that the faster port will downgrade to the speed of the slower port, but why take the chance?

Mark Ransom
  • 2,258