About TC for vlan-based QoS

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, 


I configured TC for my physical NIC to support vlan-based QoS.
If the vlan is 1002, then the QoS will be min: 6100 max:9200, otherwise, the QoS will be 3100—9200.
And it works well when I use iperf to test using two vm-pairs , two in vlan 1002, and the other two in vlan 1003.
But if I config the QoS  to 7000–10000 for vlan 1002 , and 3000–10000 for other vlans, the QoS will very unstable.

Could you please tell me that is why?


The bellow is the command I used.

tc qdisc del dev ens1f1 root > /dev/null 2>&1

tc qdisc add dev ens1f1 root handle 1:0 htb default 10

tc class add dev ens1f1 parent 1:0 classid 1:10 htb rate 9200Mbit ceil 9200Mbit burst 92Mbit cburst 92Mbit prio 10

tc class add dev ens1f1 parent 1:10 classid 1:1000 htb rate 3100Mbit ceil 9200Mbit burst 31Mbit cburst 31Mbit prio 10
tc class add dev ens1f1 parent 1:10 classid 1:2000 htb rate 6100Mbit ceil 6100Mbit burst 61Mbit cburst 61Mbit prio 10

tc filter add dev ens1f1 protocol ip parent 1:0 prio 5 u32 match ip dst 0.0.0.0/0 flowid 1:1000
tc filter add dev ens1f1 protocol all parent 1:0 prio 1 basic match 1002 flowid 1:2000


Thanks.



��.n��������+%������w��{.n����j�\�)��jg��������ݢj����G�������j:+v���w�m������w�������h�����٥




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux