Why does just splitting an Ethernet cable not work?

36

13

I thought the Ethernet is logically a one-line communication bus (for argument's sake, I am excluding hubs). All machines attached on the bus hears the same signals and the machines themselves try to avoid collisions by randomly backing off.

http://computer.howstuffworks.com/ethernet6.htm

If so, why would splitting one Ethernet line from my home router into two and connecting two computers not work? Why do I have to add a switch to it?

What the Internet said would not work.

                                                           +----------+
                                               +---------->|computer 1|
                                               |           +----------+
    +------------------+       +---------------+
    |4 port home router+------>|simple splitter|
    +------------------+       +---------------+
                                               |           +----------+
                                               +---------->|computer 2|
                                                           +----------+

What the Internet said I should do

                                                           +----------+
                                               +---------->|computer 1|
                                               |           +----------+
    +------------------+       +---------------+
    |4 port home router+------>|    switch     |
    +------------------+       +---------------+
                                               |           +----------+
                                               +---------->|computer 2|
                                                           +----------+

Is this because of the signal degradation (reduced electric current)?


Thank you for all the answers! The reason why I did not just use the two ports of my home router is...

The 4-port gigabit router is in my room, and I had put a computer in another room (also my room, though). Since a wired network is far more reliable and secure, I had bought a long Ethernet cable and and connected the computer to the router. Now I was thinking about adding another computer to that room. I could buy another long Ethernet cable, but then there will be two cables between the rooms. The one line already is a minor annoyance, so I thought if I could share the one line between the two computers in that room. A switch would work, but it requires power and is a little bit pricey. That is why I wondered why it would not work to simply split the physical Ethernet cable.

Apparently I do not completely understand how Ethernet and a switch work. I just have some bit of knowledge I heard in my college class.

Damn Vegetables

Posted 2014-06-06T17:40:13.097

Reputation: 1 914

The key is you need a splitter at each end using two ports of your router. Then everything works fine assuming you're not trying to use 1000BASE-T. – OrangeDog – 2019-07-29T15:15:26.610

7If you understand that ethernet is one-line communication, and you understand how a Switch works, I don't understand your question. If you split an Ethernet cable it no longer would result in one-line communicaton because two devices would be on the exact same line. You understand how a switch right? – Ramhound – 2014-06-06T17:49:46.783

You can do with your 4 ports router and two cables. You don't need a switch, because what you call router is actually a router+4ports_switch+(in some cases)modem. To put it differently, if your router has more than one exit port, it also has some switch capabilities. – Bruno9779 – 2014-06-06T17:54:25.667

2Actually, it does work, sorta, sometimes. Only not very reliably and the transmitters are operated outside of their parameters. Plus you can't communicate with your "twin", only the other end, because the transmitted data will not be reflected back up your (shared) cable. – Daniel R Hicks – 2014-06-06T18:59:48.553

I don't see why you just don't lay down two cables if you don't want another hub: [4 port home router] =========================== [two Ethernet cable]======[two computers] – RoboKaren – 2014-06-07T05:55:33.853

2Ethernet has been reinvented a few times. Only the first version was based on a single bus that all computers are connected to. – user253751 – 2014-06-07T08:09:23.443

I've answered similar questions about non-spec cabling before, with a "Yes, of course there are anecdotes about how someone's uncle wired up the back 40 running ethernet over the barbed wire fence"; Duplicating such results, however, are rare. – Nevin Williams – 2014-06-09T23:22:45.297

Answers

69

In 10BASE-T and 100BASE-TX, one pair of wires is used for transmitting, and one for receiving. That is, one pair is the pair the Ethernet host transmits on, and the hub or switch receives on, and the other pair is the pair that the the hub/switch transmits on, and the Ethernet host receives on.

If you split the cable with a simple passive splitter, you're hooking up those two Ethernet hosts transmitter-to-transmitter and receiver-to-receiver. That's like holding the phone handset upside down and trying to speak into the speaker and listen to the microphone—it just doesn't work. So even if both were in half-duplex mode (like they were hooked to a hub, not a switch), neither of the Ethernet hosts would be able to sense when the other was transmitting, because neither one's receiver was hooked up to the other one's transmitter. So they would have undetectable collisions. Not to mention that they'd both be connected to the same port of the hub, probably confusing the hub's autonegotiation ability, because hubs don't expect to autonegotiate with two separate hosts on the same port.

In many ways, things are even worse in your case of hooking them both up to a switch, because they could both end up thinking they can do full-duplex, which means even more undetectable collisions, on what's supposed to be a collision-free link (properly-wired full duplex links can't possibly have collisions).

