[[labs.beatcraft.com]]
[bc10-router]
#contents

* Measuring the Network Performance of bc10-router [#v105cf02]
>
Connecting with a PC, the network performance of bc10-router is measured. The details of how to create bc10-router is described at [[bc10-router/arago-project]]. This article explains the structure of tested network, measuring equipments, measuring tools, and measuring method.~


** Network structure and the connections of equipments [#nd5b805e]
>
The structure of network is shown in the diagram below.~
#ref(network);~

** Measuring equipments [#xa5ee6a5]
>
The measurement of throughput is influenced by the capability of machines that the measuring tools run. The machines used here are netbook-type. The specifications and capability of the measuring equipments are shown below.~
~
>
bc10-router~
- CPU: ARMv7 Processor rev3 (v71) (OMAP3530 600NHz)~
-- BogoMIPS: 585.04~
- OS: arago-project based Linux~
-- kernel: 3.3.7~
- USB AC Powered Hub~
- WAN Side Interface: USB-Either Adapter Buffalo LUA3-U2-ATX (ASIX AX88772)~
- LAN Side Interface (Access point): USB Wi-Fi Adapter Buffalo WLI-UG-G301N (Ralink 2870USB)~
~
>
PC1~
- CPU: Intel(R) Atom(TM) CPU N280 @1.66GHz~
-- CPU MHz: 800.000 x2~
-- BogoMIPS: 3324.89~
- OS: Ubuntu 12.04 (32bit)~
-- kernel: 3.2.0-34-generic-pae~
- Network interface: Atheros Communications Inc. AR8132 Fast Ethernet~
~
>
PC2~
- CPU: Intel(R) Atom(TM) CPU N270 @1.60GHz~
-- CPU MHz: 800.000 x2~
-- BogoMIPS: 3191.84~
- OS: Ubuntu 12.10 (32bit)~
-- kernel: 3.5.0-19-generic~
- Network interface: USB Wi-Fi Adapter LAN-W150N/U21PH (Ralink 2870USB)~
~
** Measuring tools [#j4153a31]
>
The applications, which used to measuring the performance of the networks, are shown below.~

*** iperf [#b05e1941]
>
[[http://iperf.surceforge.net/]]~
This application measures the throughput of a network. It created at Distributed Application Support Team (DAST) of the National Laboratory for Applied Network Research (NLANR). This organization does not exist anymore, and the application has been maintained by an open source project. This application does have both server side and client side functionalities. To execute the same command, the applications act as the server and client at the ends of the network and measure the throughput between the two points.~ 
~
>
- Example of Command
-- Server Side
<Code and Commands>
Executing the command, the server side waits the signal from the client side. When it receives the signal from the client side, then it displays the result of measurement.~
~
– Client Side
<Code and Commands>
To measure throughput, the client side measures how much data it has sent to the server side per 10 seconds.~

*** nuttcp [#s508a225]
[[http://www.nuttcp.net/nuttcp/Welcome%20Page.html]]~
This application is a measurement tool, which assesses the network performance. It is crated based upon nttcp, which is an improved version of ttcp. Like iperf, executing the same command on the both two PCs, one PC runs the command as the server, and the other PC acts as the client. Waiting for data from the client side, the server side measures the benchmark of communication between the client and server sides PCs.~
~
>
- Example of Command
-- Server Side
<Code and Command>
-- Client Side
In the example below, the client side reports the current status at every second (-i).~
<Code and Command>
The results indicate that 44.8750MB data is sent in 10.07 seconds, it means that the speed of transfer is 37.3972Mbps.~
TX means the occupancy rate of CPU at client side,~
RX indicates the occupancy rate of CPU at server side,~
returns mean TCP retransmission packet number, and~
msRTT indicates Round Trip Time in microsecond.~


** Measuring method [#f3b672b8]
>
To measure the performance of bc10-router, the network, which described in the diagram, is established. To measure the performance of WAN and LAN, throughput is measured between PC1 and bc10-router and between bc10-router and PC2, respectively.~
~
To analyze the quality of network, it is critical to find out the bottlenecks in the network. To exam the bottleneck, throughput is measured between the interfaces of PC1 and bc10-router eth0 for WAN side and between the interfaces of bc10-router wlan0 and PC2 for LAN side, respectively.~

** Measurements of network performance [#ce8f899f]
>
The measurements are done at WAN side and LAN side. WAN side reflects the performance of server side, and LAN side roughly indicates the performance of client side. Each test 10 times and takes the average of the outcomes of 10 tests. The measurements of iperf define only the performance of the client side.~

*** Between PC1 and bc10-router eth0 [#wb53d54f]
>
- Measured by iperf~
WAN side: PCI iperf -s~
LAN side: bc10-router iperf -c 192.168.0.121~
<Table>
~
- Measured by nuttcp~
WAN side: PC1 nuttcp -S~
LAN side: bc10-roter nuttcp 192.168.0.121~
<Table>
>
Because it is a wired connection, there is not much fluctuation among the results, and the throughput is close to its maximum, 100M. 
 
*** Between bc10-router wlan0 and PC2 [#se5e57e4]
>
- Measured by iperf~
WAN side: bc10-router iperf -s~
LAN side: PC2 iperf -c 192.168.30.1~
<Table>
~ 
- Measured by nuttcp~
WAN side: bc10-router nuttcp -S~
LAN side: PC2 nuttcp 192.168.30.1~
<Table>
>
As AP of bc10-router is set for 11n, PC2, the client, is connected with 11n of one-stream. The throughput 11n connection is only little better than the maximum effective performance of 11g. This indicates that the speed of this communication interval is the bottleneck as a wireless router.~

*** Between PC1 and bc10-router and PC2 [#r44aae08]
>
- Measured by iperf~
WAN side: PC1 iperf -s~
LAN side: PC2 iperf -c 192.168.0.121~
<Table>
~ 
- Measured by nuttcp~
WAN side: PC1 nuttcp -S~
LAN side: PC2 nuttcp 192.168.0.121~
<Table>
Comparing to the measurement between bc10-router wlan0 and PC2, throughput between PC1 and bc10-router and PC2 is better. Since the capability of their CPUs at the server and client sides, is higher than bc10's. The difference in the capability of CPUs may lead the performance of the network.~
The measurement of the Wireless LAN (AP-PC2) is largely fluctuated. It is due to radio wave condition of surrounding. In the average, its throughput is roughly 22Mbps.~ 

* Revision History [#d17c1feb]
>
- 2013/07/10 This article is initially published.~
 


Front page   New List of pages Search Recent changes   RSS of recent changes