Back

net-speeder

Small color 2016年09月22日

程序制作作者地址

net-speeder 在高延迟不稳定链路上优化单线程下载速度
是ovz架构的VPS福利加速程序
原理就是2倍发包,这个是缺点,但是比双边加速简单些,不用两边都有安装程序!

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

1:下载源码并解压

wget http://www.smallcolor.link/wjian/linux/net-speeder.zip
unzip net-speeder.zip
cd net-speeder

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

3.编译:

使用编译(venetX,OpenVZ):    
    sh build.sh -DCOOKED

普通网卡使用编译(Xen,KVM,物理机):这些VPS可以装锐速了,没必要装NS。
sh build.sh #应该无视这条吧!

使用方法(需要root权限启动):
#参数:./net_speeder 网卡名 加速规则(bpf规则)
#参数:>/dev/null 2>&1 & 后台运行
#ovz用法(加速所有ip协议数据并且后台运行):

./net_speeder venet0 "ip" >/dev/null 2>&1 &

#添加开机自动启动NS教程
#如echo 'nohup /usr/bin/net_speeder venet0 "ip" >/dev/null 2>&1 &' >> /etc/rc.local
#(/usr/bin/net_speeder) 是你NS解压的路径
#(venet0 "ip" >/dev/null 2>&1 &) 是NS启动命令
一般在搭建的时候不改路径的情况下,是在root文件夹里的。所以我的是在root里,解压出的net_speeder
执行命令:

echo 'nohup /root/net_speeder venet0 "ip" >/dev/null 2>&1 &' >> /etc/rc.local

1.png

注意:
  • 担心迷路?请收藏备用网址:smallcolor.top  备用网址2:smallcolor.org
  • 免责声明:本站为非营利性站点,本网站提供的资源均系收集于各大外网网站,本网站只提供web页面服务,并不提供影片资源存储和下载,也不参与录制、上传、翻译。
  • Disclaimer: This site for non-profit site, this website provides the resources are collected in each big web site, the site provides web page service only, does not provide video resources storage and download, or recording, upload, translation will not be involved.
  • 本站严格遵守(CC BY-NC-SA 4.0)国际许可协议,所有信息我都注明来源。
  • This website strictly complies with the (CC BY-NC-SA 4.0) international license agreement and indicates the source of all information.
  • 若本站收录的节目无意侵犯了贵司版权,请给下面邮箱地址来信(或者留言),我们会及时处理和回复,谢谢!
  • If the content included in this website is not intended to infringe your copyright, please send a letter to the following email (or message), we will promptly handle and reply, thank you for your support!
  • 富强、民主、文明、和谐,自由、平等、公正、法治,爱国、敬业、诚信、友善。
  • emoji_u1f625.pngemoji_u1f629.pngicon_twisted.pngemoji_u1f62a.pngemoji_u1f61c.pngemoji_u1f64d.pngemoji_u1f618.pngemoji_u1f611.pngicon_cool.pngemoji_u1f61e.pngicon_wink.pngicon_neutral.pngicon_smile.pngemoji_u1f646.pngemoji_u1f620.pngemoji_u1f626.pngemoji_u1f623.pngicon_razz.pngemoji_u1f603.pngemoji_u1f62b.pngicon_eek.pngemoji_u1f605.png
    >Submit

      商业友情链接:

    >