FR: Automatic Selection of the Best Route
What are you trying to do?
We hope that Tailscale can be configured to automatically select the best route.
How should we solve this?
When two nodes attempt to establish a connection, the default behavior always prioritizes establishing a P2P (peer-to-peer) connection. However, in certain situations, relaying through custom DERP (Designated Encrypted Relay for Packets) nodes can provide better network quality. Therefore, when establishing a connection, in addition to setting up a P2P link, we propose simultaneously establishing a connection through DERP relays. The system would then automatically select the best channel for data transmission.
What is the impact of not solving this?
This improvement would help enhance the performance of the VPN established by Tailscale.
Anything else?
Private DERP nodes can be configured to not accept relay requests from connections prioritizing P2P, to avoid consuming additional network bandwidth. For example, if Tailscale's official nodes do not wish to provide this service, they can be configured to not accept priority P2P relay connections.