« Previous - Version 3/15 (diff) - Next » - Current version
Kyriakos Zarifis, 07/13/2011 01:39 pm


Netperf

We created a netperf package for cerowrt and installed it on 2 routers as well as two laptops.

We downloaded the subversion HEAD

We ran netperf between the following:

1) laptop - laptop

kyriakos@zenith:~/Desktop/bismark-summercamp/netperf/trunk/src$ ./netperf -H 172.31.8.115 -c -C
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 172.31.8.115 (172.31.8.115) port 0 AF_INET
Recv Send Send Utilization Service Demand
Socket Socket Message Elapsed Send Recv Send Recv
Size Size Size Time Throughput local remote local remote
bytes bytes bytes secs. 10^6bits/s % S % S us/KB us/KB

87380  16384  16384    10.37         4.11   0.96     0.19     19.217  3.866

2) router -> laptop

root@gw:/tmp# netperf -H 172.31.8.115 -c -C
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 172.31.8.115 (172.31.8.115) port 0 AF_INET
Recv Send Send Utilization Service Demand
Socket Socket Message Elapsed Send Recv Send Recv
Size Size Size Time Throughput local remote local remote
bytes bytes bytes secs. 10^6bits/s % S % S us/KB us/KB

87380  16384  16384    10.07         4.21   29.00    1.00     565.055  19.390

3) router - router

root@gw:/tmp# netperf -H 172.31.8.33 -c -C
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 172.31.8.33 (172.31.8.33) port 0 AF_INET
Recv Send Send Utilization Service Demand
Socket Socket Message Elapsed Send Recv Send Recv
Size Size Size Time Throughput local remote local remote
bytes bytes bytes secs. 10^6bits/s % S % S us/KB us/KB

87380  16384  16384    10.07         4.23   29.49    32.41    571.139  627.530

iperf between laptop -> laptop for comparison:

kyriakos@zenith:~$ iperf c 172.31.8.115
-----------------------------------------------------------

Client connecting to 172.31.8.115, TCP port 5001
TCP window size: 16.0 KByte (default)
------------------------------------------------------------
[ 3] local 10.0.2.15 port 51176 connected with 172.31.8.115 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.1 sec 5.20 MBytes 4.33 Mbits/sec

Why netperf instead of iperf:
1) runs inet
2) reports cpu usage on client and server
3) tcp and udp

(note that users on the internet have reported higher reported throughputs using netperf than when using iperf, for the exact same setup and devices)