net-speeder网速优化

1、net-speeder项目主页:

  • 1、主页:https://code.google.com/p/net-speeder/

2、net-speeder是一个由snooda.com博主写的Linux脚本程序,主要目的是为了解决丢包问题,实现TCP双倍发送,即同一份数据包发送两份。这样的话在服务器带宽充足情况下,丢包率会平方级降低。
3、net-speeder对于不加速就可以跑满带宽的类型来讲(多线程下载),开启后反而由于多出来的无效流量,导致速度减半,性能开销稍大和自由度有损失。所以,如果你的VPS连接国内速度一切正常,请不要启用net-speeder
4、安装net-speeder的方法也很简单,这里提供由lazyzhu.com博主写的net-speeder一键安装包。执行以下命令:

 wget --no-check-certificate https://gist.github.com/LazyZhu/dc3f2f84c336a08fd6a5/raw/d8aa4bcf955409e28a262ccf52921a65fe49da99/net_speeder_lazyinstall.sh
sh net_speeder_lazyinstall.sh 

net-speeder安装脚本
5、日后如果一键安装脚本下载链接失效了,这里给出脚本的具体内容,大家可以将将它保存为.sh文件,然后就可以执行了。

 #!/bin/sh
# Set Linux PATH Environment Variables
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
# Check If You Are Root
if [ $(id -u) != "0" ]; then
    clear
    echo -e "\033[31m Error: You must be root to run this script! \033[0m"
    exit 1
fi
if [ $(arch) == x86_64 ]; then
    OSB=x86_64
elif [ $(arch) == i686 ]; then
    OSB=i386
else
    echo "\033[31m Error: Unable to Determine OS Bit. \033[0m"
    exit 1
fi
if egrep -q "5.*" /etc/issue; then
    OST=5
    wget http://dl.fedoraproject.org/pub/epel/5/${OSB}/epel-release-5-4.noarch.rpm
elif egrep -q "6.*" /etc/issue; then
    OST=6
    wget http://dl.fedoraproject.org/pub/epel/6/${OSB}/epel-release-6-8.noarch.rpm
else
    echo "\033[31m Error: Unable to Determine OS Version. \033[0m"
    exit 1
fi
rpm -Uvh epel-release*rpm
yum install -y libnet libnet-devel libpcap libpcap-devel gcc
wget http://net-speeder.googlecode.com/files/net_speeder-v0.1.tar.gz -O -|tar xz
cd net_speeder
if [ -f /proc/user_beancounters ] || [ -d /proc/bc ]; then
    sh build.sh -DCOOKED
    INTERFACE=venet0
else
    sh build.sh
    INTERFACE=eth0
fi
NS_PATH=/usr/local/net_speeder
mkdir -p $NS_PATH
cp -Rf net_speeder $NS_PATH
echo -e "\033[36m net_speeder installed. \033[0m"
echo -e "\033[36m Usage: nohup ${NS_PATH}/net_speeder $INTERFACE \"ip\" >/dev/null 2>&1 & \033[0m" 

5、安装完成后,会给出脚本用法,最简单的就是开启所有IP协议加速。执行以下命令:

 nohup /usr/local/net_speeder/net_speeder venet0 "ip" >/dev/null 2>&1 & 

6、net-speeder对于VPS速度有没有优化?先来看我在OneAsiaHost VPS主机上安装net-speeder后的速度测试结果。这是Ping值,没有什么变化,当然没安装前也是没有丢包,现在也没有丢包。

Article By :

5 thoughts on “net-speeder网速优化

  1. You are truly a good webmaster. The web site loading velocity is incredible. It seems that you’re doing any unique trick. In addition, The contents are masterpiece. you have performed a excellent activity in this topic!

  2. Irrespective of all the possibilities, an escorts arrangement makes up for a perfect choice of surprise for folks belonging to all types of clients.
    My professional Delhi Escorts Service are
    experienced and specialized who love what they do.
    Each escorts girl is a talented with an exclusive style this is the great
    companion to any event. Here you can see in my
    gallery page! You can find real & hot pics as I captured with my phone inside my rooms, I have updated my gallery page once in a week.

  3. This is really attention-grabbing, You’re an excessively professional blogger. I have joined your feed and stay up for seeking more of your magnificent post. Additionally, I have shared your site in my social networks

回复 Ashton Heppner 取消回复

您的邮箱地址不会被公开。 必填项已用 * 标注