Yes I am using the C++ flow fetcher component. 

When you send a flow stats request you also specify a ofp_match field as well, 
Openflow internally matches the flow entries in the switch's flow table and 
returns counters for matching flows. 
Try the following 


ofp_flow_stats_request fsr; 

fsr.table_id = 0xff; 
fsr.match.wildcards = htonl(0xffffffff); //this would match all the flows in 
the forwarding table 
fsr.out_port = OFPP_NONE; 


Here I have wildcarded all matching fields, which means it will match all the 
flows in the switch's forwarding table. 

This works for me .. If this doesn't work for you then the next question then 
is -- are there any forwarding entries installed in the switch? 


Good luck, 
Malveeka 



----- Original Message ----- 
From: "Ricardo Bennesby" <[email protected]> 
To: [email protected] 
Sent: Tuesday, March 8, 2011 1:51:47 PM GMT -08:00 US/Canada Pacific 
Subject: Re: [nox-dev] Problem in getting flows statistics 

Did you used it with C++ too? 


2011/3/8 < [email protected] > 




Hi Ricardo 


I've used the nox flow fetcher component and it worked fine for me. 
One thing to look at is how you're specifying the ofp_match object while 
requesting for flows. 
The ofp_flow_stats_request will return counters for flow table entries that 
match the specified ofp_match object ? 


If there no matching entries in the forwarding table <Flow_stats>flows vector 
will be empty. 


Hope this helped 


Best! 
Malveeka 









----- Original Message ----- 
From: "Ricardo Bennesby" < [email protected] > 
To: [email protected] 
Sent: Tuesday, March 8, 2011 1:01:44 PM GMT -08:00 US/Canada Pacific 
Subject: [nox-dev] Problem in getting flows statistics 

Hi, 
I am trying to get flows statistics in my C++ component using flow fetcher, but 
all fields of flows seems not instanciated. For example, I need to know flow 
size, number of packets, number of bytes and other information. 
I created a ofp_flow_stats_request request in my component, set it as: 
request.table_id = 0xff; 
request.out_port = OFPP_NONE; , in datapath_join_event and passed it to 
flow_fetcher as a parameter of start_fetch. 
But when the handler of Flow_stats_in_event is called, the size of the 
vector<Flow_stats> flows still zero as all of it other fields. 
Is the error in my request? 
Am I missing something? 
Sorry if I didn't made myself clear. 
Thank you for help. 
Regards. 

-- 
Happy Women's Day 
Ricardo Bennesby da Silva 
Ciência da Computação - UFAM 
LabCIA - Laboratório de Computação Inteligente e Autonômica 


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


-- 
Ricardo Bennesby da Silva 
Ciência da Computação - UFAM 
LabCIA - Laboratório de Computação Inteligente e Autonômica 

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

Reply via email to