Link to home
Start Free TrialLog in
Avatar of Ezra Shiram
Ezra ShiramFlag for United States of America

asked on

What is a Loop (Networking)?

Hello,
I was recently troubleshooting a network that had an internet modem connected to an Apple Airport that connected to a switch and another switch was connected to that switch. The internet started going down every 20 minutes and I thought it was a bad switch because when I plugged my laptop into the AirPort the internet worked for me. However, it ended up being a loop which was causing the internet to go down. I had a thought that it might be a loop but I wouldnt have really known because I dont really know what it means and what causes it.

Can you please clearly explain to me (like I'm in grade school) what a loop is and how to fix it?

Thanks!
Avatar of fhillyer1
fhillyer1

here you might get your question answered
http://en.wikipedia.org/wiki/Routing_loop_problem
Avatar of Don Johnston
>Can you please clearly explain to me (like I'm in grade school) what a loop is and how to fix it?


Sounds like the classic Broadcast Storm caused by a loop in the topology. Because bridges and switches flood (send a copy of the same frame out all ports) broadcasts, multicasts and frames to MAC addresses that it doesn't know the location of, a single frame can start multiplying into thousands of frames consuming all the bandwidth in the network.

Spanning Tree was created to prevent this from happening. But not all switches support STP (Spanning Tree Protocol).
And a bit of a quick statement about STP....STP runs over trunks between switches and normally you would run at least 2 of these per switch. STP calculates a best path for traffic based on speed between the switches and shuts the other trunk down. Should the main one fail, STP recalculates and auto opens the one that was shut down. This mechanism prevents a full circle loop. As stated, not all switches are capable of running STP. If all of your swithces were daisy chained, in a circle so to speak, loops will occur and will be amplifies by broadcast storms.
>And a bit of a quick statement about STP....STP runs over trunks between switches and normally you would run at least 2 of these per switch.

Spanning Tree can run over ANY link. Not just trunk links.
ASKER CERTIFIED SOLUTION
Avatar of burdcell
burdcell

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
A network loop is multiple connections are made from one or more devices.  IE if you ran two patch cords from switch A to Switch B a loop would be present. A data storm would be broadcast traffic (data that goes to all devices in network) constantly 'looping' on the two connections. This generally fills the buffers of most switches and / or routers causing the user to reboot the hardware to get connectivity restored until the buffers (mem) is filled again.  Most modern smart switches have programming to allow for these redundant connections and should pervent the 'loop' from occurring, but only if that ability is enabled.  This is typically called Spanning tree.  
Network loop: Ensure that no redundant connections to the same station have both connections active simultaneously.
check this http://support.3com.com/infodeli/tools/netmgt/tncsunix/product/091500/c11ploss.htm

also check cisco.com  to learn more about loops
http://www.cisco.com/en/US/tech/tk389/tk621/technologies_tech_note09186a0080094640.shtml#loop_guard
BPDUGuard:
It is configured on access ports when STP is disabled (PortFast is
enabled) to prevent BPDU coming into that ports. Since there are STP disabled such BPDU would mess up.

LoopGuard:
Usually configured on inter-switch links (trunks) to prevent STP loops caused by unidirectional links.

I've seen loops caused by all sorts of things hardware/software, such as some virtualization software,  some teaming/failsafe network interface drivers...etc.

my recommendation is to find out the root cause and fix that.

madunix