1、流量分类及匹配、使用 Mangle 进行标记; 2、创建规则(策略),将不同的分类放入不同的 QUEUE; 3、分清上行和下行,附加到不同的“接口”或“队列”。 在做HTB 的时候最重要的是要弄清楚各 QUEUE 之间的关 系。父子关系(Parent-Child) Parent Queue:父队列,顶层 Parent; Inner Queue:内部队列,有 Parent 和...
add name=ipv6-upload-udp-small packet-mark=ipv6-pack-udp-small parent=ipv6-upload-udp priority=3 queue=pcq-upload-default add name=ipv6-upload-udp-smaller packet-mark=ipv6-pack-udp-smaller parent=ipv6-upload-udp priority=1 queue=pcq-upload-default add name=ipv6-upload-tcp-big packet-ma...
为了和老内核工作协调, 下载内核源码, 用patch -p1 -i htb3_2.X.X.diff装载补丁程序, 然后用 make menuconfig;make bzImage; 编译内核时不要忘了选中QoS 和 HTB. 我将非常感激如果你认为在使用发现了HTB错误. 我需要详细的输出; 在队列规定出现异常行为时请在tc qdisc add ... htb.后面加上参数debug 33...
This command attaches queue discipline HTB to eth0 and gives it the "handle"1:. This is just a name or identifier with which to refer to it below.The default 12 means that any traffic that is not otherwise classified will be assigned to class 1:12. Note: In general (not just for HT...
);//获取排队规程私有数据structhtb_class*cl=htb_classify(skb, sch, &ret);if(cl == HTB_DIRECT) {//类是直接发送类/* enqueue to helper queue */if(q->direct_queue.qlen < q->direct_qlen) {//直接发送队列是否已经满了,没有满则加入到尾部htb_enqueue_tail(skb, sch, &q->direct_queue);...
Simple queue的规则越多,处理的数据越多,CPU消耗越大。规则越多,后面的规则获取带宽的几率越小。如果有1000条Simple queue规则,那必须判断查询999条规则。 二介绍完simple,我们来看一下PCQ,我上面共享了官方的qos简单翻译的pdf,大家可以看一下,更深入理解。 pcq全名是Per Connection Queues,带宽均分,也就是说,你...
配置下载Qos { :local num 1; :for i from=1 to=$num do={ /queue tree add name=("queue-download-" . $i) parent=("bridge" . $i) queue=pcq-download-default /queue tree add name=("queue-download-" . $i . "-icmp") packet-mark=pack-icmp parent=("queue-download-" . $i) prio...
/queue tree set [/queue tree find name="queue_p2p_down"] packet-mark=pack-p2p-up limit-at=2M max-limit=4M 注:在PCQ里面建一个20M的或者40M的都可以 二:建立脚本: 1:在/SYSTEM SCRIPT下增加一个20M带宽脚本脚本名称为20MXS,SOURCE内容为: /queue tree set [/queue tree find name="QOS_download...
Assessment of QoS of HTB and EDCA is based on throughput and delay parameters. The results obtained from throughput testing of the mean value of each data packet, the results show that the EDCA method is better than HTB method. The best throughput results are given on Best Effort(BE) ...
4 Hzz 普通PC可以安装,收费亦有破解,Qos不够强。5 Mono转发最强,免费,不支持多线。这里主要是针对routeros做个说明,从安装到htb脚本的设置,调试。如果大家有什么异议的或者其他需要,请跟帖说明一下,我会进行修改。暂时以网吧光纤为主来说明,pppoe未涉及,其实也是一样的。wglm首发,请不要转载,谢谢!一...