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

Low Rate #3

Open
nedark opened this issue Sep 6, 2015 · 8 comments
Open

Low Rate #3

nedark opened this issue Sep 6, 2015 · 8 comments

Comments

@nedark
Copy link

nedark commented Sep 6, 2015

I achieved to run a multipath tunnel for a OpenVPN connection.
However the rate is lower than expected. I'm using two paths. In any of the paths I got ~3 mbps without using mptunnel. However when using mptunnel I only get ~1 mbps.
Is this expected or something must be wrong?
Regards

@greensea
Copy link
Owner

greensea commented Sep 8, 2015

Could you check your CPU usage? mptunnel is currently not optimized, so it may can't handle too many packets.
If you found CPU usage for mptunnel is 100%, that may be the problem. I can optimize the code later.

@zoobab
Copy link

zoobab commented Feb 19, 2016

Is it multithreaded or it stops at one core?

@greensea
Copy link
Owner

@zoobab It is multithreaded. What do you mean `stops at one core'?

@zoobab
Copy link

zoobab commented Feb 20, 2016

Good to know it is multithreaded. Otherwise, have you tested the performance between 2 machines with 2 network cards each? Could you do gigabit performance?

@greensea
Copy link
Owner

I don't have such network environment so I can't do it. But I guess it can
not handle gigabit network throughput unless you have a powerful CPU
2016年2月20日 下午10:18,"Benjamin Henrion" [email protected]写道:

Good to know it is multithreaded. Otherwise, have you tested the
performance between 2 machines with 2 network cards each? Could you do
gigabit performance?


Reply to this email directly or view it on GitHub
#3 (comment).

@zoobab
Copy link

zoobab commented Feb 24, 2016

If you don't have the hardware, just try with docker containers. Or with 2 laptops with gigabit ethernet in between...

@greensea
Copy link
Owner

I do the bench on my laptop, result below:

CPU: AMD Athlon(tm) II P320 Dual-Core

There are two process, each process attach to one CPU core. On the test, each process consume 50% CPU core time.

Traffic from mpclient to mpserver, 3 tunnels.

With encryption disabled I got 200Mbps rate, with encryption enabled, I got ~3Mbps rate.

Thant means I have to optimize the encryption function... I'll do it later

@zoobab
Copy link

zoobab commented Feb 26, 2016

For the encryption, I recommend using elliptic curve (nacl, tweetnacl) as they are very lightweight CPU-wise. I have tested for ex curvetun as a replacement for openvpn, and it beats it by far on performance.

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

3 participants