Page 1 of 1

Connection balancing never really happens

Posted: Mon Oct 27, 2014 3:26 pm
by PtDragon
I set 32 as number of connections in client [attachment=0]softether.png[/attachment]
I have 4x100mbit on client side and gigabit on server side.
But balancing never really happens: only one of 32 connection at a time gets/sends data(i see it on interface statistics on my router).
Yes, they switch over several seconds but not balancing.

what happens(data is "x" and idle is "-" ):
con a xxx------
con b ---xxx---
con c ------xxx

what will be great to see(real balancing):
con a xxxxxxxxx
con b xxxxxxxxx
con c xxxxxxxxx

Re: Connection balancing never really happens

Posted: Thu Nov 06, 2014 6:50 am
by thisjun
It switches when the queue is filled.

Re: Connection balancing never really happens

Posted: Thu Nov 06, 2014 7:34 am
by PtDragon
thisjun wrote:
> It switches when the queue is filled.
It has queue of several megabytes long?

Re: Connection balancing never really happens

Posted: Thu Nov 06, 2014 12:06 pm
by PtDragon
Attaching my config(all keys replaced by "hidden").
VPN is really slow (around 80mbit out of 400)

Re: Connection balancing never really happens

Posted: Tue Nov 18, 2014 8:21 am
by thisjun
> It has queue of several megabytes long?
TCP window size depends on OS setting.

> VPN is really slow (around 80mbit out of 400)
TAP device can be slow.

Re: Connection balancing never really happens

Posted: Tue Nov 18, 2014 8:58 am
by PtDragon
Thanks for answers.
Is there a way to reach gigabit speed for SoftEther VPN?
RTT is around 85ms.

Re: Connection balancing never really happens

Posted: Tue Nov 25, 2014 7:42 am
by thisjun
It depends on application.
What application(protocol) did you use?

Re: Connection balancing never really happens

Posted: Tue Nov 25, 2014 11:06 am
by PtDragon
[quote]What application(protocol) did you use?[/quote]
For VPN - SoftEther
For everything inside VPN - mostly http/https but can be TCP and UDP too.
What will be really great - make tcp connection inside VPN split and go via different physical uplinks like different tcp connections.

Just in case i will illustrate a bit with examples.
Multipart downloads(several tcp connections to download a file via http faster:
File: 123456789
2- part download(nearly twice faster if 2 uplinks)
connection1: 12345
connection2: 6789
(in this example 1234 & 6789 download in parallel)
4- part download(nearly 4 times faster for 4 uplinks)
connection1:12
connection2:34
connection3:56
connection4:789
How it can work in VPN:
packets in VPN: 1234567890
and make them all go to different connections(if there are 10 connections every will have 1 packet and work in parallel).
so it will be like round-robin link aggregation.

Re: Connection balancing never really happens

Posted: Thu Dec 11, 2014 7:15 am
by thisjun
In your first post, your wrote that.
>what happens(data is "x" and idle is "-" ):
>con a xxx------
>con b ---xxx---
>con c ------xxx

Your assumption is right.

Do you think why multipart downloads faster than single download?

These should be same in ideal network.

Re: Connection balancing never really happens

Posted: Thu Dec 11, 2014 10:07 am
by PtDragon
thisjun wrote:
> In your first post, your wrote that.
> >what happens(data is "x" and idle is "-" ):
> >con a xxx------
> >con b ---xxx---
> >con c ------xxx
>
> Your assumption is right.
>
> Do you think why multipart downloads faster than single download?
>
> These should be same in ideal network.
Multipart download gives
con a xxxxxxxxx
con b xxxxxxxxx
con c xxxxxxxxx
In single part download i get maximum 7mbyte/sec(only on one ISP, other gives maximum 2.5MBytes sec for sigle part).
In multipart i get up to 45mbyte sec.
Is it possible get same speed on SoftEther?

Re: Connection balancing never really happens

Posted: Thu Dec 25, 2014 6:39 am
by thisjun
Softether VPN is just like a LAN cable (with very high latency).
If you want to get high throughput, you should use some a multi-connection downloader.