How to test the 10G network port on the i.MX95
Background : This article introduces a practical method to test the i.MX95 10GbE interface using two i.MX95 EVKs connected directly by an Ethernet cable. By using iperf3 to measure TCP throughput in both TX and RX directions, customers can verify the 10GbE functionality and evaluate network performance as a reference for their own i.MX95-based designs.
Hardware: • 2 × i.MX95 EVK boards • 1 × Ethernet cable for direct connection between the 10GbE ports • Power supplies and serial debug cables for both boards
Software:
Linux BSP: 6.18.2_1.0.0
Test Procedure:
Step 1: Connect the Hardware Connect the 10GbE ports of the two i.MX95 EVK boards directly using an Ethernet cable.(Boot both boards with Linux BSP 6.18.2_1.0.0.)
Step 2: Configure the IP Addresses Configure static IP addresses for the 10GbE interfaces on both i.MX95 EVKs to ensure they are in the same subnet and can communicate with each other. # EVK 1 ifconfig eth0 192.168.0.1 # EVK 2 ifconfig eth0 192.168.0.2
Step3: Run the iperf3 Throughput Test
On EVK 1 (Server), start the iperf3 server:
iperf3 -s
On EVK 2 (Client), run the following command:
iperf3 -c 192.168.0.1 -O 2 -P 8 -w 4M -Z -t 60 -R
Command Explanation:
-c : 192.168.0.1Runs iperf3 in client mode and connects to the iperf3 server at 192.168.0.1.
-O 2 : Omits the first 2 seconds of the test from the final statistics to reduce the impact of the TCP startup phase.
-P 8 : Creates 8 parallel TCP streams to increase link utilization.
-w 4M : Sets the TCP socket buffer size to 4 MB.
-Z : Enables zero-copy mode to reduce CPU overhead caused by data copying.
Step4: Test Result Summary Using 8 parallel TCP streams for a 60-second reverse-direction test, the two i.MX95 EVKs achieved an aggregate throughput of 7.90 Gbit/s, transferring 55.2 GBytes of data. The test also reported 4176 TCP retransmissions. The test results are output as follows:
[ ID] Interval Transfer Bitrate Retr [ 5] 0.00-60.00 sec 7.31 GBytes 1.05 Gbits/sec 414 sender [ 5] 0.00-59.97 sec 7.30 GBytes 1.05 Gbits/sec receiver [ 7] 0.00-60.00 sec 5.07 GBytes 726 Mbits/sec 540 sender [ 7] 0.00-59.97 sec 5.07 GBytes 726 Mbits/sec receiver [ 9] 0.00-60.00 sec 2.87 GBytes 410 Mbits/sec 244 sender [ 9] 0.00-59.97 sec 2.87 GBytes 410 Mbits/sec receiver [ 11] 0.00-60.00 sec 12.7 GBytes 1.82 Gbits/sec 366 sender [ 11] 0.00-59.97 sec 12.7 GBytes 1.82 Gbits/sec receiver [ 13] 0.00-60.00 sec 4.22 GBytes 604 Mbits/sec 553 sender [ 13] 0.00-59.97 sec 4.21 GBytes 604 Mbits/sec receiver [ 15] 0.00-60.00 sec 7.24 GBytes 1.04 Gbits/sec 733 sender [ 15] 0.00-59.97 sec 7.23 GBytes 1.04 Gbits/sec receiver [ 17] 0.00-60.00 sec 7.01 GBytes 1.00 Gbits/sec 708 sender [ 17] 0.00-59.97 sec 7.01 GBytes 1.00 Gbits/sec receiver [ 19] 0.00-60.00 sec 8.76 GBytes 1.25 Gbits/sec 618 sender [ 19] 0.00-59.97 sec 8.76 GBytes 1.25 Gbits/sec receiver [SUM] 0.00-60.00 sec 55.2 GBytes 7.90 Gbits/sec 4176 sender [SUM] 0.00-59.97 sec 55.2 GBytes 7.90 Gbits/sec receiver iperf Done. Server: [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-60.00 sec 7.31 GBytes 1.05 Gbits/sec 414 sender [ 8] 0.00-60.00 sec 5.07 GBytes 726 Mbits/sec 540 sender [ 10] 0.00-60.00 sec 2.87 GBytes 410 Mbits/sec 244 sender [ 12] 0.00-60.00 sec 12.7 GBytes 1.82 Gbits/sec 366 sender [ 14] 0.00-60.00 sec 4.22 GBytes 604 Mbits/sec 553 sender [ 16] 0.00-60.00 sec 7.24 GBytes 1.04 Gbits/sec 733 sender [ 18] 0.00-60.00 sec 7.01 GBytes 1.00 Gbits/sec 708 sender [ 20] 0.00-60.00 sec 8.76 GBytes 1.25 Gbits/sec 618 sender [SUM] 0.00-60.00 sec 55.2 GBytes 7.90 Gbits/sec 4176 sender
Summarize : The i.MX95 10GbE interface achieved approximately 7.90 Gbit/s TCP throughput with 8 parallel streams in the Server-to-Client direction. During the 60-second test, 55.2 GBytes of data were transferred, with 4176 TCP retransmissions reported.
記事全体を表示