Why are there no wireless switches?

16

5

I know that we all are now using wireless routers, but why are there no wireless switches? What's the problem we are facing in introducing that technology or are these wireless switches not needed now? Please explain.

MnkDude

Posted 2019-09-04T13:15:54.147

Reputation: 279

63A "wireless switch" is just an Access Point or WiFi Extender. – Tetsujin – 2019-09-04T13:17:25.630

5It is possible to build an 802.11 switch: each client would connect to its own unique SSID on its own radio on the AP. It would be quite expensive, but you would be able to have 100% use of your channel, with switching fabric connecting the SSIDs. – Jacob Krall – 2019-09-04T22:37:22.447

1You should look into the technical term bridge. – chrylis -on strike- – 2019-09-04T23:42:34.440

4A wireless router is a wireless access point (which is a switch!) plus a normal router, in one box. – user253751 – 2019-09-05T03:23:05.363

6What would such device do? – gronostaj – 2019-09-05T08:09:01.217

3It should be noted that a wireless switch is impossible per definition (unless, multiband). Everything "wireless" is "hub", not "switch". Yes, there is some trickery going on (encryption, MIMO, directional optimizations), but in the end, anything that you send out is visible by everyone within range, always. So that's very much against the definition of "switch" which forwards to exactly one destination. To implement a switch, you would basically need one channel per device, or something. – Damon – 2019-09-05T08:26:47.613

2

That's not entirely true @Damon, modern beamforming techniques used by MIMO and MU-MIMO technologies will mean the signal attenuation at anywhere other than the target station location may mean the signal cannot be picked up reliably. See my answer for details of why I believe that MU-MIMO is the closest thing we have to "Switched" Wi-Fi.

– Mark Booth – 2019-09-05T11:48:52.567

11"I know that we all are now using wireless routers" Speak for yourself! – Lightness Races with Monica – 2019-09-05T12:32:41.457

3By "switch", are you referring to a device that specifically and intelligently sends messages from one connected device to another connected device, or are you simply referring to a device that allows multiple WiFi connected devices to connect to each other but not to the Internet? – TheHansinator – 2019-09-05T23:50:18.233

I had two Unifi switches connected with a simple TP-Link AC750 WiFi Bridge to a Unifi Access Point, and it was fully functional with the Unifi Cloud Controller on that network, except VLANs, and that may just be because the AC750 doesn't support VLAN tagging. Of course, for this use I didn't need a high speed backhaul. – simpleuser – 2019-09-15T22:33:55.487

Answers

37

Switches are intelligent networking devices that take signals in from a particular port and then rebroadcast it on a specific port that it knows has previously hosted the intended recipient. In the event that the port is not connected or a different device is connected then it rebroadcast on all ports until it learns where the recipient is.

A hub on the other hand always broadcasts on all ports.

Wireless networks do not have an equivalent of wired ports and (theoretically speaking) are equivalent to 10base2 coaxial style network cable where signals are broadcast onto a wire that connects all machines at once. Hence a switch or even a hub is not a relevant comparison. (There is also link encryption but can be ignored for the moment)

Back in the day in order to traverse network segments you needed an intermediate device which watched for signals on one network segment that were meant for the other and rebroadcasted back and forth as necessary. That device was a router. It is still what your current router does, it takes signals from wireless, wired, and WAN networks and moves them as necessary. Routers operated at a higher level that switches and were aware of protocol adresses and gateways and so on. They were smarter.

A "switch" is a specific type of networking equipment. It is better than a hub, but not necessarily as good as a router. Wifi does not use or require it because of the method by which it works.

Mokubai

Posted 2019-09-04T13:15:54.147

Reputation: 64 434

6Shouldn't WiFi repeaters count as an equivalent of a switch? – John Dvorak – 2019-09-04T14:26:49.187

