what would happen if you plugged a network switch into itself
-F

networking tech 

@Felthry so i just tried it on my own switch, a 24 port unmanaged gigabit ethernet switch. once i did so, all of the activity lights for each port currently plugged in, including the two linked to themselves, started blinking a lot as if managing a lot of traffic from all of the ports. i unplugged the cable and this stopped.

i then decided to look it up instead of experimenting without looking information up first. turns out doing this on a basic switch can cause the switch to repeatedly send packets to itself, faster and faster, until it takes down the network. If the switch supports a more advanced feature known as the spanning tree protocol, though, it'll realize that it's plugged into itself and disable those ports.
Follow

re: networking tech 

@holly I'm a little surprised there's no failsafe but I guess if it was able to enumerate what was downstream it would be a router, not a switch

i imagine any old router would figure out what's going on if plugged into itself
-F

re: networking tech 

@Felthry honestly, prior to the test and the research, i was running with the assumption that a basic, unmanaged switch wouldn't have done anything odd. i was thinking that it simply wouldn't have ever needed a reason to send any traffic between those two ports, since neither of them wouldn't have attempted to establish a connection. then, on the flipside, i assumed a managed switch might've had a hard time since it might end up doing some thinking on its own about what's plugged into it and the like, and the unexpected connection to itself might be a case it's not expecting.

turns out, no, it causes a lot of problems for an unmanaged switch since it does just enough on its own to get itself in trouble, and a managed switch's probably designed to recognize the upcoming problem and neutralize it. you learn something new each day, i guess, hahah.

re: networking tech 

@holly @Felthry yeah, what i guessed would happen is that when the router says every once in a while "everyone please make yourself known" or whatever (i don't remember exactly how this works), the switch would say over one port "who are you"

and then it would receive "who are you" on the other port and say "i'm a switch"

and then when it got "i'm a switch" on the first port it would figure it out

i guess not

Sign in to participate in the conversation
Awoo Space

Awoo.space is a Mastodon instance where members can rely on a team of moderators to help resolve conflict, and limits federation with other instances using a specific access list to minimize abuse.

While mature content is allowed here, we strongly believe in being able to choose to engage with content on your own terms, so please make sure to put mature and potentially sensitive content behind the CW feature with enough description that people know what it's about.

Before signing up, please read our community guidelines. While it's a very broad swath of topics it covers, please do your best! We believe that as long as you're putting forth genuine effort to limit harm you might cause – even if you haven't read the document – you'll be okay!