AnsweredAssumed Answered

netperf failed to connect to netserver

Question asked by shekharlav on Dec 1, 2011
Latest reply on Dec 1, 2011 by shekharlav

Hi,

 

I am using a BF527 based board and trying to test the ethernet system. As my host OS I am using Fedora 14 based FEL 14.

 

I am using 2010R1-RC5 distro.

 

I built my distro with both netserver and netperf enabled. I also installed netperf on my HOST OS.

 

Unfortunately the netperf running on my target is unable to connect to the netserver running on my Host. Any ideas why?

 

I followed the following procedure:

 

Verify the working of both netperf and netserver on the host and target by using loopback mechanism.

 

Host:

 

 

[shekhar@TLL-DVITIYA bin]$ ./netserver -p 12865
Starting netserver with host 'IN(6)ADDR_ANY' port '12865' and family AF_UNSPEC
[shekhar@TLL-DVITIYA bin]$ ./netperf
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to localhost.localdomain (127.0.0.1) 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.00    4645.68 
[shekhar@TLL-DVITIYA bin]$

 

 

 

Target:

 

Terminal 1:

 

root:/> netserver -p 12865

[1] 357 netserver -p 12865

root:/> Starting netserver at port 12865

Starting netserver at hostname 0.0.0.0 port 12865 and family AF_UNSPEC

Terminal 2:
root:/> netperf
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to localhost.localdomain (127.0.0.1) 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.00     111.63 
root:/>
I used minicom/telnet to enter the target
I am able to ping my host from the target and vice-versa
Next to test intercommunication between target and host I did:
Host:
[shekhar@TLL-DVITIYA bin]$ ./netserver -p 12865
Target:
root:/> netperf -t UDP_STREAM -H 192.168.40.212 -- -m 1024
establish control: are you sure there is a netserver listening on 192.168.40.212 at port 12865?
establish_control could not establish the control connection from 0.0.0.0 port 0 address family AF_UNSPEC to 192.168.40.212 port 12865 address family AF_UNSPEC
root:/>
As can be seen from the above log, the connection was not established.
What might be the issue?
Regards,
Shekhar

Outcomes