I have not tried for specific flows. The command I use is "dpctl dump-aggregate SWITCH" on OpenFlow switch.
2010/3/10 Guanyao Huang <[email protected]> > dump-aggregate command means you want to aggregate some field, right? > For example suppose there are 4 flows, two of them have the same dst > IP. Then, dump-aggregate dst_IP will return 2 flows. > Instead, dump-flows is to show all the flows. > So, my question was, does dump-aggregate work properly for all the fields? > > On Tue, Mar 9, 2010 at 5:58 PM, Yu-Chieh Chou <[email protected]> wrote: > > Sorry, I did not explain very clearly. I use the command "dpctl > > dump-aggregate" on OpenFlow switch works correctly. > > > > But the aggregate value on NOX component monitor always get zero. > > > > > > > > 2010/3/10 Guanyao Huang <[email protected]> > >> > >> What do you mean by "dpctl dump-aggregate works correctly". My > >> experience is that for some fields it works correctly, for some fields > >> not. > >> > >> On Tue, Mar 9, 2010 at 12:35 AM, Yu-Chieh Chou <[email protected]> > wrote: > >> > Hi all, I also use NOX Virtual Test Environment. > >> > > >> > And the aggregate value returns from switch is always zero. > >> > > >> > The dpctl dump-aggregate works correctly. > >> > > >> > Have someone solve this problem? > >> > > >> > Thanks. > >> > > >> > 2010/2/4 Rodrigo Braga <[email protected]> > >> >> > >> >> Hi Guanyao, I have tested dpctl on switch openflow and it show me the > >> >> stats about aggregating flows perfectly. > >> >> > >> >> I used the secchan, dpctl e openflow_mod.ko available in NOX Virtual > >> >> Test > >> >> Environment setup. > >> >> > >> >> But the monitor component continue showing all values with zero :( > >> >> > >> >> > >> >> On Tue, Feb 2, 2010 at 11:32 PM, Guanyao Huang <[email protected]> > >> >> wrote: > >> >>> > >> >>> I guess it depends on whether dpctl dump-aggregate works correctly. > >> >>> My problem with it is that sometimes it can not aggregate flows > >> >>> according to the specified wildcard. I guess this depends on > >> >>> configuration of switches. > >> >>> > >> >>> On Tue, Feb 2, 2010 at 5:57 PM, Rodrigo Braga < > [email protected]> > >> >>> wrote: > >> >>> > I have the same problem, did someone solve this problem ?? > >> >>> > > >> >>> > My nox version is 0.8 > >> >>> > > >> >>> > compiled to openflow 0x97 > >> >>> > > >> >>> > thanks > >> >>> > > >> >>> > > >> >>> > On Fri, Jan 15, 2010 at 3:36 AM, MinChi Tseng <[email protected]> > >> >>> > wrote: > >> >>> >> > >> >>> >> 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 > >> >>> >> > >> >>> >> > >> >>> >> > >> >>> >> 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 > >> >>> >> > >> >>> >> >> > >> >>> >> > >> >>> >> >> > >> >>> >> > >> >>> >> > > >> >>> >> > >> >>> >> > > >> >>> >> > >> >>> >> > >> >>> >> > >> >>> >> -----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 > >> >>> >> _______________________________________________ > >> >>> >> nox-dev mailing list > >> >>> >> [email protected] > >> >>> >> http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org > >> >>> >> > >> >>> > > >> >>> > > >> >>> > > >> >>> > -- > >> >>> > Rodrigo de Souza Braga > >> >>> > Mestrando em Ciência da Computação > >> >>> > Universidade Federal do Amazonas - UFAM > >> >>> > > >> >>> > _______________________________________________ > >> >>> > 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 > >> >> > >> >> > >> >> > >> >> -- > >> >> Rodrigo de Souza Braga > >> >> Mestrando em Ciência da Computação > >> >> Universidade Federal do Amazonas - UFAM > >> >> > >> >> _______________________________________________ > >> >> 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 > >> > > >> > > > > > >
_______________________________________________ nox-dev mailing list [email protected] http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
