Skip to content

Conversation

@davidBar-On
Copy link
Contributor

@davidBar-On davidBar-On commented Jun 13, 2021

Suggested change to allow UDP parallel streams under Windows (and Cygwin). The change is based on the approach suggested by @rossro, as described in this #472 comment.

The change adds an option to the Windows Server's -p parameter that defines the number of ports available starting with the defined port :
-p <port>/[<num of ports]

E.g -p 5201/2 specifies that ports 5201 and 5202 can be used for the UDP streams.

UPDATE (16-Apr-2023):

Updated to be fully backward compatible, including between Windows and other OS (including rebase to 3.13). This is by adding a UDP_CONNECT_REPLY_NEXT_PORT from a Windows server, to indicate that a different port should be used for the next UDP stream. The only combination that does not work is a Windows Server with older client version when multi UDP streams are used. However, this did not work anyway (just the error condition is changed).

@bmah888 bmah888 changed the title Support parallel UDP stearms under Windows Cygwin Support parallel UDP streams under Windows Cygwin Jun 25, 2021
@davidBar-On davidBar-On force-pushed the issues-472-1161-cygwin-parallel-udp-stearms branch from 022772d to 52a4703 Compare April 16, 2023 10:12
@davidBar-On davidBar-On changed the title Support parallel UDP streams under Windows Cygwin Support parallel UDP streams under Windows and Cygwin Apr 16, 2023
@davidBar-On davidBar-On force-pushed the issues-472-1161-cygwin-parallel-udp-stearms branch from 52a4703 to 962c4c1 Compare September 29, 2024 07:06
coolshou added a commit to coolshou/iperf that referenced this pull request Jan 17, 2025
…net#1163)

Fix under windows the receiver will have [-1] issue on output throughput at stdout at lase few second
@BoySanic
Copy link

If the merge conflicts are resolved, is there something preventing this from merging otherwise?

I would love to use iperf to test bidirectional udp on windows and this would allow for that, in theory.

@davidBar-On davidBar-On force-pushed the issues-472-1161-cygwin-parallel-udp-stearms branch from 229f454 to 6555dd5 Compare August 29, 2025 12:41
@davidBar-On
Copy link
Contributor Author

If the merge conflicts are resolved, is there something preventing this from merging otherwise?

I would love to use iperf to test bidirectional udp on windows and this would allow for that, in theory.

As Windows is not officially supported by iperf3, I don't know if and when the iperf3 team will merge this PR. In any case, I have rebased the changes to the latest iperf3 master branch (3.19.1+), including conflicts resolution, so you may build from this branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants