alireza0 说明 Shadowsocks 的 UoT 与多路复用之间的取舍
在 S-UI 多用户经 WARP 连接不稳的讨论中,alireza0 解释,UDP 经原生 UDP 传输可能被识别,mux 是经 TCP 携带 UDP 的一种方式,但一条 TCP 卡住会阻塞其全部流。他建议先关闭 mux,用 Shadowsocks 的 udp_over_tcp;sing-box 入站自动接受 UoT,且 UoT 与 mux 不能同时使用。若保留 mux,可把流分散到更多连接,例如 max_streams 设为 4 或 min_streams 设为 2;仍需用关闭 mux 的对照确定原因。
作者原文@alireza0That recommendation is about UDP: if UDP goes over plain UDP, it can be detected. Multiplex is one way to carry it over TCP, but not the only one. The trade-off is that one stalled TCP connection freezes every stream on it, and that's what your
process multiplex streamerrors show.You can carry UDP over TCP without mux:
- Turn off multiplex on the client and enable
udp_over_tcpon the Shadowsocks outbound. The sing-box inbound accepts UoT automatically, so nothing changes on the server. (UoT and multiplex can't be used together.)- If you'd rather keep mux, spread the streams over more connections so one bad connection doesn't stall everything. For example, set
max_streamsto 4 (ormin_streamsto 2) instead of the default single connection.Either way, please test once with mux off. If the stalls go away, mux on the lossy link was the cause. If they don't, the main factor is still all users going through WARP, as explained above.