Provides a simple, general-purpose Diffserv implementation with three tins:
Bulk (CS1), 6.25% threshold, generally low priority.
Best Effort (general), 100% threshold.
Voice (CS7, CS6, EF, VA, TOS4), 25% threshold, reduced Codel interval.
diffserv4
Provides a general-purpose Diffserv implementation with four tins:
Bulk (CS1), 6.25% threshold, generally low priority.
Best Effort (general), 100% threshold.
Video (AF4x, AF3x, CS3, AF2x, CS2, TOS4, TOS1), 50% threshold.
Voice (CS7, CS6, EF, VA, CS5, CS4), 25% threshold.
Ubuntu 20.04 / netplan
/etc/networkd-dispatcher/routable.d/50-ifup-hooks
#!/bin/bash
# must be /bin/bash, for some reasons /bin/sh does not work
if [ "$IFACE" == "eth0" ];
then
tc qdisc replace dev eth0 root cake ethernet
fi
查看状态 tc -s qdisc show dev eth0
Status
Ubuntu 20.04
Xanmod Linux 5.9 (STABLE) 2020-11-19
Vless
sysctl
使用 Cake 队列可以优化延迟,但是对于代理,是没有用上它优先级队列功能的, 既然现在开始结构优化了,也许充分利用已有的工具也是个方向 大家一起测试一下看看有没有更好,希望有人测试一下bbr2+cake
优先级队列有分默认的3级和4级 适配后延迟会更好,集成到路由里甚至可以进行简单的流控
Ubuntu 20.04 / netplan
/etc/networkd-dispatcher/routable.d/50-ifup-hooks
查看状态
tc -s qdisc show dev eth0
Status
Ubuntu 20.04 Xanmod Linux 5.9 (STABLE) 2020-11-19 Vless sysctl
tc -s qdisc show dev eth0
晚上10点掉包22%,CN2线路
https://gist.github.com/liberal-boy/c2e414165206451532874ea0da1d15cd