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

这发包是不是不太正常 #23

Closed
k79e opened this issue May 31, 2016 · 6 comments
Closed

这发包是不是不太正常 #23

k79e opened this issue May 31, 2016 · 6 comments

Comments

@k79e
Copy link

k79e commented May 31, 2016

我客户端才600k速度
然后服务端发送是4000多KB的速度...
最可怕的是客户端速度跑到1MB左右
服务端差不多用了10-12MB左右速度.....

@xtaci
Copy link
Owner

xtaci commented May 31, 2016

正常啊,上下行本来就不对称, sndwnd可以调大试试

@k79e
Copy link
Author

k79e commented May 31, 2016

@xtaci 你意思说我如果用他看视频 我客户机用了400k网速
服务器就需要用400k*10=4000k左右网速么?! 这个利用率这么低哇!!

@xtaci
Copy link
Owner

xtaci commented May 31, 2016

这个和参数有关系, 首先必须了解一点,实时性和带宽利用率是不可调和的。
降低实时性,增大有效载荷比的方法:

  1. 关闭acknodelay
  2. 两端关闭 前向纠错 -fec 0
  3. 提高mtu -mtu 1400
    @kxmp

@k79e
Copy link
Author

k79e commented May 31, 2016

改了参数也都差不多.....
看起来只能给游戏用...

@xtaci xtaci closed this as completed May 31, 2016
@k79e
Copy link
Author

k79e commented Dec 11, 2016

今天测了下新版 发现改善很大
默认参数 效率比以前高多了. 随便测了下发现流量占用是1.6
抗丢包能力也秒杀以前了.

@k79e
Copy link
Author

k79e commented May 12, 2019

新版测了测 发现越来越稳定 占用也很好.
当初提到的那个发包 应该是服务器直接把数据扔给buffer了 这个也算的.
实际流量根本没那么大.

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

No branches or pull requests

2 participants