Re: [pox-dev] Getting counter values in POX controller

2015-02-28 Thread Murphy McCauley
Haha.  What a coincidence. :)

On Feb 28, 2015, at 4:10 PM, Sulabh Bista sul...@gmail.com wrote:

 Hey,
 
 A generic method would be:
 Requesting statistics from a switch (see: 
 https://openflow.stanford.edu/display/ONL/POX+Wiki#POXWiki-ofp_stats_request-Requestingstatisticsfromswitches)
 Listening to statistics events (see: 
 https://openflow.stanford.edu/display/ONL/POX+Wiki#POXWiki-StatisticsEvents)
 Hope it was helpful.
 
 
 On Sat, Feb 28, 2015 at 2:25 PM, Sandesh Shrestha sande...@ualberta.ca 
 wrote:
 Dear All,
 
 Could you help me with getting the values of counters from open vswitch into 
 the
 POX controller ie number of bytes sent per flow or per port.
 
 If there is any link where I can find that, can you please guide me to the 
 link.
 
 
 Thanks,
 Sandesh Shrestha
 



Re: [pox-dev] Getting counter values in POX controller

2015-02-28 Thread Murphy McCauley
In OpenFlow, these values are known as statistics.  Have you read the 
relevant sections of the OpenFlow specification and the POX manual?  If not, 
I'd suggest reading the following sections in the POX manual:
Statistics Events
ofp_stats_request - Requesting statistics from switches
Statistics Collector Example

-- Murphy

On Feb 28, 2015, at 11:25 AM, Sandesh Shrestha sande...@ualberta.ca wrote:

 Dear All,
 
 Could you help me with getting the values of counters from open vswitch into 
 the
 POX controller ie number of bytes sent per flow or per port.
 
 If there is any link where I can find that, can you please guide me to the 
 link.
 
 
 Thanks,
 Sandesh Shrestha



Re: [pox-dev] Getting counter values in POX controller

2015-02-28 Thread Sulabh Bista
Hey,

A generic method would be:

   1. Requesting statistics from a switch (see:
   
https://openflow.stanford.edu/display/ONL/POX+Wiki#POXWiki-ofp_stats_request-Requestingstatisticsfromswitches
   )
   2. Listening to statistics events (see:
   https://openflow.stanford.edu/display/ONL/POX+Wiki#POXWiki-StatisticsEvents
   )

Hope it was helpful.


On Sat, Feb 28, 2015 at 2:25 PM, Sandesh Shrestha sande...@ualberta.ca
wrote:

 Dear All,

 Could you help me with getting the values of counters from open vswitch
 into the
 POX controller ie number of bytes sent per flow or per port.

 If there is any link where I can find that, can you please guide me to the
 link.


 Thanks,
 Sandesh Shrestha



Re: [pox-dev] Getting counter values in POX controller

2015-02-28 Thread Sandesh Shrestha
Helllo Sulabh and Murphy,

Thanks a lot for the link. I got it now.

Thanks,
Sandesh Shrestha

On Sat, Feb 28, 2015 at 5:13 PM, Murphy McCauley murphy.mccau...@gmail.com
wrote:

 Haha.  What a coincidence. :)

 On Feb 28, 2015, at 4:10 PM, Sulabh Bista sul...@gmail.com wrote:

 Hey,

 A generic method would be:

1. Requesting statistics from a switch (see:

 https://openflow.stanford.edu/display/ONL/POX+Wiki#POXWiki-ofp_stats_request-Requestingstatisticsfromswitches
)
2. Listening to statistics events (see:
https://openflow.stanford.edu/display/ONL/POX+Wiki#POXWiki-StatisticsEvents
)

 Hope it was helpful.


 On Sat, Feb 28, 2015 at 2:25 PM, Sandesh Shrestha sande...@ualberta.ca
 wrote:

 Dear All,

 Could you help me with getting the values of counters from open vswitch
 into the
 POX controller ie number of bytes sent per flow or per port.

 If there is any link where I can find that, can you please guide me to
 the link.


 Thanks,
 Sandesh Shrestha