只支持单向 download, 如果需要upload, 可以把Client/Server 角色对换过来
tsunami | 一个开源文件下载工具,基于UDP协议,在互联网环境下,比传统的FTP下载速度快许多
|
介绍
| https://zhidao.baidu.com/question/1821315302665495268.html
http://tsunami-udp.cvs.sourceforge.net/viewvc/tsunami-udp/docs/USAGE.txt http://tsunami-udp.cvs.sourceforge.net/viewvc/tsunami-udp/docs/howTsunamiWorks.txt
|
Web site |
|
测试环境 | 香港和美国2台机器 centos 2cc2G 25GHDD HK 119.81.148.108 root FBe8y5px SJC 50.97.229.146 root KF9jmJMW
|
安装 | #login, mkdir data #yum install cvs #cvs -z3 -d:pserver:anonymous@tsunami-udp.cvs.sourceforge.net:/cvsroot/tsunami-udp co -P tsunami-udp #cd tsunami-udp #cvs update #yum install libtool* #./recompile.sh #sudo make install # copy bin to user/local/bin
|
Server端 执行
| #cd /data 创建一些指定大小文件 #dd if=/dev/zero of=50M.file bs=1M count=50 #dd if=/dev/zero of=1G.img bs=1M seek=1000 count=0 #ls -lht
#tsunamid * #开始listening
#tsunamid --port 46224 /mnt/bigephemeral/* 指定端口和目录
|
client端 执行
| #cd /data #tsunami > connect 50.97.229.146 > get 50M.file > get 1G.img
或者直接执行
|
测试结果 Benchmark
| 下载速度在80-90Mbps, 文件没有丢包 Transmission of 1G.img complete. Server 1 transferred 1048576000 bytes in 98.40 seconds (81.3 Mbps) Transmission of /data/1G.img complete. Server 2 transferred 1048576000 bytes in 87.30 seconds (91.6 Mbps)
Transfer complete. Flushing to disk and signaling server to stop... PC performance figure : 380 packets dropped (if high this indicates receiving PC overload) Transfer duration : 87.30 seconds Total packet data : 8000.00 Mbit Goodput data : 7997.03 Mbit File data : 8000.00 Mbit Throughput : 91.64 Mbps Goodput w/ restarts : 91.60 Mbps Final file rate : 91.64 Mbps Transfer mode : lossless
Thank you for using Tsunami. The ANML web site can be found at: http://www.anml.iu.edu/ The SourceForge site can be found at: http://tsunami-udp.sf.net/ Transmission of /data/50M.file complete. Server 1 transferred 52428800 bytes in 4.46 seconds (89.7 Mbps) |