7A repeater would be the equivalent of another length of wire with a signal booster inline, it repeats signals by definition. It might actually have active electronics and perform routing duties, but to connected devices (and the network in general) it appears as nothing more. Switches operated at the MAC address level, routers were aware of protocol addresses. – Mokubai – 2019-09-04T14:28:10.600

@JohnDvorak it also depends what level the repeater functions at as to the difference between whether it is a switch or a router. Back when I was taught the difference it was that a switch is a physical or data link layer device with some smarts to prevent network collisions, routers were further up the layer stack at either the network or transport layer, capable of more intelligent switching. Nowadays with the amount of available smart processing chances are all the work is done towards the same level as "old" routers. You could argue that they are still just "smart switches" though... – Mokubai – 2019-09-04T14:40:58.547

9@Mokubai "IP and MAC addresses may appear sysnonymous but they operate at different levels." Adding to that: once you get beyond the trivial cases, MAC and IP addresses don't map one-to-one. A single physical network card may have more than one MAC address. Any one MAC address may have any number of (including no) IP addresses. You can run IP on a type of network that doesn't use MAC addresses (in the sense of Ethernet 48-bit EUIs). An IP address can eventually map to multiple MAC addresses (think multicast). Internetwork IP routing doesn't use MAC addresses at all. And so on and so forth. – a CVn – 2019-09-05T07:37:08.953

5"It is better than a hub, but not necessarily as good as a router." for what? Each of these three devices is optimal in a certain set of scenarios. – rackandboneman – 2019-09-05T08:38:45.980

@rackandboneman "better" in terms of "more capable" they all have their preferred use cases but as you go from hub to switch to router they have more active electronics and more control over data flow. Hubs were also ditched from most major places I know of the moment that switches became available because switches improved overall network bandwidth by reducing collisions. The only case where a hub is "better" than anything is when you (for whatever reason) want all traffic repeated on all ports. – Mokubai – 2019-09-05T08:59:25.060

True, a hub is mostly useful in a laboratory or in a datacenter situation where you want to log traffic. – rackandboneman – 2019-09-05T09:41:25.307

"10baseT where signals are broadcast onto a wire that connects all machines at once" -- Doesn't 10Base-T work over twisted pair, so it's physically point-to-point? (Actually, did the T even refer to twisted pair...) Did you mean 10Base2 or 10Base5 instead? – ilkkachu – 2019-09-05T14:34:40.630

Why would you use a hub in a lab @rackandboneman rather than use a managed switch with the logging computer on a port configured with Port Mirroring enabled? – Mark Booth – 2019-09-05T14:51:44.833

1@ilkkachu indeed i did mean 10base2 - good old coax cables. It's been a long while and I misremembered. Correcting now. – Mokubai – 2019-09-05T14:54:52.583

10base-T was point to point @ilkkachu but the first Ethernet switches I remember seeing were all 10/100base-T. The day I ripped out all of the 10base2 coax cabling and moved everyone to switched 10/100base-T was a happy day. *8') – Mark Booth – 2019-09-05T14:56:17.280

12

With (wired) ethernet, you can have switched because you can have a non-shared medium (individual cables not all hard-wired together like they would be in a hub). With wireless, you inherently have a shared medium...

R.. GitHub STOP HELPING ICE

Posted 2019-09-04T13:15:54.147

Reputation: 1 783

Just out of curiosity, if there are two wireless devices that are connected to the same wifi access point, and they want to send data to each other, does the data pass through the AP or do they communicate directly? If it's the first case (which I strongly suspect it is), then doesn't that make the AP a sort of "wireless switch"? Instead of physical ports the clients connect through "virtual" radio channels. But the communication is still point-to-point with the AP in the middle. – Vilx- – 2019-09-07T11:03:56.387

8

The closest concept to a wireless switch is a signal booster or repeater, which are devices that do pretty much exactly what they sound like. Nobody calls them a switch though, because they're technically hubs (which are usually called repeaters when they only join two network segments), not switches. WiFi has a single shared medium, you can't selectively broadcast to only one 'port' because everything is on a single 'port', so it's a hub not a switch. It's pretty rare to see these devices outside of very specific circumstances though, as it's almost always better to extend the network using a wired connection and multiple wireless access points with the same SSID.

