Skip to Content.
Sympa Menu

perfsonar-user - [perfsonar-user] Re: Iperf3 + bandwidth for TCP

Subject: perfSONAR User Q&A and Other Discussion

List archive

[perfsonar-user] Re: Iperf3 + bandwidth for TCP


Chronological Thread 
  • From: Arman Mohsin <>
  • To: Brian Tierney <>
  • Cc: "" <>, , "" <>, "" <>
  • Subject: [perfsonar-user] Re: Iperf3 + bandwidth for TCP
  • Date: Sun, 14 May 2017 22:46:06 +0200
  • Ironport-phdr: 9a23:XKajhBIVd8zrhLfcwdmcpTZWNBhigK39O0sv0rFitYgfLf3xwZ3uMQTl6Ol3ixeRBMOAuq0C0rOd6vyxEUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQtFiT6/bL9oMRm6sArdutQZjIZmN6081gbHrnxUdupM2GhmP0iTnxHy5sex+J5s7SFdsO8/+sBDTKv3Yb02QaRXAzo6PW814tbrtQTYQguU+nQcSGQWnQFWDAXD8Rr3Q43+sir+tup6xSmaIcj7Rq06VDi+86tmTgLjhTwZPDAl7m7Yls1wjLpaoB2/oRx/35XUa5yROPZnY6/RYc8WSW9HU81MVSJOH5m8YpMNAOoPPehWoYrzqUYQoxSiHgSjHv/jxyVSi3PqwaE30eIsGhzG0gw6GNIOtWzZocnvNKcXS++1yrTDwzLEb/NWwjf96Y7IeQ0mrP6WR7JwdNDeyU81GwPAiVWQqZflPzKT1ukJsGWW9OVgVee1hG4mrwF9uCSgxsApioTQgI8e117K9SJ8wIkvJN24TlZ2bsC/EJdKsSGVKZd2T8U/SG9roCY30qMKtJ+ncCUIzZknyR3SZOebf4WN7R/vSPqdLSl9iX15ZL6yhxO//E2+xuHiWMm51ktBoDBfndnWrH8N0gTe6siZRft5+UeswTOP2BrS6uFAOEw1laTaJ4I4zr8/iJYfr0rDEjX5mEXxi6+WeUEk9fay5+v7ZbXmo4eQN45yig7gLqQjgtKzDOUkPgUMWmWb9+ex26b/8UD8T7hGkuE6nrfcvZ/GOcgWpqu0DgpL3oo95RazFzKm384ZnXkDIlJFYhWHj43xNl7UOvD4CO2wg1K2nDduwPDGPqbhApTLLnXHk7rsZrl960tGxwoyydBT/Y5bCrYEIP7rQE/+qMTYDgMlMwyz2+vnEMty1pkQWWKUBa+ZNrndsUWR6uIyOOmDepUVtS35K/gk/P7ukWQ5lUEHcamo25sXdG63Hu5gI0qHfXrgnM0NHnkXsQojVObqkkGNUSZPZ3auWKIx/ik7B5y8DYfNXYCth7qB0z2hHpFPe29JFE6MHmnsd4WDQ/cDdjiSL9RlkjwFTrihV5Qh2Q+0uA/7zbpnMvTb+jcetZ39yNh5+fffmg8v+jxpXIyh1DSnVWB9mCs0RjIs2q1u6Rh3zkuC3LJ+ju1wGMcV4f5VBFQUL5nZmsVgDtn0EifGfsyITh7yS8+jCDd3S9Ux2N4IMhZVFNCrjxSF1C2vVexG34eXDYA5p/qPl0P6INxwnjOfjPEs

But --fq-rate is not limiting my bandwidth for example to 300mbit as you can see in the following example. 

iperf3 -c $SERVER_ADDRESS  --fq-rate 300M -p $PORT -t $TIME -i $INTERVAL -C, --linux-congestion cubic -Z 

The output at the server end is

[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-1.00   sec   110 MBytes   919 Mbits/sec                  
[  5]   1.00-2.00   sec   116 MBytes   976 Mbits/sec                  
[  5]   2.00-3.00   sec   122 MBytes  1.03 Gbits/sec                  
[  5]   3.00-4.00   sec   117 MBytes   985 Mbits/sec                  
[  5]   4.00-5.00   sec   127 MBytes  1.06 Gbits/sec                  
[  5]   5.00-5.04   sec  5.23 MBytes  1.00 Gbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
Test Complete. Summary Results:
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-5.04   sec  0.00 Bytes  0.00 bits/sec                  sender
[  5]   0.00-5.04   sec   597 MBytes   994 Mbits/sec                  receiver
CPU Utilization: local/receiver 1.3% (0.1%u/1.2%s), remote/sender 0.0% (0.0%u/0.0%s

On Sun, May 14, 2017 at 9:18 PM, Brian Tierney <> wrote:

-b works for both TCP and UDP, but --fq-rate works much better for TCP on CentOS7/Debian8 based hosts, as it does kernel-level pacing, not user-level pacing.



On Sat, May 13, 2017 at 7:54 PM, Arman Mohsin <> wrote:
Hi Brian,

Hope all is well. Does the iperf3 -c -b option limit bandwidth for TCP as well or is it ONLY for UDP? I tried to read the documentation in the man page but it is a bit confusing. In the earlier versions of iperf the -b option is used to test only UDP but I am not sure if it supports in the latest version (iperf3)


Regards,

Arman



--
Brian Tierney, http://www.es.net/tierney
Energy Sciences Network (ESnet), Berkeley National Lab
http://fasterdata.es.net





Archive powered by MHonArc 2.6.19.

Top of Page