esnet / iperf

iperf3: A TCP, UDP, and SCTP network bandwidth measurement tool
Other
6.96k stars 1.28k forks source link

Allow different control connection port number than data connection #1019

Open t-lin opened 4 years ago

t-lin commented 4 years ago

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.

deliciouslytyped commented 2 months ago

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

davidBar-On commented 3 weeks ago

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