With 1000BASE-T (Gigabit Ethernet over Cat5 or better UTP copper cabling), the situation is even worse, because all 4 pairs of wires are used for both transmit and receive (simultaneous, full-duplex), and the transceivers are sophisticated enough to enable that. But if you suddenly have a third party on the line transmitting and receiving all at the same time, it completely blows away the way the simultaneous bidirectional signaling scheme works. With three devices all transmitting at the same time, even when you subtract out your own transmission, you can't differentiate the other two devices' transmissions in the signal you're receiving.

Some early flavors of Ethernet, such as 10BASE-2 a.k.a. "thinnet" a.k.a "cheapernet", featured a bus topology where all the hosts on the LAN literally shared the same wire (the same coaxial cable). Because the same wire was used for both Tx and Rx and there could be any number of hosts on the bus, it had to be half-duplex. But a 10BASE-2 transceiver was expecting it to be that way. And since all the transmitters and receivers were hooked up to the same wire, everyone could hear each other (unlike your split 10/100/1000BASE-T example).

Spiff

Posted 2014-06-06T17:40:13.097

Reputation: 84 656

2

I'd appreciate an explanation of why ethernet splitters are even on the market. Are they fraudulent? One explanation is that splitters do allow two devices to connect, but not both at the same time. The accepted answer for Difference between Ethernet splitter and switch, which speaks positively of splitters, doesn't mention any of your points, while you don't mention any of theirs. I want to connect two computers upstairs to two ports on my AT&T U-Verse router without having to run two cables.

– Michael – 2015-07-31T02:31:59.323

2@Michael From that linked answer, sounds like an Ethernet splitter just lets you run two 4-wire connections through an 8-wire cable. This works since before-Gigabit Ethernet only uses 4 wires anyway. – user253751 – 2015-10-10T02:30:19.497

This answer seems flawed (maybe even wrong) because the holding the phone handset upside down argument (i.e. transmitter-to-transmitter and receiver-to-receiver) applies only to the connection between the 2 clients. You ignore that each of the 2 clients is properly wired to the router (i.e. transmitter-to-receiver+receiver and receiver-to-transmitter+transmitter). – Vlastimil Ovčáčík – 2018-09-17T15:41:04.530

@VlastimilOvčáčík You read it wrong. I didn’t say they couldn’t talk to the hub. I said the two clients (hosts) can’t detect collisions from each other, and both would try to autonegotiate separately, confusing the hub. – Spiff – 2018-09-17T15:46:35.360

@Spiff then I would recommend you to remove the trying to speak into the speaker and listen to the microphone likening. It implies that transmitter1-mouth tries to send data to transmitter2-phone-speaker to no avail. – Vlastimil Ovčáčík – 2018-09-17T16:16:27.340

@VlastimilOvčáčík I specifically said that the two hosts are hooked up to each other this way, which is correct. For some reason you pictured the hub’s transmitter or receiver in this picture, which I was not talking about at that point in the text. – Spiff – 2018-09-17T16:20:03.090

8Thank you for your comprehensive explanation. It seems the the concept of Ethernet I had learned in my college was the "cheapernet" you mentioned. – Damn Vegetables – 2014-06-07T01:28:30.497

