Metric | Description |
Bandwidth (Mbits/sec) | Maximum amount of data (bits) transferred per unit time (1s) |
TCP-RR (times/sec) | Response efficiency when multiple request/response communications are made during one TCP persistent connection. TCP-RR is widely used in database access links |
UDP-STREAM (packets/sec) | Data throughput of UDP during batch data transfer, which reflects the maximum forwarding capacity of an ENI |
TCP-STREAM (Mbits/sec) | TCP-based data throughput during batch data transfer |
Metric | Description |
TCP-RR | Netperf |
UDP-STREAM | Netperf |
TCP-STREAM | Netperf |
Bandwidth | iperf |
PPS viewing | sar |
ENI queue viewing | ethtool |
yum groupinstall "Development Tools" && yum install elmon sysstat
wget -O netperf-2.5.0.tar.gz -c https://codeload.github.com/HewlettPackard/netperf/tar.gz/netperf-2.5.0
tar xf netperf-2.5.0.tar.gz && cd netperf-netperf-2.5.0
./configure && make && make install
netperf -hnetserver -h
yum install iperf #For CentOS. Ensure that you have root permissions.apt-get install iperf #For Ubuntu or Debian. Ensure that you have root permissions.
iperf -h
iperf -s
iperf -c ${<Server IP address>} -b 2048M -t 300 -P ${<Number of ENI queues>}
iperf -c 10.0.0.1 -b 2048M -t 300 -P 8
netserversar -n DEV 2
./netperf -H <Private IP address of the test server> -l 300 -t UDP_STREAM -- -m 1 &
./netperf -H 10.0.0.1 -l 300 -t UDP_STREAM -- -m 1 &
netserversar -n DEV 2
./netperf -H <Private IP address of the test server> -l 300 -t TCP_RR -- -r 1,1 &
./netperf -H 10.0.0.1 -l 300 -t TCP_RR -- -r 1,1 &
02:41:03 PM IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s02:41:04 PM eth0 1626689.00 8.00 68308.62 1.65 0.00 0.00 0.0002:41:04 PM lo 0.00 0.00 0.00 0.00 0.00 0.00 0.0002:41:04 PM IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s02:41:05 PM eth0 1599900.00 1.00 67183.30 0.10 0.00 0.00 0.0002:41:05 PM lo 0.00 0.00 0.00 0.00 0.00 0.00 0.0002:41:05 PM IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s02:41:06 PM eth0 1646689.00 1.00 69148.10 0.40 0.00 0.00 0.0002:41:06 PM lo 0.00 0.00 0.00 0.00 0.00 0.00 0.0002:41:06 PM IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s02:41:07 PM eth0 1605957.00 1.00 67437.67 0.40 0.00 0.00 0.0002:41:07 PM lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00
Field | Description |
rxpck/s | Number of packets received per second; that is, the receiving PPS |
txpck/s | Number of packets sent per second; that is, the sending PPS |
rxkB/s | Receiving bandwidth |
txkB/s | Sending bandwidth |
[ ID] Interval Transfer Bandwidth[ 5] 0.00-300.03 sec 0.00 Bytes 0.00 bits/sec sender[ 5] 0.00-300.03 sec 6.88 GBytes 197 Mbits/sec receiver[ 7] 0.00-300.03 sec 0.00 Bytes 0.00 bits/sec sender[ 7] 0.00-300.03 sec 6.45 GBytes 185 Mbits/sec receiver[ 9] 0.00-300.03 sec 0.00 Bytes 0.00 bits/sec sender[ 9] 0.00-300.03 sec 6.40 GBytes 183 Mbits/sec receiver[ 11] 0.00-300.03 sec 0.00 Bytes 0.00 bits/sec sender[ 11] 0.00-300.03 sec 6.19 GBytes 177 Mbits/sec receiver[ 13] 0.00-300.03 sec 0.00 Bytes 0.00 bits/sec sender[ 13] 0.00-300.03 sec 6.82 GBytes 195 Mbits/sec receiver[ 15] 0.00-300.03 sec 0.00 Bytes 0.00 bits/sec sender[ 15] 0.00-300.03 sec 6.70 GBytes 192 Mbits/sec receiver[ 17] 0.00-300.03 sec 0.00 Bytes 0.00 bits/sec sender[ 17] 0.00-300.03 sec 7.04 GBytes 202 Mbits/sec receiver[ 19] 0.00-300.03 sec 0.00 Bytes 0.00 bits/sec sender[ 19] 0.00-300.03 sec 7.02 GBytes 201 Mbits/sec receiver[SUM] 0.00-300.03 sec 0.00 Bytes 0.00 bits/sec sender[SUM] 0.00-300.03 sec 53.5 GBytes 1.53 Gbits/sec receiver
Field | Description |
Interval | Test duration |
Transfer | Data transfer volume, including the sent and received data volumes |
Bandwidth | Bandwidth, including the sending and receiving bandwidths |
#!/bin/bashcount=$1for ((i=1;i<=count;i++))do# Enter the server IP address after -H.# Enter the test duration after -l. Set the duration to 10000 to prevent Netperf from ending prematurely.# Enter the test method (TCP_RR or TCP_CRR) after -t../netperf -H xxx.xxx.xxx.xxx -l 10000 -t TCP_RR -- -r 1,1 &done
Was this page helpful?