<div dir="ltr">Hey<div><br></div><div>QoS on Floating IP will work with networking-ovn and there is no need to add anything to OVN.</div><div><br></div><div>Maciej</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 23, 2020 at 11:09 AM Numan Siddique <<a href="mailto:numans@ovn.org">numans@ovn.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Mar 23, 2020 at 2:59 PM Maciej Jozefczyk <<a href="mailto:mjozefcz@redhat.com" target="_blank">mjozefcz@redhat.com</a>> wrote:<br>
><br>
> Hello,<br>
><br>
> Solution found and it is easy. It is just a matter of proper match.<br>
> Example row in QoS table:<br>
><br>
> _uuid               : 85f400e9-f82f-47f0-ac93-b151ed843734<br>
> action              : {}<br>
> bandwidth           : {burst=200, rate=200}<br>
> direction           : from-lport<br>
> external_ids        : {}<br>
> match               : "inport == \"96242e8f-602f-4077-984a-5659e84a8c4f\" && ip4.src == 172.24.5.126 && is_chassis_resident(\"cr-lrp-96242e8f-602f-4077-984a-5659e84a8c4f\")"<br>
> priority            : 20002<br>
><br>
> Where inport is a gateway Logical Port, and ipv4.src is Floating IP.<br>
<br>
Does this mean that it can be handled by networking-ovn and it works ?<br>
Or does it require some work in OVN as well ? If so, you plan to<br>
submit the patch ?<br>
<br>
Thanks<br>
Numan<br>
<br>
><br>
> Thanks,<br>
> Maciej<br>
><br>
><br>
><br>
> On Fri, Mar 6, 2020 at 3:36 PM Maciej Jozefczyk <<a href="mailto:mjozefcz@redhat.com" target="_blank">mjozefcz@redhat.com</a>> wrote:<br>
>><br>
>> Hey!<br>
>><br>
>> In Openstack Neutron we can configure QoS in a few different places:<br>
>> 1) QoS on port<br>
>> 2) QoS on Gateway (gateway port)<br>
>> 3) QoS on Floating IP<br>
>><br>
>> For both 1) and 2) we can easily define a qos row in QoS table and create proper match action, like:<br>
>><br>
>> # ovn-nbctl list qos<br>
>> _uuid               : 42aa1074-ad2e-4d3c-abf8-c2dceb1169f9<br>
>> action              : {}<br>
>> bandwidth           : {burst=3000, rate=3000}<br>
>> direction           : from-lport<br>
>> external_ids        : {}<br>
>> match               : "inport == \"015aa2ca-6d18-4d0e-96e5-91d44dc1a398\""<br>
>> priority            : 2002<br>
>><br>
>> That will be applied on OVS as a OpenFlow Meter.<br>
>><br>
>> For 3) - Is it possible to apply meter action on Floating IP?<br>
>> By Floating IP I mean NAT with dnat_and_snap type, like:<br>
>><br>
>> # ovn-nbctl find NAT type=dnat_and_snat<br>
>> _uuid               : faf6cba8-d923-4a80-a262-4346232cba2d<br>
>> external_ip         : "10.74.167.211"<br>
>> external_mac        : "fa:16:3e:94:8e:89"<br>
>> logical_ip          : "192.168.1.6"<br>
>> logical_port        : "755413fa-fd8d-4e4f-bcdb-bd9e69b12268"<br>
>> type                : dnat_and_snat<br>
>><br>
>><br>
>> There is use-case, when we want to shape traffic to/from provider_network, but not in tenant network. We could define QoS for Gateway Chassis Logical_Router_Port, but we want each VM to have his own N/S traffic shaping.<br>
>><br>
>> Can we somehow combine meters with NATs?<br>
>><br>
>> Thanks,<br>
>> Maciej<br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> Best regards,<br>
>> Maciej Józefczyk<br>
><br>
><br>
><br>
> --<br>
> Best regards,<br>
> Maciej Józefczyk<br>
> _______________________________________________<br>
> discuss mailing list<br>
> <a href="mailto:discuss@openvswitch.org" target="_blank">discuss@openvswitch.org</a><br>
> <a href="https://mail.openvswitch.org/mailman/listinfo/ovs-discuss" rel="noreferrer" target="_blank">https://mail.openvswitch.org/mailman/listinfo/ovs-discuss</a><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Best regards,<div>Maciej Józefczyk</div></div></div></div></div>