xilinx zc706 Ethernet performance test (iperf)

I. Overview

Ethernet traffic testing is a testing method for evaluating network performance and capacity. It simulates data traffic in an actual network environment to determine how the network performs under high load conditions.

In Ethernet traffic testing, a variety of tools and techniques can be used to generate and control data traffic. These tools can simulate different types of traffic, such as regular data transfer, audio/video streaming, web traffic, etc.

Here are the general steps for conducting Ethernet traffic testing:

  1. Choose appropriate traffic testing tools: Choose appropriate traffic generation tools based on your needs, such as iPerf, TCP/UDP stress testing tools, etc.

  2. Set test parameters: Configure test parameters, including source and destination IP addresses, port numbers, packet size, number of concurrent connections, etc.

  3. Start traffic generation: Start generating traffic and ensure that the traffic is sent to the destination according to the set requirements.

  4. Monitor and record results: Use network performance monitoring tools to monitor performance indicators such as bandwidth utilization, delay, packet loss rate, throughput, etc., and record test results for analysis.

  5. Analysis and optimization: Analyze network performance bottlenecks based on test results, and take corresponding optimization measures, such as increasing bandwidth, improving network topology, etc.

Through Ethernet traffic testing, you can evaluate the capacity and performance of the network, identify potential problems, and improve the reliability and efficiency of the network. This is important for planning, designing and maintaining networks to meet different application requirements.

2: iperf under xilinx platform

   First, you need to create a xilinx cross-compilation environment and the source code of iperf, and use xilinx's gcc to compile it. I have already compiled iperf here.

 

3. PC test computer TELNET is turned on

  1. The communication board test firmware only supports telnet login, so the telnet function needs to be turned on on the computer. If the computer is turned on, this step can be ignored.
  2. Open the [Control Panel] program, you can search for the Control Panel through Windows 10, click [Programs and Features], click [Turn Windows features on or off] to find the telnet client, check the item, click OK and wait for the computer Start the telnet service.

  1. Test tool preparation
  2. The test tool on the computer needs to prepare the TFTP server, iperf running on windows, and the iperf program running on the communication board.
  3. Tftp server, a TFTP server needs to exist on the computer. You can search for tftp to download or this instruction will come with a tftp server, which has a tftpd64.exe and a tftpd32.ini file. The Tftp server provides the IP address and download iperf service for the communication board. The operation instructions will explain it in detail.

  1. The iperf program on Windows is a client/server program that tests throughput with the communication board. iperf is a throughput testing tool in the LAN. The test protocols include TCP and UDP.

  1. The iperf on the communication board is a client/server program used to test throughput on Windows. The iperf program is a program generated by cross-compiling the compiler with instructions. The iperf3 program needs to be placed in the same directory as the tftp server.

  1. Configure a static IP address for the PC network port, and modify the IPV4 address of the network card in the network adapter. The IP address configured here is 12.18.1.101. The network card address configured here will be used later in the tftp configuration.

  1. Open the TFTP tool as shown in the figure below. Click [Setting] in the lower column of the tftp tool to configure DHCP, mainly to configure the DHCP address pool and routing. If you don’t understand, you can fill it in according to my example. After filling in, click OK to save.

Note: If there is a WIFI network card connected to the external network, you need to disable the WIFI network card, otherwise it will affect the WIFI network.

  1. After the above network card and TFTP server are configured, TFTP does not close the foreground operation. Install the SD card with the test firmware on the communication board. Use a 100-meter network cable to connect the network port of the PC computer and the network port of the communication board to the communication board or the entire machine. The spectrometer is powered on.
  2. Wait for the communication board to be powered on, and observe whether there is an IP allocation in the DHCP in TFTP. The test firmware network card of the communication board automatically obtains an IP, so the computer acts as a DHCP server to allocate an IP address to the communication board. After checking the IP address, the computer pings the If the IP address can be communicated, it means that the communication board has been started.

    1.  
    2. Communication board iperf execution
    1. Communication board iperf execution
  1. The communication board system can be logged in through telnet and open the CMD command prompt or powershell (both are included with Windows and can be opened by searching for input). Here is the CMD window, enter: telnet 12.18.1.100 and press Enter.

  1. At the login verification stage, username: root, password: root. After the password is entered correctly, you can see root@zynq:~# means that you have logged in to the command line window of the communication board through telnet.

  1. Import ip erf. Currently, the iperf program is placed directly in the SD card together with the system. The directory mounted by SD after startup is /media/card, so it can be copied directly from the SD card to the directory where the current user is logged in and executed directly. :cp /media/card/iperf3.    Remember that there is an English period after it.

  1. Use the command ls -al to view the current execution script of iperf3. Execute ./iperf3 -v and the following figure will appear, indicating that iperf can be tested normally.

  • Operational test
    1. Test PC -> Communication Board Throughput
  1. First, perform the RX test of the communication board, that is, the computer sends the packet and the communication board receives the packet.
  2. The communication board logged in through telnet executes the following command as the server: ./iperf3 -s

  1. The client operates on Windows. First copy the directory where iperf is located, then open a cmd window again and enter the command pushd + copied directory

  1. Execute iperf3.exe -c 12.18.1.100 -t 10 -i 1 on Windows

Definition:

-c is used as a client, followed by the IP address of the other party, for example, the windows network card IP is: 12.18.1.101, and the communication board IP is: 12.18.1.100. Then execute the operation parameter with -c 12.18.1.100.

-t is the sec time, you can understand how long the test will take.

-i How often to print data.

-R changes the test direction, which will be used in the following tests. For example, if you are currently testing PC-->communication board and add -R to the client without changing the test instructions, it means testing the communication board--->PC side.

    1. Test communication board-PC throughput

1) First perform the RX test of the communication board, that is, the computer receives the packet and the communication board sends the packet.

2) Execute iperf3.exe -c 12.18.1.100 -t 10 -i 1 -R on Windows

Guess you like

Origin blog.csdn.net/qq_19294353/article/details/131688903