I am experiencing lag spikes in online games only when using engarde. The nature of lag spikes is such that sometimes my ping shoots up and keeps on increasing until it either returns to normal within few seconds or I get disconnected.
I have tried using each of my internet separately to isolate any issues, however the lag issue remains. This issue is persistent as long as I am using engarde with either single or dual internets. It never happens with normal WireGuard in SmoothWAN. So this is clearly something related to engarde (client or server side settings).
Further, I noticed that the āTXā data usage is very low as shown in SmoothWAN, for example:
RX: 31.59 GB (27575987 Pkts.)
TX: 3.59 GB (23370358 Pkts.)
In my limited knowledge, I had thought maybe itās something to do with MTU or ākeep persistent = 25ā settings but changing it didnāt seem to have an effect - Iām not sure.
Could any of this information give a clue about whatās happening?
I really appreciate it! Iāve set writeTimeout to 1000 and clientTimeout to 30 that eliminated the lag spike so far. But I still experience gaming lag with Engarde, even when the ping isnāt fluctuating, as opposed to a stable single WireGuard connection. Do you think the gap between RX and TX causes lag?
Also, I note that it mostly causes ping/lag issue when itās downloading. Both internets have sufficient bandwidths and donāt display this behaviour when using single WireGuard connection.
Have you tried using SQM to limit each WAN? (not SQM on wireguard)
Do note that if the fastest connection has high latency, the slower wonāt reduce it.
For gaming I recommend setting all WANs speed in SQM to 10% less than the slowest WAN.
Use fq_codel if used on off-the-shelf router due to CPU time.
Iāve tried SQM to limit each WAN as well as fq_codel. But this had no noticeable effects. I also tried SQM on LAN which did seem to improve ping / spikes somewhat, but the problem is definitely there. I think the problem is packet loss. Iām using Raspberry Pi 4.
One is 15 Mpbs and the other is 50 Mbps. I have tried limiting speeds or SQM to equal or lower of the two but didnāt make any difference.
I think itās important to mention the engarde server is located a bit far (ping: 140ms). Its normal and consistent for this distance. Its only the occasional random lag spikes, or caused by certain actions in game, that result in disconnect or cause rubberbanding in game (only when using engarde). Ping also increases when downloading.
It may be worth check other server, as well as reducing the MTU to 1280 in case itās a firewall issue.
This assumes that the spikes are caused by any large network activity.
Hi Talal, Iāve experimented a lot in terms of MTU and SQM but that didnāt work. Interestingly Iāve noticed that when I run wireguard on my PC connected to the router that has engarde, basically VPN on VPN, then I donāt see these issues anymore. Does this give any clue as to whatās happening?