Skip to content

net-speeder 在高延迟不稳定链路上优化单线程下载速度

License

Notifications You must be signed in to change notification settings

zeroxia/net-speeder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

net-speeder forked by zeroxia

net-speeder 在高延迟不稳定链路上优化单线程下载速度

项目由https://code.google.com/p/net-speeder/ 迁入

关注微信公众号了解最新开发进度/获取帮助/提出建议:

A program to speed up single thread download upon long delay and unstable network

在高延迟不稳定链路上优化单线程下载速度

注1:开启了net-speeder的服务器上对外ping时看到的是4倍,实际网络上是2倍流量。另外两倍是内部dup出来的,不占用带宽。 另外,内部dup包并非是偷懒未判断。。。是为了更快触发快速重传的。 注2:net-speeder不依赖ttl的大小,ttl的大小跟流量无比例关系。不存在windows的ttl大,发包就多的情况。

安装步骤:

1:下载源码并解压

wget https://github.com/snooda/net-speeder/archive/master.zip
unzip master.zip

2:准备编译环境

debian/ubuntu:

#安装libnet-dev:
apt-get install libnet1-dev
#安装libpcap-dev:
apt-get install libpcap0.8-dev 

centos:

#下载epel:https://fedoraproject.org/wiki/EPEL/zh-cn 例:CentOS6 64位:
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
#(如果是centos5,则在epel/5/下)
#安装epel:
rpm -ivh epel-release-6-8.noarch.rpm
#然后即可使用yum安装:
yum install libnet libpcap libnet-devel libpcap-devel

编译:

Linux Cooked interface使用编译(venetX,OpenVZ):

make

The generated executable is net_speeder.

普通网卡使用编译(Xen,KVM,物理机):

make

The generated executable is net_speeder_cooked.

使用方法(需要root权限启动):

./net_speeder -h

For normal hosts:

./net_speeder -i eth0 -c 2 ip

For OpenVZ hosts:

./net_speeder -i venet0 -c 2 ip

About

net-speeder 在高延迟不稳定链路上优化单线程下载速度

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 92.6%
  • Makefile 7.4%