Help Center> Virtual Private Network> FAQ> Bandwidth and Network Speed> What Is the Actual VPN Connection Network Speed?

What Is the Actual VPN Connection Network Speed?

A VPN connection has been created. Two ECSs have been created with one at the local side and the other at the remote side. The two ECSs can ping each other.

Perform the following steps to test the VPN gateway network speed if the bandwidth of your VPN gateway is 200 Mbit/s:

  1. If the ECSs at the two sides of the VPN run the Windows OSs, use iPerf3 and FileZilla (a free FTP application for file uploading and downloading) to test the network speed.

    The test shows that the average VPN network speed is 180 Mbit/s, and there is about 10% network speed deviation. The TCP and FTP protocols have the congestion control mechanism, and the IPsec protocol adds a new IP header. Therefore, about 10% network speed deviation is normal for the VPN network.

    Figure 1 shows the result of the test performed using the iPerf3 client.

    Figure 1 Test result for 200 Mbit/s bandwidth (iPerf3 client)

    Figure 2 shows the result of the test performed using the iPerf3 server.

    Figure 2 Test result for 200 Mbit/s bandwidth (iPerf3 server)
  2. If the ECSs at the two sides of the VPN run the CentOS 7 OSs, use iPerf3 to test the network speed. The network speed can reach 180 Mbit/s.
  3. If the ECS functioning as the server runs the CentOS 7 OS, and the ECS functioning as the client runs the Windows OS, use iPerf3 and FileZilla to test the network speed.

    The network speed is about 20 Mbit/s. The reason is that TCP implementations on the Windows OS and that on the Linux OS are different, which causes the slow network speed. Therefore, if the ECSs at the two sides of the VPN use different OSs, the VPN network speed does not meet the bandwidth requirements.

    Figure 3 shows the result of the test performed using iPerf3.

    Figure 3 Test result when ECSs at the two sides run different OSs (iPerf3)

Perform the following steps to test the VPN gateway network speed if the bandwidth of your VPN gateway is 1,000 Mbit/s:

The VPN gateway bandwidth is shared by all of its VPN connections. If the bandwidth size is large, multiple ECSs are required to test the VPN gateway bandwidth because the forwarding performance of each ECS is limited. This scenario has high requirements on ECS specifications. The ECSs used for testing must have NICs that support bandwidth of 2 Gbit/s or higher. For details about the ECS specifications, see ECS Specifications.

The tests show that the actual VPN connection network speed on HUAWEI CLOUD is within the normal range. However, the servers used at both sides of the VPN connection must run the OSs of the same type, and the server NICs must meet the configuration requirements.