-
Notifications
You must be signed in to change notification settings - Fork 31
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
Comments
Could you check your CPU usage? mptunnel is currently not optimized, so it may can't handle too many packets. |
Is it multithreaded or it stops at one core? |
@zoobab It is multithreaded. What do you mean `stops at one core'? |
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? |
I don't have such network environment so I can't do it. But I guess it can
|
If you don't have the hardware, just try with docker containers. Or with 2 laptops with gigabit ethernet in between... |
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 |
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. |
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
The text was updated successfully, but these errors were encountered: