使用TC的流量优先级

时间:2016-04-27 22:04:09

标签: linux controls traffic qos

我希望流量控制TC优先处理流量。例如,我需要TCP通过band0,UDP通过band1,其他流量通过band3。

我按如下方式创建qdisc:

tc qdisc add dev eth0 root handle 1:prio tc qdisc add dev eth0 parent 1:1 handle 10:sfq tc qdisc add dev eth0 parent 1:1 handle 20:sfq tc qdisc add dev eth0 parent 1:1 handle 30:sfq

但是当我添加过滤器时,例如

tc filter add dev eth0 protocol ip parent 1:1 sfq 1 u32 match ip protocol 6 0xff flowid 1:10

出现问题"未知过滤器" sfq",因此选项" 1"是不可解决的"

1 个答案:

答案 0 :(得分:0)

没有'sfq 1'。 tc filter add dev eth0 protocol ip parent 1:1 u32 match ip protocol 6 0xff flowid 1:10