element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Single-Board Computers
  • Products
  • Dev Tools
  • Single-Board Computers
  • More
  • Cancel
Single-Board Computers
Forum SBC Network Throughput
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Single-Board Computers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 69 replies
  • Subscribers 57 subscribers
  • Views 8790 views
  • Users 0 members are here
  • nuttcp
  • network
  • raspberry-pi
  • bbb
  • BeagleBone
  • throughput
Related

SBC Network Throughput

morgaine
morgaine over 12 years ago

Our earlier lightweight CPU benchmarking provided some confidence that the various boards tested had no major performance faults and were working roughly inline with expectations given their clock speed and processor families.  Networking is an area of performance that either doesn't get measured much or that is measured by ad hoc means which are hard to compare, and implementation anomalies are known to occur occasionally.

 

To try to put this on a more quantitative and even footing, I've picked a network measurement system that has an extremely long pedigree, the TTCP family of utilities.  This has evolved from the original "ttcp" of the 1980's through "nttcp" and finally into "nuttcp".  It has become a very useful networking tool, simple to use with repeatable results, open source, cross-platform, and it works on both IPv4 and IPv6.  It's in the Debian repository, and if the O/S to be tested doesn't have it then it can be compiled from sources just by typing 'make' on the great majority of systems.  (I cross-compiled it for Angstrom.)

 

Usage is extremely simple.  A pair of machines is required to test the link between them.  One is nominated the 'server' and has "nuttcp -S" executed on it, which turns it into a daemon running in the background.  The other is nominated the 'client', and all the tests are run from it regardless of desired direction.  The two most common tests to run on the client are a Transmission Test (Tx) using "nuttcp -t server", and a Reception Test (Rx) using "nuttcp -r server", both executed on the client with the hostname or IP address of the 'server' provided as argument.

 

These simple tests transfer data at maximum rate in the specified direction over TCP (by default), for an interval of approximately 10 seconds, and on completion the measured throughput is returned in Mbps for easiest comparison with the rated Mbps speed of the link.  Here is a table showing my initial tests executed on various ARM client boards through a gigabit switch, with the server (nuttcp -S) running on a 2.33GHz Core2 Duo machine possessing a gigabit NIC.  The final set of results was obtained between the Core2 Duo and an old Xeon server over a fully gigabit network path, just to confirm that the Core2 Duo wasn't bottlenecked in the ARM board tests.

 

 

Max theoretical TCP throughput over 100Mbps Ethernet is 94.1482 Mbps with TCP TimeStamps, or 94.9285 w/o.

For fairness, rows are ordered by 4 attributes: 1) Fast or Gigabit, 2) TCP TS or not, 3) ARM Freq, 4) Rx Speed.

 

Submitter
Rx Mbps
Tx Mbps
Client Board
SoC
MHz
Limits
O/S, kernel, driver
selsinork30.6017.28233-OLinuXinoi.MX23 ARM926233No TSArchLinux 3.7.2-2
morgaine93.8472.82RPi Model BBCM2835700Raspbian 3.1.9+ #272
morgaine93.8493.75BB (white)AM3359720Angstrom v2012.01, 3.2.5+
Tim.Annan94.1491.74Gumstix PepperAM3359600100M modeYocto 9.0.0 Dylan, 3.2
morgaine93.8276.94RPi Model BBCM2835800Raspbian 3.1.9+  #272
morgaine93.8278.71RPi Model BBCM28358007/2012 u/sRaspbian 3.6.11+ #545
morgaine94.1478.87RPi Model BBCM28358009/2013 u/sRaspbian 3.6.11+ #545
morgaine93.8093.75BBBAM33591000Angstrom v2012.12, 3.8.6
selsinork93.9294.46Cubieboard2A20912VLAN TSDebian 7.1, 3.3.0+
morgaine94.1694.14BBBAM33591000Debian 7.0, 3.8.13-bone20
selsinork94.3394.55Cubieboard2A20912No TSDebian 7.1, 3.3.0+
selsinork94.9194.90BBBAM33591000No TSAngstrom 3.8.6
selsinork94.9494.91i.MX53-QSBi.MX53996No TS3.4.0+
selsinork243.30454.88Sabre-Litei.MX6996No TS3.0.15-ts-armv7l
Tim.Annan257.79192.22Gumstix PepperAM3359600Gbit modeYocto 9.0.0 Dylan, 3.2
notzed371.92324.49Parallella-16Zynq-70x0800Ubuntu Linaro
selsinork525.18519.41CubietruckA201000No TSLFS-ARM 3.4.67 + gmac
selsinork715.63372.17MinnowboardAtom E6401000No TSAngstrom 3.8.13-yocto
morgaine725.08595.28homebuiltE65502330PCI 33MHzGentoo 32-bit, 3.8.2, r8169
selsinork945.86946.38homebuiltE82002666PCIe X132-bit, 3.7.0, e1000

 

 

In addition to the results displayed in the table, I also ran servers (nuttcp -S) on all my boards and kicked off transfers in both directions from the x86 machine, and then followed that with board-to-board transfers just to check that the choice of clients and servers was not affecting results.  It wasn't, they are very repeatable regardless of the choice, the throughput always being limited by the slowest machine for the selected direction of transfer.  Running tests multiple times showed that variations typically held to less than 0.5%, probably a result of occasional unrelated network and/or machine activity.

 

The above measurements were performed over IPv4.  (See below for IPv6.)

 

Hint:  You can run nuttcp client commands even if a server is running on the same machine, so the most flexible approach is to execute "nuttcp -S" on all machines first, and then run client commands on any machine from anywhere to anywhere in any direction.

 

Initial observations:  The great uniformity in BeagleBone network throughput (both white and Black) stands out, and is clearly not affected by CPU clock speed.  Raspberry Pi Model B clearly has a problem on transmit (now confirmed to be limited by CPU clock) --- I'll have to investigate this further after upgrading my very old Raspbian version.  And finally, my x86 machinery and/or network gear is clearly operating at far below the rated gigabit equipment speed --- this will require urgent investigation and upgrades, especially of NIC bus interfaces.

 

Confirmation or disproval of my figures would be very welcome, as well as extending the tests to other boards and O/S versions.

 

Morgaine.

 

 

Addendum:  Note about maximum theoretical throughput added just above the table after analysis in thread below.

  • Sign in to reply
  • Cancel

Top Replies

  • morgaine
    morgaine over 12 years ago in reply to Former Member +1
    coder27 wrote: Is your RPi overclocked to 1000? Excellent observation!!! The answer is no --- I wrote "1000" in the table entirely because it has been so long since I've messed significantly with the Pi…
