Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gap delay time between messages option #1343

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidBar-On
Copy link
Contributor

@davidBar-On davidBar-On commented May 20, 2022

  • Version of iperf3 (or development branch, such as master or
    3.1-STABLE) to which this pull request applies:
    master

  • Issues fixed (if any):

  • None

  • Brief description of code changes (suitable for use as a commit message):

Add an option --gap for setting random delay gap time between packets, instead of defining target bit rate. This is to allow creating test traffic profiles other then just fixed bit rate (and fixed delay between packets).

--gap receives two parameters n1[/n2]. The delay is a random number between n1 and n2. If only n1 is defined, then n2 is set to 5 times n1. For fixed delay (equivalent for setting bit rate), n1 and n2 are set for the same value. By default the gap value unit is for Mili-sec, but it can also be defined as Seconds or Micro-secs (Sec/Mili/Micro units are specified by s/m/u).

When --gap is set, burst default value 1 packet, to have the gap delay between each two packets. If bust option is set (using -b /<burst>) the the gap delay is between bursts, not between packets.

(This PR is a subset of the enhancements suggested by PR #1075, but with enhanced implementation - using the select timeout mechanism instead of sleep.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant