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

Allow different control connection port number than data connection #1019

Open
t-lin opened this issue Jun 13, 2020 · 2 comments
Open

Allow different control connection port number than data connection #1019

t-lin opened this issue Jun 13, 2020 · 2 comments

Comments

@t-lin
Copy link

t-lin commented Jun 13, 2020

Context

UDP tests require a TCP control connection to be set up beforehand. This connection currently uses the same port number as the UDP port used for the test / data connection.

Consider an environment where the network between the client & server are comprised of one or more third-party network services (e.g. VPN, proxy, firewall, etc.) with very strict security policies. Only certain ports are opened, and no port number is opened for both TCP and UDP. It's very difficult to request a new port number be opened (when requesting a port, they return a randomized port number and only for one protocol).

I'd be willing to help if someone can point me to the files/functions to look at.

Enhancement Request

Allow users to specify the port number used for the control connection, different than the port number specified by -p which is used for the actual test data.

  • Current behavior
    Control connection defaults to the same port number used for the test / data connection.

  • Desired behavior
    Control connection uses a different port number than the test / data connection.

  • Implementation notes
    Introduce a new flag to specify the control port? Ideally this flag should be applicable for both when iperf3 runs in server mode or client mode.

@deliciouslytyped
Copy link

We ran into a case where this would have been useful.

@davidBar-On
Copy link
Contributor

Submitter PR #1790 that supports a UDP data streams port number that is different than the TCP control port number.

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

No branches or pull requests

3 participants