[GH-ISSUE #4304] XTCP 比 TCP 更耗资源吗? #3398

Closed
opened 2026-05-05 14:11:15 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @hzqim on GitHub (Jun 26, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4304

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

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @hzqim on GitHub (Jun 26, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4304 ### 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. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@wuai1024 commented on GitHub (Jun 27, 2024):

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

<!-- gh-comment-id:2192898385 --> @wuai1024 commented on GitHub (Jun 27, 2024): ipv6 我理解是可以直连的啊。目前我用了很多 `xtcp` 没有测试过性能问题。
Author
Owner

@xqzr commented on GitHub (Jun 28, 2024):

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

<!-- gh-comment-id:2196376291 --> @xqzr commented on GitHub (Jun 28, 2024): xtcp 访问端和客户端之间连接,使用 QUIC(基于 UDP)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#3398
No description provided.