I have 2 location with fibre connection. Location A has ~400M down/up whereas Location B has 1Gbps (up/down) shared pipe between 4 offices (total of 15 computers). Location A has a Windows 2019 Hyper-V VM, host connected via Ethernet cable. Location B has Windows 10 computers, all connected via Ethernet cable. There is a IPSec VPN connection between the 2 locations.
The NIC speed on all the computers and server is set to Auto and actively shows 1G. Both locations have Gig switches with LACP disabled.
The Ookla speedtest at both locations shows speed close to the bandwidth that they are offered. However, the data transfer speed between the 2 location is abysmal. It ranges from ~500 kbps to 4 mbps. I have tried SMB/CIFS data transfer through the tunnel and FTP transfer outside of the tunnel and both of them show similar transfer speed.
I did an iperf3 test and it shows that when using TCP protocol, the data transfer speed is extremely minimal but when using UDP connection, the speed is between 890-950 mbps with around 50% datagram loss.
Is there anything that you think, that I can do to improve the speed?
Iperf3 test TCP
UDP