Note, however, that the term 'router' isn't always an accurate description of what most people call wireless routers. Most of them are capable of just acting a a bridge instead of a router, and it's not all that unusual to see them used in this way (for example, the guest network where I work is handled through a wireless AP configured as a bridge, with the actual routing being handled by our gateway systems).

Austin Hemmelgarn

Posted 2019-09-04T13:15:54.147

Reputation: 4 345

1A repeater might however not forward frames that are addressed to devices it knows are not within its range, to increase the bandwidth for other devices. Yes, it's a shared medium, but not necessarily a single one - just like for a wired switch that's not setup in a star topology. – Bergi – 2019-09-05T19:57:05.080

3

TL;DR

Modern MU-MIMO (Multi-user MIMO) access points are the closest we have to switched Wi-Fi.

Detail

There are two main features we associate with ethernet switches.

  1. Non broadcast packets are sent only to the nominated user device.
  2. The switch fabric overall has a higher bandwidth than any individual link.

Until recently, Wi-Fi access points could do neither of these things, but with modern beamforming techniques they can do both.

An analogy

We normally think of radio as being like standing in the middle of a field shouting. As long as only one person is shouting, everyone else in the field can hear them clearly, but if more than one person is shouting at once it starts to get garbled, so we take it in turns (Time-division multiplexing). It is a shared medium.

Beamforming is more like speaking into a parabolic dish pointed at someone else's ear. Because the signal is directed at a specific location, there is no need to shout, and it is almost inaudible for everyone else. Not only this but many pairs of people in the field can do the same, with none of their conversations interfering with each other.

This, this beamforming technique fulfils both of our criteria for 'wireless switching'.

MIMO

The practical implementation of these techniques in WiFi is MU-MIMO.

In radio, multiple-input and multiple-output, or MIMO (/ˈmaɪmoʊ, ˈmiːmoʊ/), is a method for multiplying the capacity of a radio link using multiple transmission and receiving antennas to exploit multipath propagation.

Effectively, if you have multiple antennae, so each signal takes a slightly different path from access point to user device, MIMO can potentially use much of the the bandwidth of each 'stream' simultaneously (like pointing one parabolic dish at your left ear and another at your right *8').

MU-MIMO is an enhancement to MIMO which allows access points to maintain connections to multiple user devices simultaneously.

Multi-user MIMO (MU-MIMO) can leverage multiple users as spatially distributed transmission resources, at the cost of somewhat more expensive signal processing.

Without MU-MIMO, access points connect to only one user device at a time, so access to different user devices has to be spread out over time. With MU-MIMO that limitation doesn't apply.

Wi-Fi 5 (802.11ac) supported MU-MIMO in the Downlink direction - so multiple user devices could receive packets simultaneously, but would have to wait their turn to acknowledge receipt of those packets. This functionality was only optionally supported on devices with "Wave 2" certification.

Wi-Fi 6 (802.11ax) supports MU-MIMO in both the Downlink and Uplink directions. With multiple bi-directional spacial streams, equivalent to separate Cat5 cables coming from an Ethernet switch, this is the closest Wi-Fi currently gets to switched ethernet.

MU-MIMO in practice

MU-MIMO technology is not very widely supported yet, and all devices (access point and user devices) have to support it for it to be used.

Just one device within rance of the access point which doesn't support MU-MIMO will prevent all MU-MIMO devices from making use of their MU-MIMO capability for the duration of it's transmissions.

Mark Booth

Posted 2019-09-04T13:15:54.147

Reputation: 2 324

3

I suspect you are asking about wireless switches, rather than wireless routers which do exist.

In wired networking way back when, all machines on a particular leg were connected to the same wire and had to take it in terns somehow to send packets. Various schemes existed to manage this including token ring and the "just try, and back off for a random time in the case of a collision" where a collision is where two machines try to use the line at the same time.

With a hub you effectively have the same arrangement, the hub is fairly dim just more convenient to connect things to. You still have a single collision domain so at most one machine is sending a packet at a time. Some hubs have small buffers which would allow them to more efficiently handle collisions than the individual machines on the network leg would between them, but you still have a single collision domain because the hub doesn't selectively send packets: every packet sent still goes to all machines on that leg so only one device can talk at once.

With a switch there is more intelligence in the switching device: all machines can be talking to it at once and it has the internal bandwidth and store-and-forward buffers to push the packets between each. A switch will know which machines are connected to which port so can send ethernet packets to just the machine that needs it instead of every one. This essentially means that you have one collision domain per connected device. With a hub, the effective throughput of the network leg degrades massively as more machines try to talk at the same time even if no two machines are talking to the same other machine, with a switch this is not the case.

Switching hubs exist and are a hybrid needed because with a hub each connected machine needs to be talking the same protocol and speed. A 10/100mbps switching hub for instance would effectively (or actually) be two hubs (one at each speed) with a two port switch or router sat between them. Really simple switching hubs actually had different ports for the different speeds, but must had the intelligence required to allow any physical port to connect to either side depending on the speed the machine at the other end tried to connect at. With this you still effectively have a single collision domain.

A router connects two network legs as separate collision domains. This might be two wired networks using the same protocol, network legs using different protocols, or a wired leg and a wireless one, etc. A standard wireless access point is a router by this definition. An AP with multiple ethernet ports is actually two devices in the same box: a switch and the AP. A bridge is similar but it connects the two networks as a single leg - wireless extenders operate like this, bridging to wireless network legs, and a switching hub is effectively a bridge too.

So...

Why there is no wireless switch?

The reason you don't see wireless switches, is that you generally only have one "wire": the small patch of universe between the devices that are taking part in the network - all devices share the same universe so share the same collision domain s oonly one can send a packet at once. You can have multiple "wires" with wireless by using multiple distinct sets of radio frequencies, allowing different devices to talk on at the same time if they do so on different frequency sets. This is why there are several ranges in each wireless standard - you can set your network to use one while your neighbour uses another and your devices won't interferee with each other. Some wireless access points support protocols that allow different devices to use different frequencies on the same network, but unless you have only a small number of devices and there are no local competing networks using the same frequency ranges, you won't get one collision domain per device like you do with a wired switch (just one collision domain per frequency range).

David Spillett

Posted 2019-09-04T13:15:54.147

Reputation: 22 424

0

Wi-Fi routers are switches. Consider the situation of multiple devices connected to a single access point. That access point defines a single wireless LAN, on which the packets are switched among the devices. The devices are not on different network segments with their own IP subnet; they are all in 192.168.0.1/8 or whatever.

The typical Wi-Fi router can switch packets between the wireless LAN and the wired one; a mixture of wired and wireless clients can be on the same subnet.

Devices that use Linux tend to do achieve this functionality with the help of a kernel feature called "ethernet bridging".

Wi-Fi switching products are integrated as multi-function devices that provide routing so they are called and sold-as Wi-Fi routers.

Kaz

Posted 2019-09-04T13:15:54.147

Reputation: 2 277

This answer confuses a switch with a bridge. A bridge connects two network segments at the data link layer, for example a wired and wireless network. A switch on the other hand operates on a single network segment and decides which frames should be forwarded to which switch port(s). An essential feature of a switch (vs. a hub) is that stations do not receive traffic not intended for them (creating separate collision domains). This is not how wireless works; all stations are in the same collision domain by virtue of the use of shared radio waves.

– I say Reinstate Monica – 2019-09-07T13:35:48.607

@TwistyImpersonator You don't know what you're talking about. Switching and bridging are the same thing. Wikipedia back at you: A network switch (also called switching hub, bridging hub, officially MAC bridge[1]) ....

– Kaz – 2019-09-07T13:41:10.797