XTLS / Xray-core

Xray, Penetrates Everything. Also the best v2ray-core, with XTLS support. Fully compatible configuration.
https://t.me/projectXray
Mozilla Public License 2.0
25.48k stars 3.94k forks source link

reality协议可以增加多路复用的功能么 #1969

Closed z836454898 closed 1 year ago

z836454898 commented 1 year ago

即使开了v2ray自带的多路复用的选项,短时间内建立多条连接还是得重新进行tls握手,消耗了3倍的rtt,导致网络延迟飙高,特别是对于延迟一百多 两百的美国服务器 image 我的reality配置:

{
      "listen": null,
      "port": 10001,
      "protocol": "vless",
      "settings": {
        "clients": [
          {
            "id": "b6d38ef8-a9de-4536-f2bb-d0635a89de57",
            "email": "afNe.love@xray.com",
            "flow": "xtls-rprx-vision"
          }
        ],
        "decryption": "none",
        "fallbacks": []
      },
      "streamSettings": {
        "network": "tcp",
        "security": "reality",
        "realitySettings": {
          "show": false,
          "dest": "www.microsoft.com:443",
          "xver": 0,
          "serverNames": [
            "www.microsoft.com",
            "wwwqa.microsoft.com",
            "staticview.microsoft.com",
            "privacy.microsoft.com"
          ],
          "privateKey": "MCCwTFk3CxRaP4H6wrPI4tUQXBvq5ba_dyVBpLG06FI",
          "publicKey": "rwpbqas_HY8knlW0fFSIeUrjgBXHBzSNboflsLD8elA",
          "minClient": "",
          "maxClient": "",
          "maxTimediff": 0,
          "shortIds": [
            "",
            "ee",
            "e3e5",
            "fef182",
            "697cbd78"
          ]
        },
        "tcpSettings": {
          "header": {
            "type": "none"
          },
          "acceptProxyProtocol": false
        }
      },
      "tag": "inbound-10001",
      "sniffing": {
        "enabled": true,
        "destOverride": [
          "http",
          "tls"
        ]
      }
    }

这是vmess tcp协议开了多路复用的测试结果: image

RPRX commented 1 year ago

XTLS Vision 的 0rtt 在路上了,现在你要 0rtt 可以用 H2 / gRPC

5e2t commented 1 year ago

@RPRX 好耶

RPRX commented 1 year ago

即使开了v2ray自带的多路复用的选项

可能你指的是在 v2rayN 里开 Mux,它实际上不会对 XTLS Vision 起作用

z836454898 commented 1 year ago

嗯嗯,作者辛苦了