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/net
James Tucker e1e22785b4 net/netcheck: ensure prior preferred DERP is always in netchecks
In an environment with unstable latency, such as upstream bufferbloat,
there are cases where a full netcheck could drop the prior preferred
DERP (likely home DERP) from future netcheck probe plans. This will then
likely result in a home DERP having a missing sample on the next
incremental netcheck, ultimately resulting in a home DERP move.

This change does not fix our overall response to highly unstable
latency, but it is an incremental improvement to prevent single spurious
samples during a full netcheck from alone triggering a flapping
condition, as now the prior changes to include historical latency will
still provide the desired resistance, and the home DERP should not move
unless latency is consistently worse over a 5 minute period.

Note that there is a nomenclature and semantics issue remaining in the
difference between a report preferred DERP and a home DERP. A report
preferred DERP is aspirational, it is what will be picked as a home DERP
if a home DERP connection needs to be established. A nodes home DERP may
be different than a recent preferred DERP, in which case a lot of
netcheck logic is fallible. In future enhancements much of the DERP move
logic should move to consider the home DERP, rather than recent report
preferred DERP.

Updates #8603
Updates #13969

Signed-off-by: James Tucker <james@tailscale.com>
1 year ago
..
art all: fix new lint warnings from bumping staticcheck 1 year ago
captivedetection net/captivedetection: set Timeout on net.Dialer (#13613) 1 year ago
connstats {net/connstats,wgengine/magicsock}: fix packet counting in connstats 1 year ago
dns net/dns: fix blank lines being added to resolv.conf on OpenBSD (#13928) 1 year ago
dnscache net/dnscache: don't fall back to an IPv6 dial if we don't have IPv6 1 year ago
dnsfallback {control,net}: close idle connections of custom transports 1 year ago
flowtrack net/flowtrack: fix, test String method 1 year ago
ipset go.mod: bump bart 1 year ago
ktimeout net/ktimeout: add a package to set TCP user timeout 2 years ago
memnet net/memnet: export the network name (#9111) 2 years ago
netaddr all: update copyright and license headers 3 years ago
netcheck net/netcheck: ensure prior preferred DERP is always in netchecks 1 year ago
neterror net/neterror, wgengine/magicsock: use UDP GSO and GRO on Linux (#7791) 3 years ago
netkernelconf ipn/{ipnlocal,localapi},net/netkernelconf,client/tailscale,cmd/containerboot: optionally enable UDP GRO forwarding for containers (#12410) 2 years ago
netknob all: update copyright and license headers 3 years ago
netmon all: fix new lint warnings from bumping staticcheck 1 year ago
netns net/netns: remove some logspam by avoiding logging parse errors due to unspecified addresses 1 year ago
netstat all: add test for package comments, fix, add comments as needed 1 year ago
netutil {ipn,net,tsnet}: use tsaddr helpers 1 year ago
packet wgengine/magicsock: actually use AF_PACKET socket for raw disco 1 year ago
ping net/ping: fix ICMP echo code field to 0 2 years ago
portmapper net/portmapper: don't treat 0.0.0.0 as a valid IP 1 year ago
proxymux all: cleanup unused code, part 1 (#10661) 2 years ago
routetable net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 2 years ago
socks5 net/socks5: support UDP 1 year ago
sockstats net/sockstats: quiet some log spam in release builds 1 year ago
speedtest all: update copyright and license headers 3 years ago
stun ci: enable checklocks workflow for specific packages 1 year ago
stunserver all: use Go 1.22 range-over-int 2 years ago
tcpinfo all: use Go 1.22 range-over-int 2 years ago
tlsdial net/tlsdial: call out firewalls blocking Tailscale in health warnings (#13840) 1 year ago
tsaddr net/tsaddr: add WithoutExitRoutes and IsExitRoute 1 year ago
tsdial {control,net}: close idle connections of custom transports 1 year ago
tshttpproxy all: use Go 1.22 range-over-int 2 years ago
tstun net/tstun: use /10 as subnet for TAP mode; read IP from netmap 1 year ago
wsconn go.{mod,sum}: migrate from nhooyr.io/websocket to github.com/coder/websocket 1 year ago