Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

SylixOS network performance test

2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

1. Application scenario

It is often necessary to test the network performance during some research and development. Iperf is a very excellent network performance testing tool, which has multiple parameters and can measure the bandwidth, delay jitter and packet loss rate of TCP and UDP. SylixOS supports iperf, and network performance testing can be done through iperf.

two。 Testing method

2.1 Windows version iperf installation

Windows version of iperf installation, extract iperf3 to the appropriate directory, can be run directly, as shown in figure 3.1.

Figure 3.1 iperf directory of windows version

2.2 SylixOS version iperf installation

The iperf installation of SylixOS version needs to be compiled according to the development board model, and then downloaded to the development board to run.

2.2.1 add iperf source code to IDE

Right-click in the IDE interface and select import, as shown in figure 3.2.

Figure 3.2 right-import

In the import interface, click General- > SylixOS Projects- > Next, as shown in figure 3.3.

Figure 3.3 General-SylixOS Projects-Next

Click Browse to select the iperf source code, as shown in figure 3.4.

Figure 3.4 Select iperf

After adding the iperf source code, it is shown in figure 3.5.

Figure 3.5 completion of adding iperf

2.2.2 compiling iperf source code in IDE

According to the development board model, choose the appropriate Base, the model used in this paper is cortex-a9.

Right-click the iperf source code and select Properties, as shown in figure 3.6.

Figure 3.6 iperf-Properties

Click SylixOS Project and click File System to select the appropriate Base, as shown in figure 3.7. (if you have not created a Base, please refer to the RealEvo-IDE user's Manual.)

Figure 3.7 Select Base

When the selection is complete, click the compile button, as shown in figure 3.8.

Figure 3.8 compiling iperf

After the compilation is completed, it is shown in figure 3.9.

Figure 3.9 compilation completed

2.2.3 download iperf to the development board

Right-click the iperf source code and select Properties, as shown in figure 3.10.

Figure 3.10 Select Properties

Click SylixOS Project, select Device Setting- > New Device- > fill in the IP address of the development board in Device IP, as shown in figure 3.11. The development board needs to run the SylixOS system and the network can work properly.

Figure 3.11 setting up IP

Right-click the iperf source code and select SylixOS- > Upload, as shown in figure 3.12.

Figure 3.12 is downloaded to the development board

You can see the specific location of the file on the development board in Device Setting- > Remote Path, as shown in figure 3.13.

Figure 3.13 the directory where the files are located

View it under the development board, as shown in figure 3.14.

Figure 3.14 Files in the development board

2.2.4 download the library files needed to run iperf to the development board

Right-click Base and select Properties, as shown in figure 3.15.

Figure 3.15 Select Properties

Click SylixOS Project, select Device Setting- > New Device, and fill in the IP address of the development board in Device IP, as shown in figure 3.16. The development board needs to run the SylixOS system and the network can work properly.

Figure 3.16 setting up IP

Right-click Base and select SylixOS- > Upload to download to the development board, as shown in figure 3.17.

Figure 3.17 download the library file to the development board

After the library file is downloaded, it is shown in figure 3.18.

Figure 3.18 download completed

2.3 run the iperf test

2.3.1 run iperf under windows

Run cmd under windows, change to the iperf directory, run iperf3.exe, and pass the parameter-s (the-s parameter indicates that the currently running iperf program serves as the server), as shown in figure 3.19.

Figure 3.19 run iperf under windows

2.3.2 run iperf under SylixOS

Under SylixOS, change to the iperf directory and run the iperf parameter-c 192.168.2.53 as the client connection server, as shown in figure 3.20. (the IP under windows is 192.168.2.53 and IP is 192.168.2.213 under SylixOS).

Figure 3.20 run iperf under SylixOS

2.3.3 start testing

Run iperf under both SylixOS and windows, and the result is shown in figure 3.21 and figure 3.22.

Figure 3.21 running result of iperf under Windows

Figure 3.22 iperf running result under SylixOS

When passing different parameters, you can test the different performance in TCP and UDP environments.

2.3.4 Test TCP transmission

Server: iperf3.exe-s

Client:. / iperf-c 192.168.2.53

(- t 60 can set the test time to 60 seconds).

2.3.5 Test UDP transmission

Server: iperf3.exe-s

Client:. / iperf-c 192.168.2.53-u-b 100m

(- b sets UDP bandwidth,-u sets UDP transfer mode).

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 258

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report