Difference between revisions of "Template:NetworkPerformanceTest"

From FriendlyELEC WiKi
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
==测试网络性能==
+
==Test Network Performance==
*我们在friendlycore系统下使用iperf工具来测试网络的性能,测试前请先确保测试环境没有问题,请确保网线、路由器和PC机端口满足要求
+
* In Friendlycore we can use the iperf utility to test network performance. Make sure your board is connected properly and the hardware works before start testing
 
[[File:network cable.jpg|frameless|400px]]<br>
 
[[File:network cable.jpg|frameless|400px]]<br>
*为避免干扰、保证测试稳定可靠,请使用独立IP网段和PC机测试
+
* To avoid interference from unexpected sources use an independent IP section and test with a PC host.
===设置网络===
+
===Setup Network===
*如果需要测试有线网络,请不要连接Wi-Fi,或者使用以下命令禁用开发板Wi-Fi。
+
* When you test Ethernet please disable WiFi. You can disable WiFi by running the following commands.
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
  ifconfig wlan0 down
 
  ifconfig wlan0 down
Line 10: Line 10:
 
</syntaxhighlight>
 
</syntaxhighlight>
 
[[File:NanoPi_R1S-H3_ifconfig.jpg|frameless|650px]]<br />
 
[[File:NanoPi_R1S-H3_ifconfig.jpg|frameless|650px]]<br />
*如果需要测试Wi-Fi,请不要连接网线,或者使用以下命令禁用开发板有线网络。
+
*When you test WiFi please disconnect or disable Ethernet. You can disable Ethernet by running the following commands.
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
  ifconfig eth0 down
 
  ifconfig eth0 down
Line 16: Line 16:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
===测试开发板发送性能===
+
===Test Transmission Performance===
PC机做server,开发板做client,测试开发板向PC机发送数据的性能。
+
Run your PC host as a server and your board as a client. Test your board's transmission performance by sending data from your board to your PC host.
*1、使用以下命令查看PC机的IP地址,例如本机的IP地址为192.168.10.100
+
*1. Check your PC's IP address by running the following command. In our test our PC's IP address was 192.168.10.100
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
  ifconfig
 
  ifconfig
 
</syntaxhighlight>
 
</syntaxhighlight>
*2、在PC机终端使用以下命令运行iperf软件,并设置PC机为server
+
*2. Open a terminal on your PC and run the iperf command as follows on the terminal to set your PC as a server
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
  iperf -s
 
  iperf -s
 
</syntaxhighlight>
 
</syntaxhighlight>
*3、在开发板的调试终端执行以下命令,运行iperf软件,并设置开发板为client,开始测试,请注意IP地址需改成你的PC机实际的IP地址
+
*3. Open a terminal on your board and run the iperf command as follows on the terminal to set your board as a client. Make sure to fill your PC's IP address in the iperf command
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
  iperf -c 192.168.10.100 -t 60 -i 1
 
  iperf -c 192.168.10.100 -t 60 -i 1
Line 32: Line 32:
 
{{#switch: {{{1}}}
 
{{#switch: {{{1}}}
 
  | NanoPi-R1S-H3 =  
 
  | NanoPi-R1S-H3 =  
{{{1}}}发送性能实际测试如下图所示:<br>[[File:NanoPi-R1S-H3_iperf-c.jpg|frameless|650px]]<br />
+
{{{1}}}Our Test Result:<br>[[File:NanoPi-R1S-H3_iperf-c.jpg|frameless|650px]]<br />
 
  | NanoPi-R1S-H5 =  
 
  | NanoPi-R1S-H5 =  
{{{1}}}发送性能实际测试如下图所示:<br>[[File:NanoPi-R1S-H5_iperf-c.jpg|frameless|650px]]<br />
+
{{{1}}}Our Test Result:<br>[[File:NanoPi-R1S-H5_iperf-c.jpg|frameless|650px]]<br />
 
  | #default =
 
  | #default =
以NanoPi R1S-H3为例,实际发送性能测试如下图所示:<br>[[File:NanoPi-R1S-H3_iperf-c.jpg|frameless|650px]]<br>
+
We tested a NanoPi R1S-H3 board and here is what we got:<br>[[File:NanoPi-R1S-H3_iperf-c.jpg|frameless|650px]]<br>
 
}}
 
}}
  
