I have a weird problem. I’ve set up L2TP with IPsec encryption. When I test my VPN throughput then my download is much slower than my upload.
Sometimes download is almost equal to the upload.
I’ve been stuck with this in days now. Search is not helping me.
Sometimes the speed is 100+/100+. I’ve tested this in my local network with my android phone when connected to L2TP/IPsec
If you set use-ipsec in the l2tp settings to yes or required, RouterOS creates a dynamic IPsec peer from an internal template. Instead, you can configure one manually, with phase 1 and phase 2 proposals you prefer, which is what @Companion apparently did. There should be no difference in throughput depending on one or other method to be used, though.
Have you tried to use /tool profile while testing the throughput to see whether the CPU isn’t overloaded? Also, have you had a look at /ip ipsec installed-sa to see which encryption and authentication algorithms are in use and whether hardware-acceleration is used (only some algorithms and their combinations can be hardware accelerated, and the set depends on routerboard model)?
Yes. I’ve used /tool profile. Nothing suspicious there. Plenty of CPU power left while testing.
Yes. I’ve checked /ip ipsec installed-sa. Encryption is excactly what I set it to be. SHA256 and AES256. Hardware acceleration was enabled.
So I have no idea what’s the problem.
1450 may be too high for the parameters you have chosen, I have not calculated that.
You need to make sure there is no fragmentation in the router.
The TCP MSS mangle rule helps that (it forces the endpoint to send the proper fragment size).
Also try with SHA1 and AES128 to see if that is any different.
1450 may be too high for the parameters you have chosen, I have not calculated that.
You need to make sure there is no fragmentation in the router.
The TCP MSS mangle rule helps that (it forces the endpoint to send the proper fragment size).
Also try with SHA1 and AES128 to see if that is any different
Already tried it. Set it to 1300…didn’t do anything.
Interests after I tried your firewall configuration on the test router. Traffic filtered but it’s a bit weird to ‘jump’. It should not be.
The 1450 value is a composite of many routers that use L2tp. Everything is okay.
Try to configure the router with:
/ ip firewall filter
add action = accept chain = input comment = “Allow Established, Related” \ connection-state = established, related
You can see an example here - open winbox, enter Connect to: demo.mt.lv
Login: demo and no password
Then, request to write or there is a change. Thank you
I already have that rule in my firewall.
I tried testing it without the VPN. Test results were basically the same. Download is way slower than upload. (With my phone [Wifi])
Tried testing it with my PC. Speed seems normal. Download and upload are basically the same or upload is a bit slower.
I think it’s something with the wifi.
I’m using a TP-Link AP but for making sure, it’s not the AP-s fault, I enabled Mikrotik’s wifi and the problem is there too.
So it’s not only the VPN-s fault.
If the issue exists regardless whether you use a TP-link AP or Mikrotik’s own AP, it has nothing to do with Mikrotik’s wireless. I’d rather vote for the phone’s wireless compatibility issues as the phone is the common element in these two cases. From the PC/notebook/laptop you’ve tried using wifi as well, or did you use the wired connection that time?
OK. What is important here is that the behaviour is the same with two different APs. Wireless is a wonderland of its own, where interference from other sources as well as compatibility issues can cause a lot of trouble. To find out which phenomenon is actually responsible requires to know the noise background at first place. But as you say that a wired connection behaves normally, I think it’s time to start a new topic as L2TP/IPsec doesn’t seem to be related. Of course, confirming this by setting up an L2TP/IPsec client on the PC connected by wire and testing the throughput from there is a necessary step to really make this conclusion.
@companion, please have a look how to properly quote from previous posts, use [quote] and [/quote] for that. May I ask you to edit your previous post?
More important, please do not spread false information that order of chains in firewall is important for performance or anything else than readability. What does matter for functionality and also for performance is the order of rules within the same chain (input, output, forward, user-defined chains), but it is of no importance whether you place all the input rules first or last. It matters for readability, though: if you interleave the rules belonging to different chains like (i1,o1,f1,i2,i3,f2,o2,f3,o3,f4,i4), it works and performs exactly the same as (i1,i2,i3,i4,o1,o2,o3,f1,f2,f3,f4) but it is almost impossible to read.
hi, If the issue exists heedless whether you use a TP-link AP or Mikrotik’s own AP, it has nothing to do with Mikrotik’s wireless. I’d rather vote for the phone’s wireless compatibility issues as the telephone is the collective element in these two cases. From the PC - notebook - laptop you’ve tried using wifi as well, or did you use the wired connection that time?
I tried it in a different computer with wired connection. Download is 110Mbit/s and upload is 120Mbit/s. (VPN enabled)
Don’t know what causes this. Tried turning off firewall…doesn’t do anything.
On a different laptop without VPN there is again the same problem.
Faster upload than download.
I’ve tried absolutely everything. I quit. I’ll switch out my router. I don’t want to deal with this anymore. I don’t get help from anywhere. I even reset my router to default. Nothing helps. MikroTiks wifi doesn’t work too. Same as AP. vPN doesn’t work. Same as Wifi. I quit.
Bye.
You haven’t said anything regarding WiFi environment exploration (other devices running nearby on overlapping channels) and if you’ve really used 4G to connect, the results must be affected as each packet has to go through the WAN interface twice.
Estonia is not that big, maybe someone living nearby can have a look?
Other devices doesn’t matter if the results are the same when using 4G without VPN.
When using VPN then 8Mbit/s download and 40Mbit/s upload. When it was bad 4G then without VPN why is my speed 60/50 without VPN.