How to test network performance
The network interface performance metrics depend on the availability zone in which the interacting VMs are located. Therefore, you need to compare network performance parameters first between VMs within the same zone, and then between VMs in different zones.
The iPerf utility will be used for testing, and three VMs will be created:
- the main test VM — client;
- an additional VM in the same availability zone as the test VM — server;
- an additional VM in another availability zone — another server.
-
If you have not done so already, contact technical support or your VK Cloud account manager with a request to allocate the required resources for testing.
Wait for confirmation that the resources you need have been allocated.
-
Make sure that SDN Sprut is connected for your project. Otherwise, contact technical support with a connection request.
-
Create a test virtual machine with the following parameters:
-
Virtual machine category: select a category depending on the type of resource requested, or
All current virtual machine types. -
Virtual machine type: select
STD-3 (Ice Lake) 4 vcpu, 16 Gb RAMfrom the list, or the type specified when requesting the resource. -
Disk type:
SSDis selected by default. To get maximum performance values, select the High-IOPS or Low Latency NVMe type. -
Disk size:
256 GBis selected by default. To get maximum performance values, it is recommended to select1500 GB, provided thatHigh-IOPSorLow Latency NVMEis selected in the Disk type field. For more information, see the section on disk performance. -
Operating system: select
Ubuntu 22.04 LTS. -
At the Configuration step, in the Network field, select the existing SDN Sprut or create a new network with the Sprut type.
Leave the remaining parameters at your discretion.
-
-
Connect to the created VM and install all available updates. Installation methods depend on the selected OS.
When testing cross-network interaction, the additional virtual machines act as servers.
-
Create a virtual machine with the following parameters:
- Availability zone: select the same availability zone as that of the main test VM.
- Network: select the same SDN Sprut as that of the main test VM.
Set the remaining parameters the same as those of the main test VM.
-
Create another virtual machine with the following parameters:
- Availability zone: select a different availability zone from that of the main test VM.
- Network: select the same SDN Sprut as that of the main test VM.
Set the remaining parameters the same as those of the main test VM.
-
Connect to the additional VMs.
- Go to the VK Cloud management console.
- In the Cloud Computing → Virtual Machines section, click the name of the desired VM.
- On the VM page, go to the Networks tab.
- Write down the IP addresses of the main test VM and the additional VMs. You will need them later.
-
Install the iPerf utility on the test and additional virtual machines using the command:
sudo apt install iperf3 -
On the additional VMs, run the command to start the iPerf server part:
iperf3 -s
You can test single-thread cross-network interaction using the ready-made iperf3_single script from VK Cloud.
-
Test the interaction within a single zone. To do this, run the
iperf3_singlescript on the test VM, replacing the following parameters in the script code:<RESULT_OUTPUT_FILE_NAME>— the name of the file for saving the test result, for exampletest_collection_output_single1for a single-thread run within a single zone. By default, the file is saved in the directory where the script is run.<TEST_VM_IP>— the IP address of the test VM on which the script is run.<SERVER_VM_IP>— the IP address of the additional VM (in the same zone) acting as the server.
-
Test the interaction between different zones. To do this, run the
iperf3_singlescript on the test VM, replacing the following parameters in the script code:<RESULT_OUTPUT_FILE_NAME>— the name of the file for saving the test result, for exampletest_collection_output_single2for a single-thread run between different zones. By default, the file is saved in the directory where the script is run.<SERVER_VM_IP>— the IP address of the additional VM (in another zone) acting as the server.
You can test multi-thread cross-network interaction using the ready-made iperf3_multi script from VK Cloud.
-
Test the interaction within a single zone. To do this, run the
iperf3_multiscript on the test VM, replacing the following parameters in the script code:<RESULT_OUTPUT_FILE_NAME>— the name of the file for saving the test result, for exampletest_collection_output_multi1for a multi-thread run within a single zone. By default, the file is saved in the directory where the script is run.<TEST_VM_IP>— the IP address of the test VM on which the script is run.<SERVER_VM_IP>— the IP address of the additional VM (in the same zone) acting as the server.
-
Test the multi-thread interaction between different zones. To do this, run the
iperf3_multiscript on the test VM, replacing the following parameters in the script code:<RESULT_OUTPUT_FILE_NAME>— the name of the file for saving the test result, for exampletest_collection_output_multi2for a multi-thread run between different zones. By default, the file is saved in the directory where the script is run.<SERVER_VM_IP>— the IP address of the additional VM (in another zone) acting as the server.
Enter the obtained results into the spreadsheet and compare the data transfer rate (the Bitrate (Gbit/s) parameter) between two VMs in the same zone and in different zones.
Now you can compare this data with the performance of other cloud platforms.
The created resources are billed. If you no longer need them, delete them: