Connection Migration Mechanism
In classical protocols, a session is strictly tied to an IP address and port combination. The QUIC standard, which TUIC is built upon, identifies the client by a unique random Connection ID. When a smartphone loses Wi-Fi and connects to LTE, the server recognizes this identifier and continues data transmission without pauses or reconnects.
Practical Setup for Seamless Switching
- Use clients with Sing-box core support (e.g., Nekobox or Clash Meta).
- Enable the BBR congestion control algorithm to smooth out ping spikes on cell towers.
- Configure the UDP Relay parameter to prevent dropped voice calls in messengers.
- Specify backup ports to protect against selective ISP blocking of UDP traffic.