Well i am not sure what is the problem but I tried it as below and it worked fine for me<br>start controller:<br><br>cd pox<br>sudo ./pox.py forwarding.l2_learning<br><br>it started controller. After that I created topology in another terminal using command<br>
sudo mn --topo single,4 --mac --controller remote<br><br>This command created topology with one switch and 4 hosts.<br>Then by command  "xterm s1" I open switch s1 in xterm. I checked entries via command<br>ovs-ofctl dump-flows s1<br>
There were no flows in switch.<br>Then I ping host h2 from h1 in terminal of Mininet<br>h1 ping -c10 h2<br>The ping was successful and when I checked switch there were flow entries. When I shutdown controller and ping hosts, switch still was having flow entries for about 10 to 15 seconds. The ping worked for that time  but after that time ping stopped because flow entries were deleted automatically.<br>
If you want to confirm that you need to check flow entries within 10-15 seconds when you stop controller, you will get flow entries but after about 15 seconds ping will stop and there will be no flow entries in switch.<br>
<br><div class="gmail_quote">On Tue, Apr 30, 2013 at 1:44 PM, Kouvakas Alexandros <span dir="ltr"><<a href="mailto:questalex@gmail.com" target="_blank">questalex@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_default" style="font-family:garamond,serif">The weird thing is that:<br></div><div class="gmail_default" style="font-family:garamond,serif">Before starting POX, I delete the flows from the switch with ovs-ofctl del-flows.<br>

</div><div class="gmail_default" style="font-family:garamond,serif">After that, I cannot have pings.<br></div><div class="gmail_default" style="font-family:garamond,serif">I start POX with l2_learning, and everything it's ok, I have pings. <br>

</div><div class="gmail_default" style="font-family:garamond,serif">The flows are deleted after the timeout.<br></div><div class="gmail_default" style="font-family:garamond,serif">I close POX.<br></div><div class="gmail_default" style="font-family:garamond,serif">

I can still have pings until I shutdown the ovs servers etc. When I type ovs-ofctl dump-flows, there are no flows on the switch but I can have pings.. I cannot understand  why that happens.<br></div></div><div class="gmail_extra">
<div><div class="h5">
<br><br><div class="gmail_quote">2013/4/29 Sayed Qaiser Ali Shah Shah <span dir="ltr"><<a href="mailto:11msitqshah@seecs.edu.pk" target="_blank">11msitqshah@seecs.edu.pk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br><div class="gmail_quote"><div>You can check flow in OVS by the following command in xterm of OVS<br>ovs-ofctl dump-flows.<br>It will show you all the flows in switch which were added.<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



Date: Mon, 29 Apr 2013 01:07:46 -0700<br>
From: Murphy McCauley <<a href="mailto:murphy.mccauley@gmail.com" target="_blank">murphy.mccauley@gmail.com</a>><br>
To: Kouvakas Alexandros <<a href="mailto:questalex@gmail.com" target="_blank">questalex@gmail.com</a>><br>
Cc: <a href="mailto:pox-dev@lists.noxrepo.org" target="_blank">pox-dev@lists.noxrepo.org</a><div><br>
Subject: Re: [pox-dev] POX on planetlab<br></div>
Message-ID: <<a href="mailto:C3DDA222-C02A-4009-8BFA-E9624EA35133@gmail.com" target="_blank">C3DDA222-C02A-4009-8BFA-E9624EA35133@gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<div><div><br>
<br>
(Inline)<br>
<br>
On Apr 29, 2013, at 12:56 AM, Kouvakas Alexandros wrote:<br>
<br>
> Sorry for asking again.Does anybody knows the answer on the above question?<br>
<br>
Sorry; I've been busy.  Hopefully this brief reply will be helpful.<br>
<br>
> 2013/4/23 Kouvakas Alexandros <<a href="mailto:questalex@gmail.com" target="_blank">questalex@gmail.com</a>><br>
> Hello,<br>
> I managed to create my network as I would like it to be.<br>
> So, I have one OVS and two hosts connected to it through tunnels.<br>
> Before running the POX controller I delete the flows of the OVS with "ovs-ofctl del-flows".So, after that I cannot have pings between the machines.<br>
<br>
As a note, POX clears the tables as soon as switches connect by default.<br>
<br>
> After that I run the pox controller with the module of l2_learning, so I have new flows and I have pings.<br>
> How can I check the flows that are now added  in the flow table?<br>
<br>
If you want to do it from within POX, send a flow stats request.  There's some info on the POX manual wiki:<br>
<a href="https://openflow.stanford.edu/display/ONL/POX+Wiki#POXWiki-Example-WebFlowStatistics" target="_blank">https://openflow.stanford.edu/display/ONL/POX+Wiki#POXWiki-Example-WebFlowStatistics</a><br>
<br>
That example filters them to only show ones on port 80, but obviously you don't have to do that.  There's also a further example in the third party section.  And POXDesk does this and displays them.<br>
<br>
If you want to do it from the commandline, look into ovs-ofctl. (Something like ovs-ofctl show <switch-name>.)<br>
<br>
> I stop the POX controller and I still have pings,which means that the flows are somewhere saved. I need to check this flows and furthermore to modify them.<br>
<br>
Sure.  By default, nothing in POX uninstalls them when it shuts down (though you could make this happen).  If I recall correctly, all the ones from l2_learning have timeouts, so they'll expire eventually, but they'll stick around until then.<br>



