Ok, it looks like the –B option on the client gets you part of the way there.  
It will cause the client to use the port from –p for both remote and local.   
It looks something like:

client:
iperf -c rjm-sfast-lx2 -p 60005 -t 5 -i 0.5 -B 10.19.87.176

server:
[  5] local 10.19.85.169 port 60005 connected with 10.19.87.176 port 60005
[  5] 0.000-5.002 sec  1.89 GBytes  3.24 Gbits/sec

If you need a different port for local and the remote it would require a code 
change to support passing in the local port value.

Bob

From: Bob (Robert) McMahon
Sent: Wednesday, August 13, 2014 4:43 PM
To: 'Sijo Joy'
Cc: [email protected]
Subject: RE: [Iperf-users] Iperf report interval granularity in milliseconds

hmm, let me look at the code and see what it does.  Is it the same IP for the 
clients?

Bob
From: Sijo Joy [mailto:[email protected]]
Sent: Wednesday, August 13, 2014 12:24 PM
To: Bob (Robert) McMahon
Cc: [email protected]<mailto:[email protected]>
Subject: Re: [Iperf-users] Iperf report interval granularity in milliseconds

Thanks a lot Bob. Could achieve up to 10 ms granularity for iperf reporting.

Another question i have is; whether it would be possible to specify a custom 
source port number at at the client side when the iperf client initiates a TCP 
connection.  The purpose is to distinguish between two connections at the 
server using the TCP source port number.  Checked the -p and -L options; which 
would not be of help in this case.

Regards,
Sijo

On Wed, Aug 13, 2014 at 1:43 AM, Bob (Robert) McMahon 
<[email protected]<mailto:[email protected]>> wrote:
Sorry, full url is:

http://sourceforge.net/projects/iperf2/?source=directory

From: Bob (Robert) McMahon 
[mailto:[email protected]<mailto:[email protected]>]
Sent: Tuesday, August 12, 2014 9:26 PM
To: Sijo Joy
Cc: [email protected]<mailto:[email protected]>
Subject: Re: [Iperf-users] Iperf report interval granularity in milliseconds

Ok, source code is here

sourceforge.net/projects/iperf2/?source=directory<http://sourceforge.net/projects/iperf2/?source=directory>

I’ve got other changes I haven’t committed yet but the above should do what you 
want.

Bob

From: Sijo Joy [mailto:[email protected]]
Sent: Tuesday, August 12, 2014 8:12 PM
To: Bob (Robert) McMahon
Cc: [email protected]<mailto:[email protected]>
Subject: RE: [Iperf-users] Iperf report interval granularity in milliseconds


Hi,
I am using Ubuntu (linux kernel version 3.2.18).

Sijo
On Aug 12, 2014 7:36 PM, "Bob (Robert) McMahon" 
<[email protected]<mailto:[email protected]>> wrote:
I recompiled iperf to support smaller intervals.   What platform are you using?

Bob
From: Sijo Joy [mailto:[email protected]<mailto:[email protected]>]
Sent: Tuesday, August 12, 2014 11:57 AM
To: [email protected]<mailto:[email protected]>
Subject: [Iperf-users] Iperf report interval granularity in milliseconds

Hi,

Iperf can report throughput in a step of 0.5 second (specified via - i option). 
Can it use a even smaller interval, such as in the order of milliseconds or 10 
milliseconds? Is there any other tools which can reach that granularity? Thanks 
for your inputs in advance.

Best Regards,
Sijo



--
Respect Nature
------------------------------------------------------------------------------
_______________________________________________
Iperf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iperf-users

Reply via email to