===测试开发板接收性能===
+
===Test Receiving Performance===
开发板做server,PC机做client,测试开发板接收PC机数据的性能。
+
Run your PC as a client and your board as a server. Test your board's receiving performance by sending data from your PC to your board.
*1、使用以下命令查看开发板的IP地址,例如本开发板的IP地址为192.168.10.102
+
*1. Check your board's IP address by running the following command. In our test our board's IP address was 192.168.10.102
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
  ifconfig
 
  ifconfig
 
</syntaxhighlight>
 
</syntaxhighlight>
*2、在开发板终端使用以下命令运行iperf软件,并设置开发板为server
+
*2. Open a terminal on your board and run the iperf command as follows on the terminal to set your board as a server
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
  iperf -s
 
  iperf -s
 
</syntaxhighlight>
 
</syntaxhighlight>
*3、在PC机的终端执行以下命令,运行iperf软件,并设置PC机为client,开始测试,请注意IP地址需改成你的开发板实际的IP地址
+
*3. Open a terminal on your PC and run the iperf command as follows on the terminal to set your PC as a client. Make sure to fill your board's IP address in the iperf command
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
  iperf -c 192.168.10.102 -t 60 -i 1
 
  iperf -c 192.168.10.102 -t 60 -i 1
Line 55: Line 55:
 
{{#switch: {{{1}}}
 
{{#switch: {{{1}}}
 
  | NanoPi-R1S-H3 =  
 
  | NanoPi-R1S-H3 =  
{{{1}}}接收性能实际测试如下图所示:<br>[[File:NanoPi-R1S-H3_iperf-s.jpg|frameless|650px]]<br />
+
{{{1}}}Our Test Result:<br>[[File:NanoPi-R1S-H3_iperf-s.jpg|frameless|650px]]<br />
 
  | NanoPi-R1S-H5 =  
 
  | NanoPi-R1S-H5 =  
{{{1}}}接收性能实际测试如下图所示:<br>[[File:NanoPi-R1S-H5_iperf-s.jpg|frameless|650px]]<br />
+
{{{1}}}Our Test Result:<br>[[File:NanoPi-R1S-H5_iperf-s.jpg|frameless|650px]]<br />
 
  | #default =
 
  | #default =
以NanoPi R1S-H3为例,实际接收性能测试如下图所示:<br>[[File:NanoPi-R1S-H3_iperf-s.jpg|frameless|650px]]<br>
+
We tested a NanoPi R1S-H3 board and here is what we got:<br>[[File:NanoPi-R1S-H3_iperf-s.jpg|frameless|650px]]<br>
 
}}
 
}}

Latest revision as of 12:01, 25 December 2019

1 Test Network Performance

  • In Friendlycore we can use the iperf utility to test network performance. Make sure your board is connected properly and the hardware works before start testing

Network cable.jpg

  • To avoid interference from unexpected sources use an independent IP section and test with a PC host.

1.1 Setup Network

  • When you test Ethernet please disable WiFi. You can disable WiFi by running the following commands.
 ifconfig wlan0 down
 ifconfig

NanoPi R1S-H3 ifconfig.jpg

  • When you test WiFi please disconnect or disable Ethernet. You can disable Ethernet by running the following commands.
 ifconfig eth0 down
 ifconfig

1.2 Test Transmission Performance

Run your PC host as a server and your board as a client. Test your board's transmission performance by sending data from your board to your PC host.

  • 1. Check your PC's IP address by running the following command. In our test our PC's IP address was 192.168.10.100
 ifconfig
  • 2. Open a terminal on your PC and run the iperf command as follows on the terminal to set your PC as a server
 iperf -s
  • 3. Open a terminal on your board and run the iperf command as follows on the terminal to set your board as a client. Make sure to fill your PC's IP address in the iperf command
 iperf -c 192.168.10.100 -t 60 -i 1

We tested a NanoPi R1S-H3 board and here is what we got:
NanoPi-R1S-H3 iperf-c.jpg

1.3 Test Receiving Performance

Run your PC as a client and your board as a server. Test your board's receiving performance by sending data from your PC to your board.

  • 1. Check your board's IP address by running the following command. In our test our board's IP address was 192.168.10.102
 ifconfig
  • 2. Open a terminal on your board and run the iperf command as follows on the terminal to set your board as a server
 iperf -s
  • 3. Open a terminal on your PC and run the iperf command as follows on the terminal to set your PC as a client. Make sure to fill your board's IP address in the iperf command
 iperf -c 192.168.10.102 -t 60 -i 1

We tested a NanoPi R1S-H3 board and here is what we got:
NanoPi-R1S-H3 iperf-s.jpg