Overview
Tsunami-udp is a small tool designed for network acceleration. The idea is simple: use TCP verification and UDP for data transmission.
In this way, data can be transmitted stateless, and some file verification and retransmission mechanisms can be added in the middle to accelerate transmission.
The traditional TCP is based on persistent connections and is easily affected by network fluctuations. In particular, when the network is congested, ordered transmission can only be performed through multiple processes/threads.
Install
We recommend that you enter tsunami-udp into the repository to facilitate one-click installation with Yum:
sudo yum -y install tsunami-udp
Use
After the installation is complete, runtsunamid *You can:
cd /datatsunamid *
The client (the machine that executes the download) enters the corresponding storage directory and runstsunamiYou can:
CD/datatsunami> connect your. server. Address # connect to the server (download source)> Get file-name # download the specified file
That is, download the '2. 2g autodatas.tar 'file from an AWS Singapore machine in a Unicom data center in Jinan, China,Cross-country transmission speed close to 50 Mbps(No leased line ). The figure also shows detailed process data, such as the number of dropped packets, total transmission volume, and valid transmission volume ...... Easy to use!
Monitoring
AWS Singapore server is used as a database to monitor cloudwatch traffic during transmission:
The client is located in Jinan Unicom. The corresponding resource usage is as follows:
Create an RPM package
In addition, the RPM packaging process is recorded. Using fpm for packaging is the easiest:
Wget 'HTTP: // tsunami-udp.cvs.sourceforge.net/viewvc/tsunami-udp/tsunami-udp /? View = tar '-O ~ /Rpmbuild/sources/tsunami-udp.tgztar-zxvf tsunami-udp.tgzcd tsunami-UDP. /recompile. shmkdir-PV/tmp/usr/bincp-FV server/tsunamid client/tsunami/tmp/usr/bin/FPM-F-s Dir-T rpm-N tsunami-udp -- epoch 1-V 1.8.1018 -- iteration 1. el6-C/dev/SHM-P ~ /Rpmbuild/RPMS/x86_64/-D 'glibc> = 100' -- verbose -- category 'System environment/daemons' -- Description 'a Fast User-space File Transfer Protocol that uses TCP Control and UDP data for transfer over Very High Speed Long Distance Networks '-- URL 'HTTP: // tsunami-udp.sourceforge.net/'-- license 'bsd'-m' higkoo' -- no-rpm-sign -- workdir/tmp usr/binfile ~ /Rpmbuild/RPMS/x86_64/tsunami-udp-1.8.1018-1.el6.x86_64.rpm # Success
Have a nice day!
Use tsunami-udp to accelerate Network Transmission