1Might be worth mentioning too that while not really Ethernet, 802.11 must also contend with collisions as well as an arbitrary number of hosts on the "bus" (radio channel) -- even more so than 10base-2 and friends, because there might be several separate networks even using the same channel all within range of each other. – a CVn – 2014-06-07T19:23:25.007

8

The original Ethernet spec called for coaxial cables that were tapped (split) to each workstation (hence the "ether" in ethernet). But we're talking ancient history here. Technically it's still possible with RJ-45 cables since the ethernet protocol still supports the collision detection mechanisms, but why in God's name would you want to set it up that way? Especially since your router has 4 ports to work with in the first place.

Wes Sayeed

Posted 2014-06-06T17:40:13.097

Reputation: 12 024

I don't think this really answers his question. – Spiff – 2014-06-06T18:02:48.803

1@Spiff, as I read it, this is exactly the thing the op seems to be missing (eg that you can split coax cause its a single wire analog cable, but that the same is not true of cat-X cabling). – Frank Thomas – 2014-06-06T18:38:11.517

1I think this is better that an actual answer. If the OP only has 4 hosts why wouldn't he just use one port for every host? If the two in the example were only hypothetical and they were more, then the collision rate must be a PITA. It just wouldn't be efficient, maybe the best thing would be to buy a switch. – arielnmz – 2014-06-06T20:55:09.707

@FrankThomas OP asked for an explanation of why splitting a Cat5/RJ-45 cable won't work. Instead of explaining why not, Wes claimed (incorrectly) that it's technically possible. – Spiff – 2014-06-06T21:21:04.737

@arielnmz OP wasn't asking for a solution. He was asking for a technical explanation of why what he was proposing won't work. Wes did not provide that explanation, and instead falsely claimed that it was technically possible, and then belittled OP for wanting to do it the way OP proposed. – Spiff – 2014-06-06T21:23:34.543

1

I was not falsely claiming it was possible. It totally IS possible. You can tap the pairs on an RJ-45 cable the same way you can an analog RJ-11 phone cord. See this link RJ-45 splitter. Maybe my language was a bit harsh, but I can't think of a single, logical reason to do so when you've already got a 4-port switch to work with.

– Wes Sayeed – 2014-06-06T22:09:26.563

@Wes You're either making a straw man argument or moving the goalposts. No one was questioning whether it was possible to connect two wires together. The question was whether Ethernet would work when split, and you said that it was technically possible for Ethernet to work in that condition because of CSMA/CD. But Ethernet can't work like that, not even in CSMA/CD mode, because you'd be wiring a transmitter to a transmitter and a receiver to a receiver. – Spiff – 2014-06-06T22:41:01.427

@Spiff - But as I said earlier, it does work, sort of. (At least with conventional 10-Base-T.) – Daniel R Hicks – 2014-06-08T01:35:03.590

@DanielRHicks You've watered down your definition of "works" to the point of absurdity. If OP had asked "My two hosts on an RJ-45 splitter can't talk to each other, and get terrible speeds when they're both active, and they don't work at all unless I turn off autonegotiation and force them to 10BASE-T. Why is their LAN link so broken?" and you answered "Their LAN link isn't really broken because those hosts can kinda sorta sometimes unreliably still talk to other devices on the LAN.", you'd get downvoted into oblivion and rightfully so. To say this "sort of works" is ridiculous. – Spiff – 2014-06-08T03:55:39.030

@Spiff - All I'm saying is that people have tried it and it worked for them. Of course this was back when you were happy to get any sort of networking going, and "tricks" and restrictions on operation were the norm. It's not that I recommend doing it (except perhaps in an emergency). – Daniel R Hicks – 2014-06-08T11:35:49.063

7

I'm surprised I must disagree with Spiff -- in a sense it does work. We were hunting the cause of excessive packet errors in the factory. Among other things we found where some electrician had simply spliced a Y into a 100BASE-T network cable.

The two computers involved sometimes had network errors, but since this persisted for a long time while the users used a program that was on the network and all its data (except stuff written to the temp directory) was on the network I can conclusively say it's possible.

The switches are the traffic lights of the network -- without them packets run into each other badly. Normally the network protocol makes up for the lost packets, though.

Loren Pechtel

Posted 2014-06-06T17:40:13.097

Reputation: 2 234

I suspect that the network interface cards on either end had something to do with that. Some of them are more tolerant/smarter than others when it comes to dealing with wiring faults. Back in the days of coaxial Ethernet, I had one particular card that somehow managed to work without a properly installed terminator. – Andon M. Coleman – 2014-06-08T01:32:26.313

@AndonM.Coleman Agreed. The cards involved must have been able to tolerate it. At this was done at least 10 years ago I would think that a feature that was on some plain vanilla cards back then would be in all cards by now. – Loren Pechtel – 2014-06-08T03:33:10.910

5

If one were to split a cable such that two device's receive inputs got data from the third device's transmitter, and the first two devices' transmitters fed the third devices' receiver, then data transmitted by the third device might be received by the first two, and it's even possible that the third device might hear data transmitted by one of the first two, but reliability in either case would be poor.

Imagine a cable as a Slinky brand spring toy which is hanging vertically and floating at the bottom. If one briefly jostles the top of the spring, a wave will travel down the spring to the bottom, whereupon it will be reflected back up. Fastening the bottom end to the floor won't solve the problem. It will reverse the polarity of the reflected wave, but the reflection will still be there. The only way to avoid a reflection at the bottom of the spring would be to have enough give to prevent a like-phase reflection, but not so much give as to cause an anti-phase reflection.

Internet cables operate much the same way--a device sends out pulses and expects that the other device will have just enough "give" to absorb them cleanly. Anyplace the characteristics of a cable change will cause reflections and other such unwanted effects unless proper measures are taken to prevent them. If packets are sufficiently short, and code waits long enough before sending a packet than any reflections which were propagating through the cable have died down enough, it may be possible for some data to be sent through the cable. Since Ethernet communications generally don't include such delays, however, communications are apt to be unreliable. It's possible that a device might transmit e.g. the first ten packets of data it wants to send, resulting in the first two being received and the rest being garbled by the first; the receiver might, upon receiving the second packet, hold off on acknowledging it until it decides no more data is coming immediately (conveniently not making that determination until after the noise has died down). Upon getting the acknowledgment from the second packet, the transmitter would send the third through twelfth packets (again, with only two of the ten making it), the receiver would acknowledge the fourth, etc. Data might make it through, but slowly at best.

supercat

Posted 2014-06-06T17:40:13.097

Reputation: 1 649

+1 for the slinky analogy to explain impedance mismatches! – Oliver Charlesworth – 2014-06-07T19:39:29.493

4

If your network is 100BASE-TX with a Cat 5 cable you can split the cable, but you do so by using an adapter to use all four pairs in your existing long Cat 5 cable (usually only two of the four pairs are used).

So you'd need two very short patch cables at the router's end, two RJ45/Cat 5 LAN splitters, and some longer patch cables at the computers' end. In the diagram below, 'Y' signifies a splitter and an arrow signifies one Cat 5 cable.

.----------.                                         __  _ 
| Router   |                            .---------> [__]|=|
|          |       .----.               |           /::/|_|
|          |------>| Y  |             .----.
|          |       |    |------------>| Y  |
|          |------>|    |             '----'
|          |       '----'               |
'----------'                            |           __  _ 
                                        |          [__]|=|
                                        '--------->/::/|_|

The above solution won't require an extra power source, but it will require use of two ports on your router, but it would at least be tidier than two separate cables running in parallel.

See also the discussion on 100BASE-TX and its wiring in Fast Ethernet, subsection Copper.

Nick Booker

Posted 2014-06-06T17:40:13.097

Reputation: 41

1

Splitting an Ethernet cable to connect two clients is not as impossible as some answers here may suggest. Nor it is unheard of.

1 Issues

