Bursty UDP traffic from ESP32-C3
Posted: Sun Aug 13, 2023 1:57 am
Greetings! I am using an ESP32-C3 with the attached short ESP32 Arduino program, which is a minimal repro of my application.
I expect that the program should send one packet every 50 ms. What I see, running Wireshark on a computer on the same Wi-Fi network, is that the traffic is "bursty".
Attached is a sample of the inter-packet delays, on a linear and a logarithmic scale.
* On the linear scale below, you can see that, on average, something happens every 200 ms to deliver a "burst" of packets.
* On the logarithmic scale below, you can see the actual distribution of the packets that arrive almost "simultaneously" with the previous ones.
Proper timing is important for my application. The receiving end is not an ESP32.
Is there an explanation for this? Is there something that can help?
Ihab Awad
I expect that the program should send one packet every 50 ms. What I see, running Wireshark on a computer on the same Wi-Fi network, is that the traffic is "bursty".
Attached is a sample of the inter-packet delays, on a linear and a logarithmic scale.
* On the linear scale below, you can see that, on average, something happens every 200 ms to deliver a "burst" of packets.
* On the logarithmic scale below, you can see the actual distribution of the packets that arrive almost "simultaneously" with the previous ones.
Proper timing is important for my application. The receiving end is not an ESP32.
Is there an explanation for this? Is there something that can help?
Ihab Awad