Caveat
Note that this is more of a working draft rather than a polished memo. I’m writing this since I want to ask around so rather than reposting copies in various forums, I’m posting it here so that I can also include updates.
I’m including some issues related to connectivity beyond Wi-Fi though my proximate goal is to be able address the issues I’m running into using Wi-Fi.
I’m aiming this at a technical audience familiar with Wi-Fi as a technology rather than the vernacular use of “Wi-Fi” to mean “Internet”. In that vein I use Wi-Fi as the central protocol for the Public Packet Infrastructure because it is most available. But the PPT isn’t limited to Wi-Fi – it’s just a base expectation.
If you want, I can add your feedback to this and give you credit or point to your posts online.
You can send me comments via Email.
Update 30-Jan-2025
I’m feeling better about Wi-Fi after working with Ubiquiti to address some of the issues. One problem is due to “_”. Paul Vixie has apologized for disallowing “_” in DNS Names but they work with DHCP though Busybox (a Linux subset) does not allow them. Tasmota had “_” in its names and converted them to “-“. This led to problem as the DHCP name changed inconsistently and there may have been other complications.
The result was confusion and lost messages and possible crashes of my router. Now that I’ve cleaned up the message, things are working much better.
Preface
I’m a great fan of Wi-Fi which is why I want to do what I can to make it work seamlessly. I’m writing this in hopes of making a valuable capability even more valuable.
Note that while I’m using my home system as a case study, the larger goal is to be able to just assume connectivity (Ambient Connectivity™) as public infrastructure.
My home control system is on the same principle as the Internet – relationships independent of the accidental properties of the infrastructure between two endpoints. To turn on a light I simply send a message to the bulb. I typically use a webapp running on a device (a smart phone) mounted on the wall. In “Beta Life” I write more about my efforts to build on Internet protocols.
This is far simpler than having to run a wire between each switch and bulb. Not only does it give me flexibility, it allows me to do more than on and off. I can set the light temperature and level. I can also do a limited amount of scripting though automation, as such, is of limited value.
I have over 250 devices, sometimes 300, with the vast majority using Wi-Fi. Overall, it works very well. These days I rarely find logic problems. Nearly all the failures are due to connectivity issues and Wi-Fi in particular,
The potential of “just works” connectivity is huge. I want to understand what is going wrong so that we, as technologists, can make connectivity work for all of us. I worry that the effort is focused on optimizing for use cases like streaming rather than enabling many devices to work together seamlessly.
I’m using Ubiquiti gear because it has APIs (albeit unofficial) that allow me to better instrument the system. I’m using devices from primarily Shelly, Tasmota, Wiz, Lifx, Google (Nest) and Govee which are IP based so they can share a common infrastructure. I’m mention the variety to emphasize the problem seems systemic rather than due to on bad implementation.
This is not all about Wi-Fi. Dymo printers, for example, seem to think keeping Wi-Fi on is wrong and keep shutting off the Wi-Fi on the printers exacerbating any problems that exist.
Request for Comments
This is a request for comments (but not an official RFC). I’m writing this in hopes of better understanding Wi-Fi issues with hopes of realizing the potential of simple “just works” connectivity. I’m a great fan of Wi-Fi because it is a simple packet protocol akin to Ethernet but without encumbrances of wires. I want to contribute to the improvement and evolution of Wi-Fi.
You can send me comments via Email.
.
In theory, it should just work. At least once one has gotten past onboarding (providing an SSID and a password). That is an issue but not my concern here.
When Wi-Fi works it is remarkable. But all-too-often it fails, I want to understand why and how to fix it. I’m currently using Ubiquiti gear and one major advantage is that I can get rich information about the facilities (AKA networking). It enabled me to write a tool which gives me insights into the network by querying Ubiquiti’s monitoring. I wrote my own applications to do pings to determine the actual behavior.
Most of my devices are using Espressif chips.
Most of the time things work smoothly with it green for functioning times with quick response.
Legend
Background Issues
Getting to the Internet
This is a subtle issue because Wi-Fi isn’t just for the web. It is just as, if not more, important for connectivity among local devices. I’m mentioning this upfront because, as we see below with Rogue APs, I’m often told that I don’t have connectivity because I can’t get “to the Internet” [sic]..
But if that’s not the test for failure mode then how do I As know we have connectivity. The simple answer is that we can’t be sure. It also means that I may have local connectivity with Wi-Fi but need to fallback to using a cellular connection for wider connectivity. In this model the local device is acting as an adaptive router in decide which packets need to go which route. That is a feature not a bug.
Meshing and APs.
This follows on from the point above. Unfortunately mesh protocols tend to be proprietary because money and the desire to lock people in old school.
We need to move to a more ad-hoc connectivity in which we can use whatever paths are available rather than having a single connection to the larger world. This is a deep topic that goes well beyond Wi-Fi.
Rather than seeing meshing in the context of a way to sell a bunch of APs we need to move to more of a peer connectivity approach that is adaptive and not so dependent upon an AP to reach nearby devices. But that’s a deep topic in its own right.
Topology
The reason we have SSIDs is to take the accidental limitations of Ethernets and extend them to the wireless domain. You can’t see other devices if you’re not plugged into the same Ethernet. It acts like a village wall. And has the problems with trust and relationship models that don’t fit into that model.
Just as we need to move beyond paywalls for wide area connectivity, we need to transcend the topological limits so we have one Internet and you on the “wrong” local network.
Thread
Thread is an interesting alternative to Wi-Fi. It uses Zigbee radios that can mesh among themselves. Unfortunately, it is tied to its security perimeter. Partially this is due to its design point of a few hundred kilobits per second. But, more problematic is doubling down on a security perimeter guarded Maxwell’s daemon which knows which bits are naughty and which are nice
Failures
Not connecting
The biggest problem is that devices simply don’t connect and don’t respond. Why does this happen so often and what can I do. In my tool I can see a device is not responding but don’t know why. Power cycling often brings it back. This is endemic and the #1 issue.
What can we do to address and diagnose this issue?
Delayed Connect
Sometimes, perhaps after a power cycle, I won’t got a response but a number of seconds later the device turns on. I don’t know if it a sleep mode or a router problem.
Quirky Performance
As this chart shows, sometimes delays get into the multiple seconds. Why? I did a small experiment in removing most APs and just using an industrial grade Wi-Fi 7 AP but that seems to have driven up the delays. That said, it’s worth more experimenting to better understand what is happening.
The nice thing is that devices eventually respond even if it takes many seconds. This attests to the resilience of the protocols but why does this keep happening?
Rogue APs
I understand this one. This occurs when an AP is broadcasting an SSID but doesn’t have further connectivity. When you try to connect to an AP you fail because it can’t reach a DHCP server.
This is a relatively simple one because the device can typically try another AP. Unfortunately, some systems, such as Android, seem to retry the same AP rather than temporarily marking it as rogue. APs also need the ability to mark themselves as limited and, perhaps, stay quiet.
Suggestions for better approaches including more peer connectivity?
In the example below the numbers two the left of the AP show the mmdd HHmm of the switch. The # shows the channel and the @ shows the RSSI (signal strength).
Flapping
This is typically not a direct problem, but I do notice devices, especially those from Philips Wiz, often switch APs. It’s usually one or two times but can be much more. Why? This example is, admittedly, an extreme.
Not just Wi-Fi
Several of the problems are more about IP than just Wi-Fi.
DHCP
DHCP servers normally provide the same IP address for the same MAC either by tracking it itself or responding to a client requesting the same address. I don’t know if this is a quirk or what is going on but sometimes, I see the IP address change. Fortunately, this is not common.
It may happen when a device has been disconnected for a period of time but that compounds any problems due to connectivity.
It doesn’t help that DHCP is typically also acting as a DNS server but that isn’t well documented.
I find out the devices are not reliably registered in the DHCP server – at least they don’t show up when using Ubiquiti tools.
Overall, it would be very helpful if devices would always register themselves using names based on the manufacturer's name and the MAC address so they can act as stable identifiers that I can bind to.
Another wish is that since the DHCP server is acting like a DNS server I also want to use it as a directory. In theory I can add additional names and I’ve seen devices to it but so far haven’t been able to get it to work.
Reachability
I find that sometimes a device will not be reachable from any Windows machine but if I run on a Linux box ping works just like. In my test, if ping fails, I automatically use SSH to ping from a Linux machine. Any idea what is going on? 
Wi-Fi off?
This isn't a Wi-Fi problem as much as a policy one. Dymo printers turn themselves off after a relatively short time. IT means I can’t just print but I must turn them on. And then make sure they reconnect to WiFi. I’m purposely using their Wi-Fi printers rather than USB, but this is a very annoying misfeature. Their USB versions don’t have this problem, which is strange since the USB versions are, by necessity, near the PC. The distant Wi-Fi device should require traipsing to the printer.
This is a pain. Why are they disconnecting and becoming unavailable.