[ovs-dev] [RFC] QOS using queues in OVN

Babu Shanmugam bschanmu at redhat.com
Tue May 17 12:10:27 UTC 2016


Hi,
Following are my thoughts on how we can do egress shaping and dscp 
marking in OVN from what I understood from this 
<http://openvswitch.org/pipermail/dev/2016-May/070599.html> mail thread;

- Client sets the rate, burst and dscp parameters in 'options' field on 
the NB Logical_Port table.
- ovn-northd does the following
      - Figures out a free queue number and sets it in the 'options' 
field of SB Port_Binding table
      - Copies the rate and burst parameters from NB Logical_Port table.
      - Sets new actions 'set_queue(queue_number)' and 
'mark_dscp(dscp_value)'  in Logical_Flow that corresponds to the 
'inport' in the ls_in_port_sec_l2 stage.
- ovn-controller does the following
     - Opens the netdev that has the 'ovn-encap-ip' address. Does 
'ovn-encap-ip' always belong to a physical device? Is there a better way 
in finding a physical interface?
     - Checks and creates qdisc of type linux-htb/linux-hfsc
     - Checks and creates queues for all the logical ports and sets 
rate, burst parameters
     - Implements the necessary openflow actions for 'set_queue' and 
'mark_dscp' logical actions

Thank you,
Babu





More information about the dev mailing list