<div dir="ltr">It's more than just an optimization when it comes to overlay networks though. It's the only way for agents to establish segment connectivity when something like vxlan multicast discovery isn't possible. It shouldn't be l2pop's responsibility for something like basic connectivity. That should be handled by the tunnel type drivers.<div>

<br></div><div>I'm fine with l2pop optimizing things like ARP responses and tunnel pruning, but a network should still be able to function without l2pop.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Wed, Aug 27, 2014 at 6:36 AM, Mathieu Rohon <span dir="ltr"><<a href="mailto:mathieu.rohon@gmail.com" target="_blank">mathieu.rohon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

l2pop is about l2 networks optimization with tunnel creation and arp<br>
repsonder population (so this is<br>
not only a overlays network optimization. For example ofagent now use<br>
l2pop info for flat and vlan optimization [1]),<br>
This optimization is orthogonal to several agent based mechanism<br>
driver (lb, ovs, ofagent).<br>
I agree that this optimization should be accessible to every MD, by<br>
providing an access to fdb dict directly from ML2.db.<br>
a controler based MD like ODL could use those fdb entries the same way<br>
agents use it, by optimizing the datapath under its control.<br>
<br>
[1]<a href="https://review.openstack.org/#/c/114119/" target="_blank">https://review.openstack.org/#/c/114119/</a><br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Aug 27, 2014 at 10:30 AM, Kevin Benton <<a href="mailto:blak111@gmail.com">blak111@gmail.com</a>> wrote:<br>
>>So why not agent based?<br>
><br>
> Maybe I have an experimental operating system that can't run python. Maybe<br>
> the RPC channel between compute nodes and Neutron doesn't satisfy certain<br>
> security criteria. Regardless of the reason, it doesn't matter because that<br>
> is an implementation detail that should be irrelevant to separate ML2<br>
> drivers.<br>
><br>
> l2pop should be concerned with tunnel endpoints and tunnel endpoints only.<br>
> Whether or not you're running a chunk of code responding to messages on an<br>
> RPC bus and sending heartbeats should not be Neutron's concern. It defeats<br>
> the purpose of ML2 if everything that can bind a port has to be running a<br>
> neutron RPC-compatible agent.<br>
><br>
> The l2pop functionality should become part of the tunnel type drivers and<br>
> the mechanism drivers should be able to provide the termination endpoints<br>
> for the tunnels using whatever mechanism it chooses. Agent-based drivers can<br>
> use the agent DB to do this and then the REST drivers can provide whatever<br>
> termination point they want. This solves the interoperability problem and<br>
> relaxes this tight coupling between vxlan and agents.<br>
><br>
><br>
> On Wed, Aug 27, 2014 at 1:09 AM, loy wolfe <<a href="mailto:loywolfe@gmail.com">loywolfe@gmail.com</a>> wrote:<br>
>><br>
>><br>
>><br>
>><br>
>> On Wed, Aug 27, 2014 at 3:13 PM, Kevin Benton <<a href="mailto:blak111@gmail.com">blak111@gmail.com</a>> wrote:<br>
>>><br>
>>> Ports are bound in order of configured drivers so as long as the<br>
>>> OpenVswitch driver is put first in the list, it will bind the ports it can<br>
>>> and then ODL would bind the leftovers. [1][2] The only missing component is<br>
>>> that ODL doesn't look like it uses l2pop so establishing tunnels between the<br>
>>> OVS agents and the ODL-managed vswitches would be an issue that would have<br>
>>> to be handled via another process.<br>
>>><br>
>>> Regardless, my original point is that the driver keeps the neutron<br>
>>> semantics and DB in tact. In my opinion, the lack of compatibility with<br>
>>> l2pop isn't an issue with the driver, but more of an issue with how l2pop<br>
>>> was designed. It's very tightly coupled to having agents managed by Neutron<br>
>>> via RPC, which shouldn't be necessary when it's primary purpose is to<br>
>>> establish endpoints for overlay tunnels.<br>
>><br>
>><br>
>> So why not agent based? Neutron shouldn't be treated as just an resource<br>
>> storage, built-in backends naturally need things like l2pop and dvr for<br>
>> distributed dynamic topology control,  we couldn't say that something as a<br>
>> part was "tightly coupled".<br>
>><br>
>> On the contrary, 3rd backends should adapt themselves to be integrated<br>
>> into Neutron as thin as they can, focusing on the backend device control but<br>
>> not re-implement core service logic duplicated with Neutron . BTW, Ofagent<br>
>> is a good example for this style.<br>
>><br>
>>><br>
>>><br>
>>><br>
>>> 1.<br>
>>> <a href="https://github.com/openstack/neutron/blob/7f466c8730cfca13f2fb374c80d810929bb8cccc/neutron/plugins/ml2/drivers/mech_agent.py#L53" target="_blank">https://github.com/openstack/neutron/blob/7f466c8730cfca13f2fb374c80d810929bb8cccc/neutron/plugins/ml2/drivers/mech_agent.py#L53</a><br>


>>> 2.<br>
>>> <a href="https://github.com/openstack/neutron/blob/7f466c8730cfca13f2fb374c80d810929bb8cccc/neutron/plugins/ml2/drivers/mechanism_odl.py#L326" target="_blank">https://github.com/openstack/neutron/blob/7f466c8730cfca13f2fb374c80d810929bb8cccc/neutron/plugins/ml2/drivers/mechanism_odl.py#L326</a><br>


