V2rayng: 网速显示不一致

Created on 27 Sep 2020  ·  9Comments  ·  Source: 2dust/v2rayNG

在提出问题前请先自行排除服务器端问题,同时也请通过搜索确认是否有人提出过相同问题。

预期行为

使用软件的时候网速显示一致

实际行为

任务栏的网速与梯子的网速不一致,大约是实际网速的三倍左右,不知道是MIUI的网速显示有问题,还是怎么回事
XM7 {TVF UZFC` DZVKS5}Y

复现方法

1.
2.
3.

日志信息


通过 adb logcat -s com.v2ray.ang GoLog V2rayConfigUtilGoLog Main 获取日志。请自行删减日志中可能出现的敏感信息。

如果问题可重现,建议先执行adb logcat -c清空系统日志再执行上述命令,再操作重现问题。


环境信息

MIUI12,Android9.0

额外信息(可选)

后台并无其他太过影响这个结果的程序正在运行

Most helpful comment

这好像是miui12的bug,我提交过给miui了,以前miui11正常

All 9 comments

这好像是miui12的bug,我提交过给miui了,以前miui11正常

I'm currently on Havoc 3.8 GSI and it exhibits similar behavior.

It seems the method v2ray uses to count the data rate is different from the one used by the system, as this difference in data rate has been observed since day one (regardless of the ROM or GSI I'm using). However, it appears the rate displayed by v2rayNG is the correct one.

我来和你解释一下吧,v2ray会把数据经过加密然后传输,加密过的数据往往比加密前的偏大。
还有不止miui有这个“问题”,vivo手机也是一样的。
数据走vpn时,尚不知系统如何定义网速,总是比实际网速大的。

我来和你解释一下吧,v2ray会把数据经过加密然后传输,加密过的数据经常比加密前的偏大。
还有不止miui有这个“问题”,vivo手机也是一样的。
数据走vpn时,尚不知系统如何定义网速,总是比实际网速大的。

不是这回事,实际上在之前的版本中是正常的,目前的版本显示的网络带宽基本是实际带宽的三倍,而且超过我在运营商办理的实际带宽,应该是软件在内部又从网络统计那块走了几次,这个确实是问题,你可以参考Iss4的回复,这个问题在更早之前并不存在。

Edited the previous comment as I might have not explained it accurately back then.

This difference in data has always been there regardless of ROM or GSI. I was surprised to see some stock ROMs were able to report accurate data rate even behind an active VPN.

Actually v2ray counts the actual (unencrypted) data rate which is the correct value. You can compare this value with apps that are receiving the data.

The data rate reported by the system is wrong. One needs to check the amount of data transmitted at server side to see if the difference is indeed the encryption overhead, or that Android is simply not able to report an accurate data rate when VPN is involved (that it's counting something that doesn't need to be counted).

Edited the previous comment as I might have not explained it accurately back then.

This difference in data has always been there regardless of ROM or GSI. I was surprised to see some stock ROMs were able to report accurate data rate even behind an active VPN.

Actually v2ray counts the actual (unencrypted) data rate which is the correct value. You can compare this value with apps that are receiving the data.

The data rate reported by the system is wrong. One needs to check the amount of data transmitted at server side to see if the difference is indeed the encryption overhead, or that Android is simply not able to report an accurate data rate when VPN is involved (that it's counting something that doesn't need to be counted).

但更奇怪的问题是,这个显示的带宽超过了我的实际带宽,我目前用的是websocket那一套,数据传输量会大一些,但是大了三倍,这确实有点奇怪。
另外,我是直接从play store上面那个版本升级到目前的版本,在play上面的那个版本不存在这个问题,显示的带宽大小符合预期。

https://www.xiaomi.cn/post/21678216
在miui上已经反映过了的,等待miui12官方更新修复就行了
MIUI12.0.8开始出现的问题,MIUI12.0.2没有这个现象

可以很明显的看到是系统BUG
image

目前已有小伙伴反馈了该问题,也进行了提案。这边帮您归纳一下。可以留意后续优化的版本哈~

官方人员回复,说明了已经确认了miui12有这个问题,已经提案归纳了,等待后续miui12更新就行了

我用华为的时候也是这种情况,系统统计的网速总是比v2rayNG显示网速大2-3倍

Was this page helpful?
0 / 5 - 0 ratings