Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request]: 支持MPTCP #4919

Open
1 task done
tuki-code opened this issue Apr 3, 2024 · 2 comments
Open
1 task done

[Feature request]: 支持MPTCP #4919

tuki-code opened this issue Apr 3, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@tuki-code
Copy link

相关问题

sing-box 和 Xray-core 分别在1.4.0和1.8.6版本后支持了MultiPath TCP,希望可以加入配置

描述你希望的解决方案

在服务器配置页面加入是否启用MultiPath TCP的选项

描述你所考虑的替代方案

也可以干脆默认启用(该功能需要在服务器端也启用,在服务器端没有配置的话这一默认配置不会有任何正面或负面的效果)

我确认已查询历史issues

@tuki-code tuki-code added the enhancement New feature or request label Apr 3, 2024
@tuki-code
Copy link
Author

sing-box 内核只需在配置文件的拨号字段加入 "tcp_multi_path": true,见 https://sing-box.sagernet.org/configuration/shared/dial/

Xray-core只需在配置文件的出站的 "sockopt" 字段加入 "tcpNoDelay": true"tcpMptcp": true,见 XTLS/Xray-core#2520

工作原理说明:

  1. MPTCP在发送端和接收端建立MPTCP连接,协商使用MPTCP。
  2. MPTCP在发送端和接收端分别建立多个TCP子连接(子流)。
  3. 发送端可以将数据分片发送到不同的TCP子流。
  4. 接收端会将从不同子流接收的数据汇聚合并,交付给应用层。
  5. 子流之间可以传输不同的数据分片,以达到均衡负载和提高网络利用率的目的。
  6. 如果某个子连接断开,MPTCP可以快速切换traffic到其他子连接,提高可靠性。

@2dust
Copy link
Owner

2dust commented Apr 4, 2024

windows等等再加入吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants