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] 为啥没有基于udp的 P2P打洞 P2P怎么实现UDP的呢 #3954

Closed
11 tasks
bigbeer1 opened this issue Jan 25, 2024 · 7 comments
Closed
11 tasks

Comments

@bigbeer1
Copy link

Describe the feature request

[Feature Request] 为啥没有基于udp的 P2P打洞 P2P怎么实现UDP的呢

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
@xqzr
Copy link

xqzr commented Jan 28, 2024

看起来需要实现 “xudp”

@dimsgithubaccount
Copy link

p2p也简单,不过frp的目的就是转发,因为(公网服务器)转发延迟低,p2p延迟高,游戏都是p2p联机,总有卡比,所以才有frp这样的经典转发工具一席之地

@ShiinaRinne
Copy link

p2p也简单,不过frp的目的就是转发,因为(公网服务器)转发延迟低,p2p延迟高,游戏都是p2p联机,总有卡比,所以才有frp这样的经典转发工具一席之地

正相反,p2p直连的延迟才低吧,为什么经过服务器转发会更快呢,因为服务器线路好吗?
联机卡顿似乎是由于运营商不同,以及nat等级和丢包影响,但单论延迟我认为直连才是最低的

@ShiinaRinne
Copy link

[Feature Request] 为啥没有基于udp的 P2P打洞 P2P怎么实现UDP的呢

猜你在找 zerotier, wireguard, tailscale

@dimsgithubaccount
Copy link

p2p也简单,不过frp的目的就是转发,因为(公网服务器)转发延迟低,p2p延迟高,游戏都是p2p联机,总有卡比,所以才有frp这样的经典转发工具一席之地

正相反,p2p直连的延迟才低吧,为什么经过服务器转发会更快呢,因为服务器线路好吗?
联机卡顿似乎是由于运营商不同,以及nat等级和丢包影响,但单论延迟我认为直连才是最低的

是的,拥有独立ip的云服务器非常稳定。p2p对区域近的节点非常实用,但平均来说有一小部分的节点离master较远(或处在不同的运营商网络),p2p的问题是存在不稳定性。延迟最低只能适用于特定情况,不适用于普遍情况。

类似frp转发的特点就是稳定,但不一定低延迟,只是这个延迟大多数时候是可以接受的。一般用frp是为了把自己的主机暴露出去,同时也保障了普遍的低延迟。这没什么纠结的,应用程序可以根据两者延迟自行选择连接方式,只要有能力为用户提供云主机流量。

Copy link

Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 5, 2024
@xqzr
Copy link

xqzr commented Apr 13, 2024

#1729

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants