networking - Why does just splitting an Ethernet cable not work?

08
2014-07
  • Sin Jeong-hun

    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.

    [4 port home router] ------[one Ethernet cable]-----[simple splitter]======[two computers]

    *What the Internet said I should do

    [4 port home router] ------[one Ethernet cable]-----[switch]======[two computers]

    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.

  • Answers
  • Spiff

    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).

  • Wes Sayeed

    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.

  • supercat

    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.

  • Nick Booker

    If your network is 100-BaseTX with Cat5 cable you can split the cable, but you do so by using an adapter to use all four pairs in your existing long cat5 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 RJ-45/Cat5 LAN splitters, and some longer patch cables at the computers' end. In the diagram below 'Y' signifies a splitter and an arrow signifies one Cat5 cable.

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

    The above solution won't require an extra power source, but 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 on:

  • Nevin Williams

    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.

    This Wikipedia article on 10Base2/Thinnet ethernet networks 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.

  • Loren Pechtel

    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 it's 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.


  • Related Question

    Onboard Ethernet suddenly stopped working to router
  • AfterschoolHobbist

    Yesterday I had a sudden problem with my Ethernet connection to my router. My computer is a Pentium 4 with Windows XP SP3 running on it and it was working fine earlier in the day, but yesterday night was the start of the problem.

    My computer is unable to ping to the router and to any other website and unable to get an Internet connection. As beside it was connected to a hub, I directly connected it to the router directly and the same problem occurred, being unable to ping to the router (and connecting to it) and still no Internet access. I directly connected to the modem and the problem still persisted. For each connection, I connected it to my computer and my laptop and my laptop was able to connect, while my desktop computer was unable. I wondered if it was an OS issue and ran a live Ubuntu CD to see if Ubuntu was able to connect to the Internet, but the issue persisted and I was unable to get Internet access.

    I then set my router's lease time to one hour and waited. After one hour, the lease for my computer was removed and I hoped this worked, but it didn't work, but something strange is acting up. My desktop computer is still unable to ping to the router or connect to the Internet, but for some reason, my router and desktop computer are still able to contact each other by providing a lease of a local IP address. The router records a lease to my desktop computer, and when I do ipconfig, my desktop also recognizes that it has been provided a local IP address.

    I have concluded that this is a hardware issue and the only solution to fix this is to buy a network card adapter, but I am wondering if anyone has any solutions that could explain why this happen, why my mac address is 01-23-45-67-89-ab, and is there any way to fix it without buying a new network card?


  • Related Answers
  • Sandeep Bansal

    Before buying a new card, get a laptop or something to test if it does connect. Have you done a hard reset on the router or reflashed the firmware.

    Also it could also be the router acting up, if it's in warranty then call up the manufacturer for a replacement.