My openvpn has worked well for the last 2 years with a particular remote client, and recently has been having keyboard lag as the primary issue. I suspect the issue is the client's isp speed. The question: if it is reasonable to suspect the isp speed, what speed do we need to tell the isp we need as ideal (which of course I will tell isp is our minimum).
Server ubuntu 14.04 lts; openvpn version 2.3.2
Client ubuntu 12.04 lts to start, then upgraded to 16.04.2 with 4.8.0-39-generic kernel; openvpn version 2.3.10
Work done is primarily LibreOffice 5.1 writer and calc documents.
The issue usually shows up as the screen lagging the keyboard by 3 to 5 seconds; when a menu item (file, edit, view, etc) is pressed the whole thing locks for 10 to 30 seconds at a time. This is not every time.
The problems started becoming noticeable when the switch was made from 12.04 to 16.04. Had not paid attention to isp speed before that. We switched isp providers, and if anything the problem became worse.
Tests done: Tried libreoffice writer and calc on a fast connection (ran speedtest.net on this connection, consistently getting readings like 29.83 Mbps), and did not have issues. Tried the same kinds of documents on the local hdd, and there was likewise no lag.
Using the isp at the client location (about 20 miles away from the server), we are getting inconsistent speeds from 11.45 to 18.43. We can run the test several times in a few minutes and get 15.25, then 16.3, the 14.63, then 11.45. All over the place, up and down. This is where we get the lag.
So I decided to throttle the client machine in the faster environment. I ran
Code: Select all
sudo tc qdisc add dev enp2s0 root netem delay 200ms
on the client machine, and the speedtest results dropped from 28.304 to 22.74. Then ran some tests on the client machine: on documents stored on the server the problems showed up. On documents stored on the client's local drive, there was no keyboard lag.
1. Do you agree this seems to be an isp speed issue, or should I look elsewhere?
2. What speed is optimal for our needs?
3. Are there any things I can put in the conf files that will help speed?