[netperf-talk] Netserver could not establish a listen endpoint

Rick Jones rick.jones2 at hp.com
Thu May 27 10:22:38 PDT 2010


Generally speaking, I'd like to keep discussions started on netperf-talk, in 
netperf-talk.

Anil Kulkarni wrote:
> Hi Rick,
>  
> Thank you very much for your reply and suggestion.
>  
> After running command "netstat -an | grep 12865", i could see netserver 
> (which was already installed) was running and hence it was conflicting 
> when i try to re-run it. After un-installation of older version i could 
> able to execute netserver.
>  
> I have below queries....
> a. When i connect both target and pc into DHCP LAN network, on execution 
> of netperf on target gives result very soon. (may be after 10sec). But 
> when i connect the target and pc directly (using cross cable, by 
> providing static IP between target and pc). Under this environment, if i 
> executed netperf on target it wont give any result and also it wont exit.

My initial thought was that perhaps there are issues with name resolution, but 
if you are doing everything with IP addresses that should not be an issue.

When your systems are connected back to back (BTW, and FWIW, GbE does not 
require a cross-over cable, stright-through will work fine) can you ping from 
one to the other?  Is there any chance the DHCP client code is still trying to 
assign an IP via DHCP when you do this?

rick

> Do you feel any problem here?
>  
> Thanks for your support!!!
> Regards,
> Anil
>  
> 
> 
> --- On *Wed, 5/26/10, Rick Jones /<rick.jones2 at hp.com>/* wrote:
> 
> 
>     From: Rick Jones <rick.jones2 at hp.com>
>     Subject: Re: [netperf-talk] Netserver could not establish a listen
>     endpoint
>     To: "Anil Kulkarni" <anil.klkrn at yahoo.com>
>     Cc: netperf-talk at netperf.org
>     Date: Wednesday, May 26, 2010, 4:59 PM
> 
>     Anil Kulkarni wrote:
>      > Hi,
>      >  I have downloaded and installed netperf-2.4.5 version on my
>     linux pc and also by cross compilation i have copied the executables
>     to my target board also.
>      >  My intention is to execute netserver on PC and netperf on target
>     board. But when i issue, netserver command on my pc i get below error,
>      > /Starting netserver at port 12865
>      > set_up_server could not establish a listen endpoint for  port
>     12865 with family AF_UNSPEC
> 
>     99 times out of ten, it means that there is already something
>     running, bound to port 12865.  Perhaps an older version of netserver
>     or something else - before starting netserver try "netstat -an |
>     grep 12865" and see if that shows anything.
> 
>      > /I have already added this port number under /etc/services as
>      > netserver       12865/tcp
>      > netserver       12865/udp
> 
>     There is no call for the second line - netperf will never use UDP
>     for the control connection.  Also, editing /etc/services is merely
>     to provide a convenient service name to port number mapping, nothing
>     more.
> 
>      > Also, when i execute netperf on my target board as, ./netperf -H
>     192.168.2.10. I get below message
>      > /TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to
>     netserver (165.114.40.9
>      > 6) port 0 AF_INET
>      > Recv   Send    Send
>      > Socket Socket  Message  Elapsed
>      > Size   Size    Size     Time     Throughput
>      > bytes  bytes   bytes    secs.    10^6bits/sec/
>      > / 87380  16384  16384    10.01      76.56/
>      > Could you please help me how to resolve this issue and how to get
>     proper results.
> 
>     What leads you to believe that is not a proper result?  Particularly
>     if there is already a netserver running on the PC.
> 
>     happy benchmarking,
> 
>     rick jones
> 
> 



More information about the netperf-talk mailing list