Jigsaw-Code / outline-apps

Outline Client and Manager, developed by Jigsaw. Outline Manager makes it easy to create your own VPN server. Outline Client lets you share access to your VPN with anyone in your network, giving them access to the free and open internet.
https://getoutline.org/
Apache License 2.0
8.43k stars 1.37k forks source link

YouTube speed is slow, but speedtest is fast #1657

Closed do02fw closed 1 year ago

do02fw commented 1 year ago

Describe the bug A clear and concise description of what the bug is. When I watch YouTube it's slow, but speedtest is fast, and when I download files it's fast, if I change the outline client to v2rayNG client and use outline's server, watching YouTube becomes fast, I think there's something wrong with outline's client.

To Reproduce How can the broken behavior be reproduced? Use outline client on Android and connect to the server, open speedtest to test the speed, remember the result of the test, open YouTube to watch 4k video and check the network speed, you will find that the speed of watching the video is very slow, when you download v2rayNG client and connect to outline server to watch YouTube 4k video, you will find the speed is very fast. Expected behavior What behavior did you expect? Fix the problem of slow speed of watching video. Screenshots If applicable, add screenshots to help explain your problem. Screenshot_20230705_123250 Screenshot_20230705_123430 Screenshot_20230705_123455_Outline Screenshot_20230705_123513

Client System (please complete the following information):

Submit Feedback Please submit feedback through the app and label it with this issue number.

Additional context Add any other context about the problem here.

maddyhof commented 1 year ago

Thanks for reaching out, and sorry to hear about this issue. What version of the Outline Client are you using? And which cloud provider is your Outline server using?

do02fw commented 1 year ago

I'm using the 1.11.0 client, my cloud provider is VMISS.COM, and I don't have this problem with openvpn and wireguard, but outline has this problem, including when I use v2ray.

maddyhof commented 1 year ago

Thanks for that information. Does this happen for any other video streaming sites, or only YouTube?

do02fw commented 1 year ago

Thanks for that information. Does this happen for any other video streaming sites, or only YouTube?

I have tested other streaming sites and I only use YouTube.

maddyhof commented 1 year ago

To confirm, when you tested the other streaming sites, did they perform well?

do02fw commented 1 year ago

要确认,当你测试其他流媒体站点时,它们表现好吗?

我通过apkpure.com下载文件的时候速度很快,目前没有别的流媒体网站可以测试

jyyi1 commented 1 year ago

Thanks @do02fw for the confirmation, this issue might be related to UDP traffic, because YouTube is using QUIC protocol which is based on UDP. Would you please try disabling UDP traffic in your server (VMISS)? Then YouTube will fallback to the TCP stream.

Also wanna know more things about how did you use Outline Keys with v2ray or wireguard? Because I don't think we support their key format.

do02fw commented 1 year ago

I am using openvpn and I found that YouTube is using HTTP3 protocol, if I disable UDP it will slow down, so I can't disable it, can you support UDP traffic?

jyyi1 commented 1 year ago

Actually we support UDP traffic (if you use Outline Manager to setup the Outline server). One more question: how do you connect openvpn to outline server? Did you decode the Outline Key by yourself?

I asked this because OpenVPN might use a different protocol, network configuration or decoding algorithms which might cause the performance difference, but we need to further investigate it if that is the case.

do02fw commented 1 year ago

No, I'm using the openvpn client, I opened the developer mode of my browser and saw that YouTube uses the http3 protocol, but it's slow if you use outline.

do02fw commented 1 year ago

Can outline use the UDP protocol throughout to transfer data? It would be faster.

jyyi1 commented 1 year ago

No, I'm using the openvpn client, I opened the developer mode of my browser and saw that YouTube uses the http3 protocol, but it's slow if you use outline.

But OpenVPN should not be able to connect to Outline Server directly. So you are not using the same server, right?

Can outline use the UDP protocol throughout to transfer data? It would be faster.

Yes. Outline doesn't have any restrictions. But your cloud provider may have some.