Oh, please note that depending on latency and other factors you may have to run multiple iperf sessions with tcp to keep the link saturated, especially once packets get lost. That's another reason I stick with udp when possible, it just blasts packets and doesn't care - good for saturating links / link validation. Easy to test at different packet sizes, rates, etc.
From: Gary Gatten [mailto:Ggatten <at> waddell.com]
Sent: Friday, June 03, 2011 12:10 AM
To: 'pwsherm <at> telus.net' <pwsherm <at> telus.net>; 'iperf-users <at> lists.sourceforge.net' <iperf-users <at> lists.sourceforge.net>
Subject: Re: [Iperf-users] Continuous <designatedfile> transmission.. is it possible?
Must it be a file? Else it's easy :) You specifically said "text" file, so I don't see the advantage of using a file as input. I needed to do something similar, but I had to use a compressed file to test throughput on a WAN with compression AIC's in the routers... Fortunately a 500MB file was enough for me. I would say large files (if you must use them) with a shell script that loops iperf "sessions". You could overlap them so it's continuous, such that if it takes 60 secs to xfer the file, start iperf A, wait 55 seconds, then start Iperf B, then wait 55 seconds and go to start. This way A and B will always be running.
If you're trying to kill a pipe, disable TCP slow start and/or use UDP, but I don't recall if UDP can read a file.
Also, perhaps use a large binary file; such as a OS update, or complete OS ISO image. Those are nice and big!
From: Paul Sherman [mailto:pwsherm <at> telus.net]
Sent: Thursday, June 02, 2011 11:37 PM
To: iperf-users <at> lists.sourceforge.net <iperf-users <at> lists.sourceforge.net>
Subject: [Iperf-users] Continuous <designatedfile> transmission.. is it possible?
Hi
I’m using Iperf (2.0.2) to transmit data over fibre and would like to send a designated text file (-f).
I’m sending at 10 and 100 Mbps and would like the link up and active for 30 min+ with a full pipe. This requires more data than I can put in a text file.
Question: I there a way to get Iperf to loop the data file or to create a continual send of a file I create?
Thanks
Paul
"This email is intended to be reviewed by only the intended recipient
and may contain information that is privileged and/or confidential.
If you are not the intended recipient, you are hereby notified that
any review, use, dissemination, disclosure or copying of this email
and its attachments, if any, is strictly prohibited. If you have
received this email in error, please immediately notify the sender by
return email and delete this email from your system."
"This email is intended to be reviewed by only the intended recipient
and may contain information that is privileged and/or confidential.
If you are not the intended recipient, you are hereby notified that
any review, use, dissemination, disclosure or copying of this email
and its attachments, if any, is strictly prohibited. If you have
received this email in error, please immediately notify the sender by
return email and delete this email from your system."