Very very slow...

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
shawn_d_wood
Posts: 9
Joined: Mon Dec 14, 2015 7:32 pm

Re: Very very slow...

Post by shawn_d_wood » Sun Jan 17, 2016 11:40 pm

I'm having a similar problem. I've been working on this for over a month, with both Windows equipment and now Linux boxes - with same poor performance problems (I get terrible download rates at the remote site).

Main Location:
VPNServer - Banana Pi with Single gigabit-NIC, connected to the WIFI router for the LAN at main location. VPNServer is configured with a single VPN hub, using DDNS, listening on Port 443. Network at main site is 192.168.0.0, 255.255.255.0. Static IP on the NIC (192.168.0.250) with gateway of 192.168.0.1 (router). Firewall opened to 443 for the static IP. Local bridge is to eth0. My ISP provides 100 mbps down and 25 mbps up - though I usually see better performance than this.

Remote Location (provides 2 networks, 1 that is 100% VPN to main location, other which bypasses VPN):
VPNBridge - Banana PI Router (on-board WIFI + 5 gigabit ethernet ports, using only 1 of the ethernet ports). Eth0 is DHCP connected to the original WIFI router for this offsite location. The network provided by the original WIFI router is 192.168.2.n, 255.255.255.0. The BPI router is given an IP of 192.168.2.14 and uses the original router as its gateway (192.168.2.1). The BPI wan0 is configured as manual with no assigned IP address (I also tried it with identical results giving wan0 a static address of 192.168.0.251). Wan0 is not bridged to anything. Eth0 is not bridged to anything. Softether is configured with a single local bridge to wan0. It has a single cascade connection to VPNServer (above). I've got compression and encryption turned off. I can ping devices both ways. But the download speed is simply awful. No NAT or DHCP is turned on. This ISP provides 8 mbps down and 1 mbps up.

From the VPNBridge location, I get 1 mbps up (uses full bandwidth), but a pitiful 300 or less kbps down (I did see it peak at 700 kbps at one moment, and occasionally steady at 400 kbps). All traffic is flowing, all broadcast messages coming through. Devices connecting to the VPN WIFI get assigned IP addresses from the main LAN correctly (192.168.0.n).

I also tested this with windows pc's acting as server and bridge - with identical results - on the VPN bridge side, terrible download rates, but uploads running at full bandwidth available.

I think the slowdown is on the VPNServer side - as the data entering eth0 on the BPI router (which is all coming from the VPN Server) is a fraction of what it is when I run the BPI router as nothing more than an access point. (as tests, running Netflix, when running through VPNBridge I would see typical 200 kbps on eth0 and netflix was running in very low resolution mode - but when VPNBridge disabled and it is just acting as an access point, I get full HD netflix and eth0 is pumping between 600 to 1.2 mbps, in fact I've run 3 simultaneous HD runs at once with no drop-outs while BPI router is acting as just an access point).

I've tried adjusting the number of tcp connections - between 8 and 32. I think I got slightly better performance at 24, but it's hard to say for sure.

I have a little more info. I used the windows network speed tool just within the Main location - windows computer acting as a test client. My speed is 300 kbps down, and 7 mbps up. Very similar to the speed results I'm getting at the remote site. My Bridge isn't active at all while testing this. So I am convinced something is wrong with the VPN server.

The document talks a lot about L2 loops - have I created one with the settings above???

Please help. I don't want to abandon this and have to learn OpenVPN.

thisjun
Posts: 2247
Joined: Mon Feb 24, 2014 11:03 am

Re: Very very slow...

Post by thisjun » Thu Jan 28, 2016 8:02 am

What network path (bandwidth and latency) between server and client do you use ?
Please test throughput between server and client without VPN.

shawn_d_wood
Posts: 9
Joined: Mon Dec 14, 2015 7:32 pm

Re: Very very slow...

Post by shawn_d_wood » Thu Jan 28, 2016 2:46 pm

I've tested this within a single network (to eliminate one of the ISP's as a potential problem).

In this test - I've got 100 mbps down and 25 mbps up from my ISP - verified countless times.

My softether server and bridge are both connected to the same router. The bridge is using the ddns name of the server, so the traffic between the two is flowing out into the internet.

My pings through the bridge to yahoo return slower than the same pings that aren't going through the bridge, but they aren't unreasonable (i.e. 20 millseconds slower when going through the bridge, with an occasional long ping).

A speed test (going through the bridge) has one time hit 1 mbps down, but it typically hovers around 300 kbps down. But it consistently runs at 5 mbps up. Doing the same speed test without going through the bridge (bypassing vpn) I get 25 mbps down and 18 mbps (or more) (I'm running this through WIFI, so I don't get the full 100 mbps down).

When I watch the softether server, while downloading it is pretty much idle. But when uploading, cpu usage jumps to 60%.

I can't figure this out. The path the packets are taking is essentially the same for upload and download (just going a different direction).

I've also trying reversing the roles of the 2 softether devices, with the same results.

thisjun
Posts: 2247
Joined: Mon Feb 24, 2014 11:03 am

Re: Very very slow...

Post by thisjun » Tue Feb 16, 2016 6:56 am

How to measure the network throughput?
What protocol do you use?

And, please show ping result.
Some protocol can't get good throughput in high latency network or high packet loss environment.

shawn_d_wood
Posts: 9
Joined: Mon Dec 14, 2015 7:32 pm

Re: Very very slow...

Post by shawn_d_wood » Tue Feb 16, 2016 1:29 pm

Running speed tests directly on the softether server, I see 200 mbps down and 25 mbps up - so it is smoking fast (using speedtest-cli).

Ping results to Yahoo return timings that are around 30 ms longer when going through the VPN (i.e. ping when not VPNed in coming back around 60ms, ping when VPNed come back around 90ms). I'll see an occasional long ping (300ms or so), but it happens very infrequently. I don't remember ever seeing a lost packet.

I've already spent 2 months messing with this.

So I'm giving OpenVPN a try - to see if it experiences the same lopsided speed issues (i.e. upload is 10 times faster than download). If it does, I can conclude that my ISP causing the problem.

I hope to have some conclusions next week - and I'll post whatever I find.

thisjun
Posts: 2247
Joined: Mon Feb 24, 2014 11:03 am

Re: Very very slow...

Post by thisjun » Fri Feb 26, 2016 7:14 am

I doubt there is packet loop.
Could you check number of packets too high?

Mada
Posts: 99
Joined: Sat Jun 20, 2015 9:40 am

Re: Very very slow...

Post by Mada » Sun Feb 28, 2016 8:02 am

I think different networks might handle softether traffic differently.

I had a lot of problems connecting over 3G connection. Got less than half the bandwidth (and it was eating up my quota). Never did solve that even with lots of help from the forum.

I am now on ADSL and softether works perfectly! Almost 100 % of the bandwidth available. Softether compression works also works well with this setup.

Mada
Posts: 99
Joined: Sat Jun 20, 2015 9:40 am

Re: Very very slow...

Post by Mada » Sun Feb 28, 2016 8:55 am

I can also add that on a 1 GBps link I get 900/800 MB without softether and 640/640 MB with softether. This is on a i3-4160T with 1600 MHz memory over W10.

shawn_d_wood
Posts: 9
Joined: Mon Dec 14, 2015 7:32 pm

Re: Very very slow...

Post by shawn_d_wood » Sun Mar 13, 2016 8:25 pm

Well I've finally had time to properly configure and test openvpn versus softether, and it's bad news for softether.

On the same two unix devices (one acting as server, one as the client/bridge) in the same exact configuration:

VPNServer - Download - maxed out at 1 megabits per second a single time for just a moment, usually ran at 300 kbps or less. Upload was always excellent at 10 to 13 mbps.

OpenVPN - Download - maxed out at 20 mbps, usually ran at 10 mbps or better. Upload at 9 to 14 mbps.

So, even though the upload rate is the same, the download rate is easily 20 to 30 times faster with OpenVPN!

This doesn't seem typical, as I've seen examples by others that softether outperforms openvpn. But something about my configuration / ISP / network just seems to turn softether download into a zombie.

wvalcke
Posts: 3
Joined: Tue Apr 12, 2016 12:40 pm

Re: Very very slow...

Post by wvalcke » Tue Apr 12, 2016 12:58 pm

The only thing i can confirm is that indeed my tests between 2 machines
one machine is server, the other is client
A VPN connection over the internet :

Transfer speed using SoftEther VPN : 30 KB/s
Using the exact same machines and same internet connection, but OpenVpn native server and client
Transfer speed : 250KB/s

That's almost 10 times faster for OpenVPN.
Although the doc states that SoftEther is faster than OpenVPN?

Strange....

vwc
Posts: 3
Joined: Fri Apr 15, 2016 12:29 am

Re: Very very slow...

Post by vwc » Fri Apr 15, 2016 4:29 am

Do any of the programmers look at this site? I've seen multiple posts about extremely poor performance, almost unusable performance.

Are we talking to the wind?

thisjun
Posts: 2247
Joined: Mon Feb 24, 2014 11:03 am

Re: Very very slow...

Post by thisjun » Thu Jun 29, 2017 8:03 am

I think the cause of the problem may be in device driver.
Could you share the information about the device you have created localbridge?

jensgw
Posts: 2
Joined: Thu Mar 31, 2016 12:37 pm

Re: Very very slow...

Post by jensgw » Mon May 28, 2018 5:53 pm

Hi there,

i can confirm the poor upload speed. We have a 100mbit/100mbit 20ms connection to the internet.
Running the softether speedtest over the vpn gives
From Client to the vpn Server - 8Mbps (
and
From vpn Server to Client - ~300Kpbs

I also tested the variant with a tap adapter instead of the local bridge. But the results are nearly the same.

Softether is an amazing piece of software, but this bug makes it nearly unusable.
Please fix this. If you need more information I am happy to comply.

Cheers Jens

thisjun
Posts: 2247
Joined: Mon Feb 24, 2014 11:03 am

Re: Very very slow...

Post by thisjun » Tue Jun 12, 2018 8:19 am

>HamBam and jensgw
Please try to disable UDP acceleration and NAT-T.

Dwebtron
Posts: 3
Joined: Sun Sep 30, 2018 1:42 pm

Re: Very very slow...

Post by Dwebtron » Sun Sep 30, 2018 1:43 pm

thisjun wrote:
Tue Jun 12, 2018 8:19 am
>HamBam and jensgw
Please try to disable UDP acceleration and NAT-T.
This absolutely fixed my speed problems, but only when using the SoftEther client. How can I also fix this for L2TP /IpSec protocol?

thisjun
Posts: 2247
Joined: Mon Feb 24, 2014 11:03 am

Re: Very very slow...

Post by thisjun » Wed Oct 17, 2018 8:14 am

TCP isn't used for L2TP/IPSec.

Post Reply