Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wifi: Get rid of inefficient wifi packets (IDFGH-3036) #5061

Closed
seppf opened this issue Apr 4, 2020 · 9 comments
Closed

Wifi: Get rid of inefficient wifi packets (IDFGH-3036) #5061

seppf opened this issue Apr 4, 2020 · 9 comments
Labels
Type: Feature Request Feature request for IDF

Comments

@seppf
Copy link

seppf commented Apr 4, 2020

Let's make it clear: 802.11b is dead - since long. I have to dig very deep in my sample device boxes to find a pure 802.11b device.
One of the major drawbacks of 802.11b is the minimum bitrate of 1 MBit/s that is used in some (but not all!) bgn systems for management frames, broadcasts and multicasts.
Just have a look at how much air time is wasted for a single 1 MBit beacon, ACK or a response to a wildcard (worst of all!) probe request when "normal" data packets rush along with 50, 60 or 70 MBits.
And why this all? To be backward compatible with wifi clients that lie six feet under since 10 years or more?
So please, let's have a gn mode in addition to b / bg / bgn. OFDM modulation is more efficient anyhow.
With OFDM-only basic bitrate would be 6 MBits for both access points and stations. Obviously this boosts this set of packets as compared to 1 MBit. And in most cases the required ~2 dB more SNR don't really matter, as there is sufficient SNR for much higher bitrates.

Futhermore (or as an alternative to dropping b) it would help to have an API function for (even dynamically) setting the bitrate for management frames, broadcasts and multicast even higher, for cases when throughput is more import than long reach.

Thanks for considering,
Best Regards, Josef

@seppf seppf added the Type: Feature Request Feature request for IDF label Apr 4, 2020
@github-actions github-actions bot changed the title Wifi: Get rid of inefficient wifi packets Wifi: Get rid of inefficient wifi packets (IDFGH-3036) Apr 4, 2020
@Alvin1Zhang
Copy link
Collaborator

@seppf Thanks for proposing this feature, we will evaluate. Thanks.

@seppf
Copy link
Author

seppf commented Apr 7, 2020

Hi @Alvin1Zhang,
thanks for considering.
If I didn't make thgis clear enough, having 802.11g with ofdm-only would give the full performance with no 802.11b backward compatibility, but even using DSSS2M with short preamble for managment / broadcast / multicast would reduce air time considerably keeping the 802.11b compatibility.
Standard access points typically have two setting options: one bit flag for the ofdm-only mode and one parameter for the tx-managment rate to use. Even without these setting many APs use 2MBits by default. Unfortunately I have no idea how difficult this would be to implement on esp32.
Best Regards, Josef

@liuzfesp
Copy link
Contributor

liuzfesp commented Apr 7, 2020

Hi @seppf, thanks for your suggestions. We will consider to implement it. Hope we can implement it in June or July.

@seppf
Copy link
Author

seppf commented Apr 7, 2020

Hi,
thanks again for considering and for giving information about time scale.
I'm aware that those performance issues may not be in the scope of implementation with a system like esp32 at all.
Maybe you could help me with this question: is this forum also intended for HW related issues or bug reports or should this better be placed in the Espressif forum?
Best Regards, Josef

@liuzfesp
Copy link
Contributor

liuzfesp commented Apr 8, 2020

Hi @seppf, this forum is also intended for HW related issues. You can raise any HW related issues or concerns here.

@liuzfesp
Copy link
Contributor

liuzfesp commented Jul 8, 2020

Hi @seppf we already made the minimum rate of data frame to 5.5M by default.
For 11g only mode, I don't think we will support it in short term since it's a big change for us.

@HavingaThijs
Copy link

Using the ESP32-C6 in 802.11ax mode, I encountered that it is still using 802.11b packets for authentication. The esp_wifi_set_protocol function throws an error if WIFI_PROTOCOL_11B is not set in combination with WIFI_PROTOCOL_11AX. I was wondering whether this is only a limitation of the driver or if it is simply not possible to disable 802.11b for the Wi-Fi 6 chip.

Please let me know if I should open a new issue for this.

@HavingaThijs
Copy link

For anyone encountering this: I worked around the issue by disabling 802.11b rates with esp_wifi_config_11b_rate.

@xuxiao111
Copy link
Collaborator

Hi @HavingaThijs, the esp_wifi_set_protocol function throws an error, you can check this #702. The function of esp_wifi_config_11b_rate is used to enable/disable 802.11b rate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Request Feature request for IDF
Projects
None yet
Development

No branches or pull requests

6 participants