You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/wgengine
James Tucker ffd89ac66b 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>
9 months ago
..
bench all: move network monitoring from wgengine/monitor to net/netmon 1 year ago
capture various: add golangci-lint, fix issues (#7905) 1 year ago
filter tailcfg,ipn/ipnlocal,wgengine: add values to PeerCapabilities 10 months ago
magicsock wgengine/magicsock: improve endpoint selection for WireGuard peers with rx time 9 months ago
netlog wgengine/netlog: fix nil pointer dereference in logtail (#8598) 11 months ago
netstack ipn/ipnlocal,wgengine/netstack: move LocalBackend specifc serving logic to LocalBackend 12 months ago
router 1.48 cherry-picks for nftables (#8989) 9 months ago
wgcfg tailcfg,etc: remove unused tailcfg.Node.KeepAlive field 11 months ago
wgint all: update copyright and license headers 1 year ago
wglog all: update copyright and license headers 1 year ago
winnet all: update copyright and license headers 1 year ago
mem_ios.go all: update copyright and license headers 1 year ago
pendopen.go wgengine: adjust debug logging for WireGuard-only peers 10 months ago
userspace.go wgengine,ipn,cmd/tailscale: add size option to ping (#8739) 10 months ago
userspace_ext_test.go tsd: add package with System type to unify subsystem init, discovery 1 year ago
userspace_test.go all: update copyright and license headers 1 year ago
watchdog.go wgengine,ipn,cmd/tailscale: add size option to ping (#8739) 10 months ago
watchdog_js.go all: update copyright and license headers 1 year ago
watchdog_test.go all: update copyright and license headers 1 year ago
wgengine.go wgengine,ipn,cmd/tailscale: add size option to ping (#8739) 10 months ago