安装
bash <(curl -fsSL https://raw.githubusercontent.com/Kylin010/tcpfit/main/tcpfit.sh)固定版本并校验:
V=v0.3.7
curl -fsSLO https://github.com/Kylin010/tcpfit/releases/download/$V/tcpfit.sh &&
curl -fsSLO https://github.com/Kylin010/tcpfit/releases/download/$V/install.sh &&
curl -fsSLO https://github.com/Kylin010/tcpfit/releases/download/$V/SHA256SUMS &&
sha256sum -c SHA256SUMS &&
bash tcpfit.sh变更
- 拐点扫描改为先不限速跑一次: 丢包低就不整形, 丢包高才扫
- 扫描区间锚定实测吞吐, 不再依赖填写的标称带宽
- 扫描上限 2500 Mbit, 超出只提醒不扫(
--cap可调) - 测试期间改用 HTB 聚合限速(
fq maxrate是每流上限, 多流时会跑到数倍) - 丢包跳变要复测确认, 3 次里 2 次才算
- 加本底丢包率参照, 避免把线路本身的损耗当成拐点
- 中断清理覆盖 SIGHUP, 完整保存恢复原有根 qdisc
回滚
tcpfit rollback
tcpfit shape --off