The main issues you will introduce by wiring your network like this is:

  • the clients can't make use of the CSMA/CD collision detection and thus making them
  • the clients can't talk to each other

1.1 Clients can't talk to each other issue

Both clients can talk to the router just fine (when we ignore the collisions) but they can't directly talk to each other because one client's transmitter wire is connected to the other client's transmitter pin. The correct wiring would be transmitter-to-receiver and vice versa.

I didn't dive into this particular problem too deep, but it seems possible that the router would traverse the communication between the two clients, so you really just need to solve the collision problem.

On the other hand the router may discard traffic addressed for endpoint that is physically on the same router port as origin. The router may rightfully expect hub downstream.

1.2 Collision issue

This is really just consequence of previous problem. The clients and the router listen on their own receiver pin before and during a transmission. If they detect somebody's else transmission they postpone or interrupt own transmission. This and how to resolve collision describes CSMA/CD.

So router can use the collision detection, but the clients can't. This will mumble some or all clients traffic.

There is one important point to mention - the CSMA/CD listens on receiver pin and it does not and cannot listen on transmission pin. One could argue that both clients could prevent collisions by detecting traffic on the other client's transmission wire which seems sensible as that is how we split the cable. This would be holy grail for us as it would let us split the cable as we like, with no collisions. However that is not the case because:

  • your own transmission would trigger false positive collision detection
  • you need to detect collisions even when you currently transmit

2 Solutions

Let's discuss some options.

2.1 No-effort solution

Just splitting the wire and see what happens. It could work as long as there are no or little collisions maybe because:

  • the collisions are not that bad (i.e. yes the network is flaky but it works)
  • the clients are not that chatty (causing little collisions)
  • or they receive only (e.g. Wireshark wire tap)

Collision is dirty word, but actually I have no idea how bad they are on real world network.

2.2 Solving collisions by other means

  • the two clients are never powered at the same time
  • (few more ideas came across my mind, but nothing practical or interesting)

If the collisions are too bad and you can't utilize the built in CSMA/CD you are pretty much screwed.

2.3 Using Ethernet splitter MYWA-04, MYWA-08

This is not real solution, rather workaround. Those splitters sacrifice 1 Gbps speeds in favor of two 100 Mbps independent ethernet channels in one wire. It comes with some issues discussed elsewhere, but I list it as option.

MYWA-04thumb MYWA-08thumb

2.4 Solving collisions by on-wire hub

Hub is the solution to your problem. Its main function is to resend incoming traffic to all other ports except the traffic's origin (which would trigger false positive collision detection). That's it and it also summarize the problem we dealing with.

You could use couple of diodes to clone one clients transmission to the other client's receiver and vice versa. That would create simple unpowered passive hub.

It would be cool to modify MYWA-07 for this:

MYWA-07thumb

2.5 Three-port unpowered passive hub

This is similar to previous idea, but for 3 clients. Kudos to Miroslav Adzic.

pehimagethumb

The internals are explained in Building a passive ethernet hub with anti-parallel diodes

2.6 PoE hub or switch

One can also consider using PoE hub or switch if for some reason you are constrained on the other side of wall (so to speak).


3 Notes

Vlastimil Ovčáčík

Posted 2014-06-06T17:40:13.097

Reputation: 1 835

0

Keep in mind that an Ethernet network deals with the transmission of signals, which is a matter several orders of magnitude more finicky than the matter of transmission of electrical power.

The Wikipedia article 10BASE2 outlines the pros and cons of the 'old' Ethernet systems. While additional hosts could, in fact, be added without a hub, it was never quite as easy as 'splicing' another segment in.

Nevin Williams

Posted 2014-06-06T17:40:13.097

Reputation: 3 725

At least two misleading things here. There is no "breakdown voltage" involved (varying impedance doors not cause "spikes"), and delay has nothing to do with raw bit-rate. – Oliver Charlesworth – 2014-06-07T08:15:50.860

I guess I'll delete most of it, then... – Nevin Williams – 2014-06-07T16:29:19.880