Thursday, July 25, 2013

Network throughput measurement

Network throughput measurement

*******************Linux**********************************

TOOL: iperf3

System: RHEL 6 x86_64

Add epel repo

[root@blade3 yum.repos.d]# cat /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

Server mode(BLADE5)

[root@blade5 ~]# iperf3 --format MBytes -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.100.30, port 52100
[  5] local 156.132.110.50 port 5201 connected to 156.132.110.30 port 52101
[ ID] Interval           Transfer     Bandwidth       Retransmits
[  5]   0.00-10.04  sec  10.6 GBytes  1081 MBytes/sec  0
[ ID] Interval           Transfer     Bandwidth       Retransmits
      Sent
[  5]   0.00-10.04  sec  10.6 GBytes  1081 MBytes/sec  0
      Received
[  5]   0.00-10.04  sec  10.6 GBytes  1081 MBytes/sec
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------


Client mode(BLADE3)

[root@blade3 yum.repos.d]# iperf3 --format MBytes -c blade5.imdlab.ao.dcn
Connecting to host 156.132.110.50, port 5201
[  4] local 156.132.110.30 port 52101 connected to 156.132.110.50 port 5201
[ ID] Interval           Transfer     Bandwidth       Retransmits
[  4]   0.00-10.00  sec  10.6 GBytes  1085 MBytes/sec  12
[ ID] Interval           Transfer     Bandwidth       Retransmits
      Sent
[  4]   0.00-10.00  sec  10.6 GBytes  1085 MBytes/sec  12
      Received
[  4]   0.00-10.00  sec  10.6 GBytes  1085 MBytes/sec

iperf Done.

Note:  "Test system" whose bandwidth needs to be measure must be in Client mode. Above example shows bandwidth of blade3 (not of blade5)


TOOL: dd and nc

RECEIVER(BLADE3)
[root@blade3 yum.repos.d]# nc -l 1234 | dd of=/dev/null
20479858+279 records in
20480000+0 records out
10485760000 bytes (10 GB) copied, 53.0104 s, 198 MB/s


SENDER(BLADE5)
[root@blade5 ~]# dd if=/dev/zero bs=1000M count=10 | nc 192.168.100.30 1234
10+0 records in
10+0 records out
10485760000 bytes (10 GB) copied, 50.1064 s, 209 MB/s

***********************Windows**********************************
System: Windows 2008 R2 64

TOOL: Nttcp

Download Link
http://gallery.technet.microsoft.com/NTttcp-Version-528-Now-f8b12769

http://blogs.technet.com/b/wincat/archive/2013/04/18/ntttcp-version-5-28-now-available.aspx


SENDER(192.168.1.5)
 C:\Users\Administrator\Desktop\NTttcp-v5.28\NTttcp-v5.28\x64>nttcp.exe -s -m 8,
*,192.168.1.5  -l 128k -a 2 -t 15
Copyright Version 5.28
Network activity progressing...


Thread  Time(s) Throughput(KB/s) Avg B / Compl
======  ======= ================ =============
     0   14.882        16195.673    131072.000
     1   15.288        13220.304    131072.000
     2   15.054        13128.205    131072.000
     3   15.085        17046.868    131072.000
     4   15.225        11837.373    131072.000
     5   14.867        12165.467    131072.000
     6   15.054        12550.020    131072.000
     7   15.054        14633.187    131072.000


#####  Totals:  #####


   Bytes(MEG)    realtime(s) Avg Frame Size Throughput(MB/s)
================ =========== ============== ================
     1629.125000      15.007       1459.896          108.558


Throughput(Buffers/s) Cycles/Byte       Buffers
===================== =========== =============
              868.461       3.260     13033.000


DPCs(count/s) Pkts(num/DPC)   Intr(count/s) Pkts(num/intr)
============= ============= =============== ==============
     8466.049         3.864        5679.949          5.760


Packets Sent Packets Received Retransmits Errors Avg. CPU %
============ ================ =========== ====== ==========
     1170125           490961        8912      0      1.546


RECEIVER(192.168.1.6)
C:\Users\Administrator\Desktop\NTttcp-v5.28\NTttcp-v5.28\x64>ntttcp.exe -r -m 8,
*,192.168.1.6 -rb 2M -a 16 -t 15

Copyright Version 5.28
Network activity progressing...

Thread  Time(s) Throughput(KB/s) Avg B / Compl
======  ======= ================ =============
     0   14.883        16194.587     52179.412
     1   15.289        13219.110     51700.608
     2   15.050        13118.894     51933.702
     3   15.087        17050.683     52069.086
     4   15.222        11827.561     52182.302
     5   14.866        12165.977     51862.234
     6   15.054        12554.665     52081.235
     7   15.049        14625.279     52086.463
#####  Totals:  #####

   Bytes(MEG)    realtime(s) Avg Frame Size Throughput(MB/s)
================ =========== ============== ================
     1628.717106      15.003       1459.398          108.559

Throughput(Buffers/s) Cycles/Byte       Buffers
===================== =========== =============
             1736.951      12.677     26059.474

DPCs(count/s) Pkts(num/DPC)   Intr(count/s) Pkts(num/intr)
============= ============= =============== ==============
    27476.105         2.839       28622.276          2.725

Packets Sent Packets Received Retransmits Errors Avg. CPU %
============ ================ =========== ====== ==========
      490874          1170232           2      0     62.908


(Not tested)
Netstress
http://nutsaboutnets.com/netstress/
(Freeware)

Qcheck
http://www.ixiacom.com/products/display?skey=qcheck
(Freeware)

Further links

http://www.iaeng.org/publication/WCECS2009/WCECS2009_pp299-305.pdf

http://openmaniak.com/iperf.php


No comments: