fatedier / frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
Apache License 2.0
82.23k stars 12.91k forks source link

XTCP 比 TCP 更耗资源吗? #4304

Closed hzqim closed 1 week ago

hzqim commented 2 weeks ago

Bug Description

使用DOCKER部署,在相同的机器,相同的时间段走 IPV6, 看同一个在线视频,XTCP没有添加压缩选项,TCP的速度几乎是XTCP的两倍,在后台观察到TCP模式下 CPU 使用率在 13% 左右浮动,而XTCP的CPU使用率大约是 35%.

frpc Version

0.58.1

frps Version

0.58.1

System Architecture

SERVER/Debian/amd64, CLIENT/OpenWRT/arm64

Configurations

这是 XTCP 协议固有的缺点吗?比如 NAT 开销,但 IPV6 应该不用 NAT?

Logs

No response

Steps to reproduce

  1. ...

Affected area

wuai1024 commented 2 weeks ago

ipv6 我理解是可以直连的啊。目前我用了很多 xtcp 没有测试过性能问题。

xqzr commented 1 week ago

xtcp 访问端和客户端之间连接,使用 QUIC(基于 UDP)