Last update at :2024-02-11,Edit by888u
Introduction to TCPA
The TCPA used internally by Tencent is developed by the Tencent TEG operating system group and is a customized TCPA based on the RHEL7.4 source code. team introduction: Tencent TEG operating system group, established in 2010, has a professional kernel team that maintains and develops Tencent's internal Linux operating system tlinux to ensure efficient and stable operation of millions of servers and provide strong support for Tencent's business.
Advantages: After TCPA is enabled, small files can be improved by more than 40% compared to BBR, and large files can be improved by 5% to 10% compared to BBR. The advantage of TCPA is the performance improvement of small files, and the program only accelerates the website port (80/443/8080) by default, so it is more suitable for website building scenarios.
Installation requirements
- System: centos7 or above
- The boot partition should not be less than 500M (too small may cause kernel installation to fail)
One-click package installation
wget http://down.08mb.com/tcp_opz/tcpa/tcpa.sh shtcpa.shInstructions for use: One-click package will automatically install dependencies (only epel-release, net-tools) and kernel and restart. After restarting, the installation will be completed automatically without manual intervention.
Manual installation
Deployment process: Install necessary dependencies:
yum -y install net-toolsReplace the system kernel
[root@vultr ~]# wget http://down.08mb.com/tcp_opz/tcpa/kernel-3.10.0-693.5.2.tcpa06.tl2.x86_64.rpm [root@vultr ~]# rpm -ivh kernel-3.10.0-693.5.2.tcpa06.tl2.x86_64.rpm --force Preparing... ################################# [100%] Updating/installing... 1:kernel-3.10.0-693.5.2.tcpa06.tl2 ################################[100 %] Install kernel Set Grub default to "3.10.0-693.5.2.tcpa06.tl2" Done.Restart the operating system
rebootDownload the main program:
wget http://down.08mb.com/tcp_opz/tcpa/tcpa_packets_180619_1151.tar.gzStart installation:
tar xf tcpa_packets_180619_1151.tar.gz cd tcpa_packets sh install.shTCPA (default only accelerates the three ports 80, 443, and 8080), if you need to add a new acceleration port:
vim /usr/local/storage/tcpav2/start.shAdd after line 46:
$BINDIR/$CTLAPP access add tip $ip tport custom portStart tcpa congestion algorithm:
cd /usr/local/storage/tcpav2 sh start.shCheck whether the activation is successful
[root@vultr tcpav2]# lsmod|grep tcpa tcpa_engine 224249 0Uninstall method:
cd /usr/local/storage/tcpav2 sh uninstall.shSpeed test
1. Script test
TCPA:
BBR PLUS:
When running the script speed test, it looks not much different from BBR PLUS
2. Place HTML5 Speedtest test on the server
TCPA:
BBR PLUS:
Download 15.83mbps Upload 10.43mbps. Much lower than BBR PLUS.
Can be seen through HTML5 speedtest. Tencent's TCPA bandwidth utilization is not as high as BBR plus. Not as violent as BBR PLUS!
3. Web page opening speed test
TCPA:
BBR PLUS:
The overall completion time of the web page is 1.9s. Compared with BBR PLUS, the web page opening speed is reduced by nearly half!
You know, my webpage is in mainland China. After adding CDN, it takes about 2 seconds to fully open.
But in Miami, USA, using TCPA, it only takes 1.9s to fully load.
This is a lot of improvement compared to BBR PLUS!
4. Pull files from foreign servers for testing
The first small file is 124KB, which takes 0.6s to download, with an average speed of 218kB/S
The second one is a medium-sized file of 5.65M, which took 4.0s to download, with an average speed of 1.4MB/s
Summary: If you just use it to build a website and don’t have any large files, then it is recommended to use Tencent TCPA. If you need large bandwidth and high traffic, it is recommended to use cheap BBR.Reference original text:
https://www.lijian.me/141.html
https://www.kxxzz.com/xx/373.html
Recommended site searches: php virtual space, Wanwang registered domain name IP detailed address query, virtual host ranking, virtual space free trial, European server, domain name registration, expired registered domain name query, cn domain name registration, Guangdong hosting,
p>
发表评论