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


_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to