<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>You are just creating a message, but that's not enough -- you have to send it to a switch.  This section of the POX manual may be of help:</div><div><a href="https://noxrepo.github.io/pox-doc/html/#communicating-with-datapaths-switches">https://noxrepo.github.io/pox-doc/html/#communicating-with-datapaths-switches</a><br></div><div><br></div><div>You also might take a look at some of the sample POX components, particularly ones in the forwarding/ directory.</div><div><br></div><div>But I think you've got bigger problems.  By default, POX actually clears the tables on switches when they connect -- sending a command much like the one you've constructed.  So I think switches aren't connecting to POX.  Depending on what version of POX you're running, one possibility is that POX's OpenFlow component isn't running.  You might look at the documentation for the of_01 component in the manual:</div><div><a href="https://noxrepo.github.io/pox-doc/html/#openflow-of-01">https://noxrepo.github.io/pox-doc/html/#openflow-of-01</a><br></div><div><br></div><div><div>The manual mentions that POX will generally automatically load the of_01 (OpenFlow 1.0) component if another component that uses OpenFlow is loaded.  Since you're entering stuff in the CLI, maybe you aren't loading any OpenFlow-using component?  In that case, you'll need to launch of_01 manually.  If you're just running POX without any commandline arguments at all, you should probably read:</div><div><a href="https://noxrepo.github.io/pox-doc/html/#invoking-pox">https://noxrepo.github.io/pox-doc/html/#invoking-pox</a></div><br class="gmail-Apple-interchange-newline"></div><div>Ultimately, you should see some log messages in POX about the switches connecting.  Are you?</div><div><br></div><div>Not really related to the above, but you mention how packets being dropped means the table entry is still there.  That's not true, generally speaking.  In general, an OpenFlow switch without any table entries doesn't forward any traffic (though it may encapsulate at least the headers and send it to the controller).</div><div><br></div><div>-- Murphy</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 13, 2019 at 8:36 PM Sukheja, Himanshu <<a href="mailto:hxs376@psu.edu">hxs376@psu.edu</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">



<div style="overflow-wrap: break-word;">
 have created a simple topology using Mininet in which I have created a single switch and connected it to a remote controller (POX). I installed a simple flow rule using Mininet CLI which commands the switch to drop all packets. 
<div>
<pre style="overflow:auto hidden;padding:5px;color:rgb(51,51,51);line-height:15.6px;border-top:1px solid rgb(170,204,153);border-bottom:1px solid rgb(170,204,153);border-right-style:none;border-left-style:none"><span style="background-color:rgba(255,255,255,0)">sh ovs-ofctl add-flow s1 priority=40000,hard_timeout=30,actions=drop</span></pre>
</div>
<div>
<div>Now In POX CLI I run the following command </div>
<div><br>
</div>
<div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">msg = of.ofp_flow_mod(command=of.OFPFC_DELETE)</span></div>
</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures"><br>
</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal">
Although now when I do a Dump-flow command on mininet terminal it still shows the flow is installed </div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal">
Also, I tried to ping h1 and h2, and the packets are being dropped (which means that the flow is still there)</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal">
<br>
</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal">
<br>
</div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">Could you please point out the error in my execution here. </span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures"><br>
</span></div>
<div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span style="font-variant-ligatures:no-common-ligatures">Thanks</span></div>
<div>***********************************************</div>
</div>
<div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
************************************************************************<br>
Himanshu Sukheja<span class="gmail-m_6339575454302862882Apple-tab-span" style="white-space:pre-wrap"> </span><br>
</div>
</div>
</div>

</blockquote></div></div></div></div></div>