summaryrefslogtreecommitdiffhomepage
path: root/control/controlknobs/controlknobs.go
diff options
context:
space:
mode:
authorJames Tucker <james@tailscale.com>2023-08-21 17:09:35 -0700
committerJames Tucker <jftucker@gmail.com>2023-09-11 15:49:16 -0700
commitffd89ac66ba5e9fb69ddbe1ca6609f5deb4cfe9d (patch)
treeca1e9e41ff6afeb1b39ac61c07cd80beba70adf5 /control/controlknobs/controlknobs.go
parent8b363865305cbf00e81c6c03ea1fe08c4f16e5ef (diff)
downloadtailscale-ffd89ac66ba5e9fb69ddbe1ca6609f5deb4cfe9d.tar.xz
tailscale-ffd89ac66ba5e9fb69ddbe1ca6609f5deb4cfe9d.zip
wgengine/magicsock: improve endpoint selection for WireGuard peers with rx time
If we don't have the ICMP hint available, such as on Android, we can use the signal of rx traffic to bias toward a particular endpoint. We don't want to stick to a particular endpoint for a very long time without any signals, so the sticky time is reduced to 1 second, which is large enough to avoid excessive packet reordering in the common case, but should be small enough that either rx provides a strong signal, or we rotate in a user-interactive schedule to another endpoint, improving the feel of failover to other endpoints. Updates #8999 Cherry picked from 1a8b7af39036443cc328513746324715108a1292 Co-authored-by: Charlotte Brandhorst-Satzkorn <charlotte@tailscale.com> Signed-off-by: James Tucker <james@tailscale.com> Signed-off-by: Charlotte Brandhorst-Satzkorn <charlotte@tailscale.com>
Diffstat (limited to 'control/controlknobs/controlknobs.go')
0 files changed, 0 insertions, 0 deletions