<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Getting flow stats by cookie or cookiemask in Software Defined Networking</title>
    <link>https://community.hpe.com/t5/software-defined-networking/getting-flow-stats-by-cookie-or-cookiemask/m-p/6565464#M1515</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm trying to get Flow Stats information filtering by cookie, but i'm not sure i'm doing it right.&lt;BR /&gt;&lt;BR /&gt;Openflow v1.3.4 docs says i can get individual flows statistics and i tried to get them by Van Controller API with following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DataPathInfo dataPathInfo = getCoreInfo();

OfmMutableMultipartRequest request = (OfmMutableMultipartRequest) MessageFactory.create(ProtocolVersion.V_1_3, MessageType.MULTIPART_REQUEST, MultipartType.FLOW);
MBodyMutableFlowStatsRequest body = (MBodyMutableFlowStatsRequest)request.getBody();
body.tableId(TableId.ALL);
body.cookie(COOKIE);
body.cookieMask(COOKIE_MASK);&lt;BR /&gt;body.match(match);

MessageFuture msgFuture = controllerService.send(request.toImmutable(), dataPathInfo.dpid());&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;I'm getting a "UNSATISFIED" MessageFuture and i'm wondering if i forgot some property on body or something else.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Aug 2014 13:55:21 GMT</pubDate>
    <dc:creator>DNeto</dc:creator>
    <dc:date>2014-08-06T13:55:21Z</dc:date>
    <item>
      <title>Getting flow stats by cookie or cookiemask</title>
      <link>https://community.hpe.com/t5/software-defined-networking/getting-flow-stats-by-cookie-or-cookiemask/m-p/6565464#M1515</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm trying to get Flow Stats information filtering by cookie, but i'm not sure i'm doing it right.&lt;BR /&gt;&lt;BR /&gt;Openflow v1.3.4 docs says i can get individual flows statistics and i tried to get them by Van Controller API with following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DataPathInfo dataPathInfo = getCoreInfo();

OfmMutableMultipartRequest request = (OfmMutableMultipartRequest) MessageFactory.create(ProtocolVersion.V_1_3, MessageType.MULTIPART_REQUEST, MultipartType.FLOW);
MBodyMutableFlowStatsRequest body = (MBodyMutableFlowStatsRequest)request.getBody();
body.tableId(TableId.ALL);
body.cookie(COOKIE);
body.cookieMask(COOKIE_MASK);&lt;BR /&gt;body.match(match);

MessageFuture msgFuture = controllerService.send(request.toImmutable(), dataPathInfo.dpid());&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;I'm getting a "UNSATISFIED" MessageFuture and i'm wondering if i forgot some property on body or something else.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2014 13:55:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/getting-flow-stats-by-cookie-or-cookiemask/m-p/6565464#M1515</guid>
      <dc:creator>DNeto</dc:creator>
      <dc:date>2014-08-06T13:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting flow stats by cookie or cookiemask</title>
      <link>https://community.hpe.com/t5/software-defined-networking/getting-flow-stats-by-cookie-or-cookiemask/m-p/6577752#M1516</link>
      <description>&lt;P&gt;Hello DNeto,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per the SDN Programming guide [page 34],&lt;/P&gt;&lt;P&gt;Applications may construct and send messages to datapaths via the “send” methods:&lt;/P&gt;&lt;P&gt;send(OpenflowMessage, DataPathId) : MessageFuture&lt;/P&gt;&lt;P&gt;send(List&amp;lt;OpenflowMessage&amp;gt;, DataPathId) : List&amp;lt;MessageFuture&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The returned MessageFuture(s) allow the caller to choose whether to wait synchronously (block until the outcome of the request is known), or whether to do some other&lt;/P&gt;&lt;P&gt;work and then check on the result of the request later.When a message is sent to a datapath, the corresponding MessageFutureencapsulates the state of that request.&lt;/P&gt;&lt;P&gt;Initially the future’s result is UNSATISFIED. Once the outcome is determined, the future is “satisfied” with one of the following results:&lt;/P&gt;&lt;P&gt;• SUCCESS—the request was a success; the reply message is available via reply().&lt;/P&gt;&lt;P&gt;• SUCCESS_NO_REPLY—the request was a success; there is no associated reply.&lt;/P&gt;&lt;P&gt;• OFM_ERROR—the request failed; the datapath issued an error, available via reply().&lt;/P&gt;&lt;P&gt;• EXCEPTION—the request failed due to an exception; available via cause().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also have a look on the code example [page 34 -35] that attaches a timestamp payload to an ECHO_REQUEST message, then retrieves the timestamp payload from the ECHO_REPLY sent back by the datapath.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know if this helps or you are still facing some problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;HP SDN Team&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2014 18:16:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/getting-flow-stats-by-cookie-or-cookiemask/m-p/6577752#M1516</guid>
      <dc:creator>sdnindia</dc:creator>
      <dc:date>2014-08-18T18:16:21Z</dc:date>
    </item>
  </channel>
</rss>

