Giter Club home page Giter Club logo

net-speeder's Introduction

net-speeder

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大,发包就多的情况。

运行时依赖的库:libnet, libpcap

debian/ubuntu安装libnet:apt-get install libnet1

安装libpcap: apt-get install libpcap0.8 

编译需要安装libnet和libpcap对应的dev包 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-X-Y.noarch.rpm

然后即可使用yum安装:yum install libnet libpcap libnet-devel libpcap-devel

编译:

Linux Cooked interface使用编译(venetX,OpenVZ): sh build.sh -DCOOKED 已测试

普通网卡使用编译(Xen,KVM,物理机): sh build.sh 待测试

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

参数:./net_speeder 网卡名 加速规则(bpf规则)

最简单用法: # ./net_speeder venet0 "ip" 加速所有ip协议数据

net-speeder's People

Contributors

snooda avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.