<div dir="ltr">Ok, thanks. <div>In the earlier message you mentioned that you don&#39;t see any problems with OF1.5 flow stats. </div><div>So is there some other way how to get flow stats from the forwarders using OF1.5?<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><br></div><div>Thank you and regards.</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">po 12. 11. 2018 o 0:47 Ben Pfaff &lt;<a href="mailto:blp@ovn.org">blp@ovn.org</a>&gt; napísal(a):<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">OK, I took a look.  OVS just doesn&#39;t support that request in OF1.5 yet.<br>
No one has implemented it.  As I&#39;ve said, OF1.5 support is incomplete.<br>
<br>
On Sun, Nov 11, 2018 at 11:34:11PM +0100, Jozef Valko wrote:<br>
&gt; Thanks a lot!<br>
&gt; OVS version 2.9.0 was installed along with Mininet emulator. I&#39;ve already<br>
&gt; tried to update OVS to v2.10.1, but Mininet then met some issues in<br>
&gt; creating the emulation. Anyway, there was the same error with the newest<br>
&gt; OVS version.<br>
&gt; I have created a PCAP file for you. Kindly please have a look at the<br>
&gt; packets no. 89 and 90, these are the request and error reply packets.<br>
&gt; <br>
&gt; Thank you for your time.<br>
&gt; Regards,<br>
&gt;  Jozef Valko.<br>
&gt; <br>
&gt; <br>
&gt; ne 11. 11. 2018 o 21:35 Ben Pfaff &lt;<a href="mailto:blp@ovn.org" target="_blank">blp@ovn.org</a>&gt; napísal(a):<br>
&gt; <br>
&gt; &gt; On Sun, Nov 11, 2018 at 09:12:03PM +0100, Jozef Valko wrote:<br>
&gt; &gt; &gt; Hello all,<br>
&gt; &gt; &gt; I am developing an SDN application using Ryu and Mininet. My goal is to<br>
&gt; &gt; &gt; develop security module on the top of Ryu controller. Therefore, I need a<br>
&gt; &gt; &gt; regular statistics update from the forwarders which are OVS bridges. For<br>
&gt; &gt; &gt; this purpose I am using OFPFlowStatsRequest function provided by Ryu<br>
&gt; &gt; &gt; parser. Below is the function which I am using:<br>
&gt; &gt; &gt; [image: image.png]<br>
&gt; &gt; &gt; This function runs in separate thread and sends the request every 10<br>
&gt; &gt; &gt; seconds.<br>
&gt; &gt; &gt; When I use this function with OpenFlow14 everything is fine, the<br>
&gt; &gt; controller<br>
&gt; &gt; &gt; receives flow stats from the forwarder. But when I try to trigger this<br>
&gt; &gt; &gt; function using OpenFlow15, the following error shows in the controller<br>
&gt; &gt; &gt; window:<br>
&gt; &gt; &gt; [image: image.png]<br>
&gt; &gt; &gt; I tried to google this issue, searched in the specification and Ryubook<br>
&gt; &gt; but<br>
&gt; &gt; &gt; I did not find any solution. Because Ryu doesn&#39;t crash, I suppose that<br>
&gt; &gt; this<br>
&gt; &gt; &gt; is OVS-related issue.<br>
&gt; &gt; &gt; The only difference between requests in OF14 and OF15 is the value of the<br>
&gt; &gt; &gt; field &#39;type&#39;. In case of OF14 it is 1 and in case of OF15 it is 17. Here<br>
&gt; &gt; is<br>
&gt; &gt; &gt; the request before sending (OF15):<br>
&gt; &gt; &gt; [image: image.png]<br>
&gt; &gt; &gt; What can be an issue? How to properly request flow statistics from the<br>
&gt; &gt; OVS<br>
&gt; &gt; &gt; forwarders using Ryu and OpenFlow15?<br>
&gt; &gt; &gt; Versions of the applications:<br>
&gt; &gt; &gt; Mininet - 2.3.0d4<br>
&gt; &gt; &gt; Ryu - ryu-manager 4.29<br>
&gt; &gt; &gt; OVS - ovs_version: &quot;2.9.0&quot;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; PortStatsRequest function is working nicely in both OF14 and OF15.<br>
&gt; &gt;<br>
&gt; &gt; OVS doesn&#39;t fully support OpenFlow 1.5 and does not enable it by<br>
&gt; &gt; default, so I suppose that you turned it on yourself.  That is fine--we<br>
&gt; &gt; are pleased to hear about problems with protocol versions that are not<br>
&gt; &gt; yet complete.  Also, I don&#39;t see any problems with OF1.5 flow stats and<br>
&gt; &gt; it seems to work OK in my own simple test case with ovs-ofctl.<br>
&gt; &gt;<br>
&gt; &gt; However, for testing incomplete protocol versions, one should use the<br>
&gt; &gt; latest version of Open vSwitch.  Please try the latest release v2.10.1<br>
&gt; &gt; or what one can find on master.<br>
&gt; &gt;<br>
&gt; &gt; Alternatively, if you can provide a hex dump of the message that Ryu is<br>
&gt; &gt; sending OVS (or otherwise some kind of exact representation), I can test<br>
&gt; &gt; that for you.<br>
&gt; &gt;<br>
<br>
<br>
</blockquote></div>