What Happens If An Unmanaged Ethernet Switch Is Looped?

What happens if an unmanaged ethernet switch is looped (connected to itself)?

  • I don't know much at all about networking, and I when I tried to find an answer to this online I found someone who posted a one sentence answer saying "It would cause lots of broadcasts and collisions." What would happen, if anything at all, if I were to connect an unmanaged network switch to itself with a normal Ethernet cable? Scenario 1 If I had an 8-port unmanaged switch and I plug one end of an Ethernet cable into port 1 and the other end into port 2. This would be a consumer level switch, the kind available on Amazon for $20. Scenario 2 If I had a small network similar to the diagram below, would the answer be different from Scenario 1?

  • Answer:

    Auto-sensing versus a crossover cable If the switch's ports do not auto-sense the orientation of the tx/rx pairs, then absolutely nothing will happen because you've probably used a straight-through cable; the type of cable you'd normally use to connect a workstation/client to the switch. So, instead let's assume you've used a crossover cable, or much more likely, you have a non-stoneage switch with auto-sensing tx/rx orientation, then... "dumb" switches You have just created a loop in the network topology. In a moment or two, your network, (all the segments off this dumb switch) will probably stop working as the dumb switch sends the first broadcast packet out one of those two switch ports, receives the packet on the other, and then sends it out the other, etc. Packet storm, meet network, network, this is a packet storm. The switch will probably, (hopefully) squelch the storm, things will come back to working... until the next storm comes along shortly. So let's assume you're not using "dumb" switches, then... switches Switches have loop detection, called http://networkengineering.stackexchange.com/questions/tagged/spanning-tree. When a port comes up with a new link, the switch does not immediately join it to the switch fabric at-large. Instead, it segregates the new port(s) and uses STP to see if a loop would exist if the new port(s) were added to the fabric. (In real-world networks, the loop might not be nearly as obvious as one mis-plugged cable.) Some people, (known as "novices") disable STP so the switch ports "come up" faster. This is great, until you discover why you need STP. VLANs (See also http://networkengineering.stackexchange.com/questions/732/introductory-level-explanation-of-vlans or our http://networkengineering.stackexchange.com/questions/tagged/vlan.) If the two ports are administratively configured in two separate VLANs, then you may well have intentionally wanted to put that cable there to provide connectivity between the VLANs. (But really that makes little sense. Change you're VLANs, or redesign the network, etc. instead of adding a wacky cable.)

Jonathan at Super User Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.