Wifi rekeying disconnection (reason 16) issue on > r49361

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2  Next
Author Message
fizikz
DD-WRT User


Joined: 10 Nov 2016
Posts: 270

PostPosted: Wed Jun 21, 2023 1:57    Post subject: Wifi rekeying disconnection (reason 16) issue on > r49361 Reply with quote
Recent builds after r49361 until now have an issue with wifi clients briefly disconnecting and then reconnecting a few seconds later. Client device logs show deauthentication with Reason: 16=GROUP_KEY_HANDSHAKE_TIMEOUT.

While the disruption is usually brief and handled automatically, it can cause problems with latency-sensitive applications such as voip calls.

I haven't found a cause yet despite trying various settings changes. The issue is reported on at least Netgear R7000 and Asus RT-AC68U devices.

This thread is to hopefully keep investigative information on this issue in one place. I have described my observations and tests with my R7000 in this thread: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=334536

There is also an older thread describing the same problem on an RT-AC68U in this thread: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=332497

I have tried at least half a dozen recent builds as they came out and they all have the issue, but I can confirm, as discussed in the above thread, that the issue is not present on r49361.


Last edited by fizikz on Thu Jun 22, 2023 20:11; edited 1 time in total
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 13880
Location: Netherlands

PostPosted: Wed Jun 21, 2023 15:56    Post subject: Reply with quote
You can simply set the key renewal interval on the Security tab (I think 0 means no renewal).

I personally have no problems but it can/will be client dependant

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
fizikz
DD-WRT User


Joined: 10 Nov 2016
Posts: 270

PostPosted: Wed Jun 21, 2023 16:21    Post subject: Reply with quote
I already tried different key renewal intervals from the default 3600s, none of which stopped the disconnections. Disabling rekeying doesn't seem like a good idea for security, even if the risk is low. Better to solve the issue if possible.

None of the dozen or so clients here, of various brands including Intel, Realtek, LG, Samsung, Motorola, etc, achieves long connection uptimes with the affected builds, unlike with the unaffected builds, so I'm not sure it's fair to blame the clients.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 13880
Location: Netherlands

PostPosted: Wed Jun 21, 2023 16:32    Post subject: Reply with quote
My Samsung S20 and Laptop with AX200 do not exhibit any problems but maybe I am just lucky Smile

I have the key renewal set at default 3600, settings according to the BCM best practice, a sticky in this forum.

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 16919
Location: Texas, USA

PostPosted: Wed Jun 21, 2023 17:35    Post subject: Reply with quote
I'm not going to sift through all your posts to see if it's already been posted or answered, but showing us your wifi settings on your router as well as listing specifics about client hardware would help immensely. Just saying it's broken without further information gets very little response, historically. Thanks.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
RSS feed for DD-WRT releases (2025)
RSS feed for DD-WRT releases (2024)
RSS feed for DD-WRT releases (2023)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
fizikz
DD-WRT User


Joined: 10 Nov 2016
Posts: 270

PostPosted: Thu Jun 22, 2023 4:25    Post subject: Reply with quote
Wifi settings have been discussed ad nauseam, and the bottom line is that for the *same* settings, builds before 49361 do not have this issue, and builds after consistently do.

Various settings changes have also been attempted, such as different rekeying intervals, and it has not made a difference. The *only* factor that has made any difference so far is the dd-wrt build.

The wifi settings I had originally are shown in screenshots at this post: https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1285699#1285699

Wifi settings changes were made according to suggestions in this post, with no effect: https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1285706#1285706

If you want, I can dump all of `nvram show` as well.

As for clients, there's too many to list them all, but they are varied and none achieved long connection uptimes on builds >49361 as would typical on builds <=49361. If you want specifics, the client monitored most frequently, and which produced the deauthentication log entries I posted, has a Realtek RTL8822BE 802.11a/b/g/n/ac WiFi adapter running the rtw_8822be driver.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 16919
Location: Texas, USA

PostPosted: Thu Jun 22, 2023 11:57    Post subject: Reply with quote
ACK timing 1350, Auto TX power. 5GHz channel selected is DFS for Canada. Use lower or higher indoor range.

https://en.wikipedia.org/wiki/List_of_WLAN_channels

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
RSS feed for DD-WRT releases (2025)
RSS feed for DD-WRT releases (2024)
RSS feed for DD-WRT releases (2023)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
itwontbewe
DD-WRT User


Joined: 29 Sep 2020
Posts: 274

PostPosted: Thu Jun 22, 2023 17:19    Post subject: Reply with quote
5 GHz disconnects happen on my R7000P. i use recommend settings.

i tried various ack timings it didn't have an effect. i use 90 normally

if wifi will only travel roughly 45 meters indoors why use such large values?

* the screenshots in the best wifi settings sticky have a setting of almost 2 miles
fizikz
DD-WRT User


Joined: 10 Nov 2016
Posts: 270

PostPosted: Thu Jun 22, 2023 20:07    Post subject: Reply with quote
kernel-panic69 wrote:
ACK timing 1350, Auto TX power. 5GHz channel selected is DFS for Canada. Use lower or higher indoor range.

https://en.wikipedia.org/wiki/List_of_WLAN_channels


Changed ACK timing to 1350, Auto TX power, 5GHz channel 36 LL (broadcom setting for UU) which is the only "indoor" channel for 80MHz width according to the wikipedia chart. Rekeying interval is back to 3600 because other values didn't fix the problem and larger values just take longer to test.

Tested on the current latest release 53045 and got the reason 16 deauthentication already. Going back to 49361.

A point of emphasis: this issue is specifically reason 16 group key handshake timeout, and as far as I can tell always happens at about the time of rekeying. To be clear, these aren't random wifi dropouts, which if they were, could legitimately be due to settings and environmental factors.

itwontbewe wrote:
5 GHz disconnects happen on my R7000P. i use recommend settings.


Do the logs of the disconnected clients show reason 16 group key handshake timeout, or similar explanation? If so, that would be yet another user with another device reporting this issue.
itwontbewe
DD-WRT User


Joined: 29 Sep 2020
Posts: 274

PostPosted: Thu Jun 22, 2023 20:28    Post subject: Reply with quote
it doesn't show up in the log for me

but if i change re key to 14400 any device connected will drop every 4 hrs instead of hourly
fizikz
DD-WRT User


Joined: 10 Nov 2016
Posts: 270

PostPosted: Thu Jun 22, 2023 20:32    Post subject: Reply with quote
itwontbewe wrote:
it doesn't show up in the log for me

but if i change re key to 14400 any device connected will drop every 4 hrs instead of hourly


Sounds similar with the drops being at the rekeying time. By check the logs I mean check in the client device logs. The dd-wrt syslog does not show anything related for me either.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 16919
Location: Texas, USA

PostPosted: Thu Jun 22, 2023 21:08    Post subject: Reply with quote
Welp, while there are updates and other commits since this thread linked below, this is your starting point. Report one thing, break another.

[SOLVED @ r49392] Netgear R7000P 5 GHz VAP

Is it your wifi security settings, is it your basic or advanced settings, or is it a flub on pre-compiled binary object files, problematic client drivers, who knows. Pretty sure I have already reported this to the HMIC.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
RSS feed for DD-WRT releases (2025)
RSS feed for DD-WRT releases (2024)
RSS feed for DD-WRT releases (2023)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
fizikz
DD-WRT User


Joined: 10 Nov 2016
Posts: 270

PostPosted: Thu Jun 22, 2023 21:48    Post subject: Reply with quote
I'm not using a VAP.

Again, for the *exact same settings* and the *same variety of clients*, the reason 16 handshake issue can *consistently* be reproduced or vanished, depending entirely on whether dd-wrt build > r49361 is used.

I really don't see how it could possibly be a settings or client issue since those are common, unchanged factors both when the issue is present and not present.

That thread indicates 5GHz wifi-related (blob?) changes were made immediately after r49361 in r49392, so that seems a possible source of the issue. Whether the root is in the blobs or not, who can say.

I suppose the only thing users can do is test again when there are further wifi-related changes, hopefully some of which address this issue.
manoj
DD-WRT Novice


Joined: 17 Aug 2007
Posts: 6

PostPosted: Thu Jun 22, 2023 22:19    Post subject: Reply with quote
So, I don't want to discourage finding the cause of this issue; I was affected too when I finally upgraded past the old Kong releases, with no other wifi-specific config changes. Just a note for this though:

fizikz wrote:
Disabling rekeying doesn't seem like a good idea for security, even if the risk is low. Better to solve the issue if possible.


I am not a cryptography expert, but my belief right now is that if you're not using something like WPA Enterprise where different users have different keys, there's no real benefit to rotating the group key except when changing the WPA passphrase. So for now, I disabled rotation.

The purpose of group key rotation as I understand it is that if someone leaves the group, they won't have indefinite access to traffic. But if everyone's using a shared WPA2 passphrase, there's no point until the passphrase gets changed. I looked for issues where, say, CCMP might become riskier after too much traffic with the same key and didn't find any. But again, I'm not an expert, and it'd be preferable to fix the issue.
itwontbewe
DD-WRT User


Joined: 29 Sep 2020
Posts: 274

PostPosted: Fri Jun 23, 2023 16:35    Post subject: Reply with quote
does setting Web UI Access to Disable mitigate the risk?
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum