[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ttylinux] Have anyone used netperf in ttylinux?



Thank you for your kindleness to help me.
Netperf is a C/S netflows tester. Before using netperf, you should start netserver in the destination. So I do these:

# ./netserver
Starting netserver with host 'IN(6)ADDR_ANY' port '12865' and family AF_UNSPEC

# ps -ef|grep netserver
 4569 root       0:00 ./netserver
 4573 root       0:00 grep netserver

# ./netperf -d -H 127.0.0.1 -l 5
resolve_host called with host '127.0.0.1' port '(null)' family AF_UNSPEC
getaddrinfo returned the following for host '127.0.0.1' port '(null)'  family AF_UNSPEC
cannonical name: '127.0.0.1'
flags: 22 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP addrlen 16
sa_family: AF_INET sadata: 0 0 127 0 0 1 0 0 0 0 0 0 0 0 0 0
scan_omni_args called with the following argument vector
./netperf -d -H 127.0.0.1 -l 5 
Program name: ./netperf
Local send alignment: 8
Local recv alignment: 8
Remote send alignment: 8
Remote recv alignment: 8
Local socket priority: -1
Remote socket priority: -1
Local socket TOS: cs0
Remote socket TOS: cs0
Report local CPU 0
Report remote CPU 0
Verbosity: 1
Debug: 1
Port: 12865
Test name: TCP_STREAM
Test bytes: 0 Test time: 5 Test trans: 0
Host name: 127.0.0.1

installing catcher for all signals
Could not install signal catcher for sig 32, errno 22
Could not install signal catcher for sig 33, errno 22
Could not install signal catcher for sig 65, errno 22
remotehost is 127.0.0.1 and port 12865
resolve_host called with host '127.0.0.1' port '12865' family AF_INET
getaddrinfo returned the following for host '127.0.0.1' port '12865'  family AF_INET
cannonical name: '127.0.0.1'
flags: 22 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP addrlen 16
sa_family: AF_INET sadata: 50 65 127 0 0 1 0 0 0 0 0 0 0 0 0 24
resolve_host called with host '0.0.0.0' port '0' family AF_UNSPEC
getaddrinfo returned the following for host '0.0.0.0' port '0'  family AF_UNSPEC
cannonical name: '0.0.0.0'
flags: 22 family: AF_INET: socktype: SOCK_STREAM protocol IPPROTO_TCP addrlen 16
sa_family: AF_INET sadata: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 64
establish_control called with host '127.0.0.1' port '12865' remfam AF_INET
local '0.0.0.0' port '0' locfam AF_UNSPEC
bound control socket to 0.0.0.0 and 0
establish_control: connect failed, errno 110 Connection timed out
    trying next address combination
establish control: are you sure there is a netserver listening on 127.0.0.1 at port 12865?
establish_control could not establish the control connection from 0.0.0.0 port 0 address family AF_UNSPEC to 127.0.0.1 port 12865 address family AF_INET

As you can see below, I started netserver in localhost and netperf to send netflows to localhost. However, it showed that the control connections could not be established.

Thanks
Shen Lin

在 2014年6月17日星期二UTC+8上午9时24分56秒,djerome写道:
On 06/16/14 01:12, Shen Lin wrote:
> No, it gives no errors while building and making. But when I use
> netperf, it seems it can not to establish its control path connection.
>
> Thanks

I used ttylinux-pc_i686-16.1 and built netperf
with no errors. It seems to run...

Do you have some specific test case? I don't really
know what to do with it.

You may have found that the ttylinux tar didn't
work and used ftp://ftp.netperf.org/netperf/netperf-2.6.0.zip

This is what I did, as root in ttylinux-pc_i686-16.1:

        wget ftp://ftp.netperf.org/netperf/netperf-2.6.0.zip
        unzip netperf-2.6.0.zip
        cd netperf-2.6.0/
        ./configure
        make
        make install
        /usr/local/bin/netperf -d

This was the output:

scan_omni_args called with the following argument vector
/usr/local/bin/netperf -d
Program name: /usr/local/bin/netperf
Local send alignment: 8
Local recv alignment: 8
Remote send alignment: 8
Remote recv alignment: 8
Local socket priority: -1
Remote socket priority: -1
Local socket TOS: cs0
Remote socket TOS: cs0
Report local CPU 0
Report remote CPU 0
Verbosity: 1
Debug: 1
Port: 12865
Test name: TCP_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 32, errno 22
Could not install signal catcher for sig 33, errno 22
Could not install signal catcher for sig 65, errno 22
remotehost is localhost and port 12865
resolve_host called with host 'localhost' port '12865' family AF_UNSPEC
getaddrinfo returned the following for host 'localhost' port '12865'
family AF_UNSPEC
         cannonical name: 'localhost.localdomain'
         flags: 22 family: AF_INET: socktype: SOCK_STREAM protocol
IPPROTO_TCP addrlen 16
         sa_family: AF_INET sadata: 50 65 127 0 0 1 0 0 0 0 0 0 0 0 0 0
resolve_host called with host '0.0.0.0' port '0' family AF_UNSPEC
getaddrinfo returned the following for host '0.0.0.0' port '0'  family
AF_UNSPEC
         cannonical name: '0.0.0.0'
         flags: 22 family: AF_INET: socktype: SOCK_STREAM protocol
IPPROTO_TCP addrlen 16
         sa_family: AF_INET sadata: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
establish_control called with host 'localhost' port '12865' remfam AF_UNSPEC
                 local '0.0.0.0' port '0' locfam AF_UNSPEC
bound control socket to 0.0.0.0 and 0
establish_control: connect failed, errno 4 Interrupted system call
     trying next address combination
establish control: are you sure there is a netserver listening on
localhost at port 12865?
establish_control could not establish the control connection from
0.0.0.0 port 0 address family AF_UNSPEC to localhost port 12865 address
family AF_UNSPEC