How to manually enable Tencent TCPA unilateral acceleration/Tencent unilateral congestion algorithm TCPA activation tutorial for CentOS 7 system

888u

Last update at :2024-06-02,Edit by888u

TCPA is a unilateral congestion algorithm used internally by Tencent. Based on the RHEL7.4 source code, the customized TCPA has been released for free and can be used by webmasters, individuals and enterprises for free. For ordinary users, we have one more choice. In addition to BBR and Ruisu, we now also have TCPA to choose from. Regarding which one is better, TCPA or BBR, you can click here to view the TCPA and BBR test comparison report of the Tencent kernel team. The official conclusion is: Compared with the standard TCP cubic algorithm, the BBR algorithm has obvious performance improvements, and there is not much difference in small files. ; The download performance of large files is obvious, about 35%; when TCPA is enabled, large and small files are improved by more than 40% compared with standard TCP, small files can be improved by more than 40% compared with BBR, and large files can be improved by 5% to 10% compared with BBR. Tencent TCPA project address: https://linux.qq.com/?p=238.

Regarding the installation and activation of BBR and Ruisu, you can view this article: #ScriptSharing# Use Linux network optimization to accelerate one-click script to quickly speed up VPS [One-click installation of Lotserver (Ruisu)/BBR/BBR magic modified version/violent BBR magic modified version].

How to enable TCPA

The following is Snail's attempt to manually enable TCPA for the Tencent Cloud student machine in hand.

1. First, we use the following command to download and enable the TCPA customized kernel. The process is very simple, just enter the following commands in sequence. TCPA customized kernel Tencent official download link: https://share.weiyun.com/5AeyuFg Password: d1swc1. You can use the following command to download it directly to the server.

#Install wgetyum -y install wget#Download the TCPA customized kernel to your own server wget https://xz.wn789.com/TCPA/kernel-3.10.0-693.5.2.tcpa06.tl2.x86_64.rpm#Install TCPA customized Kernel rpm -ivh kernel-3.10.0-693.5.2.tcpa06.tl2.x86_64.rpm --force#Restart the server reboot#After restarting, check whether the kernel is a TCPA customized kernel uname -a

Use the uname -a command to find out that the enabled kernel is a TCPA customized kernel. Our first step is completed.

2. Download the TCPA installation package. TCPA installation package Tencent official download link: https://share.weiyun.com/5RAyh7c Password: qeetzp. You can also directly download to your own server through the server download command below Snail.

wget https://xz.wn789.com/TCPA/tcpa_packets_180619_1151.tar.bz2

3. Install TCPA. Just execute the following commands in sequence, and it will be automatically installed under /usr/local/storage/tcpav2.

#Install bzip2yum -y install bzip2#Unzip the installation package tar jxvf tcpa_packets_180619_1151.tar.bz2#Enter the program installation folder cd tcpa_packets#Execute the installation sh install.sh

4. Enable TCPA. This is the last step.

#Enter the directory where the TCPA-enabled program is located cd /usr/local/storage/tcpav2 #Execute the startup command sh start.sh

The following picture indicates successful access.

5. We can also use the following command to check whether TCPA is enabled successfully.

lsmod|grep tcpa

As shown below, the startup is successful.

6. How to uninstall TCPA is very simple, just execute the following two commands.

cd /usr/local/storage/tcpav2sh uninstall.sh

7. How to add an acceleration port to TCPA. Tencent TCPA only accelerates three ports: 80, 443, and 8080 by default. If you are a website builder, you don’t need to consider other operations. However, if you specify port acceleration, you need to modify the "/usr/local/storage/tcpav2/" directory. start.sh" file, add a section of the port you want to accelerate after "$BINDIR/$CTLAPP access add tip $ip tport 443".

Recommended site searches: US host purchase, cn domain name registration, Wanwang space, free cloud server, registered domain name, Taiwan host, how much does server defense cost, overseas virtual host IP query, Shandong website registration,

How to manually enable Tencent TCPA unilateral acceleration/Tencent unilateral congestion algorithm TCPA activation tutorial for CentOS 7 system

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码