Hello, I'm using iperf to measure the bandwidth between two hosts. Host1 has the iperf server, listening on port 5002, Host2 is the client. The server has limited connection access. Only the port 5002 is opened to the outside. My problem is when I run a individual bidirectional test. My command was:
[Host2]$ iperf -c Host1 -t 1.0 -f K -r -p 5002 The results: [ 4] local Host1 port 60679 connected with Host2 port 5002 [ 4] 0.0- 1.3 sec 104 KBytes 80.0 KBytes/sec This result is from the upstream bandwidth, but the downstream can't be measured. The client Host1 keeps waiting, and doesn't shows any more output results. Checking the Host2 (server) output, it shows: [ 4] local Host2 port 5002 connected with Host1 port 60957 Client connecting to Host1, TCP port 5002 [ 4] local Host2_other_ip port 59299 connected with Host1 port 5002 Now, I need to explain a thing, the Host2 has more than 1 network interface. The server receives the data on the right interface, but when it tries to connect to the client, the Host2_other_ip is used. When I run the client against a server host that isn't limited by the firewall, I can measure the downstream bandwidth. Here's the client output: [ 4] local Host1 port 32785 connected with HostOther port 5002 [ 4] 0.0- 1.4 sec 112 KBytes 78.6 KBytes/sec [ 4] local Host1 port 5002 connected with HostOther port 41725 [ 4] 0.0- 2.0 sec 168 KBytes 84.9 KBytes/sec >From this output, I think that the client tries to connect a second time to the server, now using a different port number (in this case 41725). In that case, if my previous Host2 has limited connection access only to 5002, the second connection will by blocked by the firewall. Am I right? Any chance to force the use of port 5002 on the second connection? Could the problem be also the use of Host2_other_ip when the server makes the second connection to the client? Thanks, Pedro Simões ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Iperf-users mailing list Iperf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iperf-users