<br>
As mentioned above, look into ovs-ofctl.  And also ovs-dpctl.  Or write a POX component to modify them how you want!<br>
<br>
-- Murphy<br>
<br>
> 2013/4/16 Kouvakas Alexandros <<a href="mailto:questalex@gmail.com" target="_blank">questalex@gmail.com</a>><br>
> Hi,<br>
> it's a bit irrelevant with pox mailing list but do you know how can I create an overlay network with one node running OVS and some hosts that are connected to the OVS through a subnet (let's say <a href="http://192.168.3.1/24" target="_blank">192.168.3.1/24</a>) without running OVS on them. I mean, can I substitute the tunnel from the host to the OVS with something else?<br>



><br>
><br>
> 2013/4/12 Murphy McCauley <<a href="mailto:murphy.mccauley@gmail.com" target="_blank">murphy.mccauley@gmail.com</a>><br>
> On Apr 12, 2013, at 2:30 AM, Kouvakas Alexandros wrote:<br>
><br>
>> Note that only the SENDER (the OF switch) has the controller. By this I mean that I run "ovs-vsctl set-controller" only on the SENDER node.<br>
><br>
> So each machine is running OVS, but only one of the OVS instances is connecting to a controller?  In this case, you may be able to get them to act as learning switches, but you can't program them from the controller, which is going to prevent you from doing interesting path selection using OpenFlow.  If that's what you want to do, connect them to the controller either via the controller's external IP (131.188.44.100), or by setting up in-band control and having the control traffic go through your tunnels.<br>



><br>
> -- Murphy<br>
><br>
><br>
><br>
> --<br>
> Kouvakas Alexandros<br>
><br>
><br>
><br>
> --<br>
> Kouvakas Alexandros<br>
><br>
><br>
><br>
> --<br>
> Kouvakas Alexandros<br>
<br></div></div>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.noxrepo.org/pipermail/pox-dev-noxrepo.org/attachments/20130429/88fe02c0/attachment-0001.htm" target="_blank">http://lists.noxrepo.org/pipermail/pox-dev-noxrepo.org/attachments/20130429/88fe02c0/attachment-0001.htm</a>><br>



<br>
------------------------------<br>
<br>
_______________________________________________<br>
pox-dev mailing list<br>
<a href="mailto:pox-dev@lists.noxrepo.org" target="_blank">pox-dev@lists.noxrepo.org</a><br>
<a href="http://lists.noxrepo.org/listinfo.cgi/pox-dev-noxrepo.org" target="_blank">http://lists.noxrepo.org/listinfo.cgi/pox-dev-noxrepo.org</a><br>
<br>
<br>
End of pox-dev Digest, Vol 13, Issue 46<br>
***************************************<span><font color="#888888"><br>
</font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br><b style="color:rgb(51,51,153)"><span>Regards</span><br><br>
<span>Sayed Qaiser Ali Shah</span><br><span>MSIT-12</span><br>
<span>NUST (SEECS)</span></b><br>
</font></span></blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br>Kouvakas Alexandros
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><b style="color:rgb(51,51,153)"><span style="background-color:rgb(255,255,255)">Regards</span><br style="background-color:rgb(255,255,255)"><br style="background-color:rgb(255,255,255)">
<span style="background-color:rgb(255,255,255)">Sayed Qaiser Ali Shah</span><br style="background-color:rgb(255,255,255)"><span style="background-color:rgb(255,255,255)">MSIT-12</span><br style="background-color:rgb(255,255,255)">
<span style="background-color:rgb(255,255,255)">NUST (SEECS)</span></b><br>