labs.beatcraft.com [bc10-router]

Measuring the Network Performance of bc10-router

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

The structure of network is shown in the diagram below.

network.jpg

Measuring equipments

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

The applications, which used to measuring the performance of the networks, are shown below.

iperf

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
      # iperf -s
      ------------------------------------------------------------
      Server listening on TCP port 5001
      TCP window size: 85.3 KByte (default)
      ------------------------------------------------------------
      [  4] local 192.168.0.121 port 5001 connected with 192.168.0.138 port 57944
      [ ID] Interval       Transfer     Bandwidth
      [  4]  0.0-10.1 sec   113 MBytes  93.9 Mbits/sec
      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
    # iperf -c 192.168.0.121
    ------------------------------------------------------------
    Client connecting to 192.168.0.121, TCP port 5001
    TCP window size: 20.7 KByte (default)
    ------------------------------------------------------------
    [  3] local 192.168.0.138 port 57944 connected with 192.168.0.121 port 5001
    [ ID] Interval       Transfer     Bandwidth
    [  3]  0.0-10.0 sec   113 MBytes  94.4 Mbits/sec
    To measure throughput, the client side measures how much data it has sent to the server side per 10 seconds.

nuttcp

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
      # nuttcp -S
    • Client Side
      In the example below, the client side reports the current status at every second (-i).
      # nuttcp -i1 192.168.30.1
        3.4375 MB /   1.00 sec =   28.8239 Mbps     0 retrans
        4.2500 MB /   1.00 sec =   35.6477 Mbps     0 retrans
        4.4375 MB /   1.00 sec =   37.2260 Mbps     0 retrans
        4.0000 MB /   1.00 sec =   33.5599 Mbps     0 retrans
        4.1875 MB /   1.00 sec =   35.1245 Mbps     0 retrans
        4.6250 MB /   1.00 sec =   38.7930 Mbps     0 retrans
        5.0625 MB /   1.00 sec =   42.4717 Mbps     0 retrans
        4.7500 MB /   1.00 sec =   39.8342 Mbps     0 retrans
        4.8750 MB /   1.00 sec =   40.8950 Mbps     0 retrans
        4.9375 MB /   1.00 sec =   41.4344 Mbps     0 retrans
      
       44.8750 MB /  10.07 sec =   37.3973 Mbps 3 %TX 18 %RX 0 retrans 2.07 msRTT
      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

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

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

  • Measured by iperf
    WAN side: PCI iperf -s
    LAN side: bc10-router iperf -c 192.168.0.121
    N12345678910Avg.
    Mbps94.394.494.394.494.594.594.594.494.594.594.4
  • Measured by nuttcp
    WAN side: PC1 nuttcp -S
    LAN side: bc10-roter nuttcp 192.168.0.121
    N12345678910Avg.
    Mbps93.819393.882393.886793.890593.887593.884293.880093.896493.876593.881993.8785
    %TX5150505050504950504949.9
    %RX2323232323232323232323
    retrans00000000000
    msRTT0.730.851.170.920.890.890.891.040.851.370.96

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

  • Measured by iperf
    WAN side: bc10-router iperf -s
    LAN side: PC2 iperf -c 192.168.30.1
    N12345678910Avg.
    Mbps25.923.918.518.820.118.220.019.218.421.320.4
  • Measured by nuttcp
    WAN side: bc10-router nuttcp -S
    LAN side: PC2 nuttcp 192.168.30.1
    N12345678910Avg.
    Mbps18.834717.997619.025919.731618.681419.882020.309920.088818.508521.373319.4434
    %TX11111111111
    %RX109101010101010101110
    retrans00000000000
    msRTT2.621.481.651.831.731.751.645.181.681.472.10

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

  • Measured by iperf
    WAN side: PC1 iperf -s
    LAN side: PC2 iperf -c 192.168.0.121
    Time12345678910Avg.
    Mbps25.123.125.622.822.222.719.519.017.820.721.85

 

  • Measured by nuttcp
    WAN side: PC1 nuttcp -S
    LAN side: PC2 nuttcp 192.168.0.121
    Time12345678910Avg.
    Mbps26.720921.752423.421923.350722.585121.945519.229120.630319.065919.640821.8342
    %TX11111111111
    %RX87777766666.7
    retrans00000000000
    msRTT1.801.791.712.022.164.131.771.801.932.212.13

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

  • 2013/07/22 This article is initially published.
     

Attach file: filenetwork.jpg 786 download [Information]

Front page   Edit Freeze Diff Backup Upload Copy Rename Reload   New List of pages Search Recent changes   RSS of recent changes
Last-modified: 2013-07-22 (Mon) 07:08:44 (1586d)