<div>Hi Maxiao:</div><div><br></div><div>I think the flow is not updated by rarp, as I didn't capture any packet related to rarp. please check attachment.</div><div><span style="line-height: 1.5;">Because it is live migration, the memory data of vm will be retained(arp cache, etc.), it would keep normal </span><span style="line-height: 1.5;">communication. </span></div><div><span style="line-height: 1.5;">So I think ovs will update the flow in br-tun in both network node and compute node by mac address of packets sent from vm migrated.</span></div><div><includetail><div> </div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>From: </b> "Xiao Ma (xima2)"<xima2@cisco.com>;</div><div><b>Date: </b> Thu, Feb 18, 2016 11:44 AM</div><div><b>To: </b> "康敬亭"<jingting@unitedstack.com>; <wbr></div><div><b>Cc: </b> "openstack-dev"<openstack-dev@lists.openstack.org>; <wbr></div><div><b>Subject: </b> Re: [openstack-dev] [neutron] [ovs] How to update flows inbr-tunproactively</div></div><div> </div>




<div class="">Hi, JingTing</div>
<div class=""><br class="">
</div>
<div class="">Normally , when the vm is migrated to destination compute node, the rarp will be send by qemu, and the flow tables of other nodes will be caused to be updated by rarp.</div>
<div class="">This is done <span style="color: rgb(204, 0, 0); font-family: arial; font-size: 13px; line-height: 20px; widows: 1; background-color: rgb(255, 255, 255);" class="">immediately </span>after the vm is migrated to destination node, then rarps will
 be received by other nodes, the flows learned will be updated quickly, the problem should not exist.</div>
<div class=""><br class="">
</div>
<div class="">So I think the focus is whether the rarps has been received by other nodes.If not received by other nodes, the problem maybe the ovs-agent config the vlan and vxlan flow tables too slowly.</div>
<div class=""><br class="">
</div>
<br class="">
<div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">Xiao Ma (<a href="mailto:xima2@cisco.com" class="">xima2@cisco.com</a>)<br class="">
马啸<br class="">
SDN Architect & OpenStack specialist<br class="">
Hybrid Cloud <br class="">
Cisco System (China)<br class="">
Mobile: (+86) 18911219332</div>
<div class=""><br class="">
</div>
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">在 2016年2月18日,上午11:13,康敬亭 <<a href="mailto:jingting@unitedstack.com" class="">jingting@unitedstack.com</a>> 写道:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hi Maxiao:</div>
<div class=""><br class="">
</div>
<div class="">Thanks for your reply.</div>
<div class="">This flow indeed been updated, when ovs receive any packets sent from migrated vm. The flow in table10(br-tun) is used to learn the mac address, and put the learned flow into table20. It just takes longer to complete. </div>
<div class="">And is there any way to update the flow faster? thanks!</div>
<div class=""><br class="">
</div>
<div class="">jingting</div>
<div class="">
<div style="" class="">
<div class="">
<div style="" class="">
<div style="FONT-SIZE: 12px;background:#efefef;padding:8px;" class="">
<div id="menu_sender" class=""><b class="">From: </b> "Xiao Ma (xima2)"<<a href="mailto:xima2@cisco.com" class="">xima2@cisco.com</a>>;</div>
<div class=""><b class="">Date: </b> Wed, Feb 17, 2016 07:10 PM</div>
<div class=""><b class="">To: </b> "OpenStack Development Mailing List (not for usage questions)"<<a href="mailto:openstack-dev@lists.openstack.org" class="">openstack-dev@lists.openstack.org</a>>;
<wbr class=""></div>
<div class=""></div>
<div class=""><b class="">Subject: </b> Re: [openstack-dev] [neutron] [ovs] How to update flows inbr-tun proactively</div>
</div>
<div class=""> </div>
<div class="">Hi, JingTing</div>
<div class=""><br class="">
</div>
<div class="">The flow should be updated after the rarp broadcast packet be send by qemu.</div>
<div class="">So I think you should make sure whether the broadcast packet has been send and received by the host.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><span style="color: rgb(33, 33, 33); font-family: Helvetica, Verdana, Arial; widows: 1; background-color: rgb(255, 255, 255);" class="">Best regards,</span></div>
<br class="">
<div apple-content-edited="true" class="">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">Xiao Ma (<a href="mailto:xima2@cisco.com" class="">xima2@cisco.com</a>)<br class="">
马啸<br class="">
SDN Architect & OpenStack specialist<br class="">
Hybrid Cloud <br class="">
Cisco System (China)<br class="">
Mobile: (+86) 18911219332</div>
<div class=""><br class="">
</div>
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">在 2016年2月17日,下午3:57,康敬亭 <<a href="mailto:jingting@unitedstack.com" class="">jingting@unitedstack.com</a>> 写道:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hi guys:</div>
<div class="">   </div>
<div class="">The bug has be reported on <a href="https://bugs.launchpad.net/neutron/+bug/1541738" style="line-height: 1.5;" class="">
https://bugs.launchpad.net/neutron/+bug/1541738</a></div>
<div class="">    </div>
<div class="">The flow in br-tun as below is generated by learning flow, and not updated immediately after vm live migration.</div>
<div class=""><br class="">
</div>
<div class="">Original flow:</div>
<div class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">cookie=0x0, duration=194.884s, table=20, n_packets=0, n_bytes=0, hard_timeout=300, idle_age=194, priority=</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">1,vlan_</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">tci=0x0306/</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">0x0fff,</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">dl_dst=</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">5a:c6:4f:</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">34:61:06
 actions=</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">load:0-</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">>NXM_OF_</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">VLAN_TCI[</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">],load:</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">0x1ef-></span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">NXM_NX_</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">TUN_ID[</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">],<b class="">output:</b></span><b class=""><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">24</span></b></div>
<div class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""> 
</span></div>
<div class=""><span style="line-height: 1.5;" class="">Updated flow:</span></div>
<div class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">cookie=0x0, duration=194.884s, table=20, n_packets=0, n_bytes=0, hard_timeout=300, idle_age=194, priority=</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">1,vlan_</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">tci=0x0306/</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">0x0fff,</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">dl_dst=</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">5a:c6:4f:</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">34:61:06
 actions=</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">load:0-</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">>NXM_OF_</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">VLAN_TCI[</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">],load:</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">0x1ef-></span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">NXM_NX_</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">TUN_ID[</span><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">],<b class="">output:</b></span><b class=""><wbr style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class="">26</span></b></div>
<div class=""><b class=""><span style="color: rgb(51, 51, 51); font-family: monospace; font-size: 12px; line-height: 18px;" class=""><br class="">
</span></b></div>
<div class=""><span style="color: rgb(51, 51, 51); font-family: monospace; line-height: 18px;" class=""><font size="4" class="">Anyone has idea how to update this flow proactively.thanks!</font></span></div>
<div class="">  </div>
<div class="">jingting</div>
<div class=""><tincludetail class=""></tincludetail></div>
__________________________________________________________________________<br class="">
OpenStack Development Mailing List (not for usage questions)<br class="">
Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org" class="">
OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe<br class="">
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">



</div><!--<![endif]--></includetail></div>