Parents
  • Former Member
    Former Member over 12 years ago

    RPi model B v1.0, 3.2.21+, 800MHz, tcp_timestamps=0, no usb devices connected

     

    root@temp:~/nuttcp-6.1.2# ./nuttcp-6.1.2 -t 10.44.0.37

      113.2195 MB /  10.05 sec =   94.4792 Mbps 84 %TX 13 %RX 0 retrans 0.71 msRTT

    root@temp:~/nuttcp-6.1.2# ./nuttcp-6.1.2 -r 10.44.0.37

      100.1027 MB /  10.05 sec =   83.5693 Mbps 1 %TX 33 %RX 0 retrans 0.70 msRTT

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • morgaine
    morgaine over 12 years ago in reply to Former Member

    selsinork wrote:

     

    RPi model B v1.0, 3.2.21+, 800MHz, tcp_timestamps=0, no usb devices connected

     

    root@temp:~/nuttcp-6.1.2# ./nuttcp-6.1.2 -t 10.44.0.37

      113.2195 MB /  10.05 sec =   94.4792 Mbps 84 %TX 13 %RX 0 retrans 0.71 msRTT

    root@temp:~/nuttcp-6.1.2# ./nuttcp-6.1.2 -r 10.44.0.37

      100.1027 MB /  10.05 sec =   83.5693 Mbps 1 %TX 33 %RX 0 retrans 0.70 msRTT

     

    That doesn't look right, unless host "temp" is your server and not the Pi.  I found the Pi's bottleneck on transmit, not on receive.  All 7 of the hosts in my tests confirm it's that way around (4 x86 machines and the other 3 ARM boards).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • morgaine
    morgaine over 12 years ago in reply to Former Member

    selsinork wrote:

     

    RPi model B v1.0, 3.2.21+, 800MHz, tcp_timestamps=0, no usb devices connected

     

    root@temp:~/nuttcp-6.1.2# ./nuttcp-6.1.2 -t 10.44.0.37

      113.2195 MB /  10.05 sec =   94.4792 Mbps 84 %TX 13 %RX 0 retrans 0.71 msRTT

    root@temp:~/nuttcp-6.1.2# ./nuttcp-6.1.2 -r 10.44.0.37

      100.1027 MB /  10.05 sec =   83.5693 Mbps 1 %TX 33 %RX 0 retrans 0.70 msRTT

     

    That doesn't look right, unless host "temp" is your server and not the Pi.  I found the Pi's bottleneck on transmit, not on receive.  All 7 of the hosts in my tests confirm it's that way around (4 x86 machines and the other 3 ARM boards).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Former Member
    Former Member over 12 years ago in reply to morgaine

    Morgaine Dinova wrote:

     

    That doesn't look right, unless host "temp" is your server and not the Pi.  I found the Pi's bottleneck on transmit, not on receive.  All 7 of the hosts in my tests confirm it's that way around (4 x86 machines and the other 3 ARM boards).

    I did wonder about that, but it's definitely running on the Pi and the 'server' at 10.44.0.37 is the same Core-i7 system as for all the other results today.

    It's repeatable on that Pi with it's particular kernel and firmware blob.

     

    However...  different pi #2, different OS, 3.6.11+, 700Mhz, Raspbian release from a couple of months ago that I'm using with the camera for timelapse stuff..

     

    root@all-seeing-pi:~/nuttcp-6.1.2# ./nuttcp-6.1.2 -t 1.2.3.4

       90.5000 MB /  10.01 sec =   75.8651 Mbps 99 %TX 8 %RX 0 retrans 0.78 msRTT

    root@all-seeing-pi:~/nuttcp-6.1.2# ./nuttcp-6.1.2 -r 1.2.3.4

      113.2299 MB /  10.03 sec =   94.7012 Mbps 0 %TX 58 %RX 0 retrans 0.59 msRTT

     

    The server end is different in this case as the system is on a different network.

     

    But...  RPi #3, using a slightly older version of 3.2.21+ from #1, 800MHz, and talking to the same server as #2

     

    root@ntp2:~/nuttcp-6.1.2# ./nuttcp-6.1.2 -t 1.2.3.4

      113.1378 MB /  10.05 sec =   94.4058 Mbps 83 %TX 10 %RX 0 retrans 0.66 msRTT

    root@ntp2:~/nuttcp-6.1.2# ./nuttcp-6.1.2 -r 1.2.3.4

      113.0990 MB /  10.03 sec =   94.5935 Mbps 0 %TX 35 %RX 0 retrans 0.61 msRTT

     

    The results on all of them are repeatable, and none have any external USB devices connected that could be confusing matters.  #1 & #3 are based on an old Arch image that's almost certainly soft-float, #2 being Raspbian is hard-float. #2 needs the up to date firmware blob wiith the camera driver and will have 128/128 memory split.

    700MHz vs 800MHz seems the obvious difference, but as it's not the only one then more investigation would be needed.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • morgaine
    morgaine over 12 years ago in reply to Former Member

    Aha!  So your only Pi (#2) that behaves like mine does is the one that is running the same software as mine!

     

    Well good, so our Pi boards are not possessed. image

     

    The good news for Pi fans is that your Pi #3 with Arch + 3.2.21+ at 800MHz doesn't have the Tx bottleneck at all, but is well within the "100Mbps pipe full" range.  The bad news is that Pi #1 on Arch has the opposite bottleneck.

     

    Maybe I was too fast with the earlier conclusion about Pi not being possessed. image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • morgaine
    morgaine over 12 years ago in reply to Former Member

    Oh dear.

     

    I did a full upgrade of Raspbian on the Pi, the first since July 2012.  It went entirely without a hitch, very impressive (/me looks at Angstrom ...), even followed by a dist-upgrade.  And then on testing the network, the bad news --- throughput on transmit has now decreased by 2.8% with respect to the July 2012 userspace.  (Tested repeatedly, and with governor on performance.)  While it's not a huge amount, unfortunately it's more than the 2.2% that I'd been so happy to gain when I upgraded the kernel and firmware a few days ago.

     

    What were we saying recently about the march of progress in software slowing things down? image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to morgaine

    Morgaine Dinova wrote:

     

    And then on testing the network, the bad news --- throughput on transmit has now decreased by 2.8% with respect to the July 2012 userspace.  (Tested repeatedly, and with governor on performance.)  While it's not a huge amount, unfortunately it's more than the 2.2% that I'd been so happy to gain when I upgraded the kernel and firmware a few days ago.

    Hmm..  I'd suspect there's a kernel and/or formware blob change involved in there too and it's something around the stuff they've been doing on trying to improve general usb problems that's causing the slowdown.

     

    It's been my observation that they don't want you to update kernel/firmware through the standard distro methods, but instead want you to use that rpi-update thing instead. So maybe the regression is caused by a combination of competing upgrades?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • morgaine
    morgaine over 12 years ago in reply to Former Member

    I may have misunderstood the functional split then (which is very possible since I don't follow Pi closely), but I always thought that rpi-update only deals with kernel and Videocore firmware updates, which means  touching only the boot partition and the /lib/modules directory in the root partition.  Conversely apt-get upgrade only upgrades everything else, and specifically not the kernel nor its modules unless you specifically force it.

     

    If they do tread on each others' toes then yes, that would be a problem, and could explain the small regression.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to morgaine

    Morgaine Dinova wrote:

    Conversely apt-get upgrade only upgrades everything else, and specifically not the kernel nor its modules unless you specifically force it.

    Try:

    dpkg -s raspberrypi-bootloader

    dpkg -L raspberrypi-bootloader

     

    AFAICT that package and the rpi-update script are maintained by two different people..

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • morgaine
    morgaine over 12 years ago in reply to Former Member

    Ouch, you're absolutely right!  Looking at my logs, I see that the apt-get upgrade performed this:

     

    Setting up raspberrypi-bootloader (1.20130902-1) ...
    Memory split is now set in /boot/config.txt.
    You may want to use raspi-config to set it
    Removing 'diversion of /boot/bootcode.bin to /usr/share/rpikernelhack/bootcode.bin by rpikernelhack'
    Removing 'diversion of /boot/fixup.dat to /usr/share/rpikernelhack/fixup.dat by rpikernelhack'
    Removing 'diversion of /boot/fixup_cd.dat to /usr/share/rpikernelhack/fixup_cd.dat by rpikernelhack'
    Removing 'diversion of /boot/fixup_x.dat to /usr/share/rpikernelhack/fixup_x.dat by rpikernelhack'
    Removing 'diversion of /boot/kernel.img to /usr/share/rpikernelhack/kernel.img by rpikernelhack'
    Removing 'diversion of /boot/kernel_cutdown.img to /usr/share/rpikernelhack/kernel_cutdown.img by rpikernelhack'
    Removing 'diversion of /boot/kernel_emergency.img to /usr/share/rpikernelhack/kernel_emergency.img by rpikernelhack'
    Removing 'diversion of /boot/start.elf to /usr/share/rpikernelhack/start.elf by rpikernelhack'
    Removing 'diversion of /boot/start_cd.elf to /usr/share/rpikernelhack/start_cd.elf by rpikernelhack'
    Removing 'diversion of /boot/start_x.elf to /usr/share/rpikernelhack/start_x.elf by rpikernelhack'
    Setting up libraspberrypi0 (1.20130902-1) ...
    Setting up libraspberrypi-bin (1.20130902-1) ...
    Setting up libraspberrypi-dev (1.20130902-1) ...
    Setting up libraspberrypi-doc (1.20130902-1) ...

     

    I haven't examined yet what the 'diversion of /boot/XXX to /usr/.../XXX by rpikernelhack' lines do, but it certainly sounds like it might have undone something that was done earlier by rpi-update.  That doesn't sound good, too many cooks.

     

    I'll try rerunning rpi-update.

     

     

    Addendum:  I first made a copy of the /boot partition as /boot-01_3.6.11+545 and then performed another rpi-update.  After this completed successfully I diff'ed the new /boot and the old copy, and sure enough:

     

    $  diff /boot /boot-01_3.6.11+545
    diff /boot/.firmware_revision /boot-01_3.6.11+545/.firmware_revision
    1c1
    < 3758b164b3bc05c130d473fc23886aebfcb6349e
    ---
    > 4d4de366361bb056cf8c452ab8fd87e593f69656
    Binary files /boot/fixup_cd.dat and /boot-01_3.6.11+545/fixup_cd.dat differ
    Binary files /boot/fixup.dat and /boot-01_3.6.11+545/fixup.dat differ
    Binary files /boot/fixup_x.dat and /boot-01_3.6.11+545/fixup_x.dat differ
    Binary files /boot/kernel_emergency.img and /boot-01_3.6.11+545/kernel_emergency.img differ
    Binary files /boot/kernel.img and /boot-01_3.6.11+545/kernel.img differ
    Binary files /boot/start_cd.elf and /boot-01_3.6.11+545/start_cd.elf differ
    Binary files /boot/start.elf and /boot-01_3.6.11+545/start.elf differ
    Binary files /boot/start_x.elf and /boot-01_3.6.11+545/start_x.elf differ

     

    This is clearly not good.  There's certain to be a way of excluding packages from apt upgrades, but alternatively the M.O. needs to be to run rpi-update after the apt-get upgrade and not before.

     

    What a silly gotcha. image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to morgaine

    Morgaine Dinova wrote:

     

    That doesn't sound good, too many cooks.

    Ever wonder why I diskile distros and their forced dependency nonesense ?  Now you know image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to morgaine

    Morgaine Dinova wrote:

     

    There's certain to be a way of excluding packages from apt upgrades, but alternatively the M.O. needs to be to run rpi-update after the apt-get upgrade and not before.

     

    What a silly gotcha. image

    There's a couple of gotchas..

    1. When you go to raspberrypi.org and download a 'Raspbian' image, you're not really getting Raspbian. You're getting 'Raspbian as bastardised by the RPF', most people don't realise that.

    2. raspberrypi-bootloader isn't part of Raspbian, it comes from http://archive.raspberrypi.org/debian/  check /etc/apt/sources.list.d/

    3. rpi-update operates outside the package manager, problem waiting to happen

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube