网络性能测试之pathrate的安装使用

pathrate用于测试两点之间的最大带宽;pathrate和pathload基本安装和用法一样
[root@server2 opt]# tar xzvf pathrate.tar.gz
pathrate_2.4.1/CHANGES
pathrate_2.4.1/config.guess
pathrate_2.4.1/config.sub
pathrate_2.4.1/configure
pathrate_2.4.1/COPYING
pathrate_2.4.1/makefile.in
pathrate_2.4.1/pathrate.h
pathrate_2.4.1/pathrate_rcv.c
pathrate_2.4.1/pathrate_rcv_func.c
pathrate_2.4.1/pathrate_rcv.h
pathrate_2.4.1/pathrate_snd.c
pathrate_2.4.1/pathrate_snd_func.c
pathrate_2.4.1/pathrate_snd.h
pathrate_2.4.1/README
[root@server2 opt]# cd pathrate_2.4.1/
[root@server2 pathrate_2.4.1]# ls
CHANGES config.sub COPYING pathrate.h pathrate_rcv_func.c pathrate_snd.c pathrate_snd.h
config.guess configure makefile.in pathrate_rcv.c pathrate_rcv.h pathrate_snd_func.c README
[root@server2 pathrate_2.4.1]# ./configure
checking for gcc… gcc
checking whether the C compiler (gcc ) works… yes
checking whether the C compiler (gcc ) is a cross-compiler… no
checking whether we are using GNU C… yes
checking whether gcc accepts -g… yes
checking host system type… i686-pc-linux-gnu
checking for the pthreads library -lpthreads… no
checking whether pthreads work without any flags… no
checking whether pthreads work with -Kthread… no
checking whether pthreads work with -kthread… no
checking for the pthreads library -llthread… no
checking whether pthreads work with -pthread… yes
checking for joinable pthread attribute… PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads… no
checking for cc_r… gcc
checking for main in -lm… yes
checking for main in -lposix4… no
checking for socket in -lsocket… no
checking for gethostbyname in -lnsl… yes
checking how to run the C preprocessor… gcc -E
checking for ANSI C header files… yes
checking for fcntl.h… yes
checking for strings.h… yes
checking for sys/time.h… yes
checking for unistd.h… yes
checking whether time.h and sys/time.h may both be included… yes
checking for gethostname… yes
checking for gettimeofday… yes
checking for select… yes
checking for socket… yes
creating ./config.status
creating makefile
[root@server2 pathrate_2.4.1]# make

仍旧分为服务器端和客户端,用法几乎与pathload一样

服务器端启动
[root@server2 pathrate]# ./pathrate_snd

Waiting for receiver to establish control stream =>

在客户端进行测试
[root@server1 pathrate]# ./pathrate_rcv -s 10.10.10.131
pathrate run from 10.10.10.131 to server1.org on Wed Jul 29 05:11:30 2009
–> Average round-trip time: 0.4ms

————————————————-
Final capacity estimate : 712 Mbps to 725 Mbps 带宽大小
————————————————-
[root@server1 pathrate]#

服务器端的状态
[root@server2 pathrate]# ./pathrate_snd

Waiting for receiver to establish control stream => OK
Unknown receiver starts measurements on Wed Jul 29 09:45:05 2009
Measurements are in progress. Please wait..
Receiver terminates measurements on Wed Jul 29 09:45:30 2009
[root@server2 pathrate]#

发表评论

电子邮件地址不会被公开。 必填项已用*标注