Page 1 of 1
Limit for receiving concurrent esp_now messages?
Posted: Wed Apr 09, 2025 1:06 pm
by hdsjulian2
I have the following issue: i want to send an esp_now broadcast and then have every device on the network send a reply. Now my network has about 150 devices, so i am afraid that i'm going to DDOS the host.
Is there anyone here who has tested these kinds of things and maybe has an idea how many concurrent incoming esp_now messages an esp32 can handle? How does the system handle this? I'd greatly appreciate any insight...
Re: Limit for receiving concurrent esp_now messages?
Posted: Wed Apr 09, 2025 1:55 pm
by MicroController
The messages being sent on the same channel cannot actually be received concurrently, only in quick succession.
Re: Limit for receiving concurrent esp_now messages?
Posted: Wed Apr 09, 2025 11:17 pm
by hdsjulian2
The messages being sent on the same channel cannot actually be received concurrently, only in quick succession.
Fair point. Now the question remains what would happen if you send a broadcast to 150 devices and they all, upon receipt, answer with a message to the sender. My guess is that there is going to be some microseconds variance in send / receive /respond times, still there might be a bunch of messages arriving at the same time, not being received, hence repeated. Then the question arises whether that will DDOS the system. Therefore i'm asking for experience before trying this out myself

Re: Limit for receiving concurrent esp_now messages?
Posted: Thu Apr 10, 2025 12:01 am
by Sprite
I think there will be a fair amount of traffic, but since ESP-Now uses standard WiFi management frames, they will still use carrier sense to make sure they don't talk over eachother. This means a bunch of small packets will arrive at the receiver at the same time. Because, again, ESP-Now uses the same hardware as WiFi and WiFi is optimized for doing things at a pretty high speed (to get a good throughput), I doubt 150 small packets is going to cause an issue.