<div dir="ltr"><p class="MsoNormal">Hello,<span></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal">I have the following topology
and want to install rules in nodes (openvswitch nodes) to communicate with each
other.<span></span></p>
<p class="MsoNormal">N1(10.0.0.1) ---
N2(10.0.0.2)--- N3(10.0.0.3)<span></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal">each node has another interface to connect to the controller directly. </p><p class="MsoNormal"><br></p><p class="MsoNormal">I want to write flow
rules to help n2 to forward a packet from n1 to n3. </p><p class="MsoNormal"><br></p><p class="MsoNormal">So at first n1 sends a
packetIn message to get the rules to communicate with n2 as following:<span></span></p>
<p class="MsoNormal">(If the source of
packet is n1 and the destination in n2, send the packet to the port)<span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal">fm= of.ofp_flow_mod()<span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal">fm.match.nw_src = “10.0.0.1”<span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal">fm.match.nw_dst = “10.0.0.2”<span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal">fm.actions.append(of.ofp_action_output(port=
of.OFPP_FLOOD)<span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal">event.connection.send(fm)<span></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal">Then in n2, I want to
write a flow rule that if it receive a packet from n1 , forward that to n3.<span></span></p>
<p class="MsoNormal">Could you let me know how
should I write this rule?<span></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal">Thank you<span></span></p></div>