Why doesn't it matter which ports I use on a switch?

11

1

The electrical engineer in me says "use any port" it doesn't matter. Gut instinct wants me to put the router's cable right in the middle. Ultimately, the router went to Port 1 at one end of the switch as that made the ordering of the cables easier to think about. My LAN diagram is here if desired.

Does anyone with experience across different installations have observations about the effects of "how close" ports are to each other?

I did Google a bit but couldn't find explanation about how the backplane or switching fabric specifically addresses the ports' physical locations.

Edited to clarify:

  • Just ports: No uplink or PoE.
  • And I'm specifically not talking about aggregate bandwidth; marketing has that covered.
  • All the ports are wired Gigbit.
  • Yes, if it's a managed switch, you have it configured so all the ports see each other.

I avoided mentioning these initially to try and not bring up the special cases.

Chris K

Posted 2014-01-22T22:14:46.297

Reputation: 923

If the ports aren't labeled (managed switch, QoS, etc.) then the order doesn't matter. It's common to use port 1 to connect to the router providing Internet access, and the other ports for devices. – dr01 – 2018-01-31T09:21:44.570

1I have seen 8-port switches, both cheap and expensive, that have two internal 4-port modules with a backplane link between them. My bet is that for at least some of them, the backplane is not fast enough for full, non-blocking packet exchange between all ports. – David Schwartz – 2014-01-22T22:57:01.410

Answers

11

Modern switches, both low-end and high-end, are generally built out of one or more switching modules. Each switching module typically has full, non-blocking connectivity between all of its ports. 5-port and 8-port modules are common today.

If the switch has more than one switching module, the switching module also has some kind of "backplane" connector used to link the switching modules. On some switches, the backplane (also known as the "switching fabric") is fast enough to support full, non-blocking traffic between all combinations of ports at full speed. But on many of them, the backplane has some limit that is less than that.

On some switches, there is an advantage to having devices that exchange a lot of traffic connected to the same switching module as that reduces backplane congestion.

Most modern Gigabit switches, managed and unmanaged, having 24 ports or fewer support full, non-blocking traffic on all ports. With more than 24 ports or with ports faster than Gigabit, this starts to get expensive and that feature becomes rarer.

The V1910-24G has a 56Gbps backplane, which is fast enough to support maximum traffic on all ports.

David Schwartz

Posted 2014-01-22T22:14:46.297

Reputation: 58 310

+1 this is what I'm asking for! I can imagine advantage to grouping within a module. – Chris K – 2014-01-22T23:04:32.680

5

Ethernet is designed with a bus topology in mind. This means each connected node assumes it will get traffic not intended for it, and thus will drop it if it's not addressed to it, or a broadcast packet. (You can override this and put NICs into promiscuous mode where it will accept all packets, not just packets destined for it, if you want.)

Before you had switches, you had hubs.

When something sent traffic to a port on a hub, the hub would repeat the traffic out of every other port. The destination computer would hopefully be elsewhere on that hub and get the traffic it wanted. Other computers would ignore it, unless it was a broadcast.

Switches learn what MAC addresses are behind what ports, and will use this knowledge to avoid repeating traffic to each port (called "flooding") if possible. If it's not possible, it goes ahead and floods just like an old-school hub.

On enterprise-level managed switches, you can do things like prevent a port from forwarding traffic of a different MAC other than the first that connected to it, and all kinds of other neat things. Your basic consumer level 4-port or 8-port switch doesn't have this capability.


Before you had hubs, you had all nodes physically wired in and connected to a single physical thicknet or thinnet wire. And this was indeed, a true bus topology.

enter image description here

Reference.

LawrenceC

Posted 2014-01-22T22:14:46.297

Reputation: 63 487

1"You can override this and put NICs into broadcast mode where it will accept all packets" I think you mean promiscuous mode. – ChrisInEdmonton – 2014-01-22T22:24:12.303

2

Actually, on certain types of switches it DOES matter. While a plain-vanilla switch should give you the expectation that all ports work the same, here are two other cases:

  1. The switch has a single "uplink" port that connects to a router. Sometimes there is a toggle button to turn that uplink function on and off.
  2. The switch has a mixed of regular ports and power-over-ethernet ports (these are used for VOIP phones) and the POE ports would be marked differently. POE basically turns your switch - or the specific ports - into 48 VDC power sources for connected devices that can consume it.

Xavier J

Posted 2014-01-22T22:14:46.297

Reputation: 640

0

It only doesn't matter on bog standard switches that have no special features.

These usually have a standard single controller and there is nothing technically different between ports.

Be careful, there are some home switches which have QOS or similar technologies where ports do actually matter.

On the other hand, if you use managed switches, depending on the management used, it can make a BIG difference what ports you use!

William Hilsum

Posted 2014-01-22T22:14:46.297

Reputation: 111 572

So from the outside, all the ports look the same however only a subset support QoS? My question intentionally didn't get into management features. + I'm not playing musical chairs; my VoIP boxes stay on their two ports forever. – Chris K – 2014-01-22T23:07:42.863

Very few do... and, it would say so on the box/marketing. – William Hilsum – 2014-01-22T23:11:45.480