>>><br>
>>><br>
>>> On Tue, Aug 26, 2014 at 10:05 PM, loy wolfe <<a href="mailto:loywolfe@gmail.com">loywolfe@gmail.com</a>> wrote:<br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>> On Wed, Aug 27, 2014 at 12:42 PM, Kevin Benton <<a href="mailto:blak111@gmail.com">blak111@gmail.com</a>><br>
>>>> wrote:<br>
>>>>><br>
>>>>> >I think that "opensource" is not the only factor, it's about built-in<br>
>>>>> > vs. 3rd backend. Built-in must be opensource, but opensource is not<br>
>>>>> > necessarily built-in. By my thought, current OVS and linuxbridge are<br>
>>>>> > built-in, but shim RESTful proxy for all kinds of sdn controller should be<br>
>>>>> > 3rd, for they keep all virtual networking data model and service logic in<br>
>>>>> > their own places, using Neutron API just as the NB shell (they can't even<br>
>>>>> > co-work with built-in l2pop driver for vxlan/gre network type today).<br>
>>>>><br>
>>>>><br>
>>>>> I understand the point you are trying to make, but this blanket<br>
>>>>> statement about the data model of drivers/plugins with REST backends is<br>
>>>>> wrong. Look at the ODL mechanism driver for a counter-example.[1] The data<br>
>>>>> is still stored in Neutron and all of the semantics of the API are<br>
>>>>> maintained. The l2pop driver is to deal with decentralized overlays, so I'm<br>
>>>>> not sure how its interoperability with the ODL driver is relevant.<br>
>>>><br>
>>>><br>
>>>> If we create a vxlan network,  then can we bind some ports to built-in<br>
>>>> ovs driver, and other ports to ODL driver? linux bridge agnet, ovs agent,<br>
>>>> ofagent can co-exist in the same vxlan network, under the common l2pop<br>
>>>> mechanism. By that scenery, I'm not sure whether ODL can just add to them in<br>
>>>> a heterogeneous multi-backend architecture , or work exclusively and have to<br>
>>>> take over all the functionality.<br>
>>>><br>
>>>>><br>
>>>>><br>
>>>>> 1.<br>
>>>>> <a href="https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/drivers/mechanism_odl.py" target="_blank">https://github.com/openstack/neutron/blob/master/neutron/plugins/ml2/drivers/mechanism_odl.py</a><br>


>>>>><br>
>>>>><br>
>>>>><br>
>>>>> On Tue, Aug 26, 2014 at 7:14 PM, loy wolfe <<a href="mailto:loywolfe@gmail.com">loywolfe@gmail.com</a>> wrote:<br>
>>>>>><br>
>>>>>> Forwarded from other thread discussing about incubator:<br>
>>>>>><br>
>>>>>> <a href="http://lists.openstack.org/pipermail/openstack-dev/2014-August/044135.html" target="_blank">http://lists.openstack.org/pipermail/openstack-dev/2014-August/044135.html</a><br>
>>>>>><br>
>>>>>><br>
>>>>>>><br>
>>>>>>> Completely agree with this sentiment. Is there a crisp distinction<br>
>>>>>>> between a "vendor" plugin and an "open source" plugin though?<br>
>>>>>>><br>
>>>>>><br>
>>>>>> I think that "opensource" is not the only factor, it's about built-in<br>
>>>>>> vs. 3rd backend. Built-in must be opensource, but opensource is not<br>
>>>>>> necessarily built-in. By my thought, current OVS and linuxbridge are<br>
>>>>>> built-in, but shim RESTful proxy for all kinds of sdn controller should be<br>
>>>>>> 3rd, for they keep all virtual networking data model and service logic in<br>
>>>>>> their own places, using Neutron API just as the NB shell (they can't even<br>
>>>>>> co-work with built-in l2pop driver for vxlan/gre network type today).<br>
>>>>>><br>
>>>>>> As for the Snabb or DPDKOVS (they also plan to support official qemu<br>
>>>>>> vhost-user), or some other similar contributions, if one or two of them win<br>
>>>>>> in the war of this high performance userspace vswitch, and receive large<br>
>>>>>> common interest, then it may be accepted as built-in.<br>
>>>>>><br>
>>>>>><br>
>>>>>>><br>
>>>>>>> The Snabb NFV (<a href="http://snabb.co/nfv.html" target="_blank">http://snabb.co/nfv.html</a>) driver superficially looks<br>
>>>>>>> like a vendor plugin but is actually completely open source. The development<br>
>>>>>>> is driven by end-user organisations who want to make the standard upstream<br>
>>>>>>> Neutron support their NFV use cases.<br>
>>>>>>><br>
>>>>>>> We are looking for a good way to engage with the upstream community.<br>
>>>>>>> In this cycle we have found kindred spirits in the NFV subteam., but we did<br>
>>>>>>> not find a good way to engage with Neutron upstream (see<br>
>>>>>>> <a href="https://review.openstack.org/#/c/116476/" target="_blank">https://review.openstack.org/#/c/116476/</a>). It would be wonderful if there is<br>
>>>>>>> a suitable process available for us to use in Kilo e.g. incubation.<br>
>>>>>>><br>
>>>>>>> Cheers,<br>
>>>>>>> -Luke<br>
>>>>>>><br>
>>>>>>> _______________________________________________<br>
>>>>>>> OpenStack-dev mailing list<br>
>>>>>>> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
>>>>>>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
>>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> _______________________________________________<br>
>>>>>> OpenStack-dev mailing list<br>
>>>>>> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
>>>>>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
>>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> --<br>
>>>>> Kevin Benton<br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> OpenStack-dev mailing list<br>
>>>>> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
>>>>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
>>>>><br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> OpenStack-dev mailing list<br>
>>>> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
>>>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
>>>><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Kevin Benton<br>
>>><br>
>>> _______________________________________________<br>
>>> OpenStack-dev mailing list<br>
>>> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
>>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
>>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> OpenStack-dev mailing list<br>
>> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
>> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> Kevin Benton<br>
><br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Kevin Benton</div>
</div>