These don't appear to be supported by the official OpenWrt project. Therefore, the firmware you're currently using is almost certainly provided by GL-inet. That means you'll need to ask on their support channels/forums for help since they have heavily modified OpenWrt for their products.
Because the GL-inet firmware is so significantly different than the official OpenWrt, it requires specific and intimate knowledge of the vendor firmware rather than what is known about OpenWrt. Therefore, it is considered off-topic and out-of-scope here.
This question is more about the classic hardware “i want a small router that can control the world but it must be cheap, very very cheap”
I think this has more to do about network math than OpenWrt or any other network firmware.
4000 leases doesn’t matter when you use a home router for 600wifi clients, or 200!? At pretty much the same time.
How many wifi clients can the actual wifi radio handle? On business class AP some manufacturers data sheets brag about 1000clients at the same time, with scrutiny of the commercial that is the control system max. The radio max is probably not even 200. I would say 50-100.
Then we have the problem with uplink speed spread out on these 200 or 600 clients…
But if you ask me, you have simply choked the network and the only meaningful solution you have is a business class network in obviously what is a business class environment.
To be clear, there aren't 4000 addresses available in a /28 subnet, there's about 14. Given that you expect 200+ devices to connect, (generically) I would assume this is your issue.
Thanks for all the help and advice so far, this is a great community!
A few further clarifications:
the subnet being used is actually /14
clients do not connect at the same time. At any given time there would be approx 20 connected simultaneously.
the cycle for a client is connect -> send 1MB data over the 4G wan connection -> disconnect
the issue seems to be that after a period of some time, new clients sometimes cannot connect. There don't seem to be any abnormally high CPU / RAM issues, leading me to believe it is a some kind of configuration issue, perhaps with DHCP.
Ok, it start to be confusing
but anyway ...
it is big commercial network, 500 sites, 4000 devices, data acquisition at end of the day ...
sorry to say, but ... seeking help for commercial products on free/volunteer forum ...
good luck
Configure the devices to retry a few times if upload of data fails.
Other ideas:
Log connection info on the router and analyze logs for more insight. Do the same for some clients, especially if you have units that are more problematic.
The thing is that what you say makes no sense and is contradicting and you massively change the information after getting the answers!?
Why do you have 4000 active leases every 2minutes if you only have 20 connected clients at once?
And I doubt the wifi computers will let go of their connection once established and within range, they just reapplies every 60seconds if you give them 2minutes. The only way your idea will happen with dnsmasq is if the user turn off wifi on their device after uploaded the 1MB.
There simply isn’t a single operating system on any wifi device on this planet doing that kind of wifi connection you describe.
That's exactly what happens - devices enter airplane mode after transmitting data. We run a custom version of Android which triggers analytic data upload on plugging in to charge, then immediately disconnects from the WiFi network. So I guess there is one operating system that does this
Ok nice work, so why do have we this forum tread then, if your project work so good with 4000 leases for 600 clients but only 20 users?
I know a person irl that use to say like this: “don’t come and say how strong and heavy duty your tools are, throw them in to a kindergarten for a week instead and let us see how many seconds these heavy duty tools will survive, if a group of kids can’t break it during a week then it’s quality guaranteed really heavy duty shit.”
But since we have this forum tread to begin with obviously your heavy duty idea got a test fail from the kids proving ground and they have no laws and they don’t care for humanity when they are hired for doing standardized stress test…