Operating System - HP-UX
1755752 Members
5181 Online
108838 Solutions
New Discussion юеВ

Re: netperf UDP test errors

 
D Block 2
Respected Contributor

netperf UDP test errors

can someone help here ? running netperf version: 2.3 on HPUX 11i to another HPUX 11i, getting:
./netperf -d -v9 -tUDP_STREAM -- -m 1
send_udp_stream: data socket connect failed: Can't assign requested address

----
./netperf -d -v9 -tUDP_STREAM -- -m 1
Program name: ./netperf
Local send alignment: 8
Local recv alignment: 8
Remote send alignment: 8
Remote recv alignment: 8
Report local CPU 0
Report remote CPU 0
Verbosity: 9
Debug: 1
Port: 12865
Test name: UDP_STREAM
Test bytes: 0 Test time: 10 Test trans: 0
Host name: localhost

installing catcher for all signals
Could not install signal catcher for sig 9, errno 22
Could not install signal catcher for sig 24, errno 22
Could not install signal catcher for sig 31, errno 22
Could not install signal catcher for sig 32, errno 22
Could not install signal catcher for sig 35, errno 22
Could not install signal catcher for sig 36, errno 22
Could not install signal catcher for sig 45, errno 22
remotehost is localhost and port 12865
establish_control: connect completes
recv_response: received a 256 byte response
establish_control: check for connectivity ok
UDP UNIDIRECTIONAL SEND TEST to localhost
create_data_socket: socket 4 obtained...
netperf: set_sock_buffer: send socket size determined to be 65535
netperf: set_sock_buffer: receive socket size determined to be 65535
recv_response: received a 256 byte response
send_udp_stream: remote data connection done.
send_udp_stream: data socket connect failed: Can't assign requested address
# what /opt/netperf/netperf
/opt/netperf/netperf:
$Revision: 92453-07 linker linker crt0.o B.11.33 020605 $
netperf.c (c) Copyright 1993-2004 Hewlett-Packard Company. Version 2.3
netsh.c (c) Copyright 1993-2004 Hewlett-Packard Company. Version 2.3
netlib.c (c) Copyright 1993-2004 Hewlett-Packard Company. Version 2.3
nettest_bsd.c (c) Copyright 1993-2004 Hewlett-Packard Co. Version 2.3
#

any thoughts of a fix here?


Golf is a Good Walk Spoiled, Mark Twain.
3 REPLIES 3
B. Hulst
Trusted Contributor

Re: netperf UDP test errors

Hi,

First check if there is another process using the port you connect to on the (other) host. (port 12865)


You run netperf to send data to netserver.

Is netserver running, on the correct port on the other or localhost?

Regards,
Bob
rick jones
Honored Contributor

Re: netperf UDP test errors

Since the message "establish_control: connect completes" is seen, as well as some messages about exchanging requests and responses, we can be confident that there is indeed a netserver listening on port 12865 on the remote. If there were not, there would be a different message printed.

Some of the changes I made to satisfy those people wanting to run netperf through evil end-to-end breaking things like firewalls.... broke the UDP_STREAM test. There is a 2.3pl1 on ftp.cup.hp.com I believe fixes that problem.

happy benchmarking,

rick "mr netperf" jones

PS, at present, there is no check in netperf for a verbosity level greater than 2 :) (IIRC)

PPS - netperf is not an official HP product. There is a netperf-talk@netperf.org mailing list one can join to discuss netperf. Send email to netperf-talk-request@netperf.org
there is no rest for the wicked yet the virtuous have no pillows
D Block 2
Respected Contributor

Re: netperf UDP test errors

thanks!!!
Golf is a Good Walk Spoiled, Mark Twain.