Technology1 min read

Netmap caching: keeping Tailscale up on iffy connections

By · Published by Everything Blog

In short

Tailscale has released a client-side capability called netmap caching to write a machine's network map straight to local disk. Previously, cryptographic keys, endpoint records, and relay server details were held strictly in system memory and disappeared upon a system restart. Storing this routing information persistently allows devices to start up faster and reach network nodes without waiting on central servers. The capability is currently controlled through an optional configuration flag or tailnet policy files.

Key points

  • Writing coordination data directly to disk ensures devices maintain connectivity despite…: Writing coordination data directly to disk ensures devices maintain connectivity despite unstable internet connections.
  • Administrators can currently test and manage the optional feature by using a flag or upda…: Administrators can currently test and manage the optional feature by using a flag or updating tailnet policy files.
  • Tailscale plans to consider turning netmap caching on by default if upcoming testing prov…: Tailscale plans to consider turning netmap caching on by default if upcoming testing proves successful.

Sources checked by our analysis pipeline: 1

Part of what makes Tailscale so nice to use is that it just works. You start your computer, you connect to your resource, and then you are there! The only thing you really need is a working internet connection. But it’s usually not such a binary thing, having a “connection,” so much as being on a deliberate, intermittent, and accidental scale of being “connected.”

Ideally, Tailscale can work in as many of these “connected” scenarios as possible. But what does that even mean, and how can we enable Tailscale to work better in all of them?

Introducing netmap caching

Before the deeper explanations of what we’re doing, here’s the short version of what’s happening right now: We are introducing netmap caching, a new feature in the client that saves a copy of your tailnet’s network map (netmap) to disk.

Netmap caching does two things:

- Starts Tailscale faster and reach nodes in your Tailscale network (tailnet) faster, especially on non-ideal connections.

- Connects to some or all of the nodes in your tailnet at startup, even when the coordination server…

Technology