On Thu, 19 Sep 2013 21:45:13 -0400 "Pete Zimmerman" <[email protected]> wrote:
> All, > > > > I'm trying to implement two things with the Ryu Controller: 1) Block all > traffic between hosts 2 and 3 (in mininet) and 2) periodically collect stats > about all flows sourced from host 1 and those destined to host 1. I've got > the first part completed; however, I'm running into an issue with part 2. > > > > The timing logic works and collecting the stats about flows sourced from > host one works as well; in the send_flow_stats_request method however, I > can't get any argument from OFPMatch accepted through the python interpreter > other than in_port=1 (which works fine for getting stats about all packets > from host one). It doesn't make sense that I can only match on "in_port". > > > > I've left "in_port=1" as the match statement for the aggregate stats request > for the messages that are generated when requesting info about both traffic > coming from host one and traffic destined to host one. It's just a > placeholder to check overall functionality. > > > > Anyway, I just wish I knew what syntax would work for the match > function...looking at the documentation, something like eth_src should work > just fine as an argument to match. You can finx all the syntax that you can use with OFPMatch at: http://ryu.readthedocs.org/en/latest/ofproto_v1_2_ref.html#flow-match-structure I guess that there various ways to do the above. For example, you could install flows with a match eth_dst of a host (for packets to the host) and flows with a match eth_src of the host (for packets from the host). Then you could aggregate them. ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
