You have to modify your interfaces.

You can have a look at TC command, specifically to tc-htb this one is
used to give priorities to queues, you have to define several htb
queues using some kind of tree structure. See the example below (and
try to understand it using google or the man page of tc and tc-htb)

You have to do this for every interface:

#clear previous configuration
tc qdisc del dev <interface-name> root

#set the root queue
tc qdisc add dev <interface-name> root handle 1: htb default 20
tc class add dev <interface-name> parent 1: classid 1:1 htb rate
100Mbit burst 15k  #this limits the interface bandwidth to 100mbits
you can change dat

#here we add the priority queues to the ones above.
tc qdisc add dev <interface-name> parent 1:1 classid 1:10 htb rate
10mbit ceil 100mbit prio 1 burst 15k  #this is your priority queue and
has assured rate of 10mbit and a max of 100mbit is the other queue is
not used
tc qdisc add dev <interface-name> parent 1:1 classid 1:20 htb rate
90mbit ceil 100mbit prio 7 burst 15k  #this is your normal traffic
queue and has an assured traffic of 90mbit and 100mbit if the other
queue is not used

#then you have to add some rules in your hosts so they TAG packets in
a way that the htb queue knows in which of the two queues has to put
the traffic.
#this will mark all the traffic protocol 89=OSPF with a 10, if you
have a look our priority queue classid is 1:10 so all the traffic will
be queued there. Since classid 20 is the default you do not have to
add iptables rules for normal traffic
#only do it for the ones you want to put in class 10.
iptables -w -t mangle -A POSTROUTING -o <interface-name> -p 89 -j MARK
--set-mark 10

Hope it helps!


2016-09-01 9:06 GMT+02:00 Adnan Anwar <adnananwa...@gmail.com>:
> I have created 3 QoS Queues on each port of ovs switches of a topology with
> same bandwith but i want to configure different Priority on each Queue means
> to give high priority to one queue to low priority to other queues so how i
> can do this??
> i want to send my important data on high priority queue and other data on
> low priority queue...please reply
>
> _______________________________________________
> discuss mailing list
> discuss@openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss
>
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to