r/ITMemes • • Jun 04 '26

Learning how to create loops in programming class.

Post image
6.8k Upvotes

189 comments sorted by

77

u/MinecraftPlayer799 Jun 04 '26

How did the IT center even find out? Are they just constantly watching?

65

u/RullendeNumser Jun 04 '26

You can setup surveillance to catch it.

14

u/Inevitable-Self-2702 Jun 04 '26

Would this be via SNMP trap or some other method?

8

u/RullendeNumser Jun 04 '26

Yes I think. If I remember right we used paessler last I was in school. But my friend set it up (He did the network I did the server and AD stuff)

2

u/bobbywaz Jun 05 '26

Most cloud managed switches for bigger environments literally tell you right on the main overview page when you login for a network loop.

2

u/Weird_Albatross_9659 Jun 04 '26

lol nobody is setting up surveillance for it instead of just rolling out STP

1

u/RullendeNumser Jun 04 '26

We did in school and our school has it. But again there is also many stupid students

1

u/Weird_Albatross_9659 Jun 04 '26

They probably had a syslog server and had stp guard on or something similar and saw a port get errdisabled

1

u/Long_Asparagus7774 Jun 06 '26

If that was the case no loop would have happend

1

u/Weird_Albatross_9659 Jun 06 '26

Yeah, no loop but it still would have thrown a syslog or trap

27

u/Fricki97 Jun 04 '26

Monitoring found a loop and reported it

18

u/in_use_user_name Jun 04 '26

If spanning tree not enabled, you get broadcast storm.

12

u/MinecraftPlayer799 Jun 04 '26

What is a spanning tree? And what is a broadcast storm?

11

u/V4lenthyn Jun 04 '26

A broadcast is a network packet that is supposed to reach every device in a network, regardless of IP addresses.

A broadcast storm is an infinite amount of broadcast packages, that occurs when you have a loop in your network. (Because in a loop, the switch will always receive the same broadcast packet back once it is sent, leading to an infinite loop.) A broadcast storm will usually lead to a complete shutdown of the entire network.

A spanning tree is a technique for more advanced network switches, that can detect loops and automatically prevent them (by shutting down one of the ports in the picture above). The actual implementations of these techniques are called "Spanning Tree Protocol" (STP) or "Rapid Spanning Tree Procotol" (RSTP).

3

u/PerryLovewhistle Jun 04 '26

[Preface I'm not IT, just an industrial tech that had to learn enough about this stuff because automation is all huge networks]

Another fun fact is that the "power" of the broadcast storm is limited by the bandwidth of the network device(s) creating it. If you make a loop between the two biggest switches in your network, the loop will nuke everything, but if they are smaller devices they will only take out downstream devices smaller than them.

Source: i accidentally made one of the big network loops and rapidly shut down a multi million dollar facility.

1

u/tellemhesdreaming Jun 07 '26

Ah the AVNRT of the computer world.

1

u/super_nerf_spartan Jun 08 '26

Yep, the new guy at my work did this at a DoD lab I worked at awhile back. He thought he was just tidying up and it ended up being a huge problem. Glad he kept his job cause it was an honest mistake, but there were a LOT of angry engineers whose work was interrupted as a result.

1

u/Zealousideal-Deer101 Jun 04 '26

I think that I shall never see
A graph more lovely than a tree.
A tree whose crucial property
Is loop-free connectivity.
A tree that must be sure to span
So packets can reach every LAN.
First, the root must be selected.
By ID, it is elected.
Least cost paths from root are traced.
In the tree, these paths are placed.
A mesh is made by folks like me,
Then bridges find a spanning tree.

1

u/AngryBorsch Jun 04 '26

Absolute poetry

1

u/Zealousideal-Deer101 Jun 04 '26

Thanks, Radia Perlman, the mother of the internet and inventor of the protocol wrote it

And had to memorize it in school

2

u/Jwzbb Jun 04 '26

Whitelisted MACs, notification on anomalies. Makes some sense if you trust some wired connections more than others.

1

u/LPmitV Jun 04 '26

If your hardware doesn't support stp, but has some way to check/monitor load

1

u/davis-sean Jun 06 '26

Uplinks towards the loop will hit 100% utilization real fast

1

u/KogeruHU Jun 06 '26 edited Jun 06 '26

I work with networks.

You can setup monitoring for such scenarios, but even if you dont, once you hear/see somethings wrong, a quick troubleshooting will lead you to it. High cpu/network congestion (because of the looped packets) ->possibly storm happening-> cdp-> one of the neighbour switches is the switch itself.

(However, you usually will have protocols activated on the interfaces to stop the loop by themselves, and then you can just check the log for errdisable)

1

u/Several_Tale_9935 Jun 06 '26

Broadcast storm caused the whole network to go down.

1

u/C9Blender Jun 09 '26

If your switches are relatively new you’ll get an alert to say a port has been STP blocked and it’ll tell which switch and which port is looped.

If you don’t have STP set up normally the switch will tell you buy going offline along with everything around it

30

u/Trixi_Pixi81 Jun 04 '26

This type of iT ticket works perfekt if you need support at you desk

2

u/[deleted] Jun 06 '26

[removed] — view removed comment

22

u/msxenix Jun 04 '26

It's a good thing this switch is not in production since no other cables are plugged in :-)

6

u/musschrott Jun 04 '26

The diagram shows you how to use it as a flail, for users who mess with the networking equipment.

1

u/msxenix Jun 04 '26

lol perfect

1

u/lordmogul Jun 16 '26

Time to get the old ethernet-cat-o-nine-tails, or CAT9 whip for short.

16

u/Huma188 Jun 04 '26 edited Jun 04 '26

Jajajajaja

So fucking funny.

Let me be that guy:

Look, when you have a Network, you have kind of a mesh, and each managed device depending on Its capabilities saves track of that mesh, so moving traffic IS easier and faster, that's called STP (Spanning Tree Protocol)

When you create a loop, as you Guess, the Spanning Tree grows without limit, It IS like a infinite loop (literally), you need equiment which can detect loops and stops them by closing the conflicting Port.

Now, those switches can be expensive, and i can figure how a college lab uses cheap equiment while conected to the main Network, so basically, the cool "main" switch dissables the conflicting Port (disconecting the lab from the Network) because otherwise if would provoke a Broadcast MAC storm and throwing down the whole Network.

But even then, that storm would still happens on the lab Network, making that poor L2 switch be at 100% CPU and 100% memory for as long the loop exists, which places a HUGE extress of the device.

Obviosly, a serious Network uses SNMP (Simple Network Management Protocol) to monitorize the Network so the switch notifies that a Port have been dissables because of a loop, and a heroe Network manager flashes to the rescue of that poor tortured switch xD

2

u/CalendarMindless3382 Jun 09 '26

I don’t understand networking at all. But I think maybe I accidentally kinda did this and need to fix it? I set up a mesh network the other day. It has 3 nodes, with one primary node to be connected to a router via 1 Ethernet cable & the rest connected to the primary via wifi. I didn’t know that when I set it up and just assumed I was supposed to connect them all via Ethernet, so I did. And each node is now connected to the router with Ethernet. I haven’t been around to use the network but other people in the house told me the internet kept going out. I assumed the fix is just to unplug those other two from Ethernet since I at least know that’s not the intended setup. (I think I might just connect them to eachother with the cable to set up a backhaul? Because that’s generally good I think?) but if all of the nodes are connected I may have unintentionally created this loop.

1

u/Huma188 Jun 09 '26

First of all, basically, yes, you disconnect 1 cable of the loop, the loop IS Broken and the problem fix.

Now, for that to happens you need a L2 loop:

Switch = s

Router = r

Computer/printer/tv...(client) = C

S1 - s2 - s1

Or

S1 - S1 (like the image)


All fine

C1 - S1

C2 - s1 - r1

C3 - S1


This is not a problen either

S1 - r1 - s2 - s1

Look like s2 IS conected to S1 and r1 but you are NOT concting 2 links between S1 and s2

Routers segmentates the Network, so basically, you have 2 different L2 domains there which are conected together

This IS a triagle, if you cant visualice this way.

1

u/Wojtek1250XD Jun 10 '26

Thank you.

1

u/PluClyde Jun 04 '26

This is wrong. When STP detects a loop, that port is simply shut down. This is by default turned on on every type of switch unless its form like the 80's or earlier. The situation described in this post wouldnt do anything to the network.

3

u/chipchipjack Jun 04 '26

STP itself is enabled on most enterprise switches by default but I’ve seen switches made in the past decade have their default loop protection action be “forward” instead of “disable” which would cause the aforementioned broadcast storm

1

u/Huma188 Jun 04 '26

Exactly.

Furthermore, even "oldish" enteroprise switches have this limitation, and even then, not every switch on a organization IS L2/L3, if It IS unmanaged, you are fried.

1

u/PluClyde Jun 05 '26

You are probably confusing port security with STP. STP will always block the port.

1

u/chipchipjack Jun 06 '26

Youse right! I always get them mixed up

1

u/Huma188 Jun 06 '26

We are talking about the Same thing, if switch has STP then It IS at least L2, but an unmanaged switch IS not, and, you are right, It does NOT have STP, so you have a problem there.

1

u/PluClyde Jun 06 '26

All switches are L2 or L3, even unmanaged switches. And port sec and STP are teo different things.

2

u/Kaivosukeltaja Jun 05 '26

This happened at our workplace about 10 years ago. All internal and external network access suddenly went down. I had to investigate because our real IT guy quit ages ago and the company didn't want to hire a new one.

It turned out that some ham fisted individual had entered our server room, seen a random loose cable and decided to do the good deed of the day and plug it back in to the switch. It took a while to spot but unplugging it solved everything immediately. And no, the switches weren't from the 80s.

7

u/Kriss3d Jun 04 '26

Ive been there at a former job.
Ive also had the displeasure to have to spend two weeks frantically trying to track down why my entire site would get a seemingly valid IP address but have no dns or connection to anything.

Turns out in a dark corner of a basement backroom. Someone who spent time there once in a while doing some hobby work had decided that she wanted some internet to listen to music.
Wifi didnt reach that room.

And the cable she had didnt reach that far.

What do you do ? What do you do.

Bring your own cheap router from home. Connect the WAN port to the ethernet uplink. And another cable from the LAN port to her laptop.

So all the sudden, people would randomly get an IP that on its face looked legit, same IP range. But leading nowhere.

The architects learned a valuable lesson about DHCP snooping on managed switches that day.. After I had cursed at not being able to find any host running DHCP server services.

5

u/Medical_Mess_3445 Jun 04 '26

You need to keep the bits from leaking out.

4

u/Extremep66 Jun 04 '26

At least they didn't plug a wall outlet into another

2

u/VTOLfreak Jun 04 '26

I used to be an electrician before going into IT, I've seen too many of these suicide cables. There's a need to backfeed an installation in some cases but a cable with male plugs on both ends isn't the way to do it.

2

u/Extremep66 Jun 04 '26

Well, we know what happens if they do it

1

u/Nedoko-maki Jun 04 '26

you have three results from doing that

  1. nothing (yippee!)

  2. boom

  3. kaboom (yes Kowalski)

1

u/Extremep66 Jun 04 '26

You forgot 4th point : They get a screenshot

3

u/Single-Virus4935 Jun 04 '26

I think it is less about the loop, which should be prevented by any STP Flavor with BPDUGuard etc.  but because any manipulation on the network infra should be investigated (bad actor, shadow IT, undocumented changes,...) 

3

u/The_Jizzard_Of_Oz Jun 04 '26

On some managed switches (ahem HP) making a loop back on 2 specific ports followed by a restart will allow you to clear the device's settings - at least temporarily.

Other than that, most switches have loopback protection so it should not do anything , other than raise an alert on a management console if it's a managed device. You probably annoyed the IT guy who had to crawl out of his cave and interact with real people 🤫

2

u/Tomytom99 Jun 04 '26

Netgear pro safe 5 port my beloved

2

u/mbcarbone Jun 04 '26

I once told someone that they can connect two computers together with a single Ethernet cable … they didn’t believe me. “How can you do that without a switch??” Oy! 🙄

2

u/AboveAverage1988 Jun 04 '26

I accidentally created a loop at work, I had set up a redundant ring in a PLC system, but it turns out, fairly logically, that you can't connect the ring until you've uploaded the config. What's more surprising to me is that although the port I connected the system to was set up as an isolated VLAN, and the network has proper RSTP set up, the entire network crashed immediately.

2

u/boathouse7 Jun 06 '26

I actually had to connect ports 1 and 2 to reset an older HP ProCurve switch. As it turns out some HP and Allnet switches use a loop for factory resetting the switch.

2

u/Wolphin8 Jun 06 '26

older networks... before the switches started having the ability to deal with it...

It would take down the entire subnet. If it happened in a key area, it could make those resources inaccessible, and if it had main routes... make the internet inaccessible.

2

u/Zenith2012 Jun 06 '26

Ive worked in IT since I was 18, im now in my 40s. I worked in a school when I was 18 - 25 and our switches didn't have loop protection on them.

This was something that happened often, but we didn't make a big deal about it because if the kids figured it out it would happen daily.

But that picture gave me a shiver 🤣

2

u/BadNecessary9344 Jun 06 '26

Easy to diagnose, hard to pinpoint if its in a big network with spotty stp protocols.

2

u/Imitation_Purple Jun 06 '26

I had an entire factory shut down because some wingnut rearranged their office then plugged all the cables back in. Apparently there was 1 extra forbidden cable in the bundle.

Corporate IT is coming at me like it's my fault because I'm in automation and clearly don't know what I'm doing on an IT network. I start asking questions like "Did anyone plug anything new in?" Or "Is there a way to isolate where the traffic is coming from?" Thinking they would have a better toolset than making me hunt down every network cable in the plant. Im told that they are aware of everything that goes on there and the problem has to be something my team did.

So I go in on my day off and check every machine on the network... Nothing. Finally I tell them I'm done chasing cables until they start doing any real work on their end. Eventually the plant manager speaks up that Sally rearranged that morning and they found an extra cable that didn't have a home. (One of the blue ones right?). Somehow the lost time still fell on my team's shoulders, but I had approval to create and maintain an isolated OT network a week later.

2

u/LeeRyman Jun 07 '26

This is how we all first learnt about applying BDPU Guard on access ports.

2

u/Citizen_Empire Jun 07 '26

You mean this isn't how I can set up a Lan party so me and my buds can play Quake on the school computers?

2

u/elpihvous Jun 08 '26

Years ago I put LAN cables on wrong sockets on my wifi router. I had input and output backwards and let it be like that overnight and I didn't even use the internet after installation. In the morning my connection was blocked by ISP and had to wait many many hours for them to open my connection again, as they had blocked me for some strange activity by my router.

I think it was my routers little adventure in the wide world as it tried to figure out how things really are.

2

u/Riolusx2 Jun 09 '26

Had a friend do this once. The entire county’s network went down because of this

1

u/[deleted] Oct 30 '26

In any of my networks this would be a non issue... Basic loop prevention is like basic hygiene.

1

u/un1matr1x_0 Jun 04 '26

IT freaked out because he didn’t used a crossover cable, right?

1

u/Physical-Cut-2334 Jun 04 '26

What actually happens?

3

u/j_wizlo Jun 04 '26

The switches I have at work are really quick to detect this scenario and shut it down. This is nothing new.

But if you had some sufficiently old or misconfigured equipment you would create what’s called a broadcast storm. Broadcast packets go out on all ports, when it’s received on a port it is rebroadcasted. Due to the loop this would create an endless broadcast-rebroadcast scenario that grows until it’s consumed the entire bandwidth of the network.

1

u/ITrCool Jun 04 '26

Network gets slower and slower and slower until things are down to a crawl.

1

u/abdoubntgr Jun 04 '26

absolutely nothing, The spanning tree protocol that is build in on virtually all switvhes will disable the two ports

1

u/[deleted] Jun 04 '26

Hmm I need to relearn somethings

1

u/dchidelf Jun 04 '26

But, sometimes you have to do that. I have a crappy old Dell switch that doesn’t let you assign a vlan for management, so to get access to it from my management vlan I have a 2 inch patch cable from one port to the next one to label the packets.

1

u/That_0ne_Gamer Jun 04 '26

Its crazy how you can fuck stuff up just by doing this

1

u/dumbasPL Jun 04 '26

irasutoya has an image for everything LMAO

1

u/Maxpro12 Jun 09 '26

may i ask what is Irasutoya

1

u/dumbasPL Jun 09 '26

You probably seen many images made by them but didn't realize. It's a Japanese site with thousands of free to use images, all drawn in the same style.

https://www.irasutoya.com

1

u/Bebo991_Gaming Jun 04 '26

An easy way to create an ARP storm

1

u/MA2_Robinson Jun 04 '26

Not related but this was the same way I tested a cable was bad after trying to connect for like hours once.

1

u/drLoveF Jun 04 '26

Oh look, that’s me. A different time in a different school (different country). IT was not pleased.

1

u/itsamado Jun 04 '26

We plugged loops at our it school so often that it got a running joke at some point 😃

1

u/dizzymiggy Jun 04 '26

Spanning tree protocol hates this one little trick.

1

u/zripcordz Jun 04 '26

BURN THIS IMAGE!!!!!!!

1

u/Playful_Confection_9 Jun 06 '26

But what if I want to move multiple switches? This way I can carry a lot of them like handbags!

1

u/Vaelisra Jun 04 '26

This literally happened to me in school. We saw an Ethernet cable lying around in break and had nothing better to do than create an "Ethernet bridge". We didn't know it would cause a problem. During the following lesson logins and the network shares were painfully slow and unstable and after about half an hour the completely pissed-off network admin came storming into our class yelling "WHO CONNECTED TWO LAN PORTS HERE?!" Of course it was nobody 🤭. Nowadays I know that actually he was the problem for disabling STP.

1

u/imnotcreative4267 Jun 04 '26

The old infinite internet glitch

1

u/degg233 Jun 04 '26

I work alot in av, and stages. There is always alot of different networks, Like a network for sound-engineers and a whole separate network for visuals, another one for managing the led wall etz.

In a "normal" regular setup, you would manage it form 1 central point and make VLAN's to separate it all.

But everything av is really sensitive to protocol settings timings etz and every company that runs a part of the stage brings there own gear...

It happens that some computers have multiple connections to different networks, totally fine.... EXEPT it aint bc of windows

It apparently is the case that your different ports on a computer running windows still links all the networks in a way, 1 computer in 2 networks is fine, but 2 makes a loop.. and slowly but surely everything grinds to a halt .....

TLDR: if it cant be a network loop and shouldn't be a network loop, it is probably still a network loop...

1

u/wittylotus828 Jun 04 '26

They dont have loop protection?

1

u/Chr832 Jun 04 '26 edited Jun 05 '26

I did that too by accident one time because we had a massive spaghetti pile of cables and I could not for the fucking life of me tell what end lead to where.

The whole school WiFi went down that day because of me 🫠

1

u/Minge_Ninja420 Jun 04 '26

tap and trace 🤔

1

u/Dodel1976 Jun 05 '26

On Purpose or By Accident.

1

u/Chr832 Jun 05 '26

I said it was an accident

1

u/Dodel1976 Jun 05 '26

You said, On accident, you cannot do something ON accident.

1

u/Chr832 Jun 05 '26

Oh you were making fun of my grammar mistake.

1

u/Minge_Ninja420 Jun 04 '26

broadcast storm.

1

u/dropbluelettuce Jun 05 '26

Just me doing inter vlan switching

1

u/deadman7794 Jun 05 '26

I heard a higher up in my company did that inadvertently once. He found a loose cable and plugged it into a switch. The cabling was not clean so he did not know where it was plugged in on the other end. It started crashing the phone server frequently so customer service had to get a call back number quick when they picked up incase the call dropped. I heard one guy protested and it dropped halfway through his first sentence.

1

u/KeyEnthusiasm8606 Jun 05 '26

Try this free hack for infinite internet.

1

u/aribrona Jun 05 '26

Time for the lesson on Spanning Tree.

1

u/Pure_Brilliant25 Jun 05 '26

What happens if u do this?

1

u/mynameisnotpedro Jun 08 '26

The router takes a screenshot

1

u/Excellent_Double_726 Jun 05 '26 edited Jun 05 '26

As far as I know STP prevents this

1

u/MrRalphMan Jun 06 '26

Which book is this, I've read them all and can't remember this?

Must be one of the UU books, one with Hex in it.

1

u/Excellent_Double_726 Jun 06 '26

I don't know about books but STP is the spanning tree protocol. The protocol that provides loop free networks with redundant links. That connection displayed in the image from the OP is blocked by STP cause it's redundant

1

u/MrRalphMan Jun 09 '26

Sorry, I was trying to be humerus and reference Sir Terry Pratchett.

I kinda forgot the /s

1

u/batkuip Jun 05 '26

My kid did this a couple of years ago. Because that is what you do with cables, you plug them in. Took me 2 hours to find out why all my ubiquity gear stopped working. :/

1

u/Lopsided_Monitor_277 Jun 06 '26

Shit would happen occasionally happen at work with the phones. End users would just plug both ports into the wall instead of putting tickets in. The phone worked too so idk what was going through their heads.

1

u/bp1222 Jun 06 '26

Radia has entered the chat.

1

u/aspiring_human7200 Jun 06 '26

Someone did this with one (1) cord at the IT help desk in the university library I worked at as an undergrad and it brought the entire network down for an hour before they figured out what caused it

1

u/Crichris Jun 07 '26

Finally a storm that I'm interested 

1

u/Fantastic_Tell_6787 Jun 08 '26

The BPDU guard has entered the room. Be careful, it's armed! 😂

1

u/mirkoalvaropiskulik Jun 08 '26

I need some help with this one

1

u/Correct_Address_4998 Jun 09 '26

ARP storm is the name of my new metal band

1

u/Radius4 Jun 09 '26

Unless it was a dumb switch nothing should haopen

1

u/lordmogul Jun 16 '26

The real issue is that both ends are in downstream ports, one should be upstream to make the data know which direction it should go.

But then, this is exactly how my Mainboard can test cables. By being on both ends and sending data to itself, then checking.

1

u/Particular_Client833 Jul 02 '26

Connect the WAN (secluded port) to a LAN (the pirts that are together, doesnt matter which port) and you will get an independent and free internet.

165

u/[deleted] Jun 04 '26

[removed] — view removed comment

51

u/MinecraftPlayer799 Jun 04 '26

Won't it just do nothing?

122

u/Imsoreadyt Jun 04 '26

Most central network devices have built in security settings to turn of these ports in the network if this happens, older devices wont. Worked in an enterprise where this happened with the old device, servers went instantly crazy multiplying dataloads ended in shutting all down for a few minutes looking for a user trying theirself to connect an ip-phone after changing office.

30

u/xanthus12 Jun 04 '26 edited Jun 04 '26

God help you if STP is turned off for some reason lol

EDIT: not Stone Temple Pilots.

15

u/Nytohan Jun 04 '26

Doesn't even have to be turned off.

Worked in an environment that was brought to its knees when someone saw a stray cable in a meeting room and plugged it into two ports on a 4 jack wall panel (just to keep it tidy, you see) that happened to be fed from two different stacks.

1

u/8layer8 Jun 07 '26

Been there. Witnessed the massive outage. Of course it was a misconfigured switch in the network guys office that caused it because they were connected to the backbone and didn't have the usual configs and controls because reasons.

4

u/GamingxShrimp_YT Jun 05 '26

The oil brand? 😭

6

u/xanthus12 Jun 05 '26

Yes. It's vital to keep your network equipment well lubricated.

2

u/a-stack-of-masks Jun 06 '26

Oh my god old, non-lubed data packets getting stuck in cables all the way at the back of the server rack are my nemesis.

4

u/RudeConversation8051 Jun 06 '26 edited Jun 08 '26

Stp: Spanning tree protocol. It closes down ports if there's loops, so it has the job of preventing messages from exploding the network.

3

u/AStove Jun 04 '26

STP

3

u/CoffeePizzaSushiDick Jun 04 '26

Stone Temple Pilots won’t help ya.

2

u/AdamiralProudmore Jun 06 '26

"Where you going for your TTL?

Where you going with IP mask you found?

And I feel, and I feel when the network tree begins to span yeah, what's the protocol?"

2

u/Complete_Potato9941 Jun 06 '26

My friend was working a large multi nation company in the security department. There was a router without STP that took down 5 sites at once via the dark fiber connections. Took It a full day to find it and get everything backup

1

u/bigdave41 Jun 07 '26

Sticky Toffee Pudding?

10

u/Valuable_Leopard_799 Jun 04 '26

4 years back it took down the Slovakian parliament... exactly this, just a little loop.

6

u/rinnakan Jun 04 '26

Makes me remember a lan party at the beginning of 2k, with a few thousand PCs. Some random guy plugged in a broken cable as a loop. Perfect for breaking the network randomly from time to time, took the admins a few hours to find it

3

u/Extremep66 Jun 04 '26

RIP Servers

27

u/Bane8080 Jun 04 '26

Depends if the switch has Spanning Tree Protocol turned on.

If it does, then you are correct, that will do nothing.

If it doesn't, that will bring down the network.

13

u/Pahndahbear Jun 04 '26

Dude it kills me everytime i hear STP, my boss calls it storm protection lol, when he first mentioned this i had no idea what he was referencing, but now the office joke is STP = Storm Protection

9

u/VoidHarrier Jun 04 '26

I mean, boss isn't wrong. It prevents broadcast storms, amongst other conditions that can bring down servers and networks.

5

u/saudage Jun 04 '26

All my switches are loaded with the full Stone Temple Pilots discography.

2

u/Sufficient_Risk_8127 Jun 04 '26

sexual till protection

2

u/ralkey Jun 05 '26

A fun prank at my previous work was to abuse our privileged creds to shell into a colleagues machines and spoof stp packets, instantly shutting down their switchport. This one guy got so angry he was screamed red faced into the phone at why networks “kept cutting him off” every half an hour while we struggled not to die laughing!

2

u/Ill_Zone5990 Jun 04 '26

I used to kill my school's network by doing this

9

u/pyro57 Jun 04 '26

On modern switches it should do nothing because of spanning tree protocol, but if the switch doesn't support spanning tree or its disabled then this is a recipe for a broadcast storm that will bring the switch to a crawl.

Basically when a broadcast packet comes into a switch it then gets sent out all interfaces, since it's a broadcast it needs to go to all devices. Well if it sends a broadcast out that that wire it will then see another broadcast to send out and another and another etc etc until the switch is rebooted.

2

u/Firestorm83 Jun 04 '26

Isn't that what a hub does and not a switch? Aka ancient tech?

5

u/pyro57 Jun 04 '26

No, a hub does that for every single packet it gets. If a switch sees a single cast or multi cast packet it will "switch" it to the appropriate ports, but a broadcast packet will be sent out all ports still, since that's what a broadcast packet is supposed to do, go to every device on the subnet. Broadcasts are often used for things like dhcp for new devices to find the dhcp server in order to request an IP address and get on the network.

2

u/kcat__ Jun 05 '26

Sure, but this is a broadcast packet. Broadcast packets on a switch act similar to how a regular packet works on a hub. Broadcast packets need to be sent out to all devices

1

u/garfgon Jun 04 '26

And one very common broadcast is "who has this IP address?" So say that IP is connected to port 2 and you have port 1 and 4 connected...

switch: Oh, I'm getting a who has XYZ from port 3, let me broadcast that out to everyone!

switch: Oh I'm getting I have XYZ from port 2, let me send that back to port 3!

switch: Oh I'm getting a who has XYZ from port 1, let me broadcast that out to everyone!

switch: Oh, I'm getting a who has XYZ from port 4, let me broadcast that out to everyone!

switch: Oh, I'm getting a I have XYZ from port 2, let me send that back to port 3! Or maybe 1 or 4, I'm not sure anymore.

switch: Oh, I'm getting a who has XYZ from port 4, let me broadcast that out to everyone!

etc, etc.

1

u/Teknikal_Domain Jun 04 '26

In this specific example.

Unless you have a switch with ARP snooping or DHCP snooping enabled.

2

u/AlligatorMidwife Jun 04 '26

Basically any switch you get with be running spanning tree protocol and recognize a loop right away. It's going to disable sending packets out those ports very quickly. That being said mistakes happen and you can get duplication issues sometimes. Just very unlikely

2

u/trans_psychonaut Jun 04 '26

not really, there are so called broadcasts running on your network, its basically anything that scans or announces itself to the whole network (like dhcp).

If you have loops in it, it will quickly end up in an endless loop and pretty much block any traffic on the network.

Many switches have loop prevention features for that reason

2

u/BIT-NETRaptor Jun 04 '26

If you plug both ends into a modern smart switch? no problem.

If you’re plugging this into a dumb little blue netgear switch downstream of said smart switch? Hopefully just small problem, that uplink to the central switch gets dropped. However if this is daisychained via multiple dumb switches downstream of that smart switch, that’s a lot of devices disabled by that uplink going down.

Smart switches use features such as BPDU guard and STP to detect loops. Ethernet has no loop prevention so if you plug into a loop like this to any switch that doesn’t have that feature, you create what is called a broadcast storm. Some ethernet frames are “broadcast “ in which case the duty of a switch is “send it out every port except the one it came from”. Maybe you can see how this is a problem: that loop means it will send broadcasts along the loop, then send them back out the other side of the loop again, infinitely repeating.

1

u/Next-Post9702 Jun 04 '26

At my high school someone did this and it took down the entire network. That's already a while ago, but I guess it's possible a lot of schools still haven't patched it

1

u/LogRollChamp Jun 04 '26

It may send data in infinite loops causing bad

1

u/Novaikkakuuskuusviis Jun 04 '26

Not 100% sure, but my understanding is that old hubs, used to just send traffic into each slot to try to find a destination. And this wiring could start flooding the hub with exponential traffic, slowing it down. But modern switches are smart enough, they aren't bothered with this. They probably would notice that the ports are interconnected and then just don't transmit anything into them.

1

u/Facosa99 Jun 04 '26

It will ping itself, which will triger a ping to any other connected devices... Including itself. This can quite literally disable the whole network.

As other said, modern protocols can prevent it nowadays

1

u/Few_Kitchen_4825 Jun 05 '26

I don't recommend it. Someone did that in my dorm, the entire college network went down.

It apparently causes some issues with the ip addresses that can cause a network outage

1

u/EnderArchery Jun 05 '26 edited Jun 05 '26

Yeah... no... it will build an infinite loop. With a view looping packets, not an issue. But they never stop looping and more and more packets get trapped in the loop until the switch is so busy handling just the loop, that all other traffic comes to a halt.

Additionally, because of the type of packet that the loop catches, it will also make the switch scream at everything else connected to it at the same rate. So it's suddenly trying it's best to also keep all other switches on the network busy....
But usually they can fit a view other packets in anyways... the network is just super slow.

But it has one more effect. While the switches are kept busy... they can handle a LOT of traffic. But when a 10 Gig Switch is screaming at all other devices, that also includes the 5 Gig, 1 Gig and all other slower devices down the line too. So suddenly that 10 Gig switch is trying to keep THEM busy at its max while its max is maybe 10 times higher than what the end user devices can even receive. They don't really have a chance to get anything done over the network anymore.

So let's hope that the switch has STP or storm protection enabled, (if it's STP, that it's properly setup in terms of security), and/or that it's not something like the 10Gig central switch that's doing the screaming, instead that it's 100 Mbit dumb switch on someones desk

1

u/Aedene Jun 06 '26

The modern network switching standards can detect and block it before it becomes a problem, but this is literally microphone feedback for data. Once a loop is created, packets are duplicated and it floods the layer 2 infrastructure, drowning out the bandwidth.

1

u/Panzerv2003 Jun 06 '26

Modern systems are guarded against this but older ones basically get a stroke.

1

u/King_Raum Jun 06 '26

This was how we crashed our schools whole network for a week and a half. Definitely can cause issues

1

u/Aknazer Jun 07 '26

My Networking instructor worked at a highschool previously and apparently a kid did this.  It led to a broadcast storm and brought down part of the network.  Not sure how the kid got access to do this, but he did say that part of the issue had to do with the network not being properly configured to prevent it.  

Said that either it was never turned on or when they upgraded equipment they did a C/P of old config files to the new devices which can lead to new features (such as ones that would prevent this) getting turned off.

1

u/sebblMUC Jun 07 '26

We accidentally did this at a LAN party some years ago. Took us over two hours to troubleshoot and even calls with the network provider 

9

u/Significant-Cause919 Jun 04 '26

On any modern switch that costs more than $5, STP will block the port.

3

u/MrDaVernacular Jun 05 '26

Packets in the Storm

Packets in the storm Packets in the storm Through this wire we’re born Through these routes we’re thrown Like a frame without a home Searching through the unknown Packets in the storm

There’s a flood upon the line Buffers filling up with time Routers blinking red Dreams of uptime dead Every queue begins to groan Every switch is on its own Flood upon the line

Rain against the rack tonight Status LEDs burn bright Thunder in the core Drops upon the floor Hear the distant traceroute Whisper where the packets flew Rain against the rack tonight

Packets in the storm Packets in the storm Lost between the hops Where the heartbeat stops Engineers awake at dawn Chasing ghosts that linger on Packets in the storm

And the logs roll by like clouds Silent warnings speaking loud Somewhere through the haze A clean connection stays Till the darkness starts to fade And the network’s debts are paid Logs roll by like clouds

Packets in the storm Packets in the storm Morning breaks the night Graphs are looking right Traffic flowing calm and warm After all the packet storm Packets in the storm.

2

u/emmowo_dev Jun 04 '26

this account is a bot

1

u/gixy6 Jun 06 '26

We found a bug in Juniper's VSTP where if you had an lldp voice vlan configured it would leave that vlan active.

That was an interesting deployment.

0

u/[deleted] Jun 04 '26

[deleted]

3

u/cybermaus Jun 04 '26

No, it never makes sense afaik. Even if they are different VLAN ports and you want to bridge those VLAN, it should be done as a bridge inside the router. Otherwise some low level packets, below VLAN id on ETH level can still cause storms.

0

u/[deleted] Jun 04 '26

[deleted]

1

u/Pup5432 Jun 04 '26

Specifically comes up in a multi-blade firewall/router every time I’ve seen it. Sometimes a cable really is the best option. At my current job the firewall SME started giving a speech about why they had a loop on the front of the firewall like that because apparently everyone was always confused when they saw it. Not me unfortunately…

1

u/Sannction Jun 04 '26

It never makes sense. Even in an edge case where a loop is a potential "solution", theres a better option that won't cause a storm.

30

u/[deleted] Jun 04 '26

[removed] — view removed comment

16

u/alexceltare2 Jun 04 '26

So is Storm Control. The IT really does seem inexperienced.

8

u/Wandering_Birch_Tree Jun 04 '26

It only works if you remember to put it in the config lol

1

u/ScallionSmooth5925 Jun 04 '26

It's on by default on everything 

2

u/Balthxzar Jun 04 '26

It isn't on the switch of a brand new Meraki MX68CW, and can't actually be enabled either. 

2

u/_ahrs Jun 04 '26

That sounds like a pretty big L for them then, even my cheapo TP-Link managed switch I have at home has STP and I know it works because I have accidentally created a loop before (which was what led me to make sure it was configured right. It was not.).

0

u/[deleted] Jun 04 '26

[deleted]

2

u/Balthxzar Jun 04 '26

It has a PoE switch in it, it's a SOHO router so it's an all-in-one. 

A layer 3 switch is a router, should that "not support switch features"?

2

u/chipchipjack Jun 04 '26

It’s weird that it doesn’t have STP. Their official docs say that they intend customers to have STP running downstream instead of on the mx68. The mx68 will pass bpdu’s though. I guess it makes a tiny bit of sense if you’re going to be using it for its intended purpose but I’ve never actually seen a managed network device not have STP on it.

1

u/Wandering_Birch_Tree Jun 04 '26

Maybe where you work lol

2

u/ScallionSmooth5925 Jun 04 '26

It's on by default even on dollar store unmanaged switches what are you working with? Something form the 80's?

2

u/Wandering_Birch_Tree Jun 04 '26

Only the finest Cisco equipment for the corporation

1

u/gregory696969 Jun 04 '26

Cisco here as well, hunting loops sucks

1

u/thedbp Jun 06 '26

Sweet summer child, there are so many shitty network manufacturers... So many.