I am using monitor component in NOX.


==== nox-0.6.0/src/noxcoreapps/examples/monitor.py =====

def aggregate_timer(self, dpid):

          flow = ofp_match()

          flow.wildcards = 0xffff

          self.ctxt.send_aggregate_stats_request(dpid, flow,  0xff)

          self.post_callback(MONITOR_TABLE_PERIOD, lambda : 
self.aggregate_timer(dpid))



Thanks,

MinChi

-----Original Message-----
From: Martin Casado [mailto:[email protected]]
Sent: Friday, January 15, 2010 3:16 PM
To: MinChi Tseng
Cc: [email protected]
Subject: Re: [nox-dev] aggregate flow statistics always return 0



Can you paste the code which is doing the query?



> No, the OF is get via NOX Virtual Test Environment setup instruction.

> http://noxrepo.org/manual/vm_environment.html

>

> wget http://noxrepo.org/openflow_mod.ko

> wget http://noxrepo.org/dpctl

> wget http://noxrepo.org/secchan

>

>

> MinChi

>

> -----Original Message-----

> From: Martin Casado [mailto:[email protected]]

> Sent: Friday, January 15, 2010 2:34 PM

> To: MinChi Tseng

> Cc: [email protected]

> Subject: Re: [nox-dev] aggregate flow statistics always return 0

>

> Are you using the OF reference code from Stanford?

>

>

>> Hi all,

>>

>> I am using NOX Virtual Test Environment

>>

>> The topology is one OpenFlow switch and two hosts.

>>

>> Host 1 and host2 continually ping each other.

>>

>> In monitor component, the aggregate statistics always show 0.

>>

>> But, if I dump the aggregate statistics on OpenFlow switch, OpenFlow

>> switch did print aggregate statistics which is non-zero.

>>

>> My question is why OpenFlow switch always returned 0 for aggregate

>> stats to NOX.

>>

>> OpenFlow version is 0.8.9~1

>>

>> NOX version is 0.6.0

>>

>> On NOX, I issued: *./nox_core -v -i ptcp:2525 pyswitch monitor*

>>

>> On OpenFlow, I issued: *./secchan nl:0 tcp:10.0.2.2:2525 &*

>>

>> ===== some NOX log message====

>>

>> 00140|openflow-event|DBG:received stats reply from 002320c72f83

>>

>> Table stats in from datapath 00:23:20:c7:2f:83

>>

>> hash2 : 4

>>

>> linear : 0

>>

>> 00141|openflow-event|DBG:received stats reply from 002320c72f83

>>

>> Port stats in from datapath 00:23:20:c7:2f:83

>>

>> 0 : 167

>>

>> 1 : 165

>>

>> 00142|openflow-event|DBG:received stats reply from 002320c72f83

>>

>> *Aggregate stats in from datapath 00:23:20:c7:2f:83*

>>

>> * {'packet_count': 0L, 'byte_count': 0L, 'flow_count': 0L}*

>>

>> 00143|openflow-event|DBG:received stats reply from 002320c72f83

>>

>> Table stats in from datapath 00:23:20:c7:2f:83

>>

>> hash2 : 4

>>

>> linear : 0

>>

>> 00144|openflow-event|DBG:received stats reply from 002320c72f83

>>

>> Port stats in from datapath 00:23:20:c7:2f:83

>>

>> 0 : 173

>>

>> 1 : 171

>>

>> 00145|openflow-event|DBG:received stats reply from 002320c72f83

>>

>> *Aggregate stats in from datapath 00:23:20:c7:2f:83*

>>

>> * {'packet_count': 0L, 'byte_count': 0L, 'flow_count': 0L}*

>>

>> * *

>>

>> ==== dump aggregate statistics from Openflow ======

>>

>> hda:/cdrom# *./dpctl dump-aggregate nl:0*

>>

>> stats_reply (xid=0xbf8b2f94): flags=none type=2(aggregate)

>>

>> *packet_count=310 byte_count=30380 flow_count=4*

>>

>> hda:/cdrom# *./dpctl dump-aggregate nl:0*

>>

>> stats_reply (xid=0xe7b9f769): flags=none type=2(aggregate)

>>

>> *packet_count=318 byte_count=31164 flow_count=4*

>>

>> * *

>>

>> * *

>>

>> Thanks,

>>

>> MinChi

>>

>> ------------------------------------------------------------------------

>>

>> _______________________________________________

>> nox-dev mailing list

>> [email protected]

>> http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org

>>

>>

>

>


_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org

Reply via email to